@clawos-dev/clawd 0.2.666 → 0.2.668

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.
@@ -4,7 +4,7 @@
4
4
  <meta charset="UTF-8" />
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
6
  <title>云 persona 对话记录</title>
7
- <script type="module" crossorigin>var Lx=Object.defineProperty;var Ox=(e,t,n)=>t in e?Lx(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Hd=(e,t,n)=>Ox(e,typeof t!="symbol"?t+"":t,n);function Dx(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const o=Object.getOwnPropertyDescriptor(r,i);o&&Object.defineProperty(e,i,o.get?o:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();var Rs=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function lc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Mm={exports:{}},_l={},Lm={exports:{}},he={};/**
7
+ <script type="module" crossorigin>var Ox=Object.defineProperty;var Dx=(e,t,n)=>t in e?Ox(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Hd=(e,t,n)=>Dx(e,typeof t!="symbol"?t+"":t,n);function Fx(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const o=Object.getOwnPropertyDescriptor(r,i);o&&Object.defineProperty(e,i,o.get?o:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();var Rs=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function lc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Mm={exports:{}},_l={},Lm={exports:{}},he={};/**
8
8
  * @license React
9
9
  * react.production.min.js
10
10
  *
@@ -12,7 +12,7 @@
12
12
  *
13
13
  * This source code is licensed under the MIT license found in the
14
14
  * LICENSE file in the root directory of this source tree.
15
- */var jo=Symbol.for("react.element"),Fx=Symbol.for("react.portal"),$x=Symbol.for("react.fragment"),Ux=Symbol.for("react.strict_mode"),Bx=Symbol.for("react.profiler"),Vx=Symbol.for("react.provider"),Hx=Symbol.for("react.context"),qx=Symbol.for("react.forward_ref"),Wx=Symbol.for("react.suspense"),Zx=Symbol.for("react.memo"),Gx=Symbol.for("react.lazy"),qd=Symbol.iterator;function Qx(e){return e===null||typeof e!="object"?null:(e=qd&&e[qd]||e["@@iterator"],typeof e=="function"?e:null)}var Om={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Dm=Object.assign,Fm={};function ki(e,t,n){this.props=e,this.context=t,this.refs=Fm,this.updater=n||Om}ki.prototype.isReactComponent={};ki.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};ki.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function $m(){}$m.prototype=ki.prototype;function ac(e,t,n){this.props=e,this.context=t,this.refs=Fm,this.updater=n||Om}var uc=ac.prototype=new $m;uc.constructor=ac;Dm(uc,ki.prototype);uc.isPureReactComponent=!0;var Wd=Array.isArray,Um=Object.prototype.hasOwnProperty,cc={current:null},Bm={key:!0,ref:!0,__self:!0,__source:!0};function Vm(e,t,n){var r,i={},o=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(o=""+t.key),t)Um.call(t,r)&&!Bm.hasOwnProperty(r)&&(i[r]=t[r]);var l=arguments.length-2;if(l===1)i.children=n;else if(1<l){for(var a=Array(l),u=0;u<l;u++)a[u]=arguments[u+2];i.children=a}if(e&&e.defaultProps)for(r in l=e.defaultProps,l)i[r]===void 0&&(i[r]=l[r]);return{$$typeof:jo,type:e,key:o,ref:s,props:i,_owner:cc.current}}function Kx(e,t){return{$$typeof:jo,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function dc(e){return typeof e=="object"&&e!==null&&e.$$typeof===jo}function Yx(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Zd=/\/+/g;function Gl(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Yx(""+e.key):t.toString(36)}function ys(e,t,n,r,i){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(o){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case jo:case Fx:s=!0}}if(s)return s=e,i=i(s),e=r===""?"."+Gl(s,0):r,Wd(i)?(n="",e!=null&&(n=e.replace(Zd,"$&/")+"/"),ys(i,t,n,"",function(u){return u})):i!=null&&(dc(i)&&(i=Kx(i,n+(!i.key||s&&s.key===i.key?"":(""+i.key).replace(Zd,"$&/")+"/")+e)),t.push(i)),1;if(s=0,r=r===""?".":r+":",Wd(e))for(var l=0;l<e.length;l++){o=e[l];var a=r+Gl(o,l);s+=ys(o,t,n,a,i)}else if(a=Qx(e),typeof a=="function")for(e=a.call(e),l=0;!(o=e.next()).done;)o=o.value,a=r+Gl(o,l++),s+=ys(o,t,n,a,i);else if(o==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return s}function Ho(e,t,n){if(e==null)return e;var r=[],i=0;return ys(e,r,"","",function(o){return t.call(n,o,i++)}),r}function Xx(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var ct={current:null},xs={transition:null},Jx={ReactCurrentDispatcher:ct,ReactCurrentBatchConfig:xs,ReactCurrentOwner:cc};function Hm(){throw Error("act(...) is not supported in production builds of React.")}he.Children={map:Ho,forEach:function(e,t,n){Ho(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Ho(e,function(){t++}),t},toArray:function(e){return Ho(e,function(t){return t})||[]},only:function(e){if(!dc(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};he.Component=ki;he.Fragment=$x;he.Profiler=Bx;he.PureComponent=ac;he.StrictMode=Ux;he.Suspense=Wx;he.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Jx;he.act=Hm;he.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=Dm({},e.props),i=e.key,o=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,s=cc.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(a in t)Um.call(t,a)&&!Bm.hasOwnProperty(a)&&(r[a]=t[a]===void 0&&l!==void 0?l[a]:t[a])}var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){l=Array(a);for(var u=0;u<a;u++)l[u]=arguments[u+2];r.children=l}return{$$typeof:jo,type:e.type,key:i,ref:o,props:r,_owner:s}};he.createContext=function(e){return e={$$typeof:Hx,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Vx,_context:e},e.Consumer=e};he.createElement=Vm;he.createFactory=function(e){var t=Vm.bind(null,e);return t.type=e,t};he.createRef=function(){return{current:null}};he.forwardRef=function(e){return{$$typeof:qx,render:e}};he.isValidElement=dc;he.lazy=function(e){return{$$typeof:Gx,_payload:{_status:-1,_result:e},_init:Xx}};he.memo=function(e,t){return{$$typeof:Zx,type:e,compare:t===void 0?null:t}};he.startTransition=function(e){var t=xs.transition;xs.transition={};try{e()}finally{xs.transition=t}};he.unstable_act=Hm;he.useCallback=function(e,t){return ct.current.useCallback(e,t)};he.useContext=function(e){return ct.current.useContext(e)};he.useDebugValue=function(){};he.useDeferredValue=function(e){return ct.current.useDeferredValue(e)};he.useEffect=function(e,t){return ct.current.useEffect(e,t)};he.useId=function(){return ct.current.useId()};he.useImperativeHandle=function(e,t,n){return ct.current.useImperativeHandle(e,t,n)};he.useInsertionEffect=function(e,t){return ct.current.useInsertionEffect(e,t)};he.useLayoutEffect=function(e,t){return ct.current.useLayoutEffect(e,t)};he.useMemo=function(e,t){return ct.current.useMemo(e,t)};he.useReducer=function(e,t,n){return ct.current.useReducer(e,t,n)};he.useRef=function(e){return ct.current.useRef(e)};he.useState=function(e){return ct.current.useState(e)};he.useSyncExternalStore=function(e,t,n){return ct.current.useSyncExternalStore(e,t,n)};he.useTransition=function(){return ct.current.useTransition()};he.version="18.3.1";Lm.exports=he;var U=Lm.exports;const Ao=lc(U),e0=Dx({__proto__:null,default:Ao},[U]);/**
15
+ */var jo=Symbol.for("react.element"),$x=Symbol.for("react.portal"),Ux=Symbol.for("react.fragment"),Bx=Symbol.for("react.strict_mode"),Vx=Symbol.for("react.profiler"),Hx=Symbol.for("react.provider"),qx=Symbol.for("react.context"),Wx=Symbol.for("react.forward_ref"),Zx=Symbol.for("react.suspense"),Gx=Symbol.for("react.memo"),Qx=Symbol.for("react.lazy"),qd=Symbol.iterator;function Kx(e){return e===null||typeof e!="object"?null:(e=qd&&e[qd]||e["@@iterator"],typeof e=="function"?e:null)}var Om={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Dm=Object.assign,Fm={};function ki(e,t,n){this.props=e,this.context=t,this.refs=Fm,this.updater=n||Om}ki.prototype.isReactComponent={};ki.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};ki.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function $m(){}$m.prototype=ki.prototype;function ac(e,t,n){this.props=e,this.context=t,this.refs=Fm,this.updater=n||Om}var uc=ac.prototype=new $m;uc.constructor=ac;Dm(uc,ki.prototype);uc.isPureReactComponent=!0;var Wd=Array.isArray,Um=Object.prototype.hasOwnProperty,cc={current:null},Bm={key:!0,ref:!0,__self:!0,__source:!0};function Vm(e,t,n){var r,i={},o=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(o=""+t.key),t)Um.call(t,r)&&!Bm.hasOwnProperty(r)&&(i[r]=t[r]);var l=arguments.length-2;if(l===1)i.children=n;else if(1<l){for(var a=Array(l),u=0;u<l;u++)a[u]=arguments[u+2];i.children=a}if(e&&e.defaultProps)for(r in l=e.defaultProps,l)i[r]===void 0&&(i[r]=l[r]);return{$$typeof:jo,type:e,key:o,ref:s,props:i,_owner:cc.current}}function Yx(e,t){return{$$typeof:jo,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function dc(e){return typeof e=="object"&&e!==null&&e.$$typeof===jo}function Xx(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Zd=/\/+/g;function Gl(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Xx(""+e.key):t.toString(36)}function ys(e,t,n,r,i){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(o){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case jo:case $x:s=!0}}if(s)return s=e,i=i(s),e=r===""?"."+Gl(s,0):r,Wd(i)?(n="",e!=null&&(n=e.replace(Zd,"$&/")+"/"),ys(i,t,n,"",function(u){return u})):i!=null&&(dc(i)&&(i=Yx(i,n+(!i.key||s&&s.key===i.key?"":(""+i.key).replace(Zd,"$&/")+"/")+e)),t.push(i)),1;if(s=0,r=r===""?".":r+":",Wd(e))for(var l=0;l<e.length;l++){o=e[l];var a=r+Gl(o,l);s+=ys(o,t,n,a,i)}else if(a=Kx(e),typeof a=="function")for(e=a.call(e),l=0;!(o=e.next()).done;)o=o.value,a=r+Gl(o,l++),s+=ys(o,t,n,a,i);else if(o==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return s}function Ho(e,t,n){if(e==null)return e;var r=[],i=0;return ys(e,r,"","",function(o){return t.call(n,o,i++)}),r}function Jx(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var ct={current:null},xs={transition:null},e0={ReactCurrentDispatcher:ct,ReactCurrentBatchConfig:xs,ReactCurrentOwner:cc};function Hm(){throw Error("act(...) is not supported in production builds of React.")}he.Children={map:Ho,forEach:function(e,t,n){Ho(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Ho(e,function(){t++}),t},toArray:function(e){return Ho(e,function(t){return t})||[]},only:function(e){if(!dc(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};he.Component=ki;he.Fragment=Ux;he.Profiler=Vx;he.PureComponent=ac;he.StrictMode=Bx;he.Suspense=Zx;he.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=e0;he.act=Hm;he.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=Dm({},e.props),i=e.key,o=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,s=cc.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(a in t)Um.call(t,a)&&!Bm.hasOwnProperty(a)&&(r[a]=t[a]===void 0&&l!==void 0?l[a]:t[a])}var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){l=Array(a);for(var u=0;u<a;u++)l[u]=arguments[u+2];r.children=l}return{$$typeof:jo,type:e.type,key:i,ref:o,props:r,_owner:s}};he.createContext=function(e){return e={$$typeof:qx,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Hx,_context:e},e.Consumer=e};he.createElement=Vm;he.createFactory=function(e){var t=Vm.bind(null,e);return t.type=e,t};he.createRef=function(){return{current:null}};he.forwardRef=function(e){return{$$typeof:Wx,render:e}};he.isValidElement=dc;he.lazy=function(e){return{$$typeof:Qx,_payload:{_status:-1,_result:e},_init:Jx}};he.memo=function(e,t){return{$$typeof:Gx,type:e,compare:t===void 0?null:t}};he.startTransition=function(e){var t=xs.transition;xs.transition={};try{e()}finally{xs.transition=t}};he.unstable_act=Hm;he.useCallback=function(e,t){return ct.current.useCallback(e,t)};he.useContext=function(e){return ct.current.useContext(e)};he.useDebugValue=function(){};he.useDeferredValue=function(e){return ct.current.useDeferredValue(e)};he.useEffect=function(e,t){return ct.current.useEffect(e,t)};he.useId=function(){return ct.current.useId()};he.useImperativeHandle=function(e,t,n){return ct.current.useImperativeHandle(e,t,n)};he.useInsertionEffect=function(e,t){return ct.current.useInsertionEffect(e,t)};he.useLayoutEffect=function(e,t){return ct.current.useLayoutEffect(e,t)};he.useMemo=function(e,t){return ct.current.useMemo(e,t)};he.useReducer=function(e,t,n){return ct.current.useReducer(e,t,n)};he.useRef=function(e){return ct.current.useRef(e)};he.useState=function(e){return ct.current.useState(e)};he.useSyncExternalStore=function(e,t,n){return ct.current.useSyncExternalStore(e,t,n)};he.useTransition=function(){return ct.current.useTransition()};he.version="18.3.1";Lm.exports=he;var U=Lm.exports;const Ao=lc(U),t0=Fx({__proto__:null,default:Ao},[U]);/**
16
16
  * @license React
17
17
  * react-jsx-runtime.production.min.js
18
18
  *
@@ -20,7 +20,7 @@
20
20
  *
21
21
  * This source code is licensed under the MIT license found in the
22
22
  * LICENSE file in the root directory of this source tree.
23
- */var t0=U,n0=Symbol.for("react.element"),r0=Symbol.for("react.fragment"),i0=Object.prototype.hasOwnProperty,o0=t0.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s0={key:!0,ref:!0,__self:!0,__source:!0};function qm(e,t,n){var r,i={},o=null,s=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)i0.call(t,r)&&!s0.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:n0,type:e,key:o,ref:s,props:i,_owner:o0.current}}_l.Fragment=r0;_l.jsx=qm;_l.jsxs=qm;Mm.exports=_l;var h=Mm.exports,Wm={exports:{}},Tt={},Zm={exports:{}},Gm={};/**
23
+ */var n0=U,r0=Symbol.for("react.element"),i0=Symbol.for("react.fragment"),o0=Object.prototype.hasOwnProperty,s0=n0.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l0={key:!0,ref:!0,__self:!0,__source:!0};function qm(e,t,n){var r,i={},o=null,s=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)o0.call(t,r)&&!l0.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:r0,type:e,key:o,ref:s,props:i,_owner:s0.current}}_l.Fragment=i0;_l.jsx=qm;_l.jsxs=qm;Mm.exports=_l;var h=Mm.exports,Wm={exports:{}},Tt={},Zm={exports:{}},Gm={};/**
24
24
  * @license React
25
25
  * scheduler.production.min.js
26
26
  *
@@ -28,7 +28,7 @@
28
28
  *
29
29
  * This source code is licensed under the MIT license found in the
30
30
  * LICENSE file in the root directory of this source tree.
31
- */(function(e){function t(D,W){var k=D.length;D.push(W);e:for(;0<k;){var ae=k-1>>>1,ye=D[ae];if(0<i(ye,W))D[ae]=W,D[k]=ye,k=ae;else break e}}function n(D){return D.length===0?null:D[0]}function r(D){if(D.length===0)return null;var W=D[0],k=D.pop();if(k!==W){D[0]=k;e:for(var ae=0,ye=D.length,_=ye>>>1;ae<_;){var Re=2*(ae+1)-1,Ce=D[Re],ue=Re+1,ot=D[ue];if(0>i(Ce,k))ue<ye&&0>i(ot,Ce)?(D[ae]=ot,D[ue]=k,ae=ue):(D[ae]=Ce,D[Re]=k,ae=Re);else if(ue<ye&&0>i(ot,k))D[ae]=ot,D[ue]=k,ae=ue;else break e}}return W}function i(D,W){var k=D.sortIndex-W.sortIndex;return k!==0?k:D.id-W.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var s=Date,l=s.now();e.unstable_now=function(){return s.now()-l}}var a=[],u=[],f=1,d=null,m=3,p=!1,x=!1,b=!1,I=typeof setTimeout=="function"?setTimeout:null,y=typeof clearTimeout=="function"?clearTimeout:null,v=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function w(D){for(var W=n(u);W!==null;){if(W.callback===null)r(u);else if(W.startTime<=D)r(u),W.sortIndex=W.expirationTime,t(a,W);else break;W=n(u)}}function N(D){if(b=!1,w(D),!x)if(n(a)!==null)x=!0,K(j);else{var W=n(u);W!==null&&se(N,W.startTime-D)}}function j(D,W){x=!1,b&&(b=!1,y(E),E=-1),p=!0;var k=m;try{for(w(W),d=n(a);d!==null&&(!(d.expirationTime>W)||D&&!O());){var ae=d.callback;if(typeof ae=="function"){d.callback=null,m=d.priorityLevel;var ye=ae(d.expirationTime<=W);W=e.unstable_now(),typeof ye=="function"?d.callback=ye:d===n(a)&&r(a),w(W)}else r(a);d=n(a)}if(d!==null)var _=!0;else{var Re=n(u);Re!==null&&se(N,Re.startTime-W),_=!1}return _}finally{d=null,m=k,p=!1}}var S=!1,A=null,E=-1,$=5,C=-1;function O(){return!(e.unstable_now()-C<$)}function z(){if(A!==null){var D=e.unstable_now();C=D;var W=!0;try{W=A(!0,D)}finally{W?oe():(S=!1,A=null)}}else S=!1}var oe;if(typeof v=="function")oe=function(){v(z)};else if(typeof MessageChannel<"u"){var Z=new MessageChannel,te=Z.port2;Z.port1.onmessage=z,oe=function(){te.postMessage(null)}}else oe=function(){I(z,0)};function K(D){A=D,S||(S=!0,oe())}function se(D,W){E=I(function(){D(e.unstable_now())},W)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(D){D.callback=null},e.unstable_continueExecution=function(){x||p||(x=!0,K(j))},e.unstable_forceFrameRate=function(D){0>D||125<D?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):$=0<D?Math.floor(1e3/D):5},e.unstable_getCurrentPriorityLevel=function(){return m},e.unstable_getFirstCallbackNode=function(){return n(a)},e.unstable_next=function(D){switch(m){case 1:case 2:case 3:var W=3;break;default:W=m}var k=m;m=W;try{return D()}finally{m=k}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(D,W){switch(D){case 1:case 2:case 3:case 4:case 5:break;default:D=3}var k=m;m=D;try{return W()}finally{m=k}},e.unstable_scheduleCallback=function(D,W,k){var ae=e.unstable_now();switch(typeof k=="object"&&k!==null?(k=k.delay,k=typeof k=="number"&&0<k?ae+k:ae):k=ae,D){case 1:var ye=-1;break;case 2:ye=250;break;case 5:ye=1073741823;break;case 4:ye=1e4;break;default:ye=5e3}return ye=k+ye,D={id:f++,callback:W,priorityLevel:D,startTime:k,expirationTime:ye,sortIndex:-1},k>ae?(D.sortIndex=k,t(u,D),n(a)===null&&D===n(u)&&(b?(y(E),E=-1):b=!0,se(N,k-ae))):(D.sortIndex=ye,t(a,D),x||p||(x=!0,K(j))),D},e.unstable_shouldYield=O,e.unstable_wrapCallback=function(D){var W=m;return function(){var k=m;m=W;try{return D.apply(this,arguments)}finally{m=k}}}})(Gm);Zm.exports=Gm;var l0=Zm.exports;/**
31
+ */(function(e){function t(D,W){var k=D.length;D.push(W);e:for(;0<k;){var ae=k-1>>>1,ye=D[ae];if(0<i(ye,W))D[ae]=W,D[k]=ye,k=ae;else break e}}function n(D){return D.length===0?null:D[0]}function r(D){if(D.length===0)return null;var W=D[0],k=D.pop();if(k!==W){D[0]=k;e:for(var ae=0,ye=D.length,_=ye>>>1;ae<_;){var Re=2*(ae+1)-1,Ce=D[Re],ue=Re+1,ot=D[ue];if(0>i(Ce,k))ue<ye&&0>i(ot,Ce)?(D[ae]=ot,D[ue]=k,ae=ue):(D[ae]=Ce,D[Re]=k,ae=Re);else if(ue<ye&&0>i(ot,k))D[ae]=ot,D[ue]=k,ae=ue;else break e}}return W}function i(D,W){var k=D.sortIndex-W.sortIndex;return k!==0?k:D.id-W.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var s=Date,l=s.now();e.unstable_now=function(){return s.now()-l}}var a=[],u=[],f=1,d=null,m=3,p=!1,x=!1,b=!1,I=typeof setTimeout=="function"?setTimeout:null,y=typeof clearTimeout=="function"?clearTimeout:null,v=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function w(D){for(var W=n(u);W!==null;){if(W.callback===null)r(u);else if(W.startTime<=D)r(u),W.sortIndex=W.expirationTime,t(a,W);else break;W=n(u)}}function N(D){if(b=!1,w(D),!x)if(n(a)!==null)x=!0,K(j);else{var W=n(u);W!==null&&se(N,W.startTime-D)}}function j(D,W){x=!1,b&&(b=!1,y(E),E=-1),p=!0;var k=m;try{for(w(W),d=n(a);d!==null&&(!(d.expirationTime>W)||D&&!O());){var ae=d.callback;if(typeof ae=="function"){d.callback=null,m=d.priorityLevel;var ye=ae(d.expirationTime<=W);W=e.unstable_now(),typeof ye=="function"?d.callback=ye:d===n(a)&&r(a),w(W)}else r(a);d=n(a)}if(d!==null)var _=!0;else{var Re=n(u);Re!==null&&se(N,Re.startTime-W),_=!1}return _}finally{d=null,m=k,p=!1}}var S=!1,A=null,E=-1,$=5,C=-1;function O(){return!(e.unstable_now()-C<$)}function z(){if(A!==null){var D=e.unstable_now();C=D;var W=!0;try{W=A(!0,D)}finally{W?oe():(S=!1,A=null)}}else S=!1}var oe;if(typeof v=="function")oe=function(){v(z)};else if(typeof MessageChannel<"u"){var Z=new MessageChannel,te=Z.port2;Z.port1.onmessage=z,oe=function(){te.postMessage(null)}}else oe=function(){I(z,0)};function K(D){A=D,S||(S=!0,oe())}function se(D,W){E=I(function(){D(e.unstable_now())},W)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(D){D.callback=null},e.unstable_continueExecution=function(){x||p||(x=!0,K(j))},e.unstable_forceFrameRate=function(D){0>D||125<D?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):$=0<D?Math.floor(1e3/D):5},e.unstable_getCurrentPriorityLevel=function(){return m},e.unstable_getFirstCallbackNode=function(){return n(a)},e.unstable_next=function(D){switch(m){case 1:case 2:case 3:var W=3;break;default:W=m}var k=m;m=W;try{return D()}finally{m=k}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(D,W){switch(D){case 1:case 2:case 3:case 4:case 5:break;default:D=3}var k=m;m=D;try{return W()}finally{m=k}},e.unstable_scheduleCallback=function(D,W,k){var ae=e.unstable_now();switch(typeof k=="object"&&k!==null?(k=k.delay,k=typeof k=="number"&&0<k?ae+k:ae):k=ae,D){case 1:var ye=-1;break;case 2:ye=250;break;case 5:ye=1073741823;break;case 4:ye=1e4;break;default:ye=5e3}return ye=k+ye,D={id:f++,callback:W,priorityLevel:D,startTime:k,expirationTime:ye,sortIndex:-1},k>ae?(D.sortIndex=k,t(u,D),n(a)===null&&D===n(u)&&(b?(y(E),E=-1):b=!0,se(N,k-ae))):(D.sortIndex=ye,t(a,D),x||p||(x=!0,K(j))),D},e.unstable_shouldYield=O,e.unstable_wrapCallback=function(D){var W=m;return function(){var k=m;m=W;try{return D.apply(this,arguments)}finally{m=k}}}})(Gm);Zm.exports=Gm;var a0=Zm.exports;/**
32
32
  * @license React
33
33
  * react-dom.production.min.js
34
34
  *
@@ -36,14 +36,14 @@
36
36
  *
37
37
  * This source code is licensed under the MIT license found in the
38
38
  * LICENSE file in the root directory of this source tree.
39
- */var a0=U,Nt=l0;function F(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Qm=new Set,oo={};function Ar(e,t){ui(e,t),ui(e+"Capture",t)}function ui(e,t){for(oo[e]=t,e=0;e<t.length;e++)Qm.add(t[e])}var _n=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ua=Object.prototype.hasOwnProperty,u0=/^[: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]*$/,Gd={},Qd={};function c0(e){return Ua.call(Qd,e)?!0:Ua.call(Gd,e)?!1:u0.test(e)?Qd[e]=!0:(Gd[e]=!0,!1)}function d0(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function f0(e,t,n,r){if(t===null||typeof t>"u"||d0(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function dt(e,t,n,r,i,o,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=s}var Xe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Xe[e]=new dt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Xe[t]=new dt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Xe[e]=new dt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Xe[e]=new dt(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Xe[e]=new dt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Xe[e]=new dt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Xe[e]=new dt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Xe[e]=new dt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Xe[e]=new dt(e,5,!1,e.toLowerCase(),null,!1,!1)});var fc=/[\-:]([a-z])/g;function pc(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(fc,pc);Xe[t]=new dt(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(fc,pc);Xe[t]=new dt(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(fc,pc);Xe[t]=new dt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Xe[e]=new dt(e,1,!1,e.toLowerCase(),null,!1,!1)});Xe.xlinkHref=new dt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Xe[e]=new dt(e,1,!1,e.toLowerCase(),null,!0,!0)});function mc(e,t,n,r){var i=Xe.hasOwnProperty(t)?Xe[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(f0(t,n,i,r)&&(n=null),r||i===null?c0(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:"":n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var jn=a0.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,qo=Symbol.for("react.element"),Br=Symbol.for("react.portal"),Vr=Symbol.for("react.fragment"),hc=Symbol.for("react.strict_mode"),Ba=Symbol.for("react.profiler"),Km=Symbol.for("react.provider"),Ym=Symbol.for("react.context"),gc=Symbol.for("react.forward_ref"),Va=Symbol.for("react.suspense"),Ha=Symbol.for("react.suspense_list"),yc=Symbol.for("react.memo"),Ln=Symbol.for("react.lazy"),Xm=Symbol.for("react.offscreen"),Kd=Symbol.iterator;function Ai(e){return e===null||typeof e!="object"?null:(e=Kd&&e[Kd]||e["@@iterator"],typeof e=="function"?e:null)}var Le=Object.assign,Ql;function Bi(e){if(Ql===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Ql=t&&t[1]||""}return`
39
+ */var u0=U,Nt=a0;function F(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Qm=new Set,oo={};function Ar(e,t){ui(e,t),ui(e+"Capture",t)}function ui(e,t){for(oo[e]=t,e=0;e<t.length;e++)Qm.add(t[e])}var _n=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ua=Object.prototype.hasOwnProperty,c0=/^[: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]*$/,Gd={},Qd={};function d0(e){return Ua.call(Qd,e)?!0:Ua.call(Gd,e)?!1:c0.test(e)?Qd[e]=!0:(Gd[e]=!0,!1)}function f0(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function p0(e,t,n,r){if(t===null||typeof t>"u"||f0(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function dt(e,t,n,r,i,o,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=s}var Xe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Xe[e]=new dt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Xe[t]=new dt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Xe[e]=new dt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Xe[e]=new dt(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Xe[e]=new dt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Xe[e]=new dt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Xe[e]=new dt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Xe[e]=new dt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Xe[e]=new dt(e,5,!1,e.toLowerCase(),null,!1,!1)});var fc=/[\-:]([a-z])/g;function pc(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(fc,pc);Xe[t]=new dt(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(fc,pc);Xe[t]=new dt(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(fc,pc);Xe[t]=new dt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Xe[e]=new dt(e,1,!1,e.toLowerCase(),null,!1,!1)});Xe.xlinkHref=new dt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Xe[e]=new dt(e,1,!1,e.toLowerCase(),null,!0,!0)});function mc(e,t,n,r){var i=Xe.hasOwnProperty(t)?Xe[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(p0(t,n,i,r)&&(n=null),r||i===null?d0(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:"":n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var jn=u0.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,qo=Symbol.for("react.element"),Br=Symbol.for("react.portal"),Vr=Symbol.for("react.fragment"),hc=Symbol.for("react.strict_mode"),Ba=Symbol.for("react.profiler"),Km=Symbol.for("react.provider"),Ym=Symbol.for("react.context"),gc=Symbol.for("react.forward_ref"),Va=Symbol.for("react.suspense"),Ha=Symbol.for("react.suspense_list"),yc=Symbol.for("react.memo"),Ln=Symbol.for("react.lazy"),Xm=Symbol.for("react.offscreen"),Kd=Symbol.iterator;function Ai(e){return e===null||typeof e!="object"?null:(e=Kd&&e[Kd]||e["@@iterator"],typeof e=="function"?e:null)}var Le=Object.assign,Ql;function Bi(e){if(Ql===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Ql=t&&t[1]||""}return`
40
40
  `+Ql+e}var Kl=!1;function Yl(e,t){if(!e||Kl)return"";Kl=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var i=u.stack.split(`
41
41
  `),o=r.stack.split(`
42
42
  `),s=i.length-1,l=o.length-1;1<=s&&0<=l&&i[s]!==o[l];)l--;for(;1<=s&&0<=l;s--,l--)if(i[s]!==o[l]){if(s!==1||l!==1)do if(s--,l--,0>l||i[s]!==o[l]){var a=`
43
- `+i[s].replace(" at new "," at ");return e.displayName&&a.includes("<anonymous>")&&(a=a.replace("<anonymous>",e.displayName)),a}while(1<=s&&0<=l);break}}}finally{Kl=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Bi(e):""}function p0(e){switch(e.tag){case 5:return Bi(e.type);case 16:return Bi("Lazy");case 13:return Bi("Suspense");case 19:return Bi("SuspenseList");case 0:case 2:case 15:return e=Yl(e.type,!1),e;case 11:return e=Yl(e.type.render,!1),e;case 1:return e=Yl(e.type,!0),e;default:return""}}function qa(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Vr:return"Fragment";case Br:return"Portal";case Ba:return"Profiler";case hc:return"StrictMode";case Va:return"Suspense";case Ha:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Ym:return(e.displayName||"Context")+".Consumer";case Km:return(e._context.displayName||"Context")+".Provider";case gc:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case yc:return t=e.displayName||null,t!==null?t:qa(e.type)||"Memo";case Ln:t=e._payload,e=e._init;try{return qa(e(t))}catch{}}return null}function m0(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return qa(t);case 8:return t===hc?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Jn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Jm(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function h0(e){var t=Jm(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(s){r=""+s,o.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Wo(e){e._valueTracker||(e._valueTracker=h0(e))}function eh(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Jm(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function zs(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Wa(e,t){var n=t.checked;return Le({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Yd(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Jn(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function th(e,t){t=t.checked,t!=null&&mc(e,"checked",t,!1)}function Za(e,t){th(e,t);var n=Jn(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Ga(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ga(e,t.type,Jn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Xd(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Ga(e,t,n){(t!=="number"||zs(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Vi=Array.isArray;function ei(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Jn(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Qa(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(F(91));return Le({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Jd(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(F(92));if(Vi(n)){if(1<n.length)throw Error(F(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Jn(n)}}function nh(e,t){var n=Jn(t.value),r=Jn(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function ef(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function rh(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Ka(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?rh(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Zo,ih=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Zo=Zo||document.createElement("div"),Zo.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Zo.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function so(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Zi={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},g0=["Webkit","ms","Moz","O"];Object.keys(Zi).forEach(function(e){g0.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Zi[t]=Zi[e]})});function oh(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Zi.hasOwnProperty(e)&&Zi[e]?(""+t).trim():t+"px"}function sh(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=oh(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var y0=Le({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Ya(e,t){if(t){if(y0[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(F(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(F(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(F(61))}if(t.style!=null&&typeof t.style!="object")throw Error(F(62))}}function Xa(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Ja=null;function xc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var eu=null,ti=null,ni=null;function tf(e){if(e=zo(e)){if(typeof eu!="function")throw Error(F(280));var t=e.stateNode;t&&(t=Tl(t),eu(e.stateNode,e.type,t))}}function lh(e){ti?ni?ni.push(e):ni=[e]:ti=e}function ah(){if(ti){var e=ti,t=ni;if(ni=ti=null,tf(e),t)for(e=0;e<t.length;e++)tf(t[e])}}function uh(e,t){return e(t)}function ch(){}var Xl=!1;function dh(e,t,n){if(Xl)return e(t,n);Xl=!0;try{return uh(e,t,n)}finally{Xl=!1,(ti!==null||ni!==null)&&(ch(),ah())}}function lo(e,t){var n=e.stateNode;if(n===null)return null;var r=Tl(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(F(231,t,typeof n));return n}var tu=!1;if(_n)try{var Pi={};Object.defineProperty(Pi,"passive",{get:function(){tu=!0}}),window.addEventListener("test",Pi,Pi),window.removeEventListener("test",Pi,Pi)}catch{tu=!1}function x0(e,t,n,r,i,o,s,l,a){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(f){this.onError(f)}}var Gi=!1,Ms=null,Ls=!1,nu=null,v0={onError:function(e){Gi=!0,Ms=e}};function k0(e,t,n,r,i,o,s,l,a){Gi=!1,Ms=null,x0.apply(v0,arguments)}function w0(e,t,n,r,i,o,s,l,a){if(k0.apply(this,arguments),Gi){if(Gi){var u=Ms;Gi=!1,Ms=null}else throw Error(F(198));Ls||(Ls=!0,nu=u)}}function Pr(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function fh(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 nf(e){if(Pr(e)!==e)throw Error(F(188))}function b0(e){var t=e.alternate;if(!t){if(t=Pr(e),t===null)throw Error(F(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var o=i.alternate;if(o===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return nf(i),e;if(o===r)return nf(i),t;o=o.sibling}throw Error(F(188))}if(n.return!==r.return)n=i,r=o;else{for(var s=!1,l=i.child;l;){if(l===n){s=!0,n=i,r=o;break}if(l===r){s=!0,r=i,n=o;break}l=l.sibling}if(!s){for(l=o.child;l;){if(l===n){s=!0,n=o,r=i;break}if(l===r){s=!0,r=o,n=i;break}l=l.sibling}if(!s)throw Error(F(189))}}if(n.alternate!==r)throw Error(F(190))}if(n.tag!==3)throw Error(F(188));return n.stateNode.current===n?e:t}function ph(e){return e=b0(e),e!==null?mh(e):null}function mh(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=mh(e);if(t!==null)return t;e=e.sibling}return null}var hh=Nt.unstable_scheduleCallback,rf=Nt.unstable_cancelCallback,S0=Nt.unstable_shouldYield,_0=Nt.unstable_requestPaint,De=Nt.unstable_now,C0=Nt.unstable_getCurrentPriorityLevel,vc=Nt.unstable_ImmediatePriority,gh=Nt.unstable_UserBlockingPriority,Os=Nt.unstable_NormalPriority,I0=Nt.unstable_LowPriority,yh=Nt.unstable_IdlePriority,Cl=null,tn=null;function N0(e){if(tn&&typeof tn.onCommitFiberRoot=="function")try{tn.onCommitFiberRoot(Cl,e,void 0,(e.current.flags&128)===128)}catch{}}var qt=Math.clz32?Math.clz32:j0,E0=Math.log,T0=Math.LN2;function j0(e){return e>>>=0,e===0?32:31-(E0(e)/T0|0)|0}var Go=64,Qo=4194304;function Hi(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Ds(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,s=n&268435455;if(s!==0){var l=s&~i;l!==0?r=Hi(l):(o&=s,o!==0&&(r=Hi(o)))}else s=n&~i,s!==0?r=Hi(s):o!==0&&(r=Hi(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-qt(t),i=1<<n,r|=e[n],t&=~i;return r}function A0(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function P0(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var s=31-qt(o),l=1<<s,a=i[s];a===-1?(!(l&n)||l&r)&&(i[s]=A0(l,t)):a<=t&&(e.expiredLanes|=l),o&=~l}}function ru(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function xh(){var e=Go;return Go<<=1,!(Go&4194240)&&(Go=64),e}function Jl(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Po(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-qt(t),e[t]=n}function R0(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-qt(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}function kc(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-qt(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var Se=0;function vh(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var kh,wc,wh,bh,Sh,iu=!1,Ko=[],Hn=null,qn=null,Wn=null,ao=new Map,uo=new Map,Fn=[],z0="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function of(e,t){switch(e){case"focusin":case"focusout":Hn=null;break;case"dragenter":case"dragleave":qn=null;break;case"mouseover":case"mouseout":Wn=null;break;case"pointerover":case"pointerout":ao.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":uo.delete(t.pointerId)}}function Ri(e,t,n,r,i,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},t!==null&&(t=zo(t),t!==null&&wc(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function M0(e,t,n,r,i){switch(t){case"focusin":return Hn=Ri(Hn,e,t,n,r,i),!0;case"dragenter":return qn=Ri(qn,e,t,n,r,i),!0;case"mouseover":return Wn=Ri(Wn,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return ao.set(o,Ri(ao.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,uo.set(o,Ri(uo.get(o)||null,e,t,n,r,i)),!0}return!1}function _h(e){var t=hr(e.target);if(t!==null){var n=Pr(t);if(n!==null){if(t=n.tag,t===13){if(t=fh(n),t!==null){e.blockedOn=t,Sh(e.priority,function(){wh(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function vs(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=ou(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Ja=r,n.target.dispatchEvent(r),Ja=null}else return t=zo(n),t!==null&&wc(t),e.blockedOn=n,!1;t.shift()}return!0}function sf(e,t,n){vs(e)&&n.delete(t)}function L0(){iu=!1,Hn!==null&&vs(Hn)&&(Hn=null),qn!==null&&vs(qn)&&(qn=null),Wn!==null&&vs(Wn)&&(Wn=null),ao.forEach(sf),uo.forEach(sf)}function zi(e,t){e.blockedOn===t&&(e.blockedOn=null,iu||(iu=!0,Nt.unstable_scheduleCallback(Nt.unstable_NormalPriority,L0)))}function co(e){function t(i){return zi(i,e)}if(0<Ko.length){zi(Ko[0],e);for(var n=1;n<Ko.length;n++){var r=Ko[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Hn!==null&&zi(Hn,e),qn!==null&&zi(qn,e),Wn!==null&&zi(Wn,e),ao.forEach(t),uo.forEach(t),n=0;n<Fn.length;n++)r=Fn[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Fn.length&&(n=Fn[0],n.blockedOn===null);)_h(n),n.blockedOn===null&&Fn.shift()}var ri=jn.ReactCurrentBatchConfig,Fs=!0;function O0(e,t,n,r){var i=Se,o=ri.transition;ri.transition=null;try{Se=1,bc(e,t,n,r)}finally{Se=i,ri.transition=o}}function D0(e,t,n,r){var i=Se,o=ri.transition;ri.transition=null;try{Se=4,bc(e,t,n,r)}finally{Se=i,ri.transition=o}}function bc(e,t,n,r){if(Fs){var i=ou(e,t,n,r);if(i===null)ua(e,t,r,$s,n),of(e,r);else if(M0(i,e,t,n,r))r.stopPropagation();else if(of(e,r),t&4&&-1<z0.indexOf(e)){for(;i!==null;){var o=zo(i);if(o!==null&&kh(o),o=ou(e,t,n,r),o===null&&ua(e,t,r,$s,n),o===i)break;i=o}i!==null&&r.stopPropagation()}else ua(e,t,r,null,n)}}var $s=null;function ou(e,t,n,r){if($s=null,e=xc(r),e=hr(e),e!==null)if(t=Pr(e),t===null)e=null;else if(n=t.tag,n===13){if(e=fh(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return $s=e,null}function Ch(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(C0()){case vc:return 1;case gh:return 4;case Os:case I0:return 16;case yh:return 536870912;default:return 16}default:return 16}}var Un=null,Sc=null,ks=null;function Ih(){if(ks)return ks;var e,t=Sc,n=t.length,r,i="value"in Un?Un.value:Un.textContent,o=i.length;for(e=0;e<n&&t[e]===i[e];e++);var s=n-e;for(r=1;r<=s&&t[n-r]===i[o-r];r++);return ks=i.slice(e,1<r?1-r:void 0)}function ws(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 Yo(){return!0}function lf(){return!1}function jt(e){function t(n,r,i,o,s){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=o,this.target=s,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(n=e[l],this[l]=n?n(o):o[l]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?Yo:lf,this.isPropagationStopped=lf,this}return Le(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Yo)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Yo)},persist:function(){},isPersistent:Yo}),t}var wi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},_c=jt(wi),Ro=Le({},wi,{view:0,detail:0}),F0=jt(Ro),ea,ta,Mi,Il=Le({},Ro,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Cc,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!==Mi&&(Mi&&e.type==="mousemove"?(ea=e.screenX-Mi.screenX,ta=e.screenY-Mi.screenY):ta=ea=0,Mi=e),ea)},movementY:function(e){return"movementY"in e?e.movementY:ta}}),af=jt(Il),$0=Le({},Il,{dataTransfer:0}),U0=jt($0),B0=Le({},Ro,{relatedTarget:0}),na=jt(B0),V0=Le({},wi,{animationName:0,elapsedTime:0,pseudoElement:0}),H0=jt(V0),q0=Le({},wi,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),W0=jt(q0),Z0=Le({},wi,{data:0}),uf=jt(Z0),G0={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Q0={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"},K0={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Y0(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=K0[e])?!!t[e]:!1}function Cc(){return Y0}var X0=Le({},Ro,{key:function(e){if(e.key){var t=G0[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ws(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Q0[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Cc,charCode:function(e){return e.type==="keypress"?ws(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ws(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),J0=jt(X0),ev=Le({},Il,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),cf=jt(ev),tv=Le({},Ro,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Cc}),nv=jt(tv),rv=Le({},wi,{propertyName:0,elapsedTime:0,pseudoElement:0}),iv=jt(rv),ov=Le({},Il,{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}),sv=jt(ov),lv=[9,13,27,32],Ic=_n&&"CompositionEvent"in window,Qi=null;_n&&"documentMode"in document&&(Qi=document.documentMode);var av=_n&&"TextEvent"in window&&!Qi,Nh=_n&&(!Ic||Qi&&8<Qi&&11>=Qi),df=" ",ff=!1;function Eh(e,t){switch(e){case"keyup":return lv.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Th(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Hr=!1;function uv(e,t){switch(e){case"compositionend":return Th(t);case"keypress":return t.which!==32?null:(ff=!0,df);case"textInput":return e=t.data,e===df&&ff?null:e;default:return null}}function cv(e,t){if(Hr)return e==="compositionend"||!Ic&&Eh(e,t)?(e=Ih(),ks=Sc=Un=null,Hr=!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 Nh&&t.locale!=="ko"?null:t.data;default:return null}}var dv={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 pf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!dv[e.type]:t==="textarea"}function jh(e,t,n,r){lh(r),t=Us(t,"onChange"),0<t.length&&(n=new _c("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Ki=null,fo=null;function fv(e){Uh(e,0)}function Nl(e){var t=Zr(e);if(eh(t))return e}function pv(e,t){if(e==="change")return t}var Ah=!1;if(_n){var ra;if(_n){var ia="oninput"in document;if(!ia){var mf=document.createElement("div");mf.setAttribute("oninput","return;"),ia=typeof mf.oninput=="function"}ra=ia}else ra=!1;Ah=ra&&(!document.documentMode||9<document.documentMode)}function hf(){Ki&&(Ki.detachEvent("onpropertychange",Ph),fo=Ki=null)}function Ph(e){if(e.propertyName==="value"&&Nl(fo)){var t=[];jh(t,fo,e,xc(e)),dh(fv,t)}}function mv(e,t,n){e==="focusin"?(hf(),Ki=t,fo=n,Ki.attachEvent("onpropertychange",Ph)):e==="focusout"&&hf()}function hv(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Nl(fo)}function gv(e,t){if(e==="click")return Nl(t)}function yv(e,t){if(e==="input"||e==="change")return Nl(t)}function xv(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Gt=typeof Object.is=="function"?Object.is:xv;function po(e,t){if(Gt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!Ua.call(t,i)||!Gt(e[i],t[i]))return!1}return!0}function gf(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function yf(e,t){var n=gf(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=gf(n)}}function Rh(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Rh(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function zh(){for(var e=window,t=zs();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=zs(e.document)}return t}function Nc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function vv(e){var t=zh(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Rh(n.ownerDocument.documentElement,n)){if(r!==null&&Nc(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=yf(n,o);var s=yf(n,r);i&&s&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var kv=_n&&"documentMode"in document&&11>=document.documentMode,qr=null,su=null,Yi=null,lu=!1;function xf(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;lu||qr==null||qr!==zs(r)||(r=qr,"selectionStart"in r&&Nc(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Yi&&po(Yi,r)||(Yi=r,r=Us(su,"onSelect"),0<r.length&&(t=new _c("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=qr)))}function Xo(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Wr={animationend:Xo("Animation","AnimationEnd"),animationiteration:Xo("Animation","AnimationIteration"),animationstart:Xo("Animation","AnimationStart"),transitionend:Xo("Transition","TransitionEnd")},oa={},Mh={};_n&&(Mh=document.createElement("div").style,"AnimationEvent"in window||(delete Wr.animationend.animation,delete Wr.animationiteration.animation,delete Wr.animationstart.animation),"TransitionEvent"in window||delete Wr.transitionend.transition);function El(e){if(oa[e])return oa[e];if(!Wr[e])return e;var t=Wr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Mh)return oa[e]=t[n];return e}var Lh=El("animationend"),Oh=El("animationiteration"),Dh=El("animationstart"),Fh=El("transitionend"),$h=new Map,vf="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function rr(e,t){$h.set(e,t),Ar(t,[e])}for(var sa=0;sa<vf.length;sa++){var la=vf[sa],wv=la.toLowerCase(),bv=la[0].toUpperCase()+la.slice(1);rr(wv,"on"+bv)}rr(Lh,"onAnimationEnd");rr(Oh,"onAnimationIteration");rr(Dh,"onAnimationStart");rr("dblclick","onDoubleClick");rr("focusin","onFocus");rr("focusout","onBlur");rr(Fh,"onTransitionEnd");ui("onMouseEnter",["mouseout","mouseover"]);ui("onMouseLeave",["mouseout","mouseover"]);ui("onPointerEnter",["pointerout","pointerover"]);ui("onPointerLeave",["pointerout","pointerover"]);Ar("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Ar("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Ar("onBeforeInput",["compositionend","keypress","textInput","paste"]);Ar("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Ar("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Ar("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var qi="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(" "),Sv=new Set("cancel close invalid load scroll toggle".split(" ").concat(qi));function kf(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,w0(r,t,void 0,e),e.currentTarget=null}function Uh(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var s=r.length-1;0<=s;s--){var l=r[s],a=l.instance,u=l.currentTarget;if(l=l.listener,a!==o&&i.isPropagationStopped())break e;kf(i,l,u),o=a}else for(s=0;s<r.length;s++){if(l=r[s],a=l.instance,u=l.currentTarget,l=l.listener,a!==o&&i.isPropagationStopped())break e;kf(i,l,u),o=a}}}if(Ls)throw e=nu,Ls=!1,nu=null,e}function je(e,t){var n=t[fu];n===void 0&&(n=t[fu]=new Set);var r=e+"__bubble";n.has(r)||(Bh(t,e,2,!1),n.add(r))}function aa(e,t,n){var r=0;t&&(r|=4),Bh(n,e,r,t)}var Jo="_reactListening"+Math.random().toString(36).slice(2);function mo(e){if(!e[Jo]){e[Jo]=!0,Qm.forEach(function(n){n!=="selectionchange"&&(Sv.has(n)||aa(n,!1,e),aa(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Jo]||(t[Jo]=!0,aa("selectionchange",!1,t))}}function Bh(e,t,n,r){switch(Ch(t)){case 1:var i=O0;break;case 4:i=D0;break;default:i=bc}n=i.bind(null,t,n,e),i=void 0,!tu||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function ua(e,t,n,r,i){var o=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var l=r.stateNode.containerInfo;if(l===i||l.nodeType===8&&l.parentNode===i)break;if(s===4)for(s=r.return;s!==null;){var a=s.tag;if((a===3||a===4)&&(a=s.stateNode.containerInfo,a===i||a.nodeType===8&&a.parentNode===i))return;s=s.return}for(;l!==null;){if(s=hr(l),s===null)return;if(a=s.tag,a===5||a===6){r=o=s;continue e}l=l.parentNode}}r=r.return}dh(function(){var u=o,f=xc(n),d=[];e:{var m=$h.get(e);if(m!==void 0){var p=_c,x=e;switch(e){case"keypress":if(ws(n)===0)break e;case"keydown":case"keyup":p=J0;break;case"focusin":x="focus",p=na;break;case"focusout":x="blur",p=na;break;case"beforeblur":case"afterblur":p=na;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":p=af;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":p=U0;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":p=nv;break;case Lh:case Oh:case Dh:p=H0;break;case Fh:p=iv;break;case"scroll":p=F0;break;case"wheel":p=sv;break;case"copy":case"cut":case"paste":p=W0;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":p=cf}var b=(t&4)!==0,I=!b&&e==="scroll",y=b?m!==null?m+"Capture":null:m;b=[];for(var v=u,w;v!==null;){w=v;var N=w.stateNode;if(w.tag===5&&N!==null&&(w=N,y!==null&&(N=lo(v,y),N!=null&&b.push(ho(v,N,w)))),I)break;v=v.return}0<b.length&&(m=new p(m,x,null,n,f),d.push({event:m,listeners:b}))}}if(!(t&7)){e:{if(m=e==="mouseover"||e==="pointerover",p=e==="mouseout"||e==="pointerout",m&&n!==Ja&&(x=n.relatedTarget||n.fromElement)&&(hr(x)||x[Cn]))break e;if((p||m)&&(m=f.window===f?f:(m=f.ownerDocument)?m.defaultView||m.parentWindow:window,p?(x=n.relatedTarget||n.toElement,p=u,x=x?hr(x):null,x!==null&&(I=Pr(x),x!==I||x.tag!==5&&x.tag!==6)&&(x=null)):(p=null,x=u),p!==x)){if(b=af,N="onMouseLeave",y="onMouseEnter",v="mouse",(e==="pointerout"||e==="pointerover")&&(b=cf,N="onPointerLeave",y="onPointerEnter",v="pointer"),I=p==null?m:Zr(p),w=x==null?m:Zr(x),m=new b(N,v+"leave",p,n,f),m.target=I,m.relatedTarget=w,N=null,hr(f)===u&&(b=new b(y,v+"enter",x,n,f),b.target=w,b.relatedTarget=I,N=b),I=N,p&&x)t:{for(b=p,y=x,v=0,w=b;w;w=Dr(w))v++;for(w=0,N=y;N;N=Dr(N))w++;for(;0<v-w;)b=Dr(b),v--;for(;0<w-v;)y=Dr(y),w--;for(;v--;){if(b===y||y!==null&&b===y.alternate)break t;b=Dr(b),y=Dr(y)}b=null}else b=null;p!==null&&wf(d,m,p,b,!1),x!==null&&I!==null&&wf(d,I,x,b,!0)}}e:{if(m=u?Zr(u):window,p=m.nodeName&&m.nodeName.toLowerCase(),p==="select"||p==="input"&&m.type==="file")var j=pv;else if(pf(m))if(Ah)j=yv;else{j=hv;var S=mv}else(p=m.nodeName)&&p.toLowerCase()==="input"&&(m.type==="checkbox"||m.type==="radio")&&(j=gv);if(j&&(j=j(e,u))){jh(d,j,n,f);break e}S&&S(e,m,u),e==="focusout"&&(S=m._wrapperState)&&S.controlled&&m.type==="number"&&Ga(m,"number",m.value)}switch(S=u?Zr(u):window,e){case"focusin":(pf(S)||S.contentEditable==="true")&&(qr=S,su=u,Yi=null);break;case"focusout":Yi=su=qr=null;break;case"mousedown":lu=!0;break;case"contextmenu":case"mouseup":case"dragend":lu=!1,xf(d,n,f);break;case"selectionchange":if(kv)break;case"keydown":case"keyup":xf(d,n,f)}var A;if(Ic)e:{switch(e){case"compositionstart":var E="onCompositionStart";break e;case"compositionend":E="onCompositionEnd";break e;case"compositionupdate":E="onCompositionUpdate";break e}E=void 0}else Hr?Eh(e,n)&&(E="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(E="onCompositionStart");E&&(Nh&&n.locale!=="ko"&&(Hr||E!=="onCompositionStart"?E==="onCompositionEnd"&&Hr&&(A=Ih()):(Un=f,Sc="value"in Un?Un.value:Un.textContent,Hr=!0)),S=Us(u,E),0<S.length&&(E=new uf(E,e,null,n,f),d.push({event:E,listeners:S}),A?E.data=A:(A=Th(n),A!==null&&(E.data=A)))),(A=av?uv(e,n):cv(e,n))&&(u=Us(u,"onBeforeInput"),0<u.length&&(f=new uf("onBeforeInput","beforeinput",null,n,f),d.push({event:f,listeners:u}),f.data=A))}Uh(d,t)})}function ho(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Us(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,o=i.stateNode;i.tag===5&&o!==null&&(i=o,o=lo(e,n),o!=null&&r.unshift(ho(e,o,i)),o=lo(e,t),o!=null&&r.push(ho(e,o,i))),e=e.return}return r}function Dr(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function wf(e,t,n,r,i){for(var o=t._reactName,s=[];n!==null&&n!==r;){var l=n,a=l.alternate,u=l.stateNode;if(a!==null&&a===r)break;l.tag===5&&u!==null&&(l=u,i?(a=lo(n,o),a!=null&&s.unshift(ho(n,a,l))):i||(a=lo(n,o),a!=null&&s.push(ho(n,a,l)))),n=n.return}s.length!==0&&e.push({event:t,listeners:s})}var _v=/\r\n?/g,Cv=/\u0000|\uFFFD/g;function bf(e){return(typeof e=="string"?e:""+e).replace(_v,`
44
- `).replace(Cv,"")}function es(e,t,n){if(t=bf(t),bf(e)!==t&&n)throw Error(F(425))}function Bs(){}var au=null,uu=null;function cu(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var du=typeof setTimeout=="function"?setTimeout:void 0,Iv=typeof clearTimeout=="function"?clearTimeout:void 0,Sf=typeof Promise=="function"?Promise:void 0,Nv=typeof queueMicrotask=="function"?queueMicrotask:typeof Sf<"u"?function(e){return Sf.resolve(null).then(e).catch(Ev)}:du;function Ev(e){setTimeout(function(){throw e})}function ca(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),co(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);co(t)}function Zn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function _f(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var bi=Math.random().toString(36).slice(2),en="__reactFiber$"+bi,go="__reactProps$"+bi,Cn="__reactContainer$"+bi,fu="__reactEvents$"+bi,Tv="__reactListeners$"+bi,jv="__reactHandles$"+bi;function hr(e){var t=e[en];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Cn]||n[en]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=_f(e);e!==null;){if(n=e[en])return n;e=_f(e)}return t}e=n,n=e.parentNode}return null}function zo(e){return e=e[en]||e[Cn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Zr(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(F(33))}function Tl(e){return e[go]||null}var pu=[],Gr=-1;function ir(e){return{current:e}}function Ae(e){0>Gr||(e.current=pu[Gr],pu[Gr]=null,Gr--)}function Ee(e,t){Gr++,pu[Gr]=e.current,e.current=t}var er={},rt=ir(er),gt=ir(!1),kr=er;function ci(e,t){var n=e.type.contextTypes;if(!n)return er;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function yt(e){return e=e.childContextTypes,e!=null}function Vs(){Ae(gt),Ae(rt)}function Cf(e,t,n){if(rt.current!==er)throw Error(F(168));Ee(rt,t),Ee(gt,n)}function Vh(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(F(108,m0(e)||"Unknown",i));return Le({},n,r)}function Hs(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||er,kr=rt.current,Ee(rt,e),Ee(gt,gt.current),!0}function If(e,t,n){var r=e.stateNode;if(!r)throw Error(F(169));n?(e=Vh(e,t,kr),r.__reactInternalMemoizedMergedChildContext=e,Ae(gt),Ae(rt),Ee(rt,e)):Ae(gt),Ee(gt,n)}var gn=null,jl=!1,da=!1;function Hh(e){gn===null?gn=[e]:gn.push(e)}function Av(e){jl=!0,Hh(e)}function or(){if(!da&&gn!==null){da=!0;var e=0,t=Se;try{var n=gn;for(Se=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}gn=null,jl=!1}catch(i){throw gn!==null&&(gn=gn.slice(e+1)),hh(vc,or),i}finally{Se=t,da=!1}}return null}var Qr=[],Kr=0,qs=null,Ws=0,At=[],Pt=0,wr=null,yn=1,xn="";function fr(e,t){Qr[Kr++]=Ws,Qr[Kr++]=qs,qs=e,Ws=t}function qh(e,t,n){At[Pt++]=yn,At[Pt++]=xn,At[Pt++]=wr,wr=e;var r=yn;e=xn;var i=32-qt(r)-1;r&=~(1<<i),n+=1;var o=32-qt(t)+i;if(30<o){var s=i-i%5;o=(r&(1<<s)-1).toString(32),r>>=s,i-=s,yn=1<<32-qt(t)+i|n<<i|r,xn=o+e}else yn=1<<o|n<<i|r,xn=e}function Ec(e){e.return!==null&&(fr(e,1),qh(e,1,0))}function Tc(e){for(;e===qs;)qs=Qr[--Kr],Qr[Kr]=null,Ws=Qr[--Kr],Qr[Kr]=null;for(;e===wr;)wr=At[--Pt],At[Pt]=null,xn=At[--Pt],At[Pt]=null,yn=At[--Pt],At[Pt]=null}var Ct=null,_t=null,Pe=!1,Ht=null;function Wh(e,t){var n=Rt(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Nf(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Ct=e,_t=Zn(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Ct=e,_t=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=wr!==null?{id:yn,overflow:xn}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Rt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Ct=e,_t=null,!0):!1;default:return!1}}function mu(e){return(e.mode&1)!==0&&(e.flags&128)===0}function hu(e){if(Pe){var t=_t;if(t){var n=t;if(!Nf(e,t)){if(mu(e))throw Error(F(418));t=Zn(n.nextSibling);var r=Ct;t&&Nf(e,t)?Wh(r,n):(e.flags=e.flags&-4097|2,Pe=!1,Ct=e)}}else{if(mu(e))throw Error(F(418));e.flags=e.flags&-4097|2,Pe=!1,Ct=e}}}function Ef(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Ct=e}function ts(e){if(e!==Ct)return!1;if(!Pe)return Ef(e),Pe=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!cu(e.type,e.memoizedProps)),t&&(t=_t)){if(mu(e))throw Zh(),Error(F(418));for(;t;)Wh(e,t),t=Zn(t.nextSibling)}if(Ef(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(F(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){_t=Zn(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}_t=null}}else _t=Ct?Zn(e.stateNode.nextSibling):null;return!0}function Zh(){for(var e=_t;e;)e=Zn(e.nextSibling)}function di(){_t=Ct=null,Pe=!1}function jc(e){Ht===null?Ht=[e]:Ht.push(e)}var Pv=jn.ReactCurrentBatchConfig;function Li(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(F(309));var r=n.stateNode}if(!r)throw Error(F(147,e));var i=r,o=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===o?t.ref:(t=function(s){var l=i.refs;s===null?delete l[o]:l[o]=s},t._stringRef=o,t)}if(typeof e!="string")throw Error(F(284));if(!n._owner)throw Error(F(290,e))}return e}function ns(e,t){throw e=Object.prototype.toString.call(t),Error(F(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Tf(e){var t=e._init;return t(e._payload)}function Gh(e){function t(y,v){if(e){var w=y.deletions;w===null?(y.deletions=[v],y.flags|=16):w.push(v)}}function n(y,v){if(!e)return null;for(;v!==null;)t(y,v),v=v.sibling;return null}function r(y,v){for(y=new Map;v!==null;)v.key!==null?y.set(v.key,v):y.set(v.index,v),v=v.sibling;return y}function i(y,v){return y=Yn(y,v),y.index=0,y.sibling=null,y}function o(y,v,w){return y.index=w,e?(w=y.alternate,w!==null?(w=w.index,w<v?(y.flags|=2,v):w):(y.flags|=2,v)):(y.flags|=1048576,v)}function s(y){return e&&y.alternate===null&&(y.flags|=2),y}function l(y,v,w,N){return v===null||v.tag!==6?(v=xa(w,y.mode,N),v.return=y,v):(v=i(v,w),v.return=y,v)}function a(y,v,w,N){var j=w.type;return j===Vr?f(y,v,w.props.children,N,w.key):v!==null&&(v.elementType===j||typeof j=="object"&&j!==null&&j.$$typeof===Ln&&Tf(j)===v.type)?(N=i(v,w.props),N.ref=Li(y,v,w),N.return=y,N):(N=Es(w.type,w.key,w.props,null,y.mode,N),N.ref=Li(y,v,w),N.return=y,N)}function u(y,v,w,N){return v===null||v.tag!==4||v.stateNode.containerInfo!==w.containerInfo||v.stateNode.implementation!==w.implementation?(v=va(w,y.mode,N),v.return=y,v):(v=i(v,w.children||[]),v.return=y,v)}function f(y,v,w,N,j){return v===null||v.tag!==7?(v=vr(w,y.mode,N,j),v.return=y,v):(v=i(v,w),v.return=y,v)}function d(y,v,w){if(typeof v=="string"&&v!==""||typeof v=="number")return v=xa(""+v,y.mode,w),v.return=y,v;if(typeof v=="object"&&v!==null){switch(v.$$typeof){case qo:return w=Es(v.type,v.key,v.props,null,y.mode,w),w.ref=Li(y,null,v),w.return=y,w;case Br:return v=va(v,y.mode,w),v.return=y,v;case Ln:var N=v._init;return d(y,N(v._payload),w)}if(Vi(v)||Ai(v))return v=vr(v,y.mode,w,null),v.return=y,v;ns(y,v)}return null}function m(y,v,w,N){var j=v!==null?v.key:null;if(typeof w=="string"&&w!==""||typeof w=="number")return j!==null?null:l(y,v,""+w,N);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case qo:return w.key===j?a(y,v,w,N):null;case Br:return w.key===j?u(y,v,w,N):null;case Ln:return j=w._init,m(y,v,j(w._payload),N)}if(Vi(w)||Ai(w))return j!==null?null:f(y,v,w,N,null);ns(y,w)}return null}function p(y,v,w,N,j){if(typeof N=="string"&&N!==""||typeof N=="number")return y=y.get(w)||null,l(v,y,""+N,j);if(typeof N=="object"&&N!==null){switch(N.$$typeof){case qo:return y=y.get(N.key===null?w:N.key)||null,a(v,y,N,j);case Br:return y=y.get(N.key===null?w:N.key)||null,u(v,y,N,j);case Ln:var S=N._init;return p(y,v,w,S(N._payload),j)}if(Vi(N)||Ai(N))return y=y.get(w)||null,f(v,y,N,j,null);ns(v,N)}return null}function x(y,v,w,N){for(var j=null,S=null,A=v,E=v=0,$=null;A!==null&&E<w.length;E++){A.index>E?($=A,A=null):$=A.sibling;var C=m(y,A,w[E],N);if(C===null){A===null&&(A=$);break}e&&A&&C.alternate===null&&t(y,A),v=o(C,v,E),S===null?j=C:S.sibling=C,S=C,A=$}if(E===w.length)return n(y,A),Pe&&fr(y,E),j;if(A===null){for(;E<w.length;E++)A=d(y,w[E],N),A!==null&&(v=o(A,v,E),S===null?j=A:S.sibling=A,S=A);return Pe&&fr(y,E),j}for(A=r(y,A);E<w.length;E++)$=p(A,y,E,w[E],N),$!==null&&(e&&$.alternate!==null&&A.delete($.key===null?E:$.key),v=o($,v,E),S===null?j=$:S.sibling=$,S=$);return e&&A.forEach(function(O){return t(y,O)}),Pe&&fr(y,E),j}function b(y,v,w,N){var j=Ai(w);if(typeof j!="function")throw Error(F(150));if(w=j.call(w),w==null)throw Error(F(151));for(var S=j=null,A=v,E=v=0,$=null,C=w.next();A!==null&&!C.done;E++,C=w.next()){A.index>E?($=A,A=null):$=A.sibling;var O=m(y,A,C.value,N);if(O===null){A===null&&(A=$);break}e&&A&&O.alternate===null&&t(y,A),v=o(O,v,E),S===null?j=O:S.sibling=O,S=O,A=$}if(C.done)return n(y,A),Pe&&fr(y,E),j;if(A===null){for(;!C.done;E++,C=w.next())C=d(y,C.value,N),C!==null&&(v=o(C,v,E),S===null?j=C:S.sibling=C,S=C);return Pe&&fr(y,E),j}for(A=r(y,A);!C.done;E++,C=w.next())C=p(A,y,E,C.value,N),C!==null&&(e&&C.alternate!==null&&A.delete(C.key===null?E:C.key),v=o(C,v,E),S===null?j=C:S.sibling=C,S=C);return e&&A.forEach(function(z){return t(y,z)}),Pe&&fr(y,E),j}function I(y,v,w,N){if(typeof w=="object"&&w!==null&&w.type===Vr&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case qo:e:{for(var j=w.key,S=v;S!==null;){if(S.key===j){if(j=w.type,j===Vr){if(S.tag===7){n(y,S.sibling),v=i(S,w.props.children),v.return=y,y=v;break e}}else if(S.elementType===j||typeof j=="object"&&j!==null&&j.$$typeof===Ln&&Tf(j)===S.type){n(y,S.sibling),v=i(S,w.props),v.ref=Li(y,S,w),v.return=y,y=v;break e}n(y,S);break}else t(y,S);S=S.sibling}w.type===Vr?(v=vr(w.props.children,y.mode,N,w.key),v.return=y,y=v):(N=Es(w.type,w.key,w.props,null,y.mode,N),N.ref=Li(y,v,w),N.return=y,y=N)}return s(y);case Br:e:{for(S=w.key;v!==null;){if(v.key===S)if(v.tag===4&&v.stateNode.containerInfo===w.containerInfo&&v.stateNode.implementation===w.implementation){n(y,v.sibling),v=i(v,w.children||[]),v.return=y,y=v;break e}else{n(y,v);break}else t(y,v);v=v.sibling}v=va(w,y.mode,N),v.return=y,y=v}return s(y);case Ln:return S=w._init,I(y,v,S(w._payload),N)}if(Vi(w))return x(y,v,w,N);if(Ai(w))return b(y,v,w,N);ns(y,w)}return typeof w=="string"&&w!==""||typeof w=="number"?(w=""+w,v!==null&&v.tag===6?(n(y,v.sibling),v=i(v,w),v.return=y,y=v):(n(y,v),v=xa(w,y.mode,N),v.return=y,y=v),s(y)):n(y,v)}return I}var fi=Gh(!0),Qh=Gh(!1),Zs=ir(null),Gs=null,Yr=null,Ac=null;function Pc(){Ac=Yr=Gs=null}function Rc(e){var t=Zs.current;Ae(Zs),e._currentValue=t}function gu(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function ii(e,t){Gs=e,Ac=Yr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(ht=!0),e.firstContext=null)}function Mt(e){var t=e._currentValue;if(Ac!==e)if(e={context:e,memoizedValue:t,next:null},Yr===null){if(Gs===null)throw Error(F(308));Yr=e,Gs.dependencies={lanes:0,firstContext:e}}else Yr=Yr.next=e;return t}var gr=null;function zc(e){gr===null?gr=[e]:gr.push(e)}function Kh(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,zc(t)):(n.next=i.next,i.next=n),t.interleaved=n,In(e,r)}function In(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var On=!1;function Mc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Yh(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function wn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Gn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,be&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,In(e,n)}return i=r.interleaved,i===null?(t.next=t,zc(r)):(t.next=i.next,i.next=t),r.interleaved=t,In(e,n)}function bs(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,kc(e,n)}}function jf(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?i=o=s:o=o.next=s,n=n.next}while(n!==null);o===null?i=o=t:o=o.next=t}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Qs(e,t,n,r){var i=e.updateQueue;On=!1;var o=i.firstBaseUpdate,s=i.lastBaseUpdate,l=i.shared.pending;if(l!==null){i.shared.pending=null;var a=l,u=a.next;a.next=null,s===null?o=u:s.next=u,s=a;var f=e.alternate;f!==null&&(f=f.updateQueue,l=f.lastBaseUpdate,l!==s&&(l===null?f.firstBaseUpdate=u:l.next=u,f.lastBaseUpdate=a))}if(o!==null){var d=i.baseState;s=0,f=u=a=null,l=o;do{var m=l.lane,p=l.eventTime;if((r&m)===m){f!==null&&(f=f.next={eventTime:p,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var x=e,b=l;switch(m=t,p=n,b.tag){case 1:if(x=b.payload,typeof x=="function"){d=x.call(p,d,m);break e}d=x;break e;case 3:x.flags=x.flags&-65537|128;case 0:if(x=b.payload,m=typeof x=="function"?x.call(p,d,m):x,m==null)break e;d=Le({},d,m);break e;case 2:On=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,m=i.effects,m===null?i.effects=[l]:m.push(l))}else p={eventTime:p,lane:m,tag:l.tag,payload:l.payload,callback:l.callback,next:null},f===null?(u=f=p,a=d):f=f.next=p,s|=m;if(l=l.next,l===null){if(l=i.shared.pending,l===null)break;m=l,l=m.next,m.next=null,i.lastBaseUpdate=m,i.shared.pending=null}}while(!0);if(f===null&&(a=d),i.baseState=a,i.firstBaseUpdate=u,i.lastBaseUpdate=f,t=i.shared.interleaved,t!==null){i=t;do s|=i.lane,i=i.next;while(i!==t)}else o===null&&(i.shared.lanes=0);Sr|=s,e.lanes=s,e.memoizedState=d}}function Af(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(F(191,i));i.call(r)}}}var Mo={},nn=ir(Mo),yo=ir(Mo),xo=ir(Mo);function yr(e){if(e===Mo)throw Error(F(174));return e}function Lc(e,t){switch(Ee(xo,t),Ee(yo,e),Ee(nn,Mo),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Ka(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Ka(t,e)}Ae(nn),Ee(nn,t)}function pi(){Ae(nn),Ae(yo),Ae(xo)}function Xh(e){yr(xo.current);var t=yr(nn.current),n=Ka(t,e.type);t!==n&&(Ee(yo,e),Ee(nn,n))}function Oc(e){yo.current===e&&(Ae(nn),Ae(yo))}var ze=ir(0);function Ks(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var fa=[];function Dc(){for(var e=0;e<fa.length;e++)fa[e]._workInProgressVersionPrimary=null;fa.length=0}var Ss=jn.ReactCurrentDispatcher,pa=jn.ReactCurrentBatchConfig,br=0,Me=null,He=null,We=null,Ys=!1,Xi=!1,vo=0,Rv=0;function Je(){throw Error(F(321))}function Fc(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Gt(e[n],t[n]))return!1;return!0}function $c(e,t,n,r,i,o){if(br=o,Me=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Ss.current=e===null||e.memoizedState===null?Ov:Dv,e=n(r,i),Xi){o=0;do{if(Xi=!1,vo=0,25<=o)throw Error(F(301));o+=1,We=He=null,t.updateQueue=null,Ss.current=Fv,e=n(r,i)}while(Xi)}if(Ss.current=Xs,t=He!==null&&He.next!==null,br=0,We=He=Me=null,Ys=!1,t)throw Error(F(300));return e}function Uc(){var e=vo!==0;return vo=0,e}function Yt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return We===null?Me.memoizedState=We=e:We=We.next=e,We}function Lt(){if(He===null){var e=Me.alternate;e=e!==null?e.memoizedState:null}else e=He.next;var t=We===null?Me.memoizedState:We.next;if(t!==null)We=t,He=e;else{if(e===null)throw Error(F(310));He=e,e={memoizedState:He.memoizedState,baseState:He.baseState,baseQueue:He.baseQueue,queue:He.queue,next:null},We===null?Me.memoizedState=We=e:We=We.next=e}return We}function ko(e,t){return typeof t=="function"?t(e):t}function ma(e){var t=Lt(),n=t.queue;if(n===null)throw Error(F(311));n.lastRenderedReducer=e;var r=He,i=r.baseQueue,o=n.pending;if(o!==null){if(i!==null){var s=i.next;i.next=o.next,o.next=s}r.baseQueue=i=o,n.pending=null}if(i!==null){o=i.next,r=r.baseState;var l=s=null,a=null,u=o;do{var f=u.lane;if((br&f)===f)a!==null&&(a=a.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var d={lane:f,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};a===null?(l=a=d,s=r):a=a.next=d,Me.lanes|=f,Sr|=f}u=u.next}while(u!==null&&u!==o);a===null?s=r:a.next=l,Gt(r,t.memoizedState)||(ht=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=a,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do o=i.lane,Me.lanes|=o,Sr|=o,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function ha(e){var t=Lt(),n=t.queue;if(n===null)throw Error(F(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(i!==null){n.pending=null;var s=i=i.next;do o=e(o,s.action),s=s.next;while(s!==i);Gt(o,t.memoizedState)||(ht=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Jh(){}function eg(e,t){var n=Me,r=Lt(),i=t(),o=!Gt(r.memoizedState,i);if(o&&(r.memoizedState=i,ht=!0),r=r.queue,Bc(rg.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||We!==null&&We.memoizedState.tag&1){if(n.flags|=2048,wo(9,ng.bind(null,n,r,i,t),void 0,null),Ze===null)throw Error(F(349));br&30||tg(n,t,i)}return i}function tg(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Me.updateQueue,t===null?(t={lastEffect:null,stores:null},Me.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function ng(e,t,n,r){t.value=n,t.getSnapshot=r,ig(t)&&og(e)}function rg(e,t,n){return n(function(){ig(t)&&og(e)})}function ig(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Gt(e,n)}catch{return!0}}function og(e){var t=In(e,1);t!==null&&Wt(t,e,1,-1)}function Pf(e){var t=Yt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ko,lastRenderedState:e},t.queue=e,e=e.dispatch=Lv.bind(null,Me,e),[t.memoizedState,e]}function wo(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Me.updateQueue,t===null?(t={lastEffect:null,stores:null},Me.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function sg(){return Lt().memoizedState}function _s(e,t,n,r){var i=Yt();Me.flags|=e,i.memoizedState=wo(1|t,n,void 0,r===void 0?null:r)}function Al(e,t,n,r){var i=Lt();r=r===void 0?null:r;var o=void 0;if(He!==null){var s=He.memoizedState;if(o=s.destroy,r!==null&&Fc(r,s.deps)){i.memoizedState=wo(t,n,o,r);return}}Me.flags|=e,i.memoizedState=wo(1|t,n,o,r)}function Rf(e,t){return _s(8390656,8,e,t)}function Bc(e,t){return Al(2048,8,e,t)}function lg(e,t){return Al(4,2,e,t)}function ag(e,t){return Al(4,4,e,t)}function ug(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function cg(e,t,n){return n=n!=null?n.concat([e]):null,Al(4,4,ug.bind(null,t,e),n)}function Vc(){}function dg(e,t){var n=Lt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Fc(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function fg(e,t){var n=Lt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Fc(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function pg(e,t,n){return br&21?(Gt(n,t)||(n=xh(),Me.lanes|=n,Sr|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,ht=!0),e.memoizedState=n)}function zv(e,t){var n=Se;Se=n!==0&&4>n?n:4,e(!0);var r=pa.transition;pa.transition={};try{e(!1),t()}finally{Se=n,pa.transition=r}}function mg(){return Lt().memoizedState}function Mv(e,t,n){var r=Kn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},hg(e))gg(t,n);else if(n=Kh(e,t,n,r),n!==null){var i=at();Wt(n,e,r,i),yg(n,t,r)}}function Lv(e,t,n){var r=Kn(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(hg(e))gg(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var s=t.lastRenderedState,l=o(s,n);if(i.hasEagerState=!0,i.eagerState=l,Gt(l,s)){var a=t.interleaved;a===null?(i.next=i,zc(t)):(i.next=a.next,a.next=i),t.interleaved=i;return}}catch{}finally{}n=Kh(e,t,i,r),n!==null&&(i=at(),Wt(n,e,r,i),yg(n,t,r))}}function hg(e){var t=e.alternate;return e===Me||t!==null&&t===Me}function gg(e,t){Xi=Ys=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function yg(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,kc(e,n)}}var Xs={readContext:Mt,useCallback:Je,useContext:Je,useEffect:Je,useImperativeHandle:Je,useInsertionEffect:Je,useLayoutEffect:Je,useMemo:Je,useReducer:Je,useRef:Je,useState:Je,useDebugValue:Je,useDeferredValue:Je,useTransition:Je,useMutableSource:Je,useSyncExternalStore:Je,useId:Je,unstable_isNewReconciler:!1},Ov={readContext:Mt,useCallback:function(e,t){return Yt().memoizedState=[e,t===void 0?null:t],e},useContext:Mt,useEffect:Rf,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,_s(4194308,4,ug.bind(null,t,e),n)},useLayoutEffect:function(e,t){return _s(4194308,4,e,t)},useInsertionEffect:function(e,t){return _s(4,2,e,t)},useMemo:function(e,t){var n=Yt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Yt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Mv.bind(null,Me,e),[r.memoizedState,e]},useRef:function(e){var t=Yt();return e={current:e},t.memoizedState=e},useState:Pf,useDebugValue:Vc,useDeferredValue:function(e){return Yt().memoizedState=e},useTransition:function(){var e=Pf(!1),t=e[0];return e=zv.bind(null,e[1]),Yt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Me,i=Yt();if(Pe){if(n===void 0)throw Error(F(407));n=n()}else{if(n=t(),Ze===null)throw Error(F(349));br&30||tg(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,Rf(rg.bind(null,r,o,e),[e]),r.flags|=2048,wo(9,ng.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Yt(),t=Ze.identifierPrefix;if(Pe){var n=xn,r=yn;n=(r&~(1<<32-qt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=vo++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Rv++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Dv={readContext:Mt,useCallback:dg,useContext:Mt,useEffect:Bc,useImperativeHandle:cg,useInsertionEffect:lg,useLayoutEffect:ag,useMemo:fg,useReducer:ma,useRef:sg,useState:function(){return ma(ko)},useDebugValue:Vc,useDeferredValue:function(e){var t=Lt();return pg(t,He.memoizedState,e)},useTransition:function(){var e=ma(ko)[0],t=Lt().memoizedState;return[e,t]},useMutableSource:Jh,useSyncExternalStore:eg,useId:mg,unstable_isNewReconciler:!1},Fv={readContext:Mt,useCallback:dg,useContext:Mt,useEffect:Bc,useImperativeHandle:cg,useInsertionEffect:lg,useLayoutEffect:ag,useMemo:fg,useReducer:ha,useRef:sg,useState:function(){return ha(ko)},useDebugValue:Vc,useDeferredValue:function(e){var t=Lt();return He===null?t.memoizedState=e:pg(t,He.memoizedState,e)},useTransition:function(){var e=ha(ko)[0],t=Lt().memoizedState;return[e,t]},useMutableSource:Jh,useSyncExternalStore:eg,useId:mg,unstable_isNewReconciler:!1};function Bt(e,t){if(e&&e.defaultProps){t=Le({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function yu(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Le({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Pl={isMounted:function(e){return(e=e._reactInternals)?Pr(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=at(),i=Kn(e),o=wn(r,i);o.payload=t,n!=null&&(o.callback=n),t=Gn(e,o,i),t!==null&&(Wt(t,e,i,r),bs(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=at(),i=Kn(e),o=wn(r,i);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=Gn(e,o,i),t!==null&&(Wt(t,e,i,r),bs(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=at(),r=Kn(e),i=wn(n,r);i.tag=2,t!=null&&(i.callback=t),t=Gn(e,i,r),t!==null&&(Wt(t,e,r,n),bs(t,e,r))}};function zf(e,t,n,r,i,o,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,o,s):t.prototype&&t.prototype.isPureReactComponent?!po(n,r)||!po(i,o):!0}function xg(e,t,n){var r=!1,i=er,o=t.contextType;return typeof o=="object"&&o!==null?o=Mt(o):(i=yt(t)?kr:rt.current,r=t.contextTypes,o=(r=r!=null)?ci(e,i):er),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Pl,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function Mf(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Pl.enqueueReplaceState(t,t.state,null)}function xu(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},Mc(e);var o=t.contextType;typeof o=="object"&&o!==null?i.context=Mt(o):(o=yt(t)?kr:rt.current,i.context=ci(e,o)),i.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(yu(e,t,o,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&Pl.enqueueReplaceState(i,i.state,null),Qs(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function mi(e,t){try{var n="",r=t;do n+=p0(r),r=r.return;while(r);var i=n}catch(o){i=`
43
+ `+i[s].replace(" at new "," at ");return e.displayName&&a.includes("<anonymous>")&&(a=a.replace("<anonymous>",e.displayName)),a}while(1<=s&&0<=l);break}}}finally{Kl=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Bi(e):""}function m0(e){switch(e.tag){case 5:return Bi(e.type);case 16:return Bi("Lazy");case 13:return Bi("Suspense");case 19:return Bi("SuspenseList");case 0:case 2:case 15:return e=Yl(e.type,!1),e;case 11:return e=Yl(e.type.render,!1),e;case 1:return e=Yl(e.type,!0),e;default:return""}}function qa(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Vr:return"Fragment";case Br:return"Portal";case Ba:return"Profiler";case hc:return"StrictMode";case Va:return"Suspense";case Ha:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Ym:return(e.displayName||"Context")+".Consumer";case Km:return(e._context.displayName||"Context")+".Provider";case gc:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case yc:return t=e.displayName||null,t!==null?t:qa(e.type)||"Memo";case Ln:t=e._payload,e=e._init;try{return qa(e(t))}catch{}}return null}function h0(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return qa(t);case 8:return t===hc?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Jn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Jm(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function g0(e){var t=Jm(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(s){r=""+s,o.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Wo(e){e._valueTracker||(e._valueTracker=g0(e))}function eh(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Jm(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function zs(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Wa(e,t){var n=t.checked;return Le({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Yd(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Jn(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function th(e,t){t=t.checked,t!=null&&mc(e,"checked",t,!1)}function Za(e,t){th(e,t);var n=Jn(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Ga(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ga(e,t.type,Jn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Xd(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Ga(e,t,n){(t!=="number"||zs(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Vi=Array.isArray;function ei(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Jn(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Qa(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(F(91));return Le({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Jd(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(F(92));if(Vi(n)){if(1<n.length)throw Error(F(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Jn(n)}}function nh(e,t){var n=Jn(t.value),r=Jn(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function ef(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function rh(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Ka(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?rh(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Zo,ih=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Zo=Zo||document.createElement("div"),Zo.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Zo.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function so(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Zi={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},y0=["Webkit","ms","Moz","O"];Object.keys(Zi).forEach(function(e){y0.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Zi[t]=Zi[e]})});function oh(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Zi.hasOwnProperty(e)&&Zi[e]?(""+t).trim():t+"px"}function sh(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=oh(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var x0=Le({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Ya(e,t){if(t){if(x0[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(F(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(F(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(F(61))}if(t.style!=null&&typeof t.style!="object")throw Error(F(62))}}function Xa(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Ja=null;function xc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var eu=null,ti=null,ni=null;function tf(e){if(e=zo(e)){if(typeof eu!="function")throw Error(F(280));var t=e.stateNode;t&&(t=Tl(t),eu(e.stateNode,e.type,t))}}function lh(e){ti?ni?ni.push(e):ni=[e]:ti=e}function ah(){if(ti){var e=ti,t=ni;if(ni=ti=null,tf(e),t)for(e=0;e<t.length;e++)tf(t[e])}}function uh(e,t){return e(t)}function ch(){}var Xl=!1;function dh(e,t,n){if(Xl)return e(t,n);Xl=!0;try{return uh(e,t,n)}finally{Xl=!1,(ti!==null||ni!==null)&&(ch(),ah())}}function lo(e,t){var n=e.stateNode;if(n===null)return null;var r=Tl(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(F(231,t,typeof n));return n}var tu=!1;if(_n)try{var Pi={};Object.defineProperty(Pi,"passive",{get:function(){tu=!0}}),window.addEventListener("test",Pi,Pi),window.removeEventListener("test",Pi,Pi)}catch{tu=!1}function v0(e,t,n,r,i,o,s,l,a){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(f){this.onError(f)}}var Gi=!1,Ms=null,Ls=!1,nu=null,k0={onError:function(e){Gi=!0,Ms=e}};function w0(e,t,n,r,i,o,s,l,a){Gi=!1,Ms=null,v0.apply(k0,arguments)}function b0(e,t,n,r,i,o,s,l,a){if(w0.apply(this,arguments),Gi){if(Gi){var u=Ms;Gi=!1,Ms=null}else throw Error(F(198));Ls||(Ls=!0,nu=u)}}function Pr(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function fh(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 nf(e){if(Pr(e)!==e)throw Error(F(188))}function S0(e){var t=e.alternate;if(!t){if(t=Pr(e),t===null)throw Error(F(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var o=i.alternate;if(o===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return nf(i),e;if(o===r)return nf(i),t;o=o.sibling}throw Error(F(188))}if(n.return!==r.return)n=i,r=o;else{for(var s=!1,l=i.child;l;){if(l===n){s=!0,n=i,r=o;break}if(l===r){s=!0,r=i,n=o;break}l=l.sibling}if(!s){for(l=o.child;l;){if(l===n){s=!0,n=o,r=i;break}if(l===r){s=!0,r=o,n=i;break}l=l.sibling}if(!s)throw Error(F(189))}}if(n.alternate!==r)throw Error(F(190))}if(n.tag!==3)throw Error(F(188));return n.stateNode.current===n?e:t}function ph(e){return e=S0(e),e!==null?mh(e):null}function mh(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=mh(e);if(t!==null)return t;e=e.sibling}return null}var hh=Nt.unstable_scheduleCallback,rf=Nt.unstable_cancelCallback,_0=Nt.unstable_shouldYield,C0=Nt.unstable_requestPaint,De=Nt.unstable_now,I0=Nt.unstable_getCurrentPriorityLevel,vc=Nt.unstable_ImmediatePriority,gh=Nt.unstable_UserBlockingPriority,Os=Nt.unstable_NormalPriority,N0=Nt.unstable_LowPriority,yh=Nt.unstable_IdlePriority,Cl=null,tn=null;function E0(e){if(tn&&typeof tn.onCommitFiberRoot=="function")try{tn.onCommitFiberRoot(Cl,e,void 0,(e.current.flags&128)===128)}catch{}}var qt=Math.clz32?Math.clz32:A0,T0=Math.log,j0=Math.LN2;function A0(e){return e>>>=0,e===0?32:31-(T0(e)/j0|0)|0}var Go=64,Qo=4194304;function Hi(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Ds(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,s=n&268435455;if(s!==0){var l=s&~i;l!==0?r=Hi(l):(o&=s,o!==0&&(r=Hi(o)))}else s=n&~i,s!==0?r=Hi(s):o!==0&&(r=Hi(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-qt(t),i=1<<n,r|=e[n],t&=~i;return r}function P0(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function R0(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var s=31-qt(o),l=1<<s,a=i[s];a===-1?(!(l&n)||l&r)&&(i[s]=P0(l,t)):a<=t&&(e.expiredLanes|=l),o&=~l}}function ru(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function xh(){var e=Go;return Go<<=1,!(Go&4194240)&&(Go=64),e}function Jl(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Po(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-qt(t),e[t]=n}function z0(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-qt(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}function kc(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-qt(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var Se=0;function vh(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var kh,wc,wh,bh,Sh,iu=!1,Ko=[],Hn=null,qn=null,Wn=null,ao=new Map,uo=new Map,Fn=[],M0="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function of(e,t){switch(e){case"focusin":case"focusout":Hn=null;break;case"dragenter":case"dragleave":qn=null;break;case"mouseover":case"mouseout":Wn=null;break;case"pointerover":case"pointerout":ao.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":uo.delete(t.pointerId)}}function Ri(e,t,n,r,i,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},t!==null&&(t=zo(t),t!==null&&wc(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function L0(e,t,n,r,i){switch(t){case"focusin":return Hn=Ri(Hn,e,t,n,r,i),!0;case"dragenter":return qn=Ri(qn,e,t,n,r,i),!0;case"mouseover":return Wn=Ri(Wn,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return ao.set(o,Ri(ao.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,uo.set(o,Ri(uo.get(o)||null,e,t,n,r,i)),!0}return!1}function _h(e){var t=hr(e.target);if(t!==null){var n=Pr(t);if(n!==null){if(t=n.tag,t===13){if(t=fh(n),t!==null){e.blockedOn=t,Sh(e.priority,function(){wh(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function vs(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=ou(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Ja=r,n.target.dispatchEvent(r),Ja=null}else return t=zo(n),t!==null&&wc(t),e.blockedOn=n,!1;t.shift()}return!0}function sf(e,t,n){vs(e)&&n.delete(t)}function O0(){iu=!1,Hn!==null&&vs(Hn)&&(Hn=null),qn!==null&&vs(qn)&&(qn=null),Wn!==null&&vs(Wn)&&(Wn=null),ao.forEach(sf),uo.forEach(sf)}function zi(e,t){e.blockedOn===t&&(e.blockedOn=null,iu||(iu=!0,Nt.unstable_scheduleCallback(Nt.unstable_NormalPriority,O0)))}function co(e){function t(i){return zi(i,e)}if(0<Ko.length){zi(Ko[0],e);for(var n=1;n<Ko.length;n++){var r=Ko[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Hn!==null&&zi(Hn,e),qn!==null&&zi(qn,e),Wn!==null&&zi(Wn,e),ao.forEach(t),uo.forEach(t),n=0;n<Fn.length;n++)r=Fn[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Fn.length&&(n=Fn[0],n.blockedOn===null);)_h(n),n.blockedOn===null&&Fn.shift()}var ri=jn.ReactCurrentBatchConfig,Fs=!0;function D0(e,t,n,r){var i=Se,o=ri.transition;ri.transition=null;try{Se=1,bc(e,t,n,r)}finally{Se=i,ri.transition=o}}function F0(e,t,n,r){var i=Se,o=ri.transition;ri.transition=null;try{Se=4,bc(e,t,n,r)}finally{Se=i,ri.transition=o}}function bc(e,t,n,r){if(Fs){var i=ou(e,t,n,r);if(i===null)ua(e,t,r,$s,n),of(e,r);else if(L0(i,e,t,n,r))r.stopPropagation();else if(of(e,r),t&4&&-1<M0.indexOf(e)){for(;i!==null;){var o=zo(i);if(o!==null&&kh(o),o=ou(e,t,n,r),o===null&&ua(e,t,r,$s,n),o===i)break;i=o}i!==null&&r.stopPropagation()}else ua(e,t,r,null,n)}}var $s=null;function ou(e,t,n,r){if($s=null,e=xc(r),e=hr(e),e!==null)if(t=Pr(e),t===null)e=null;else if(n=t.tag,n===13){if(e=fh(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return $s=e,null}function Ch(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(I0()){case vc:return 1;case gh:return 4;case Os:case N0:return 16;case yh:return 536870912;default:return 16}default:return 16}}var Un=null,Sc=null,ks=null;function Ih(){if(ks)return ks;var e,t=Sc,n=t.length,r,i="value"in Un?Un.value:Un.textContent,o=i.length;for(e=0;e<n&&t[e]===i[e];e++);var s=n-e;for(r=1;r<=s&&t[n-r]===i[o-r];r++);return ks=i.slice(e,1<r?1-r:void 0)}function ws(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 Yo(){return!0}function lf(){return!1}function jt(e){function t(n,r,i,o,s){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=o,this.target=s,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(n=e[l],this[l]=n?n(o):o[l]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?Yo:lf,this.isPropagationStopped=lf,this}return Le(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Yo)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Yo)},persist:function(){},isPersistent:Yo}),t}var wi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},_c=jt(wi),Ro=Le({},wi,{view:0,detail:0}),$0=jt(Ro),ea,ta,Mi,Il=Le({},Ro,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Cc,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!==Mi&&(Mi&&e.type==="mousemove"?(ea=e.screenX-Mi.screenX,ta=e.screenY-Mi.screenY):ta=ea=0,Mi=e),ea)},movementY:function(e){return"movementY"in e?e.movementY:ta}}),af=jt(Il),U0=Le({},Il,{dataTransfer:0}),B0=jt(U0),V0=Le({},Ro,{relatedTarget:0}),na=jt(V0),H0=Le({},wi,{animationName:0,elapsedTime:0,pseudoElement:0}),q0=jt(H0),W0=Le({},wi,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Z0=jt(W0),G0=Le({},wi,{data:0}),uf=jt(G0),Q0={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},K0={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"},Y0={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function X0(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Y0[e])?!!t[e]:!1}function Cc(){return X0}var J0=Le({},Ro,{key:function(e){if(e.key){var t=Q0[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ws(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?K0[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Cc,charCode:function(e){return e.type==="keypress"?ws(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ws(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),ev=jt(J0),tv=Le({},Il,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),cf=jt(tv),nv=Le({},Ro,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Cc}),rv=jt(nv),iv=Le({},wi,{propertyName:0,elapsedTime:0,pseudoElement:0}),ov=jt(iv),sv=Le({},Il,{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}),lv=jt(sv),av=[9,13,27,32],Ic=_n&&"CompositionEvent"in window,Qi=null;_n&&"documentMode"in document&&(Qi=document.documentMode);var uv=_n&&"TextEvent"in window&&!Qi,Nh=_n&&(!Ic||Qi&&8<Qi&&11>=Qi),df=" ",ff=!1;function Eh(e,t){switch(e){case"keyup":return av.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Th(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Hr=!1;function cv(e,t){switch(e){case"compositionend":return Th(t);case"keypress":return t.which!==32?null:(ff=!0,df);case"textInput":return e=t.data,e===df&&ff?null:e;default:return null}}function dv(e,t){if(Hr)return e==="compositionend"||!Ic&&Eh(e,t)?(e=Ih(),ks=Sc=Un=null,Hr=!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 Nh&&t.locale!=="ko"?null:t.data;default:return null}}var fv={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 pf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!fv[e.type]:t==="textarea"}function jh(e,t,n,r){lh(r),t=Us(t,"onChange"),0<t.length&&(n=new _c("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Ki=null,fo=null;function pv(e){Uh(e,0)}function Nl(e){var t=Zr(e);if(eh(t))return e}function mv(e,t){if(e==="change")return t}var Ah=!1;if(_n){var ra;if(_n){var ia="oninput"in document;if(!ia){var mf=document.createElement("div");mf.setAttribute("oninput","return;"),ia=typeof mf.oninput=="function"}ra=ia}else ra=!1;Ah=ra&&(!document.documentMode||9<document.documentMode)}function hf(){Ki&&(Ki.detachEvent("onpropertychange",Ph),fo=Ki=null)}function Ph(e){if(e.propertyName==="value"&&Nl(fo)){var t=[];jh(t,fo,e,xc(e)),dh(pv,t)}}function hv(e,t,n){e==="focusin"?(hf(),Ki=t,fo=n,Ki.attachEvent("onpropertychange",Ph)):e==="focusout"&&hf()}function gv(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Nl(fo)}function yv(e,t){if(e==="click")return Nl(t)}function xv(e,t){if(e==="input"||e==="change")return Nl(t)}function vv(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Gt=typeof Object.is=="function"?Object.is:vv;function po(e,t){if(Gt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!Ua.call(t,i)||!Gt(e[i],t[i]))return!1}return!0}function gf(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function yf(e,t){var n=gf(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=gf(n)}}function Rh(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Rh(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function zh(){for(var e=window,t=zs();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=zs(e.document)}return t}function Nc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function kv(e){var t=zh(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Rh(n.ownerDocument.documentElement,n)){if(r!==null&&Nc(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=yf(n,o);var s=yf(n,r);i&&s&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var wv=_n&&"documentMode"in document&&11>=document.documentMode,qr=null,su=null,Yi=null,lu=!1;function xf(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;lu||qr==null||qr!==zs(r)||(r=qr,"selectionStart"in r&&Nc(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Yi&&po(Yi,r)||(Yi=r,r=Us(su,"onSelect"),0<r.length&&(t=new _c("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=qr)))}function Xo(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Wr={animationend:Xo("Animation","AnimationEnd"),animationiteration:Xo("Animation","AnimationIteration"),animationstart:Xo("Animation","AnimationStart"),transitionend:Xo("Transition","TransitionEnd")},oa={},Mh={};_n&&(Mh=document.createElement("div").style,"AnimationEvent"in window||(delete Wr.animationend.animation,delete Wr.animationiteration.animation,delete Wr.animationstart.animation),"TransitionEvent"in window||delete Wr.transitionend.transition);function El(e){if(oa[e])return oa[e];if(!Wr[e])return e;var t=Wr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Mh)return oa[e]=t[n];return e}var Lh=El("animationend"),Oh=El("animationiteration"),Dh=El("animationstart"),Fh=El("transitionend"),$h=new Map,vf="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function rr(e,t){$h.set(e,t),Ar(t,[e])}for(var sa=0;sa<vf.length;sa++){var la=vf[sa],bv=la.toLowerCase(),Sv=la[0].toUpperCase()+la.slice(1);rr(bv,"on"+Sv)}rr(Lh,"onAnimationEnd");rr(Oh,"onAnimationIteration");rr(Dh,"onAnimationStart");rr("dblclick","onDoubleClick");rr("focusin","onFocus");rr("focusout","onBlur");rr(Fh,"onTransitionEnd");ui("onMouseEnter",["mouseout","mouseover"]);ui("onMouseLeave",["mouseout","mouseover"]);ui("onPointerEnter",["pointerout","pointerover"]);ui("onPointerLeave",["pointerout","pointerover"]);Ar("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Ar("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Ar("onBeforeInput",["compositionend","keypress","textInput","paste"]);Ar("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Ar("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Ar("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var qi="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(" "),_v=new Set("cancel close invalid load scroll toggle".split(" ").concat(qi));function kf(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,b0(r,t,void 0,e),e.currentTarget=null}function Uh(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var s=r.length-1;0<=s;s--){var l=r[s],a=l.instance,u=l.currentTarget;if(l=l.listener,a!==o&&i.isPropagationStopped())break e;kf(i,l,u),o=a}else for(s=0;s<r.length;s++){if(l=r[s],a=l.instance,u=l.currentTarget,l=l.listener,a!==o&&i.isPropagationStopped())break e;kf(i,l,u),o=a}}}if(Ls)throw e=nu,Ls=!1,nu=null,e}function je(e,t){var n=t[fu];n===void 0&&(n=t[fu]=new Set);var r=e+"__bubble";n.has(r)||(Bh(t,e,2,!1),n.add(r))}function aa(e,t,n){var r=0;t&&(r|=4),Bh(n,e,r,t)}var Jo="_reactListening"+Math.random().toString(36).slice(2);function mo(e){if(!e[Jo]){e[Jo]=!0,Qm.forEach(function(n){n!=="selectionchange"&&(_v.has(n)||aa(n,!1,e),aa(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Jo]||(t[Jo]=!0,aa("selectionchange",!1,t))}}function Bh(e,t,n,r){switch(Ch(t)){case 1:var i=D0;break;case 4:i=F0;break;default:i=bc}n=i.bind(null,t,n,e),i=void 0,!tu||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function ua(e,t,n,r,i){var o=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var l=r.stateNode.containerInfo;if(l===i||l.nodeType===8&&l.parentNode===i)break;if(s===4)for(s=r.return;s!==null;){var a=s.tag;if((a===3||a===4)&&(a=s.stateNode.containerInfo,a===i||a.nodeType===8&&a.parentNode===i))return;s=s.return}for(;l!==null;){if(s=hr(l),s===null)return;if(a=s.tag,a===5||a===6){r=o=s;continue e}l=l.parentNode}}r=r.return}dh(function(){var u=o,f=xc(n),d=[];e:{var m=$h.get(e);if(m!==void 0){var p=_c,x=e;switch(e){case"keypress":if(ws(n)===0)break e;case"keydown":case"keyup":p=ev;break;case"focusin":x="focus",p=na;break;case"focusout":x="blur",p=na;break;case"beforeblur":case"afterblur":p=na;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":p=af;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":p=B0;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":p=rv;break;case Lh:case Oh:case Dh:p=q0;break;case Fh:p=ov;break;case"scroll":p=$0;break;case"wheel":p=lv;break;case"copy":case"cut":case"paste":p=Z0;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":p=cf}var b=(t&4)!==0,I=!b&&e==="scroll",y=b?m!==null?m+"Capture":null:m;b=[];for(var v=u,w;v!==null;){w=v;var N=w.stateNode;if(w.tag===5&&N!==null&&(w=N,y!==null&&(N=lo(v,y),N!=null&&b.push(ho(v,N,w)))),I)break;v=v.return}0<b.length&&(m=new p(m,x,null,n,f),d.push({event:m,listeners:b}))}}if(!(t&7)){e:{if(m=e==="mouseover"||e==="pointerover",p=e==="mouseout"||e==="pointerout",m&&n!==Ja&&(x=n.relatedTarget||n.fromElement)&&(hr(x)||x[Cn]))break e;if((p||m)&&(m=f.window===f?f:(m=f.ownerDocument)?m.defaultView||m.parentWindow:window,p?(x=n.relatedTarget||n.toElement,p=u,x=x?hr(x):null,x!==null&&(I=Pr(x),x!==I||x.tag!==5&&x.tag!==6)&&(x=null)):(p=null,x=u),p!==x)){if(b=af,N="onMouseLeave",y="onMouseEnter",v="mouse",(e==="pointerout"||e==="pointerover")&&(b=cf,N="onPointerLeave",y="onPointerEnter",v="pointer"),I=p==null?m:Zr(p),w=x==null?m:Zr(x),m=new b(N,v+"leave",p,n,f),m.target=I,m.relatedTarget=w,N=null,hr(f)===u&&(b=new b(y,v+"enter",x,n,f),b.target=w,b.relatedTarget=I,N=b),I=N,p&&x)t:{for(b=p,y=x,v=0,w=b;w;w=Dr(w))v++;for(w=0,N=y;N;N=Dr(N))w++;for(;0<v-w;)b=Dr(b),v--;for(;0<w-v;)y=Dr(y),w--;for(;v--;){if(b===y||y!==null&&b===y.alternate)break t;b=Dr(b),y=Dr(y)}b=null}else b=null;p!==null&&wf(d,m,p,b,!1),x!==null&&I!==null&&wf(d,I,x,b,!0)}}e:{if(m=u?Zr(u):window,p=m.nodeName&&m.nodeName.toLowerCase(),p==="select"||p==="input"&&m.type==="file")var j=mv;else if(pf(m))if(Ah)j=xv;else{j=gv;var S=hv}else(p=m.nodeName)&&p.toLowerCase()==="input"&&(m.type==="checkbox"||m.type==="radio")&&(j=yv);if(j&&(j=j(e,u))){jh(d,j,n,f);break e}S&&S(e,m,u),e==="focusout"&&(S=m._wrapperState)&&S.controlled&&m.type==="number"&&Ga(m,"number",m.value)}switch(S=u?Zr(u):window,e){case"focusin":(pf(S)||S.contentEditable==="true")&&(qr=S,su=u,Yi=null);break;case"focusout":Yi=su=qr=null;break;case"mousedown":lu=!0;break;case"contextmenu":case"mouseup":case"dragend":lu=!1,xf(d,n,f);break;case"selectionchange":if(wv)break;case"keydown":case"keyup":xf(d,n,f)}var A;if(Ic)e:{switch(e){case"compositionstart":var E="onCompositionStart";break e;case"compositionend":E="onCompositionEnd";break e;case"compositionupdate":E="onCompositionUpdate";break e}E=void 0}else Hr?Eh(e,n)&&(E="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(E="onCompositionStart");E&&(Nh&&n.locale!=="ko"&&(Hr||E!=="onCompositionStart"?E==="onCompositionEnd"&&Hr&&(A=Ih()):(Un=f,Sc="value"in Un?Un.value:Un.textContent,Hr=!0)),S=Us(u,E),0<S.length&&(E=new uf(E,e,null,n,f),d.push({event:E,listeners:S}),A?E.data=A:(A=Th(n),A!==null&&(E.data=A)))),(A=uv?cv(e,n):dv(e,n))&&(u=Us(u,"onBeforeInput"),0<u.length&&(f=new uf("onBeforeInput","beforeinput",null,n,f),d.push({event:f,listeners:u}),f.data=A))}Uh(d,t)})}function ho(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Us(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,o=i.stateNode;i.tag===5&&o!==null&&(i=o,o=lo(e,n),o!=null&&r.unshift(ho(e,o,i)),o=lo(e,t),o!=null&&r.push(ho(e,o,i))),e=e.return}return r}function Dr(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function wf(e,t,n,r,i){for(var o=t._reactName,s=[];n!==null&&n!==r;){var l=n,a=l.alternate,u=l.stateNode;if(a!==null&&a===r)break;l.tag===5&&u!==null&&(l=u,i?(a=lo(n,o),a!=null&&s.unshift(ho(n,a,l))):i||(a=lo(n,o),a!=null&&s.push(ho(n,a,l)))),n=n.return}s.length!==0&&e.push({event:t,listeners:s})}var Cv=/\r\n?/g,Iv=/\u0000|\uFFFD/g;function bf(e){return(typeof e=="string"?e:""+e).replace(Cv,`
44
+ `).replace(Iv,"")}function es(e,t,n){if(t=bf(t),bf(e)!==t&&n)throw Error(F(425))}function Bs(){}var au=null,uu=null;function cu(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var du=typeof setTimeout=="function"?setTimeout:void 0,Nv=typeof clearTimeout=="function"?clearTimeout:void 0,Sf=typeof Promise=="function"?Promise:void 0,Ev=typeof queueMicrotask=="function"?queueMicrotask:typeof Sf<"u"?function(e){return Sf.resolve(null).then(e).catch(Tv)}:du;function Tv(e){setTimeout(function(){throw e})}function ca(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),co(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);co(t)}function Zn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function _f(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var bi=Math.random().toString(36).slice(2),en="__reactFiber$"+bi,go="__reactProps$"+bi,Cn="__reactContainer$"+bi,fu="__reactEvents$"+bi,jv="__reactListeners$"+bi,Av="__reactHandles$"+bi;function hr(e){var t=e[en];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Cn]||n[en]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=_f(e);e!==null;){if(n=e[en])return n;e=_f(e)}return t}e=n,n=e.parentNode}return null}function zo(e){return e=e[en]||e[Cn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Zr(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(F(33))}function Tl(e){return e[go]||null}var pu=[],Gr=-1;function ir(e){return{current:e}}function Ae(e){0>Gr||(e.current=pu[Gr],pu[Gr]=null,Gr--)}function Ee(e,t){Gr++,pu[Gr]=e.current,e.current=t}var er={},rt=ir(er),gt=ir(!1),kr=er;function ci(e,t){var n=e.type.contextTypes;if(!n)return er;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function yt(e){return e=e.childContextTypes,e!=null}function Vs(){Ae(gt),Ae(rt)}function Cf(e,t,n){if(rt.current!==er)throw Error(F(168));Ee(rt,t),Ee(gt,n)}function Vh(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(F(108,h0(e)||"Unknown",i));return Le({},n,r)}function Hs(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||er,kr=rt.current,Ee(rt,e),Ee(gt,gt.current),!0}function If(e,t,n){var r=e.stateNode;if(!r)throw Error(F(169));n?(e=Vh(e,t,kr),r.__reactInternalMemoizedMergedChildContext=e,Ae(gt),Ae(rt),Ee(rt,e)):Ae(gt),Ee(gt,n)}var gn=null,jl=!1,da=!1;function Hh(e){gn===null?gn=[e]:gn.push(e)}function Pv(e){jl=!0,Hh(e)}function or(){if(!da&&gn!==null){da=!0;var e=0,t=Se;try{var n=gn;for(Se=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}gn=null,jl=!1}catch(i){throw gn!==null&&(gn=gn.slice(e+1)),hh(vc,or),i}finally{Se=t,da=!1}}return null}var Qr=[],Kr=0,qs=null,Ws=0,At=[],Pt=0,wr=null,yn=1,xn="";function fr(e,t){Qr[Kr++]=Ws,Qr[Kr++]=qs,qs=e,Ws=t}function qh(e,t,n){At[Pt++]=yn,At[Pt++]=xn,At[Pt++]=wr,wr=e;var r=yn;e=xn;var i=32-qt(r)-1;r&=~(1<<i),n+=1;var o=32-qt(t)+i;if(30<o){var s=i-i%5;o=(r&(1<<s)-1).toString(32),r>>=s,i-=s,yn=1<<32-qt(t)+i|n<<i|r,xn=o+e}else yn=1<<o|n<<i|r,xn=e}function Ec(e){e.return!==null&&(fr(e,1),qh(e,1,0))}function Tc(e){for(;e===qs;)qs=Qr[--Kr],Qr[Kr]=null,Ws=Qr[--Kr],Qr[Kr]=null;for(;e===wr;)wr=At[--Pt],At[Pt]=null,xn=At[--Pt],At[Pt]=null,yn=At[--Pt],At[Pt]=null}var Ct=null,_t=null,Pe=!1,Ht=null;function Wh(e,t){var n=Rt(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Nf(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Ct=e,_t=Zn(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Ct=e,_t=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=wr!==null?{id:yn,overflow:xn}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Rt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Ct=e,_t=null,!0):!1;default:return!1}}function mu(e){return(e.mode&1)!==0&&(e.flags&128)===0}function hu(e){if(Pe){var t=_t;if(t){var n=t;if(!Nf(e,t)){if(mu(e))throw Error(F(418));t=Zn(n.nextSibling);var r=Ct;t&&Nf(e,t)?Wh(r,n):(e.flags=e.flags&-4097|2,Pe=!1,Ct=e)}}else{if(mu(e))throw Error(F(418));e.flags=e.flags&-4097|2,Pe=!1,Ct=e}}}function Ef(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Ct=e}function ts(e){if(e!==Ct)return!1;if(!Pe)return Ef(e),Pe=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!cu(e.type,e.memoizedProps)),t&&(t=_t)){if(mu(e))throw Zh(),Error(F(418));for(;t;)Wh(e,t),t=Zn(t.nextSibling)}if(Ef(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(F(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){_t=Zn(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}_t=null}}else _t=Ct?Zn(e.stateNode.nextSibling):null;return!0}function Zh(){for(var e=_t;e;)e=Zn(e.nextSibling)}function di(){_t=Ct=null,Pe=!1}function jc(e){Ht===null?Ht=[e]:Ht.push(e)}var Rv=jn.ReactCurrentBatchConfig;function Li(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(F(309));var r=n.stateNode}if(!r)throw Error(F(147,e));var i=r,o=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===o?t.ref:(t=function(s){var l=i.refs;s===null?delete l[o]:l[o]=s},t._stringRef=o,t)}if(typeof e!="string")throw Error(F(284));if(!n._owner)throw Error(F(290,e))}return e}function ns(e,t){throw e=Object.prototype.toString.call(t),Error(F(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Tf(e){var t=e._init;return t(e._payload)}function Gh(e){function t(y,v){if(e){var w=y.deletions;w===null?(y.deletions=[v],y.flags|=16):w.push(v)}}function n(y,v){if(!e)return null;for(;v!==null;)t(y,v),v=v.sibling;return null}function r(y,v){for(y=new Map;v!==null;)v.key!==null?y.set(v.key,v):y.set(v.index,v),v=v.sibling;return y}function i(y,v){return y=Yn(y,v),y.index=0,y.sibling=null,y}function o(y,v,w){return y.index=w,e?(w=y.alternate,w!==null?(w=w.index,w<v?(y.flags|=2,v):w):(y.flags|=2,v)):(y.flags|=1048576,v)}function s(y){return e&&y.alternate===null&&(y.flags|=2),y}function l(y,v,w,N){return v===null||v.tag!==6?(v=xa(w,y.mode,N),v.return=y,v):(v=i(v,w),v.return=y,v)}function a(y,v,w,N){var j=w.type;return j===Vr?f(y,v,w.props.children,N,w.key):v!==null&&(v.elementType===j||typeof j=="object"&&j!==null&&j.$$typeof===Ln&&Tf(j)===v.type)?(N=i(v,w.props),N.ref=Li(y,v,w),N.return=y,N):(N=Es(w.type,w.key,w.props,null,y.mode,N),N.ref=Li(y,v,w),N.return=y,N)}function u(y,v,w,N){return v===null||v.tag!==4||v.stateNode.containerInfo!==w.containerInfo||v.stateNode.implementation!==w.implementation?(v=va(w,y.mode,N),v.return=y,v):(v=i(v,w.children||[]),v.return=y,v)}function f(y,v,w,N,j){return v===null||v.tag!==7?(v=vr(w,y.mode,N,j),v.return=y,v):(v=i(v,w),v.return=y,v)}function d(y,v,w){if(typeof v=="string"&&v!==""||typeof v=="number")return v=xa(""+v,y.mode,w),v.return=y,v;if(typeof v=="object"&&v!==null){switch(v.$$typeof){case qo:return w=Es(v.type,v.key,v.props,null,y.mode,w),w.ref=Li(y,null,v),w.return=y,w;case Br:return v=va(v,y.mode,w),v.return=y,v;case Ln:var N=v._init;return d(y,N(v._payload),w)}if(Vi(v)||Ai(v))return v=vr(v,y.mode,w,null),v.return=y,v;ns(y,v)}return null}function m(y,v,w,N){var j=v!==null?v.key:null;if(typeof w=="string"&&w!==""||typeof w=="number")return j!==null?null:l(y,v,""+w,N);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case qo:return w.key===j?a(y,v,w,N):null;case Br:return w.key===j?u(y,v,w,N):null;case Ln:return j=w._init,m(y,v,j(w._payload),N)}if(Vi(w)||Ai(w))return j!==null?null:f(y,v,w,N,null);ns(y,w)}return null}function p(y,v,w,N,j){if(typeof N=="string"&&N!==""||typeof N=="number")return y=y.get(w)||null,l(v,y,""+N,j);if(typeof N=="object"&&N!==null){switch(N.$$typeof){case qo:return y=y.get(N.key===null?w:N.key)||null,a(v,y,N,j);case Br:return y=y.get(N.key===null?w:N.key)||null,u(v,y,N,j);case Ln:var S=N._init;return p(y,v,w,S(N._payload),j)}if(Vi(N)||Ai(N))return y=y.get(w)||null,f(v,y,N,j,null);ns(v,N)}return null}function x(y,v,w,N){for(var j=null,S=null,A=v,E=v=0,$=null;A!==null&&E<w.length;E++){A.index>E?($=A,A=null):$=A.sibling;var C=m(y,A,w[E],N);if(C===null){A===null&&(A=$);break}e&&A&&C.alternate===null&&t(y,A),v=o(C,v,E),S===null?j=C:S.sibling=C,S=C,A=$}if(E===w.length)return n(y,A),Pe&&fr(y,E),j;if(A===null){for(;E<w.length;E++)A=d(y,w[E],N),A!==null&&(v=o(A,v,E),S===null?j=A:S.sibling=A,S=A);return Pe&&fr(y,E),j}for(A=r(y,A);E<w.length;E++)$=p(A,y,E,w[E],N),$!==null&&(e&&$.alternate!==null&&A.delete($.key===null?E:$.key),v=o($,v,E),S===null?j=$:S.sibling=$,S=$);return e&&A.forEach(function(O){return t(y,O)}),Pe&&fr(y,E),j}function b(y,v,w,N){var j=Ai(w);if(typeof j!="function")throw Error(F(150));if(w=j.call(w),w==null)throw Error(F(151));for(var S=j=null,A=v,E=v=0,$=null,C=w.next();A!==null&&!C.done;E++,C=w.next()){A.index>E?($=A,A=null):$=A.sibling;var O=m(y,A,C.value,N);if(O===null){A===null&&(A=$);break}e&&A&&O.alternate===null&&t(y,A),v=o(O,v,E),S===null?j=O:S.sibling=O,S=O,A=$}if(C.done)return n(y,A),Pe&&fr(y,E),j;if(A===null){for(;!C.done;E++,C=w.next())C=d(y,C.value,N),C!==null&&(v=o(C,v,E),S===null?j=C:S.sibling=C,S=C);return Pe&&fr(y,E),j}for(A=r(y,A);!C.done;E++,C=w.next())C=p(A,y,E,C.value,N),C!==null&&(e&&C.alternate!==null&&A.delete(C.key===null?E:C.key),v=o(C,v,E),S===null?j=C:S.sibling=C,S=C);return e&&A.forEach(function(z){return t(y,z)}),Pe&&fr(y,E),j}function I(y,v,w,N){if(typeof w=="object"&&w!==null&&w.type===Vr&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case qo:e:{for(var j=w.key,S=v;S!==null;){if(S.key===j){if(j=w.type,j===Vr){if(S.tag===7){n(y,S.sibling),v=i(S,w.props.children),v.return=y,y=v;break e}}else if(S.elementType===j||typeof j=="object"&&j!==null&&j.$$typeof===Ln&&Tf(j)===S.type){n(y,S.sibling),v=i(S,w.props),v.ref=Li(y,S,w),v.return=y,y=v;break e}n(y,S);break}else t(y,S);S=S.sibling}w.type===Vr?(v=vr(w.props.children,y.mode,N,w.key),v.return=y,y=v):(N=Es(w.type,w.key,w.props,null,y.mode,N),N.ref=Li(y,v,w),N.return=y,y=N)}return s(y);case Br:e:{for(S=w.key;v!==null;){if(v.key===S)if(v.tag===4&&v.stateNode.containerInfo===w.containerInfo&&v.stateNode.implementation===w.implementation){n(y,v.sibling),v=i(v,w.children||[]),v.return=y,y=v;break e}else{n(y,v);break}else t(y,v);v=v.sibling}v=va(w,y.mode,N),v.return=y,y=v}return s(y);case Ln:return S=w._init,I(y,v,S(w._payload),N)}if(Vi(w))return x(y,v,w,N);if(Ai(w))return b(y,v,w,N);ns(y,w)}return typeof w=="string"&&w!==""||typeof w=="number"?(w=""+w,v!==null&&v.tag===6?(n(y,v.sibling),v=i(v,w),v.return=y,y=v):(n(y,v),v=xa(w,y.mode,N),v.return=y,y=v),s(y)):n(y,v)}return I}var fi=Gh(!0),Qh=Gh(!1),Zs=ir(null),Gs=null,Yr=null,Ac=null;function Pc(){Ac=Yr=Gs=null}function Rc(e){var t=Zs.current;Ae(Zs),e._currentValue=t}function gu(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function ii(e,t){Gs=e,Ac=Yr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(ht=!0),e.firstContext=null)}function Mt(e){var t=e._currentValue;if(Ac!==e)if(e={context:e,memoizedValue:t,next:null},Yr===null){if(Gs===null)throw Error(F(308));Yr=e,Gs.dependencies={lanes:0,firstContext:e}}else Yr=Yr.next=e;return t}var gr=null;function zc(e){gr===null?gr=[e]:gr.push(e)}function Kh(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,zc(t)):(n.next=i.next,i.next=n),t.interleaved=n,In(e,r)}function In(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var On=!1;function Mc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Yh(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function wn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Gn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,be&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,In(e,n)}return i=r.interleaved,i===null?(t.next=t,zc(r)):(t.next=i.next,i.next=t),r.interleaved=t,In(e,n)}function bs(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,kc(e,n)}}function jf(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?i=o=s:o=o.next=s,n=n.next}while(n!==null);o===null?i=o=t:o=o.next=t}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Qs(e,t,n,r){var i=e.updateQueue;On=!1;var o=i.firstBaseUpdate,s=i.lastBaseUpdate,l=i.shared.pending;if(l!==null){i.shared.pending=null;var a=l,u=a.next;a.next=null,s===null?o=u:s.next=u,s=a;var f=e.alternate;f!==null&&(f=f.updateQueue,l=f.lastBaseUpdate,l!==s&&(l===null?f.firstBaseUpdate=u:l.next=u,f.lastBaseUpdate=a))}if(o!==null){var d=i.baseState;s=0,f=u=a=null,l=o;do{var m=l.lane,p=l.eventTime;if((r&m)===m){f!==null&&(f=f.next={eventTime:p,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var x=e,b=l;switch(m=t,p=n,b.tag){case 1:if(x=b.payload,typeof x=="function"){d=x.call(p,d,m);break e}d=x;break e;case 3:x.flags=x.flags&-65537|128;case 0:if(x=b.payload,m=typeof x=="function"?x.call(p,d,m):x,m==null)break e;d=Le({},d,m);break e;case 2:On=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,m=i.effects,m===null?i.effects=[l]:m.push(l))}else p={eventTime:p,lane:m,tag:l.tag,payload:l.payload,callback:l.callback,next:null},f===null?(u=f=p,a=d):f=f.next=p,s|=m;if(l=l.next,l===null){if(l=i.shared.pending,l===null)break;m=l,l=m.next,m.next=null,i.lastBaseUpdate=m,i.shared.pending=null}}while(!0);if(f===null&&(a=d),i.baseState=a,i.firstBaseUpdate=u,i.lastBaseUpdate=f,t=i.shared.interleaved,t!==null){i=t;do s|=i.lane,i=i.next;while(i!==t)}else o===null&&(i.shared.lanes=0);Sr|=s,e.lanes=s,e.memoizedState=d}}function Af(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(F(191,i));i.call(r)}}}var Mo={},nn=ir(Mo),yo=ir(Mo),xo=ir(Mo);function yr(e){if(e===Mo)throw Error(F(174));return e}function Lc(e,t){switch(Ee(xo,t),Ee(yo,e),Ee(nn,Mo),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Ka(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Ka(t,e)}Ae(nn),Ee(nn,t)}function pi(){Ae(nn),Ae(yo),Ae(xo)}function Xh(e){yr(xo.current);var t=yr(nn.current),n=Ka(t,e.type);t!==n&&(Ee(yo,e),Ee(nn,n))}function Oc(e){yo.current===e&&(Ae(nn),Ae(yo))}var ze=ir(0);function Ks(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var fa=[];function Dc(){for(var e=0;e<fa.length;e++)fa[e]._workInProgressVersionPrimary=null;fa.length=0}var Ss=jn.ReactCurrentDispatcher,pa=jn.ReactCurrentBatchConfig,br=0,Me=null,He=null,We=null,Ys=!1,Xi=!1,vo=0,zv=0;function Je(){throw Error(F(321))}function Fc(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Gt(e[n],t[n]))return!1;return!0}function $c(e,t,n,r,i,o){if(br=o,Me=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Ss.current=e===null||e.memoizedState===null?Dv:Fv,e=n(r,i),Xi){o=0;do{if(Xi=!1,vo=0,25<=o)throw Error(F(301));o+=1,We=He=null,t.updateQueue=null,Ss.current=$v,e=n(r,i)}while(Xi)}if(Ss.current=Xs,t=He!==null&&He.next!==null,br=0,We=He=Me=null,Ys=!1,t)throw Error(F(300));return e}function Uc(){var e=vo!==0;return vo=0,e}function Yt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return We===null?Me.memoizedState=We=e:We=We.next=e,We}function Lt(){if(He===null){var e=Me.alternate;e=e!==null?e.memoizedState:null}else e=He.next;var t=We===null?Me.memoizedState:We.next;if(t!==null)We=t,He=e;else{if(e===null)throw Error(F(310));He=e,e={memoizedState:He.memoizedState,baseState:He.baseState,baseQueue:He.baseQueue,queue:He.queue,next:null},We===null?Me.memoizedState=We=e:We=We.next=e}return We}function ko(e,t){return typeof t=="function"?t(e):t}function ma(e){var t=Lt(),n=t.queue;if(n===null)throw Error(F(311));n.lastRenderedReducer=e;var r=He,i=r.baseQueue,o=n.pending;if(o!==null){if(i!==null){var s=i.next;i.next=o.next,o.next=s}r.baseQueue=i=o,n.pending=null}if(i!==null){o=i.next,r=r.baseState;var l=s=null,a=null,u=o;do{var f=u.lane;if((br&f)===f)a!==null&&(a=a.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var d={lane:f,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};a===null?(l=a=d,s=r):a=a.next=d,Me.lanes|=f,Sr|=f}u=u.next}while(u!==null&&u!==o);a===null?s=r:a.next=l,Gt(r,t.memoizedState)||(ht=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=a,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do o=i.lane,Me.lanes|=o,Sr|=o,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function ha(e){var t=Lt(),n=t.queue;if(n===null)throw Error(F(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(i!==null){n.pending=null;var s=i=i.next;do o=e(o,s.action),s=s.next;while(s!==i);Gt(o,t.memoizedState)||(ht=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Jh(){}function eg(e,t){var n=Me,r=Lt(),i=t(),o=!Gt(r.memoizedState,i);if(o&&(r.memoizedState=i,ht=!0),r=r.queue,Bc(rg.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||We!==null&&We.memoizedState.tag&1){if(n.flags|=2048,wo(9,ng.bind(null,n,r,i,t),void 0,null),Ze===null)throw Error(F(349));br&30||tg(n,t,i)}return i}function tg(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Me.updateQueue,t===null?(t={lastEffect:null,stores:null},Me.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function ng(e,t,n,r){t.value=n,t.getSnapshot=r,ig(t)&&og(e)}function rg(e,t,n){return n(function(){ig(t)&&og(e)})}function ig(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Gt(e,n)}catch{return!0}}function og(e){var t=In(e,1);t!==null&&Wt(t,e,1,-1)}function Pf(e){var t=Yt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ko,lastRenderedState:e},t.queue=e,e=e.dispatch=Ov.bind(null,Me,e),[t.memoizedState,e]}function wo(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Me.updateQueue,t===null?(t={lastEffect:null,stores:null},Me.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function sg(){return Lt().memoizedState}function _s(e,t,n,r){var i=Yt();Me.flags|=e,i.memoizedState=wo(1|t,n,void 0,r===void 0?null:r)}function Al(e,t,n,r){var i=Lt();r=r===void 0?null:r;var o=void 0;if(He!==null){var s=He.memoizedState;if(o=s.destroy,r!==null&&Fc(r,s.deps)){i.memoizedState=wo(t,n,o,r);return}}Me.flags|=e,i.memoizedState=wo(1|t,n,o,r)}function Rf(e,t){return _s(8390656,8,e,t)}function Bc(e,t){return Al(2048,8,e,t)}function lg(e,t){return Al(4,2,e,t)}function ag(e,t){return Al(4,4,e,t)}function ug(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function cg(e,t,n){return n=n!=null?n.concat([e]):null,Al(4,4,ug.bind(null,t,e),n)}function Vc(){}function dg(e,t){var n=Lt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Fc(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function fg(e,t){var n=Lt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Fc(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function pg(e,t,n){return br&21?(Gt(n,t)||(n=xh(),Me.lanes|=n,Sr|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,ht=!0),e.memoizedState=n)}function Mv(e,t){var n=Se;Se=n!==0&&4>n?n:4,e(!0);var r=pa.transition;pa.transition={};try{e(!1),t()}finally{Se=n,pa.transition=r}}function mg(){return Lt().memoizedState}function Lv(e,t,n){var r=Kn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},hg(e))gg(t,n);else if(n=Kh(e,t,n,r),n!==null){var i=at();Wt(n,e,r,i),yg(n,t,r)}}function Ov(e,t,n){var r=Kn(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(hg(e))gg(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var s=t.lastRenderedState,l=o(s,n);if(i.hasEagerState=!0,i.eagerState=l,Gt(l,s)){var a=t.interleaved;a===null?(i.next=i,zc(t)):(i.next=a.next,a.next=i),t.interleaved=i;return}}catch{}finally{}n=Kh(e,t,i,r),n!==null&&(i=at(),Wt(n,e,r,i),yg(n,t,r))}}function hg(e){var t=e.alternate;return e===Me||t!==null&&t===Me}function gg(e,t){Xi=Ys=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function yg(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,kc(e,n)}}var Xs={readContext:Mt,useCallback:Je,useContext:Je,useEffect:Je,useImperativeHandle:Je,useInsertionEffect:Je,useLayoutEffect:Je,useMemo:Je,useReducer:Je,useRef:Je,useState:Je,useDebugValue:Je,useDeferredValue:Je,useTransition:Je,useMutableSource:Je,useSyncExternalStore:Je,useId:Je,unstable_isNewReconciler:!1},Dv={readContext:Mt,useCallback:function(e,t){return Yt().memoizedState=[e,t===void 0?null:t],e},useContext:Mt,useEffect:Rf,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,_s(4194308,4,ug.bind(null,t,e),n)},useLayoutEffect:function(e,t){return _s(4194308,4,e,t)},useInsertionEffect:function(e,t){return _s(4,2,e,t)},useMemo:function(e,t){var n=Yt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Yt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Lv.bind(null,Me,e),[r.memoizedState,e]},useRef:function(e){var t=Yt();return e={current:e},t.memoizedState=e},useState:Pf,useDebugValue:Vc,useDeferredValue:function(e){return Yt().memoizedState=e},useTransition:function(){var e=Pf(!1),t=e[0];return e=Mv.bind(null,e[1]),Yt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Me,i=Yt();if(Pe){if(n===void 0)throw Error(F(407));n=n()}else{if(n=t(),Ze===null)throw Error(F(349));br&30||tg(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,Rf(rg.bind(null,r,o,e),[e]),r.flags|=2048,wo(9,ng.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Yt(),t=Ze.identifierPrefix;if(Pe){var n=xn,r=yn;n=(r&~(1<<32-qt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=vo++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=zv++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Fv={readContext:Mt,useCallback:dg,useContext:Mt,useEffect:Bc,useImperativeHandle:cg,useInsertionEffect:lg,useLayoutEffect:ag,useMemo:fg,useReducer:ma,useRef:sg,useState:function(){return ma(ko)},useDebugValue:Vc,useDeferredValue:function(e){var t=Lt();return pg(t,He.memoizedState,e)},useTransition:function(){var e=ma(ko)[0],t=Lt().memoizedState;return[e,t]},useMutableSource:Jh,useSyncExternalStore:eg,useId:mg,unstable_isNewReconciler:!1},$v={readContext:Mt,useCallback:dg,useContext:Mt,useEffect:Bc,useImperativeHandle:cg,useInsertionEffect:lg,useLayoutEffect:ag,useMemo:fg,useReducer:ha,useRef:sg,useState:function(){return ha(ko)},useDebugValue:Vc,useDeferredValue:function(e){var t=Lt();return He===null?t.memoizedState=e:pg(t,He.memoizedState,e)},useTransition:function(){var e=ha(ko)[0],t=Lt().memoizedState;return[e,t]},useMutableSource:Jh,useSyncExternalStore:eg,useId:mg,unstable_isNewReconciler:!1};function Bt(e,t){if(e&&e.defaultProps){t=Le({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function yu(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Le({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Pl={isMounted:function(e){return(e=e._reactInternals)?Pr(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=at(),i=Kn(e),o=wn(r,i);o.payload=t,n!=null&&(o.callback=n),t=Gn(e,o,i),t!==null&&(Wt(t,e,i,r),bs(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=at(),i=Kn(e),o=wn(r,i);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=Gn(e,o,i),t!==null&&(Wt(t,e,i,r),bs(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=at(),r=Kn(e),i=wn(n,r);i.tag=2,t!=null&&(i.callback=t),t=Gn(e,i,r),t!==null&&(Wt(t,e,r,n),bs(t,e,r))}};function zf(e,t,n,r,i,o,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,o,s):t.prototype&&t.prototype.isPureReactComponent?!po(n,r)||!po(i,o):!0}function xg(e,t,n){var r=!1,i=er,o=t.contextType;return typeof o=="object"&&o!==null?o=Mt(o):(i=yt(t)?kr:rt.current,r=t.contextTypes,o=(r=r!=null)?ci(e,i):er),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Pl,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function Mf(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Pl.enqueueReplaceState(t,t.state,null)}function xu(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},Mc(e);var o=t.contextType;typeof o=="object"&&o!==null?i.context=Mt(o):(o=yt(t)?kr:rt.current,i.context=ci(e,o)),i.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(yu(e,t,o,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&Pl.enqueueReplaceState(i,i.state,null),Qs(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function mi(e,t){try{var n="",r=t;do n+=m0(r),r=r.return;while(r);var i=n}catch(o){i=`
45
45
  Error generating stack: `+o.message+`
46
- `+o.stack}return{value:e,source:t,stack:i,digest:null}}function ga(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function vu(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var $v=typeof WeakMap=="function"?WeakMap:Map;function vg(e,t,n){n=wn(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){el||(el=!0,Tu=r),vu(e,t)},n}function kg(e,t,n){n=wn(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){vu(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){vu(e,t),typeof r!="function"&&(Qn===null?Qn=new Set([this]):Qn.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function Lf(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new $v;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=ek.bind(null,e,t,n),t.then(e,e))}function Of(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Df(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=wn(-1,1),t.tag=2,Gn(n,t,1))),n.lanes|=1),e)}var Uv=jn.ReactCurrentOwner,ht=!1;function st(e,t,n,r){t.child=e===null?Qh(t,null,n,r):fi(t,e.child,n,r)}function Ff(e,t,n,r,i){n=n.render;var o=t.ref;return ii(t,i),r=$c(e,t,n,r,o,i),n=Uc(),e!==null&&!ht?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Nn(e,t,i)):(Pe&&n&&Ec(t),t.flags|=1,st(e,t,r,i),t.child)}function $f(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!Yc(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,wg(e,t,o,r,i)):(e=Es(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&i)){var s=o.memoizedProps;if(n=n.compare,n=n!==null?n:po,n(s,r)&&e.ref===t.ref)return Nn(e,t,i)}return t.flags|=1,e=Yn(o,r),e.ref=t.ref,e.return=t,t.child=e}function wg(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(po(o,r)&&e.ref===t.ref)if(ht=!1,t.pendingProps=r=o,(e.lanes&i)!==0)e.flags&131072&&(ht=!0);else return t.lanes=e.lanes,Nn(e,t,i)}return ku(e,t,n,r,i)}function bg(e,t,n){var r=t.pendingProps,i=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ee(Jr,St),St|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ee(Jr,St),St|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,Ee(Jr,St),St|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,Ee(Jr,St),St|=r;return st(e,t,i,n),t.child}function Sg(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function ku(e,t,n,r,i){var o=yt(n)?kr:rt.current;return o=ci(t,o),ii(t,i),n=$c(e,t,n,r,o,i),r=Uc(),e!==null&&!ht?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Nn(e,t,i)):(Pe&&r&&Ec(t),t.flags|=1,st(e,t,n,i),t.child)}function Uf(e,t,n,r,i){if(yt(n)){var o=!0;Hs(t)}else o=!1;if(ii(t,i),t.stateNode===null)Cs(e,t),xg(t,n,r),xu(t,n,r,i),r=!0;else if(e===null){var s=t.stateNode,l=t.memoizedProps;s.props=l;var a=s.context,u=n.contextType;typeof u=="object"&&u!==null?u=Mt(u):(u=yt(n)?kr:rt.current,u=ci(t,u));var f=n.getDerivedStateFromProps,d=typeof f=="function"||typeof s.getSnapshotBeforeUpdate=="function";d||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(l!==r||a!==u)&&Mf(t,s,r,u),On=!1;var m=t.memoizedState;s.state=m,Qs(t,r,s,i),a=t.memoizedState,l!==r||m!==a||gt.current||On?(typeof f=="function"&&(yu(t,n,f,r),a=t.memoizedState),(l=On||zf(t,n,l,r,m,a,u))?(d||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=a),s.props=r,s.state=a,s.context=u,r=l):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,Yh(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:Bt(t.type,l),s.props=u,d=t.pendingProps,m=s.context,a=n.contextType,typeof a=="object"&&a!==null?a=Mt(a):(a=yt(n)?kr:rt.current,a=ci(t,a));var p=n.getDerivedStateFromProps;(f=typeof p=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(l!==d||m!==a)&&Mf(t,s,r,a),On=!1,m=t.memoizedState,s.state=m,Qs(t,r,s,i);var x=t.memoizedState;l!==d||m!==x||gt.current||On?(typeof p=="function"&&(yu(t,n,p,r),x=t.memoizedState),(u=On||zf(t,n,u,r,m,x,a)||!1)?(f||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,x,a),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,x,a)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||l===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=x),s.props=r,s.state=x,s.context=a,r=u):(typeof s.componentDidUpdate!="function"||l===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),r=!1)}return wu(e,t,n,r,o,i)}function wu(e,t,n,r,i,o){Sg(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return i&&If(t,n,!1),Nn(e,t,o);r=t.stateNode,Uv.current=t;var l=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=fi(t,e.child,null,o),t.child=fi(t,null,l,o)):st(e,t,l,o),t.memoizedState=r.state,i&&If(t,n,!0),t.child}function _g(e){var t=e.stateNode;t.pendingContext?Cf(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Cf(e,t.context,!1),Lc(e,t.containerInfo)}function Bf(e,t,n,r,i){return di(),jc(i),t.flags|=256,st(e,t,n,r),t.child}var bu={dehydrated:null,treeContext:null,retryLane:0};function Su(e){return{baseLanes:e,cachePool:null,transitions:null}}function Cg(e,t,n){var r=t.pendingProps,i=ze.current,o=!1,s=(t.flags&128)!==0,l;if((l=s)||(l=e!==null&&e.memoizedState===null?!1:(i&2)!==0),l?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),Ee(ze,i&1),e===null)return hu(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(s=r.children,e=r.fallback,o?(r=t.mode,o=t.child,s={mode:"hidden",children:s},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=s):o=Ml(s,r,0,null),e=vr(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=Su(n),t.memoizedState=bu,e):Hc(t,s));if(i=e.memoizedState,i!==null&&(l=i.dehydrated,l!==null))return Bv(e,t,s,r,l,i,n);if(o){o=r.fallback,s=t.mode,i=e.child,l=i.sibling;var a={mode:"hidden",children:r.children};return!(s&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=a,t.deletions=null):(r=Yn(i,a),r.subtreeFlags=i.subtreeFlags&14680064),l!==null?o=Yn(l,o):(o=vr(o,s,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,s=e.child.memoizedState,s=s===null?Su(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},o.memoizedState=s,o.childLanes=e.childLanes&~n,t.memoizedState=bu,r}return o=e.child,e=o.sibling,r=Yn(o,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Hc(e,t){return t=Ml({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function rs(e,t,n,r){return r!==null&&jc(r),fi(t,e.child,null,n),e=Hc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Bv(e,t,n,r,i,o,s){if(n)return t.flags&256?(t.flags&=-257,r=ga(Error(F(422))),rs(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=Ml({mode:"visible",children:r.children},i,0,null),o=vr(o,i,s,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&fi(t,e.child,null,s),t.child.memoizedState=Su(s),t.memoizedState=bu,o);if(!(t.mode&1))return rs(e,t,s,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var l=r.dgst;return r=l,o=Error(F(419)),r=ga(o,r,void 0),rs(e,t,s,r)}if(l=(s&e.childLanes)!==0,ht||l){if(r=Ze,r!==null){switch(s&-s){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|s)?0:i,i!==0&&i!==o.retryLane&&(o.retryLane=i,In(e,i),Wt(r,e,i,-1))}return Kc(),r=ga(Error(F(421))),rs(e,t,s,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=tk.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,_t=Zn(i.nextSibling),Ct=t,Pe=!0,Ht=null,e!==null&&(At[Pt++]=yn,At[Pt++]=xn,At[Pt++]=wr,yn=e.id,xn=e.overflow,wr=t),t=Hc(t,r.children),t.flags|=4096,t)}function Vf(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),gu(e.return,t,n)}function ya(e,t,n,r,i){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function Ig(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(st(e,t,r.children,n),r=ze.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Vf(e,n,t);else if(e.tag===19)Vf(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Ee(ze,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&Ks(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),ya(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Ks(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}ya(t,!0,n,null,o);break;case"together":ya(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Cs(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Nn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Sr|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(F(153));if(t.child!==null){for(e=t.child,n=Yn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Yn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Vv(e,t,n){switch(t.tag){case 3:_g(t),di();break;case 5:Xh(t);break;case 1:yt(t.type)&&Hs(t);break;case 4:Lc(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;Ee(Zs,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Ee(ze,ze.current&1),t.flags|=128,null):n&t.child.childLanes?Cg(e,t,n):(Ee(ze,ze.current&1),e=Nn(e,t,n),e!==null?e.sibling:null);Ee(ze,ze.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Ig(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Ee(ze,ze.current),r)break;return null;case 22:case 23:return t.lanes=0,bg(e,t,n)}return Nn(e,t,n)}var Ng,_u,Eg,Tg;Ng=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};_u=function(){};Eg=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,yr(nn.current);var o=null;switch(n){case"input":i=Wa(e,i),r=Wa(e,r),o=[];break;case"select":i=Le({},i,{value:void 0}),r=Le({},r,{value:void 0}),o=[];break;case"textarea":i=Qa(e,i),r=Qa(e,r),o=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Bs)}Ya(n,r);var s;n=null;for(u in i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u==="style"){var l=i[u];for(s in l)l.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(oo.hasOwnProperty(u)?o||(o=[]):(o=o||[]).push(u,null));for(u in r){var a=r[u];if(l=i!=null?i[u]:void 0,r.hasOwnProperty(u)&&a!==l&&(a!=null||l!=null))if(u==="style")if(l){for(s in l)!l.hasOwnProperty(s)||a&&a.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in a)a.hasOwnProperty(s)&&l[s]!==a[s]&&(n||(n={}),n[s]=a[s])}else n||(o||(o=[]),o.push(u,n)),n=a;else u==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,l=l?l.__html:void 0,a!=null&&l!==a&&(o=o||[]).push(u,a)):u==="children"?typeof a!="string"&&typeof a!="number"||(o=o||[]).push(u,""+a):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(oo.hasOwnProperty(u)?(a!=null&&u==="onScroll"&&je("scroll",e),o||l===a||(o=[])):(o=o||[]).push(u,a))}n&&(o=o||[]).push("style",n);var u=o;(t.updateQueue=u)&&(t.flags|=4)}};Tg=function(e,t,n,r){n!==r&&(t.flags|=4)};function Oi(e,t){if(!Pe)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function et(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Hv(e,t,n){var r=t.pendingProps;switch(Tc(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return et(t),null;case 1:return yt(t.type)&&Vs(),et(t),null;case 3:return r=t.stateNode,pi(),Ae(gt),Ae(rt),Dc(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(ts(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Ht!==null&&(Pu(Ht),Ht=null))),_u(e,t),et(t),null;case 5:Oc(t);var i=yr(xo.current);if(n=t.type,e!==null&&t.stateNode!=null)Eg(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(F(166));return et(t),null}if(e=yr(nn.current),ts(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[en]=t,r[go]=o,e=(t.mode&1)!==0,n){case"dialog":je("cancel",r),je("close",r);break;case"iframe":case"object":case"embed":je("load",r);break;case"video":case"audio":for(i=0;i<qi.length;i++)je(qi[i],r);break;case"source":je("error",r);break;case"img":case"image":case"link":je("error",r),je("load",r);break;case"details":je("toggle",r);break;case"input":Yd(r,o),je("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},je("invalid",r);break;case"textarea":Jd(r,o),je("invalid",r)}Ya(n,o),i=null;for(var s in o)if(o.hasOwnProperty(s)){var l=o[s];s==="children"?typeof l=="string"?r.textContent!==l&&(o.suppressHydrationWarning!==!0&&es(r.textContent,l,e),i=["children",l]):typeof l=="number"&&r.textContent!==""+l&&(o.suppressHydrationWarning!==!0&&es(r.textContent,l,e),i=["children",""+l]):oo.hasOwnProperty(s)&&l!=null&&s==="onScroll"&&je("scroll",r)}switch(n){case"input":Wo(r),Xd(r,o,!0);break;case"textarea":Wo(r),ef(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=Bs)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{s=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=rh(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=s.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[en]=t,e[go]=r,Ng(e,t,!1,!1),t.stateNode=e;e:{switch(s=Xa(n,r),n){case"dialog":je("cancel",e),je("close",e),i=r;break;case"iframe":case"object":case"embed":je("load",e),i=r;break;case"video":case"audio":for(i=0;i<qi.length;i++)je(qi[i],e);i=r;break;case"source":je("error",e),i=r;break;case"img":case"image":case"link":je("error",e),je("load",e),i=r;break;case"details":je("toggle",e),i=r;break;case"input":Yd(e,r),i=Wa(e,r),je("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=Le({},r,{value:void 0}),je("invalid",e);break;case"textarea":Jd(e,r),i=Qa(e,r),je("invalid",e);break;default:i=r}Ya(n,i),l=i;for(o in l)if(l.hasOwnProperty(o)){var a=l[o];o==="style"?sh(e,a):o==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,a!=null&&ih(e,a)):o==="children"?typeof a=="string"?(n!=="textarea"||a!=="")&&so(e,a):typeof a=="number"&&so(e,""+a):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(oo.hasOwnProperty(o)?a!=null&&o==="onScroll"&&je("scroll",e):a!=null&&mc(e,o,a,s))}switch(n){case"input":Wo(e),Xd(e,r,!1);break;case"textarea":Wo(e),ef(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Jn(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?ei(e,!!r.multiple,o,!1):r.defaultValue!=null&&ei(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=Bs)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return et(t),null;case 6:if(e&&t.stateNode!=null)Tg(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(F(166));if(n=yr(xo.current),yr(nn.current),ts(t)){if(r=t.stateNode,n=t.memoizedProps,r[en]=t,(o=r.nodeValue!==n)&&(e=Ct,e!==null))switch(e.tag){case 3:es(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&es(r.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[en]=t,t.stateNode=r}return et(t),null;case 13:if(Ae(ze),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Pe&&_t!==null&&t.mode&1&&!(t.flags&128))Zh(),di(),t.flags|=98560,o=!1;else if(o=ts(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(F(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(F(317));o[en]=t}else di(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;et(t),o=!1}else Ht!==null&&(Pu(Ht),Ht=null),o=!0;if(!o)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||ze.current&1?qe===0&&(qe=3):Kc())),t.updateQueue!==null&&(t.flags|=4),et(t),null);case 4:return pi(),_u(e,t),e===null&&mo(t.stateNode.containerInfo),et(t),null;case 10:return Rc(t.type._context),et(t),null;case 17:return yt(t.type)&&Vs(),et(t),null;case 19:if(Ae(ze),o=t.memoizedState,o===null)return et(t),null;if(r=(t.flags&128)!==0,s=o.rendering,s===null)if(r)Oi(o,!1);else{if(qe!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(s=Ks(e),s!==null){for(t.flags|=128,Oi(o,!1),r=s.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)o=n,e=r,o.flags&=14680066,s=o.alternate,s===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=s.childLanes,o.lanes=s.lanes,o.child=s.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=s.memoizedProps,o.memoizedState=s.memoizedState,o.updateQueue=s.updateQueue,o.type=s.type,e=s.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Ee(ze,ze.current&1|2),t.child}e=e.sibling}o.tail!==null&&De()>hi&&(t.flags|=128,r=!0,Oi(o,!1),t.lanes=4194304)}else{if(!r)if(e=Ks(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Oi(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!Pe)return et(t),null}else 2*De()-o.renderingStartTime>hi&&n!==1073741824&&(t.flags|=128,r=!0,Oi(o,!1),t.lanes=4194304);o.isBackwards?(s.sibling=t.child,t.child=s):(n=o.last,n!==null?n.sibling=s:t.child=s,o.last=s)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=De(),t.sibling=null,n=ze.current,Ee(ze,r?n&1|2:n&1),t):(et(t),null);case 22:case 23:return Qc(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?St&1073741824&&(et(t),t.subtreeFlags&6&&(t.flags|=8192)):et(t),null;case 24:return null;case 25:return null}throw Error(F(156,t.tag))}function qv(e,t){switch(Tc(t),t.tag){case 1:return yt(t.type)&&Vs(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return pi(),Ae(gt),Ae(rt),Dc(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Oc(t),null;case 13:if(Ae(ze),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(F(340));di()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ae(ze),null;case 4:return pi(),null;case 10:return Rc(t.type._context),null;case 22:case 23:return Qc(),null;case 24:return null;default:return null}}var is=!1,tt=!1,Wv=typeof WeakSet=="function"?WeakSet:Set,G=null;function Xr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Oe(e,t,r)}else n.current=null}function Cu(e,t,n){try{n()}catch(r){Oe(e,t,r)}}var Hf=!1;function Zv(e,t){if(au=Fs,e=zh(),Nc(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var s=0,l=-1,a=-1,u=0,f=0,d=e,m=null;t:for(;;){for(var p;d!==n||i!==0&&d.nodeType!==3||(l=s+i),d!==o||r!==0&&d.nodeType!==3||(a=s+r),d.nodeType===3&&(s+=d.nodeValue.length),(p=d.firstChild)!==null;)m=d,d=p;for(;;){if(d===e)break t;if(m===n&&++u===i&&(l=s),m===o&&++f===r&&(a=s),(p=d.nextSibling)!==null)break;d=m,m=d.parentNode}d=p}n=l===-1||a===-1?null:{start:l,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(uu={focusedElem:e,selectionRange:n},Fs=!1,G=t;G!==null;)if(t=G,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,G=e;else for(;G!==null;){t=G;try{var x=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(x!==null){var b=x.memoizedProps,I=x.memoizedState,y=t.stateNode,v=y.getSnapshotBeforeUpdate(t.elementType===t.type?b:Bt(t.type,b),I);y.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var w=t.stateNode.containerInfo;w.nodeType===1?w.textContent="":w.nodeType===9&&w.documentElement&&w.removeChild(w.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(F(163))}}catch(N){Oe(t,t.return,N)}if(e=t.sibling,e!==null){e.return=t.return,G=e;break}G=t.return}return x=Hf,Hf=!1,x}function Ji(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&Cu(t,n,o)}i=i.next}while(i!==r)}}function Rl(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Iu(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function jg(e){var t=e.alternate;t!==null&&(e.alternate=null,jg(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[en],delete t[go],delete t[fu],delete t[Tv],delete t[jv])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Ag(e){return e.tag===5||e.tag===3||e.tag===4}function qf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Ag(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Nu(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Bs));else if(r!==4&&(e=e.child,e!==null))for(Nu(e,t,n),e=e.sibling;e!==null;)Nu(e,t,n),e=e.sibling}function Eu(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Eu(e,t,n),e=e.sibling;e!==null;)Eu(e,t,n),e=e.sibling}var Ge=null,Vt=!1;function Pn(e,t,n){for(n=n.child;n!==null;)Pg(e,t,n),n=n.sibling}function Pg(e,t,n){if(tn&&typeof tn.onCommitFiberUnmount=="function")try{tn.onCommitFiberUnmount(Cl,n)}catch{}switch(n.tag){case 5:tt||Xr(n,t);case 6:var r=Ge,i=Vt;Ge=null,Pn(e,t,n),Ge=r,Vt=i,Ge!==null&&(Vt?(e=Ge,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ge.removeChild(n.stateNode));break;case 18:Ge!==null&&(Vt?(e=Ge,n=n.stateNode,e.nodeType===8?ca(e.parentNode,n):e.nodeType===1&&ca(e,n),co(e)):ca(Ge,n.stateNode));break;case 4:r=Ge,i=Vt,Ge=n.stateNode.containerInfo,Vt=!0,Pn(e,t,n),Ge=r,Vt=i;break;case 0:case 11:case 14:case 15:if(!tt&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,s=o.destroy;o=o.tag,s!==void 0&&(o&2||o&4)&&Cu(n,t,s),i=i.next}while(i!==r)}Pn(e,t,n);break;case 1:if(!tt&&(Xr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){Oe(n,t,l)}Pn(e,t,n);break;case 21:Pn(e,t,n);break;case 22:n.mode&1?(tt=(r=tt)||n.memoizedState!==null,Pn(e,t,n),tt=r):Pn(e,t,n);break;default:Pn(e,t,n)}}function Wf(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Wv),t.forEach(function(r){var i=nk.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Ut(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var o=e,s=t,l=s;e:for(;l!==null;){switch(l.tag){case 5:Ge=l.stateNode,Vt=!1;break e;case 3:Ge=l.stateNode.containerInfo,Vt=!0;break e;case 4:Ge=l.stateNode.containerInfo,Vt=!0;break e}l=l.return}if(Ge===null)throw Error(F(160));Pg(o,s,i),Ge=null,Vt=!1;var a=i.alternate;a!==null&&(a.return=null),i.return=null}catch(u){Oe(i,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Rg(t,e),t=t.sibling}function Rg(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Ut(t,e),Qt(e),r&4){try{Ji(3,e,e.return),Rl(3,e)}catch(b){Oe(e,e.return,b)}try{Ji(5,e,e.return)}catch(b){Oe(e,e.return,b)}}break;case 1:Ut(t,e),Qt(e),r&512&&n!==null&&Xr(n,n.return);break;case 5:if(Ut(t,e),Qt(e),r&512&&n!==null&&Xr(n,n.return),e.flags&32){var i=e.stateNode;try{so(i,"")}catch(b){Oe(e,e.return,b)}}if(r&4&&(i=e.stateNode,i!=null)){var o=e.memoizedProps,s=n!==null?n.memoizedProps:o,l=e.type,a=e.updateQueue;if(e.updateQueue=null,a!==null)try{l==="input"&&o.type==="radio"&&o.name!=null&&th(i,o),Xa(l,s);var u=Xa(l,o);for(s=0;s<a.length;s+=2){var f=a[s],d=a[s+1];f==="style"?sh(i,d):f==="dangerouslySetInnerHTML"?ih(i,d):f==="children"?so(i,d):mc(i,f,d,u)}switch(l){case"input":Za(i,o);break;case"textarea":nh(i,o);break;case"select":var m=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var p=o.value;p!=null?ei(i,!!o.multiple,p,!1):m!==!!o.multiple&&(o.defaultValue!=null?ei(i,!!o.multiple,o.defaultValue,!0):ei(i,!!o.multiple,o.multiple?[]:"",!1))}i[go]=o}catch(b){Oe(e,e.return,b)}}break;case 6:if(Ut(t,e),Qt(e),r&4){if(e.stateNode===null)throw Error(F(162));i=e.stateNode,o=e.memoizedProps;try{i.nodeValue=o}catch(b){Oe(e,e.return,b)}}break;case 3:if(Ut(t,e),Qt(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{co(t.containerInfo)}catch(b){Oe(e,e.return,b)}break;case 4:Ut(t,e),Qt(e);break;case 13:Ut(t,e),Qt(e),i=e.child,i.flags&8192&&(o=i.memoizedState!==null,i.stateNode.isHidden=o,!o||i.alternate!==null&&i.alternate.memoizedState!==null||(Zc=De())),r&4&&Wf(e);break;case 22:if(f=n!==null&&n.memoizedState!==null,e.mode&1?(tt=(u=tt)||f,Ut(t,e),tt=u):Ut(t,e),Qt(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!f&&e.mode&1)for(G=e,f=e.child;f!==null;){for(d=G=f;G!==null;){switch(m=G,p=m.child,m.tag){case 0:case 11:case 14:case 15:Ji(4,m,m.return);break;case 1:Xr(m,m.return);var x=m.stateNode;if(typeof x.componentWillUnmount=="function"){r=m,n=m.return;try{t=r,x.props=t.memoizedProps,x.state=t.memoizedState,x.componentWillUnmount()}catch(b){Oe(r,n,b)}}break;case 5:Xr(m,m.return);break;case 22:if(m.memoizedState!==null){Gf(d);continue}}p!==null?(p.return=m,G=p):Gf(d)}f=f.sibling}e:for(f=null,d=e;;){if(d.tag===5){if(f===null){f=d;try{i=d.stateNode,u?(o=i.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(l=d.stateNode,a=d.memoizedProps.style,s=a!=null&&a.hasOwnProperty("display")?a.display:null,l.style.display=oh("display",s))}catch(b){Oe(e,e.return,b)}}}else if(d.tag===6){if(f===null)try{d.stateNode.nodeValue=u?"":d.memoizedProps}catch(b){Oe(e,e.return,b)}}else if((d.tag!==22&&d.tag!==23||d.memoizedState===null||d===e)&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;d.sibling===null;){if(d.return===null||d.return===e)break e;f===d&&(f=null),d=d.return}f===d&&(f=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:Ut(t,e),Qt(e),r&4&&Wf(e);break;case 21:break;default:Ut(t,e),Qt(e)}}function Qt(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Ag(n)){var r=n;break e}n=n.return}throw Error(F(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(so(i,""),r.flags&=-33);var o=qf(e);Eu(e,o,i);break;case 3:case 4:var s=r.stateNode.containerInfo,l=qf(e);Nu(e,l,s);break;default:throw Error(F(161))}}catch(a){Oe(e,e.return,a)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Gv(e,t,n){G=e,zg(e)}function zg(e,t,n){for(var r=(e.mode&1)!==0;G!==null;){var i=G,o=i.child;if(i.tag===22&&r){var s=i.memoizedState!==null||is;if(!s){var l=i.alternate,a=l!==null&&l.memoizedState!==null||tt;l=is;var u=tt;if(is=s,(tt=a)&&!u)for(G=i;G!==null;)s=G,a=s.child,s.tag===22&&s.memoizedState!==null?Qf(i):a!==null?(a.return=s,G=a):Qf(i);for(;o!==null;)G=o,zg(o),o=o.sibling;G=i,is=l,tt=u}Zf(e)}else i.subtreeFlags&8772&&o!==null?(o.return=i,G=o):Zf(e)}}function Zf(e){for(;G!==null;){var t=G;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:tt||Rl(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!tt)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:Bt(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&Af(t,o,r);break;case 3:var s=t.updateQueue;if(s!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Af(t,s,n)}break;case 5:var l=t.stateNode;if(n===null&&t.flags&4){n=l;var a=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":a.autoFocus&&n.focus();break;case"img":a.src&&(n.src=a.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var f=u.memoizedState;if(f!==null){var d=f.dehydrated;d!==null&&co(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(F(163))}tt||t.flags&512&&Iu(t)}catch(m){Oe(t,t.return,m)}}if(t===e){G=null;break}if(n=t.sibling,n!==null){n.return=t.return,G=n;break}G=t.return}}function Gf(e){for(;G!==null;){var t=G;if(t===e){G=null;break}var n=t.sibling;if(n!==null){n.return=t.return,G=n;break}G=t.return}}function Qf(e){for(;G!==null;){var t=G;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Rl(4,t)}catch(a){Oe(t,n,a)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(a){Oe(t,i,a)}}var o=t.return;try{Iu(t)}catch(a){Oe(t,o,a)}break;case 5:var s=t.return;try{Iu(t)}catch(a){Oe(t,s,a)}}}catch(a){Oe(t,t.return,a)}if(t===e){G=null;break}var l=t.sibling;if(l!==null){l.return=t.return,G=l;break}G=t.return}}var Qv=Math.ceil,Js=jn.ReactCurrentDispatcher,qc=jn.ReactCurrentOwner,zt=jn.ReactCurrentBatchConfig,be=0,Ze=null,Ue=null,Ke=0,St=0,Jr=ir(0),qe=0,bo=null,Sr=0,zl=0,Wc=0,eo=null,mt=null,Zc=0,hi=1/0,hn=null,el=!1,Tu=null,Qn=null,os=!1,Bn=null,tl=0,to=0,ju=null,Is=-1,Ns=0;function at(){return be&6?De():Is!==-1?Is:Is=De()}function Kn(e){return e.mode&1?be&2&&Ke!==0?Ke&-Ke:Pv.transition!==null?(Ns===0&&(Ns=xh()),Ns):(e=Se,e!==0||(e=window.event,e=e===void 0?16:Ch(e.type)),e):1}function Wt(e,t,n,r){if(50<to)throw to=0,ju=null,Error(F(185));Po(e,n,r),(!(be&2)||e!==Ze)&&(e===Ze&&(!(be&2)&&(zl|=n),qe===4&&$n(e,Ke)),xt(e,r),n===1&&be===0&&!(t.mode&1)&&(hi=De()+500,jl&&or()))}function xt(e,t){var n=e.callbackNode;P0(e,t);var r=Ds(e,e===Ze?Ke:0);if(r===0)n!==null&&rf(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&rf(n),t===1)e.tag===0?Av(Kf.bind(null,e)):Hh(Kf.bind(null,e)),Nv(function(){!(be&6)&&or()}),n=null;else{switch(vh(r)){case 1:n=vc;break;case 4:n=gh;break;case 16:n=Os;break;case 536870912:n=yh;break;default:n=Os}n=Bg(n,Mg.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Mg(e,t){if(Is=-1,Ns=0,be&6)throw Error(F(327));var n=e.callbackNode;if(oi()&&e.callbackNode!==n)return null;var r=Ds(e,e===Ze?Ke:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=nl(e,r);else{t=r;var i=be;be|=2;var o=Og();(Ze!==e||Ke!==t)&&(hn=null,hi=De()+500,xr(e,t));do try{Xv();break}catch(l){Lg(e,l)}while(!0);Pc(),Js.current=o,be=i,Ue!==null?t=0:(Ze=null,Ke=0,t=qe)}if(t!==0){if(t===2&&(i=ru(e),i!==0&&(r=i,t=Au(e,i))),t===1)throw n=bo,xr(e,0),$n(e,r),xt(e,De()),n;if(t===6)$n(e,r);else{if(i=e.current.alternate,!(r&30)&&!Kv(i)&&(t=nl(e,r),t===2&&(o=ru(e),o!==0&&(r=o,t=Au(e,o))),t===1))throw n=bo,xr(e,0),$n(e,r),xt(e,De()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(F(345));case 2:pr(e,mt,hn);break;case 3:if($n(e,r),(r&130023424)===r&&(t=Zc+500-De(),10<t)){if(Ds(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){at(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=du(pr.bind(null,e,mt,hn),t);break}pr(e,mt,hn);break;case 4:if($n(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var s=31-qt(r);o=1<<s,s=t[s],s>i&&(i=s),r&=~o}if(r=i,r=De()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Qv(r/1960))-r,10<r){e.timeoutHandle=du(pr.bind(null,e,mt,hn),r);break}pr(e,mt,hn);break;case 5:pr(e,mt,hn);break;default:throw Error(F(329))}}}return xt(e,De()),e.callbackNode===n?Mg.bind(null,e):null}function Au(e,t){var n=eo;return e.current.memoizedState.isDehydrated&&(xr(e,t).flags|=256),e=nl(e,t),e!==2&&(t=mt,mt=n,t!==null&&Pu(t)),e}function Pu(e){mt===null?mt=e:mt.push.apply(mt,e)}function Kv(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!Gt(o(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function $n(e,t){for(t&=~Wc,t&=~zl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-qt(t),r=1<<n;e[n]=-1,t&=~r}}function Kf(e){if(be&6)throw Error(F(327));oi();var t=Ds(e,0);if(!(t&1))return xt(e,De()),null;var n=nl(e,t);if(e.tag!==0&&n===2){var r=ru(e);r!==0&&(t=r,n=Au(e,r))}if(n===1)throw n=bo,xr(e,0),$n(e,t),xt(e,De()),n;if(n===6)throw Error(F(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,pr(e,mt,hn),xt(e,De()),null}function Gc(e,t){var n=be;be|=1;try{return e(t)}finally{be=n,be===0&&(hi=De()+500,jl&&or())}}function _r(e){Bn!==null&&Bn.tag===0&&!(be&6)&&oi();var t=be;be|=1;var n=zt.transition,r=Se;try{if(zt.transition=null,Se=1,e)return e()}finally{Se=r,zt.transition=n,be=t,!(be&6)&&or()}}function Qc(){St=Jr.current,Ae(Jr)}function xr(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Iv(n)),Ue!==null)for(n=Ue.return;n!==null;){var r=n;switch(Tc(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Vs();break;case 3:pi(),Ae(gt),Ae(rt),Dc();break;case 5:Oc(r);break;case 4:pi();break;case 13:Ae(ze);break;case 19:Ae(ze);break;case 10:Rc(r.type._context);break;case 22:case 23:Qc()}n=n.return}if(Ze=e,Ue=e=Yn(e.current,null),Ke=St=t,qe=0,bo=null,Wc=zl=Sr=0,mt=eo=null,gr!==null){for(t=0;t<gr.length;t++)if(n=gr[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,o=n.pending;if(o!==null){var s=o.next;o.next=i,r.next=s}n.pending=r}gr=null}return e}function Lg(e,t){do{var n=Ue;try{if(Pc(),Ss.current=Xs,Ys){for(var r=Me.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}Ys=!1}if(br=0,We=He=Me=null,Xi=!1,vo=0,qc.current=null,n===null||n.return===null){qe=1,bo=t,Ue=null;break}e:{var o=e,s=n.return,l=n,a=t;if(t=Ke,l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){var u=a,f=l,d=f.tag;if(!(f.mode&1)&&(d===0||d===11||d===15)){var m=f.alternate;m?(f.updateQueue=m.updateQueue,f.memoizedState=m.memoizedState,f.lanes=m.lanes):(f.updateQueue=null,f.memoizedState=null)}var p=Of(s);if(p!==null){p.flags&=-257,Df(p,s,l,o,t),p.mode&1&&Lf(o,u,t),t=p,a=u;var x=t.updateQueue;if(x===null){var b=new Set;b.add(a),t.updateQueue=b}else x.add(a);break e}else{if(!(t&1)){Lf(o,u,t),Kc();break e}a=Error(F(426))}}else if(Pe&&l.mode&1){var I=Of(s);if(I!==null){!(I.flags&65536)&&(I.flags|=256),Df(I,s,l,o,t),jc(mi(a,l));break e}}o=a=mi(a,l),qe!==4&&(qe=2),eo===null?eo=[o]:eo.push(o),o=s;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var y=vg(o,a,t);jf(o,y);break e;case 1:l=a;var v=o.type,w=o.stateNode;if(!(o.flags&128)&&(typeof v.getDerivedStateFromError=="function"||w!==null&&typeof w.componentDidCatch=="function"&&(Qn===null||!Qn.has(w)))){o.flags|=65536,t&=-t,o.lanes|=t;var N=kg(o,l,t);jf(o,N);break e}}o=o.return}while(o!==null)}Fg(n)}catch(j){t=j,Ue===n&&n!==null&&(Ue=n=n.return);continue}break}while(!0)}function Og(){var e=Js.current;return Js.current=Xs,e===null?Xs:e}function Kc(){(qe===0||qe===3||qe===2)&&(qe=4),Ze===null||!(Sr&268435455)&&!(zl&268435455)||$n(Ze,Ke)}function nl(e,t){var n=be;be|=2;var r=Og();(Ze!==e||Ke!==t)&&(hn=null,xr(e,t));do try{Yv();break}catch(i){Lg(e,i)}while(!0);if(Pc(),be=n,Js.current=r,Ue!==null)throw Error(F(261));return Ze=null,Ke=0,qe}function Yv(){for(;Ue!==null;)Dg(Ue)}function Xv(){for(;Ue!==null&&!S0();)Dg(Ue)}function Dg(e){var t=Ug(e.alternate,e,St);e.memoizedProps=e.pendingProps,t===null?Fg(e):Ue=t,qc.current=null}function Fg(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=qv(n,t),n!==null){n.flags&=32767,Ue=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{qe=6,Ue=null;return}}else if(n=Hv(n,t,St),n!==null){Ue=n;return}if(t=t.sibling,t!==null){Ue=t;return}Ue=t=e}while(t!==null);qe===0&&(qe=5)}function pr(e,t,n){var r=Se,i=zt.transition;try{zt.transition=null,Se=1,Jv(e,t,n,r)}finally{zt.transition=i,Se=r}return null}function Jv(e,t,n,r){do oi();while(Bn!==null);if(be&6)throw Error(F(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(F(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(R0(e,o),e===Ze&&(Ue=Ze=null,Ke=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||os||(os=!0,Bg(Os,function(){return oi(),null})),o=(n.flags&15990)!==0,n.subtreeFlags&15990||o){o=zt.transition,zt.transition=null;var s=Se;Se=1;var l=be;be|=4,qc.current=null,Zv(e,n),Rg(n,e),vv(uu),Fs=!!au,uu=au=null,e.current=n,Gv(n),_0(),be=l,Se=s,zt.transition=o}else e.current=n;if(os&&(os=!1,Bn=e,tl=i),o=e.pendingLanes,o===0&&(Qn=null),N0(n.stateNode),xt(e,De()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(el)throw el=!1,e=Tu,Tu=null,e;return tl&1&&e.tag!==0&&oi(),o=e.pendingLanes,o&1?e===ju?to++:(to=0,ju=e):to=0,or(),null}function oi(){if(Bn!==null){var e=vh(tl),t=zt.transition,n=Se;try{if(zt.transition=null,Se=16>e?16:e,Bn===null)var r=!1;else{if(e=Bn,Bn=null,tl=0,be&6)throw Error(F(331));var i=be;for(be|=4,G=e.current;G!==null;){var o=G,s=o.child;if(G.flags&16){var l=o.deletions;if(l!==null){for(var a=0;a<l.length;a++){var u=l[a];for(G=u;G!==null;){var f=G;switch(f.tag){case 0:case 11:case 15:Ji(8,f,o)}var d=f.child;if(d!==null)d.return=f,G=d;else for(;G!==null;){f=G;var m=f.sibling,p=f.return;if(jg(f),f===u){G=null;break}if(m!==null){m.return=p,G=m;break}G=p}}}var x=o.alternate;if(x!==null){var b=x.child;if(b!==null){x.child=null;do{var I=b.sibling;b.sibling=null,b=I}while(b!==null)}}G=o}}if(o.subtreeFlags&2064&&s!==null)s.return=o,G=s;else e:for(;G!==null;){if(o=G,o.flags&2048)switch(o.tag){case 0:case 11:case 15:Ji(9,o,o.return)}var y=o.sibling;if(y!==null){y.return=o.return,G=y;break e}G=o.return}}var v=e.current;for(G=v;G!==null;){s=G;var w=s.child;if(s.subtreeFlags&2064&&w!==null)w.return=s,G=w;else e:for(s=v;G!==null;){if(l=G,l.flags&2048)try{switch(l.tag){case 0:case 11:case 15:Rl(9,l)}}catch(j){Oe(l,l.return,j)}if(l===s){G=null;break e}var N=l.sibling;if(N!==null){N.return=l.return,G=N;break e}G=l.return}}if(be=i,or(),tn&&typeof tn.onPostCommitFiberRoot=="function")try{tn.onPostCommitFiberRoot(Cl,e)}catch{}r=!0}return r}finally{Se=n,zt.transition=t}}return!1}function Yf(e,t,n){t=mi(n,t),t=vg(e,t,1),e=Gn(e,t,1),t=at(),e!==null&&(Po(e,1,t),xt(e,t))}function Oe(e,t,n){if(e.tag===3)Yf(e,e,n);else for(;t!==null;){if(t.tag===3){Yf(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Qn===null||!Qn.has(r))){e=mi(n,e),e=kg(t,e,1),t=Gn(t,e,1),e=at(),t!==null&&(Po(t,1,e),xt(t,e));break}}t=t.return}}function ek(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=at(),e.pingedLanes|=e.suspendedLanes&n,Ze===e&&(Ke&n)===n&&(qe===4||qe===3&&(Ke&130023424)===Ke&&500>De()-Zc?xr(e,0):Wc|=n),xt(e,t)}function $g(e,t){t===0&&(e.mode&1?(t=Qo,Qo<<=1,!(Qo&130023424)&&(Qo=4194304)):t=1);var n=at();e=In(e,t),e!==null&&(Po(e,t,n),xt(e,n))}function tk(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),$g(e,n)}function nk(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(F(314))}r!==null&&r.delete(t),$g(e,n)}var Ug;Ug=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||gt.current)ht=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return ht=!1,Vv(e,t,n);ht=!!(e.flags&131072)}else ht=!1,Pe&&t.flags&1048576&&qh(t,Ws,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Cs(e,t),e=t.pendingProps;var i=ci(t,rt.current);ii(t,n),i=$c(null,t,r,e,i,n);var o=Uc();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,yt(r)?(o=!0,Hs(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Mc(t),i.updater=Pl,t.stateNode=i,i._reactInternals=t,xu(t,r,e,n),t=wu(null,t,r,!0,o,n)):(t.tag=0,Pe&&o&&Ec(t),st(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Cs(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=ik(r),e=Bt(r,e),i){case 0:t=ku(null,t,r,e,n);break e;case 1:t=Uf(null,t,r,e,n);break e;case 11:t=Ff(null,t,r,e,n);break e;case 14:t=$f(null,t,r,Bt(r.type,e),n);break e}throw Error(F(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Bt(r,i),ku(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Bt(r,i),Uf(e,t,r,i,n);case 3:e:{if(_g(t),e===null)throw Error(F(387));r=t.pendingProps,o=t.memoizedState,i=o.element,Yh(e,t),Qs(t,r,null,n);var s=t.memoizedState;if(r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=mi(Error(F(423)),t),t=Bf(e,t,r,n,i);break e}else if(r!==i){i=mi(Error(F(424)),t),t=Bf(e,t,r,n,i);break e}else for(_t=Zn(t.stateNode.containerInfo.firstChild),Ct=t,Pe=!0,Ht=null,n=Qh(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(di(),r===i){t=Nn(e,t,n);break e}st(e,t,r,n)}t=t.child}return t;case 5:return Xh(t),e===null&&hu(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,s=i.children,cu(r,i)?s=null:o!==null&&cu(r,o)&&(t.flags|=32),Sg(e,t),st(e,t,s,n),t.child;case 6:return e===null&&hu(t),null;case 13:return Cg(e,t,n);case 4:return Lc(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=fi(t,null,r,n):st(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Bt(r,i),Ff(e,t,r,i,n);case 7:return st(e,t,t.pendingProps,n),t.child;case 8:return st(e,t,t.pendingProps.children,n),t.child;case 12:return st(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,s=i.value,Ee(Zs,r._currentValue),r._currentValue=s,o!==null)if(Gt(o.value,s)){if(o.children===i.children&&!gt.current){t=Nn(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var l=o.dependencies;if(l!==null){s=o.child;for(var a=l.firstContext;a!==null;){if(a.context===r){if(o.tag===1){a=wn(-1,n&-n),a.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var f=u.pending;f===null?a.next=a:(a.next=f.next,f.next=a),u.pending=a}}o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),gu(o.return,n,t),l.lanes|=n;break}a=a.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(F(341));s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),gu(s,n,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}st(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,ii(t,n),i=Mt(i),r=r(i),t.flags|=1,st(e,t,r,n),t.child;case 14:return r=t.type,i=Bt(r,t.pendingProps),i=Bt(r.type,i),$f(e,t,r,i,n);case 15:return wg(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Bt(r,i),Cs(e,t),t.tag=1,yt(r)?(e=!0,Hs(t)):e=!1,ii(t,n),xg(t,r,i),xu(t,r,i,n),wu(null,t,r,!0,e,n);case 19:return Ig(e,t,n);case 22:return bg(e,t,n)}throw Error(F(156,t.tag))};function Bg(e,t){return hh(e,t)}function rk(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Rt(e,t,n,r){return new rk(e,t,n,r)}function Yc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ik(e){if(typeof e=="function")return Yc(e)?1:0;if(e!=null){if(e=e.$$typeof,e===gc)return 11;if(e===yc)return 14}return 2}function Yn(e,t){var n=e.alternate;return n===null?(n=Rt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Es(e,t,n,r,i,o){var s=2;if(r=e,typeof e=="function")Yc(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Vr:return vr(n.children,i,o,t);case hc:s=8,i|=8;break;case Ba:return e=Rt(12,n,t,i|2),e.elementType=Ba,e.lanes=o,e;case Va:return e=Rt(13,n,t,i),e.elementType=Va,e.lanes=o,e;case Ha:return e=Rt(19,n,t,i),e.elementType=Ha,e.lanes=o,e;case Xm:return Ml(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Km:s=10;break e;case Ym:s=9;break e;case gc:s=11;break e;case yc:s=14;break e;case Ln:s=16,r=null;break e}throw Error(F(130,e==null?e:typeof e,""))}return t=Rt(s,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function vr(e,t,n,r){return e=Rt(7,e,r,t),e.lanes=n,e}function Ml(e,t,n,r){return e=Rt(22,e,r,t),e.elementType=Xm,e.lanes=n,e.stateNode={isHidden:!1},e}function xa(e,t,n){return e=Rt(6,e,null,t),e.lanes=n,e}function va(e,t,n){return t=Rt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function ok(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Jl(0),this.expirationTimes=Jl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Jl(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Xc(e,t,n,r,i,o,s,l,a){return e=new ok(e,t,n,l,a),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Rt(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Mc(o),e}function sk(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Br,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Vg(e){if(!e)return er;e=e._reactInternals;e:{if(Pr(e)!==e||e.tag!==1)throw Error(F(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(yt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(F(171))}if(e.tag===1){var n=e.type;if(yt(n))return Vh(e,n,t)}return t}function Hg(e,t,n,r,i,o,s,l,a){return e=Xc(n,r,!0,e,i,o,s,l,a),e.context=Vg(null),n=e.current,r=at(),i=Kn(n),o=wn(r,i),o.callback=t??null,Gn(n,o,i),e.current.lanes=i,Po(e,i,r),xt(e,r),e}function Ll(e,t,n,r){var i=t.current,o=at(),s=Kn(i);return n=Vg(n),t.context===null?t.context=n:t.pendingContext=n,t=wn(o,s),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Gn(i,t,s),e!==null&&(Wt(e,i,s,o),bs(e,i,s)),s}function rl(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Xf(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Jc(e,t){Xf(e,t),(e=e.alternate)&&Xf(e,t)}function lk(){return null}var qg=typeof reportError=="function"?reportError:function(e){console.error(e)};function ed(e){this._internalRoot=e}Ol.prototype.render=ed.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(F(409));Ll(e,t,null,null)};Ol.prototype.unmount=ed.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;_r(function(){Ll(null,e,null,null)}),t[Cn]=null}};function Ol(e){this._internalRoot=e}Ol.prototype.unstable_scheduleHydration=function(e){if(e){var t=bh();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Fn.length&&t!==0&&t<Fn[n].priority;n++);Fn.splice(n,0,e),n===0&&_h(e)}};function td(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Dl(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Jf(){}function ak(e,t,n,r,i){if(i){if(typeof r=="function"){var o=r;r=function(){var u=rl(s);o.call(u)}}var s=Hg(t,r,e,0,null,!1,!1,"",Jf);return e._reactRootContainer=s,e[Cn]=s.current,mo(e.nodeType===8?e.parentNode:e),_r(),s}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var l=r;r=function(){var u=rl(a);l.call(u)}}var a=Xc(e,0,!1,null,null,!1,!1,"",Jf);return e._reactRootContainer=a,e[Cn]=a.current,mo(e.nodeType===8?e.parentNode:e),_r(function(){Ll(t,a,n,r)}),a}function Fl(e,t,n,r,i){var o=n._reactRootContainer;if(o){var s=o;if(typeof i=="function"){var l=i;i=function(){var a=rl(s);l.call(a)}}Ll(t,s,e,i)}else s=ak(n,t,e,i,r);return rl(s)}kh=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Hi(t.pendingLanes);n!==0&&(kc(t,n|1),xt(t,De()),!(be&6)&&(hi=De()+500,or()))}break;case 13:_r(function(){var r=In(e,1);if(r!==null){var i=at();Wt(r,e,1,i)}}),Jc(e,1)}};wc=function(e){if(e.tag===13){var t=In(e,134217728);if(t!==null){var n=at();Wt(t,e,134217728,n)}Jc(e,134217728)}};wh=function(e){if(e.tag===13){var t=Kn(e),n=In(e,t);if(n!==null){var r=at();Wt(n,e,t,r)}Jc(e,t)}};bh=function(){return Se};Sh=function(e,t){var n=Se;try{return Se=e,t()}finally{Se=n}};eu=function(e,t,n){switch(t){case"input":if(Za(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=Tl(r);if(!i)throw Error(F(90));eh(r),Za(r,i)}}}break;case"textarea":nh(e,n);break;case"select":t=n.value,t!=null&&ei(e,!!n.multiple,t,!1)}};uh=Gc;ch=_r;var uk={usingClientEntryPoint:!1,Events:[zo,Zr,Tl,lh,ah,Gc]},Di={findFiberByHostInstance:hr,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},ck={bundleType:Di.bundleType,version:Di.version,rendererPackageName:Di.rendererPackageName,rendererConfig:Di.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:jn.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=ph(e),e===null?null:e.stateNode},findFiberByHostInstance:Di.findFiberByHostInstance||lk,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ss=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ss.isDisabled&&ss.supportsFiber)try{Cl=ss.inject(ck),tn=ss}catch{}}Tt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=uk;Tt.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!td(t))throw Error(F(200));return sk(e,t,null,n)};Tt.createRoot=function(e,t){if(!td(e))throw Error(F(299));var n=!1,r="",i=qg;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=Xc(e,1,!1,null,null,n,!1,r,i),e[Cn]=t.current,mo(e.nodeType===8?e.parentNode:e),new ed(t)};Tt.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(F(188)):(e=Object.keys(e).join(","),Error(F(268,e)));return e=ph(t),e=e===null?null:e.stateNode,e};Tt.flushSync=function(e){return _r(e)};Tt.hydrate=function(e,t,n){if(!Dl(t))throw Error(F(200));return Fl(null,e,t,!0,n)};Tt.hydrateRoot=function(e,t,n){if(!td(e))throw Error(F(405));var r=n!=null&&n.hydratedSources||null,i=!1,o="",s=qg;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=Hg(t,null,e,1,n??null,i,!1,o,s),e[Cn]=t.current,mo(e),r)for(e=0;e<r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new Ol(t)};Tt.render=function(e,t,n){if(!Dl(t))throw Error(F(200));return Fl(null,e,t,!1,n)};Tt.unmountComponentAtNode=function(e){if(!Dl(e))throw Error(F(40));return e._reactRootContainer?(_r(function(){Fl(null,null,e,!1,function(){e._reactRootContainer=null,e[Cn]=null})}),!0):!1};Tt.unstable_batchedUpdates=Gc;Tt.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Dl(n))throw Error(F(200));if(e==null||e._reactInternals===void 0)throw Error(F(38));return Fl(e,t,n,!1,r)};Tt.version="18.3.1-next-f1338f8080-20240426";function Wg(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Wg)}catch(e){console.error(e)}}Wg(),Wm.exports=Tt;var dk=Wm.exports,Zg,ep=dk;Zg=ep.createRoot,ep.hydrateRoot;/**
46
+ `+o.stack}return{value:e,source:t,stack:i,digest:null}}function ga(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function vu(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Uv=typeof WeakMap=="function"?WeakMap:Map;function vg(e,t,n){n=wn(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){el||(el=!0,Tu=r),vu(e,t)},n}function kg(e,t,n){n=wn(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){vu(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){vu(e,t),typeof r!="function"&&(Qn===null?Qn=new Set([this]):Qn.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function Lf(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Uv;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=tk.bind(null,e,t,n),t.then(e,e))}function Of(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Df(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=wn(-1,1),t.tag=2,Gn(n,t,1))),n.lanes|=1),e)}var Bv=jn.ReactCurrentOwner,ht=!1;function st(e,t,n,r){t.child=e===null?Qh(t,null,n,r):fi(t,e.child,n,r)}function Ff(e,t,n,r,i){n=n.render;var o=t.ref;return ii(t,i),r=$c(e,t,n,r,o,i),n=Uc(),e!==null&&!ht?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Nn(e,t,i)):(Pe&&n&&Ec(t),t.flags|=1,st(e,t,r,i),t.child)}function $f(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!Yc(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,wg(e,t,o,r,i)):(e=Es(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&i)){var s=o.memoizedProps;if(n=n.compare,n=n!==null?n:po,n(s,r)&&e.ref===t.ref)return Nn(e,t,i)}return t.flags|=1,e=Yn(o,r),e.ref=t.ref,e.return=t,t.child=e}function wg(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(po(o,r)&&e.ref===t.ref)if(ht=!1,t.pendingProps=r=o,(e.lanes&i)!==0)e.flags&131072&&(ht=!0);else return t.lanes=e.lanes,Nn(e,t,i)}return ku(e,t,n,r,i)}function bg(e,t,n){var r=t.pendingProps,i=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ee(Jr,St),St|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ee(Jr,St),St|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,Ee(Jr,St),St|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,Ee(Jr,St),St|=r;return st(e,t,i,n),t.child}function Sg(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function ku(e,t,n,r,i){var o=yt(n)?kr:rt.current;return o=ci(t,o),ii(t,i),n=$c(e,t,n,r,o,i),r=Uc(),e!==null&&!ht?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Nn(e,t,i)):(Pe&&r&&Ec(t),t.flags|=1,st(e,t,n,i),t.child)}function Uf(e,t,n,r,i){if(yt(n)){var o=!0;Hs(t)}else o=!1;if(ii(t,i),t.stateNode===null)Cs(e,t),xg(t,n,r),xu(t,n,r,i),r=!0;else if(e===null){var s=t.stateNode,l=t.memoizedProps;s.props=l;var a=s.context,u=n.contextType;typeof u=="object"&&u!==null?u=Mt(u):(u=yt(n)?kr:rt.current,u=ci(t,u));var f=n.getDerivedStateFromProps,d=typeof f=="function"||typeof s.getSnapshotBeforeUpdate=="function";d||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(l!==r||a!==u)&&Mf(t,s,r,u),On=!1;var m=t.memoizedState;s.state=m,Qs(t,r,s,i),a=t.memoizedState,l!==r||m!==a||gt.current||On?(typeof f=="function"&&(yu(t,n,f,r),a=t.memoizedState),(l=On||zf(t,n,l,r,m,a,u))?(d||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=a),s.props=r,s.state=a,s.context=u,r=l):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,Yh(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:Bt(t.type,l),s.props=u,d=t.pendingProps,m=s.context,a=n.contextType,typeof a=="object"&&a!==null?a=Mt(a):(a=yt(n)?kr:rt.current,a=ci(t,a));var p=n.getDerivedStateFromProps;(f=typeof p=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(l!==d||m!==a)&&Mf(t,s,r,a),On=!1,m=t.memoizedState,s.state=m,Qs(t,r,s,i);var x=t.memoizedState;l!==d||m!==x||gt.current||On?(typeof p=="function"&&(yu(t,n,p,r),x=t.memoizedState),(u=On||zf(t,n,u,r,m,x,a)||!1)?(f||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,x,a),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,x,a)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||l===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=x),s.props=r,s.state=x,s.context=a,r=u):(typeof s.componentDidUpdate!="function"||l===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),r=!1)}return wu(e,t,n,r,o,i)}function wu(e,t,n,r,i,o){Sg(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return i&&If(t,n,!1),Nn(e,t,o);r=t.stateNode,Bv.current=t;var l=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=fi(t,e.child,null,o),t.child=fi(t,null,l,o)):st(e,t,l,o),t.memoizedState=r.state,i&&If(t,n,!0),t.child}function _g(e){var t=e.stateNode;t.pendingContext?Cf(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Cf(e,t.context,!1),Lc(e,t.containerInfo)}function Bf(e,t,n,r,i){return di(),jc(i),t.flags|=256,st(e,t,n,r),t.child}var bu={dehydrated:null,treeContext:null,retryLane:0};function Su(e){return{baseLanes:e,cachePool:null,transitions:null}}function Cg(e,t,n){var r=t.pendingProps,i=ze.current,o=!1,s=(t.flags&128)!==0,l;if((l=s)||(l=e!==null&&e.memoizedState===null?!1:(i&2)!==0),l?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),Ee(ze,i&1),e===null)return hu(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(s=r.children,e=r.fallback,o?(r=t.mode,o=t.child,s={mode:"hidden",children:s},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=s):o=Ml(s,r,0,null),e=vr(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=Su(n),t.memoizedState=bu,e):Hc(t,s));if(i=e.memoizedState,i!==null&&(l=i.dehydrated,l!==null))return Vv(e,t,s,r,l,i,n);if(o){o=r.fallback,s=t.mode,i=e.child,l=i.sibling;var a={mode:"hidden",children:r.children};return!(s&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=a,t.deletions=null):(r=Yn(i,a),r.subtreeFlags=i.subtreeFlags&14680064),l!==null?o=Yn(l,o):(o=vr(o,s,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,s=e.child.memoizedState,s=s===null?Su(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},o.memoizedState=s,o.childLanes=e.childLanes&~n,t.memoizedState=bu,r}return o=e.child,e=o.sibling,r=Yn(o,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Hc(e,t){return t=Ml({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function rs(e,t,n,r){return r!==null&&jc(r),fi(t,e.child,null,n),e=Hc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Vv(e,t,n,r,i,o,s){if(n)return t.flags&256?(t.flags&=-257,r=ga(Error(F(422))),rs(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=Ml({mode:"visible",children:r.children},i,0,null),o=vr(o,i,s,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&fi(t,e.child,null,s),t.child.memoizedState=Su(s),t.memoizedState=bu,o);if(!(t.mode&1))return rs(e,t,s,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var l=r.dgst;return r=l,o=Error(F(419)),r=ga(o,r,void 0),rs(e,t,s,r)}if(l=(s&e.childLanes)!==0,ht||l){if(r=Ze,r!==null){switch(s&-s){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|s)?0:i,i!==0&&i!==o.retryLane&&(o.retryLane=i,In(e,i),Wt(r,e,i,-1))}return Kc(),r=ga(Error(F(421))),rs(e,t,s,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=nk.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,_t=Zn(i.nextSibling),Ct=t,Pe=!0,Ht=null,e!==null&&(At[Pt++]=yn,At[Pt++]=xn,At[Pt++]=wr,yn=e.id,xn=e.overflow,wr=t),t=Hc(t,r.children),t.flags|=4096,t)}function Vf(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),gu(e.return,t,n)}function ya(e,t,n,r,i){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function Ig(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(st(e,t,r.children,n),r=ze.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Vf(e,n,t);else if(e.tag===19)Vf(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Ee(ze,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&Ks(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),ya(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Ks(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}ya(t,!0,n,null,o);break;case"together":ya(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Cs(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Nn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Sr|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(F(153));if(t.child!==null){for(e=t.child,n=Yn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Yn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Hv(e,t,n){switch(t.tag){case 3:_g(t),di();break;case 5:Xh(t);break;case 1:yt(t.type)&&Hs(t);break;case 4:Lc(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;Ee(Zs,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Ee(ze,ze.current&1),t.flags|=128,null):n&t.child.childLanes?Cg(e,t,n):(Ee(ze,ze.current&1),e=Nn(e,t,n),e!==null?e.sibling:null);Ee(ze,ze.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Ig(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Ee(ze,ze.current),r)break;return null;case 22:case 23:return t.lanes=0,bg(e,t,n)}return Nn(e,t,n)}var Ng,_u,Eg,Tg;Ng=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};_u=function(){};Eg=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,yr(nn.current);var o=null;switch(n){case"input":i=Wa(e,i),r=Wa(e,r),o=[];break;case"select":i=Le({},i,{value:void 0}),r=Le({},r,{value:void 0}),o=[];break;case"textarea":i=Qa(e,i),r=Qa(e,r),o=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Bs)}Ya(n,r);var s;n=null;for(u in i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u==="style"){var l=i[u];for(s in l)l.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(oo.hasOwnProperty(u)?o||(o=[]):(o=o||[]).push(u,null));for(u in r){var a=r[u];if(l=i!=null?i[u]:void 0,r.hasOwnProperty(u)&&a!==l&&(a!=null||l!=null))if(u==="style")if(l){for(s in l)!l.hasOwnProperty(s)||a&&a.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in a)a.hasOwnProperty(s)&&l[s]!==a[s]&&(n||(n={}),n[s]=a[s])}else n||(o||(o=[]),o.push(u,n)),n=a;else u==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,l=l?l.__html:void 0,a!=null&&l!==a&&(o=o||[]).push(u,a)):u==="children"?typeof a!="string"&&typeof a!="number"||(o=o||[]).push(u,""+a):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(oo.hasOwnProperty(u)?(a!=null&&u==="onScroll"&&je("scroll",e),o||l===a||(o=[])):(o=o||[]).push(u,a))}n&&(o=o||[]).push("style",n);var u=o;(t.updateQueue=u)&&(t.flags|=4)}};Tg=function(e,t,n,r){n!==r&&(t.flags|=4)};function Oi(e,t){if(!Pe)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function et(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function qv(e,t,n){var r=t.pendingProps;switch(Tc(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return et(t),null;case 1:return yt(t.type)&&Vs(),et(t),null;case 3:return r=t.stateNode,pi(),Ae(gt),Ae(rt),Dc(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(ts(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Ht!==null&&(Pu(Ht),Ht=null))),_u(e,t),et(t),null;case 5:Oc(t);var i=yr(xo.current);if(n=t.type,e!==null&&t.stateNode!=null)Eg(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(F(166));return et(t),null}if(e=yr(nn.current),ts(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[en]=t,r[go]=o,e=(t.mode&1)!==0,n){case"dialog":je("cancel",r),je("close",r);break;case"iframe":case"object":case"embed":je("load",r);break;case"video":case"audio":for(i=0;i<qi.length;i++)je(qi[i],r);break;case"source":je("error",r);break;case"img":case"image":case"link":je("error",r),je("load",r);break;case"details":je("toggle",r);break;case"input":Yd(r,o),je("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},je("invalid",r);break;case"textarea":Jd(r,o),je("invalid",r)}Ya(n,o),i=null;for(var s in o)if(o.hasOwnProperty(s)){var l=o[s];s==="children"?typeof l=="string"?r.textContent!==l&&(o.suppressHydrationWarning!==!0&&es(r.textContent,l,e),i=["children",l]):typeof l=="number"&&r.textContent!==""+l&&(o.suppressHydrationWarning!==!0&&es(r.textContent,l,e),i=["children",""+l]):oo.hasOwnProperty(s)&&l!=null&&s==="onScroll"&&je("scroll",r)}switch(n){case"input":Wo(r),Xd(r,o,!0);break;case"textarea":Wo(r),ef(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=Bs)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{s=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=rh(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=s.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[en]=t,e[go]=r,Ng(e,t,!1,!1),t.stateNode=e;e:{switch(s=Xa(n,r),n){case"dialog":je("cancel",e),je("close",e),i=r;break;case"iframe":case"object":case"embed":je("load",e),i=r;break;case"video":case"audio":for(i=0;i<qi.length;i++)je(qi[i],e);i=r;break;case"source":je("error",e),i=r;break;case"img":case"image":case"link":je("error",e),je("load",e),i=r;break;case"details":je("toggle",e),i=r;break;case"input":Yd(e,r),i=Wa(e,r),je("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=Le({},r,{value:void 0}),je("invalid",e);break;case"textarea":Jd(e,r),i=Qa(e,r),je("invalid",e);break;default:i=r}Ya(n,i),l=i;for(o in l)if(l.hasOwnProperty(o)){var a=l[o];o==="style"?sh(e,a):o==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,a!=null&&ih(e,a)):o==="children"?typeof a=="string"?(n!=="textarea"||a!=="")&&so(e,a):typeof a=="number"&&so(e,""+a):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(oo.hasOwnProperty(o)?a!=null&&o==="onScroll"&&je("scroll",e):a!=null&&mc(e,o,a,s))}switch(n){case"input":Wo(e),Xd(e,r,!1);break;case"textarea":Wo(e),ef(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Jn(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?ei(e,!!r.multiple,o,!1):r.defaultValue!=null&&ei(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=Bs)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return et(t),null;case 6:if(e&&t.stateNode!=null)Tg(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(F(166));if(n=yr(xo.current),yr(nn.current),ts(t)){if(r=t.stateNode,n=t.memoizedProps,r[en]=t,(o=r.nodeValue!==n)&&(e=Ct,e!==null))switch(e.tag){case 3:es(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&es(r.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[en]=t,t.stateNode=r}return et(t),null;case 13:if(Ae(ze),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Pe&&_t!==null&&t.mode&1&&!(t.flags&128))Zh(),di(),t.flags|=98560,o=!1;else if(o=ts(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(F(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(F(317));o[en]=t}else di(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;et(t),o=!1}else Ht!==null&&(Pu(Ht),Ht=null),o=!0;if(!o)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||ze.current&1?qe===0&&(qe=3):Kc())),t.updateQueue!==null&&(t.flags|=4),et(t),null);case 4:return pi(),_u(e,t),e===null&&mo(t.stateNode.containerInfo),et(t),null;case 10:return Rc(t.type._context),et(t),null;case 17:return yt(t.type)&&Vs(),et(t),null;case 19:if(Ae(ze),o=t.memoizedState,o===null)return et(t),null;if(r=(t.flags&128)!==0,s=o.rendering,s===null)if(r)Oi(o,!1);else{if(qe!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(s=Ks(e),s!==null){for(t.flags|=128,Oi(o,!1),r=s.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)o=n,e=r,o.flags&=14680066,s=o.alternate,s===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=s.childLanes,o.lanes=s.lanes,o.child=s.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=s.memoizedProps,o.memoizedState=s.memoizedState,o.updateQueue=s.updateQueue,o.type=s.type,e=s.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Ee(ze,ze.current&1|2),t.child}e=e.sibling}o.tail!==null&&De()>hi&&(t.flags|=128,r=!0,Oi(o,!1),t.lanes=4194304)}else{if(!r)if(e=Ks(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Oi(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!Pe)return et(t),null}else 2*De()-o.renderingStartTime>hi&&n!==1073741824&&(t.flags|=128,r=!0,Oi(o,!1),t.lanes=4194304);o.isBackwards?(s.sibling=t.child,t.child=s):(n=o.last,n!==null?n.sibling=s:t.child=s,o.last=s)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=De(),t.sibling=null,n=ze.current,Ee(ze,r?n&1|2:n&1),t):(et(t),null);case 22:case 23:return Qc(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?St&1073741824&&(et(t),t.subtreeFlags&6&&(t.flags|=8192)):et(t),null;case 24:return null;case 25:return null}throw Error(F(156,t.tag))}function Wv(e,t){switch(Tc(t),t.tag){case 1:return yt(t.type)&&Vs(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return pi(),Ae(gt),Ae(rt),Dc(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Oc(t),null;case 13:if(Ae(ze),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(F(340));di()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ae(ze),null;case 4:return pi(),null;case 10:return Rc(t.type._context),null;case 22:case 23:return Qc(),null;case 24:return null;default:return null}}var is=!1,tt=!1,Zv=typeof WeakSet=="function"?WeakSet:Set,G=null;function Xr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Oe(e,t,r)}else n.current=null}function Cu(e,t,n){try{n()}catch(r){Oe(e,t,r)}}var Hf=!1;function Gv(e,t){if(au=Fs,e=zh(),Nc(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var s=0,l=-1,a=-1,u=0,f=0,d=e,m=null;t:for(;;){for(var p;d!==n||i!==0&&d.nodeType!==3||(l=s+i),d!==o||r!==0&&d.nodeType!==3||(a=s+r),d.nodeType===3&&(s+=d.nodeValue.length),(p=d.firstChild)!==null;)m=d,d=p;for(;;){if(d===e)break t;if(m===n&&++u===i&&(l=s),m===o&&++f===r&&(a=s),(p=d.nextSibling)!==null)break;d=m,m=d.parentNode}d=p}n=l===-1||a===-1?null:{start:l,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(uu={focusedElem:e,selectionRange:n},Fs=!1,G=t;G!==null;)if(t=G,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,G=e;else for(;G!==null;){t=G;try{var x=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(x!==null){var b=x.memoizedProps,I=x.memoizedState,y=t.stateNode,v=y.getSnapshotBeforeUpdate(t.elementType===t.type?b:Bt(t.type,b),I);y.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var w=t.stateNode.containerInfo;w.nodeType===1?w.textContent="":w.nodeType===9&&w.documentElement&&w.removeChild(w.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(F(163))}}catch(N){Oe(t,t.return,N)}if(e=t.sibling,e!==null){e.return=t.return,G=e;break}G=t.return}return x=Hf,Hf=!1,x}function Ji(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&Cu(t,n,o)}i=i.next}while(i!==r)}}function Rl(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Iu(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function jg(e){var t=e.alternate;t!==null&&(e.alternate=null,jg(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[en],delete t[go],delete t[fu],delete t[jv],delete t[Av])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Ag(e){return e.tag===5||e.tag===3||e.tag===4}function qf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Ag(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Nu(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Bs));else if(r!==4&&(e=e.child,e!==null))for(Nu(e,t,n),e=e.sibling;e!==null;)Nu(e,t,n),e=e.sibling}function Eu(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Eu(e,t,n),e=e.sibling;e!==null;)Eu(e,t,n),e=e.sibling}var Ge=null,Vt=!1;function Pn(e,t,n){for(n=n.child;n!==null;)Pg(e,t,n),n=n.sibling}function Pg(e,t,n){if(tn&&typeof tn.onCommitFiberUnmount=="function")try{tn.onCommitFiberUnmount(Cl,n)}catch{}switch(n.tag){case 5:tt||Xr(n,t);case 6:var r=Ge,i=Vt;Ge=null,Pn(e,t,n),Ge=r,Vt=i,Ge!==null&&(Vt?(e=Ge,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ge.removeChild(n.stateNode));break;case 18:Ge!==null&&(Vt?(e=Ge,n=n.stateNode,e.nodeType===8?ca(e.parentNode,n):e.nodeType===1&&ca(e,n),co(e)):ca(Ge,n.stateNode));break;case 4:r=Ge,i=Vt,Ge=n.stateNode.containerInfo,Vt=!0,Pn(e,t,n),Ge=r,Vt=i;break;case 0:case 11:case 14:case 15:if(!tt&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,s=o.destroy;o=o.tag,s!==void 0&&(o&2||o&4)&&Cu(n,t,s),i=i.next}while(i!==r)}Pn(e,t,n);break;case 1:if(!tt&&(Xr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){Oe(n,t,l)}Pn(e,t,n);break;case 21:Pn(e,t,n);break;case 22:n.mode&1?(tt=(r=tt)||n.memoizedState!==null,Pn(e,t,n),tt=r):Pn(e,t,n);break;default:Pn(e,t,n)}}function Wf(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Zv),t.forEach(function(r){var i=rk.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Ut(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var o=e,s=t,l=s;e:for(;l!==null;){switch(l.tag){case 5:Ge=l.stateNode,Vt=!1;break e;case 3:Ge=l.stateNode.containerInfo,Vt=!0;break e;case 4:Ge=l.stateNode.containerInfo,Vt=!0;break e}l=l.return}if(Ge===null)throw Error(F(160));Pg(o,s,i),Ge=null,Vt=!1;var a=i.alternate;a!==null&&(a.return=null),i.return=null}catch(u){Oe(i,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Rg(t,e),t=t.sibling}function Rg(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Ut(t,e),Qt(e),r&4){try{Ji(3,e,e.return),Rl(3,e)}catch(b){Oe(e,e.return,b)}try{Ji(5,e,e.return)}catch(b){Oe(e,e.return,b)}}break;case 1:Ut(t,e),Qt(e),r&512&&n!==null&&Xr(n,n.return);break;case 5:if(Ut(t,e),Qt(e),r&512&&n!==null&&Xr(n,n.return),e.flags&32){var i=e.stateNode;try{so(i,"")}catch(b){Oe(e,e.return,b)}}if(r&4&&(i=e.stateNode,i!=null)){var o=e.memoizedProps,s=n!==null?n.memoizedProps:o,l=e.type,a=e.updateQueue;if(e.updateQueue=null,a!==null)try{l==="input"&&o.type==="radio"&&o.name!=null&&th(i,o),Xa(l,s);var u=Xa(l,o);for(s=0;s<a.length;s+=2){var f=a[s],d=a[s+1];f==="style"?sh(i,d):f==="dangerouslySetInnerHTML"?ih(i,d):f==="children"?so(i,d):mc(i,f,d,u)}switch(l){case"input":Za(i,o);break;case"textarea":nh(i,o);break;case"select":var m=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var p=o.value;p!=null?ei(i,!!o.multiple,p,!1):m!==!!o.multiple&&(o.defaultValue!=null?ei(i,!!o.multiple,o.defaultValue,!0):ei(i,!!o.multiple,o.multiple?[]:"",!1))}i[go]=o}catch(b){Oe(e,e.return,b)}}break;case 6:if(Ut(t,e),Qt(e),r&4){if(e.stateNode===null)throw Error(F(162));i=e.stateNode,o=e.memoizedProps;try{i.nodeValue=o}catch(b){Oe(e,e.return,b)}}break;case 3:if(Ut(t,e),Qt(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{co(t.containerInfo)}catch(b){Oe(e,e.return,b)}break;case 4:Ut(t,e),Qt(e);break;case 13:Ut(t,e),Qt(e),i=e.child,i.flags&8192&&(o=i.memoizedState!==null,i.stateNode.isHidden=o,!o||i.alternate!==null&&i.alternate.memoizedState!==null||(Zc=De())),r&4&&Wf(e);break;case 22:if(f=n!==null&&n.memoizedState!==null,e.mode&1?(tt=(u=tt)||f,Ut(t,e),tt=u):Ut(t,e),Qt(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!f&&e.mode&1)for(G=e,f=e.child;f!==null;){for(d=G=f;G!==null;){switch(m=G,p=m.child,m.tag){case 0:case 11:case 14:case 15:Ji(4,m,m.return);break;case 1:Xr(m,m.return);var x=m.stateNode;if(typeof x.componentWillUnmount=="function"){r=m,n=m.return;try{t=r,x.props=t.memoizedProps,x.state=t.memoizedState,x.componentWillUnmount()}catch(b){Oe(r,n,b)}}break;case 5:Xr(m,m.return);break;case 22:if(m.memoizedState!==null){Gf(d);continue}}p!==null?(p.return=m,G=p):Gf(d)}f=f.sibling}e:for(f=null,d=e;;){if(d.tag===5){if(f===null){f=d;try{i=d.stateNode,u?(o=i.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(l=d.stateNode,a=d.memoizedProps.style,s=a!=null&&a.hasOwnProperty("display")?a.display:null,l.style.display=oh("display",s))}catch(b){Oe(e,e.return,b)}}}else if(d.tag===6){if(f===null)try{d.stateNode.nodeValue=u?"":d.memoizedProps}catch(b){Oe(e,e.return,b)}}else if((d.tag!==22&&d.tag!==23||d.memoizedState===null||d===e)&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;d.sibling===null;){if(d.return===null||d.return===e)break e;f===d&&(f=null),d=d.return}f===d&&(f=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:Ut(t,e),Qt(e),r&4&&Wf(e);break;case 21:break;default:Ut(t,e),Qt(e)}}function Qt(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Ag(n)){var r=n;break e}n=n.return}throw Error(F(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(so(i,""),r.flags&=-33);var o=qf(e);Eu(e,o,i);break;case 3:case 4:var s=r.stateNode.containerInfo,l=qf(e);Nu(e,l,s);break;default:throw Error(F(161))}}catch(a){Oe(e,e.return,a)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Qv(e,t,n){G=e,zg(e)}function zg(e,t,n){for(var r=(e.mode&1)!==0;G!==null;){var i=G,o=i.child;if(i.tag===22&&r){var s=i.memoizedState!==null||is;if(!s){var l=i.alternate,a=l!==null&&l.memoizedState!==null||tt;l=is;var u=tt;if(is=s,(tt=a)&&!u)for(G=i;G!==null;)s=G,a=s.child,s.tag===22&&s.memoizedState!==null?Qf(i):a!==null?(a.return=s,G=a):Qf(i);for(;o!==null;)G=o,zg(o),o=o.sibling;G=i,is=l,tt=u}Zf(e)}else i.subtreeFlags&8772&&o!==null?(o.return=i,G=o):Zf(e)}}function Zf(e){for(;G!==null;){var t=G;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:tt||Rl(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!tt)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:Bt(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&Af(t,o,r);break;case 3:var s=t.updateQueue;if(s!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Af(t,s,n)}break;case 5:var l=t.stateNode;if(n===null&&t.flags&4){n=l;var a=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":a.autoFocus&&n.focus();break;case"img":a.src&&(n.src=a.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var f=u.memoizedState;if(f!==null){var d=f.dehydrated;d!==null&&co(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(F(163))}tt||t.flags&512&&Iu(t)}catch(m){Oe(t,t.return,m)}}if(t===e){G=null;break}if(n=t.sibling,n!==null){n.return=t.return,G=n;break}G=t.return}}function Gf(e){for(;G!==null;){var t=G;if(t===e){G=null;break}var n=t.sibling;if(n!==null){n.return=t.return,G=n;break}G=t.return}}function Qf(e){for(;G!==null;){var t=G;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Rl(4,t)}catch(a){Oe(t,n,a)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(a){Oe(t,i,a)}}var o=t.return;try{Iu(t)}catch(a){Oe(t,o,a)}break;case 5:var s=t.return;try{Iu(t)}catch(a){Oe(t,s,a)}}}catch(a){Oe(t,t.return,a)}if(t===e){G=null;break}var l=t.sibling;if(l!==null){l.return=t.return,G=l;break}G=t.return}}var Kv=Math.ceil,Js=jn.ReactCurrentDispatcher,qc=jn.ReactCurrentOwner,zt=jn.ReactCurrentBatchConfig,be=0,Ze=null,Ue=null,Ke=0,St=0,Jr=ir(0),qe=0,bo=null,Sr=0,zl=0,Wc=0,eo=null,mt=null,Zc=0,hi=1/0,hn=null,el=!1,Tu=null,Qn=null,os=!1,Bn=null,tl=0,to=0,ju=null,Is=-1,Ns=0;function at(){return be&6?De():Is!==-1?Is:Is=De()}function Kn(e){return e.mode&1?be&2&&Ke!==0?Ke&-Ke:Rv.transition!==null?(Ns===0&&(Ns=xh()),Ns):(e=Se,e!==0||(e=window.event,e=e===void 0?16:Ch(e.type)),e):1}function Wt(e,t,n,r){if(50<to)throw to=0,ju=null,Error(F(185));Po(e,n,r),(!(be&2)||e!==Ze)&&(e===Ze&&(!(be&2)&&(zl|=n),qe===4&&$n(e,Ke)),xt(e,r),n===1&&be===0&&!(t.mode&1)&&(hi=De()+500,jl&&or()))}function xt(e,t){var n=e.callbackNode;R0(e,t);var r=Ds(e,e===Ze?Ke:0);if(r===0)n!==null&&rf(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&rf(n),t===1)e.tag===0?Pv(Kf.bind(null,e)):Hh(Kf.bind(null,e)),Ev(function(){!(be&6)&&or()}),n=null;else{switch(vh(r)){case 1:n=vc;break;case 4:n=gh;break;case 16:n=Os;break;case 536870912:n=yh;break;default:n=Os}n=Bg(n,Mg.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Mg(e,t){if(Is=-1,Ns=0,be&6)throw Error(F(327));var n=e.callbackNode;if(oi()&&e.callbackNode!==n)return null;var r=Ds(e,e===Ze?Ke:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=nl(e,r);else{t=r;var i=be;be|=2;var o=Og();(Ze!==e||Ke!==t)&&(hn=null,hi=De()+500,xr(e,t));do try{Jv();break}catch(l){Lg(e,l)}while(!0);Pc(),Js.current=o,be=i,Ue!==null?t=0:(Ze=null,Ke=0,t=qe)}if(t!==0){if(t===2&&(i=ru(e),i!==0&&(r=i,t=Au(e,i))),t===1)throw n=bo,xr(e,0),$n(e,r),xt(e,De()),n;if(t===6)$n(e,r);else{if(i=e.current.alternate,!(r&30)&&!Yv(i)&&(t=nl(e,r),t===2&&(o=ru(e),o!==0&&(r=o,t=Au(e,o))),t===1))throw n=bo,xr(e,0),$n(e,r),xt(e,De()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(F(345));case 2:pr(e,mt,hn);break;case 3:if($n(e,r),(r&130023424)===r&&(t=Zc+500-De(),10<t)){if(Ds(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){at(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=du(pr.bind(null,e,mt,hn),t);break}pr(e,mt,hn);break;case 4:if($n(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var s=31-qt(r);o=1<<s,s=t[s],s>i&&(i=s),r&=~o}if(r=i,r=De()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Kv(r/1960))-r,10<r){e.timeoutHandle=du(pr.bind(null,e,mt,hn),r);break}pr(e,mt,hn);break;case 5:pr(e,mt,hn);break;default:throw Error(F(329))}}}return xt(e,De()),e.callbackNode===n?Mg.bind(null,e):null}function Au(e,t){var n=eo;return e.current.memoizedState.isDehydrated&&(xr(e,t).flags|=256),e=nl(e,t),e!==2&&(t=mt,mt=n,t!==null&&Pu(t)),e}function Pu(e){mt===null?mt=e:mt.push.apply(mt,e)}function Yv(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!Gt(o(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function $n(e,t){for(t&=~Wc,t&=~zl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-qt(t),r=1<<n;e[n]=-1,t&=~r}}function Kf(e){if(be&6)throw Error(F(327));oi();var t=Ds(e,0);if(!(t&1))return xt(e,De()),null;var n=nl(e,t);if(e.tag!==0&&n===2){var r=ru(e);r!==0&&(t=r,n=Au(e,r))}if(n===1)throw n=bo,xr(e,0),$n(e,t),xt(e,De()),n;if(n===6)throw Error(F(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,pr(e,mt,hn),xt(e,De()),null}function Gc(e,t){var n=be;be|=1;try{return e(t)}finally{be=n,be===0&&(hi=De()+500,jl&&or())}}function _r(e){Bn!==null&&Bn.tag===0&&!(be&6)&&oi();var t=be;be|=1;var n=zt.transition,r=Se;try{if(zt.transition=null,Se=1,e)return e()}finally{Se=r,zt.transition=n,be=t,!(be&6)&&or()}}function Qc(){St=Jr.current,Ae(Jr)}function xr(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Nv(n)),Ue!==null)for(n=Ue.return;n!==null;){var r=n;switch(Tc(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Vs();break;case 3:pi(),Ae(gt),Ae(rt),Dc();break;case 5:Oc(r);break;case 4:pi();break;case 13:Ae(ze);break;case 19:Ae(ze);break;case 10:Rc(r.type._context);break;case 22:case 23:Qc()}n=n.return}if(Ze=e,Ue=e=Yn(e.current,null),Ke=St=t,qe=0,bo=null,Wc=zl=Sr=0,mt=eo=null,gr!==null){for(t=0;t<gr.length;t++)if(n=gr[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,o=n.pending;if(o!==null){var s=o.next;o.next=i,r.next=s}n.pending=r}gr=null}return e}function Lg(e,t){do{var n=Ue;try{if(Pc(),Ss.current=Xs,Ys){for(var r=Me.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}Ys=!1}if(br=0,We=He=Me=null,Xi=!1,vo=0,qc.current=null,n===null||n.return===null){qe=1,bo=t,Ue=null;break}e:{var o=e,s=n.return,l=n,a=t;if(t=Ke,l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){var u=a,f=l,d=f.tag;if(!(f.mode&1)&&(d===0||d===11||d===15)){var m=f.alternate;m?(f.updateQueue=m.updateQueue,f.memoizedState=m.memoizedState,f.lanes=m.lanes):(f.updateQueue=null,f.memoizedState=null)}var p=Of(s);if(p!==null){p.flags&=-257,Df(p,s,l,o,t),p.mode&1&&Lf(o,u,t),t=p,a=u;var x=t.updateQueue;if(x===null){var b=new Set;b.add(a),t.updateQueue=b}else x.add(a);break e}else{if(!(t&1)){Lf(o,u,t),Kc();break e}a=Error(F(426))}}else if(Pe&&l.mode&1){var I=Of(s);if(I!==null){!(I.flags&65536)&&(I.flags|=256),Df(I,s,l,o,t),jc(mi(a,l));break e}}o=a=mi(a,l),qe!==4&&(qe=2),eo===null?eo=[o]:eo.push(o),o=s;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var y=vg(o,a,t);jf(o,y);break e;case 1:l=a;var v=o.type,w=o.stateNode;if(!(o.flags&128)&&(typeof v.getDerivedStateFromError=="function"||w!==null&&typeof w.componentDidCatch=="function"&&(Qn===null||!Qn.has(w)))){o.flags|=65536,t&=-t,o.lanes|=t;var N=kg(o,l,t);jf(o,N);break e}}o=o.return}while(o!==null)}Fg(n)}catch(j){t=j,Ue===n&&n!==null&&(Ue=n=n.return);continue}break}while(!0)}function Og(){var e=Js.current;return Js.current=Xs,e===null?Xs:e}function Kc(){(qe===0||qe===3||qe===2)&&(qe=4),Ze===null||!(Sr&268435455)&&!(zl&268435455)||$n(Ze,Ke)}function nl(e,t){var n=be;be|=2;var r=Og();(Ze!==e||Ke!==t)&&(hn=null,xr(e,t));do try{Xv();break}catch(i){Lg(e,i)}while(!0);if(Pc(),be=n,Js.current=r,Ue!==null)throw Error(F(261));return Ze=null,Ke=0,qe}function Xv(){for(;Ue!==null;)Dg(Ue)}function Jv(){for(;Ue!==null&&!_0();)Dg(Ue)}function Dg(e){var t=Ug(e.alternate,e,St);e.memoizedProps=e.pendingProps,t===null?Fg(e):Ue=t,qc.current=null}function Fg(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=Wv(n,t),n!==null){n.flags&=32767,Ue=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{qe=6,Ue=null;return}}else if(n=qv(n,t,St),n!==null){Ue=n;return}if(t=t.sibling,t!==null){Ue=t;return}Ue=t=e}while(t!==null);qe===0&&(qe=5)}function pr(e,t,n){var r=Se,i=zt.transition;try{zt.transition=null,Se=1,ek(e,t,n,r)}finally{zt.transition=i,Se=r}return null}function ek(e,t,n,r){do oi();while(Bn!==null);if(be&6)throw Error(F(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(F(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(z0(e,o),e===Ze&&(Ue=Ze=null,Ke=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||os||(os=!0,Bg(Os,function(){return oi(),null})),o=(n.flags&15990)!==0,n.subtreeFlags&15990||o){o=zt.transition,zt.transition=null;var s=Se;Se=1;var l=be;be|=4,qc.current=null,Gv(e,n),Rg(n,e),kv(uu),Fs=!!au,uu=au=null,e.current=n,Qv(n),C0(),be=l,Se=s,zt.transition=o}else e.current=n;if(os&&(os=!1,Bn=e,tl=i),o=e.pendingLanes,o===0&&(Qn=null),E0(n.stateNode),xt(e,De()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(el)throw el=!1,e=Tu,Tu=null,e;return tl&1&&e.tag!==0&&oi(),o=e.pendingLanes,o&1?e===ju?to++:(to=0,ju=e):to=0,or(),null}function oi(){if(Bn!==null){var e=vh(tl),t=zt.transition,n=Se;try{if(zt.transition=null,Se=16>e?16:e,Bn===null)var r=!1;else{if(e=Bn,Bn=null,tl=0,be&6)throw Error(F(331));var i=be;for(be|=4,G=e.current;G!==null;){var o=G,s=o.child;if(G.flags&16){var l=o.deletions;if(l!==null){for(var a=0;a<l.length;a++){var u=l[a];for(G=u;G!==null;){var f=G;switch(f.tag){case 0:case 11:case 15:Ji(8,f,o)}var d=f.child;if(d!==null)d.return=f,G=d;else for(;G!==null;){f=G;var m=f.sibling,p=f.return;if(jg(f),f===u){G=null;break}if(m!==null){m.return=p,G=m;break}G=p}}}var x=o.alternate;if(x!==null){var b=x.child;if(b!==null){x.child=null;do{var I=b.sibling;b.sibling=null,b=I}while(b!==null)}}G=o}}if(o.subtreeFlags&2064&&s!==null)s.return=o,G=s;else e:for(;G!==null;){if(o=G,o.flags&2048)switch(o.tag){case 0:case 11:case 15:Ji(9,o,o.return)}var y=o.sibling;if(y!==null){y.return=o.return,G=y;break e}G=o.return}}var v=e.current;for(G=v;G!==null;){s=G;var w=s.child;if(s.subtreeFlags&2064&&w!==null)w.return=s,G=w;else e:for(s=v;G!==null;){if(l=G,l.flags&2048)try{switch(l.tag){case 0:case 11:case 15:Rl(9,l)}}catch(j){Oe(l,l.return,j)}if(l===s){G=null;break e}var N=l.sibling;if(N!==null){N.return=l.return,G=N;break e}G=l.return}}if(be=i,or(),tn&&typeof tn.onPostCommitFiberRoot=="function")try{tn.onPostCommitFiberRoot(Cl,e)}catch{}r=!0}return r}finally{Se=n,zt.transition=t}}return!1}function Yf(e,t,n){t=mi(n,t),t=vg(e,t,1),e=Gn(e,t,1),t=at(),e!==null&&(Po(e,1,t),xt(e,t))}function Oe(e,t,n){if(e.tag===3)Yf(e,e,n);else for(;t!==null;){if(t.tag===3){Yf(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Qn===null||!Qn.has(r))){e=mi(n,e),e=kg(t,e,1),t=Gn(t,e,1),e=at(),t!==null&&(Po(t,1,e),xt(t,e));break}}t=t.return}}function tk(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=at(),e.pingedLanes|=e.suspendedLanes&n,Ze===e&&(Ke&n)===n&&(qe===4||qe===3&&(Ke&130023424)===Ke&&500>De()-Zc?xr(e,0):Wc|=n),xt(e,t)}function $g(e,t){t===0&&(e.mode&1?(t=Qo,Qo<<=1,!(Qo&130023424)&&(Qo=4194304)):t=1);var n=at();e=In(e,t),e!==null&&(Po(e,t,n),xt(e,n))}function nk(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),$g(e,n)}function rk(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(F(314))}r!==null&&r.delete(t),$g(e,n)}var Ug;Ug=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||gt.current)ht=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return ht=!1,Hv(e,t,n);ht=!!(e.flags&131072)}else ht=!1,Pe&&t.flags&1048576&&qh(t,Ws,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Cs(e,t),e=t.pendingProps;var i=ci(t,rt.current);ii(t,n),i=$c(null,t,r,e,i,n);var o=Uc();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,yt(r)?(o=!0,Hs(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Mc(t),i.updater=Pl,t.stateNode=i,i._reactInternals=t,xu(t,r,e,n),t=wu(null,t,r,!0,o,n)):(t.tag=0,Pe&&o&&Ec(t),st(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Cs(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=ok(r),e=Bt(r,e),i){case 0:t=ku(null,t,r,e,n);break e;case 1:t=Uf(null,t,r,e,n);break e;case 11:t=Ff(null,t,r,e,n);break e;case 14:t=$f(null,t,r,Bt(r.type,e),n);break e}throw Error(F(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Bt(r,i),ku(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Bt(r,i),Uf(e,t,r,i,n);case 3:e:{if(_g(t),e===null)throw Error(F(387));r=t.pendingProps,o=t.memoizedState,i=o.element,Yh(e,t),Qs(t,r,null,n);var s=t.memoizedState;if(r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=mi(Error(F(423)),t),t=Bf(e,t,r,n,i);break e}else if(r!==i){i=mi(Error(F(424)),t),t=Bf(e,t,r,n,i);break e}else for(_t=Zn(t.stateNode.containerInfo.firstChild),Ct=t,Pe=!0,Ht=null,n=Qh(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(di(),r===i){t=Nn(e,t,n);break e}st(e,t,r,n)}t=t.child}return t;case 5:return Xh(t),e===null&&hu(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,s=i.children,cu(r,i)?s=null:o!==null&&cu(r,o)&&(t.flags|=32),Sg(e,t),st(e,t,s,n),t.child;case 6:return e===null&&hu(t),null;case 13:return Cg(e,t,n);case 4:return Lc(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=fi(t,null,r,n):st(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Bt(r,i),Ff(e,t,r,i,n);case 7:return st(e,t,t.pendingProps,n),t.child;case 8:return st(e,t,t.pendingProps.children,n),t.child;case 12:return st(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,s=i.value,Ee(Zs,r._currentValue),r._currentValue=s,o!==null)if(Gt(o.value,s)){if(o.children===i.children&&!gt.current){t=Nn(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var l=o.dependencies;if(l!==null){s=o.child;for(var a=l.firstContext;a!==null;){if(a.context===r){if(o.tag===1){a=wn(-1,n&-n),a.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var f=u.pending;f===null?a.next=a:(a.next=f.next,f.next=a),u.pending=a}}o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),gu(o.return,n,t),l.lanes|=n;break}a=a.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(F(341));s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),gu(s,n,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}st(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,ii(t,n),i=Mt(i),r=r(i),t.flags|=1,st(e,t,r,n),t.child;case 14:return r=t.type,i=Bt(r,t.pendingProps),i=Bt(r.type,i),$f(e,t,r,i,n);case 15:return wg(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Bt(r,i),Cs(e,t),t.tag=1,yt(r)?(e=!0,Hs(t)):e=!1,ii(t,n),xg(t,r,i),xu(t,r,i,n),wu(null,t,r,!0,e,n);case 19:return Ig(e,t,n);case 22:return bg(e,t,n)}throw Error(F(156,t.tag))};function Bg(e,t){return hh(e,t)}function ik(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Rt(e,t,n,r){return new ik(e,t,n,r)}function Yc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ok(e){if(typeof e=="function")return Yc(e)?1:0;if(e!=null){if(e=e.$$typeof,e===gc)return 11;if(e===yc)return 14}return 2}function Yn(e,t){var n=e.alternate;return n===null?(n=Rt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Es(e,t,n,r,i,o){var s=2;if(r=e,typeof e=="function")Yc(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Vr:return vr(n.children,i,o,t);case hc:s=8,i|=8;break;case Ba:return e=Rt(12,n,t,i|2),e.elementType=Ba,e.lanes=o,e;case Va:return e=Rt(13,n,t,i),e.elementType=Va,e.lanes=o,e;case Ha:return e=Rt(19,n,t,i),e.elementType=Ha,e.lanes=o,e;case Xm:return Ml(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Km:s=10;break e;case Ym:s=9;break e;case gc:s=11;break e;case yc:s=14;break e;case Ln:s=16,r=null;break e}throw Error(F(130,e==null?e:typeof e,""))}return t=Rt(s,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function vr(e,t,n,r){return e=Rt(7,e,r,t),e.lanes=n,e}function Ml(e,t,n,r){return e=Rt(22,e,r,t),e.elementType=Xm,e.lanes=n,e.stateNode={isHidden:!1},e}function xa(e,t,n){return e=Rt(6,e,null,t),e.lanes=n,e}function va(e,t,n){return t=Rt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function sk(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Jl(0),this.expirationTimes=Jl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Jl(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Xc(e,t,n,r,i,o,s,l,a){return e=new sk(e,t,n,l,a),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Rt(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Mc(o),e}function lk(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Br,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Vg(e){if(!e)return er;e=e._reactInternals;e:{if(Pr(e)!==e||e.tag!==1)throw Error(F(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(yt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(F(171))}if(e.tag===1){var n=e.type;if(yt(n))return Vh(e,n,t)}return t}function Hg(e,t,n,r,i,o,s,l,a){return e=Xc(n,r,!0,e,i,o,s,l,a),e.context=Vg(null),n=e.current,r=at(),i=Kn(n),o=wn(r,i),o.callback=t??null,Gn(n,o,i),e.current.lanes=i,Po(e,i,r),xt(e,r),e}function Ll(e,t,n,r){var i=t.current,o=at(),s=Kn(i);return n=Vg(n),t.context===null?t.context=n:t.pendingContext=n,t=wn(o,s),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Gn(i,t,s),e!==null&&(Wt(e,i,s,o),bs(e,i,s)),s}function rl(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Xf(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Jc(e,t){Xf(e,t),(e=e.alternate)&&Xf(e,t)}function ak(){return null}var qg=typeof reportError=="function"?reportError:function(e){console.error(e)};function ed(e){this._internalRoot=e}Ol.prototype.render=ed.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(F(409));Ll(e,t,null,null)};Ol.prototype.unmount=ed.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;_r(function(){Ll(null,e,null,null)}),t[Cn]=null}};function Ol(e){this._internalRoot=e}Ol.prototype.unstable_scheduleHydration=function(e){if(e){var t=bh();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Fn.length&&t!==0&&t<Fn[n].priority;n++);Fn.splice(n,0,e),n===0&&_h(e)}};function td(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Dl(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Jf(){}function uk(e,t,n,r,i){if(i){if(typeof r=="function"){var o=r;r=function(){var u=rl(s);o.call(u)}}var s=Hg(t,r,e,0,null,!1,!1,"",Jf);return e._reactRootContainer=s,e[Cn]=s.current,mo(e.nodeType===8?e.parentNode:e),_r(),s}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var l=r;r=function(){var u=rl(a);l.call(u)}}var a=Xc(e,0,!1,null,null,!1,!1,"",Jf);return e._reactRootContainer=a,e[Cn]=a.current,mo(e.nodeType===8?e.parentNode:e),_r(function(){Ll(t,a,n,r)}),a}function Fl(e,t,n,r,i){var o=n._reactRootContainer;if(o){var s=o;if(typeof i=="function"){var l=i;i=function(){var a=rl(s);l.call(a)}}Ll(t,s,e,i)}else s=uk(n,t,e,i,r);return rl(s)}kh=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Hi(t.pendingLanes);n!==0&&(kc(t,n|1),xt(t,De()),!(be&6)&&(hi=De()+500,or()))}break;case 13:_r(function(){var r=In(e,1);if(r!==null){var i=at();Wt(r,e,1,i)}}),Jc(e,1)}};wc=function(e){if(e.tag===13){var t=In(e,134217728);if(t!==null){var n=at();Wt(t,e,134217728,n)}Jc(e,134217728)}};wh=function(e){if(e.tag===13){var t=Kn(e),n=In(e,t);if(n!==null){var r=at();Wt(n,e,t,r)}Jc(e,t)}};bh=function(){return Se};Sh=function(e,t){var n=Se;try{return Se=e,t()}finally{Se=n}};eu=function(e,t,n){switch(t){case"input":if(Za(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=Tl(r);if(!i)throw Error(F(90));eh(r),Za(r,i)}}}break;case"textarea":nh(e,n);break;case"select":t=n.value,t!=null&&ei(e,!!n.multiple,t,!1)}};uh=Gc;ch=_r;var ck={usingClientEntryPoint:!1,Events:[zo,Zr,Tl,lh,ah,Gc]},Di={findFiberByHostInstance:hr,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},dk={bundleType:Di.bundleType,version:Di.version,rendererPackageName:Di.rendererPackageName,rendererConfig:Di.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:jn.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=ph(e),e===null?null:e.stateNode},findFiberByHostInstance:Di.findFiberByHostInstance||ak,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ss=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ss.isDisabled&&ss.supportsFiber)try{Cl=ss.inject(dk),tn=ss}catch{}}Tt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ck;Tt.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!td(t))throw Error(F(200));return lk(e,t,null,n)};Tt.createRoot=function(e,t){if(!td(e))throw Error(F(299));var n=!1,r="",i=qg;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=Xc(e,1,!1,null,null,n,!1,r,i),e[Cn]=t.current,mo(e.nodeType===8?e.parentNode:e),new ed(t)};Tt.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(F(188)):(e=Object.keys(e).join(","),Error(F(268,e)));return e=ph(t),e=e===null?null:e.stateNode,e};Tt.flushSync=function(e){return _r(e)};Tt.hydrate=function(e,t,n){if(!Dl(t))throw Error(F(200));return Fl(null,e,t,!0,n)};Tt.hydrateRoot=function(e,t,n){if(!td(e))throw Error(F(405));var r=n!=null&&n.hydratedSources||null,i=!1,o="",s=qg;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=Hg(t,null,e,1,n??null,i,!1,o,s),e[Cn]=t.current,mo(e),r)for(e=0;e<r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new Ol(t)};Tt.render=function(e,t,n){if(!Dl(t))throw Error(F(200));return Fl(null,e,t,!1,n)};Tt.unmountComponentAtNode=function(e){if(!Dl(e))throw Error(F(40));return e._reactRootContainer?(_r(function(){Fl(null,null,e,!1,function(){e._reactRootContainer=null,e[Cn]=null})}),!0):!1};Tt.unstable_batchedUpdates=Gc;Tt.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Dl(n))throw Error(F(200));if(e==null||e._reactInternals===void 0)throw Error(F(38));return Fl(e,t,n,!1,r)};Tt.version="18.3.1-next-f1338f8080-20240426";function Wg(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Wg)}catch(e){console.error(e)}}Wg(),Wm.exports=Tt;var fk=Wm.exports,Zg,ep=fk;Zg=ep.createRoot,ep.hydrateRoot;/**
47
47
  * @license lucide-react v0.577.0 - ISC
48
48
  *
49
49
  * This source code is licensed under the ISC license.
@@ -53,257 +53,257 @@ Error generating stack: `+o.message+`
53
53
  *
54
54
  * This source code is licensed under the ISC license.
55
55
  * See the LICENSE file in the root directory of this source tree.
56
- */const fk=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
56
+ */const pk=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
57
57
  * @license lucide-react v0.577.0 - ISC
58
58
  *
59
59
  * This source code is licensed under the ISC license.
60
60
  * See the LICENSE file in the root directory of this source tree.
61
- */const pk=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase());/**
61
+ */const mk=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase());/**
62
62
  * @license lucide-react v0.577.0 - ISC
63
63
  *
64
64
  * This source code is licensed under the ISC license.
65
65
  * See the LICENSE file in the root directory of this source tree.
66
- */const tp=e=>{const t=pk(e);return t.charAt(0).toUpperCase()+t.slice(1)};/**
66
+ */const tp=e=>{const t=mk(e);return t.charAt(0).toUpperCase()+t.slice(1)};/**
67
67
  * @license lucide-react v0.577.0 - ISC
68
68
  *
69
69
  * This source code is licensed under the ISC license.
70
70
  * See the LICENSE file in the root directory of this source tree.
71
- */var mk={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
71
+ */var hk={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
72
72
  * @license lucide-react v0.577.0 - ISC
73
73
  *
74
74
  * This source code is licensed under the ISC license.
75
75
  * See the LICENSE file in the root directory of this source tree.
76
- */const hk=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1};/**
76
+ */const gk=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1};/**
77
77
  * @license lucide-react v0.577.0 - ISC
78
78
  *
79
79
  * This source code is licensed under the ISC license.
80
80
  * See the LICENSE file in the root directory of this source tree.
81
- */const gk=U.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i="",children:o,iconNode:s,...l},a)=>U.createElement("svg",{ref:a,...mk,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:Gg("lucide",i),...!o&&!hk(l)&&{"aria-hidden":"true"},...l},[...s.map(([u,f])=>U.createElement(u,f)),...Array.isArray(o)?o:[o]]));/**
81
+ */const yk=U.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i="",children:o,iconNode:s,...l},a)=>U.createElement("svg",{ref:a,...hk,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:Gg("lucide",i),...!o&&!gk(l)&&{"aria-hidden":"true"},...l},[...s.map(([u,f])=>U.createElement(u,f)),...Array.isArray(o)?o:[o]]));/**
82
82
  * @license lucide-react v0.577.0 - ISC
83
83
  *
84
84
  * This source code is licensed under the ISC license.
85
85
  * See the LICENSE file in the root directory of this source tree.
86
- */const pe=(e,t)=>{const n=U.forwardRef(({className:r,...i},o)=>U.createElement(gk,{ref:o,iconNode:t,className:Gg(`lucide-${fk(tp(e))}`,`lucide-${e}`,r),...i}));return n.displayName=tp(e),n};/**
86
+ */const pe=(e,t)=>{const n=U.forwardRef(({className:r,...i},o)=>U.createElement(yk,{ref:o,iconNode:t,className:Gg(`lucide-${pk(tp(e))}`,`lucide-${e}`,r),...i}));return n.displayName=tp(e),n};/**
87
87
  * @license lucide-react v0.577.0 - ISC
88
88
  *
89
89
  * This source code is licensed under the ISC license.
90
90
  * See the LICENSE file in the root directory of this source tree.
91
- */const yk=[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]],xk=pe("arrow-up-right",yk);/**
91
+ */const xk=[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]],vk=pe("arrow-up-right",xk);/**
92
92
  * @license lucide-react v0.577.0 - ISC
93
93
  *
94
94
  * This source code is licensed under the ISC license.
95
95
  * See the LICENSE file in the root directory of this source tree.
96
- */const vk=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]],np=pe("bell",vk);/**
96
+ */const kk=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]],np=pe("bell",kk);/**
97
97
  * @license lucide-react v0.577.0 - ISC
98
98
  *
99
99
  * This source code is licensed under the ISC license.
100
100
  * See the LICENSE file in the root directory of this source tree.
101
- */const kk=[["path",{d:"M10 2v8l3-3 3 3V2",key:"sqw3rj"}],["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20",key:"k3hazp"}]],wk=pe("book-marked",kk);/**
101
+ */const wk=[["path",{d:"M10 2v8l3-3 3 3V2",key:"sqw3rj"}],["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20",key:"k3hazp"}]],bk=pe("book-marked",wk);/**
102
102
  * @license lucide-react v0.577.0 - ISC
103
103
  *
104
104
  * This source code is licensed under the ISC license.
105
105
  * See the LICENSE file in the root directory of this source tree.
106
- */const bk=[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]],Sk=pe("bot",bk);/**
106
+ */const Sk=[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]],_k=pe("bot",Sk);/**
107
107
  * @license lucide-react v0.577.0 - ISC
108
108
  *
109
109
  * This source code is licensed under the ISC license.
110
110
  * See the LICENSE file in the root directory of this source tree.
111
- */const _k=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Ck=pe("check",_k);/**
111
+ */const Ck=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Ik=pe("check",Ck);/**
112
112
  * @license lucide-react v0.577.0 - ISC
113
113
  *
114
114
  * This source code is licensed under the ISC license.
115
115
  * See the LICENSE file in the root directory of this source tree.
116
- */const Ik=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],sn=pe("chevron-down",Ik);/**
116
+ */const Nk=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],sn=pe("chevron-down",Nk);/**
117
117
  * @license lucide-react v0.577.0 - ISC
118
118
  *
119
119
  * This source code is licensed under the ISC license.
120
120
  * See the LICENSE file in the root directory of this source tree.
121
- */const Nk=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],ln=pe("chevron-right",Nk);/**
121
+ */const Ek=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],ln=pe("chevron-right",Ek);/**
122
122
  * @license lucide-react v0.577.0 - ISC
123
123
  *
124
124
  * This source code is licensed under the ISC license.
125
125
  * See the LICENSE file in the root directory of this source tree.
126
- */const Ek=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],Tk=pe("chevron-up",Ek);/**
126
+ */const Tk=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],jk=pe("chevron-up",Tk);/**
127
127
  * @license lucide-react v0.577.0 - ISC
128
128
  *
129
129
  * This source code is licensed under the ISC license.
130
130
  * See the LICENSE file in the root directory of this source tree.
131
- */const jk=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],Lo=pe("circle-alert",jk);/**
131
+ */const Ak=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],Lo=pe("circle-alert",Ak);/**
132
132
  * @license lucide-react v0.577.0 - ISC
133
133
  *
134
134
  * This source code is licensed under the ISC license.
135
135
  * See the LICENSE file in the root directory of this source tree.
136
- */const Ak=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Qg=pe("circle-check",Ak);/**
136
+ */const Pk=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Qg=pe("circle-check",Pk);/**
137
137
  * @license lucide-react v0.577.0 - ISC
138
138
  *
139
139
  * This source code is licensed under the ISC license.
140
140
  * See the LICENSE file in the root directory of this source tree.
141
- */const Pk=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]],Rk=pe("circle-question-mark",Pk);/**
141
+ */const Rk=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]],zk=pe("circle-question-mark",Rk);/**
142
142
  * @license lucide-react v0.577.0 - ISC
143
143
  *
144
144
  * This source code is licensed under the ISC license.
145
145
  * See the LICENSE file in the root directory of this source tree.
146
- */const zk=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],Ru=pe("external-link",zk);/**
146
+ */const Mk=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],Ru=pe("external-link",Mk);/**
147
147
  * @license lucide-react v0.577.0 - ISC
148
148
  *
149
149
  * This source code is licensed under the ISC license.
150
150
  * See the LICENSE file in the root directory of this source tree.
151
- */const Mk=[["path",{d:"M12.659 22H18a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v9.34",key:"o6klzx"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10.378 12.622a1 1 0 0 1 3 3.003L8.36 20.637a2 2 0 0 1-.854.506l-2.867.837a.5.5 0 0 1-.62-.62l.836-2.869a2 2 0 0 1 .506-.853z",key:"zhnas1"}]],Lk=pe("file-pen",Mk);/**
151
+ */const Lk=[["path",{d:"M12.659 22H18a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v9.34",key:"o6klzx"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10.378 12.622a1 1 0 0 1 3 3.003L8.36 20.637a2 2 0 0 1-.854.506l-2.867.837a.5.5 0 0 1-.62-.62l.836-2.869a2 2 0 0 1 .506-.853z",key:"zhnas1"}]],Ok=pe("file-pen",Lk);/**
152
152
  * @license lucide-react v0.577.0 - ISC
153
153
  *
154
154
  * This source code is licensed under the ISC license.
155
155
  * See the LICENSE file in the root directory of this source tree.
156
- */const Ok=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],Cr=pe("file-text",Ok);/**
156
+ */const Dk=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],Cr=pe("file-text",Dk);/**
157
157
  * @license lucide-react v0.577.0 - ISC
158
158
  *
159
159
  * This source code is licensed under the ISC license.
160
160
  * See the LICENSE file in the root directory of this source tree.
161
- */const Dk=[["path",{d:"M15 6a9 9 0 0 0-9 9V3",key:"1cii5b"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}]],Kg=pe("git-branch",Dk);/**
161
+ */const Fk=[["path",{d:"M15 6a9 9 0 0 0-9 9V3",key:"1cii5b"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}]],Kg=pe("git-branch",Fk);/**
162
162
  * @license lucide-react v0.577.0 - ISC
163
163
  *
164
164
  * This source code is licensed under the ISC license.
165
165
  * See the LICENSE file in the root directory of this source tree.
166
- */const Fk=[["polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12",key:"o97t9d"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}]],Yg=pe("inbox",Fk);/**
166
+ */const $k=[["polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12",key:"o97t9d"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}]],Yg=pe("inbox",$k);/**
167
167
  * @license lucide-react v0.577.0 - ISC
168
168
  *
169
169
  * This source code is licensed under the ISC license.
170
170
  * See the LICENSE file in the root directory of this source tree.
171
- */const $k=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],Xg=pe("info",$k);/**
171
+ */const Uk=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],Xg=pe("info",Uk);/**
172
172
  * @license lucide-react v0.577.0 - ISC
173
173
  *
174
174
  * This source code is licensed under the ISC license.
175
175
  * See the LICENSE file in the root directory of this source tree.
176
- */const Uk=[["path",{d:"M18 5a2 2 0 0 1 2 2v8.526a2 2 0 0 0 .212.897l1.068 2.127a1 1 0 0 1-.9 1.45H3.62a1 1 0 0 1-.9-1.45l1.068-2.127A2 2 0 0 0 4 15.526V7a2 2 0 0 1 2-2z",key:"1pdavp"}],["path",{d:"M20.054 15.987H3.946",key:"14rxg9"}]],Bk=pe("laptop",Uk);/**
176
+ */const Bk=[["path",{d:"M18 5a2 2 0 0 1 2 2v8.526a2 2 0 0 0 .212.897l1.068 2.127a1 1 0 0 1-.9 1.45H3.62a1 1 0 0 1-.9-1.45l1.068-2.127A2 2 0 0 0 4 15.526V7a2 2 0 0 1 2-2z",key:"1pdavp"}],["path",{d:"M20.054 15.987H3.946",key:"14rxg9"}]],Vk=pe("laptop",Bk);/**
177
177
  * @license lucide-react v0.577.0 - ISC
178
178
  *
179
179
  * This source code is licensed under the ISC license.
180
180
  * See the LICENSE file in the root directory of this source tree.
181
- */const Vk=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],sr=pe("loader-circle",Vk);/**
181
+ */const Hk=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],sr=pe("loader-circle",Hk);/**
182
182
  * @license lucide-react v0.577.0 - ISC
183
183
  *
184
184
  * This source code is licensed under the ISC license.
185
185
  * See the LICENSE file in the root directory of this source tree.
186
- */const Hk=[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]],qk=pe("message-circle-question-mark",Hk);/**
186
+ */const qk=[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]],Wk=pe("message-circle-question-mark",qk);/**
187
187
  * @license lucide-react v0.577.0 - ISC
188
188
  *
189
189
  * This source code is licensed under the ISC license.
190
190
  * See the LICENSE file in the root directory of this source tree.
191
- */const Wk=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}],["path",{d:"M12 8v6",key:"1ib9pf"}],["path",{d:"M9 11h6",key:"1fldmi"}]],Zk=pe("message-square-plus",Wk);/**
191
+ */const Zk=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}],["path",{d:"M12 8v6",key:"1ib9pf"}],["path",{d:"M9 11h6",key:"1fldmi"}]],Gk=pe("message-square-plus",Zk);/**
192
192
  * @license lucide-react v0.577.0 - ISC
193
193
  *
194
194
  * This source code is licensed under the ISC license.
195
195
  * See the LICENSE file in the root directory of this source tree.
196
- */const Gk=[["rect",{x:"14",y:"3",width:"5",height:"18",rx:"1",key:"kaeet6"}],["rect",{x:"5",y:"3",width:"5",height:"18",rx:"1",key:"1wsw3u"}]],Qk=pe("pause",Gk);/**
196
+ */const Qk=[["rect",{x:"14",y:"3",width:"5",height:"18",rx:"1",key:"kaeet6"}],["rect",{x:"5",y:"3",width:"5",height:"18",rx:"1",key:"1wsw3u"}]],Kk=pe("pause",Qk);/**
197
197
  * @license lucide-react v0.577.0 - ISC
198
198
  *
199
199
  * This source code is licensed under the ISC license.
200
200
  * See the LICENSE file in the root directory of this source tree.
201
- */const Kk=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]],Yk=pe("pencil",Kk);/**
201
+ */const Yk=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]],Xk=pe("pencil",Yk);/**
202
202
  * @license lucide-react v0.577.0 - ISC
203
203
  *
204
204
  * This source code is licensed under the ISC license.
205
205
  * See the LICENSE file in the root directory of this source tree.
206
- */const Xk=[["path",{d:"M12 22v-5",key:"1ega77"}],["path",{d:"M15 8V2",key:"18g5xt"}],["path",{d:"M17 8a1 1 0 0 1 1 1v4a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1z",key:"1xoxul"}],["path",{d:"M9 8V2",key:"14iosj"}]],Jk=pe("plug",Xk);/**
206
+ */const Jk=[["path",{d:"M12 22v-5",key:"1ega77"}],["path",{d:"M15 8V2",key:"18g5xt"}],["path",{d:"M17 8a1 1 0 0 1 1 1v4a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1z",key:"1xoxul"}],["path",{d:"M9 8V2",key:"14iosj"}]],ew=pe("plug",Jk);/**
207
207
  * @license lucide-react v0.577.0 - ISC
208
208
  *
209
209
  * This source code is licensed under the ISC license.
210
210
  * See the LICENSE file in the root directory of this source tree.
211
- */const ew=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],tw=pe("refresh-cw",ew);/**
211
+ */const tw=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],nw=pe("refresh-cw",tw);/**
212
212
  * @license lucide-react v0.577.0 - ISC
213
213
  *
214
214
  * This source code is licensed under the ISC license.
215
215
  * See the LICENSE file in the root directory of this source tree.
216
- */const nw=[["path",{d:"m2 9 3-3 3 3",key:"1ltn5i"}],["path",{d:"M13 18H7a2 2 0 0 1-2-2V6",key:"1r6tfw"}],["path",{d:"m22 15-3 3-3-3",key:"4rnwn2"}],["path",{d:"M11 6h6a2 2 0 0 1 2 2v10",key:"2f72bc"}]],rw=pe("repeat-2",nw);/**
216
+ */const rw=[["path",{d:"m2 9 3-3 3 3",key:"1ltn5i"}],["path",{d:"M13 18H7a2 2 0 0 1-2-2V6",key:"1r6tfw"}],["path",{d:"m22 15-3 3-3-3",key:"4rnwn2"}],["path",{d:"M11 6h6a2 2 0 0 1 2 2v10",key:"2f72bc"}]],iw=pe("repeat-2",rw);/**
217
217
  * @license lucide-react v0.577.0 - ISC
218
218
  *
219
219
  * This source code is licensed under the ISC license.
220
220
  * See the LICENSE file in the root directory of this source tree.
221
- */const iw=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],rp=pe("search",iw);/**
221
+ */const ow=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],rp=pe("search",ow);/**
222
222
  * @license lucide-react v0.577.0 - ISC
223
223
  *
224
224
  * This source code is licensed under the ISC license.
225
225
  * See the LICENSE file in the root directory of this source tree.
226
- */const ow=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],Jg=pe("send",ow);/**
226
+ */const sw=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],Jg=pe("send",sw);/**
227
227
  * @license lucide-react v0.577.0 - ISC
228
228
  *
229
229
  * This source code is licensed under the ISC license.
230
230
  * See the LICENSE file in the root directory of this source tree.
231
- */const sw=[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]],lw=pe("share-2",sw);/**
231
+ */const lw=[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]],aw=pe("share-2",lw);/**
232
232
  * @license lucide-react v0.577.0 - ISC
233
233
  *
234
234
  * This source code is licensed under the ISC license.
235
235
  * See the LICENSE file in the root directory of this source tree.
236
- */const aw=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M12 16h.01",key:"1drbdi"}]],uw=pe("shield-alert",aw);/**
236
+ */const uw=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M12 16h.01",key:"1drbdi"}]],cw=pe("shield-alert",uw);/**
237
237
  * @license lucide-react v0.577.0 - ISC
238
238
  *
239
239
  * This source code is licensed under the ISC license.
240
240
  * See the LICENSE file in the root directory of this source tree.
241
- */const cw=[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}]],dw=pe("sparkle",cw);/**
241
+ */const dw=[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}]],fw=pe("sparkle",dw);/**
242
242
  * @license lucide-react v0.577.0 - ISC
243
243
  *
244
244
  * This source code is licensed under the ISC license.
245
245
  * See the LICENSE file in the root directory of this source tree.
246
- */const fw=[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],ip=pe("sparkles",fw);/**
246
+ */const pw=[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],ip=pe("sparkles",pw);/**
247
247
  * @license lucide-react v0.577.0 - ISC
248
248
  *
249
249
  * This source code is licensed under the ISC license.
250
250
  * See the LICENSE file in the root directory of this source tree.
251
- */const pw=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["line",{x1:"9",x2:"15",y1:"15",y2:"9",key:"1dfufj"}]],mw=pe("square-slash",pw);/**
251
+ */const mw=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["line",{x1:"9",x2:"15",y1:"15",y2:"9",key:"1dfufj"}]],hw=pe("square-slash",mw);/**
252
252
  * @license lucide-react v0.577.0 - ISC
253
253
  *
254
254
  * This source code is licensed under the ISC license.
255
255
  * See the LICENSE file in the root directory of this source tree.
256
- */const hw=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],e1=pe("terminal",hw);/**
256
+ */const gw=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],e1=pe("terminal",gw);/**
257
257
  * @license lucide-react v0.577.0 - ISC
258
258
  *
259
259
  * This source code is licensed under the ISC license.
260
260
  * See the LICENSE file in the root directory of this source tree.
261
- */const gw=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],t1=pe("triangle-alert",gw);/**
261
+ */const yw=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],t1=pe("triangle-alert",yw);/**
262
262
  * @license lucide-react v0.577.0 - ISC
263
263
  *
264
264
  * This source code is licensed under the ISC license.
265
265
  * See the LICENSE file in the root directory of this source tree.
266
- */const yw=[["path",{d:"M9 14 4 9l5-5",key:"102s5s"}],["path",{d:"M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11",key:"f3b9sd"}]],xw=pe("undo-2",yw);/**
266
+ */const xw=[["path",{d:"M9 14 4 9l5-5",key:"102s5s"}],["path",{d:"M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11",key:"f3b9sd"}]],vw=pe("undo-2",xw);/**
267
267
  * @license lucide-react v0.577.0 - ISC
268
268
  *
269
269
  * This source code is licensed under the ISC license.
270
270
  * See the LICENSE file in the root directory of this source tree.
271
- */const vw=[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]],kw=pe("wrench",vw);/**
271
+ */const kw=[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]],ww=pe("wrench",kw);/**
272
272
  * @license lucide-react v0.577.0 - ISC
273
273
  *
274
274
  * This source code is licensed under the ISC license.
275
275
  * See the LICENSE file in the root directory of this source tree.
276
- */const ww=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],bw=pe("zap",ww);function op(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Sw(...e){return t=>{let n=!1;const r=e.map(i=>{const o=op(i,t);return!n&&typeof o=="function"&&(n=!0),o});if(n)return()=>{for(let i=0;i<r.length;i++){const o=r[i];typeof o=="function"?o():op(e[i],null)}}}}var _w=Symbol.for("react.lazy"),il=e0[" use ".trim().toString()];function Cw(e){return typeof e=="object"&&e!==null&&"then"in e}function n1(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===_w&&"_payload"in e&&Cw(e._payload)}function Iw(e){const t=Ew(e),n=U.forwardRef((r,i)=>{let{children:o,...s}=r;n1(o)&&typeof il=="function"&&(o=il(o._payload));const l=U.Children.toArray(o),a=l.find(jw);if(a){const u=a.props.children,f=l.map(d=>d===a?U.Children.count(u)>1?U.Children.only(null):U.isValidElement(u)?u.props.children:null:d);return h.jsx(t,{...s,ref:i,children:U.isValidElement(u)?U.cloneElement(u,void 0,f):null})}return h.jsx(t,{...s,ref:i,children:o})});return n.displayName=`${e}.Slot`,n}var Nw=Iw("Slot");function Ew(e){const t=U.forwardRef((n,r)=>{let{children:i,...o}=n;if(n1(i)&&typeof il=="function"&&(i=il(i._payload)),U.isValidElement(i)){const s=Pw(i),l=Aw(o,i.props);return i.type!==U.Fragment&&(l.ref=r?Sw(r,s):s),U.cloneElement(i,l)}return U.Children.count(i)>1?U.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Tw=Symbol("radix.slottable");function jw(e){return U.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Tw}function Aw(e,t){const n={...t};for(const r in t){const i=e[r],o=t[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...l)=>{const a=o(...l);return i(...l),a}:i&&(n[r]=i):r==="style"?n[r]={...i,...o}:r==="className"&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}function Pw(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function r1(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=r1(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function i1(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=r1(e))&&(r&&(r+=" "),r+=t);return r}const sp=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,lp=i1,Rw=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return lp(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:i,defaultVariants:o}=t,s=Object.keys(i).map(u=>{const f=n==null?void 0:n[u],d=o==null?void 0:o[u];if(f===null)return null;const m=sp(f)||sp(d);return i[u][m]}),l=n&&Object.entries(n).reduce((u,f)=>{let[d,m]=f;return m===void 0||(u[d]=m),u},{}),a=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,f)=>{let{class:d,className:m,...p}=f;return Object.entries(p).every(x=>{let[b,I]=x;return Array.isArray(I)?I.includes({...o,...l}[b]):{...o,...l}[b]===I})?[...u,d,m]:u},[]);return lp(e,s,a,n==null?void 0:n.class,n==null?void 0:n.className)},zw=(e,t)=>{const n=new Array(e.length+t.length);for(let r=0;r<e.length;r++)n[r]=e[r];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},Mw=(e,t)=>({classGroupId:e,validator:t}),o1=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),ol="-",ap=[],Lw="arbitrary..",Ow=e=>{const t=Fw(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{if(s.startsWith("[")&&s.endsWith("]"))return Dw(s);const l=s.split(ol),a=l[0]===""&&l.length>1?1:0;return s1(l,a,t)},getConflictingClassGroupIds:(s,l)=>{if(l){const a=r[s],u=n[s];return a?u?zw(u,a):a:u||ap}return n[s]||ap}}},s1=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const i=e[t],o=n.nextPart.get(i);if(o){const u=s1(e,t+1,o);if(u)return u}const s=n.validators;if(s===null)return;const l=t===0?e.join(ol):e.slice(t).join(ol),a=s.length;for(let u=0;u<a;u++){const f=s[u];if(f.validator(l))return f.classGroupId}},Dw=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),r=t.slice(0,n);return r?Lw+r:void 0})(),Fw=e=>{const{theme:t,classGroups:n}=e;return $w(n,t)},$w=(e,t)=>{const n=o1();for(const r in e){const i=e[r];nd(i,n,r,t)}return n},nd=(e,t,n,r)=>{const i=e.length;for(let o=0;o<i;o++){const s=e[o];Uw(s,t,n,r)}},Uw=(e,t,n,r)=>{if(typeof e=="string"){Bw(e,t,n);return}if(typeof e=="function"){Vw(e,t,n,r);return}Hw(e,t,n,r)},Bw=(e,t,n)=>{const r=e===""?t:l1(t,e);r.classGroupId=n},Vw=(e,t,n,r)=>{if(qw(e)){nd(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(Mw(n,e))},Hw=(e,t,n,r)=>{const i=Object.entries(e),o=i.length;for(let s=0;s<o;s++){const[l,a]=i[s];nd(a,l1(t,l),n,r)}},l1=(e,t)=>{let n=e;const r=t.split(ol),i=r.length;for(let o=0;o<i;o++){const s=r[o];let l=n.nextPart.get(s);l||(l=o1(),n.nextPart.set(s,l)),n=l}return n},qw=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,Ww=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const i=(o,s)=>{n[o]=s,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(o){let s=n[o];if(s!==void 0)return s;if((s=r[o])!==void 0)return i(o,s),s},set(o,s){o in n?n[o]=s:i(o,s)}}},zu="!",up=":",Zw=[],cp=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),Gw=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=i=>{const o=[];let s=0,l=0,a=0,u;const f=i.length;for(let b=0;b<f;b++){const I=i[b];if(s===0&&l===0){if(I===up){o.push(i.slice(a,b)),a=b+1;continue}if(I==="/"){u=b;continue}}I==="["?s++:I==="]"?s--:I==="("?l++:I===")"&&l--}const d=o.length===0?i:i.slice(a);let m=d,p=!1;d.endsWith(zu)?(m=d.slice(0,-1),p=!0):d.startsWith(zu)&&(m=d.slice(1),p=!0);const x=u&&u>a?u-a:void 0;return cp(o,p,m,x)};if(t){const i=t+up,o=r;r=s=>s.startsWith(i)?o(s.slice(i.length)):cp(Zw,!1,s,void 0,!0)}if(n){const i=r;r=o=>n({className:o,parseClassName:i})}return r},Qw=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,r)=>{t.set(n,1e6+r)}),n=>{const r=[];let i=[];for(let o=0;o<n.length;o++){const s=n[o],l=s[0]==="[",a=t.has(s);l||a?(i.length>0&&(i.sort(),r.push(...i),i=[]),r.push(s)):i.push(s)}return i.length>0&&(i.sort(),r.push(...i)),r}},Kw=e=>({cache:Ww(e.cacheSize),parseClassName:Gw(e),sortModifiers:Qw(e),...Ow(e)}),Yw=/\s+/,Xw=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:o}=t,s=[],l=e.trim().split(Yw);let a="";for(let u=l.length-1;u>=0;u-=1){const f=l[u],{isExternal:d,modifiers:m,hasImportantModifier:p,baseClassName:x,maybePostfixModifierPosition:b}=n(f);if(d){a=f+(a.length>0?" "+a:a);continue}let I=!!b,y=r(I?x.substring(0,b):x);if(!y){if(!I){a=f+(a.length>0?" "+a:a);continue}if(y=r(x),!y){a=f+(a.length>0?" "+a:a);continue}I=!1}const v=m.length===0?"":m.length===1?m[0]:o(m).join(":"),w=p?v+zu:v,N=w+y;if(s.indexOf(N)>-1)continue;s.push(N);const j=i(y,I);for(let S=0;S<j.length;++S){const A=j[S];s.push(w+A)}a=f+(a.length>0?" "+a:a)}return a},Jw=(...e)=>{let t=0,n,r,i="";for(;t<e.length;)(n=e[t++])&&(r=a1(n))&&(i&&(i+=" "),i+=r);return i},a1=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=a1(e[r]))&&(n&&(n+=" "),n+=t);return n},eb=(e,...t)=>{let n,r,i,o;const s=a=>{const u=t.reduce((f,d)=>d(f),e());return n=Kw(u),r=n.cache.get,i=n.cache.set,o=l,l(a)},l=a=>{const u=r(a);if(u)return u;const f=Xw(a,n);return i(a,f),f};return o=s,(...a)=>o(Jw(...a))},tb=[],Ve=e=>{const t=n=>n[e]||tb;return t.isThemeGetter=!0,t},u1=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,c1=/^\((?:(\w[\w-]*):)?(.+)\)$/i,nb=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,rb=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ib=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,ob=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,sb=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,lb=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Rn=e=>nb.test(e),fe=e=>!!e&&!Number.isNaN(Number(e)),zn=e=>!!e&&Number.isInteger(Number(e)),ka=e=>e.endsWith("%")&&fe(e.slice(0,-1)),pn=e=>rb.test(e),d1=()=>!0,ab=e=>ib.test(e)&&!ob.test(e),rd=()=>!1,ub=e=>sb.test(e),cb=e=>lb.test(e),db=e=>!Y(e)&&!X(e),fb=e=>lr(e,m1,rd),Y=e=>u1.test(e),cr=e=>lr(e,h1,ab),dp=e=>lr(e,kb,fe),pb=e=>lr(e,y1,d1),mb=e=>lr(e,g1,rd),fp=e=>lr(e,f1,rd),hb=e=>lr(e,p1,cb),ls=e=>lr(e,x1,ub),X=e=>c1.test(e),Fi=e=>Rr(e,h1),gb=e=>Rr(e,g1),pp=e=>Rr(e,f1),yb=e=>Rr(e,m1),xb=e=>Rr(e,p1),as=e=>Rr(e,x1,!0),vb=e=>Rr(e,y1,!0),lr=(e,t,n)=>{const r=u1.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Rr=(e,t,n=!1)=>{const r=c1.exec(e);return r?r[1]?t(r[1]):n:!1},f1=e=>e==="position"||e==="percentage",p1=e=>e==="image"||e==="url",m1=e=>e==="length"||e==="size"||e==="bg-size",h1=e=>e==="length",kb=e=>e==="number",g1=e=>e==="family-name",y1=e=>e==="number"||e==="weight",x1=e=>e==="shadow",wb=()=>{const e=Ve("color"),t=Ve("font"),n=Ve("text"),r=Ve("font-weight"),i=Ve("tracking"),o=Ve("leading"),s=Ve("breakpoint"),l=Ve("container"),a=Ve("spacing"),u=Ve("radius"),f=Ve("shadow"),d=Ve("inset-shadow"),m=Ve("text-shadow"),p=Ve("drop-shadow"),x=Ve("blur"),b=Ve("perspective"),I=Ve("aspect"),y=Ve("ease"),v=Ve("animate"),w=()=>["auto","avoid","all","avoid-page","page","left","right","column"],N=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],j=()=>[...N(),X,Y],S=()=>["auto","hidden","clip","visible","scroll"],A=()=>["auto","contain","none"],E=()=>[X,Y,a],$=()=>[Rn,"full","auto",...E()],C=()=>[zn,"none","subgrid",X,Y],O=()=>["auto",{span:["full",zn,X,Y]},zn,X,Y],z=()=>[zn,"auto",X,Y],oe=()=>["auto","min","max","fr",X,Y],Z=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],te=()=>["start","end","center","stretch","center-safe","end-safe"],K=()=>["auto",...E()],se=()=>[Rn,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...E()],D=()=>[Rn,"screen","full","dvw","lvw","svw","min","max","fit",...E()],W=()=>[Rn,"screen","full","lh","dvh","lvh","svh","min","max","fit",...E()],k=()=>[e,X,Y],ae=()=>[...N(),pp,fp,{position:[X,Y]}],ye=()=>["no-repeat",{repeat:["","x","y","space","round"]}],_=()=>["auto","cover","contain",yb,fb,{size:[X,Y]}],Re=()=>[ka,Fi,cr],Ce=()=>["","none","full",u,X,Y],ue=()=>["",fe,Fi,cr],ot=()=>["solid","dashed","dotted","double"],Ft=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Te=()=>[fe,ka,pp,fp],un=()=>["","none",x,X,Y],cn=()=>["none",fe,X,Y],Mr=()=>["none",fe,X,Y],Ei=()=>[fe,X,Y],Lr=()=>[Rn,"full",...E()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[pn],breakpoint:[pn],color:[d1],container:[pn],"drop-shadow":[pn],ease:["in","out","in-out"],font:[db],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[pn],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[pn],shadow:[pn],spacing:["px",fe],text:[pn],"text-shadow":[pn],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Rn,Y,X,I]}],container:["container"],columns:[{columns:[fe,Y,X,l]}],"break-after":[{"break-after":w()}],"break-before":[{"break-before":w()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:j()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:A()}],"overscroll-x":[{"overscroll-x":A()}],"overscroll-y":[{"overscroll-y":A()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:$()}],"inset-x":[{"inset-x":$()}],"inset-y":[{"inset-y":$()}],start:[{"inset-s":$(),start:$()}],end:[{"inset-e":$(),end:$()}],"inset-bs":[{"inset-bs":$()}],"inset-be":[{"inset-be":$()}],top:[{top:$()}],right:[{right:$()}],bottom:[{bottom:$()}],left:[{left:$()}],visibility:["visible","invisible","collapse"],z:[{z:[zn,"auto",X,Y]}],basis:[{basis:[Rn,"full","auto",l,...E()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[fe,Rn,"auto","initial","none",Y]}],grow:[{grow:["",fe,X,Y]}],shrink:[{shrink:["",fe,X,Y]}],order:[{order:[zn,"first","last","none",X,Y]}],"grid-cols":[{"grid-cols":C()}],"col-start-end":[{col:O()}],"col-start":[{"col-start":z()}],"col-end":[{"col-end":z()}],"grid-rows":[{"grid-rows":C()}],"row-start-end":[{row:O()}],"row-start":[{"row-start":z()}],"row-end":[{"row-end":z()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":oe()}],"auto-rows":[{"auto-rows":oe()}],gap:[{gap:E()}],"gap-x":[{"gap-x":E()}],"gap-y":[{"gap-y":E()}],"justify-content":[{justify:[...Z(),"normal"]}],"justify-items":[{"justify-items":[...te(),"normal"]}],"justify-self":[{"justify-self":["auto",...te()]}],"align-content":[{content:["normal",...Z()]}],"align-items":[{items:[...te(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...te(),{baseline:["","last"]}]}],"place-content":[{"place-content":Z()}],"place-items":[{"place-items":[...te(),"baseline"]}],"place-self":[{"place-self":["auto",...te()]}],p:[{p:E()}],px:[{px:E()}],py:[{py:E()}],ps:[{ps:E()}],pe:[{pe:E()}],pbs:[{pbs:E()}],pbe:[{pbe:E()}],pt:[{pt:E()}],pr:[{pr:E()}],pb:[{pb:E()}],pl:[{pl:E()}],m:[{m:K()}],mx:[{mx:K()}],my:[{my:K()}],ms:[{ms:K()}],me:[{me:K()}],mbs:[{mbs:K()}],mbe:[{mbe:K()}],mt:[{mt:K()}],mr:[{mr:K()}],mb:[{mb:K()}],ml:[{ml:K()}],"space-x":[{"space-x":E()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":E()}],"space-y-reverse":["space-y-reverse"],size:[{size:se()}],"inline-size":[{inline:["auto",...D()]}],"min-inline-size":[{"min-inline":["auto",...D()]}],"max-inline-size":[{"max-inline":["none",...D()]}],"block-size":[{block:["auto",...W()]}],"min-block-size":[{"min-block":["auto",...W()]}],"max-block-size":[{"max-block":["none",...W()]}],w:[{w:[l,"screen",...se()]}],"min-w":[{"min-w":[l,"screen","none",...se()]}],"max-w":[{"max-w":[l,"screen","none","prose",{screen:[s]},...se()]}],h:[{h:["screen","lh",...se()]}],"min-h":[{"min-h":["screen","lh","none",...se()]}],"max-h":[{"max-h":["screen","lh",...se()]}],"font-size":[{text:["base",n,Fi,cr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,vb,pb]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",ka,Y]}],"font-family":[{font:[gb,mb,t]}],"font-features":[{"font-features":[Y]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[i,X,Y]}],"line-clamp":[{"line-clamp":[fe,"none",X,dp]}],leading:[{leading:[o,...E()]}],"list-image":[{"list-image":["none",X,Y]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",X,Y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:k()}],"text-color":[{text:k()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ot(),"wavy"]}],"text-decoration-thickness":[{decoration:[fe,"from-font","auto",X,cr]}],"text-decoration-color":[{decoration:k()}],"underline-offset":[{"underline-offset":[fe,"auto",X,Y]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:E()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",X,Y]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",X,Y]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ae()}],"bg-repeat":[{bg:ye()}],"bg-size":[{bg:_()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},zn,X,Y],radial:["",X,Y],conic:[zn,X,Y]},xb,hb]}],"bg-color":[{bg:k()}],"gradient-from-pos":[{from:Re()}],"gradient-via-pos":[{via:Re()}],"gradient-to-pos":[{to:Re()}],"gradient-from":[{from:k()}],"gradient-via":[{via:k()}],"gradient-to":[{to:k()}],rounded:[{rounded:Ce()}],"rounded-s":[{"rounded-s":Ce()}],"rounded-e":[{"rounded-e":Ce()}],"rounded-t":[{"rounded-t":Ce()}],"rounded-r":[{"rounded-r":Ce()}],"rounded-b":[{"rounded-b":Ce()}],"rounded-l":[{"rounded-l":Ce()}],"rounded-ss":[{"rounded-ss":Ce()}],"rounded-se":[{"rounded-se":Ce()}],"rounded-ee":[{"rounded-ee":Ce()}],"rounded-es":[{"rounded-es":Ce()}],"rounded-tl":[{"rounded-tl":Ce()}],"rounded-tr":[{"rounded-tr":Ce()}],"rounded-br":[{"rounded-br":Ce()}],"rounded-bl":[{"rounded-bl":Ce()}],"border-w":[{border:ue()}],"border-w-x":[{"border-x":ue()}],"border-w-y":[{"border-y":ue()}],"border-w-s":[{"border-s":ue()}],"border-w-e":[{"border-e":ue()}],"border-w-bs":[{"border-bs":ue()}],"border-w-be":[{"border-be":ue()}],"border-w-t":[{"border-t":ue()}],"border-w-r":[{"border-r":ue()}],"border-w-b":[{"border-b":ue()}],"border-w-l":[{"border-l":ue()}],"divide-x":[{"divide-x":ue()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ue()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ot(),"hidden","none"]}],"divide-style":[{divide:[...ot(),"hidden","none"]}],"border-color":[{border:k()}],"border-color-x":[{"border-x":k()}],"border-color-y":[{"border-y":k()}],"border-color-s":[{"border-s":k()}],"border-color-e":[{"border-e":k()}],"border-color-bs":[{"border-bs":k()}],"border-color-be":[{"border-be":k()}],"border-color-t":[{"border-t":k()}],"border-color-r":[{"border-r":k()}],"border-color-b":[{"border-b":k()}],"border-color-l":[{"border-l":k()}],"divide-color":[{divide:k()}],"outline-style":[{outline:[...ot(),"none","hidden"]}],"outline-offset":[{"outline-offset":[fe,X,Y]}],"outline-w":[{outline:["",fe,Fi,cr]}],"outline-color":[{outline:k()}],shadow:[{shadow:["","none",f,as,ls]}],"shadow-color":[{shadow:k()}],"inset-shadow":[{"inset-shadow":["none",d,as,ls]}],"inset-shadow-color":[{"inset-shadow":k()}],"ring-w":[{ring:ue()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:k()}],"ring-offset-w":[{"ring-offset":[fe,cr]}],"ring-offset-color":[{"ring-offset":k()}],"inset-ring-w":[{"inset-ring":ue()}],"inset-ring-color":[{"inset-ring":k()}],"text-shadow":[{"text-shadow":["none",m,as,ls]}],"text-shadow-color":[{"text-shadow":k()}],opacity:[{opacity:[fe,X,Y]}],"mix-blend":[{"mix-blend":[...Ft(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Ft()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[fe]}],"mask-image-linear-from-pos":[{"mask-linear-from":Te()}],"mask-image-linear-to-pos":[{"mask-linear-to":Te()}],"mask-image-linear-from-color":[{"mask-linear-from":k()}],"mask-image-linear-to-color":[{"mask-linear-to":k()}],"mask-image-t-from-pos":[{"mask-t-from":Te()}],"mask-image-t-to-pos":[{"mask-t-to":Te()}],"mask-image-t-from-color":[{"mask-t-from":k()}],"mask-image-t-to-color":[{"mask-t-to":k()}],"mask-image-r-from-pos":[{"mask-r-from":Te()}],"mask-image-r-to-pos":[{"mask-r-to":Te()}],"mask-image-r-from-color":[{"mask-r-from":k()}],"mask-image-r-to-color":[{"mask-r-to":k()}],"mask-image-b-from-pos":[{"mask-b-from":Te()}],"mask-image-b-to-pos":[{"mask-b-to":Te()}],"mask-image-b-from-color":[{"mask-b-from":k()}],"mask-image-b-to-color":[{"mask-b-to":k()}],"mask-image-l-from-pos":[{"mask-l-from":Te()}],"mask-image-l-to-pos":[{"mask-l-to":Te()}],"mask-image-l-from-color":[{"mask-l-from":k()}],"mask-image-l-to-color":[{"mask-l-to":k()}],"mask-image-x-from-pos":[{"mask-x-from":Te()}],"mask-image-x-to-pos":[{"mask-x-to":Te()}],"mask-image-x-from-color":[{"mask-x-from":k()}],"mask-image-x-to-color":[{"mask-x-to":k()}],"mask-image-y-from-pos":[{"mask-y-from":Te()}],"mask-image-y-to-pos":[{"mask-y-to":Te()}],"mask-image-y-from-color":[{"mask-y-from":k()}],"mask-image-y-to-color":[{"mask-y-to":k()}],"mask-image-radial":[{"mask-radial":[X,Y]}],"mask-image-radial-from-pos":[{"mask-radial-from":Te()}],"mask-image-radial-to-pos":[{"mask-radial-to":Te()}],"mask-image-radial-from-color":[{"mask-radial-from":k()}],"mask-image-radial-to-color":[{"mask-radial-to":k()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":N()}],"mask-image-conic-pos":[{"mask-conic":[fe]}],"mask-image-conic-from-pos":[{"mask-conic-from":Te()}],"mask-image-conic-to-pos":[{"mask-conic-to":Te()}],"mask-image-conic-from-color":[{"mask-conic-from":k()}],"mask-image-conic-to-color":[{"mask-conic-to":k()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ae()}],"mask-repeat":[{mask:ye()}],"mask-size":[{mask:_()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",X,Y]}],filter:[{filter:["","none",X,Y]}],blur:[{blur:un()}],brightness:[{brightness:[fe,X,Y]}],contrast:[{contrast:[fe,X,Y]}],"drop-shadow":[{"drop-shadow":["","none",p,as,ls]}],"drop-shadow-color":[{"drop-shadow":k()}],grayscale:[{grayscale:["",fe,X,Y]}],"hue-rotate":[{"hue-rotate":[fe,X,Y]}],invert:[{invert:["",fe,X,Y]}],saturate:[{saturate:[fe,X,Y]}],sepia:[{sepia:["",fe,X,Y]}],"backdrop-filter":[{"backdrop-filter":["","none",X,Y]}],"backdrop-blur":[{"backdrop-blur":un()}],"backdrop-brightness":[{"backdrop-brightness":[fe,X,Y]}],"backdrop-contrast":[{"backdrop-contrast":[fe,X,Y]}],"backdrop-grayscale":[{"backdrop-grayscale":["",fe,X,Y]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[fe,X,Y]}],"backdrop-invert":[{"backdrop-invert":["",fe,X,Y]}],"backdrop-opacity":[{"backdrop-opacity":[fe,X,Y]}],"backdrop-saturate":[{"backdrop-saturate":[fe,X,Y]}],"backdrop-sepia":[{"backdrop-sepia":["",fe,X,Y]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":E()}],"border-spacing-x":[{"border-spacing-x":E()}],"border-spacing-y":[{"border-spacing-y":E()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",X,Y]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[fe,"initial",X,Y]}],ease:[{ease:["linear","initial",y,X,Y]}],delay:[{delay:[fe,X,Y]}],animate:[{animate:["none",v,X,Y]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[b,X,Y]}],"perspective-origin":[{"perspective-origin":j()}],rotate:[{rotate:cn()}],"rotate-x":[{"rotate-x":cn()}],"rotate-y":[{"rotate-y":cn()}],"rotate-z":[{"rotate-z":cn()}],scale:[{scale:Mr()}],"scale-x":[{"scale-x":Mr()}],"scale-y":[{"scale-y":Mr()}],"scale-z":[{"scale-z":Mr()}],"scale-3d":["scale-3d"],skew:[{skew:Ei()}],"skew-x":[{"skew-x":Ei()}],"skew-y":[{"skew-y":Ei()}],transform:[{transform:[X,Y,"","none","gpu","cpu"]}],"transform-origin":[{origin:j()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Lr()}],"translate-x":[{"translate-x":Lr()}],"translate-y":[{"translate-y":Lr()}],"translate-z":[{"translate-z":Lr()}],"translate-none":["translate-none"],accent:[{accent:k()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:k()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",X,Y]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":E()}],"scroll-mx":[{"scroll-mx":E()}],"scroll-my":[{"scroll-my":E()}],"scroll-ms":[{"scroll-ms":E()}],"scroll-me":[{"scroll-me":E()}],"scroll-mbs":[{"scroll-mbs":E()}],"scroll-mbe":[{"scroll-mbe":E()}],"scroll-mt":[{"scroll-mt":E()}],"scroll-mr":[{"scroll-mr":E()}],"scroll-mb":[{"scroll-mb":E()}],"scroll-ml":[{"scroll-ml":E()}],"scroll-p":[{"scroll-p":E()}],"scroll-px":[{"scroll-px":E()}],"scroll-py":[{"scroll-py":E()}],"scroll-ps":[{"scroll-ps":E()}],"scroll-pe":[{"scroll-pe":E()}],"scroll-pbs":[{"scroll-pbs":E()}],"scroll-pbe":[{"scroll-pbe":E()}],"scroll-pt":[{"scroll-pt":E()}],"scroll-pr":[{"scroll-pr":E()}],"scroll-pb":[{"scroll-pb":E()}],"scroll-pl":[{"scroll-pl":E()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",X,Y]}],fill:[{fill:["none",...k()]}],"stroke-w":[{stroke:[fe,Fi,cr,dp]}],stroke:[{stroke:["none",...k()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},bb=eb(wb);function ve(...e){return bb(i1(e))}const Sb=Rw("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-accent text-accent-contrast hover:bg-accent-hover",destructive:"bg-destructive text-white hover:bg-destructive-hover",outline:"border border-border bg-transparent text-text-100 hover:bg-bg-200",ghost:"bg-transparent text-text-200 hover:bg-bg-200 hover:text-text-100"},size:{sm:"h-8 px-3 text-xs",md:"h-9 px-4",lg:"h-11 px-6 text-base"}},defaultVariants:{variant:"default",size:"md"}}),Xn=U.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...i},o)=>{const s=r?Nw:"button";return h.jsx(s,{ref:o,className:ve(Sb({variant:t,size:n}),e),...i})});Xn.displayName="Button";const _b=["TaskCreate","TaskUpdate","TaskList","TaskGet"];function Cb(e){return _b.includes(e)}function v1(e){return e==="in_progress"||e==="completed"?e:"pending"}function Ib(e,t){if(!t||typeof t!="object")return e;const n=t,r=typeof n.subject=="string"&&n.subject?n.subject:typeof n.content=="string"&&n.content?n.content:null;if(!r)return e;const i=typeof n.activeForm=="string"?n.activeForm:void 0,o=typeof n.description=="string"?n.description:void 0;return[...e,{id:String(e.length+1),content:r,status:v1(n.status),activeForm:i,description:o}]}function Nb(e,t){if(!t||typeof t!="object")return e;const n=t,r=typeof n.taskId=="string"&&n.taskId?n.taskId:typeof n.id=="string"&&n.id?n.id:null;if(!r)return e;const i=e.findIndex(l=>l.id===r);if(i<0)return e;const o=[...e],s={...o[i]};return"status"in n&&(s.status=v1(n.status)),typeof n.subject=="string"&&(s.content=n.subject),typeof n.content=="string"&&(s.content=n.content),typeof n.activeForm=="string"&&(s.activeForm=n.activeForm),typeof n.description=="string"&&(s.description=n.description),o[i]=s,o}function Eb(e){let t=[],n=-1;for(let r=0;r<e.length;r++){const i=e[r];if(i.kind==="task-event")switch(n=r,i.name){case"TaskCreate":t=Ib(t,i.input);break;case"TaskUpdate":t=Nb(t,i.input);break}}return{tasks:t,lastEventIndex:n}}function Tb(e){var n;if(e.error)return!1;if(e.pending)return!0;if(e.notifications.length>0)return!1;const t=(n=e.progress)==null?void 0:n.status;return t==="running"?!0:t==="started"?jb(e.input):!1}function jb(e){return!e||typeof e!="object"?!1:e.run_in_background===!0}function Ab(e){var d;const{tasks:t,lastEventIndex:n}=Eb(e);let r=-1;for(let m=e.length-1;m>=0;m--)if(e[m].kind==="todo-checklist"){r=m;break}const i=[],o=new Map,s=new Map,l=new Map,a=new Map,u=new Map,f=(m,p)=>{var v,w,N,j,S,A;const x=i[m],b=u.get(m),I=b!==void 0&&b!==p.toolUseId;if(!I&&(((v=x.progress)==null?void 0:v.status)==="completed"||((w=x.progress)==null?void 0:w.status)==="failed"))return;if(u.set(m,p.toolUseId),a.set(p.agentId,m),I&&(x.pending=!0,(N=x.toolResultExtra)!=null&&N.stats)){const{stats:E,...$}=x.toolResultExtra;x.toolResultExtra=$}const y={agentId:p.agentId,status:p.status};p.description?y.description=p.description:(j=x.progress)!=null&&j.description&&(y.description=x.progress.description),p.lastToolName?y.lastToolName=p.lastToolName:!I&&((S=x.progress)!=null&&S.lastToolName)&&(y.lastToolName=x.progress.lastToolName),p.stats?y.stats=p.stats:!I&&((A=x.progress)!=null&&A.stats)&&(y.stats=x.progress.stats),x.progress=y,(p.status==="completed"||p.status==="failed")&&(x.pending=!1)};for(let m=0;m<e.length;m++){const p=e[m];switch(p.kind){case"tool-call":{const x={kind:"merged-tool",seq:p.seq,tool:p.tool,toolKind:p.toolKind,toolUseId:p.toolUseId,input:p.input,pending:!0};o.set(p.toolUseId,i.length),i.push(x);break}case"tool-result":{const x=o.get(p.toolUseId);if(x!==void 0){const I=i[x];I.output=p.output,I.error=p.error,I.pending=!1,o.delete(p.toolUseId);break}const b=s.get(p.toolUseId);if(b!==void 0){const I=i[b];I.output=p.output,I.error=p.error,I.pending=!1,p.toolResultExtra&&(I.toolResultExtra=p.toolResultExtra),(d=p.toolResultExtra)!=null&&d.agentId&&(a.set(p.toolResultExtra.agentId,b),u.set(b,p.toolUseId));break}break}case"agent-call":{const x={kind:"merged-agent",seq:p.seq,toolUseId:p.toolUseId,description:p.description,input:p.input,pending:!0,notifications:[]},b=i.length;s.set(p.toolUseId,b),i.push(x);const I=l.get(p.toolUseId);I&&(f(b,I),l.delete(p.toolUseId));break}case"agent-progress":{const x=s.get(p.toolUseId)??a.get(p.agentId);if(x!==void 0){f(x,p);break}const b=l.get(p.toolUseId);if((b==null?void 0:b.status)==="completed"||(b==null?void 0:b.status)==="failed")break;l.set(p.toolUseId,p);break}case"agent-notification":{const x=(p.parentToolUseId?s.get(p.parentToolUseId):void 0)??(p.taskId?a.get(p.taskId):void 0);if(x!==void 0){i[x].notifications.push({text:p.text,taskId:p.taskId});break}i.push({kind:"agent-notification",seq:p.seq,text:p.text,taskId:p.taskId,parentToolUseId:p.parentToolUseId});break}case"todo-checklist":{m===r&&p.todos.length>0&&i.push({kind:"todo-checklist",seq:p.seq,toolUseId:p.toolUseId,todos:p.todos});break}case"task-event":{m===n&&t.length>0&&i.push({kind:"plan-card",seq:p.seq,tasks:t});break}default:i.push(p)}}return i}var we;(function(e){e.assertEqual=i=>{};function t(i){}e.assertIs=t;function n(i){throw new Error}e.assertNever=n,e.arrayToEnum=i=>{const o={};for(const s of i)o[s]=s;return o},e.getValidEnumValues=i=>{const o=e.objectKeys(i).filter(l=>typeof i[i[l]]!="number"),s={};for(const l of o)s[l]=i[l];return e.objectValues(s)},e.objectValues=i=>e.objectKeys(i).map(function(o){return i[o]}),e.objectKeys=typeof Object.keys=="function"?i=>Object.keys(i):i=>{const o=[];for(const s in i)Object.prototype.hasOwnProperty.call(i,s)&&o.push(s);return o},e.find=(i,o)=>{for(const s of i)if(o(s))return s},e.isInteger=typeof Number.isInteger=="function"?i=>Number.isInteger(i):i=>typeof i=="number"&&Number.isFinite(i)&&Math.floor(i)===i;function r(i,o=" | "){return i.map(s=>typeof s=="string"?`'${s}'`:s).join(o)}e.joinValues=r,e.jsonStringifyReplacer=(i,o)=>typeof o=="bigint"?o.toString():o})(we||(we={}));var mp;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(mp||(mp={}));const Q=we.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Dn=e=>{switch(typeof e){case"undefined":return Q.undefined;case"string":return Q.string;case"number":return Number.isNaN(e)?Q.nan:Q.number;case"boolean":return Q.boolean;case"function":return Q.function;case"bigint":return Q.bigint;case"symbol":return Q.symbol;case"object":return Array.isArray(e)?Q.array:e===null?Q.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?Q.promise:typeof Map<"u"&&e instanceof Map?Q.map:typeof Set<"u"&&e instanceof Set?Q.set:typeof Date<"u"&&e instanceof Date?Q.date:Q.object;default:return Q.unknown}},L=we.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class En extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=t}format(t){const n=t||function(o){return o.message},r={_errors:[]},i=o=>{for(const s of o.issues)if(s.code==="invalid_union")s.unionErrors.map(i);else if(s.code==="invalid_return_type")i(s.returnTypeError);else if(s.code==="invalid_arguments")i(s.argumentsError);else if(s.path.length===0)r._errors.push(n(s));else{let l=r,a=0;for(;a<s.path.length;){const u=s.path[a];a===s.path.length-1?(l[u]=l[u]||{_errors:[]},l[u]._errors.push(n(s))):l[u]=l[u]||{_errors:[]},l=l[u],a++}}};return i(this),r}static assert(t){if(!(t instanceof En))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,we.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=n=>n.message){const n={},r=[];for(const i of this.issues)if(i.path.length>0){const o=i.path[0];n[o]=n[o]||[],n[o].push(t(i))}else r.push(t(i));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}}En.create=e=>new En(e);const Mu=(e,t)=>{let n;switch(e.code){case L.invalid_type:e.received===Q.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case L.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,we.jsonStringifyReplacer)}`;break;case L.unrecognized_keys:n=`Unrecognized key(s) in object: ${we.joinValues(e.keys,", ")}`;break;case L.invalid_union:n="Invalid input";break;case L.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${we.joinValues(e.options)}`;break;case L.invalid_enum_value:n=`Invalid enum value. Expected ${we.joinValues(e.options)}, received '${e.received}'`;break;case L.invalid_arguments:n="Invalid function arguments";break;case L.invalid_return_type:n="Invalid function return type";break;case L.invalid_date:n="Invalid date";break;case L.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:we.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case L.too_small:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="bigint"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:n="Invalid input";break;case L.too_big:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?n=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:n="Invalid input";break;case L.custom:n="Invalid input";break;case L.invalid_intersection_types:n="Intersection results could not be merged";break;case L.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case L.not_finite:n="Number must be finite";break;default:n=t.defaultError,we.assertNever(e)}return{message:n}};let Pb=Mu;function Rb(){return Pb}const zb=e=>{const{data:t,path:n,errorMaps:r,issueData:i}=e,o=[...n,...i.path||[]],s={...i,path:o};if(i.message!==void 0)return{...i,path:o,message:i.message};let l="";const a=r.filter(u=>!!u).slice().reverse();for(const u of a)l=u(s,{data:t,defaultError:l}).message;return{...i,path:o,message:l}};function H(e,t){const n=Rb(),r=zb({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===Mu?void 0:Mu].filter(i=>!!i)});e.common.issues.push(r)}class ut{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,n){const r=[];for(const i of n){if(i.status==="aborted")return re;i.status==="dirty"&&t.dirty(),r.push(i.value)}return{status:t.value,value:r}}static async mergeObjectAsync(t,n){const r=[];for(const i of n){const o=await i.key,s=await i.value;r.push({key:o,value:s})}return ut.mergeObjectSync(t,r)}static mergeObjectSync(t,n){const r={};for(const i of n){const{key:o,value:s}=i;if(o.status==="aborted"||s.status==="aborted")return re;o.status==="dirty"&&t.dirty(),s.status==="dirty"&&t.dirty(),o.value!=="__proto__"&&(typeof s.value<"u"||i.alwaysSet)&&(r[o.value]=s.value)}return{status:t.value,value:r}}}const re=Object.freeze({status:"aborted"}),Wi=e=>({status:"dirty",value:e}),Ot=e=>({status:"valid",value:e}),hp=e=>e.status==="aborted",gp=e=>e.status==="dirty",gi=e=>e.status==="valid",sl=e=>typeof Promise<"u"&&e instanceof Promise;var ee;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(ee||(ee={}));class on{constructor(t,n,r,i){this._cachedPath=[],this.parent=t,this.data=n,this._path=r,this._key=i}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const yp=(e,t)=>{if(gi(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const n=new En(e.common.issues);return this._error=n,this._error}}};function de(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:r,description:i}=e;if(t&&(n||r))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:i}:{errorMap:(s,l)=>{const{message:a}=e;return s.code==="invalid_enum_value"?{message:a??l.defaultError}:typeof l.data>"u"?{message:a??r??l.defaultError}:s.code!=="invalid_type"?{message:l.defaultError}:{message:a??n??l.defaultError}},description:i}}class ge{get description(){return this._def.description}_getType(t){return Dn(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:Dn(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new ut,ctx:{common:t.parent.common,data:t.data,parsedType:Dn(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(sl(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(t){const n=this._parse(t);return Promise.resolve(n)}parse(t,n){const r=this.safeParse(t,n);if(r.success)return r.data;throw r.error}safeParse(t,n){const r={common:{issues:[],async:(n==null?void 0:n.async)??!1,contextualErrorMap:n==null?void 0:n.errorMap},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Dn(t)},i=this._parseSync({data:t,path:r.path,parent:r});return yp(r,i)}"~validate"(t){var r,i;const n={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Dn(t)};if(!this["~standard"].async)try{const o=this._parseSync({data:t,path:[],parent:n});return gi(o)?{value:o.value}:{issues:n.common.issues}}catch(o){(i=(r=o==null?void 0:o.message)==null?void 0:r.toLowerCase())!=null&&i.includes("encountered")&&(this["~standard"].async=!0),n.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:n}).then(o=>gi(o)?{value:o.value}:{issues:n.common.issues})}async parseAsync(t,n){const r=await this.safeParseAsync(t,n);if(r.success)return r.data;throw r.error}async safeParseAsync(t,n){const r={common:{issues:[],contextualErrorMap:n==null?void 0:n.errorMap,async:!0},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Dn(t)},i=this._parse({data:t,path:r.path,parent:r}),o=await(sl(i)?i:Promise.resolve(i));return yp(r,o)}refine(t,n){const r=i=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(i):n;return this._refinement((i,o)=>{const s=t(i),l=()=>o.addIssue({code:L.custom,...r(i)});return typeof Promise<"u"&&s instanceof Promise?s.then(a=>a?!0:(l(),!1)):s?!0:(l(),!1)})}refinement(t,n){return this._refinement((r,i)=>t(r)?!0:(i.addIssue(typeof n=="function"?n(r,i):n),!1))}_refinement(t){return new nr({schema:this,typeName:ie.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:n=>this["~validate"](n)}}optional(){return bn.create(this,this._def)}nullable(){return Er.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return rn.create(this)}promise(){return fl.create(this,this._def)}or(t){return al.create([this,t],this._def)}and(t){return ul.create(this,t,this._def)}transform(t){return new nr({...de(this._def),schema:this,typeName:ie.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const n=typeof t=="function"?t:()=>t;return new pl({...de(this._def),innerType:this,defaultValue:n,typeName:ie.ZodDefault})}brand(){return new S1({typeName:ie.ZodBranded,type:this,...de(this._def)})}catch(t){const n=typeof t=="function"?t:()=>t;return new ml({...de(this._def),innerType:this,catchValue:n,typeName:ie.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return od.create(this,t)}readonly(){return hl.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const Mb=/^c[^\s-]{8,}$/i,Lb=/^[0-9a-z]+$/,Ob=/^[0-9A-HJKMNP-TV-Z]{26}$/i,Db=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,Fb=/^[a-z0-9_-]{21}$/i,$b=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,Ub=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,Bb=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,Vb="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let wa;const Hb=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,qb=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,Wb=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,Zb=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Gb=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,Qb=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,k1="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",Kb=new RegExp(`^${k1}$`);function w1(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`);const n=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${n}`}function Yb(e){return new RegExp(`^${w1(e)}$`)}function Xb(e){let t=`${k1}T${w1(e)}`;const n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}function Jb(e,t){return!!((t==="v4"||!t)&&Hb.test(e)||(t==="v6"||!t)&&Wb.test(e))}function eS(e,t){if(!$b.test(e))return!1;try{const[n]=e.split(".");if(!n)return!1;const r=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),i=JSON.parse(atob(r));return!(typeof i!="object"||i===null||"typ"in i&&(i==null?void 0:i.typ)!=="JWT"||!i.alg||t&&i.alg!==t)}catch{return!1}}function tS(e,t){return!!((t==="v4"||!t)&&qb.test(e)||(t==="v6"||!t)&&Zb.test(e))}class vn extends ge{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==Q.string){const o=this._getOrReturnCtx(t);return H(o,{code:L.invalid_type,expected:Q.string,received:o.parsedType}),re}const r=new ut;let i;for(const o of this._def.checks)if(o.kind==="min")t.data.length<o.value&&(i=this._getOrReturnCtx(t,i),H(i,{code:L.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),r.dirty());else if(o.kind==="max")t.data.length>o.value&&(i=this._getOrReturnCtx(t,i),H(i,{code:L.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),r.dirty());else if(o.kind==="length"){const s=t.data.length>o.value,l=t.data.length<o.value;(s||l)&&(i=this._getOrReturnCtx(t,i),s?H(i,{code:L.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}):l&&H(i,{code:L.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}),r.dirty())}else if(o.kind==="email")Bb.test(t.data)||(i=this._getOrReturnCtx(t,i),H(i,{validation:"email",code:L.invalid_string,message:o.message}),r.dirty());else if(o.kind==="emoji")wa||(wa=new RegExp(Vb,"u")),wa.test(t.data)||(i=this._getOrReturnCtx(t,i),H(i,{validation:"emoji",code:L.invalid_string,message:o.message}),r.dirty());else if(o.kind==="uuid")Db.test(t.data)||(i=this._getOrReturnCtx(t,i),H(i,{validation:"uuid",code:L.invalid_string,message:o.message}),r.dirty());else if(o.kind==="nanoid")Fb.test(t.data)||(i=this._getOrReturnCtx(t,i),H(i,{validation:"nanoid",code:L.invalid_string,message:o.message}),r.dirty());else if(o.kind==="cuid")Mb.test(t.data)||(i=this._getOrReturnCtx(t,i),H(i,{validation:"cuid",code:L.invalid_string,message:o.message}),r.dirty());else if(o.kind==="cuid2")Lb.test(t.data)||(i=this._getOrReturnCtx(t,i),H(i,{validation:"cuid2",code:L.invalid_string,message:o.message}),r.dirty());else if(o.kind==="ulid")Ob.test(t.data)||(i=this._getOrReturnCtx(t,i),H(i,{validation:"ulid",code:L.invalid_string,message:o.message}),r.dirty());else if(o.kind==="url")try{new URL(t.data)}catch{i=this._getOrReturnCtx(t,i),H(i,{validation:"url",code:L.invalid_string,message:o.message}),r.dirty()}else o.kind==="regex"?(o.regex.lastIndex=0,o.regex.test(t.data)||(i=this._getOrReturnCtx(t,i),H(i,{validation:"regex",code:L.invalid_string,message:o.message}),r.dirty())):o.kind==="trim"?t.data=t.data.trim():o.kind==="includes"?t.data.includes(o.value,o.position)||(i=this._getOrReturnCtx(t,i),H(i,{code:L.invalid_string,validation:{includes:o.value,position:o.position},message:o.message}),r.dirty()):o.kind==="toLowerCase"?t.data=t.data.toLowerCase():o.kind==="toUpperCase"?t.data=t.data.toUpperCase():o.kind==="startsWith"?t.data.startsWith(o.value)||(i=this._getOrReturnCtx(t,i),H(i,{code:L.invalid_string,validation:{startsWith:o.value},message:o.message}),r.dirty()):o.kind==="endsWith"?t.data.endsWith(o.value)||(i=this._getOrReturnCtx(t,i),H(i,{code:L.invalid_string,validation:{endsWith:o.value},message:o.message}),r.dirty()):o.kind==="datetime"?Xb(o).test(t.data)||(i=this._getOrReturnCtx(t,i),H(i,{code:L.invalid_string,validation:"datetime",message:o.message}),r.dirty()):o.kind==="date"?Kb.test(t.data)||(i=this._getOrReturnCtx(t,i),H(i,{code:L.invalid_string,validation:"date",message:o.message}),r.dirty()):o.kind==="time"?Yb(o).test(t.data)||(i=this._getOrReturnCtx(t,i),H(i,{code:L.invalid_string,validation:"time",message:o.message}),r.dirty()):o.kind==="duration"?Ub.test(t.data)||(i=this._getOrReturnCtx(t,i),H(i,{validation:"duration",code:L.invalid_string,message:o.message}),r.dirty()):o.kind==="ip"?Jb(t.data,o.version)||(i=this._getOrReturnCtx(t,i),H(i,{validation:"ip",code:L.invalid_string,message:o.message}),r.dirty()):o.kind==="jwt"?eS(t.data,o.alg)||(i=this._getOrReturnCtx(t,i),H(i,{validation:"jwt",code:L.invalid_string,message:o.message}),r.dirty()):o.kind==="cidr"?tS(t.data,o.version)||(i=this._getOrReturnCtx(t,i),H(i,{validation:"cidr",code:L.invalid_string,message:o.message}),r.dirty()):o.kind==="base64"?Gb.test(t.data)||(i=this._getOrReturnCtx(t,i),H(i,{validation:"base64",code:L.invalid_string,message:o.message}),r.dirty()):o.kind==="base64url"?Qb.test(t.data)||(i=this._getOrReturnCtx(t,i),H(i,{validation:"base64url",code:L.invalid_string,message:o.message}),r.dirty()):we.assertNever(o);return{status:r.value,value:t.data}}_regex(t,n,r){return this.refinement(i=>t.test(i),{validation:n,code:L.invalid_string,...ee.errToObj(r)})}_addCheck(t){return new vn({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...ee.errToObj(t)})}url(t){return this._addCheck({kind:"url",...ee.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...ee.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...ee.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...ee.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...ee.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...ee.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...ee.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...ee.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...ee.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...ee.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...ee.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...ee.errToObj(t)})}datetime(t){return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,offset:(t==null?void 0:t.offset)??!1,local:(t==null?void 0:t.local)??!1,...ee.errToObj(t==null?void 0:t.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,...ee.errToObj(t==null?void 0:t.message)})}duration(t){return this._addCheck({kind:"duration",...ee.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...ee.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n==null?void 0:n.position,...ee.errToObj(n==null?void 0:n.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...ee.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...ee.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...ee.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...ee.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...ee.errToObj(n)})}nonempty(t){return this.min(1,ee.errToObj(t))}trim(){return new vn({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new vn({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new vn({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isCIDR(){return!!this._def.checks.find(t=>t.kind==="cidr")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get isBase64url(){return!!this._def.checks.find(t=>t.kind==="base64url")}get minLength(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxLength(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}vn.create=e=>new vn({checks:[],typeName:ie.ZodString,coerce:(e==null?void 0:e.coerce)??!1,...de(e)});function nS(e,t){const n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,i=n>r?n:r,o=Number.parseInt(e.toFixed(i).replace(".","")),s=Number.parseInt(t.toFixed(i).replace(".",""));return o%s/10**i}class yi extends ge{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==Q.number){const o=this._getOrReturnCtx(t);return H(o,{code:L.invalid_type,expected:Q.number,received:o.parsedType}),re}let r;const i=new ut;for(const o of this._def.checks)o.kind==="int"?we.isInteger(t.data)||(r=this._getOrReturnCtx(t,r),H(r,{code:L.invalid_type,expected:"integer",received:"float",message:o.message}),i.dirty()):o.kind==="min"?(o.inclusive?t.data<o.value:t.data<=o.value)&&(r=this._getOrReturnCtx(t,r),H(r,{code:L.too_small,minimum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),i.dirty()):o.kind==="max"?(o.inclusive?t.data>o.value:t.data>=o.value)&&(r=this._getOrReturnCtx(t,r),H(r,{code:L.too_big,maximum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),i.dirty()):o.kind==="multipleOf"?nS(t.data,o.value)!==0&&(r=this._getOrReturnCtx(t,r),H(r,{code:L.not_multiple_of,multipleOf:o.value,message:o.message}),i.dirty()):o.kind==="finite"?Number.isFinite(t.data)||(r=this._getOrReturnCtx(t,r),H(r,{code:L.not_finite,message:o.message}),i.dirty()):we.assertNever(o);return{status:i.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,ee.toString(n))}gt(t,n){return this.setLimit("min",t,!1,ee.toString(n))}lte(t,n){return this.setLimit("max",t,!0,ee.toString(n))}lt(t,n){return this.setLimit("max",t,!1,ee.toString(n))}setLimit(t,n,r,i){return new yi({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:ee.toString(i)}]})}_addCheck(t){return new yi({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:ee.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:ee.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:ee.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:ee.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:ee.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:ee.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:ee.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:ee.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:ee.toString(t)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&we.isInteger(t.value))}get isFinite(){let t=null,n=null;for(const r of this._def.checks){if(r.kind==="finite"||r.kind==="int"||r.kind==="multipleOf")return!0;r.kind==="min"?(n===null||r.value>n)&&(n=r.value):r.kind==="max"&&(t===null||r.value<t)&&(t=r.value)}return Number.isFinite(n)&&Number.isFinite(t)}}yi.create=e=>new yi({checks:[],typeName:ie.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...de(e)});class So extends ge{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==Q.bigint)return this._getInvalidInput(t);let r;const i=new ut;for(const o of this._def.checks)o.kind==="min"?(o.inclusive?t.data<o.value:t.data<=o.value)&&(r=this._getOrReturnCtx(t,r),H(r,{code:L.too_small,type:"bigint",minimum:o.value,inclusive:o.inclusive,message:o.message}),i.dirty()):o.kind==="max"?(o.inclusive?t.data>o.value:t.data>=o.value)&&(r=this._getOrReturnCtx(t,r),H(r,{code:L.too_big,type:"bigint",maximum:o.value,inclusive:o.inclusive,message:o.message}),i.dirty()):o.kind==="multipleOf"?t.data%o.value!==BigInt(0)&&(r=this._getOrReturnCtx(t,r),H(r,{code:L.not_multiple_of,multipleOf:o.value,message:o.message}),i.dirty()):we.assertNever(o);return{status:i.value,value:t.data}}_getInvalidInput(t){const n=this._getOrReturnCtx(t);return H(n,{code:L.invalid_type,expected:Q.bigint,received:n.parsedType}),re}gte(t,n){return this.setLimit("min",t,!0,ee.toString(n))}gt(t,n){return this.setLimit("min",t,!1,ee.toString(n))}lte(t,n){return this.setLimit("max",t,!0,ee.toString(n))}lt(t,n){return this.setLimit("max",t,!1,ee.toString(n))}setLimit(t,n,r,i){return new So({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:ee.toString(i)}]})}_addCheck(t){return new So({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:ee.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:ee.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:ee.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:ee.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:ee.toString(n)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}So.create=e=>new So({checks:[],typeName:ie.ZodBigInt,coerce:(e==null?void 0:e.coerce)??!1,...de(e)});class Lu extends ge{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==Q.boolean){const r=this._getOrReturnCtx(t);return H(r,{code:L.invalid_type,expected:Q.boolean,received:r.parsedType}),re}return Ot(t.data)}}Lu.create=e=>new Lu({typeName:ie.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...de(e)});class ll extends ge{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==Q.date){const o=this._getOrReturnCtx(t);return H(o,{code:L.invalid_type,expected:Q.date,received:o.parsedType}),re}if(Number.isNaN(t.data.getTime())){const o=this._getOrReturnCtx(t);return H(o,{code:L.invalid_date}),re}const r=new ut;let i;for(const o of this._def.checks)o.kind==="min"?t.data.getTime()<o.value&&(i=this._getOrReturnCtx(t,i),H(i,{code:L.too_small,message:o.message,inclusive:!0,exact:!1,minimum:o.value,type:"date"}),r.dirty()):o.kind==="max"?t.data.getTime()>o.value&&(i=this._getOrReturnCtx(t,i),H(i,{code:L.too_big,message:o.message,inclusive:!0,exact:!1,maximum:o.value,type:"date"}),r.dirty()):we.assertNever(o);return{status:r.value,value:new Date(t.data.getTime())}}_addCheck(t){return new ll({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:ee.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:ee.toString(n)})}get minDate(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t!=null?new Date(t):null}}ll.create=e=>new ll({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:ie.ZodDate,...de(e)});class xp extends ge{_parse(t){if(this._getType(t)!==Q.symbol){const r=this._getOrReturnCtx(t);return H(r,{code:L.invalid_type,expected:Q.symbol,received:r.parsedType}),re}return Ot(t.data)}}xp.create=e=>new xp({typeName:ie.ZodSymbol,...de(e)});class Ou extends ge{_parse(t){if(this._getType(t)!==Q.undefined){const r=this._getOrReturnCtx(t);return H(r,{code:L.invalid_type,expected:Q.undefined,received:r.parsedType}),re}return Ot(t.data)}}Ou.create=e=>new Ou({typeName:ie.ZodUndefined,...de(e)});class Du extends ge{_parse(t){if(this._getType(t)!==Q.null){const r=this._getOrReturnCtx(t);return H(r,{code:L.invalid_type,expected:Q.null,received:r.parsedType}),re}return Ot(t.data)}}Du.create=e=>new Du({typeName:ie.ZodNull,...de(e)});class vp extends ge{constructor(){super(...arguments),this._any=!0}_parse(t){return Ot(t.data)}}vp.create=e=>new vp({typeName:ie.ZodAny,...de(e)});class Fu extends ge{constructor(){super(...arguments),this._unknown=!0}_parse(t){return Ot(t.data)}}Fu.create=e=>new Fu({typeName:ie.ZodUnknown,...de(e)});class tr extends ge{_parse(t){const n=this._getOrReturnCtx(t);return H(n,{code:L.invalid_type,expected:Q.never,received:n.parsedType}),re}}tr.create=e=>new tr({typeName:ie.ZodNever,...de(e)});class kp extends ge{_parse(t){if(this._getType(t)!==Q.undefined){const r=this._getOrReturnCtx(t);return H(r,{code:L.invalid_type,expected:Q.void,received:r.parsedType}),re}return Ot(t.data)}}kp.create=e=>new kp({typeName:ie.ZodVoid,...de(e)});class rn extends ge{_parse(t){const{ctx:n,status:r}=this._processInputParams(t),i=this._def;if(n.parsedType!==Q.array)return H(n,{code:L.invalid_type,expected:Q.array,received:n.parsedType}),re;if(i.exactLength!==null){const s=n.data.length>i.exactLength.value,l=n.data.length<i.exactLength.value;(s||l)&&(H(n,{code:s?L.too_big:L.too_small,minimum:l?i.exactLength.value:void 0,maximum:s?i.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:i.exactLength.message}),r.dirty())}if(i.minLength!==null&&n.data.length<i.minLength.value&&(H(n,{code:L.too_small,minimum:i.minLength.value,type:"array",inclusive:!0,exact:!1,message:i.minLength.message}),r.dirty()),i.maxLength!==null&&n.data.length>i.maxLength.value&&(H(n,{code:L.too_big,maximum:i.maxLength.value,type:"array",inclusive:!0,exact:!1,message:i.maxLength.message}),r.dirty()),n.common.async)return Promise.all([...n.data].map((s,l)=>i.type._parseAsync(new on(n,s,n.path,l)))).then(s=>ut.mergeArray(r,s));const o=[...n.data].map((s,l)=>i.type._parseSync(new on(n,s,n.path,l)));return ut.mergeArray(r,o)}get element(){return this._def.type}min(t,n){return new rn({...this._def,minLength:{value:t,message:ee.toString(n)}})}max(t,n){return new rn({...this._def,maxLength:{value:t,message:ee.toString(n)}})}length(t,n){return new rn({...this._def,exactLength:{value:t,message:ee.toString(n)}})}nonempty(t){return this.min(1,t)}}rn.create=(e,t)=>new rn({type:e,minLength:null,maxLength:null,exactLength:null,typeName:ie.ZodArray,...de(t)});function $r(e){if(e instanceof $e){const t={};for(const n in e.shape){const r=e.shape[n];t[n]=bn.create($r(r))}return new $e({...e._def,shape:()=>t})}else return e instanceof rn?new rn({...e._def,type:$r(e.element)}):e instanceof bn?bn.create($r(e.unwrap())):e instanceof Er?Er.create($r(e.unwrap())):e instanceof Ir?Ir.create(e.items.map(t=>$r(t))):e}class $e extends ge{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),n=we.objectKeys(t);return this._cached={shape:t,keys:n},this._cached}_parse(t){if(this._getType(t)!==Q.object){const u=this._getOrReturnCtx(t);return H(u,{code:L.invalid_type,expected:Q.object,received:u.parsedType}),re}const{status:r,ctx:i}=this._processInputParams(t),{shape:o,keys:s}=this._getCached(),l=[];if(!(this._def.catchall instanceof tr&&this._def.unknownKeys==="strip"))for(const u in i.data)s.includes(u)||l.push(u);const a=[];for(const u of s){const f=o[u],d=i.data[u];a.push({key:{status:"valid",value:u},value:f._parse(new on(i,d,i.path,u)),alwaysSet:u in i.data})}if(this._def.catchall instanceof tr){const u=this._def.unknownKeys;if(u==="passthrough")for(const f of l)a.push({key:{status:"valid",value:f},value:{status:"valid",value:i.data[f]}});else if(u==="strict")l.length>0&&(H(i,{code:L.unrecognized_keys,keys:l}),r.dirty());else if(u!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const u=this._def.catchall;for(const f of l){const d=i.data[f];a.push({key:{status:"valid",value:f},value:u._parse(new on(i,d,i.path,f)),alwaysSet:f in i.data})}}return i.common.async?Promise.resolve().then(async()=>{const u=[];for(const f of a){const d=await f.key,m=await f.value;u.push({key:d,value:m,alwaysSet:f.alwaysSet})}return u}).then(u=>ut.mergeObjectSync(r,u)):ut.mergeObjectSync(r,a)}get shape(){return this._def.shape()}strict(t){return ee.errToObj,new $e({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,r)=>{var o,s;const i=((s=(o=this._def).errorMap)==null?void 0:s.call(o,n,r).message)??r.defaultError;return n.code==="unrecognized_keys"?{message:ee.errToObj(t).message??i}:{message:i}}}:{}})}strip(){return new $e({...this._def,unknownKeys:"strip"})}passthrough(){return new $e({...this._def,unknownKeys:"passthrough"})}extend(t){return new $e({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new $e({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:ie.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new $e({...this._def,catchall:t})}pick(t){const n={};for(const r of we.objectKeys(t))t[r]&&this.shape[r]&&(n[r]=this.shape[r]);return new $e({...this._def,shape:()=>n})}omit(t){const n={};for(const r of we.objectKeys(this.shape))t[r]||(n[r]=this.shape[r]);return new $e({...this._def,shape:()=>n})}deepPartial(){return $r(this)}partial(t){const n={};for(const r of we.objectKeys(this.shape)){const i=this.shape[r];t&&!t[r]?n[r]=i:n[r]=i.optional()}return new $e({...this._def,shape:()=>n})}required(t){const n={};for(const r of we.objectKeys(this.shape))if(t&&!t[r])n[r]=this.shape[r];else{let o=this.shape[r];for(;o instanceof bn;)o=o._def.innerType;n[r]=o}return new $e({...this._def,shape:()=>n})}keyof(){return b1(we.objectKeys(this.shape))}}$e.create=(e,t)=>new $e({shape:()=>e,unknownKeys:"strip",catchall:tr.create(),typeName:ie.ZodObject,...de(t)});$e.strictCreate=(e,t)=>new $e({shape:()=>e,unknownKeys:"strict",catchall:tr.create(),typeName:ie.ZodObject,...de(t)});$e.lazycreate=(e,t)=>new $e({shape:e,unknownKeys:"strip",catchall:tr.create(),typeName:ie.ZodObject,...de(t)});class al extends ge{_parse(t){const{ctx:n}=this._processInputParams(t),r=this._def.options;function i(o){for(const l of o)if(l.result.status==="valid")return l.result;for(const l of o)if(l.result.status==="dirty")return n.common.issues.push(...l.ctx.common.issues),l.result;const s=o.map(l=>new En(l.ctx.common.issues));return H(n,{code:L.invalid_union,unionErrors:s}),re}if(n.common.async)return Promise.all(r.map(async o=>{const s={...n,common:{...n.common,issues:[]},parent:null};return{result:await o._parseAsync({data:n.data,path:n.path,parent:s}),ctx:s}})).then(i);{let o;const s=[];for(const a of r){const u={...n,common:{...n.common,issues:[]},parent:null},f=a._parseSync({data:n.data,path:n.path,parent:u});if(f.status==="valid")return f;f.status==="dirty"&&!o&&(o={result:f,ctx:u}),u.common.issues.length&&s.push(u.common.issues)}if(o)return n.common.issues.push(...o.ctx.common.issues),o.result;const l=s.map(a=>new En(a));return H(n,{code:L.invalid_union,unionErrors:l}),re}}get options(){return this._def.options}}al.create=(e,t)=>new al({options:e,typeName:ie.ZodUnion,...de(t)});const mn=e=>e instanceof Uu?mn(e.schema):e instanceof nr?mn(e.innerType()):e instanceof dl?[e.value]:e instanceof Nr?e.options:e instanceof Bu?we.objectValues(e.enum):e instanceof pl?mn(e._def.innerType):e instanceof Ou?[void 0]:e instanceof Du?[null]:e instanceof bn?[void 0,...mn(e.unwrap())]:e instanceof Er?[null,...mn(e.unwrap())]:e instanceof S1||e instanceof hl?mn(e.unwrap()):e instanceof ml?mn(e._def.innerType):[];class id extends ge{_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==Q.object)return H(n,{code:L.invalid_type,expected:Q.object,received:n.parsedType}),re;const r=this.discriminator,i=n.data[r],o=this.optionsMap.get(i);return o?n.common.async?o._parseAsync({data:n.data,path:n.path,parent:n}):o._parseSync({data:n.data,path:n.path,parent:n}):(H(n,{code:L.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),re)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,n,r){const i=new Map;for(const o of n){const s=mn(o.shape[t]);if(!s.length)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(const l of s){if(i.has(l))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(l)}`);i.set(l,o)}}return new id({typeName:ie.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:i,...de(r)})}}function $u(e,t){const n=Dn(e),r=Dn(t);if(e===t)return{valid:!0,data:e};if(n===Q.object&&r===Q.object){const i=we.objectKeys(t),o=we.objectKeys(e).filter(l=>i.indexOf(l)!==-1),s={...e,...t};for(const l of o){const a=$u(e[l],t[l]);if(!a.valid)return{valid:!1};s[l]=a.data}return{valid:!0,data:s}}else if(n===Q.array&&r===Q.array){if(e.length!==t.length)return{valid:!1};const i=[];for(let o=0;o<e.length;o++){const s=e[o],l=t[o],a=$u(s,l);if(!a.valid)return{valid:!1};i.push(a.data)}return{valid:!0,data:i}}else return n===Q.date&&r===Q.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class ul extends ge{_parse(t){const{status:n,ctx:r}=this._processInputParams(t),i=(o,s)=>{if(hp(o)||hp(s))return re;const l=$u(o.value,s.value);return l.valid?((gp(o)||gp(s))&&n.dirty(),{status:n.value,value:l.data}):(H(r,{code:L.invalid_intersection_types}),re)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([o,s])=>i(o,s)):i(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}ul.create=(e,t,n)=>new ul({left:e,right:t,typeName:ie.ZodIntersection,...de(n)});class Ir extends ge{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Q.array)return H(r,{code:L.invalid_type,expected:Q.array,received:r.parsedType}),re;if(r.data.length<this._def.items.length)return H(r,{code:L.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),re;!this._def.rest&&r.data.length>this._def.items.length&&(H(r,{code:L.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const o=[...r.data].map((s,l)=>{const a=this._def.items[l]||this._def.rest;return a?a._parse(new on(r,s,r.path,l)):null}).filter(s=>!!s);return r.common.async?Promise.all(o).then(s=>ut.mergeArray(n,s)):ut.mergeArray(n,o)}get items(){return this._def.items}rest(t){return new Ir({...this._def,rest:t})}}Ir.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Ir({items:e,typeName:ie.ZodTuple,rest:null,...de(t)})};class cl extends ge{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Q.object)return H(r,{code:L.invalid_type,expected:Q.object,received:r.parsedType}),re;const i=[],o=this._def.keyType,s=this._def.valueType;for(const l in r.data)i.push({key:o._parse(new on(r,l,r.path,l)),value:s._parse(new on(r,r.data[l],r.path,l)),alwaysSet:l in r.data});return r.common.async?ut.mergeObjectAsync(n,i):ut.mergeObjectSync(n,i)}get element(){return this._def.valueType}static create(t,n,r){return n instanceof ge?new cl({keyType:t,valueType:n,typeName:ie.ZodRecord,...de(r)}):new cl({keyType:vn.create(),valueType:t,typeName:ie.ZodRecord,...de(n)})}}class wp extends ge{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Q.map)return H(r,{code:L.invalid_type,expected:Q.map,received:r.parsedType}),re;const i=this._def.keyType,o=this._def.valueType,s=[...r.data.entries()].map(([l,a],u)=>({key:i._parse(new on(r,l,r.path,[u,"key"])),value:o._parse(new on(r,a,r.path,[u,"value"]))}));if(r.common.async){const l=new Map;return Promise.resolve().then(async()=>{for(const a of s){const u=await a.key,f=await a.value;if(u.status==="aborted"||f.status==="aborted")return re;(u.status==="dirty"||f.status==="dirty")&&n.dirty(),l.set(u.value,f.value)}return{status:n.value,value:l}})}else{const l=new Map;for(const a of s){const u=a.key,f=a.value;if(u.status==="aborted"||f.status==="aborted")return re;(u.status==="dirty"||f.status==="dirty")&&n.dirty(),l.set(u.value,f.value)}return{status:n.value,value:l}}}}wp.create=(e,t,n)=>new wp({valueType:t,keyType:e,typeName:ie.ZodMap,...de(n)});class _o extends ge{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Q.set)return H(r,{code:L.invalid_type,expected:Q.set,received:r.parsedType}),re;const i=this._def;i.minSize!==null&&r.data.size<i.minSize.value&&(H(r,{code:L.too_small,minimum:i.minSize.value,type:"set",inclusive:!0,exact:!1,message:i.minSize.message}),n.dirty()),i.maxSize!==null&&r.data.size>i.maxSize.value&&(H(r,{code:L.too_big,maximum:i.maxSize.value,type:"set",inclusive:!0,exact:!1,message:i.maxSize.message}),n.dirty());const o=this._def.valueType;function s(a){const u=new Set;for(const f of a){if(f.status==="aborted")return re;f.status==="dirty"&&n.dirty(),u.add(f.value)}return{status:n.value,value:u}}const l=[...r.data.values()].map((a,u)=>o._parse(new on(r,a,r.path,u)));return r.common.async?Promise.all(l).then(a=>s(a)):s(l)}min(t,n){return new _o({...this._def,minSize:{value:t,message:ee.toString(n)}})}max(t,n){return new _o({...this._def,maxSize:{value:t,message:ee.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}}_o.create=(e,t)=>new _o({valueType:e,minSize:null,maxSize:null,typeName:ie.ZodSet,...de(t)});class Uu extends ge{get schema(){return this._def.getter()}_parse(t){const{ctx:n}=this._processInputParams(t);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}Uu.create=(e,t)=>new Uu({getter:e,typeName:ie.ZodLazy,...de(t)});class dl extends ge{_parse(t){if(t.data!==this._def.value){const n=this._getOrReturnCtx(t);return H(n,{received:n.data,code:L.invalid_literal,expected:this._def.value}),re}return{status:"valid",value:t.data}}get value(){return this._def.value}}dl.create=(e,t)=>new dl({value:e,typeName:ie.ZodLiteral,...de(t)});function b1(e,t){return new Nr({values:e,typeName:ie.ZodEnum,...de(t)})}class Nr extends ge{_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),r=this._def.values;return H(n,{expected:we.joinValues(r),received:n.parsedType,code:L.invalid_type}),re}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){const n=this._getOrReturnCtx(t),r=this._def.values;return H(n,{received:n.data,code:L.invalid_enum_value,options:r}),re}return Ot(t.data)}get options(){return this._def.values}get enum(){const t={};for(const n of this._def.values)t[n]=n;return t}get Values(){const t={};for(const n of this._def.values)t[n]=n;return t}get Enum(){const t={};for(const n of this._def.values)t[n]=n;return t}extract(t,n=this._def){return Nr.create(t,{...this._def,...n})}exclude(t,n=this._def){return Nr.create(this.options.filter(r=>!t.includes(r)),{...this._def,...n})}}Nr.create=b1;class Bu extends ge{_parse(t){const n=we.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==Q.string&&r.parsedType!==Q.number){const i=we.objectValues(n);return H(r,{expected:we.joinValues(i),received:r.parsedType,code:L.invalid_type}),re}if(this._cache||(this._cache=new Set(we.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){const i=we.objectValues(n);return H(r,{received:r.data,code:L.invalid_enum_value,options:i}),re}return Ot(t.data)}get enum(){return this._def.values}}Bu.create=(e,t)=>new Bu({values:e,typeName:ie.ZodNativeEnum,...de(t)});class fl extends ge{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==Q.promise&&n.common.async===!1)return H(n,{code:L.invalid_type,expected:Q.promise,received:n.parsedType}),re;const r=n.parsedType===Q.promise?n.data:Promise.resolve(n.data);return Ot(r.then(i=>this._def.type.parseAsync(i,{path:n.path,errorMap:n.common.contextualErrorMap})))}}fl.create=(e,t)=>new fl({type:e,typeName:ie.ZodPromise,...de(t)});class nr extends ge{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===ie.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:n,ctx:r}=this._processInputParams(t),i=this._def.effect||null,o={addIssue:s=>{H(r,s),s.fatal?n.abort():n.dirty()},get path(){return r.path}};if(o.addIssue=o.addIssue.bind(o),i.type==="preprocess"){const s=i.transform(r.data,o);if(r.common.async)return Promise.resolve(s).then(async l=>{if(n.value==="aborted")return re;const a=await this._def.schema._parseAsync({data:l,path:r.path,parent:r});return a.status==="aborted"?re:a.status==="dirty"||n.value==="dirty"?Wi(a.value):a});{if(n.value==="aborted")return re;const l=this._def.schema._parseSync({data:s,path:r.path,parent:r});return l.status==="aborted"?re:l.status==="dirty"||n.value==="dirty"?Wi(l.value):l}}if(i.type==="refinement"){const s=l=>{const a=i.refinement(l,o);if(r.common.async)return Promise.resolve(a);if(a instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return l};if(r.common.async===!1){const l=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return l.status==="aborted"?re:(l.status==="dirty"&&n.dirty(),s(l.value),{status:n.value,value:l.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(l=>l.status==="aborted"?re:(l.status==="dirty"&&n.dirty(),s(l.value).then(()=>({status:n.value,value:l.value}))))}if(i.type==="transform")if(r.common.async===!1){const s=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!gi(s))return re;const l=i.transform(s.value,o);if(l instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:l}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(s=>gi(s)?Promise.resolve(i.transform(s.value,o)).then(l=>({status:n.value,value:l})):re);we.assertNever(i)}}nr.create=(e,t,n)=>new nr({schema:e,typeName:ie.ZodEffects,effect:t,...de(n)});nr.createWithPreprocess=(e,t,n)=>new nr({schema:t,effect:{type:"preprocess",transform:e},typeName:ie.ZodEffects,...de(n)});class bn extends ge{_parse(t){return this._getType(t)===Q.undefined?Ot(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}bn.create=(e,t)=>new bn({innerType:e,typeName:ie.ZodOptional,...de(t)});class Er extends ge{_parse(t){return this._getType(t)===Q.null?Ot(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Er.create=(e,t)=>new Er({innerType:e,typeName:ie.ZodNullable,...de(t)});class pl extends ge{_parse(t){const{ctx:n}=this._processInputParams(t);let r=n.data;return n.parsedType===Q.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}pl.create=(e,t)=>new pl({innerType:e,typeName:ie.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...de(t)});class ml extends ge{_parse(t){const{ctx:n}=this._processInputParams(t),r={...n,common:{...n.common,issues:[]}},i=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return sl(i)?i.then(o=>({status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new En(r.common.issues)},input:r.data})})):{status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new En(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}ml.create=(e,t)=>new ml({innerType:e,typeName:ie.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...de(t)});class bp extends ge{_parse(t){if(this._getType(t)!==Q.nan){const r=this._getOrReturnCtx(t);return H(r,{code:L.invalid_type,expected:Q.nan,received:r.parsedType}),re}return{status:"valid",value:t.data}}}bp.create=e=>new bp({typeName:ie.ZodNaN,...de(e)});class S1 extends ge{_parse(t){const{ctx:n}=this._processInputParams(t),r=n.data;return this._def.type._parse({data:r,path:n.path,parent:n})}unwrap(){return this._def.type}}class od extends ge{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.common.async)return(async()=>{const o=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return o.status==="aborted"?re:o.status==="dirty"?(n.dirty(),Wi(o.value)):this._def.out._parseAsync({data:o.value,path:r.path,parent:r})})();{const i=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return i.status==="aborted"?re:i.status==="dirty"?(n.dirty(),{status:"dirty",value:i.value}):this._def.out._parseSync({data:i.value,path:r.path,parent:r})}}static create(t,n){return new od({in:t,out:n,typeName:ie.ZodPipeline})}}class hl extends ge{_parse(t){const n=this._def.innerType._parse(t),r=i=>(gi(i)&&(i.value=Object.freeze(i.value)),i);return sl(n)?n.then(i=>r(i)):r(n)}unwrap(){return this._def.innerType}}hl.create=(e,t)=>new hl({innerType:e,typeName:ie.ZodReadonly,...de(t)});var ie;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(ie||(ie={}));const c=vn.create,T=yi.create,q=Lu.create,Sn=Fu.create;tr.create;const M=rn.create,g=$e.create;al.create;const Et=id.create;ul.create;Ir.create;const Dt=cl.create,R=dl.create,J=Nr.create;fl.create;bn.create;Er.create;const rS=nr.createWithPreprocess;new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");g({id:c().min(1),name:c().min(1),baseUrl:c().min(1),apiKey:c().min(1),remark:c().optional(),createdAt:T(),updatedAt:T()}).strict();const iS=g({id:c().min(1),name:c().min(1),baseUrl:c().min(1),remark:c().optional(),keyMasked:c(),hasKey:q(),createdAt:T(),updatedAt:T()}).strict();g({activeChannelId:c().nullable(),channels:M(iS)}).strict();g({}).strict();g({id:c().min(1).optional(),name:c().min(1),baseUrl:c().min(1),apiKey:c().optional(),remark:c().optional()}).strict();g({id:c().min(1)}).strict();g({id:c().min(1).nullable()}).strict();g({channelId:c().min(1).optional(),updatedAt:T().optional()}).strict().refine(e=>e.updatedAt===void 0||e.channelId!==void 0,{message:"updatedAt requires channelId"});g({channelId:c().nullable(),models:M(g({id:c().min(1),ownedBy:c().optional()}).strict())}).strict();const oS=["owner"],sS=["agent","owner","user-upload"],_1=g({id:c().min(1),relPath:c().min(1),from:J(sS),label:c().optional(),size:T().int().nonnegative(),mime:c().min(1),addedAt:T().int().nonnegative(),lastEditedAt:T().int().nonnegative().optional(),stale:q().optional()});g({sessionId:c().min(1),relPath:c().min(1),ttlSeconds:T().int().positive().nullable().optional(),view:J(["raw","md-rendered"]).optional()});g({url:c().min(1),expiresAt:T().int().nonnegative().nullable()});g({sessionId:c().min(1),relPath:c().min(1),label:c().optional(),origin:R("agent").optional()});g({entry:_1});g({sessionId:c().min(1),relPath:c().min(1)});g({removed:R(!0)});g({sessionId:c().min(1)});g({entries:M(_1)});g({attachmentId:c().min(1),url:c().min(1),relPath:c().min(1),sizeBytes:T().int().nonnegative(),mimeType:c().min(1)});const lS=Et("type",[g({type:R("persona"),id:c().min(1)}).strict(),g({type:R("chat"),id:c().min(1)}).strict(),g({type:R("*")}).strict()]),aS=J(["read","send","admin"]),sd=g({resource:lS,actions:M(aS).min(1)}).strict(),uS=g({id:c().min(1),secretHash:c().regex(/^[a-f0-9]{64}$/),displayName:c(),grants:M(sd),issuedAt:T().int().nonnegative(),expiresAt:T().int().positive().optional(),maxUses:T().int().positive().optional(),usedCount:T().int().nonnegative(),peerOwnerId:c().min(1).optional(),firstUsedByPeerAt:T().int().positive().optional(),peerDisplayName:c().optional()}).strict(),cS=uS.omit({secretHash:!0});g({type:R("whoami:ok"),owner:g({id:c(),kind:J(["owner","guest"]),displayName:c(),ownerId:c(),provider:c()}).strict(),capability:cS,grantedPersonas:M(g({id:c().min(1),displayName:c()}).strict())}).strict();g({selfUrl:c().min(1)});g({type:R("contact:handshake:ok"),owner:g({id:c(),ownerId:c(),provider:c(),displayName:c()}),grants:M(sd)});const dS=Et("status",[g({status:R("authorized"),login:c().min(1),source:J(["git","file"])}).strict(),g({status:R("missing")}).strict(),g({status:R("invalid"),message:c().min(1)}).strict(),g({status:R("pending"),authUrl:c().url()}).strict()]);g({token:c().min(1)}).strict();g({returnTo:c().url().optional()}).strict();const fS=g({url:c().url(),bin:c(),sha256:c().regex(/^[0-9a-f]{64}$/),size:T().int().positive()}),pS=g({name:c().min(1),from:c().optional(),version:c().optional(),min:c().optional(),library:q().optional(),localVersion:c().optional(),artifact:fS.optional(),aptMissing:R(!0).optional(),aptVersion:c().optional()}),mS=g({name:c().min(1),env:M(c().min(1)).min(1)}),ld=c().regex(/^[a-z0-9-]+$/,"连接器名只能是小写字母、数字和短横线"),C1=["proxy","env"],I1=["mcp","cli"],hS=["bearer","lark-sidecar"],gS=["none","shared","personal"],N1=["oauth","fields"],ad=c().regex(/^[A-Z][A-Z0-9_]*$/,"要填的变量名只能是大写字母、数字和下划线,且以字母开头"),E1=g({name:ld,kind:J(C1),runner:J(I1),protocol:J(hS).optional(),id:c().min(1),credentialSource:J(gS).optional(),auth:J(N1).optional(),publisherUnionId:c().regex(/^on_[A-Za-z0-9_-]+$/).optional(),fields:M(ad).default([]),http:g({url:c().min(1),headers:Dt(c(),c())}).optional()}),yS=e=>{if(!e||typeof e!="object")return e;let t=e;if("clis"in t&&Array.isArray(t.clis)){const{clis:n,...r}=t;t="packages"in r?r:{...r,packages:n}}if("assets"in t&&Array.isArray(t.assets)&&t.assets.length===0){const{assets:n,...r}=t;t=r}return t},T1=g({version:R(1),entry:c().max(240).regex(/^[A-Za-z0-9_.-]+(?:\/[A-Za-z0-9_.-]+)*\.mjs$/).refine(e=>!e.split("/").some(t=>[".",".."].includes(t))),timeoutSeconds:T().int().min(1).max(600),checks:M(c().regex(/^[a-z0-9][a-z0-9-]{0,63}$/)).min(1).max(64).refine(e=>new Set(e).size===e.length)}).strict(),j1={test:T1.optional(),packages:M(pS),secrets:M(mS),connectors:M(E1).default([])};g(j1);const ud=rS(yS,g({version:R(1),...j1}).strict()),xS=g({target:c().min(1),reason:c().min(1),file:c().min(1),quote:c().min(1)}),vS=["integration","production"],vt=J(vS),Tn=c().regex(/^[a-z0-9.-]+(?::[0-9]+)?\/[a-z0-9._/-]+@sha256:[a-f0-9]{64}$/),Vu=c().regex(/^[a-f0-9]{40}$/),kS=c().refine(e=>{try{const t=new URL(e);return t.protocol==="https:"&&!t.username&&!t.password&&!t.search&&!t.hash&&t.pathname==="/"&&/(^|[.-])int([.-]|$)/.test(t.hostname)}catch{return!1}},"测试验证地址必须明确指向 int HTTPS 环境"),wS=g({version:R(1),runId:c().regex(/^[A-Za-z0-9_-]{1,128}$/),status:R("passed"),exitCode:R(0),result:g({version:R(1),runId:c().regex(/^[A-Za-z0-9_-]{1,128}$/),checks:M(g({name:c().regex(/^[a-z0-9][a-z0-9-]{0,63}$/),status:R("passed"),reason:c().max(1024).optional()}).strict()).min(1).max(64)}).strict(),execution:g({image:Tn,imageID:c().min(1).max(512),engine:J(["codex","pi"]),podUid:c().min(1).max(512),jobUid:c().min(1).max(512)}).strict()}).strict(),A1=g({status:R("passed"),fingerprint:c().regex(/^[a-f0-9]{64}$/),checks:M(c().regex(/^[a-z0-9-]+$/)),endpoint:kS,verifiedAt:c().refine(e=>Number.isFinite(Date.parse(e))),test:wS.optional()}).strict(),P1=g({version:R(1),environment:R("integration"),component:R("persona"),image:Tn,commit:Vu,baseImage:Tn,pipelineCommit:Vu,repository:c().regex(/^[A-Za-z0-9_.-]+\/[A-Za-z0-9_.-]+$/),verification:A1.refine(e=>e.checks.includes("persona-smoke")),test:T1.optional()}).strict().refine(e=>{if(!e.test)return e.verification.test===void 0;const t=e.verification.test;return["persona-dialogue","persona-task","persona-custom-test"].every(n=>e.verification.checks.includes(n))&&t!==void 0&&t.execution.image===e.image&&t.runId===t.result.runId&&t.result.checks.length===e.test.checks.length&&new Set(t.result.checks.map(n=>n.name)).size===e.test.checks.length&&t.result.checks.every(n=>e.test.checks.includes(n.name))},"Declared publisher acceptance requires complete candidate runtime evidence");g({version:R(1),environment:R("integration"),component:R("base"),image:Tn,commit:Vu,verification:A1.refine(e=>e.checks.includes("base-smoke"))}).strict();g({version:R(1),manifest:ud}).strict();const bS=["hard","soft"],R1=J(bS),SS=J(["scanning","done","failed"]),z1=g({id:c().min(1),manifest:ud,scanSessionId:c().optional(),status:SS,evidence:M(xS).default([]),notes:M(c()).default([]),head:c().min(1).optional(),baseKind:R1.default("hard"),base:c().min(1).optional(),startedAt:T(),finishedAt:T().optional(),error:c().optional()}).strict(),cd=g({id:c().min(1).optional(),environment:vt.optional(),legacy:q().optional(),head:c().min(1),contentHead:c().min(1),scanId:c().min(1),at:T(),pushed:q().optional(),runId:T().int().positive().optional(),runAttempt:T().int().positive().optional(),artifactId:T().int().positive().optional(),verified:P1.optional(),confirmation:g({fingerprint:c().regex(/^[a-f0-9]{64}$/),runId:T().int().positive(),runAttempt:T().int().positive(),at:T()}).strict().optional()}).strict(),_S=["prepared","main-pushed","dispatching","dispatched","completed","failed"],dd=g({id:c().min(1),releaseId:c().min(1),at:T(),verified:P1.optional(),phase:J(_S),expectedMain:c().optional(),runId:T().int().positive().optional(),runAttempt:T().int().positive().optional(),error:c().optional()}).strict(),Sp=g({channelId:c().min(1),updatedAt:T()}).strict(),fd=g({integration:Sp.nullable().optional(),production:Sp.nullable().optional()}).strict();g({version:R(4),engineChannels:fd.optional(),scans:M(z1),releases:M(cd),promotions:M(dd).default([])}).strict();const CS=g({url:c().min(1),branch:c().min(1),head:c().min(1),dirty:q(),ahead:T()}).strict(),Ts=g({env:c().min(1),setAt:T().optional()}).strict(),IS=["pending","running","done","failed","waiting","skipped"],NS=J(IS),ES="verify",TS=["build","smoke","deploy",ES],jS=J(TS),AS=g({key:jS,status:NS,url:c().optional(),jobId:T().optional(),startedAt:T().optional(),completedAt:T().optional()}).strict(),js=g({runId:T(),headSha:c().min(1),status:J(["queued","running","completed"]),htmlUrl:c().min(1),jobs:M(AS),environment:vt.optional(),branch:c().optional(),event:c().optional(),runAttempt:T().int().positive().optional(),conclusion:J(["success","failure"]).optional(),promotionId:c().optional()}).strict(),ba=g({runId:T(),status:js.shape.status,conclusion:J(["success","failure"]).optional(),htmlUrl:c().min(1)}).strict(),M1=g({personaId:c().min(1),engineChannels:fd.optional(),github:dS.optional(),publisherFeishuAuth:g({integration:g({connected:q(),authUrl:c().optional(),error:c().optional()}).strict(),production:g({connected:q(),authUrl:c().optional(),error:c().optional()}).strict()}).strict().optional(),repo:CS.optional(),scans:M(z1).default([]),releases:M(cd).default([]),promotions:M(dd).optional(),targets:g({integration:g({run:js.optional(),secrets:M(Ts).optional(),online:q().optional(),image:Tn.optional(),unpublish:ba.optional()}).strict().optional(),production:g({run:js.optional(),secrets:M(Ts).optional(),online:q().optional(),image:Tn.optional(),unpublish:ba.optional()}).strict().optional()}).strict().optional(),secrets:M(Ts).optional(),run:js.optional(),online:q().optional(),unpublish:ba.optional(),historyError:c().optional()}).strict();g({before:T().nullable()}).strict();M1.pick({personaId:!0,github:!0,repo:!0,scans:!0,releases:!0,promotions:!0,engineChannels:!0,historyError:!0});M1.pick({scans:!0});g({environment:vt,secrets:M(Ts).optional(),engineChannels:fd.optional()}).strict();g({sha:c().min(1),actionsUrl:c().min(1),releaseId:c().optional()}).strict();const Oo=g({personaId:c().min(1)}).strict();Oo.extend({releaseHead:c().min(1).optional(),releaseId:c().min(1).optional(),environment:vt.optional()}).strict();Oo.extend({scanBase:R1.optional()}).strict();Oo.extend({scanId:c().min(1)}).strict();Oo.extend({releaseId:c().min(1)}).strict();Oo.extend({environment:vt.default("production")}).strict();g({confirmation:cd.shape.confirmation.unwrap()}).strict();g({promotion:dd}).strict();g({personaId:c().min(1),expectedImage:Tn}).strict();g({personaId:c().min(1),scanId:c().min(1),patch:g({manifest:ud.optional(),connector:E1.optional()}).strict()}).strict();g({personaId:c().min(1),environment:vt.default("production"),scanId:c().min(1),name:c().min(1),values:Dt(c(),c())}).strict();g({personaId:c().min(1),environment:vt.default("production"),channelId:c().min(1).optional(),auth:g({baseUrl:c(),apiKey:c()}).strict().nullable().optional()}).strict().refine(e=>e.channelId!==void 0||e.auth!==void 0,{message:"Either channelId or auth must be provided"});g({personaId:c().min(1),environment:vt.default("production"),releaseId:c().optional(),jobId:T()}).strict();g({personaId:c().min(1),kind:J(["package","secret","connector"]),item:Dt(c(),Sn()),evidence:g({reason:c().min(1),file:c().min(1),quote:c().min(1)})}).strict();g({personaId:c().min(1),notes:M(c()).default([])}).strict();g({environment:vt.default("production")}).strict();const PS=g({deviceId:c().min(1),name:c().min(1),url:c().min(1)});g({type:R("device:list:ok"),devices:M(PS)});g({deviceId:c().min(1),url:c().min(1).optional(),name:c().optional()});g({type:R("device:connect:ok"),deviceId:c(),name:c(),url:c()});const L1=g({ownerId:c().min(1),provider:c().min(1),displayName:c().min(1),avatarUrl:c().optional(),unionId:c().optional()});g({type:R("auth:login:start:ok"),environment:vt.optional(),authUrl:c().min(1),state:c().min(1)});g({type:R("auth:getIdentity:ok"),identity:L1.nullable(),deviceId:c().min(1)});g({type:R("auth:logout:ok")});const O1=c().nullable();g({type:R("auth:apiKey:get:ok"),apiKey:c().nullable(),createdAt:c().nullable(),gatewayUrl:O1});g({type:R("auth:apiKey:regenerate:ok"),apiKey:c().min(1),createdAt:c().min(1),gatewayUrl:O1});g({type:R("auth:apiKey:revoke:ok"),revoked:q()});g({type:R("auth:login:done"),environment:vt.optional(),identity:L1});g({type:R("auth:login:failed"),environment:vt.optional(),reason:c()});g({deviceId:c().min(1),remoteAccessAllowed:q()}).strict();g({type:R("contact:setRemoteAccess:ok"),deviceId:c().min(1),remoteAccessAllowed:q()}).strict();g({type:R("contact:remote-access-updated"),deviceId:c().min(1),remoteAccessAllowed:q()}).strict();g({personaId:c().min(1)}).strict();const RS=["connected","missing","reauth"],zS=["link","fill"],MS=g({name:ld,id:c().min(1),kind:J(C1),runner:J(I1),auth:J(N1),status:J(RS),action:J(zS),authUrl:c().optional(),fields:M(ad)}).strict();g({connectors:M(MS)}).strict();g({personaId:c().min(1),name:ld,values:Dt(ad,c().min(1))}).strict();const LS=g({deviceId:c().min(1),ownerId:c().min(1),provider:c().min(1),displayName:c(),remoteUrl:c().min(1),connectToken:c(),grants:M(sd),addedAt:T().int().nonnegative(),pinnedAt:T().int().nullable().default(null),remoteAccessAllowed:q().default(!1),note:c().default("")}).strict(),D1=LS;g({deviceId:c().min(1)}).strict();g({type:R("contact:remove:ok"),deviceId:c().min(1)}).strict();g({type:R("contact:list:ok"),contacts:M(D1)}).strict();g({type:R("contact:added"),contact:D1}).strict();g({type:R("contact:removed"),deviceId:c().min(1)}).strict();g({deviceId:c().min(1),pinned:q()}).strict();g({deviceId:c().min(1),note:c()}).strict();g({type:R("contact:setNote:ok"),deviceId:c().min(1),note:c()}).strict();g({type:R("contact:pin:ok"),deviceId:c().min(1),pinnedAt:T().int().nullable()}).strict();g({type:R("contact:pinned"),deviceId:c().min(1),pinnedAt:T().int().nullable()}).strict();const pd=Et("kind",[g({kind:R("success"),text:c(),brief:c().optional(),filePaths:M(c()).optional()}),g({kind:R("failure"),reason:c(),brief:c().optional()})]);g({targetPersona:c().min(1).optional(),dispatchId:c().min(1).optional(),prompt:c(),brief:c().optional(),targetDeviceId:c().min(1).optional(),model:c().min(1).optional(),tool:c().min(1).optional(),sessionLabel:c().min(1).max(60).optional(),meta:Dt(Sn()).optional()}).refine(e=>e.targetPersona!==void 0||e.dispatchId!==void 0,{message:"either targetPersona (new dispatch) or dispatchId (follow-up) is required"}).refine(e=>!(e.dispatchId!==void 0&&e.targetDeviceId!==void 0),{message:"cross-device dispatch cannot be continued (dispatchId + targetDeviceId are mutually exclusive)"}).refine(e=>!(e.tool!==void 0&&e.targetDeviceId!==void 0),{message:"engine override is not supported for cross-device dispatch (tool + targetDeviceId are mutually exclusive)"}).refine(e=>!(e.dispatchId!==void 0&&(e.tool!==void 0||e.model!==void 0)),{message:"a follow-up dispatch cannot change engine or model (dispatchId excludes tool / model); start a new dispatch instead"});g({dispatchId:c().min(1),outcome:pd});const OS=["running","completed","failed"],md=J(OS),DS=g({dispatchId:c().min(1),sourceSessionId:c().min(1),sourcePersonaId:c().min(1).optional(),targetPersonaId:c().min(1),targetDeviceId:c().min(1).optional(),workerSessionId:c().min(1).optional(),taskText:c(),taskBrief:c().optional(),round:T().int().positive().optional(),status:md,outcome:pd.optional(),meta:Dt(Sn()).optional(),createdAt:c().min(1),completedAt:c().min(1).optional(),deliveredAt:c().min(1).optional()});g({sourceSessionId:c().min(1).optional(),relatedSessionId:c().min(1).optional()});g({records:M(DS)});g({dispatchId:c().min(1)});g({type:R("personaDispatch:get:ok"),status:md,outcome:pd.optional()});const FS=/^[a-z0-9][a-z0-9-]*$/;J(["stopped","starting","running","crashed","invalid"]);const $S=new Set(["localhost","127.0.0.1"]);function US(e){let t;try{t=new URL(e)}catch{return!1}return!!(t.protocol==="https:"||t.protocol==="http:"&&$S.has(t.hostname))}const us=g({id:c().regex(FS),name:c().min(1),version:c().min(1),apiVersion:R("1"),runtime:g({startCommand:c().min(1)}).passthrough().optional(),entry:g({url:c().url().refine(US,{message:"INVALID_URL_SCHEME: only https or http://localhost is allowed"})}).strict().optional()}).passthrough().superRefine((e,t)=>{var i;const n=!!e.runtime,r=!!((i=e.entry)!=null&&i.url);n&&r&&t.addIssue({code:L.custom,message:"INVALID_MANIFEST: entry.url and runtime cannot coexist"}),!n&&!r&&t.addIssue({code:L.custom,message:"INVALID_MANIFEST: must have either entry.url or runtime"})}),BS=Et("kind",[g({kind:R("local"),port:T().int().min(1).max(65535)}),g({kind:R("hosted"),url:c().url()})]);Et("state",[g({extId:c(),manifest:us,state:R("stopped")}),g({extId:c(),manifest:us,state:R("starting")}),g({extId:c(),manifest:us,state:R("running"),target:BS}),g({extId:c(),manifest:us,state:R("crashed")}),g({extId:c(),manifest:Sn().nullable(),state:R("invalid"),invalidReason:c().min(1)})]);g({snapshotHash:c().min(1),version:c().min(1),publishedAt:T()});const VS=Et("kind",[g({kind:R("p2p-tunnel"),ownerPrincipalId:c().min(1),extId:c().min(1)})]);Et("kind",[g({kind:R("p2p-tunnel"),ownerPrincipalId:c().min(1),extId:c().min(1),snapshotHash:c().min(1)})]);g({extId:c().min(1),name:c().min(1),version:c().min(1),contentHash:c().min(1),publishedAt:T()});const HS=Et("kind",[g({kind:R("clean")}),g({kind:R("ready-new-version"),fromVersion:c().min(1),toVersion:c().min(1)}),g({kind:R("error-same-hash"),version:c().min(1)}),g({kind:R("error-version-not-bumped"),localVersion:c().min(1),publishedVersion:c().min(1)}),g({kind:R("error-version-regression"),localVersion:c().min(1),publishedVersion:c().min(1)})]);g({localManifest:g({name:c().min(1),version:c().min(1),contentHash:c().min(1)}),publishState:Et("kind",[g({kind:R("unpublished")}),g({kind:R("published"),version:c().min(1),contentHash:c().min(1),publishedAt:T()})]),check:HS});g({extId:c().min(1),newVersion:c().min(1).nullish()});g({extId:c().min(1)});g({extId:c().min(1),snapshotHash:c().min(1)});g({channelRef:VS,snapshotHash:c().min(1),zipBase64:c().min(1)});g({id:c().min(1),peerDeviceId:c().min(1),senderDeviceId:c().min(1),text:c().min(1),createdAt:T().int().nonnegative(),readBy:Dt(c().min(1),T().int().positive()).default({}),origin:g({kind:R("persona"),personaId:c().min(1)}).optional()}).strict();g({peerDeviceId:c().min(1).optional(),id:c().min(1),text:c().min(1),createdAt:T().int().nonnegative(),origin:g({kind:R("persona"),personaId:c().min(1)}).optional()}).strict();g({peerDeviceId:c().min(1),sinceCreatedAt:T().int().nonnegative().optional()}).strict();g({peerDeviceId:c().min(1),upToCreatedAt:T().int().nonnegative()}).strict();g({peerDeviceId:c().min(1).optional(),text:c().min(1)});g({peerDeviceId:c().min(1).optional(),command:c().min(1),timeoutMs:T().int().positive().optional()}).strict();g({type:R("peerExec:run:ok"),stdout:c(),stderr:c(),exitCode:T().int().nullable(),timedOut:q(),stdoutTruncated:q(),stderrTruncated:q()}).strict();const F1=Et("kind",[g({kind:R("at"),at:c().min(1)}),g({kind:R("every"),everyMs:T().int().positive(),anchorMs:T().int().nonnegative().optional()}),g({kind:R("cron"),expr:c().min(1),tz:c().min(1).optional()})]),Do=c().trim().min(1);g({personaId:Do,name:c().min(1),schedule:F1,prompt:c().min(1),targetPersona:c().min(1).optional(),timeoutMs:T().int().positive().optional()});g({personaId:Do,onlyMine:q().optional()});g({personaId:Do,shiftId:c().min(1)});const qS=g({name:c().min(1).optional(),schedule:F1.optional(),prompt:c().min(1).optional(),targetPersona:c().min(1).optional(),timeoutMs:T().int().positive().optional(),enabled:q().optional()});g({personaId:Do,shiftId:c().min(1),patch:qS});g({personaId:Do,shiftId:c().min(1),limit:T().int().positive().optional()});const hd=g({personaId:c().min(1),deviceId:c().min(1).optional()}),$1=g({id:c().min(1),name:c().min(1),memberPersonas:M(hd),memberContactDeviceIds:M(c().min(1)),createdAt:c().min(1),updatedAt:c().min(1)}),U1=c().trim().min(1);g({name:U1,memberPersonas:M(hd).default([]),memberContactDeviceIds:M(c().min(1)).default([])});g({channelId:c().min(1),name:U1.optional(),memberPersonas:M(hd).optional(),memberContactDeviceIds:M(c().min(1)).optional()});g({channelId:c().min(1)});g({channels:M($1)});g({channel:$1});g({ok:R(!0),removedTopics:T().int().min(0)});const Be=c().trim().min(1),gd=["master-confirmed","owner-needed"],yd=["open","resolved"],WS=gd[0];gd[1];yd[0];const ZS=yd[1],GS=J(gd),QS=J(yd),KS=g({id:Be.optional(),resolves:Be.optional(),type:GS,status:QS,question:Be,recommendation:Be}).superRefine((e,t)=>{e.type===WS&&e.status!==ZS&&t.addIssue({code:L.custom,path:["status"],message:"master-confirmed decisions must be resolved"})}),YS=["planning","running","done"],XS=J(YS),B1=g({at:c().min(1),actor:c().min(1),action:c().min(1),target:c().optional(),reason:c().min(1),artifacts:M(Be).optional(),decision:KS.optional()}),JS=g({rejectCount:T().int().min(0),accepted:q().default(!1),ordinal:T().int().min(1).optional(),overrideCount:T().int().min(0).optional()}),xd=g({id:c().min(1),channelId:c().min(1),title:c(),masterSessionId:c().min(1),goal:c(),boundaries:c(),acceptanceCriteria:M(c()),activity:M(B1),lineMeta:Dt(JS),nextLineOrdinal:T().int().min(1).optional(),state:XS,createdAt:c().min(1),updatedAt:c().min(1)}),e2=g({lineId:c().min(1),dispatchId:c().min(1),workerSessionId:c().optional(),assignee:c().min(1),focus:c(),status:md,acceptance:M(c()),rejectCount:T().int().min(0),accepted:q(),ordinal:T().int().min(1).nullable()});g({channelId:c().min(1)});g({topicId:c().min(1).optional(),sessionId:c().min(1).optional()}).refine(e=>e.topicId!==void 0||e.sessionId!==void 0,{message:"either topicId or sessionId is required"});g({channelId:c().min(1),title:Be.optional()});g({topicId:c().min(1),title:Be.optional(),goal:Be,boundaries:c(),acceptanceCriteria:M(Be).min(1)});g({topicId:c().min(1),action:Be,target:Be.optional(),reason:Be,artifacts:M(Be).optional(),decision:B1.shape.decision});g({topicId:c().min(1),lineId:Be,reason:Be});g({topicId:c().min(1),lineId:Be,reason:Be,artifacts:M(Be).optional(),watcherVerdict:J(["pass","fail"]),overrideReason:Be.optional()}).refine(e=>e.watcherVerdict!=="fail"||!!e.overrideReason,{message:"watcherVerdict=fail 时必须给 overrideReason(推翻 watcher 的理由)",path:["overrideReason"]});g({topicId:c().min(1),state:J(["done"])});g({topicId:c().min(1),title:Be});g({topicId:c().min(1)});const t2=xd.extend({lineCount:T().int().min(0)});g({topics:M(t2)});g({topic:xd,lines:M(e2)});g({topicId:c().min(1),masterSessionId:c().min(1)});g({rejectCount:T().int().min(1),needsOwnerAttention:q()});g({acceptedLines:T().int().min(1),totalLines:T().int().min(1),allAccepted:q(),overrides:T().int().min(0),needsOwnerAttention:q()});g({topic:xd});g({ok:R(!0),removedMasterSessionId:c().min(1).nullable(),removedWorkerSessionIds:M(c().min(1))});const n2=["ask","allow","deny"],V1=J(n2),r2=g({id:c().min(1),desc:c().min(1),action:V1});g({rules:M(r2)});g({ruleId:c().min(1)});g({action:V1,desc:c(),source:c().min(1)});const i2=["created","review-requested"],H1=/^[A-Za-z0-9._-]+$/,Si=c().min(1).regex(H1),_i=c().min(1).regex(H1),Fo=T().int().positive();g({role:J(i2)});g({owner:Si,repo:_i,number:Fo});g({owner:Si,repo:_i,number:Fo,expectedHeadSha:c().min(1)});g({owner:Si,repo:_i,number:Fo,body:c().min(1)});g({owner:Si,repo:_i,number:Fo,ready:q()});g({owner:Si,repo:_i});g({owner:Si,repo:_i,number:Fo,reviewers:M(c().min(1)).min(1)});g({personaId:c().min(1)});g({personaId:c().min(1)});const o2=["expired","cancelled","access_denied","lark_protocol_error","cloud_unreachable","internal_error"],s2=J(o2);g({personaId:c().min(1),appId:c().min(1),appSecret:c().min(1),botName:c().min(1).optional()});const l2=g({chatId:c().min(1),chatName:c().optional(),lastActiveAt:T().int().optional()}),a2=g({state:J(["unbound","provisioning","bound","broken"]),appId:c().optional(),botName:c().optional(),brokenReason:c().optional(),qrUrl:c().optional(),provisionId:c().optional(),errorReason:s2.optional(),groups:M(l2),needsUpgrade:q().optional(),upgradeQrUrl:c().optional()});a2.extend({personaId:c().min(1)});g({});g({onboardingCompletedAt:T()});const $l=["claude","codex","pi"];g({});g({tools:M(g({id:J($l),available:q(),version:c().optional(),path:c().optional()}))});g({});const u2=g({tool:J($l),cwd:c(),toolSessionId:c(),label:c().optional(),createdAt:c(),updatedAt:c(),turns:T()});g({candidates:M(u2)});g({});g({registered:q()});g({tool:J($l)});const _p=g({usedPercent:T(),windowDurationMins:T().optional(),resetsAt:T().optional()}).strict(),c2=Et("kind",[g({kind:R("claude"),loggedIn:q(),authMethod:c().optional(),apiProvider:c().optional(),apiKeySource:c().optional(),email:c().optional(),orgName:c().optional(),subscriptionType:c().optional()}).strict(),g({kind:R("codex"),login:Et("type",[g({type:R("none")}).strict(),g({type:R("apiKey")}).strict(),g({type:R("chatgpt"),email:c(),planType:c()}).strict()]),provider:g({name:c(),baseUrl:c().optional()}).strict(),rateLimits:g({primary:_p.optional(),secondary:_p.optional()}).strict().optional()}).strict(),g({kind:R("pi"),providers:M(g({id:c(),modelCount:T(),credential:J(["api_key","oauth"]).optional(),oauthExpiresAt:T().optional()}).strict())}).strict()]);g({tool:J($l),installed:q(),version:c().optional(),path:c().optional(),account:c2.optional(),error:c().optional(),modelsLoadedAt:T().optional()}).strict();g({apiKey:c().min(1)}).strict();g({ok:R(!0)}).strict();const d2=["cloud-persona-metrics","cloud-persona-conversations"],f2=J(d2);g({page:f2}).strict();g({url:c(),expiresAt:T().int()}).strict();const Cp={standard:"default",fast:"priority"},q1=J([Cp.standard,Cp.fast]),p2=["tiny","small","medium","large","xlarge"],m2=J(p2),h2=[.5,1,2],g2=T().refine(e=>h2.includes(e),"Unsupported CPU"),W1=g({model:c().optional(),effort:c().optional()}).strict(),gl=g({personaId:c(),label:c(),model:c().optional(),effort:c().optional(),serviceTier:q1.optional(),public:q(),iconKey:c().optional(),tool:c().optional(),size:c().optional(),cpu:T().finite().optional(),taskConcurrency:T().int().positive().optional(),cloudEngine:W1.optional(),createdAt:T(),updatedAt:T(),cloud:g({gatewayUrl:c().min(1),personaId:c().min(1),publishedByMe:q().optional(),environment:vt.optional(),expectedImage:Tn.optional(),testReleaseId:c().optional()}).strict().optional()}).strict(),y2=g({name:c().min(1),description:c().optional()}),x2=g({id:c().min(1)}),Z1=g({writableRoots:M(c()).optional(),denyRead:M(c()).optional(),network:q().optional()}).strict(),v2=g({permissions:g({defaultMode:c().optional(),allow:M(c()).optional(),deny:M(c()).optional()}).optional(),sandbox:g({enabled:q().optional(),autoAllowBashIfSandboxed:q().optional(),allowUnsandboxedCommands:q().optional(),excludedCommands:M(c()).optional(),filesystem:g({denyRead:M(c()).optional(),allowRead:M(c()).optional(),denyWrite:M(c()).optional(),allowWrite:M(c()).optional()}).optional(),network:g({allowedDomains:M(c()).optional(),allowLocalBinding:q().optional()}).optional()}).optional()});gl.extend({personality:c().optional(),personalityLocal:c().optional(),personalityManaged:q().optional(),skills:M(y2).optional(),plugins:M(x2).optional(),sandboxSettings:v2.nullable().optional(),codexSandbox:Z1.nullable().optional()});g({slug:c().regex(/^[a-z0-9]+(-[a-z0-9]+)*$/).max(32),label:c().min(1),personality:c(),model:c().optional(),effort:c().optional(),serviceTier:gl.shape.serviceTier,tool:c().optional(),public:q().optional(),iconKey:c().optional()}).strict();g({personaId:c().min(1)});g({personaId:c().min(1),patch:g({label:c().min(1).optional(),model:c().optional(),effort:c().optional(),serviceTier:gl.shape.serviceTier,tool:c().optional(),size:m2.optional(),cpu:g2.optional(),taskConcurrency:gl.shape.taskConcurrency,cloudEngine:W1.optional(),personality:c().optional(),personalityLocal:c().optional(),public:q().optional(),iconKey:c().nullable().optional(),codexSandbox:Z1.optional()}).strict()}).strict();const k2=["idle","running","running-idle","stopped","error","observing"],w2=["task-notification","slash-command","local-command","system-reminder","skill-hint","meta-text","attachment-skills","attachment-deferred-tools","dispatch-task","dispatch-result"];function G1(e){return e==="dispatch-task"||e==="dispatch-result"}const b2=["builtin","global","project","plugin"],S2=["builtin","global","project","policy","plugin"],Q1=J(["owner","guest"]);g({id:c().min(1),kind:Q1,displayName:c(),feishuUnionId:c().optional()}).strict();const _2=g({did:c().min(1),displayName:c(),feishuUnionId:c().optional(),principal:Q1}).strict(),C2=J(k2),I2=g({inputTokens:T().int().nonnegative(),outputTokens:T().int().nonnegative(),cacheReadTokens:T().int().nonnegative().optional(),cacheCreateTokens:T().int().nonnegative().optional()}),K1={gitBranch:c().optional(),resolvedModel:c().optional(),resolvedEffort:c().optional(),contextUsage:I2.optional(),contextWindowSize:T().int().positive().optional(),aiLabel:c().optional()},N2=g(K1),Y1=g({value:c(),label:c(),description:c().optional()}),E2=g({id:c().min(1),label:c().min(1),description:c().optional(),contextWindowSize:T().int().positive(),default:q().optional(),efforts:M(Y1).optional(),defaultEffort:c().optional(),group:c().optional()}),T2=g({id:c().min(1),label:c().min(1),description:c().optional()}),j2=g({name:c().min(1),type:J(["string","select","toggle"]),label:c().min(1),description:c().optional(),options:M(Y1).optional(),default:Sn().optional(),scope:J(["core","tool-specific"])});g({tool:c().min(1),refresh:q().optional()});const A2=g({rewind:q(),subagents:q(),tui:q(),observe:q(),fileSharing:q(),fork:q()});g({tool:c().min(1),toolSessionIdLabel:c().optional(),models:M(E2),permissionModes:M(T2),configSchema:M(j2),features:A2});const P2=g({tool:c().min(1),pattern:c().min(1),createdAt:c().min(1).optional()});g({cloudEnvironment:vt.optional(),cloudExpectedImage:Tn.optional(),testReleaseId:c().optional(),sessionId:c().min(1),cloudExecutionId:c().min(1).optional(),cloudConversationId:c().min(1).optional(),cloudPendingTurns:M(g({id:c().min(1),text:c(),prepared:q().optional()})).optional(),cloudGatewaySessionId:c().min(1).optional(),cloudPendingCommand:g({id:c().min(1),text:c(),prepared:q().optional()}).optional(),cwd:c().min(1),tool:R("claude").or(c().min(1)).default("claude"),toolSessionId:c().optional(),label:c().optional(),model:c().optional(),permissionMode:c().optional(),effort:c().optional(),serviceTier:c().optional(),...K1,aiLabelGeneratedAt:c().optional(),permissionRules:M(P2).optional(),pinnedAt:T().int().nonnegative().nullable().optional(),archivedAt:T().int().nonnegative().nullable().optional(),pinSortOrder:T().int().nullable().optional(),unreadAt:c().min(1).nullable().optional(),iconKey:c().optional(),forkedFromSessionId:c().min(1).optional(),ephemeral:q().optional(),deployId:c().min(1).optional(),ownerPersonaId:c().min(1).optional(),projectPath:c().min(1).optional(),chatId:c().min(1).optional(),creatorPrincipalId:c().min(1).optional(),creatorDisplayName:c().min(1).optional(),creatorFeishuUnionId:c().min(1).optional(),originOwnerPrincipalId:c().min(1).optional(),originOwnerPersonaId:c().min(1).optional(),dispatchedFromSessionId:c().min(1).optional(),shiftFiredFromSessionId:c().min(1).optional(),larkChatId:c().min(1).optional(),larkChatName:c().min(1).optional(),larkChatType:J(["p2p","group"]).optional(),createdAt:c().min(1),updatedAt:c().min(1)});const ft={turnId:c().min(1).optional(),seq:T().int().nonnegative().optional(),ts:c().optional(),uuid:c().optional()},R2=J(w2),z2=g({readCount:T().int().nonnegative().optional(),searchCount:T().int().nonnegative().optional(),bashCount:T().int().nonnegative().optional(),editFileCount:T().int().nonnegative().optional(),linesAdded:T().int().nonnegative().optional(),linesRemoved:T().int().nonnegative().optional(),otherToolCount:T().int().nonnegative().optional()}),M2=g({oldStart:T().int().nonnegative(),oldLines:T().int().nonnegative(),newStart:T().int().nonnegative(),newLines:T().int().nonnegative(),lines:M(c())}),L2=g({agentId:c().optional(),agentType:c().optional(),status:c().optional(),prompt:c().optional(),filePath:c().optional(),structuredPatch:M(M2).optional(),stats:g({durationMs:T().int().nonnegative().optional(),tokens:T().int().nonnegative().optional(),toolUseCount:T().int().nonnegative().optional(),toolStats:z2.optional()}).optional()}),O2=g({path:c(),content:c(),mtimeMs:T().optional()}),D2=g({label:c().min(1),description:c().optional()}),X1=g({question:c().min(1),multiSelect:q(),options:M(D2).min(1)}),F2=["completed","interrupted"];Et("kind",[g({...ft,kind:R("session_init"),toolSessionId:c().optional()}),g({...ft,kind:R("thinking"),text:c(),partialId:c().optional()}),g({...ft,kind:R("text"),text:c(),partialId:c().optional()}),g({...ft,kind:R("user_text"),text:c(),meta:R2.optional(),taskId:c().optional(),parentToolUseId:c().optional(),sender:_2.optional()}),g({...ft,kind:R("tool_call"),toolUseId:c(),tool:c(),toolKind:c().optional(),input:Sn()}),g({...ft,kind:R("tool_result"),toolUseId:c(),output:Sn().optional(),error:c().optional(),toolResultExtra:L2.optional(),sourceToolAssistantUUID:c().optional(),askQuestionAnswers:Dt(c(),c()).optional()}),g({...ft,kind:R("attachment_memories"),memories:M(O2)}),g({...ft,kind:R("permission_request"),requestId:c(),tool:c(),input:Sn(),toolUseId:c().optional()}),g({...ft,kind:R("ask_user_question"),toolUseId:c(),questions:M(X1)}),g({...ft,kind:R("turn_end"),durationMs:T().int().nonnegative().optional(),reason:J(F2).optional(),turnId:c().min(1).optional()}),g({...ft,kind:R("subagent_progress"),toolUseId:c(),agentId:c(),status:J(["started","running","completed","failed"]),description:c().optional(),lastToolName:c().optional(),prompt:c().optional(),stats:g({durationMs:T().int().nonnegative().optional(),tokens:T().int().nonnegative().optional(),toolUseCount:T().int().nonnegative().optional()}).optional()}),g({...ft,kind:R("error"),message:c()}),g({...ft,kind:R("meta_update"),patch:N2}),g({...ft,kind:R("meta-text"),text:c(),metaSource:J(["cc","owner"]).optional()})]);g({cwd:c().min(1).optional(),tool:c().optional(),label:c().optional(),aiLabel:c().optional(),model:c().optional(),permissionMode:c().optional(),effort:c().optional(),serviceTier:q1.optional(),iconKey:c().optional(),forkedFromSessionId:c().min(1).optional(),ephemeral:q().optional(),ownerPersonaId:c().min(1).optional(),projectPath:c().min(1).optional()}).refine(e=>e.cwd!=null||e.ownerPersonaId!=null||e.projectPath!=null,{message:"cwd / ownerPersonaId / projectPath 至少传一个"});g({path:c().min(1),name:c().min(1),createdAt:c().datetime(),pinnedAt:T().optional()});g({path:c().min(1),pinnedAt:T().nullable()});g({path:c().min(1)});g({path:c().min(1).optional(),name:c().min(1).optional()}).refine(e=>e.path!=null||e.name!=null,{message:"path 与 name 至少给一个"});g({cwd:c().min(1),tool:c().min(1),toolSessionId:c().min(1),label:c().optional(),aiLabel:c().optional(),iconKey:c().optional(),createdAt:c().datetime(),updatedAt:c().datetime(),ownerPersonaId:c().min(1).optional()});g({originOnly:q().optional(),ownerPersonaId:c().min(1).optional(),limit:T().int().positive().optional(),offset:T().int().nonnegative().optional()});g({sessionId:c().min(1)});g({sessionId:c().min(1),patch:g({label:c().optional(),model:c().optional(),permissionMode:c().optional(),effort:c().optional(),cwd:c().optional(),iconKey:c().optional(),ephemeral:R(!1).optional()})});g({id:c().min(1),text:c(),queuedAt:T(),senderDisplayName:c().optional()});g({sessionId:c().min(1),text:c(),queueWhileRunning:q().optional()});g({sessionId:c().min(1),id:c().min(1).optional()});g({sessionId:c().min(1),userMessageId:c().min(1),dryRun:q().optional()});g({canRewind:q(),error:c().optional(),filesChanged:M(c()).optional(),insertions:T().int().nonnegative().optional(),deletions:T().int().nonnegative().optional()});g({sessionId:c().min(1),userMessageId:c().min(1)});const $2=g({oldStart:T().int().nonnegative(),oldLines:T().int().nonnegative(),newStart:T().int().nonnegative(),newLines:T().int().nonnegative(),lines:M(c())}),U2=g({filePath:c().min(1),hunks:M($2),insertions:T().int().nonnegative(),deletions:T().int().nonnegative(),status:J(["modified","added","deleted"]).optional()});g({canRewind:q(),error:c().optional(),files:M(U2),totalInsertions:T().int().nonnegative(),totalDeletions:T().int().nonnegative()});g({userMessageIds:M(c())});g({sessionId:c().min(1),toolSessionId:c().min(1)});g({cwd:c().min(1),toolSessionId:c().min(1),messageUuid:c().min(1).optional(),turnId:c().min(1).optional(),sourceSessionId:c().min(1).optional(),targetCwd:c().min(1).optional()}).refine(e=>!!(e.messageUuid||e.turnId),"messageUuid or turnId required");g({forkedToolSessionId:c().min(1),forkedFilePath:c().min(1)});g({sessionId:c().min(1),toolSessionId:c().min(1),jsonlPath:c().optional()});g({sessionId:c().min(1),afterSeq:T().int().min(-1)});g({sessionId:c().min(1),permissionRequestId:c().min(1),allow:q(),permanent:q().optional(),pattern:c().optional()});g({projectPath:c().min(1)});g({sessionId:c().min(1),limit:T().int().positive().max(5e3).optional(),offset:T().int().nonnegative().optional(),snapshotId:c().uuid().optional(),slim:q().optional(),view:J(["turns","items"]).optional(),cursor:c().min(1).max(16384).optional(),turnId:c().min(1).max(256).optional()}).superRefine((e,t)=>{e.view==="items"&&!e.turnId&&t.addIssue({code:L.custom,path:["turnId"],message:"items requires turnId"}),e.view&&(e.offset!==void 0||e.slim!==void 0)&&t.addIssue({code:L.custom,message:"native views do not accept offset or slim"}),!e.view&&(e.cursor!==void 0||e.turnId!==void 0)&&t.addIssue({code:L.custom,message:"cursor and turnId require a native view"}),e.view==="turns"&&e.turnId!==void 0&&t.addIssue({code:L.custom,path:["turnId"],message:"turns does not accept turnId"}),e.view&&e.limit!==void 0&&e.limit>100&&t.addIssue({code:L.custom,path:["limit"],message:"native page limit is 100"})});g({cwd:c().min(1),toolSessionId:c().min(1)});g({cwd:c().min(1),toolSessionId:c().min(1),subagentId:c().min(1)});g({cwd:c().min(1).optional(),path:c().optional(),showHidden:q().optional()});g({cwd:c().min(1),path:c().min(1)});g({cwd:c().min(1),tool:c().optional()});g({name:c().min(1),source:J(b2),path:c().optional(),description:c().optional(),plugin:c().optional()});const B2=g({name:c().min(1),source:J(S2),path:c().optional(),description:c().optional(),whenToUse:c().optional(),plugin:c().optional()});g({cwd:c().min(1),tool:c().optional()});g({agents:M(B2)});g({sessionId:c().optional()});g({sessionId:c().min(1).optional()});g({sessionId:c().min(1),pinned:q()});g({sessionId:c().min(1),archived:q()});g({query:c().min(1),sessionIds:M(c().min(1)),limit:T().int().positive().max(50).optional()});const V2=g({sessionId:c().min(1),snippet:c()});g({type:R("session:searchContent"),matches:M(V2)});g({type:R("peerSession:upsert:ok")});g({sessionId:c().min(1)});g({type:R("peerSession:remove:ok")});g({orderedIds:M(c().min(1)).min(1)});g({cwd:c().min(1)});g({isGitRoot:q(),gitRoot:c().nullable()});g({cwd:c().min(1)});g({branch:c().nullable()});g({cwd:c().min(1)});g({branches:M(c()),head:c().nullable()});const H2=g({cwd:c().min(1),updatedAt:c().min(1)});g({dirs:M(H2)});g({type:R("session:question"),sessionId:c().min(1),toolUseId:c().min(1),requestId:c().min(1),questions:M(X1).min(1)});g({type:R("session:question:cleared"),sessionId:c().min(1),toolUseId:c().min(1),answers:Dt(c(),c()).optional()});g({sessionId:c().min(1),toolUseId:c().min(1),answers:Dt(c(),c())});g({ok:R(!0)});g({sessionId:c().min(1),toolUseId:c().min(1)});g({ok:R(!0)});const J1=g({name:c().min(1),version:c().min(1),instanceId:c().min(1),deviceLabel:c().transform(e=>e.trim().slice(0,64)).optional()});g({type:R("auth"),token:c().min(1),scheme:R("bearer").optional(),clientInfo:J1.optional()});g({type:R("auth:ok"),version:c().min(1).optional(),protocolVersion:T().int().nonnegative().optional()});const q2=g({clientId:c().min(1),connectedAt:T().int().nonnegative(),self:q(),clientInfo:J1.optional()});g({type:R("device:connections:ok"),connections:M(q2)});g({type:R("tunnel:ready"),url:c().min(1),subdomain:c().min(1)});g({type:R("tunnel:exited"),code:T().int().nullable(),subdomain:c().nullable(),url:c().nullable()});g({type:R("tunnel:unavailable"),reason:c().min(1),failedAt:c().min(1)});const W2=g({sessionId:c().min(1),status:C2,freshSpawn:q(),pendingPermissionRequestIds:M(c().min(1)),pendingQuestionToolUseIds:M(c().min(1))});g({type:R("info"),version:c(),protocolVersion:T(),hostname:c(),os:c(),tools:M(g({id:c(),available:q()})),runningSessions:M(W2),tokenRole:J(oS).optional(),isLoopback:q().optional(),httpBaseUrl:c().optional(),httpToken:c().optional(),daemonSource:J(["ota","packaged"]).optional(),globalCliVersion:c().nullable().optional()});g({});g({method:c().min(1).optional()});const Z2=["allowed","conditional","denied"],G2=J(Z2),Q2=g({name:c().min(1),status:G2,description:c().min(1),args:M(g({name:c(),required:q()})).nullable(),argsSchema:Dt(Sn()).optional(),reason:c().optional()});g({type:R("meta:methods"),methods:M(Q2)});const K2=/<system-reminder>此消息来自飞书群成员 (.+?)<\/system-reminder>\s*$/,Y2=/<system-reminder>此消息来自 (owner|guest):(.+?)<\/system-reminder>\s*$/,X2="clawd-dispatch-task",J2="clawd-dispatch-result",Ip=120;function e_(e){if(!e)return[];const t=[];for(const n of["task","result"]){const r=n==="task"?X2:J2,i=new RegExp(`<${r}\\b([^>]*)>([\\s\\S]*?)</${r}>`,"gi");for(let o=i.exec(e);o!==null;o=i.exec(e))t.push({at:o.index,block:t_(n,o[1]??"",o[2]??"")})}return t.sort((n,r)=>n.at-r.at).map(n=>n.block)}function t_(e,t,n){var u;const r=a_(t),i=Hu(l_(Sa(n,"detail")??n)),o=(u=Sa(n,"brief"))==null?void 0:u.trim(),s=o&&o.length>0?Hu(o):n_(i),l=r.round!==void 0?Number.parseInt(r.round,10):void 0,a=r.status;return{kind:e,dispatchId:r["dispatch-id"]??"",...r.from?{from:r.from}:{},...e==="task"&&l!==void 0&&Number.isFinite(l)?{round:l}:{},...e==="result"&&(a==="success"||a==="failure")?{status:a}:{},brief:s,briefIsDerived:!(o&&o.length>0),detail:i,filePaths:s_(Sa(n,"files"))}}function n_(e){const t=e.split(/\n\s*\n/).map(r=>r.trim()).find(r=>r.length>0);if(!t)return"";const n=t.replace(/\s+/g," ");return n.length>Ip?`${n.slice(0,Ip)}…`:n}const r_="clawd-dispatch-task|clawd-dispatch-result|brief|detail|files",i_=new RegExp(`<\\\\(\\\\*)(/?)(${r_})\\b`,"g");function o_(e){return Hu(e)}function Hu(e){return e.replace(i_,"<$1$2$3")}function Sa(e,t){const n=new RegExp(`<${t}>([\\s\\S]*?)</${t}>`,"i").exec(e);return n?n[1]??"":null}function s_(e){return e?e.split(`
277
- `).map(t=>t.trim()).filter(t=>t.startsWith("- ")).map(t=>t.slice(2).trim()).filter(t=>t.length>0):[]}function l_(e){return e.replace(/^\n/,"").replace(/\n$/,"")}function a_(e){const t={},n=/([a-z-]+)="([^"]*)"/gi;for(let r=n.exec(e);r!==null;r=n.exec(e))t[r[1]]=u_(r[2]??"");return t}function u_(e){return e.replace(/&quot;/g,'"').replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&amp;/g,"&")}const c_=new Set(["permission-inline","question-card"]);function d_(e){return e.kind==="user-text"?!0:e.kind!=="user-meta"?!1:e.metaKind==="slash-command"||G1(e.metaKind)}function f_(e){return e.kind==="user-text"&&e.continuesTurn===!0}function p_(e,t={}){const n=[];let r=null;const i=(o,s)=>{r&&(n.push(m_(r,o,s)),r=null)};for(const o of e){if(o.kind==="turn-end"){i(o,!0);continue}if(d_(o)&&(r===null||!f_(o))){i(void 0,!0),r={query:o,body:[]};continue}r===null?r={body:[o]}:r.body.push(o)}return i(void 0,t.closeTrailing===!0),n}function m_(e,t,n){const{query:r,body:i}=e,o=h_(i,t,n),s=g_(i,o),l=x_(i,s),a=r??i[0]??t,u={kind:"turn",seq:a?a.seq:0,status:o,process:l,tail:s};return t!=null&&t.turnId&&(u.turnId=t.turnId),r&&(u.query=r),(t==null?void 0:t.durationMs)!==void 0&&(u.durationMs=t.durationMs),u}function h_(e,t,n){if(!n)return"running";if((t==null?void 0:t.reason)==="interrupted")return"interrupted";const r=qu(e,i=>i.kind==="error");return r>=0&&!e.slice(r+1).some(o=>o.kind==="assistant-text")?"error":"done"}function g_(e,t){if(t==="running"){const r=[];for(let i=e.length-1;i>=0&&c_.has(e[i].kind);i--)r.unshift(e[i]);return r}const n=t==="error"?qu(e,r=>r.kind==="error"):qu(e,r=>r.kind==="assistant-text");return n>=0?[e[n]]:[]}const y_=new Set(["assistant-thinking","user-meta"]);function x_(e,t){const n=new Set(t),r=[];let i=null;const o=()=>{i&&(r.push({kind:"tool-group",seq:i[0].seq,items:i}),i=null)};for(const s of e){if(n.has(s)){o();continue}if(s.kind==="merged-tool"){i?i.push(s):i=[s];continue}if(y_.has(s.kind)){r.push(s);continue}o(),r.push(s)}return o(),r}function qu(e,t){for(let n=e.length-1;n>=0;n--)if(t(e[n]))return n;return-1}const v_={Read:["正在读取","已读取"],Bash:["正在运行","已运行"],Grep:["正在搜索","已搜索"],Glob:["正在搜索","已搜索"],Edit:["正在编辑","已编辑"],Write:["正在写入","已写入"],WebFetch:["正在抓取","已抓取"],WebSearch:["正在搜索","已搜索"],Skill:["正在读取","已读取"]};function k_(e){if(!e||typeof e!="object")return"";const t=e,n=t.command??t.file_path??t.path??t.pattern??t.query??t.url??t.description;if(typeof n=="string")return n;for(const r of Object.values(t))if(typeof r=="string"&&r)return r;return""}function ey(e){const t=v_[e.tool],n=t?e.pending?t[0]:t[1]:e.pending?`正在执行 ${e.tool}`:`已执行 ${e.tool}`,r=k_(e.input);return r?`${n} ${r}`:n}function w_({item:e,renderItemDetail:t}){const[n,r]=U.useState(!1),i=n?sn:ln,o=n?(t==null?void 0:t(e))??null:null;return h.jsxs("div",{className:"min-w-0 max-w-full",children:[h.jsxs("button",{type:"button",onClick:()=>r(s=>!s),"aria-expanded":n,"data-testid":"tool-call-group-row",className:ve("flex w-full items-center gap-1.5 text-left cursor-pointer min-w-0 py-0.5 text-[13px] hover:text-text-200",e.error?"text-destructive/80":"text-text-400"),children:[e.pending?h.jsx(sr,{className:"w-3.5 h-3.5 animate-spin shrink-0"}):h.jsx(i,{className:"w-3.5 h-3.5 shrink-0 opacity-60"}),h.jsx("span",{className:"truncate min-w-0",children:ey(e)})]}),n?h.jsx("div",{"data-testid":"tool-call-group-row-detail",className:"pl-5 py-1 min-w-0 space-y-1.5 text-[12px] text-text-300",children:o!==null?o:h.jsxs(h.Fragment,{children:[h.jsx("pre",{className:"min-w-0 max-w-full overflow-auto whitespace-pre-wrap font-mono",children:JSON.stringify(e.input,null,2)}),e.output!==void 0?h.jsx("pre",{className:"min-w-0 max-w-full overflow-auto whitespace-pre-wrap font-mono text-text-400",children:typeof e.output=="string"?e.output:JSON.stringify(e.output,null,2)}):null,e.error?h.jsx("pre",{className:"min-w-0 max-w-full overflow-auto whitespace-pre-wrap font-mono text-destructive",children:e.error}):null]})}):null]})}function b_({items:e,renderItemDetail:t}){const[n,r]=U.useState(!1);if(e.length===0)return null;const i=e.some(a=>a.pending),o=i?[...e].reverse().find(a=>a.pending):e[e.length-1],s=!i&&e.length>1?` 等 ${e.length} 项`:"",l=n?sn:ln;return h.jsxs("div",{"data-testid":"tool-call-group",className:"min-w-0 max-w-full",children:[h.jsxs("button",{type:"button",onClick:()=>r(a=>!a),"aria-expanded":n,"data-testid":"tool-call-group-header",className:"flex w-full items-center gap-1.5 text-left cursor-pointer min-w-0 py-0.5 text-[13px] text-text-400 hover:text-text-200",children:[i&&!n?h.jsx(sr,{className:"w-3.5 h-3.5 animate-spin shrink-0"}):h.jsx(l,{className:"w-3.5 h-3.5 shrink-0"}),n?h.jsx("span",{className:"min-w-0 truncate opacity-70",children:i?"正在执行":`${e.length} 项`}):h.jsxs("span",{className:ve("truncate min-w-0",i&&"text-text-300"),children:[ey(o),s]})]}),n?h.jsx("div",{className:"mt-0.5 flex flex-col pl-5",children:e.map(a=>h.jsx(w_,{item:a,renderItemDetail:t},a.toolUseId))}):null]})}function S_(e){const t=Math.round(e/1e3);if(t<60)return`${t}秒`;const n=Math.floor(t/60),r=t%60;return r>0?`${n}分${r}秒`:`${n}分钟`}function __(e,t){const n=t!==void 0?`耗时 ${S_(t)}`:"";switch(e){case"interrupted":return n?`已中断 · ${n}`:"已中断";case"error":return n?`出错 · ${n}`:"出错";default:return n||"已完成"}}function C_({status:e="done",durationMs:t,defaultExpanded:n=!1,onExpandedChange:r,children:i}){const[o,s]=U.useState(n),l=o?sn:ln;return h.jsxs("div",{"data-testid":"turn-process-block",className:"min-w-0 max-w-full border-t border-border pt-2",children:[h.jsxs("button",{type:"button",onClick:()=>{const a=!o;s(a),r==null||r(a)},"aria-expanded":o,"data-testid":"turn-process-block-header",className:ve("flex w-full items-center gap-1 text-left cursor-pointer min-w-0 py-0.5 text-[13px]",e!=="done"?"text-destructive/80 hover:text-destructive":"text-text-400 hover:text-text-200"),children:[h.jsx("span",{className:"truncate min-w-0",children:__(e,t)}),h.jsx(l,{className:"w-3.5 h-3.5 shrink-0"})]}),o?h.jsx("div",{"data-testid":"turn-process-body",className:"mt-2 flex flex-col gap-2 border-l-2 border-border pl-3",children:i}):null]})}const I_=/<(system-reminder|related-dir|clawd-shift-fire)\b[^>]*>[\s\S]*?<\/\1>/gi,N_=/<builder-preview\b[^>]*\/>/gi,E_=/<(clawd-dispatch-task|clawd-dispatch-result)\b[^>]*>([\s\S]*?)<\/\1>/gi,T_=/<\/?(brief|detail|files)>/gi;function ty(e){return e?e.replace(E_,(t,n,r)=>o_(r.replace(T_,"")).trim()).replace(I_,"").replace(N_,"").trim():""}const j_=ty;function A_(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const P_=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,R_=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,z_={};function Np(e,t){return(z_.jsx?R_:P_).test(e)}const M_=/[ \t\n\f\r]/g;function L_(e){return typeof e=="object"?e.type==="text"?Ep(e.value):!1:Ep(e)}function Ep(e){return e.replace(M_,"")===""}class $o{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}$o.prototype.normal={};$o.prototype.property={};$o.prototype.space=void 0;function ny(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new $o(n,r,t)}function Wu(e){return e.toLowerCase()}class kt{constructor(t,n){this.attribute=n,this.property=t}}kt.prototype.attribute="";kt.prototype.booleanish=!1;kt.prototype.boolean=!1;kt.prototype.commaOrSpaceSeparated=!1;kt.prototype.commaSeparated=!1;kt.prototype.defined=!1;kt.prototype.mustUseProperty=!1;kt.prototype.number=!1;kt.prototype.overloadedBoolean=!1;kt.prototype.property="";kt.prototype.spaceSeparated=!1;kt.prototype.space=void 0;let O_=0;const ce=zr(),Fe=zr(),Zu=zr(),B=zr(),Ne=zr(),si=zr(),bt=zr();function zr(){return 2**++O_}const Gu=Object.freeze(Object.defineProperty({__proto__:null,boolean:ce,booleanish:Fe,commaOrSpaceSeparated:bt,commaSeparated:si,number:B,overloadedBoolean:Zu,spaceSeparated:Ne},Symbol.toStringTag,{value:"Module"})),_a=Object.keys(Gu);class vd extends kt{constructor(t,n,r,i){let o=-1;if(super(t,n),Tp(this,"space",i),typeof r=="number")for(;++o<_a.length;){const s=_a[o];Tp(this,_a[o],(r&Gu[s])===Gu[s])}}}vd.prototype.defined=!0;function Tp(e,t,n){n&&(e[t]=n)}function Ci(e){const t={},n={};for(const[r,i]of Object.entries(e.properties)){const o=new vd(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[Wu(r)]=r,n[Wu(o.attribute)]=r}return new $o(t,n,e.space)}const ry=Ci({properties:{ariaActiveDescendant:null,ariaAtomic:Fe,ariaAutoComplete:null,ariaBusy:Fe,ariaChecked:Fe,ariaColCount:B,ariaColIndex:B,ariaColSpan:B,ariaControls:Ne,ariaCurrent:null,ariaDescribedBy:Ne,ariaDetails:null,ariaDisabled:Fe,ariaDropEffect:Ne,ariaErrorMessage:null,ariaExpanded:Fe,ariaFlowTo:Ne,ariaGrabbed:Fe,ariaHasPopup:null,ariaHidden:Fe,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Ne,ariaLevel:B,ariaLive:null,ariaModal:Fe,ariaMultiLine:Fe,ariaMultiSelectable:Fe,ariaOrientation:null,ariaOwns:Ne,ariaPlaceholder:null,ariaPosInSet:B,ariaPressed:Fe,ariaReadOnly:Fe,ariaRelevant:null,ariaRequired:Fe,ariaRoleDescription:Ne,ariaRowCount:B,ariaRowIndex:B,ariaRowSpan:B,ariaSelected:Fe,ariaSetSize:B,ariaSort:null,ariaValueMax:B,ariaValueMin:B,ariaValueNow:B,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function iy(e,t){return t in e?e[t]:t}function oy(e,t){return iy(e,t.toLowerCase())}const D_=Ci({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:si,acceptCharset:Ne,accessKey:Ne,action:null,allow:null,allowFullScreen:ce,allowPaymentRequest:ce,allowUserMedia:ce,alt:null,as:null,async:ce,autoCapitalize:null,autoComplete:Ne,autoFocus:ce,autoPlay:ce,blocking:Ne,capture:null,charSet:null,checked:ce,cite:null,className:Ne,cols:B,colSpan:null,content:null,contentEditable:Fe,controls:ce,controlsList:Ne,coords:B|si,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ce,defer:ce,dir:null,dirName:null,disabled:ce,download:Zu,draggable:Fe,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ce,formTarget:null,headers:Ne,height:B,hidden:Zu,high:B,href:null,hrefLang:null,htmlFor:Ne,httpEquiv:Ne,id:null,imageSizes:null,imageSrcSet:null,inert:ce,inputMode:null,integrity:null,is:null,isMap:ce,itemId:null,itemProp:Ne,itemRef:Ne,itemScope:ce,itemType:Ne,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ce,low:B,manifest:null,max:null,maxLength:B,media:null,method:null,min:null,minLength:B,multiple:ce,muted:ce,name:null,nonce:null,noModule:ce,noValidate:ce,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:ce,optimum:B,pattern:null,ping:Ne,placeholder:null,playsInline:ce,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ce,referrerPolicy:null,rel:Ne,required:ce,reversed:ce,rows:B,rowSpan:B,sandbox:Ne,scope:null,scoped:ce,seamless:ce,selected:ce,shadowRootClonable:ce,shadowRootDelegatesFocus:ce,shadowRootMode:null,shape:null,size:B,sizes:null,slot:null,span:B,spellCheck:Fe,src:null,srcDoc:null,srcLang:null,srcSet:null,start:B,step:null,style:null,tabIndex:B,target:null,title:null,translate:null,type:null,typeMustMatch:ce,useMap:null,value:Fe,width:B,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Ne,axis:null,background:null,bgColor:null,border:B,borderColor:null,bottomMargin:B,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ce,declare:ce,event:null,face:null,frame:null,frameBorder:null,hSpace:B,leftMargin:B,link:null,longDesc:null,lowSrc:null,marginHeight:B,marginWidth:B,noResize:ce,noHref:ce,noShade:ce,noWrap:ce,object:null,profile:null,prompt:null,rev:null,rightMargin:B,rules:null,scheme:null,scrolling:Fe,standby:null,summary:null,text:null,topMargin:B,valueType:null,version:null,vAlign:null,vLink:null,vSpace:B,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ce,disableRemotePlayback:ce,prefix:null,property:null,results:B,security:null,unselectable:null},space:"html",transform:oy}),F_=Ci({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:bt,accentHeight:B,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:B,amplitude:B,arabicForm:null,ascent:B,attributeName:null,attributeType:null,azimuth:B,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:B,by:null,calcMode:null,capHeight:B,className:Ne,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:B,diffuseConstant:B,direction:null,display:null,dur:null,divisor:B,dominantBaseline:null,download:ce,dx:null,dy:null,edgeMode:null,editable:null,elevation:B,enableBackground:null,end:null,event:null,exponent:B,externalResourcesRequired:null,fill:null,fillOpacity:B,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:si,g2:si,glyphName:si,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:B,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:B,horizOriginX:B,horizOriginY:B,id:null,ideographic:B,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:B,k:B,k1:B,k2:B,k3:B,k4:B,kernelMatrix:bt,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:B,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:B,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:B,overlineThickness:B,paintOrder:null,panose1:null,path:null,pathLength:B,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Ne,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:B,pointsAtY:B,pointsAtZ:B,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:bt,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:bt,rev:bt,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:bt,requiredFeatures:bt,requiredFonts:bt,requiredFormats:bt,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:B,specularExponent:B,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:B,strikethroughThickness:B,string:null,stroke:null,strokeDashArray:bt,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:B,strokeOpacity:B,strokeWidth:null,style:null,surfaceScale:B,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:bt,tabIndex:B,tableValues:null,target:null,targetX:B,targetY:B,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:bt,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:B,underlineThickness:B,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:B,values:null,vAlphabetic:B,vMathematical:B,vectorEffect:null,vHanging:B,vIdeographic:B,version:null,vertAdvY:B,vertOriginX:B,vertOriginY:B,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:B,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:iy}),sy=Ci({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),ly=Ci({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:oy}),ay=Ci({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),$_={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"},U_=/[A-Z]/g,jp=/-[a-z]/g,B_=/^data[-\w.:]+$/i;function V_(e,t){const n=Wu(t);let r=t,i=kt;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&B_.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(jp,q_);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!jp.test(o)){let s=o.replace(U_,H_);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}i=vd}return new i(r,t)}function H_(e){return"-"+e.toLowerCase()}function q_(e){return e.charAt(1).toUpperCase()}const W_=ny([ry,D_,sy,ly,ay],"html"),kd=ny([ry,F_,sy,ly,ay],"svg");function Z_(e){return e.join(" ").trim()}var wd={},Ap=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,G_=/\n/g,Q_=/^\s*/,K_=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Y_=/^:\s*/,X_=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,J_=/^[;\s]*/,eC=/^\s+|\s+$/g,tC=`
278
- `,Pp="/",Rp="*",mr="",nC="comment",rC="declaration";function iC(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function i(x){var b=x.match(G_);b&&(n+=b.length);var I=x.lastIndexOf(tC);r=~I?x.length-I:r+x.length}function o(){var x={line:n,column:r};return function(b){return b.position=new s(x),u(),b}}function s(x){this.start=x,this.end={line:n,column:r},this.source=t.source}s.prototype.content=e;function l(x){var b=new Error(t.source+":"+n+":"+r+": "+x);if(b.reason=x,b.filename=t.source,b.line=n,b.column=r,b.source=e,!t.silent)throw b}function a(x){var b=x.exec(e);if(b){var I=b[0];return i(I),e=e.slice(I.length),b}}function u(){a(Q_)}function f(x){var b;for(x=x||[];b=d();)b!==!1&&x.push(b);return x}function d(){var x=o();if(!(Pp!=e.charAt(0)||Rp!=e.charAt(1))){for(var b=2;mr!=e.charAt(b)&&(Rp!=e.charAt(b)||Pp!=e.charAt(b+1));)++b;if(b+=2,mr===e.charAt(b-1))return l("End of comment missing");var I=e.slice(2,b-2);return r+=2,i(I),e=e.slice(b),r+=2,x({type:nC,comment:I})}}function m(){var x=o(),b=a(K_);if(b){if(d(),!a(Y_))return l("property missing ':'");var I=a(X_),y=x({type:rC,property:zp(b[0].replace(Ap,mr)),value:I?zp(I[0].replace(Ap,mr)):mr});return a(J_),y}}function p(){var x=[];f(x);for(var b;b=m();)b!==!1&&(x.push(b),f(x));return x}return u(),p()}function zp(e){return e?e.replace(eC,mr):mr}var oC=iC,sC=Rs&&Rs.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(wd,"__esModule",{value:!0});wd.default=aC;const lC=sC(oC);function aC(e,t){let n=null;if(!e||typeof e!="string")return n;const r=(0,lC.default)(e),i=typeof t=="function";return r.forEach(o=>{if(o.type!=="declaration")return;const{property:s,value:l}=o;i?t(s,l,o):l&&(n=n||{},n[s]=l)}),n}var Ul={};Object.defineProperty(Ul,"__esModule",{value:!0});Ul.camelCase=void 0;var uC=/^--[a-zA-Z0-9_-]+$/,cC=/-([a-z])/g,dC=/^[^-]+$/,fC=/^-(webkit|moz|ms|o|khtml)-/,pC=/^-(ms)-/,mC=function(e){return!e||dC.test(e)||uC.test(e)},hC=function(e,t){return t.toUpperCase()},Mp=function(e,t){return"".concat(t,"-")},gC=function(e,t){return t===void 0&&(t={}),mC(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace(pC,Mp):e=e.replace(fC,Mp),e.replace(cC,hC))};Ul.camelCase=gC;var yC=Rs&&Rs.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},xC=yC(wd),vC=Ul;function Qu(e,t){var n={};return!e||typeof e!="string"||(0,xC.default)(e,function(r,i){r&&i&&(n[(0,vC.camelCase)(r,t)]=i)}),n}Qu.default=Qu;var kC=Qu;const wC=lc(kC),uy=cy("end"),bd=cy("start");function cy(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function bC(e){const t=bd(e),n=uy(e);if(t&&n)return{start:t,end:n}}function no(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Lp(e.position):"start"in e||"end"in e?Lp(e):"line"in e||"column"in e?Ku(e):""}function Ku(e){return Op(e&&e.line)+":"+Op(e&&e.column)}function Lp(e){return Ku(e&&e.start)+"-"+Ku(e&&e.end)}function Op(e){return e&&typeof e=="number"?e:1}class it extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",o={},s=!1;if(n&&("line"in n&&"column"in n?o={place:n}:"start"in n&&"end"in n?o={place:n}:"type"in n?o={ancestors:[n],place:n.position}:o={...n}),typeof t=="string"?i=t:!o.cause&&t&&(s=!0,i=t.message,o.cause=t),!o.ruleId&&!o.source&&typeof r=="string"){const a=r.indexOf(":");a===-1?o.ruleId=r:(o.source=r.slice(0,a),o.ruleId=r.slice(a+1))}if(!o.place&&o.ancestors&&o.ancestors){const a=o.ancestors[o.ancestors.length-1];a&&(o.place=a.position)}const l=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=l?l.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=l?l.line:void 0,this.name=no(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=s&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}it.prototype.file="";it.prototype.name="";it.prototype.reason="";it.prototype.message="";it.prototype.stack="";it.prototype.column=void 0;it.prototype.line=void 0;it.prototype.ancestors=void 0;it.prototype.cause=void 0;it.prototype.fatal=void 0;it.prototype.place=void 0;it.prototype.ruleId=void 0;it.prototype.source=void 0;const Sd={}.hasOwnProperty,SC=new Map,_C=/[A-Z]/g,CC=new Set(["table","tbody","thead","tfoot","tr"]),IC=new Set(["td","th"]),dy="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function NC(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=MC(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=zC(n,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?kd:W_,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},o=fy(i,e,void 0);return o&&typeof o!="string"?o:i.create(e,i.Fragment,{children:o||void 0},void 0)}function fy(e,t,n){if(t.type==="element")return EC(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return TC(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return AC(e,t,n);if(t.type==="mdxjsEsm")return jC(e,t);if(t.type==="root")return PC(e,t,n);if(t.type==="text")return RC(e,t)}function EC(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=kd,e.schema=i),e.ancestors.push(t);const o=my(e,t.tagName,!1),s=LC(e,t);let l=Cd(e,t);return CC.has(t.tagName)&&(l=l.filter(function(a){return typeof a=="string"?!L_(a):!0})),py(e,s,o,t),_d(s,l),e.ancestors.pop(),e.schema=r,e.create(t,o,s,n)}function TC(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}Co(e,t.position)}function jC(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Co(e,t.position)}function AC(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=kd,e.schema=i),e.ancestors.push(t);const o=t.name===null?e.Fragment:my(e,t.name,!0),s=OC(e,t),l=Cd(e,t);return py(e,s,o,t),_d(s,l),e.ancestors.pop(),e.schema=r,e.create(t,o,s,n)}function PC(e,t,n){const r={};return _d(r,Cd(e,t)),e.create(t,e.Fragment,r,n)}function RC(e,t){return t.value}function py(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function _d(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function zC(e,t,n){return r;function r(i,o,s,l){const u=Array.isArray(s.children)?n:t;return l?u(o,s,l):u(o,s)}}function MC(e,t){return n;function n(r,i,o,s){const l=Array.isArray(o.children),a=bd(r);return t(i,o,s,l,{columnNumber:a?a.column-1:void 0,fileName:e,lineNumber:a?a.line:void 0},void 0)}}function LC(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&Sd.call(t.properties,i)){const o=DC(e,i,t.properties[i]);if(o){const[s,l]=o;e.tableCellAlignToStyle&&s==="align"&&typeof l=="string"&&IC.has(t.tagName)?r=l:n[s]=l}}if(r){const o=n.style||(n.style={});o[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function OC(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const o=r.data.estree.body[0];o.type;const s=o.expression;s.type;const l=s.properties[0];l.type,Object.assign(n,e.evaluater.evaluateExpression(l.argument))}else Co(e,t.position);else{const i=r.name;let o;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const l=r.value.data.estree.body[0];l.type,o=e.evaluater.evaluateExpression(l.expression)}else Co(e,t.position);else o=r.value===null?!0:r.value;n[i]=o}return n}function Cd(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:SC;for(;++r<t.children.length;){const o=t.children[r];let s;if(e.passKeys){const a=o.type==="element"?o.tagName:o.type==="mdxJsxFlowElement"||o.type==="mdxJsxTextElement"?o.name:void 0;if(a){const u=i.get(a)||0;s=a+"-"+u,i.set(a,u+1)}}const l=fy(e,o,s);l!==void 0&&n.push(l)}return n}function DC(e,t,n){const r=V_(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?A_(n):Z_(n)),r.property==="style"){let i=typeof n=="object"?n:FC(e,String(n));return e.stylePropertyNameCase==="css"&&(i=$C(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?$_[r.property]||r.property:r.attribute,n]}}function FC(e,t){try{return wC(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,i=new it("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw i.file=e.filePath||void 0,i.url=dy+"#cannot-parse-style-attribute",i}}function my(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const i=t.split(".");let o=-1,s;for(;++o<i.length;){const l=Np(i[o])?{type:"Identifier",name:i[o]}:{type:"Literal",value:i[o]};s=s?{type:"MemberExpression",object:s,property:l,computed:!!(o&&l.type==="Literal"),optional:!1}:l}r=s}else r=Np(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const i=r.value;return Sd.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);Co(e)}function Co(e,t){const n=new it("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=dy+"#cannot-handle-mdx-estrees-without-createevaluater",n}function $C(e){const t={};let n;for(n in e)Sd.call(e,n)&&(t[UC(n)]=e[n]);return t}function UC(e){let t=e.replace(_C,BC);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function BC(e){return"-"+e.toLowerCase()}const Ca={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"]},VC={};function Id(e,t){const n=VC,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return hy(e,r,i)}function hy(e,t,n){if(HC(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Dp(e.children,t,n)}return Array.isArray(e)?Dp(e,t,n):""}function Dp(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=hy(e[i],t,n);return r.join("")}function HC(e){return!!(e&&typeof e=="object")}const Fp=document.createElement("i");function Nd(e){const t="&"+e+";";Fp.innerHTML=t;const n=Fp.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function Ye(e,t,n,r){const i=e.length;let o=0,s;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)s=Array.from(r),s.unshift(t,n),e.splice(...s);else for(n&&e.splice(t,n);o<r.length;)s=r.slice(o,o+1e4),s.unshift(t,0),e.splice(...s),o+=1e4,t+=1e4}function Qe(e,t){return e.length>0?(Ye(e,e.length,0,t),e):t}const $p={}.hasOwnProperty;function gy(e){const t={};let n=-1;for(;++n<e.length;)qC(t,e[n]);return t}function qC(e,t){let n;for(n in t){const i=($p.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];let s;if(o)for(s in o){$p.call(i,s)||(i[s]=[]);const l=o[s];WC(i[s],Array.isArray(l)?l:l?[l]:[])}}}function WC(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);Ye(e,0,0,r)}function yy(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function Zt(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const lt=ar(/[A-Za-z]/),nt=ar(/[\dA-Za-z]/),ZC=ar(/[#-'*+\--9=?A-Z^-~]/);function yl(e){return e!==null&&(e<32||e===127)}const Yu=ar(/\d/),GC=ar(/[\dA-Fa-f]/),QC=ar(/[!-/:-@[-`{-~]/);function ne(e){return e!==null&&e<-2}function _e(e){return e!==null&&(e<0||e===32)}function me(e){return e===-2||e===-1||e===32}const Bl=ar(new RegExp("\\p{P}|\\p{S}","u")),Tr=ar(/\s/);function ar(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function Ii(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const o=e.charCodeAt(n);let s="";if(o===37&&nt(e.charCodeAt(n+1))&&nt(e.charCodeAt(n+2)))i=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(s=String.fromCharCode(o));else if(o>55295&&o<57344){const l=e.charCodeAt(n+1);o<56320&&l>56319&&l<57344?(s=String.fromCharCode(o,l),i=1):s="�"}else s=String.fromCharCode(o);s&&(t.push(e.slice(r,n),encodeURIComponent(s)),r=n+i+1,s=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function ke(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let o=0;return s;function s(a){return me(a)?(e.enter(n),l(a)):t(a)}function l(a){return me(a)&&o++<i?(e.consume(a),l):(e.exit(n),t(a))}}const KC={tokenize:YC};function YC(e){const t=e.attempt(this.parser.constructs.contentInitial,r,i);let n;return t;function r(l){if(l===null){e.consume(l);return}return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),ke(e,t,"linePrefix")}function i(l){return e.enter("paragraph"),o(l)}function o(l){const a=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=a),n=a,s(l)}function s(l){if(l===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(l);return}return ne(l)?(e.consume(l),e.exit("chunkText"),o):(e.consume(l),s)}}const XC={tokenize:JC},Up={tokenize:eI};function JC(e){const t=this,n=[];let r=0,i,o,s;return l;function l(w){if(r<n.length){const N=n[r];return t.containerState=N[1],e.attempt(N[0].continuation,a,u)(w)}return u(w)}function a(w){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&v();const N=t.events.length;let j=N,S;for(;j--;)if(t.events[j][0]==="exit"&&t.events[j][1].type==="chunkFlow"){S=t.events[j][1].end;break}y(r);let A=N;for(;A<t.events.length;)t.events[A][1].end={...S},A++;return Ye(t.events,j+1,0,t.events.slice(N)),t.events.length=A,u(w)}return l(w)}function u(w){if(r===n.length){if(!i)return m(w);if(i.currentConstruct&&i.currentConstruct.concrete)return x(w);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Up,f,d)(w)}function f(w){return i&&v(),y(r),m(w)}function d(w){return t.parser.lazy[t.now().line]=r!==n.length,s=t.now().offset,x(w)}function m(w){return t.containerState={},e.attempt(Up,p,x)(w)}function p(w){return r++,n.push([t.currentConstruct,t.containerState]),m(w)}function x(w){if(w===null){i&&v(),y(0),e.consume(w);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:o}),b(w)}function b(w){if(w===null){I(e.exit("chunkFlow"),!0),y(0),e.consume(w);return}return ne(w)?(e.consume(w),I(e.exit("chunkFlow")),r=0,t.interrupt=void 0,l):(e.consume(w),b)}function I(w,N){const j=t.sliceStream(w);if(N&&j.push(null),w.previous=o,o&&(o.next=w),o=w,i.defineSkip(w.start),i.write(j),t.parser.lazy[w.start.line]){let S=i.events.length;for(;S--;)if(i.events[S][1].start.offset<s&&(!i.events[S][1].end||i.events[S][1].end.offset>s))return;const A=t.events.length;let E=A,$,C;for(;E--;)if(t.events[E][0]==="exit"&&t.events[E][1].type==="chunkFlow"){if($){C=t.events[E][1].end;break}$=!0}for(y(r),S=A;S<t.events.length;)t.events[S][1].end={...C},S++;Ye(t.events,E+1,0,t.events.slice(A)),t.events.length=S}}function y(w){let N=n.length;for(;N-- >w;){const j=n[N];t.containerState=j[1],j[0].exit.call(t,e)}n.length=w}function v(){i.write([null]),o=void 0,i=void 0,t.containerState._closeFlow=void 0}}function eI(e,t,n){return ke(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function xi(e){if(e===null||_e(e)||Tr(e))return 1;if(Bl(e))return 2}function Ni(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const o=e[i].resolveAll;o&&!r.includes(o)&&(t=o(t,n),r.push(o))}return t}const Xu={name:"attention",resolveAll:tI,tokenize:nI};function tI(e,t){let n=-1,r,i,o,s,l,a,u,f;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;a=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const d={...e[r][1].end},m={...e[n][1].start};Bp(d,-a),Bp(m,a),s={type:a>1?"strongSequence":"emphasisSequence",start:d,end:{...e[r][1].end}},l={type:a>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:m},o={type:a>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},i={type:a>1?"strong":"emphasis",start:{...s.start},end:{...l.end}},e[r][1].end={...s.start},e[n][1].start={...l.end},u=[],e[r][1].end.offset-e[r][1].start.offset&&(u=Qe(u,[["enter",e[r][1],t],["exit",e[r][1],t]])),u=Qe(u,[["enter",i,t],["enter",s,t],["exit",s,t],["enter",o,t]]),u=Qe(u,Ni(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),u=Qe(u,[["exit",o,t],["enter",l,t],["exit",l,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(f=2,u=Qe(u,[["enter",e[n][1],t],["exit",e[n][1],t]])):f=0,Ye(e,r-1,n-r+3,u),n=r+u.length-f-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function nI(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=xi(r);let o;return s;function s(a){return o=a,e.enter("attentionSequence"),l(a)}function l(a){if(a===o)return e.consume(a),l;const u=e.exit("attentionSequence"),f=xi(a),d=!f||f===2&&i||n.includes(a),m=!i||i===2&&f||n.includes(r);return u._open=!!(o===42?d:d&&(i||!m)),u._close=!!(o===42?m:m&&(f||!d)),t(a)}}function Bp(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const rI={name:"autolink",tokenize:iI};function iI(e,t,n){let r=0;return i;function i(p){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o}function o(p){return lt(p)?(e.consume(p),s):p===64?n(p):u(p)}function s(p){return p===43||p===45||p===46||nt(p)?(r=1,l(p)):u(p)}function l(p){return p===58?(e.consume(p),r=0,a):(p===43||p===45||p===46||nt(p))&&r++<32?(e.consume(p),l):(r=0,u(p))}function a(p){return p===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):p===null||p===32||p===60||yl(p)?n(p):(e.consume(p),a)}function u(p){return p===64?(e.consume(p),f):ZC(p)?(e.consume(p),u):n(p)}function f(p){return nt(p)?d(p):n(p)}function d(p){return p===46?(e.consume(p),r=0,f):p===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):m(p)}function m(p){if((p===45||nt(p))&&r++<63){const x=p===45?m:d;return e.consume(p),x}return n(p)}}const Uo={partial:!0,tokenize:oI};function oI(e,t,n){return r;function r(o){return me(o)?ke(e,i,"linePrefix")(o):i(o)}function i(o){return o===null||ne(o)?t(o):n(o)}}const xy={continuation:{tokenize:lI},exit:aI,name:"blockQuote",tokenize:sI};function sI(e,t,n){const r=this;return i;function i(s){if(s===62){const l=r.containerState;return l.open||(e.enter("blockQuote",{_container:!0}),l.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(s),e.exit("blockQuoteMarker"),o}return n(s)}function o(s){return me(s)?(e.enter("blockQuotePrefixWhitespace"),e.consume(s),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(s))}}function lI(e,t,n){const r=this;return i;function i(s){return me(s)?ke(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s):o(s)}function o(s){return e.attempt(xy,t,n)(s)}}function aI(e){e.exit("blockQuote")}const vy={name:"characterEscape",tokenize:uI};function uI(e,t,n){return r;function r(o){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(o),e.exit("escapeMarker"),i}function i(o){return QC(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(o)}}const ky={name:"characterReference",tokenize:cI};function cI(e,t,n){const r=this;let i=0,o,s;return l;function l(d){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),a}function a(d){return d===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(d),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),o=31,s=nt,f(d))}function u(d){return d===88||d===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(d),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,s=GC,f):(e.enter("characterReferenceValue"),o=7,s=Yu,f(d))}function f(d){if(d===59&&i){const m=e.exit("characterReferenceValue");return s===nt&&!Nd(r.sliceSerialize(m))?n(d):(e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return s(d)&&i++<o?(e.consume(d),f):n(d)}}const Vp={partial:!0,tokenize:fI},Hp={concrete:!0,name:"codeFenced",tokenize:dI};function dI(e,t,n){const r=this,i={partial:!0,tokenize:j};let o=0,s=0,l;return a;function a(S){return u(S)}function u(S){const A=r.events[r.events.length-1];return o=A&&A[1].type==="linePrefix"?A[2].sliceSerialize(A[1],!0).length:0,l=S,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),f(S)}function f(S){return S===l?(s++,e.consume(S),f):s<3?n(S):(e.exit("codeFencedFenceSequence"),me(S)?ke(e,d,"whitespace")(S):d(S))}function d(S){return S===null||ne(S)?(e.exit("codeFencedFence"),r.interrupt?t(S):e.check(Vp,b,N)(S)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),m(S))}function m(S){return S===null||ne(S)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),d(S)):me(S)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),ke(e,p,"whitespace")(S)):S===96&&S===l?n(S):(e.consume(S),m)}function p(S){return S===null||ne(S)?d(S):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),x(S))}function x(S){return S===null||ne(S)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),d(S)):S===96&&S===l?n(S):(e.consume(S),x)}function b(S){return e.attempt(i,N,I)(S)}function I(S){return e.enter("lineEnding"),e.consume(S),e.exit("lineEnding"),y}function y(S){return o>0&&me(S)?ke(e,v,"linePrefix",o+1)(S):v(S)}function v(S){return S===null||ne(S)?e.check(Vp,b,N)(S):(e.enter("codeFlowValue"),w(S))}function w(S){return S===null||ne(S)?(e.exit("codeFlowValue"),v(S)):(e.consume(S),w)}function N(S){return e.exit("codeFenced"),t(S)}function j(S,A,E){let $=0;return C;function C(te){return S.enter("lineEnding"),S.consume(te),S.exit("lineEnding"),O}function O(te){return S.enter("codeFencedFence"),me(te)?ke(S,z,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(te):z(te)}function z(te){return te===l?(S.enter("codeFencedFenceSequence"),oe(te)):E(te)}function oe(te){return te===l?($++,S.consume(te),oe):$>=s?(S.exit("codeFencedFenceSequence"),me(te)?ke(S,Z,"whitespace")(te):Z(te)):E(te)}function Z(te){return te===null||ne(te)?(S.exit("codeFencedFence"),A(te)):E(te)}}}function fI(e,t,n){const r=this;return i;function i(s){return s===null?n(s):(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),o)}function o(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}const Ia={name:"codeIndented",tokenize:mI},pI={partial:!0,tokenize:hI};function mI(e,t,n){const r=this;return i;function i(u){return e.enter("codeIndented"),ke(e,o,"linePrefix",5)(u)}function o(u){const f=r.events[r.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?s(u):n(u)}function s(u){return u===null?a(u):ne(u)?e.attempt(pI,s,a)(u):(e.enter("codeFlowValue"),l(u))}function l(u){return u===null||ne(u)?(e.exit("codeFlowValue"),s(u)):(e.consume(u),l)}function a(u){return e.exit("codeIndented"),t(u)}}function hI(e,t,n){const r=this;return i;function i(s){return r.parser.lazy[r.now().line]?n(s):ne(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),i):ke(e,o,"linePrefix",5)(s)}function o(s){const l=r.events[r.events.length-1];return l&&l[1].type==="linePrefix"&&l[2].sliceSerialize(l[1],!0).length>=4?t(s):ne(s)?i(s):n(s)}}const gI={name:"codeText",previous:xI,resolve:yI,tokenize:vI};function yI(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(i=r):(r===t||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function xI(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function vI(e,t,n){let r=0,i,o;return s;function s(d){return e.enter("codeText"),e.enter("codeTextSequence"),l(d)}function l(d){return d===96?(e.consume(d),r++,l):(e.exit("codeTextSequence"),a(d))}function a(d){return d===null?n(d):d===32?(e.enter("space"),e.consume(d),e.exit("space"),a):d===96?(o=e.enter("codeTextSequence"),i=0,f(d)):ne(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),a):(e.enter("codeTextData"),u(d))}function u(d){return d===null||d===32||d===96||ne(d)?(e.exit("codeTextData"),a(d)):(e.consume(d),u)}function f(d){return d===96?(e.consume(d),i++,f):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(d)):(o.type="codeTextData",u(d))}}class kI{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const i=n||0;this.setCursor(Math.trunc(t));const o=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&$i(this.left,r),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),$i(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),$i(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);$i(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);$i(this.left,n.reverse())}}}function $i(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function wy(e){const t={};let n=-1,r,i,o,s,l,a,u;const f=new kI(e);for(;++n<f.length;){for(;n in t;)n=t[n];if(r=f.get(n),n&&r[1].type==="chunkFlow"&&f.get(n-1)[1].type==="listItemPrefix"&&(a=r[1]._tokenizer.events,o=0,o<a.length&&a[o][1].type==="lineEndingBlank"&&(o+=2),o<a.length&&a[o][1].type==="content"))for(;++o<a.length&&a[o][1].type!=="content";)a[o][1].type==="chunkText"&&(a[o][1]._isInFirstContentOfListItem=!0,o++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,wI(f,n)),n=t[n],u=!0);else if(r[1]._container){for(o=n,i=void 0;o--;)if(s=f.get(o),s[1].type==="lineEnding"||s[1].type==="lineEndingBlank")s[0]==="enter"&&(i&&(f.get(i)[1].type="lineEndingBlank"),s[1].type="lineEnding",i=o);else if(!(s[1].type==="linePrefix"||s[1].type==="listItemIndent"))break;i&&(r[1].end={...f.get(i)[1].start},l=f.slice(i,n),l.unshift(r),f.splice(i,n-i+1,l))}}return Ye(e,0,Number.POSITIVE_INFINITY,f.slice(0)),!u}function wI(e,t){const n=e.get(t)[1],r=e.get(t)[2];let i=t-1;const o=[];let s=n._tokenizer;s||(s=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(s._contentTypeTextTrailing=!0));const l=s.events,a=[],u={};let f,d,m=-1,p=n,x=0,b=0;const I=[b];for(;p;){for(;e.get(++i)[1]!==p;);o.push(i),p._tokenizer||(f=r.sliceStream(p),p.next||f.push(null),d&&s.defineSkip(p.start),p._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(f),p._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),d=p,p=p.next}for(p=n;++m<l.length;)l[m][0]==="exit"&&l[m-1][0]==="enter"&&l[m][1].type===l[m-1][1].type&&l[m][1].start.line!==l[m][1].end.line&&(b=m+1,I.push(b),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(s.events=[],p?(p._tokenizer=void 0,p.previous=void 0):I.pop(),m=I.length;m--;){const y=l.slice(I[m],I[m+1]),v=o.pop();a.push([v,v+y.length-1]),e.splice(v,2,y)}for(a.reverse(),m=-1;++m<a.length;)u[x+a[m][0]]=x+a[m][1],x+=a[m][1]-a[m][0]-1;return u}const bI={resolve:_I,tokenize:CI},SI={partial:!0,tokenize:II};function _I(e){return wy(e),e}function CI(e,t){let n;return r;function r(l){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),i(l)}function i(l){return l===null?o(l):ne(l)?e.check(SI,s,o)(l):(e.consume(l),i)}function o(l){return e.exit("chunkContent"),e.exit("content"),t(l)}function s(l){return e.consume(l),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,i}}function II(e,t,n){const r=this;return i;function i(s){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),ke(e,o,"linePrefix")}function o(s){if(s===null||ne(s))return n(s);const l=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&l&&l[1].type==="linePrefix"&&l[2].sliceSerialize(l[1],!0).length>=4?t(s):e.interrupt(r.parser.constructs.flow,n,t)(s)}}function by(e,t,n,r,i,o,s,l,a){const u=a||Number.POSITIVE_INFINITY;let f=0;return d;function d(y){return y===60?(e.enter(r),e.enter(i),e.enter(o),e.consume(y),e.exit(o),m):y===null||y===32||y===41||yl(y)?n(y):(e.enter(r),e.enter(s),e.enter(l),e.enter("chunkString",{contentType:"string"}),b(y))}function m(y){return y===62?(e.enter(o),e.consume(y),e.exit(o),e.exit(i),e.exit(r),t):(e.enter(l),e.enter("chunkString",{contentType:"string"}),p(y))}function p(y){return y===62?(e.exit("chunkString"),e.exit(l),m(y)):y===null||y===60||ne(y)?n(y):(e.consume(y),y===92?x:p)}function x(y){return y===60||y===62||y===92?(e.consume(y),p):p(y)}function b(y){return!f&&(y===null||y===41||_e(y))?(e.exit("chunkString"),e.exit(l),e.exit(s),e.exit(r),t(y)):f<u&&y===40?(e.consume(y),f++,b):y===41?(e.consume(y),f--,b):y===null||y===32||y===40||yl(y)?n(y):(e.consume(y),y===92?I:b)}function I(y){return y===40||y===41||y===92?(e.consume(y),b):b(y)}}function Sy(e,t,n,r,i,o){const s=this;let l=0,a;return u;function u(p){return e.enter(r),e.enter(i),e.consume(p),e.exit(i),e.enter(o),f}function f(p){return l>999||p===null||p===91||p===93&&!a||p===94&&!l&&"_hiddenFootnoteSupport"in s.parser.constructs?n(p):p===93?(e.exit(o),e.enter(i),e.consume(p),e.exit(i),e.exit(r),t):ne(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),f):(e.enter("chunkString",{contentType:"string"}),d(p))}function d(p){return p===null||p===91||p===93||ne(p)||l++>999?(e.exit("chunkString"),f(p)):(e.consume(p),a||(a=!me(p)),p===92?m:d)}function m(p){return p===91||p===92||p===93?(e.consume(p),l++,d):d(p)}}function _y(e,t,n,r,i,o){let s;return l;function l(m){return m===34||m===39||m===40?(e.enter(r),e.enter(i),e.consume(m),e.exit(i),s=m===40?41:m,a):n(m)}function a(m){return m===s?(e.enter(i),e.consume(m),e.exit(i),e.exit(r),t):(e.enter(o),u(m))}function u(m){return m===s?(e.exit(o),a(s)):m===null?n(m):ne(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),ke(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),f(m))}function f(m){return m===s||m===null||ne(m)?(e.exit("chunkString"),u(m)):(e.consume(m),m===92?d:f)}function d(m){return m===s||m===92?(e.consume(m),f):f(m)}}function ro(e,t){let n;return r;function r(i){return ne(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):me(i)?ke(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const NI={name:"definition",tokenize:TI},EI={partial:!0,tokenize:jI};function TI(e,t,n){const r=this;let i;return o;function o(p){return e.enter("definition"),s(p)}function s(p){return Sy.call(r,e,l,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function l(p){return i=Zt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),a):n(p)}function a(p){return _e(p)?ro(e,u)(p):u(p)}function u(p){return by(e,f,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function f(p){return e.attempt(EI,d,d)(p)}function d(p){return me(p)?ke(e,m,"whitespace")(p):m(p)}function m(p){return p===null||ne(p)?(e.exit("definition"),r.parser.defined.push(i),t(p)):n(p)}}function jI(e,t,n){return r;function r(l){return _e(l)?ro(e,i)(l):n(l)}function i(l){return _y(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(l)}function o(l){return me(l)?ke(e,s,"whitespace")(l):s(l)}function s(l){return l===null||ne(l)?t(l):n(l)}}const AI={name:"hardBreakEscape",tokenize:PI};function PI(e,t,n){return r;function r(o){return e.enter("hardBreakEscape"),e.consume(o),i}function i(o){return ne(o)?(e.exit("hardBreakEscape"),t(o)):n(o)}}const RI={name:"headingAtx",resolve:zI,tokenize:MI};function zI(e,t){let n=e.length-2,r=3,i,o;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},o={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},Ye(e,r,n-r+1,[["enter",i,t],["enter",o,t],["exit",o,t],["exit",i,t]])),e}function MI(e,t,n){let r=0;return i;function i(f){return e.enter("atxHeading"),o(f)}function o(f){return e.enter("atxHeadingSequence"),s(f)}function s(f){return f===35&&r++<6?(e.consume(f),s):f===null||_e(f)?(e.exit("atxHeadingSequence"),l(f)):n(f)}function l(f){return f===35?(e.enter("atxHeadingSequence"),a(f)):f===null||ne(f)?(e.exit("atxHeading"),t(f)):me(f)?ke(e,l,"whitespace")(f):(e.enter("atxHeadingText"),u(f))}function a(f){return f===35?(e.consume(f),a):(e.exit("atxHeadingSequence"),l(f))}function u(f){return f===null||f===35||_e(f)?(e.exit("atxHeadingText"),l(f)):(e.consume(f),u)}}const LI=["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"],qp=["pre","script","style","textarea"],OI={concrete:!0,name:"htmlFlow",resolveTo:$I,tokenize:UI},DI={partial:!0,tokenize:VI},FI={partial:!0,tokenize:BI};function $I(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function UI(e,t,n){const r=this;let i,o,s,l,a;return u;function u(_){return f(_)}function f(_){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(_),d}function d(_){return _===33?(e.consume(_),m):_===47?(e.consume(_),o=!0,b):_===63?(e.consume(_),i=3,r.interrupt?t:k):lt(_)?(e.consume(_),s=String.fromCharCode(_),I):n(_)}function m(_){return _===45?(e.consume(_),i=2,p):_===91?(e.consume(_),i=5,l=0,x):lt(_)?(e.consume(_),i=4,r.interrupt?t:k):n(_)}function p(_){return _===45?(e.consume(_),r.interrupt?t:k):n(_)}function x(_){const Re="CDATA[";return _===Re.charCodeAt(l++)?(e.consume(_),l===Re.length?r.interrupt?t:z:x):n(_)}function b(_){return lt(_)?(e.consume(_),s=String.fromCharCode(_),I):n(_)}function I(_){if(_===null||_===47||_===62||_e(_)){const Re=_===47,Ce=s.toLowerCase();return!Re&&!o&&qp.includes(Ce)?(i=1,r.interrupt?t(_):z(_)):LI.includes(s.toLowerCase())?(i=6,Re?(e.consume(_),y):r.interrupt?t(_):z(_)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(_):o?v(_):w(_))}return _===45||nt(_)?(e.consume(_),s+=String.fromCharCode(_),I):n(_)}function y(_){return _===62?(e.consume(_),r.interrupt?t:z):n(_)}function v(_){return me(_)?(e.consume(_),v):C(_)}function w(_){return _===47?(e.consume(_),C):_===58||_===95||lt(_)?(e.consume(_),N):me(_)?(e.consume(_),w):C(_)}function N(_){return _===45||_===46||_===58||_===95||nt(_)?(e.consume(_),N):j(_)}function j(_){return _===61?(e.consume(_),S):me(_)?(e.consume(_),j):w(_)}function S(_){return _===null||_===60||_===61||_===62||_===96?n(_):_===34||_===39?(e.consume(_),a=_,A):me(_)?(e.consume(_),S):E(_)}function A(_){return _===a?(e.consume(_),a=null,$):_===null||ne(_)?n(_):(e.consume(_),A)}function E(_){return _===null||_===34||_===39||_===47||_===60||_===61||_===62||_===96||_e(_)?j(_):(e.consume(_),E)}function $(_){return _===47||_===62||me(_)?w(_):n(_)}function C(_){return _===62?(e.consume(_),O):n(_)}function O(_){return _===null||ne(_)?z(_):me(_)?(e.consume(_),O):n(_)}function z(_){return _===45&&i===2?(e.consume(_),K):_===60&&i===1?(e.consume(_),se):_===62&&i===4?(e.consume(_),ae):_===63&&i===3?(e.consume(_),k):_===93&&i===5?(e.consume(_),W):ne(_)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(DI,ye,oe)(_)):_===null||ne(_)?(e.exit("htmlFlowData"),oe(_)):(e.consume(_),z)}function oe(_){return e.check(FI,Z,ye)(_)}function Z(_){return e.enter("lineEnding"),e.consume(_),e.exit("lineEnding"),te}function te(_){return _===null||ne(_)?oe(_):(e.enter("htmlFlowData"),z(_))}function K(_){return _===45?(e.consume(_),k):z(_)}function se(_){return _===47?(e.consume(_),s="",D):z(_)}function D(_){if(_===62){const Re=s.toLowerCase();return qp.includes(Re)?(e.consume(_),ae):z(_)}return lt(_)&&s.length<8?(e.consume(_),s+=String.fromCharCode(_),D):z(_)}function W(_){return _===93?(e.consume(_),k):z(_)}function k(_){return _===62?(e.consume(_),ae):_===45&&i===2?(e.consume(_),k):z(_)}function ae(_){return _===null||ne(_)?(e.exit("htmlFlowData"),ye(_)):(e.consume(_),ae)}function ye(_){return e.exit("htmlFlow"),t(_)}}function BI(e,t,n){const r=this;return i;function i(s){return ne(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),o):n(s)}function o(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}function VI(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Uo,t,n)}}const HI={name:"htmlText",tokenize:qI};function qI(e,t,n){const r=this;let i,o,s;return l;function l(k){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(k),a}function a(k){return k===33?(e.consume(k),u):k===47?(e.consume(k),j):k===63?(e.consume(k),w):lt(k)?(e.consume(k),E):n(k)}function u(k){return k===45?(e.consume(k),f):k===91?(e.consume(k),o=0,x):lt(k)?(e.consume(k),v):n(k)}function f(k){return k===45?(e.consume(k),p):n(k)}function d(k){return k===null?n(k):k===45?(e.consume(k),m):ne(k)?(s=d,se(k)):(e.consume(k),d)}function m(k){return k===45?(e.consume(k),p):d(k)}function p(k){return k===62?K(k):k===45?m(k):d(k)}function x(k){const ae="CDATA[";return k===ae.charCodeAt(o++)?(e.consume(k),o===ae.length?b:x):n(k)}function b(k){return k===null?n(k):k===93?(e.consume(k),I):ne(k)?(s=b,se(k)):(e.consume(k),b)}function I(k){return k===93?(e.consume(k),y):b(k)}function y(k){return k===62?K(k):k===93?(e.consume(k),y):b(k)}function v(k){return k===null||k===62?K(k):ne(k)?(s=v,se(k)):(e.consume(k),v)}function w(k){return k===null?n(k):k===63?(e.consume(k),N):ne(k)?(s=w,se(k)):(e.consume(k),w)}function N(k){return k===62?K(k):w(k)}function j(k){return lt(k)?(e.consume(k),S):n(k)}function S(k){return k===45||nt(k)?(e.consume(k),S):A(k)}function A(k){return ne(k)?(s=A,se(k)):me(k)?(e.consume(k),A):K(k)}function E(k){return k===45||nt(k)?(e.consume(k),E):k===47||k===62||_e(k)?$(k):n(k)}function $(k){return k===47?(e.consume(k),K):k===58||k===95||lt(k)?(e.consume(k),C):ne(k)?(s=$,se(k)):me(k)?(e.consume(k),$):K(k)}function C(k){return k===45||k===46||k===58||k===95||nt(k)?(e.consume(k),C):O(k)}function O(k){return k===61?(e.consume(k),z):ne(k)?(s=O,se(k)):me(k)?(e.consume(k),O):$(k)}function z(k){return k===null||k===60||k===61||k===62||k===96?n(k):k===34||k===39?(e.consume(k),i=k,oe):ne(k)?(s=z,se(k)):me(k)?(e.consume(k),z):(e.consume(k),Z)}function oe(k){return k===i?(e.consume(k),i=void 0,te):k===null?n(k):ne(k)?(s=oe,se(k)):(e.consume(k),oe)}function Z(k){return k===null||k===34||k===39||k===60||k===61||k===96?n(k):k===47||k===62||_e(k)?$(k):(e.consume(k),Z)}function te(k){return k===47||k===62||_e(k)?$(k):n(k)}function K(k){return k===62?(e.consume(k),e.exit("htmlTextData"),e.exit("htmlText"),t):n(k)}function se(k){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),D}function D(k){return me(k)?ke(e,W,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(k):W(k)}function W(k){return e.enter("htmlTextData"),s(k)}}const Ed={name:"labelEnd",resolveAll:QI,resolveTo:KI,tokenize:YI},WI={tokenize:XI},ZI={tokenize:JI},GI={tokenize:e4};function QI(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const i=r.type==="labelImage"?4:2;r.type="data",t+=i}}return e.length!==n.length&&Ye(e,0,e.length,n),e}function KI(e,t){let n=e.length,r=0,i,o,s,l;for(;n--;)if(i=e[n][1],o){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[n][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(s){if(e[n][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(o=n,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(s=n);const a={type:e[o][1].type==="labelLink"?"link":"image",start:{...e[o][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[o][1].start},end:{...e[s][1].end}},f={type:"labelText",start:{...e[o+r+2][1].end},end:{...e[s-2][1].start}};return l=[["enter",a,t],["enter",u,t]],l=Qe(l,e.slice(o+1,o+r+3)),l=Qe(l,[["enter",f,t]]),l=Qe(l,Ni(t.parser.constructs.insideSpan.null,e.slice(o+r+4,s-3),t)),l=Qe(l,[["exit",f,t],e[s-2],e[s-1],["exit",u,t]]),l=Qe(l,e.slice(s+1)),l=Qe(l,[["exit",a,t]]),Ye(e,o,e.length,l),e}function YI(e,t,n){const r=this;let i=r.events.length,o,s;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){o=r.events[i][1];break}return l;function l(m){return o?o._inactive?d(m):(s=r.parser.defined.includes(Zt(r.sliceSerialize({start:o.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(m),e.exit("labelMarker"),e.exit("labelEnd"),a):n(m)}function a(m){return m===40?e.attempt(WI,f,s?f:d)(m):m===91?e.attempt(ZI,f,s?u:d)(m):s?f(m):d(m)}function u(m){return e.attempt(GI,f,d)(m)}function f(m){return t(m)}function d(m){return o._balanced=!0,n(m)}}function XI(e,t,n){return r;function r(d){return e.enter("resource"),e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),i}function i(d){return _e(d)?ro(e,o)(d):o(d)}function o(d){return d===41?f(d):by(e,s,l,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(d)}function s(d){return _e(d)?ro(e,a)(d):f(d)}function l(d){return n(d)}function a(d){return d===34||d===39||d===40?_y(e,u,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(d):f(d)}function u(d){return _e(d)?ro(e,f)(d):f(d)}function f(d){return d===41?(e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),e.exit("resource"),t):n(d)}}function JI(e,t,n){const r=this;return i;function i(l){return Sy.call(r,e,o,s,"reference","referenceMarker","referenceString")(l)}function o(l){return r.parser.defined.includes(Zt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(l):n(l)}function s(l){return n(l)}}function e4(e,t,n){return r;function r(o){return e.enter("reference"),e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),i}function i(o){return o===93?(e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),e.exit("reference"),t):n(o)}}const t4={name:"labelStartImage",resolveAll:Ed.resolveAll,tokenize:n4};function n4(e,t,n){const r=this;return i;function i(l){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(l),e.exit("labelImageMarker"),o}function o(l){return l===91?(e.enter("labelMarker"),e.consume(l),e.exit("labelMarker"),e.exit("labelImage"),s):n(l)}function s(l){return l===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(l):t(l)}}const r4={name:"labelStartLink",resolveAll:Ed.resolveAll,tokenize:i4};function i4(e,t,n){const r=this;return i;function i(s){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelLink"),o}function o(s){return s===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(s):t(s)}}const Na={name:"lineEnding",tokenize:o4};function o4(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),ke(e,t,"linePrefix")}}const As={name:"thematicBreak",tokenize:s4};function s4(e,t,n){let r=0,i;return o;function o(u){return e.enter("thematicBreak"),s(u)}function s(u){return i=u,l(u)}function l(u){return u===i?(e.enter("thematicBreakSequence"),a(u)):r>=3&&(u===null||ne(u))?(e.exit("thematicBreak"),t(u)):n(u)}function a(u){return u===i?(e.consume(u),r++,a):(e.exit("thematicBreakSequence"),me(u)?ke(e,l,"whitespace")(u):l(u))}}const pt={continuation:{tokenize:c4},exit:f4,name:"list",tokenize:u4},l4={partial:!0,tokenize:p4},a4={partial:!0,tokenize:d4};function u4(e,t,n){const r=this,i=r.events[r.events.length-1];let o=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,s=0;return l;function l(p){const x=r.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(x==="listUnordered"?!r.containerState.marker||p===r.containerState.marker:Yu(p)){if(r.containerState.type||(r.containerState.type=x,e.enter(x,{_container:!0})),x==="listUnordered")return e.enter("listItemPrefix"),p===42||p===45?e.check(As,n,u)(p):u(p);if(!r.interrupt||p===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),a(p)}return n(p)}function a(p){return Yu(p)&&++s<10?(e.consume(p),a):(!r.interrupt||s<2)&&(r.containerState.marker?p===r.containerState.marker:p===41||p===46)?(e.exit("listItemValue"),u(p)):n(p)}function u(p){return e.enter("listItemMarker"),e.consume(p),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||p,e.check(Uo,r.interrupt?n:f,e.attempt(l4,m,d))}function f(p){return r.containerState.initialBlankLine=!0,o++,m(p)}function d(p){return me(p)?(e.enter("listItemPrefixWhitespace"),e.consume(p),e.exit("listItemPrefixWhitespace"),m):n(p)}function m(p){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(p)}}function c4(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Uo,i,o);function i(l){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,ke(e,t,"listItemIndent",r.containerState.size+1)(l)}function o(l){return r.containerState.furtherBlankLines||!me(l)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,s(l)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(a4,t,s)(l))}function s(l){return r.containerState._closeFlow=!0,r.interrupt=void 0,ke(e,e.attempt(pt,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l)}}function d4(e,t,n){const r=this;return ke(e,i,"listItemIndent",r.containerState.size+1);function i(o){const s=r.events[r.events.length-1];return s&&s[1].type==="listItemIndent"&&s[2].sliceSerialize(s[1],!0).length===r.containerState.size?t(o):n(o)}}function f4(e){e.exit(this.containerState.type)}function p4(e,t,n){const r=this;return ke(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(o){const s=r.events[r.events.length-1];return!me(o)&&s&&s[1].type==="listItemPrefixWhitespace"?t(o):n(o)}}const Wp={name:"setextUnderline",resolveTo:m4,tokenize:h4};function m4(e,t){let n=e.length,r,i,o;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!o&&e[n][1].type==="definition"&&(o=n);const s={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",o?(e.splice(i,0,["enter",s,t]),e.splice(o+1,0,["exit",e[r][1],t]),e[r][1].end={...e[o][1].end}):e[r][1]=s,e.push(["exit",s,t]),e}function h4(e,t,n){const r=this;let i;return o;function o(u){let f=r.events.length,d;for(;f--;)if(r.events[f][1].type!=="lineEnding"&&r.events[f][1].type!=="linePrefix"&&r.events[f][1].type!=="content"){d=r.events[f][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||d)?(e.enter("setextHeadingLine"),i=u,s(u)):n(u)}function s(u){return e.enter("setextHeadingLineSequence"),l(u)}function l(u){return u===i?(e.consume(u),l):(e.exit("setextHeadingLineSequence"),me(u)?ke(e,a,"lineSuffix")(u):a(u))}function a(u){return u===null||ne(u)?(e.exit("setextHeadingLine"),t(u)):n(u)}}const g4={tokenize:y4};function y4(e){const t=this,n=e.attempt(Uo,r,e.attempt(this.parser.constructs.flowInitial,i,ke(e,e.attempt(this.parser.constructs.flow,i,e.attempt(bI,i)),"linePrefix")));return n;function r(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const x4={resolveAll:Iy()},v4=Cy("string"),k4=Cy("text");function Cy(e){return{resolveAll:Iy(e==="text"?w4:void 0),tokenize:t};function t(n){const r=this,i=this.parser.constructs[e],o=n.attempt(i,s,l);return s;function s(f){return u(f)?o(f):l(f)}function l(f){if(f===null){n.consume(f);return}return n.enter("data"),n.consume(f),a}function a(f){return u(f)?(n.exit("data"),o(f)):(n.consume(f),a)}function u(f){if(f===null)return!0;const d=i[f];let m=-1;if(d)for(;++m<d.length;){const p=d[m];if(!p.previous||p.previous.call(r,r.previous))return!0}return!1}}}function Iy(e){return t;function t(n,r){let i=-1,o;for(;++i<=n.length;)o===void 0?n[i]&&n[i][1].type==="data"&&(o=i,i++):(!n[i]||n[i][1].type!=="data")&&(i!==o+2&&(n[o][1].end=n[i-1][1].end,n.splice(o+2,i-o-2),i=o+2),o=void 0);return e?e(n,r):n}}function w4(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],i=t.sliceStream(r);let o=i.length,s=-1,l=0,a;for(;o--;){const u=i[o];if(typeof u=="string"){for(s=u.length;u.charCodeAt(s-1)===32;)l++,s--;if(s)break;s=-1}else if(u===-2)a=!0,l++;else if(u!==-1){o++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(l=0),l){const u={type:n===e.length||a||l<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?s:r.start._bufferIndex+s,_index:r.start._index+o,line:r.end.line,column:r.end.column-l,offset:r.end.offset-l},end:{...r.end}};r.end={...u.start},r.start.offset===r.end.offset?Object.assign(r,u):(e.splice(n,0,["enter",u,t],["exit",u,t]),n+=2)}n++}return e}const b4={42:pt,43:pt,45:pt,48:pt,49:pt,50:pt,51:pt,52:pt,53:pt,54:pt,55:pt,56:pt,57:pt,62:xy},S4={91:NI},_4={[-2]:Ia,[-1]:Ia,32:Ia},C4={35:RI,42:As,45:[Wp,As],60:OI,61:Wp,95:As,96:Hp,126:Hp},I4={38:ky,92:vy},N4={[-5]:Na,[-4]:Na,[-3]:Na,33:t4,38:ky,42:Xu,60:[rI,HI],91:r4,92:[AI,vy],93:Ed,95:Xu,96:gI},E4={null:[Xu,x4]},T4={null:[42,95]},j4={null:[]},A4=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:T4,contentInitial:S4,disable:j4,document:b4,flow:C4,flowInitial:_4,insideSpan:E4,string:I4,text:N4},Symbol.toStringTag,{value:"Module"}));function P4(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const i={},o=[];let s=[],l=[];const a={attempt:A(j),check:A(S),consume:v,enter:w,exit:N,interrupt:A(S,{interrupt:!0})},u={code:null,containerState:{},defineSkip:b,events:[],now:x,parser:e,previous:null,sliceSerialize:m,sliceStream:p,write:d};let f=t.tokenize.call(u,a);return t.resolveAll&&o.push(t),u;function d(O){return s=Qe(s,O),I(),s[s.length-1]!==null?[]:(E(t,0),u.events=Ni(o,u.events,u),u.events)}function m(O,z){return z4(p(O),z)}function p(O){return R4(s,O)}function x(){const{_bufferIndex:O,_index:z,line:oe,column:Z,offset:te}=r;return{_bufferIndex:O,_index:z,line:oe,column:Z,offset:te}}function b(O){i[O.line]=O.column,C()}function I(){let O;for(;r._index<s.length;){const z=s[r._index];if(typeof z=="string")for(O=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===O&&r._bufferIndex<z.length;)y(z.charCodeAt(r._bufferIndex));else y(z)}}function y(O){f=f(O)}function v(O){ne(O)?(r.line++,r.column=1,r.offset+=O===-3?2:1,C()):O!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===s[r._index].length&&(r._bufferIndex=-1,r._index++)),u.previous=O}function w(O,z){const oe=z||{};return oe.type=O,oe.start=x(),u.events.push(["enter",oe,u]),l.push(oe),oe}function N(O){const z=l.pop();return z.end=x(),u.events.push(["exit",z,u]),z}function j(O,z){E(O,z.from)}function S(O,z){z.restore()}function A(O,z){return oe;function oe(Z,te,K){let se,D,W,k;return Array.isArray(Z)?ye(Z):"tokenize"in Z?ye([Z]):ae(Z);function ae(ue){return ot;function ot(Ft){const Te=Ft!==null&&ue[Ft],un=Ft!==null&&ue.null,cn=[...Array.isArray(Te)?Te:Te?[Te]:[],...Array.isArray(un)?un:un?[un]:[]];return ye(cn)(Ft)}}function ye(ue){return se=ue,D=0,ue.length===0?K:_(ue[D])}function _(ue){return ot;function ot(Ft){return k=$(),W=ue,ue.partial||(u.currentConstruct=ue),ue.name&&u.parser.constructs.disable.null.includes(ue.name)?Ce():ue.tokenize.call(z?Object.assign(Object.create(u),z):u,a,Re,Ce)(Ft)}}function Re(ue){return O(W,k),te}function Ce(ue){return k.restore(),++D<se.length?_(se[D]):K}}}function E(O,z){O.resolveAll&&!o.includes(O)&&o.push(O),O.resolve&&Ye(u.events,z,u.events.length-z,O.resolve(u.events.slice(z),u)),O.resolveTo&&(u.events=O.resolveTo(u.events,u))}function $(){const O=x(),z=u.previous,oe=u.currentConstruct,Z=u.events.length,te=Array.from(l);return{from:Z,restore:K};function K(){r=O,u.previous=z,u.currentConstruct=oe,u.events.length=Z,l=te,C()}}function C(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function R4(e,t){const n=t.start._index,r=t.start._bufferIndex,i=t.end._index,o=t.end._bufferIndex;let s;if(n===i)s=[e[n].slice(r,o)];else{if(s=e.slice(n,i),r>-1){const l=s[0];typeof l=="string"?s[0]=l.slice(r):s.shift()}o>0&&s.push(e[i].slice(0,o))}return s}function z4(e,t){let n=-1;const r=[];let i;for(;++n<e.length;){const o=e[n];let s;if(typeof o=="string")s=o;else switch(o){case-5:{s="\r";break}case-4:{s=`
276
+ */const bw=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],Sw=pe("zap",bw);function op(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function _w(...e){return t=>{let n=!1;const r=e.map(i=>{const o=op(i,t);return!n&&typeof o=="function"&&(n=!0),o});if(n)return()=>{for(let i=0;i<r.length;i++){const o=r[i];typeof o=="function"?o():op(e[i],null)}}}}var Cw=Symbol.for("react.lazy"),il=t0[" use ".trim().toString()];function Iw(e){return typeof e=="object"&&e!==null&&"then"in e}function n1(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===Cw&&"_payload"in e&&Iw(e._payload)}function Nw(e){const t=Tw(e),n=U.forwardRef((r,i)=>{let{children:o,...s}=r;n1(o)&&typeof il=="function"&&(o=il(o._payload));const l=U.Children.toArray(o),a=l.find(Aw);if(a){const u=a.props.children,f=l.map(d=>d===a?U.Children.count(u)>1?U.Children.only(null):U.isValidElement(u)?u.props.children:null:d);return h.jsx(t,{...s,ref:i,children:U.isValidElement(u)?U.cloneElement(u,void 0,f):null})}return h.jsx(t,{...s,ref:i,children:o})});return n.displayName=`${e}.Slot`,n}var Ew=Nw("Slot");function Tw(e){const t=U.forwardRef((n,r)=>{let{children:i,...o}=n;if(n1(i)&&typeof il=="function"&&(i=il(i._payload)),U.isValidElement(i)){const s=Rw(i),l=Pw(o,i.props);return i.type!==U.Fragment&&(l.ref=r?_w(r,s):s),U.cloneElement(i,l)}return U.Children.count(i)>1?U.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var jw=Symbol("radix.slottable");function Aw(e){return U.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===jw}function Pw(e,t){const n={...t};for(const r in t){const i=e[r],o=t[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...l)=>{const a=o(...l);return i(...l),a}:i&&(n[r]=i):r==="style"?n[r]={...i,...o}:r==="className"&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}function Rw(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function r1(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=r1(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function i1(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=r1(e))&&(r&&(r+=" "),r+=t);return r}const sp=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,lp=i1,zw=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return lp(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:i,defaultVariants:o}=t,s=Object.keys(i).map(u=>{const f=n==null?void 0:n[u],d=o==null?void 0:o[u];if(f===null)return null;const m=sp(f)||sp(d);return i[u][m]}),l=n&&Object.entries(n).reduce((u,f)=>{let[d,m]=f;return m===void 0||(u[d]=m),u},{}),a=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,f)=>{let{class:d,className:m,...p}=f;return Object.entries(p).every(x=>{let[b,I]=x;return Array.isArray(I)?I.includes({...o,...l}[b]):{...o,...l}[b]===I})?[...u,d,m]:u},[]);return lp(e,s,a,n==null?void 0:n.class,n==null?void 0:n.className)},Mw=(e,t)=>{const n=new Array(e.length+t.length);for(let r=0;r<e.length;r++)n[r]=e[r];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},Lw=(e,t)=>({classGroupId:e,validator:t}),o1=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),ol="-",ap=[],Ow="arbitrary..",Dw=e=>{const t=$w(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{if(s.startsWith("[")&&s.endsWith("]"))return Fw(s);const l=s.split(ol),a=l[0]===""&&l.length>1?1:0;return s1(l,a,t)},getConflictingClassGroupIds:(s,l)=>{if(l){const a=r[s],u=n[s];return a?u?Mw(u,a):a:u||ap}return n[s]||ap}}},s1=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const i=e[t],o=n.nextPart.get(i);if(o){const u=s1(e,t+1,o);if(u)return u}const s=n.validators;if(s===null)return;const l=t===0?e.join(ol):e.slice(t).join(ol),a=s.length;for(let u=0;u<a;u++){const f=s[u];if(f.validator(l))return f.classGroupId}},Fw=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),r=t.slice(0,n);return r?Ow+r:void 0})(),$w=e=>{const{theme:t,classGroups:n}=e;return Uw(n,t)},Uw=(e,t)=>{const n=o1();for(const r in e){const i=e[r];nd(i,n,r,t)}return n},nd=(e,t,n,r)=>{const i=e.length;for(let o=0;o<i;o++){const s=e[o];Bw(s,t,n,r)}},Bw=(e,t,n,r)=>{if(typeof e=="string"){Vw(e,t,n);return}if(typeof e=="function"){Hw(e,t,n,r);return}qw(e,t,n,r)},Vw=(e,t,n)=>{const r=e===""?t:l1(t,e);r.classGroupId=n},Hw=(e,t,n,r)=>{if(Ww(e)){nd(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(Lw(n,e))},qw=(e,t,n,r)=>{const i=Object.entries(e),o=i.length;for(let s=0;s<o;s++){const[l,a]=i[s];nd(a,l1(t,l),n,r)}},l1=(e,t)=>{let n=e;const r=t.split(ol),i=r.length;for(let o=0;o<i;o++){const s=r[o];let l=n.nextPart.get(s);l||(l=o1(),n.nextPart.set(s,l)),n=l}return n},Ww=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,Zw=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const i=(o,s)=>{n[o]=s,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(o){let s=n[o];if(s!==void 0)return s;if((s=r[o])!==void 0)return i(o,s),s},set(o,s){o in n?n[o]=s:i(o,s)}}},zu="!",up=":",Gw=[],cp=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),Qw=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=i=>{const o=[];let s=0,l=0,a=0,u;const f=i.length;for(let b=0;b<f;b++){const I=i[b];if(s===0&&l===0){if(I===up){o.push(i.slice(a,b)),a=b+1;continue}if(I==="/"){u=b;continue}}I==="["?s++:I==="]"?s--:I==="("?l++:I===")"&&l--}const d=o.length===0?i:i.slice(a);let m=d,p=!1;d.endsWith(zu)?(m=d.slice(0,-1),p=!0):d.startsWith(zu)&&(m=d.slice(1),p=!0);const x=u&&u>a?u-a:void 0;return cp(o,p,m,x)};if(t){const i=t+up,o=r;r=s=>s.startsWith(i)?o(s.slice(i.length)):cp(Gw,!1,s,void 0,!0)}if(n){const i=r;r=o=>n({className:o,parseClassName:i})}return r},Kw=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,r)=>{t.set(n,1e6+r)}),n=>{const r=[];let i=[];for(let o=0;o<n.length;o++){const s=n[o],l=s[0]==="[",a=t.has(s);l||a?(i.length>0&&(i.sort(),r.push(...i),i=[]),r.push(s)):i.push(s)}return i.length>0&&(i.sort(),r.push(...i)),r}},Yw=e=>({cache:Zw(e.cacheSize),parseClassName:Qw(e),sortModifiers:Kw(e),...Dw(e)}),Xw=/\s+/,Jw=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:o}=t,s=[],l=e.trim().split(Xw);let a="";for(let u=l.length-1;u>=0;u-=1){const f=l[u],{isExternal:d,modifiers:m,hasImportantModifier:p,baseClassName:x,maybePostfixModifierPosition:b}=n(f);if(d){a=f+(a.length>0?" "+a:a);continue}let I=!!b,y=r(I?x.substring(0,b):x);if(!y){if(!I){a=f+(a.length>0?" "+a:a);continue}if(y=r(x),!y){a=f+(a.length>0?" "+a:a);continue}I=!1}const v=m.length===0?"":m.length===1?m[0]:o(m).join(":"),w=p?v+zu:v,N=w+y;if(s.indexOf(N)>-1)continue;s.push(N);const j=i(y,I);for(let S=0;S<j.length;++S){const A=j[S];s.push(w+A)}a=f+(a.length>0?" "+a:a)}return a},eb=(...e)=>{let t=0,n,r,i="";for(;t<e.length;)(n=e[t++])&&(r=a1(n))&&(i&&(i+=" "),i+=r);return i},a1=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=a1(e[r]))&&(n&&(n+=" "),n+=t);return n},tb=(e,...t)=>{let n,r,i,o;const s=a=>{const u=t.reduce((f,d)=>d(f),e());return n=Yw(u),r=n.cache.get,i=n.cache.set,o=l,l(a)},l=a=>{const u=r(a);if(u)return u;const f=Jw(a,n);return i(a,f),f};return o=s,(...a)=>o(eb(...a))},nb=[],Ve=e=>{const t=n=>n[e]||nb;return t.isThemeGetter=!0,t},u1=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,c1=/^\((?:(\w[\w-]*):)?(.+)\)$/i,rb=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,ib=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ob=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,sb=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,lb=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ab=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Rn=e=>rb.test(e),fe=e=>!!e&&!Number.isNaN(Number(e)),zn=e=>!!e&&Number.isInteger(Number(e)),ka=e=>e.endsWith("%")&&fe(e.slice(0,-1)),pn=e=>ib.test(e),d1=()=>!0,ub=e=>ob.test(e)&&!sb.test(e),rd=()=>!1,cb=e=>lb.test(e),db=e=>ab.test(e),fb=e=>!Y(e)&&!X(e),pb=e=>lr(e,m1,rd),Y=e=>u1.test(e),cr=e=>lr(e,h1,ub),dp=e=>lr(e,wb,fe),mb=e=>lr(e,y1,d1),hb=e=>lr(e,g1,rd),fp=e=>lr(e,f1,rd),gb=e=>lr(e,p1,db),ls=e=>lr(e,x1,cb),X=e=>c1.test(e),Fi=e=>Rr(e,h1),yb=e=>Rr(e,g1),pp=e=>Rr(e,f1),xb=e=>Rr(e,m1),vb=e=>Rr(e,p1),as=e=>Rr(e,x1,!0),kb=e=>Rr(e,y1,!0),lr=(e,t,n)=>{const r=u1.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Rr=(e,t,n=!1)=>{const r=c1.exec(e);return r?r[1]?t(r[1]):n:!1},f1=e=>e==="position"||e==="percentage",p1=e=>e==="image"||e==="url",m1=e=>e==="length"||e==="size"||e==="bg-size",h1=e=>e==="length",wb=e=>e==="number",g1=e=>e==="family-name",y1=e=>e==="number"||e==="weight",x1=e=>e==="shadow",bb=()=>{const e=Ve("color"),t=Ve("font"),n=Ve("text"),r=Ve("font-weight"),i=Ve("tracking"),o=Ve("leading"),s=Ve("breakpoint"),l=Ve("container"),a=Ve("spacing"),u=Ve("radius"),f=Ve("shadow"),d=Ve("inset-shadow"),m=Ve("text-shadow"),p=Ve("drop-shadow"),x=Ve("blur"),b=Ve("perspective"),I=Ve("aspect"),y=Ve("ease"),v=Ve("animate"),w=()=>["auto","avoid","all","avoid-page","page","left","right","column"],N=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],j=()=>[...N(),X,Y],S=()=>["auto","hidden","clip","visible","scroll"],A=()=>["auto","contain","none"],E=()=>[X,Y,a],$=()=>[Rn,"full","auto",...E()],C=()=>[zn,"none","subgrid",X,Y],O=()=>["auto",{span:["full",zn,X,Y]},zn,X,Y],z=()=>[zn,"auto",X,Y],oe=()=>["auto","min","max","fr",X,Y],Z=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],te=()=>["start","end","center","stretch","center-safe","end-safe"],K=()=>["auto",...E()],se=()=>[Rn,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...E()],D=()=>[Rn,"screen","full","dvw","lvw","svw","min","max","fit",...E()],W=()=>[Rn,"screen","full","lh","dvh","lvh","svh","min","max","fit",...E()],k=()=>[e,X,Y],ae=()=>[...N(),pp,fp,{position:[X,Y]}],ye=()=>["no-repeat",{repeat:["","x","y","space","round"]}],_=()=>["auto","cover","contain",xb,pb,{size:[X,Y]}],Re=()=>[ka,Fi,cr],Ce=()=>["","none","full",u,X,Y],ue=()=>["",fe,Fi,cr],ot=()=>["solid","dashed","dotted","double"],Ft=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Te=()=>[fe,ka,pp,fp],un=()=>["","none",x,X,Y],cn=()=>["none",fe,X,Y],Mr=()=>["none",fe,X,Y],Ei=()=>[fe,X,Y],Lr=()=>[Rn,"full",...E()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[pn],breakpoint:[pn],color:[d1],container:[pn],"drop-shadow":[pn],ease:["in","out","in-out"],font:[fb],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[pn],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[pn],shadow:[pn],spacing:["px",fe],text:[pn],"text-shadow":[pn],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Rn,Y,X,I]}],container:["container"],columns:[{columns:[fe,Y,X,l]}],"break-after":[{"break-after":w()}],"break-before":[{"break-before":w()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:j()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:A()}],"overscroll-x":[{"overscroll-x":A()}],"overscroll-y":[{"overscroll-y":A()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:$()}],"inset-x":[{"inset-x":$()}],"inset-y":[{"inset-y":$()}],start:[{"inset-s":$(),start:$()}],end:[{"inset-e":$(),end:$()}],"inset-bs":[{"inset-bs":$()}],"inset-be":[{"inset-be":$()}],top:[{top:$()}],right:[{right:$()}],bottom:[{bottom:$()}],left:[{left:$()}],visibility:["visible","invisible","collapse"],z:[{z:[zn,"auto",X,Y]}],basis:[{basis:[Rn,"full","auto",l,...E()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[fe,Rn,"auto","initial","none",Y]}],grow:[{grow:["",fe,X,Y]}],shrink:[{shrink:["",fe,X,Y]}],order:[{order:[zn,"first","last","none",X,Y]}],"grid-cols":[{"grid-cols":C()}],"col-start-end":[{col:O()}],"col-start":[{"col-start":z()}],"col-end":[{"col-end":z()}],"grid-rows":[{"grid-rows":C()}],"row-start-end":[{row:O()}],"row-start":[{"row-start":z()}],"row-end":[{"row-end":z()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":oe()}],"auto-rows":[{"auto-rows":oe()}],gap:[{gap:E()}],"gap-x":[{"gap-x":E()}],"gap-y":[{"gap-y":E()}],"justify-content":[{justify:[...Z(),"normal"]}],"justify-items":[{"justify-items":[...te(),"normal"]}],"justify-self":[{"justify-self":["auto",...te()]}],"align-content":[{content:["normal",...Z()]}],"align-items":[{items:[...te(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...te(),{baseline:["","last"]}]}],"place-content":[{"place-content":Z()}],"place-items":[{"place-items":[...te(),"baseline"]}],"place-self":[{"place-self":["auto",...te()]}],p:[{p:E()}],px:[{px:E()}],py:[{py:E()}],ps:[{ps:E()}],pe:[{pe:E()}],pbs:[{pbs:E()}],pbe:[{pbe:E()}],pt:[{pt:E()}],pr:[{pr:E()}],pb:[{pb:E()}],pl:[{pl:E()}],m:[{m:K()}],mx:[{mx:K()}],my:[{my:K()}],ms:[{ms:K()}],me:[{me:K()}],mbs:[{mbs:K()}],mbe:[{mbe:K()}],mt:[{mt:K()}],mr:[{mr:K()}],mb:[{mb:K()}],ml:[{ml:K()}],"space-x":[{"space-x":E()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":E()}],"space-y-reverse":["space-y-reverse"],size:[{size:se()}],"inline-size":[{inline:["auto",...D()]}],"min-inline-size":[{"min-inline":["auto",...D()]}],"max-inline-size":[{"max-inline":["none",...D()]}],"block-size":[{block:["auto",...W()]}],"min-block-size":[{"min-block":["auto",...W()]}],"max-block-size":[{"max-block":["none",...W()]}],w:[{w:[l,"screen",...se()]}],"min-w":[{"min-w":[l,"screen","none",...se()]}],"max-w":[{"max-w":[l,"screen","none","prose",{screen:[s]},...se()]}],h:[{h:["screen","lh",...se()]}],"min-h":[{"min-h":["screen","lh","none",...se()]}],"max-h":[{"max-h":["screen","lh",...se()]}],"font-size":[{text:["base",n,Fi,cr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,kb,mb]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",ka,Y]}],"font-family":[{font:[yb,hb,t]}],"font-features":[{"font-features":[Y]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[i,X,Y]}],"line-clamp":[{"line-clamp":[fe,"none",X,dp]}],leading:[{leading:[o,...E()]}],"list-image":[{"list-image":["none",X,Y]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",X,Y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:k()}],"text-color":[{text:k()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ot(),"wavy"]}],"text-decoration-thickness":[{decoration:[fe,"from-font","auto",X,cr]}],"text-decoration-color":[{decoration:k()}],"underline-offset":[{"underline-offset":[fe,"auto",X,Y]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:E()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",X,Y]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",X,Y]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ae()}],"bg-repeat":[{bg:ye()}],"bg-size":[{bg:_()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},zn,X,Y],radial:["",X,Y],conic:[zn,X,Y]},vb,gb]}],"bg-color":[{bg:k()}],"gradient-from-pos":[{from:Re()}],"gradient-via-pos":[{via:Re()}],"gradient-to-pos":[{to:Re()}],"gradient-from":[{from:k()}],"gradient-via":[{via:k()}],"gradient-to":[{to:k()}],rounded:[{rounded:Ce()}],"rounded-s":[{"rounded-s":Ce()}],"rounded-e":[{"rounded-e":Ce()}],"rounded-t":[{"rounded-t":Ce()}],"rounded-r":[{"rounded-r":Ce()}],"rounded-b":[{"rounded-b":Ce()}],"rounded-l":[{"rounded-l":Ce()}],"rounded-ss":[{"rounded-ss":Ce()}],"rounded-se":[{"rounded-se":Ce()}],"rounded-ee":[{"rounded-ee":Ce()}],"rounded-es":[{"rounded-es":Ce()}],"rounded-tl":[{"rounded-tl":Ce()}],"rounded-tr":[{"rounded-tr":Ce()}],"rounded-br":[{"rounded-br":Ce()}],"rounded-bl":[{"rounded-bl":Ce()}],"border-w":[{border:ue()}],"border-w-x":[{"border-x":ue()}],"border-w-y":[{"border-y":ue()}],"border-w-s":[{"border-s":ue()}],"border-w-e":[{"border-e":ue()}],"border-w-bs":[{"border-bs":ue()}],"border-w-be":[{"border-be":ue()}],"border-w-t":[{"border-t":ue()}],"border-w-r":[{"border-r":ue()}],"border-w-b":[{"border-b":ue()}],"border-w-l":[{"border-l":ue()}],"divide-x":[{"divide-x":ue()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ue()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ot(),"hidden","none"]}],"divide-style":[{divide:[...ot(),"hidden","none"]}],"border-color":[{border:k()}],"border-color-x":[{"border-x":k()}],"border-color-y":[{"border-y":k()}],"border-color-s":[{"border-s":k()}],"border-color-e":[{"border-e":k()}],"border-color-bs":[{"border-bs":k()}],"border-color-be":[{"border-be":k()}],"border-color-t":[{"border-t":k()}],"border-color-r":[{"border-r":k()}],"border-color-b":[{"border-b":k()}],"border-color-l":[{"border-l":k()}],"divide-color":[{divide:k()}],"outline-style":[{outline:[...ot(),"none","hidden"]}],"outline-offset":[{"outline-offset":[fe,X,Y]}],"outline-w":[{outline:["",fe,Fi,cr]}],"outline-color":[{outline:k()}],shadow:[{shadow:["","none",f,as,ls]}],"shadow-color":[{shadow:k()}],"inset-shadow":[{"inset-shadow":["none",d,as,ls]}],"inset-shadow-color":[{"inset-shadow":k()}],"ring-w":[{ring:ue()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:k()}],"ring-offset-w":[{"ring-offset":[fe,cr]}],"ring-offset-color":[{"ring-offset":k()}],"inset-ring-w":[{"inset-ring":ue()}],"inset-ring-color":[{"inset-ring":k()}],"text-shadow":[{"text-shadow":["none",m,as,ls]}],"text-shadow-color":[{"text-shadow":k()}],opacity:[{opacity:[fe,X,Y]}],"mix-blend":[{"mix-blend":[...Ft(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Ft()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[fe]}],"mask-image-linear-from-pos":[{"mask-linear-from":Te()}],"mask-image-linear-to-pos":[{"mask-linear-to":Te()}],"mask-image-linear-from-color":[{"mask-linear-from":k()}],"mask-image-linear-to-color":[{"mask-linear-to":k()}],"mask-image-t-from-pos":[{"mask-t-from":Te()}],"mask-image-t-to-pos":[{"mask-t-to":Te()}],"mask-image-t-from-color":[{"mask-t-from":k()}],"mask-image-t-to-color":[{"mask-t-to":k()}],"mask-image-r-from-pos":[{"mask-r-from":Te()}],"mask-image-r-to-pos":[{"mask-r-to":Te()}],"mask-image-r-from-color":[{"mask-r-from":k()}],"mask-image-r-to-color":[{"mask-r-to":k()}],"mask-image-b-from-pos":[{"mask-b-from":Te()}],"mask-image-b-to-pos":[{"mask-b-to":Te()}],"mask-image-b-from-color":[{"mask-b-from":k()}],"mask-image-b-to-color":[{"mask-b-to":k()}],"mask-image-l-from-pos":[{"mask-l-from":Te()}],"mask-image-l-to-pos":[{"mask-l-to":Te()}],"mask-image-l-from-color":[{"mask-l-from":k()}],"mask-image-l-to-color":[{"mask-l-to":k()}],"mask-image-x-from-pos":[{"mask-x-from":Te()}],"mask-image-x-to-pos":[{"mask-x-to":Te()}],"mask-image-x-from-color":[{"mask-x-from":k()}],"mask-image-x-to-color":[{"mask-x-to":k()}],"mask-image-y-from-pos":[{"mask-y-from":Te()}],"mask-image-y-to-pos":[{"mask-y-to":Te()}],"mask-image-y-from-color":[{"mask-y-from":k()}],"mask-image-y-to-color":[{"mask-y-to":k()}],"mask-image-radial":[{"mask-radial":[X,Y]}],"mask-image-radial-from-pos":[{"mask-radial-from":Te()}],"mask-image-radial-to-pos":[{"mask-radial-to":Te()}],"mask-image-radial-from-color":[{"mask-radial-from":k()}],"mask-image-radial-to-color":[{"mask-radial-to":k()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":N()}],"mask-image-conic-pos":[{"mask-conic":[fe]}],"mask-image-conic-from-pos":[{"mask-conic-from":Te()}],"mask-image-conic-to-pos":[{"mask-conic-to":Te()}],"mask-image-conic-from-color":[{"mask-conic-from":k()}],"mask-image-conic-to-color":[{"mask-conic-to":k()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ae()}],"mask-repeat":[{mask:ye()}],"mask-size":[{mask:_()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",X,Y]}],filter:[{filter:["","none",X,Y]}],blur:[{blur:un()}],brightness:[{brightness:[fe,X,Y]}],contrast:[{contrast:[fe,X,Y]}],"drop-shadow":[{"drop-shadow":["","none",p,as,ls]}],"drop-shadow-color":[{"drop-shadow":k()}],grayscale:[{grayscale:["",fe,X,Y]}],"hue-rotate":[{"hue-rotate":[fe,X,Y]}],invert:[{invert:["",fe,X,Y]}],saturate:[{saturate:[fe,X,Y]}],sepia:[{sepia:["",fe,X,Y]}],"backdrop-filter":[{"backdrop-filter":["","none",X,Y]}],"backdrop-blur":[{"backdrop-blur":un()}],"backdrop-brightness":[{"backdrop-brightness":[fe,X,Y]}],"backdrop-contrast":[{"backdrop-contrast":[fe,X,Y]}],"backdrop-grayscale":[{"backdrop-grayscale":["",fe,X,Y]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[fe,X,Y]}],"backdrop-invert":[{"backdrop-invert":["",fe,X,Y]}],"backdrop-opacity":[{"backdrop-opacity":[fe,X,Y]}],"backdrop-saturate":[{"backdrop-saturate":[fe,X,Y]}],"backdrop-sepia":[{"backdrop-sepia":["",fe,X,Y]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":E()}],"border-spacing-x":[{"border-spacing-x":E()}],"border-spacing-y":[{"border-spacing-y":E()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",X,Y]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[fe,"initial",X,Y]}],ease:[{ease:["linear","initial",y,X,Y]}],delay:[{delay:[fe,X,Y]}],animate:[{animate:["none",v,X,Y]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[b,X,Y]}],"perspective-origin":[{"perspective-origin":j()}],rotate:[{rotate:cn()}],"rotate-x":[{"rotate-x":cn()}],"rotate-y":[{"rotate-y":cn()}],"rotate-z":[{"rotate-z":cn()}],scale:[{scale:Mr()}],"scale-x":[{"scale-x":Mr()}],"scale-y":[{"scale-y":Mr()}],"scale-z":[{"scale-z":Mr()}],"scale-3d":["scale-3d"],skew:[{skew:Ei()}],"skew-x":[{"skew-x":Ei()}],"skew-y":[{"skew-y":Ei()}],transform:[{transform:[X,Y,"","none","gpu","cpu"]}],"transform-origin":[{origin:j()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Lr()}],"translate-x":[{"translate-x":Lr()}],"translate-y":[{"translate-y":Lr()}],"translate-z":[{"translate-z":Lr()}],"translate-none":["translate-none"],accent:[{accent:k()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:k()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",X,Y]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":E()}],"scroll-mx":[{"scroll-mx":E()}],"scroll-my":[{"scroll-my":E()}],"scroll-ms":[{"scroll-ms":E()}],"scroll-me":[{"scroll-me":E()}],"scroll-mbs":[{"scroll-mbs":E()}],"scroll-mbe":[{"scroll-mbe":E()}],"scroll-mt":[{"scroll-mt":E()}],"scroll-mr":[{"scroll-mr":E()}],"scroll-mb":[{"scroll-mb":E()}],"scroll-ml":[{"scroll-ml":E()}],"scroll-p":[{"scroll-p":E()}],"scroll-px":[{"scroll-px":E()}],"scroll-py":[{"scroll-py":E()}],"scroll-ps":[{"scroll-ps":E()}],"scroll-pe":[{"scroll-pe":E()}],"scroll-pbs":[{"scroll-pbs":E()}],"scroll-pbe":[{"scroll-pbe":E()}],"scroll-pt":[{"scroll-pt":E()}],"scroll-pr":[{"scroll-pr":E()}],"scroll-pb":[{"scroll-pb":E()}],"scroll-pl":[{"scroll-pl":E()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",X,Y]}],fill:[{fill:["none",...k()]}],"stroke-w":[{stroke:[fe,Fi,cr,dp]}],stroke:[{stroke:["none",...k()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},Sb=tb(bb);function ve(...e){return Sb(i1(e))}const _b=zw("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-accent text-accent-contrast hover:bg-accent-hover",destructive:"bg-destructive text-white hover:bg-destructive-hover",outline:"border border-border bg-transparent text-text-100 hover:bg-bg-200",ghost:"bg-transparent text-text-200 hover:bg-bg-200 hover:text-text-100"},size:{sm:"h-8 px-3 text-xs",md:"h-9 px-4",lg:"h-11 px-6 text-base"}},defaultVariants:{variant:"default",size:"md"}}),Xn=U.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...i},o)=>{const s=r?Ew:"button";return h.jsx(s,{ref:o,className:ve(_b({variant:t,size:n}),e),...i})});Xn.displayName="Button";const Cb=["TaskCreate","TaskUpdate","TaskList","TaskGet"];function Ib(e){return Cb.includes(e)}function v1(e){return e==="in_progress"||e==="completed"?e:"pending"}function Nb(e,t){if(!t||typeof t!="object")return e;const n=t,r=typeof n.subject=="string"&&n.subject?n.subject:typeof n.content=="string"&&n.content?n.content:null;if(!r)return e;const i=typeof n.activeForm=="string"?n.activeForm:void 0,o=typeof n.description=="string"?n.description:void 0;return[...e,{id:String(e.length+1),content:r,status:v1(n.status),activeForm:i,description:o}]}function Eb(e,t){if(!t||typeof t!="object")return e;const n=t,r=typeof n.taskId=="string"&&n.taskId?n.taskId:typeof n.id=="string"&&n.id?n.id:null;if(!r)return e;const i=e.findIndex(l=>l.id===r);if(i<0)return e;const o=[...e],s={...o[i]};return"status"in n&&(s.status=v1(n.status)),typeof n.subject=="string"&&(s.content=n.subject),typeof n.content=="string"&&(s.content=n.content),typeof n.activeForm=="string"&&(s.activeForm=n.activeForm),typeof n.description=="string"&&(s.description=n.description),o[i]=s,o}function Tb(e){let t=[],n=-1;for(let r=0;r<e.length;r++){const i=e[r];if(i.kind==="task-event")switch(n=r,i.name){case"TaskCreate":t=Nb(t,i.input);break;case"TaskUpdate":t=Eb(t,i.input);break}}return{tasks:t,lastEventIndex:n}}function jb(e){var n;if(e.error)return!1;if(e.pending)return!0;if(e.notifications.length>0)return!1;const t=(n=e.progress)==null?void 0:n.status;return t==="running"?!0:t==="started"?Ab(e.input):!1}function Ab(e){return!e||typeof e!="object"?!1:e.run_in_background===!0}function Pb(e){var d;const{tasks:t,lastEventIndex:n}=Tb(e);let r=-1;for(let m=e.length-1;m>=0;m--)if(e[m].kind==="todo-checklist"){r=m;break}const i=[],o=new Map,s=new Map,l=new Map,a=new Map,u=new Map,f=(m,p)=>{var v,w,N,j,S,A;const x=i[m],b=u.get(m),I=b!==void 0&&b!==p.toolUseId;if(!I&&(((v=x.progress)==null?void 0:v.status)==="completed"||((w=x.progress)==null?void 0:w.status)==="failed"))return;if(u.set(m,p.toolUseId),a.set(p.agentId,m),I&&(x.pending=!0,(N=x.toolResultExtra)!=null&&N.stats)){const{stats:E,...$}=x.toolResultExtra;x.toolResultExtra=$}const y={agentId:p.agentId,status:p.status};p.description?y.description=p.description:(j=x.progress)!=null&&j.description&&(y.description=x.progress.description),p.lastToolName?y.lastToolName=p.lastToolName:!I&&((S=x.progress)!=null&&S.lastToolName)&&(y.lastToolName=x.progress.lastToolName),p.stats?y.stats=p.stats:!I&&((A=x.progress)!=null&&A.stats)&&(y.stats=x.progress.stats),x.progress=y,(p.status==="completed"||p.status==="failed")&&(x.pending=!1)};for(let m=0;m<e.length;m++){const p=e[m];switch(p.kind){case"tool-call":{const x={kind:"merged-tool",seq:p.seq,tool:p.tool,toolKind:p.toolKind,toolUseId:p.toolUseId,input:p.input,pending:!0};o.set(p.toolUseId,i.length),i.push(x);break}case"tool-result":{const x=o.get(p.toolUseId);if(x!==void 0){const I=i[x];I.output=p.output,I.error=p.error,I.pending=!1,o.delete(p.toolUseId);break}const b=s.get(p.toolUseId);if(b!==void 0){const I=i[b];I.output=p.output,I.error=p.error,I.pending=!1,p.toolResultExtra&&(I.toolResultExtra=p.toolResultExtra),(d=p.toolResultExtra)!=null&&d.agentId&&(a.set(p.toolResultExtra.agentId,b),u.set(b,p.toolUseId));break}break}case"agent-call":{const x={kind:"merged-agent",seq:p.seq,toolUseId:p.toolUseId,description:p.description,input:p.input,pending:!0,notifications:[]},b=i.length;s.set(p.toolUseId,b),i.push(x);const I=l.get(p.toolUseId);I&&(f(b,I),l.delete(p.toolUseId));break}case"agent-progress":{const x=s.get(p.toolUseId)??a.get(p.agentId);if(x!==void 0){f(x,p);break}const b=l.get(p.toolUseId);if((b==null?void 0:b.status)==="completed"||(b==null?void 0:b.status)==="failed")break;l.set(p.toolUseId,p);break}case"agent-notification":{const x=(p.parentToolUseId?s.get(p.parentToolUseId):void 0)??(p.taskId?a.get(p.taskId):void 0);if(x!==void 0){i[x].notifications.push({text:p.text,taskId:p.taskId});break}i.push({kind:"agent-notification",seq:p.seq,text:p.text,taskId:p.taskId,parentToolUseId:p.parentToolUseId});break}case"todo-checklist":{m===r&&p.todos.length>0&&i.push({kind:"todo-checklist",seq:p.seq,toolUseId:p.toolUseId,todos:p.todos});break}case"task-event":{m===n&&t.length>0&&i.push({kind:"plan-card",seq:p.seq,tasks:t});break}default:i.push(p)}}return i}var we;(function(e){e.assertEqual=i=>{};function t(i){}e.assertIs=t;function n(i){throw new Error}e.assertNever=n,e.arrayToEnum=i=>{const o={};for(const s of i)o[s]=s;return o},e.getValidEnumValues=i=>{const o=e.objectKeys(i).filter(l=>typeof i[i[l]]!="number"),s={};for(const l of o)s[l]=i[l];return e.objectValues(s)},e.objectValues=i=>e.objectKeys(i).map(function(o){return i[o]}),e.objectKeys=typeof Object.keys=="function"?i=>Object.keys(i):i=>{const o=[];for(const s in i)Object.prototype.hasOwnProperty.call(i,s)&&o.push(s);return o},e.find=(i,o)=>{for(const s of i)if(o(s))return s},e.isInteger=typeof Number.isInteger=="function"?i=>Number.isInteger(i):i=>typeof i=="number"&&Number.isFinite(i)&&Math.floor(i)===i;function r(i,o=" | "){return i.map(s=>typeof s=="string"?`'${s}'`:s).join(o)}e.joinValues=r,e.jsonStringifyReplacer=(i,o)=>typeof o=="bigint"?o.toString():o})(we||(we={}));var mp;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(mp||(mp={}));const Q=we.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Dn=e=>{switch(typeof e){case"undefined":return Q.undefined;case"string":return Q.string;case"number":return Number.isNaN(e)?Q.nan:Q.number;case"boolean":return Q.boolean;case"function":return Q.function;case"bigint":return Q.bigint;case"symbol":return Q.symbol;case"object":return Array.isArray(e)?Q.array:e===null?Q.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?Q.promise:typeof Map<"u"&&e instanceof Map?Q.map:typeof Set<"u"&&e instanceof Set?Q.set:typeof Date<"u"&&e instanceof Date?Q.date:Q.object;default:return Q.unknown}},L=we.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class En extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=t}format(t){const n=t||function(o){return o.message},r={_errors:[]},i=o=>{for(const s of o.issues)if(s.code==="invalid_union")s.unionErrors.map(i);else if(s.code==="invalid_return_type")i(s.returnTypeError);else if(s.code==="invalid_arguments")i(s.argumentsError);else if(s.path.length===0)r._errors.push(n(s));else{let l=r,a=0;for(;a<s.path.length;){const u=s.path[a];a===s.path.length-1?(l[u]=l[u]||{_errors:[]},l[u]._errors.push(n(s))):l[u]=l[u]||{_errors:[]},l=l[u],a++}}};return i(this),r}static assert(t){if(!(t instanceof En))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,we.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=n=>n.message){const n={},r=[];for(const i of this.issues)if(i.path.length>0){const o=i.path[0];n[o]=n[o]||[],n[o].push(t(i))}else r.push(t(i));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}}En.create=e=>new En(e);const Mu=(e,t)=>{let n;switch(e.code){case L.invalid_type:e.received===Q.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case L.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,we.jsonStringifyReplacer)}`;break;case L.unrecognized_keys:n=`Unrecognized key(s) in object: ${we.joinValues(e.keys,", ")}`;break;case L.invalid_union:n="Invalid input";break;case L.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${we.joinValues(e.options)}`;break;case L.invalid_enum_value:n=`Invalid enum value. Expected ${we.joinValues(e.options)}, received '${e.received}'`;break;case L.invalid_arguments:n="Invalid function arguments";break;case L.invalid_return_type:n="Invalid function return type";break;case L.invalid_date:n="Invalid date";break;case L.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:we.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case L.too_small:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="bigint"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:n="Invalid input";break;case L.too_big:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?n=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:n="Invalid input";break;case L.custom:n="Invalid input";break;case L.invalid_intersection_types:n="Intersection results could not be merged";break;case L.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case L.not_finite:n="Number must be finite";break;default:n=t.defaultError,we.assertNever(e)}return{message:n}};let Rb=Mu;function zb(){return Rb}const Mb=e=>{const{data:t,path:n,errorMaps:r,issueData:i}=e,o=[...n,...i.path||[]],s={...i,path:o};if(i.message!==void 0)return{...i,path:o,message:i.message};let l="";const a=r.filter(u=>!!u).slice().reverse();for(const u of a)l=u(s,{data:t,defaultError:l}).message;return{...i,path:o,message:l}};function H(e,t){const n=zb(),r=Mb({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===Mu?void 0:Mu].filter(i=>!!i)});e.common.issues.push(r)}class ut{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,n){const r=[];for(const i of n){if(i.status==="aborted")return re;i.status==="dirty"&&t.dirty(),r.push(i.value)}return{status:t.value,value:r}}static async mergeObjectAsync(t,n){const r=[];for(const i of n){const o=await i.key,s=await i.value;r.push({key:o,value:s})}return ut.mergeObjectSync(t,r)}static mergeObjectSync(t,n){const r={};for(const i of n){const{key:o,value:s}=i;if(o.status==="aborted"||s.status==="aborted")return re;o.status==="dirty"&&t.dirty(),s.status==="dirty"&&t.dirty(),o.value!=="__proto__"&&(typeof s.value<"u"||i.alwaysSet)&&(r[o.value]=s.value)}return{status:t.value,value:r}}}const re=Object.freeze({status:"aborted"}),Wi=e=>({status:"dirty",value:e}),Ot=e=>({status:"valid",value:e}),hp=e=>e.status==="aborted",gp=e=>e.status==="dirty",gi=e=>e.status==="valid",sl=e=>typeof Promise<"u"&&e instanceof Promise;var ee;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(ee||(ee={}));class on{constructor(t,n,r,i){this._cachedPath=[],this.parent=t,this.data=n,this._path=r,this._key=i}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const yp=(e,t)=>{if(gi(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const n=new En(e.common.issues);return this._error=n,this._error}}};function de(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:r,description:i}=e;if(t&&(n||r))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:i}:{errorMap:(s,l)=>{const{message:a}=e;return s.code==="invalid_enum_value"?{message:a??l.defaultError}:typeof l.data>"u"?{message:a??r??l.defaultError}:s.code!=="invalid_type"?{message:l.defaultError}:{message:a??n??l.defaultError}},description:i}}class ge{get description(){return this._def.description}_getType(t){return Dn(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:Dn(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new ut,ctx:{common:t.parent.common,data:t.data,parsedType:Dn(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(sl(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(t){const n=this._parse(t);return Promise.resolve(n)}parse(t,n){const r=this.safeParse(t,n);if(r.success)return r.data;throw r.error}safeParse(t,n){const r={common:{issues:[],async:(n==null?void 0:n.async)??!1,contextualErrorMap:n==null?void 0:n.errorMap},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Dn(t)},i=this._parseSync({data:t,path:r.path,parent:r});return yp(r,i)}"~validate"(t){var r,i;const n={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Dn(t)};if(!this["~standard"].async)try{const o=this._parseSync({data:t,path:[],parent:n});return gi(o)?{value:o.value}:{issues:n.common.issues}}catch(o){(i=(r=o==null?void 0:o.message)==null?void 0:r.toLowerCase())!=null&&i.includes("encountered")&&(this["~standard"].async=!0),n.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:n}).then(o=>gi(o)?{value:o.value}:{issues:n.common.issues})}async parseAsync(t,n){const r=await this.safeParseAsync(t,n);if(r.success)return r.data;throw r.error}async safeParseAsync(t,n){const r={common:{issues:[],contextualErrorMap:n==null?void 0:n.errorMap,async:!0},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Dn(t)},i=this._parse({data:t,path:r.path,parent:r}),o=await(sl(i)?i:Promise.resolve(i));return yp(r,o)}refine(t,n){const r=i=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(i):n;return this._refinement((i,o)=>{const s=t(i),l=()=>o.addIssue({code:L.custom,...r(i)});return typeof Promise<"u"&&s instanceof Promise?s.then(a=>a?!0:(l(),!1)):s?!0:(l(),!1)})}refinement(t,n){return this._refinement((r,i)=>t(r)?!0:(i.addIssue(typeof n=="function"?n(r,i):n),!1))}_refinement(t){return new nr({schema:this,typeName:ie.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:n=>this["~validate"](n)}}optional(){return bn.create(this,this._def)}nullable(){return Er.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return rn.create(this)}promise(){return fl.create(this,this._def)}or(t){return al.create([this,t],this._def)}and(t){return ul.create(this,t,this._def)}transform(t){return new nr({...de(this._def),schema:this,typeName:ie.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const n=typeof t=="function"?t:()=>t;return new pl({...de(this._def),innerType:this,defaultValue:n,typeName:ie.ZodDefault})}brand(){return new S1({typeName:ie.ZodBranded,type:this,...de(this._def)})}catch(t){const n=typeof t=="function"?t:()=>t;return new ml({...de(this._def),innerType:this,catchValue:n,typeName:ie.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return od.create(this,t)}readonly(){return hl.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const Lb=/^c[^\s-]{8,}$/i,Ob=/^[0-9a-z]+$/,Db=/^[0-9A-HJKMNP-TV-Z]{26}$/i,Fb=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,$b=/^[a-z0-9_-]{21}$/i,Ub=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,Bb=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,Vb=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,Hb="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let wa;const qb=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Wb=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,Zb=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,Gb=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Qb=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,Kb=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,k1="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",Yb=new RegExp(`^${k1}$`);function w1(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`);const n=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${n}`}function Xb(e){return new RegExp(`^${w1(e)}$`)}function Jb(e){let t=`${k1}T${w1(e)}`;const n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}function eS(e,t){return!!((t==="v4"||!t)&&qb.test(e)||(t==="v6"||!t)&&Zb.test(e))}function tS(e,t){if(!Ub.test(e))return!1;try{const[n]=e.split(".");if(!n)return!1;const r=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),i=JSON.parse(atob(r));return!(typeof i!="object"||i===null||"typ"in i&&(i==null?void 0:i.typ)!=="JWT"||!i.alg||t&&i.alg!==t)}catch{return!1}}function nS(e,t){return!!((t==="v4"||!t)&&Wb.test(e)||(t==="v6"||!t)&&Gb.test(e))}class vn extends ge{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==Q.string){const o=this._getOrReturnCtx(t);return H(o,{code:L.invalid_type,expected:Q.string,received:o.parsedType}),re}const r=new ut;let i;for(const o of this._def.checks)if(o.kind==="min")t.data.length<o.value&&(i=this._getOrReturnCtx(t,i),H(i,{code:L.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),r.dirty());else if(o.kind==="max")t.data.length>o.value&&(i=this._getOrReturnCtx(t,i),H(i,{code:L.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),r.dirty());else if(o.kind==="length"){const s=t.data.length>o.value,l=t.data.length<o.value;(s||l)&&(i=this._getOrReturnCtx(t,i),s?H(i,{code:L.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}):l&&H(i,{code:L.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}),r.dirty())}else if(o.kind==="email")Vb.test(t.data)||(i=this._getOrReturnCtx(t,i),H(i,{validation:"email",code:L.invalid_string,message:o.message}),r.dirty());else if(o.kind==="emoji")wa||(wa=new RegExp(Hb,"u")),wa.test(t.data)||(i=this._getOrReturnCtx(t,i),H(i,{validation:"emoji",code:L.invalid_string,message:o.message}),r.dirty());else if(o.kind==="uuid")Fb.test(t.data)||(i=this._getOrReturnCtx(t,i),H(i,{validation:"uuid",code:L.invalid_string,message:o.message}),r.dirty());else if(o.kind==="nanoid")$b.test(t.data)||(i=this._getOrReturnCtx(t,i),H(i,{validation:"nanoid",code:L.invalid_string,message:o.message}),r.dirty());else if(o.kind==="cuid")Lb.test(t.data)||(i=this._getOrReturnCtx(t,i),H(i,{validation:"cuid",code:L.invalid_string,message:o.message}),r.dirty());else if(o.kind==="cuid2")Ob.test(t.data)||(i=this._getOrReturnCtx(t,i),H(i,{validation:"cuid2",code:L.invalid_string,message:o.message}),r.dirty());else if(o.kind==="ulid")Db.test(t.data)||(i=this._getOrReturnCtx(t,i),H(i,{validation:"ulid",code:L.invalid_string,message:o.message}),r.dirty());else if(o.kind==="url")try{new URL(t.data)}catch{i=this._getOrReturnCtx(t,i),H(i,{validation:"url",code:L.invalid_string,message:o.message}),r.dirty()}else o.kind==="regex"?(o.regex.lastIndex=0,o.regex.test(t.data)||(i=this._getOrReturnCtx(t,i),H(i,{validation:"regex",code:L.invalid_string,message:o.message}),r.dirty())):o.kind==="trim"?t.data=t.data.trim():o.kind==="includes"?t.data.includes(o.value,o.position)||(i=this._getOrReturnCtx(t,i),H(i,{code:L.invalid_string,validation:{includes:o.value,position:o.position},message:o.message}),r.dirty()):o.kind==="toLowerCase"?t.data=t.data.toLowerCase():o.kind==="toUpperCase"?t.data=t.data.toUpperCase():o.kind==="startsWith"?t.data.startsWith(o.value)||(i=this._getOrReturnCtx(t,i),H(i,{code:L.invalid_string,validation:{startsWith:o.value},message:o.message}),r.dirty()):o.kind==="endsWith"?t.data.endsWith(o.value)||(i=this._getOrReturnCtx(t,i),H(i,{code:L.invalid_string,validation:{endsWith:o.value},message:o.message}),r.dirty()):o.kind==="datetime"?Jb(o).test(t.data)||(i=this._getOrReturnCtx(t,i),H(i,{code:L.invalid_string,validation:"datetime",message:o.message}),r.dirty()):o.kind==="date"?Yb.test(t.data)||(i=this._getOrReturnCtx(t,i),H(i,{code:L.invalid_string,validation:"date",message:o.message}),r.dirty()):o.kind==="time"?Xb(o).test(t.data)||(i=this._getOrReturnCtx(t,i),H(i,{code:L.invalid_string,validation:"time",message:o.message}),r.dirty()):o.kind==="duration"?Bb.test(t.data)||(i=this._getOrReturnCtx(t,i),H(i,{validation:"duration",code:L.invalid_string,message:o.message}),r.dirty()):o.kind==="ip"?eS(t.data,o.version)||(i=this._getOrReturnCtx(t,i),H(i,{validation:"ip",code:L.invalid_string,message:o.message}),r.dirty()):o.kind==="jwt"?tS(t.data,o.alg)||(i=this._getOrReturnCtx(t,i),H(i,{validation:"jwt",code:L.invalid_string,message:o.message}),r.dirty()):o.kind==="cidr"?nS(t.data,o.version)||(i=this._getOrReturnCtx(t,i),H(i,{validation:"cidr",code:L.invalid_string,message:o.message}),r.dirty()):o.kind==="base64"?Qb.test(t.data)||(i=this._getOrReturnCtx(t,i),H(i,{validation:"base64",code:L.invalid_string,message:o.message}),r.dirty()):o.kind==="base64url"?Kb.test(t.data)||(i=this._getOrReturnCtx(t,i),H(i,{validation:"base64url",code:L.invalid_string,message:o.message}),r.dirty()):we.assertNever(o);return{status:r.value,value:t.data}}_regex(t,n,r){return this.refinement(i=>t.test(i),{validation:n,code:L.invalid_string,...ee.errToObj(r)})}_addCheck(t){return new vn({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...ee.errToObj(t)})}url(t){return this._addCheck({kind:"url",...ee.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...ee.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...ee.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...ee.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...ee.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...ee.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...ee.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...ee.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...ee.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...ee.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...ee.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...ee.errToObj(t)})}datetime(t){return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,offset:(t==null?void 0:t.offset)??!1,local:(t==null?void 0:t.local)??!1,...ee.errToObj(t==null?void 0:t.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,...ee.errToObj(t==null?void 0:t.message)})}duration(t){return this._addCheck({kind:"duration",...ee.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...ee.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n==null?void 0:n.position,...ee.errToObj(n==null?void 0:n.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...ee.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...ee.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...ee.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...ee.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...ee.errToObj(n)})}nonempty(t){return this.min(1,ee.errToObj(t))}trim(){return new vn({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new vn({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new vn({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isCIDR(){return!!this._def.checks.find(t=>t.kind==="cidr")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get isBase64url(){return!!this._def.checks.find(t=>t.kind==="base64url")}get minLength(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxLength(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}vn.create=e=>new vn({checks:[],typeName:ie.ZodString,coerce:(e==null?void 0:e.coerce)??!1,...de(e)});function rS(e,t){const n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,i=n>r?n:r,o=Number.parseInt(e.toFixed(i).replace(".","")),s=Number.parseInt(t.toFixed(i).replace(".",""));return o%s/10**i}class yi extends ge{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==Q.number){const o=this._getOrReturnCtx(t);return H(o,{code:L.invalid_type,expected:Q.number,received:o.parsedType}),re}let r;const i=new ut;for(const o of this._def.checks)o.kind==="int"?we.isInteger(t.data)||(r=this._getOrReturnCtx(t,r),H(r,{code:L.invalid_type,expected:"integer",received:"float",message:o.message}),i.dirty()):o.kind==="min"?(o.inclusive?t.data<o.value:t.data<=o.value)&&(r=this._getOrReturnCtx(t,r),H(r,{code:L.too_small,minimum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),i.dirty()):o.kind==="max"?(o.inclusive?t.data>o.value:t.data>=o.value)&&(r=this._getOrReturnCtx(t,r),H(r,{code:L.too_big,maximum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),i.dirty()):o.kind==="multipleOf"?rS(t.data,o.value)!==0&&(r=this._getOrReturnCtx(t,r),H(r,{code:L.not_multiple_of,multipleOf:o.value,message:o.message}),i.dirty()):o.kind==="finite"?Number.isFinite(t.data)||(r=this._getOrReturnCtx(t,r),H(r,{code:L.not_finite,message:o.message}),i.dirty()):we.assertNever(o);return{status:i.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,ee.toString(n))}gt(t,n){return this.setLimit("min",t,!1,ee.toString(n))}lte(t,n){return this.setLimit("max",t,!0,ee.toString(n))}lt(t,n){return this.setLimit("max",t,!1,ee.toString(n))}setLimit(t,n,r,i){return new yi({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:ee.toString(i)}]})}_addCheck(t){return new yi({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:ee.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:ee.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:ee.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:ee.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:ee.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:ee.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:ee.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:ee.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:ee.toString(t)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&we.isInteger(t.value))}get isFinite(){let t=null,n=null;for(const r of this._def.checks){if(r.kind==="finite"||r.kind==="int"||r.kind==="multipleOf")return!0;r.kind==="min"?(n===null||r.value>n)&&(n=r.value):r.kind==="max"&&(t===null||r.value<t)&&(t=r.value)}return Number.isFinite(n)&&Number.isFinite(t)}}yi.create=e=>new yi({checks:[],typeName:ie.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...de(e)});class So extends ge{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==Q.bigint)return this._getInvalidInput(t);let r;const i=new ut;for(const o of this._def.checks)o.kind==="min"?(o.inclusive?t.data<o.value:t.data<=o.value)&&(r=this._getOrReturnCtx(t,r),H(r,{code:L.too_small,type:"bigint",minimum:o.value,inclusive:o.inclusive,message:o.message}),i.dirty()):o.kind==="max"?(o.inclusive?t.data>o.value:t.data>=o.value)&&(r=this._getOrReturnCtx(t,r),H(r,{code:L.too_big,type:"bigint",maximum:o.value,inclusive:o.inclusive,message:o.message}),i.dirty()):o.kind==="multipleOf"?t.data%o.value!==BigInt(0)&&(r=this._getOrReturnCtx(t,r),H(r,{code:L.not_multiple_of,multipleOf:o.value,message:o.message}),i.dirty()):we.assertNever(o);return{status:i.value,value:t.data}}_getInvalidInput(t){const n=this._getOrReturnCtx(t);return H(n,{code:L.invalid_type,expected:Q.bigint,received:n.parsedType}),re}gte(t,n){return this.setLimit("min",t,!0,ee.toString(n))}gt(t,n){return this.setLimit("min",t,!1,ee.toString(n))}lte(t,n){return this.setLimit("max",t,!0,ee.toString(n))}lt(t,n){return this.setLimit("max",t,!1,ee.toString(n))}setLimit(t,n,r,i){return new So({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:ee.toString(i)}]})}_addCheck(t){return new So({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:ee.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:ee.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:ee.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:ee.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:ee.toString(n)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}So.create=e=>new So({checks:[],typeName:ie.ZodBigInt,coerce:(e==null?void 0:e.coerce)??!1,...de(e)});class Lu extends ge{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==Q.boolean){const r=this._getOrReturnCtx(t);return H(r,{code:L.invalid_type,expected:Q.boolean,received:r.parsedType}),re}return Ot(t.data)}}Lu.create=e=>new Lu({typeName:ie.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...de(e)});class ll extends ge{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==Q.date){const o=this._getOrReturnCtx(t);return H(o,{code:L.invalid_type,expected:Q.date,received:o.parsedType}),re}if(Number.isNaN(t.data.getTime())){const o=this._getOrReturnCtx(t);return H(o,{code:L.invalid_date}),re}const r=new ut;let i;for(const o of this._def.checks)o.kind==="min"?t.data.getTime()<o.value&&(i=this._getOrReturnCtx(t,i),H(i,{code:L.too_small,message:o.message,inclusive:!0,exact:!1,minimum:o.value,type:"date"}),r.dirty()):o.kind==="max"?t.data.getTime()>o.value&&(i=this._getOrReturnCtx(t,i),H(i,{code:L.too_big,message:o.message,inclusive:!0,exact:!1,maximum:o.value,type:"date"}),r.dirty()):we.assertNever(o);return{status:r.value,value:new Date(t.data.getTime())}}_addCheck(t){return new ll({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:ee.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:ee.toString(n)})}get minDate(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t!=null?new Date(t):null}}ll.create=e=>new ll({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:ie.ZodDate,...de(e)});class xp extends ge{_parse(t){if(this._getType(t)!==Q.symbol){const r=this._getOrReturnCtx(t);return H(r,{code:L.invalid_type,expected:Q.symbol,received:r.parsedType}),re}return Ot(t.data)}}xp.create=e=>new xp({typeName:ie.ZodSymbol,...de(e)});class Ou extends ge{_parse(t){if(this._getType(t)!==Q.undefined){const r=this._getOrReturnCtx(t);return H(r,{code:L.invalid_type,expected:Q.undefined,received:r.parsedType}),re}return Ot(t.data)}}Ou.create=e=>new Ou({typeName:ie.ZodUndefined,...de(e)});class Du extends ge{_parse(t){if(this._getType(t)!==Q.null){const r=this._getOrReturnCtx(t);return H(r,{code:L.invalid_type,expected:Q.null,received:r.parsedType}),re}return Ot(t.data)}}Du.create=e=>new Du({typeName:ie.ZodNull,...de(e)});class vp extends ge{constructor(){super(...arguments),this._any=!0}_parse(t){return Ot(t.data)}}vp.create=e=>new vp({typeName:ie.ZodAny,...de(e)});class Fu extends ge{constructor(){super(...arguments),this._unknown=!0}_parse(t){return Ot(t.data)}}Fu.create=e=>new Fu({typeName:ie.ZodUnknown,...de(e)});class tr extends ge{_parse(t){const n=this._getOrReturnCtx(t);return H(n,{code:L.invalid_type,expected:Q.never,received:n.parsedType}),re}}tr.create=e=>new tr({typeName:ie.ZodNever,...de(e)});class kp extends ge{_parse(t){if(this._getType(t)!==Q.undefined){const r=this._getOrReturnCtx(t);return H(r,{code:L.invalid_type,expected:Q.void,received:r.parsedType}),re}return Ot(t.data)}}kp.create=e=>new kp({typeName:ie.ZodVoid,...de(e)});class rn extends ge{_parse(t){const{ctx:n,status:r}=this._processInputParams(t),i=this._def;if(n.parsedType!==Q.array)return H(n,{code:L.invalid_type,expected:Q.array,received:n.parsedType}),re;if(i.exactLength!==null){const s=n.data.length>i.exactLength.value,l=n.data.length<i.exactLength.value;(s||l)&&(H(n,{code:s?L.too_big:L.too_small,minimum:l?i.exactLength.value:void 0,maximum:s?i.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:i.exactLength.message}),r.dirty())}if(i.minLength!==null&&n.data.length<i.minLength.value&&(H(n,{code:L.too_small,minimum:i.minLength.value,type:"array",inclusive:!0,exact:!1,message:i.minLength.message}),r.dirty()),i.maxLength!==null&&n.data.length>i.maxLength.value&&(H(n,{code:L.too_big,maximum:i.maxLength.value,type:"array",inclusive:!0,exact:!1,message:i.maxLength.message}),r.dirty()),n.common.async)return Promise.all([...n.data].map((s,l)=>i.type._parseAsync(new on(n,s,n.path,l)))).then(s=>ut.mergeArray(r,s));const o=[...n.data].map((s,l)=>i.type._parseSync(new on(n,s,n.path,l)));return ut.mergeArray(r,o)}get element(){return this._def.type}min(t,n){return new rn({...this._def,minLength:{value:t,message:ee.toString(n)}})}max(t,n){return new rn({...this._def,maxLength:{value:t,message:ee.toString(n)}})}length(t,n){return new rn({...this._def,exactLength:{value:t,message:ee.toString(n)}})}nonempty(t){return this.min(1,t)}}rn.create=(e,t)=>new rn({type:e,minLength:null,maxLength:null,exactLength:null,typeName:ie.ZodArray,...de(t)});function $r(e){if(e instanceof $e){const t={};for(const n in e.shape){const r=e.shape[n];t[n]=bn.create($r(r))}return new $e({...e._def,shape:()=>t})}else return e instanceof rn?new rn({...e._def,type:$r(e.element)}):e instanceof bn?bn.create($r(e.unwrap())):e instanceof Er?Er.create($r(e.unwrap())):e instanceof Ir?Ir.create(e.items.map(t=>$r(t))):e}class $e extends ge{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),n=we.objectKeys(t);return this._cached={shape:t,keys:n},this._cached}_parse(t){if(this._getType(t)!==Q.object){const u=this._getOrReturnCtx(t);return H(u,{code:L.invalid_type,expected:Q.object,received:u.parsedType}),re}const{status:r,ctx:i}=this._processInputParams(t),{shape:o,keys:s}=this._getCached(),l=[];if(!(this._def.catchall instanceof tr&&this._def.unknownKeys==="strip"))for(const u in i.data)s.includes(u)||l.push(u);const a=[];for(const u of s){const f=o[u],d=i.data[u];a.push({key:{status:"valid",value:u},value:f._parse(new on(i,d,i.path,u)),alwaysSet:u in i.data})}if(this._def.catchall instanceof tr){const u=this._def.unknownKeys;if(u==="passthrough")for(const f of l)a.push({key:{status:"valid",value:f},value:{status:"valid",value:i.data[f]}});else if(u==="strict")l.length>0&&(H(i,{code:L.unrecognized_keys,keys:l}),r.dirty());else if(u!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const u=this._def.catchall;for(const f of l){const d=i.data[f];a.push({key:{status:"valid",value:f},value:u._parse(new on(i,d,i.path,f)),alwaysSet:f in i.data})}}return i.common.async?Promise.resolve().then(async()=>{const u=[];for(const f of a){const d=await f.key,m=await f.value;u.push({key:d,value:m,alwaysSet:f.alwaysSet})}return u}).then(u=>ut.mergeObjectSync(r,u)):ut.mergeObjectSync(r,a)}get shape(){return this._def.shape()}strict(t){return ee.errToObj,new $e({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,r)=>{var o,s;const i=((s=(o=this._def).errorMap)==null?void 0:s.call(o,n,r).message)??r.defaultError;return n.code==="unrecognized_keys"?{message:ee.errToObj(t).message??i}:{message:i}}}:{}})}strip(){return new $e({...this._def,unknownKeys:"strip"})}passthrough(){return new $e({...this._def,unknownKeys:"passthrough"})}extend(t){return new $e({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new $e({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:ie.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new $e({...this._def,catchall:t})}pick(t){const n={};for(const r of we.objectKeys(t))t[r]&&this.shape[r]&&(n[r]=this.shape[r]);return new $e({...this._def,shape:()=>n})}omit(t){const n={};for(const r of we.objectKeys(this.shape))t[r]||(n[r]=this.shape[r]);return new $e({...this._def,shape:()=>n})}deepPartial(){return $r(this)}partial(t){const n={};for(const r of we.objectKeys(this.shape)){const i=this.shape[r];t&&!t[r]?n[r]=i:n[r]=i.optional()}return new $e({...this._def,shape:()=>n})}required(t){const n={};for(const r of we.objectKeys(this.shape))if(t&&!t[r])n[r]=this.shape[r];else{let o=this.shape[r];for(;o instanceof bn;)o=o._def.innerType;n[r]=o}return new $e({...this._def,shape:()=>n})}keyof(){return b1(we.objectKeys(this.shape))}}$e.create=(e,t)=>new $e({shape:()=>e,unknownKeys:"strip",catchall:tr.create(),typeName:ie.ZodObject,...de(t)});$e.strictCreate=(e,t)=>new $e({shape:()=>e,unknownKeys:"strict",catchall:tr.create(),typeName:ie.ZodObject,...de(t)});$e.lazycreate=(e,t)=>new $e({shape:e,unknownKeys:"strip",catchall:tr.create(),typeName:ie.ZodObject,...de(t)});class al extends ge{_parse(t){const{ctx:n}=this._processInputParams(t),r=this._def.options;function i(o){for(const l of o)if(l.result.status==="valid")return l.result;for(const l of o)if(l.result.status==="dirty")return n.common.issues.push(...l.ctx.common.issues),l.result;const s=o.map(l=>new En(l.ctx.common.issues));return H(n,{code:L.invalid_union,unionErrors:s}),re}if(n.common.async)return Promise.all(r.map(async o=>{const s={...n,common:{...n.common,issues:[]},parent:null};return{result:await o._parseAsync({data:n.data,path:n.path,parent:s}),ctx:s}})).then(i);{let o;const s=[];for(const a of r){const u={...n,common:{...n.common,issues:[]},parent:null},f=a._parseSync({data:n.data,path:n.path,parent:u});if(f.status==="valid")return f;f.status==="dirty"&&!o&&(o={result:f,ctx:u}),u.common.issues.length&&s.push(u.common.issues)}if(o)return n.common.issues.push(...o.ctx.common.issues),o.result;const l=s.map(a=>new En(a));return H(n,{code:L.invalid_union,unionErrors:l}),re}}get options(){return this._def.options}}al.create=(e,t)=>new al({options:e,typeName:ie.ZodUnion,...de(t)});const mn=e=>e instanceof Uu?mn(e.schema):e instanceof nr?mn(e.innerType()):e instanceof dl?[e.value]:e instanceof Nr?e.options:e instanceof Bu?we.objectValues(e.enum):e instanceof pl?mn(e._def.innerType):e instanceof Ou?[void 0]:e instanceof Du?[null]:e instanceof bn?[void 0,...mn(e.unwrap())]:e instanceof Er?[null,...mn(e.unwrap())]:e instanceof S1||e instanceof hl?mn(e.unwrap()):e instanceof ml?mn(e._def.innerType):[];class id extends ge{_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==Q.object)return H(n,{code:L.invalid_type,expected:Q.object,received:n.parsedType}),re;const r=this.discriminator,i=n.data[r],o=this.optionsMap.get(i);return o?n.common.async?o._parseAsync({data:n.data,path:n.path,parent:n}):o._parseSync({data:n.data,path:n.path,parent:n}):(H(n,{code:L.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),re)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,n,r){const i=new Map;for(const o of n){const s=mn(o.shape[t]);if(!s.length)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(const l of s){if(i.has(l))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(l)}`);i.set(l,o)}}return new id({typeName:ie.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:i,...de(r)})}}function $u(e,t){const n=Dn(e),r=Dn(t);if(e===t)return{valid:!0,data:e};if(n===Q.object&&r===Q.object){const i=we.objectKeys(t),o=we.objectKeys(e).filter(l=>i.indexOf(l)!==-1),s={...e,...t};for(const l of o){const a=$u(e[l],t[l]);if(!a.valid)return{valid:!1};s[l]=a.data}return{valid:!0,data:s}}else if(n===Q.array&&r===Q.array){if(e.length!==t.length)return{valid:!1};const i=[];for(let o=0;o<e.length;o++){const s=e[o],l=t[o],a=$u(s,l);if(!a.valid)return{valid:!1};i.push(a.data)}return{valid:!0,data:i}}else return n===Q.date&&r===Q.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class ul extends ge{_parse(t){const{status:n,ctx:r}=this._processInputParams(t),i=(o,s)=>{if(hp(o)||hp(s))return re;const l=$u(o.value,s.value);return l.valid?((gp(o)||gp(s))&&n.dirty(),{status:n.value,value:l.data}):(H(r,{code:L.invalid_intersection_types}),re)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([o,s])=>i(o,s)):i(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}ul.create=(e,t,n)=>new ul({left:e,right:t,typeName:ie.ZodIntersection,...de(n)});class Ir extends ge{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Q.array)return H(r,{code:L.invalid_type,expected:Q.array,received:r.parsedType}),re;if(r.data.length<this._def.items.length)return H(r,{code:L.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),re;!this._def.rest&&r.data.length>this._def.items.length&&(H(r,{code:L.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const o=[...r.data].map((s,l)=>{const a=this._def.items[l]||this._def.rest;return a?a._parse(new on(r,s,r.path,l)):null}).filter(s=>!!s);return r.common.async?Promise.all(o).then(s=>ut.mergeArray(n,s)):ut.mergeArray(n,o)}get items(){return this._def.items}rest(t){return new Ir({...this._def,rest:t})}}Ir.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Ir({items:e,typeName:ie.ZodTuple,rest:null,...de(t)})};class cl extends ge{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Q.object)return H(r,{code:L.invalid_type,expected:Q.object,received:r.parsedType}),re;const i=[],o=this._def.keyType,s=this._def.valueType;for(const l in r.data)i.push({key:o._parse(new on(r,l,r.path,l)),value:s._parse(new on(r,r.data[l],r.path,l)),alwaysSet:l in r.data});return r.common.async?ut.mergeObjectAsync(n,i):ut.mergeObjectSync(n,i)}get element(){return this._def.valueType}static create(t,n,r){return n instanceof ge?new cl({keyType:t,valueType:n,typeName:ie.ZodRecord,...de(r)}):new cl({keyType:vn.create(),valueType:t,typeName:ie.ZodRecord,...de(n)})}}class wp extends ge{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Q.map)return H(r,{code:L.invalid_type,expected:Q.map,received:r.parsedType}),re;const i=this._def.keyType,o=this._def.valueType,s=[...r.data.entries()].map(([l,a],u)=>({key:i._parse(new on(r,l,r.path,[u,"key"])),value:o._parse(new on(r,a,r.path,[u,"value"]))}));if(r.common.async){const l=new Map;return Promise.resolve().then(async()=>{for(const a of s){const u=await a.key,f=await a.value;if(u.status==="aborted"||f.status==="aborted")return re;(u.status==="dirty"||f.status==="dirty")&&n.dirty(),l.set(u.value,f.value)}return{status:n.value,value:l}})}else{const l=new Map;for(const a of s){const u=a.key,f=a.value;if(u.status==="aborted"||f.status==="aborted")return re;(u.status==="dirty"||f.status==="dirty")&&n.dirty(),l.set(u.value,f.value)}return{status:n.value,value:l}}}}wp.create=(e,t,n)=>new wp({valueType:t,keyType:e,typeName:ie.ZodMap,...de(n)});class _o extends ge{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Q.set)return H(r,{code:L.invalid_type,expected:Q.set,received:r.parsedType}),re;const i=this._def;i.minSize!==null&&r.data.size<i.minSize.value&&(H(r,{code:L.too_small,minimum:i.minSize.value,type:"set",inclusive:!0,exact:!1,message:i.minSize.message}),n.dirty()),i.maxSize!==null&&r.data.size>i.maxSize.value&&(H(r,{code:L.too_big,maximum:i.maxSize.value,type:"set",inclusive:!0,exact:!1,message:i.maxSize.message}),n.dirty());const o=this._def.valueType;function s(a){const u=new Set;for(const f of a){if(f.status==="aborted")return re;f.status==="dirty"&&n.dirty(),u.add(f.value)}return{status:n.value,value:u}}const l=[...r.data.values()].map((a,u)=>o._parse(new on(r,a,r.path,u)));return r.common.async?Promise.all(l).then(a=>s(a)):s(l)}min(t,n){return new _o({...this._def,minSize:{value:t,message:ee.toString(n)}})}max(t,n){return new _o({...this._def,maxSize:{value:t,message:ee.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}}_o.create=(e,t)=>new _o({valueType:e,minSize:null,maxSize:null,typeName:ie.ZodSet,...de(t)});class Uu extends ge{get schema(){return this._def.getter()}_parse(t){const{ctx:n}=this._processInputParams(t);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}Uu.create=(e,t)=>new Uu({getter:e,typeName:ie.ZodLazy,...de(t)});class dl extends ge{_parse(t){if(t.data!==this._def.value){const n=this._getOrReturnCtx(t);return H(n,{received:n.data,code:L.invalid_literal,expected:this._def.value}),re}return{status:"valid",value:t.data}}get value(){return this._def.value}}dl.create=(e,t)=>new dl({value:e,typeName:ie.ZodLiteral,...de(t)});function b1(e,t){return new Nr({values:e,typeName:ie.ZodEnum,...de(t)})}class Nr extends ge{_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),r=this._def.values;return H(n,{expected:we.joinValues(r),received:n.parsedType,code:L.invalid_type}),re}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){const n=this._getOrReturnCtx(t),r=this._def.values;return H(n,{received:n.data,code:L.invalid_enum_value,options:r}),re}return Ot(t.data)}get options(){return this._def.values}get enum(){const t={};for(const n of this._def.values)t[n]=n;return t}get Values(){const t={};for(const n of this._def.values)t[n]=n;return t}get Enum(){const t={};for(const n of this._def.values)t[n]=n;return t}extract(t,n=this._def){return Nr.create(t,{...this._def,...n})}exclude(t,n=this._def){return Nr.create(this.options.filter(r=>!t.includes(r)),{...this._def,...n})}}Nr.create=b1;class Bu extends ge{_parse(t){const n=we.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==Q.string&&r.parsedType!==Q.number){const i=we.objectValues(n);return H(r,{expected:we.joinValues(i),received:r.parsedType,code:L.invalid_type}),re}if(this._cache||(this._cache=new Set(we.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){const i=we.objectValues(n);return H(r,{received:r.data,code:L.invalid_enum_value,options:i}),re}return Ot(t.data)}get enum(){return this._def.values}}Bu.create=(e,t)=>new Bu({values:e,typeName:ie.ZodNativeEnum,...de(t)});class fl extends ge{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==Q.promise&&n.common.async===!1)return H(n,{code:L.invalid_type,expected:Q.promise,received:n.parsedType}),re;const r=n.parsedType===Q.promise?n.data:Promise.resolve(n.data);return Ot(r.then(i=>this._def.type.parseAsync(i,{path:n.path,errorMap:n.common.contextualErrorMap})))}}fl.create=(e,t)=>new fl({type:e,typeName:ie.ZodPromise,...de(t)});class nr extends ge{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===ie.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:n,ctx:r}=this._processInputParams(t),i=this._def.effect||null,o={addIssue:s=>{H(r,s),s.fatal?n.abort():n.dirty()},get path(){return r.path}};if(o.addIssue=o.addIssue.bind(o),i.type==="preprocess"){const s=i.transform(r.data,o);if(r.common.async)return Promise.resolve(s).then(async l=>{if(n.value==="aborted")return re;const a=await this._def.schema._parseAsync({data:l,path:r.path,parent:r});return a.status==="aborted"?re:a.status==="dirty"||n.value==="dirty"?Wi(a.value):a});{if(n.value==="aborted")return re;const l=this._def.schema._parseSync({data:s,path:r.path,parent:r});return l.status==="aborted"?re:l.status==="dirty"||n.value==="dirty"?Wi(l.value):l}}if(i.type==="refinement"){const s=l=>{const a=i.refinement(l,o);if(r.common.async)return Promise.resolve(a);if(a instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return l};if(r.common.async===!1){const l=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return l.status==="aborted"?re:(l.status==="dirty"&&n.dirty(),s(l.value),{status:n.value,value:l.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(l=>l.status==="aborted"?re:(l.status==="dirty"&&n.dirty(),s(l.value).then(()=>({status:n.value,value:l.value}))))}if(i.type==="transform")if(r.common.async===!1){const s=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!gi(s))return re;const l=i.transform(s.value,o);if(l instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:l}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(s=>gi(s)?Promise.resolve(i.transform(s.value,o)).then(l=>({status:n.value,value:l})):re);we.assertNever(i)}}nr.create=(e,t,n)=>new nr({schema:e,typeName:ie.ZodEffects,effect:t,...de(n)});nr.createWithPreprocess=(e,t,n)=>new nr({schema:t,effect:{type:"preprocess",transform:e},typeName:ie.ZodEffects,...de(n)});class bn extends ge{_parse(t){return this._getType(t)===Q.undefined?Ot(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}bn.create=(e,t)=>new bn({innerType:e,typeName:ie.ZodOptional,...de(t)});class Er extends ge{_parse(t){return this._getType(t)===Q.null?Ot(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Er.create=(e,t)=>new Er({innerType:e,typeName:ie.ZodNullable,...de(t)});class pl extends ge{_parse(t){const{ctx:n}=this._processInputParams(t);let r=n.data;return n.parsedType===Q.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}pl.create=(e,t)=>new pl({innerType:e,typeName:ie.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...de(t)});class ml extends ge{_parse(t){const{ctx:n}=this._processInputParams(t),r={...n,common:{...n.common,issues:[]}},i=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return sl(i)?i.then(o=>({status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new En(r.common.issues)},input:r.data})})):{status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new En(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}ml.create=(e,t)=>new ml({innerType:e,typeName:ie.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...de(t)});class bp extends ge{_parse(t){if(this._getType(t)!==Q.nan){const r=this._getOrReturnCtx(t);return H(r,{code:L.invalid_type,expected:Q.nan,received:r.parsedType}),re}return{status:"valid",value:t.data}}}bp.create=e=>new bp({typeName:ie.ZodNaN,...de(e)});class S1 extends ge{_parse(t){const{ctx:n}=this._processInputParams(t),r=n.data;return this._def.type._parse({data:r,path:n.path,parent:n})}unwrap(){return this._def.type}}class od extends ge{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.common.async)return(async()=>{const o=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return o.status==="aborted"?re:o.status==="dirty"?(n.dirty(),Wi(o.value)):this._def.out._parseAsync({data:o.value,path:r.path,parent:r})})();{const i=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return i.status==="aborted"?re:i.status==="dirty"?(n.dirty(),{status:"dirty",value:i.value}):this._def.out._parseSync({data:i.value,path:r.path,parent:r})}}static create(t,n){return new od({in:t,out:n,typeName:ie.ZodPipeline})}}class hl extends ge{_parse(t){const n=this._def.innerType._parse(t),r=i=>(gi(i)&&(i.value=Object.freeze(i.value)),i);return sl(n)?n.then(i=>r(i)):r(n)}unwrap(){return this._def.innerType}}hl.create=(e,t)=>new hl({innerType:e,typeName:ie.ZodReadonly,...de(t)});var ie;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(ie||(ie={}));const c=vn.create,T=yi.create,q=Lu.create,Sn=Fu.create;tr.create;const M=rn.create,g=$e.create;al.create;const Et=id.create;ul.create;Ir.create;const Dt=cl.create,R=dl.create,J=Nr.create;fl.create;bn.create;Er.create;const iS=nr.createWithPreprocess;new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");g({id:c().min(1),name:c().min(1),baseUrl:c().min(1),apiKey:c().min(1),remark:c().optional(),createdAt:T(),updatedAt:T()}).strict();const oS=g({id:c().min(1),name:c().min(1),baseUrl:c().min(1),remark:c().optional(),keyMasked:c(),hasKey:q(),createdAt:T(),updatedAt:T()}).strict();g({activeChannelId:c().nullable(),channels:M(oS)}).strict();g({}).strict();g({id:c().min(1).optional(),name:c().min(1),baseUrl:c().min(1),apiKey:c().optional(),remark:c().optional()}).strict();g({id:c().min(1)}).strict();g({id:c().min(1).nullable()}).strict();g({channelId:c().min(1).optional(),updatedAt:T().optional()}).strict().refine(e=>e.updatedAt===void 0||e.channelId!==void 0,{message:"updatedAt requires channelId"});g({channelId:c().nullable(),models:M(g({id:c().min(1),ownedBy:c().optional()}).strict())}).strict();const sS=["owner"],lS=["agent","owner","user-upload"],_1=g({id:c().min(1),relPath:c().min(1),from:J(lS),label:c().optional(),size:T().int().nonnegative(),mime:c().min(1),addedAt:T().int().nonnegative(),lastEditedAt:T().int().nonnegative().optional(),stale:q().optional()});g({sessionId:c().min(1),relPath:c().min(1),ttlSeconds:T().int().positive().nullable().optional(),view:J(["raw","md-rendered"]).optional()});g({url:c().min(1),expiresAt:T().int().nonnegative().nullable()});g({sessionId:c().min(1),relPath:c().min(1),label:c().optional(),origin:R("agent").optional()});g({entry:_1});g({sessionId:c().min(1),relPath:c().min(1)});g({removed:R(!0)});g({sessionId:c().min(1)});g({entries:M(_1)});g({attachmentId:c().min(1),url:c().min(1),relPath:c().min(1),sizeBytes:T().int().nonnegative(),mimeType:c().min(1)});const aS=Et("type",[g({type:R("persona"),id:c().min(1)}).strict(),g({type:R("chat"),id:c().min(1)}).strict(),g({type:R("*")}).strict()]),uS=J(["read","send","admin"]),sd=g({resource:aS,actions:M(uS).min(1)}).strict(),cS=g({id:c().min(1),secretHash:c().regex(/^[a-f0-9]{64}$/),displayName:c(),grants:M(sd),issuedAt:T().int().nonnegative(),expiresAt:T().int().positive().optional(),maxUses:T().int().positive().optional(),usedCount:T().int().nonnegative(),peerOwnerId:c().min(1).optional(),firstUsedByPeerAt:T().int().positive().optional(),peerDisplayName:c().optional()}).strict(),dS=cS.omit({secretHash:!0});g({type:R("whoami:ok"),owner:g({id:c(),kind:J(["owner","guest"]),displayName:c(),ownerId:c(),provider:c()}).strict(),capability:dS,grantedPersonas:M(g({id:c().min(1),displayName:c()}).strict())}).strict();g({selfUrl:c().min(1)});g({type:R("contact:handshake:ok"),owner:g({id:c(),ownerId:c(),provider:c(),displayName:c()}),grants:M(sd)});const fS=Et("status",[g({status:R("authorized"),login:c().min(1),source:J(["git","file"])}).strict(),g({status:R("missing")}).strict(),g({status:R("invalid"),message:c().min(1)}).strict(),g({status:R("pending"),authUrl:c().url()}).strict()]);g({token:c().min(1)}).strict();g({returnTo:c().url().optional()}).strict();const pS=g({url:c().url(),bin:c(),sha256:c().regex(/^[0-9a-f]{64}$/),size:T().int().positive()}),mS=g({name:c().min(1),from:c().optional(),version:c().optional(),min:c().optional(),library:q().optional(),localVersion:c().optional(),artifact:pS.optional(),aptMissing:R(!0).optional(),aptVersion:c().optional()}),hS=g({name:c().min(1),env:M(c().min(1)).min(1)}),ld=c().regex(/^[a-z0-9-]+$/,"连接器名只能是小写字母、数字和短横线"),C1=["proxy","env"],I1=["mcp","cli"],gS=["bearer","lark-sidecar"],yS=["none","shared","personal"],N1=["oauth","fields"],ad=c().regex(/^[A-Z][A-Z0-9_]*$/,"要填的变量名只能是大写字母、数字和下划线,且以字母开头"),E1=g({name:ld,kind:J(C1),runner:J(I1),protocol:J(gS).optional(),id:c().min(1),credentialSource:J(yS).optional(),auth:J(N1).optional(),publisherUnionId:c().regex(/^on_[A-Za-z0-9_-]+$/).optional(),fields:M(ad).default([]),http:g({url:c().min(1),headers:Dt(c(),c())}).optional()}),xS=e=>{if(!e||typeof e!="object")return e;let t=e;if("clis"in t&&Array.isArray(t.clis)){const{clis:n,...r}=t;t="packages"in r?r:{...r,packages:n}}if("assets"in t&&Array.isArray(t.assets)&&t.assets.length===0){const{assets:n,...r}=t;t=r}return t},T1=g({version:R(1),entry:c().max(240).regex(/^[A-Za-z0-9_.-]+(?:\/[A-Za-z0-9_.-]+)*\.mjs$/).refine(e=>!e.split("/").some(t=>[".",".."].includes(t))),timeoutSeconds:T().int().min(1).max(600),checks:M(c().regex(/^[a-z0-9][a-z0-9-]{0,63}$/)).min(1).max(64).refine(e=>new Set(e).size===e.length)}).strict(),j1={test:T1.optional(),packages:M(mS),secrets:M(hS),connectors:M(E1).default([])};g(j1);const ud=iS(xS,g({version:R(1),...j1}).strict()),vS=g({target:c().min(1),reason:c().min(1),file:c().min(1),quote:c().min(1)}),kS=["integration","production"],vt=J(kS),Tn=c().regex(/^[a-z0-9.-]+(?::[0-9]+)?\/[a-z0-9._/-]+@sha256:[a-f0-9]{64}$/),Vu=c().regex(/^[a-f0-9]{40}$/),wS=c().refine(e=>{try{const t=new URL(e);return t.protocol==="https:"&&!t.username&&!t.password&&!t.search&&!t.hash&&t.pathname==="/"&&/(^|[.-])int([.-]|$)/.test(t.hostname)}catch{return!1}},"测试验证地址必须明确指向 int HTTPS 环境"),bS=g({version:R(1),runId:c().regex(/^[A-Za-z0-9_-]{1,128}$/),status:R("passed"),exitCode:R(0),result:g({version:R(1),runId:c().regex(/^[A-Za-z0-9_-]{1,128}$/),checks:M(g({name:c().regex(/^[a-z0-9][a-z0-9-]{0,63}$/),status:R("passed"),reason:c().max(1024).optional()}).strict()).min(1).max(64)}).strict(),execution:g({image:Tn,imageID:c().min(1).max(512),engine:J(["codex","pi"]),podUid:c().min(1).max(512),jobUid:c().min(1).max(512)}).strict()}).strict(),A1=g({status:R("passed"),fingerprint:c().regex(/^[a-f0-9]{64}$/),checks:M(c().regex(/^[a-z0-9-]+$/)),endpoint:wS,verifiedAt:c().refine(e=>Number.isFinite(Date.parse(e))),test:bS.optional()}).strict(),P1=g({engine:c().min(1),model:c(),effort:c(),size:c().min(1),cpu:T().positive(),taskConcurrency:T().int().positive()}).strict(),R1=g({version:R(1),environment:R("integration"),component:R("persona"),image:Tn,commit:Vu,baseImage:Tn,pipelineCommit:Vu,repository:c().regex(/^[A-Za-z0-9_.-]+\/[A-Za-z0-9_.-]+$/),config:P1.optional(),verification:A1.refine(e=>e.checks.includes("persona-smoke")),test:T1.optional()}).strict().refine(e=>{if(!e.test)return e.verification.test===void 0;const t=e.verification.test;return["persona-dialogue","persona-task","persona-custom-test"].every(n=>e.verification.checks.includes(n))&&t!==void 0&&t.execution.image===e.image&&t.runId===t.result.runId&&t.result.checks.length===e.test.checks.length&&new Set(t.result.checks.map(n=>n.name)).size===e.test.checks.length&&t.result.checks.every(n=>e.test.checks.includes(n.name))},"Declared publisher acceptance requires complete candidate runtime evidence");g({version:R(1),environment:R("integration"),component:R("base"),image:Tn,commit:Vu,verification:A1.refine(e=>e.checks.includes("base-smoke"))}).strict();const Sp={standard:"default",fast:"priority"},z1=J([Sp.standard,Sp.fast]),SS=["tiny","small","medium","large","xlarge"],_S=J(SS),CS=[.5,1,2],IS=T().refine(e=>CS.includes(e),"Unsupported CPU"),M1=g({model:c().optional(),effort:c().optional()}).strict(),gl=g({personaId:c(),label:c(),model:c().optional(),effort:c().optional(),serviceTier:z1.optional(),public:q(),iconKey:c().optional(),tool:c().optional(),size:c().optional(),cpu:T().finite().optional(),taskConcurrency:T().int().positive().optional(),cloudEngine:M1.optional(),createdAt:T(),updatedAt:T(),cloud:g({gatewayUrl:c().min(1),personaId:c().min(1),publishedByMe:q().optional(),environment:vt.optional(),expectedImage:Tn.optional(),testReleaseId:c().optional()}).strict().optional()}).strict(),NS=g({name:c().min(1),description:c().optional()}),ES=g({id:c().min(1)}),L1=g({writableRoots:M(c()).optional(),denyRead:M(c()).optional(),network:q().optional()}).strict(),TS=g({permissions:g({defaultMode:c().optional(),allow:M(c()).optional(),deny:M(c()).optional()}).optional(),sandbox:g({enabled:q().optional(),autoAllowBashIfSandboxed:q().optional(),allowUnsandboxedCommands:q().optional(),excludedCommands:M(c()).optional(),filesystem:g({denyRead:M(c()).optional(),allowRead:M(c()).optional(),denyWrite:M(c()).optional(),allowWrite:M(c()).optional()}).optional(),network:g({allowedDomains:M(c()).optional(),allowLocalBinding:q().optional()}).optional()}).optional()});gl.extend({personality:c().optional(),personalityLocal:c().optional(),personalityManaged:q().optional(),skills:M(NS).optional(),plugins:M(ES).optional(),sandboxSettings:TS.nullable().optional(),codexSandbox:L1.nullable().optional()});g({slug:c().regex(/^[a-z0-9]+(-[a-z0-9]+)*$/).max(32),label:c().min(1),personality:c(),model:c().optional(),effort:c().optional(),serviceTier:gl.shape.serviceTier,tool:c().optional(),public:q().optional(),iconKey:c().optional()}).strict();g({personaId:c().min(1)});g({personaId:c().min(1),patch:g({label:c().min(1).optional(),model:c().optional(),effort:c().optional(),serviceTier:gl.shape.serviceTier,tool:c().optional(),size:_S.optional(),cpu:IS.optional(),taskConcurrency:gl.shape.taskConcurrency,cloudEngine:M1.optional(),personality:c().optional(),personalityLocal:c().optional(),public:q().optional(),iconKey:c().nullable().optional(),codexSandbox:L1.optional()}).strict()}).strict();g({version:R(1),manifest:ud}).strict();const jS=["hard","soft"],O1=J(jS),AS=J(["scanning","done","failed"]),D1=g({id:c().min(1),manifest:ud,scanSessionId:c().optional(),status:AS,evidence:M(vS).default([]),notes:M(c()).default([]),head:c().min(1).optional(),baseKind:O1.default("hard"),base:c().min(1).optional(),startedAt:T(),finishedAt:T().optional(),error:c().optional()}).strict(),cd=g({id:c().min(1).optional(),environment:vt.optional(),legacy:q().optional(),head:c().min(1),contentHead:c().min(1),scanId:c().min(1),at:T(),pushed:q().optional(),runId:T().int().positive().optional(),runAttempt:T().int().positive().optional(),artifactId:T().int().positive().optional(),verified:R1.optional(),config:P1.optional(),reconfigOf:c().min(1).optional(),workflowVersion:T().int().positive().optional(),confirmation:g({fingerprint:c().regex(/^[a-f0-9]{64}$/),runId:T().int().positive(),runAttempt:T().int().positive(),at:T()}).strict().optional()}).strict(),PS=["prepared","main-pushed","dispatching","dispatched","completed","failed"],dd=g({id:c().min(1),releaseId:c().min(1),at:T(),verified:R1.optional(),phase:J(PS),expectedMain:c().optional(),runId:T().int().positive().optional(),runAttempt:T().int().positive().optional(),error:c().optional()}).strict(),_p=g({channelId:c().min(1),updatedAt:T()}).strict(),fd=g({integration:_p.nullable().optional(),production:_p.nullable().optional()}).strict();g({version:R(4),engineChannels:fd.optional(),scans:M(D1),releases:M(cd),promotions:M(dd).default([])}).strict();const RS=g({url:c().min(1),branch:c().min(1),head:c().min(1),dirty:q(),ahead:T()}).strict(),Ts=g({env:c().min(1),setAt:T().optional()}).strict(),zS=["pending","running","done","failed","waiting","skipped"],MS=J(zS),LS="verify",OS=["build","smoke","deploy",LS],DS=J(OS),FS=g({key:DS,status:MS,url:c().optional(),jobId:T().optional(),startedAt:T().optional(),completedAt:T().optional()}).strict(),js=g({runId:T(),headSha:c().min(1),status:J(["queued","running","completed"]),htmlUrl:c().min(1),jobs:M(FS),environment:vt.optional(),branch:c().optional(),event:c().optional(),runAttempt:T().int().positive().optional(),conclusion:J(["success","failure"]).optional(),promotionId:c().optional()}).strict(),ba=g({runId:T(),status:js.shape.status,conclusion:J(["success","failure"]).optional(),htmlUrl:c().min(1)}).strict(),F1=g({personaId:c().min(1),engineChannels:fd.optional(),github:fS.optional(),publisherFeishuAuth:g({integration:g({connected:q(),authUrl:c().optional(),error:c().optional()}).strict(),production:g({connected:q(),authUrl:c().optional(),error:c().optional()}).strict()}).strict().optional(),repo:RS.optional(),scans:M(D1).default([]),releases:M(cd).default([]),promotions:M(dd).optional(),targets:g({integration:g({run:js.optional(),secrets:M(Ts).optional(),online:q().optional(),image:Tn.optional(),unpublish:ba.optional()}).strict().optional(),production:g({run:js.optional(),secrets:M(Ts).optional(),online:q().optional(),image:Tn.optional(),unpublish:ba.optional()}).strict().optional()}).strict().optional(),secrets:M(Ts).optional(),run:js.optional(),online:q().optional(),unpublish:ba.optional(),historyError:c().optional()}).strict();g({before:T().nullable()}).strict();F1.pick({personaId:!0,github:!0,repo:!0,scans:!0,releases:!0,promotions:!0,engineChannels:!0,historyError:!0});F1.pick({scans:!0});g({environment:vt,secrets:M(Ts).optional(),engineChannels:fd.optional()}).strict();g({sha:c().min(1),actionsUrl:c().min(1),releaseId:c().optional()}).strict();const Oo=g({personaId:c().min(1)}).strict();Oo.extend({releaseHead:c().min(1).optional(),releaseId:c().min(1).optional(),environment:vt.optional()}).strict();Oo.extend({scanBase:O1.optional()}).strict();Oo.extend({scanId:c().min(1)}).strict();Oo.extend({releaseId:c().min(1)}).strict();Oo.extend({environment:vt.default("production")}).strict();g({confirmation:cd.shape.confirmation.unwrap()}).strict();g({promotion:dd}).strict();g({personaId:c().min(1),expectedImage:Tn}).strict();g({personaId:c().min(1),scanId:c().min(1),patch:g({manifest:ud.optional(),connector:E1.optional()}).strict()}).strict();g({personaId:c().min(1),environment:vt.default("production"),scanId:c().min(1),name:c().min(1),values:Dt(c(),c())}).strict();g({personaId:c().min(1),environment:vt.default("production"),channelId:c().min(1).optional(),auth:g({baseUrl:c(),apiKey:c()}).strict().nullable().optional()}).strict().refine(e=>e.channelId!==void 0||e.auth!==void 0,{message:"Either channelId or auth must be provided"});g({personaId:c().min(1),environment:vt.default("production"),releaseId:c().optional(),jobId:T()}).strict();g({personaId:c().min(1),kind:J(["package","secret","connector"]),item:Dt(c(),Sn()),evidence:g({reason:c().min(1),file:c().min(1),quote:c().min(1)})}).strict();g({personaId:c().min(1),notes:M(c()).default([])}).strict();g({environment:vt.default("production")}).strict();const $S=g({deviceId:c().min(1),name:c().min(1),url:c().min(1)});g({type:R("device:list:ok"),devices:M($S)});g({deviceId:c().min(1),url:c().min(1).optional(),name:c().optional()});g({type:R("device:connect:ok"),deviceId:c(),name:c(),url:c()});const $1=g({ownerId:c().min(1),provider:c().min(1),displayName:c().min(1),avatarUrl:c().optional(),unionId:c().optional()});g({type:R("auth:login:start:ok"),environment:vt.optional(),authUrl:c().min(1),state:c().min(1)});g({type:R("auth:getIdentity:ok"),identity:$1.nullable(),deviceId:c().min(1)});g({type:R("auth:logout:ok")});const U1=c().nullable();g({type:R("auth:apiKey:get:ok"),apiKey:c().nullable(),createdAt:c().nullable(),gatewayUrl:U1});g({type:R("auth:apiKey:regenerate:ok"),apiKey:c().min(1),createdAt:c().min(1),gatewayUrl:U1});g({type:R("auth:apiKey:revoke:ok"),revoked:q()});g({type:R("auth:login:done"),environment:vt.optional(),identity:$1});g({type:R("auth:login:failed"),environment:vt.optional(),reason:c()});g({deviceId:c().min(1),remoteAccessAllowed:q()}).strict();g({type:R("contact:setRemoteAccess:ok"),deviceId:c().min(1),remoteAccessAllowed:q()}).strict();g({type:R("contact:remote-access-updated"),deviceId:c().min(1),remoteAccessAllowed:q()}).strict();g({personaId:c().min(1)}).strict();const US=["connected","missing","reauth"],BS=["link","fill"],VS=g({name:ld,id:c().min(1),kind:J(C1),runner:J(I1),auth:J(N1),status:J(US),action:J(BS),authUrl:c().optional(),fields:M(ad)}).strict();g({connectors:M(VS)}).strict();g({personaId:c().min(1),name:ld,values:Dt(ad,c().min(1))}).strict();const HS=g({deviceId:c().min(1),ownerId:c().min(1),provider:c().min(1),displayName:c(),remoteUrl:c().min(1),connectToken:c(),grants:M(sd),addedAt:T().int().nonnegative(),pinnedAt:T().int().nullable().default(null),remoteAccessAllowed:q().default(!1),note:c().default("")}).strict(),B1=HS;g({deviceId:c().min(1)}).strict();g({type:R("contact:remove:ok"),deviceId:c().min(1)}).strict();g({type:R("contact:list:ok"),contacts:M(B1)}).strict();g({type:R("contact:added"),contact:B1}).strict();g({type:R("contact:removed"),deviceId:c().min(1)}).strict();g({deviceId:c().min(1),pinned:q()}).strict();g({deviceId:c().min(1),note:c()}).strict();g({type:R("contact:setNote:ok"),deviceId:c().min(1),note:c()}).strict();g({type:R("contact:pin:ok"),deviceId:c().min(1),pinnedAt:T().int().nullable()}).strict();g({type:R("contact:pinned"),deviceId:c().min(1),pinnedAt:T().int().nullable()}).strict();const pd=Et("kind",[g({kind:R("success"),text:c(),brief:c().optional(),filePaths:M(c()).optional()}),g({kind:R("failure"),reason:c(),brief:c().optional()})]);g({targetPersona:c().min(1).optional(),dispatchId:c().min(1).optional(),prompt:c(),brief:c().optional(),targetDeviceId:c().min(1).optional(),model:c().min(1).optional(),tool:c().min(1).optional(),sessionLabel:c().min(1).max(60).optional(),meta:Dt(Sn()).optional()}).refine(e=>e.targetPersona!==void 0||e.dispatchId!==void 0,{message:"either targetPersona (new dispatch) or dispatchId (follow-up) is required"}).refine(e=>!(e.dispatchId!==void 0&&e.targetDeviceId!==void 0),{message:"cross-device dispatch cannot be continued (dispatchId + targetDeviceId are mutually exclusive)"}).refine(e=>!(e.tool!==void 0&&e.targetDeviceId!==void 0),{message:"engine override is not supported for cross-device dispatch (tool + targetDeviceId are mutually exclusive)"}).refine(e=>!(e.dispatchId!==void 0&&(e.tool!==void 0||e.model!==void 0)),{message:"a follow-up dispatch cannot change engine or model (dispatchId excludes tool / model); start a new dispatch instead"});g({dispatchId:c().min(1),outcome:pd});const qS=["running","completed","failed"],md=J(qS),WS=g({dispatchId:c().min(1),sourceSessionId:c().min(1),sourcePersonaId:c().min(1).optional(),targetPersonaId:c().min(1),targetDeviceId:c().min(1).optional(),workerSessionId:c().min(1).optional(),taskText:c(),taskBrief:c().optional(),round:T().int().positive().optional(),status:md,outcome:pd.optional(),meta:Dt(Sn()).optional(),createdAt:c().min(1),completedAt:c().min(1).optional(),deliveredAt:c().min(1).optional()});g({sourceSessionId:c().min(1).optional(),relatedSessionId:c().min(1).optional()});g({records:M(WS)});g({dispatchId:c().min(1)});g({type:R("personaDispatch:get:ok"),status:md,outcome:pd.optional()});const ZS=/^[a-z0-9][a-z0-9-]*$/;J(["stopped","starting","running","crashed","invalid"]);const GS=new Set(["localhost","127.0.0.1"]);function QS(e){let t;try{t=new URL(e)}catch{return!1}return!!(t.protocol==="https:"||t.protocol==="http:"&&GS.has(t.hostname))}const us=g({id:c().regex(ZS),name:c().min(1),version:c().min(1),apiVersion:R("1"),runtime:g({startCommand:c().min(1)}).passthrough().optional(),entry:g({url:c().url().refine(QS,{message:"INVALID_URL_SCHEME: only https or http://localhost is allowed"})}).strict().optional()}).passthrough().superRefine((e,t)=>{var i;const n=!!e.runtime,r=!!((i=e.entry)!=null&&i.url);n&&r&&t.addIssue({code:L.custom,message:"INVALID_MANIFEST: entry.url and runtime cannot coexist"}),!n&&!r&&t.addIssue({code:L.custom,message:"INVALID_MANIFEST: must have either entry.url or runtime"})}),KS=Et("kind",[g({kind:R("local"),port:T().int().min(1).max(65535)}),g({kind:R("hosted"),url:c().url()})]);Et("state",[g({extId:c(),manifest:us,state:R("stopped")}),g({extId:c(),manifest:us,state:R("starting")}),g({extId:c(),manifest:us,state:R("running"),target:KS}),g({extId:c(),manifest:us,state:R("crashed")}),g({extId:c(),manifest:Sn().nullable(),state:R("invalid"),invalidReason:c().min(1)})]);g({snapshotHash:c().min(1),version:c().min(1),publishedAt:T()});const YS=Et("kind",[g({kind:R("p2p-tunnel"),ownerPrincipalId:c().min(1),extId:c().min(1)})]);Et("kind",[g({kind:R("p2p-tunnel"),ownerPrincipalId:c().min(1),extId:c().min(1),snapshotHash:c().min(1)})]);g({extId:c().min(1),name:c().min(1),version:c().min(1),contentHash:c().min(1),publishedAt:T()});const XS=Et("kind",[g({kind:R("clean")}),g({kind:R("ready-new-version"),fromVersion:c().min(1),toVersion:c().min(1)}),g({kind:R("error-same-hash"),version:c().min(1)}),g({kind:R("error-version-not-bumped"),localVersion:c().min(1),publishedVersion:c().min(1)}),g({kind:R("error-version-regression"),localVersion:c().min(1),publishedVersion:c().min(1)})]);g({localManifest:g({name:c().min(1),version:c().min(1),contentHash:c().min(1)}),publishState:Et("kind",[g({kind:R("unpublished")}),g({kind:R("published"),version:c().min(1),contentHash:c().min(1),publishedAt:T()})]),check:XS});g({extId:c().min(1),newVersion:c().min(1).nullish()});g({extId:c().min(1)});g({extId:c().min(1),snapshotHash:c().min(1)});g({channelRef:YS,snapshotHash:c().min(1),zipBase64:c().min(1)});g({id:c().min(1),peerDeviceId:c().min(1),senderDeviceId:c().min(1),text:c().min(1),createdAt:T().int().nonnegative(),readBy:Dt(c().min(1),T().int().positive()).default({}),origin:g({kind:R("persona"),personaId:c().min(1)}).optional()}).strict();g({peerDeviceId:c().min(1).optional(),id:c().min(1),text:c().min(1),createdAt:T().int().nonnegative(),origin:g({kind:R("persona"),personaId:c().min(1)}).optional()}).strict();g({peerDeviceId:c().min(1),sinceCreatedAt:T().int().nonnegative().optional()}).strict();g({peerDeviceId:c().min(1),upToCreatedAt:T().int().nonnegative()}).strict();g({peerDeviceId:c().min(1).optional(),text:c().min(1)});g({peerDeviceId:c().min(1).optional(),command:c().min(1),timeoutMs:T().int().positive().optional()}).strict();g({type:R("peerExec:run:ok"),stdout:c(),stderr:c(),exitCode:T().int().nullable(),timedOut:q(),stdoutTruncated:q(),stderrTruncated:q()}).strict();const V1=Et("kind",[g({kind:R("at"),at:c().min(1)}),g({kind:R("every"),everyMs:T().int().positive(),anchorMs:T().int().nonnegative().optional()}),g({kind:R("cron"),expr:c().min(1),tz:c().min(1).optional()})]),Do=c().trim().min(1);g({personaId:Do,name:c().min(1),schedule:V1,prompt:c().min(1),targetPersona:c().min(1).optional(),timeoutMs:T().int().positive().optional()});g({personaId:Do,onlyMine:q().optional()});g({personaId:Do,shiftId:c().min(1)});const JS=g({name:c().min(1).optional(),schedule:V1.optional(),prompt:c().min(1).optional(),targetPersona:c().min(1).optional(),timeoutMs:T().int().positive().optional(),enabled:q().optional()});g({personaId:Do,shiftId:c().min(1),patch:JS});g({personaId:Do,shiftId:c().min(1),limit:T().int().positive().optional()});const hd=g({personaId:c().min(1),deviceId:c().min(1).optional()}),H1=g({id:c().min(1),name:c().min(1),memberPersonas:M(hd),memberContactDeviceIds:M(c().min(1)),createdAt:c().min(1),updatedAt:c().min(1)}),q1=c().trim().min(1);g({name:q1,memberPersonas:M(hd).default([]),memberContactDeviceIds:M(c().min(1)).default([])});g({channelId:c().min(1),name:q1.optional(),memberPersonas:M(hd).optional(),memberContactDeviceIds:M(c().min(1)).optional()});g({channelId:c().min(1)});g({channels:M(H1)});g({channel:H1});g({ok:R(!0),removedTopics:T().int().min(0)});const Be=c().trim().min(1),gd=["master-confirmed","owner-needed"],yd=["open","resolved"],e2=gd[0];gd[1];yd[0];const t2=yd[1],n2=J(gd),r2=J(yd),i2=g({id:Be.optional(),resolves:Be.optional(),type:n2,status:r2,question:Be,recommendation:Be}).superRefine((e,t)=>{e.type===e2&&e.status!==t2&&t.addIssue({code:L.custom,path:["status"],message:"master-confirmed decisions must be resolved"})}),o2=["planning","running","done"],s2=J(o2),W1=g({at:c().min(1),actor:c().min(1),action:c().min(1),target:c().optional(),reason:c().min(1),artifacts:M(Be).optional(),decision:i2.optional()}),l2=g({rejectCount:T().int().min(0),accepted:q().default(!1),ordinal:T().int().min(1).optional(),overrideCount:T().int().min(0).optional()}),xd=g({id:c().min(1),channelId:c().min(1),title:c(),masterSessionId:c().min(1),goal:c(),boundaries:c(),acceptanceCriteria:M(c()),activity:M(W1),lineMeta:Dt(l2),nextLineOrdinal:T().int().min(1).optional(),state:s2,createdAt:c().min(1),updatedAt:c().min(1)}),a2=g({lineId:c().min(1),dispatchId:c().min(1),workerSessionId:c().optional(),assignee:c().min(1),focus:c(),status:md,acceptance:M(c()),rejectCount:T().int().min(0),accepted:q(),ordinal:T().int().min(1).nullable()});g({channelId:c().min(1)});g({topicId:c().min(1).optional(),sessionId:c().min(1).optional()}).refine(e=>e.topicId!==void 0||e.sessionId!==void 0,{message:"either topicId or sessionId is required"});g({channelId:c().min(1),title:Be.optional()});g({topicId:c().min(1),title:Be.optional(),goal:Be,boundaries:c(),acceptanceCriteria:M(Be).min(1)});g({topicId:c().min(1),action:Be,target:Be.optional(),reason:Be,artifacts:M(Be).optional(),decision:W1.shape.decision});g({topicId:c().min(1),lineId:Be,reason:Be});g({topicId:c().min(1),lineId:Be,reason:Be,artifacts:M(Be).optional(),watcherVerdict:J(["pass","fail"]),overrideReason:Be.optional()}).refine(e=>e.watcherVerdict!=="fail"||!!e.overrideReason,{message:"watcherVerdict=fail 时必须给 overrideReason(推翻 watcher 的理由)",path:["overrideReason"]});g({topicId:c().min(1),state:J(["done"])});g({topicId:c().min(1),title:Be});g({topicId:c().min(1)});const u2=xd.extend({lineCount:T().int().min(0)});g({topics:M(u2)});g({topic:xd,lines:M(a2)});g({topicId:c().min(1),masterSessionId:c().min(1)});g({rejectCount:T().int().min(1),needsOwnerAttention:q()});g({acceptedLines:T().int().min(1),totalLines:T().int().min(1),allAccepted:q(),overrides:T().int().min(0),needsOwnerAttention:q()});g({topic:xd});g({ok:R(!0),removedMasterSessionId:c().min(1).nullable(),removedWorkerSessionIds:M(c().min(1))});const c2=["ask","allow","deny"],Z1=J(c2),d2=g({id:c().min(1),desc:c().min(1),action:Z1});g({rules:M(d2)});g({ruleId:c().min(1)});g({action:Z1,desc:c(),source:c().min(1)});const f2=["created","review-requested"],G1=/^[A-Za-z0-9._-]+$/,Si=c().min(1).regex(G1),_i=c().min(1).regex(G1),Fo=T().int().positive();g({role:J(f2)});g({owner:Si,repo:_i,number:Fo});g({owner:Si,repo:_i,number:Fo,expectedHeadSha:c().min(1)});g({owner:Si,repo:_i,number:Fo,body:c().min(1)});g({owner:Si,repo:_i,number:Fo,ready:q()});g({owner:Si,repo:_i});g({owner:Si,repo:_i,number:Fo,reviewers:M(c().min(1)).min(1)});g({personaId:c().min(1)});g({personaId:c().min(1)});const p2=["expired","cancelled","access_denied","lark_protocol_error","cloud_unreachable","internal_error"],m2=J(p2);g({personaId:c().min(1),appId:c().min(1),appSecret:c().min(1),botName:c().min(1).optional()});const h2=g({chatId:c().min(1),chatName:c().optional(),lastActiveAt:T().int().optional()}),g2=g({state:J(["unbound","provisioning","bound","broken"]),appId:c().optional(),botName:c().optional(),brokenReason:c().optional(),qrUrl:c().optional(),provisionId:c().optional(),errorReason:m2.optional(),groups:M(h2),needsUpgrade:q().optional(),upgradeQrUrl:c().optional()});g2.extend({personaId:c().min(1)});g({});g({onboardingCompletedAt:T()});const $l=["claude","codex","pi"];g({});g({tools:M(g({id:J($l),available:q(),version:c().optional(),path:c().optional()}))});g({});const y2=g({tool:J($l),cwd:c(),toolSessionId:c(),label:c().optional(),createdAt:c(),updatedAt:c(),turns:T()});g({candidates:M(y2)});g({});g({registered:q()});g({tool:J($l)});const Cp=g({usedPercent:T(),windowDurationMins:T().optional(),resetsAt:T().optional()}).strict(),x2=Et("kind",[g({kind:R("claude"),loggedIn:q(),authMethod:c().optional(),apiProvider:c().optional(),apiKeySource:c().optional(),email:c().optional(),orgName:c().optional(),subscriptionType:c().optional()}).strict(),g({kind:R("codex"),login:Et("type",[g({type:R("none")}).strict(),g({type:R("apiKey")}).strict(),g({type:R("chatgpt"),email:c(),planType:c()}).strict()]),provider:g({name:c(),baseUrl:c().optional()}).strict(),rateLimits:g({primary:Cp.optional(),secondary:Cp.optional()}).strict().optional()}).strict(),g({kind:R("pi"),providers:M(g({id:c(),modelCount:T(),credential:J(["api_key","oauth"]).optional(),oauthExpiresAt:T().optional()}).strict())}).strict()]);g({tool:J($l),installed:q(),version:c().optional(),path:c().optional(),account:x2.optional(),error:c().optional(),modelsLoadedAt:T().optional()}).strict();g({apiKey:c().min(1)}).strict();g({ok:R(!0)}).strict();const v2=["cloud-persona-metrics","cloud-persona-conversations"],k2=J(v2);g({page:k2}).strict();g({url:c(),expiresAt:T().int()}).strict();const w2=["idle","running","running-idle","stopped","error","observing"],b2=["task-notification","slash-command","local-command","system-reminder","skill-hint","meta-text","attachment-skills","attachment-deferred-tools","dispatch-task","dispatch-result"];function Q1(e){return e==="dispatch-task"||e==="dispatch-result"}const S2=["builtin","global","project","plugin"],_2=["builtin","global","project","policy","plugin"],K1=J(["owner","guest"]);g({id:c().min(1),kind:K1,displayName:c(),feishuUnionId:c().optional()}).strict();const C2=g({did:c().min(1),displayName:c(),feishuUnionId:c().optional(),principal:K1}).strict(),I2=J(w2),N2=g({inputTokens:T().int().nonnegative(),outputTokens:T().int().nonnegative(),cacheReadTokens:T().int().nonnegative().optional(),cacheCreateTokens:T().int().nonnegative().optional()}),Y1={gitBranch:c().optional(),resolvedModel:c().optional(),resolvedEffort:c().optional(),contextUsage:N2.optional(),contextWindowSize:T().int().positive().optional(),aiLabel:c().optional()},E2=g(Y1),X1=g({value:c(),label:c(),description:c().optional()}),T2=g({id:c().min(1),label:c().min(1),description:c().optional(),contextWindowSize:T().int().positive(),default:q().optional(),efforts:M(X1).optional(),defaultEffort:c().optional(),group:c().optional()}),j2=g({id:c().min(1),label:c().min(1),description:c().optional()}),A2=g({name:c().min(1),type:J(["string","select","toggle"]),label:c().min(1),description:c().optional(),options:M(X1).optional(),default:Sn().optional(),scope:J(["core","tool-specific"])});g({tool:c().min(1),refresh:q().optional()});const P2=g({rewind:q(),subagents:q(),tui:q(),observe:q(),fileSharing:q(),fork:q()});g({tool:c().min(1),toolSessionIdLabel:c().optional(),models:M(T2),permissionModes:M(j2),configSchema:M(A2),features:P2});const R2=g({tool:c().min(1),pattern:c().min(1),createdAt:c().min(1).optional()});g({cloudEnvironment:vt.optional(),cloudExpectedImage:Tn.optional(),testReleaseId:c().optional(),sessionId:c().min(1),cloudExecutionId:c().min(1).optional(),cloudConversationId:c().min(1).optional(),cloudPendingTurns:M(g({id:c().min(1),text:c(),prepared:q().optional()})).optional(),cloudGatewaySessionId:c().min(1).optional(),cloudPendingCommand:g({id:c().min(1),text:c(),prepared:q().optional()}).optional(),cwd:c().min(1),tool:R("claude").or(c().min(1)).default("claude"),toolSessionId:c().optional(),label:c().optional(),model:c().optional(),permissionMode:c().optional(),effort:c().optional(),serviceTier:c().optional(),...Y1,aiLabelGeneratedAt:c().optional(),permissionRules:M(R2).optional(),pinnedAt:T().int().nonnegative().nullable().optional(),archivedAt:T().int().nonnegative().nullable().optional(),pinSortOrder:T().int().nullable().optional(),unreadAt:c().min(1).nullable().optional(),iconKey:c().optional(),forkedFromSessionId:c().min(1).optional(),ephemeral:q().optional(),deployId:c().min(1).optional(),ownerPersonaId:c().min(1).optional(),projectPath:c().min(1).optional(),chatId:c().min(1).optional(),creatorPrincipalId:c().min(1).optional(),creatorDisplayName:c().min(1).optional(),creatorFeishuUnionId:c().min(1).optional(),originOwnerPrincipalId:c().min(1).optional(),originOwnerPersonaId:c().min(1).optional(),dispatchedFromSessionId:c().min(1).optional(),shiftFiredFromSessionId:c().min(1).optional(),larkChatId:c().min(1).optional(),larkChatName:c().min(1).optional(),larkChatType:J(["p2p","group"]).optional(),createdAt:c().min(1),updatedAt:c().min(1)});const ft={turnId:c().min(1).optional(),seq:T().int().nonnegative().optional(),ts:c().optional(),uuid:c().optional()},z2=J(b2),M2=g({readCount:T().int().nonnegative().optional(),searchCount:T().int().nonnegative().optional(),bashCount:T().int().nonnegative().optional(),editFileCount:T().int().nonnegative().optional(),linesAdded:T().int().nonnegative().optional(),linesRemoved:T().int().nonnegative().optional(),otherToolCount:T().int().nonnegative().optional()}),L2=g({oldStart:T().int().nonnegative(),oldLines:T().int().nonnegative(),newStart:T().int().nonnegative(),newLines:T().int().nonnegative(),lines:M(c())}),O2=g({agentId:c().optional(),agentType:c().optional(),status:c().optional(),prompt:c().optional(),filePath:c().optional(),structuredPatch:M(L2).optional(),stats:g({durationMs:T().int().nonnegative().optional(),tokens:T().int().nonnegative().optional(),toolUseCount:T().int().nonnegative().optional(),toolStats:M2.optional()}).optional()}),D2=g({path:c(),content:c(),mtimeMs:T().optional()}),F2=g({label:c().min(1),description:c().optional()}),J1=g({question:c().min(1),multiSelect:q(),options:M(F2).min(1)}),$2=["completed","interrupted"];Et("kind",[g({...ft,kind:R("session_init"),toolSessionId:c().optional()}),g({...ft,kind:R("thinking"),text:c(),partialId:c().optional()}),g({...ft,kind:R("text"),text:c(),partialId:c().optional()}),g({...ft,kind:R("user_text"),text:c(),meta:z2.optional(),taskId:c().optional(),parentToolUseId:c().optional(),sender:C2.optional()}),g({...ft,kind:R("tool_call"),toolUseId:c(),tool:c(),toolKind:c().optional(),input:Sn()}),g({...ft,kind:R("tool_result"),toolUseId:c(),output:Sn().optional(),error:c().optional(),toolResultExtra:O2.optional(),sourceToolAssistantUUID:c().optional(),askQuestionAnswers:Dt(c(),c()).optional()}),g({...ft,kind:R("attachment_memories"),memories:M(D2)}),g({...ft,kind:R("permission_request"),requestId:c(),tool:c(),input:Sn(),toolUseId:c().optional()}),g({...ft,kind:R("ask_user_question"),toolUseId:c(),questions:M(J1)}),g({...ft,kind:R("turn_end"),durationMs:T().int().nonnegative().optional(),reason:J($2).optional(),turnId:c().min(1).optional()}),g({...ft,kind:R("subagent_progress"),toolUseId:c(),agentId:c(),status:J(["started","running","completed","failed"]),description:c().optional(),lastToolName:c().optional(),prompt:c().optional(),stats:g({durationMs:T().int().nonnegative().optional(),tokens:T().int().nonnegative().optional(),toolUseCount:T().int().nonnegative().optional()}).optional()}),g({...ft,kind:R("error"),message:c()}),g({...ft,kind:R("meta_update"),patch:E2}),g({...ft,kind:R("meta-text"),text:c(),metaSource:J(["cc","owner"]).optional()})]);g({cwd:c().min(1).optional(),tool:c().optional(),label:c().optional(),aiLabel:c().optional(),model:c().optional(),permissionMode:c().optional(),effort:c().optional(),serviceTier:z1.optional(),iconKey:c().optional(),forkedFromSessionId:c().min(1).optional(),ephemeral:q().optional(),ownerPersonaId:c().min(1).optional(),projectPath:c().min(1).optional()}).refine(e=>e.cwd!=null||e.ownerPersonaId!=null||e.projectPath!=null,{message:"cwd / ownerPersonaId / projectPath 至少传一个"});g({path:c().min(1),name:c().min(1),createdAt:c().datetime(),pinnedAt:T().optional()});g({path:c().min(1),pinnedAt:T().nullable()});g({path:c().min(1)});g({path:c().min(1).optional(),name:c().min(1).optional()}).refine(e=>e.path!=null||e.name!=null,{message:"path 与 name 至少给一个"});g({cwd:c().min(1),tool:c().min(1),toolSessionId:c().min(1),label:c().optional(),aiLabel:c().optional(),iconKey:c().optional(),createdAt:c().datetime(),updatedAt:c().datetime(),ownerPersonaId:c().min(1).optional()});g({originOnly:q().optional(),ownerPersonaId:c().min(1).optional(),limit:T().int().positive().optional(),offset:T().int().nonnegative().optional()});g({sessionId:c().min(1)});g({sessionId:c().min(1),patch:g({label:c().optional(),model:c().optional(),permissionMode:c().optional(),effort:c().optional(),cwd:c().optional(),iconKey:c().optional(),ephemeral:R(!1).optional()})});g({id:c().min(1),text:c(),queuedAt:T(),senderDisplayName:c().optional()});g({sessionId:c().min(1),text:c(),queueWhileRunning:q().optional()});g({sessionId:c().min(1),id:c().min(1).optional()});g({sessionId:c().min(1),userMessageId:c().min(1),dryRun:q().optional()});g({canRewind:q(),error:c().optional(),filesChanged:M(c()).optional(),insertions:T().int().nonnegative().optional(),deletions:T().int().nonnegative().optional()});g({sessionId:c().min(1),userMessageId:c().min(1)});const U2=g({oldStart:T().int().nonnegative(),oldLines:T().int().nonnegative(),newStart:T().int().nonnegative(),newLines:T().int().nonnegative(),lines:M(c())}),B2=g({filePath:c().min(1),hunks:M(U2),insertions:T().int().nonnegative(),deletions:T().int().nonnegative(),status:J(["modified","added","deleted"]).optional()});g({canRewind:q(),error:c().optional(),files:M(B2),totalInsertions:T().int().nonnegative(),totalDeletions:T().int().nonnegative()});g({userMessageIds:M(c())});g({sessionId:c().min(1),toolSessionId:c().min(1)});g({cwd:c().min(1),toolSessionId:c().min(1),messageUuid:c().min(1).optional(),turnId:c().min(1).optional(),sourceSessionId:c().min(1).optional(),targetCwd:c().min(1).optional()}).refine(e=>!!(e.messageUuid||e.turnId),"messageUuid or turnId required");g({forkedToolSessionId:c().min(1),forkedFilePath:c().min(1)});g({sessionId:c().min(1),toolSessionId:c().min(1),jsonlPath:c().optional()});g({sessionId:c().min(1),afterSeq:T().int().min(-1)});g({sessionId:c().min(1),permissionRequestId:c().min(1),allow:q(),permanent:q().optional(),pattern:c().optional()});g({projectPath:c().min(1)});g({sessionId:c().min(1),limit:T().int().positive().max(5e3).optional(),offset:T().int().nonnegative().optional(),snapshotId:c().uuid().optional(),slim:q().optional(),view:J(["turns","items"]).optional(),cursor:c().min(1).max(16384).optional(),turnId:c().min(1).max(256).optional()}).superRefine((e,t)=>{e.view==="items"&&!e.turnId&&t.addIssue({code:L.custom,path:["turnId"],message:"items requires turnId"}),e.view&&(e.offset!==void 0||e.slim!==void 0)&&t.addIssue({code:L.custom,message:"native views do not accept offset or slim"}),!e.view&&(e.cursor!==void 0||e.turnId!==void 0)&&t.addIssue({code:L.custom,message:"cursor and turnId require a native view"}),e.view==="turns"&&e.turnId!==void 0&&t.addIssue({code:L.custom,path:["turnId"],message:"turns does not accept turnId"}),e.view&&e.limit!==void 0&&e.limit>100&&t.addIssue({code:L.custom,path:["limit"],message:"native page limit is 100"})});g({cwd:c().min(1),toolSessionId:c().min(1)});g({cwd:c().min(1),toolSessionId:c().min(1),subagentId:c().min(1)});g({cwd:c().min(1).optional(),path:c().optional(),showHidden:q().optional()});g({cwd:c().min(1),path:c().min(1)});g({cwd:c().min(1),tool:c().optional()});g({name:c().min(1),source:J(S2),path:c().optional(),description:c().optional(),plugin:c().optional()});const V2=g({name:c().min(1),source:J(_2),path:c().optional(),description:c().optional(),whenToUse:c().optional(),plugin:c().optional()});g({cwd:c().min(1),tool:c().optional()});g({agents:M(V2)});g({sessionId:c().optional()});g({sessionId:c().min(1).optional()});g({sessionId:c().min(1),pinned:q()});g({sessionId:c().min(1),archived:q()});g({query:c().min(1),sessionIds:M(c().min(1)),limit:T().int().positive().max(50).optional()});const H2=g({sessionId:c().min(1),snippet:c()});g({type:R("session:searchContent"),matches:M(H2)});g({type:R("peerSession:upsert:ok")});g({sessionId:c().min(1)});g({type:R("peerSession:remove:ok")});g({orderedIds:M(c().min(1)).min(1)});g({cwd:c().min(1)});g({isGitRoot:q(),gitRoot:c().nullable()});g({cwd:c().min(1)});g({branch:c().nullable()});g({cwd:c().min(1)});g({branches:M(c()),head:c().nullable()});const q2=g({cwd:c().min(1),updatedAt:c().min(1)});g({dirs:M(q2)});g({type:R("session:question"),sessionId:c().min(1),toolUseId:c().min(1),requestId:c().min(1),questions:M(J1).min(1)});g({type:R("session:question:cleared"),sessionId:c().min(1),toolUseId:c().min(1),answers:Dt(c(),c()).optional()});g({sessionId:c().min(1),toolUseId:c().min(1),answers:Dt(c(),c())});g({ok:R(!0)});g({sessionId:c().min(1),toolUseId:c().min(1)});g({ok:R(!0)});const ey=g({name:c().min(1),version:c().min(1),instanceId:c().min(1),deviceLabel:c().transform(e=>e.trim().slice(0,64)).optional()});g({type:R("auth"),token:c().min(1),scheme:R("bearer").optional(),clientInfo:ey.optional()});g({type:R("auth:ok"),version:c().min(1).optional(),protocolVersion:T().int().nonnegative().optional()});const W2=g({clientId:c().min(1),connectedAt:T().int().nonnegative(),self:q(),clientInfo:ey.optional()});g({type:R("device:connections:ok"),connections:M(W2)});g({type:R("tunnel:ready"),url:c().min(1),subdomain:c().min(1)});g({type:R("tunnel:exited"),code:T().int().nullable(),subdomain:c().nullable(),url:c().nullable()});g({type:R("tunnel:unavailable"),reason:c().min(1),failedAt:c().min(1)});const Z2=g({sessionId:c().min(1),status:I2,freshSpawn:q(),pendingPermissionRequestIds:M(c().min(1)),pendingQuestionToolUseIds:M(c().min(1))});g({type:R("info"),version:c(),protocolVersion:T(),hostname:c(),os:c(),tools:M(g({id:c(),available:q()})),runningSessions:M(Z2),tokenRole:J(sS).optional(),isLoopback:q().optional(),httpBaseUrl:c().optional(),httpToken:c().optional(),daemonSource:J(["ota","packaged"]).optional(),globalCliVersion:c().nullable().optional()});g({});g({method:c().min(1).optional()});const G2=["allowed","conditional","denied"],Q2=J(G2),K2=g({name:c().min(1),status:Q2,description:c().min(1),args:M(g({name:c(),required:q()})).nullable(),argsSchema:Dt(Sn()).optional(),reason:c().optional()});g({type:R("meta:methods"),methods:M(K2)});const Y2=/<system-reminder>此消息来自飞书群成员 (.+?)<\/system-reminder>\s*$/,X2=/<system-reminder>此消息来自 (owner|guest):(.+?)<\/system-reminder>\s*$/,J2="clawd-dispatch-task",e_="clawd-dispatch-result",Ip=120;function t_(e){if(!e)return[];const t=[];for(const n of["task","result"]){const r=n==="task"?J2:e_,i=new RegExp(`<${r}\\b([^>]*)>([\\s\\S]*?)</${r}>`,"gi");for(let o=i.exec(e);o!==null;o=i.exec(e))t.push({at:o.index,block:n_(n,o[1]??"",o[2]??"")})}return t.sort((n,r)=>n.at-r.at).map(n=>n.block)}function n_(e,t,n){var u;const r=u_(t),i=Hu(a_(Sa(n,"detail")??n)),o=(u=Sa(n,"brief"))==null?void 0:u.trim(),s=o&&o.length>0?Hu(o):r_(i),l=r.round!==void 0?Number.parseInt(r.round,10):void 0,a=r.status;return{kind:e,dispatchId:r["dispatch-id"]??"",...r.from?{from:r.from}:{},...e==="task"&&l!==void 0&&Number.isFinite(l)?{round:l}:{},...e==="result"&&(a==="success"||a==="failure")?{status:a}:{},brief:s,briefIsDerived:!(o&&o.length>0),detail:i,filePaths:l_(Sa(n,"files"))}}function r_(e){const t=e.split(/\n\s*\n/).map(r=>r.trim()).find(r=>r.length>0);if(!t)return"";const n=t.replace(/\s+/g," ");return n.length>Ip?`${n.slice(0,Ip)}…`:n}const i_="clawd-dispatch-task|clawd-dispatch-result|brief|detail|files",o_=new RegExp(`<\\\\(\\\\*)(/?)(${i_})\\b`,"g");function s_(e){return Hu(e)}function Hu(e){return e.replace(o_,"<$1$2$3")}function Sa(e,t){const n=new RegExp(`<${t}>([\\s\\S]*?)</${t}>`,"i").exec(e);return n?n[1]??"":null}function l_(e){return e?e.split(`
277
+ `).map(t=>t.trim()).filter(t=>t.startsWith("- ")).map(t=>t.slice(2).trim()).filter(t=>t.length>0):[]}function a_(e){return e.replace(/^\n/,"").replace(/\n$/,"")}function u_(e){const t={},n=/([a-z-]+)="([^"]*)"/gi;for(let r=n.exec(e);r!==null;r=n.exec(e))t[r[1]]=c_(r[2]??"");return t}function c_(e){return e.replace(/&quot;/g,'"').replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&amp;/g,"&")}const d_=new Set(["permission-inline","question-card"]);function f_(e){return e.kind==="user-text"?!0:e.kind!=="user-meta"?!1:e.metaKind==="slash-command"||Q1(e.metaKind)}function p_(e){return e.kind==="user-text"&&e.continuesTurn===!0}function m_(e,t={}){const n=[];let r=null;const i=(o,s)=>{r&&(n.push(h_(r,o,s)),r=null)};for(const o of e){if(o.kind==="turn-end"){i(o,!0);continue}if(f_(o)&&(r===null||!p_(o))){i(void 0,!0),r={query:o,body:[]};continue}r===null?r={body:[o]}:r.body.push(o)}return i(void 0,t.closeTrailing===!0),n}function h_(e,t,n){const{query:r,body:i}=e,o=g_(i,t,n),s=y_(i,o),l=v_(i,s),a=r??i[0]??t,u={kind:"turn",seq:a?a.seq:0,status:o,process:l,tail:s};return t!=null&&t.turnId&&(u.turnId=t.turnId),r&&(u.query=r),(t==null?void 0:t.durationMs)!==void 0&&(u.durationMs=t.durationMs),u}function g_(e,t,n){if(!n)return"running";if((t==null?void 0:t.reason)==="interrupted")return"interrupted";const r=qu(e,i=>i.kind==="error");return r>=0&&!e.slice(r+1).some(o=>o.kind==="assistant-text")?"error":"done"}function y_(e,t){if(t==="running"){const r=[];for(let i=e.length-1;i>=0&&d_.has(e[i].kind);i--)r.unshift(e[i]);return r}const n=t==="error"?qu(e,r=>r.kind==="error"):qu(e,r=>r.kind==="assistant-text");return n>=0?[e[n]]:[]}const x_=new Set(["assistant-thinking","user-meta"]);function v_(e,t){const n=new Set(t),r=[];let i=null;const o=()=>{i&&(r.push({kind:"tool-group",seq:i[0].seq,items:i}),i=null)};for(const s of e){if(n.has(s)){o();continue}if(s.kind==="merged-tool"){i?i.push(s):i=[s];continue}if(x_.has(s.kind)){r.push(s);continue}o(),r.push(s)}return o(),r}function qu(e,t){for(let n=e.length-1;n>=0;n--)if(t(e[n]))return n;return-1}const k_={Read:["正在读取","已读取"],Bash:["正在运行","已运行"],Grep:["正在搜索","已搜索"],Glob:["正在搜索","已搜索"],Edit:["正在编辑","已编辑"],Write:["正在写入","已写入"],WebFetch:["正在抓取","已抓取"],WebSearch:["正在搜索","已搜索"],Skill:["正在读取","已读取"]};function w_(e){if(!e||typeof e!="object")return"";const t=e,n=t.command??t.file_path??t.path??t.pattern??t.query??t.url??t.description;if(typeof n=="string")return n;for(const r of Object.values(t))if(typeof r=="string"&&r)return r;return""}function ty(e){const t=k_[e.tool],n=t?e.pending?t[0]:t[1]:e.pending?`正在执行 ${e.tool}`:`已执行 ${e.tool}`,r=w_(e.input);return r?`${n} ${r}`:n}function b_({item:e,renderItemDetail:t}){const[n,r]=U.useState(!1),i=n?sn:ln,o=n?(t==null?void 0:t(e))??null:null;return h.jsxs("div",{className:"min-w-0 max-w-full",children:[h.jsxs("button",{type:"button",onClick:()=>r(s=>!s),"aria-expanded":n,"data-testid":"tool-call-group-row",className:ve("flex w-full items-center gap-1.5 text-left cursor-pointer min-w-0 py-0.5 text-[13px] hover:text-text-200",e.error?"text-destructive/80":"text-text-400"),children:[e.pending?h.jsx(sr,{className:"w-3.5 h-3.5 animate-spin shrink-0"}):h.jsx(i,{className:"w-3.5 h-3.5 shrink-0 opacity-60"}),h.jsx("span",{className:"truncate min-w-0",children:ty(e)})]}),n?h.jsx("div",{"data-testid":"tool-call-group-row-detail",className:"pl-5 py-1 min-w-0 space-y-1.5 text-[12px] text-text-300",children:o!==null?o:h.jsxs(h.Fragment,{children:[h.jsx("pre",{className:"min-w-0 max-w-full overflow-auto whitespace-pre-wrap font-mono",children:JSON.stringify(e.input,null,2)}),e.output!==void 0?h.jsx("pre",{className:"min-w-0 max-w-full overflow-auto whitespace-pre-wrap font-mono text-text-400",children:typeof e.output=="string"?e.output:JSON.stringify(e.output,null,2)}):null,e.error?h.jsx("pre",{className:"min-w-0 max-w-full overflow-auto whitespace-pre-wrap font-mono text-destructive",children:e.error}):null]})}):null]})}function S_({items:e,renderItemDetail:t}){const[n,r]=U.useState(!1);if(e.length===0)return null;const i=e.some(a=>a.pending),o=i?[...e].reverse().find(a=>a.pending):e[e.length-1],s=!i&&e.length>1?` 等 ${e.length} 项`:"",l=n?sn:ln;return h.jsxs("div",{"data-testid":"tool-call-group",className:"min-w-0 max-w-full",children:[h.jsxs("button",{type:"button",onClick:()=>r(a=>!a),"aria-expanded":n,"data-testid":"tool-call-group-header",className:"flex w-full items-center gap-1.5 text-left cursor-pointer min-w-0 py-0.5 text-[13px] text-text-400 hover:text-text-200",children:[i&&!n?h.jsx(sr,{className:"w-3.5 h-3.5 animate-spin shrink-0"}):h.jsx(l,{className:"w-3.5 h-3.5 shrink-0"}),n?h.jsx("span",{className:"min-w-0 truncate opacity-70",children:i?"正在执行":`${e.length} 项`}):h.jsxs("span",{className:ve("truncate min-w-0",i&&"text-text-300"),children:[ty(o),s]})]}),n?h.jsx("div",{className:"mt-0.5 flex flex-col pl-5",children:e.map(a=>h.jsx(b_,{item:a,renderItemDetail:t},a.toolUseId))}):null]})}function __(e){const t=Math.round(e/1e3);if(t<60)return`${t}秒`;const n=Math.floor(t/60),r=t%60;return r>0?`${n}分${r}秒`:`${n}分钟`}function C_(e,t){const n=t!==void 0?`耗时 ${__(t)}`:"";switch(e){case"interrupted":return n?`已中断 · ${n}`:"已中断";case"error":return n?`出错 · ${n}`:"出错";default:return n||"已完成"}}function I_({status:e="done",durationMs:t,defaultExpanded:n=!1,onExpandedChange:r,children:i}){const[o,s]=U.useState(n),l=o?sn:ln;return h.jsxs("div",{"data-testid":"turn-process-block",className:"min-w-0 max-w-full border-t border-border pt-2",children:[h.jsxs("button",{type:"button",onClick:()=>{const a=!o;s(a),r==null||r(a)},"aria-expanded":o,"data-testid":"turn-process-block-header",className:ve("flex w-full items-center gap-1 text-left cursor-pointer min-w-0 py-0.5 text-[13px]",e!=="done"?"text-destructive/80 hover:text-destructive":"text-text-400 hover:text-text-200"),children:[h.jsx("span",{className:"truncate min-w-0",children:C_(e,t)}),h.jsx(l,{className:"w-3.5 h-3.5 shrink-0"})]}),o?h.jsx("div",{"data-testid":"turn-process-body",className:"mt-2 flex flex-col gap-2 border-l-2 border-border pl-3",children:i}):null]})}const N_=/<(system-reminder|related-dir|clawd-shift-fire)\b[^>]*>[\s\S]*?<\/\1>/gi,E_=/<builder-preview\b[^>]*\/>/gi,T_=/<(clawd-dispatch-task|clawd-dispatch-result)\b[^>]*>([\s\S]*?)<\/\1>/gi,j_=/<\/?(brief|detail|files)>/gi;function ny(e){return e?e.replace(T_,(t,n,r)=>s_(r.replace(j_,"")).trim()).replace(N_,"").replace(E_,"").trim():""}const A_=ny;function P_(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const R_=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,z_=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,M_={};function Np(e,t){return(M_.jsx?z_:R_).test(e)}const L_=/[ \t\n\f\r]/g;function O_(e){return typeof e=="object"?e.type==="text"?Ep(e.value):!1:Ep(e)}function Ep(e){return e.replace(L_,"")===""}class $o{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}$o.prototype.normal={};$o.prototype.property={};$o.prototype.space=void 0;function ry(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new $o(n,r,t)}function Wu(e){return e.toLowerCase()}class kt{constructor(t,n){this.attribute=n,this.property=t}}kt.prototype.attribute="";kt.prototype.booleanish=!1;kt.prototype.boolean=!1;kt.prototype.commaOrSpaceSeparated=!1;kt.prototype.commaSeparated=!1;kt.prototype.defined=!1;kt.prototype.mustUseProperty=!1;kt.prototype.number=!1;kt.prototype.overloadedBoolean=!1;kt.prototype.property="";kt.prototype.spaceSeparated=!1;kt.prototype.space=void 0;let D_=0;const ce=zr(),Fe=zr(),Zu=zr(),B=zr(),Ne=zr(),si=zr(),bt=zr();function zr(){return 2**++D_}const Gu=Object.freeze(Object.defineProperty({__proto__:null,boolean:ce,booleanish:Fe,commaOrSpaceSeparated:bt,commaSeparated:si,number:B,overloadedBoolean:Zu,spaceSeparated:Ne},Symbol.toStringTag,{value:"Module"})),_a=Object.keys(Gu);class vd extends kt{constructor(t,n,r,i){let o=-1;if(super(t,n),Tp(this,"space",i),typeof r=="number")for(;++o<_a.length;){const s=_a[o];Tp(this,_a[o],(r&Gu[s])===Gu[s])}}}vd.prototype.defined=!0;function Tp(e,t,n){n&&(e[t]=n)}function Ci(e){const t={},n={};for(const[r,i]of Object.entries(e.properties)){const o=new vd(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[Wu(r)]=r,n[Wu(o.attribute)]=r}return new $o(t,n,e.space)}const iy=Ci({properties:{ariaActiveDescendant:null,ariaAtomic:Fe,ariaAutoComplete:null,ariaBusy:Fe,ariaChecked:Fe,ariaColCount:B,ariaColIndex:B,ariaColSpan:B,ariaControls:Ne,ariaCurrent:null,ariaDescribedBy:Ne,ariaDetails:null,ariaDisabled:Fe,ariaDropEffect:Ne,ariaErrorMessage:null,ariaExpanded:Fe,ariaFlowTo:Ne,ariaGrabbed:Fe,ariaHasPopup:null,ariaHidden:Fe,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Ne,ariaLevel:B,ariaLive:null,ariaModal:Fe,ariaMultiLine:Fe,ariaMultiSelectable:Fe,ariaOrientation:null,ariaOwns:Ne,ariaPlaceholder:null,ariaPosInSet:B,ariaPressed:Fe,ariaReadOnly:Fe,ariaRelevant:null,ariaRequired:Fe,ariaRoleDescription:Ne,ariaRowCount:B,ariaRowIndex:B,ariaRowSpan:B,ariaSelected:Fe,ariaSetSize:B,ariaSort:null,ariaValueMax:B,ariaValueMin:B,ariaValueNow:B,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function oy(e,t){return t in e?e[t]:t}function sy(e,t){return oy(e,t.toLowerCase())}const F_=Ci({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:si,acceptCharset:Ne,accessKey:Ne,action:null,allow:null,allowFullScreen:ce,allowPaymentRequest:ce,allowUserMedia:ce,alt:null,as:null,async:ce,autoCapitalize:null,autoComplete:Ne,autoFocus:ce,autoPlay:ce,blocking:Ne,capture:null,charSet:null,checked:ce,cite:null,className:Ne,cols:B,colSpan:null,content:null,contentEditable:Fe,controls:ce,controlsList:Ne,coords:B|si,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ce,defer:ce,dir:null,dirName:null,disabled:ce,download:Zu,draggable:Fe,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ce,formTarget:null,headers:Ne,height:B,hidden:Zu,high:B,href:null,hrefLang:null,htmlFor:Ne,httpEquiv:Ne,id:null,imageSizes:null,imageSrcSet:null,inert:ce,inputMode:null,integrity:null,is:null,isMap:ce,itemId:null,itemProp:Ne,itemRef:Ne,itemScope:ce,itemType:Ne,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ce,low:B,manifest:null,max:null,maxLength:B,media:null,method:null,min:null,minLength:B,multiple:ce,muted:ce,name:null,nonce:null,noModule:ce,noValidate:ce,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:ce,optimum:B,pattern:null,ping:Ne,placeholder:null,playsInline:ce,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ce,referrerPolicy:null,rel:Ne,required:ce,reversed:ce,rows:B,rowSpan:B,sandbox:Ne,scope:null,scoped:ce,seamless:ce,selected:ce,shadowRootClonable:ce,shadowRootDelegatesFocus:ce,shadowRootMode:null,shape:null,size:B,sizes:null,slot:null,span:B,spellCheck:Fe,src:null,srcDoc:null,srcLang:null,srcSet:null,start:B,step:null,style:null,tabIndex:B,target:null,title:null,translate:null,type:null,typeMustMatch:ce,useMap:null,value:Fe,width:B,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Ne,axis:null,background:null,bgColor:null,border:B,borderColor:null,bottomMargin:B,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ce,declare:ce,event:null,face:null,frame:null,frameBorder:null,hSpace:B,leftMargin:B,link:null,longDesc:null,lowSrc:null,marginHeight:B,marginWidth:B,noResize:ce,noHref:ce,noShade:ce,noWrap:ce,object:null,profile:null,prompt:null,rev:null,rightMargin:B,rules:null,scheme:null,scrolling:Fe,standby:null,summary:null,text:null,topMargin:B,valueType:null,version:null,vAlign:null,vLink:null,vSpace:B,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ce,disableRemotePlayback:ce,prefix:null,property:null,results:B,security:null,unselectable:null},space:"html",transform:sy}),$_=Ci({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:bt,accentHeight:B,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:B,amplitude:B,arabicForm:null,ascent:B,attributeName:null,attributeType:null,azimuth:B,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:B,by:null,calcMode:null,capHeight:B,className:Ne,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:B,diffuseConstant:B,direction:null,display:null,dur:null,divisor:B,dominantBaseline:null,download:ce,dx:null,dy:null,edgeMode:null,editable:null,elevation:B,enableBackground:null,end:null,event:null,exponent:B,externalResourcesRequired:null,fill:null,fillOpacity:B,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:si,g2:si,glyphName:si,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:B,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:B,horizOriginX:B,horizOriginY:B,id:null,ideographic:B,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:B,k:B,k1:B,k2:B,k3:B,k4:B,kernelMatrix:bt,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:B,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:B,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:B,overlineThickness:B,paintOrder:null,panose1:null,path:null,pathLength:B,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Ne,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:B,pointsAtY:B,pointsAtZ:B,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:bt,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:bt,rev:bt,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:bt,requiredFeatures:bt,requiredFonts:bt,requiredFormats:bt,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:B,specularExponent:B,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:B,strikethroughThickness:B,string:null,stroke:null,strokeDashArray:bt,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:B,strokeOpacity:B,strokeWidth:null,style:null,surfaceScale:B,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:bt,tabIndex:B,tableValues:null,target:null,targetX:B,targetY:B,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:bt,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:B,underlineThickness:B,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:B,values:null,vAlphabetic:B,vMathematical:B,vectorEffect:null,vHanging:B,vIdeographic:B,version:null,vertAdvY:B,vertOriginX:B,vertOriginY:B,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:B,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:oy}),ly=Ci({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),ay=Ci({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:sy}),uy=Ci({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),U_={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"},B_=/[A-Z]/g,jp=/-[a-z]/g,V_=/^data[-\w.:]+$/i;function H_(e,t){const n=Wu(t);let r=t,i=kt;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&V_.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(jp,W_);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!jp.test(o)){let s=o.replace(B_,q_);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}i=vd}return new i(r,t)}function q_(e){return"-"+e.toLowerCase()}function W_(e){return e.charAt(1).toUpperCase()}const Z_=ry([iy,F_,ly,ay,uy],"html"),kd=ry([iy,$_,ly,ay,uy],"svg");function G_(e){return e.join(" ").trim()}var wd={},Ap=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Q_=/\n/g,K_=/^\s*/,Y_=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,X_=/^:\s*/,J_=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,eC=/^[;\s]*/,tC=/^\s+|\s+$/g,nC=`
278
+ `,Pp="/",Rp="*",mr="",rC="comment",iC="declaration";function oC(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function i(x){var b=x.match(Q_);b&&(n+=b.length);var I=x.lastIndexOf(nC);r=~I?x.length-I:r+x.length}function o(){var x={line:n,column:r};return function(b){return b.position=new s(x),u(),b}}function s(x){this.start=x,this.end={line:n,column:r},this.source=t.source}s.prototype.content=e;function l(x){var b=new Error(t.source+":"+n+":"+r+": "+x);if(b.reason=x,b.filename=t.source,b.line=n,b.column=r,b.source=e,!t.silent)throw b}function a(x){var b=x.exec(e);if(b){var I=b[0];return i(I),e=e.slice(I.length),b}}function u(){a(K_)}function f(x){var b;for(x=x||[];b=d();)b!==!1&&x.push(b);return x}function d(){var x=o();if(!(Pp!=e.charAt(0)||Rp!=e.charAt(1))){for(var b=2;mr!=e.charAt(b)&&(Rp!=e.charAt(b)||Pp!=e.charAt(b+1));)++b;if(b+=2,mr===e.charAt(b-1))return l("End of comment missing");var I=e.slice(2,b-2);return r+=2,i(I),e=e.slice(b),r+=2,x({type:rC,comment:I})}}function m(){var x=o(),b=a(Y_);if(b){if(d(),!a(X_))return l("property missing ':'");var I=a(J_),y=x({type:iC,property:zp(b[0].replace(Ap,mr)),value:I?zp(I[0].replace(Ap,mr)):mr});return a(eC),y}}function p(){var x=[];f(x);for(var b;b=m();)b!==!1&&(x.push(b),f(x));return x}return u(),p()}function zp(e){return e?e.replace(tC,mr):mr}var sC=oC,lC=Rs&&Rs.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(wd,"__esModule",{value:!0});wd.default=uC;const aC=lC(sC);function uC(e,t){let n=null;if(!e||typeof e!="string")return n;const r=(0,aC.default)(e),i=typeof t=="function";return r.forEach(o=>{if(o.type!=="declaration")return;const{property:s,value:l}=o;i?t(s,l,o):l&&(n=n||{},n[s]=l)}),n}var Ul={};Object.defineProperty(Ul,"__esModule",{value:!0});Ul.camelCase=void 0;var cC=/^--[a-zA-Z0-9_-]+$/,dC=/-([a-z])/g,fC=/^[^-]+$/,pC=/^-(webkit|moz|ms|o|khtml)-/,mC=/^-(ms)-/,hC=function(e){return!e||fC.test(e)||cC.test(e)},gC=function(e,t){return t.toUpperCase()},Mp=function(e,t){return"".concat(t,"-")},yC=function(e,t){return t===void 0&&(t={}),hC(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace(mC,Mp):e=e.replace(pC,Mp),e.replace(dC,gC))};Ul.camelCase=yC;var xC=Rs&&Rs.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},vC=xC(wd),kC=Ul;function Qu(e,t){var n={};return!e||typeof e!="string"||(0,vC.default)(e,function(r,i){r&&i&&(n[(0,kC.camelCase)(r,t)]=i)}),n}Qu.default=Qu;var wC=Qu;const bC=lc(wC),cy=dy("end"),bd=dy("start");function dy(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function SC(e){const t=bd(e),n=cy(e);if(t&&n)return{start:t,end:n}}function no(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Lp(e.position):"start"in e||"end"in e?Lp(e):"line"in e||"column"in e?Ku(e):""}function Ku(e){return Op(e&&e.line)+":"+Op(e&&e.column)}function Lp(e){return Ku(e&&e.start)+"-"+Ku(e&&e.end)}function Op(e){return e&&typeof e=="number"?e:1}class it extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",o={},s=!1;if(n&&("line"in n&&"column"in n?o={place:n}:"start"in n&&"end"in n?o={place:n}:"type"in n?o={ancestors:[n],place:n.position}:o={...n}),typeof t=="string"?i=t:!o.cause&&t&&(s=!0,i=t.message,o.cause=t),!o.ruleId&&!o.source&&typeof r=="string"){const a=r.indexOf(":");a===-1?o.ruleId=r:(o.source=r.slice(0,a),o.ruleId=r.slice(a+1))}if(!o.place&&o.ancestors&&o.ancestors){const a=o.ancestors[o.ancestors.length-1];a&&(o.place=a.position)}const l=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=l?l.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=l?l.line:void 0,this.name=no(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=s&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}it.prototype.file="";it.prototype.name="";it.prototype.reason="";it.prototype.message="";it.prototype.stack="";it.prototype.column=void 0;it.prototype.line=void 0;it.prototype.ancestors=void 0;it.prototype.cause=void 0;it.prototype.fatal=void 0;it.prototype.place=void 0;it.prototype.ruleId=void 0;it.prototype.source=void 0;const Sd={}.hasOwnProperty,_C=new Map,CC=/[A-Z]/g,IC=new Set(["table","tbody","thead","tfoot","tr"]),NC=new Set(["td","th"]),fy="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function EC(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=LC(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=MC(n,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?kd:Z_,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},o=py(i,e,void 0);return o&&typeof o!="string"?o:i.create(e,i.Fragment,{children:o||void 0},void 0)}function py(e,t,n){if(t.type==="element")return TC(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return jC(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return PC(e,t,n);if(t.type==="mdxjsEsm")return AC(e,t);if(t.type==="root")return RC(e,t,n);if(t.type==="text")return zC(e,t)}function TC(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=kd,e.schema=i),e.ancestors.push(t);const o=hy(e,t.tagName,!1),s=OC(e,t);let l=Cd(e,t);return IC.has(t.tagName)&&(l=l.filter(function(a){return typeof a=="string"?!O_(a):!0})),my(e,s,o,t),_d(s,l),e.ancestors.pop(),e.schema=r,e.create(t,o,s,n)}function jC(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}Co(e,t.position)}function AC(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Co(e,t.position)}function PC(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=kd,e.schema=i),e.ancestors.push(t);const o=t.name===null?e.Fragment:hy(e,t.name,!0),s=DC(e,t),l=Cd(e,t);return my(e,s,o,t),_d(s,l),e.ancestors.pop(),e.schema=r,e.create(t,o,s,n)}function RC(e,t,n){const r={};return _d(r,Cd(e,t)),e.create(t,e.Fragment,r,n)}function zC(e,t){return t.value}function my(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function _d(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function MC(e,t,n){return r;function r(i,o,s,l){const u=Array.isArray(s.children)?n:t;return l?u(o,s,l):u(o,s)}}function LC(e,t){return n;function n(r,i,o,s){const l=Array.isArray(o.children),a=bd(r);return t(i,o,s,l,{columnNumber:a?a.column-1:void 0,fileName:e,lineNumber:a?a.line:void 0},void 0)}}function OC(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&Sd.call(t.properties,i)){const o=FC(e,i,t.properties[i]);if(o){const[s,l]=o;e.tableCellAlignToStyle&&s==="align"&&typeof l=="string"&&NC.has(t.tagName)?r=l:n[s]=l}}if(r){const o=n.style||(n.style={});o[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function DC(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const o=r.data.estree.body[0];o.type;const s=o.expression;s.type;const l=s.properties[0];l.type,Object.assign(n,e.evaluater.evaluateExpression(l.argument))}else Co(e,t.position);else{const i=r.name;let o;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const l=r.value.data.estree.body[0];l.type,o=e.evaluater.evaluateExpression(l.expression)}else Co(e,t.position);else o=r.value===null?!0:r.value;n[i]=o}return n}function Cd(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:_C;for(;++r<t.children.length;){const o=t.children[r];let s;if(e.passKeys){const a=o.type==="element"?o.tagName:o.type==="mdxJsxFlowElement"||o.type==="mdxJsxTextElement"?o.name:void 0;if(a){const u=i.get(a)||0;s=a+"-"+u,i.set(a,u+1)}}const l=py(e,o,s);l!==void 0&&n.push(l)}return n}function FC(e,t,n){const r=H_(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?P_(n):G_(n)),r.property==="style"){let i=typeof n=="object"?n:$C(e,String(n));return e.stylePropertyNameCase==="css"&&(i=UC(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?U_[r.property]||r.property:r.attribute,n]}}function $C(e,t){try{return bC(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,i=new it("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw i.file=e.filePath||void 0,i.url=fy+"#cannot-parse-style-attribute",i}}function hy(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const i=t.split(".");let o=-1,s;for(;++o<i.length;){const l=Np(i[o])?{type:"Identifier",name:i[o]}:{type:"Literal",value:i[o]};s=s?{type:"MemberExpression",object:s,property:l,computed:!!(o&&l.type==="Literal"),optional:!1}:l}r=s}else r=Np(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const i=r.value;return Sd.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);Co(e)}function Co(e,t){const n=new it("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=fy+"#cannot-handle-mdx-estrees-without-createevaluater",n}function UC(e){const t={};let n;for(n in e)Sd.call(e,n)&&(t[BC(n)]=e[n]);return t}function BC(e){let t=e.replace(CC,VC);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function VC(e){return"-"+e.toLowerCase()}const Ca={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"]},HC={};function Id(e,t){const n=HC,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return gy(e,r,i)}function gy(e,t,n){if(qC(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Dp(e.children,t,n)}return Array.isArray(e)?Dp(e,t,n):""}function Dp(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=gy(e[i],t,n);return r.join("")}function qC(e){return!!(e&&typeof e=="object")}const Fp=document.createElement("i");function Nd(e){const t="&"+e+";";Fp.innerHTML=t;const n=Fp.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function Ye(e,t,n,r){const i=e.length;let o=0,s;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)s=Array.from(r),s.unshift(t,n),e.splice(...s);else for(n&&e.splice(t,n);o<r.length;)s=r.slice(o,o+1e4),s.unshift(t,0),e.splice(...s),o+=1e4,t+=1e4}function Qe(e,t){return e.length>0?(Ye(e,e.length,0,t),e):t}const $p={}.hasOwnProperty;function yy(e){const t={};let n=-1;for(;++n<e.length;)WC(t,e[n]);return t}function WC(e,t){let n;for(n in t){const i=($p.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];let s;if(o)for(s in o){$p.call(i,s)||(i[s]=[]);const l=o[s];ZC(i[s],Array.isArray(l)?l:l?[l]:[])}}}function ZC(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);Ye(e,0,0,r)}function xy(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function Zt(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const lt=ar(/[A-Za-z]/),nt=ar(/[\dA-Za-z]/),GC=ar(/[#-'*+\--9=?A-Z^-~]/);function yl(e){return e!==null&&(e<32||e===127)}const Yu=ar(/\d/),QC=ar(/[\dA-Fa-f]/),KC=ar(/[!-/:-@[-`{-~]/);function ne(e){return e!==null&&e<-2}function _e(e){return e!==null&&(e<0||e===32)}function me(e){return e===-2||e===-1||e===32}const Bl=ar(new RegExp("\\p{P}|\\p{S}","u")),Tr=ar(/\s/);function ar(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function Ii(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const o=e.charCodeAt(n);let s="";if(o===37&&nt(e.charCodeAt(n+1))&&nt(e.charCodeAt(n+2)))i=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(s=String.fromCharCode(o));else if(o>55295&&o<57344){const l=e.charCodeAt(n+1);o<56320&&l>56319&&l<57344?(s=String.fromCharCode(o,l),i=1):s="�"}else s=String.fromCharCode(o);s&&(t.push(e.slice(r,n),encodeURIComponent(s)),r=n+i+1,s=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function ke(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let o=0;return s;function s(a){return me(a)?(e.enter(n),l(a)):t(a)}function l(a){return me(a)&&o++<i?(e.consume(a),l):(e.exit(n),t(a))}}const YC={tokenize:XC};function XC(e){const t=e.attempt(this.parser.constructs.contentInitial,r,i);let n;return t;function r(l){if(l===null){e.consume(l);return}return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),ke(e,t,"linePrefix")}function i(l){return e.enter("paragraph"),o(l)}function o(l){const a=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=a),n=a,s(l)}function s(l){if(l===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(l);return}return ne(l)?(e.consume(l),e.exit("chunkText"),o):(e.consume(l),s)}}const JC={tokenize:eI},Up={tokenize:tI};function eI(e){const t=this,n=[];let r=0,i,o,s;return l;function l(w){if(r<n.length){const N=n[r];return t.containerState=N[1],e.attempt(N[0].continuation,a,u)(w)}return u(w)}function a(w){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&v();const N=t.events.length;let j=N,S;for(;j--;)if(t.events[j][0]==="exit"&&t.events[j][1].type==="chunkFlow"){S=t.events[j][1].end;break}y(r);let A=N;for(;A<t.events.length;)t.events[A][1].end={...S},A++;return Ye(t.events,j+1,0,t.events.slice(N)),t.events.length=A,u(w)}return l(w)}function u(w){if(r===n.length){if(!i)return m(w);if(i.currentConstruct&&i.currentConstruct.concrete)return x(w);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Up,f,d)(w)}function f(w){return i&&v(),y(r),m(w)}function d(w){return t.parser.lazy[t.now().line]=r!==n.length,s=t.now().offset,x(w)}function m(w){return t.containerState={},e.attempt(Up,p,x)(w)}function p(w){return r++,n.push([t.currentConstruct,t.containerState]),m(w)}function x(w){if(w===null){i&&v(),y(0),e.consume(w);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:o}),b(w)}function b(w){if(w===null){I(e.exit("chunkFlow"),!0),y(0),e.consume(w);return}return ne(w)?(e.consume(w),I(e.exit("chunkFlow")),r=0,t.interrupt=void 0,l):(e.consume(w),b)}function I(w,N){const j=t.sliceStream(w);if(N&&j.push(null),w.previous=o,o&&(o.next=w),o=w,i.defineSkip(w.start),i.write(j),t.parser.lazy[w.start.line]){let S=i.events.length;for(;S--;)if(i.events[S][1].start.offset<s&&(!i.events[S][1].end||i.events[S][1].end.offset>s))return;const A=t.events.length;let E=A,$,C;for(;E--;)if(t.events[E][0]==="exit"&&t.events[E][1].type==="chunkFlow"){if($){C=t.events[E][1].end;break}$=!0}for(y(r),S=A;S<t.events.length;)t.events[S][1].end={...C},S++;Ye(t.events,E+1,0,t.events.slice(A)),t.events.length=S}}function y(w){let N=n.length;for(;N-- >w;){const j=n[N];t.containerState=j[1],j[0].exit.call(t,e)}n.length=w}function v(){i.write([null]),o=void 0,i=void 0,t.containerState._closeFlow=void 0}}function tI(e,t,n){return ke(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function xi(e){if(e===null||_e(e)||Tr(e))return 1;if(Bl(e))return 2}function Ni(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const o=e[i].resolveAll;o&&!r.includes(o)&&(t=o(t,n),r.push(o))}return t}const Xu={name:"attention",resolveAll:nI,tokenize:rI};function nI(e,t){let n=-1,r,i,o,s,l,a,u,f;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;a=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const d={...e[r][1].end},m={...e[n][1].start};Bp(d,-a),Bp(m,a),s={type:a>1?"strongSequence":"emphasisSequence",start:d,end:{...e[r][1].end}},l={type:a>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:m},o={type:a>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},i={type:a>1?"strong":"emphasis",start:{...s.start},end:{...l.end}},e[r][1].end={...s.start},e[n][1].start={...l.end},u=[],e[r][1].end.offset-e[r][1].start.offset&&(u=Qe(u,[["enter",e[r][1],t],["exit",e[r][1],t]])),u=Qe(u,[["enter",i,t],["enter",s,t],["exit",s,t],["enter",o,t]]),u=Qe(u,Ni(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),u=Qe(u,[["exit",o,t],["enter",l,t],["exit",l,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(f=2,u=Qe(u,[["enter",e[n][1],t],["exit",e[n][1],t]])):f=0,Ye(e,r-1,n-r+3,u),n=r+u.length-f-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function rI(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=xi(r);let o;return s;function s(a){return o=a,e.enter("attentionSequence"),l(a)}function l(a){if(a===o)return e.consume(a),l;const u=e.exit("attentionSequence"),f=xi(a),d=!f||f===2&&i||n.includes(a),m=!i||i===2&&f||n.includes(r);return u._open=!!(o===42?d:d&&(i||!m)),u._close=!!(o===42?m:m&&(f||!d)),t(a)}}function Bp(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const iI={name:"autolink",tokenize:oI};function oI(e,t,n){let r=0;return i;function i(p){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o}function o(p){return lt(p)?(e.consume(p),s):p===64?n(p):u(p)}function s(p){return p===43||p===45||p===46||nt(p)?(r=1,l(p)):u(p)}function l(p){return p===58?(e.consume(p),r=0,a):(p===43||p===45||p===46||nt(p))&&r++<32?(e.consume(p),l):(r=0,u(p))}function a(p){return p===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):p===null||p===32||p===60||yl(p)?n(p):(e.consume(p),a)}function u(p){return p===64?(e.consume(p),f):GC(p)?(e.consume(p),u):n(p)}function f(p){return nt(p)?d(p):n(p)}function d(p){return p===46?(e.consume(p),r=0,f):p===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):m(p)}function m(p){if((p===45||nt(p))&&r++<63){const x=p===45?m:d;return e.consume(p),x}return n(p)}}const Uo={partial:!0,tokenize:sI};function sI(e,t,n){return r;function r(o){return me(o)?ke(e,i,"linePrefix")(o):i(o)}function i(o){return o===null||ne(o)?t(o):n(o)}}const vy={continuation:{tokenize:aI},exit:uI,name:"blockQuote",tokenize:lI};function lI(e,t,n){const r=this;return i;function i(s){if(s===62){const l=r.containerState;return l.open||(e.enter("blockQuote",{_container:!0}),l.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(s),e.exit("blockQuoteMarker"),o}return n(s)}function o(s){return me(s)?(e.enter("blockQuotePrefixWhitespace"),e.consume(s),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(s))}}function aI(e,t,n){const r=this;return i;function i(s){return me(s)?ke(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s):o(s)}function o(s){return e.attempt(vy,t,n)(s)}}function uI(e){e.exit("blockQuote")}const ky={name:"characterEscape",tokenize:cI};function cI(e,t,n){return r;function r(o){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(o),e.exit("escapeMarker"),i}function i(o){return KC(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(o)}}const wy={name:"characterReference",tokenize:dI};function dI(e,t,n){const r=this;let i=0,o,s;return l;function l(d){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),a}function a(d){return d===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(d),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),o=31,s=nt,f(d))}function u(d){return d===88||d===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(d),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,s=QC,f):(e.enter("characterReferenceValue"),o=7,s=Yu,f(d))}function f(d){if(d===59&&i){const m=e.exit("characterReferenceValue");return s===nt&&!Nd(r.sliceSerialize(m))?n(d):(e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return s(d)&&i++<o?(e.consume(d),f):n(d)}}const Vp={partial:!0,tokenize:pI},Hp={concrete:!0,name:"codeFenced",tokenize:fI};function fI(e,t,n){const r=this,i={partial:!0,tokenize:j};let o=0,s=0,l;return a;function a(S){return u(S)}function u(S){const A=r.events[r.events.length-1];return o=A&&A[1].type==="linePrefix"?A[2].sliceSerialize(A[1],!0).length:0,l=S,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),f(S)}function f(S){return S===l?(s++,e.consume(S),f):s<3?n(S):(e.exit("codeFencedFenceSequence"),me(S)?ke(e,d,"whitespace")(S):d(S))}function d(S){return S===null||ne(S)?(e.exit("codeFencedFence"),r.interrupt?t(S):e.check(Vp,b,N)(S)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),m(S))}function m(S){return S===null||ne(S)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),d(S)):me(S)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),ke(e,p,"whitespace")(S)):S===96&&S===l?n(S):(e.consume(S),m)}function p(S){return S===null||ne(S)?d(S):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),x(S))}function x(S){return S===null||ne(S)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),d(S)):S===96&&S===l?n(S):(e.consume(S),x)}function b(S){return e.attempt(i,N,I)(S)}function I(S){return e.enter("lineEnding"),e.consume(S),e.exit("lineEnding"),y}function y(S){return o>0&&me(S)?ke(e,v,"linePrefix",o+1)(S):v(S)}function v(S){return S===null||ne(S)?e.check(Vp,b,N)(S):(e.enter("codeFlowValue"),w(S))}function w(S){return S===null||ne(S)?(e.exit("codeFlowValue"),v(S)):(e.consume(S),w)}function N(S){return e.exit("codeFenced"),t(S)}function j(S,A,E){let $=0;return C;function C(te){return S.enter("lineEnding"),S.consume(te),S.exit("lineEnding"),O}function O(te){return S.enter("codeFencedFence"),me(te)?ke(S,z,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(te):z(te)}function z(te){return te===l?(S.enter("codeFencedFenceSequence"),oe(te)):E(te)}function oe(te){return te===l?($++,S.consume(te),oe):$>=s?(S.exit("codeFencedFenceSequence"),me(te)?ke(S,Z,"whitespace")(te):Z(te)):E(te)}function Z(te){return te===null||ne(te)?(S.exit("codeFencedFence"),A(te)):E(te)}}}function pI(e,t,n){const r=this;return i;function i(s){return s===null?n(s):(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),o)}function o(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}const Ia={name:"codeIndented",tokenize:hI},mI={partial:!0,tokenize:gI};function hI(e,t,n){const r=this;return i;function i(u){return e.enter("codeIndented"),ke(e,o,"linePrefix",5)(u)}function o(u){const f=r.events[r.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?s(u):n(u)}function s(u){return u===null?a(u):ne(u)?e.attempt(mI,s,a)(u):(e.enter("codeFlowValue"),l(u))}function l(u){return u===null||ne(u)?(e.exit("codeFlowValue"),s(u)):(e.consume(u),l)}function a(u){return e.exit("codeIndented"),t(u)}}function gI(e,t,n){const r=this;return i;function i(s){return r.parser.lazy[r.now().line]?n(s):ne(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),i):ke(e,o,"linePrefix",5)(s)}function o(s){const l=r.events[r.events.length-1];return l&&l[1].type==="linePrefix"&&l[2].sliceSerialize(l[1],!0).length>=4?t(s):ne(s)?i(s):n(s)}}const yI={name:"codeText",previous:vI,resolve:xI,tokenize:kI};function xI(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(i=r):(r===t||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function vI(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function kI(e,t,n){let r=0,i,o;return s;function s(d){return e.enter("codeText"),e.enter("codeTextSequence"),l(d)}function l(d){return d===96?(e.consume(d),r++,l):(e.exit("codeTextSequence"),a(d))}function a(d){return d===null?n(d):d===32?(e.enter("space"),e.consume(d),e.exit("space"),a):d===96?(o=e.enter("codeTextSequence"),i=0,f(d)):ne(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),a):(e.enter("codeTextData"),u(d))}function u(d){return d===null||d===32||d===96||ne(d)?(e.exit("codeTextData"),a(d)):(e.consume(d),u)}function f(d){return d===96?(e.consume(d),i++,f):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(d)):(o.type="codeTextData",u(d))}}class wI{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const i=n||0;this.setCursor(Math.trunc(t));const o=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&$i(this.left,r),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),$i(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),$i(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);$i(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);$i(this.left,n.reverse())}}}function $i(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function by(e){const t={};let n=-1,r,i,o,s,l,a,u;const f=new wI(e);for(;++n<f.length;){for(;n in t;)n=t[n];if(r=f.get(n),n&&r[1].type==="chunkFlow"&&f.get(n-1)[1].type==="listItemPrefix"&&(a=r[1]._tokenizer.events,o=0,o<a.length&&a[o][1].type==="lineEndingBlank"&&(o+=2),o<a.length&&a[o][1].type==="content"))for(;++o<a.length&&a[o][1].type!=="content";)a[o][1].type==="chunkText"&&(a[o][1]._isInFirstContentOfListItem=!0,o++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,bI(f,n)),n=t[n],u=!0);else if(r[1]._container){for(o=n,i=void 0;o--;)if(s=f.get(o),s[1].type==="lineEnding"||s[1].type==="lineEndingBlank")s[0]==="enter"&&(i&&(f.get(i)[1].type="lineEndingBlank"),s[1].type="lineEnding",i=o);else if(!(s[1].type==="linePrefix"||s[1].type==="listItemIndent"))break;i&&(r[1].end={...f.get(i)[1].start},l=f.slice(i,n),l.unshift(r),f.splice(i,n-i+1,l))}}return Ye(e,0,Number.POSITIVE_INFINITY,f.slice(0)),!u}function bI(e,t){const n=e.get(t)[1],r=e.get(t)[2];let i=t-1;const o=[];let s=n._tokenizer;s||(s=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(s._contentTypeTextTrailing=!0));const l=s.events,a=[],u={};let f,d,m=-1,p=n,x=0,b=0;const I=[b];for(;p;){for(;e.get(++i)[1]!==p;);o.push(i),p._tokenizer||(f=r.sliceStream(p),p.next||f.push(null),d&&s.defineSkip(p.start),p._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(f),p._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),d=p,p=p.next}for(p=n;++m<l.length;)l[m][0]==="exit"&&l[m-1][0]==="enter"&&l[m][1].type===l[m-1][1].type&&l[m][1].start.line!==l[m][1].end.line&&(b=m+1,I.push(b),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(s.events=[],p?(p._tokenizer=void 0,p.previous=void 0):I.pop(),m=I.length;m--;){const y=l.slice(I[m],I[m+1]),v=o.pop();a.push([v,v+y.length-1]),e.splice(v,2,y)}for(a.reverse(),m=-1;++m<a.length;)u[x+a[m][0]]=x+a[m][1],x+=a[m][1]-a[m][0]-1;return u}const SI={resolve:CI,tokenize:II},_I={partial:!0,tokenize:NI};function CI(e){return by(e),e}function II(e,t){let n;return r;function r(l){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),i(l)}function i(l){return l===null?o(l):ne(l)?e.check(_I,s,o)(l):(e.consume(l),i)}function o(l){return e.exit("chunkContent"),e.exit("content"),t(l)}function s(l){return e.consume(l),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,i}}function NI(e,t,n){const r=this;return i;function i(s){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),ke(e,o,"linePrefix")}function o(s){if(s===null||ne(s))return n(s);const l=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&l&&l[1].type==="linePrefix"&&l[2].sliceSerialize(l[1],!0).length>=4?t(s):e.interrupt(r.parser.constructs.flow,n,t)(s)}}function Sy(e,t,n,r,i,o,s,l,a){const u=a||Number.POSITIVE_INFINITY;let f=0;return d;function d(y){return y===60?(e.enter(r),e.enter(i),e.enter(o),e.consume(y),e.exit(o),m):y===null||y===32||y===41||yl(y)?n(y):(e.enter(r),e.enter(s),e.enter(l),e.enter("chunkString",{contentType:"string"}),b(y))}function m(y){return y===62?(e.enter(o),e.consume(y),e.exit(o),e.exit(i),e.exit(r),t):(e.enter(l),e.enter("chunkString",{contentType:"string"}),p(y))}function p(y){return y===62?(e.exit("chunkString"),e.exit(l),m(y)):y===null||y===60||ne(y)?n(y):(e.consume(y),y===92?x:p)}function x(y){return y===60||y===62||y===92?(e.consume(y),p):p(y)}function b(y){return!f&&(y===null||y===41||_e(y))?(e.exit("chunkString"),e.exit(l),e.exit(s),e.exit(r),t(y)):f<u&&y===40?(e.consume(y),f++,b):y===41?(e.consume(y),f--,b):y===null||y===32||y===40||yl(y)?n(y):(e.consume(y),y===92?I:b)}function I(y){return y===40||y===41||y===92?(e.consume(y),b):b(y)}}function _y(e,t,n,r,i,o){const s=this;let l=0,a;return u;function u(p){return e.enter(r),e.enter(i),e.consume(p),e.exit(i),e.enter(o),f}function f(p){return l>999||p===null||p===91||p===93&&!a||p===94&&!l&&"_hiddenFootnoteSupport"in s.parser.constructs?n(p):p===93?(e.exit(o),e.enter(i),e.consume(p),e.exit(i),e.exit(r),t):ne(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),f):(e.enter("chunkString",{contentType:"string"}),d(p))}function d(p){return p===null||p===91||p===93||ne(p)||l++>999?(e.exit("chunkString"),f(p)):(e.consume(p),a||(a=!me(p)),p===92?m:d)}function m(p){return p===91||p===92||p===93?(e.consume(p),l++,d):d(p)}}function Cy(e,t,n,r,i,o){let s;return l;function l(m){return m===34||m===39||m===40?(e.enter(r),e.enter(i),e.consume(m),e.exit(i),s=m===40?41:m,a):n(m)}function a(m){return m===s?(e.enter(i),e.consume(m),e.exit(i),e.exit(r),t):(e.enter(o),u(m))}function u(m){return m===s?(e.exit(o),a(s)):m===null?n(m):ne(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),ke(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),f(m))}function f(m){return m===s||m===null||ne(m)?(e.exit("chunkString"),u(m)):(e.consume(m),m===92?d:f)}function d(m){return m===s||m===92?(e.consume(m),f):f(m)}}function ro(e,t){let n;return r;function r(i){return ne(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):me(i)?ke(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const EI={name:"definition",tokenize:jI},TI={partial:!0,tokenize:AI};function jI(e,t,n){const r=this;let i;return o;function o(p){return e.enter("definition"),s(p)}function s(p){return _y.call(r,e,l,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function l(p){return i=Zt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),a):n(p)}function a(p){return _e(p)?ro(e,u)(p):u(p)}function u(p){return Sy(e,f,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function f(p){return e.attempt(TI,d,d)(p)}function d(p){return me(p)?ke(e,m,"whitespace")(p):m(p)}function m(p){return p===null||ne(p)?(e.exit("definition"),r.parser.defined.push(i),t(p)):n(p)}}function AI(e,t,n){return r;function r(l){return _e(l)?ro(e,i)(l):n(l)}function i(l){return Cy(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(l)}function o(l){return me(l)?ke(e,s,"whitespace")(l):s(l)}function s(l){return l===null||ne(l)?t(l):n(l)}}const PI={name:"hardBreakEscape",tokenize:RI};function RI(e,t,n){return r;function r(o){return e.enter("hardBreakEscape"),e.consume(o),i}function i(o){return ne(o)?(e.exit("hardBreakEscape"),t(o)):n(o)}}const zI={name:"headingAtx",resolve:MI,tokenize:LI};function MI(e,t){let n=e.length-2,r=3,i,o;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},o={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},Ye(e,r,n-r+1,[["enter",i,t],["enter",o,t],["exit",o,t],["exit",i,t]])),e}function LI(e,t,n){let r=0;return i;function i(f){return e.enter("atxHeading"),o(f)}function o(f){return e.enter("atxHeadingSequence"),s(f)}function s(f){return f===35&&r++<6?(e.consume(f),s):f===null||_e(f)?(e.exit("atxHeadingSequence"),l(f)):n(f)}function l(f){return f===35?(e.enter("atxHeadingSequence"),a(f)):f===null||ne(f)?(e.exit("atxHeading"),t(f)):me(f)?ke(e,l,"whitespace")(f):(e.enter("atxHeadingText"),u(f))}function a(f){return f===35?(e.consume(f),a):(e.exit("atxHeadingSequence"),l(f))}function u(f){return f===null||f===35||_e(f)?(e.exit("atxHeadingText"),l(f)):(e.consume(f),u)}}const OI=["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"],qp=["pre","script","style","textarea"],DI={concrete:!0,name:"htmlFlow",resolveTo:UI,tokenize:BI},FI={partial:!0,tokenize:HI},$I={partial:!0,tokenize:VI};function UI(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function BI(e,t,n){const r=this;let i,o,s,l,a;return u;function u(_){return f(_)}function f(_){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(_),d}function d(_){return _===33?(e.consume(_),m):_===47?(e.consume(_),o=!0,b):_===63?(e.consume(_),i=3,r.interrupt?t:k):lt(_)?(e.consume(_),s=String.fromCharCode(_),I):n(_)}function m(_){return _===45?(e.consume(_),i=2,p):_===91?(e.consume(_),i=5,l=0,x):lt(_)?(e.consume(_),i=4,r.interrupt?t:k):n(_)}function p(_){return _===45?(e.consume(_),r.interrupt?t:k):n(_)}function x(_){const Re="CDATA[";return _===Re.charCodeAt(l++)?(e.consume(_),l===Re.length?r.interrupt?t:z:x):n(_)}function b(_){return lt(_)?(e.consume(_),s=String.fromCharCode(_),I):n(_)}function I(_){if(_===null||_===47||_===62||_e(_)){const Re=_===47,Ce=s.toLowerCase();return!Re&&!o&&qp.includes(Ce)?(i=1,r.interrupt?t(_):z(_)):OI.includes(s.toLowerCase())?(i=6,Re?(e.consume(_),y):r.interrupt?t(_):z(_)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(_):o?v(_):w(_))}return _===45||nt(_)?(e.consume(_),s+=String.fromCharCode(_),I):n(_)}function y(_){return _===62?(e.consume(_),r.interrupt?t:z):n(_)}function v(_){return me(_)?(e.consume(_),v):C(_)}function w(_){return _===47?(e.consume(_),C):_===58||_===95||lt(_)?(e.consume(_),N):me(_)?(e.consume(_),w):C(_)}function N(_){return _===45||_===46||_===58||_===95||nt(_)?(e.consume(_),N):j(_)}function j(_){return _===61?(e.consume(_),S):me(_)?(e.consume(_),j):w(_)}function S(_){return _===null||_===60||_===61||_===62||_===96?n(_):_===34||_===39?(e.consume(_),a=_,A):me(_)?(e.consume(_),S):E(_)}function A(_){return _===a?(e.consume(_),a=null,$):_===null||ne(_)?n(_):(e.consume(_),A)}function E(_){return _===null||_===34||_===39||_===47||_===60||_===61||_===62||_===96||_e(_)?j(_):(e.consume(_),E)}function $(_){return _===47||_===62||me(_)?w(_):n(_)}function C(_){return _===62?(e.consume(_),O):n(_)}function O(_){return _===null||ne(_)?z(_):me(_)?(e.consume(_),O):n(_)}function z(_){return _===45&&i===2?(e.consume(_),K):_===60&&i===1?(e.consume(_),se):_===62&&i===4?(e.consume(_),ae):_===63&&i===3?(e.consume(_),k):_===93&&i===5?(e.consume(_),W):ne(_)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(FI,ye,oe)(_)):_===null||ne(_)?(e.exit("htmlFlowData"),oe(_)):(e.consume(_),z)}function oe(_){return e.check($I,Z,ye)(_)}function Z(_){return e.enter("lineEnding"),e.consume(_),e.exit("lineEnding"),te}function te(_){return _===null||ne(_)?oe(_):(e.enter("htmlFlowData"),z(_))}function K(_){return _===45?(e.consume(_),k):z(_)}function se(_){return _===47?(e.consume(_),s="",D):z(_)}function D(_){if(_===62){const Re=s.toLowerCase();return qp.includes(Re)?(e.consume(_),ae):z(_)}return lt(_)&&s.length<8?(e.consume(_),s+=String.fromCharCode(_),D):z(_)}function W(_){return _===93?(e.consume(_),k):z(_)}function k(_){return _===62?(e.consume(_),ae):_===45&&i===2?(e.consume(_),k):z(_)}function ae(_){return _===null||ne(_)?(e.exit("htmlFlowData"),ye(_)):(e.consume(_),ae)}function ye(_){return e.exit("htmlFlow"),t(_)}}function VI(e,t,n){const r=this;return i;function i(s){return ne(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),o):n(s)}function o(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}function HI(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Uo,t,n)}}const qI={name:"htmlText",tokenize:WI};function WI(e,t,n){const r=this;let i,o,s;return l;function l(k){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(k),a}function a(k){return k===33?(e.consume(k),u):k===47?(e.consume(k),j):k===63?(e.consume(k),w):lt(k)?(e.consume(k),E):n(k)}function u(k){return k===45?(e.consume(k),f):k===91?(e.consume(k),o=0,x):lt(k)?(e.consume(k),v):n(k)}function f(k){return k===45?(e.consume(k),p):n(k)}function d(k){return k===null?n(k):k===45?(e.consume(k),m):ne(k)?(s=d,se(k)):(e.consume(k),d)}function m(k){return k===45?(e.consume(k),p):d(k)}function p(k){return k===62?K(k):k===45?m(k):d(k)}function x(k){const ae="CDATA[";return k===ae.charCodeAt(o++)?(e.consume(k),o===ae.length?b:x):n(k)}function b(k){return k===null?n(k):k===93?(e.consume(k),I):ne(k)?(s=b,se(k)):(e.consume(k),b)}function I(k){return k===93?(e.consume(k),y):b(k)}function y(k){return k===62?K(k):k===93?(e.consume(k),y):b(k)}function v(k){return k===null||k===62?K(k):ne(k)?(s=v,se(k)):(e.consume(k),v)}function w(k){return k===null?n(k):k===63?(e.consume(k),N):ne(k)?(s=w,se(k)):(e.consume(k),w)}function N(k){return k===62?K(k):w(k)}function j(k){return lt(k)?(e.consume(k),S):n(k)}function S(k){return k===45||nt(k)?(e.consume(k),S):A(k)}function A(k){return ne(k)?(s=A,se(k)):me(k)?(e.consume(k),A):K(k)}function E(k){return k===45||nt(k)?(e.consume(k),E):k===47||k===62||_e(k)?$(k):n(k)}function $(k){return k===47?(e.consume(k),K):k===58||k===95||lt(k)?(e.consume(k),C):ne(k)?(s=$,se(k)):me(k)?(e.consume(k),$):K(k)}function C(k){return k===45||k===46||k===58||k===95||nt(k)?(e.consume(k),C):O(k)}function O(k){return k===61?(e.consume(k),z):ne(k)?(s=O,se(k)):me(k)?(e.consume(k),O):$(k)}function z(k){return k===null||k===60||k===61||k===62||k===96?n(k):k===34||k===39?(e.consume(k),i=k,oe):ne(k)?(s=z,se(k)):me(k)?(e.consume(k),z):(e.consume(k),Z)}function oe(k){return k===i?(e.consume(k),i=void 0,te):k===null?n(k):ne(k)?(s=oe,se(k)):(e.consume(k),oe)}function Z(k){return k===null||k===34||k===39||k===60||k===61||k===96?n(k):k===47||k===62||_e(k)?$(k):(e.consume(k),Z)}function te(k){return k===47||k===62||_e(k)?$(k):n(k)}function K(k){return k===62?(e.consume(k),e.exit("htmlTextData"),e.exit("htmlText"),t):n(k)}function se(k){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),D}function D(k){return me(k)?ke(e,W,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(k):W(k)}function W(k){return e.enter("htmlTextData"),s(k)}}const Ed={name:"labelEnd",resolveAll:KI,resolveTo:YI,tokenize:XI},ZI={tokenize:JI},GI={tokenize:e4},QI={tokenize:t4};function KI(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const i=r.type==="labelImage"?4:2;r.type="data",t+=i}}return e.length!==n.length&&Ye(e,0,e.length,n),e}function YI(e,t){let n=e.length,r=0,i,o,s,l;for(;n--;)if(i=e[n][1],o){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[n][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(s){if(e[n][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(o=n,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(s=n);const a={type:e[o][1].type==="labelLink"?"link":"image",start:{...e[o][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[o][1].start},end:{...e[s][1].end}},f={type:"labelText",start:{...e[o+r+2][1].end},end:{...e[s-2][1].start}};return l=[["enter",a,t],["enter",u,t]],l=Qe(l,e.slice(o+1,o+r+3)),l=Qe(l,[["enter",f,t]]),l=Qe(l,Ni(t.parser.constructs.insideSpan.null,e.slice(o+r+4,s-3),t)),l=Qe(l,[["exit",f,t],e[s-2],e[s-1],["exit",u,t]]),l=Qe(l,e.slice(s+1)),l=Qe(l,[["exit",a,t]]),Ye(e,o,e.length,l),e}function XI(e,t,n){const r=this;let i=r.events.length,o,s;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){o=r.events[i][1];break}return l;function l(m){return o?o._inactive?d(m):(s=r.parser.defined.includes(Zt(r.sliceSerialize({start:o.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(m),e.exit("labelMarker"),e.exit("labelEnd"),a):n(m)}function a(m){return m===40?e.attempt(ZI,f,s?f:d)(m):m===91?e.attempt(GI,f,s?u:d)(m):s?f(m):d(m)}function u(m){return e.attempt(QI,f,d)(m)}function f(m){return t(m)}function d(m){return o._balanced=!0,n(m)}}function JI(e,t,n){return r;function r(d){return e.enter("resource"),e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),i}function i(d){return _e(d)?ro(e,o)(d):o(d)}function o(d){return d===41?f(d):Sy(e,s,l,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(d)}function s(d){return _e(d)?ro(e,a)(d):f(d)}function l(d){return n(d)}function a(d){return d===34||d===39||d===40?Cy(e,u,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(d):f(d)}function u(d){return _e(d)?ro(e,f)(d):f(d)}function f(d){return d===41?(e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),e.exit("resource"),t):n(d)}}function e4(e,t,n){const r=this;return i;function i(l){return _y.call(r,e,o,s,"reference","referenceMarker","referenceString")(l)}function o(l){return r.parser.defined.includes(Zt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(l):n(l)}function s(l){return n(l)}}function t4(e,t,n){return r;function r(o){return e.enter("reference"),e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),i}function i(o){return o===93?(e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),e.exit("reference"),t):n(o)}}const n4={name:"labelStartImage",resolveAll:Ed.resolveAll,tokenize:r4};function r4(e,t,n){const r=this;return i;function i(l){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(l),e.exit("labelImageMarker"),o}function o(l){return l===91?(e.enter("labelMarker"),e.consume(l),e.exit("labelMarker"),e.exit("labelImage"),s):n(l)}function s(l){return l===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(l):t(l)}}const i4={name:"labelStartLink",resolveAll:Ed.resolveAll,tokenize:o4};function o4(e,t,n){const r=this;return i;function i(s){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelLink"),o}function o(s){return s===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(s):t(s)}}const Na={name:"lineEnding",tokenize:s4};function s4(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),ke(e,t,"linePrefix")}}const As={name:"thematicBreak",tokenize:l4};function l4(e,t,n){let r=0,i;return o;function o(u){return e.enter("thematicBreak"),s(u)}function s(u){return i=u,l(u)}function l(u){return u===i?(e.enter("thematicBreakSequence"),a(u)):r>=3&&(u===null||ne(u))?(e.exit("thematicBreak"),t(u)):n(u)}function a(u){return u===i?(e.consume(u),r++,a):(e.exit("thematicBreakSequence"),me(u)?ke(e,l,"whitespace")(u):l(u))}}const pt={continuation:{tokenize:d4},exit:p4,name:"list",tokenize:c4},a4={partial:!0,tokenize:m4},u4={partial:!0,tokenize:f4};function c4(e,t,n){const r=this,i=r.events[r.events.length-1];let o=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,s=0;return l;function l(p){const x=r.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(x==="listUnordered"?!r.containerState.marker||p===r.containerState.marker:Yu(p)){if(r.containerState.type||(r.containerState.type=x,e.enter(x,{_container:!0})),x==="listUnordered")return e.enter("listItemPrefix"),p===42||p===45?e.check(As,n,u)(p):u(p);if(!r.interrupt||p===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),a(p)}return n(p)}function a(p){return Yu(p)&&++s<10?(e.consume(p),a):(!r.interrupt||s<2)&&(r.containerState.marker?p===r.containerState.marker:p===41||p===46)?(e.exit("listItemValue"),u(p)):n(p)}function u(p){return e.enter("listItemMarker"),e.consume(p),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||p,e.check(Uo,r.interrupt?n:f,e.attempt(a4,m,d))}function f(p){return r.containerState.initialBlankLine=!0,o++,m(p)}function d(p){return me(p)?(e.enter("listItemPrefixWhitespace"),e.consume(p),e.exit("listItemPrefixWhitespace"),m):n(p)}function m(p){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(p)}}function d4(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Uo,i,o);function i(l){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,ke(e,t,"listItemIndent",r.containerState.size+1)(l)}function o(l){return r.containerState.furtherBlankLines||!me(l)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,s(l)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(u4,t,s)(l))}function s(l){return r.containerState._closeFlow=!0,r.interrupt=void 0,ke(e,e.attempt(pt,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l)}}function f4(e,t,n){const r=this;return ke(e,i,"listItemIndent",r.containerState.size+1);function i(o){const s=r.events[r.events.length-1];return s&&s[1].type==="listItemIndent"&&s[2].sliceSerialize(s[1],!0).length===r.containerState.size?t(o):n(o)}}function p4(e){e.exit(this.containerState.type)}function m4(e,t,n){const r=this;return ke(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(o){const s=r.events[r.events.length-1];return!me(o)&&s&&s[1].type==="listItemPrefixWhitespace"?t(o):n(o)}}const Wp={name:"setextUnderline",resolveTo:h4,tokenize:g4};function h4(e,t){let n=e.length,r,i,o;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!o&&e[n][1].type==="definition"&&(o=n);const s={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",o?(e.splice(i,0,["enter",s,t]),e.splice(o+1,0,["exit",e[r][1],t]),e[r][1].end={...e[o][1].end}):e[r][1]=s,e.push(["exit",s,t]),e}function g4(e,t,n){const r=this;let i;return o;function o(u){let f=r.events.length,d;for(;f--;)if(r.events[f][1].type!=="lineEnding"&&r.events[f][1].type!=="linePrefix"&&r.events[f][1].type!=="content"){d=r.events[f][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||d)?(e.enter("setextHeadingLine"),i=u,s(u)):n(u)}function s(u){return e.enter("setextHeadingLineSequence"),l(u)}function l(u){return u===i?(e.consume(u),l):(e.exit("setextHeadingLineSequence"),me(u)?ke(e,a,"lineSuffix")(u):a(u))}function a(u){return u===null||ne(u)?(e.exit("setextHeadingLine"),t(u)):n(u)}}const y4={tokenize:x4};function x4(e){const t=this,n=e.attempt(Uo,r,e.attempt(this.parser.constructs.flowInitial,i,ke(e,e.attempt(this.parser.constructs.flow,i,e.attempt(SI,i)),"linePrefix")));return n;function r(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const v4={resolveAll:Ny()},k4=Iy("string"),w4=Iy("text");function Iy(e){return{resolveAll:Ny(e==="text"?b4:void 0),tokenize:t};function t(n){const r=this,i=this.parser.constructs[e],o=n.attempt(i,s,l);return s;function s(f){return u(f)?o(f):l(f)}function l(f){if(f===null){n.consume(f);return}return n.enter("data"),n.consume(f),a}function a(f){return u(f)?(n.exit("data"),o(f)):(n.consume(f),a)}function u(f){if(f===null)return!0;const d=i[f];let m=-1;if(d)for(;++m<d.length;){const p=d[m];if(!p.previous||p.previous.call(r,r.previous))return!0}return!1}}}function Ny(e){return t;function t(n,r){let i=-1,o;for(;++i<=n.length;)o===void 0?n[i]&&n[i][1].type==="data"&&(o=i,i++):(!n[i]||n[i][1].type!=="data")&&(i!==o+2&&(n[o][1].end=n[i-1][1].end,n.splice(o+2,i-o-2),i=o+2),o=void 0);return e?e(n,r):n}}function b4(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],i=t.sliceStream(r);let o=i.length,s=-1,l=0,a;for(;o--;){const u=i[o];if(typeof u=="string"){for(s=u.length;u.charCodeAt(s-1)===32;)l++,s--;if(s)break;s=-1}else if(u===-2)a=!0,l++;else if(u!==-1){o++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(l=0),l){const u={type:n===e.length||a||l<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?s:r.start._bufferIndex+s,_index:r.start._index+o,line:r.end.line,column:r.end.column-l,offset:r.end.offset-l},end:{...r.end}};r.end={...u.start},r.start.offset===r.end.offset?Object.assign(r,u):(e.splice(n,0,["enter",u,t],["exit",u,t]),n+=2)}n++}return e}const S4={42:pt,43:pt,45:pt,48:pt,49:pt,50:pt,51:pt,52:pt,53:pt,54:pt,55:pt,56:pt,57:pt,62:vy},_4={91:EI},C4={[-2]:Ia,[-1]:Ia,32:Ia},I4={35:zI,42:As,45:[Wp,As],60:DI,61:Wp,95:As,96:Hp,126:Hp},N4={38:wy,92:ky},E4={[-5]:Na,[-4]:Na,[-3]:Na,33:n4,38:wy,42:Xu,60:[iI,qI],91:i4,92:[PI,ky],93:Ed,95:Xu,96:yI},T4={null:[Xu,v4]},j4={null:[42,95]},A4={null:[]},P4=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:j4,contentInitial:_4,disable:A4,document:S4,flow:I4,flowInitial:C4,insideSpan:T4,string:N4,text:E4},Symbol.toStringTag,{value:"Module"}));function R4(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const i={},o=[];let s=[],l=[];const a={attempt:A(j),check:A(S),consume:v,enter:w,exit:N,interrupt:A(S,{interrupt:!0})},u={code:null,containerState:{},defineSkip:b,events:[],now:x,parser:e,previous:null,sliceSerialize:m,sliceStream:p,write:d};let f=t.tokenize.call(u,a);return t.resolveAll&&o.push(t),u;function d(O){return s=Qe(s,O),I(),s[s.length-1]!==null?[]:(E(t,0),u.events=Ni(o,u.events,u),u.events)}function m(O,z){return M4(p(O),z)}function p(O){return z4(s,O)}function x(){const{_bufferIndex:O,_index:z,line:oe,column:Z,offset:te}=r;return{_bufferIndex:O,_index:z,line:oe,column:Z,offset:te}}function b(O){i[O.line]=O.column,C()}function I(){let O;for(;r._index<s.length;){const z=s[r._index];if(typeof z=="string")for(O=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===O&&r._bufferIndex<z.length;)y(z.charCodeAt(r._bufferIndex));else y(z)}}function y(O){f=f(O)}function v(O){ne(O)?(r.line++,r.column=1,r.offset+=O===-3?2:1,C()):O!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===s[r._index].length&&(r._bufferIndex=-1,r._index++)),u.previous=O}function w(O,z){const oe=z||{};return oe.type=O,oe.start=x(),u.events.push(["enter",oe,u]),l.push(oe),oe}function N(O){const z=l.pop();return z.end=x(),u.events.push(["exit",z,u]),z}function j(O,z){E(O,z.from)}function S(O,z){z.restore()}function A(O,z){return oe;function oe(Z,te,K){let se,D,W,k;return Array.isArray(Z)?ye(Z):"tokenize"in Z?ye([Z]):ae(Z);function ae(ue){return ot;function ot(Ft){const Te=Ft!==null&&ue[Ft],un=Ft!==null&&ue.null,cn=[...Array.isArray(Te)?Te:Te?[Te]:[],...Array.isArray(un)?un:un?[un]:[]];return ye(cn)(Ft)}}function ye(ue){return se=ue,D=0,ue.length===0?K:_(ue[D])}function _(ue){return ot;function ot(Ft){return k=$(),W=ue,ue.partial||(u.currentConstruct=ue),ue.name&&u.parser.constructs.disable.null.includes(ue.name)?Ce():ue.tokenize.call(z?Object.assign(Object.create(u),z):u,a,Re,Ce)(Ft)}}function Re(ue){return O(W,k),te}function Ce(ue){return k.restore(),++D<se.length?_(se[D]):K}}}function E(O,z){O.resolveAll&&!o.includes(O)&&o.push(O),O.resolve&&Ye(u.events,z,u.events.length-z,O.resolve(u.events.slice(z),u)),O.resolveTo&&(u.events=O.resolveTo(u.events,u))}function $(){const O=x(),z=u.previous,oe=u.currentConstruct,Z=u.events.length,te=Array.from(l);return{from:Z,restore:K};function K(){r=O,u.previous=z,u.currentConstruct=oe,u.events.length=Z,l=te,C()}}function C(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function z4(e,t){const n=t.start._index,r=t.start._bufferIndex,i=t.end._index,o=t.end._bufferIndex;let s;if(n===i)s=[e[n].slice(r,o)];else{if(s=e.slice(n,i),r>-1){const l=s[0];typeof l=="string"?s[0]=l.slice(r):s.shift()}o>0&&s.push(e[i].slice(0,o))}return s}function M4(e,t){let n=-1;const r=[];let i;for(;++n<e.length;){const o=e[n];let s;if(typeof o=="string")s=o;else switch(o){case-5:{s="\r";break}case-4:{s=`
279
279
  `;break}case-3:{s=`\r
280
- `;break}case-2:{s=t?" ":" ";break}case-1:{if(!t&&i)continue;s=" ";break}default:s=String.fromCharCode(o)}i=o===-2,r.push(s)}return r.join("")}function M4(e){const r={constructs:gy([A4,...(e||{}).extensions||[]]),content:i(KC),defined:[],document:i(XC),flow:i(g4),lazy:{},string:i(v4),text:i(k4)};return r;function i(o){return s;function s(l){return P4(r,o,l)}}}function L4(e){for(;!wy(e););return e}const Zp=/[\0\t\n\r]/g;function O4(){let e=1,t="",n=!0,r;return i;function i(o,s,l){const a=[];let u,f,d,m,p;for(o=t+(typeof o=="string"?o.toString():new TextDecoder(s||void 0).decode(o)),d=0,t="",n&&(o.charCodeAt(0)===65279&&d++,n=void 0);d<o.length;){if(Zp.lastIndex=d,u=Zp.exec(o),m=u&&u.index!==void 0?u.index:o.length,p=o.charCodeAt(m),!u){t=o.slice(d);break}if(p===10&&d===m&&r)a.push(-3),r=void 0;else switch(r&&(a.push(-5),r=void 0),d<m&&(a.push(o.slice(d,m)),e+=m-d),p){case 0:{a.push(65533),e++;break}case 9:{for(f=Math.ceil(e/4)*4,a.push(-2);e++<f;)a.push(-1);break}case 10:{a.push(-4),e=1;break}default:r=!0,e=1}d=m+1}return l&&(r&&a.push(-5),t&&a.push(t),a.push(null)),a}}const D4=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function F4(e){return e.replace(D4,$4)}function $4(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),o=i===120||i===88;return yy(n.slice(o?2:1),o?16:10)}return Nd(n)||e}const Ny={}.hasOwnProperty;function U4(e,t,n){return t&&typeof t=="object"&&(n=t,t=void 0),B4(n)(L4(M4(n).document().write(O4()(e,t,!0))))}function B4(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(Bd),autolinkProtocol:$,autolinkEmail:$,atxHeading:o(Fd),blockQuote:o(un),characterEscape:$,characterReference:$,codeFenced:o(cn),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:o(cn,s),codeText:o(Mr,s),codeTextData:$,data:$,codeFlowValue:$,definition:o(Ei),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:o(Lr),hardBreakEscape:o($d),hardBreakTrailing:o($d),htmlFlow:o(Ud,s),htmlFlowData:$,htmlText:o(Ud,s),htmlTextData:$,image:o(jx),label:s,link:o(Bd),listItem:o(Ax),listItemValue:m,listOrdered:o(Vd,d),listUnordered:o(Vd),paragraph:o(Px),reference:_,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:o(Fd),strong:o(Rx),thematicBreak:o(Mx)},exit:{atxHeading:a(),atxHeadingSequence:j,autolink:a(),autolinkEmail:Te,autolinkProtocol:Ft,blockQuote:a(),characterEscapeValue:C,characterReferenceMarkerHexadecimal:Ce,characterReferenceMarkerNumeric:Ce,characterReferenceValue:ue,characterReference:ot,codeFenced:a(I),codeFencedFence:b,codeFencedFenceInfo:p,codeFencedFenceMeta:x,codeFlowValue:C,codeIndented:a(y),codeText:a(te),codeTextData:C,data:C,definition:a(),definitionDestinationString:N,definitionLabelString:v,definitionTitleString:w,emphasis:a(),hardBreakEscape:a(z),hardBreakTrailing:a(z),htmlFlow:a(oe),htmlFlowData:C,htmlText:a(Z),htmlTextData:C,image:a(se),label:W,labelText:D,lineEnding:O,link:a(K),listItem:a(),listOrdered:a(),listUnordered:a(),paragraph:a(),referenceString:Re,resourceDestinationString:k,resourceTitleString:ae,resource:ye,setextHeading:a(E),setextHeadingLineSequence:A,setextHeadingText:S,strong:a(),thematicBreak:a()}};Ey(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(P){let V={type:"root",children:[]};const le={stack:[V],tokenStack:[],config:t,enter:l,exit:u,buffer:s,resume:f,data:n},xe=[];let Ie=-1;for(;++Ie<P.length;)if(P[Ie][1].type==="listOrdered"||P[Ie][1].type==="listUnordered")if(P[Ie][0]==="enter")xe.push(Ie);else{const $t=xe.pop();Ie=i(P,$t,Ie)}for(Ie=-1;++Ie<P.length;){const $t=t[P[Ie][0]];Ny.call($t,P[Ie][1].type)&&$t[P[Ie][1].type].call(Object.assign({sliceSerialize:P[Ie][2].sliceSerialize},le),P[Ie][1])}if(le.tokenStack.length>0){const $t=le.tokenStack[le.tokenStack.length-1];($t[1]||Gp).call(le,void 0,$t[0])}for(V.position={start:Mn(P.length>0?P[0][1].start:{line:1,column:1,offset:0}),end:Mn(P.length>0?P[P.length-2][1].end:{line:1,column:1,offset:0})},Ie=-1;++Ie<t.transforms.length;)V=t.transforms[Ie](V)||V;return V}function i(P,V,le){let xe=V-1,Ie=-1,$t=!1,ur,dn,Ti,ji;for(;++xe<=le;){const wt=P[xe];switch(wt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{wt[0]==="enter"?Ie++:Ie--,ji=void 0;break}case"lineEndingBlank":{wt[0]==="enter"&&(ur&&!ji&&!Ie&&!Ti&&(Ti=xe),ji=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:ji=void 0}if(!Ie&&wt[0]==="enter"&&wt[1].type==="listItemPrefix"||Ie===-1&&wt[0]==="exit"&&(wt[1].type==="listUnordered"||wt[1].type==="listOrdered")){if(ur){let Or=xe;for(dn=void 0;Or--;){const fn=P[Or];if(fn[1].type==="lineEnding"||fn[1].type==="lineEndingBlank"){if(fn[0]==="exit")continue;dn&&(P[dn][1].type="lineEndingBlank",$t=!0),fn[1].type="lineEnding",dn=Or}else if(!(fn[1].type==="linePrefix"||fn[1].type==="blockQuotePrefix"||fn[1].type==="blockQuotePrefixWhitespace"||fn[1].type==="blockQuoteMarker"||fn[1].type==="listItemIndent"))break}Ti&&(!dn||Ti<dn)&&(ur._spread=!0),ur.end=Object.assign({},dn?P[dn][1].start:wt[1].end),P.splice(dn||xe,0,["exit",ur,wt[2]]),xe++,le++}if(wt[1].type==="listItemPrefix"){const Or={type:"listItem",_spread:!1,start:Object.assign({},wt[1].start),end:void 0};ur=Or,P.splice(xe,0,["enter",Or,wt[2]]),xe++,le++,Ti=void 0,ji=!0}}}return P[V][1]._spread=$t,le}function o(P,V){return le;function le(xe){l.call(this,P(xe),xe),V&&V.call(this,xe)}}function s(){this.stack.push({type:"fragment",children:[]})}function l(P,V,le){this.stack[this.stack.length-1].children.push(P),this.stack.push(P),this.tokenStack.push([V,le||void 0]),P.position={start:Mn(V.start),end:void 0}}function a(P){return V;function V(le){P&&P.call(this,le),u.call(this,le)}}function u(P,V){const le=this.stack.pop(),xe=this.tokenStack.pop();if(xe)xe[0].type!==P.type&&(V?V.call(this,P,xe[0]):(xe[1]||Gp).call(this,P,xe[0]));else throw new Error("Cannot close `"+P.type+"` ("+no({start:P.start,end:P.end})+"): it’s not open");le.position.end=Mn(P.end)}function f(){return Id(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function m(P){if(this.data.expectingFirstListItemValue){const V=this.stack[this.stack.length-2];V.start=Number.parseInt(this.sliceSerialize(P),10),this.data.expectingFirstListItemValue=void 0}}function p(){const P=this.resume(),V=this.stack[this.stack.length-1];V.lang=P}function x(){const P=this.resume(),V=this.stack[this.stack.length-1];V.meta=P}function b(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function I(){const P=this.resume(),V=this.stack[this.stack.length-1];V.value=P.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function y(){const P=this.resume(),V=this.stack[this.stack.length-1];V.value=P.replace(/(\r?\n|\r)$/g,"")}function v(P){const V=this.resume(),le=this.stack[this.stack.length-1];le.label=V,le.identifier=Zt(this.sliceSerialize(P)).toLowerCase()}function w(){const P=this.resume(),V=this.stack[this.stack.length-1];V.title=P}function N(){const P=this.resume(),V=this.stack[this.stack.length-1];V.url=P}function j(P){const V=this.stack[this.stack.length-1];if(!V.depth){const le=this.sliceSerialize(P).length;V.depth=le}}function S(){this.data.setextHeadingSlurpLineEnding=!0}function A(P){const V=this.stack[this.stack.length-1];V.depth=this.sliceSerialize(P).codePointAt(0)===61?1:2}function E(){this.data.setextHeadingSlurpLineEnding=void 0}function $(P){const le=this.stack[this.stack.length-1].children;let xe=le[le.length-1];(!xe||xe.type!=="text")&&(xe=zx(),xe.position={start:Mn(P.start),end:void 0},le.push(xe)),this.stack.push(xe)}function C(P){const V=this.stack.pop();V.value+=this.sliceSerialize(P),V.position.end=Mn(P.end)}function O(P){const V=this.stack[this.stack.length-1];if(this.data.atHardBreak){const le=V.children[V.children.length-1];le.position.end=Mn(P.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(V.type)&&($.call(this,P),C.call(this,P))}function z(){this.data.atHardBreak=!0}function oe(){const P=this.resume(),V=this.stack[this.stack.length-1];V.value=P}function Z(){const P=this.resume(),V=this.stack[this.stack.length-1];V.value=P}function te(){const P=this.resume(),V=this.stack[this.stack.length-1];V.value=P}function K(){const P=this.stack[this.stack.length-1];if(this.data.inReference){const V=this.data.referenceType||"shortcut";P.type+="Reference",P.referenceType=V,delete P.url,delete P.title}else delete P.identifier,delete P.label;this.data.referenceType=void 0}function se(){const P=this.stack[this.stack.length-1];if(this.data.inReference){const V=this.data.referenceType||"shortcut";P.type+="Reference",P.referenceType=V,delete P.url,delete P.title}else delete P.identifier,delete P.label;this.data.referenceType=void 0}function D(P){const V=this.sliceSerialize(P),le=this.stack[this.stack.length-2];le.label=F4(V),le.identifier=Zt(V).toLowerCase()}function W(){const P=this.stack[this.stack.length-1],V=this.resume(),le=this.stack[this.stack.length-1];if(this.data.inReference=!0,le.type==="link"){const xe=P.children;le.children=xe}else le.alt=V}function k(){const P=this.resume(),V=this.stack[this.stack.length-1];V.url=P}function ae(){const P=this.resume(),V=this.stack[this.stack.length-1];V.title=P}function ye(){this.data.inReference=void 0}function _(){this.data.referenceType="collapsed"}function Re(P){const V=this.resume(),le=this.stack[this.stack.length-1];le.label=V,le.identifier=Zt(this.sliceSerialize(P)).toLowerCase(),this.data.referenceType="full"}function Ce(P){this.data.characterReferenceType=P.type}function ue(P){const V=this.sliceSerialize(P),le=this.data.characterReferenceType;let xe;le?(xe=yy(V,le==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):xe=Nd(V);const Ie=this.stack[this.stack.length-1];Ie.value+=xe}function ot(P){const V=this.stack.pop();V.position.end=Mn(P.end)}function Ft(P){C.call(this,P);const V=this.stack[this.stack.length-1];V.url=this.sliceSerialize(P)}function Te(P){C.call(this,P);const V=this.stack[this.stack.length-1];V.url="mailto:"+this.sliceSerialize(P)}function un(){return{type:"blockquote",children:[]}}function cn(){return{type:"code",lang:null,meta:null,value:""}}function Mr(){return{type:"inlineCode",value:""}}function Ei(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Lr(){return{type:"emphasis",children:[]}}function Fd(){return{type:"heading",depth:0,children:[]}}function $d(){return{type:"break"}}function Ud(){return{type:"html",value:""}}function jx(){return{type:"image",title:null,url:"",alt:null}}function Bd(){return{type:"link",title:null,url:"",children:[]}}function Vd(P){return{type:"list",ordered:P.type==="listOrdered",start:null,spread:P._spread,children:[]}}function Ax(P){return{type:"listItem",spread:P._spread,checked:null,children:[]}}function Px(){return{type:"paragraph",children:[]}}function Rx(){return{type:"strong",children:[]}}function zx(){return{type:"text",value:""}}function Mx(){return{type:"thematicBreak"}}}function Mn(e){return{line:e.line,column:e.column,offset:e.offset}}function Ey(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?Ey(e,r):V4(e,r)}}function V4(e,t){let n;for(n in t)if(Ny.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function Gp(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+no({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+no({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+no({start:t.start,end:t.end})+") is still open")}function H4(e){const t=this;t.parser=n;function n(r){return U4(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function q4(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function W4(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
281
- `}]}function Z4(e,t){const n=t.value?t.value+`
282
- `:"",r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=["language-"+i[0]]);let o={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(o.data={meta:t.meta}),e.patch(t,o),o=e.applyData(t,o),o={type:"element",tagName:"pre",properties:{},children:[o]},e.patch(t,o),o}function G4(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Q4(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function K4(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),i=Ii(r.toLowerCase()),o=e.footnoteOrder.indexOf(r);let s,l=e.footnoteCounts.get(r);l===void 0?(l=0,e.footnoteOrder.push(r),s=e.footnoteOrder.length):s=o+1,l+=1,e.footnoteCounts.set(r,l);const a={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+i,id:n+"fnref-"+i+(l>1?"-"+l:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(s)}]};e.patch(t,a);const u={type:"element",tagName:"sup",properties:{},children:[a]};return e.patch(t,u),e.applyData(t,u)}function Y4(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function X4(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function Ty(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),o=i[0];o&&o.type==="text"?o.value="["+o.value:i.unshift({type:"text",value:"["});const s=i[i.length-1];return s&&s.type==="text"?s.value+=r:i.push({type:"text",value:r}),i}function J4(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Ty(e,t);const i={src:Ii(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const o={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,o),e.applyData(t,o)}function eN(e,t){const n={src:Ii(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function tN(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function nN(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Ty(e,t);const i={href:Ii(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const o={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)}function rN(e,t){const n={href:Ii(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function iN(e,t,n){const r=e.all(t),i=n?oN(n):jy(t),o={},s=[];if(typeof t.checked=="boolean"){const f=r[0];let d;f&&f.type==="element"&&f.tagName==="p"?d=f:(d={type:"element",tagName:"p",properties:{},children:[]},r.unshift(d)),d.children.length>0&&d.children.unshift({type:"text",value:" "}),d.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let l=-1;for(;++l<r.length;){const f=r[l];(i||l!==0||f.type!=="element"||f.tagName!=="p")&&s.push({type:"text",value:`
280
+ `;break}case-2:{s=t?" ":" ";break}case-1:{if(!t&&i)continue;s=" ";break}default:s=String.fromCharCode(o)}i=o===-2,r.push(s)}return r.join("")}function L4(e){const r={constructs:yy([P4,...(e||{}).extensions||[]]),content:i(YC),defined:[],document:i(JC),flow:i(y4),lazy:{},string:i(k4),text:i(w4)};return r;function i(o){return s;function s(l){return R4(r,o,l)}}}function O4(e){for(;!by(e););return e}const Zp=/[\0\t\n\r]/g;function D4(){let e=1,t="",n=!0,r;return i;function i(o,s,l){const a=[];let u,f,d,m,p;for(o=t+(typeof o=="string"?o.toString():new TextDecoder(s||void 0).decode(o)),d=0,t="",n&&(o.charCodeAt(0)===65279&&d++,n=void 0);d<o.length;){if(Zp.lastIndex=d,u=Zp.exec(o),m=u&&u.index!==void 0?u.index:o.length,p=o.charCodeAt(m),!u){t=o.slice(d);break}if(p===10&&d===m&&r)a.push(-3),r=void 0;else switch(r&&(a.push(-5),r=void 0),d<m&&(a.push(o.slice(d,m)),e+=m-d),p){case 0:{a.push(65533),e++;break}case 9:{for(f=Math.ceil(e/4)*4,a.push(-2);e++<f;)a.push(-1);break}case 10:{a.push(-4),e=1;break}default:r=!0,e=1}d=m+1}return l&&(r&&a.push(-5),t&&a.push(t),a.push(null)),a}}const F4=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function $4(e){return e.replace(F4,U4)}function U4(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),o=i===120||i===88;return xy(n.slice(o?2:1),o?16:10)}return Nd(n)||e}const Ey={}.hasOwnProperty;function B4(e,t,n){return t&&typeof t=="object"&&(n=t,t=void 0),V4(n)(O4(L4(n).document().write(D4()(e,t,!0))))}function V4(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(Bd),autolinkProtocol:$,autolinkEmail:$,atxHeading:o(Fd),blockQuote:o(un),characterEscape:$,characterReference:$,codeFenced:o(cn),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:o(cn,s),codeText:o(Mr,s),codeTextData:$,data:$,codeFlowValue:$,definition:o(Ei),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:o(Lr),hardBreakEscape:o($d),hardBreakTrailing:o($d),htmlFlow:o(Ud,s),htmlFlowData:$,htmlText:o(Ud,s),htmlTextData:$,image:o(Ax),label:s,link:o(Bd),listItem:o(Px),listItemValue:m,listOrdered:o(Vd,d),listUnordered:o(Vd),paragraph:o(Rx),reference:_,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:o(Fd),strong:o(zx),thematicBreak:o(Lx)},exit:{atxHeading:a(),atxHeadingSequence:j,autolink:a(),autolinkEmail:Te,autolinkProtocol:Ft,blockQuote:a(),characterEscapeValue:C,characterReferenceMarkerHexadecimal:Ce,characterReferenceMarkerNumeric:Ce,characterReferenceValue:ue,characterReference:ot,codeFenced:a(I),codeFencedFence:b,codeFencedFenceInfo:p,codeFencedFenceMeta:x,codeFlowValue:C,codeIndented:a(y),codeText:a(te),codeTextData:C,data:C,definition:a(),definitionDestinationString:N,definitionLabelString:v,definitionTitleString:w,emphasis:a(),hardBreakEscape:a(z),hardBreakTrailing:a(z),htmlFlow:a(oe),htmlFlowData:C,htmlText:a(Z),htmlTextData:C,image:a(se),label:W,labelText:D,lineEnding:O,link:a(K),listItem:a(),listOrdered:a(),listUnordered:a(),paragraph:a(),referenceString:Re,resourceDestinationString:k,resourceTitleString:ae,resource:ye,setextHeading:a(E),setextHeadingLineSequence:A,setextHeadingText:S,strong:a(),thematicBreak:a()}};Ty(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(P){let V={type:"root",children:[]};const le={stack:[V],tokenStack:[],config:t,enter:l,exit:u,buffer:s,resume:f,data:n},xe=[];let Ie=-1;for(;++Ie<P.length;)if(P[Ie][1].type==="listOrdered"||P[Ie][1].type==="listUnordered")if(P[Ie][0]==="enter")xe.push(Ie);else{const $t=xe.pop();Ie=i(P,$t,Ie)}for(Ie=-1;++Ie<P.length;){const $t=t[P[Ie][0]];Ey.call($t,P[Ie][1].type)&&$t[P[Ie][1].type].call(Object.assign({sliceSerialize:P[Ie][2].sliceSerialize},le),P[Ie][1])}if(le.tokenStack.length>0){const $t=le.tokenStack[le.tokenStack.length-1];($t[1]||Gp).call(le,void 0,$t[0])}for(V.position={start:Mn(P.length>0?P[0][1].start:{line:1,column:1,offset:0}),end:Mn(P.length>0?P[P.length-2][1].end:{line:1,column:1,offset:0})},Ie=-1;++Ie<t.transforms.length;)V=t.transforms[Ie](V)||V;return V}function i(P,V,le){let xe=V-1,Ie=-1,$t=!1,ur,dn,Ti,ji;for(;++xe<=le;){const wt=P[xe];switch(wt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{wt[0]==="enter"?Ie++:Ie--,ji=void 0;break}case"lineEndingBlank":{wt[0]==="enter"&&(ur&&!ji&&!Ie&&!Ti&&(Ti=xe),ji=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:ji=void 0}if(!Ie&&wt[0]==="enter"&&wt[1].type==="listItemPrefix"||Ie===-1&&wt[0]==="exit"&&(wt[1].type==="listUnordered"||wt[1].type==="listOrdered")){if(ur){let Or=xe;for(dn=void 0;Or--;){const fn=P[Or];if(fn[1].type==="lineEnding"||fn[1].type==="lineEndingBlank"){if(fn[0]==="exit")continue;dn&&(P[dn][1].type="lineEndingBlank",$t=!0),fn[1].type="lineEnding",dn=Or}else if(!(fn[1].type==="linePrefix"||fn[1].type==="blockQuotePrefix"||fn[1].type==="blockQuotePrefixWhitespace"||fn[1].type==="blockQuoteMarker"||fn[1].type==="listItemIndent"))break}Ti&&(!dn||Ti<dn)&&(ur._spread=!0),ur.end=Object.assign({},dn?P[dn][1].start:wt[1].end),P.splice(dn||xe,0,["exit",ur,wt[2]]),xe++,le++}if(wt[1].type==="listItemPrefix"){const Or={type:"listItem",_spread:!1,start:Object.assign({},wt[1].start),end:void 0};ur=Or,P.splice(xe,0,["enter",Or,wt[2]]),xe++,le++,Ti=void 0,ji=!0}}}return P[V][1]._spread=$t,le}function o(P,V){return le;function le(xe){l.call(this,P(xe),xe),V&&V.call(this,xe)}}function s(){this.stack.push({type:"fragment",children:[]})}function l(P,V,le){this.stack[this.stack.length-1].children.push(P),this.stack.push(P),this.tokenStack.push([V,le||void 0]),P.position={start:Mn(V.start),end:void 0}}function a(P){return V;function V(le){P&&P.call(this,le),u.call(this,le)}}function u(P,V){const le=this.stack.pop(),xe=this.tokenStack.pop();if(xe)xe[0].type!==P.type&&(V?V.call(this,P,xe[0]):(xe[1]||Gp).call(this,P,xe[0]));else throw new Error("Cannot close `"+P.type+"` ("+no({start:P.start,end:P.end})+"): it’s not open");le.position.end=Mn(P.end)}function f(){return Id(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function m(P){if(this.data.expectingFirstListItemValue){const V=this.stack[this.stack.length-2];V.start=Number.parseInt(this.sliceSerialize(P),10),this.data.expectingFirstListItemValue=void 0}}function p(){const P=this.resume(),V=this.stack[this.stack.length-1];V.lang=P}function x(){const P=this.resume(),V=this.stack[this.stack.length-1];V.meta=P}function b(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function I(){const P=this.resume(),V=this.stack[this.stack.length-1];V.value=P.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function y(){const P=this.resume(),V=this.stack[this.stack.length-1];V.value=P.replace(/(\r?\n|\r)$/g,"")}function v(P){const V=this.resume(),le=this.stack[this.stack.length-1];le.label=V,le.identifier=Zt(this.sliceSerialize(P)).toLowerCase()}function w(){const P=this.resume(),V=this.stack[this.stack.length-1];V.title=P}function N(){const P=this.resume(),V=this.stack[this.stack.length-1];V.url=P}function j(P){const V=this.stack[this.stack.length-1];if(!V.depth){const le=this.sliceSerialize(P).length;V.depth=le}}function S(){this.data.setextHeadingSlurpLineEnding=!0}function A(P){const V=this.stack[this.stack.length-1];V.depth=this.sliceSerialize(P).codePointAt(0)===61?1:2}function E(){this.data.setextHeadingSlurpLineEnding=void 0}function $(P){const le=this.stack[this.stack.length-1].children;let xe=le[le.length-1];(!xe||xe.type!=="text")&&(xe=Mx(),xe.position={start:Mn(P.start),end:void 0},le.push(xe)),this.stack.push(xe)}function C(P){const V=this.stack.pop();V.value+=this.sliceSerialize(P),V.position.end=Mn(P.end)}function O(P){const V=this.stack[this.stack.length-1];if(this.data.atHardBreak){const le=V.children[V.children.length-1];le.position.end=Mn(P.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(V.type)&&($.call(this,P),C.call(this,P))}function z(){this.data.atHardBreak=!0}function oe(){const P=this.resume(),V=this.stack[this.stack.length-1];V.value=P}function Z(){const P=this.resume(),V=this.stack[this.stack.length-1];V.value=P}function te(){const P=this.resume(),V=this.stack[this.stack.length-1];V.value=P}function K(){const P=this.stack[this.stack.length-1];if(this.data.inReference){const V=this.data.referenceType||"shortcut";P.type+="Reference",P.referenceType=V,delete P.url,delete P.title}else delete P.identifier,delete P.label;this.data.referenceType=void 0}function se(){const P=this.stack[this.stack.length-1];if(this.data.inReference){const V=this.data.referenceType||"shortcut";P.type+="Reference",P.referenceType=V,delete P.url,delete P.title}else delete P.identifier,delete P.label;this.data.referenceType=void 0}function D(P){const V=this.sliceSerialize(P),le=this.stack[this.stack.length-2];le.label=$4(V),le.identifier=Zt(V).toLowerCase()}function W(){const P=this.stack[this.stack.length-1],V=this.resume(),le=this.stack[this.stack.length-1];if(this.data.inReference=!0,le.type==="link"){const xe=P.children;le.children=xe}else le.alt=V}function k(){const P=this.resume(),V=this.stack[this.stack.length-1];V.url=P}function ae(){const P=this.resume(),V=this.stack[this.stack.length-1];V.title=P}function ye(){this.data.inReference=void 0}function _(){this.data.referenceType="collapsed"}function Re(P){const V=this.resume(),le=this.stack[this.stack.length-1];le.label=V,le.identifier=Zt(this.sliceSerialize(P)).toLowerCase(),this.data.referenceType="full"}function Ce(P){this.data.characterReferenceType=P.type}function ue(P){const V=this.sliceSerialize(P),le=this.data.characterReferenceType;let xe;le?(xe=xy(V,le==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):xe=Nd(V);const Ie=this.stack[this.stack.length-1];Ie.value+=xe}function ot(P){const V=this.stack.pop();V.position.end=Mn(P.end)}function Ft(P){C.call(this,P);const V=this.stack[this.stack.length-1];V.url=this.sliceSerialize(P)}function Te(P){C.call(this,P);const V=this.stack[this.stack.length-1];V.url="mailto:"+this.sliceSerialize(P)}function un(){return{type:"blockquote",children:[]}}function cn(){return{type:"code",lang:null,meta:null,value:""}}function Mr(){return{type:"inlineCode",value:""}}function Ei(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Lr(){return{type:"emphasis",children:[]}}function Fd(){return{type:"heading",depth:0,children:[]}}function $d(){return{type:"break"}}function Ud(){return{type:"html",value:""}}function Ax(){return{type:"image",title:null,url:"",alt:null}}function Bd(){return{type:"link",title:null,url:"",children:[]}}function Vd(P){return{type:"list",ordered:P.type==="listOrdered",start:null,spread:P._spread,children:[]}}function Px(P){return{type:"listItem",spread:P._spread,checked:null,children:[]}}function Rx(){return{type:"paragraph",children:[]}}function zx(){return{type:"strong",children:[]}}function Mx(){return{type:"text",value:""}}function Lx(){return{type:"thematicBreak"}}}function Mn(e){return{line:e.line,column:e.column,offset:e.offset}}function Ty(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?Ty(e,r):H4(e,r)}}function H4(e,t){let n;for(n in t)if(Ey.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function Gp(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+no({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+no({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+no({start:t.start,end:t.end})+") is still open")}function q4(e){const t=this;t.parser=n;function n(r){return B4(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function W4(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function Z4(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
281
+ `}]}function G4(e,t){const n=t.value?t.value+`
282
+ `:"",r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=["language-"+i[0]]);let o={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(o.data={meta:t.meta}),e.patch(t,o),o=e.applyData(t,o),o={type:"element",tagName:"pre",properties:{},children:[o]},e.patch(t,o),o}function Q4(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function K4(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Y4(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),i=Ii(r.toLowerCase()),o=e.footnoteOrder.indexOf(r);let s,l=e.footnoteCounts.get(r);l===void 0?(l=0,e.footnoteOrder.push(r),s=e.footnoteOrder.length):s=o+1,l+=1,e.footnoteCounts.set(r,l);const a={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+i,id:n+"fnref-"+i+(l>1?"-"+l:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(s)}]};e.patch(t,a);const u={type:"element",tagName:"sup",properties:{},children:[a]};return e.patch(t,u),e.applyData(t,u)}function X4(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function J4(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function jy(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),o=i[0];o&&o.type==="text"?o.value="["+o.value:i.unshift({type:"text",value:"["});const s=i[i.length-1];return s&&s.type==="text"?s.value+=r:i.push({type:"text",value:r}),i}function eN(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return jy(e,t);const i={src:Ii(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const o={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,o),e.applyData(t,o)}function tN(e,t){const n={src:Ii(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function nN(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function rN(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return jy(e,t);const i={href:Ii(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const o={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)}function iN(e,t){const n={href:Ii(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function oN(e,t,n){const r=e.all(t),i=n?sN(n):Ay(t),o={},s=[];if(typeof t.checked=="boolean"){const f=r[0];let d;f&&f.type==="element"&&f.tagName==="p"?d=f:(d={type:"element",tagName:"p",properties:{},children:[]},r.unshift(d)),d.children.length>0&&d.children.unshift({type:"text",value:" "}),d.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let l=-1;for(;++l<r.length;){const f=r[l];(i||l!==0||f.type!=="element"||f.tagName!=="p")&&s.push({type:"text",value:`
283
283
  `}),f.type==="element"&&f.tagName==="p"&&!i?s.push(...f.children):s.push(f)}const a=r[r.length-1];a&&(i||a.type!=="element"||a.tagName!=="p")&&s.push({type:"text",value:`
284
- `});const u={type:"element",tagName:"li",properties:o,children:s};return e.patch(t,u),e.applyData(t,u)}function oN(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=jy(n[r])}return t}function jy(e){const t=e.spread;return t??e.children.length>1}function sN(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i<r.length;){const s=r[i];if(s.type==="element"&&s.tagName==="li"&&s.properties&&Array.isArray(s.properties.className)&&s.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const o={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,o),e.applyData(t,o)}function lN(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function aN(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function uN(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function cN(e,t){const n=e.all(t),r=n.shift(),i=[];if(r){const s={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],s),i.push(s)}if(n.length>0){const s={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},l=bd(t.children[1]),a=uy(t.children[t.children.length-1]);l&&a&&(s.position={start:l,end:a}),i.push(s)}const o={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,o),e.applyData(t,o)}function dN(e,t,n){const r=n?n.children:void 0,o=(r?r.indexOf(t):1)===0?"th":"td",s=n&&n.type==="table"?n.align:void 0,l=s?s.length:t.children.length;let a=-1;const u=[];for(;++a<l;){const d=t.children[a],m={},p=s?s[a]:void 0;p&&(m.align=p);let x={type:"element",tagName:o,properties:m,children:[]};d&&(x.children=e.all(d),e.patch(d,x),x=e.applyData(d,x)),u.push(x)}const f={type:"element",tagName:"tr",properties:{},children:e.wrap(u,!0)};return e.patch(t,f),e.applyData(t,f)}function fN(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const Qp=9,Kp=32;function pN(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),i=0;const o=[];for(;r;)o.push(Yp(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return o.push(Yp(t.slice(i),i>0,!1)),o.join("")}function Yp(e,t,n){let r=0,i=e.length;if(t){let o=e.codePointAt(r);for(;o===Qp||o===Kp;)r++,o=e.codePointAt(r)}if(n){let o=e.codePointAt(i-1);for(;o===Qp||o===Kp;)i--,o=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function mN(e,t){const n={type:"text",value:pN(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function hN(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const gN={blockquote:q4,break:W4,code:Z4,delete:G4,emphasis:Q4,footnoteReference:K4,heading:Y4,html:X4,imageReference:J4,image:eN,inlineCode:tN,linkReference:nN,link:rN,listItem:iN,list:sN,paragraph:lN,root:aN,strong:uN,table:cN,tableCell:fN,tableRow:dN,text:mN,thematicBreak:hN,toml:cs,yaml:cs,definition:cs,footnoteDefinition:cs};function cs(){}const Ay=-1,Vl=0,io=1,xl=2,Td=3,jd=4,Ad=5,Pd=6,Py=7,Ry=8,Xp=typeof self=="object"?self:globalThis,yN=(e,t)=>{const n=(i,o)=>(e.set(o,i),i),r=i=>{if(e.has(i))return e.get(i);const[o,s]=t[i];switch(o){case Vl:case Ay:return n(s,i);case io:{const l=n([],i);for(const a of s)l.push(r(a));return l}case xl:{const l=n({},i);for(const[a,u]of s)l[r(a)]=r(u);return l}case Td:return n(new Date(s),i);case jd:{const{source:l,flags:a}=s;return n(new RegExp(l,a),i)}case Ad:{const l=n(new Map,i);for(const[a,u]of s)l.set(r(a),r(u));return l}case Pd:{const l=n(new Set,i);for(const a of s)l.add(r(a));return l}case Py:{const{name:l,message:a}=s;return n(new Xp[l](a),i)}case Ry:return n(BigInt(s),i);case"BigInt":return n(Object(BigInt(s)),i);case"ArrayBuffer":return n(new Uint8Array(s).buffer,s);case"DataView":{const{buffer:l}=new Uint8Array(s);return n(new DataView(l),s)}}return n(new Xp[o](s),i)};return r},Jp=e=>yN(new Map,e)(0),Fr="",{toString:xN}={},{keys:vN}=Object,Ui=e=>{const t=typeof e;if(t!=="object"||!e)return[Vl,t];const n=xN.call(e).slice(8,-1);switch(n){case"Array":return[io,Fr];case"Object":return[xl,Fr];case"Date":return[Td,Fr];case"RegExp":return[jd,Fr];case"Map":return[Ad,Fr];case"Set":return[Pd,Fr];case"DataView":return[io,n]}return n.includes("Array")?[io,n]:n.includes("Error")?[Py,n]:[xl,n]},ds=([e,t])=>e===Vl&&(t==="function"||t==="symbol"),kN=(e,t,n,r)=>{const i=(s,l)=>{const a=r.push(s)-1;return n.set(l,a),a},o=s=>{if(n.has(s))return n.get(s);let[l,a]=Ui(s);switch(l){case Vl:{let f=s;switch(a){case"bigint":l=Ry,f=s.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+a);f=null;break;case"undefined":return i([Ay],s)}return i([l,f],s)}case io:{if(a){let m=s;return a==="DataView"?m=new Uint8Array(s.buffer):a==="ArrayBuffer"&&(m=new Uint8Array(s)),i([a,[...m]],s)}const f=[],d=i([l,f],s);for(const m of s)f.push(o(m));return d}case xl:{if(a)switch(a){case"BigInt":return i([a,s.toString()],s);case"Boolean":case"Number":case"String":return i([a,s.valueOf()],s)}if(t&&"toJSON"in s)return o(s.toJSON());const f=[],d=i([l,f],s);for(const m of vN(s))(e||!ds(Ui(s[m])))&&f.push([o(m),o(s[m])]);return d}case Td:return i([l,s.toISOString()],s);case jd:{const{source:f,flags:d}=s;return i([l,{source:f,flags:d}],s)}case Ad:{const f=[],d=i([l,f],s);for(const[m,p]of s)(e||!(ds(Ui(m))||ds(Ui(p))))&&f.push([o(m),o(p)]);return d}case Pd:{const f=[],d=i([l,f],s);for(const m of s)(e||!ds(Ui(m)))&&f.push(o(m));return d}}const{message:u}=s;return i([l,{name:a,message:u}],s)};return o},em=(e,{json:t,lossy:n}={})=>{const r=[];return kN(!(t||n),!!t,new Map,r)(e),r},vl=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?Jp(em(e,t)):structuredClone(e):(e,t)=>Jp(em(e,t));function wN(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function bN(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function SN(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||wN,r=e.options.footnoteBackLabel||bN,i=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",s=e.options.footnoteLabelProperties||{className:["sr-only"]},l=[];let a=-1;for(;++a<e.footnoteOrder.length;){const u=e.footnoteById.get(e.footnoteOrder[a]);if(!u)continue;const f=e.all(u),d=String(u.identifier).toUpperCase(),m=Ii(d.toLowerCase());let p=0;const x=[],b=e.footnoteCounts.get(d);for(;b!==void 0&&++p<=b;){x.length>0&&x.push({type:"text",value:" "});let v=typeof n=="string"?n:n(a,p);typeof v=="string"&&(v={type:"text",value:v}),x.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+m+(p>1?"-"+p:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(a,p),className:["data-footnote-backref"]},children:Array.isArray(v)?v:[v]})}const I=f[f.length-1];if(I&&I.type==="element"&&I.tagName==="p"){const v=I.children[I.children.length-1];v&&v.type==="text"?v.value+=" ":I.children.push({type:"text",value:" "}),I.children.push(...x)}else f.push(...x);const y={type:"element",tagName:"li",properties:{id:t+"fn-"+m},children:e.wrap(f,!0)};e.patch(u,y),l.push(y)}if(l.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...vl(s),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
284
+ `});const u={type:"element",tagName:"li",properties:o,children:s};return e.patch(t,u),e.applyData(t,u)}function sN(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=Ay(n[r])}return t}function Ay(e){const t=e.spread;return t??e.children.length>1}function lN(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i<r.length;){const s=r[i];if(s.type==="element"&&s.tagName==="li"&&s.properties&&Array.isArray(s.properties.className)&&s.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const o={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,o),e.applyData(t,o)}function aN(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function uN(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function cN(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function dN(e,t){const n=e.all(t),r=n.shift(),i=[];if(r){const s={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],s),i.push(s)}if(n.length>0){const s={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},l=bd(t.children[1]),a=cy(t.children[t.children.length-1]);l&&a&&(s.position={start:l,end:a}),i.push(s)}const o={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,o),e.applyData(t,o)}function fN(e,t,n){const r=n?n.children:void 0,o=(r?r.indexOf(t):1)===0?"th":"td",s=n&&n.type==="table"?n.align:void 0,l=s?s.length:t.children.length;let a=-1;const u=[];for(;++a<l;){const d=t.children[a],m={},p=s?s[a]:void 0;p&&(m.align=p);let x={type:"element",tagName:o,properties:m,children:[]};d&&(x.children=e.all(d),e.patch(d,x),x=e.applyData(d,x)),u.push(x)}const f={type:"element",tagName:"tr",properties:{},children:e.wrap(u,!0)};return e.patch(t,f),e.applyData(t,f)}function pN(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const Qp=9,Kp=32;function mN(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),i=0;const o=[];for(;r;)o.push(Yp(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return o.push(Yp(t.slice(i),i>0,!1)),o.join("")}function Yp(e,t,n){let r=0,i=e.length;if(t){let o=e.codePointAt(r);for(;o===Qp||o===Kp;)r++,o=e.codePointAt(r)}if(n){let o=e.codePointAt(i-1);for(;o===Qp||o===Kp;)i--,o=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function hN(e,t){const n={type:"text",value:mN(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function gN(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const yN={blockquote:W4,break:Z4,code:G4,delete:Q4,emphasis:K4,footnoteReference:Y4,heading:X4,html:J4,imageReference:eN,image:tN,inlineCode:nN,linkReference:rN,link:iN,listItem:oN,list:lN,paragraph:aN,root:uN,strong:cN,table:dN,tableCell:pN,tableRow:fN,text:hN,thematicBreak:gN,toml:cs,yaml:cs,definition:cs,footnoteDefinition:cs};function cs(){}const Py=-1,Vl=0,io=1,xl=2,Td=3,jd=4,Ad=5,Pd=6,Ry=7,zy=8,Xp=typeof self=="object"?self:globalThis,xN=(e,t)=>{const n=(i,o)=>(e.set(o,i),i),r=i=>{if(e.has(i))return e.get(i);const[o,s]=t[i];switch(o){case Vl:case Py:return n(s,i);case io:{const l=n([],i);for(const a of s)l.push(r(a));return l}case xl:{const l=n({},i);for(const[a,u]of s)l[r(a)]=r(u);return l}case Td:return n(new Date(s),i);case jd:{const{source:l,flags:a}=s;return n(new RegExp(l,a),i)}case Ad:{const l=n(new Map,i);for(const[a,u]of s)l.set(r(a),r(u));return l}case Pd:{const l=n(new Set,i);for(const a of s)l.add(r(a));return l}case Ry:{const{name:l,message:a}=s;return n(new Xp[l](a),i)}case zy:return n(BigInt(s),i);case"BigInt":return n(Object(BigInt(s)),i);case"ArrayBuffer":return n(new Uint8Array(s).buffer,s);case"DataView":{const{buffer:l}=new Uint8Array(s);return n(new DataView(l),s)}}return n(new Xp[o](s),i)};return r},Jp=e=>xN(new Map,e)(0),Fr="",{toString:vN}={},{keys:kN}=Object,Ui=e=>{const t=typeof e;if(t!=="object"||!e)return[Vl,t];const n=vN.call(e).slice(8,-1);switch(n){case"Array":return[io,Fr];case"Object":return[xl,Fr];case"Date":return[Td,Fr];case"RegExp":return[jd,Fr];case"Map":return[Ad,Fr];case"Set":return[Pd,Fr];case"DataView":return[io,n]}return n.includes("Array")?[io,n]:n.includes("Error")?[Ry,n]:[xl,n]},ds=([e,t])=>e===Vl&&(t==="function"||t==="symbol"),wN=(e,t,n,r)=>{const i=(s,l)=>{const a=r.push(s)-1;return n.set(l,a),a},o=s=>{if(n.has(s))return n.get(s);let[l,a]=Ui(s);switch(l){case Vl:{let f=s;switch(a){case"bigint":l=zy,f=s.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+a);f=null;break;case"undefined":return i([Py],s)}return i([l,f],s)}case io:{if(a){let m=s;return a==="DataView"?m=new Uint8Array(s.buffer):a==="ArrayBuffer"&&(m=new Uint8Array(s)),i([a,[...m]],s)}const f=[],d=i([l,f],s);for(const m of s)f.push(o(m));return d}case xl:{if(a)switch(a){case"BigInt":return i([a,s.toString()],s);case"Boolean":case"Number":case"String":return i([a,s.valueOf()],s)}if(t&&"toJSON"in s)return o(s.toJSON());const f=[],d=i([l,f],s);for(const m of kN(s))(e||!ds(Ui(s[m])))&&f.push([o(m),o(s[m])]);return d}case Td:return i([l,s.toISOString()],s);case jd:{const{source:f,flags:d}=s;return i([l,{source:f,flags:d}],s)}case Ad:{const f=[],d=i([l,f],s);for(const[m,p]of s)(e||!(ds(Ui(m))||ds(Ui(p))))&&f.push([o(m),o(p)]);return d}case Pd:{const f=[],d=i([l,f],s);for(const m of s)(e||!ds(Ui(m)))&&f.push(o(m));return d}}const{message:u}=s;return i([l,{name:a,message:u}],s)};return o},em=(e,{json:t,lossy:n}={})=>{const r=[];return wN(!(t||n),!!t,new Map,r)(e),r},vl=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?Jp(em(e,t)):structuredClone(e):(e,t)=>Jp(em(e,t));function bN(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function SN(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function _N(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||bN,r=e.options.footnoteBackLabel||SN,i=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",s=e.options.footnoteLabelProperties||{className:["sr-only"]},l=[];let a=-1;for(;++a<e.footnoteOrder.length;){const u=e.footnoteById.get(e.footnoteOrder[a]);if(!u)continue;const f=e.all(u),d=String(u.identifier).toUpperCase(),m=Ii(d.toLowerCase());let p=0;const x=[],b=e.footnoteCounts.get(d);for(;b!==void 0&&++p<=b;){x.length>0&&x.push({type:"text",value:" "});let v=typeof n=="string"?n:n(a,p);typeof v=="string"&&(v={type:"text",value:v}),x.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+m+(p>1?"-"+p:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(a,p),className:["data-footnote-backref"]},children:Array.isArray(v)?v:[v]})}const I=f[f.length-1];if(I&&I.type==="element"&&I.tagName==="p"){const v=I.children[I.children.length-1];v&&v.type==="text"?v.value+=" ":I.children.push({type:"text",value:" "}),I.children.push(...x)}else f.push(...x);const y={type:"element",tagName:"li",properties:{id:t+"fn-"+m},children:e.wrap(f,!0)};e.patch(u,y),l.push(y)}if(l.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...vl(s),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
285
285
  `},{type:"element",tagName:"ol",properties:{},children:e.wrap(l,!0)},{type:"text",value:`
286
- `}]}}const Hl=function(e){if(e==null)return NN;if(typeof e=="function")return ql(e);if(typeof e=="object")return Array.isArray(e)?_N(e):CN(e);if(typeof e=="string")return IN(e);throw new Error("Expected function, string, or object as test")};function _N(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Hl(e[n]);return ql(r);function r(...i){let o=-1;for(;++o<t.length;)if(t[o].apply(this,i))return!0;return!1}}function CN(e){const t=e;return ql(n);function n(r){const i=r;let o;for(o in e)if(i[o]!==t[o])return!1;return!0}}function IN(e){return ql(t);function t(n){return n&&n.type===e}}function ql(e){return t;function t(n,r,i){return!!(EN(n)&&e.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}function NN(){return!0}function EN(e){return e!==null&&typeof e=="object"&&"type"in e}const zy=[],TN=!0,Ju=!1,jN="skip";function My(e,t,n,r){let i;typeof t=="function"&&typeof n!="function"?(r=n,n=t):i=t;const o=Hl(i),s=r?-1:1;l(e,void 0,[])();function l(a,u,f){const d=a&&typeof a=="object"?a:{};if(typeof d.type=="string"){const p=typeof d.tagName=="string"?d.tagName:typeof d.name=="string"?d.name:void 0;Object.defineProperty(m,"name",{value:"node ("+(a.type+(p?"<"+p+">":""))+")"})}return m;function m(){let p=zy,x,b,I;if((!t||o(a,u,f[f.length-1]||void 0))&&(p=AN(n(a,f)),p[0]===Ju))return p;if("children"in a&&a.children){const y=a;if(y.children&&p[0]!==jN)for(b=(r?y.children.length:-1)+s,I=f.concat(y);b>-1&&b<y.children.length;){const v=y.children[b];if(x=l(v,b,I)(),x[0]===Ju)return x;b=typeof x[1]=="number"?x[1]:b+s}}return p}}}function AN(e){return Array.isArray(e)?e:typeof e=="number"?[TN,e]:e==null?zy:[e]}function Rd(e,t,n,r){let i,o,s;typeof t=="function"&&typeof n!="function"?(o=void 0,s=t,i=n):(o=t,s=n,i=r),My(e,o,l,i);function l(a,u){const f=u[u.length-1],d=f?f.children.indexOf(a):void 0;return s(a,d,f)}}const ec={}.hasOwnProperty,PN={};function RN(e,t){const n=t||PN,r=new Map,i=new Map,o=new Map,s={...gN,...n.handlers},l={all:u,applyData:MN,definitionById:r,footnoteById:i,footnoteCounts:o,footnoteOrder:[],handlers:s,one:a,options:n,patch:zN,wrap:ON};return Rd(e,function(f){if(f.type==="definition"||f.type==="footnoteDefinition"){const d=f.type==="definition"?r:i,m=String(f.identifier).toUpperCase();d.has(m)||d.set(m,f)}}),l;function a(f,d){const m=f.type,p=l.handlers[m];if(ec.call(l.handlers,m)&&p)return p(l,f,d);if(l.options.passThrough&&l.options.passThrough.includes(m)){if("children"in f){const{children:b,...I}=f,y=vl(I);return y.children=l.all(f),y}return vl(f)}return(l.options.unknownHandler||LN)(l,f,d)}function u(f){const d=[];if("children"in f){const m=f.children;let p=-1;for(;++p<m.length;){const x=l.one(m[p],f);if(x){if(p&&m[p-1].type==="break"&&(!Array.isArray(x)&&x.type==="text"&&(x.value=tm(x.value)),!Array.isArray(x)&&x.type==="element")){const b=x.children[0];b&&b.type==="text"&&(b.value=tm(b.value))}Array.isArray(x)?d.push(...x):d.push(x)}}}return d}}function zN(e,t){e.position&&(t.position=bC(e))}function MN(e,t){let n=t;if(e&&e.data){const r=e.data.hName,i=e.data.hChildren,o=e.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const s="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:s}}n.type==="element"&&o&&Object.assign(n.properties,vl(o)),"children"in n&&n.children&&i!==null&&i!==void 0&&(n.children=i)}return n}function LN(e,t){const n=t.data||{},r="value"in t&&!(ec.call(n,"hProperties")||ec.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function ON(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
286
+ `}]}}const Hl=function(e){if(e==null)return EN;if(typeof e=="function")return ql(e);if(typeof e=="object")return Array.isArray(e)?CN(e):IN(e);if(typeof e=="string")return NN(e);throw new Error("Expected function, string, or object as test")};function CN(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Hl(e[n]);return ql(r);function r(...i){let o=-1;for(;++o<t.length;)if(t[o].apply(this,i))return!0;return!1}}function IN(e){const t=e;return ql(n);function n(r){const i=r;let o;for(o in e)if(i[o]!==t[o])return!1;return!0}}function NN(e){return ql(t);function t(n){return n&&n.type===e}}function ql(e){return t;function t(n,r,i){return!!(TN(n)&&e.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}function EN(){return!0}function TN(e){return e!==null&&typeof e=="object"&&"type"in e}const My=[],jN=!0,Ju=!1,AN="skip";function Ly(e,t,n,r){let i;typeof t=="function"&&typeof n!="function"?(r=n,n=t):i=t;const o=Hl(i),s=r?-1:1;l(e,void 0,[])();function l(a,u,f){const d=a&&typeof a=="object"?a:{};if(typeof d.type=="string"){const p=typeof d.tagName=="string"?d.tagName:typeof d.name=="string"?d.name:void 0;Object.defineProperty(m,"name",{value:"node ("+(a.type+(p?"<"+p+">":""))+")"})}return m;function m(){let p=My,x,b,I;if((!t||o(a,u,f[f.length-1]||void 0))&&(p=PN(n(a,f)),p[0]===Ju))return p;if("children"in a&&a.children){const y=a;if(y.children&&p[0]!==AN)for(b=(r?y.children.length:-1)+s,I=f.concat(y);b>-1&&b<y.children.length;){const v=y.children[b];if(x=l(v,b,I)(),x[0]===Ju)return x;b=typeof x[1]=="number"?x[1]:b+s}}return p}}}function PN(e){return Array.isArray(e)?e:typeof e=="number"?[jN,e]:e==null?My:[e]}function Rd(e,t,n,r){let i,o,s;typeof t=="function"&&typeof n!="function"?(o=void 0,s=t,i=n):(o=t,s=n,i=r),Ly(e,o,l,i);function l(a,u){const f=u[u.length-1],d=f?f.children.indexOf(a):void 0;return s(a,d,f)}}const ec={}.hasOwnProperty,RN={};function zN(e,t){const n=t||RN,r=new Map,i=new Map,o=new Map,s={...yN,...n.handlers},l={all:u,applyData:LN,definitionById:r,footnoteById:i,footnoteCounts:o,footnoteOrder:[],handlers:s,one:a,options:n,patch:MN,wrap:DN};return Rd(e,function(f){if(f.type==="definition"||f.type==="footnoteDefinition"){const d=f.type==="definition"?r:i,m=String(f.identifier).toUpperCase();d.has(m)||d.set(m,f)}}),l;function a(f,d){const m=f.type,p=l.handlers[m];if(ec.call(l.handlers,m)&&p)return p(l,f,d);if(l.options.passThrough&&l.options.passThrough.includes(m)){if("children"in f){const{children:b,...I}=f,y=vl(I);return y.children=l.all(f),y}return vl(f)}return(l.options.unknownHandler||ON)(l,f,d)}function u(f){const d=[];if("children"in f){const m=f.children;let p=-1;for(;++p<m.length;){const x=l.one(m[p],f);if(x){if(p&&m[p-1].type==="break"&&(!Array.isArray(x)&&x.type==="text"&&(x.value=tm(x.value)),!Array.isArray(x)&&x.type==="element")){const b=x.children[0];b&&b.type==="text"&&(b.value=tm(b.value))}Array.isArray(x)?d.push(...x):d.push(x)}}}return d}}function MN(e,t){e.position&&(t.position=SC(e))}function LN(e,t){let n=t;if(e&&e.data){const r=e.data.hName,i=e.data.hChildren,o=e.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const s="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:s}}n.type==="element"&&o&&Object.assign(n.properties,vl(o)),"children"in n&&n.children&&i!==null&&i!==void 0&&(n.children=i)}return n}function ON(e,t){const n=t.data||{},r="value"in t&&!(ec.call(n,"hProperties")||ec.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function DN(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
287
287
  `});++r<e.length;)r&&n.push({type:"text",value:`
288
288
  `}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
289
- `}),n}function tm(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function nm(e,t){const n=RN(e,t),r=n.one(e,void 0),i=SN(n),o=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&o.children.push({type:"text",value:`
290
- `},i),o}function DN(e,t){return e&&"run"in e?async function(n,r){const i=nm(n,{file:r,...t});await e.run(i,r)}:function(n,r){return nm(n,{file:r,...e||t})}}function rm(e){if(e)throw e}var Ps=Object.prototype.hasOwnProperty,Ly=Object.prototype.toString,im=Object.defineProperty,om=Object.getOwnPropertyDescriptor,sm=function(t){return typeof Array.isArray=="function"?Array.isArray(t):Ly.call(t)==="[object Array]"},lm=function(t){if(!t||Ly.call(t)!=="[object Object]")return!1;var n=Ps.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&Ps.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var i;for(i in t);return typeof i>"u"||Ps.call(t,i)},am=function(t,n){im&&n.name==="__proto__"?im(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},um=function(t,n){if(n==="__proto__")if(Ps.call(t,n)){if(om)return om(t,n).value}else return;return t[n]},FN=function e(){var t,n,r,i,o,s,l=arguments[0],a=1,u=arguments.length,f=!1;for(typeof l=="boolean"&&(f=l,l=arguments[1]||{},a=2),(l==null||typeof l!="object"&&typeof l!="function")&&(l={});a<u;++a)if(t=arguments[a],t!=null)for(n in t)r=um(l,n),i=um(t,n),l!==i&&(f&&i&&(lm(i)||(o=sm(i)))?(o?(o=!1,s=r&&sm(r)?r:[]):s=r&&lm(r)?r:{},am(l,{name:n,newValue:e(f,s,i)})):typeof i<"u"&&am(l,{name:n,newValue:i}));return l};const Ea=lc(FN);function tc(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function $N(){const e=[],t={run:n,use:r};return t;function n(...i){let o=-1;const s=i.pop();if(typeof s!="function")throw new TypeError("Expected function as last argument, not "+s);l(null,...i);function l(a,...u){const f=e[++o];let d=-1;if(a){s(a);return}for(;++d<i.length;)(u[d]===null||u[d]===void 0)&&(u[d]=i[d]);i=u,f?UN(f,l)(...u):s(null,...u)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),t}}function UN(e,t){let n;return r;function r(...s){const l=e.length>s.length;let a;l&&s.push(i);try{a=e.apply(this,s)}catch(u){const f=u;if(l&&n)throw f;return i(f)}l||(a&&a.then&&typeof a.then=="function"?a.then(o,i):a instanceof Error?i(a):o(a))}function i(s,...l){n||(n=!0,t(s,...l))}function o(s){i(null,s)}}const Xt={basename:BN,dirname:VN,extname:HN,join:qN,sep:"/"};function BN(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Bo(e);let n=0,r=-1,i=e.length,o;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(o){n=i+1;break}}else r<0&&(o=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let s=-1,l=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(o){n=i+1;break}}else s<0&&(o=!0,s=i+1),l>-1&&(e.codePointAt(i)===t.codePointAt(l--)?l<0&&(r=i):(l=-1,r=s));return n===r?r=s:r<0&&(r=e.length),e.slice(n,r)}function VN(e){if(Bo(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function HN(e){Bo(e);let t=e.length,n=-1,r=0,i=-1,o=0,s;for(;t--;){const l=e.codePointAt(t);if(l===47){if(s){r=t+1;break}continue}n<0&&(s=!0,n=t+1),l===46?i<0?i=t:o!==1&&(o=1):i>-1&&(o=-1)}return i<0||n<0||o===0||o===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function qN(...e){let t=-1,n;for(;++t<e.length;)Bo(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":WN(n)}function WN(e){Bo(e);const t=e.codePointAt(0)===47;let n=ZN(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function ZN(e,t){let n="",r=0,i=-1,o=0,s=-1,l,a;for(;++s<=e.length;){if(s<e.length)l=e.codePointAt(s);else{if(l===47)break;l=47}if(l===47){if(!(i===s-1||o===1))if(i!==s-1&&o===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(a=n.lastIndexOf("/"),a!==n.length-1){a<0?(n="",r=0):(n=n.slice(0,a),r=n.length-1-n.lastIndexOf("/")),i=s,o=0;continue}}else if(n.length>0){n="",r=0,i=s,o=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,s):n=e.slice(i+1,s),r=s-i-1;i=s,o=0}else l===46&&o>-1?o++:o=-1}return n}function Bo(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const GN={cwd:QN};function QN(){return"/"}function nc(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function KN(e){if(typeof e=="string")e=new URL(e);else if(!nc(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return YN(e)}function YN(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(t)}const Ta=["history","path","basename","stem","extname","dirname"];class Oy{constructor(t){let n;t?nc(t)?n={path:t}:typeof t=="string"||XN(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":GN.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<Ta.length;){const o=Ta[r];o in n&&n[o]!==void 0&&n[o]!==null&&(this[o]=o==="history"?[...n[o]]:n[o])}let i;for(i in n)Ta.includes(i)||(this[i]=n[i])}get basename(){return typeof this.path=="string"?Xt.basename(this.path):void 0}set basename(t){Aa(t,"basename"),ja(t,"basename"),this.path=Xt.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?Xt.dirname(this.path):void 0}set dirname(t){cm(this.basename,"dirname"),this.path=Xt.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?Xt.extname(this.path):void 0}set extname(t){if(ja(t,"extname"),cm(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Xt.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){nc(t)&&(t=KN(t)),Aa(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?Xt.basename(this.path,this.extname):void 0}set stem(t){Aa(t,"stem"),ja(t,"stem"),this.path=Xt.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const i=this.message(t,n,r);throw i.fatal=!0,i}info(t,n,r){const i=this.message(t,n,r);return i.fatal=void 0,i}message(t,n,r){const i=new it(t,n,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function ja(e,t){if(e&&e.includes(Xt.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Xt.sep+"`")}function Aa(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function cm(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function XN(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const JN=function(e){const r=this.constructor.prototype,i=r[e],o=function(){return i.apply(o,arguments)};return Object.setPrototypeOf(o,r),o},eE={}.hasOwnProperty;class zd extends JN{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=$N()}copy(){const t=new zd;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(Ea(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(za("data",this.frozen),this.namespace[t]=n,this):eE.call(this.namespace,t)&&this.namespace[t]||void 0:t?(za("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const i=n.call(t,...r);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=fs(t),r=this.parser||this.Parser;return Pa("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),Pa("process",this.parser||this.Parser),Ra("process",this.compiler||this.Compiler),n?i(void 0,n):new Promise(i);function i(o,s){const l=fs(t),a=r.parse(l);r.run(a,l,function(f,d,m){if(f||!d||!m)return u(f);const p=d,x=r.stringify(p,m);rE(x)?m.value=x:m.result=x,u(f,m)});function u(f,d){f||!d?s(f):o?o(d):n(void 0,d)}}}processSync(t){let n=!1,r;return this.freeze(),Pa("processSync",this.parser||this.Parser),Ra("processSync",this.compiler||this.Compiler),this.process(t,i),fm("processSync","process",n),r;function i(o,s){n=!0,rm(o),r=s}}run(t,n,r){dm(t),this.freeze();const i=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?o(void 0,r):new Promise(o);function o(s,l){const a=fs(n);i.run(t,a,u);function u(f,d,m){const p=d||t;f?l(f):s?s(p):r(void 0,p,m)}}}runSync(t,n){let r=!1,i;return this.run(t,n,o),fm("runSync","run",r),i;function o(s,l){rm(s),i=l,r=!0}}stringify(t,n){this.freeze();const r=fs(n),i=this.compiler||this.Compiler;return Ra("stringify",i),dm(t),i(t,r)}use(t,...n){const r=this.attachers,i=this.namespace;if(za("use",this.frozen),t!=null)if(typeof t=="function")a(t,n);else if(typeof t=="object")Array.isArray(t)?l(t):s(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function o(u){if(typeof u=="function")a(u,[]);else if(typeof u=="object")if(Array.isArray(u)){const[f,...d]=u;a(f,d)}else s(u);else throw new TypeError("Expected usable value, not `"+u+"`")}function s(u){if(!("plugins"in u)&&!("settings"in u))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");l(u.plugins),u.settings&&(i.settings=Ea(!0,i.settings,u.settings))}function l(u){let f=-1;if(u!=null)if(Array.isArray(u))for(;++f<u.length;){const d=u[f];o(d)}else throw new TypeError("Expected a list of plugins, not `"+u+"`")}function a(u,f){let d=-1,m=-1;for(;++d<r.length;)if(r[d][0]===u){m=d;break}if(m===-1)r.push([u,...f]);else if(f.length>0){let[p,...x]=f;const b=r[m][1];tc(b)&&tc(p)&&(p=Ea(!0,b,p)),r[m]=[u,p,...x]}}}}const tE=new zd().freeze();function Pa(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Ra(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function za(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function dm(e){if(!tc(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function fm(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function fs(e){return nE(e)?e:new Oy(e)}function nE(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function rE(e){return typeof e=="string"||iE(e)}function iE(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const oE="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",pm=[],mm={allowDangerousHtml:!0},sE=/^(https?|ircs?|mailto|xmpp)$/i,lE=[{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 Io(e){const t=aE(e),n=uE(e);return cE(t.runSync(t.parse(n),n),e)}function aE(e){const t=e.rehypePlugins||pm,n=e.remarkPlugins||pm,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...mm}:mm;return tE().use(H4).use(n).use(DN,r).use(t)}function uE(e){const t=e.children||"",n=new Oy;return typeof t=="string"&&(n.value=t),n}function cE(e,t){const n=t.allowedElements,r=t.allowElement,i=t.components,o=t.disallowedElements,s=t.skipHtml,l=t.unwrapDisallowed,a=t.urlTransform||Dy;for(const f of lE)Object.hasOwn(t,f.from)&&(""+f.from+(f.to?"use `"+f.to+"` instead":"remove it")+oE+f.id,void 0);return Rd(e,u),NC(e,{Fragment:h.Fragment,components:i,ignoreInvalidStyle:!0,jsx:h.jsx,jsxs:h.jsxs,passKeys:!0,passNode:!0});function u(f,d,m){if(f.type==="raw"&&m&&typeof d=="number")return s?m.children.splice(d,1):m.children[d]={type:"text",value:f.value},d;if(f.type==="element"){let p;for(p in Ca)if(Object.hasOwn(Ca,p)&&Object.hasOwn(f.properties,p)){const x=f.properties[p],b=Ca[p];(b===null||b.includes(f.tagName))&&(f.properties[p]=a(String(x||""),p,f))}}if(f.type==="element"){let p=n?!n.includes(f.tagName):o?o.includes(f.tagName):!1;if(!p&&r&&typeof d=="number"&&(p=!r(f,d,m)),p&&m&&typeof d=="number")return l&&f.children?m.children.splice(d,1,...f.children):m.children.splice(d,1),d}}}function Dy(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return t===-1||i!==-1&&t>i||n!==-1&&t>n||r!==-1&&t>r||sE.test(e.slice(0,t))?e:""}function hm(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}function dE(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function fE(e,t,n){const i=Hl((n||{}).ignore||[]),o=pE(t);let s=-1;for(;++s<o.length;)My(e,"text",l);function l(u,f){let d=-1,m;for(;++d<f.length;){const p=f[d],x=m?m.children:void 0;if(i(p,x?x.indexOf(p):void 0,m))return;m=p}if(m)return a(u,f)}function a(u,f){const d=f[f.length-1],m=o[s][0],p=o[s][1];let x=0;const I=d.children.indexOf(u);let y=!1,v=[];m.lastIndex=0;let w=m.exec(u.value);for(;w;){const N=w.index,j={index:w.index,input:w.input,stack:[...f,u]};let S=p(...w,j);if(typeof S=="string"&&(S=S.length>0?{type:"text",value:S}:void 0),S===!1?m.lastIndex=N+1:(x!==N&&v.push({type:"text",value:u.value.slice(x,N)}),Array.isArray(S)?v.push(...S):S&&v.push(S),x=N+w[0].length,y=!0),!m.global)break;w=m.exec(u.value)}return y?(x<u.value.length&&v.push({type:"text",value:u.value.slice(x)}),d.children.splice(I,1,...v)):v=[u],I+v.length}}function pE(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const i=n[r];t.push([mE(i[0]),hE(i[1])])}return t}function mE(e){return typeof e=="string"?new RegExp(dE(e),"g"):e}function hE(e){return typeof e=="function"?e:function(){return e}}const Ma="phrasing",La=["autolink","link","image","label"];function gE(){return{transforms:[SE],enter:{literalAutolink:xE,literalAutolinkEmail:Oa,literalAutolinkHttp:Oa,literalAutolinkWww:Oa},exit:{literalAutolink:bE,literalAutolinkEmail:wE,literalAutolinkHttp:vE,literalAutolinkWww:kE}}}function yE(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Ma,notInConstruct:La},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Ma,notInConstruct:La},{character:":",before:"[ps]",after:"\\/",inConstruct:Ma,notInConstruct:La}]}}function xE(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Oa(e){this.config.enter.autolinkProtocol.call(this,e)}function vE(e){this.config.exit.autolinkProtocol.call(this,e)}function kE(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function wE(e){this.config.exit.autolinkEmail.call(this,e)}function bE(e){this.exit(e)}function SE(e){fE(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,_E],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),CE]],{ignore:["link","linkReference"]})}function _E(e,t,n,r,i){let o="";if(!Fy(i)||(/^w/i.test(t)&&(n=t+n,t="",o="http://"),!IE(n)))return!1;const s=NE(n+r);if(!s[0])return!1;const l={type:"link",title:null,url:o+t+s[0],children:[{type:"text",value:t+s[0]}]};return s[1]?[l,{type:"text",value:s[1]}]:l}function CE(e,t,n,r){return!Fy(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function IE(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function NE(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const i=hm(e,"(");let o=hm(e,")");for(;r!==-1&&i>o;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),o++;return[e,n]}function Fy(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||Tr(n)||Bl(n))&&(!t||n!==47)}$y.peek=LE;function EE(){this.buffer()}function TE(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function jE(){this.buffer()}function AE(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function PE(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Zt(this.sliceSerialize(e)).toLowerCase(),n.label=t}function RE(e){this.exit(e)}function zE(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Zt(this.sliceSerialize(e)).toLowerCase(),n.label=t}function ME(e){this.exit(e)}function LE(){return"["}function $y(e,t,n,r){const i=n.createTracker(r);let o=i.move("[^");const s=n.enter("footnoteReference"),l=n.enter("reference");return o+=i.move(n.safe(n.associationId(e),{after:"]",before:o})),l(),s(),o+=i.move("]"),o}function OE(){return{enter:{gfmFootnoteCallString:EE,gfmFootnoteCall:TE,gfmFootnoteDefinitionLabelString:jE,gfmFootnoteDefinition:AE},exit:{gfmFootnoteCallString:PE,gfmFootnoteCall:RE,gfmFootnoteDefinitionLabelString:zE,gfmFootnoteDefinition:ME}}}function DE(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:$y},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,i,o,s){const l=o.createTracker(s);let a=l.move("[^");const u=o.enter("footnoteDefinition"),f=o.enter("label");return a+=l.move(o.safe(o.associationId(r),{before:a,after:"]"})),f(),a+=l.move("]:"),r.children&&r.children.length>0&&(l.shift(4),a+=l.move((t?`
291
- `:" ")+o.indentLines(o.containerFlow(r,l.current()),t?Uy:FE))),u(),a}}function FE(e,t,n){return t===0?e:Uy(e,t,n)}function Uy(e,t,n){return(n?"":" ")+e}const $E=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];By.peek=qE;function UE(){return{canContainEols:["delete"],enter:{strikethrough:VE},exit:{strikethrough:HE}}}function BE(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:$E}],handlers:{delete:By}}}function VE(e){this.enter({type:"delete",children:[]},e)}function HE(e){this.exit(e)}function By(e,t,n,r){const i=n.createTracker(r),o=n.enter("strikethrough");let s=i.move("~~");return s+=n.containerPhrasing(e,{...i.current(),before:s,after:"~"}),s+=i.move("~~"),o(),s}function qE(){return"~"}function WE(e){return e.length}function ZE(e,t){const n=t||{},r=(n.align||[]).concat(),i=n.stringLength||WE,o=[],s=[],l=[],a=[];let u=0,f=-1;for(;++f<e.length;){const b=[],I=[];let y=-1;for(e[f].length>u&&(u=e[f].length);++y<e[f].length;){const v=GE(e[f][y]);if(n.alignDelimiters!==!1){const w=i(v);I[y]=w,(a[y]===void 0||w>a[y])&&(a[y]=w)}b.push(v)}s[f]=b,l[f]=I}let d=-1;if(typeof r=="object"&&"length"in r)for(;++d<u;)o[d]=gm(r[d]);else{const b=gm(r);for(;++d<u;)o[d]=b}d=-1;const m=[],p=[];for(;++d<u;){const b=o[d];let I="",y="";b===99?(I=":",y=":"):b===108?I=":":b===114&&(y=":");let v=n.alignDelimiters===!1?1:Math.max(1,a[d]-I.length-y.length);const w=I+"-".repeat(v)+y;n.alignDelimiters!==!1&&(v=I.length+v+y.length,v>a[d]&&(a[d]=v),p[d]=v),m[d]=w}s.splice(1,0,m),l.splice(1,0,p),f=-1;const x=[];for(;++f<s.length;){const b=s[f],I=l[f];d=-1;const y=[];for(;++d<u;){const v=b[d]||"";let w="",N="";if(n.alignDelimiters!==!1){const j=a[d]-(I[d]||0),S=o[d];S===114?w=" ".repeat(j):S===99?j%2?(w=" ".repeat(j/2+.5),N=" ".repeat(j/2-.5)):(w=" ".repeat(j/2),N=w):N=" ".repeat(j)}n.delimiterStart!==!1&&!d&&y.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&v==="")&&(n.delimiterStart!==!1||d)&&y.push(" "),n.alignDelimiters!==!1&&y.push(w),y.push(v),n.alignDelimiters!==!1&&y.push(N),n.padding!==!1&&y.push(" "),(n.delimiterEnd!==!1||d!==u-1)&&y.push("|")}x.push(n.delimiterEnd===!1?y.join("").replace(/ +$/,""):y.join(""))}return x.join(`
292
- `)}function GE(e){return e==null?"":String(e)}function gm(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function QE(e,t,n,r){const i=n.enter("blockquote"),o=n.createTracker(r);o.move("> "),o.shift(2);const s=n.indentLines(n.containerFlow(e,o.current()),KE);return i(),s}function KE(e,t,n){return">"+(n?"":" ")+e}function YE(e,t){return ym(e,t.inConstruct,!0)&&!ym(e,t.notInConstruct,!1)}function ym(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function xm(e,t,n,r){let i=-1;for(;++i<n.unsafe.length;)if(n.unsafe[i].character===`
293
- `&&YE(n.stack,n.unsafe[i]))return/[ \t]/.test(r.before)?"":" ";return`\\
294
- `}function XE(e,t){const n=String(e);let r=n.indexOf(t),i=r,o=0,s=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===i?++o>s&&(s=o):o=1,i=r+t.length,r=n.indexOf(t,i);return s}function JE(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function e3(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function t3(e,t,n,r){const i=e3(n),o=e.value||"",s=i==="`"?"GraveAccent":"Tilde";if(JE(e,n)){const d=n.enter("codeIndented"),m=n.indentLines(o,n3);return d(),m}const l=n.createTracker(r),a=i.repeat(Math.max(XE(o,i)+1,3)),u=n.enter("codeFenced");let f=l.move(a);if(e.lang){const d=n.enter(`codeFencedLang${s}`);f+=l.move(n.safe(e.lang,{before:f,after:" ",encode:["`"],...l.current()})),d()}if(e.lang&&e.meta){const d=n.enter(`codeFencedMeta${s}`);f+=l.move(" "),f+=l.move(n.safe(e.meta,{before:f,after:`
289
+ `}),n}function tm(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function nm(e,t){const n=zN(e,t),r=n.one(e,void 0),i=_N(n),o=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&o.children.push({type:"text",value:`
290
+ `},i),o}function FN(e,t){return e&&"run"in e?async function(n,r){const i=nm(n,{file:r,...t});await e.run(i,r)}:function(n,r){return nm(n,{file:r,...e||t})}}function rm(e){if(e)throw e}var Ps=Object.prototype.hasOwnProperty,Oy=Object.prototype.toString,im=Object.defineProperty,om=Object.getOwnPropertyDescriptor,sm=function(t){return typeof Array.isArray=="function"?Array.isArray(t):Oy.call(t)==="[object Array]"},lm=function(t){if(!t||Oy.call(t)!=="[object Object]")return!1;var n=Ps.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&Ps.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var i;for(i in t);return typeof i>"u"||Ps.call(t,i)},am=function(t,n){im&&n.name==="__proto__"?im(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},um=function(t,n){if(n==="__proto__")if(Ps.call(t,n)){if(om)return om(t,n).value}else return;return t[n]},$N=function e(){var t,n,r,i,o,s,l=arguments[0],a=1,u=arguments.length,f=!1;for(typeof l=="boolean"&&(f=l,l=arguments[1]||{},a=2),(l==null||typeof l!="object"&&typeof l!="function")&&(l={});a<u;++a)if(t=arguments[a],t!=null)for(n in t)r=um(l,n),i=um(t,n),l!==i&&(f&&i&&(lm(i)||(o=sm(i)))?(o?(o=!1,s=r&&sm(r)?r:[]):s=r&&lm(r)?r:{},am(l,{name:n,newValue:e(f,s,i)})):typeof i<"u"&&am(l,{name:n,newValue:i}));return l};const Ea=lc($N);function tc(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function UN(){const e=[],t={run:n,use:r};return t;function n(...i){let o=-1;const s=i.pop();if(typeof s!="function")throw new TypeError("Expected function as last argument, not "+s);l(null,...i);function l(a,...u){const f=e[++o];let d=-1;if(a){s(a);return}for(;++d<i.length;)(u[d]===null||u[d]===void 0)&&(u[d]=i[d]);i=u,f?BN(f,l)(...u):s(null,...u)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),t}}function BN(e,t){let n;return r;function r(...s){const l=e.length>s.length;let a;l&&s.push(i);try{a=e.apply(this,s)}catch(u){const f=u;if(l&&n)throw f;return i(f)}l||(a&&a.then&&typeof a.then=="function"?a.then(o,i):a instanceof Error?i(a):o(a))}function i(s,...l){n||(n=!0,t(s,...l))}function o(s){i(null,s)}}const Xt={basename:VN,dirname:HN,extname:qN,join:WN,sep:"/"};function VN(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Bo(e);let n=0,r=-1,i=e.length,o;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(o){n=i+1;break}}else r<0&&(o=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let s=-1,l=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(o){n=i+1;break}}else s<0&&(o=!0,s=i+1),l>-1&&(e.codePointAt(i)===t.codePointAt(l--)?l<0&&(r=i):(l=-1,r=s));return n===r?r=s:r<0&&(r=e.length),e.slice(n,r)}function HN(e){if(Bo(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function qN(e){Bo(e);let t=e.length,n=-1,r=0,i=-1,o=0,s;for(;t--;){const l=e.codePointAt(t);if(l===47){if(s){r=t+1;break}continue}n<0&&(s=!0,n=t+1),l===46?i<0?i=t:o!==1&&(o=1):i>-1&&(o=-1)}return i<0||n<0||o===0||o===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function WN(...e){let t=-1,n;for(;++t<e.length;)Bo(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":ZN(n)}function ZN(e){Bo(e);const t=e.codePointAt(0)===47;let n=GN(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function GN(e,t){let n="",r=0,i=-1,o=0,s=-1,l,a;for(;++s<=e.length;){if(s<e.length)l=e.codePointAt(s);else{if(l===47)break;l=47}if(l===47){if(!(i===s-1||o===1))if(i!==s-1&&o===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(a=n.lastIndexOf("/"),a!==n.length-1){a<0?(n="",r=0):(n=n.slice(0,a),r=n.length-1-n.lastIndexOf("/")),i=s,o=0;continue}}else if(n.length>0){n="",r=0,i=s,o=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,s):n=e.slice(i+1,s),r=s-i-1;i=s,o=0}else l===46&&o>-1?o++:o=-1}return n}function Bo(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const QN={cwd:KN};function KN(){return"/"}function nc(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function YN(e){if(typeof e=="string")e=new URL(e);else if(!nc(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return XN(e)}function XN(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(t)}const Ta=["history","path","basename","stem","extname","dirname"];class Dy{constructor(t){let n;t?nc(t)?n={path:t}:typeof t=="string"||JN(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":QN.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<Ta.length;){const o=Ta[r];o in n&&n[o]!==void 0&&n[o]!==null&&(this[o]=o==="history"?[...n[o]]:n[o])}let i;for(i in n)Ta.includes(i)||(this[i]=n[i])}get basename(){return typeof this.path=="string"?Xt.basename(this.path):void 0}set basename(t){Aa(t,"basename"),ja(t,"basename"),this.path=Xt.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?Xt.dirname(this.path):void 0}set dirname(t){cm(this.basename,"dirname"),this.path=Xt.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?Xt.extname(this.path):void 0}set extname(t){if(ja(t,"extname"),cm(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Xt.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){nc(t)&&(t=YN(t)),Aa(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?Xt.basename(this.path,this.extname):void 0}set stem(t){Aa(t,"stem"),ja(t,"stem"),this.path=Xt.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const i=this.message(t,n,r);throw i.fatal=!0,i}info(t,n,r){const i=this.message(t,n,r);return i.fatal=void 0,i}message(t,n,r){const i=new it(t,n,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function ja(e,t){if(e&&e.includes(Xt.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Xt.sep+"`")}function Aa(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function cm(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function JN(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const eE=function(e){const r=this.constructor.prototype,i=r[e],o=function(){return i.apply(o,arguments)};return Object.setPrototypeOf(o,r),o},tE={}.hasOwnProperty;class zd extends eE{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=UN()}copy(){const t=new zd;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(Ea(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(za("data",this.frozen),this.namespace[t]=n,this):tE.call(this.namespace,t)&&this.namespace[t]||void 0:t?(za("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const i=n.call(t,...r);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=fs(t),r=this.parser||this.Parser;return Pa("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),Pa("process",this.parser||this.Parser),Ra("process",this.compiler||this.Compiler),n?i(void 0,n):new Promise(i);function i(o,s){const l=fs(t),a=r.parse(l);r.run(a,l,function(f,d,m){if(f||!d||!m)return u(f);const p=d,x=r.stringify(p,m);iE(x)?m.value=x:m.result=x,u(f,m)});function u(f,d){f||!d?s(f):o?o(d):n(void 0,d)}}}processSync(t){let n=!1,r;return this.freeze(),Pa("processSync",this.parser||this.Parser),Ra("processSync",this.compiler||this.Compiler),this.process(t,i),fm("processSync","process",n),r;function i(o,s){n=!0,rm(o),r=s}}run(t,n,r){dm(t),this.freeze();const i=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?o(void 0,r):new Promise(o);function o(s,l){const a=fs(n);i.run(t,a,u);function u(f,d,m){const p=d||t;f?l(f):s?s(p):r(void 0,p,m)}}}runSync(t,n){let r=!1,i;return this.run(t,n,o),fm("runSync","run",r),i;function o(s,l){rm(s),i=l,r=!0}}stringify(t,n){this.freeze();const r=fs(n),i=this.compiler||this.Compiler;return Ra("stringify",i),dm(t),i(t,r)}use(t,...n){const r=this.attachers,i=this.namespace;if(za("use",this.frozen),t!=null)if(typeof t=="function")a(t,n);else if(typeof t=="object")Array.isArray(t)?l(t):s(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function o(u){if(typeof u=="function")a(u,[]);else if(typeof u=="object")if(Array.isArray(u)){const[f,...d]=u;a(f,d)}else s(u);else throw new TypeError("Expected usable value, not `"+u+"`")}function s(u){if(!("plugins"in u)&&!("settings"in u))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");l(u.plugins),u.settings&&(i.settings=Ea(!0,i.settings,u.settings))}function l(u){let f=-1;if(u!=null)if(Array.isArray(u))for(;++f<u.length;){const d=u[f];o(d)}else throw new TypeError("Expected a list of plugins, not `"+u+"`")}function a(u,f){let d=-1,m=-1;for(;++d<r.length;)if(r[d][0]===u){m=d;break}if(m===-1)r.push([u,...f]);else if(f.length>0){let[p,...x]=f;const b=r[m][1];tc(b)&&tc(p)&&(p=Ea(!0,b,p)),r[m]=[u,p,...x]}}}}const nE=new zd().freeze();function Pa(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Ra(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function za(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function dm(e){if(!tc(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function fm(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function fs(e){return rE(e)?e:new Dy(e)}function rE(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function iE(e){return typeof e=="string"||oE(e)}function oE(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const sE="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",pm=[],mm={allowDangerousHtml:!0},lE=/^(https?|ircs?|mailto|xmpp)$/i,aE=[{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 Io(e){const t=uE(e),n=cE(e);return dE(t.runSync(t.parse(n),n),e)}function uE(e){const t=e.rehypePlugins||pm,n=e.remarkPlugins||pm,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...mm}:mm;return nE().use(q4).use(n).use(FN,r).use(t)}function cE(e){const t=e.children||"",n=new Dy;return typeof t=="string"&&(n.value=t),n}function dE(e,t){const n=t.allowedElements,r=t.allowElement,i=t.components,o=t.disallowedElements,s=t.skipHtml,l=t.unwrapDisallowed,a=t.urlTransform||Fy;for(const f of aE)Object.hasOwn(t,f.from)&&(""+f.from+(f.to?"use `"+f.to+"` instead":"remove it")+sE+f.id,void 0);return Rd(e,u),EC(e,{Fragment:h.Fragment,components:i,ignoreInvalidStyle:!0,jsx:h.jsx,jsxs:h.jsxs,passKeys:!0,passNode:!0});function u(f,d,m){if(f.type==="raw"&&m&&typeof d=="number")return s?m.children.splice(d,1):m.children[d]={type:"text",value:f.value},d;if(f.type==="element"){let p;for(p in Ca)if(Object.hasOwn(Ca,p)&&Object.hasOwn(f.properties,p)){const x=f.properties[p],b=Ca[p];(b===null||b.includes(f.tagName))&&(f.properties[p]=a(String(x||""),p,f))}}if(f.type==="element"){let p=n?!n.includes(f.tagName):o?o.includes(f.tagName):!1;if(!p&&r&&typeof d=="number"&&(p=!r(f,d,m)),p&&m&&typeof d=="number")return l&&f.children?m.children.splice(d,1,...f.children):m.children.splice(d,1),d}}}function Fy(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return t===-1||i!==-1&&t>i||n!==-1&&t>n||r!==-1&&t>r||lE.test(e.slice(0,t))?e:""}function hm(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}function fE(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function pE(e,t,n){const i=Hl((n||{}).ignore||[]),o=mE(t);let s=-1;for(;++s<o.length;)Ly(e,"text",l);function l(u,f){let d=-1,m;for(;++d<f.length;){const p=f[d],x=m?m.children:void 0;if(i(p,x?x.indexOf(p):void 0,m))return;m=p}if(m)return a(u,f)}function a(u,f){const d=f[f.length-1],m=o[s][0],p=o[s][1];let x=0;const I=d.children.indexOf(u);let y=!1,v=[];m.lastIndex=0;let w=m.exec(u.value);for(;w;){const N=w.index,j={index:w.index,input:w.input,stack:[...f,u]};let S=p(...w,j);if(typeof S=="string"&&(S=S.length>0?{type:"text",value:S}:void 0),S===!1?m.lastIndex=N+1:(x!==N&&v.push({type:"text",value:u.value.slice(x,N)}),Array.isArray(S)?v.push(...S):S&&v.push(S),x=N+w[0].length,y=!0),!m.global)break;w=m.exec(u.value)}return y?(x<u.value.length&&v.push({type:"text",value:u.value.slice(x)}),d.children.splice(I,1,...v)):v=[u],I+v.length}}function mE(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const i=n[r];t.push([hE(i[0]),gE(i[1])])}return t}function hE(e){return typeof e=="string"?new RegExp(fE(e),"g"):e}function gE(e){return typeof e=="function"?e:function(){return e}}const Ma="phrasing",La=["autolink","link","image","label"];function yE(){return{transforms:[_E],enter:{literalAutolink:vE,literalAutolinkEmail:Oa,literalAutolinkHttp:Oa,literalAutolinkWww:Oa},exit:{literalAutolink:SE,literalAutolinkEmail:bE,literalAutolinkHttp:kE,literalAutolinkWww:wE}}}function xE(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Ma,notInConstruct:La},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Ma,notInConstruct:La},{character:":",before:"[ps]",after:"\\/",inConstruct:Ma,notInConstruct:La}]}}function vE(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Oa(e){this.config.enter.autolinkProtocol.call(this,e)}function kE(e){this.config.exit.autolinkProtocol.call(this,e)}function wE(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function bE(e){this.config.exit.autolinkEmail.call(this,e)}function SE(e){this.exit(e)}function _E(e){pE(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,CE],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),IE]],{ignore:["link","linkReference"]})}function CE(e,t,n,r,i){let o="";if(!$y(i)||(/^w/i.test(t)&&(n=t+n,t="",o="http://"),!NE(n)))return!1;const s=EE(n+r);if(!s[0])return!1;const l={type:"link",title:null,url:o+t+s[0],children:[{type:"text",value:t+s[0]}]};return s[1]?[l,{type:"text",value:s[1]}]:l}function IE(e,t,n,r){return!$y(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function NE(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function EE(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const i=hm(e,"(");let o=hm(e,")");for(;r!==-1&&i>o;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),o++;return[e,n]}function $y(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||Tr(n)||Bl(n))&&(!t||n!==47)}Uy.peek=OE;function TE(){this.buffer()}function jE(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function AE(){this.buffer()}function PE(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function RE(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Zt(this.sliceSerialize(e)).toLowerCase(),n.label=t}function zE(e){this.exit(e)}function ME(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Zt(this.sliceSerialize(e)).toLowerCase(),n.label=t}function LE(e){this.exit(e)}function OE(){return"["}function Uy(e,t,n,r){const i=n.createTracker(r);let o=i.move("[^");const s=n.enter("footnoteReference"),l=n.enter("reference");return o+=i.move(n.safe(n.associationId(e),{after:"]",before:o})),l(),s(),o+=i.move("]"),o}function DE(){return{enter:{gfmFootnoteCallString:TE,gfmFootnoteCall:jE,gfmFootnoteDefinitionLabelString:AE,gfmFootnoteDefinition:PE},exit:{gfmFootnoteCallString:RE,gfmFootnoteCall:zE,gfmFootnoteDefinitionLabelString:ME,gfmFootnoteDefinition:LE}}}function FE(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:Uy},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,i,o,s){const l=o.createTracker(s);let a=l.move("[^");const u=o.enter("footnoteDefinition"),f=o.enter("label");return a+=l.move(o.safe(o.associationId(r),{before:a,after:"]"})),f(),a+=l.move("]:"),r.children&&r.children.length>0&&(l.shift(4),a+=l.move((t?`
291
+ `:" ")+o.indentLines(o.containerFlow(r,l.current()),t?By:$E))),u(),a}}function $E(e,t,n){return t===0?e:By(e,t,n)}function By(e,t,n){return(n?"":" ")+e}const UE=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];Vy.peek=WE;function BE(){return{canContainEols:["delete"],enter:{strikethrough:HE},exit:{strikethrough:qE}}}function VE(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:UE}],handlers:{delete:Vy}}}function HE(e){this.enter({type:"delete",children:[]},e)}function qE(e){this.exit(e)}function Vy(e,t,n,r){const i=n.createTracker(r),o=n.enter("strikethrough");let s=i.move("~~");return s+=n.containerPhrasing(e,{...i.current(),before:s,after:"~"}),s+=i.move("~~"),o(),s}function WE(){return"~"}function ZE(e){return e.length}function GE(e,t){const n=t||{},r=(n.align||[]).concat(),i=n.stringLength||ZE,o=[],s=[],l=[],a=[];let u=0,f=-1;for(;++f<e.length;){const b=[],I=[];let y=-1;for(e[f].length>u&&(u=e[f].length);++y<e[f].length;){const v=QE(e[f][y]);if(n.alignDelimiters!==!1){const w=i(v);I[y]=w,(a[y]===void 0||w>a[y])&&(a[y]=w)}b.push(v)}s[f]=b,l[f]=I}let d=-1;if(typeof r=="object"&&"length"in r)for(;++d<u;)o[d]=gm(r[d]);else{const b=gm(r);for(;++d<u;)o[d]=b}d=-1;const m=[],p=[];for(;++d<u;){const b=o[d];let I="",y="";b===99?(I=":",y=":"):b===108?I=":":b===114&&(y=":");let v=n.alignDelimiters===!1?1:Math.max(1,a[d]-I.length-y.length);const w=I+"-".repeat(v)+y;n.alignDelimiters!==!1&&(v=I.length+v+y.length,v>a[d]&&(a[d]=v),p[d]=v),m[d]=w}s.splice(1,0,m),l.splice(1,0,p),f=-1;const x=[];for(;++f<s.length;){const b=s[f],I=l[f];d=-1;const y=[];for(;++d<u;){const v=b[d]||"";let w="",N="";if(n.alignDelimiters!==!1){const j=a[d]-(I[d]||0),S=o[d];S===114?w=" ".repeat(j):S===99?j%2?(w=" ".repeat(j/2+.5),N=" ".repeat(j/2-.5)):(w=" ".repeat(j/2),N=w):N=" ".repeat(j)}n.delimiterStart!==!1&&!d&&y.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&v==="")&&(n.delimiterStart!==!1||d)&&y.push(" "),n.alignDelimiters!==!1&&y.push(w),y.push(v),n.alignDelimiters!==!1&&y.push(N),n.padding!==!1&&y.push(" "),(n.delimiterEnd!==!1||d!==u-1)&&y.push("|")}x.push(n.delimiterEnd===!1?y.join("").replace(/ +$/,""):y.join(""))}return x.join(`
292
+ `)}function QE(e){return e==null?"":String(e)}function gm(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function KE(e,t,n,r){const i=n.enter("blockquote"),o=n.createTracker(r);o.move("> "),o.shift(2);const s=n.indentLines(n.containerFlow(e,o.current()),YE);return i(),s}function YE(e,t,n){return">"+(n?"":" ")+e}function XE(e,t){return ym(e,t.inConstruct,!0)&&!ym(e,t.notInConstruct,!1)}function ym(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function xm(e,t,n,r){let i=-1;for(;++i<n.unsafe.length;)if(n.unsafe[i].character===`
293
+ `&&XE(n.stack,n.unsafe[i]))return/[ \t]/.test(r.before)?"":" ";return`\\
294
+ `}function JE(e,t){const n=String(e);let r=n.indexOf(t),i=r,o=0,s=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===i?++o>s&&(s=o):o=1,i=r+t.length,r=n.indexOf(t,i);return s}function e3(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function t3(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function n3(e,t,n,r){const i=t3(n),o=e.value||"",s=i==="`"?"GraveAccent":"Tilde";if(e3(e,n)){const d=n.enter("codeIndented"),m=n.indentLines(o,r3);return d(),m}const l=n.createTracker(r),a=i.repeat(Math.max(JE(o,i)+1,3)),u=n.enter("codeFenced");let f=l.move(a);if(e.lang){const d=n.enter(`codeFencedLang${s}`);f+=l.move(n.safe(e.lang,{before:f,after:" ",encode:["`"],...l.current()})),d()}if(e.lang&&e.meta){const d=n.enter(`codeFencedMeta${s}`);f+=l.move(" "),f+=l.move(n.safe(e.meta,{before:f,after:`
295
295
  `,encode:["`"],...l.current()})),d()}return f+=l.move(`
296
296
  `),o&&(f+=l.move(o+`
297
- `)),f+=l.move(a),u(),f}function n3(e,t,n){return(n?"":" ")+e}function Md(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function r3(e,t,n,r){const i=Md(n),o=i==='"'?"Quote":"Apostrophe",s=n.enter("definition");let l=n.enter("label");const a=n.createTracker(r);let u=a.move("[");return u+=a.move(n.safe(n.associationId(e),{before:u,after:"]",...a.current()})),u+=a.move("]: "),l(),!e.url||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),u+=a.move("<"),u+=a.move(n.safe(e.url,{before:u,after:">",...a.current()})),u+=a.move(">")):(l=n.enter("destinationRaw"),u+=a.move(n.safe(e.url,{before:u,after:e.title?" ":`
298
- `,...a.current()}))),l(),e.title&&(l=n.enter(`title${o}`),u+=a.move(" "+i),u+=a.move(n.safe(e.title,{before:u,after:i,...a.current()})),u+=a.move(i),l()),s(),u}function i3(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function No(e){return"&#x"+e.toString(16).toUpperCase()+";"}function kl(e,t,n){const r=xi(e),i=xi(t);return r===void 0?i===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}Vy.peek=o3;function Vy(e,t,n,r){const i=i3(n),o=n.enter("emphasis"),s=n.createTracker(r),l=s.move(i);let a=s.move(n.containerPhrasing(e,{after:i,before:l,...s.current()}));const u=a.charCodeAt(0),f=kl(r.before.charCodeAt(r.before.length-1),u,i);f.inside&&(a=No(u)+a.slice(1));const d=a.charCodeAt(a.length-1),m=kl(r.after.charCodeAt(0),d,i);m.inside&&(a=a.slice(0,-1)+No(d));const p=s.move(i);return o(),n.attentionEncodeSurroundingInfo={after:m.outside,before:f.outside},l+a+p}function o3(e,t,n){return n.options.emphasis||"*"}function s3(e,t){let n=!1;return Rd(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,Ju}),!!((!e.depth||e.depth<3)&&Id(e)&&(t.options.setext||n))}function l3(e,t,n,r){const i=Math.max(Math.min(6,e.depth||1),1),o=n.createTracker(r);if(s3(e,n)){const f=n.enter("headingSetext"),d=n.enter("phrasing"),m=n.containerPhrasing(e,{...o.current(),before:`
297
+ `)),f+=l.move(a),u(),f}function r3(e,t,n){return(n?"":" ")+e}function Md(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function i3(e,t,n,r){const i=Md(n),o=i==='"'?"Quote":"Apostrophe",s=n.enter("definition");let l=n.enter("label");const a=n.createTracker(r);let u=a.move("[");return u+=a.move(n.safe(n.associationId(e),{before:u,after:"]",...a.current()})),u+=a.move("]: "),l(),!e.url||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),u+=a.move("<"),u+=a.move(n.safe(e.url,{before:u,after:">",...a.current()})),u+=a.move(">")):(l=n.enter("destinationRaw"),u+=a.move(n.safe(e.url,{before:u,after:e.title?" ":`
298
+ `,...a.current()}))),l(),e.title&&(l=n.enter(`title${o}`),u+=a.move(" "+i),u+=a.move(n.safe(e.title,{before:u,after:i,...a.current()})),u+=a.move(i),l()),s(),u}function o3(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function No(e){return"&#x"+e.toString(16).toUpperCase()+";"}function kl(e,t,n){const r=xi(e),i=xi(t);return r===void 0?i===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}Hy.peek=s3;function Hy(e,t,n,r){const i=o3(n),o=n.enter("emphasis"),s=n.createTracker(r),l=s.move(i);let a=s.move(n.containerPhrasing(e,{after:i,before:l,...s.current()}));const u=a.charCodeAt(0),f=kl(r.before.charCodeAt(r.before.length-1),u,i);f.inside&&(a=No(u)+a.slice(1));const d=a.charCodeAt(a.length-1),m=kl(r.after.charCodeAt(0),d,i);m.inside&&(a=a.slice(0,-1)+No(d));const p=s.move(i);return o(),n.attentionEncodeSurroundingInfo={after:m.outside,before:f.outside},l+a+p}function s3(e,t,n){return n.options.emphasis||"*"}function l3(e,t){let n=!1;return Rd(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,Ju}),!!((!e.depth||e.depth<3)&&Id(e)&&(t.options.setext||n))}function a3(e,t,n,r){const i=Math.max(Math.min(6,e.depth||1),1),o=n.createTracker(r);if(l3(e,n)){const f=n.enter("headingSetext"),d=n.enter("phrasing"),m=n.containerPhrasing(e,{...o.current(),before:`
299
299
  `,after:`
300
300
  `});return d(),f(),m+`
301
301
  `+(i===1?"=":"-").repeat(m.length-(Math.max(m.lastIndexOf("\r"),m.lastIndexOf(`
302
302
  `))+1))}const s="#".repeat(i),l=n.enter("headingAtx"),a=n.enter("phrasing");o.move(s+" ");let u=n.containerPhrasing(e,{before:"# ",after:`
303
- `,...o.current()});return/^[\t ]/.test(u)&&(u=No(u.charCodeAt(0))+u.slice(1)),u=u?s+" "+u:s,n.options.closeAtx&&(u+=" "+s),a(),l(),u}Hy.peek=a3;function Hy(e){return e.value||""}function a3(){return"<"}qy.peek=u3;function qy(e,t,n,r){const i=Md(n),o=i==='"'?"Quote":"Apostrophe",s=n.enter("image");let l=n.enter("label");const a=n.createTracker(r);let u=a.move("![");return u+=a.move(n.safe(e.alt,{before:u,after:"]",...a.current()})),u+=a.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),u+=a.move("<"),u+=a.move(n.safe(e.url,{before:u,after:">",...a.current()})),u+=a.move(">")):(l=n.enter("destinationRaw"),u+=a.move(n.safe(e.url,{before:u,after:e.title?" ":")",...a.current()}))),l(),e.title&&(l=n.enter(`title${o}`),u+=a.move(" "+i),u+=a.move(n.safe(e.title,{before:u,after:i,...a.current()})),u+=a.move(i),l()),u+=a.move(")"),s(),u}function u3(){return"!"}Wy.peek=c3;function Wy(e,t,n,r){const i=e.referenceType,o=n.enter("imageReference");let s=n.enter("label");const l=n.createTracker(r);let a=l.move("![");const u=n.safe(e.alt,{before:a,after:"]",...l.current()});a+=l.move(u+"]["),s();const f=n.stack;n.stack=[],s=n.enter("reference");const d=n.safe(n.associationId(e),{before:a,after:"]",...l.current()});return s(),n.stack=f,o(),i==="full"||!u||u!==d?a+=l.move(d+"]"):i==="shortcut"?a=a.slice(0,-1):a+=l.move("]"),a}function c3(){return"!"}Zy.peek=d3;function Zy(e,t,n){let r=e.value||"",i="`",o=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++o<n.unsafe.length;){const s=n.unsafe[o],l=n.compilePattern(s);let a;if(s.atBreak)for(;a=l.exec(r);){let u=a.index;r.charCodeAt(u)===10&&r.charCodeAt(u-1)===13&&u--,r=r.slice(0,u)+" "+r.slice(a.index+1)}}return i+r+i}function d3(){return"`"}function Gy(e,t){const n=Id(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}Qy.peek=f3;function Qy(e,t,n,r){const i=Md(n),o=i==='"'?"Quote":"Apostrophe",s=n.createTracker(r);let l,a;if(Gy(e,n)){const f=n.stack;n.stack=[],l=n.enter("autolink");let d=s.move("<");return d+=s.move(n.containerPhrasing(e,{before:d,after:">",...s.current()})),d+=s.move(">"),l(),n.stack=f,d}l=n.enter("link"),a=n.enter("label");let u=s.move("[");return u+=s.move(n.containerPhrasing(e,{before:u,after:"](",...s.current()})),u+=s.move("]("),a(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(a=n.enter("destinationLiteral"),u+=s.move("<"),u+=s.move(n.safe(e.url,{before:u,after:">",...s.current()})),u+=s.move(">")):(a=n.enter("destinationRaw"),u+=s.move(n.safe(e.url,{before:u,after:e.title?" ":")",...s.current()}))),a(),e.title&&(a=n.enter(`title${o}`),u+=s.move(" "+i),u+=s.move(n.safe(e.title,{before:u,after:i,...s.current()})),u+=s.move(i),a()),u+=s.move(")"),l(),u}function f3(e,t,n){return Gy(e,n)?"<":"["}Ky.peek=p3;function Ky(e,t,n,r){const i=e.referenceType,o=n.enter("linkReference");let s=n.enter("label");const l=n.createTracker(r);let a=l.move("[");const u=n.containerPhrasing(e,{before:a,after:"]",...l.current()});a+=l.move(u+"]["),s();const f=n.stack;n.stack=[],s=n.enter("reference");const d=n.safe(n.associationId(e),{before:a,after:"]",...l.current()});return s(),n.stack=f,o(),i==="full"||!u||u!==d?a+=l.move(d+"]"):i==="shortcut"?a=a.slice(0,-1):a+=l.move("]"),a}function p3(){return"["}function Ld(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function m3(e){const t=Ld(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function h3(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function Yy(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function g3(e,t,n,r){const i=n.enter("list"),o=n.bulletCurrent;let s=e.ordered?h3(n):Ld(n);const l=e.ordered?s==="."?")":".":m3(n);let a=t&&n.bulletLastUsed?s===n.bulletLastUsed:!1;if(!e.ordered){const f=e.children?e.children[0]:void 0;if((s==="*"||s==="-")&&f&&(!f.children||!f.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(a=!0),Yy(n)===s&&f){let d=-1;for(;++d<e.children.length;){const m=e.children[d];if(m&&m.type==="listItem"&&m.children&&m.children[0]&&m.children[0].type==="thematicBreak"){a=!0;break}}}}a&&(s=l),n.bulletCurrent=s;const u=n.containerFlow(e,r);return n.bulletLastUsed=s,n.bulletCurrent=o,i(),u}function y3(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function x3(e,t,n,r){const i=y3(n);let o=n.bulletCurrent||Ld(n);t&&t.type==="list"&&t.ordered&&(o=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+o);let s=o.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(s=Math.ceil(s/4)*4);const l=n.createTracker(r);l.move(o+" ".repeat(s-o.length)),l.shift(s);const a=n.enter("listItem"),u=n.indentLines(n.containerFlow(e,l.current()),f);return a(),u;function f(d,m,p){return m?(p?"":" ".repeat(s))+d:(p?o:o+" ".repeat(s-o.length))+d}}function v3(e,t,n,r){const i=n.enter("paragraph"),o=n.enter("phrasing"),s=n.containerPhrasing(e,r);return o(),i(),s}const k3=Hl(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function w3(e,t,n,r){return(e.children.some(function(s){return k3(s)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function b3(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}Xy.peek=S3;function Xy(e,t,n,r){const i=b3(n),o=n.enter("strong"),s=n.createTracker(r),l=s.move(i+i);let a=s.move(n.containerPhrasing(e,{after:i,before:l,...s.current()}));const u=a.charCodeAt(0),f=kl(r.before.charCodeAt(r.before.length-1),u,i);f.inside&&(a=No(u)+a.slice(1));const d=a.charCodeAt(a.length-1),m=kl(r.after.charCodeAt(0),d,i);m.inside&&(a=a.slice(0,-1)+No(d));const p=s.move(i+i);return o(),n.attentionEncodeSurroundingInfo={after:m.outside,before:f.outside},l+a+p}function S3(e,t,n){return n.options.strong||"*"}function _3(e,t,n,r){return n.safe(e.value,r)}function C3(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function I3(e,t,n){const r=(Yy(n)+(n.options.ruleSpaces?" ":"")).repeat(C3(n));return n.options.ruleSpaces?r.slice(0,-1):r}const Jy={blockquote:QE,break:xm,code:t3,definition:r3,emphasis:Vy,hardBreak:xm,heading:l3,html:Hy,image:qy,imageReference:Wy,inlineCode:Zy,link:Qy,linkReference:Ky,list:g3,listItem:x3,paragraph:v3,root:w3,strong:Xy,text:_3,thematicBreak:I3};function N3(){return{enter:{table:E3,tableData:vm,tableHeader:vm,tableRow:j3},exit:{codeText:A3,table:T3,tableData:Da,tableHeader:Da,tableRow:Da}}}function E3(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function T3(e){this.exit(e),this.data.inTable=void 0}function j3(e){this.enter({type:"tableRow",children:[]},e)}function Da(e){this.exit(e)}function vm(e){this.enter({type:"tableCell",children:[]},e)}function A3(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,P3));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function P3(e,t){return t==="|"?t:e}function R3(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,o=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
303
+ `,...o.current()});return/^[\t ]/.test(u)&&(u=No(u.charCodeAt(0))+u.slice(1)),u=u?s+" "+u:s,n.options.closeAtx&&(u+=" "+s),a(),l(),u}qy.peek=u3;function qy(e){return e.value||""}function u3(){return"<"}Wy.peek=c3;function Wy(e,t,n,r){const i=Md(n),o=i==='"'?"Quote":"Apostrophe",s=n.enter("image");let l=n.enter("label");const a=n.createTracker(r);let u=a.move("![");return u+=a.move(n.safe(e.alt,{before:u,after:"]",...a.current()})),u+=a.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),u+=a.move("<"),u+=a.move(n.safe(e.url,{before:u,after:">",...a.current()})),u+=a.move(">")):(l=n.enter("destinationRaw"),u+=a.move(n.safe(e.url,{before:u,after:e.title?" ":")",...a.current()}))),l(),e.title&&(l=n.enter(`title${o}`),u+=a.move(" "+i),u+=a.move(n.safe(e.title,{before:u,after:i,...a.current()})),u+=a.move(i),l()),u+=a.move(")"),s(),u}function c3(){return"!"}Zy.peek=d3;function Zy(e,t,n,r){const i=e.referenceType,o=n.enter("imageReference");let s=n.enter("label");const l=n.createTracker(r);let a=l.move("![");const u=n.safe(e.alt,{before:a,after:"]",...l.current()});a+=l.move(u+"]["),s();const f=n.stack;n.stack=[],s=n.enter("reference");const d=n.safe(n.associationId(e),{before:a,after:"]",...l.current()});return s(),n.stack=f,o(),i==="full"||!u||u!==d?a+=l.move(d+"]"):i==="shortcut"?a=a.slice(0,-1):a+=l.move("]"),a}function d3(){return"!"}Gy.peek=f3;function Gy(e,t,n){let r=e.value||"",i="`",o=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++o<n.unsafe.length;){const s=n.unsafe[o],l=n.compilePattern(s);let a;if(s.atBreak)for(;a=l.exec(r);){let u=a.index;r.charCodeAt(u)===10&&r.charCodeAt(u-1)===13&&u--,r=r.slice(0,u)+" "+r.slice(a.index+1)}}return i+r+i}function f3(){return"`"}function Qy(e,t){const n=Id(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}Ky.peek=p3;function Ky(e,t,n,r){const i=Md(n),o=i==='"'?"Quote":"Apostrophe",s=n.createTracker(r);let l,a;if(Qy(e,n)){const f=n.stack;n.stack=[],l=n.enter("autolink");let d=s.move("<");return d+=s.move(n.containerPhrasing(e,{before:d,after:">",...s.current()})),d+=s.move(">"),l(),n.stack=f,d}l=n.enter("link"),a=n.enter("label");let u=s.move("[");return u+=s.move(n.containerPhrasing(e,{before:u,after:"](",...s.current()})),u+=s.move("]("),a(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(a=n.enter("destinationLiteral"),u+=s.move("<"),u+=s.move(n.safe(e.url,{before:u,after:">",...s.current()})),u+=s.move(">")):(a=n.enter("destinationRaw"),u+=s.move(n.safe(e.url,{before:u,after:e.title?" ":")",...s.current()}))),a(),e.title&&(a=n.enter(`title${o}`),u+=s.move(" "+i),u+=s.move(n.safe(e.title,{before:u,after:i,...s.current()})),u+=s.move(i),a()),u+=s.move(")"),l(),u}function p3(e,t,n){return Qy(e,n)?"<":"["}Yy.peek=m3;function Yy(e,t,n,r){const i=e.referenceType,o=n.enter("linkReference");let s=n.enter("label");const l=n.createTracker(r);let a=l.move("[");const u=n.containerPhrasing(e,{before:a,after:"]",...l.current()});a+=l.move(u+"]["),s();const f=n.stack;n.stack=[],s=n.enter("reference");const d=n.safe(n.associationId(e),{before:a,after:"]",...l.current()});return s(),n.stack=f,o(),i==="full"||!u||u!==d?a+=l.move(d+"]"):i==="shortcut"?a=a.slice(0,-1):a+=l.move("]"),a}function m3(){return"["}function Ld(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function h3(e){const t=Ld(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function g3(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function Xy(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function y3(e,t,n,r){const i=n.enter("list"),o=n.bulletCurrent;let s=e.ordered?g3(n):Ld(n);const l=e.ordered?s==="."?")":".":h3(n);let a=t&&n.bulletLastUsed?s===n.bulletLastUsed:!1;if(!e.ordered){const f=e.children?e.children[0]:void 0;if((s==="*"||s==="-")&&f&&(!f.children||!f.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(a=!0),Xy(n)===s&&f){let d=-1;for(;++d<e.children.length;){const m=e.children[d];if(m&&m.type==="listItem"&&m.children&&m.children[0]&&m.children[0].type==="thematicBreak"){a=!0;break}}}}a&&(s=l),n.bulletCurrent=s;const u=n.containerFlow(e,r);return n.bulletLastUsed=s,n.bulletCurrent=o,i(),u}function x3(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function v3(e,t,n,r){const i=x3(n);let o=n.bulletCurrent||Ld(n);t&&t.type==="list"&&t.ordered&&(o=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+o);let s=o.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(s=Math.ceil(s/4)*4);const l=n.createTracker(r);l.move(o+" ".repeat(s-o.length)),l.shift(s);const a=n.enter("listItem"),u=n.indentLines(n.containerFlow(e,l.current()),f);return a(),u;function f(d,m,p){return m?(p?"":" ".repeat(s))+d:(p?o:o+" ".repeat(s-o.length))+d}}function k3(e,t,n,r){const i=n.enter("paragraph"),o=n.enter("phrasing"),s=n.containerPhrasing(e,r);return o(),i(),s}const w3=Hl(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function b3(e,t,n,r){return(e.children.some(function(s){return w3(s)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function S3(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}Jy.peek=_3;function Jy(e,t,n,r){const i=S3(n),o=n.enter("strong"),s=n.createTracker(r),l=s.move(i+i);let a=s.move(n.containerPhrasing(e,{after:i,before:l,...s.current()}));const u=a.charCodeAt(0),f=kl(r.before.charCodeAt(r.before.length-1),u,i);f.inside&&(a=No(u)+a.slice(1));const d=a.charCodeAt(a.length-1),m=kl(r.after.charCodeAt(0),d,i);m.inside&&(a=a.slice(0,-1)+No(d));const p=s.move(i+i);return o(),n.attentionEncodeSurroundingInfo={after:m.outside,before:f.outside},l+a+p}function _3(e,t,n){return n.options.strong||"*"}function C3(e,t,n,r){return n.safe(e.value,r)}function I3(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function N3(e,t,n){const r=(Xy(n)+(n.options.ruleSpaces?" ":"")).repeat(I3(n));return n.options.ruleSpaces?r.slice(0,-1):r}const ex={blockquote:KE,break:xm,code:n3,definition:i3,emphasis:Hy,hardBreak:xm,heading:a3,html:qy,image:Wy,imageReference:Zy,inlineCode:Gy,link:Ky,linkReference:Yy,list:y3,listItem:v3,paragraph:k3,root:b3,strong:Jy,text:C3,thematicBreak:N3};function E3(){return{enter:{table:T3,tableData:vm,tableHeader:vm,tableRow:A3},exit:{codeText:P3,table:j3,tableData:Da,tableHeader:Da,tableRow:Da}}}function T3(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function j3(e){this.exit(e),this.data.inTable=void 0}function A3(e){this.enter({type:"tableRow",children:[]},e)}function Da(e){this.exit(e)}function vm(e){this.enter({type:"tableCell",children:[]},e)}function P3(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,R3));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function R3(e,t){return t==="|"?t:e}function z3(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,o=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
304
304
  `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:m,table:s,tableCell:a,tableRow:l}};function s(p,x,b,I){return u(f(p,b,I),p.align)}function l(p,x,b,I){const y=d(p,b,I),v=u([y]);return v.slice(0,v.indexOf(`
305
- `))}function a(p,x,b,I){const y=b.enter("tableCell"),v=b.enter("phrasing"),w=b.containerPhrasing(p,{...I,before:o,after:o});return v(),y(),w}function u(p,x){return ZE(p,{align:x,alignDelimiters:r,padding:n,stringLength:i})}function f(p,x,b){const I=p.children;let y=-1;const v=[],w=x.enter("table");for(;++y<I.length;)v[y]=d(I[y],x,b);return w(),v}function d(p,x,b){const I=p.children;let y=-1;const v=[],w=x.enter("tableRow");for(;++y<I.length;)v[y]=a(I[y],p,x,b);return w(),v}function m(p,x,b){let I=Jy.inlineCode(p,x,b);return b.stack.includes("tableCell")&&(I=I.replace(/\|/g,"\\$&")),I}}function z3(){return{exit:{taskListCheckValueChecked:km,taskListCheckValueUnchecked:km,paragraph:L3}}}function M3(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:O3}}}function km(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function L3(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const r=n.children[0];if(r&&r.type==="text"){const i=t.children;let o=-1,s;for(;++o<i.length;){const l=i[o];if(l.type==="paragraph"){s=l;break}}s===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function O3(e,t,n,r){const i=e.children[0],o=typeof e.checked=="boolean"&&i&&i.type==="paragraph",s="["+(e.checked?"x":" ")+"] ",l=n.createTracker(r);o&&l.move(s);let a=Jy.listItem(e,t,n,{...r,...l.current()});return o&&(a=a.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,u)),a;function u(f){return f+s}}function D3(){return[gE(),OE(),UE(),N3(),z3()]}function F3(e){return{extensions:[yE(),DE(e),BE(),R3(e),M3()]}}const $3={tokenize:W3,partial:!0},ex={tokenize:Z3,partial:!0},tx={tokenize:G3,partial:!0},nx={tokenize:Q3,partial:!0},U3={tokenize:K3,partial:!0},rx={name:"wwwAutolink",tokenize:H3,previous:ox},ix={name:"protocolAutolink",tokenize:q3,previous:sx},An={name:"emailAutolink",tokenize:V3,previous:lx},an={};function B3(){return{text:an}}let dr=48;for(;dr<123;)an[dr]=An,dr++,dr===58?dr=65:dr===91&&(dr=97);an[43]=An;an[45]=An;an[46]=An;an[95]=An;an[72]=[An,ix];an[104]=[An,ix];an[87]=[An,rx];an[119]=[An,rx];function V3(e,t,n){const r=this;let i,o;return s;function s(d){return!rc(d)||!lx.call(r,r.previous)||Od(r.events)?n(d):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),l(d))}function l(d){return rc(d)?(e.consume(d),l):d===64?(e.consume(d),a):n(d)}function a(d){return d===46?e.check(U3,f,u)(d):d===45||d===95||nt(d)?(o=!0,e.consume(d),a):f(d)}function u(d){return e.consume(d),i=!0,a}function f(d){return o&&i&&lt(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(d)):n(d)}}function H3(e,t,n){const r=this;return i;function i(s){return s!==87&&s!==119||!ox.call(r,r.previous)||Od(r.events)?n(s):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check($3,e.attempt(ex,e.attempt(tx,o),n),n)(s))}function o(s){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(s)}}function q3(e,t,n){const r=this;let i="",o=!1;return s;function s(d){return(d===72||d===104)&&sx.call(r,r.previous)&&!Od(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(d),e.consume(d),l):n(d)}function l(d){if(lt(d)&&i.length<5)return i+=String.fromCodePoint(d),e.consume(d),l;if(d===58){const m=i.toLowerCase();if(m==="http"||m==="https")return e.consume(d),a}return n(d)}function a(d){return d===47?(e.consume(d),o?u:(o=!0,a)):n(d)}function u(d){return d===null||yl(d)||_e(d)||Tr(d)||Bl(d)?n(d):e.attempt(ex,e.attempt(tx,f),n)(d)}function f(d){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(d)}}function W3(e,t,n){let r=0;return i;function i(s){return(s===87||s===119)&&r<3?(r++,e.consume(s),i):s===46&&r===3?(e.consume(s),o):n(s)}function o(s){return s===null?n(s):t(s)}}function Z3(e,t,n){let r,i,o;return s;function s(u){return u===46||u===95?e.check(nx,a,l)(u):u===null||_e(u)||Tr(u)||u!==45&&Bl(u)?a(u):(o=!0,e.consume(u),s)}function l(u){return u===95?r=!0:(i=r,r=void 0),e.consume(u),s}function a(u){return i||r||!o?n(u):t(u)}}function G3(e,t){let n=0,r=0;return i;function i(s){return s===40?(n++,e.consume(s),i):s===41&&r<n?o(s):s===33||s===34||s===38||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===60||s===63||s===93||s===95||s===126?e.check(nx,t,o)(s):s===null||_e(s)||Tr(s)?t(s):(e.consume(s),i)}function o(s){return s===41&&r++,e.consume(s),i}}function Q3(e,t,n){return r;function r(l){return l===33||l===34||l===39||l===41||l===42||l===44||l===46||l===58||l===59||l===63||l===95||l===126?(e.consume(l),r):l===38?(e.consume(l),o):l===93?(e.consume(l),i):l===60||l===null||_e(l)||Tr(l)?t(l):n(l)}function i(l){return l===null||l===40||l===91||_e(l)||Tr(l)?t(l):r(l)}function o(l){return lt(l)?s(l):n(l)}function s(l){return l===59?(e.consume(l),r):lt(l)?(e.consume(l),s):n(l)}}function K3(e,t,n){return r;function r(o){return e.consume(o),i}function i(o){return nt(o)?n(o):t(o)}}function ox(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||_e(e)}function sx(e){return!lt(e)}function lx(e){return!(e===47||rc(e))}function rc(e){return e===43||e===45||e===46||e===95||nt(e)}function Od(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const Y3={tokenize:oT,partial:!0};function X3(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:nT,continuation:{tokenize:rT},exit:iT}},text:{91:{name:"gfmFootnoteCall",tokenize:tT},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:J3,resolveTo:eT}}}}function J3(e,t,n){const r=this;let i=r.events.length;const o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s;for(;i--;){const a=r.events[i][1];if(a.type==="labelImage"){s=a;break}if(a.type==="gfmFootnoteCall"||a.type==="labelLink"||a.type==="label"||a.type==="image"||a.type==="link")break}return l;function l(a){if(!s||!s._balanced)return n(a);const u=Zt(r.sliceSerialize({start:s.end,end:r.now()}));return u.codePointAt(0)!==94||!o.includes(u.slice(1))?n(a):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(a),e.exit("gfmFootnoteCallLabelMarker"),t(a))}}function eT(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const o={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},s={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},l=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",o,t],["enter",s,t],["exit",s,t],["exit",o,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...l),e}function tT(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o=0,s;return l;function l(d){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),a}function a(d){return d!==94?n(d):(e.enter("gfmFootnoteCallMarker"),e.consume(d),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(d){if(o>999||d===93&&!s||d===null||d===91||_e(d))return n(d);if(d===93){e.exit("chunkString");const m=e.exit("gfmFootnoteCallString");return i.includes(Zt(r.sliceSerialize(m)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(d)}return _e(d)||(s=!0),o++,e.consume(d),d===92?f:u}function f(d){return d===91||d===92||d===93?(e.consume(d),o++,u):u(d)}}function nT(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o,s=0,l;return a;function a(x){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(x),e.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(x){return x===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(x),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",f):n(x)}function f(x){if(s>999||x===93&&!l||x===null||x===91||_e(x))return n(x);if(x===93){e.exit("chunkString");const b=e.exit("gfmFootnoteDefinitionLabelString");return o=Zt(r.sliceSerialize(b)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(x),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),m}return _e(x)||(l=!0),s++,e.consume(x),x===92?d:f}function d(x){return x===91||x===92||x===93?(e.consume(x),s++,f):f(x)}function m(x){return x===58?(e.enter("definitionMarker"),e.consume(x),e.exit("definitionMarker"),i.includes(o)||i.push(o),ke(e,p,"gfmFootnoteDefinitionWhitespace")):n(x)}function p(x){return t(x)}}function rT(e,t,n){return e.check(Uo,t,e.attempt(Y3,t,n))}function iT(e){e.exit("gfmFootnoteDefinition")}function oT(e,t,n){const r=this;return ke(e,i,"gfmFootnoteDefinitionIndent",5);function i(o){const s=r.events[r.events.length-1];return s&&s[1].type==="gfmFootnoteDefinitionIndent"&&s[2].sliceSerialize(s[1],!0).length===4?t(o):n(o)}}function sT(e){let n=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:o,resolveAll:i};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(s,l){let a=-1;for(;++a<s.length;)if(s[a][0]==="enter"&&s[a][1].type==="strikethroughSequenceTemporary"&&s[a][1]._close){let u=a;for(;u--;)if(s[u][0]==="exit"&&s[u][1].type==="strikethroughSequenceTemporary"&&s[u][1]._open&&s[a][1].end.offset-s[a][1].start.offset===s[u][1].end.offset-s[u][1].start.offset){s[a][1].type="strikethroughSequence",s[u][1].type="strikethroughSequence";const f={type:"strikethrough",start:Object.assign({},s[u][1].start),end:Object.assign({},s[a][1].end)},d={type:"strikethroughText",start:Object.assign({},s[u][1].end),end:Object.assign({},s[a][1].start)},m=[["enter",f,l],["enter",s[u][1],l],["exit",s[u][1],l],["enter",d,l]],p=l.parser.constructs.insideSpan.null;p&&Ye(m,m.length,0,Ni(p,s.slice(u+1,a),l)),Ye(m,m.length,0,[["exit",d,l],["enter",s[a][1],l],["exit",s[a][1],l],["exit",f,l]]),Ye(s,u-1,a-u+3,m),a=u+m.length-2;break}}for(a=-1;++a<s.length;)s[a][1].type==="strikethroughSequenceTemporary"&&(s[a][1].type="data");return s}function o(s,l,a){const u=this.previous,f=this.events;let d=0;return m;function m(x){return u===126&&f[f.length-1][1].type!=="characterEscape"?a(x):(s.enter("strikethroughSequenceTemporary"),p(x))}function p(x){const b=xi(u);if(x===126)return d>1?a(x):(s.consume(x),d++,p);if(d<2&&!n)return a(x);const I=s.exit("strikethroughSequenceTemporary"),y=xi(x);return I._open=!y||y===2&&!!b,I._close=!b||b===2&&!!y,l(x)}}}class lT{constructor(){this.map=[]}add(t,n,r){aT(this,t,n,r)}consume(t){if(this.map.sort(function(o,s){return o[0]-s[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push(t.slice()),t.length=0;let i=r.pop();for(;i;){for(const o of i)t.push(o);i=r.pop()}this.map.length=0}}function aT(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=n,e.map[i][2].push(...r);return}i+=1}e.map.push([t,n,r])}}function uT(e,t){let n=!1;const r=[];for(;t<e.length;){const i=e[t];if(n){if(i[0]==="enter")i[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const o=r.length-1;r[o]=r[o]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}function cT(){return{flow:{null:{name:"table",tokenize:dT,resolveAll:fT}}}}function dT(e,t,n){const r=this;let i=0,o=0,s;return l;function l(C){let O=r.events.length-1;for(;O>-1;){const Z=r.events[O][1].type;if(Z==="lineEnding"||Z==="linePrefix")O--;else break}const z=O>-1?r.events[O][1].type:null,oe=z==="tableHead"||z==="tableRow"?S:a;return oe===S&&r.parser.lazy[r.now().line]?n(C):oe(C)}function a(C){return e.enter("tableHead"),e.enter("tableRow"),u(C)}function u(C){return C===124||(s=!0,o+=1),f(C)}function f(C){return C===null?n(C):ne(C)?o>1?(o=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(C),e.exit("lineEnding"),p):n(C):me(C)?ke(e,f,"whitespace")(C):(o+=1,s&&(s=!1,i+=1),C===124?(e.enter("tableCellDivider"),e.consume(C),e.exit("tableCellDivider"),s=!0,f):(e.enter("data"),d(C)))}function d(C){return C===null||C===124||_e(C)?(e.exit("data"),f(C)):(e.consume(C),C===92?m:d)}function m(C){return C===92||C===124?(e.consume(C),d):d(C)}function p(C){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(C):(e.enter("tableDelimiterRow"),s=!1,me(C)?ke(e,x,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(C):x(C))}function x(C){return C===45||C===58?I(C):C===124?(s=!0,e.enter("tableCellDivider"),e.consume(C),e.exit("tableCellDivider"),b):j(C)}function b(C){return me(C)?ke(e,I,"whitespace")(C):I(C)}function I(C){return C===58?(o+=1,s=!0,e.enter("tableDelimiterMarker"),e.consume(C),e.exit("tableDelimiterMarker"),y):C===45?(o+=1,y(C)):C===null||ne(C)?N(C):j(C)}function y(C){return C===45?(e.enter("tableDelimiterFiller"),v(C)):j(C)}function v(C){return C===45?(e.consume(C),v):C===58?(s=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(C),e.exit("tableDelimiterMarker"),w):(e.exit("tableDelimiterFiller"),w(C))}function w(C){return me(C)?ke(e,N,"whitespace")(C):N(C)}function N(C){return C===124?x(C):C===null||ne(C)?!s||i!==o?j(C):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(C)):j(C)}function j(C){return n(C)}function S(C){return e.enter("tableRow"),A(C)}function A(C){return C===124?(e.enter("tableCellDivider"),e.consume(C),e.exit("tableCellDivider"),A):C===null||ne(C)?(e.exit("tableRow"),t(C)):me(C)?ke(e,A,"whitespace")(C):(e.enter("data"),E(C))}function E(C){return C===null||C===124||_e(C)?(e.exit("data"),A(C)):(e.consume(C),C===92?$:E)}function $(C){return C===92||C===124?(e.consume(C),E):E(C)}}function fT(e,t){let n=-1,r=!0,i=0,o=[0,0,0,0],s=[0,0,0,0],l=!1,a=0,u,f,d;const m=new lT;for(;++n<e.length;){const p=e[n],x=p[1];p[0]==="enter"?x.type==="tableHead"?(l=!1,a!==0&&(wm(m,t,a,u,f),f=void 0,a=0),u={type:"table",start:Object.assign({},x.start),end:Object.assign({},x.end)},m.add(n,0,[["enter",u,t]])):x.type==="tableRow"||x.type==="tableDelimiterRow"?(r=!0,d=void 0,o=[0,0,0,0],s=[0,n+1,0,0],l&&(l=!1,f={type:"tableBody",start:Object.assign({},x.start),end:Object.assign({},x.end)},m.add(n,0,[["enter",f,t]])),i=x.type==="tableDelimiterRow"?2:f?3:1):i&&(x.type==="data"||x.type==="tableDelimiterMarker"||x.type==="tableDelimiterFiller")?(r=!1,s[2]===0&&(o[1]!==0&&(s[0]=s[1],d=ps(m,t,o,i,void 0,d),o=[0,0,0,0]),s[2]=n)):x.type==="tableCellDivider"&&(r?r=!1:(o[1]!==0&&(s[0]=s[1],d=ps(m,t,o,i,void 0,d)),o=s,s=[o[1],n,0,0])):x.type==="tableHead"?(l=!0,a=n):x.type==="tableRow"||x.type==="tableDelimiterRow"?(a=n,o[1]!==0?(s[0]=s[1],d=ps(m,t,o,i,n,d)):s[1]!==0&&(d=ps(m,t,s,i,n,d)),i=0):i&&(x.type==="data"||x.type==="tableDelimiterMarker"||x.type==="tableDelimiterFiller")&&(s[3]=n)}for(a!==0&&wm(m,t,a,u,f),m.consume(t.events),n=-1;++n<t.events.length;){const p=t.events[n];p[0]==="enter"&&p[1].type==="table"&&(p[1]._align=uT(t.events,n))}return e}function ps(e,t,n,r,i,o){const s=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",l="tableContent";n[0]!==0&&(o.end=Object.assign({},Ur(t.events,n[0])),e.add(n[0],0,[["exit",o,t]]));const a=Ur(t.events,n[1]);if(o={type:s,start:Object.assign({},a),end:Object.assign({},a)},e.add(n[1],0,[["enter",o,t]]),n[2]!==0){const u=Ur(t.events,n[2]),f=Ur(t.events,n[3]),d={type:l,start:Object.assign({},u),end:Object.assign({},f)};if(e.add(n[2],0,[["enter",d,t]]),r!==2){const m=t.events[n[2]],p=t.events[n[3]];if(m[1].end=Object.assign({},p[1].end),m[1].type="chunkText",m[1].contentType="text",n[3]>n[2]+1){const x=n[2]+1,b=n[3]-n[2]-1;e.add(x,b,[])}}e.add(n[3]+1,0,[["exit",d,t]])}return i!==void 0&&(o.end=Object.assign({},Ur(t.events,i)),e.add(i,0,[["exit",o,t]]),o=void 0),o}function wm(e,t,n,r,i){const o=[],s=Ur(t.events,n);i&&(i.end=Object.assign({},s),o.push(["exit",i,t])),r.end=Object.assign({},s),o.push(["exit",r,t]),e.add(n+1,0,o)}function Ur(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const pT={name:"tasklistCheck",tokenize:hT};function mT(){return{text:{91:pT}}}function hT(e,t,n){const r=this;return i;function i(a){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(a):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(a),e.exit("taskListCheckMarker"),o)}function o(a){return _e(a)?(e.enter("taskListCheckValueUnchecked"),e.consume(a),e.exit("taskListCheckValueUnchecked"),s):a===88||a===120?(e.enter("taskListCheckValueChecked"),e.consume(a),e.exit("taskListCheckValueChecked"),s):n(a)}function s(a){return a===93?(e.enter("taskListCheckMarker"),e.consume(a),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),l):n(a)}function l(a){return ne(a)?t(a):me(a)?e.check({tokenize:gT},t,n)(a):n(a)}}function gT(e,t,n){return ke(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function yT(e){return gy([B3(),X3(),sT(e),cT(),mT()])}const xT={};function Eo(e){const t=this,n=e||xT,r=t.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),o=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),s=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(yT(n)),o.push(D3()),s.push(F3(n))}const kn={eof:null,asterisk:42,underscore:95,tilde:126},vi={attentionSideAfter:2,characterGroupPunctuation:2,characterGroupWhitespace:1},Jt={data:"data",characterEscape:"characterEscape",emphasis:"emphasis",emphasisSequence:"emphasisSequence",emphasisText:"emphasisText",strong:"strong",strongSequence:"strongSequence",strongText:"strongText"},vT=161,kT=1114109,wT=[161,161,164,164,167,168,170,170,173,174,176,180,182,186,188,191,198,198,208,208,215,216,222,225,230,230,232,234,236,237,240,240,242,243,247,250,252,252,254,254,257,257,273,273,275,275,283,283,294,295,299,299,305,307,312,312,319,322,324,324,328,331,333,333,338,339,358,359,363,363,462,462,464,464,466,466,468,468,470,470,472,472,474,474,476,476,593,593,609,609,708,708,711,711,713,715,717,717,720,720,728,731,733,733,735,735,768,879,913,929,931,937,945,961,963,969,1025,1025,1040,1103,1105,1105,8208,8208,8211,8214,8216,8217,8220,8221,8224,8226,8228,8231,8240,8240,8242,8243,8245,8245,8251,8251,8254,8254,8308,8308,8319,8319,8321,8324,8364,8364,8451,8451,8453,8453,8457,8457,8467,8467,8470,8470,8481,8482,8486,8486,8491,8491,8531,8532,8539,8542,8544,8555,8560,8569,8585,8585,8592,8601,8632,8633,8658,8658,8660,8660,8679,8679,8704,8704,8706,8707,8711,8712,8715,8715,8719,8719,8721,8721,8725,8725,8730,8730,8733,8736,8739,8739,8741,8741,8743,8748,8750,8750,8756,8759,8764,8765,8776,8776,8780,8780,8786,8786,8800,8801,8804,8807,8810,8811,8814,8815,8834,8835,8838,8839,8853,8853,8857,8857,8869,8869,8895,8895,8978,8978,9312,9449,9451,9547,9552,9587,9600,9615,9618,9621,9632,9633,9635,9641,9650,9651,9654,9655,9660,9661,9664,9665,9670,9672,9675,9675,9678,9681,9698,9701,9711,9711,9733,9734,9737,9737,9742,9743,9756,9756,9758,9758,9792,9792,9794,9794,9824,9825,9827,9829,9831,9834,9836,9837,9839,9839,9886,9887,9919,9919,9926,9933,9935,9939,9941,9953,9955,9955,9960,9961,9963,9969,9972,9972,9974,9977,9979,9980,9982,9983,10045,10045,10102,10111,11094,11097,12872,12879,57344,63743,65024,65039,65533,65533,127232,127242,127248,127277,127280,127337,127344,127373,127375,127376,127387,127404,917760,917999,983040,1048573,1048576,1114109],bT=12288,ST=65510,_T=[12288,12288,65281,65376,65504,65510],CT=8361,IT=65518,NT=[8361,8361,65377,65470,65474,65479,65482,65487,65490,65495,65498,65500,65512,65518],ET=32,TT=10630,jT=[32,126,162,163,165,166,172,172,175,175,10214,10221,10629,10630],AT=4352,PT=262141,ax=[4352,4447,8986,8987,9001,9002,9193,9196,9200,9200,9203,9203,9725,9726,9748,9749,9776,9783,9800,9811,9855,9855,9866,9871,9875,9875,9889,9889,9898,9899,9917,9918,9924,9925,9934,9934,9940,9940,9962,9962,9970,9971,9973,9973,9978,9978,9981,9981,9989,9989,9994,9995,10024,10024,10060,10060,10062,10062,10067,10069,10071,10071,10133,10135,10160,10160,10175,10175,11035,11036,11088,11088,11093,11093,11904,11929,11931,12019,12032,12245,12272,12287,12289,12350,12353,12438,12441,12543,12549,12591,12593,12686,12688,12773,12783,12830,12832,12871,12880,42124,42128,42182,43360,43388,44032,55203,63744,64255,65040,65049,65072,65106,65108,65126,65128,65131,94176,94180,94192,94198,94208,101594,101631,101664,101760,101874,101888,102801,102816,102866,110576,110579,110581,110587,110589,110590,110592,110888,110898,110898,110928,110930,110933,110933,110948,110952,110960,111355,119552,119638,119648,119670,126980,126980,127183,127183,127374,127374,127377,127386,127406,127406,127488,127490,127504,127547,127552,127560,127568,127569,127584,127589,127744,127776,127789,127797,127799,127868,127870,127891,127904,127946,127951,127955,127968,127984,127988,127988,127992,128062,128064,128064,128066,128252,128255,128317,128331,128334,128336,128359,128378,128378,128405,128406,128420,128420,128507,128591,128640,128709,128716,128716,128720,128722,128725,128729,128732,128735,128747,128748,128756,128764,128986,128986,128992,129003,129008,129008,129292,129338,129340,129349,129351,129535,129648,129660,129664,129734,129736,129736,129740,129757,129759,129771,129775,129786,131072,196605,196608,262141],Vo=(e,t)=>{let n=0,r=Math.floor(e.length/2)-1;for(;n<=r;){const i=Math.floor((n+r)/2),o=i*2;if(t<e[o])r=i-1;else if(t>e[o+1])n=i+1;else return!0}return!1},bm=19968,[RT,zT]=MT(ax);function MT(e){let t=e[0],n=e[1];for(let r=0;r<e.length;r+=2){const i=e[r],o=e[r+1];if(bm>=i&&bm<=o)return[i,o];o-i>n-t&&(t=i,n=o)}return[t,n]}const LT=e=>e<vT||e>kT?!1:Vo(wT,e),OT=e=>e<bT||e>ST?!1:Vo(_T,e),DT=e=>e<CT||e>IT?!1:Vo(NT,e),FT=e=>e<ET||e>TT?!1:Vo(jT,e),$T=e=>e>=RT&&e<=zT?!0:e<AT||e>PT?!1:Vo(ax,e);function UT(e){return LT(e)?"ambiguous":OT(e)?"fullwidth":DT(e)?"halfwidth":FT(e)?"narrow":$T(e)?"wide":"neutral"}function BT(e){if(!Number.isSafeInteger(e))throw new TypeError(`Expected a code point, got \`${typeof e}\`.`)}function VT(e){return BT(e),UT(e)}function HT(e){return new RegExp("^\\p{Emoji_Presentation}","u").test(String.fromCodePoint(e))}function qT(e){if(!e||e<4352)return!1;switch(VT(e)){case"fullwidth":case"halfwidth":return!0;case"wide":return!HT(e);case"narrow":return!1;case"ambiguous":return 917760<=e&&e<=917999?null:!1;case"neutral":return new RegExp("^\\p{sc=Hangul}","u").test(String.fromCodePoint(e))}}function WT(e,t){return t!==65025||!e||e<8216?!1:e===8216||e===8217||e===8220||e===8221}function ZT(e){return e!==null&&e>=65024&&e<=65038}const GT=ux(new RegExp("\\p{P}|\\p{S}","u")),QT=ux(/\s/);function ux(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCodePoint(n))}}function To(e){return!!(e&vi.characterGroupWhitespace)}function wl(e){return(e&It.cjkPunctuation)===vi.characterGroupPunctuation}function ic(e){return!!(e&It.cjk)}function KT(e){return e===It.ivs}function YT(e){return!!(e&It.cjkOrIvs)}function XT(e){return e===It.nonEmojiGeneralUseVS}function Sm(e){return!!(e&It.spaceOrPunctuation)}let It;(function(e){e.spaceOrPunctuation=3,e.cjk=4096,e.cjkPunctuation=4098,e.ivs=8192,e.cjkOrIvs=12288,e.nonEmojiGeneralUseVS=16384,e.variationSelector=24576,e.ivsToCjkRightShift=1})(It||(It={}));function li(e){if(e===kn.eof||_e(e)||QT(e))return vi.characterGroupWhitespace;let t=0;if(e>=4352){if(ZT(e))return It.nonEmojiGeneralUseVS;switch(qT(e)){case null:return It.ivs;case!0:t|=It.cjk;break}}return GT(e)&&(t|=vi.characterGroupPunctuation),t}function cx(e,t,n){if(!XT(e))return e;const r=t(),i=li(r);return!r||To(i)?e:WT(r,n)?It.cjkPunctuation:JT(i)}function JT(e){return e&~It.ivs}function dx(e){return!!(e&&e>=55296&&e<=56319)}function fx(e){return!!(e&&e>=56320&&e<=57343)}function px(e,t,n){if(t._bufferIndex<2)return e;const r=n({start:{...t,_bufferIndex:t._bufferIndex-2},end:t}).codePointAt(0);return r&&r>=65536?r:e}function e5(e,t,n){const r=e>=65536?2:1;if(t._bufferIndex<1+r)return null;const i=t._bufferIndex-r-2,o=n({start:{...t,_bufferIndex:i>=0?i:0},end:{...t,_bufferIndex:t._bufferIndex-r}}),s=o.charCodeAt(o.length-1);if(Number.isNaN(s))return null;if(o.length<2||s<56320||57343<s)return s;const l=o.codePointAt(0);return l&&l>=65536?l:s}var mx=class{constructor(e,t,n){Hd(this,"cachedValue");this.previousCode=e,this.nowPoint=t,this.sliceSerialize=n}value(){return this.cachedValue===void 0&&(this.cachedValue=e5(this.previousCode,this.nowPoint,this.sliceSerialize)),this.cachedValue}};function hx(e,t,n){const r=n({start:t,end:{...t,_bufferIndex:t._bufferIndex+2}}).codePointAt(0);return r&&r>=65536?r:e}const Fa={name:"attention",resolveAll:t5,tokenize:n5};function t5(e,t){let n=-1,r,i,o,s,l,a,u,f;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;a=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const d={...e[r][1].end},m={...e[n][1].start};_m(d,-a),_m(m,a),s={type:a>1?Jt.strongSequence:Jt.emphasisSequence,start:d,end:{...e[r][1].end}},l={type:a>1?Jt.strongSequence:Jt.emphasisSequence,start:{...e[n][1].start},end:m},o={type:a>1?Jt.strongText:Jt.emphasisText,start:{...e[r][1].end},end:{...e[n][1].start}},i={type:a>1?Jt.strong:Jt.emphasis,start:{...s.start},end:{...l.end}},e[r][1].end={...s.start},e[n][1].start={...l.end},u=[],e[r][1].end.offset-e[r][1].start.offset&&(u=Qe(u,[["enter",e[r][1],t],["exit",e[r][1],t]])),u=Qe(u,[["enter",i,t],["enter",s,t],["exit",s,t],["enter",o,t]]),t.parser.constructs.insideSpan.null,u=Qe(u,Ni(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),u=Qe(u,[["exit",o,t],["enter",l,t],["exit",l,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(f=2,u=Qe(u,[["enter",e[n][1],t],["exit",e[n][1],t]])):f=0,Ye(e,r-1,n-r+3,u),n=r+u.length-f-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function n5(e,t){const n=this.parser.constructs.attentionMarkers.null,{now:r,sliceSerialize:i,previous:o}=this,s=fx(o)?px(o,r(),i):o,l=li(s),a=new mx(s,r(),i),u=cx(l,a.value.bind(a),s);let f;return d;function d(p){return f=p,e.enter("attentionSequence"),m(p)}function m(p){if(p===f)return e.consume(p),m;const x=e.exit("attentionSequence"),b=li(dx(p)?hx(p,r(),i):p),I=wl(u),y=I||To(u),v=wl(b),w=v||To(b),N=YT(u),j=!w||v&&(y||N)||n.includes(p),S=!y||I&&(w||ic(b))||n.includes(s);return x._open=!!(f===kn.asterisk?j:j&&(Sm(u)||!S)),x._close=!!(f===kn.asterisk?S:S&&(Sm(b)||!j)),t(p)}}function _m(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}function r5(){return{text:{[kn.asterisk]:Fa,[kn.underscore]:Fa},insideSpan:{null:[Fa]}}}function i5(){const e=this.data();(e.micromarkExtensions||(e.micromarkExtensions=[])).push(r5())}function o5(e){let t=(e||{}).singleTilde;const n={name:"strikethrough",tokenize:i,resolveAll:r};return t==null&&(t=!0),{text:{[kn.tilde]:n},insideSpan:{null:[n]},attentionMarkers:{null:[kn.tilde]}};function r(o,s){let l=-1;for(;++l<o.length;)if(o[l][0]==="enter"&&o[l][1].type==="strikethroughSequenceTemporary"&&o[l][1]._close){let a=l;for(;a--;)if(o[a][0]==="exit"&&o[a][1].type==="strikethroughSequenceTemporary"&&o[a][1]._open&&o[l][1].end.offset-o[l][1].start.offset===o[a][1].end.offset-o[a][1].start.offset){o[l][1].type="strikethroughSequence",o[a][1].type="strikethroughSequence";const u={type:"strikethrough",start:Object.assign({},o[a][1].start),end:Object.assign({},o[l][1].end)},f={type:"strikethroughText",start:Object.assign({},o[a][1].end),end:Object.assign({},o[l][1].start)},d=[["enter",u,s],["enter",o[a][1],s],["exit",o[a][1],s],["enter",f,s]],m=s.parser.constructs.insideSpan.null;m&&Ye(d,d.length,0,Ni(m,o.slice(a+1,l),s)),Ye(d,d.length,0,[["exit",f,s],["enter",o[l][1],s],["exit",o[l][1],s],["exit",u,s]]),Ye(o,a-1,l-a+3,d),l=a+d.length-2;break}}for(l=-1;++l<o.length;)o[l][1].type==="strikethroughSequenceTemporary"&&(o[l][1].type=Jt.data);return o}function i(o,s,l){const{now:a,sliceSerialize:u,previous:f}=this,d=fx(f)?px(f,a(),u):f,m=li(d),p=new mx(d,a(),u),x=cx(m,p.value.bind(p),d),b=this.events;let I=0;return y;function y(w){return d===kn.tilde&&b[b.length-1][1].type!==Jt.characterEscape?l(w):(o.enter("strikethroughSequenceTemporary"),v(w))}function v(w){const N=li(d);if(w===kn.tilde)return I>1?l(w):(o.consume(w),I++,v);if(I<2&&!t)return l(w);const j=o.exit("strikethroughSequenceTemporary"),S=li(dx(w)?hx(w,a(),u):w),A=wl(x)||To(x),E=wl(S)||To(S),$=ic(x)||KT(N);return j._open=!E||S===vi.attentionSideAfter&&(A||$),j._close=!A||N===vi.attentionSideAfter&&(E||ic(S)),s(w)}}}function s5(e){const t=this.data();(t.micromarkExtensions||(t.micromarkExtensions=[])).push(o5(e))}const l5=/<command-name>([\s\S]*?)<\/command-name>/i,a5=/<command-message>([\s\S]*?)<\/command-message>/i,u5=/<command-args>([\s\S]*?)<\/command-args>/i,c5=/<(local-command-[a-z]+|command-(?:stdout|stderr))>[\s\S]*?<\/\1>/gi;function Dd(e){if(!e)return{commandName:null,commandMessage:null,commandArgs:null,body:""};const t=e.match(l5),n=e.match(a5),r=e.match(u5);let i=e;return t&&(i=i.replace(t[0],"")),n&&(i=i.replace(n[0],"")),r&&(i=i.replace(r[0],"")),i=i.replace(c5,""),i=i.trim(),{commandName:t?t[1].trim():null,commandMessage:n?n[1].trim():null,commandArgs:r?r[1].trim():null,body:i}}function gx(e){if(!e)return!1;const n=e.split("#")[0].split("?")[0].toLowerCase();return n.endsWith(".md")||n.endsWith(".markdown")}function d5(e){if(!e)return null;let t;if(e.startsWith("file://")){const n=e.slice(7);t=n.startsWith("/")?n:`/${n.split("/").slice(1).join("/")}`}else{if(/^[a-z][a-z0-9+.-]*:/i.test(e))return null;if(e.startsWith("/"))t=e;else return null}try{return decodeURIComponent(t)}catch{return t}}const f5=/\.(png|jpe?g|webp|gif|svg)$/i;function p5(e,t){if((typeof t=="string"?t:null)!==e)return!1;try{const r=new URL(e);return f5.test(r.pathname)}catch{return!1}}function m5(e){try{return new URL(e).pathname.split("/").filter(Boolean).pop()??""}catch{return""}}const jr={a:({node:e,href:t,children:n,...r})=>typeof t=="string"&&p5(t,n)?h.jsxs("span",{className:"my-1 inline-flex flex-col items-start gap-1 align-top",children:[h.jsx("img",{src:t,alt:m5(t),className:"max-w-full h-auto rounded border border-border"}),h.jsx("a",{href:t,target:"_blank",rel:"noopener noreferrer",className:"max-w-full truncate text-[11px] text-text-300 underline decoration-dotted underline-offset-2 hover:text-text-100",children:t})]}):h.jsx("a",{...r,href:t,target:"_blank",rel:"noopener noreferrer",children:n})};function yx(e){return e.startsWith("file://")?e:Dy(e)}function xx(e){return{...jr,a:t=>{const{href:n,children:r}=t,i=typeof n=="string"?d5(n):null;if(i===null){const o=jr.a;return h.jsx(o,{...t})}return h.jsx("a",{href:n,"data-testid":"assistant-file-link",title:i,onClick:o=>{o.preventDefault(),e(i)},children:r})}}}function h5({text:e,forkTarget:t,onOpenFilePath:n}){const{body:r}=Dd(e),i=Ao.useMemo(()=>n?xx(n):jr,[n]);return r?h.jsxs("div",{className:"group relative flex min-w-0 max-w-full flex-col items-start","data-testid":"msg-line-assistant-wrapper",children:[h.jsx("div",{"data-testid":"msg-line-assistant",className:"assistant-markdown w-full min-w-0 max-w-full py-1 break-words",children:h.jsx(Io,{remarkPlugins:[Eo,i5,s5],components:i,...n?{urlTransform:yx}:{},children:r})}),t?h.jsxs("div",{className:"mt-1 flex flex-row items-center gap-1 md:absolute md:top-full md:mt-0 md:pt-0.5 md:z-10 md:rounded-md md:pointer-events-none md:group-hover:pointer-events-auto md:group-hover:bg-bg-100",children:[t.onFork?h.jsxs("button",{type:"button","data-testid":"assistant-msg-fork","aria-label":"fork from this message",title:"从这条消息派生新 session(截断之后的对话)",onClick:()=>t.onFork(t.messageUuid),className:"inline-flex items-center justify-start gap-1 h-7 w-7 md:h-6 md:w-auto md:px-1.5 rounded-md text-[11px] text-text-400/60 md:text-text-400 hover:bg-text-100/5 hover:text-text-200 md:opacity-0 md:group-hover:opacity-100 md:transition-opacity cursor-pointer",children:[h.jsx(Kg,{className:"w-3 h-3",strokeWidth:2}),h.jsx("span",{className:"hidden md:inline",children:"Fork"})]}):null,t.onQuickAsk?h.jsxs("button",{type:"button","data-testid":"assistant-msg-quick-ask","aria-label":"quick ask from this message",title:"快速问答:从这条消息派生临时会话,关闭即删",onClick:()=>t.onQuickAsk(t.messageUuid),className:"inline-flex items-center justify-start gap-1 h-7 w-7 md:h-6 md:w-auto md:px-1.5 rounded-md text-[11px] text-text-400/60 md:text-text-400 hover:bg-text-100/5 hover:text-text-200 md:opacity-0 md:group-hover:opacity-100 md:transition-opacity cursor-pointer",children:[h.jsx(qk,{className:"w-3 h-3",strokeWidth:2}),h.jsx("span",{className:"hidden md:inline",children:"问一下"})]}):null]}):null]}):null}function g5({text:e}){const[t,n]=U.useState(!1);return e?h.jsxs("div",{"data-testid":"msg-line-thinking",className:"text-[12px] text-text-400",children:[h.jsxs("button",{type:"button",onClick:()=>n(r=>!r),className:"flex items-center gap-1 hover:text-text-300 transition-colors cursor-pointer","aria-expanded":t,"data-testid":"msg-line-thinking-toggle",children:[t?h.jsx(sn,{className:"w-3 h-3"}):h.jsx(ln,{className:"w-3 h-3"}),h.jsx("span",{children:"💭 Thinking"})]}),t?h.jsx("div",{className:"ml-4 mt-1 italic text-text-400 whitespace-pre-wrap break-words",children:e}):null]}):null}const y5=new Set(["Write","Edit","MultiEdit","NotebookEdit"]);function oc(e){return y5.has(e)}function x5({tool:e,relPath:t,scope:n,onShareFile:r}){if(!oc(e)||!t||!n||!r)return null;const i=gx(t)?"md-rendered":"raw";return h.jsx("span",{"data-testid":"file-edit-hover-row",className:"inline-flex shrink-0 items-center gap-1",children:h.jsx("span",{role:"button",tabIndex:0,"data-testid":"file-edit-share-btn","aria-label":"Share link",title:"Share link",onClick:o=>{o.stopPropagation(),r(t,i)},onKeyDown:o=>{(o.key==="Enter"||o.key===" ")&&(o.stopPropagation(),o.preventDefault(),r(t,i))},className:"inline-flex h-3.5 w-3.5 items-center justify-center text-text-400 hover:text-text-200 cursor-pointer",children:h.jsx(lw,{className:"h-3.5 w-3.5"})})})}function v5(e){if(!e||typeof e!="object")return null;const t=e;return typeof t.file_path=="string"&&t.file_path||typeof t.notebook_path=="string"&&t.notebook_path||typeof t.path=="string"&&t.path||null||null}U.createContext(null);const k5={actionsLevel:"none",httpBaseUrl:null,httpToken:null},w5=U.createContext(k5);function b5(){return U.useContext(w5)}function S5(e,t,n){if(!e.httpBaseUrl)return null;const r=encodeURIComponent(n);return`${e.httpBaseUrl}/session/${encodeURIComponent(t.sessionId)}/files?path=${r}`}function vx(e,t){const[n,r]=U.useState({kind:"idle"});return U.useEffect(()=>{let i=!1,o=null;r({kind:"loading"});const s={};return t&&(s.Authorization=`Bearer ${t}`),fetch(e,{headers:s,credentials:"omit"}).then(async l=>{if(!l.ok)throw new Error(`HTTP ${l.status}`);return l.blob()}).then(l=>{if(i)return;const a=URL.createObjectURL(l);o=a,r({kind:"ready",objectUrl:a})}).catch(l=>{i||r({kind:"error",message:l.message})}),()=>{i=!0,o&&URL.revokeObjectURL(o)}},[e,t]),n}function _5({url:e,bearerToken:t,alt:n,className:r}){const i=vx(e,t);return h.jsxs("div",{"data-testid":"blob-image","data-state":i.kind,className:ve("relative inline-flex items-center justify-center rounded-md border border-border bg-bg-0",r),children:[i.kind==="loading"?h.jsx("div",{className:"flex h-24 w-32 items-center justify-center",children:h.jsx(sr,{className:"h-4 w-4 animate-spin text-text-400"})}):null,i.kind==="error"?h.jsxs("div",{className:"flex h-24 w-32 items-center justify-center gap-1 px-2 text-[11px] text-text-400",children:[h.jsx(Lo,{className:"h-3 w-3"}),h.jsx("span",{title:i.message,children:"加载失败"})]}):null,i.kind==="ready"?h.jsx("img",{src:i.objectUrl,alt:n,className:"block max-h-[180px] max-w-[420px] rounded-md object-contain"}):null]})}function C5({url:e,bearerToken:t,className:n}){const r=vx(e,t);return h.jsxs("div",{"data-testid":"blob-video","data-state":r.kind,className:ve("relative inline-flex items-center justify-center rounded-md border border-border bg-bg-0",n),children:[r.kind==="loading"?h.jsx(sr,{className:"h-4 w-4 animate-spin text-text-400"}):null,r.kind==="error"?h.jsx("span",{className:"px-2 text-[11px] text-text-400",children:"加载失败"}):null,r.kind==="ready"?h.jsx("video",{src:r.objectUrl,controls:!0,className:"block max-h-[240px] max-w-[420px] rounded-md"}):null]})}const I5=new Set([".png",".jpg",".jpeg",".gif",".webp",".svg"]),N5=new Set([".mp4",".webm",".mov"]),E5=new Set([".pdf"]);function T5(e){const t=e.lastIndexOf("."),n=t>=0?e.slice(t).toLowerCase():"";return I5.has(n)?"image":N5.has(n)?"video":E5.has(n)?"pdf":"binary"}function kx(e){return e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(1)} KB`:`${(e/1024/1024).toFixed(1)} MB`}function j5({relPath:e,scope:t,size:n}){const r=b5();if(r.actionsLevel==="none")return null;const i=S5(r,t,e);if(!i)return null;const o=T5(e);return o==="image"?h.jsx("div",{"data-testid":"file-edit-inline-preview","data-kind":"image",className:"mt-2",children:h.jsx(_5,{url:i,bearerToken:r.httpToken,alt:e})}):o==="video"?h.jsx("div",{"data-testid":"file-edit-inline-preview","data-kind":"video",className:"mt-2",children:h.jsx(C5,{url:i,bearerToken:r.httpToken})}):o==="pdf"?h.jsx(A5,{relPath:e,url:i,size:n}):typeof n=="number"&&n>=1024*1024?h.jsxs("div",{"data-testid":"file-edit-inline-preview","data-kind":"binary",className:"mt-2 inline-flex items-center gap-1.5 rounded border border-border bg-bg-50 px-2 py-1 text-[11px] text-text-400",children:[h.jsx(Cr,{className:"h-3 w-3"}),h.jsx("span",{className:"font-mono",children:e.split("/").pop()}),h.jsx("span",{children:"·"}),h.jsx("span",{children:kx(n)})]}):null}function A5({relPath:e,url:t,size:n}){return h.jsxs("a",{"data-testid":"file-edit-inline-preview","data-kind":"pdf",href:t,target:"_blank",rel:"noopener noreferrer",className:"mt-2 inline-flex items-center gap-1.5 rounded border border-border bg-bg-50 px-2 py-1 text-[11px] text-text-300 hover:bg-bg-100",children:[h.jsx(Cr,{className:"h-3 w-3"}),h.jsx("span",{className:"font-mono",children:e.split("/").pop()}),typeof n=="number"?h.jsxs(h.Fragment,{children:[h.jsx("span",{children:"·"}),h.jsx("span",{children:kx(n)})]}):null,h.jsx(Ru,{className:"h-3 w-3"})]})}const P5={Bash:e1,Read:Cr,Edit:Yk,Write:Lk,Grep:rp,Glob:rp};function R5(e){return P5[e]??kw}function z5(e){if(!e||typeof e!="object")return"";const t=e,n=t.command??t.file_path??t.path??t.pattern??t.query??t.url??t.description;if(typeof n=="string")return n;for(const r of Object.values(t))if(typeof r=="string"&&r)return r;return""}function M5({tool:e,input:t,output:n,error:r,pending:i=!1,expandedBody:o,fileScope:s,onOpenInTab:l,onPreviewMarkdown:a,onShareFile:u}){const[f,d]=U.useState(!1),m=!!r,p=R5(e),x=z5(t),b=v5(t);return h.jsxs("div",{"data-testid":"msg-line-tool","data-tool":e,className:ve("group min-w-0 max-w-full rounded-md border px-3 py-2 text-[13px]",m?"border-destructive/40 bg-destructive/5":"border-border bg-bg-50"),children:[h.jsxs("button",{type:"button",onClick:()=>d(I=>!I),"aria-expanded":f,"data-testid":"msg-line-tool-header",className:"flex w-full items-center gap-2 text-left cursor-pointer min-w-0",children:[m?h.jsx(Lo,{className:"w-4 h-4 text-destructive shrink-0"}):h.jsx(p,{className:ve("w-4 h-4 shrink-0",i?"text-text-400":"text-text-300")}),h.jsx("span",{className:"font-medium text-text-100 shrink-0",children:e}),x?(()=>{if(m||!oc(e)||!b)return null;const y=gx(b)&&a?a:l;return y?h.jsx("span",{role:"button",tabIndex:0,"data-testid":"msg-line-tool-preview","data-clickable":"true",title:x,onClick:v=>{v.stopPropagation(),y(b)},onKeyDown:v=>{(v.key==="Enter"||v.key===" ")&&(v.stopPropagation(),v.preventDefault(),y(b))},className:"text-[12px] text-accent font-mono truncate min-w-0 max-w-full cursor-pointer underline underline-offset-2 hover:opacity-80",children:x}):null})()??h.jsx("span",{"data-testid":"msg-line-tool-preview",className:"text-[12px] text-text-400 font-mono truncate min-w-0 max-w-full",title:x,children:x}):null,h.jsx("span",{"aria-hidden":"true","data-testid":"msg-line-tool-header-spacer",className:"flex-1 min-w-0 self-stretch"}),i?h.jsx(sr,{"data-testid":"msg-line-tool-pending",className:"w-3 h-3 text-text-400 animate-spin shrink-0"}):null,!m&&s?h.jsx(x5,{tool:e,relPath:b,scope:s,...u?{onShareFile:u}:{}}):null]}),f?o!==void 0?h.jsxs("div",{"data-testid":"msg-line-tool-body",className:"mt-2 min-w-0 text-[12px]",children:[o,m?h.jsxs("div",{className:"mt-2",children:[h.jsx("div",{className:"text-destructive mb-0.5",children:"error"}),h.jsx("pre",{className:"min-w-0 max-w-full bg-bg-0 border border-destructive/40 rounded p-2 overflow-auto text-destructive",children:String(r)})]}):null]}):h.jsxs("div",{"data-testid":"msg-line-tool-body",className:"mt-2 min-w-0 space-y-1 text-[12px]",children:[h.jsxs("div",{children:[h.jsx("div",{className:"text-text-400 mb-0.5",children:"input"}),h.jsx("pre",{className:"min-w-0 max-w-full bg-bg-0 border border-border rounded p-2 overflow-auto text-text-200",children:JSON.stringify(t,null,2)})]}),n!==void 0?h.jsxs("div",{children:[h.jsx("div",{className:"text-text-400 mb-0.5",children:"output"}),h.jsx("pre",{className:"min-w-0 max-w-full bg-bg-0 border border-border rounded p-2 overflow-auto text-text-200",children:typeof n=="string"?n:JSON.stringify(n,null,2)})]}):null,m?h.jsxs("div",{children:[h.jsx("div",{className:"text-destructive mb-0.5",children:"error"}),h.jsx("pre",{className:"min-w-0 max-w-full bg-bg-0 border border-destructive/40 rounded p-2 overflow-auto text-destructive",children:String(r)})]}):null]}):null,!m&&s&&b&&oc(e)?h.jsx(j5,{relPath:b,scope:s}):null]})}function L5({tool:e,input:t,onRespond:n,onInterrupt:r}){return h.jsxs("div",{"data-testid":"msg-line-permission",className:"min-w-0 max-w-full rounded-md border border-warning/40 bg-warning-dim/60 px-3 py-2.5 text-[13px]",children:[h.jsxs("div",{className:"flex min-w-0 items-center gap-2 mb-1.5",children:[h.jsx(uw,{className:"w-4 h-4 text-warning shrink-0"}),h.jsxs("span",{className:"min-w-0 font-medium text-text-100 truncate",children:["权限请求:",e]}),r?h.jsx("button",{type:"button",onClick:r,"data-testid":"msg-line-permission-interrupt","aria-label":"interrupt current turn",title:"中断当前轮次(不杀进程)",className:"ml-auto h-6 w-6 rounded-md flex items-center justify-center text-text-400 hover:bg-text-100/10 hover:text-text-200 transition-colors cursor-pointer",children:h.jsx(Qk,{className:"w-3.5 h-3.5",strokeWidth:2})}):null]}),h.jsx("pre",{className:"min-w-0 max-w-full bg-bg-0 border border-border rounded p-2 mb-2 max-h-[140px] overflow-auto text-[12px] text-text-200",children:JSON.stringify(t,null,2)}),h.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[h.jsx(Xn,{size:"sm",variant:"default",onClick:()=>n(!0,!1),"data-testid":"msg-line-permission-allow",children:"Allow"}),h.jsx(Xn,{size:"sm",variant:"outline",onClick:()=>n(!0,!0),"data-testid":"msg-line-permission-allow-always",children:"Allow Always"}),h.jsx(Xn,{size:"sm",variant:"destructive",onClick:()=>n(!1,!1),"data-testid":"msg-line-permission-deny",children:"Deny"})]})]})}function O5({message:e}){return h.jsxs("div",{"data-testid":"msg-line-error",className:"flex min-w-0 max-w-full items-start gap-2 text-destructive text-[13px] rounded-md border border-destructive/40 bg-destructive/5 px-3 py-2",children:[h.jsx(t1,{className:"w-4 h-4 shrink-0 mt-0.5"}),h.jsx("span",{className:"min-w-0 whitespace-pre-wrap break-words [overflow-wrap:anywhere]",children:e})]})}const Cm=/\[attachment:(image|file):([^\]]+)\]/g;function Im(e){try{return decodeURIComponent(e)}catch{return e}}function D5(e){var n,r;if(e.startsWith("data:")){const i=e.slice(5,e.indexOf(",")),o=(n=/;name=([^;]+)/i.exec(i))==null?void 0:n[1];if(o)return Im(o);const s=(r=i.split(";")[0])==null?void 0:r.toLowerCase(),l={"text/plain":"txt","application/pdf":"pdf","image/png":"png","image/jpeg":"jpg","image/gif":"gif","image/webp":"webp"}[s??""];return(s!=null&&s.startsWith("image/")?"图片":"附件")+(l?"."+l:"")}const t=e.split(/[?#]/,1)[0];return Im(t.split("/").pop()||"附件")}function F5(e){const t=[];let n;for(;(n=Cm.exec(e))!==null;){const i=n[2],o=D5(i);t.push({type:n[1],url:i,fileName:o})}const r=e.replace(Cm,"").trim();return{attachments:t,text:r}}const $5=/\[skill:(.+?):(\/[^\]]+)\]/g;function U5(e){const t=[],n=e.replace($5,(r,i)=>(t.push(i),""));return{skills:t,text:t.length>0?n.trim():e}}function B5({text:e,senderDisplayName:t,senderPrincipal:n,rewindTarget:r}){const i=n==="guest",o=ty(e),{attachments:s,text:l}=F5(o),{skills:a,text:u}=U5(l),{commandName:f,body:d}=Dd(u),m=d.length>0;return m||s.length>0||!!f||a.length>0?(f||a.length>0)&&!m&&s.length===0?h.jsxs("div",{className:"flex min-w-0 max-w-full justify-end gap-1.5 py-2 mt-2","data-testid":"msg-line-user","data-sender-principal":i?"guest":"owner",children:[a.map((x,b)=>h.jsxs("span",{"data-testid":"user-skill-chip",className:"inline-flex items-center rounded-md bg-bg-200/60 px-2 py-0.5 text-[11px] font-mono text-text-300",children:["/",x]},`${x}-${b}`)),f?h.jsx("span",{className:"inline-flex items-center rounded-md bg-bg-200/60 px-2 py-0.5 text-[11px] font-mono text-text-300",children:f}):null]}):h.jsxs("div",{className:"group flex min-w-0 max-w-full flex-col items-end py-2 mt-2","data-testid":"msg-line-user","data-sender-principal":i?"guest":"owner",children:[h.jsxs("div",{"data-testid":"user-msg-bubble",className:ve("min-w-0 max-w-[85%] rounded-2xl rounded-br-sm px-3.5 py-2 whitespace-pre-wrap break-words [overflow-wrap:anywhere]",i?"border border-border bg-bg-200":"bg-accent"),children:[s.length>0?h.jsx(V5,{attachments:s}):null,a.length>0?h.jsx("div",{className:ve("flex flex-wrap gap-1.5",(m||f)&&"mb-1.5"),children:a.map((x,b)=>h.jsxs("span",{"data-testid":"user-skill-chip",className:ve("inline-flex items-center rounded-md px-2 py-0.5 text-[11px] font-mono",i?"bg-text-100/10 text-text-200":"bg-white/15 text-white/90"),children:["/",x]},`${x}-${b}`))}):null,f?h.jsx("div",{className:ve("flex",m&&"mb-1.5"),children:h.jsx("span",{"data-testid":"user-command-chip",className:ve("inline-flex items-center rounded-md px-2 py-0.5 text-[11px] font-mono",i?"bg-text-100/10 text-text-200":"bg-white/15 text-white/90"),children:f})}):null,m?h.jsx("div",{className:ve("text-[14px] font-medium leading-relaxed",i?"text-text-100":"text-white"),children:d}):null]}),t?h.jsx("div",{"data-testid":"user-msg-sender-label",className:"mt-1 text-[11px] text-text-400",children:t}):null,r?h.jsxs("button",{type:"button","data-testid":"user-msg-rewind","aria-label":"rewind to this message",title:"回退到这条消息(会撤销之后 CC 的文件编辑)",onClick:()=>r.onRewind(r.userMessageId),className:"mt-1 inline-flex items-center gap-1 h-6 px-1.5 rounded-md text-[11px] text-text-400 hover:bg-text-100/5 hover:text-text-200 opacity-0 group-hover:opacity-100 transition-opacity cursor-pointer",children:[h.jsx(xw,{className:"w-3 h-3",strokeWidth:2}),h.jsx("span",{children:"Rewind"})]}):null]}):null}function V5({attachments:e}){return h.jsx("div",{className:"flex flex-wrap gap-1.5 mb-1.5","data-testid":"user-attachment-row",children:e.map(t=>h.jsx(H5,{attachment:t},t.url))})}function H5({attachment:e}){return e.type==="image"?h.jsx("img",{src:e.url,alt:e.fileName,"data-testid":"user-attachment-image",className:"h-16 w-16 rounded object-cover shrink-0 border border-bg-300/50"}):h.jsxs("div",{"data-testid":"user-attachment-file",className:"flex items-center gap-1.5 rounded-md border border-bg-300 bg-bg-100/60 px-2 py-1 text-[12px] text-text-200",children:[h.jsx(Cr,{className:"h-3.5 w-3.5 text-text-400 shrink-0"}),h.jsx("span",{className:"max-w-[140px] truncate",children:e.fileName})]})}const q5={"task-notification":"子任务通知","slash-command":"斜杠命令","local-command":"本地命令输出","system-reminder":"系统提醒","skill-hint":"Skill 注入","meta-text":"系统消息","attachment-skills":"技能列表","attachment-deferred-tools":"Deferred 工具变更","dispatch-task":"委派任务","dispatch-result":"委派回报"},W5={"task-notification":np,"slash-command":mw,"local-command":e1,"system-reminder":np,"skill-hint":ip,"meta-text":Xg,"attachment-skills":ip,"attachment-deferred-tools":Jk,"dispatch-task":Jg,"dispatch-result":Yg};function wx({metaKind:e,text:t}){const[n,r]=U.useState(!1),i=W5[e];if(e==="slash-command"){const{commandName:s,commandMessage:l,commandArgs:a,body:u}=Dd(t),f=s??(l?`/${l}`:null),d=!!(a&&a.length>0),m=u.length>0;return!f&&!d&&!m?null:h.jsxs("div",{"data-testid":"msg-line-user-meta","data-meta-kind":e,className:"flex min-w-0 max-w-full flex-col items-end gap-0.5 py-1",children:[h.jsxs("div",{className:"flex min-w-0 items-center gap-2 max-w-full",children:[f?h.jsxs("span",{className:"inline-flex items-center gap-1.5 rounded-md bg-bg-200/60 px-2 py-0.5 text-[11px] font-mono text-text-300 shrink-0",children:[h.jsx(i,{className:"w-3 h-3 opacity-70"}),f]}):null,d?h.jsx("span",{"data-testid":"user-meta-command-args",className:"min-w-0 text-[12px] text-text-200 whitespace-pre-wrap break-words max-w-[70ch] [overflow-wrap:anywhere]",children:a}):null]}),m?h.jsx("span",{className:"ml-2 max-w-[60%] truncate text-[11px] text-text-400",children:u}):null]})}const o=t.replace(/\s+/g," ").trim().slice(0,80);return h.jsxs("div",{"data-testid":"msg-line-user-meta","data-meta-kind":e,className:"flex min-w-0 max-w-full flex-col items-start gap-1 py-1",children:[h.jsxs("button",{type:"button","aria-expanded":n,onClick:()=>r(s=>!s),className:ve("group inline-flex items-center gap-1.5 rounded-md border border-bg-200/60 bg-bg-100/40","px-2 py-1 text-[11px] text-text-400 hover:bg-bg-200/40 transition-colors max-w-full"),children:[h.jsx(i,{className:"w-3 h-3 opacity-70 shrink-0"}),h.jsx("span",{className:"font-medium shrink-0",children:q5[e]}),h.jsx("span",{className:"truncate text-text-400/80 max-w-[60ch]",children:o}),n?h.jsx(sn,{className:"w-3 h-3 opacity-60 shrink-0"}):h.jsx(ln,{className:"w-3 h-3 opacity-60 shrink-0"})]}),n?h.jsx("pre",{"data-testid":"user-meta-body",className:"w-full max-w-full whitespace-pre-wrap break-words text-[11px] text-text-400 bg-bg-50/60 rounded-md p-2 border border-bg-200/60 [overflow-wrap:anywhere]",children:t}):null]})}function Z5(e){return e.ordinal===null?e.label:`#${e.ordinal} ${e.label}`}function G5({text:e,metaKind:t,resolveDispatchOrigin:n,onOpenSession:r,onOpenFilePath:i}){const o=U.useMemo(()=>e_(e),[e]);return o.length===0?h.jsx(wx,{metaKind:t,text:e}):h.jsx("div",{"data-testid":"msg-line-dispatch-group",className:"my-1 flex min-w-0 max-w-full flex-col gap-1.5",children:o.map((s,l)=>h.jsx(X5,{block:s,...n?{resolveDispatchOrigin:n}:{},...r?{onOpenSession:r}:{},...i?{onOpenFilePath:i}:{}},`${s.kind}-${s.dispatchId}-${l}`))})}function Q5(e){return e.length<=24?e:`${e.slice(0,12)}…${e.slice(-6)}`}function Nm({origin:e}){const t=[];if(e.line&&t.push(h.jsx("span",{"data-testid":"dispatch-origin-line","data-line-ordinal":e.line.ordinal??"",className:"min-w-0 truncate tabular-nums text-text-300",children:Z5(e.line)},"line")),t.push(h.jsxs("span",{"data-testid":"dispatch-origin-persona","data-persona-id":e.persona.id,className:"inline-flex min-w-0 items-baseline gap-1",children:[e.persona.label?h.jsxs(h.Fragment,{children:[h.jsx("span",{className:"truncate text-text-200",children:e.persona.label})," "]}):null,h.jsx("span",{className:"truncate font-mono text-[10px] text-text-400",children:e.persona.id})]},"persona")),e.device){const n=e.device;t.push(h.jsxs("span",{"data-testid":"dispatch-origin-device","data-device-id":n.id,title:n.id,className:"inline-flex min-w-0 items-baseline gap-1",children:[h.jsx(Bk,{className:"h-3 w-3 shrink-0 translate-y-[2px] text-text-400"}),n.displayName?h.jsxs(h.Fragment,{children:[h.jsx("span",{className:"truncate text-text-200",children:n.displayName})," "]}):null,h.jsx("span",{className:"truncate font-mono text-[10px] text-text-400",children:Q5(n.id)})]},"device"))}return h.jsxs("span",{className:"inline-flex min-w-0 flex-wrap items-baseline",children:[h.jsx("span",{className:"shrink-0 whitespace-pre text-text-400",children:"来自 "}),t.map((n,r)=>h.jsxs(Ao.Fragment,{children:[r>0?h.jsx("span",{className:"shrink-0 whitespace-pre text-text-400",children:" · "}):null,n]},r))]})}function K5({origin:e,onOpenSession:t,seam:n}){const r=ve("flex w-full min-w-0 items-center gap-2 border-t bg-bg-200/35 px-3 py-1 text-left text-[10px] leading-relaxed",n),i=e.sessionId;return!i||!t?h.jsxs("div",{"data-testid":"dispatch-origin","data-openable":"false",className:r,children:[h.jsx(Nm,{origin:e}),e.unreachable?h.jsx("span",{"data-testid":"dispatch-origin-unreachable",className:"ml-auto inline-flex shrink-0 items-center gap-1 text-text-400",children:e.unreachable==="remote-device"?"会话在对端设备":"会话已删除"}):null]}):h.jsxs("button",{type:"button","data-testid":"dispatch-origin","data-openable":"true","data-session-id":i,onClick:()=>t(i),title:"打开这条会话",className:ve(r,"group cursor-pointer transition-colors hover:bg-bg-200/70"),children:[h.jsx("span",{className:"min-w-0 group-hover:underline group-hover:decoration-text-400 group-hover:underline-offset-2",children:h.jsx(Nm,{origin:e})}),h.jsxs("span",{className:"ml-auto inline-flex shrink-0 items-center gap-0.5 text-text-400 transition-colors group-hover:text-text-100",children:["打开会话",h.jsx(xk,{className:"h-3 w-3"})]})]})}function Y5(e){return e?{shell:"border-error/40 bg-error-dim",rail:"bg-error/55",hover:"hover:bg-error/10",icon:"text-error",title:"text-error",chevron:"text-error/70",seam:"border-error/25"}:{shell:"border-accent/35 bg-accent-dim",rail:"bg-accent/45",hover:"hover:bg-accent/10",icon:"text-accent",title:"text-accent",chevron:"text-accent/70",seam:"border-accent/20"}}function X5({block:e,resolveDispatchOrigin:t,onOpenSession:n,onOpenFilePath:r}){const[i,o]=U.useState(!1),s=U.useMemo(()=>r?xx(r):jr,[r]),l=e.kind==="task",a=(t==null?void 0:t(e.dispatchId,e.from))??(e.from?{persona:{id:e.from}}:void 0),u=l&&typeof e.round=="number"&&e.round>=2,f=e.status==="failure",d=Y5(f);return h.jsxs("div",{"data-testid":"msg-line-dispatch","data-dispatch-kind":e.kind,"data-dispatch-id":e.dispatchId,"data-round":e.round??"","data-status":e.status??"","data-open":i?"true":"false",className:ve("flex min-w-0 max-w-full overflow-hidden rounded-lg border",d.shell),children:[h.jsx("span",{"data-testid":"dispatch-rail","aria-hidden":"true",className:ve("w-[3px] shrink-0 self-stretch",d.rail)}),h.jsxs("div",{className:"flex min-w-0 flex-1 flex-col",children:[h.jsxs("button",{type:"button","aria-expanded":i,onClick:()=>o(m=>!m),className:ve("flex w-full min-w-0 cursor-pointer items-start gap-2 px-3 py-2 text-left transition-colors",d.hover),children:[h.jsx("span",{className:ve("mt-[2px] shrink-0",d.icon),children:l?h.jsx(Jg,{className:"h-3.5 w-3.5"}):h.jsx(Yg,{className:"h-3.5 w-3.5"})}),h.jsxs("span",{className:"min-w-0 flex-1",children:[h.jsxs("span",{"data-testid":"dispatch-header",className:"flex flex-wrap items-center gap-x-2 gap-y-1",children:[h.jsx("span",{className:ve("text-[12px] font-semibold",d.title),children:l?"委派任务":"委派回报"}),u?h.jsxs("span",{"data-testid":"dispatch-round",className:"inline-flex items-center gap-1 rounded-md bg-bg-200/70 px-1.5 py-0.5 text-[10px] text-text-300",children:[h.jsx(rw,{className:"h-3 w-3"}),"续派第 ",e.round," 轮"]}):null,f?h.jsxs("span",{"data-testid":"dispatch-status",className:"inline-flex items-center gap-1 text-[11px] text-error",children:[h.jsx(Lo,{className:"h-3.5 w-3.5"}),"失败"]}):null,e.filePaths.length>0?h.jsxs("span",{"data-testid":"dispatch-file-count",className:"inline-flex items-center gap-1 text-[11px] text-text-400",children:[h.jsx(Cr,{className:"h-3 w-3"}),e.filePaths.length," 个产物"]}):null]}),h.jsx("span",{"data-testid":"dispatch-brief",className:"mt-1 block whitespace-pre-wrap break-words text-[12px] leading-relaxed text-text-200 [overflow-wrap:anywhere]",children:e.brief}),e.briefIsDerived?h.jsxs("span",{"data-testid":"dispatch-brief-derived",title:"发送方没写摘要,这段是从正文首段自动截取的",className:"mt-1 inline-flex items-center gap-1 text-[10px] text-text-400 italic",children:[h.jsx(dw,{className:"h-2.5 w-2.5"}),"自动摘要(发送方未填)"]}):null]}),h.jsx("span",{className:ve("mt-[3px] shrink-0",d.chevron),children:i?h.jsx(sn,{className:"h-3.5 w-3.5"}):h.jsx(ln,{className:"h-3.5 w-3.5"})})]}),a?h.jsx(K5,{origin:a,...n?{onOpenSession:n}:{},seam:d.seam}):null,i?h.jsxs(h.Fragment,{children:[h.jsx("div",{"data-testid":"dispatch-body",className:ve("min-w-0 space-y-2 border-t bg-bg-200/35 py-2.5 pl-4 pr-3",d.seam),children:h.jsxs("div",{"data-testid":"dispatch-detail-indent",className:"min-w-0 border-l border-border/70 pl-3",children:[h.jsx("div",{"data-testid":"dispatch-detail",className:"assistant-markdown markdown-attached min-w-0 break-words",children:h.jsx(Io,{remarkPlugins:[Eo],components:s,...r?{urlTransform:yx}:{},children:e.detail})}),e.filePaths.length>0?h.jsxs("div",{"data-testid":"dispatch-files",className:"flex min-w-0 flex-col gap-1 pt-2",children:[h.jsx("span",{className:"text-[11px] text-text-400",children:"产物"}),e.filePaths.map(m=>h.jsx(J5,{path:m,...r?{onOpenFilePath:r}:{}},m))]}):null]})}),h.jsxs("button",{type:"button","data-testid":"dispatch-collapse-foot",onClick:()=>o(!1),className:ve("flex w-full cursor-pointer items-center justify-between gap-2 border-t bg-bg-200/35 px-3 py-1 text-[10px] text-text-400 transition-colors hover:bg-bg-200/60",d.seam),children:[h.jsx("span",{className:"min-w-0 truncate",children:e.dispatchId?h.jsxs(h.Fragment,{children:[h.jsx("span",{children:"台账 "}),h.jsx("span",{"data-testid":"dispatch-id",className:"font-mono",children:e.dispatchId})]}):null}),h.jsxs("span",{className:"inline-flex shrink-0 items-center gap-1",children:["收起",h.jsx(Tk,{className:"h-3 w-3"})]})]})]}):null]})]})}function J5({path:e,onOpenFilePath:t}){const n="inline-flex min-w-0 items-center gap-1.5 text-left text-[11px] font-mono text-text-300";return t?h.jsxs("button",{type:"button","data-testid":"dispatch-file-path",title:e,onClick:()=>t(e),className:ve(n,"hover:text-text-100 hover:underline"),children:[h.jsx(Cr,{className:"h-3 w-3 shrink-0 text-text-400"}),h.jsx("span",{className:"truncate",children:e})]}):h.jsxs("span",{"data-testid":"dispatch-file-path",title:e,className:n,children:[h.jsx(Cr,{className:"h-3 w-3 shrink-0 text-text-400"}),h.jsx("span",{className:"truncate",children:e})]})}const ej=g({usedBytes:T().int().nonnegative(),sizeBytes:T().int().positive(),measuredAt:T().int().nonnegative()}).strict();g({volume:ej.nullable()}).strict();const bx={".png":"image/png",".jpg":"image/jpeg",".jpeg":"image/jpeg",".gif":"image/gif",".webp":"image/webp",".pdf":"application/pdf",".txt":"text/plain",".md":"text/plain",".markdown":"text/plain",".csv":"text/plain",".log":"text/plain",".json":"application/json",".xml":"application/xml",".yaml":"application/yaml",".yml":"application/yaml",".html":"text/html",".conf":"text/plain",".cfg":"text/plain",".ini":"text/plain",".toml":"text/plain"},tj=new Set([...Object.values(bx),"application/x-yaml"]);[...tj,"text/*",...Object.keys(bx)].join(",");const nj=["daemon","main","renderer"],rj=J(nj),ij=["debug","info","warn","error"],oj=J(ij);g({ts:T().int(),source:rj,level:oj,msg:c(),ownerPrincipalId:c(),deviceId:c(),appVersion:c(),daemonVersion:c().optional(),os:c(),meta_json:c().optional(),sessionId:c().optional()});g({v:R(1),visitorId:c().min(1),displayName:c(),provider:c(),iat:T(),exp:T()});const sj=g({visitorId:c(),displayName:c(),avatarUrl:c().optional(),provider:c(),firstSeen:T(),lastSeen:T()});g({visitors:M(sj)});function lj({text:e,metaSource:t}){return t==="owner"?h.jsx("div",{className:"flex min-w-0 max-w-full flex-col items-start py-1.5","data-testid":"msg-line-owner-meta",children:h.jsxs("div",{className:ve("inline-flex min-w-0 max-w-[85%] items-start gap-2 rounded-md","border-l-[3px] border-accent bg-accent-dim px-3 py-2"),children:[h.jsx(Zk,{className:"mt-0.5 h-3.5 w-3.5 shrink-0 text-accent","aria-label":"补充信息"}),h.jsx("span",{className:"min-w-0 text-[12px] leading-relaxed text-text-100 whitespace-pre-wrap break-words [overflow-wrap:anywhere]",children:e})]})}):h.jsxs("div",{className:"flex min-w-0 max-w-full items-start gap-1.5 py-1 text-[11px] text-text-400","data-testid":"msg-line-cc-meta",children:[h.jsx(Xg,{className:"mt-0.5 h-3 w-3 shrink-0"}),h.jsx("span",{className:"min-w-0 whitespace-pre-wrap break-words [overflow-wrap:anywhere]",children:e})]})}function Kt(e,t){const r=new RegExp(`<${t}\\b[^>]*>([\\s\\S]*?)</${t}>`,"i").exec(e);if(!r)return;const i=r[1].trim();return i||void 0}function $a(e,t){const r=new RegExp(`${t}\\s*=\\s*"([^"]+)"`,"i").exec(e);if(!r)return;const i=Number(r[1]);return Number.isFinite(i)?i:void 0}function Sx(e){var i,o,s;const t={};if(!e)return t;t.taskId=Kt(e,"task-id"),t.toolUseId=Kt(e,"tool-use-id"),t.outputFile=Kt(e,"output-file"),t.status=Kt(e,"status"),t.summary=Kt(e,"summary"),t.result=Kt(e,"result");const n=Kt(e,"usage");if(n){const l=(i=/<total_tokens>\s*(\d+)\s*<\/total_tokens>/i.exec(n))==null?void 0:i[1],a=(o=/<tool_uses>\s*(\d+)\s*<\/tool_uses>/i.exec(n))==null?void 0:o[1],u=(s=/<duration_ms>\s*(\d+)\s*<\/duration_ms>/i.exec(n))==null?void 0:s[1];l&&(t.totalTokens=Number(l)),a&&(t.toolUses=Number(a)),u&&(t.durationMs=Number(u))}const r=Kt(e,"worktree");if(r)t.worktreePath=Kt(r,"worktreePath"),t.worktreeBranch=Kt(r,"worktreeBranch");else{const l=/<worktree\b([^>]*)\/>/i.exec(e);if(l){const a=l[1],u=/worktreePath\s*=\s*"([^"]+)"/i.exec(a),f=/worktreeBranch\s*=\s*"([^"]+)"/i.exec(a);u&&(t.worktreePath=u[1]),f&&(t.worktreeBranch=f[1])}}if(t.totalTokens===void 0&&t.toolUses===void 0&&t.durationMs===void 0){const l=$a(e,"total_tokens"),a=$a(e,"tool_uses"),u=$a(e,"duration_ms");l!==void 0&&(t.totalTokens=l),a!==void 0&&(t.toolUses=a),u!==void 0&&(t.durationMs=u)}return t}function aj(e){if(!e||!Number.isFinite(e))return null;if(e<1e3)return`${e}ms`;const t=e/1e3;if(t<60)return`${t.toFixed(1)}s`;const n=Math.floor(t/60),r=Math.round(t-n*60);return`${n}m${r.toString().padStart(2,"0")}s`}function uj({text:e,taskId:t,parentToolUseId:n}){const r=U.useMemo(()=>Sx(e),[e]),[i,o]=U.useState(!1),s=t??r.taskId,l=n??r.toolUseId,a=r.status==="failed"?h.jsx(Lo,{className:"w-3.5 h-3.5 text-error"}):r.status==="completed"?h.jsx(Qg,{className:"w-3.5 h-3.5 text-success"}):h.jsx(Sk,{className:"w-3.5 h-3.5 text-text-400"}),u=r.status??"unknown",f=aj(r.durationMs);return h.jsxs("div",{"data-testid":"msg-line-agent-notification","data-task-id":s??"","data-parent-tool-use-id":l??"",className:"my-1 min-w-0 max-w-full rounded-md border border-bg-200/60 bg-bg-100/40",children:[h.jsxs("button",{type:"button","aria-expanded":i,onClick:()=>o(d=>!d),className:ve("flex w-full min-w-0 items-start gap-2 px-2.5 py-1.5 text-left text-[12px]","hover:bg-bg-200/40 rounded-md transition-colors"),children:[h.jsx("span",{className:"mt-[2px] shrink-0",children:a}),h.jsxs("span",{className:"flex-1 min-w-0",children:[h.jsxs("span",{className:"flex items-center gap-2 flex-wrap",children:[h.jsx("span",{className:"font-medium text-text-200",children:"子任务"}),h.jsx("span",{className:"text-text-400 text-[11px] font-mono",children:s?s.slice(0,12):"未知"}),h.jsx("span",{className:"text-text-400 text-[11px] uppercase tracking-wide",children:u}),f?h.jsxs("span",{className:"text-text-400 text-[11px] tabular-nums",children:["· ",f]}):null,r.totalTokens?h.jsxs("span",{className:"text-text-400 text-[11px] tabular-nums",children:["· ",r.totalTokens," tok"]}):null,r.toolUses?h.jsxs("span",{className:"text-text-400 text-[11px] tabular-nums",children:["· ",r.toolUses," tools"]}):null]}),r.summary?h.jsx("span",{className:"block truncate text-text-300 text-[12px] mt-0.5",children:r.summary}):null]}),i?h.jsx(sn,{className:"w-3.5 h-3.5 mt-[3px] text-text-400 shrink-0"}):h.jsx(ln,{className:"w-3.5 h-3.5 mt-[3px] text-text-400 shrink-0"})]}),i?h.jsxs("div",{"data-testid":"agent-notification-body",className:"min-w-0 border-t border-bg-200/60 px-3 py-2 text-[12px] text-text-300 space-y-2",children:[r.worktreePath||r.worktreeBranch?h.jsxs("div",{className:"flex items-center gap-2 text-[11px] text-text-400",children:[h.jsx(Kg,{className:"w-3 h-3"}),r.worktreeBranch?h.jsx("span",{className:"font-mono",children:r.worktreeBranch}):null,r.worktreePath?h.jsx("span",{className:"truncate font-mono",children:r.worktreePath}):null]}):null,r.outputFile?h.jsxs("div",{className:"text-[11px] text-text-400",children:[h.jsx("span",{children:"输出文件:"}),h.jsx("span",{className:"font-mono",children:r.outputFile})]}):null,l?h.jsxs("div",{className:"text-[11px] text-text-400",children:[h.jsx("span",{children:"父工具调用:"}),h.jsx("span",{className:"font-mono",children:l})]}):null,r.result?h.jsx("div",{"data-testid":"agent-notification-result",className:"assistant-markdown text-[12px] leading-relaxed break-words",children:h.jsx(Io,{remarkPlugins:[Eo],components:jr,children:r.result})}):h.jsx("div",{className:"text-[11px] text-text-400 italic",children:"无详细结果"})]}):null]})}const cj=U.createContext(null);function dj(){return U.useContext(cj)}function fj(e){if(e==null)return null;if(typeof e=="string")return e;if(Array.isArray(e)){const t=[];for(const n of e)if(n&&typeof n=="object"){const r=n;r.type==="text"&&typeof r.text=="string"&&t.push(r.text)}else typeof n=="string"&&t.push(n);return t.length?t.join(`
306
- `):null}if(typeof e=="object"){const t=e;if(typeof t.text=="string")return t.text}return null}function Em(e){if(!e||!Number.isFinite(e))return null;if(e<1e3)return`${e}ms`;const t=e/1e3;if(t<60)return`${t.toFixed(1)}s`;const n=Math.floor(t/60),r=Math.round(t-n*60);return`${n}m${r.toString().padStart(2,"0")}s`}function pj(e){return!e||!Number.isFinite(e)?null:e<1e3?`${e} tok`:e<1e4?`${(e/1e3).toFixed(1)}k tok`:`${Math.round(e/1e3)}k tok`}const mj={readCount:"read",searchCount:"search",bashCount:"bash",editFileCount:"edit",linesAdded:"+lines",linesRemoved:"-lines",otherToolCount:"other"};function hj(e){if(!e)return[];const t=[];for(const[n,r]of Object.entries(e)){if(!r||r<=0)continue;const i=mj[n]??n;t.push(`${i}:${r}`)}return t}function gj({expandable:e,expanded:t,onToggle:n,children:r}){const i=ve("flex w-full min-w-0 items-center gap-2 px-2.5 py-1.5 text-left text-[13px] rounded-md",e&&"hover:bg-bg-200/40 transition-colors");return e?h.jsx("button",{type:"button","aria-expanded":t,onClick:n,className:i,children:r}):h.jsx("div",{className:i,children:r})}function yj({description:e,input:t,output:n,error:r,pending:i,notifications:o,toolResultExtra:s,progress:l,expandable:a=!0}){const[u,f]=U.useState(!1),d=dj(),m=U.useMemo(()=>{if(!t||typeof t!="object")return null;const z=t;return typeof z.prompt=="string"?z.prompt:null},[t]),p=U.useMemo(()=>{if(!t||typeof t!="object")return;const z=t.agentId;return typeof z=="string"&&z.length>0?z:void 0},[t]),x=(s==null?void 0:s.prompt)??m,b=U.useMemo(()=>fj(n),[n]),I=s==null?void 0:s.stats,y=l==null?void 0:l.stats,v=Em((I==null?void 0:I.durationMs)??(y==null?void 0:y.durationMs)),w=pj((I==null?void 0:I.tokens)??(y==null?void 0:y.tokens)),N=hj(I==null?void 0:I.toolStats),j=Tb({pending:i,error:r,notifications:o,progress:l,input:t}),S=j&&(l!=null&&l.lastToolName)?`now:${l.lastToolName}`:null,A=!!(s!=null&&s.agentType||v||w||N.length>0||S),E=(s==null?void 0:s.agentId)??(l==null?void 0:l.agentId)??p,$=!!(r||(l==null?void 0:l.status)==="failed"),C=U.useMemo(()=>o.map(z=>({taskId:z.taskId,text:z.text,parsed:Sx(z.text)})),[o]),O=$?h.jsx(Lo,{className:"w-3.5 h-3.5 text-error"}):j?h.jsx(sr,{className:"w-3.5 h-3.5 text-blue-400 animate-spin"}):h.jsx(Qg,{className:"w-3.5 h-3.5 text-green-500"});return h.jsxs("div",{"data-testid":"msg-line-agent-call","data-pending":i?"true":"false","data-active":j?"true":"false","data-has-error":$?"true":"false","data-notification-count":o.length,"data-has-stats":A?"true":"false","data-agent-id":E??"",className:"my-1 min-w-0 max-w-full rounded-md border border-bg-200/60 bg-bg-100/30",children:[h.jsxs(gj,{expandable:a,expanded:u,onToggle:()=>f(z=>!z),children:[h.jsx("span",{className:"w-5 h-5 flex items-center justify-center text-[10px] rounded bg-violet-500/10 text-violet-500 shrink-0","aria-hidden":!0,children:h.jsx(bw,{className:"w-3 h-3"})}),h.jsx("span",{className:"shrink-0",children:O}),h.jsx("span",{className:"flex-1 min-w-0 truncate font-medium text-text-200",children:e}),A?null:o.length>0?h.jsxs("span",{className:"text-[11px] text-text-400 tabular-nums shrink-0",children:[o.length," 次通知"]}):null,E&&(d!=null&&d.open)?h.jsx("span",{role:"button",tabIndex:0,"data-testid":"open-subagent-btn-header","data-agent-id":E,"aria-label":"打开子 agent 对话",onClick:z=>{z.stopPropagation(),d.open(E,s==null?void 0:s.agentType)},onKeyDown:z=>{(z.key==="Enter"||z.key===" ")&&(z.stopPropagation(),z.preventDefault(),d.open(E,s==null?void 0:s.agentType))},className:"shrink-0 inline-flex items-center justify-center w-3.5 h-3.5 text-text-400 hover:text-text-200",children:h.jsx(Ru,{className:"w-3.5 h-3.5"})}):null,a?u?h.jsx(sn,{className:"w-3.5 h-3.5 text-text-400 shrink-0"}):h.jsx(ln,{className:"w-3.5 h-3.5 text-text-400 shrink-0"}):null]}),j&&(l!=null&&l.description)?h.jsx("div",{"data-testid":"agent-call-progress-desc",className:"px-3 pt-0 pb-1 text-[12px] text-text-300 truncate",children:l.description}):null,A?h.jsxs("div",{"data-testid":"agent-call-stats",className:"flex items-center gap-1.5 flex-wrap px-3 pb-1.5 pt-0 text-[11px] text-text-400",children:[s!=null&&s.agentType?h.jsx("span",{"data-testid":"agent-call-stats-type",className:"inline-flex items-center rounded-sm bg-violet-500/10 px-1.5 py-0.5 text-violet-400 font-medium",children:s.agentType}):null,v?h.jsx("span",{className:"tabular-nums",children:v}):null,w?h.jsx("span",{className:"tabular-nums",children:w}):null,S?h.jsx("span",{"data-testid":"agent-call-stats-now",className:"font-mono tabular-nums text-blue-400",children:S}):null,N.map(z=>h.jsx("span",{className:"font-mono tabular-nums text-text-400/80",children:z},z)),o.length>0?h.jsxs("span",{className:"tabular-nums text-text-400/70",children:["· ",o.length," 次通知"]}):null]}):null,u?h.jsxs("div",{"data-testid":"agent-call-body",className:"min-w-0 border-t border-bg-200/60 px-3 py-2 space-y-3",children:[r?h.jsx("div",{className:"text-[12px] text-error whitespace-pre-wrap",children:r}):null,C.map((z,oe)=>{const Z=z.parsed,te=Em(Z.durationMs);return h.jsxs("div",{"data-testid":"agent-call-notification","data-task-id":z.taskId??"",className:"min-w-0 rounded-md border border-bg-200/60 bg-bg-0/40 p-2 space-y-1.5",children:[h.jsxs("div",{className:"flex items-center gap-2 text-[11px] text-text-400 flex-wrap",children:[h.jsx("span",{className:"font-mono",children:(z.taskId??Z.taskId??"未知").slice(0,12)}),h.jsx("span",{className:"uppercase tracking-wide",children:Z.status??"unknown"}),te?h.jsxs("span",{className:"tabular-nums",children:["· ",te]}):null,Z.totalTokens?h.jsxs("span",{className:"tabular-nums",children:["· ",Z.totalTokens," tok"]}):null,Z.toolUses?h.jsxs("span",{className:"tabular-nums",children:["· ",Z.toolUses," tools"]}):null,Z.worktreeBranch?h.jsxs("span",{className:"font-mono",children:["· ",Z.worktreeBranch]}):null]}),Z.summary?h.jsx("div",{className:"text-[12px] text-text-300",children:Z.summary}):null,Z.result?h.jsx("div",{"data-testid":"agent-call-notification-result",className:"assistant-markdown text-[12px] leading-relaxed break-words",children:h.jsx(Io,{remarkPlugins:[Eo],components:jr,children:Z.result})}):null]},`${z.taskId??"n"}-${oe}`)}),x?h.jsxs("div",{"data-testid":"agent-call-prompt-block",className:"min-w-0 space-y-1",children:[h.jsx("div",{className:"text-[11px] text-text-400 font-medium",children:"任务指令"}),h.jsx("pre",{"data-testid":"agent-call-prompt",className:"max-w-full whitespace-pre-wrap break-words text-[11px] text-text-300 bg-bg-50/60 rounded p-2 border border-bg-200/60 max-h-64 overflow-auto [overflow-wrap:anywhere]",children:x})]}):null,b?h.jsxs("div",{"data-testid":"agent-call-result-block",className:"min-w-0 space-y-1",children:[h.jsx("div",{className:"text-[11px] text-text-400 font-medium",children:"子 agent 报告"}),h.jsx("div",{"data-testid":"agent-call-result",className:"assistant-markdown text-[12px] leading-relaxed break-words",children:h.jsx(Io,{remarkPlugins:[Eo],components:jr,children:b})})]}):null,!b&&C.length===0&&!r&&!x?h.jsx("div",{className:"text-[11px] text-text-400 italic",children:"无详细信息"}):null,E&&(d!=null&&d.open)?h.jsx("div",{className:"flex justify-end",children:h.jsxs("button",{type:"button","data-testid":"open-subagent-btn","data-agent-id":E,onClick:()=>d.open(E,s==null?void 0:s.agentType),className:ve("inline-flex items-center gap-1 rounded-md border border-bg-200/60","bg-bg-100/40 hover:bg-bg-200/40 transition-colors","px-2 py-1 text-[11px] text-text-300"),children:[h.jsx(Ru,{className:"w-3 h-3"}),h.jsx("span",{children:"打开子 agent 对话"})]})}):null]}):null]})}function _x({title:e,items:t,progressColor:n="bg-green-500",listKind:r}){const[i,o]=U.useState(!1),s=t.length,l=t.filter(u=>u.status==="completed").length,a=s>0?Math.round(l/s*100):0;return h.jsxs("div",{"data-testid":"msg-line-checklist","data-list-kind":r,className:"min-w-0 max-w-full py-1",children:[h.jsxs("button",{type:"button",onClick:()=>o(u=>!u),"aria-expanded":i,className:"flex items-center gap-2.5 w-full text-left rounded-md px-1.5 py-1 hover:bg-text-100/5 cursor-pointer",children:[i?h.jsx(sn,{className:"w-3.5 h-3.5 text-text-400 shrink-0"}):h.jsx(ln,{className:"w-3.5 h-3.5 text-text-400 shrink-0"}),h.jsx("span",{className:"text-[13px] font-medium text-text-200",children:e}),h.jsxs("span",{className:"text-[11px] text-text-400 tabular-nums",children:[l,"/",s]}),h.jsx("div",{className:"flex-1 max-w-[120px] h-1.5 rounded-full bg-text-100/10 overflow-hidden",children:h.jsx("div",{className:ve("h-full rounded-full transition-all duration-300",n),style:{width:`${a}%`}})})]}),i?h.jsx("div",{"data-testid":"checklist-body",className:"ml-6 mt-0.5",children:h.jsx("div",{className:"space-y-px",children:t.map((u,f)=>h.jsxs("div",{className:"flex min-w-0 items-start gap-2 py-0.5 px-1",children:[h.jsx("span",{className:"w-4 h-4 mt-0.5 flex items-center justify-center shrink-0",children:u.status==="completed"?h.jsx(Ck,{className:"w-3.5 h-3.5 text-green-500"}):h.jsx("span",{className:"w-2 h-2 rounded-full border border-text-400/40"})}),h.jsx("span",{className:ve("min-w-0 text-[13px] leading-snug break-words [overflow-wrap:anywhere]",u.status==="completed"?"text-text-400 line-through":"text-text-200"),children:u.status==="in_progress"&&u.activeForm?u.activeForm:u.content})]},`${f}-${u.content}`))})}):null]})}function xj({todos:e}){return h.jsx(_x,{title:"Tasks",items:e,progressColor:"bg-green-500",listKind:"todo"})}function vj({tasks:e}){return h.jsx(_x,{title:"Plan",items:e,progressColor:"bg-blue-500",listKind:"plan"})}function kj(e){if(!e||!Number.isFinite(e))return null;const t=Date.now()-e;if(t<0)return null;const n=Math.floor(t/1e3);if(n<60)return`${n}s ago`;const r=Math.floor(n/60);if(r<60)return`${r}m ago`;const i=Math.floor(r/60);if(i<24)return`${i}h ago`;const o=Math.floor(i/24);if(o<7)return`${o}d ago`;const s=Math.floor(o/7);return s<5?`${s}w ago`:new Date(e).toISOString().slice(0,10)}function wj(e){return(e.split("/").pop()??e)||e}function bj({memories:e}){return!e||e.length===0?null:h.jsxs("div",{"data-testid":"memory-callout",className:"my-1 min-w-0 max-w-full rounded-md border border-bg-200/60 bg-bg-100/30",children:[h.jsxs("div",{className:"flex items-center gap-1.5 px-2.5 py-1.5 text-[12px] text-text-300 border-b border-bg-200/60",children:[h.jsx(wk,{className:"w-3.5 h-3.5 text-amber-500 shrink-0"}),h.jsx("span",{className:"font-medium",children:"项目记忆"}),h.jsxs("span",{className:"text-text-400 tabular-nums",children:["· ",e.length]})]}),h.jsx("ul",{className:"divide-y divide-bg-200/40",children:e.map(t=>h.jsx(Sj,{memory:t},t.path))})]})}function Sj({memory:e}){const[t,n]=U.useState(!1),r=kj(e.mtimeMs),i=e.content.replace(/\s+/g," ").trim().slice(0,80);return h.jsxs("li",{className:"px-2.5 py-1.5",children:[h.jsxs("button",{type:"button","aria-expanded":t,onClick:()=>n(o=>!o),className:ve("flex w-full items-center gap-1.5 text-left text-[12px]","hover:bg-bg-200/30 rounded-sm py-0.5"),children:[t?h.jsx(sn,{className:"w-3 h-3 text-text-400 shrink-0"}):h.jsx(ln,{className:"w-3 h-3 text-text-400 shrink-0"}),h.jsx("span",{className:"font-mono text-text-300 shrink-0 max-w-[20ch] truncate",title:e.path,children:wj(e.path)}),h.jsx("span",{className:"flex-1 min-w-0 truncate text-text-400/80",children:i}),r?h.jsx("span",{className:"shrink-0 text-[11px] text-text-400 tabular-nums",children:r}):null]}),t?h.jsx("pre",{"data-testid":"memory-callout-body",className:"mt-1 max-w-full whitespace-pre-wrap break-words text-[12px] text-text-300 bg-bg-50/60 rounded-md p-2 border border-bg-200/60 [overflow-wrap:anywhere]",children:e.content}):null]})}function _j(e){return e.compositionActive||!!e.nativeIsComposing||e.keyCode===229}function Cj(e){return e.key==="Enter"&&!e.shiftKey&&!_j(e)}function Ij(e,t){const n=U.useRef(!1),r=U.useCallback(()=>{n.current=!0},[]),i=U.useCallback(()=>{setTimeout(()=>{n.current=!1},0)},[]);return{onKeyDown:U.useCallback(s=>{const l=s.nativeEvent;if(Cj({key:s.key,shiftKey:s.shiftKey,compositionActive:n.current,nativeIsComposing:l.isComposing,keyCode:l.keyCode})){s.preventDefault(),e();return}},[e,t]),onCompositionStart:r,onCompositionEnd:i}}function Nj({toolUseId:e,questions:t,onSubmit:n,onCancel:r,submittedAnswers:i}){const[o,s]=U.useState({}),[l,a]=U.useState({}),[u,f]=U.useState({}),[d,m]=U.useState(!1),[p,x]=U.useState(!1),b=i!==void 0&&Object.keys(i).length>0,I=b||p,y=!n&&!b,v=(S,A)=>{const E={labels:new Set,freeText:""};if(!b||!i)return E;const $=i[S];if(typeof $!="string")return E;const C=$.split(",").map(Z=>Z.trim()).filter(Boolean),O=new Set(A.map(Z=>Z.label)),z=new Set,oe=[];for(const Z of C)O.has(Z)?z.add(Z):oe.push(Z);return{labels:z,freeText:oe.join(", ")}},w=U.useMemo(()=>t.every(S=>{if((u[S.question]??"").trim().length>0)return!0;if(S.multiSelect){const E=l[S.question];return!!(E&&E.size>0)}return typeof o[S.question]=="string"&&o[S.question].length>0}),[t,o,l,u]),N=async()=>{if(!w||d||I||y||!n)return;const S={};for(const A of t){const E=(u[A.question]??"").trim();if(A.multiSelect){const $=l[A.question],C=$?A.options.filter(O=>$.has(O.label)).map(O=>O.label):[];if(E.length>0&&C.push(E),C.length===0)continue;S[A.question]=C.join(", ")}else if(E.length>0)S[A.question]=E;else{const $=o[A.question];typeof $=="string"&&(S[A.question]=$)}}m(!0);try{await n(S),x(!0)}finally{m(!1)}},j=Ij(()=>{N()});return h.jsxs("div",{"data-testid":"msg-line-question","data-tool-use-id":e,className:"min-w-0 max-w-full rounded-md border border-accent/40 bg-accent/5 px-3 py-2.5 text-[13px]",children:[h.jsxs("div",{className:"flex min-w-0 items-center gap-2 mb-2",children:[h.jsx(Rk,{className:"w-4 h-4 text-accent shrink-0"}),h.jsx("span",{className:"min-w-0 font-medium text-text-100",children:"需要你的回答 / Need your answer"}),t.length>1?h.jsxs("span",{className:"ml-auto text-[12px] text-text-400","data-testid":"msg-line-question-count",children:[t.length," 个问题"]}):null]}),h.jsx("div",{className:"flex flex-col gap-3 mb-3",children:t.map((S,A)=>{const E=`q-${A}`,$=`${e}-${A}`,C=v(S.question,S.options),O=I||y,z=u[S.question]??"",oe=b?C.freeText:p?(u[S.question]??"").trim():"";return h.jsxs("div",{"data-testid":"msg-line-question-item",children:[S.question?h.jsx("div",{className:"text-text-200 mb-1.5",children:S.question}):null,h.jsx("div",{className:"flex flex-col gap-1",children:S.options.map((Z,te)=>{var D;const K=`${E}-${te}`,se=b?C.labels.has(Z.label):S.multiSelect?!!((D=l[S.question])!=null&&D.has(Z.label)):o[S.question]===Z.label;return h.jsxs("label",{className:"flex min-w-0 items-start gap-2 cursor-pointer select-none py-1 px-2 rounded hover:bg-bg-100",children:[h.jsx("input",{type:S.multiSelect?"checkbox":"radio",name:$,value:Z.label,checked:se,disabled:I||y,onChange:()=>{I||y||(S.multiSelect?a(W=>{const k=new Set(W[S.question]??[]);return k.has(Z.label)?k.delete(Z.label):k.add(Z.label),{...W,[S.question]:k}}):s(W=>({...W,[S.question]:Z.label})))},className:"mt-0.5","data-testid":"msg-line-question-option"}),h.jsxs("span",{className:"flex min-w-0 flex-col",children:[h.jsx("span",{className:"text-text-100 [overflow-wrap:anywhere]",children:Z.label}),Z.description?h.jsx("span",{className:"text-[12px] text-text-400 [overflow-wrap:anywhere]",children:Z.description}):null]})]},K)})}),O?oe.length>0?h.jsx("div",{className:"mt-2 rounded-lg border border-accent/15 bg-bg-100/60 px-3 py-2 text-[13px] leading-relaxed text-text-200 [overflow-wrap:anywhere]","data-testid":"msg-line-question-freetext-result",children:oe}):null:h.jsx("textarea",{rows:3,value:z,placeholder:"或自行输入回答...",onChange:Z=>{const te=Z.target.value;f(K=>({...K,[S.question]:te}))},...j,className:"mt-2 w-full resize-y rounded-lg border border-accent/20 bg-bg-000/60 px-3 py-2 text-[13px] leading-relaxed text-text-100 placeholder:text-text-400 outline-none transition-colors focus:border-accent/60 focus:bg-bg-000","data-testid":"msg-line-question-freetext"})]},E)})}),h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsx(Xn,{size:"sm",variant:"default",onClick:()=>void N(),disabled:!w||d||I||y,"data-testid":"msg-line-question-submit",children:I?"已提交 / Submitted":y?"已结束 / Ended":"提交 / Submit"}),r&&!I&&!y?h.jsx(Xn,{size:"sm",variant:"ghost",onClick:()=>void r(),disabled:d,"data-testid":"msg-line-question-cancel",children:"跳过 / Skip"}):null]})]})}function Ej({toolUseId:e,questions:t,historicalAnswers:n,realtimeAnswers:r,onSubmit:i,onCancel:o}){const s=r??n,l=U.useCallback(async u=>{i&&await i(e,u)},[i,e]),a=U.useCallback(async()=>{o&&await o(e)},[o,e]);return h.jsx(Nj,{toolUseId:e,questions:t,onSubmit:i?l:void 0,...o?{onCancel:a}:{},submittedAnswers:s})}function Tj(){const e=new Map,t=(n,r)=>`${n}::${r}`;return{register(n,r,i){e.set(t(n,r),i)},resolve(n,r){return n?e.get(t(n,r))??null:null},reset(){e.clear()}}}const Cx=Tj();function jj({lines:e,onPermissionRespond:t,onPermissionInterrupt:n,topSlot:r,onRewind:i,rewindableUserMessageIds:o,onFork:s,onQuickAsk:l,forkByTurn:a=!1,realtimeQuestionAnswers:u,onSubmitQuestion:f,onCancelQuestion:d,liveQuestionToolUseIds:m,fileSharingScope:p,onShareFile:x,onOpenInTab:b,onPreviewMarkdown:I,onOpenFilePath:y,dispatchOrigin:v,turnCollapse:w,dockedAgentToolUseIds:N,codexHistory:j}){const S=U.useMemo(()=>Ab(e),[e]),A=U.useMemo(()=>{const C=new Map;let O;for(const z of S)z.kind==="user-text"&&z.continuesTurn!==!0&&(O=void 0),z.kind==="assistant-text"&&(O=z.seq),z.kind==="turn-end"&&(z.turnId&&z.reason!=="interrupted"&&O!==void 0&&C.set(O,z.turnId),O=void 0);return C},[S]),E=U.useMemo(()=>w?p_(S,w):null,[S,w]),$={codexHistory:j,onRewind:i,rewindableUserMessageIds:o,onPermissionRespond:t,onPermissionInterrupt:n,onFork:s,onQuickAsk:l,forkByTurn:a,codexForkAnchors:A,realtimeQuestionAnswers:u,onSubmitQuestion:f,onCancelQuestion:d,liveQuestionToolUseIds:m,fileSharingScope:p,onShareFile:x,onOpenInTab:b,onPreviewMarkdown:I,onOpenFilePath:y,dispatchOrigin:v,dockedAgentToolUseIds:N};return h.jsxs("div",{"data-testid":"message-list",className:"flex w-full min-w-0 max-w-full flex-col gap-2 px-4 py-3",children:[r,E!==null?E.map(C=>Aj(C,$)):S.map(C=>bl(C,$))]})}function Aj(e,t){var a;const n=e.turnId?`turn-${e.turnId}`:`turn-${e.seq}`,r=e.turnId&&((a=t.codexHistory)!=null&&a.turnIds.has(e.turnId))?t.codexHistory:void 0,i=e.turnId?r==null?void 0:r.details[e.turnId]:void 0,o=e.query?bl(e.query,t):null,s=e.process.map(u=>Pj(u,t)),l=e.tail.map(u=>bl(u,t));return e.status==="running"?h.jsxs(Ao.Fragment,{children:[o,s,l]},n):h.jsxs("div",{"data-history-turn-id":e.turnId,className:"flex flex-col gap-2",children:[o,h.jsxs(C_,{status:e.status,onExpandedChange:r&&e.turnId?u=>{u&&r.loadDetails(e.turnId)}:void 0,...e.durationMs!==void 0?{durationMs:e.durationMs}:{},children:[s,r&&!i?h.jsx("span",{className:"text-text-400 text-xs",children:"展开后加载过程"}):null,i!=null&&i.loading?h.jsx("span",{className:"text-text-400 text-xs","data-testid":"turn-details-loading",children:"正在加载过程…"}):null,i!=null&&i.error?h.jsxs("div",{className:"text-destructive text-xs","data-testid":"turn-details-error",children:[i.error," ",h.jsx("button",{type:"button",onClick:()=>void(r==null?void 0:r.loadDetails(e.turnId)),children:"重试"})]}):null,i!=null&&i.nextCursor&&!i.loading&&!i.error?h.jsx("button",{type:"button",className:"text-accent text-xs",onClick:()=>void(r==null?void 0:r.loadDetails(e.turnId,!0)),children:"加载更多过程"}):null,i&&!i.loading&&!i.error&&i.items.length===0?h.jsx("span",{className:"text-text-400 text-xs",children:"没有更多过程"}):null]}),l]},n)}function Pj(e,t){return e.kind==="tool-group"?h.jsx(b_,{items:e.items,renderItemDetail:n=>Rj(n,t)},`tool-group-${e.seq}`):bl(e,t)}function Rj(e,t){const n=Cx.resolve(e.toolKind,e.tool);return n?n.render({input:e.input,output:e.output,error:e.error,pending:e.pending,toolUseId:e.toolUseId,...t.fileSharingScope?{fileScope:t.fileSharingScope}:{},...t.onShareFile?{onShareFile:t.onShareFile}:{},...t.onOpenInTab?{onOpenInTab:t.onOpenInTab}:{},...t.onPreviewMarkdown?{onPreviewMarkdown:t.onPreviewMarkdown}:{}}):null}function bl(e,t){var w;const{onRewind:n,rewindableUserMessageIds:r,onPermissionRespond:i,onPermissionInterrupt:o,onFork:s,onQuickAsk:l,realtimeQuestionAnswers:a,onSubmitQuestion:u,onCancelQuestion:f,liveQuestionToolUseIds:d,fileSharingScope:m,onShareFile:p,onOpenInTab:x,onPreviewMarkdown:b,onOpenFilePath:I,dispatchOrigin:y}=t,v=`${e.kind}-${e.seq}`;switch(e.kind){case"session-init":return null;case"user-text":{const N=typeof e.uuid=="string"?e.uuid:void 0,j=!!(n&&N&&(!r||r.has(N)));return h.jsx(B5,{text:e.text,senderDisplayName:e.senderDisplayName,senderPrincipal:e.senderPrincipal,rewindTarget:j&&N&&n?{userMessageId:N,onRewind:n}:void 0},v)}case"user-meta":return G1(e.metaKind)?h.jsx(G5,{text:e.text,metaKind:e.metaKind,...y!=null&&y.resolve?{resolveDispatchOrigin:y.resolve}:{},...y!=null&&y.onOpenSession?{onOpenSession:y.onOpenSession}:{},...I?{onOpenFilePath:I}:{}},v):h.jsx(wx,{metaKind:e.metaKind,text:e.text},v);case"meta-text":return h.jsx(lj,{text:e.text,metaSource:e.metaSource},v);case"agent-notification":return h.jsx(uj,{text:e.text,taskId:e.taskId,parentToolUseId:e.parentToolUseId},v);case"assistant-text":{const N=t.forkByTurn?t.codexForkAnchors.get(e.seq):typeof e.uuid=="string"?e.uuid:void 0,j=N&&(s||l)?{messageUuid:N,onFork:s,onQuickAsk:l}:void 0;return h.jsx(h5,{text:j_(e.text),forkTarget:j,...I?{onOpenFilePath:I}:{}},v)}case"assistant-thinking":return h.jsx(g5,{text:e.text},v);case"permission-inline":return h.jsx(L5,{tool:e.tool,input:e.input,onRespond:i??(()=>{}),onInterrupt:o},v);case"error":return h.jsx(O5,{message:e.message},v);case"turn-end":return null;case"merged-tool":return zj(e,v,{fileSharingScope:m,onShareFile:p,onOpenInTab:x,onPreviewMarkdown:b});case"merged-agent":return(w=t.dockedAgentToolUseIds)!=null&&w.has(e.toolUseId)?null:h.jsx(yj,{description:e.description,input:e.input,output:e.output,error:e.error,pending:e.pending,notifications:e.notifications,toolResultExtra:e.toolResultExtra,progress:e.progress},v);case"plan-card":return h.jsx(vj,{tasks:e.tasks},v);case"todo-checklist":return h.jsx(xj,{todos:e.todos},v);case"memory-callout":return h.jsx(bj,{memories:e.memories},v);case"question-card":{const N=d===void 0||d.has(e.toolUseId);return h.jsx(Ej,{toolUseId:e.toolUseId,questions:e.questions,historicalAnswers:e.submittedAnswers,realtimeAnswers:a==null?void 0:a[e.toolUseId],onSubmit:N?u:void 0,...N&&f?{onCancel:f}:{}},v)}default:return null}}function zj(e,t,n){const r=Cx.resolve(e.toolKind,e.tool),i=r?r.render({input:e.input,output:e.output,error:e.error,pending:e.pending,toolUseId:e.toolUseId,...n.fileSharingScope?{fileScope:n.fileSharingScope}:{},...n.onShareFile?{onShareFile:n.onShareFile}:{},...n.onOpenInTab?{onOpenInTab:n.onOpenInTab}:{},...n.onPreviewMarkdown?{onPreviewMarkdown:n.onPreviewMarkdown}:{}}):null;return h.jsx(Ao.Fragment,{children:i??h.jsx(M5,{tool:e.tool,input:e.input,output:e.output,error:e.error,pending:e.pending,...n.fileSharingScope?{fileScope:n.fileSharingScope}:{},...n.onShareFile?{onShareFile:n.onShareFile}:{},...n.onOpenInTab?{onOpenInTab:n.onOpenInTab}:{},...n.onPreviewMarkdown?{onPreviewMarkdown:n.onPreviewMarkdown}:{}})},t)}function Mj(e){return e==="TodoWrite"}function Lj(e){if(!e||typeof e!="object")return null;const t=e;if(!Array.isArray(t.todos))return null;const n=[];for(const r of t.todos){if(!r||typeof r!="object")continue;const i=r,o=typeof i.content=="string"?i.content:"";if(!o)continue;const s=i.status==="in_progress"||i.status==="completed"?i.status:"pending",l=typeof i.activeForm=="string"?i.activeForm:void 0;n.push({content:o,status:s,activeForm:l})}return n}function Oj(e,t,n,r,i,o){if(Mj(r)){const s=Lj(i);if(s){e.push({kind:"todo-checklist",seq:t,toolUseId:n,todos:s});return}}if(r==="Agent"){const s=i??{},l=typeof s.description=="string"&&s.description?s.description:typeof s.subagent_type=="string"&&s.subagent_type?s.subagent_type:"Subagent";e.push({kind:"agent-call",seq:t,toolUseId:n,description:l,input:i});return}if(Cb(r)){e.push({kind:"task-event",seq:t,toolUseId:n,name:r,input:i});return}e.push({kind:"tool-call",seq:t,toolUseId:n,tool:r,toolKind:o,input:i})}const Dj="AskUserQuestion";function Fj(e,t=0,n){var s;const r=[],i=new Map;let o=t;for(const l of e){const a=o++,u=l.toolUseId??`hist-${a}`;switch(l.kind){case"user-text":if(l.meta==="task-notification")r.push({kind:"agent-notification",seq:a,text:l.text??"",taskId:l.taskId,parentToolUseId:l.parentToolUseId});else if(l.meta)r.push({kind:"user-meta",seq:a,metaKind:l.meta,text:l.text??""});else{const f=Y2.exec(l.text??""),d=(s=K2.exec(l.text??""))==null?void 0:s[1],m=(f==null?void 0:f[2])??d,p=(f==null?void 0:f[1])==="guest"||d?"guest":"owner";r.push({kind:"user-text",seq:a,text:l.text??"",uuid:l.uuid,...m?{senderDisplayName:m}:{},senderPrincipal:p})}break;case"assistant-text":r.push({kind:"assistant-text",seq:a,text:l.text??"",uuid:l.uuid});break;case"tool_call":{if(l.tool===Dj){const f=l.input??{},d=Array.isArray(f.questions)?f.questions:[];i.set(u,r.length),r.push({kind:"question-card",seq:a,toolUseId:u,questions:d});break}Oj(r,a,u,l.tool??"",l.input,n);break}case"tool_result":{const f=i.get(u);if(f!==void 0){if(l.askQuestionAnswers){const m=r[f];m.submittedAnswers=l.askQuestionAnswers}i.delete(u);break}const d={kind:"tool-result",seq:a,toolUseId:u,output:l.output};l.error!==void 0&&(d.error=l.error),l.toolResultExtra&&(d.toolResultExtra=l.toolResultExtra),r.push(d);break}case"attachment_memories":l.memories&&l.memories.length>0&&r.push({kind:"memory-callout",seq:a,memories:l.memories});break;case"summary":break;case"turn-end":{const f={kind:"turn-end",seq:a};typeof l.durationMs=="number"&&(f.durationMs=l.durationMs),typeof l.turnId=="string"&&(f.turnId=l.turnId),r.push(f);break}}}return r}const Tm=e=>String(e).padStart(2,"0");function jm(e){const t=new Date(e);return new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime()}function Sl(e,t){const n=Date.parse(e);if(Number.isNaN(n))return e;const r=new Date(n),i=`${Tm(r.getHours())}:${Tm(r.getMinutes())}`,o=Math.round((jm(t)-jm(n))/864e5);return o===0?`今天 ${i}`:o===1?`昨天 ${i}`:`${r.getMonth()+1}月${r.getDate()}日 ${i}`}function $j(e){if(e<=0)return"马上";const t=Math.floor(e/36e5);return t>=1?`${t} 小时`:`${Math.max(1,Math.round(e/6e4))} 分钟`}const Vn=e=>`${e.unionId}/${e.threadId}`,Uj={closeTrailing:!0},Bj=new Set;function Ix(e){const{personas:t,personaId:n,onPersonaChange:r,list:i,selectedKey:o,onSelect:s,onLoadMore:l,detail:a,linkExpiresAt:u,now:f,onRetry:d}=e;if(i.kind==="error"&&i.error.kind==="link-expired"||a.kind==="error"&&a.error.kind==="link-expired")return h.jsx(Am,{children:h.jsxs("div",{className:"mx-auto mt-24 max-w-[420px] text-center","data-testid":"cpc-link-expired",children:[h.jsx("h1",{className:"text-[18px] font-semibold text-text-100",children:"这个链接已经过期"}),h.jsx("p",{className:"mt-2 text-[13px] text-text-300",children:"回到 clawd 的「设置 → Dashboard」,重新点一次「云 persona 对话记录」。"})]})});const p=i.kind==="ready"?i.threads:i.kind==="error"?i.lastThreads:void 0,x=p==null?void 0:p.find(b=>Vn(b)===o);return h.jsxs(Am,{children:[h.jsxs("header",{className:"mb-5",children:[h.jsx("h1",{className:"text-[22px] font-semibold text-text-100",children:"云 persona 对话记录"}),h.jsxs("p",{className:"mt-1 text-[12px] text-text-400",children:["别人跟 persona 每聊完一轮,几秒后这里就能看到",u?` · 这个链接 ${$j(u-f)}后过期`:""]})]}),t===null?i.kind==="error"?h.jsx(sc,{error:i.error,onRetry:d,testid:"cpc-list-error"}):h.jsx(ai,{testid:"cpc-personas-loading",children:"正在取你能看的 persona…"}):t.length===0?h.jsx("p",{className:"py-16 text-center text-[13px] text-text-400","data-testid":"cpc-no-personas",children:"你还没有发布过云 persona,这里没有可看的对话。"}):h.jsxs(h.Fragment,{children:[h.jsx("div",{className:"mb-5 flex items-center gap-2 text-[13px] text-text-300",children:h.jsxs("label",{className:"flex items-center gap-2",children:["persona",h.jsx("select",{"data-testid":"cpc-persona",value:n,onChange:b=>r(b.target.value),className:"h-8 rounded-md border border-border bg-bg-0 px-2 text-[13px] text-text-100",children:t.map(b=>h.jsx("option",{value:b,children:b},b))})]})}),i.kind==="error"?h.jsx(sc,{error:i.error,onRetry:d,testid:"cpc-list-error"}):null,i.kind==="error"&&i.error.kind==="not-viewer"?null:h.jsxs("div",{className:"grid grid-cols-[300px_minmax(0,1fr)] gap-5",children:[h.jsxs("aside",{className:"flex max-h-[calc(100vh-190px)] min-h-[320px] flex-col overflow-hidden rounded-lg border border-border","data-testid":"cpc-list",children:[h.jsx(Vj,{threads:p,loading:i.kind==="loading",selectedKey:o,onSelect:s,now:f}),i.kind==="ready"&&i.hasMore?h.jsx("div",{className:"border-t border-border p-2",children:h.jsxs(Xn,{variant:"ghost",size:"sm",className:"w-full",disabled:i.loadingMore,onClick:l,"data-testid":"cpc-load-more",children:[i.loadingMore?h.jsx(sr,{className:"mr-1.5 h-3.5 w-3.5 animate-spin"}):null,"加载更早的对话"]})}):null]}),h.jsx("section",{className:"flex max-h-[calc(100vh-190px)] min-h-[320px] flex-col overflow-hidden rounded-lg border border-border","data-testid":"cpc-detail",children:h.jsx(Hj,{detail:a,selected:x,now:f,onRetry:d})})]})]})]})}function Vj({threads:e,loading:t,selectedKey:n,onSelect:r,now:i}){return e?e.length===0?h.jsx(ai,{testid:"cpc-list-empty",children:"还没有对话。有人跟它聊完一轮后,几秒内会出现在这里。"}):h.jsx("ul",{className:"flex-1 divide-y divide-border overflow-y-auto",children:e.map(o=>{const s=Vn(o),l=s===n;return h.jsx("li",{children:h.jsxs("button",{type:"button",onClick:()=>r(o),"data-testid":"cpc-thread","data-key":s,"aria-current":l?"true":void 0,className:ve("block w-full px-3.5 py-2.5 text-left transition-colors hover:bg-bg-100",l&&"bg-bg-100"),children:[h.jsx("div",{className:"truncate text-[13px] font-medium text-text-100",children:o.displayName}),h.jsxs("div",{className:"mt-0.5 text-[12px] text-text-400",children:[Sl(o.createdAt,i)," 开始 · 最后活跃 ",Sl(o.updatedAt,i)]})]})},s)})}):h.jsx(ai,{testid:"cpc-list-loading",children:t?"正在取对话…":""})}function Hj({detail:e,selected:t,now:n,onRetry:r}){const i=U.useMemo(()=>e.kind==="ready"?Fj(e.messages,0,`${e.engine}-cloud`):[],[e]);return e.kind==="none"?h.jsx(ai,{testid:"cpc-detail-none",children:"选左边一条对话,看它的全过程。"}):e.kind==="loading"?h.jsx(ai,{testid:"cpc-detail-loading",children:"正在取这条对话…"}):e.kind==="error"?h.jsx("div",{className:"p-4",children:h.jsx(sc,{error:e.error,onRetry:r,testid:"cpc-detail-error"})}):h.jsxs(h.Fragment,{children:[t?h.jsxs("div",{className:"flex items-baseline gap-2 border-b border-border px-4 py-2.5 text-[12px] text-text-400","data-testid":"cpc-detail-head",children:[h.jsx("span",{className:"text-[13px] font-medium text-text-100",children:t.displayName}),h.jsxs("span",{children:[Sl(t.createdAt,n)," 开始 · 最后活跃 ",Sl(t.updatedAt,n)]}),e.refreshing?h.jsx(sr,{className:"h-3 w-3 animate-spin","aria-label":"正在更新"}):null]}):null,h.jsx("div",{className:"flex-1 overflow-y-auto overflow-x-hidden px-4 py-3","data-testid":"cpc-detail-body",children:i.length===0?h.jsx(ai,{testid:"cpc-detail-empty",children:"这条对话还没有内容。"}):h.jsx(jj,{lines:i,liveQuestionToolUseIds:Bj,turnCollapse:Uj})})]})}function sc({error:e,onRetry:t,testid:n}){if(e.kind==="link-expired")return null;const[r,i]=e.kind==="not-viewer"?["看不了这个 persona 的对话",e.message??"只有发布这个 persona 的人能看它的对话。"]:["连不上云上的服务,对话没有更新",e.message];return h.jsxs("div",{role:"alert","data-testid":n,className:"mb-5 flex items-start gap-2.5 rounded-lg border border-destructive/30 bg-destructive/5 px-4 py-3 text-[13px]",children:[h.jsx(t1,{className:"mt-0.5 h-4 w-4 shrink-0 text-destructive"}),h.jsxs("div",{className:"flex-1",children:[h.jsx("div",{className:"font-medium text-text-100",children:r}),h.jsx("div",{className:"mt-0.5 text-text-300",children:i})]}),e.kind==="unreachable"&&t?h.jsxs(Xn,{variant:"outline",size:"sm",onClick:t,"data-testid":`${n}-retry`,children:[h.jsx(tw,{className:"mr-1.5 h-3.5 w-3.5"}),"重试"]}):null]})}function ai({children:e,testid:t}){return h.jsx("p",{className:"flex flex-1 items-center justify-center px-6 py-16 text-center text-[13px] text-text-400","data-testid":t,children:e})}function Am({children:e}){return h.jsx("div",{className:"min-h-screen bg-bg-0 text-text-100",children:h.jsx("div",{className:"mx-auto max-w-[1280px] px-6 py-8 md:px-8",children:e})})}function qj(e,t){if(e.pathname!==`/dashboard/${t}`)return null;const n=new URLSearchParams(e.search),r=n.get("e"),i=n.get("s");return!r||!i||!/^\d+$/.test(r)?null:{link:{e:r,s:i,expiresAt:Number(r)*1e3},query:n}}const Wl=e=>new URLSearchParams({e:e.e,s:e.s}),Wj={"principal has been revoked":"你的 clawd 账号已被停用,找管理员恢复"};async function Zj(e){const t=await e.json().catch(()=>null),n=t==null?void 0:t.message,r=typeof n=="string"&&n?n:Array.isArray(n)&&n.length>0?n.map(String).join(";"):typeof(t==null?void 0:t.error)=="string"?t.error:void 0,i=r===void 0?void 0:Wj[r]??r;return e.status===403?(t==null?void 0:t.code)==="LINK_EXPIRED"||(t==null?void 0:t.code)==="LINK_INVALID"?{kind:"link-expired"}:i?{kind:"not-viewer",message:i}:{kind:"not-viewer"}:{kind:"unreachable",message:i??`HTTP ${e.status}`}}const Nx="cloud-persona-conversations",Zl=`/dashboard/${Nx}`;function Gj(e){const t=qj(e,Nx);if(!t)return null;const n=t.query,r=n.get("u"),i=n.get("t");return{...t.link,personaId:n.get("persona")??"",selected:r&&i?{unionId:r,threadId:i}:null}}function Qj(e,t,n){const r=Wl(e);return t&&r.set("persona",t),n&&(r.set("u",n.unionId),r.set("t",n.threadId)),`${Zl}?${r}`}const Kj=e=>`${Zl}/personas?${Wl(e)}`;function Pm(e,t,n,r){const i=Wl(e);return i.set("persona",t),n&&i.set("before",n),i.set("limit",String(r)),`${Zl}/threads?${i}`}function Yj(e,t,n){const r=Wl(e);return r.set("persona",t),r.set("unionId",n.unionId),r.set("threadId",n.threadId),`${Zl}/thread?${r}`}const Xj=15e3,ms=50,hs=e=>typeof e=="object"&&e!==null&&"error"in e;async function gs(e,t){let n;try{n=await e(t)}catch(r){return{error:{kind:"unreachable",message:`连不上本机 clawd:${r.message}`}}}return n.ok?await n.json():{error:await Zj(n)}}function Rm(e,t){const n=new Map(t.map(r=>[Vn(r),r]));for(const r of e)n.set(Vn(r),r);return[...n.values()].sort((r,i)=>r.updatedAt<i.updatedAt?1:r.updatedAt>i.updatedAt?-1:0)}function Jj(e,t){var te;const[n,r]=U.useState(null),[i,o]=U.useState(e.personaId),[s,l]=U.useState({kind:"loading"}),[a,u]=U.useState(e.selected),[f,d]=U.useState(e.selected?{kind:"loading"}:{kind:"none"}),m=U.useRef(t);m.current=t;const p=U.useRef(0),x=U.useRef(!1),b=U.useRef(void 0),I=U.useRef(!1),y=U.useRef(0),v=U.useRef(null),w=U.useRef(!0);U.useEffect(()=>(w.current=!0,()=>{w.current=!1}),[]);const N=U.useCallback(()=>{gs(m.current.fetchImpl,Kj(e)).then(K=>{if(w.current){if(hs(K)){l({kind:"error",error:K.error});return}r(K.personas),K.personas.includes(e.personaId)||(o(K.personas[0]??""),u(null),d({kind:"none"}))}})},[e]);U.useEffect(()=>N(),[N]);const j=U.useCallback((K,se)=>{b.current=K,I.current=se,l({kind:"ready",threads:K,hasMore:se})},[]),S=U.useCallback(async(K,se)=>{const D=++p.current;x.current=!0;const W=await gs(m.current.fetchImpl,Pm(e,K,null,ms));if(D===p.current){if(x.current=!1,hs(W)){l(W.error.kind==="unreachable"?{kind:"error",error:W.error,lastThreads:b.current}:{kind:"error",error:W.error});return}se&&b.current?j(Rm(W.threads,b.current),I.current):j(W.threads,W.threads.length===ms)}},[e,j]),A=n!==null;U.useEffect(()=>{if(!(!i||!A))return b.current=void 0,l({kind:"loading"}),S(i,!1),m.current.every(Xj,()=>{x.current||S(i,!0)})},[i,A,S]);const E=U.useCallback(async()=>{const K=b.current;if(!i||!K||K.length===0||!I.current)return;const se=p.current;l({kind:"ready",threads:K,hasMore:!0,loadingMore:!0});const D=await gs(m.current.fetchImpl,Pm(e,i,K.at(-1).updatedAt,ms));if(se===p.current){if(hs(D)){l(D.error.kind==="unreachable"?{kind:"error",error:D.error,lastThreads:b.current}:{kind:"error",error:D.error});return}j(Rm(D.threads,b.current??K),D.threads.length===ms)}},[e,i,j]),$=U.useCallback(async(K,se,D,W)=>{const k=++y.current;v.current={key:Vn(se),updatedAt:D},d(W?ye=>ye.kind==="ready"?{...ye,refreshing:!0}:ye:{kind:"loading"});const ae=await gs(m.current.fetchImpl,Yj(e,K,se));k===y.current&&d(hs(ae)?{kind:"error",error:ae.error}:{kind:"ready",engine:ae.engine,messages:ae.messages})},[e]),C=a?Vn(a):null,O=s.kind==="ready"?(te=s.threads.find(K=>Vn(K)===C))==null?void 0:te.updatedAt:void 0;U.useEffect(()=>{if(!a||!i||n===null)return;const K=Vn(a),se=v.current;if(!se||se.key!==K){$(i,a,O,!1);return}if(!(O===void 0||O===se.updatedAt)){if(se.updatedAt===void 0){v.current={key:K,updatedAt:O};return}$(i,a,O,!0)}},[a,i,n,O,$]),U.useEffect(()=>{i&&m.current.replaceUrl(Qj(e,i,a))},[e,i,a]);const z=U.useCallback(K=>{o(K),u(null),v.current=null,++y.current,d({kind:"none"})},[]),oe=U.useCallback(K=>u({unionId:K.unionId,threadId:K.threadId}),[]),Z=U.useCallback(()=>{if(n===null){l({kind:"loading"}),N();return}i&&(S(i,!1),a&&$(i,a,O,!1))},[n,i,a,O,S,$,N]);return{personas:n,personaId:i,setPersonaId:z,list:s,selectedKey:C,select:oe,loadMore:E,detail:f,retry:Z}}const e9={fetchImpl:(...e)=>fetch(...e),replaceUrl:e=>window.history.replaceState(null,"",e),every:(e,t)=>{const n=window.setInterval(t,e);return()=>window.clearInterval(n)}};function t9(){const e=U.useMemo(()=>Gj(window.location),[]);return e?h.jsx(n9,{loc:e}):h.jsx(Ix,{personas:[],personaId:"",onPersonaChange:()=>{},list:{kind:"error",error:{kind:"link-expired"}},selectedKey:null,onSelect:()=>{},detail:{kind:"none"},linkExpiresAt:null,now:Date.now()})}function n9({loc:e}){const t=Jj(e,e9);return h.jsx(Ix,{personas:t.personas,personaId:t.personaId,onPersonaChange:t.setPersonaId,list:t.list,selectedKey:t.selectedKey,onSelect:t.select,onLoadMore:()=>void t.loadMore(),detail:t.detail,linkExpiresAt:e.expiresAt,now:Date.now(),onRetry:t.retry})}const Ex=window.matchMedia("(prefers-color-scheme: dark)"),Tx=()=>document.documentElement.classList.toggle("dark",Ex.matches);Tx();Ex.addEventListener("change",Tx);const zm=document.getElementById("root");zm&&Zg(zm).render(h.jsx(t9,{}));</script>
305
+ `))}function a(p,x,b,I){const y=b.enter("tableCell"),v=b.enter("phrasing"),w=b.containerPhrasing(p,{...I,before:o,after:o});return v(),y(),w}function u(p,x){return GE(p,{align:x,alignDelimiters:r,padding:n,stringLength:i})}function f(p,x,b){const I=p.children;let y=-1;const v=[],w=x.enter("table");for(;++y<I.length;)v[y]=d(I[y],x,b);return w(),v}function d(p,x,b){const I=p.children;let y=-1;const v=[],w=x.enter("tableRow");for(;++y<I.length;)v[y]=a(I[y],p,x,b);return w(),v}function m(p,x,b){let I=ex.inlineCode(p,x,b);return b.stack.includes("tableCell")&&(I=I.replace(/\|/g,"\\$&")),I}}function M3(){return{exit:{taskListCheckValueChecked:km,taskListCheckValueUnchecked:km,paragraph:O3}}}function L3(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:D3}}}function km(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function O3(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const r=n.children[0];if(r&&r.type==="text"){const i=t.children;let o=-1,s;for(;++o<i.length;){const l=i[o];if(l.type==="paragraph"){s=l;break}}s===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function D3(e,t,n,r){const i=e.children[0],o=typeof e.checked=="boolean"&&i&&i.type==="paragraph",s="["+(e.checked?"x":" ")+"] ",l=n.createTracker(r);o&&l.move(s);let a=ex.listItem(e,t,n,{...r,...l.current()});return o&&(a=a.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,u)),a;function u(f){return f+s}}function F3(){return[yE(),DE(),BE(),E3(),M3()]}function $3(e){return{extensions:[xE(),FE(e),VE(),z3(e),L3()]}}const U3={tokenize:Z3,partial:!0},tx={tokenize:G3,partial:!0},nx={tokenize:Q3,partial:!0},rx={tokenize:K3,partial:!0},B3={tokenize:Y3,partial:!0},ix={name:"wwwAutolink",tokenize:q3,previous:sx},ox={name:"protocolAutolink",tokenize:W3,previous:lx},An={name:"emailAutolink",tokenize:H3,previous:ax},an={};function V3(){return{text:an}}let dr=48;for(;dr<123;)an[dr]=An,dr++,dr===58?dr=65:dr===91&&(dr=97);an[43]=An;an[45]=An;an[46]=An;an[95]=An;an[72]=[An,ox];an[104]=[An,ox];an[87]=[An,ix];an[119]=[An,ix];function H3(e,t,n){const r=this;let i,o;return s;function s(d){return!rc(d)||!ax.call(r,r.previous)||Od(r.events)?n(d):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),l(d))}function l(d){return rc(d)?(e.consume(d),l):d===64?(e.consume(d),a):n(d)}function a(d){return d===46?e.check(B3,f,u)(d):d===45||d===95||nt(d)?(o=!0,e.consume(d),a):f(d)}function u(d){return e.consume(d),i=!0,a}function f(d){return o&&i&&lt(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(d)):n(d)}}function q3(e,t,n){const r=this;return i;function i(s){return s!==87&&s!==119||!sx.call(r,r.previous)||Od(r.events)?n(s):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(U3,e.attempt(tx,e.attempt(nx,o),n),n)(s))}function o(s){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(s)}}function W3(e,t,n){const r=this;let i="",o=!1;return s;function s(d){return(d===72||d===104)&&lx.call(r,r.previous)&&!Od(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(d),e.consume(d),l):n(d)}function l(d){if(lt(d)&&i.length<5)return i+=String.fromCodePoint(d),e.consume(d),l;if(d===58){const m=i.toLowerCase();if(m==="http"||m==="https")return e.consume(d),a}return n(d)}function a(d){return d===47?(e.consume(d),o?u:(o=!0,a)):n(d)}function u(d){return d===null||yl(d)||_e(d)||Tr(d)||Bl(d)?n(d):e.attempt(tx,e.attempt(nx,f),n)(d)}function f(d){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(d)}}function Z3(e,t,n){let r=0;return i;function i(s){return(s===87||s===119)&&r<3?(r++,e.consume(s),i):s===46&&r===3?(e.consume(s),o):n(s)}function o(s){return s===null?n(s):t(s)}}function G3(e,t,n){let r,i,o;return s;function s(u){return u===46||u===95?e.check(rx,a,l)(u):u===null||_e(u)||Tr(u)||u!==45&&Bl(u)?a(u):(o=!0,e.consume(u),s)}function l(u){return u===95?r=!0:(i=r,r=void 0),e.consume(u),s}function a(u){return i||r||!o?n(u):t(u)}}function Q3(e,t){let n=0,r=0;return i;function i(s){return s===40?(n++,e.consume(s),i):s===41&&r<n?o(s):s===33||s===34||s===38||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===60||s===63||s===93||s===95||s===126?e.check(rx,t,o)(s):s===null||_e(s)||Tr(s)?t(s):(e.consume(s),i)}function o(s){return s===41&&r++,e.consume(s),i}}function K3(e,t,n){return r;function r(l){return l===33||l===34||l===39||l===41||l===42||l===44||l===46||l===58||l===59||l===63||l===95||l===126?(e.consume(l),r):l===38?(e.consume(l),o):l===93?(e.consume(l),i):l===60||l===null||_e(l)||Tr(l)?t(l):n(l)}function i(l){return l===null||l===40||l===91||_e(l)||Tr(l)?t(l):r(l)}function o(l){return lt(l)?s(l):n(l)}function s(l){return l===59?(e.consume(l),r):lt(l)?(e.consume(l),s):n(l)}}function Y3(e,t,n){return r;function r(o){return e.consume(o),i}function i(o){return nt(o)?n(o):t(o)}}function sx(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||_e(e)}function lx(e){return!lt(e)}function ax(e){return!(e===47||rc(e))}function rc(e){return e===43||e===45||e===46||e===95||nt(e)}function Od(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const X3={tokenize:sT,partial:!0};function J3(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:rT,continuation:{tokenize:iT},exit:oT}},text:{91:{name:"gfmFootnoteCall",tokenize:nT},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:eT,resolveTo:tT}}}}function eT(e,t,n){const r=this;let i=r.events.length;const o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s;for(;i--;){const a=r.events[i][1];if(a.type==="labelImage"){s=a;break}if(a.type==="gfmFootnoteCall"||a.type==="labelLink"||a.type==="label"||a.type==="image"||a.type==="link")break}return l;function l(a){if(!s||!s._balanced)return n(a);const u=Zt(r.sliceSerialize({start:s.end,end:r.now()}));return u.codePointAt(0)!==94||!o.includes(u.slice(1))?n(a):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(a),e.exit("gfmFootnoteCallLabelMarker"),t(a))}}function tT(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const o={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},s={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},l=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",o,t],["enter",s,t],["exit",s,t],["exit",o,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...l),e}function nT(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o=0,s;return l;function l(d){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),a}function a(d){return d!==94?n(d):(e.enter("gfmFootnoteCallMarker"),e.consume(d),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(d){if(o>999||d===93&&!s||d===null||d===91||_e(d))return n(d);if(d===93){e.exit("chunkString");const m=e.exit("gfmFootnoteCallString");return i.includes(Zt(r.sliceSerialize(m)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(d)}return _e(d)||(s=!0),o++,e.consume(d),d===92?f:u}function f(d){return d===91||d===92||d===93?(e.consume(d),o++,u):u(d)}}function rT(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o,s=0,l;return a;function a(x){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(x),e.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(x){return x===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(x),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",f):n(x)}function f(x){if(s>999||x===93&&!l||x===null||x===91||_e(x))return n(x);if(x===93){e.exit("chunkString");const b=e.exit("gfmFootnoteDefinitionLabelString");return o=Zt(r.sliceSerialize(b)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(x),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),m}return _e(x)||(l=!0),s++,e.consume(x),x===92?d:f}function d(x){return x===91||x===92||x===93?(e.consume(x),s++,f):f(x)}function m(x){return x===58?(e.enter("definitionMarker"),e.consume(x),e.exit("definitionMarker"),i.includes(o)||i.push(o),ke(e,p,"gfmFootnoteDefinitionWhitespace")):n(x)}function p(x){return t(x)}}function iT(e,t,n){return e.check(Uo,t,e.attempt(X3,t,n))}function oT(e){e.exit("gfmFootnoteDefinition")}function sT(e,t,n){const r=this;return ke(e,i,"gfmFootnoteDefinitionIndent",5);function i(o){const s=r.events[r.events.length-1];return s&&s[1].type==="gfmFootnoteDefinitionIndent"&&s[2].sliceSerialize(s[1],!0).length===4?t(o):n(o)}}function lT(e){let n=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:o,resolveAll:i};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(s,l){let a=-1;for(;++a<s.length;)if(s[a][0]==="enter"&&s[a][1].type==="strikethroughSequenceTemporary"&&s[a][1]._close){let u=a;for(;u--;)if(s[u][0]==="exit"&&s[u][1].type==="strikethroughSequenceTemporary"&&s[u][1]._open&&s[a][1].end.offset-s[a][1].start.offset===s[u][1].end.offset-s[u][1].start.offset){s[a][1].type="strikethroughSequence",s[u][1].type="strikethroughSequence";const f={type:"strikethrough",start:Object.assign({},s[u][1].start),end:Object.assign({},s[a][1].end)},d={type:"strikethroughText",start:Object.assign({},s[u][1].end),end:Object.assign({},s[a][1].start)},m=[["enter",f,l],["enter",s[u][1],l],["exit",s[u][1],l],["enter",d,l]],p=l.parser.constructs.insideSpan.null;p&&Ye(m,m.length,0,Ni(p,s.slice(u+1,a),l)),Ye(m,m.length,0,[["exit",d,l],["enter",s[a][1],l],["exit",s[a][1],l],["exit",f,l]]),Ye(s,u-1,a-u+3,m),a=u+m.length-2;break}}for(a=-1;++a<s.length;)s[a][1].type==="strikethroughSequenceTemporary"&&(s[a][1].type="data");return s}function o(s,l,a){const u=this.previous,f=this.events;let d=0;return m;function m(x){return u===126&&f[f.length-1][1].type!=="characterEscape"?a(x):(s.enter("strikethroughSequenceTemporary"),p(x))}function p(x){const b=xi(u);if(x===126)return d>1?a(x):(s.consume(x),d++,p);if(d<2&&!n)return a(x);const I=s.exit("strikethroughSequenceTemporary"),y=xi(x);return I._open=!y||y===2&&!!b,I._close=!b||b===2&&!!y,l(x)}}}class aT{constructor(){this.map=[]}add(t,n,r){uT(this,t,n,r)}consume(t){if(this.map.sort(function(o,s){return o[0]-s[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push(t.slice()),t.length=0;let i=r.pop();for(;i;){for(const o of i)t.push(o);i=r.pop()}this.map.length=0}}function uT(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=n,e.map[i][2].push(...r);return}i+=1}e.map.push([t,n,r])}}function cT(e,t){let n=!1;const r=[];for(;t<e.length;){const i=e[t];if(n){if(i[0]==="enter")i[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const o=r.length-1;r[o]=r[o]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}function dT(){return{flow:{null:{name:"table",tokenize:fT,resolveAll:pT}}}}function fT(e,t,n){const r=this;let i=0,o=0,s;return l;function l(C){let O=r.events.length-1;for(;O>-1;){const Z=r.events[O][1].type;if(Z==="lineEnding"||Z==="linePrefix")O--;else break}const z=O>-1?r.events[O][1].type:null,oe=z==="tableHead"||z==="tableRow"?S:a;return oe===S&&r.parser.lazy[r.now().line]?n(C):oe(C)}function a(C){return e.enter("tableHead"),e.enter("tableRow"),u(C)}function u(C){return C===124||(s=!0,o+=1),f(C)}function f(C){return C===null?n(C):ne(C)?o>1?(o=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(C),e.exit("lineEnding"),p):n(C):me(C)?ke(e,f,"whitespace")(C):(o+=1,s&&(s=!1,i+=1),C===124?(e.enter("tableCellDivider"),e.consume(C),e.exit("tableCellDivider"),s=!0,f):(e.enter("data"),d(C)))}function d(C){return C===null||C===124||_e(C)?(e.exit("data"),f(C)):(e.consume(C),C===92?m:d)}function m(C){return C===92||C===124?(e.consume(C),d):d(C)}function p(C){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(C):(e.enter("tableDelimiterRow"),s=!1,me(C)?ke(e,x,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(C):x(C))}function x(C){return C===45||C===58?I(C):C===124?(s=!0,e.enter("tableCellDivider"),e.consume(C),e.exit("tableCellDivider"),b):j(C)}function b(C){return me(C)?ke(e,I,"whitespace")(C):I(C)}function I(C){return C===58?(o+=1,s=!0,e.enter("tableDelimiterMarker"),e.consume(C),e.exit("tableDelimiterMarker"),y):C===45?(o+=1,y(C)):C===null||ne(C)?N(C):j(C)}function y(C){return C===45?(e.enter("tableDelimiterFiller"),v(C)):j(C)}function v(C){return C===45?(e.consume(C),v):C===58?(s=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(C),e.exit("tableDelimiterMarker"),w):(e.exit("tableDelimiterFiller"),w(C))}function w(C){return me(C)?ke(e,N,"whitespace")(C):N(C)}function N(C){return C===124?x(C):C===null||ne(C)?!s||i!==o?j(C):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(C)):j(C)}function j(C){return n(C)}function S(C){return e.enter("tableRow"),A(C)}function A(C){return C===124?(e.enter("tableCellDivider"),e.consume(C),e.exit("tableCellDivider"),A):C===null||ne(C)?(e.exit("tableRow"),t(C)):me(C)?ke(e,A,"whitespace")(C):(e.enter("data"),E(C))}function E(C){return C===null||C===124||_e(C)?(e.exit("data"),A(C)):(e.consume(C),C===92?$:E)}function $(C){return C===92||C===124?(e.consume(C),E):E(C)}}function pT(e,t){let n=-1,r=!0,i=0,o=[0,0,0,0],s=[0,0,0,0],l=!1,a=0,u,f,d;const m=new aT;for(;++n<e.length;){const p=e[n],x=p[1];p[0]==="enter"?x.type==="tableHead"?(l=!1,a!==0&&(wm(m,t,a,u,f),f=void 0,a=0),u={type:"table",start:Object.assign({},x.start),end:Object.assign({},x.end)},m.add(n,0,[["enter",u,t]])):x.type==="tableRow"||x.type==="tableDelimiterRow"?(r=!0,d=void 0,o=[0,0,0,0],s=[0,n+1,0,0],l&&(l=!1,f={type:"tableBody",start:Object.assign({},x.start),end:Object.assign({},x.end)},m.add(n,0,[["enter",f,t]])),i=x.type==="tableDelimiterRow"?2:f?3:1):i&&(x.type==="data"||x.type==="tableDelimiterMarker"||x.type==="tableDelimiterFiller")?(r=!1,s[2]===0&&(o[1]!==0&&(s[0]=s[1],d=ps(m,t,o,i,void 0,d),o=[0,0,0,0]),s[2]=n)):x.type==="tableCellDivider"&&(r?r=!1:(o[1]!==0&&(s[0]=s[1],d=ps(m,t,o,i,void 0,d)),o=s,s=[o[1],n,0,0])):x.type==="tableHead"?(l=!0,a=n):x.type==="tableRow"||x.type==="tableDelimiterRow"?(a=n,o[1]!==0?(s[0]=s[1],d=ps(m,t,o,i,n,d)):s[1]!==0&&(d=ps(m,t,s,i,n,d)),i=0):i&&(x.type==="data"||x.type==="tableDelimiterMarker"||x.type==="tableDelimiterFiller")&&(s[3]=n)}for(a!==0&&wm(m,t,a,u,f),m.consume(t.events),n=-1;++n<t.events.length;){const p=t.events[n];p[0]==="enter"&&p[1].type==="table"&&(p[1]._align=cT(t.events,n))}return e}function ps(e,t,n,r,i,o){const s=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",l="tableContent";n[0]!==0&&(o.end=Object.assign({},Ur(t.events,n[0])),e.add(n[0],0,[["exit",o,t]]));const a=Ur(t.events,n[1]);if(o={type:s,start:Object.assign({},a),end:Object.assign({},a)},e.add(n[1],0,[["enter",o,t]]),n[2]!==0){const u=Ur(t.events,n[2]),f=Ur(t.events,n[3]),d={type:l,start:Object.assign({},u),end:Object.assign({},f)};if(e.add(n[2],0,[["enter",d,t]]),r!==2){const m=t.events[n[2]],p=t.events[n[3]];if(m[1].end=Object.assign({},p[1].end),m[1].type="chunkText",m[1].contentType="text",n[3]>n[2]+1){const x=n[2]+1,b=n[3]-n[2]-1;e.add(x,b,[])}}e.add(n[3]+1,0,[["exit",d,t]])}return i!==void 0&&(o.end=Object.assign({},Ur(t.events,i)),e.add(i,0,[["exit",o,t]]),o=void 0),o}function wm(e,t,n,r,i){const o=[],s=Ur(t.events,n);i&&(i.end=Object.assign({},s),o.push(["exit",i,t])),r.end=Object.assign({},s),o.push(["exit",r,t]),e.add(n+1,0,o)}function Ur(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const mT={name:"tasklistCheck",tokenize:gT};function hT(){return{text:{91:mT}}}function gT(e,t,n){const r=this;return i;function i(a){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(a):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(a),e.exit("taskListCheckMarker"),o)}function o(a){return _e(a)?(e.enter("taskListCheckValueUnchecked"),e.consume(a),e.exit("taskListCheckValueUnchecked"),s):a===88||a===120?(e.enter("taskListCheckValueChecked"),e.consume(a),e.exit("taskListCheckValueChecked"),s):n(a)}function s(a){return a===93?(e.enter("taskListCheckMarker"),e.consume(a),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),l):n(a)}function l(a){return ne(a)?t(a):me(a)?e.check({tokenize:yT},t,n)(a):n(a)}}function yT(e,t,n){return ke(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function xT(e){return yy([V3(),J3(),lT(e),dT(),hT()])}const vT={};function Eo(e){const t=this,n=e||vT,r=t.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),o=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),s=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(xT(n)),o.push(F3()),s.push($3(n))}const kn={eof:null,asterisk:42,underscore:95,tilde:126},vi={attentionSideAfter:2,characterGroupPunctuation:2,characterGroupWhitespace:1},Jt={data:"data",characterEscape:"characterEscape",emphasis:"emphasis",emphasisSequence:"emphasisSequence",emphasisText:"emphasisText",strong:"strong",strongSequence:"strongSequence",strongText:"strongText"},kT=161,wT=1114109,bT=[161,161,164,164,167,168,170,170,173,174,176,180,182,186,188,191,198,198,208,208,215,216,222,225,230,230,232,234,236,237,240,240,242,243,247,250,252,252,254,254,257,257,273,273,275,275,283,283,294,295,299,299,305,307,312,312,319,322,324,324,328,331,333,333,338,339,358,359,363,363,462,462,464,464,466,466,468,468,470,470,472,472,474,474,476,476,593,593,609,609,708,708,711,711,713,715,717,717,720,720,728,731,733,733,735,735,768,879,913,929,931,937,945,961,963,969,1025,1025,1040,1103,1105,1105,8208,8208,8211,8214,8216,8217,8220,8221,8224,8226,8228,8231,8240,8240,8242,8243,8245,8245,8251,8251,8254,8254,8308,8308,8319,8319,8321,8324,8364,8364,8451,8451,8453,8453,8457,8457,8467,8467,8470,8470,8481,8482,8486,8486,8491,8491,8531,8532,8539,8542,8544,8555,8560,8569,8585,8585,8592,8601,8632,8633,8658,8658,8660,8660,8679,8679,8704,8704,8706,8707,8711,8712,8715,8715,8719,8719,8721,8721,8725,8725,8730,8730,8733,8736,8739,8739,8741,8741,8743,8748,8750,8750,8756,8759,8764,8765,8776,8776,8780,8780,8786,8786,8800,8801,8804,8807,8810,8811,8814,8815,8834,8835,8838,8839,8853,8853,8857,8857,8869,8869,8895,8895,8978,8978,9312,9449,9451,9547,9552,9587,9600,9615,9618,9621,9632,9633,9635,9641,9650,9651,9654,9655,9660,9661,9664,9665,9670,9672,9675,9675,9678,9681,9698,9701,9711,9711,9733,9734,9737,9737,9742,9743,9756,9756,9758,9758,9792,9792,9794,9794,9824,9825,9827,9829,9831,9834,9836,9837,9839,9839,9886,9887,9919,9919,9926,9933,9935,9939,9941,9953,9955,9955,9960,9961,9963,9969,9972,9972,9974,9977,9979,9980,9982,9983,10045,10045,10102,10111,11094,11097,12872,12879,57344,63743,65024,65039,65533,65533,127232,127242,127248,127277,127280,127337,127344,127373,127375,127376,127387,127404,917760,917999,983040,1048573,1048576,1114109],ST=12288,_T=65510,CT=[12288,12288,65281,65376,65504,65510],IT=8361,NT=65518,ET=[8361,8361,65377,65470,65474,65479,65482,65487,65490,65495,65498,65500,65512,65518],TT=32,jT=10630,AT=[32,126,162,163,165,166,172,172,175,175,10214,10221,10629,10630],PT=4352,RT=262141,ux=[4352,4447,8986,8987,9001,9002,9193,9196,9200,9200,9203,9203,9725,9726,9748,9749,9776,9783,9800,9811,9855,9855,9866,9871,9875,9875,9889,9889,9898,9899,9917,9918,9924,9925,9934,9934,9940,9940,9962,9962,9970,9971,9973,9973,9978,9978,9981,9981,9989,9989,9994,9995,10024,10024,10060,10060,10062,10062,10067,10069,10071,10071,10133,10135,10160,10160,10175,10175,11035,11036,11088,11088,11093,11093,11904,11929,11931,12019,12032,12245,12272,12287,12289,12350,12353,12438,12441,12543,12549,12591,12593,12686,12688,12773,12783,12830,12832,12871,12880,42124,42128,42182,43360,43388,44032,55203,63744,64255,65040,65049,65072,65106,65108,65126,65128,65131,94176,94180,94192,94198,94208,101594,101631,101664,101760,101874,101888,102801,102816,102866,110576,110579,110581,110587,110589,110590,110592,110888,110898,110898,110928,110930,110933,110933,110948,110952,110960,111355,119552,119638,119648,119670,126980,126980,127183,127183,127374,127374,127377,127386,127406,127406,127488,127490,127504,127547,127552,127560,127568,127569,127584,127589,127744,127776,127789,127797,127799,127868,127870,127891,127904,127946,127951,127955,127968,127984,127988,127988,127992,128062,128064,128064,128066,128252,128255,128317,128331,128334,128336,128359,128378,128378,128405,128406,128420,128420,128507,128591,128640,128709,128716,128716,128720,128722,128725,128729,128732,128735,128747,128748,128756,128764,128986,128986,128992,129003,129008,129008,129292,129338,129340,129349,129351,129535,129648,129660,129664,129734,129736,129736,129740,129757,129759,129771,129775,129786,131072,196605,196608,262141],Vo=(e,t)=>{let n=0,r=Math.floor(e.length/2)-1;for(;n<=r;){const i=Math.floor((n+r)/2),o=i*2;if(t<e[o])r=i-1;else if(t>e[o+1])n=i+1;else return!0}return!1},bm=19968,[zT,MT]=LT(ux);function LT(e){let t=e[0],n=e[1];for(let r=0;r<e.length;r+=2){const i=e[r],o=e[r+1];if(bm>=i&&bm<=o)return[i,o];o-i>n-t&&(t=i,n=o)}return[t,n]}const OT=e=>e<kT||e>wT?!1:Vo(bT,e),DT=e=>e<ST||e>_T?!1:Vo(CT,e),FT=e=>e<IT||e>NT?!1:Vo(ET,e),$T=e=>e<TT||e>jT?!1:Vo(AT,e),UT=e=>e>=zT&&e<=MT?!0:e<PT||e>RT?!1:Vo(ux,e);function BT(e){return OT(e)?"ambiguous":DT(e)?"fullwidth":FT(e)?"halfwidth":$T(e)?"narrow":UT(e)?"wide":"neutral"}function VT(e){if(!Number.isSafeInteger(e))throw new TypeError(`Expected a code point, got \`${typeof e}\`.`)}function HT(e){return VT(e),BT(e)}function qT(e){return new RegExp("^\\p{Emoji_Presentation}","u").test(String.fromCodePoint(e))}function WT(e){if(!e||e<4352)return!1;switch(HT(e)){case"fullwidth":case"halfwidth":return!0;case"wide":return!qT(e);case"narrow":return!1;case"ambiguous":return 917760<=e&&e<=917999?null:!1;case"neutral":return new RegExp("^\\p{sc=Hangul}","u").test(String.fromCodePoint(e))}}function ZT(e,t){return t!==65025||!e||e<8216?!1:e===8216||e===8217||e===8220||e===8221}function GT(e){return e!==null&&e>=65024&&e<=65038}const QT=cx(new RegExp("\\p{P}|\\p{S}","u")),KT=cx(/\s/);function cx(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCodePoint(n))}}function To(e){return!!(e&vi.characterGroupWhitespace)}function wl(e){return(e&It.cjkPunctuation)===vi.characterGroupPunctuation}function ic(e){return!!(e&It.cjk)}function YT(e){return e===It.ivs}function XT(e){return!!(e&It.cjkOrIvs)}function JT(e){return e===It.nonEmojiGeneralUseVS}function Sm(e){return!!(e&It.spaceOrPunctuation)}let It;(function(e){e.spaceOrPunctuation=3,e.cjk=4096,e.cjkPunctuation=4098,e.ivs=8192,e.cjkOrIvs=12288,e.nonEmojiGeneralUseVS=16384,e.variationSelector=24576,e.ivsToCjkRightShift=1})(It||(It={}));function li(e){if(e===kn.eof||_e(e)||KT(e))return vi.characterGroupWhitespace;let t=0;if(e>=4352){if(GT(e))return It.nonEmojiGeneralUseVS;switch(WT(e)){case null:return It.ivs;case!0:t|=It.cjk;break}}return QT(e)&&(t|=vi.characterGroupPunctuation),t}function dx(e,t,n){if(!JT(e))return e;const r=t(),i=li(r);return!r||To(i)?e:ZT(r,n)?It.cjkPunctuation:e5(i)}function e5(e){return e&~It.ivs}function fx(e){return!!(e&&e>=55296&&e<=56319)}function px(e){return!!(e&&e>=56320&&e<=57343)}function mx(e,t,n){if(t._bufferIndex<2)return e;const r=n({start:{...t,_bufferIndex:t._bufferIndex-2},end:t}).codePointAt(0);return r&&r>=65536?r:e}function t5(e,t,n){const r=e>=65536?2:1;if(t._bufferIndex<1+r)return null;const i=t._bufferIndex-r-2,o=n({start:{...t,_bufferIndex:i>=0?i:0},end:{...t,_bufferIndex:t._bufferIndex-r}}),s=o.charCodeAt(o.length-1);if(Number.isNaN(s))return null;if(o.length<2||s<56320||57343<s)return s;const l=o.codePointAt(0);return l&&l>=65536?l:s}var hx=class{constructor(e,t,n){Hd(this,"cachedValue");this.previousCode=e,this.nowPoint=t,this.sliceSerialize=n}value(){return this.cachedValue===void 0&&(this.cachedValue=t5(this.previousCode,this.nowPoint,this.sliceSerialize)),this.cachedValue}};function gx(e,t,n){const r=n({start:t,end:{...t,_bufferIndex:t._bufferIndex+2}}).codePointAt(0);return r&&r>=65536?r:e}const Fa={name:"attention",resolveAll:n5,tokenize:r5};function n5(e,t){let n=-1,r,i,o,s,l,a,u,f;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;a=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const d={...e[r][1].end},m={...e[n][1].start};_m(d,-a),_m(m,a),s={type:a>1?Jt.strongSequence:Jt.emphasisSequence,start:d,end:{...e[r][1].end}},l={type:a>1?Jt.strongSequence:Jt.emphasisSequence,start:{...e[n][1].start},end:m},o={type:a>1?Jt.strongText:Jt.emphasisText,start:{...e[r][1].end},end:{...e[n][1].start}},i={type:a>1?Jt.strong:Jt.emphasis,start:{...s.start},end:{...l.end}},e[r][1].end={...s.start},e[n][1].start={...l.end},u=[],e[r][1].end.offset-e[r][1].start.offset&&(u=Qe(u,[["enter",e[r][1],t],["exit",e[r][1],t]])),u=Qe(u,[["enter",i,t],["enter",s,t],["exit",s,t],["enter",o,t]]),t.parser.constructs.insideSpan.null,u=Qe(u,Ni(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),u=Qe(u,[["exit",o,t],["enter",l,t],["exit",l,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(f=2,u=Qe(u,[["enter",e[n][1],t],["exit",e[n][1],t]])):f=0,Ye(e,r-1,n-r+3,u),n=r+u.length-f-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function r5(e,t){const n=this.parser.constructs.attentionMarkers.null,{now:r,sliceSerialize:i,previous:o}=this,s=px(o)?mx(o,r(),i):o,l=li(s),a=new hx(s,r(),i),u=dx(l,a.value.bind(a),s);let f;return d;function d(p){return f=p,e.enter("attentionSequence"),m(p)}function m(p){if(p===f)return e.consume(p),m;const x=e.exit("attentionSequence"),b=li(fx(p)?gx(p,r(),i):p),I=wl(u),y=I||To(u),v=wl(b),w=v||To(b),N=XT(u),j=!w||v&&(y||N)||n.includes(p),S=!y||I&&(w||ic(b))||n.includes(s);return x._open=!!(f===kn.asterisk?j:j&&(Sm(u)||!S)),x._close=!!(f===kn.asterisk?S:S&&(Sm(b)||!j)),t(p)}}function _m(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}function i5(){return{text:{[kn.asterisk]:Fa,[kn.underscore]:Fa},insideSpan:{null:[Fa]}}}function o5(){const e=this.data();(e.micromarkExtensions||(e.micromarkExtensions=[])).push(i5())}function s5(e){let t=(e||{}).singleTilde;const n={name:"strikethrough",tokenize:i,resolveAll:r};return t==null&&(t=!0),{text:{[kn.tilde]:n},insideSpan:{null:[n]},attentionMarkers:{null:[kn.tilde]}};function r(o,s){let l=-1;for(;++l<o.length;)if(o[l][0]==="enter"&&o[l][1].type==="strikethroughSequenceTemporary"&&o[l][1]._close){let a=l;for(;a--;)if(o[a][0]==="exit"&&o[a][1].type==="strikethroughSequenceTemporary"&&o[a][1]._open&&o[l][1].end.offset-o[l][1].start.offset===o[a][1].end.offset-o[a][1].start.offset){o[l][1].type="strikethroughSequence",o[a][1].type="strikethroughSequence";const u={type:"strikethrough",start:Object.assign({},o[a][1].start),end:Object.assign({},o[l][1].end)},f={type:"strikethroughText",start:Object.assign({},o[a][1].end),end:Object.assign({},o[l][1].start)},d=[["enter",u,s],["enter",o[a][1],s],["exit",o[a][1],s],["enter",f,s]],m=s.parser.constructs.insideSpan.null;m&&Ye(d,d.length,0,Ni(m,o.slice(a+1,l),s)),Ye(d,d.length,0,[["exit",f,s],["enter",o[l][1],s],["exit",o[l][1],s],["exit",u,s]]),Ye(o,a-1,l-a+3,d),l=a+d.length-2;break}}for(l=-1;++l<o.length;)o[l][1].type==="strikethroughSequenceTemporary"&&(o[l][1].type=Jt.data);return o}function i(o,s,l){const{now:a,sliceSerialize:u,previous:f}=this,d=px(f)?mx(f,a(),u):f,m=li(d),p=new hx(d,a(),u),x=dx(m,p.value.bind(p),d),b=this.events;let I=0;return y;function y(w){return d===kn.tilde&&b[b.length-1][1].type!==Jt.characterEscape?l(w):(o.enter("strikethroughSequenceTemporary"),v(w))}function v(w){const N=li(d);if(w===kn.tilde)return I>1?l(w):(o.consume(w),I++,v);if(I<2&&!t)return l(w);const j=o.exit("strikethroughSequenceTemporary"),S=li(fx(w)?gx(w,a(),u):w),A=wl(x)||To(x),E=wl(S)||To(S),$=ic(x)||YT(N);return j._open=!E||S===vi.attentionSideAfter&&(A||$),j._close=!A||N===vi.attentionSideAfter&&(E||ic(S)),s(w)}}}function l5(e){const t=this.data();(t.micromarkExtensions||(t.micromarkExtensions=[])).push(s5(e))}const a5=/<command-name>([\s\S]*?)<\/command-name>/i,u5=/<command-message>([\s\S]*?)<\/command-message>/i,c5=/<command-args>([\s\S]*?)<\/command-args>/i,d5=/<(local-command-[a-z]+|command-(?:stdout|stderr))>[\s\S]*?<\/\1>/gi;function Dd(e){if(!e)return{commandName:null,commandMessage:null,commandArgs:null,body:""};const t=e.match(a5),n=e.match(u5),r=e.match(c5);let i=e;return t&&(i=i.replace(t[0],"")),n&&(i=i.replace(n[0],"")),r&&(i=i.replace(r[0],"")),i=i.replace(d5,""),i=i.trim(),{commandName:t?t[1].trim():null,commandMessage:n?n[1].trim():null,commandArgs:r?r[1].trim():null,body:i}}function yx(e){if(!e)return!1;const n=e.split("#")[0].split("?")[0].toLowerCase();return n.endsWith(".md")||n.endsWith(".markdown")}function f5(e){if(!e)return null;let t;if(e.startsWith("file://")){const n=e.slice(7);t=n.startsWith("/")?n:`/${n.split("/").slice(1).join("/")}`}else{if(/^[a-z][a-z0-9+.-]*:/i.test(e))return null;if(e.startsWith("/"))t=e;else return null}try{return decodeURIComponent(t)}catch{return t}}const p5=/\.(png|jpe?g|webp|gif|svg)$/i;function m5(e,t){if((typeof t=="string"?t:null)!==e)return!1;try{const r=new URL(e);return p5.test(r.pathname)}catch{return!1}}function h5(e){try{return new URL(e).pathname.split("/").filter(Boolean).pop()??""}catch{return""}}const jr={a:({node:e,href:t,children:n,...r})=>typeof t=="string"&&m5(t,n)?h.jsxs("span",{className:"my-1 inline-flex flex-col items-start gap-1 align-top",children:[h.jsx("img",{src:t,alt:h5(t),className:"max-w-full h-auto rounded border border-border"}),h.jsx("a",{href:t,target:"_blank",rel:"noopener noreferrer",className:"max-w-full truncate text-[11px] text-text-300 underline decoration-dotted underline-offset-2 hover:text-text-100",children:t})]}):h.jsx("a",{...r,href:t,target:"_blank",rel:"noopener noreferrer",children:n})};function xx(e){return e.startsWith("file://")?e:Fy(e)}function vx(e){return{...jr,a:t=>{const{href:n,children:r}=t,i=typeof n=="string"?f5(n):null;if(i===null){const o=jr.a;return h.jsx(o,{...t})}return h.jsx("a",{href:n,"data-testid":"assistant-file-link",title:i,onClick:o=>{o.preventDefault(),e(i)},children:r})}}}function g5({text:e,forkTarget:t,onOpenFilePath:n}){const{body:r}=Dd(e),i=Ao.useMemo(()=>n?vx(n):jr,[n]);return r?h.jsxs("div",{className:"group relative flex min-w-0 max-w-full flex-col items-start","data-testid":"msg-line-assistant-wrapper",children:[h.jsx("div",{"data-testid":"msg-line-assistant",className:"assistant-markdown w-full min-w-0 max-w-full py-1 break-words",children:h.jsx(Io,{remarkPlugins:[Eo,o5,l5],components:i,...n?{urlTransform:xx}:{},children:r})}),t?h.jsxs("div",{className:"mt-1 flex flex-row items-center gap-1 md:absolute md:top-full md:mt-0 md:pt-0.5 md:z-10 md:rounded-md md:pointer-events-none md:group-hover:pointer-events-auto md:group-hover:bg-bg-100",children:[t.onFork?h.jsxs("button",{type:"button","data-testid":"assistant-msg-fork","aria-label":"fork from this message",title:"从这条消息派生新 session(截断之后的对话)",onClick:()=>t.onFork(t.messageUuid),className:"inline-flex items-center justify-start gap-1 h-7 w-7 md:h-6 md:w-auto md:px-1.5 rounded-md text-[11px] text-text-400/60 md:text-text-400 hover:bg-text-100/5 hover:text-text-200 md:opacity-0 md:group-hover:opacity-100 md:transition-opacity cursor-pointer",children:[h.jsx(Kg,{className:"w-3 h-3",strokeWidth:2}),h.jsx("span",{className:"hidden md:inline",children:"Fork"})]}):null,t.onQuickAsk?h.jsxs("button",{type:"button","data-testid":"assistant-msg-quick-ask","aria-label":"quick ask from this message",title:"快速问答:从这条消息派生临时会话,关闭即删",onClick:()=>t.onQuickAsk(t.messageUuid),className:"inline-flex items-center justify-start gap-1 h-7 w-7 md:h-6 md:w-auto md:px-1.5 rounded-md text-[11px] text-text-400/60 md:text-text-400 hover:bg-text-100/5 hover:text-text-200 md:opacity-0 md:group-hover:opacity-100 md:transition-opacity cursor-pointer",children:[h.jsx(Wk,{className:"w-3 h-3",strokeWidth:2}),h.jsx("span",{className:"hidden md:inline",children:"问一下"})]}):null]}):null]}):null}function y5({text:e}){const[t,n]=U.useState(!1);return e?h.jsxs("div",{"data-testid":"msg-line-thinking",className:"text-[12px] text-text-400",children:[h.jsxs("button",{type:"button",onClick:()=>n(r=>!r),className:"flex items-center gap-1 hover:text-text-300 transition-colors cursor-pointer","aria-expanded":t,"data-testid":"msg-line-thinking-toggle",children:[t?h.jsx(sn,{className:"w-3 h-3"}):h.jsx(ln,{className:"w-3 h-3"}),h.jsx("span",{children:"💭 Thinking"})]}),t?h.jsx("div",{className:"ml-4 mt-1 italic text-text-400 whitespace-pre-wrap break-words",children:e}):null]}):null}const x5=new Set(["Write","Edit","MultiEdit","NotebookEdit"]);function oc(e){return x5.has(e)}function v5({tool:e,relPath:t,scope:n,onShareFile:r}){if(!oc(e)||!t||!n||!r)return null;const i=yx(t)?"md-rendered":"raw";return h.jsx("span",{"data-testid":"file-edit-hover-row",className:"inline-flex shrink-0 items-center gap-1",children:h.jsx("span",{role:"button",tabIndex:0,"data-testid":"file-edit-share-btn","aria-label":"Share link",title:"Share link",onClick:o=>{o.stopPropagation(),r(t,i)},onKeyDown:o=>{(o.key==="Enter"||o.key===" ")&&(o.stopPropagation(),o.preventDefault(),r(t,i))},className:"inline-flex h-3.5 w-3.5 items-center justify-center text-text-400 hover:text-text-200 cursor-pointer",children:h.jsx(aw,{className:"h-3.5 w-3.5"})})})}function k5(e){if(!e||typeof e!="object")return null;const t=e;return typeof t.file_path=="string"&&t.file_path||typeof t.notebook_path=="string"&&t.notebook_path||typeof t.path=="string"&&t.path||null||null}U.createContext(null);const w5={actionsLevel:"none",httpBaseUrl:null,httpToken:null},b5=U.createContext(w5);function S5(){return U.useContext(b5)}function _5(e,t,n){if(!e.httpBaseUrl)return null;const r=encodeURIComponent(n);return`${e.httpBaseUrl}/session/${encodeURIComponent(t.sessionId)}/files?path=${r}`}function kx(e,t){const[n,r]=U.useState({kind:"idle"});return U.useEffect(()=>{let i=!1,o=null;r({kind:"loading"});const s={};return t&&(s.Authorization=`Bearer ${t}`),fetch(e,{headers:s,credentials:"omit"}).then(async l=>{if(!l.ok)throw new Error(`HTTP ${l.status}`);return l.blob()}).then(l=>{if(i)return;const a=URL.createObjectURL(l);o=a,r({kind:"ready",objectUrl:a})}).catch(l=>{i||r({kind:"error",message:l.message})}),()=>{i=!0,o&&URL.revokeObjectURL(o)}},[e,t]),n}function C5({url:e,bearerToken:t,alt:n,className:r}){const i=kx(e,t);return h.jsxs("div",{"data-testid":"blob-image","data-state":i.kind,className:ve("relative inline-flex items-center justify-center rounded-md border border-border bg-bg-0",r),children:[i.kind==="loading"?h.jsx("div",{className:"flex h-24 w-32 items-center justify-center",children:h.jsx(sr,{className:"h-4 w-4 animate-spin text-text-400"})}):null,i.kind==="error"?h.jsxs("div",{className:"flex h-24 w-32 items-center justify-center gap-1 px-2 text-[11px] text-text-400",children:[h.jsx(Lo,{className:"h-3 w-3"}),h.jsx("span",{title:i.message,children:"加载失败"})]}):null,i.kind==="ready"?h.jsx("img",{src:i.objectUrl,alt:n,className:"block max-h-[180px] max-w-[420px] rounded-md object-contain"}):null]})}function I5({url:e,bearerToken:t,className:n}){const r=kx(e,t);return h.jsxs("div",{"data-testid":"blob-video","data-state":r.kind,className:ve("relative inline-flex items-center justify-center rounded-md border border-border bg-bg-0",n),children:[r.kind==="loading"?h.jsx(sr,{className:"h-4 w-4 animate-spin text-text-400"}):null,r.kind==="error"?h.jsx("span",{className:"px-2 text-[11px] text-text-400",children:"加载失败"}):null,r.kind==="ready"?h.jsx("video",{src:r.objectUrl,controls:!0,className:"block max-h-[240px] max-w-[420px] rounded-md"}):null]})}const N5=new Set([".png",".jpg",".jpeg",".gif",".webp",".svg"]),E5=new Set([".mp4",".webm",".mov"]),T5=new Set([".pdf"]);function j5(e){const t=e.lastIndexOf("."),n=t>=0?e.slice(t).toLowerCase():"";return N5.has(n)?"image":E5.has(n)?"video":T5.has(n)?"pdf":"binary"}function wx(e){return e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(1)} KB`:`${(e/1024/1024).toFixed(1)} MB`}function A5({relPath:e,scope:t,size:n}){const r=S5();if(r.actionsLevel==="none")return null;const i=_5(r,t,e);if(!i)return null;const o=j5(e);return o==="image"?h.jsx("div",{"data-testid":"file-edit-inline-preview","data-kind":"image",className:"mt-2",children:h.jsx(C5,{url:i,bearerToken:r.httpToken,alt:e})}):o==="video"?h.jsx("div",{"data-testid":"file-edit-inline-preview","data-kind":"video",className:"mt-2",children:h.jsx(I5,{url:i,bearerToken:r.httpToken})}):o==="pdf"?h.jsx(P5,{relPath:e,url:i,size:n}):typeof n=="number"&&n>=1024*1024?h.jsxs("div",{"data-testid":"file-edit-inline-preview","data-kind":"binary",className:"mt-2 inline-flex items-center gap-1.5 rounded border border-border bg-bg-50 px-2 py-1 text-[11px] text-text-400",children:[h.jsx(Cr,{className:"h-3 w-3"}),h.jsx("span",{className:"font-mono",children:e.split("/").pop()}),h.jsx("span",{children:"·"}),h.jsx("span",{children:wx(n)})]}):null}function P5({relPath:e,url:t,size:n}){return h.jsxs("a",{"data-testid":"file-edit-inline-preview","data-kind":"pdf",href:t,target:"_blank",rel:"noopener noreferrer",className:"mt-2 inline-flex items-center gap-1.5 rounded border border-border bg-bg-50 px-2 py-1 text-[11px] text-text-300 hover:bg-bg-100",children:[h.jsx(Cr,{className:"h-3 w-3"}),h.jsx("span",{className:"font-mono",children:e.split("/").pop()}),typeof n=="number"?h.jsxs(h.Fragment,{children:[h.jsx("span",{children:"·"}),h.jsx("span",{children:wx(n)})]}):null,h.jsx(Ru,{className:"h-3 w-3"})]})}const R5={Bash:e1,Read:Cr,Edit:Xk,Write:Ok,Grep:rp,Glob:rp};function z5(e){return R5[e]??ww}function M5(e){if(!e||typeof e!="object")return"";const t=e,n=t.command??t.file_path??t.path??t.pattern??t.query??t.url??t.description;if(typeof n=="string")return n;for(const r of Object.values(t))if(typeof r=="string"&&r)return r;return""}function L5({tool:e,input:t,output:n,error:r,pending:i=!1,expandedBody:o,fileScope:s,onOpenInTab:l,onPreviewMarkdown:a,onShareFile:u}){const[f,d]=U.useState(!1),m=!!r,p=z5(e),x=M5(t),b=k5(t);return h.jsxs("div",{"data-testid":"msg-line-tool","data-tool":e,className:ve("group min-w-0 max-w-full rounded-md border px-3 py-2 text-[13px]",m?"border-destructive/40 bg-destructive/5":"border-border bg-bg-50"),children:[h.jsxs("button",{type:"button",onClick:()=>d(I=>!I),"aria-expanded":f,"data-testid":"msg-line-tool-header",className:"flex w-full items-center gap-2 text-left cursor-pointer min-w-0",children:[m?h.jsx(Lo,{className:"w-4 h-4 text-destructive shrink-0"}):h.jsx(p,{className:ve("w-4 h-4 shrink-0",i?"text-text-400":"text-text-300")}),h.jsx("span",{className:"font-medium text-text-100 shrink-0",children:e}),x?(()=>{if(m||!oc(e)||!b)return null;const y=yx(b)&&a?a:l;return y?h.jsx("span",{role:"button",tabIndex:0,"data-testid":"msg-line-tool-preview","data-clickable":"true",title:x,onClick:v=>{v.stopPropagation(),y(b)},onKeyDown:v=>{(v.key==="Enter"||v.key===" ")&&(v.stopPropagation(),v.preventDefault(),y(b))},className:"text-[12px] text-accent font-mono truncate min-w-0 max-w-full cursor-pointer underline underline-offset-2 hover:opacity-80",children:x}):null})()??h.jsx("span",{"data-testid":"msg-line-tool-preview",className:"text-[12px] text-text-400 font-mono truncate min-w-0 max-w-full",title:x,children:x}):null,h.jsx("span",{"aria-hidden":"true","data-testid":"msg-line-tool-header-spacer",className:"flex-1 min-w-0 self-stretch"}),i?h.jsx(sr,{"data-testid":"msg-line-tool-pending",className:"w-3 h-3 text-text-400 animate-spin shrink-0"}):null,!m&&s?h.jsx(v5,{tool:e,relPath:b,scope:s,...u?{onShareFile:u}:{}}):null]}),f?o!==void 0?h.jsxs("div",{"data-testid":"msg-line-tool-body",className:"mt-2 min-w-0 text-[12px]",children:[o,m?h.jsxs("div",{className:"mt-2",children:[h.jsx("div",{className:"text-destructive mb-0.5",children:"error"}),h.jsx("pre",{className:"min-w-0 max-w-full bg-bg-0 border border-destructive/40 rounded p-2 overflow-auto text-destructive",children:String(r)})]}):null]}):h.jsxs("div",{"data-testid":"msg-line-tool-body",className:"mt-2 min-w-0 space-y-1 text-[12px]",children:[h.jsxs("div",{children:[h.jsx("div",{className:"text-text-400 mb-0.5",children:"input"}),h.jsx("pre",{className:"min-w-0 max-w-full bg-bg-0 border border-border rounded p-2 overflow-auto text-text-200",children:JSON.stringify(t,null,2)})]}),n!==void 0?h.jsxs("div",{children:[h.jsx("div",{className:"text-text-400 mb-0.5",children:"output"}),h.jsx("pre",{className:"min-w-0 max-w-full bg-bg-0 border border-border rounded p-2 overflow-auto text-text-200",children:typeof n=="string"?n:JSON.stringify(n,null,2)})]}):null,m?h.jsxs("div",{children:[h.jsx("div",{className:"text-destructive mb-0.5",children:"error"}),h.jsx("pre",{className:"min-w-0 max-w-full bg-bg-0 border border-destructive/40 rounded p-2 overflow-auto text-destructive",children:String(r)})]}):null]}):null,!m&&s&&b&&oc(e)?h.jsx(A5,{relPath:b,scope:s}):null]})}function O5({tool:e,input:t,onRespond:n,onInterrupt:r}){return h.jsxs("div",{"data-testid":"msg-line-permission",className:"min-w-0 max-w-full rounded-md border border-warning/40 bg-warning-dim/60 px-3 py-2.5 text-[13px]",children:[h.jsxs("div",{className:"flex min-w-0 items-center gap-2 mb-1.5",children:[h.jsx(cw,{className:"w-4 h-4 text-warning shrink-0"}),h.jsxs("span",{className:"min-w-0 font-medium text-text-100 truncate",children:["权限请求:",e]}),r?h.jsx("button",{type:"button",onClick:r,"data-testid":"msg-line-permission-interrupt","aria-label":"interrupt current turn",title:"中断当前轮次(不杀进程)",className:"ml-auto h-6 w-6 rounded-md flex items-center justify-center text-text-400 hover:bg-text-100/10 hover:text-text-200 transition-colors cursor-pointer",children:h.jsx(Kk,{className:"w-3.5 h-3.5",strokeWidth:2})}):null]}),h.jsx("pre",{className:"min-w-0 max-w-full bg-bg-0 border border-border rounded p-2 mb-2 max-h-[140px] overflow-auto text-[12px] text-text-200",children:JSON.stringify(t,null,2)}),h.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[h.jsx(Xn,{size:"sm",variant:"default",onClick:()=>n(!0,!1),"data-testid":"msg-line-permission-allow",children:"Allow"}),h.jsx(Xn,{size:"sm",variant:"outline",onClick:()=>n(!0,!0),"data-testid":"msg-line-permission-allow-always",children:"Allow Always"}),h.jsx(Xn,{size:"sm",variant:"destructive",onClick:()=>n(!1,!1),"data-testid":"msg-line-permission-deny",children:"Deny"})]})]})}function D5({message:e}){return h.jsxs("div",{"data-testid":"msg-line-error",className:"flex min-w-0 max-w-full items-start gap-2 text-destructive text-[13px] rounded-md border border-destructive/40 bg-destructive/5 px-3 py-2",children:[h.jsx(t1,{className:"w-4 h-4 shrink-0 mt-0.5"}),h.jsx("span",{className:"min-w-0 whitespace-pre-wrap break-words [overflow-wrap:anywhere]",children:e})]})}const Cm=/\[attachment:(image|file):([^\]]+)\]/g;function Im(e){try{return decodeURIComponent(e)}catch{return e}}function F5(e){var n,r;if(e.startsWith("data:")){const i=e.slice(5,e.indexOf(",")),o=(n=/;name=([^;]+)/i.exec(i))==null?void 0:n[1];if(o)return Im(o);const s=(r=i.split(";")[0])==null?void 0:r.toLowerCase(),l={"text/plain":"txt","application/pdf":"pdf","image/png":"png","image/jpeg":"jpg","image/gif":"gif","image/webp":"webp"}[s??""];return(s!=null&&s.startsWith("image/")?"图片":"附件")+(l?"."+l:"")}const t=e.split(/[?#]/,1)[0];return Im(t.split("/").pop()||"附件")}function $5(e){const t=[];let n;for(;(n=Cm.exec(e))!==null;){const i=n[2],o=F5(i);t.push({type:n[1],url:i,fileName:o})}const r=e.replace(Cm,"").trim();return{attachments:t,text:r}}const U5=/\[skill:(.+?):(\/[^\]]+)\]/g;function B5(e){const t=[],n=e.replace(U5,(r,i)=>(t.push(i),""));return{skills:t,text:t.length>0?n.trim():e}}function V5({text:e,senderDisplayName:t,senderPrincipal:n,rewindTarget:r}){const i=n==="guest",o=ny(e),{attachments:s,text:l}=$5(o),{skills:a,text:u}=B5(l),{commandName:f,body:d}=Dd(u),m=d.length>0;return m||s.length>0||!!f||a.length>0?(f||a.length>0)&&!m&&s.length===0?h.jsxs("div",{className:"flex min-w-0 max-w-full justify-end gap-1.5 py-2 mt-2","data-testid":"msg-line-user","data-sender-principal":i?"guest":"owner",children:[a.map((x,b)=>h.jsxs("span",{"data-testid":"user-skill-chip",className:"inline-flex items-center rounded-md bg-bg-200/60 px-2 py-0.5 text-[11px] font-mono text-text-300",children:["/",x]},`${x}-${b}`)),f?h.jsx("span",{className:"inline-flex items-center rounded-md bg-bg-200/60 px-2 py-0.5 text-[11px] font-mono text-text-300",children:f}):null]}):h.jsxs("div",{className:"group flex min-w-0 max-w-full flex-col items-end py-2 mt-2","data-testid":"msg-line-user","data-sender-principal":i?"guest":"owner",children:[h.jsxs("div",{"data-testid":"user-msg-bubble",className:ve("min-w-0 max-w-[85%] rounded-2xl rounded-br-sm px-3.5 py-2 whitespace-pre-wrap break-words [overflow-wrap:anywhere]",i?"border border-border bg-bg-200":"bg-accent"),children:[s.length>0?h.jsx(H5,{attachments:s}):null,a.length>0?h.jsx("div",{className:ve("flex flex-wrap gap-1.5",(m||f)&&"mb-1.5"),children:a.map((x,b)=>h.jsxs("span",{"data-testid":"user-skill-chip",className:ve("inline-flex items-center rounded-md px-2 py-0.5 text-[11px] font-mono",i?"bg-text-100/10 text-text-200":"bg-white/15 text-white/90"),children:["/",x]},`${x}-${b}`))}):null,f?h.jsx("div",{className:ve("flex",m&&"mb-1.5"),children:h.jsx("span",{"data-testid":"user-command-chip",className:ve("inline-flex items-center rounded-md px-2 py-0.5 text-[11px] font-mono",i?"bg-text-100/10 text-text-200":"bg-white/15 text-white/90"),children:f})}):null,m?h.jsx("div",{className:ve("text-[14px] font-medium leading-relaxed",i?"text-text-100":"text-white"),children:d}):null]}),t?h.jsx("div",{"data-testid":"user-msg-sender-label",className:"mt-1 text-[11px] text-text-400",children:t}):null,r?h.jsxs("button",{type:"button","data-testid":"user-msg-rewind","aria-label":"rewind to this message",title:"回退到这条消息(会撤销之后 CC 的文件编辑)",onClick:()=>r.onRewind(r.userMessageId),className:"mt-1 inline-flex items-center gap-1 h-6 px-1.5 rounded-md text-[11px] text-text-400 hover:bg-text-100/5 hover:text-text-200 opacity-0 group-hover:opacity-100 transition-opacity cursor-pointer",children:[h.jsx(vw,{className:"w-3 h-3",strokeWidth:2}),h.jsx("span",{children:"Rewind"})]}):null]}):null}function H5({attachments:e}){return h.jsx("div",{className:"flex flex-wrap gap-1.5 mb-1.5","data-testid":"user-attachment-row",children:e.map(t=>h.jsx(q5,{attachment:t},t.url))})}function q5({attachment:e}){return e.type==="image"?h.jsx("img",{src:e.url,alt:e.fileName,"data-testid":"user-attachment-image",className:"h-16 w-16 rounded object-cover shrink-0 border border-bg-300/50"}):h.jsxs("div",{"data-testid":"user-attachment-file",className:"flex items-center gap-1.5 rounded-md border border-bg-300 bg-bg-100/60 px-2 py-1 text-[12px] text-text-200",children:[h.jsx(Cr,{className:"h-3.5 w-3.5 text-text-400 shrink-0"}),h.jsx("span",{className:"max-w-[140px] truncate",children:e.fileName})]})}const W5={"task-notification":"子任务通知","slash-command":"斜杠命令","local-command":"本地命令输出","system-reminder":"系统提醒","skill-hint":"Skill 注入","meta-text":"系统消息","attachment-skills":"技能列表","attachment-deferred-tools":"Deferred 工具变更","dispatch-task":"委派任务","dispatch-result":"委派回报"},Z5={"task-notification":np,"slash-command":hw,"local-command":e1,"system-reminder":np,"skill-hint":ip,"meta-text":Xg,"attachment-skills":ip,"attachment-deferred-tools":ew,"dispatch-task":Jg,"dispatch-result":Yg};function bx({metaKind:e,text:t}){const[n,r]=U.useState(!1),i=Z5[e];if(e==="slash-command"){const{commandName:s,commandMessage:l,commandArgs:a,body:u}=Dd(t),f=s??(l?`/${l}`:null),d=!!(a&&a.length>0),m=u.length>0;return!f&&!d&&!m?null:h.jsxs("div",{"data-testid":"msg-line-user-meta","data-meta-kind":e,className:"flex min-w-0 max-w-full flex-col items-end gap-0.5 py-1",children:[h.jsxs("div",{className:"flex min-w-0 items-center gap-2 max-w-full",children:[f?h.jsxs("span",{className:"inline-flex items-center gap-1.5 rounded-md bg-bg-200/60 px-2 py-0.5 text-[11px] font-mono text-text-300 shrink-0",children:[h.jsx(i,{className:"w-3 h-3 opacity-70"}),f]}):null,d?h.jsx("span",{"data-testid":"user-meta-command-args",className:"min-w-0 text-[12px] text-text-200 whitespace-pre-wrap break-words max-w-[70ch] [overflow-wrap:anywhere]",children:a}):null]}),m?h.jsx("span",{className:"ml-2 max-w-[60%] truncate text-[11px] text-text-400",children:u}):null]})}const o=t.replace(/\s+/g," ").trim().slice(0,80);return h.jsxs("div",{"data-testid":"msg-line-user-meta","data-meta-kind":e,className:"flex min-w-0 max-w-full flex-col items-start gap-1 py-1",children:[h.jsxs("button",{type:"button","aria-expanded":n,onClick:()=>r(s=>!s),className:ve("group inline-flex items-center gap-1.5 rounded-md border border-bg-200/60 bg-bg-100/40","px-2 py-1 text-[11px] text-text-400 hover:bg-bg-200/40 transition-colors max-w-full"),children:[h.jsx(i,{className:"w-3 h-3 opacity-70 shrink-0"}),h.jsx("span",{className:"font-medium shrink-0",children:W5[e]}),h.jsx("span",{className:"truncate text-text-400/80 max-w-[60ch]",children:o}),n?h.jsx(sn,{className:"w-3 h-3 opacity-60 shrink-0"}):h.jsx(ln,{className:"w-3 h-3 opacity-60 shrink-0"})]}),n?h.jsx("pre",{"data-testid":"user-meta-body",className:"w-full max-w-full whitespace-pre-wrap break-words text-[11px] text-text-400 bg-bg-50/60 rounded-md p-2 border border-bg-200/60 [overflow-wrap:anywhere]",children:t}):null]})}function G5(e){return e.ordinal===null?e.label:`#${e.ordinal} ${e.label}`}function Q5({text:e,metaKind:t,resolveDispatchOrigin:n,onOpenSession:r,onOpenFilePath:i}){const o=U.useMemo(()=>t_(e),[e]);return o.length===0?h.jsx(bx,{metaKind:t,text:e}):h.jsx("div",{"data-testid":"msg-line-dispatch-group",className:"my-1 flex min-w-0 max-w-full flex-col gap-1.5",children:o.map((s,l)=>h.jsx(J5,{block:s,...n?{resolveDispatchOrigin:n}:{},...r?{onOpenSession:r}:{},...i?{onOpenFilePath:i}:{}},`${s.kind}-${s.dispatchId}-${l}`))})}function K5(e){return e.length<=24?e:`${e.slice(0,12)}…${e.slice(-6)}`}function Nm({origin:e}){const t=[];if(e.line&&t.push(h.jsx("span",{"data-testid":"dispatch-origin-line","data-line-ordinal":e.line.ordinal??"",className:"min-w-0 truncate tabular-nums text-text-300",children:G5(e.line)},"line")),t.push(h.jsxs("span",{"data-testid":"dispatch-origin-persona","data-persona-id":e.persona.id,className:"inline-flex min-w-0 items-baseline gap-1",children:[e.persona.label?h.jsxs(h.Fragment,{children:[h.jsx("span",{className:"truncate text-text-200",children:e.persona.label})," "]}):null,h.jsx("span",{className:"truncate font-mono text-[10px] text-text-400",children:e.persona.id})]},"persona")),e.device){const n=e.device;t.push(h.jsxs("span",{"data-testid":"dispatch-origin-device","data-device-id":n.id,title:n.id,className:"inline-flex min-w-0 items-baseline gap-1",children:[h.jsx(Vk,{className:"h-3 w-3 shrink-0 translate-y-[2px] text-text-400"}),n.displayName?h.jsxs(h.Fragment,{children:[h.jsx("span",{className:"truncate text-text-200",children:n.displayName})," "]}):null,h.jsx("span",{className:"truncate font-mono text-[10px] text-text-400",children:K5(n.id)})]},"device"))}return h.jsxs("span",{className:"inline-flex min-w-0 flex-wrap items-baseline",children:[h.jsx("span",{className:"shrink-0 whitespace-pre text-text-400",children:"来自 "}),t.map((n,r)=>h.jsxs(Ao.Fragment,{children:[r>0?h.jsx("span",{className:"shrink-0 whitespace-pre text-text-400",children:" · "}):null,n]},r))]})}function Y5({origin:e,onOpenSession:t,seam:n}){const r=ve("flex w-full min-w-0 items-center gap-2 border-t bg-bg-200/35 px-3 py-1 text-left text-[10px] leading-relaxed",n),i=e.sessionId;return!i||!t?h.jsxs("div",{"data-testid":"dispatch-origin","data-openable":"false",className:r,children:[h.jsx(Nm,{origin:e}),e.unreachable?h.jsx("span",{"data-testid":"dispatch-origin-unreachable",className:"ml-auto inline-flex shrink-0 items-center gap-1 text-text-400",children:e.unreachable==="remote-device"?"会话在对端设备":"会话已删除"}):null]}):h.jsxs("button",{type:"button","data-testid":"dispatch-origin","data-openable":"true","data-session-id":i,onClick:()=>t(i),title:"打开这条会话",className:ve(r,"group cursor-pointer transition-colors hover:bg-bg-200/70"),children:[h.jsx("span",{className:"min-w-0 group-hover:underline group-hover:decoration-text-400 group-hover:underline-offset-2",children:h.jsx(Nm,{origin:e})}),h.jsxs("span",{className:"ml-auto inline-flex shrink-0 items-center gap-0.5 text-text-400 transition-colors group-hover:text-text-100",children:["打开会话",h.jsx(vk,{className:"h-3 w-3"})]})]})}function X5(e){return e?{shell:"border-error/40 bg-error-dim",rail:"bg-error/55",hover:"hover:bg-error/10",icon:"text-error",title:"text-error",chevron:"text-error/70",seam:"border-error/25"}:{shell:"border-accent/35 bg-accent-dim",rail:"bg-accent/45",hover:"hover:bg-accent/10",icon:"text-accent",title:"text-accent",chevron:"text-accent/70",seam:"border-accent/20"}}function J5({block:e,resolveDispatchOrigin:t,onOpenSession:n,onOpenFilePath:r}){const[i,o]=U.useState(!1),s=U.useMemo(()=>r?vx(r):jr,[r]),l=e.kind==="task",a=(t==null?void 0:t(e.dispatchId,e.from))??(e.from?{persona:{id:e.from}}:void 0),u=l&&typeof e.round=="number"&&e.round>=2,f=e.status==="failure",d=X5(f);return h.jsxs("div",{"data-testid":"msg-line-dispatch","data-dispatch-kind":e.kind,"data-dispatch-id":e.dispatchId,"data-round":e.round??"","data-status":e.status??"","data-open":i?"true":"false",className:ve("flex min-w-0 max-w-full overflow-hidden rounded-lg border",d.shell),children:[h.jsx("span",{"data-testid":"dispatch-rail","aria-hidden":"true",className:ve("w-[3px] shrink-0 self-stretch",d.rail)}),h.jsxs("div",{className:"flex min-w-0 flex-1 flex-col",children:[h.jsxs("button",{type:"button","aria-expanded":i,onClick:()=>o(m=>!m),className:ve("flex w-full min-w-0 cursor-pointer items-start gap-2 px-3 py-2 text-left transition-colors",d.hover),children:[h.jsx("span",{className:ve("mt-[2px] shrink-0",d.icon),children:l?h.jsx(Jg,{className:"h-3.5 w-3.5"}):h.jsx(Yg,{className:"h-3.5 w-3.5"})}),h.jsxs("span",{className:"min-w-0 flex-1",children:[h.jsxs("span",{"data-testid":"dispatch-header",className:"flex flex-wrap items-center gap-x-2 gap-y-1",children:[h.jsx("span",{className:ve("text-[12px] font-semibold",d.title),children:l?"委派任务":"委派回报"}),u?h.jsxs("span",{"data-testid":"dispatch-round",className:"inline-flex items-center gap-1 rounded-md bg-bg-200/70 px-1.5 py-0.5 text-[10px] text-text-300",children:[h.jsx(iw,{className:"h-3 w-3"}),"续派第 ",e.round," 轮"]}):null,f?h.jsxs("span",{"data-testid":"dispatch-status",className:"inline-flex items-center gap-1 text-[11px] text-error",children:[h.jsx(Lo,{className:"h-3.5 w-3.5"}),"失败"]}):null,e.filePaths.length>0?h.jsxs("span",{"data-testid":"dispatch-file-count",className:"inline-flex items-center gap-1 text-[11px] text-text-400",children:[h.jsx(Cr,{className:"h-3 w-3"}),e.filePaths.length," 个产物"]}):null]}),h.jsx("span",{"data-testid":"dispatch-brief",className:"mt-1 block whitespace-pre-wrap break-words text-[12px] leading-relaxed text-text-200 [overflow-wrap:anywhere]",children:e.brief}),e.briefIsDerived?h.jsxs("span",{"data-testid":"dispatch-brief-derived",title:"发送方没写摘要,这段是从正文首段自动截取的",className:"mt-1 inline-flex items-center gap-1 text-[10px] text-text-400 italic",children:[h.jsx(fw,{className:"h-2.5 w-2.5"}),"自动摘要(发送方未填)"]}):null]}),h.jsx("span",{className:ve("mt-[3px] shrink-0",d.chevron),children:i?h.jsx(sn,{className:"h-3.5 w-3.5"}):h.jsx(ln,{className:"h-3.5 w-3.5"})})]}),a?h.jsx(Y5,{origin:a,...n?{onOpenSession:n}:{},seam:d.seam}):null,i?h.jsxs(h.Fragment,{children:[h.jsx("div",{"data-testid":"dispatch-body",className:ve("min-w-0 space-y-2 border-t bg-bg-200/35 py-2.5 pl-4 pr-3",d.seam),children:h.jsxs("div",{"data-testid":"dispatch-detail-indent",className:"min-w-0 border-l border-border/70 pl-3",children:[h.jsx("div",{"data-testid":"dispatch-detail",className:"assistant-markdown markdown-attached min-w-0 break-words",children:h.jsx(Io,{remarkPlugins:[Eo],components:s,...r?{urlTransform:xx}:{},children:e.detail})}),e.filePaths.length>0?h.jsxs("div",{"data-testid":"dispatch-files",className:"flex min-w-0 flex-col gap-1 pt-2",children:[h.jsx("span",{className:"text-[11px] text-text-400",children:"产物"}),e.filePaths.map(m=>h.jsx(ej,{path:m,...r?{onOpenFilePath:r}:{}},m))]}):null]})}),h.jsxs("button",{type:"button","data-testid":"dispatch-collapse-foot",onClick:()=>o(!1),className:ve("flex w-full cursor-pointer items-center justify-between gap-2 border-t bg-bg-200/35 px-3 py-1 text-[10px] text-text-400 transition-colors hover:bg-bg-200/60",d.seam),children:[h.jsx("span",{className:"min-w-0 truncate",children:e.dispatchId?h.jsxs(h.Fragment,{children:[h.jsx("span",{children:"台账 "}),h.jsx("span",{"data-testid":"dispatch-id",className:"font-mono",children:e.dispatchId})]}):null}),h.jsxs("span",{className:"inline-flex shrink-0 items-center gap-1",children:["收起",h.jsx(jk,{className:"h-3 w-3"})]})]})]}):null]})]})}function ej({path:e,onOpenFilePath:t}){const n="inline-flex min-w-0 items-center gap-1.5 text-left text-[11px] font-mono text-text-300";return t?h.jsxs("button",{type:"button","data-testid":"dispatch-file-path",title:e,onClick:()=>t(e),className:ve(n,"hover:text-text-100 hover:underline"),children:[h.jsx(Cr,{className:"h-3 w-3 shrink-0 text-text-400"}),h.jsx("span",{className:"truncate",children:e})]}):h.jsxs("span",{"data-testid":"dispatch-file-path",title:e,className:n,children:[h.jsx(Cr,{className:"h-3 w-3 shrink-0 text-text-400"}),h.jsx("span",{className:"truncate",children:e})]})}const tj=g({usedBytes:T().int().nonnegative(),sizeBytes:T().int().positive(),measuredAt:T().int().nonnegative()}).strict();g({volume:tj.nullable()}).strict();const Sx={".png":"image/png",".jpg":"image/jpeg",".jpeg":"image/jpeg",".gif":"image/gif",".webp":"image/webp",".pdf":"application/pdf",".txt":"text/plain",".md":"text/plain",".markdown":"text/plain",".csv":"text/plain",".log":"text/plain",".json":"application/json",".xml":"application/xml",".yaml":"application/yaml",".yml":"application/yaml",".html":"text/html",".conf":"text/plain",".cfg":"text/plain",".ini":"text/plain",".toml":"text/plain"},nj=new Set([...Object.values(Sx),"application/x-yaml"]);[...nj,"text/*",...Object.keys(Sx)].join(",");const rj=["daemon","main","renderer"],ij=J(rj),oj=["debug","info","warn","error"],sj=J(oj);g({ts:T().int(),source:ij,level:sj,msg:c(),ownerPrincipalId:c(),deviceId:c(),appVersion:c(),daemonVersion:c().optional(),os:c(),meta_json:c().optional(),sessionId:c().optional()});g({v:R(1),visitorId:c().min(1),displayName:c(),provider:c(),iat:T(),exp:T()});const lj=g({visitorId:c(),displayName:c(),avatarUrl:c().optional(),provider:c(),firstSeen:T(),lastSeen:T()});g({visitors:M(lj)});function aj({text:e,metaSource:t}){return t==="owner"?h.jsx("div",{className:"flex min-w-0 max-w-full flex-col items-start py-1.5","data-testid":"msg-line-owner-meta",children:h.jsxs("div",{className:ve("inline-flex min-w-0 max-w-[85%] items-start gap-2 rounded-md","border-l-[3px] border-accent bg-accent-dim px-3 py-2"),children:[h.jsx(Gk,{className:"mt-0.5 h-3.5 w-3.5 shrink-0 text-accent","aria-label":"补充信息"}),h.jsx("span",{className:"min-w-0 text-[12px] leading-relaxed text-text-100 whitespace-pre-wrap break-words [overflow-wrap:anywhere]",children:e})]})}):h.jsxs("div",{className:"flex min-w-0 max-w-full items-start gap-1.5 py-1 text-[11px] text-text-400","data-testid":"msg-line-cc-meta",children:[h.jsx(Xg,{className:"mt-0.5 h-3 w-3 shrink-0"}),h.jsx("span",{className:"min-w-0 whitespace-pre-wrap break-words [overflow-wrap:anywhere]",children:e})]})}function Kt(e,t){const r=new RegExp(`<${t}\\b[^>]*>([\\s\\S]*?)</${t}>`,"i").exec(e);if(!r)return;const i=r[1].trim();return i||void 0}function $a(e,t){const r=new RegExp(`${t}\\s*=\\s*"([^"]+)"`,"i").exec(e);if(!r)return;const i=Number(r[1]);return Number.isFinite(i)?i:void 0}function _x(e){var i,o,s;const t={};if(!e)return t;t.taskId=Kt(e,"task-id"),t.toolUseId=Kt(e,"tool-use-id"),t.outputFile=Kt(e,"output-file"),t.status=Kt(e,"status"),t.summary=Kt(e,"summary"),t.result=Kt(e,"result");const n=Kt(e,"usage");if(n){const l=(i=/<total_tokens>\s*(\d+)\s*<\/total_tokens>/i.exec(n))==null?void 0:i[1],a=(o=/<tool_uses>\s*(\d+)\s*<\/tool_uses>/i.exec(n))==null?void 0:o[1],u=(s=/<duration_ms>\s*(\d+)\s*<\/duration_ms>/i.exec(n))==null?void 0:s[1];l&&(t.totalTokens=Number(l)),a&&(t.toolUses=Number(a)),u&&(t.durationMs=Number(u))}const r=Kt(e,"worktree");if(r)t.worktreePath=Kt(r,"worktreePath"),t.worktreeBranch=Kt(r,"worktreeBranch");else{const l=/<worktree\b([^>]*)\/>/i.exec(e);if(l){const a=l[1],u=/worktreePath\s*=\s*"([^"]+)"/i.exec(a),f=/worktreeBranch\s*=\s*"([^"]+)"/i.exec(a);u&&(t.worktreePath=u[1]),f&&(t.worktreeBranch=f[1])}}if(t.totalTokens===void 0&&t.toolUses===void 0&&t.durationMs===void 0){const l=$a(e,"total_tokens"),a=$a(e,"tool_uses"),u=$a(e,"duration_ms");l!==void 0&&(t.totalTokens=l),a!==void 0&&(t.toolUses=a),u!==void 0&&(t.durationMs=u)}return t}function uj(e){if(!e||!Number.isFinite(e))return null;if(e<1e3)return`${e}ms`;const t=e/1e3;if(t<60)return`${t.toFixed(1)}s`;const n=Math.floor(t/60),r=Math.round(t-n*60);return`${n}m${r.toString().padStart(2,"0")}s`}function cj({text:e,taskId:t,parentToolUseId:n}){const r=U.useMemo(()=>_x(e),[e]),[i,o]=U.useState(!1),s=t??r.taskId,l=n??r.toolUseId,a=r.status==="failed"?h.jsx(Lo,{className:"w-3.5 h-3.5 text-error"}):r.status==="completed"?h.jsx(Qg,{className:"w-3.5 h-3.5 text-success"}):h.jsx(_k,{className:"w-3.5 h-3.5 text-text-400"}),u=r.status??"unknown",f=uj(r.durationMs);return h.jsxs("div",{"data-testid":"msg-line-agent-notification","data-task-id":s??"","data-parent-tool-use-id":l??"",className:"my-1 min-w-0 max-w-full rounded-md border border-bg-200/60 bg-bg-100/40",children:[h.jsxs("button",{type:"button","aria-expanded":i,onClick:()=>o(d=>!d),className:ve("flex w-full min-w-0 items-start gap-2 px-2.5 py-1.5 text-left text-[12px]","hover:bg-bg-200/40 rounded-md transition-colors"),children:[h.jsx("span",{className:"mt-[2px] shrink-0",children:a}),h.jsxs("span",{className:"flex-1 min-w-0",children:[h.jsxs("span",{className:"flex items-center gap-2 flex-wrap",children:[h.jsx("span",{className:"font-medium text-text-200",children:"子任务"}),h.jsx("span",{className:"text-text-400 text-[11px] font-mono",children:s?s.slice(0,12):"未知"}),h.jsx("span",{className:"text-text-400 text-[11px] uppercase tracking-wide",children:u}),f?h.jsxs("span",{className:"text-text-400 text-[11px] tabular-nums",children:["· ",f]}):null,r.totalTokens?h.jsxs("span",{className:"text-text-400 text-[11px] tabular-nums",children:["· ",r.totalTokens," tok"]}):null,r.toolUses?h.jsxs("span",{className:"text-text-400 text-[11px] tabular-nums",children:["· ",r.toolUses," tools"]}):null]}),r.summary?h.jsx("span",{className:"block truncate text-text-300 text-[12px] mt-0.5",children:r.summary}):null]}),i?h.jsx(sn,{className:"w-3.5 h-3.5 mt-[3px] text-text-400 shrink-0"}):h.jsx(ln,{className:"w-3.5 h-3.5 mt-[3px] text-text-400 shrink-0"})]}),i?h.jsxs("div",{"data-testid":"agent-notification-body",className:"min-w-0 border-t border-bg-200/60 px-3 py-2 text-[12px] text-text-300 space-y-2",children:[r.worktreePath||r.worktreeBranch?h.jsxs("div",{className:"flex items-center gap-2 text-[11px] text-text-400",children:[h.jsx(Kg,{className:"w-3 h-3"}),r.worktreeBranch?h.jsx("span",{className:"font-mono",children:r.worktreeBranch}):null,r.worktreePath?h.jsx("span",{className:"truncate font-mono",children:r.worktreePath}):null]}):null,r.outputFile?h.jsxs("div",{className:"text-[11px] text-text-400",children:[h.jsx("span",{children:"输出文件:"}),h.jsx("span",{className:"font-mono",children:r.outputFile})]}):null,l?h.jsxs("div",{className:"text-[11px] text-text-400",children:[h.jsx("span",{children:"父工具调用:"}),h.jsx("span",{className:"font-mono",children:l})]}):null,r.result?h.jsx("div",{"data-testid":"agent-notification-result",className:"assistant-markdown text-[12px] leading-relaxed break-words",children:h.jsx(Io,{remarkPlugins:[Eo],components:jr,children:r.result})}):h.jsx("div",{className:"text-[11px] text-text-400 italic",children:"无详细结果"})]}):null]})}const dj=U.createContext(null);function fj(){return U.useContext(dj)}function pj(e){if(e==null)return null;if(typeof e=="string")return e;if(Array.isArray(e)){const t=[];for(const n of e)if(n&&typeof n=="object"){const r=n;r.type==="text"&&typeof r.text=="string"&&t.push(r.text)}else typeof n=="string"&&t.push(n);return t.length?t.join(`
306
+ `):null}if(typeof e=="object"){const t=e;if(typeof t.text=="string")return t.text}return null}function Em(e){if(!e||!Number.isFinite(e))return null;if(e<1e3)return`${e}ms`;const t=e/1e3;if(t<60)return`${t.toFixed(1)}s`;const n=Math.floor(t/60),r=Math.round(t-n*60);return`${n}m${r.toString().padStart(2,"0")}s`}function mj(e){return!e||!Number.isFinite(e)?null:e<1e3?`${e} tok`:e<1e4?`${(e/1e3).toFixed(1)}k tok`:`${Math.round(e/1e3)}k tok`}const hj={readCount:"read",searchCount:"search",bashCount:"bash",editFileCount:"edit",linesAdded:"+lines",linesRemoved:"-lines",otherToolCount:"other"};function gj(e){if(!e)return[];const t=[];for(const[n,r]of Object.entries(e)){if(!r||r<=0)continue;const i=hj[n]??n;t.push(`${i}:${r}`)}return t}function yj({expandable:e,expanded:t,onToggle:n,children:r}){const i=ve("flex w-full min-w-0 items-center gap-2 px-2.5 py-1.5 text-left text-[13px] rounded-md",e&&"hover:bg-bg-200/40 transition-colors");return e?h.jsx("button",{type:"button","aria-expanded":t,onClick:n,className:i,children:r}):h.jsx("div",{className:i,children:r})}function xj({description:e,input:t,output:n,error:r,pending:i,notifications:o,toolResultExtra:s,progress:l,expandable:a=!0}){const[u,f]=U.useState(!1),d=fj(),m=U.useMemo(()=>{if(!t||typeof t!="object")return null;const z=t;return typeof z.prompt=="string"?z.prompt:null},[t]),p=U.useMemo(()=>{if(!t||typeof t!="object")return;const z=t.agentId;return typeof z=="string"&&z.length>0?z:void 0},[t]),x=(s==null?void 0:s.prompt)??m,b=U.useMemo(()=>pj(n),[n]),I=s==null?void 0:s.stats,y=l==null?void 0:l.stats,v=Em((I==null?void 0:I.durationMs)??(y==null?void 0:y.durationMs)),w=mj((I==null?void 0:I.tokens)??(y==null?void 0:y.tokens)),N=gj(I==null?void 0:I.toolStats),j=jb({pending:i,error:r,notifications:o,progress:l,input:t}),S=j&&(l!=null&&l.lastToolName)?`now:${l.lastToolName}`:null,A=!!(s!=null&&s.agentType||v||w||N.length>0||S),E=(s==null?void 0:s.agentId)??(l==null?void 0:l.agentId)??p,$=!!(r||(l==null?void 0:l.status)==="failed"),C=U.useMemo(()=>o.map(z=>({taskId:z.taskId,text:z.text,parsed:_x(z.text)})),[o]),O=$?h.jsx(Lo,{className:"w-3.5 h-3.5 text-error"}):j?h.jsx(sr,{className:"w-3.5 h-3.5 text-blue-400 animate-spin"}):h.jsx(Qg,{className:"w-3.5 h-3.5 text-green-500"});return h.jsxs("div",{"data-testid":"msg-line-agent-call","data-pending":i?"true":"false","data-active":j?"true":"false","data-has-error":$?"true":"false","data-notification-count":o.length,"data-has-stats":A?"true":"false","data-agent-id":E??"",className:"my-1 min-w-0 max-w-full rounded-md border border-bg-200/60 bg-bg-100/30",children:[h.jsxs(yj,{expandable:a,expanded:u,onToggle:()=>f(z=>!z),children:[h.jsx("span",{className:"w-5 h-5 flex items-center justify-center text-[10px] rounded bg-violet-500/10 text-violet-500 shrink-0","aria-hidden":!0,children:h.jsx(Sw,{className:"w-3 h-3"})}),h.jsx("span",{className:"shrink-0",children:O}),h.jsx("span",{className:"flex-1 min-w-0 truncate font-medium text-text-200",children:e}),A?null:o.length>0?h.jsxs("span",{className:"text-[11px] text-text-400 tabular-nums shrink-0",children:[o.length," 次通知"]}):null,E&&(d!=null&&d.open)?h.jsx("span",{role:"button",tabIndex:0,"data-testid":"open-subagent-btn-header","data-agent-id":E,"aria-label":"打开子 agent 对话",onClick:z=>{z.stopPropagation(),d.open(E,s==null?void 0:s.agentType)},onKeyDown:z=>{(z.key==="Enter"||z.key===" ")&&(z.stopPropagation(),z.preventDefault(),d.open(E,s==null?void 0:s.agentType))},className:"shrink-0 inline-flex items-center justify-center w-3.5 h-3.5 text-text-400 hover:text-text-200",children:h.jsx(Ru,{className:"w-3.5 h-3.5"})}):null,a?u?h.jsx(sn,{className:"w-3.5 h-3.5 text-text-400 shrink-0"}):h.jsx(ln,{className:"w-3.5 h-3.5 text-text-400 shrink-0"}):null]}),j&&(l!=null&&l.description)?h.jsx("div",{"data-testid":"agent-call-progress-desc",className:"px-3 pt-0 pb-1 text-[12px] text-text-300 truncate",children:l.description}):null,A?h.jsxs("div",{"data-testid":"agent-call-stats",className:"flex items-center gap-1.5 flex-wrap px-3 pb-1.5 pt-0 text-[11px] text-text-400",children:[s!=null&&s.agentType?h.jsx("span",{"data-testid":"agent-call-stats-type",className:"inline-flex items-center rounded-sm bg-violet-500/10 px-1.5 py-0.5 text-violet-400 font-medium",children:s.agentType}):null,v?h.jsx("span",{className:"tabular-nums",children:v}):null,w?h.jsx("span",{className:"tabular-nums",children:w}):null,S?h.jsx("span",{"data-testid":"agent-call-stats-now",className:"font-mono tabular-nums text-blue-400",children:S}):null,N.map(z=>h.jsx("span",{className:"font-mono tabular-nums text-text-400/80",children:z},z)),o.length>0?h.jsxs("span",{className:"tabular-nums text-text-400/70",children:["· ",o.length," 次通知"]}):null]}):null,u?h.jsxs("div",{"data-testid":"agent-call-body",className:"min-w-0 border-t border-bg-200/60 px-3 py-2 space-y-3",children:[r?h.jsx("div",{className:"text-[12px] text-error whitespace-pre-wrap",children:r}):null,C.map((z,oe)=>{const Z=z.parsed,te=Em(Z.durationMs);return h.jsxs("div",{"data-testid":"agent-call-notification","data-task-id":z.taskId??"",className:"min-w-0 rounded-md border border-bg-200/60 bg-bg-0/40 p-2 space-y-1.5",children:[h.jsxs("div",{className:"flex items-center gap-2 text-[11px] text-text-400 flex-wrap",children:[h.jsx("span",{className:"font-mono",children:(z.taskId??Z.taskId??"未知").slice(0,12)}),h.jsx("span",{className:"uppercase tracking-wide",children:Z.status??"unknown"}),te?h.jsxs("span",{className:"tabular-nums",children:["· ",te]}):null,Z.totalTokens?h.jsxs("span",{className:"tabular-nums",children:["· ",Z.totalTokens," tok"]}):null,Z.toolUses?h.jsxs("span",{className:"tabular-nums",children:["· ",Z.toolUses," tools"]}):null,Z.worktreeBranch?h.jsxs("span",{className:"font-mono",children:["· ",Z.worktreeBranch]}):null]}),Z.summary?h.jsx("div",{className:"text-[12px] text-text-300",children:Z.summary}):null,Z.result?h.jsx("div",{"data-testid":"agent-call-notification-result",className:"assistant-markdown text-[12px] leading-relaxed break-words",children:h.jsx(Io,{remarkPlugins:[Eo],components:jr,children:Z.result})}):null]},`${z.taskId??"n"}-${oe}`)}),x?h.jsxs("div",{"data-testid":"agent-call-prompt-block",className:"min-w-0 space-y-1",children:[h.jsx("div",{className:"text-[11px] text-text-400 font-medium",children:"任务指令"}),h.jsx("pre",{"data-testid":"agent-call-prompt",className:"max-w-full whitespace-pre-wrap break-words text-[11px] text-text-300 bg-bg-50/60 rounded p-2 border border-bg-200/60 max-h-64 overflow-auto [overflow-wrap:anywhere]",children:x})]}):null,b?h.jsxs("div",{"data-testid":"agent-call-result-block",className:"min-w-0 space-y-1",children:[h.jsx("div",{className:"text-[11px] text-text-400 font-medium",children:"子 agent 报告"}),h.jsx("div",{"data-testid":"agent-call-result",className:"assistant-markdown text-[12px] leading-relaxed break-words",children:h.jsx(Io,{remarkPlugins:[Eo],components:jr,children:b})})]}):null,!b&&C.length===0&&!r&&!x?h.jsx("div",{className:"text-[11px] text-text-400 italic",children:"无详细信息"}):null,E&&(d!=null&&d.open)?h.jsx("div",{className:"flex justify-end",children:h.jsxs("button",{type:"button","data-testid":"open-subagent-btn","data-agent-id":E,onClick:()=>d.open(E,s==null?void 0:s.agentType),className:ve("inline-flex items-center gap-1 rounded-md border border-bg-200/60","bg-bg-100/40 hover:bg-bg-200/40 transition-colors","px-2 py-1 text-[11px] text-text-300"),children:[h.jsx(Ru,{className:"w-3 h-3"}),h.jsx("span",{children:"打开子 agent 对话"})]})}):null]}):null]})}function Cx({title:e,items:t,progressColor:n="bg-green-500",listKind:r}){const[i,o]=U.useState(!1),s=t.length,l=t.filter(u=>u.status==="completed").length,a=s>0?Math.round(l/s*100):0;return h.jsxs("div",{"data-testid":"msg-line-checklist","data-list-kind":r,className:"min-w-0 max-w-full py-1",children:[h.jsxs("button",{type:"button",onClick:()=>o(u=>!u),"aria-expanded":i,className:"flex items-center gap-2.5 w-full text-left rounded-md px-1.5 py-1 hover:bg-text-100/5 cursor-pointer",children:[i?h.jsx(sn,{className:"w-3.5 h-3.5 text-text-400 shrink-0"}):h.jsx(ln,{className:"w-3.5 h-3.5 text-text-400 shrink-0"}),h.jsx("span",{className:"text-[13px] font-medium text-text-200",children:e}),h.jsxs("span",{className:"text-[11px] text-text-400 tabular-nums",children:[l,"/",s]}),h.jsx("div",{className:"flex-1 max-w-[120px] h-1.5 rounded-full bg-text-100/10 overflow-hidden",children:h.jsx("div",{className:ve("h-full rounded-full transition-all duration-300",n),style:{width:`${a}%`}})})]}),i?h.jsx("div",{"data-testid":"checklist-body",className:"ml-6 mt-0.5",children:h.jsx("div",{className:"space-y-px",children:t.map((u,f)=>h.jsxs("div",{className:"flex min-w-0 items-start gap-2 py-0.5 px-1",children:[h.jsx("span",{className:"w-4 h-4 mt-0.5 flex items-center justify-center shrink-0",children:u.status==="completed"?h.jsx(Ik,{className:"w-3.5 h-3.5 text-green-500"}):h.jsx("span",{className:"w-2 h-2 rounded-full border border-text-400/40"})}),h.jsx("span",{className:ve("min-w-0 text-[13px] leading-snug break-words [overflow-wrap:anywhere]",u.status==="completed"?"text-text-400 line-through":"text-text-200"),children:u.status==="in_progress"&&u.activeForm?u.activeForm:u.content})]},`${f}-${u.content}`))})}):null]})}function vj({todos:e}){return h.jsx(Cx,{title:"Tasks",items:e,progressColor:"bg-green-500",listKind:"todo"})}function kj({tasks:e}){return h.jsx(Cx,{title:"Plan",items:e,progressColor:"bg-blue-500",listKind:"plan"})}function wj(e){if(!e||!Number.isFinite(e))return null;const t=Date.now()-e;if(t<0)return null;const n=Math.floor(t/1e3);if(n<60)return`${n}s ago`;const r=Math.floor(n/60);if(r<60)return`${r}m ago`;const i=Math.floor(r/60);if(i<24)return`${i}h ago`;const o=Math.floor(i/24);if(o<7)return`${o}d ago`;const s=Math.floor(o/7);return s<5?`${s}w ago`:new Date(e).toISOString().slice(0,10)}function bj(e){return(e.split("/").pop()??e)||e}function Sj({memories:e}){return!e||e.length===0?null:h.jsxs("div",{"data-testid":"memory-callout",className:"my-1 min-w-0 max-w-full rounded-md border border-bg-200/60 bg-bg-100/30",children:[h.jsxs("div",{className:"flex items-center gap-1.5 px-2.5 py-1.5 text-[12px] text-text-300 border-b border-bg-200/60",children:[h.jsx(bk,{className:"w-3.5 h-3.5 text-amber-500 shrink-0"}),h.jsx("span",{className:"font-medium",children:"项目记忆"}),h.jsxs("span",{className:"text-text-400 tabular-nums",children:["· ",e.length]})]}),h.jsx("ul",{className:"divide-y divide-bg-200/40",children:e.map(t=>h.jsx(_j,{memory:t},t.path))})]})}function _j({memory:e}){const[t,n]=U.useState(!1),r=wj(e.mtimeMs),i=e.content.replace(/\s+/g," ").trim().slice(0,80);return h.jsxs("li",{className:"px-2.5 py-1.5",children:[h.jsxs("button",{type:"button","aria-expanded":t,onClick:()=>n(o=>!o),className:ve("flex w-full items-center gap-1.5 text-left text-[12px]","hover:bg-bg-200/30 rounded-sm py-0.5"),children:[t?h.jsx(sn,{className:"w-3 h-3 text-text-400 shrink-0"}):h.jsx(ln,{className:"w-3 h-3 text-text-400 shrink-0"}),h.jsx("span",{className:"font-mono text-text-300 shrink-0 max-w-[20ch] truncate",title:e.path,children:bj(e.path)}),h.jsx("span",{className:"flex-1 min-w-0 truncate text-text-400/80",children:i}),r?h.jsx("span",{className:"shrink-0 text-[11px] text-text-400 tabular-nums",children:r}):null]}),t?h.jsx("pre",{"data-testid":"memory-callout-body",className:"mt-1 max-w-full whitespace-pre-wrap break-words text-[12px] text-text-300 bg-bg-50/60 rounded-md p-2 border border-bg-200/60 [overflow-wrap:anywhere]",children:e.content}):null]})}function Cj(e){return e.compositionActive||!!e.nativeIsComposing||e.keyCode===229}function Ij(e){return e.key==="Enter"&&!e.shiftKey&&!Cj(e)}function Nj(e,t){const n=U.useRef(!1),r=U.useCallback(()=>{n.current=!0},[]),i=U.useCallback(()=>{setTimeout(()=>{n.current=!1},0)},[]);return{onKeyDown:U.useCallback(s=>{const l=s.nativeEvent;if(Ij({key:s.key,shiftKey:s.shiftKey,compositionActive:n.current,nativeIsComposing:l.isComposing,keyCode:l.keyCode})){s.preventDefault(),e();return}},[e,t]),onCompositionStart:r,onCompositionEnd:i}}function Ej({toolUseId:e,questions:t,onSubmit:n,onCancel:r,submittedAnswers:i}){const[o,s]=U.useState({}),[l,a]=U.useState({}),[u,f]=U.useState({}),[d,m]=U.useState(!1),[p,x]=U.useState(!1),b=i!==void 0&&Object.keys(i).length>0,I=b||p,y=!n&&!b,v=(S,A)=>{const E={labels:new Set,freeText:""};if(!b||!i)return E;const $=i[S];if(typeof $!="string")return E;const C=$.split(",").map(Z=>Z.trim()).filter(Boolean),O=new Set(A.map(Z=>Z.label)),z=new Set,oe=[];for(const Z of C)O.has(Z)?z.add(Z):oe.push(Z);return{labels:z,freeText:oe.join(", ")}},w=U.useMemo(()=>t.every(S=>{if((u[S.question]??"").trim().length>0)return!0;if(S.multiSelect){const E=l[S.question];return!!(E&&E.size>0)}return typeof o[S.question]=="string"&&o[S.question].length>0}),[t,o,l,u]),N=async()=>{if(!w||d||I||y||!n)return;const S={};for(const A of t){const E=(u[A.question]??"").trim();if(A.multiSelect){const $=l[A.question],C=$?A.options.filter(O=>$.has(O.label)).map(O=>O.label):[];if(E.length>0&&C.push(E),C.length===0)continue;S[A.question]=C.join(", ")}else if(E.length>0)S[A.question]=E;else{const $=o[A.question];typeof $=="string"&&(S[A.question]=$)}}m(!0);try{await n(S),x(!0)}finally{m(!1)}},j=Nj(()=>{N()});return h.jsxs("div",{"data-testid":"msg-line-question","data-tool-use-id":e,className:"min-w-0 max-w-full rounded-md border border-accent/40 bg-accent/5 px-3 py-2.5 text-[13px]",children:[h.jsxs("div",{className:"flex min-w-0 items-center gap-2 mb-2",children:[h.jsx(zk,{className:"w-4 h-4 text-accent shrink-0"}),h.jsx("span",{className:"min-w-0 font-medium text-text-100",children:"需要你的回答 / Need your answer"}),t.length>1?h.jsxs("span",{className:"ml-auto text-[12px] text-text-400","data-testid":"msg-line-question-count",children:[t.length," 个问题"]}):null]}),h.jsx("div",{className:"flex flex-col gap-3 mb-3",children:t.map((S,A)=>{const E=`q-${A}`,$=`${e}-${A}`,C=v(S.question,S.options),O=I||y,z=u[S.question]??"",oe=b?C.freeText:p?(u[S.question]??"").trim():"";return h.jsxs("div",{"data-testid":"msg-line-question-item",children:[S.question?h.jsx("div",{className:"text-text-200 mb-1.5",children:S.question}):null,h.jsx("div",{className:"flex flex-col gap-1",children:S.options.map((Z,te)=>{var D;const K=`${E}-${te}`,se=b?C.labels.has(Z.label):S.multiSelect?!!((D=l[S.question])!=null&&D.has(Z.label)):o[S.question]===Z.label;return h.jsxs("label",{className:"flex min-w-0 items-start gap-2 cursor-pointer select-none py-1 px-2 rounded hover:bg-bg-100",children:[h.jsx("input",{type:S.multiSelect?"checkbox":"radio",name:$,value:Z.label,checked:se,disabled:I||y,onChange:()=>{I||y||(S.multiSelect?a(W=>{const k=new Set(W[S.question]??[]);return k.has(Z.label)?k.delete(Z.label):k.add(Z.label),{...W,[S.question]:k}}):s(W=>({...W,[S.question]:Z.label})))},className:"mt-0.5","data-testid":"msg-line-question-option"}),h.jsxs("span",{className:"flex min-w-0 flex-col",children:[h.jsx("span",{className:"text-text-100 [overflow-wrap:anywhere]",children:Z.label}),Z.description?h.jsx("span",{className:"text-[12px] text-text-400 [overflow-wrap:anywhere]",children:Z.description}):null]})]},K)})}),O?oe.length>0?h.jsx("div",{className:"mt-2 rounded-lg border border-accent/15 bg-bg-100/60 px-3 py-2 text-[13px] leading-relaxed text-text-200 [overflow-wrap:anywhere]","data-testid":"msg-line-question-freetext-result",children:oe}):null:h.jsx("textarea",{rows:3,value:z,placeholder:"或自行输入回答...",onChange:Z=>{const te=Z.target.value;f(K=>({...K,[S.question]:te}))},...j,className:"mt-2 w-full resize-y rounded-lg border border-accent/20 bg-bg-000/60 px-3 py-2 text-[13px] leading-relaxed text-text-100 placeholder:text-text-400 outline-none transition-colors focus:border-accent/60 focus:bg-bg-000","data-testid":"msg-line-question-freetext"})]},E)})}),h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsx(Xn,{size:"sm",variant:"default",onClick:()=>void N(),disabled:!w||d||I||y,"data-testid":"msg-line-question-submit",children:I?"已提交 / Submitted":y?"已结束 / Ended":"提交 / Submit"}),r&&!I&&!y?h.jsx(Xn,{size:"sm",variant:"ghost",onClick:()=>void r(),disabled:d,"data-testid":"msg-line-question-cancel",children:"跳过 / Skip"}):null]})]})}function Tj({toolUseId:e,questions:t,historicalAnswers:n,realtimeAnswers:r,onSubmit:i,onCancel:o}){const s=r??n,l=U.useCallback(async u=>{i&&await i(e,u)},[i,e]),a=U.useCallback(async()=>{o&&await o(e)},[o,e]);return h.jsx(Ej,{toolUseId:e,questions:t,onSubmit:i?l:void 0,...o?{onCancel:a}:{},submittedAnswers:s})}function jj(){const e=new Map,t=(n,r)=>`${n}::${r}`;return{register(n,r,i){e.set(t(n,r),i)},resolve(n,r){return n?e.get(t(n,r))??null:null},reset(){e.clear()}}}const Ix=jj();function Aj({lines:e,onPermissionRespond:t,onPermissionInterrupt:n,topSlot:r,onRewind:i,rewindableUserMessageIds:o,onFork:s,onQuickAsk:l,forkByTurn:a=!1,realtimeQuestionAnswers:u,onSubmitQuestion:f,onCancelQuestion:d,liveQuestionToolUseIds:m,fileSharingScope:p,onShareFile:x,onOpenInTab:b,onPreviewMarkdown:I,onOpenFilePath:y,dispatchOrigin:v,turnCollapse:w,dockedAgentToolUseIds:N,codexHistory:j}){const S=U.useMemo(()=>Pb(e),[e]),A=U.useMemo(()=>{const C=new Map;let O;for(const z of S)z.kind==="user-text"&&z.continuesTurn!==!0&&(O=void 0),z.kind==="assistant-text"&&(O=z.seq),z.kind==="turn-end"&&(z.turnId&&z.reason!=="interrupted"&&O!==void 0&&C.set(O,z.turnId),O=void 0);return C},[S]),E=U.useMemo(()=>w?m_(S,w):null,[S,w]),$={codexHistory:j,onRewind:i,rewindableUserMessageIds:o,onPermissionRespond:t,onPermissionInterrupt:n,onFork:s,onQuickAsk:l,forkByTurn:a,codexForkAnchors:A,realtimeQuestionAnswers:u,onSubmitQuestion:f,onCancelQuestion:d,liveQuestionToolUseIds:m,fileSharingScope:p,onShareFile:x,onOpenInTab:b,onPreviewMarkdown:I,onOpenFilePath:y,dispatchOrigin:v,dockedAgentToolUseIds:N};return h.jsxs("div",{"data-testid":"message-list",className:"flex w-full min-w-0 max-w-full flex-col gap-2 px-4 py-3",children:[r,E!==null?E.map(C=>Pj(C,$)):S.map(C=>bl(C,$))]})}function Pj(e,t){var a;const n=e.turnId?`turn-${e.turnId}`:`turn-${e.seq}`,r=e.turnId&&((a=t.codexHistory)!=null&&a.turnIds.has(e.turnId))?t.codexHistory:void 0,i=e.turnId?r==null?void 0:r.details[e.turnId]:void 0,o=e.query?bl(e.query,t):null,s=e.process.map(u=>Rj(u,t)),l=e.tail.map(u=>bl(u,t));return e.status==="running"?h.jsxs(Ao.Fragment,{children:[o,s,l]},n):h.jsxs("div",{"data-history-turn-id":e.turnId,className:"flex flex-col gap-2",children:[o,h.jsxs(I_,{status:e.status,onExpandedChange:r&&e.turnId?u=>{u&&r.loadDetails(e.turnId)}:void 0,...e.durationMs!==void 0?{durationMs:e.durationMs}:{},children:[s,r&&!i?h.jsx("span",{className:"text-text-400 text-xs",children:"展开后加载过程"}):null,i!=null&&i.loading?h.jsx("span",{className:"text-text-400 text-xs","data-testid":"turn-details-loading",children:"正在加载过程…"}):null,i!=null&&i.error?h.jsxs("div",{className:"text-destructive text-xs","data-testid":"turn-details-error",children:[i.error," ",h.jsx("button",{type:"button",onClick:()=>void(r==null?void 0:r.loadDetails(e.turnId)),children:"重试"})]}):null,i!=null&&i.nextCursor&&!i.loading&&!i.error?h.jsx("button",{type:"button",className:"text-accent text-xs",onClick:()=>void(r==null?void 0:r.loadDetails(e.turnId,!0)),children:"加载更多过程"}):null,i&&!i.loading&&!i.error&&i.items.length===0?h.jsx("span",{className:"text-text-400 text-xs",children:"没有更多过程"}):null]}),l]},n)}function Rj(e,t){return e.kind==="tool-group"?h.jsx(S_,{items:e.items,renderItemDetail:n=>zj(n,t)},`tool-group-${e.seq}`):bl(e,t)}function zj(e,t){const n=Ix.resolve(e.toolKind,e.tool);return n?n.render({input:e.input,output:e.output,error:e.error,pending:e.pending,toolUseId:e.toolUseId,...t.fileSharingScope?{fileScope:t.fileSharingScope}:{},...t.onShareFile?{onShareFile:t.onShareFile}:{},...t.onOpenInTab?{onOpenInTab:t.onOpenInTab}:{},...t.onPreviewMarkdown?{onPreviewMarkdown:t.onPreviewMarkdown}:{}}):null}function bl(e,t){var w;const{onRewind:n,rewindableUserMessageIds:r,onPermissionRespond:i,onPermissionInterrupt:o,onFork:s,onQuickAsk:l,realtimeQuestionAnswers:a,onSubmitQuestion:u,onCancelQuestion:f,liveQuestionToolUseIds:d,fileSharingScope:m,onShareFile:p,onOpenInTab:x,onPreviewMarkdown:b,onOpenFilePath:I,dispatchOrigin:y}=t,v=`${e.kind}-${e.seq}`;switch(e.kind){case"session-init":return null;case"user-text":{const N=typeof e.uuid=="string"?e.uuid:void 0,j=!!(n&&N&&(!r||r.has(N)));return h.jsx(V5,{text:e.text,senderDisplayName:e.senderDisplayName,senderPrincipal:e.senderPrincipal,rewindTarget:j&&N&&n?{userMessageId:N,onRewind:n}:void 0},v)}case"user-meta":return Q1(e.metaKind)?h.jsx(Q5,{text:e.text,metaKind:e.metaKind,...y!=null&&y.resolve?{resolveDispatchOrigin:y.resolve}:{},...y!=null&&y.onOpenSession?{onOpenSession:y.onOpenSession}:{},...I?{onOpenFilePath:I}:{}},v):h.jsx(bx,{metaKind:e.metaKind,text:e.text},v);case"meta-text":return h.jsx(aj,{text:e.text,metaSource:e.metaSource},v);case"agent-notification":return h.jsx(cj,{text:e.text,taskId:e.taskId,parentToolUseId:e.parentToolUseId},v);case"assistant-text":{const N=t.forkByTurn?t.codexForkAnchors.get(e.seq):typeof e.uuid=="string"?e.uuid:void 0,j=N&&(s||l)?{messageUuid:N,onFork:s,onQuickAsk:l}:void 0;return h.jsx(g5,{text:A_(e.text),forkTarget:j,...I?{onOpenFilePath:I}:{}},v)}case"assistant-thinking":return h.jsx(y5,{text:e.text},v);case"permission-inline":return h.jsx(O5,{tool:e.tool,input:e.input,onRespond:i??(()=>{}),onInterrupt:o},v);case"error":return h.jsx(D5,{message:e.message},v);case"turn-end":return null;case"merged-tool":return Mj(e,v,{fileSharingScope:m,onShareFile:p,onOpenInTab:x,onPreviewMarkdown:b});case"merged-agent":return(w=t.dockedAgentToolUseIds)!=null&&w.has(e.toolUseId)?null:h.jsx(xj,{description:e.description,input:e.input,output:e.output,error:e.error,pending:e.pending,notifications:e.notifications,toolResultExtra:e.toolResultExtra,progress:e.progress},v);case"plan-card":return h.jsx(kj,{tasks:e.tasks},v);case"todo-checklist":return h.jsx(vj,{todos:e.todos},v);case"memory-callout":return h.jsx(Sj,{memories:e.memories},v);case"question-card":{const N=d===void 0||d.has(e.toolUseId);return h.jsx(Tj,{toolUseId:e.toolUseId,questions:e.questions,historicalAnswers:e.submittedAnswers,realtimeAnswers:a==null?void 0:a[e.toolUseId],onSubmit:N?u:void 0,...N&&f?{onCancel:f}:{}},v)}default:return null}}function Mj(e,t,n){const r=Ix.resolve(e.toolKind,e.tool),i=r?r.render({input:e.input,output:e.output,error:e.error,pending:e.pending,toolUseId:e.toolUseId,...n.fileSharingScope?{fileScope:n.fileSharingScope}:{},...n.onShareFile?{onShareFile:n.onShareFile}:{},...n.onOpenInTab?{onOpenInTab:n.onOpenInTab}:{},...n.onPreviewMarkdown?{onPreviewMarkdown:n.onPreviewMarkdown}:{}}):null;return h.jsx(Ao.Fragment,{children:i??h.jsx(L5,{tool:e.tool,input:e.input,output:e.output,error:e.error,pending:e.pending,...n.fileSharingScope?{fileScope:n.fileSharingScope}:{},...n.onShareFile?{onShareFile:n.onShareFile}:{},...n.onOpenInTab?{onOpenInTab:n.onOpenInTab}:{},...n.onPreviewMarkdown?{onPreviewMarkdown:n.onPreviewMarkdown}:{}})},t)}function Lj(e){return e==="TodoWrite"}function Oj(e){if(!e||typeof e!="object")return null;const t=e;if(!Array.isArray(t.todos))return null;const n=[];for(const r of t.todos){if(!r||typeof r!="object")continue;const i=r,o=typeof i.content=="string"?i.content:"";if(!o)continue;const s=i.status==="in_progress"||i.status==="completed"?i.status:"pending",l=typeof i.activeForm=="string"?i.activeForm:void 0;n.push({content:o,status:s,activeForm:l})}return n}function Dj(e,t,n,r,i,o){if(Lj(r)){const s=Oj(i);if(s){e.push({kind:"todo-checklist",seq:t,toolUseId:n,todos:s});return}}if(r==="Agent"){const s=i??{},l=typeof s.description=="string"&&s.description?s.description:typeof s.subagent_type=="string"&&s.subagent_type?s.subagent_type:"Subagent";e.push({kind:"agent-call",seq:t,toolUseId:n,description:l,input:i});return}if(Ib(r)){e.push({kind:"task-event",seq:t,toolUseId:n,name:r,input:i});return}e.push({kind:"tool-call",seq:t,toolUseId:n,tool:r,toolKind:o,input:i})}const Fj="AskUserQuestion";function $j(e,t=0,n){var s;const r=[],i=new Map;let o=t;for(const l of e){const a=o++,u=l.toolUseId??`hist-${a}`;switch(l.kind){case"user-text":if(l.meta==="task-notification")r.push({kind:"agent-notification",seq:a,text:l.text??"",taskId:l.taskId,parentToolUseId:l.parentToolUseId});else if(l.meta)r.push({kind:"user-meta",seq:a,metaKind:l.meta,text:l.text??""});else{const f=X2.exec(l.text??""),d=(s=Y2.exec(l.text??""))==null?void 0:s[1],m=(f==null?void 0:f[2])??d,p=(f==null?void 0:f[1])==="guest"||d?"guest":"owner";r.push({kind:"user-text",seq:a,text:l.text??"",uuid:l.uuid,...m?{senderDisplayName:m}:{},senderPrincipal:p})}break;case"assistant-text":r.push({kind:"assistant-text",seq:a,text:l.text??"",uuid:l.uuid});break;case"tool_call":{if(l.tool===Fj){const f=l.input??{},d=Array.isArray(f.questions)?f.questions:[];i.set(u,r.length),r.push({kind:"question-card",seq:a,toolUseId:u,questions:d});break}Dj(r,a,u,l.tool??"",l.input,n);break}case"tool_result":{const f=i.get(u);if(f!==void 0){if(l.askQuestionAnswers){const m=r[f];m.submittedAnswers=l.askQuestionAnswers}i.delete(u);break}const d={kind:"tool-result",seq:a,toolUseId:u,output:l.output};l.error!==void 0&&(d.error=l.error),l.toolResultExtra&&(d.toolResultExtra=l.toolResultExtra),r.push(d);break}case"attachment_memories":l.memories&&l.memories.length>0&&r.push({kind:"memory-callout",seq:a,memories:l.memories});break;case"summary":break;case"turn-end":{const f={kind:"turn-end",seq:a};typeof l.durationMs=="number"&&(f.durationMs=l.durationMs),typeof l.turnId=="string"&&(f.turnId=l.turnId),r.push(f);break}}}return r}const Tm=e=>String(e).padStart(2,"0");function jm(e){const t=new Date(e);return new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime()}function Sl(e,t){const n=Date.parse(e);if(Number.isNaN(n))return e;const r=new Date(n),i=`${Tm(r.getHours())}:${Tm(r.getMinutes())}`,o=Math.round((jm(t)-jm(n))/864e5);return o===0?`今天 ${i}`:o===1?`昨天 ${i}`:`${r.getMonth()+1}月${r.getDate()}日 ${i}`}function Uj(e){if(e<=0)return"马上";const t=Math.floor(e/36e5);return t>=1?`${t} 小时`:`${Math.max(1,Math.round(e/6e4))} 分钟`}const Vn=e=>`${e.unionId}/${e.threadId}`,Bj={closeTrailing:!0},Vj=new Set;function Nx(e){const{personas:t,personaId:n,onPersonaChange:r,list:i,selectedKey:o,onSelect:s,onLoadMore:l,detail:a,linkExpiresAt:u,now:f,onRetry:d}=e;if(i.kind==="error"&&i.error.kind==="link-expired"||a.kind==="error"&&a.error.kind==="link-expired")return h.jsx(Am,{children:h.jsxs("div",{className:"mx-auto mt-24 max-w-[420px] text-center","data-testid":"cpc-link-expired",children:[h.jsx("h1",{className:"text-[18px] font-semibold text-text-100",children:"这个链接已经过期"}),h.jsx("p",{className:"mt-2 text-[13px] text-text-300",children:"回到 clawd 的「设置 → Dashboard」,重新点一次「云 persona 对话记录」。"})]})});const p=i.kind==="ready"?i.threads:i.kind==="error"?i.lastThreads:void 0,x=p==null?void 0:p.find(b=>Vn(b)===o);return h.jsxs(Am,{children:[h.jsxs("header",{className:"mb-5",children:[h.jsx("h1",{className:"text-[22px] font-semibold text-text-100",children:"云 persona 对话记录"}),h.jsxs("p",{className:"mt-1 text-[12px] text-text-400",children:["别人跟 persona 每聊完一轮,几秒后这里就能看到",u?` · 这个链接 ${Uj(u-f)}后过期`:""]})]}),t===null?i.kind==="error"?h.jsx(sc,{error:i.error,onRetry:d,testid:"cpc-list-error"}):h.jsx(ai,{testid:"cpc-personas-loading",children:"正在取你能看的 persona…"}):t.length===0?h.jsx("p",{className:"py-16 text-center text-[13px] text-text-400","data-testid":"cpc-no-personas",children:"你还没有发布过云 persona,这里没有可看的对话。"}):h.jsxs(h.Fragment,{children:[h.jsx("div",{className:"mb-5 flex items-center gap-2 text-[13px] text-text-300",children:h.jsxs("label",{className:"flex items-center gap-2",children:["persona",h.jsx("select",{"data-testid":"cpc-persona",value:n,onChange:b=>r(b.target.value),className:"h-8 rounded-md border border-border bg-bg-0 px-2 text-[13px] text-text-100",children:t.map(b=>h.jsx("option",{value:b,children:b},b))})]})}),i.kind==="error"?h.jsx(sc,{error:i.error,onRetry:d,testid:"cpc-list-error"}):null,i.kind==="error"&&i.error.kind==="not-viewer"?null:h.jsxs("div",{className:"grid grid-cols-[300px_minmax(0,1fr)] gap-5",children:[h.jsxs("aside",{className:"flex max-h-[calc(100vh-190px)] min-h-[320px] flex-col overflow-hidden rounded-lg border border-border","data-testid":"cpc-list",children:[h.jsx(Hj,{threads:p,loading:i.kind==="loading",selectedKey:o,onSelect:s,now:f}),i.kind==="ready"&&i.hasMore?h.jsx("div",{className:"border-t border-border p-2",children:h.jsxs(Xn,{variant:"ghost",size:"sm",className:"w-full",disabled:i.loadingMore,onClick:l,"data-testid":"cpc-load-more",children:[i.loadingMore?h.jsx(sr,{className:"mr-1.5 h-3.5 w-3.5 animate-spin"}):null,"加载更早的对话"]})}):null]}),h.jsx("section",{className:"flex max-h-[calc(100vh-190px)] min-h-[320px] flex-col overflow-hidden rounded-lg border border-border","data-testid":"cpc-detail",children:h.jsx(qj,{detail:a,selected:x,now:f,onRetry:d})})]})]})]})}function Hj({threads:e,loading:t,selectedKey:n,onSelect:r,now:i}){return e?e.length===0?h.jsx(ai,{testid:"cpc-list-empty",children:"还没有对话。有人跟它聊完一轮后,几秒内会出现在这里。"}):h.jsx("ul",{className:"flex-1 divide-y divide-border overflow-y-auto",children:e.map(o=>{const s=Vn(o),l=s===n;return h.jsx("li",{children:h.jsxs("button",{type:"button",onClick:()=>r(o),"data-testid":"cpc-thread","data-key":s,"aria-current":l?"true":void 0,className:ve("block w-full px-3.5 py-2.5 text-left transition-colors hover:bg-bg-100",l&&"bg-bg-100"),children:[h.jsx("div",{className:"truncate text-[13px] font-medium text-text-100",children:o.displayName}),h.jsxs("div",{className:"mt-0.5 text-[12px] text-text-400",children:[Sl(o.createdAt,i)," 开始 · 最后活跃 ",Sl(o.updatedAt,i)]})]})},s)})}):h.jsx(ai,{testid:"cpc-list-loading",children:t?"正在取对话…":""})}function qj({detail:e,selected:t,now:n,onRetry:r}){const i=U.useMemo(()=>e.kind==="ready"?$j(e.messages,0,`${e.engine}-cloud`):[],[e]);return e.kind==="none"?h.jsx(ai,{testid:"cpc-detail-none",children:"选左边一条对话,看它的全过程。"}):e.kind==="loading"?h.jsx(ai,{testid:"cpc-detail-loading",children:"正在取这条对话…"}):e.kind==="error"?h.jsx("div",{className:"p-4",children:h.jsx(sc,{error:e.error,onRetry:r,testid:"cpc-detail-error"})}):h.jsxs(h.Fragment,{children:[t?h.jsxs("div",{className:"flex items-baseline gap-2 border-b border-border px-4 py-2.5 text-[12px] text-text-400","data-testid":"cpc-detail-head",children:[h.jsx("span",{className:"text-[13px] font-medium text-text-100",children:t.displayName}),h.jsxs("span",{children:[Sl(t.createdAt,n)," 开始 · 最后活跃 ",Sl(t.updatedAt,n)]}),e.refreshing?h.jsx(sr,{className:"h-3 w-3 animate-spin","aria-label":"正在更新"}):null]}):null,h.jsx("div",{className:"flex-1 overflow-y-auto overflow-x-hidden px-4 py-3","data-testid":"cpc-detail-body",children:i.length===0?h.jsx(ai,{testid:"cpc-detail-empty",children:"这条对话还没有内容。"}):h.jsx(Aj,{lines:i,liveQuestionToolUseIds:Vj,turnCollapse:Bj})})]})}function sc({error:e,onRetry:t,testid:n}){if(e.kind==="link-expired")return null;const[r,i]=e.kind==="not-viewer"?["看不了这个 persona 的对话",e.message??"只有发布这个 persona 的人能看它的对话。"]:["连不上云上的服务,对话没有更新",e.message];return h.jsxs("div",{role:"alert","data-testid":n,className:"mb-5 flex items-start gap-2.5 rounded-lg border border-destructive/30 bg-destructive/5 px-4 py-3 text-[13px]",children:[h.jsx(t1,{className:"mt-0.5 h-4 w-4 shrink-0 text-destructive"}),h.jsxs("div",{className:"flex-1",children:[h.jsx("div",{className:"font-medium text-text-100",children:r}),h.jsx("div",{className:"mt-0.5 text-text-300",children:i})]}),e.kind==="unreachable"&&t?h.jsxs(Xn,{variant:"outline",size:"sm",onClick:t,"data-testid":`${n}-retry`,children:[h.jsx(nw,{className:"mr-1.5 h-3.5 w-3.5"}),"重试"]}):null]})}function ai({children:e,testid:t}){return h.jsx("p",{className:"flex flex-1 items-center justify-center px-6 py-16 text-center text-[13px] text-text-400","data-testid":t,children:e})}function Am({children:e}){return h.jsx("div",{className:"min-h-screen bg-bg-0 text-text-100",children:h.jsx("div",{className:"mx-auto max-w-[1280px] px-6 py-8 md:px-8",children:e})})}function Wj(e,t){if(e.pathname!==`/dashboard/${t}`)return null;const n=new URLSearchParams(e.search),r=n.get("e"),i=n.get("s");return!r||!i||!/^\d+$/.test(r)?null:{link:{e:r,s:i,expiresAt:Number(r)*1e3},query:n}}const Wl=e=>new URLSearchParams({e:e.e,s:e.s}),Zj={"principal has been revoked":"你的 clawd 账号已被停用,找管理员恢复"};async function Gj(e){const t=await e.json().catch(()=>null),n=t==null?void 0:t.message,r=typeof n=="string"&&n?n:Array.isArray(n)&&n.length>0?n.map(String).join(";"):typeof(t==null?void 0:t.error)=="string"?t.error:void 0,i=r===void 0?void 0:Zj[r]??r;return e.status===403?(t==null?void 0:t.code)==="LINK_EXPIRED"||(t==null?void 0:t.code)==="LINK_INVALID"?{kind:"link-expired"}:i?{kind:"not-viewer",message:i}:{kind:"not-viewer"}:{kind:"unreachable",message:i??`HTTP ${e.status}`}}const Ex="cloud-persona-conversations",Zl=`/dashboard/${Ex}`;function Qj(e){const t=Wj(e,Ex);if(!t)return null;const n=t.query,r=n.get("u"),i=n.get("t");return{...t.link,personaId:n.get("persona")??"",selected:r&&i?{unionId:r,threadId:i}:null}}function Kj(e,t,n){const r=Wl(e);return t&&r.set("persona",t),n&&(r.set("u",n.unionId),r.set("t",n.threadId)),`${Zl}?${r}`}const Yj=e=>`${Zl}/personas?${Wl(e)}`;function Pm(e,t,n,r){const i=Wl(e);return i.set("persona",t),n&&i.set("before",n),i.set("limit",String(r)),`${Zl}/threads?${i}`}function Xj(e,t,n){const r=Wl(e);return r.set("persona",t),r.set("unionId",n.unionId),r.set("threadId",n.threadId),`${Zl}/thread?${r}`}const Jj=15e3,ms=50,hs=e=>typeof e=="object"&&e!==null&&"error"in e;async function gs(e,t){let n;try{n=await e(t)}catch(r){return{error:{kind:"unreachable",message:`连不上本机 clawd:${r.message}`}}}return n.ok?await n.json():{error:await Gj(n)}}function Rm(e,t){const n=new Map(t.map(r=>[Vn(r),r]));for(const r of e)n.set(Vn(r),r);return[...n.values()].sort((r,i)=>r.updatedAt<i.updatedAt?1:r.updatedAt>i.updatedAt?-1:0)}function e9(e,t){var te;const[n,r]=U.useState(null),[i,o]=U.useState(e.personaId),[s,l]=U.useState({kind:"loading"}),[a,u]=U.useState(e.selected),[f,d]=U.useState(e.selected?{kind:"loading"}:{kind:"none"}),m=U.useRef(t);m.current=t;const p=U.useRef(0),x=U.useRef(!1),b=U.useRef(void 0),I=U.useRef(!1),y=U.useRef(0),v=U.useRef(null),w=U.useRef(!0);U.useEffect(()=>(w.current=!0,()=>{w.current=!1}),[]);const N=U.useCallback(()=>{gs(m.current.fetchImpl,Yj(e)).then(K=>{if(w.current){if(hs(K)){l({kind:"error",error:K.error});return}r(K.personas),K.personas.includes(e.personaId)||(o(K.personas[0]??""),u(null),d({kind:"none"}))}})},[e]);U.useEffect(()=>N(),[N]);const j=U.useCallback((K,se)=>{b.current=K,I.current=se,l({kind:"ready",threads:K,hasMore:se})},[]),S=U.useCallback(async(K,se)=>{const D=++p.current;x.current=!0;const W=await gs(m.current.fetchImpl,Pm(e,K,null,ms));if(D===p.current){if(x.current=!1,hs(W)){l(W.error.kind==="unreachable"?{kind:"error",error:W.error,lastThreads:b.current}:{kind:"error",error:W.error});return}se&&b.current?j(Rm(W.threads,b.current),I.current):j(W.threads,W.threads.length===ms)}},[e,j]),A=n!==null;U.useEffect(()=>{if(!(!i||!A))return b.current=void 0,l({kind:"loading"}),S(i,!1),m.current.every(Jj,()=>{x.current||S(i,!0)})},[i,A,S]);const E=U.useCallback(async()=>{const K=b.current;if(!i||!K||K.length===0||!I.current)return;const se=p.current;l({kind:"ready",threads:K,hasMore:!0,loadingMore:!0});const D=await gs(m.current.fetchImpl,Pm(e,i,K.at(-1).updatedAt,ms));if(se===p.current){if(hs(D)){l(D.error.kind==="unreachable"?{kind:"error",error:D.error,lastThreads:b.current}:{kind:"error",error:D.error});return}j(Rm(D.threads,b.current??K),D.threads.length===ms)}},[e,i,j]),$=U.useCallback(async(K,se,D,W)=>{const k=++y.current;v.current={key:Vn(se),updatedAt:D},d(W?ye=>ye.kind==="ready"?{...ye,refreshing:!0}:ye:{kind:"loading"});const ae=await gs(m.current.fetchImpl,Xj(e,K,se));k===y.current&&d(hs(ae)?{kind:"error",error:ae.error}:{kind:"ready",engine:ae.engine,messages:ae.messages})},[e]),C=a?Vn(a):null,O=s.kind==="ready"?(te=s.threads.find(K=>Vn(K)===C))==null?void 0:te.updatedAt:void 0;U.useEffect(()=>{if(!a||!i||n===null)return;const K=Vn(a),se=v.current;if(!se||se.key!==K){$(i,a,O,!1);return}if(!(O===void 0||O===se.updatedAt)){if(se.updatedAt===void 0){v.current={key:K,updatedAt:O};return}$(i,a,O,!0)}},[a,i,n,O,$]),U.useEffect(()=>{i&&m.current.replaceUrl(Kj(e,i,a))},[e,i,a]);const z=U.useCallback(K=>{o(K),u(null),v.current=null,++y.current,d({kind:"none"})},[]),oe=U.useCallback(K=>u({unionId:K.unionId,threadId:K.threadId}),[]),Z=U.useCallback(()=>{if(n===null){l({kind:"loading"}),N();return}i&&(S(i,!1),a&&$(i,a,O,!1))},[n,i,a,O,S,$,N]);return{personas:n,personaId:i,setPersonaId:z,list:s,selectedKey:C,select:oe,loadMore:E,detail:f,retry:Z}}const t9={fetchImpl:(...e)=>fetch(...e),replaceUrl:e=>window.history.replaceState(null,"",e),every:(e,t)=>{const n=window.setInterval(t,e);return()=>window.clearInterval(n)}};function n9(){const e=U.useMemo(()=>Qj(window.location),[]);return e?h.jsx(r9,{loc:e}):h.jsx(Nx,{personas:[],personaId:"",onPersonaChange:()=>{},list:{kind:"error",error:{kind:"link-expired"}},selectedKey:null,onSelect:()=>{},detail:{kind:"none"},linkExpiresAt:null,now:Date.now()})}function r9({loc:e}){const t=e9(e,t9);return h.jsx(Nx,{personas:t.personas,personaId:t.personaId,onPersonaChange:t.setPersonaId,list:t.list,selectedKey:t.selectedKey,onSelect:t.select,onLoadMore:()=>void t.loadMore(),detail:t.detail,linkExpiresAt:e.expiresAt,now:Date.now(),onRetry:t.retry})}const Tx=window.matchMedia("(prefers-color-scheme: dark)"),jx=()=>document.documentElement.classList.toggle("dark",Tx.matches);jx();Tx.addEventListener("change",jx);const zm=document.getElementById("root");zm&&Zg(zm).render(h.jsx(n9,{}));</script>
307
307
  <style rel="stylesheet" crossorigin>/*! tailwindcss v4.2.4 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-pan-x:initial;--tw-pan-y:initial;--tw-pinch-zoom:initial;--tw-space-y-reverse:0;--tw-space-x-reverse:0;--tw-divide-x-reverse:0;--tw-border-style:solid;--tw-divide-y-reverse:0;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-ease:initial}}}@layer theme{:root,:host{--font-sans:"Inter", system-ui, -apple-system, sans-serif;--font-mono:"JetBrains Mono", monospace;--color-red-50:oklch(97.1% .013 17.38);--color-red-300:oklch(80.8% .114 19.571);--color-red-400:oklch(70.4% .191 22.216);--color-red-500:oklch(63.7% .237 25.331);--color-red-600:oklch(57.7% .245 27.325);--color-red-700:oklch(50.5% .213 27.518);--color-orange-500:oklch(70.5% .213 47.604);--color-amber-50:oklch(98.7% .022 95.277);--color-amber-100:oklch(96.2% .059 95.617);--color-amber-200:oklch(92.4% .12 95.746);--color-amber-400:oklch(82.8% .189 84.429);--color-amber-500:oklch(76.9% .188 70.08);--color-amber-600:oklch(66.6% .179 58.318);--color-amber-900:oklch(41.4% .112 45.904);--color-lime-500:oklch(76.8% .233 130.85);--color-green-300:oklch(87.1% .15 154.449);--color-green-500:oklch(72.3% .219 149.579);--color-emerald-300:oklch(84.5% .143 164.978);--color-emerald-400:oklch(76.5% .177 163.223);--color-emerald-500:oklch(69.6% .17 162.48);--color-emerald-600:oklch(59.6% .145 163.225);--color-emerald-700:oklch(50.8% .118 165.612);--color-cyan-500:oklch(71.5% .143 215.221);--color-sky-500:oklch(68.5% .169 237.323);--color-blue-100:oklch(93.2% .032 255.585);--color-blue-400:oklch(70.7% .165 254.624);--color-blue-500:oklch(62.3% .214 259.815);--color-blue-700:oklch(48.8% .243 264.376);--color-violet-400:oklch(70.2% .183 293.541);--color-violet-500:oklch(60.6% .25 292.717);--color-purple-500:oklch(62.7% .265 303.9);--color-purple-600:oklch(55.8% .288 302.321);--color-fuchsia-500:oklch(66.7% .295 322.15);--color-rose-500:oklch(64.5% .246 16.439);--color-rose-600:oklch(58.6% .253 17.585);--color-slate-100:oklch(96.8% .007 247.896);--color-slate-200:oklch(92.9% .013 255.508);--color-slate-300:oklch(86.9% .022 252.894);--color-slate-400:oklch(70.4% .04 256.788);--color-gray-50:oklch(98.5% .002 247.839);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-700:oklch(37.3% .034 259.733);--color-neutral-100:oklch(97% 0 0);--color-neutral-200:oklch(92.2% 0 0);--color-neutral-300:oklch(87% 0 0);--color-neutral-400:oklch(70.8% 0 0);--color-neutral-500:oklch(55.6% 0 0);--color-neutral-700:oklch(37.1% 0 0);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-xs:20rem;--container-sm:24rem;--container-md:28rem;--container-lg:32rem;--container-xl:36rem;--container-2xl:42rem;--container-3xl:48rem;--container-4xl:56rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-lg:1.125rem;--text-lg--line-height:calc(1.75 / 1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75 / 1.25);--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--tracking-tight:-.025em;--tracking-wide:.025em;--tracking-wider:.05em;--leading-tight:1.25;--leading-snug:1.375;--leading-relaxed:1.625;--radius-sm:6px;--radius-md:8px;--radius-lg:12px;--radius-xl:.75rem;--radius-2xl:1rem;--ease-out:cubic-bezier(0, 0, .2, 1);--ease-in-out:cubic-bezier(.4, 0, .2, 1);--animate-spin:spin 1s linear infinite;--animate-pulse:pulse 2s cubic-bezier(.4, 0, .6, 1) infinite;--animate-bounce:bounce 1s infinite;--blur-sm:8px;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--color-bg-0:var(--bg-0);--color-bg-50:var(--bg-50);--color-bg-100:var(--bg-100);--color-bg-200:var(--bg-200);--color-bg-300:var(--bg-300);--color-text-100:var(--text-100);--color-text-200:var(--text-200);--color-text-300:var(--text-300);--color-text-400:var(--text-400);--color-text-500:var(--text-500);--color-text-400-dim-fg:var(--text-400-dim-fg);--color-accent:rgb(var(--accent-color));--color-accent-hover:rgb(var(--accent-hover-color));--color-accent-dim:var(--accent-dim-color);--color-accent-contrast:rgb(var(--accent-contrast));--color-success:rgb(var(--success-color));--color-success-dim:var(--success-dim-color);--color-error:rgb(var(--error-color));--color-error-dim:var(--error-dim-color);--color-destructive:rgb(var(--error-color));--color-destructive-hover:rgb(var(--error-hover-color));--color-warning:rgb(var(--warning-color));--color-warning-dim:var(--warning-dim-color);--color-engine-claude:rgb(var(--engine-claude-color));--color-engine-codex:rgb(var(--engine-codex-color));--color-engine-codex-cloud:rgb(var(--engine-codex-cloud-color));--color-engine-pi:rgb(var(--engine-pi-color));--color-engine-pi-cloud:rgb(var(--engine-pi-cloud-color));--color-engine-claude-cloud:rgb(var(--engine-claude-cloud-color));--color-border:var(--bg-300);--color-border-strong:var(--text-100)}@supports (color:color-mix(in lab,red,red)){:root,:host{--color-border-strong:color-mix(in srgb, var(--text-100) 10%, transparent)}}:root,:host{--color-border-card:var(--text-100)}@supports (color:color-mix(in lab,red,red)){:root,:host{--color-border-card:color-mix(in srgb, var(--text-100) 12%, transparent)}}:root,:host{--color-elevated:var(--elevated-color);--color-surface-page:var(--surface-page);--color-surface-card:var(--surface-card);--color-sidebar-hover-bg:var(--sidebar-hover-bg)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.\@container{container-type:inline-size}.pointer-events-auto{pointer-events:auto}.pointer-events-none{pointer-events:none}.collapse{visibility:collapse}.invisible{visibility:hidden}.visible{visibility:visible}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.not-sr-only{clip-path:none;white-space:normal;width:auto;height:auto;margin:0;padding:0;position:static;overflow:visible}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.sticky{position:sticky}.inset-0{inset:calc(var(--spacing) * 0)}.inset-y-0{inset-block:calc(var(--spacing) * 0)}.start{inset-inline-start:var(--spacing)}.start\!{inset-inline-start:var(--spacing)!important}.end{inset-inline-end:var(--spacing)}.-top-0\.5{top:calc(var(--spacing) * -.5)}.-top-10{top:calc(var(--spacing) * -10)}.top-0{top:calc(var(--spacing) * 0)}.top-1\.5{top:calc(var(--spacing) * 1.5)}.top-1\/2{top:50%}.top-2{top:calc(var(--spacing) * 2)}.top-3{top:calc(var(--spacing) * 3)}.top-4{top:calc(var(--spacing) * 4)}.top-5{top:calc(var(--spacing) * 5)}.top-6{top:calc(var(--spacing) * 6)}.top-9{top:calc(var(--spacing) * 9)}.top-10{top:calc(var(--spacing) * 10)}.top-14{top:calc(var(--spacing) * 14)}.top-\[3px\]{top:3px}.top-\[22px\]{top:22px}.top-\[62px\]{top:62px}.top-full{top:100%}.-right-0\.5{right:calc(var(--spacing) * -.5)}.-right-px{right:-1px}.right-0{right:calc(var(--spacing) * 0)}.right-1\.5{right:calc(var(--spacing) * 1.5)}.right-2{right:calc(var(--spacing) * 2)}.right-3{right:calc(var(--spacing) * 3)}.right-4{right:calc(var(--spacing) * 4)}.-bottom-0\.5{bottom:calc(var(--spacing) * -.5)}.-bottom-px{bottom:-1px}.bottom-0{bottom:calc(var(--spacing) * 0)}.bottom-4{bottom:calc(var(--spacing) * 4)}.bottom-24{bottom:calc(var(--spacing) * 24)}.bottom-full{bottom:100%}.left-0{left:calc(var(--spacing) * 0)}.left-1\/2{left:50%}.left-2{left:calc(var(--spacing) * 2)}.left-2\.5{left:calc(var(--spacing) * 2.5)}.left-3{left:calc(var(--spacing) * 3)}.left-4{left:calc(var(--spacing) * 4)}.left-10{left:calc(var(--spacing) * 10)}.left-\[calc\(50\%\+18px\)\]{left:calc(50% + 18px)}.isolate{isolation:isolate}.isolation-auto{isolation:auto}.z-10{z-index:10}.z-20{z-index:20}.z-30{z-index:30}.z-40{z-index:40}.z-50{z-index:50}.z-\[1\]{z-index:1}.z-\[60\]{z-index:60}.z-\[100\]{z-index:100}.z-\[9999\]{z-index:9999}.z-\[10000\]{z-index:10000}.z-\[10001\]{z-index:10001}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:48rem){.container{max-width:48rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:96rem){.container{max-width:96rem}}.m-3{margin:calc(var(--spacing) * 3)}.m-auto{margin:auto}.-mx-1{margin-inline:calc(var(--spacing) * -1)}.-mx-6{margin-inline:calc(var(--spacing) * -6)}.mx-1{margin-inline:calc(var(--spacing) * 1)}.mx-1\.5{margin-inline:calc(var(--spacing) * 1.5)}.mx-2{margin-inline:calc(var(--spacing) * 2)}.mx-3{margin-inline:calc(var(--spacing) * 3)}.mx-4{margin-inline:calc(var(--spacing) * 4)}.mx-auto{margin-inline:auto}.my-1{margin-block:calc(var(--spacing) * 1)}.my-1\.5{margin-block:calc(var(--spacing) * 1.5)}.my-2{margin-block:calc(var(--spacing) * 2)}.my-3{margin-block:calc(var(--spacing) * 3)}.mt-0\.5{margin-top:calc(var(--spacing) * .5)}.mt-1{margin-top:calc(var(--spacing) * 1)}.mt-1\.5{margin-top:calc(var(--spacing) * 1.5)}.mt-2{margin-top:calc(var(--spacing) * 2)}.mt-2\.5{margin-top:calc(var(--spacing) * 2.5)}.mt-3{margin-top:calc(var(--spacing) * 3)}.mt-3\.5{margin-top:calc(var(--spacing) * 3.5)}.mt-4{margin-top:calc(var(--spacing) * 4)}.mt-5{margin-top:calc(var(--spacing) * 5)}.mt-6{margin-top:calc(var(--spacing) * 6)}.mt-8{margin-top:calc(var(--spacing) * 8)}.mt-12{margin-top:calc(var(--spacing) * 12)}.mt-14{margin-top:calc(var(--spacing) * 14)}.mt-24{margin-top:calc(var(--spacing) * 24)}.mt-\[2px\]{margin-top:2px}.mt-\[3px\]{margin-top:3px}.mt-auto{margin-top:auto}.mt-px{margin-top:1px}.-mr-1{margin-right:calc(var(--spacing) * -1)}.mr-1{margin-right:calc(var(--spacing) * 1)}.mr-1\.5{margin-right:calc(var(--spacing) * 1.5)}.mr-2{margin-right:calc(var(--spacing) * 2)}.mr-\[2px\]{margin-right:2px}.-mb-3{margin-bottom:calc(var(--spacing) * -3)}.-mb-px{margin-bottom:-1px}.mb-0\.5{margin-bottom:calc(var(--spacing) * .5)}.mb-1{margin-bottom:calc(var(--spacing) * 1)}.mb-1\.5{margin-bottom:calc(var(--spacing) * 1.5)}.mb-2{margin-bottom:calc(var(--spacing) * 2)}.mb-2\.5{margin-bottom:calc(var(--spacing) * 2.5)}.mb-3{margin-bottom:calc(var(--spacing) * 3)}.mb-4{margin-bottom:calc(var(--spacing) * 4)}.mb-5{margin-bottom:calc(var(--spacing) * 5)}.mb-6{margin-bottom:calc(var(--spacing) * 6)}.mb-8{margin-bottom:calc(var(--spacing) * 8)}.-ml-1{margin-left:calc(var(--spacing) * -1)}.-ml-px{margin-left:-1px}.ml-0\.5{margin-left:calc(var(--spacing) * .5)}.ml-1{margin-left:calc(var(--spacing) * 1)}.ml-1\.5{margin-left:calc(var(--spacing) * 1.5)}.ml-2{margin-left:calc(var(--spacing) * 2)}.ml-2\.5{margin-left:calc(var(--spacing) * 2.5)}.ml-3{margin-left:calc(var(--spacing) * 3)}.ml-4{margin-left:calc(var(--spacing) * 4)}.ml-5{margin-left:calc(var(--spacing) * 5)}.ml-6{margin-left:calc(var(--spacing) * 6)}.ml-auto{margin-left:auto}.line-clamp-1{-webkit-line-clamp:1;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.line-clamp-3{-webkit-line-clamp:3;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.block{display:block}.contents{display:contents}.flex{display:flex}.flow-root{display:flow-root}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.inline-grid{display:inline-grid}.inline-table{display:inline-table}.list-item{display:list-item}.table{display:table}.table-caption{display:table-caption}.table-cell{display:table-cell}.table-column{display:table-column}.table-column-group{display:table-column-group}.table-footer-group{display:table-footer-group}.table-header-group{display:table-header-group}.table-row{display:table-row}.table-row-group{display:table-row-group}.size-2{width:calc(var(--spacing) * 2);height:calc(var(--spacing) * 2)}.size-3{width:calc(var(--spacing) * 3);height:calc(var(--spacing) * 3)}.size-3\.5{width:calc(var(--spacing) * 3.5);height:calc(var(--spacing) * 3.5)}.size-4{width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.size-5{width:calc(var(--spacing) * 5);height:calc(var(--spacing) * 5)}.size-6{width:calc(var(--spacing) * 6);height:calc(var(--spacing) * 6)}.size-7{width:calc(var(--spacing) * 7);height:calc(var(--spacing) * 7)}.size-8{width:calc(var(--spacing) * 8);height:calc(var(--spacing) * 8)}.size-10{width:calc(var(--spacing) * 10);height:calc(var(--spacing) * 10)}.size-\[18px\]{width:18px;height:18px}.h-0{height:calc(var(--spacing) * 0)}.h-0\.5{height:calc(var(--spacing) * .5)}.h-1{height:calc(var(--spacing) * 1)}.h-1\.5{height:calc(var(--spacing) * 1.5)}.h-2{height:calc(var(--spacing) * 2)}.h-2\.5{height:calc(var(--spacing) * 2.5)}.h-3{height:calc(var(--spacing) * 3)}.h-3\.5{height:calc(var(--spacing) * 3.5)}.h-4{height:calc(var(--spacing) * 4)}.h-4\.5{height:calc(var(--spacing) * 4.5)}.h-5{height:calc(var(--spacing) * 5)}.h-6{height:calc(var(--spacing) * 6)}.h-7{height:calc(var(--spacing) * 7)}.h-8{height:calc(var(--spacing) * 8)}.h-9{height:calc(var(--spacing) * 9)}.h-10{height:calc(var(--spacing) * 10)}.h-11{height:calc(var(--spacing) * 11)}.h-12{height:calc(var(--spacing) * 12)}.h-14{height:calc(var(--spacing) * 14)}.h-16{height:calc(var(--spacing) * 16)}.h-20{height:calc(var(--spacing) * 20)}.h-24{height:calc(var(--spacing) * 24)}.h-40{height:calc(var(--spacing) * 40)}.h-44{height:calc(var(--spacing) * 44)}.h-60{height:calc(var(--spacing) * 60)}.h-\[2px\]{height:2px}.h-\[3px\]{height:3px}.h-\[6px\]{height:6px}.h-\[7px\]{height:7px}.h-\[10px\]{height:10px}.h-\[18px\]{height:18px}.h-\[20px\]{height:20px}.h-\[34px\]{height:34px}.h-\[52px\]{height:52px}.h-\[132px\]{height:132px}.h-\[200px\]{height:200px}.h-\[300px\]{height:300px}.h-\[320px\]{height:320px}.h-\[360px\]{height:360px}.h-\[420px\]{height:420px}.h-\[480px\]{height:480px}.h-\[520px\]{height:520px}.h-\[560px\]{height:560px}.h-\[600px\]{height:600px}.h-\[680px\]{height:680px}.h-\[700px\]{height:700px}.h-auto{height:auto}.h-fit{height:fit-content}.h-full{height:100%}.h-px{height:1px}.h-screen{height:100vh}.max-h-40{max-height:calc(var(--spacing) * 40)}.max-h-64{max-height:calc(var(--spacing) * 64)}.max-h-72{max-height:calc(var(--spacing) * 72)}.max-h-\[18rem\]{max-height:18rem}.max-h-\[70vh\]{max-height:70vh}.max-h-\[80vh\]{max-height:80vh}.max-h-\[85vh\]{max-height:85vh}.max-h-\[90vh\]{max-height:90vh}.max-h-\[120px\]{max-height:120px}.max-h-\[140px\]{max-height:140px}.max-h-\[150px\]{max-height:150px}.max-h-\[180px\]{max-height:180px}.max-h-\[220px\]{max-height:220px}.max-h-\[240px\]{max-height:240px}.max-h-\[280px\]{max-height:280px}.max-h-\[300px\]{max-height:300px}.max-h-\[320px\]{max-height:320px}.max-h-\[360px\]{max-height:360px}.max-h-\[420px\]{max-height:420px}.max-h-\[calc\(100\%-3rem\)\]{max-height:calc(100% - 3rem)}.max-h-\[calc\(100vh-190px\)\]{max-height:calc(100vh - 190px)}.min-h-0{min-height:calc(var(--spacing) * 0)}.min-h-7{min-height:calc(var(--spacing) * 7)}.min-h-10{min-height:calc(var(--spacing) * 10)}.min-h-\[8rem\]{min-height:8rem}.min-h-\[22px\]{min-height:22px}.min-h-\[24px\]{min-height:24px}.min-h-\[32px\]{min-height:32px}.min-h-\[60px\]{min-height:60px}.min-h-\[180px\]{min-height:180px}.min-h-\[320px\]{min-height:320px}.min-h-full{min-height:100%}.min-h-screen{min-height:100vh}.w-0{width:calc(var(--spacing) * 0)}.w-1{width:calc(var(--spacing) * 1)}.w-1\.5{width:calc(var(--spacing) * 1.5)}.w-1\/2{width:50%}.w-2{width:calc(var(--spacing) * 2)}.w-2\.5{width:calc(var(--spacing) * 2.5)}.w-3{width:calc(var(--spacing) * 3)}.w-3\.5{width:calc(var(--spacing) * 3.5)}.w-4{width:calc(var(--spacing) * 4)}.w-4\.5{width:calc(var(--spacing) * 4.5)}.w-4\/5{width:80%}.w-5{width:calc(var(--spacing) * 5)}.w-6{width:calc(var(--spacing) * 6)}.w-7{width:calc(var(--spacing) * 7)}.w-8{width:calc(var(--spacing) * 8)}.w-9{width:calc(var(--spacing) * 9)}.w-10{width:calc(var(--spacing) * 10)}.w-11{width:calc(var(--spacing) * 11)}.w-12{width:calc(var(--spacing) * 12)}.w-14{width:calc(var(--spacing) * 14)}.w-16{width:calc(var(--spacing) * 16)}.w-20{width:calc(var(--spacing) * 20)}.w-24{width:calc(var(--spacing) * 24)}.w-28{width:calc(var(--spacing) * 28)}.w-32{width:calc(var(--spacing) * 32)}.w-36{width:calc(var(--spacing) * 36)}.w-40{width:calc(var(--spacing) * 40)}.w-44{width:calc(var(--spacing) * 44)}.w-48{width:calc(var(--spacing) * 48)}.w-60{width:calc(var(--spacing) * 60)}.w-64{width:calc(var(--spacing) * 64)}.w-72{width:calc(var(--spacing) * 72)}.w-80{width:calc(var(--spacing) * 80)}.w-96{width:calc(var(--spacing) * 96)}.w-\[2px\]{width:2px}.w-\[3px\]{width:3px}.w-\[6px\]{width:6px}.w-\[7px\]{width:7px}.w-\[10px\]{width:10px}.w-\[48px\]{width:48px}.w-\[56px\]{width:56px}.w-\[88px\]{width:88px}.w-\[92\%\]{width:92%}.w-\[120px\]{width:120px}.w-\[132px\]{width:132px}.w-\[180px\]{width:180px}.w-\[200px\]{width:200px}.w-\[220px\]{width:220px}.w-\[230px\]{width:230px}.w-\[240px\]{width:240px}.w-\[248px\]{width:248px}.w-\[260px\]{width:260px}.w-\[272px\]{width:272px}.w-\[280px\]{width:280px}.w-\[288px\]{width:288px}.w-\[300px\]{width:300px}.w-\[320px\]{width:320px}.w-\[340px\]{width:340px}.w-\[360px\]{width:360px}.w-\[375px\]{width:375px}.w-\[380px\]{width:380px}.w-\[420px\]{width:420px}.w-\[440px\]{width:440px}.w-\[480px\]{width:480px}.w-\[512px\]{width:512px}.w-\[520px\]{width:520px}.w-\[560px\]{width:560px}.w-\[600px\]{width:600px}.w-\[640px\]{width:640px}.w-\[660px\]{width:660px}.w-\[720px\]{width:720px}.w-\[760px\]{width:760px}.w-\[800px\]{width:800px}.w-\[820px\]{width:820px}.w-\[calc\(100\%-36px\)\]{width:calc(100% - 36px)}.w-\[clamp\(360px\,26vw\,500px\)\]{width:clamp(360px,26vw,500px)}.w-\[min\(560px\,80vw\)\]{width:min(560px,80vw)}.w-\[min\(560px\,92vw\)\]{width:min(560px,92vw)}.w-\[min\(760px\,95vw\)\]{width:min(760px,95vw)}.w-full{width:100%}.w-px{width:1px}.w-screen{width:100vw}.max-w-2xl{max-width:var(--container-2xl)}.max-w-3xl{max-width:var(--container-3xl)}.max-w-4xl{max-width:var(--container-4xl)}.max-w-\[20ch\]{max-width:20ch}.max-w-\[60\%\]{max-width:60%}.max-w-\[60ch\]{max-width:60ch}.max-w-\[70\%\]{max-width:70%}.max-w-\[70ch\]{max-width:70ch}.max-w-\[80px\]{max-width:80px}.max-w-\[85\%\]{max-width:85%}.max-w-\[85vw\]{max-width:85vw}.max-w-\[90\%\]{max-width:90%}.max-w-\[90vw\]{max-width:90vw}.max-w-\[92vw\]{max-width:92vw}.max-w-\[100px\]{max-width:100px}.max-w-\[120px\]{max-width:120px}.max-w-\[140px\]{max-width:140px}.max-w-\[160px\]{max-width:160px}.max-w-\[180px\]{max-width:180px}.max-w-\[200px\]{max-width:200px}.max-w-\[220px\]{max-width:220px}.max-w-\[240px\]{max-width:240px}.max-w-\[260px\]{max-width:260px}.max-w-\[340px\]{max-width:340px}.max-w-\[360px\]{max-width:360px}.max-w-\[380px\]{max-width:380px}.max-w-\[400px\]{max-width:400px}.max-w-\[420px\]{max-width:420px}.max-w-\[480px\]{max-width:480px}.max-w-\[520px\]{max-width:520px}.max-w-\[540px\]{max-width:540px}.max-w-\[560px\]{max-width:560px}.max-w-\[600px\]{max-width:600px}.max-w-\[640px\]{max-width:640px}.max-w-\[720px\]{max-width:720px}.max-w-\[760px\]{max-width:760px}.max-w-\[880px\]{max-width:880px}.max-w-\[900px\]{max-width:900px}.max-w-\[1040px\]{max-width:1040px}.max-w-\[1280px\]{max-width:1280px}.max-w-\[calc\(100vw-16px\)\]{max-width:calc(100vw - 16px)}.max-w-\[calc\(100vw-32px\)\]{max-width:calc(100vw - 32px)}.max-w-\[min\(24rem\,calc\(100vw-2rem\)\)\]{max-width:min(24rem,100vw - 2rem)}.max-w-\[min\(90vw\,32rem\)\]{max-width:min(90vw,32rem)}.max-w-\[min\(560px\,80vw\)\]{max-width:min(560px,80vw)}.max-w-full{max-width:100%}.max-w-lg{max-width:var(--container-lg)}.max-w-md{max-width:var(--container-md)}.max-w-none{max-width:none}.max-w-sm{max-width:var(--container-sm)}.max-w-xl{max-width:var(--container-xl)}.max-w-xs{max-width:var(--container-xs)}.min-w-0{min-width:calc(var(--spacing) * 0)}.min-w-4{min-width:calc(var(--spacing) * 4)}.min-w-6{min-width:calc(var(--spacing) * 6)}.min-w-12{min-width:calc(var(--spacing) * 12)}.min-w-\[6rem\]{min-width:6rem}.min-w-\[8rem\]{min-width:8rem}.min-w-\[22px\]{min-width:22px}.min-w-\[88px\]{min-width:88px}.min-w-\[140px\]{min-width:140px}.min-w-\[168px\]{min-width:168px}.min-w-\[190px\]{min-width:190px}.min-w-\[200px\]{min-width:200px}.min-w-\[220px\]{min-width:220px}.min-w-\[300px\]{min-width:300px}.min-w-max{min-width:max-content}.flex-1{flex:1}.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.grow{flex-grow:1}.basis-0{flex-basis:calc(var(--spacing) * 0)}.border-collapse{border-collapse:collapse}.border-separate{border-collapse:separate}.border-spacing-y-1\.5{--tw-border-spacing-y:calc(var(--spacing) * 1.5);border-spacing:var(--tw-border-spacing-x) var(--tw-border-spacing-y)}.-translate-x-1\/2{--tw-translate-x: -50% ;translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-x-0\.5{--tw-translate-x:calc(var(--spacing) * .5);translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-x-\[18px\]{--tw-translate-x:18px;translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-x-\[22px\]{--tw-translate-x:22px;translate:var(--tw-translate-x) var(--tw-translate-y)}.-translate-y-1\/2{--tw-translate-y: -50% ;translate:var(--tw-translate-x) var(--tw-translate-y)}.-translate-y-full{--tw-translate-y:-100%;translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-y-\[2px\]{--tw-translate-y:2px;translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-none{translate:none}.scale-3d{scale:var(--tw-scale-x) var(--tw-scale-y) var(--tw-scale-z)}.-rotate-90{rotate:-90deg}.rotate-90{rotate:90deg}.rotate-180{rotate:180deg}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.transform\!{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)!important}.animate-bounce{animation:var(--animate-bounce)}.animate-pulse{animation:var(--animate-pulse)}.animate-spin{animation:var(--animate-spin)}.cursor-col-resize{cursor:col-resize}.cursor-default{cursor:default}.cursor-help{cursor:help}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.touch-pinch-zoom{--tw-pinch-zoom:pinch-zoom;touch-action:var(--tw-pan-x,) var(--tw-pan-y,) var(--tw-pinch-zoom,)}.resize{resize:both}.resize-none{resize:none}.resize-y{resize:vertical}.list-decimal{list-style-type:decimal}.list-disc{list-style-type:disc}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-\[300px_minmax\(0\,1fr\)\]{grid-template-columns:300px minmax(0,1fr)}.grid-cols-\[auto_1fr\]{grid-template-columns:auto 1fr}.flex-col{flex-direction:column}.flex-row{flex-direction:row}.flex-row-reverse{flex-direction:row-reverse}.flex-wrap{flex-wrap:wrap}.items-baseline{align-items:baseline}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.items-stretch{align-items:stretch}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.justify-start{justify-content:flex-start}.gap-0\.5{gap:calc(var(--spacing) * .5)}.gap-1{gap:calc(var(--spacing) * 1)}.gap-1\.5{gap:calc(var(--spacing) * 1.5)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-2\.5{gap:calc(var(--spacing) * 2.5)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-4{gap:calc(var(--spacing) * 4)}.gap-5{gap:calc(var(--spacing) * 5)}.gap-6{gap:calc(var(--spacing) * 6)}.gap-10{gap:calc(var(--spacing) * 10)}.gap-16{gap:calc(var(--spacing) * 16)}.gap-px{gap:1px}:where(.space-y-0\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * .5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * .5) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 1) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 1) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-1\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 1.5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 1.5) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 2) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 2) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 2.5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 2.5) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 3) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 3) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 4) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 4) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 5) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-6>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 6) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 6) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-8>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 8) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 8) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-px>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(1px * var(--tw-space-y-reverse));margin-block-end:calc(1px * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-reverse>:not(:last-child)){--tw-space-y-reverse:1}.gap-x-2{column-gap:calc(var(--spacing) * 2)}.gap-x-3{column-gap:calc(var(--spacing) * 3)}.gap-x-4{column-gap:calc(var(--spacing) * 4)}.gap-x-5{column-gap:calc(var(--spacing) * 5)}:where(.space-x-reverse>:not(:last-child)){--tw-space-x-reverse:1}.gap-y-1{row-gap:calc(var(--spacing) * 1)}.gap-y-1\.5{row-gap:calc(var(--spacing) * 1.5)}.gap-y-3{row-gap:calc(var(--spacing) * 3)}:where(.divide-x>:not(:last-child)){--tw-divide-x-reverse:0;border-inline-style:var(--tw-border-style);border-inline-start-width:calc(1px * var(--tw-divide-x-reverse));border-inline-end-width:calc(1px * calc(1 - var(--tw-divide-x-reverse)))}:where(.divide-y>:not(:last-child)){--tw-divide-y-reverse:0;border-bottom-style:var(--tw-border-style);border-top-style:var(--tw-border-style);border-top-width:calc(1px * var(--tw-divide-y-reverse));border-bottom-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)))}:where(.divide-y-reverse>:not(:last-child)){--tw-divide-y-reverse:1}:where(.divide-bg-200\/40>:not(:last-child)){border-color:var(--color-bg-200)}@supports (color:color-mix(in lab,red,red)){:where(.divide-bg-200\/40>:not(:last-child)){border-color:color-mix(in oklab,var(--color-bg-200) 40%,transparent)}}:where(.divide-border>:not(:last-child)){border-color:var(--color-border)}:where(.divide-border-card>:not(:last-child)){border-color:var(--color-border-card)}.self-center{align-self:center}.self-end{align-self:flex-end}.self-start{align-self:flex-start}.self-stretch{align-self:stretch}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-visible{overflow:visible}.overflow-x-auto{overflow-x:auto}.overflow-x-hidden{overflow-x:hidden}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:var(--radius-2xl)}.rounded-\[2px\]{border-radius:2px}.rounded-\[5px\]{border-radius:5px}.rounded-\[36px\]{border-radius:36px}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-sm{border-radius:var(--radius-sm)}.rounded-xl{border-radius:var(--radius-xl)}.rounded-s{border-start-start-radius:.25rem;border-end-start-radius:.25rem}.rounded-ss{border-start-start-radius:.25rem}.rounded-e{border-start-end-radius:.25rem;border-end-end-radius:.25rem}.rounded-se{border-start-end-radius:.25rem}.rounded-ee{border-end-end-radius:.25rem}.rounded-es{border-end-start-radius:.25rem}.rounded-t{border-top-left-radius:.25rem;border-top-right-radius:.25rem}.rounded-t-lg{border-top-left-radius:var(--radius-lg);border-top-right-radius:var(--radius-lg)}.rounded-t-xl{border-top-left-radius:var(--radius-xl);border-top-right-radius:var(--radius-xl)}.rounded-l{border-top-left-radius:.25rem;border-bottom-left-radius:.25rem}.rounded-l-none{border-top-left-radius:0;border-bottom-left-radius:0}.rounded-tl{border-top-left-radius:.25rem}.rounded-tl-2xl{border-top-left-radius:var(--radius-2xl)}.rounded-tl-md{border-top-left-radius:var(--radius-md)}.rounded-r{border-top-right-radius:.25rem;border-bottom-right-radius:.25rem}.rounded-r-\[4px\]{border-top-right-radius:4px;border-bottom-right-radius:4px}.rounded-r-full{border-top-right-radius:3.40282e38px;border-bottom-right-radius:3.40282e38px}.rounded-r-none{border-top-right-radius:0;border-bottom-right-radius:0}.rounded-tr{border-top-right-radius:.25rem}.rounded-tr-2xl{border-top-right-radius:var(--radius-2xl)}.rounded-tr-md{border-top-right-radius:var(--radius-md)}.rounded-b{border-bottom-right-radius:.25rem;border-bottom-left-radius:.25rem}.rounded-br{border-bottom-right-radius:.25rem}.rounded-br-2xl{border-bottom-right-radius:var(--radius-2xl)}.rounded-br-md{border-bottom-right-radius:var(--radius-md)}.rounded-br-sm{border-bottom-right-radius:var(--radius-sm)}.rounded-bl{border-bottom-left-radius:.25rem}.rounded-bl-2xl{border-bottom-left-radius:var(--radius-2xl)}.rounded-bl-md{border-bottom-left-radius:var(--radius-md)}.border{border-style:var(--tw-border-style);border-width:1px}.border-0{border-style:var(--tw-border-style);border-width:0}.border-2{border-style:var(--tw-border-style);border-width:2px}.border-x{border-inline-style:var(--tw-border-style);border-inline-width:1px}.border-y{border-block-style:var(--tw-border-style);border-block-width:1px}.border-s{border-inline-start-style:var(--tw-border-style);border-inline-start-width:1px}.border-e{border-inline-end-style:var(--tw-border-style);border-inline-end-width:1px}.border-bs{border-block-start-style:var(--tw-border-style);border-block-start-width:1px}.border-be{border-block-end-style:var(--tw-border-style);border-block-end-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-t-0{border-top-style:var(--tw-border-style);border-top-width:0}.border-r{border-right-style:var(--tw-border-style);border-right-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-b-0{border-bottom-style:var(--tw-border-style);border-bottom-width:0}.border-b-2{border-bottom-style:var(--tw-border-style);border-bottom-width:2px}.border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.border-l-2{border-left-style:var(--tw-border-style);border-left-width:2px}.border-l-\[3px\]{border-left-style:var(--tw-border-style);border-left-width:3px}.border-dashed{--tw-border-style:dashed;border-style:dashed}.border-accent{border-color:var(--color-accent)}.border-accent-contrast\/30{border-color:color-mix(in srgb,rgb(var(--accent-contrast)) 30%,transparent)}@supports (color:color-mix(in lab,red,red)){.border-accent-contrast\/30{border-color:color-mix(in oklab,var(--color-accent-contrast) 30%,transparent)}}.border-accent\/15{border-color:color-mix(in srgb,rgb(var(--accent-color)) 15%,transparent)}@supports (color:color-mix(in lab,red,red)){.border-accent\/15{border-color:color-mix(in oklab,var(--color-accent) 15%,transparent)}}.border-accent\/20{border-color:color-mix(in srgb,rgb(var(--accent-color)) 20%,transparent)}@supports (color:color-mix(in lab,red,red)){.border-accent\/20{border-color:color-mix(in oklab,var(--color-accent) 20%,transparent)}}.border-accent\/30{border-color:color-mix(in srgb,rgb(var(--accent-color)) 30%,transparent)}@supports (color:color-mix(in lab,red,red)){.border-accent\/30{border-color:color-mix(in oklab,var(--color-accent) 30%,transparent)}}.border-accent\/35{border-color:color-mix(in srgb,rgb(var(--accent-color)) 35%,transparent)}@supports (color:color-mix(in lab,red,red)){.border-accent\/35{border-color:color-mix(in oklab,var(--color-accent) 35%,transparent)}}.border-accent\/40{border-color:color-mix(in srgb,rgb(var(--accent-color)) 40%,transparent)}@supports (color:color-mix(in lab,red,red)){.border-accent\/40{border-color:color-mix(in oklab,var(--color-accent) 40%,transparent)}}.border-accent\/50{border-color:color-mix(in srgb,rgb(var(--accent-color)) 50%,transparent)}@supports (color:color-mix(in lab,red,red)){.border-accent\/50{border-color:color-mix(in oklab,var(--color-accent) 50%,transparent)}}.border-accent\/60{border-color:color-mix(in srgb,rgb(var(--accent-color)) 60%,transparent)}@supports (color:color-mix(in lab,red,red)){.border-accent\/60{border-color:color-mix(in oklab,var(--color-accent) 60%,transparent)}}.border-amber-100{border-color:var(--color-amber-100)}.border-amber-200{border-color:var(--color-amber-200)}.border-bg-200\/60{border-color:var(--color-bg-200)}@supports (color:color-mix(in lab,red,red)){.border-bg-200\/60{border-color:color-mix(in oklab,var(--color-bg-200) 60%,transparent)}}.border-bg-300,.border-bg-300\/20{border-color:var(--color-bg-300)}@supports (color:color-mix(in lab,red,red)){.border-bg-300\/20{border-color:color-mix(in oklab,var(--color-bg-300) 20%,transparent)}}.border-bg-300\/30{border-color:var(--color-bg-300)}@supports (color:color-mix(in lab,red,red)){.border-bg-300\/30{border-color:color-mix(in oklab,var(--color-bg-300) 30%,transparent)}}.border-bg-300\/40{border-color:var(--color-bg-300)}@supports (color:color-mix(in lab,red,red)){.border-bg-300\/40{border-color:color-mix(in oklab,var(--color-bg-300) 40%,transparent)}}.border-bg-300\/50{border-color:var(--color-bg-300)}@supports (color:color-mix(in lab,red,red)){.border-bg-300\/50{border-color:color-mix(in oklab,var(--color-bg-300) 50%,transparent)}}.border-bg-300\/60{border-color:var(--color-bg-300)}@supports (color:color-mix(in lab,red,red)){.border-bg-300\/60{border-color:color-mix(in oklab,var(--color-bg-300) 60%,transparent)}}.border-border{border-color:var(--color-border)}.border-border-card{border-color:var(--color-border-card)}.border-border-strong{border-color:var(--color-border-strong)}.border-border\/50{border-color:var(--color-border)}@supports (color:color-mix(in lab,red,red)){.border-border\/50{border-color:color-mix(in oklab,var(--color-border) 50%,transparent)}}.border-border\/60{border-color:var(--color-border)}@supports (color:color-mix(in lab,red,red)){.border-border\/60{border-color:color-mix(in oklab,var(--color-border) 60%,transparent)}}.border-border\/70{border-color:var(--color-border)}@supports (color:color-mix(in lab,red,red)){.border-border\/70{border-color:color-mix(in oklab,var(--color-border) 70%,transparent)}}.border-destructive\/30{border-color:color-mix(in srgb,rgb(var(--error-color)) 30%,transparent)}@supports (color:color-mix(in lab,red,red)){.border-destructive\/30{border-color:color-mix(in oklab,var(--color-destructive) 30%,transparent)}}.border-destructive\/40{border-color:color-mix(in srgb,rgb(var(--error-color)) 40%,transparent)}@supports (color:color-mix(in lab,red,red)){.border-destructive\/40{border-color:color-mix(in oklab,var(--color-destructive) 40%,transparent)}}.border-emerald-500\/30{border-color:#00bb7f4d}@supports (color:color-mix(in lab,red,red)){.border-emerald-500\/30{border-color:color-mix(in oklab,var(--color-emerald-500) 30%,transparent)}}.border-emerald-500\/40{border-color:#00bb7f66}@supports (color:color-mix(in lab,red,red)){.border-emerald-500\/40{border-color:color-mix(in oklab,var(--color-emerald-500) 40%,transparent)}}.border-error{border-color:var(--color-error)}.border-error\/20{border-color:color-mix(in srgb,rgb(var(--error-color)) 20%,transparent)}@supports (color:color-mix(in lab,red,red)){.border-error\/20{border-color:color-mix(in oklab,var(--color-error) 20%,transparent)}}.border-error\/25{border-color:color-mix(in srgb,rgb(var(--error-color)) 25%,transparent)}@supports (color:color-mix(in lab,red,red)){.border-error\/25{border-color:color-mix(in oklab,var(--color-error) 25%,transparent)}}.border-error\/30{border-color:color-mix(in srgb,rgb(var(--error-color)) 30%,transparent)}@supports (color:color-mix(in lab,red,red)){.border-error\/30{border-color:color-mix(in oklab,var(--color-error) 30%,transparent)}}.border-error\/40{border-color:color-mix(in srgb,rgb(var(--error-color)) 40%,transparent)}@supports (color:color-mix(in lab,red,red)){.border-error\/40{border-color:color-mix(in oklab,var(--color-error) 40%,transparent)}}.border-neutral-200{border-color:var(--color-neutral-200)}.border-neutral-300{border-color:var(--color-neutral-300)}.border-neutral-400{border-color:var(--color-neutral-400)}.border-purple-500\/25{border-color:#ac4bff40}@supports (color:color-mix(in lab,red,red)){.border-purple-500\/25{border-color:color-mix(in oklab,var(--color-purple-500) 25%,transparent)}}.border-red-300{border-color:var(--color-red-300)}.border-red-400{border-color:var(--color-red-400)}.border-red-400\/40{border-color:#ff656866}@supports (color:color-mix(in lab,red,red)){.border-red-400\/40{border-color:color-mix(in oklab,var(--color-red-400) 40%,transparent)}}.border-red-500\/25{border-color:#fb2c3640}@supports (color:color-mix(in lab,red,red)){.border-red-500\/25{border-color:color-mix(in oklab,var(--color-red-500) 25%,transparent)}}.border-red-500\/70{border-color:#fb2c36b3}@supports (color:color-mix(in lab,red,red)){.border-red-500\/70{border-color:color-mix(in oklab,var(--color-red-500) 70%,transparent)}}.border-success\/30{border-color:color-mix(in srgb,rgb(var(--success-color)) 30%,transparent)}@supports (color:color-mix(in lab,red,red)){.border-success\/30{border-color:color-mix(in oklab,var(--color-success) 30%,transparent)}}.border-success\/40{border-color:color-mix(in srgb,rgb(var(--success-color)) 40%,transparent)}@supports (color:color-mix(in lab,red,red)){.border-success\/40{border-color:color-mix(in oklab,var(--color-success) 40%,transparent)}}.border-text-100\/10{border-color:var(--color-text-100)}@supports (color:color-mix(in lab,red,red)){.border-text-100\/10{border-color:color-mix(in oklab,var(--color-text-100) 10%,transparent)}}.border-text-100\/15{border-color:var(--color-text-100)}@supports (color:color-mix(in lab,red,red)){.border-text-100\/15{border-color:color-mix(in oklab,var(--color-text-100) 15%,transparent)}}.border-text-100\/20{border-color:var(--color-text-100)}@supports (color:color-mix(in lab,red,red)){.border-text-100\/20{border-color:color-mix(in oklab,var(--color-text-100) 20%,transparent)}}.border-text-100\/\[0\.12\]{border-color:var(--color-text-100)}@supports (color:color-mix(in lab,red,red)){.border-text-100\/\[0\.12\]{border-color:color-mix(in oklab,var(--color-text-100) 12%,transparent)}}.border-text-400\/40{border-color:var(--color-text-400)}@supports (color:color-mix(in lab,red,red)){.border-text-400\/40{border-color:color-mix(in oklab,var(--color-text-400) 40%,transparent)}}.border-transparent{border-color:#0000}.border-warning\/30{border-color:color-mix(in srgb,rgb(var(--warning-color)) 30%,transparent)}@supports (color:color-mix(in lab,red,red)){.border-warning\/30{border-color:color-mix(in oklab,var(--color-warning) 30%,transparent)}}.border-warning\/40{border-color:color-mix(in srgb,rgb(var(--warning-color)) 40%,transparent)}@supports (color:color-mix(in lab,red,red)){.border-warning\/40{border-color:color-mix(in oklab,var(--color-warning) 40%,transparent)}}.border-warning\/50{border-color:color-mix(in srgb,rgb(var(--warning-color)) 50%,transparent)}@supports (color:color-mix(in lab,red,red)){.border-warning\/50{border-color:color-mix(in oklab,var(--color-warning) 50%,transparent)}}.bg-\[var\(--text-100-dim\)\]{background-color:var(--text-100-dim)}.bg-\[var\(--text-400-dim\)\]{background-color:var(--text-400-dim)}.bg-accent{background-color:var(--color-accent)}.bg-accent-dim,.bg-accent-dim\/40{background-color:var(--color-accent-dim)}@supports (color:color-mix(in lab,red,red)){.bg-accent-dim\/40{background-color:color-mix(in oklab,var(--color-accent-dim) 40%,transparent)}}.bg-accent-dim\/60{background-color:var(--color-accent-dim)}@supports (color:color-mix(in lab,red,red)){.bg-accent-dim\/60{background-color:color-mix(in oklab,var(--color-accent-dim) 60%,transparent)}}.bg-accent\/5{background-color:color-mix(in srgb,rgb(var(--accent-color)) 5%,transparent)}@supports (color:color-mix(in lab,red,red)){.bg-accent\/5{background-color:color-mix(in oklab,var(--color-accent) 5%,transparent)}}.bg-accent\/10{background-color:color-mix(in srgb,rgb(var(--accent-color)) 10%,transparent)}@supports (color:color-mix(in lab,red,red)){.bg-accent\/10{background-color:color-mix(in oklab,var(--color-accent) 10%,transparent)}}.bg-accent\/45{background-color:color-mix(in srgb,rgb(var(--accent-color)) 45%,transparent)}@supports (color:color-mix(in lab,red,red)){.bg-accent\/45{background-color:color-mix(in oklab,var(--color-accent) 45%,transparent)}}.bg-accent\/50{background-color:color-mix(in srgb,rgb(var(--accent-color)) 50%,transparent)}@supports (color:color-mix(in lab,red,red)){.bg-accent\/50{background-color:color-mix(in oklab,var(--color-accent) 50%,transparent)}}.bg-amber-50{background-color:var(--color-amber-50)}.bg-amber-100{background-color:var(--color-amber-100)}.bg-amber-400{background-color:var(--color-amber-400)}.bg-amber-500{background-color:var(--color-amber-500)}.bg-amber-500\/15{background-color:#f99c0026}@supports (color:color-mix(in lab,red,red)){.bg-amber-500\/15{background-color:color-mix(in oklab,var(--color-amber-500) 15%,transparent)}}.bg-bg-0,.bg-bg-0\/40{background-color:var(--color-bg-0)}@supports (color:color-mix(in lab,red,red)){.bg-bg-0\/40{background-color:color-mix(in oklab,var(--color-bg-0) 40%,transparent)}}.bg-bg-0\/95{background-color:var(--color-bg-0)}@supports (color:color-mix(in lab,red,red)){.bg-bg-0\/95{background-color:color-mix(in oklab,var(--color-bg-0) 95%,transparent)}}.bg-bg-50,.bg-bg-50\/40{background-color:var(--color-bg-50)}@supports (color:color-mix(in lab,red,red)){.bg-bg-50\/40{background-color:color-mix(in oklab,var(--color-bg-50) 40%,transparent)}}.bg-bg-50\/60{background-color:var(--color-bg-50)}@supports (color:color-mix(in lab,red,red)){.bg-bg-50\/60{background-color:color-mix(in oklab,var(--color-bg-50) 60%,transparent)}}.bg-bg-50\/95{background-color:var(--color-bg-50)}@supports (color:color-mix(in lab,red,red)){.bg-bg-50\/95{background-color:color-mix(in oklab,var(--color-bg-50) 95%,transparent)}}.bg-bg-100,.bg-bg-100\/30{background-color:var(--color-bg-100)}@supports (color:color-mix(in lab,red,red)){.bg-bg-100\/30{background-color:color-mix(in oklab,var(--color-bg-100) 30%,transparent)}}.bg-bg-100\/40{background-color:var(--color-bg-100)}@supports (color:color-mix(in lab,red,red)){.bg-bg-100\/40{background-color:color-mix(in oklab,var(--color-bg-100) 40%,transparent)}}.bg-bg-100\/60{background-color:var(--color-bg-100)}@supports (color:color-mix(in lab,red,red)){.bg-bg-100\/60{background-color:color-mix(in oklab,var(--color-bg-100) 60%,transparent)}}.bg-bg-100\/70{background-color:var(--color-bg-100)}@supports (color:color-mix(in lab,red,red)){.bg-bg-100\/70{background-color:color-mix(in oklab,var(--color-bg-100) 70%,transparent)}}.bg-bg-100\/80{background-color:var(--color-bg-100)}@supports (color:color-mix(in lab,red,red)){.bg-bg-100\/80{background-color:color-mix(in oklab,var(--color-bg-100) 80%,transparent)}}.bg-bg-100\/95{background-color:var(--color-bg-100)}@supports (color:color-mix(in lab,red,red)){.bg-bg-100\/95{background-color:color-mix(in oklab,var(--color-bg-100) 95%,transparent)}}.bg-bg-200,.bg-bg-200\/35{background-color:var(--color-bg-200)}@supports (color:color-mix(in lab,red,red)){.bg-bg-200\/35{background-color:color-mix(in oklab,var(--color-bg-200) 35%,transparent)}}.bg-bg-200\/60{background-color:var(--color-bg-200)}@supports (color:color-mix(in lab,red,red)){.bg-bg-200\/60{background-color:color-mix(in oklab,var(--color-bg-200) 60%,transparent)}}.bg-bg-200\/70{background-color:var(--color-bg-200)}@supports (color:color-mix(in lab,red,red)){.bg-bg-200\/70{background-color:color-mix(in oklab,var(--color-bg-200) 70%,transparent)}}.bg-bg-300{background-color:var(--color-bg-300)}.bg-black\/5{background-color:#0000000d}@supports (color:color-mix(in lab,red,red)){.bg-black\/5{background-color:color-mix(in oklab,var(--color-black) 5%,transparent)}}.bg-black\/10{background-color:#0000001a}@supports (color:color-mix(in lab,red,red)){.bg-black\/10{background-color:color-mix(in oklab,var(--color-black) 10%,transparent)}}.bg-black\/30{background-color:#0000004d}@supports (color:color-mix(in lab,red,red)){.bg-black\/30{background-color:color-mix(in oklab,var(--color-black) 30%,transparent)}}.bg-black\/40{background-color:#0006}@supports (color:color-mix(in lab,red,red)){.bg-black\/40{background-color:color-mix(in oklab,var(--color-black) 40%,transparent)}}.bg-black\/50{background-color:#00000080}@supports (color:color-mix(in lab,red,red)){.bg-black\/50{background-color:color-mix(in oklab,var(--color-black) 50%,transparent)}}.bg-black\/60{background-color:#0009}@supports (color:color-mix(in lab,red,red)){.bg-black\/60{background-color:color-mix(in oklab,var(--color-black) 60%,transparent)}}.bg-blue-100{background-color:var(--color-blue-100)}.bg-blue-500{background-color:var(--color-blue-500)}.bg-border{background-color:var(--color-border)}.bg-current,.bg-current\/20{background-color:currentColor}@supports (color:color-mix(in lab,red,red)){.bg-current\/20{background-color:color-mix(in oklab,currentcolor 20%,transparent)}}.bg-cyan-500{background-color:var(--color-cyan-500)}.bg-destructive{background-color:var(--color-destructive)}.bg-destructive\/5{background-color:color-mix(in srgb,rgb(var(--error-color)) 5%,transparent)}@supports (color:color-mix(in lab,red,red)){.bg-destructive\/5{background-color:color-mix(in oklab,var(--color-destructive) 5%,transparent)}}.bg-destructive\/10{background-color:color-mix(in srgb,rgb(var(--error-color)) 10%,transparent)}@supports (color:color-mix(in lab,red,red)){.bg-destructive\/10{background-color:color-mix(in oklab,var(--color-destructive) 10%,transparent)}}.bg-elevated{background-color:var(--color-elevated)}.bg-emerald-400{background-color:var(--color-emerald-400)}.bg-emerald-500{background-color:var(--color-emerald-500)}.bg-emerald-500\/10{background-color:#00bb7f1a}@supports (color:color-mix(in lab,red,red)){.bg-emerald-500\/10{background-color:color-mix(in oklab,var(--color-emerald-500) 10%,transparent)}}.bg-emerald-500\/15{background-color:#00bb7f26}@supports (color:color-mix(in lab,red,red)){.bg-emerald-500\/15{background-color:color-mix(in oklab,var(--color-emerald-500) 15%,transparent)}}.bg-emerald-600{background-color:var(--color-emerald-600)}.bg-error{background-color:var(--color-error)}.bg-error-dim{background-color:var(--color-error-dim)}.bg-error\/5{background-color:color-mix(in srgb,rgb(var(--error-color)) 5%,transparent)}@supports (color:color-mix(in lab,red,red)){.bg-error\/5{background-color:color-mix(in oklab,var(--color-error) 5%,transparent)}}.bg-error\/10{background-color:color-mix(in srgb,rgb(var(--error-color)) 10%,transparent)}@supports (color:color-mix(in lab,red,red)){.bg-error\/10{background-color:color-mix(in oklab,var(--color-error) 10%,transparent)}}.bg-error\/55{background-color:color-mix(in srgb,rgb(var(--error-color)) 55%,transparent)}@supports (color:color-mix(in lab,red,red)){.bg-error\/55{background-color:color-mix(in oklab,var(--color-error) 55%,transparent)}}.bg-error\/60{background-color:color-mix(in srgb,rgb(var(--error-color)) 60%,transparent)}@supports (color:color-mix(in lab,red,red)){.bg-error\/60{background-color:color-mix(in oklab,var(--color-error) 60%,transparent)}}.bg-fuchsia-500{background-color:var(--color-fuchsia-500)}.bg-gray-50{background-color:var(--color-gray-50)}.bg-green-500{background-color:var(--color-green-500)}.bg-green-500\/10{background-color:#00c7581a}@supports (color:color-mix(in lab,red,red)){.bg-green-500\/10{background-color:color-mix(in oklab,var(--color-green-500) 10%,transparent)}}.bg-lime-500{background-color:var(--color-lime-500)}.bg-neutral-100{background-color:var(--color-neutral-100)}.bg-neutral-200{background-color:var(--color-neutral-200)}.bg-orange-500{background-color:var(--color-orange-500)}.bg-purple-500\/10{background-color:#ac4bff1a}@supports (color:color-mix(in lab,red,red)){.bg-purple-500\/10{background-color:color-mix(in oklab,var(--color-purple-500) 10%,transparent)}}.bg-red-50{background-color:var(--color-red-50)}.bg-red-500{background-color:var(--color-red-500)}.bg-red-500\/5{background-color:#fb2c360d}@supports (color:color-mix(in lab,red,red)){.bg-red-500\/5{background-color:color-mix(in oklab,var(--color-red-500) 5%,transparent)}}.bg-red-500\/10{background-color:#fb2c361a}@supports (color:color-mix(in lab,red,red)){.bg-red-500\/10{background-color:color-mix(in oklab,var(--color-red-500) 10%,transparent)}}.bg-red-500\/15{background-color:#fb2c3626}@supports (color:color-mix(in lab,red,red)){.bg-red-500\/15{background-color:color-mix(in oklab,var(--color-red-500) 15%,transparent)}}.bg-red-600{background-color:var(--color-red-600)}.bg-rose-500{background-color:var(--color-rose-500)}.bg-rose-600{background-color:var(--color-rose-600)}.bg-slate-100{background-color:var(--color-slate-100)}.bg-slate-200\/40{background-color:#e2e8f066}@supports (color:color-mix(in lab,red,red)){.bg-slate-200\/40{background-color:color-mix(in oklab,var(--color-slate-200) 40%,transparent)}}.bg-slate-200\/60{background-color:#e2e8f099}@supports (color:color-mix(in lab,red,red)){.bg-slate-200\/60{background-color:color-mix(in oklab,var(--color-slate-200) 60%,transparent)}}.bg-slate-300{background-color:var(--color-slate-300)}.bg-slate-400{background-color:var(--color-slate-400)}.bg-success{background-color:var(--color-success)}.bg-success-dim{background-color:var(--color-success-dim)}.bg-success\/5{background-color:color-mix(in srgb,rgb(var(--success-color)) 5%,transparent)}@supports (color:color-mix(in lab,red,red)){.bg-success\/5{background-color:color-mix(in oklab,var(--color-success) 5%,transparent)}}.bg-success\/10{background-color:color-mix(in srgb,rgb(var(--success-color)) 10%,transparent)}@supports (color:color-mix(in lab,red,red)){.bg-success\/10{background-color:color-mix(in oklab,var(--color-success) 10%,transparent)}}.bg-success\/15{background-color:color-mix(in srgb,rgb(var(--success-color)) 15%,transparent)}@supports (color:color-mix(in lab,red,red)){.bg-success\/15{background-color:color-mix(in oklab,var(--color-success) 15%,transparent)}}.bg-success\/40{background-color:color-mix(in srgb,rgb(var(--success-color)) 40%,transparent)}@supports (color:color-mix(in lab,red,red)){.bg-success\/40{background-color:color-mix(in oklab,var(--color-success) 40%,transparent)}}.bg-surface-card{background-color:var(--color-surface-card)}.bg-surface-page,.bg-surface-page\/95{background-color:var(--color-surface-page)}@supports (color:color-mix(in lab,red,red)){.bg-surface-page\/95{background-color:color-mix(in oklab,var(--color-surface-page) 95%,transparent)}}.bg-text-100,.bg-text-100\/5{background-color:var(--color-text-100)}@supports (color:color-mix(in lab,red,red)){.bg-text-100\/5{background-color:color-mix(in oklab,var(--color-text-100) 5%,transparent)}}.bg-text-100\/10{background-color:var(--color-text-100)}@supports (color:color-mix(in lab,red,red)){.bg-text-100\/10{background-color:color-mix(in oklab,var(--color-text-100) 10%,transparent)}}.bg-text-100\/20{background-color:var(--color-text-100)}@supports (color:color-mix(in lab,red,red)){.bg-text-100\/20{background-color:color-mix(in oklab,var(--color-text-100) 20%,transparent)}}.bg-text-100\/\[0\.02\]{background-color:var(--color-text-100)}@supports (color:color-mix(in lab,red,red)){.bg-text-100\/\[0\.02\]{background-color:color-mix(in oklab,var(--color-text-100) 2%,transparent)}}.bg-text-400{background-color:var(--color-text-400)}.bg-text-400-dim-fg{background-color:var(--color-text-400-dim-fg)}.bg-text-400\/15{background-color:var(--color-text-400)}@supports (color:color-mix(in lab,red,red)){.bg-text-400\/15{background-color:color-mix(in oklab,var(--color-text-400) 15%,transparent)}}.bg-text-400\/60{background-color:var(--color-text-400)}@supports (color:color-mix(in lab,red,red)){.bg-text-400\/60{background-color:color-mix(in oklab,var(--color-text-400) 60%,transparent)}}.bg-transparent{background-color:#0000}.bg-violet-500{background-color:var(--color-violet-500)}.bg-violet-500\/10{background-color:#8d54ff1a}@supports (color:color-mix(in lab,red,red)){.bg-violet-500\/10{background-color:color-mix(in oklab,var(--color-violet-500) 10%,transparent)}}.bg-warning{background-color:var(--color-warning)}.bg-warning-dim,.bg-warning-dim\/60{background-color:var(--color-warning-dim)}@supports (color:color-mix(in lab,red,red)){.bg-warning-dim\/60{background-color:color-mix(in oklab,var(--color-warning-dim) 60%,transparent)}}.bg-warning\/5{background-color:color-mix(in srgb,rgb(var(--warning-color)) 5%,transparent)}@supports (color:color-mix(in lab,red,red)){.bg-warning\/5{background-color:color-mix(in oklab,var(--color-warning) 5%,transparent)}}.bg-warning\/10{background-color:color-mix(in srgb,rgb(var(--warning-color)) 10%,transparent)}@supports (color:color-mix(in lab,red,red)){.bg-warning\/10{background-color:color-mix(in oklab,var(--color-warning) 10%,transparent)}}.bg-warning\/15{background-color:color-mix(in srgb,rgb(var(--warning-color)) 15%,transparent)}@supports (color:color-mix(in lab,red,red)){.bg-warning\/15{background-color:color-mix(in oklab,var(--color-warning) 15%,transparent)}}.bg-warning\/50{background-color:color-mix(in srgb,rgb(var(--warning-color)) 50%,transparent)}@supports (color:color-mix(in lab,red,red)){.bg-warning\/50{background-color:color-mix(in oklab,var(--color-warning) 50%,transparent)}}.bg-white{background-color:var(--color-white)}.bg-white\/15{background-color:#ffffff26}@supports (color:color-mix(in lab,red,red)){.bg-white\/15{background-color:color-mix(in oklab,var(--color-white) 15%,transparent)}}.bg-repeat{background-repeat:repeat}.mask-no-clip{-webkit-mask-clip:no-clip;mask-clip:no-clip}.mask-repeat{-webkit-mask-repeat:repeat;mask-repeat:repeat}.fill-current{fill:currentColor}.object-contain{object-fit:contain}.object-cover{object-fit:cover}.p-0{padding:calc(var(--spacing) * 0)}.p-0\.5{padding:calc(var(--spacing) * .5)}.p-1{padding:calc(var(--spacing) * 1)}.p-1\.5{padding:calc(var(--spacing) * 1.5)}.p-2{padding:calc(var(--spacing) * 2)}.p-2\.5{padding:calc(var(--spacing) * 2.5)}.p-3{padding:calc(var(--spacing) * 3)}.p-3\.5{padding:calc(var(--spacing) * 3.5)}.p-4{padding:calc(var(--spacing) * 4)}.p-5{padding:calc(var(--spacing) * 5)}.p-6{padding:calc(var(--spacing) * 6)}.p-8{padding:calc(var(--spacing) * 8)}.px-0\.5{padding-inline:calc(var(--spacing) * .5)}.px-1{padding-inline:calc(var(--spacing) * 1)}.px-1\.5{padding-inline:calc(var(--spacing) * 1.5)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-2\.5{padding-inline:calc(var(--spacing) * 2.5)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-3\.5{padding-inline:calc(var(--spacing) * 3.5)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-5{padding-inline:calc(var(--spacing) * 5)}.px-6{padding-inline:calc(var(--spacing) * 6)}.px-8{padding-inline:calc(var(--spacing) * 8)}.py-0{padding-block:calc(var(--spacing) * 0)}.py-0\.5{padding-block:calc(var(--spacing) * .5)}.py-1{padding-block:calc(var(--spacing) * 1)}.py-1\.5{padding-block:calc(var(--spacing) * 1.5)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-2\.5{padding-block:calc(var(--spacing) * 2.5)}.py-3{padding-block:calc(var(--spacing) * 3)}.py-3\.5{padding-block:calc(var(--spacing) * 3.5)}.py-4{padding-block:calc(var(--spacing) * 4)}.py-5{padding-block:calc(var(--spacing) * 5)}.py-6{padding-block:calc(var(--spacing) * 6)}.py-8{padding-block:calc(var(--spacing) * 8)}.py-10{padding-block:calc(var(--spacing) * 10)}.py-12{padding-block:calc(var(--spacing) * 12)}.py-14{padding-block:calc(var(--spacing) * 14)}.py-16{padding-block:calc(var(--spacing) * 16)}.py-\[2px\]{padding-block:2px}.py-\[3px\]{padding-block:3px}.py-\[5px\]{padding-block:5px}.py-\[6px\]{padding-block:6px}.py-px{padding-block:1px}.pt-0{padding-top:calc(var(--spacing) * 0)}.pt-0\.5{padding-top:calc(var(--spacing) * .5)}.pt-1{padding-top:calc(var(--spacing) * 1)}.pt-1\.5{padding-top:calc(var(--spacing) * 1.5)}.pt-2{padding-top:calc(var(--spacing) * 2)}.pt-3{padding-top:calc(var(--spacing) * 3)}.pt-4{padding-top:calc(var(--spacing) * 4)}.pt-5{padding-top:calc(var(--spacing) * 5)}.pt-7{padding-top:calc(var(--spacing) * 7)}.pt-10{padding-top:calc(var(--spacing) * 10)}.pt-12{padding-top:calc(var(--spacing) * 12)}.pt-\[12vh\]{padding-top:12vh}.pt-\[340px\]{padding-top:340px}.pr-1{padding-right:calc(var(--spacing) * 1)}.pr-1\.5{padding-right:calc(var(--spacing) * 1.5)}.pr-2{padding-right:calc(var(--spacing) * 2)}.pr-2\.5{padding-right:calc(var(--spacing) * 2.5)}.pr-3{padding-right:calc(var(--spacing) * 3)}.pr-4{padding-right:calc(var(--spacing) * 4)}.pr-6{padding-right:calc(var(--spacing) * 6)}.pr-10{padding-right:calc(var(--spacing) * 10)}.pr-12{padding-right:calc(var(--spacing) * 12)}.pr-24{padding-right:calc(var(--spacing) * 24)}.pr-36{padding-right:calc(var(--spacing) * 36)}.pr-\[4\.5rem\]{padding-right:4.5rem}.pb-1{padding-bottom:calc(var(--spacing) * 1)}.pb-1\.5{padding-bottom:calc(var(--spacing) * 1.5)}.pb-2{padding-bottom:calc(var(--spacing) * 2)}.pb-3{padding-bottom:calc(var(--spacing) * 3)}.pb-4{padding-bottom:calc(var(--spacing) * 4)}.pb-5{padding-bottom:calc(var(--spacing) * 5)}.pb-8{padding-bottom:calc(var(--spacing) * 8)}.pb-12{padding-bottom:calc(var(--spacing) * 12)}.pb-28{padding-bottom:calc(var(--spacing) * 28)}.pb-\[4\%\]{padding-bottom:4%}.pl-1{padding-left:calc(var(--spacing) * 1)}.pl-2{padding-left:calc(var(--spacing) * 2)}.pl-3{padding-left:calc(var(--spacing) * 3)}.pl-4{padding-left:calc(var(--spacing) * 4)}.pl-5{padding-left:calc(var(--spacing) * 5)}.pl-6{padding-left:calc(var(--spacing) * 6)}.pl-7{padding-left:calc(var(--spacing) * 7)}.pl-8{padding-left:calc(var(--spacing) * 8)}.pl-9{padding-left:calc(var(--spacing) * 9)}.pl-10{padding-left:calc(var(--spacing) * 10)}.pl-11{padding-left:calc(var(--spacing) * 11)}.pl-\[33px\]{padding-left:33px}.pl-\[46px\]{padding-left:46px}.pl-\[88px\]{padding-left:88px}.pl-\[100px\]{padding-left:100px}.text-center{text-align:center}.text-left{text-align:left}.text-right{text-align:right}.align-top{vertical-align:top}.font-mono{font-family:var(--font-mono)}.font-sans{font-family:var(--font-sans)}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\[10\.5px\]{font-size:10.5px}.text-\[10px\]{font-size:10px}.text-\[11\.5px\]{font-size:11.5px}.text-\[11px\]{font-size:11px}.text-\[12\.5px\]{font-size:12.5px}.text-\[12px\]{font-size:12px}.text-\[13\.5px\]{font-size:13.5px}.text-\[13px\]{font-size:13px}.text-\[14px\]{font-size:14px}.text-\[15px\]{font-size:15px}.text-\[16px\]{font-size:16px}.text-\[18px\]{font-size:18px}.text-\[20px\]{font-size:20px}.text-\[22px\]{font-size:22px}.text-\[26px\]{font-size:26px}.text-\[28px\]{font-size:28px}.text-\[48px\]{font-size:48px}.leading-4{--tw-leading:calc(var(--spacing) * 4);line-height:calc(var(--spacing) * 4)}.leading-6{--tw-leading:calc(var(--spacing) * 6);line-height:calc(var(--spacing) * 6)}.leading-none{--tw-leading:1;line-height:1}.leading-relaxed{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.leading-snug{--tw-leading:var(--leading-snug);line-height:var(--leading-snug)}.leading-tight{--tw-leading:var(--leading-tight);line-height:var(--leading-tight)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-\[-0\.01em\]{--tw-tracking:-.01em;letter-spacing:-.01em}.tracking-\[0\.3em\]{--tw-tracking:.3em;letter-spacing:.3em}.tracking-tight{--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.tracking-wide{--tw-tracking:var(--tracking-wide);letter-spacing:var(--tracking-wide)}.tracking-wider{--tw-tracking:var(--tracking-wider);letter-spacing:var(--tracking-wider)}.text-wrap{text-wrap:wrap}.\[overflow-wrap\:anywhere\]{overflow-wrap:anywhere}.break-words{overflow-wrap:break-word}.break-all{word-break:break-all}.text-clip{text-overflow:clip}.text-ellipsis{text-overflow:ellipsis}.whitespace-normal{white-space:normal}.whitespace-nowrap{white-space:nowrap}.whitespace-pre{white-space:pre}.whitespace-pre-wrap{white-space:pre-wrap}.text-\[var\(--text-400-dim-fg\)\]{color:var(--text-400-dim-fg)}.text-accent{color:var(--color-accent)}.text-accent-contrast{color:var(--color-accent-contrast)}.text-accent\/70{color:color-mix(in srgb,rgb(var(--accent-color)) 70%,transparent)}@supports (color:color-mix(in lab,red,red)){.text-accent\/70{color:color-mix(in oklab,var(--color-accent) 70%,transparent)}}.text-amber-400{color:var(--color-amber-400)}.text-amber-500{color:var(--color-amber-500)}.text-amber-600{color:var(--color-amber-600)}.text-amber-900{color:var(--color-amber-900)}.text-bg-0{color:var(--color-bg-0)}.text-blue-400{color:var(--color-blue-400)}.text-blue-500{color:var(--color-blue-500)}.text-blue-700{color:var(--color-blue-700)}.text-destructive{color:var(--color-destructive)}.text-destructive\/80{color:color-mix(in srgb,rgb(var(--error-color)) 80%,transparent)}@supports (color:color-mix(in lab,red,red)){.text-destructive\/80{color:color-mix(in oklab,var(--color-destructive) 80%,transparent)}}.text-emerald-500{color:var(--color-emerald-500)}.text-emerald-600{color:var(--color-emerald-600)}.text-emerald-700{color:var(--color-emerald-700)}.text-engine-claude{color:var(--color-engine-claude)}.text-engine-claude-cloud{color:var(--color-engine-claude-cloud)}.text-engine-codex{color:var(--color-engine-codex)}.text-engine-codex-cloud{color:var(--color-engine-codex-cloud)}.text-engine-pi{color:var(--color-engine-pi)}.text-engine-pi-cloud{color:var(--color-engine-pi-cloud)}.text-error{color:var(--color-error)}.text-error\/70{color:color-mix(in srgb,rgb(var(--error-color)) 70%,transparent)}@supports (color:color-mix(in lab,red,red)){.text-error\/70{color:color-mix(in oklab,var(--color-error) 70%,transparent)}}.text-gray-500{color:var(--color-gray-500)}.text-gray-700{color:var(--color-gray-700)}.text-green-300{color:var(--color-green-300)}.text-green-500{color:var(--color-green-500)}.text-neutral-400{color:var(--color-neutral-400)}.text-neutral-500{color:var(--color-neutral-500)}.text-neutral-700{color:var(--color-neutral-700)}.text-purple-500{color:var(--color-purple-500)}.text-purple-600{color:var(--color-purple-600)}.text-red-300{color:var(--color-red-300)}.text-red-400{color:var(--color-red-400)}.text-red-500{color:var(--color-red-500)}.text-red-500\/70{color:#fb2c36b3}@supports (color:color-mix(in lab,red,red)){.text-red-500\/70{color:color-mix(in oklab,var(--color-red-500) 70%,transparent)}}.text-red-600{color:var(--color-red-600)}.text-red-700{color:var(--color-red-700)}.text-sky-500{color:var(--color-sky-500)}.text-success{color:var(--color-success)}.text-text-100{color:var(--color-text-100)}.text-text-200{color:var(--color-text-200)}.text-text-300{color:var(--color-text-300)}.text-text-400,.text-text-400\/40{color:var(--color-text-400)}@supports (color:color-mix(in lab,red,red)){.text-text-400\/40{color:color-mix(in oklab,var(--color-text-400) 40%,transparent)}}.text-text-400\/50{color:var(--color-text-400)}@supports (color:color-mix(in lab,red,red)){.text-text-400\/50{color:color-mix(in oklab,var(--color-text-400) 50%,transparent)}}.text-text-400\/60{color:var(--color-text-400)}@supports (color:color-mix(in lab,red,red)){.text-text-400\/60{color:color-mix(in oklab,var(--color-text-400) 60%,transparent)}}.text-text-400\/70{color:var(--color-text-400)}@supports (color:color-mix(in lab,red,red)){.text-text-400\/70{color:color-mix(in oklab,var(--color-text-400) 70%,transparent)}}.text-text-400\/80{color:var(--color-text-400)}@supports (color:color-mix(in lab,red,red)){.text-text-400\/80{color:color-mix(in oklab,var(--color-text-400) 80%,transparent)}}.text-text-400\/90{color:var(--color-text-400)}@supports (color:color-mix(in lab,red,red)){.text-text-400\/90{color:color-mix(in oklab,var(--color-text-400) 90%,transparent)}}.text-text-500,.text-text-500\/60{color:var(--color-text-500)}@supports (color:color-mix(in lab,red,red)){.text-text-500\/60{color:color-mix(in oklab,var(--color-text-500) 60%,transparent)}}.text-violet-400{color:var(--color-violet-400)}.text-violet-500{color:var(--color-violet-500)}.text-warning{color:var(--color-warning)}.text-white{color:var(--color-white)}.text-white\/70{color:#ffffffb3}@supports (color:color-mix(in lab,red,red)){.text-white\/70{color:color-mix(in oklab,var(--color-white) 70%,transparent)}}.text-white\/90{color:#ffffffe6}@supports (color:color-mix(in lab,red,red)){.text-white\/90{color:color-mix(in oklab,var(--color-white) 90%,transparent)}}.capitalize{text-transform:capitalize}.lowercase{text-transform:lowercase}.normal-case{text-transform:none}.uppercase{text-transform:uppercase}.italic{font-style:italic}.not-italic{font-style:normal}.diagonal-fractions{--tw-numeric-fraction:diagonal-fractions;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.lining-nums{--tw-numeric-figure:lining-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.oldstyle-nums{--tw-numeric-figure:oldstyle-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.ordinal{--tw-ordinal:ordinal;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.proportional-nums{--tw-numeric-spacing:proportional-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.slashed-zero{--tw-slashed-zero:slashed-zero;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.stacked-fractions{--tw-numeric-fraction:stacked-fractions;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.normal-nums{font-variant-numeric:normal}.line-through{text-decoration-line:line-through}.no-underline{text-decoration-line:none}.overline{text-decoration-line:overline}.underline{text-decoration-line:underline}.decoration-red-500\/40{text-decoration-color:#fb2c3666}@supports (color:color-mix(in lab,red,red)){.decoration-red-500\/40{-webkit-text-decoration-color:color-mix(in oklab,var(--color-red-500) 40%,transparent);text-decoration-color:color-mix(in oklab,var(--color-red-500) 40%,transparent)}}.decoration-dotted{text-decoration-style:dotted}.underline-offset-2{text-underline-offset:2px}.underline-offset-4{text-underline-offset:4px}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.subpixel-antialiased{-webkit-font-smoothing:auto;-moz-osx-font-smoothing:auto}.accent-\[rgb\(var\(--accent-color\)\)\]{accent-color:rgb(var(--accent-color))}.opacity-0{opacity:0}.opacity-40{opacity:.4}.opacity-50{opacity:.5}.opacity-55{opacity:.55}.opacity-60{opacity:.6}.opacity-70{opacity:.7}.opacity-80{opacity:.8}.opacity-100{opacity:1}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-2xl{--tw-shadow:0 25px 50px -12px var(--tw-shadow-color,#00000040);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-lg{--tw-shadow:var(--shadow-lg-val);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-md{--tw-shadow:var(--shadow-md-val);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-xl{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a), 0 8px 10px -6px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring,.ring-1{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-2{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.inset-ring{--tw-inset-ring-shadow:inset 0 0 0 1px var(--tw-inset-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-accent{--tw-ring-color:var(--color-accent)}.ring-accent\/60{--tw-ring-color:color-mix(in srgb, rgb(var(--accent-color)) 60%, transparent)}@supports (color:color-mix(in lab,red,red)){.ring-accent\/60{--tw-ring-color:color-mix(in oklab, var(--color-accent) 60%, transparent)}}.ring-bg-100{--tw-ring-color:var(--color-bg-100)}.ring-offset-2{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.ring-offset-surface-card{--tw-ring-offset-color:var(--color-surface-card)}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.blur{--tw-blur:blur(8px);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.drop-shadow{--tw-drop-shadow-size:drop-shadow(0 1px 2px var(--tw-drop-shadow-color,#0000001a)) drop-shadow(0 1px 1px var(--tw-drop-shadow-color,#0000000f));--tw-drop-shadow:drop-shadow(0 1px 2px #0000001a) drop-shadow(0 1px 1px #0000000f);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.grayscale{--tw-grayscale:grayscale(100%);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.filter\!{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)!important}.backdrop-blur{--tw-backdrop-blur:blur(8px);-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.backdrop-blur-\[2px\]{--tw-backdrop-blur:blur(2px);-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.backdrop-blur-sm{--tw-backdrop-blur:blur(var(--blur-sm));-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.backdrop-grayscale{--tw-backdrop-grayscale:grayscale(100%);-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.backdrop-invert{--tw-backdrop-invert:invert(100%);-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.backdrop-sepia{--tw-backdrop-sepia:sepia(100%);-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.backdrop-filter{-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition\!{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events!important;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function))!important;transition-duration:var(--tw-duration,var(--default-transition-duration))!important}.transition-\[filter\]{transition-property:filter;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[width\]{transition-property:width;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-75{--tw-duration:75ms;transition-duration:75ms}.duration-100{--tw-duration:.1s;transition-duration:.1s}.duration-150{--tw-duration:.15s;transition-duration:.15s}.duration-200{--tw-duration:.2s;transition-duration:.2s}.duration-300{--tw-duration:.3s;transition-duration:.3s}.ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.ease-out{--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}.outline-none{--tw-outline-style:none;outline-style:none}.select-none{-webkit-user-select:none;user-select:none}.select-text{-webkit-user-select:text;user-select:text}.\[--bg-300\:\#E6E6E6\]{--bg-300:#e6e6e6}.\[--color-border\:\#E6E6E6\]{--color-border:#e6e6e6}.\[-ms-overflow-style\:none\]{-ms-overflow-style:none}.\[animation-duration\:2\.5s\]{animation-duration:2.5s}.\[attachment\:\.\.\.\]{attachment:...}.\[scrollbar-width\:none\]{scrollbar-width:none}.\[skill\:\.\.\]{skill:..}:where(.divide-x-reverse>:not(:last-child)){--tw-divide-x-reverse:1}.ring-inset{--tw-ring-inset:inset}@media (hover:hover){.group-hover\:flex:is(:where(.group):hover *){display:flex}.group-hover\:hidden:is(:where(.group):hover *){display:none}.group-hover\:inline-flex:is(:where(.group):hover *){display:inline-flex}.group-hover\:overflow-visible:is(:where(.group):hover *){overflow:visible}.group-hover\:break-words:is(:where(.group):hover *){overflow-wrap:break-word}.group-hover\:whitespace-normal:is(:where(.group):hover *){white-space:normal}.group-hover\:text-text-100:is(:where(.group):hover *){color:var(--color-text-100)}.group-hover\:text-text-200:is(:where(.group):hover *){color:var(--color-text-200)}.group-hover\:underline:is(:where(.group):hover *){text-decoration-line:underline}.group-hover\:decoration-text-400:is(:where(.group):hover *){-webkit-text-decoration-color:var(--color-text-400);text-decoration-color:var(--color-text-400)}.group-hover\:underline-offset-2:is(:where(.group):hover *){text-underline-offset:2px}.group-hover\:opacity-0:is(:where(.group):hover *){opacity:0}.group-hover\:opacity-70:is(:where(.group):hover *){opacity:.7}.group-hover\:opacity-100:is(:where(.group):hover *),.group-hover\/pane\:opacity-100:is(:where(.group\/pane):hover *),.group-hover\/pblock\:opacity-100:is(:where(.group\/pblock):hover *),.group-hover\/row\:opacity-100:is(:where(.group\/row):hover *){opacity:1}}.group-has-\[\[data-state\=open\]\]\:hidden:is(:where(.group):has([data-state=open]) *){display:none}.group-has-\[\[data-state\=open\]\]\:inline-flex:is(:where(.group):has([data-state=open]) *){display:inline-flex}.placeholder\:text-text-400::placeholder,.placeholder\:text-text-400\/60::placeholder{color:var(--color-text-400)}@supports (color:color-mix(in lab,red,red)){.placeholder\:text-text-400\/60::placeholder{color:color-mix(in oklab,var(--color-text-400) 60%,transparent)}}.placeholder\:text-text-500::placeholder{color:var(--color-text-500)}.last\:border-b-0:last-child{border-bottom-style:var(--tw-border-style);border-bottom-width:0}.focus-within\:border-accent:focus-within{border-color:var(--color-accent)}.focus-within\:opacity-100:focus-within{opacity:1}.focus-within\:ring-1:focus-within{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-within\:ring-2:focus-within{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-within\:ring-accent:focus-within{--tw-ring-color:var(--color-accent)}@media (hover:hover){.hover\:border-accent:hover{border-color:var(--color-accent)}.hover\:border-accent\/50:hover{border-color:color-mix(in srgb,rgb(var(--accent-color)) 50%,transparent)}@supports (color:color-mix(in lab,red,red)){.hover\:border-accent\/50:hover{border-color:color-mix(in oklab,var(--color-accent) 50%,transparent)}}.hover\:border-accent\/60:hover{border-color:color-mix(in srgb,rgb(var(--accent-color)) 60%,transparent)}@supports (color:color-mix(in lab,red,red)){.hover\:border-accent\/60:hover{border-color:color-mix(in oklab,var(--color-accent) 60%,transparent)}}.hover\:border-border:hover,.hover\:border-border\/80:hover{border-color:var(--color-border)}@supports (color:color-mix(in lab,red,red)){.hover\:border-border\/80:hover{border-color:color-mix(in oklab,var(--color-border) 80%,transparent)}}.hover\:border-warning\/60:hover{border-color:color-mix(in srgb,rgb(var(--warning-color)) 60%,transparent)}@supports (color:color-mix(in lab,red,red)){.hover\:border-warning\/60:hover{border-color:color-mix(in oklab,var(--color-warning) 60%,transparent)}}.hover\:bg-accent:hover{background-color:var(--color-accent)}.hover\:bg-accent-hover:hover{background-color:var(--color-accent-hover)}.hover\:bg-accent\/10:hover{background-color:color-mix(in srgb,rgb(var(--accent-color)) 10%,transparent)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-accent\/10:hover{background-color:color-mix(in oklab,var(--color-accent) 10%,transparent)}}.hover\:bg-accent\/20:hover{background-color:color-mix(in srgb,rgb(var(--accent-color)) 20%,transparent)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-accent\/20:hover{background-color:color-mix(in oklab,var(--color-accent) 20%,transparent)}}.hover\:bg-accent\/40:hover{background-color:color-mix(in srgb,rgb(var(--accent-color)) 40%,transparent)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-accent\/40:hover{background-color:color-mix(in oklab,var(--color-accent) 40%,transparent)}}.hover\:bg-bg-50:hover{background-color:var(--color-bg-50)}.hover\:bg-bg-100:hover,.hover\:bg-bg-100\/60:hover{background-color:var(--color-bg-100)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-bg-100\/60:hover{background-color:color-mix(in oklab,var(--color-bg-100) 60%,transparent)}}.hover\:bg-bg-200:hover,.hover\:bg-bg-200\/30:hover{background-color:var(--color-bg-200)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-bg-200\/30:hover{background-color:color-mix(in oklab,var(--color-bg-200) 30%,transparent)}}.hover\:bg-bg-200\/40:hover{background-color:var(--color-bg-200)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-bg-200\/40:hover{background-color:color-mix(in oklab,var(--color-bg-200) 40%,transparent)}}.hover\:bg-bg-200\/50:hover{background-color:var(--color-bg-200)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-bg-200\/50:hover{background-color:color-mix(in oklab,var(--color-bg-200) 50%,transparent)}}.hover\:bg-bg-200\/60:hover{background-color:var(--color-bg-200)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-bg-200\/60:hover{background-color:color-mix(in oklab,var(--color-bg-200) 60%,transparent)}}.hover\:bg-bg-200\/70:hover{background-color:var(--color-bg-200)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-bg-200\/70:hover{background-color:color-mix(in oklab,var(--color-bg-200) 70%,transparent)}}.hover\:bg-bg-200\/95:hover{background-color:var(--color-bg-200)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-bg-200\/95:hover{background-color:color-mix(in oklab,var(--color-bg-200) 95%,transparent)}}.hover\:bg-bg-300:hover{background-color:var(--color-bg-300)}.hover\:bg-destructive-hover:hover{background-color:var(--color-destructive-hover)}.hover\:bg-error-dim:hover{background-color:var(--color-error-dim)}.hover\:bg-error\/10:hover{background-color:color-mix(in srgb,rgb(var(--error-color)) 10%,transparent)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-error\/10:hover{background-color:color-mix(in oklab,var(--color-error) 10%,transparent)}}.hover\:bg-error\/20:hover{background-color:color-mix(in srgb,rgb(var(--error-color)) 20%,transparent)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-error\/20:hover{background-color:color-mix(in oklab,var(--color-error) 20%,transparent)}}.hover\:bg-red-500\/10:hover{background-color:#fb2c361a}@supports (color:color-mix(in lab,red,red)){.hover\:bg-red-500\/10:hover{background-color:color-mix(in oklab,var(--color-red-500) 10%,transparent)}}.hover\:bg-red-500\/20:hover{background-color:#fb2c3633}@supports (color:color-mix(in lab,red,red)){.hover\:bg-red-500\/20:hover{background-color:color-mix(in oklab,var(--color-red-500) 20%,transparent)}}.hover\:bg-red-600:hover{background-color:var(--color-red-600)}.hover\:bg-sidebar-hover-bg:hover{background-color:var(--color-sidebar-hover-bg)}.hover\:bg-success-dim:hover{background-color:var(--color-success-dim)}.hover\:bg-text-100\/5:hover{background-color:var(--color-text-100)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-text-100\/5:hover{background-color:color-mix(in oklab,var(--color-text-100) 5%,transparent)}}.hover\:bg-text-100\/10:hover{background-color:var(--color-text-100)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-text-100\/10:hover{background-color:color-mix(in oklab,var(--color-text-100) 10%,transparent)}}.hover\:bg-text-100\/25:hover{background-color:var(--color-text-100)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-text-100\/25:hover{background-color:color-mix(in oklab,var(--color-text-100) 25%,transparent)}}.hover\:bg-text-100\/30:hover{background-color:var(--color-text-100)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-text-100\/30:hover{background-color:color-mix(in oklab,var(--color-text-100) 30%,transparent)}}.hover\:bg-text-100\/\[0\.03\]:hover{background-color:var(--color-text-100)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-text-100\/\[0\.03\]:hover{background-color:color-mix(in oklab,var(--color-text-100) 3%,transparent)}}.hover\:bg-text-100\/\[0\.04\]:hover{background-color:var(--color-text-100)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-text-100\/\[0\.04\]:hover{background-color:color-mix(in oklab,var(--color-text-100) 4%,transparent)}}.hover\:bg-text-200:hover{background-color:var(--color-text-200)}.hover\:bg-warning\/15:hover{background-color:color-mix(in srgb,rgb(var(--warning-color)) 15%,transparent)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-warning\/15:hover{background-color:color-mix(in oklab,var(--color-warning) 15%,transparent)}}.hover\:bg-warning\/20:hover{background-color:color-mix(in srgb,rgb(var(--warning-color)) 20%,transparent)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-warning\/20:hover{background-color:color-mix(in oklab,var(--color-warning) 20%,transparent)}}.hover\:bg-white\/10:hover{background-color:#ffffff1a}@supports (color:color-mix(in lab,red,red)){.hover\:bg-white\/10:hover{background-color:color-mix(in oklab,var(--color-white) 10%,transparent)}}.hover\:text-accent:hover{color:var(--color-accent)}.hover\:text-accent-contrast:hover{color:var(--color-accent-contrast)}.hover\:text-destructive:hover{color:var(--color-destructive)}.hover\:text-error:hover{color:var(--color-error)}.hover\:text-red-400:hover{color:var(--color-red-400)}.hover\:text-red-500:hover{color:var(--color-red-500)}.hover\:text-text-100:hover{color:var(--color-text-100)}.hover\:text-text-200:hover{color:var(--color-text-200)}.hover\:text-text-300:hover{color:var(--color-text-300)}.hover\:text-text-500:hover{color:var(--color-text-500)}.hover\:text-white:hover{color:var(--color-white)}.hover\:underline:hover{text-decoration-line:underline}.hover\:opacity-80:hover{opacity:.8}.hover\:opacity-90:hover{opacity:.9}.hover\:opacity-100:hover{opacity:1}.hover\:brightness-110:hover{--tw-brightness:brightness(110%);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}}.focus\:border-accent:focus{border-color:var(--color-accent)}.focus\:border-accent\/50:focus{border-color:color-mix(in srgb,rgb(var(--accent-color)) 50%,transparent)}@supports (color:color-mix(in lab,red,red)){.focus\:border-accent\/50:focus{border-color:color-mix(in oklab,var(--color-accent) 50%,transparent)}}.focus\:border-accent\/60:focus{border-color:color-mix(in srgb,rgb(var(--accent-color)) 60%,transparent)}@supports (color:color-mix(in lab,red,red)){.focus\:border-accent\/60:focus{border-color:color-mix(in oklab,var(--color-accent) 60%,transparent)}}.focus\:border-text-100\/40:focus{border-color:var(--color-text-100)}@supports (color:color-mix(in lab,red,red)){.focus\:border-text-100\/40:focus{border-color:color-mix(in oklab,var(--color-text-100) 40%,transparent)}}.focus\:border-text-300:focus{border-color:var(--color-text-300)}.focus\:bg-bg-200:focus{background-color:var(--color-bg-200)}.focus\:bg-destructive\/10:focus{background-color:color-mix(in srgb,rgb(var(--error-color)) 10%,transparent)}@supports (color:color-mix(in lab,red,red)){.focus\:bg-destructive\/10:focus{background-color:color-mix(in oklab,var(--color-destructive) 10%,transparent)}}.focus\:text-destructive:focus{color:var(--color-destructive)}.focus\:text-text-100:focus{color:var(--color-text-100)}.focus\:opacity-100:focus{opacity:1}.focus\:ring-2:focus{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\:ring-accent:focus{--tw-ring-color:var(--color-accent)}.focus\:ring-accent\/30:focus{--tw-ring-color:color-mix(in srgb, rgb(var(--accent-color)) 30%, transparent)}@supports (color:color-mix(in lab,red,red)){.focus\:ring-accent\/30:focus{--tw-ring-color:color-mix(in oklab, var(--color-accent) 30%, transparent)}}.focus\:ring-error\/30:focus{--tw-ring-color:color-mix(in srgb, rgb(var(--error-color)) 30%, transparent)}@supports (color:color-mix(in lab,red,red)){.focus\:ring-error\/30:focus{--tw-ring-color:color-mix(in oklab, var(--color-error) 30%, transparent)}}.focus\:outline-none:focus{--tw-outline-style:none;outline-style:none}.focus-visible\:border-accent:focus-visible{border-color:var(--color-accent)}.focus-visible\:border-transparent:focus-visible{border-color:#0000}.focus-visible\:opacity-100:focus-visible{opacity:1}.focus-visible\:ring-0:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\:ring-2:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\:ring-accent:focus-visible{--tw-ring-color:var(--color-accent)}.focus-visible\:ring-offset-2:focus-visible{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.focus-visible\:outline:focus-visible{outline-style:var(--tw-outline-style);outline-width:1px}.focus-visible\:outline-2:focus-visible{outline-style:var(--tw-outline-style);outline-width:2px}.focus-visible\:outline-offset-2:focus-visible{outline-offset:2px}.focus-visible\:brightness-110:focus-visible{--tw-brightness:brightness(110%);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.focus-visible\:outline-none:focus-visible{--tw-outline-style:none;outline-style:none}.active\:scale-\[0\.98\]:active{scale:.98}.active\:bg-accent\/60:active{background-color:color-mix(in srgb,rgb(var(--accent-color)) 60%,transparent)}@supports (color:color-mix(in lab,red,red)){.active\:bg-accent\/60:active{background-color:color-mix(in oklab,var(--color-accent) 60%,transparent)}}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-default:disabled{cursor:default}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:no-underline:disabled{text-decoration-line:none}.disabled\:opacity-30:disabled{opacity:.3}.disabled\:opacity-40:disabled{opacity:.4}.disabled\:opacity-50:disabled{opacity:.5}.disabled\:opacity-60:disabled{opacity:.6}.disabled\:opacity-100:disabled{opacity:1}@media (hover:hover){.disabled\:hover\:bg-accent:disabled:hover{background-color:var(--color-accent)}.disabled\:hover\:bg-bg-0:disabled:hover{background-color:var(--color-bg-0)}.disabled\:hover\:bg-bg-50:disabled:hover{background-color:var(--color-bg-50)}.disabled\:hover\:bg-transparent:disabled:hover{background-color:#0000}.disabled\:hover\:text-text-200:disabled:hover{color:var(--color-text-200)}.disabled\:hover\:text-text-300:disabled:hover{color:var(--color-text-300)}.disabled\:hover\:text-text-400:disabled:hover{color:var(--color-text-400)}}.has-\[\[data-state\=open\]\]\:opacity-100:has([data-state=open]){opacity:1}.data-\[disabled\]\:pointer-events-none[data-disabled]{pointer-events:none}.data-\[disabled\]\:opacity-50[data-disabled]{opacity:.5}.data-\[highlighted\]\:bg-bg-200[data-highlighted]{background-color:var(--color-bg-200)}.data-\[highlighted\]\:text-text-100[data-highlighted]{color:var(--color-text-100)}.data-\[state\=active\]\:border-accent[data-state=active]{border-color:var(--color-accent)}.data-\[state\=active\]\:text-text-100[data-state=active]{color:var(--color-text-100)}.data-\[state\=open\]\:bg-bg-200[data-state=open]{background-color:var(--color-bg-200)}.data-\[state\=open\]\:bg-text-100\/5[data-state=open]{background-color:var(--color-text-100)}@supports (color:color-mix(in lab,red,red)){.data-\[state\=open\]\:bg-text-100\/5[data-state=open]{background-color:color-mix(in oklab,var(--color-text-100) 5%,transparent)}}.data-\[state\=open\]\:opacity-100[data-state=open]{opacity:1}@media (min-width:40rem){.sm\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}}@media (min-width:48rem){.md\:pointer-events-none{pointer-events:none}.md\:absolute{position:absolute}.md\:top-10{top:calc(var(--spacing) * 10)}.md\:top-full{top:100%}.md\:left-\[var\(--sidebar-w\)\]{left:var(--sidebar-w)}.md\:z-10{z-index:10}.md\:col-span-2{grid-column:span 2/span 2}.md\:mt-0{margin-top:calc(var(--spacing) * 0)}.md\:block{display:block}.md\:flex{display:flex}.md\:hidden{display:none}.md\:inline{display:inline}.md\:h-6{height:calc(var(--spacing) * 6)}.md\:w-auto{width:auto}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.md\:grid-cols-\[minmax\(0\,1fr\)_minmax\(0\,1\.6fr\)\]{grid-template-columns:minmax(0,1fr) minmax(0,1.6fr)}.md\:flex-row{flex-direction:row}.md\:rounded-md{border-radius:var(--radius-md)}.md\:px-1\.5{padding-inline:calc(var(--spacing) * 1.5)}.md\:px-8{padding-inline:calc(var(--spacing) * 8)}.md\:py-10{padding-block:calc(var(--spacing) * 10)}.md\:pt-0\.5{padding-top:calc(var(--spacing) * .5)}.md\:pr-4{padding-right:calc(var(--spacing) * 4)}.md\:pr-10{padding-right:calc(var(--spacing) * 10)}.md\:pr-32{padding-right:calc(var(--spacing) * 32)}.md\:pl-10{padding-left:calc(var(--spacing) * 10)}.md\:text-text-400{color:var(--color-text-400)}.md\:opacity-0{opacity:0}.md\:transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}@media (hover:hover){.md\:group-hover\:pointer-events-auto:is(:where(.group):hover *){pointer-events:auto}.md\:group-hover\:bg-bg-100:is(:where(.group):hover *){background-color:var(--color-bg-100)}.md\:group-hover\:opacity-100:is(:where(.group):hover *){opacity:1}}}.dark\:text-amber-500:where(.dark,.dark *){color:var(--color-amber-500)}.dark\:text-emerald-300:where(.dark,.dark *){color:var(--color-emerald-300)}.dark\:text-emerald-400:where(.dark,.dark *){color:var(--color-emerald-400)}.dark\:\[--bg-300\:\#424242\]:where(.dark,.dark *){--bg-300:#424242}.dark\:\[--color-border\:\#424242\]:where(.dark,.dark *){--color-border:#424242}@media (pointer:coarse){.pointer-coarse\:opacity-100{opacity:1}}.\[\&\:\:-webkit-scrollbar\]\:hidden::-webkit-scrollbar{display:none}.\[\&\>\*\]\:bg-blue-500\/10>*{background-color:#3080ff1a}@supports (color:color-mix(in lab,red,red)){.\[\&\>\*\]\:bg-blue-500\/10>*{background-color:color-mix(in oklab,var(--color-blue-500) 10%,transparent)}}.\[\&\>\*\]\:outline>*,.\[\&\>\*\]\:outline-1>*{outline-style:var(--tw-outline-style);outline-width:1px}.\[\&\>\*\]\:outline-blue-500\/30>*{outline-color:#3080ff4d}@supports (color:color-mix(in lab,red,red)){.\[\&\>\*\]\:outline-blue-500\/30>*{outline-color:color-mix(in oklab,var(--color-blue-500) 30%,transparent)}}}body{background:var(--bg-0);color:var(--text-100);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:Inter,system-ui,-apple-system,sans-serif}:root{--bg-0:#fff;--bg-50:#f9f9f9;--bg-100:#f5f5f5;--bg-200:#efefef;--bg-300:#f0f0f0;--text-100:#000;--text-200:#222;--text-300:#4a4a4a;--text-400:#717171;--text-500:#a0a0a0;--text-400-dim:#71717133;--text-400-dim-fg:#71717180;--text-100-dim:#0000000d;--accent-color:94 196 198;--accent-hover-color:123 211 213;--accent-dim-color:#5ec4c61f;--accent-contrast:255 255 255;--success-color:21 128 61;--success-hover-color:17 107 51;--success-dim-color:#15803d1f;--error-color:208 45 45;--error-hover-color:185 28 28;--error-dim-color:#d02d2d1f;--warning-color:180 83 9;--warning-dim-color:#b453091f;--engine-claude-color:193 95 60;--engine-codex-color:16 163 127;--engine-codex-cloud-color:37 99 235;--engine-pi-color:0 0 0;--engine-pi-cloud-color:71 85 105;--engine-claude-cloud-color:124 58 237;--elevated-color:#fff;--edge-hover-color:#d5d5d5;--surface-page:#efefef;--surface-card:#f9f9f9;--sidebar-active-bg:#0000000d;--sidebar-hover-bg:#00000008;--shadow-md-val:0 4px 16px #0000000f;--shadow-lg-val:0 12px 40px #00000014;--shadow-glow-val:0 0 24px #267a751a;--radius:12px;--scrollbar-thumb:#00000026;--scrollbar-thumb-hover:#00000047}.dark{--bg-0:#1b1b1b;--bg-50:#171717;--bg-100:#171717;--bg-200:#2f2f2f;--bg-300:#424242;--text-100:#ececec;--text-200:#b4b4b4;--text-300:#8e8e8e;--text-400:#676767;--text-500:#424242;--text-400-dim:#67676733;--text-400-dim-fg:#67676780;--text-100-dim:#ececec0d;--accent-color:94 196 198;--accent-hover-color:123 211 213;--accent-dim-color:#5ec4c626;--accent-contrast:13 17 23;--success-color:63 185 80;--success-hover-color:46 160 67;--success-dim-color:#3fb95026;--error-color:248 81 73;--error-hover-color:218 54 51;--error-dim-color:#f8514926;--warning-color:240 180 41;--warning-dim-color:#f0b42926;--engine-claude-color:217 119 87;--engine-codex-color:28 187 147;--engine-codex-cloud-color:96 165 250;--engine-pi-color:255 255 255;--engine-pi-cloud-color:148 163 184;--engine-claude-cloud-color:167 139 250;--elevated-color:#222;--edge-hover-color:#484f58;--surface-page:#171717;--surface-card:#222;--sidebar-active-bg:#1e1e1e;--sidebar-hover-bg:#222;--shadow-md-val:0 4px 16px #0000004d;--shadow-lg-val:0 12px 40px #0006;--shadow-glow-val:0 0 24px #79d1cb1f;--scrollbar-thumb:#ffffff26;--scrollbar-thumb-hover:#ffffff47}*{scrollbar-width:thin;scrollbar-color:var(--scrollbar-thumb) transparent}::-webkit-scrollbar{background:0 0;width:8px;height:8px}::-webkit-scrollbar-track{background:0 0;border:none}::-webkit-scrollbar-corner{background:0 0;border:none}::-webkit-scrollbar-thumb{background:var(--scrollbar-thumb);border:none;border-radius:8px}::-webkit-scrollbar-thumb:hover{background:var(--scrollbar-thumb-hover)}::-webkit-scrollbar-button{width:0;height:0;display:none}.no-scrollbar{scrollbar-width:none;-ms-overflow-style:none}.no-scrollbar::-webkit-scrollbar{display:none}.assistant-markdown{color:var(--text-100);overflow-wrap:anywhere;min-width:0;max-width:100%;font-size:14px;line-height:1.6}.assistant-markdown :where(h1){letter-spacing:-.025em;border-bottom:1px solid var(--bg-300);margin:1.6em 0 .6em;padding-bottom:.35em;font-size:1.65em;font-weight:700;line-height:1.25}.assistant-markdown :where(h2){letter-spacing:-.02em;border-bottom:1px solid var(--bg-300);margin:1.4em 0 .5em;padding-bottom:.25em;font-size:1.35em;font-weight:650;line-height:1.3}.assistant-markdown :where(h3){letter-spacing:-.01em;margin:1.2em 0 .4em;font-size:1.15em;font-weight:600;line-height:1.35}.assistant-markdown :where(h4,h5,h6){color:var(--text-100);margin:1em 0 .35em;font-size:1em;font-weight:600;line-height:1.4}.assistant-markdown>:where(h1,h2,h3,h4,h5,h6):first-child{margin-top:0}.assistant-markdown :where(p,ul,ol,pre,blockquote,table,details){margin:0}.assistant-markdown :where(p+p,p+ul,p+ol,p+pre,p+blockquote,p+table,p+details){margin-top:.75em}.assistant-markdown :where(h1+p,h2+p,h3+p,h4+p){margin-top:0}.assistant-markdown :where(ul,ol){padding-left:1.6em}.assistant-markdown :where(ul){list-style:outside}.assistant-markdown :where(ol){list-style:decimal}.assistant-markdown :where(li+li){margin-top:.3em}.assistant-markdown :where(li>p),.assistant-markdown :where(li>ul,li>ol){margin-top:.25em}.assistant-markdown :where(a){color:rgb(var(--accent-color));text-underline-offset:2px;text-decoration:underline;-webkit-text-decoration-color:rgb(var(--accent-color) / .4);text-decoration-color:rgb(var(--accent-color) / .4);transition:text-decoration-color .15s}.assistant-markdown :where(a:hover){-webkit-text-decoration-color:rgb(var(--accent-color));text-decoration-color:rgb(var(--accent-color))}.assistant-markdown code{font-family:JetBrains Mono,monospace;font-size:.88em}.assistant-markdown :where(:not(pre)>code){border:1px solid var(--bg-300);overflow-wrap:anywhere;background:#0000000f;border-radius:6px;padding:.15em .4em}.dark .assistant-markdown :where(:not(pre)>code){background:#ffffff12}.assistant-markdown pre{border:1px solid var(--bg-300);background:#0000000a;border-radius:8px;min-width:0;max-width:100%;margin-top:.75em;padding:14px 16px;overflow-x:auto}.dark .assistant-markdown pre{background:#ffffff0a}.assistant-markdown :where(pre code){overflow-wrap:normal;word-break:normal;background:0 0;border:none;padding:0;font-size:12.5px;line-height:1.55}.assistant-markdown :where(blockquote){border-left:3px solid var(--bg-300);color:var(--text-300);background:#00000006;border-radius:0 6px 6px 0;margin-top:.75em;margin-left:0;padding:8px 14px}.dark .assistant-markdown :where(blockquote){background:#ffffff08}.assistant-markdown :where(table){border-collapse:collapse;width:100%;max-width:100%;margin-top:.75em;font-size:13px;display:block;overflow-x:auto}.assistant-markdown :where(th,td){border:1px solid var(--bg-300);text-align:left;vertical-align:top;padding:8px 12px}.assistant-markdown :where(th){color:var(--text-300);background:var(--bg-100);text-transform:uppercase;letter-spacing:.03em;font-size:12px;font-weight:600}.assistant-markdown :where(tbody tr:hover){background:var(--bg-100)}.assistant-markdown :where(hr){border:none;border-top:1px solid var(--bg-300);margin:1.5em 0}.assistant-markdown :where(strong){color:var(--text-100);font-weight:600}.assistant-markdown :where(em){font-style:italic}.assistant-markdown.markdown-attached{color:var(--text-300);font-size:12.5px;line-height:1.55}.assistant-markdown.markdown-attached :where(h1,h2){border-bottom:none;padding-bottom:0}.assistant-markdown.markdown-attached :where(h1){margin:1em 0 .35em;font-size:1.2em}.assistant-markdown.markdown-attached :where(h2){margin:.9em 0 .3em;font-size:1.1em}.assistant-markdown.markdown-attached :where(h3,h4,h5,h6){margin:.8em 0 .25em;font-size:1em}.assistant-markdown.markdown-attached :where(h1,h2,h3,h4,h5,h6){color:var(--text-200)}.assistant-markdown.markdown-attached :where(p+p,p+ul,p+ol,p+pre,p+blockquote,p+table,p+details){margin-top:.55em}.assistant-markdown.markdown-attached :where(table){margin-top:.55em;font-size:11.5px}.assistant-markdown.markdown-attached :where(th,td){padding:5px 8px}.assistant-markdown.markdown-attached :where(th){font-size:10.5px}.assistant-markdown.markdown-attached :where(pre){margin-top:.55em;padding:9px 11px}.assistant-markdown.markdown-attached :where(pre code){font-size:11.5px}.assistant-markdown.markdown-attached :where(strong){color:var(--text-200)}.shift-calendar{width:100%}.shift-calendar .rbc-calendar{background:var(--bg-0);width:100%;color:var(--text-100);font-family:inherit}.shift-calendar .rbc-toolbar{flex-wrap:wrap;gap:4px;margin-bottom:8px}.shift-calendar .rbc-toolbar button{background:var(--bg-100);color:var(--text-200);border:1px solid var(--bg-300);border-radius:4px;padding:4px 10px;font-size:12px}.shift-calendar .rbc-toolbar button:hover,.shift-calendar .rbc-toolbar button:focus{background:var(--bg-200);color:var(--text-100);border-color:var(--bg-300);outline:none}.shift-calendar .rbc-toolbar button.rbc-active,.shift-calendar .rbc-toolbar button.rbc-active:hover,.shift-calendar .rbc-toolbar button.rbc-active:focus{background:rgb(var(--accent-color));color:rgb(var(--accent-contrast));border-color:rgb(var(--accent-color))}.shift-calendar .rbc-toolbar-label{color:var(--text-100);font-weight:500}.shift-calendar .rbc-header,.shift-calendar .rbc-time-header,.shift-calendar .rbc-time-header-cell,.shift-calendar .rbc-time-view,.shift-calendar .rbc-time-content,.shift-calendar .rbc-time-gutter,.shift-calendar .rbc-day-bg,.shift-calendar .rbc-month-view,.shift-calendar .rbc-month-row,.shift-calendar .rbc-time-slot{background:var(--bg-0);color:var(--text-200);border-color:var(--bg-300)!important}.shift-calendar .rbc-header{color:var(--text-200);border-bottom:1px solid var(--bg-300);padding:6px 4px;font-weight:500}.shift-calendar .rbc-time-gutter,.shift-calendar .rbc-time-gutter .rbc-label{color:var(--text-400);font-size:11px}.shift-calendar .rbc-today{background:var(--accent-dim-color)}.shift-calendar .rbc-current-time-indicator{background:rgb(var(--accent-color))}.shift-calendar .rbc-off-range-bg{background:var(--bg-100)}.shift-calendar .rbc-event{border:none;border-radius:3px;padding:2px 4px;font-size:11px}.shift-calendar .rbc-event-label{opacity:.85;font-size:10px}.shift-calendar .rbc-event.rbc-selected{outline:2px solid rgb(var(--accent-color));outline-offset:-2px}.shift-calendar .rbc-time-content>*+*>*{border-left:1px solid var(--bg-300)}@property --tw-border-spacing-x{syntax:"<length>";inherits:false;initial-value:0}@property --tw-border-spacing-y{syntax:"<length>";inherits:false;initial-value:0}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-pan-x{syntax:"*";inherits:false}@property --tw-pan-y{syntax:"*";inherits:false}@property --tw-pinch-zoom{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-space-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-divide-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-divide-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-ordinal{syntax:"*";inherits:false}@property --tw-slashed-zero{syntax:"*";inherits:false}@property --tw-numeric-figure{syntax:"*";inherits:false}@property --tw-numeric-spacing{syntax:"*";inherits:false}@property --tw-numeric-fraction{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@keyframes spin{to{transform:rotate(360deg)}}@keyframes pulse{50%{opacity:.5}}@keyframes bounce{0%,to{animation-timing-function:cubic-bezier(.8,0,1,1);transform:translateY(-25%)}50%{animation-timing-function:cubic-bezier(0,0,.2,1);transform:none}}</style>
308
308
  </head>
309
309
  <body style="margin: 0">