@unity-china/codely-cli 1.0.0-beta.51 → 1.0.0-beta.52
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundle/gemini.js +1120 -1111
- package/bundle/web-ui/dist/public/app.css +976 -258
- package/bundle/web-ui/dist/public/app.js +41 -41
- package/package.json +1 -1
|
@@ -1,63 +1,63 @@
|
|
|
1
|
-
var tx=Object.create;var Ms=Object.defineProperty;var ex=Object.getOwnPropertyDescriptor;var nx=Object.getOwnPropertyNames;var lx=Object.getPrototypeOf,ix=Object.prototype.hasOwnProperty;var Ne=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Zm=(t,e)=>{for(var n in e)Ms(t,n,{get:e[n],enumerable:!0})},rx=(t,e,n,l)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of nx(e))!ix.call(t,i)&&i!==n&&Ms(t,i,{get:()=>e[i],enumerable:!(l=ex(e,i))||l.enumerable});return t};var q=(t,e,n)=>(n=t!=null?tx(lx(t)):{},rx(e||!t||!t.__esModule?Ms(n,"default",{value:t,enumerable:!0}):n,t));var ad=Ne(lt=>{"use strict";var Ns=Symbol.for("react.transitional.element"),ax=Symbol.for("react.portal"),ox=Symbol.for("react.fragment"),ux=Symbol.for("react.strict_mode"),sx=Symbol.for("react.profiler"),cx=Symbol.for("react.consumer"),fx=Symbol.for("react.context"),px=Symbol.for("react.forward_ref"),mx=Symbol.for("react.suspense"),dx=Symbol.for("react.memo"),td=Symbol.for("react.lazy"),Km=Symbol.iterator;function hx(t){return t===null||typeof t!="object"?null:(t=Km&&t[Km]||t["@@iterator"],typeof t=="function"?t:null)}var ed={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},nd=Object.assign,ld={};function _i(t,e,n){this.props=t,this.context=e,this.refs=ld,this.updater=n||ed}_i.prototype.isReactComponent={};_i.prototype.setState=function(t,e){if(typeof t!="object"&&typeof t!="function"&&t!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,e,"setState")};_i.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function id(){}id.prototype=_i.prototype;function zs(t,e,n){this.props=t,this.context=e,this.refs=ld,this.updater=n||ed}var _s=zs.prototype=new id;_s.constructor=zs;nd(_s,_i.prototype);_s.isPureReactComponent=!0;var Pm=Array.isArray,_t={H:null,A:null,T:null,S:null,V:null},rd=Object.prototype.hasOwnProperty;function Os(t,e,n,l,i,r){return n=r.ref,{$$typeof:Ns,type:t,key:e,ref:n!==void 0?n:null,props:r}}function gx(t,e){return Os(t.type,e,void 0,void 0,void 0,t.props)}function Ls(t){return typeof t=="object"&&t!==null&&t.$$typeof===Ns}function yx(t){var e={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,function(n){return e[n]})}var Jm=/\/+/g;function Ds(t,e){return typeof t=="object"&&t!==null&&t.key!=null?yx(""+t.key):e.toString(36)}function Wm(){}function vx(t){switch(t.status){case"fulfilled":return t.value;case"rejected":throw t.reason;default:switch(typeof t.status=="string"?t.then(Wm,Wm):(t.status="pending",t.then(function(e){t.status==="pending"&&(t.status="fulfilled",t.value=e)},function(e){t.status==="pending"&&(t.status="rejected",t.reason=e)})),t.status){case"fulfilled":return t.value;case"rejected":throw t.reason}}throw t}function zi(t,e,n,l,i){var r=typeof t;(r==="undefined"||r==="boolean")&&(t=null);var a=!1;if(t===null)a=!0;else switch(r){case"bigint":case"string":case"number":a=!0;break;case"object":switch(t.$$typeof){case Ns:case ax:a=!0;break;case td:return a=t._init,zi(a(t._payload),e,n,l,i)}}if(a)return i=i(t),a=l===""?"."+Ds(t,0):l,Pm(i)?(n="",a!=null&&(n=a.replace(Jm,"$&/")+"/"),zi(i,e,n,"",function(s){return s})):i!=null&&(Ls(i)&&(i=gx(i,n+(i.key==null||t&&t.key===i.key?"":(""+i.key).replace(Jm,"$&/")+"/")+a)),e.push(i)),1;a=0;var o=l===""?".":l+":";if(Pm(t))for(var u=0;u<t.length;u++)l=t[u],r=o+Ds(l,u),a+=zi(l,e,n,r,i);else if(u=hx(t),typeof u=="function")for(t=u.call(t),u=0;!(l=t.next()).done;)l=l.value,r=o+Ds(l,u++),a+=zi(l,e,n,r,i);else if(r==="object"){if(typeof t.then=="function")return zi(vx(t),e,n,l,i);throw e=String(t),Error("Objects are not valid as a React child (found: "+(e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead.")}return a}function po(t,e,n){if(t==null)return t;var l=[],i=0;return zi(t,l,"","",function(r){return e.call(n,r,i++)}),l}function bx(t){if(t._status===-1){var e=t._result;e=e(),e.then(function(n){(t._status===0||t._status===-1)&&(t._status=1,t._result=n)},function(n){(t._status===0||t._status===-1)&&(t._status=2,t._result=n)}),t._status===-1&&(t._status=0,t._result=e)}if(t._status===1)return t._result.default;throw t._result}var $m=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)};function xx(){}lt.Children={map:po,forEach:function(t,e,n){po(t,function(){e.apply(this,arguments)},n)},count:function(t){var e=0;return po(t,function(){e++}),e},toArray:function(t){return po(t,function(e){return e})||[]},only:function(t){if(!Ls(t))throw Error("React.Children.only expected to receive a single React element child.");return t}};lt.Component=_i;lt.Fragment=ox;lt.Profiler=sx;lt.PureComponent=zs;lt.StrictMode=ux;lt.Suspense=mx;lt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=_t;lt.__COMPILER_RUNTIME={__proto__:null,c:function(t){return _t.H.useMemoCache(t)}};lt.cache=function(t){return function(){return t.apply(null,arguments)}};lt.cloneElement=function(t,e,n){if(t==null)throw Error("The argument must be a React element, but you passed "+t+".");var l=nd({},t.props),i=t.key,r=void 0;if(e!=null)for(a in e.ref!==void 0&&(r=void 0),e.key!==void 0&&(i=""+e.key),e)!rd.call(e,a)||a==="key"||a==="__self"||a==="__source"||a==="ref"&&e.ref===void 0||(l[a]=e[a]);var a=arguments.length-2;if(a===1)l.children=n;else if(1<a){for(var o=Array(a),u=0;u<a;u++)o[u]=arguments[u+2];l.children=o}return Os(t.type,i,void 0,void 0,r,l)};lt.createContext=function(t){return t={$$typeof:fx,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null},t.Provider=t,t.Consumer={$$typeof:cx,_context:t},t};lt.createElement=function(t,e,n){var l,i={},r=null;if(e!=null)for(l in e.key!==void 0&&(r=""+e.key),e)rd.call(e,l)&&l!=="key"&&l!=="__self"&&l!=="__source"&&(i[l]=e[l]);var a=arguments.length-2;if(a===1)i.children=n;else if(1<a){for(var o=Array(a),u=0;u<a;u++)o[u]=arguments[u+2];i.children=o}if(t&&t.defaultProps)for(l in a=t.defaultProps,a)i[l]===void 0&&(i[l]=a[l]);return Os(t,r,void 0,void 0,null,i)};lt.createRef=function(){return{current:null}};lt.forwardRef=function(t){return{$$typeof:px,render:t}};lt.isValidElement=Ls;lt.lazy=function(t){return{$$typeof:td,_payload:{_status:-1,_result:t},_init:bx}};lt.memo=function(t,e){return{$$typeof:dx,type:t,compare:e===void 0?null:e}};lt.startTransition=function(t){var e=_t.T,n={};_t.T=n;try{var l=t(),i=_t.S;i!==null&&i(n,l),typeof l=="object"&&l!==null&&typeof l.then=="function"&&l.then(xx,$m)}catch(r){$m(r)}finally{_t.T=e}};lt.unstable_useCacheRefresh=function(){return _t.H.useCacheRefresh()};lt.use=function(t){return _t.H.use(t)};lt.useActionState=function(t,e,n){return _t.H.useActionState(t,e,n)};lt.useCallback=function(t,e){return _t.H.useCallback(t,e)};lt.useContext=function(t){return _t.H.useContext(t)};lt.useDebugValue=function(){};lt.useDeferredValue=function(t,e){return _t.H.useDeferredValue(t,e)};lt.useEffect=function(t,e,n){var l=_t.H;if(typeof n=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return l.useEffect(t,e)};lt.useId=function(){return _t.H.useId()};lt.useImperativeHandle=function(t,e,n){return _t.H.useImperativeHandle(t,e,n)};lt.useInsertionEffect=function(t,e){return _t.H.useInsertionEffect(t,e)};lt.useLayoutEffect=function(t,e){return _t.H.useLayoutEffect(t,e)};lt.useMemo=function(t,e){return _t.H.useMemo(t,e)};lt.useOptimistic=function(t,e){return _t.H.useOptimistic(t,e)};lt.useReducer=function(t,e,n){return _t.H.useReducer(t,e,n)};lt.useRef=function(t){return _t.H.useRef(t)};lt.useState=function(t){return _t.H.useState(t)};lt.useSyncExternalStore=function(t,e,n){return _t.H.useSyncExternalStore(t,e,n)};lt.useTransition=function(){return _t.H.useTransition()};lt.version="19.1.1"});var $t=Ne((nR,od)=>{"use strict";od.exports=ad()});var yd=Ne(Ot=>{"use strict";function qs(t,e){var n=t.length;t.push(e);t:for(;0<n;){var l=n-1>>>1,i=t[l];if(0<mo(i,e))t[l]=e,t[n]=i,n=l;else break t}}function An(t){return t.length===0?null:t[0]}function go(t){if(t.length===0)return null;var e=t[0],n=t.pop();if(n!==e){t[0]=n;t:for(var l=0,i=t.length,r=i>>>1;l<r;){var a=2*(l+1)-1,o=t[a],u=a+1,s=t[u];if(0>mo(o,n))u<i&&0>mo(s,o)?(t[l]=s,t[u]=n,l=u):(t[l]=o,t[a]=n,l=a);else if(u<i&&0>mo(s,n))t[l]=s,t[u]=n,l=u;else break t}}return e}function mo(t,e){var n=t.sortIndex-e.sortIndex;return n!==0?n:t.id-e.id}Ot.unstable_now=void 0;typeof performance=="object"&&typeof performance.now=="function"?(ud=performance,Ot.unstable_now=function(){return ud.now()}):(Us=Date,sd=Us.now(),Ot.unstable_now=function(){return Us.now()-sd});var ud,Us,sd,jn=[],al=[],Sx=1,en=null,Se=3,js=!1,Ir=!1,Yr=!1,Is=!1,pd=typeof setTimeout=="function"?setTimeout:null,md=typeof clearTimeout=="function"?clearTimeout:null,cd=typeof setImmediate<"u"?setImmediate:null;function ho(t){for(var e=An(al);e!==null;){if(e.callback===null)go(al);else if(e.startTime<=t)go(al),e.sortIndex=e.expirationTime,qs(jn,e);else break;e=An(al)}}function Ys(t){if(Yr=!1,ho(t),!Ir)if(An(jn)!==null)Ir=!0,Li||(Li=!0,Oi());else{var e=An(al);e!==null&&Vs(Ys,e.startTime-t)}}var Li=!1,Vr=-1,dd=5,hd=-1;function gd(){return Is?!0:!(Ot.unstable_now()-hd<dd)}function Bs(){if(Is=!1,Li){var t=Ot.unstable_now();hd=t;var e=!0;try{t:{Ir=!1,Yr&&(Yr=!1,md(Vr),Vr=-1),js=!0;var n=Se;try{e:{for(ho(t),en=An(jn);en!==null&&!(en.expirationTime>t&&gd());){var l=en.callback;if(typeof l=="function"){en.callback=null,Se=en.priorityLevel;var i=l(en.expirationTime<=t);if(t=Ot.unstable_now(),typeof i=="function"){en.callback=i,ho(t),e=!0;break e}en===An(jn)&&go(jn),ho(t)}else go(jn);en=An(jn)}if(en!==null)e=!0;else{var r=An(al);r!==null&&Vs(Ys,r.startTime-t),e=!1}}break t}finally{en=null,Se=n,js=!1}e=void 0}}finally{e?Oi():Li=!1}}}var Oi;typeof cd=="function"?Oi=function(){cd(Bs)}:typeof MessageChannel<"u"?(Hs=new MessageChannel,fd=Hs.port2,Hs.port1.onmessage=Bs,Oi=function(){fd.postMessage(null)}):Oi=function(){pd(Bs,0)};var Hs,fd;function Vs(t,e){Vr=pd(function(){t(Ot.unstable_now())},e)}Ot.unstable_IdlePriority=5;Ot.unstable_ImmediatePriority=1;Ot.unstable_LowPriority=4;Ot.unstable_NormalPriority=3;Ot.unstable_Profiling=null;Ot.unstable_UserBlockingPriority=2;Ot.unstable_cancelCallback=function(t){t.callback=null};Ot.unstable_forceFrameRate=function(t){0>t||125<t?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):dd=0<t?Math.floor(1e3/t):5};Ot.unstable_getCurrentPriorityLevel=function(){return Se};Ot.unstable_next=function(t){switch(Se){case 1:case 2:case 3:var e=3;break;default:e=Se}var n=Se;Se=e;try{return t()}finally{Se=n}};Ot.unstable_requestPaint=function(){Is=!0};Ot.unstable_runWithPriority=function(t,e){switch(t){case 1:case 2:case 3:case 4:case 5:break;default:t=3}var n=Se;Se=t;try{return e()}finally{Se=n}};Ot.unstable_scheduleCallback=function(t,e,n){var l=Ot.unstable_now();switch(typeof n=="object"&&n!==null?(n=n.delay,n=typeof n=="number"&&0<n?l+n:l):n=l,t){case 1:var i=-1;break;case 2:i=250;break;case 5:i=1073741823;break;case 4:i=1e4;break;default:i=5e3}return i=n+i,t={id:Sx++,callback:e,priorityLevel:t,startTime:n,expirationTime:i,sortIndex:-1},n>l?(t.sortIndex=n,qs(al,t),An(jn)===null&&t===An(al)&&(Yr?(md(Vr),Vr=-1):Yr=!0,Vs(Ys,n-l))):(t.sortIndex=i,qs(jn,t),Ir||js||(Ir=!0,Li||(Li=!0,Oi()))),t};Ot.unstable_shouldYield=gd;Ot.unstable_wrapCallback=function(t){var e=Se;return function(){var n=Se;Se=e;try{return t.apply(this,arguments)}finally{Se=n}}}});var bd=Ne((iR,vd)=>{"use strict";vd.exports=yd()});var Sd=Ne(_e=>{"use strict";var kx=$t();function xd(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function ol(){}var ze={d:{f:ol,r:function(){throw Error(xd(522))},D:ol,C:ol,L:ol,m:ol,X:ol,S:ol,M:ol},p:0,findDOMNode:null},Ex=Symbol.for("react.portal");function Tx(t,e,n){var l=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Ex,key:l==null?null:""+l,children:t,containerInfo:e,implementation:n}}var Fr=kx.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function yo(t,e){if(t==="font")return"";if(typeof e=="string")return e==="use-credentials"?e:""}_e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=ze;_e.createPortal=function(t,e){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)throw Error(xd(299));return Tx(t,e,null,n)};_e.flushSync=function(t){var e=Fr.T,n=ze.p;try{if(Fr.T=null,ze.p=2,t)return t()}finally{Fr.T=e,ze.p=n,ze.d.f()}};_e.preconnect=function(t,e){typeof t=="string"&&(e?(e=e.crossOrigin,e=typeof e=="string"?e==="use-credentials"?e:"":void 0):e=null,ze.d.C(t,e))};_e.prefetchDNS=function(t){typeof t=="string"&&ze.d.D(t)};_e.preinit=function(t,e){if(typeof t=="string"&&e&&typeof e.as=="string"){var n=e.as,l=yo(n,e.crossOrigin),i=typeof e.integrity=="string"?e.integrity:void 0,r=typeof e.fetchPriority=="string"?e.fetchPriority:void 0;n==="style"?ze.d.S(t,typeof e.precedence=="string"?e.precedence:void 0,{crossOrigin:l,integrity:i,fetchPriority:r}):n==="script"&&ze.d.X(t,{crossOrigin:l,integrity:i,fetchPriority:r,nonce:typeof e.nonce=="string"?e.nonce:void 0})}};_e.preinitModule=function(t,e){if(typeof t=="string")if(typeof e=="object"&&e!==null){if(e.as==null||e.as==="script"){var n=yo(e.as,e.crossOrigin);ze.d.M(t,{crossOrigin:n,integrity:typeof e.integrity=="string"?e.integrity:void 0,nonce:typeof e.nonce=="string"?e.nonce:void 0})}}else e==null&&ze.d.M(t)};_e.preload=function(t,e){if(typeof t=="string"&&typeof e=="object"&&e!==null&&typeof e.as=="string"){var n=e.as,l=yo(n,e.crossOrigin);ze.d.L(t,n,{crossOrigin:l,integrity:typeof e.integrity=="string"?e.integrity:void 0,nonce:typeof e.nonce=="string"?e.nonce:void 0,type:typeof e.type=="string"?e.type:void 0,fetchPriority:typeof e.fetchPriority=="string"?e.fetchPriority:void 0,referrerPolicy:typeof e.referrerPolicy=="string"?e.referrerPolicy:void 0,imageSrcSet:typeof e.imageSrcSet=="string"?e.imageSrcSet:void 0,imageSizes:typeof e.imageSizes=="string"?e.imageSizes:void 0,media:typeof e.media=="string"?e.media:void 0})}};_e.preloadModule=function(t,e){if(typeof t=="string")if(e){var n=yo(e.as,e.crossOrigin);ze.d.m(t,{as:typeof e.as=="string"&&e.as!=="script"?e.as:void 0,crossOrigin:n,integrity:typeof e.integrity=="string"?e.integrity:void 0})}else ze.d.m(t)};_e.requestFormReset=function(t){ze.d.r(t)};_e.unstable_batchedUpdates=function(t,e){return t(e)};_e.useFormState=function(t,e,n){return Fr.H.useFormState(t,e,n)};_e.useFormStatus=function(){return Fr.H.useHostTransitionStatus()};_e.version="19.1.1"});var Fs=Ne((aR,Ed)=>{"use strict";function kd(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(kd)}catch(t){console.error(t)}}kd(),Ed.exports=Sd()});var w1=Ne(qu=>{"use strict";var ue=bd(),Qh=$t(),wx=Fs();function R(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function Xh(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function Na(t){var e=t,n=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,(e.flags&4098)!==0&&(n=e.return),t=e.return;while(t)}return e.tag===3?n:null}function Gh(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function Td(t){if(Na(t)!==t)throw Error(R(188))}function Ax(t){var e=t.alternate;if(!e){if(e=Na(t),e===null)throw Error(R(188));return e!==t?null:t}for(var n=t,l=e;;){var i=n.return;if(i===null)break;var r=i.alternate;if(r===null){if(l=i.return,l!==null){n=l;continue}break}if(i.child===r.child){for(r=i.child;r;){if(r===n)return Td(i),t;if(r===l)return Td(i),e;r=r.sibling}throw Error(R(188))}if(n.return!==l.return)n=i,l=r;else{for(var a=!1,o=i.child;o;){if(o===n){a=!0,n=i,l=r;break}if(o===l){a=!0,l=i,n=r;break}o=o.sibling}if(!a){for(o=r.child;o;){if(o===n){a=!0,n=r,l=i;break}if(o===l){a=!0,l=r,n=i;break}o=o.sibling}if(!a)throw Error(R(189))}}if(n.alternate!==l)throw Error(R(190))}if(n.tag!==3)throw Error(R(188));return n.stateNode.current===n?t:e}function Zh(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=Zh(t),e!==null)return e;t=t.sibling}return null}var Nt=Object.assign,Cx=Symbol.for("react.element"),vo=Symbol.for("react.transitional.element"),$r=Symbol.for("react.portal"),Yi=Symbol.for("react.fragment"),Kh=Symbol.for("react.strict_mode"),kc=Symbol.for("react.profiler"),Rx=Symbol.for("react.provider"),Ph=Symbol.for("react.consumer"),Qn=Symbol.for("react.context"),vf=Symbol.for("react.forward_ref"),Ec=Symbol.for("react.suspense"),Tc=Symbol.for("react.suspense_list"),bf=Symbol.for("react.memo"),cl=Symbol.for("react.lazy");Symbol.for("react.scope");var wc=Symbol.for("react.activity");Symbol.for("react.legacy_hidden");Symbol.for("react.tracing_marker");var Mx=Symbol.for("react.memo_cache_sentinel");Symbol.for("react.view_transition");var wd=Symbol.iterator;function Qr(t){return t===null||typeof t!="object"?null:(t=wd&&t[wd]||t["@@iterator"],typeof t=="function"?t:null)}var Dx=Symbol.for("react.client.reference");function Ac(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===Dx?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case Yi:return"Fragment";case kc:return"Profiler";case Kh:return"StrictMode";case Ec:return"Suspense";case Tc:return"SuspenseList";case wc:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case $r:return"Portal";case Qn:return(t.displayName||"Context")+".Provider";case Ph:return(t._context.displayName||"Context")+".Consumer";case vf:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case bf:return e=t.displayName||null,e!==null?e:Ac(t.type)||"Memo";case cl:e=t._payload,t=t._init;try{return Ac(t(e))}catch{}}return null}var ta=Array.isArray,P=Qh.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,vt=wx.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,$l={pending:!1,data:null,method:null,action:null},Cc=[],Vi=-1;function _n(t){return{current:t}}function de(t){0>Vi||(t.current=Cc[Vi],Cc[Vi]=null,Vi--)}function Ut(t,e){Vi++,Cc[Vi]=t.current,t.current=e}var Dn=_n(null),ya=_n(null),xl=_n(null),Zo=_n(null);function Ko(t,e){switch(Ut(xl,e),Ut(ya,t),Ut(Dn,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?Nh(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=Nh(e),t=m1(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}de(Dn),Ut(Dn,t)}function ur(){de(Dn),de(ya),de(xl)}function Rc(t){t.memoizedState!==null&&Ut(Zo,t);var e=Dn.current,n=m1(e,t.type);e!==n&&(Ut(ya,t),Ut(Dn,n))}function Po(t){ya.current===t&&(de(Dn),de(ya)),Zo.current===t&&(de(Zo),Ca._currentValue=$l)}var Mc=Object.prototype.hasOwnProperty,xf=ue.unstable_scheduleCallback,Qs=ue.unstable_cancelCallback,Nx=ue.unstable_shouldYield,zx=ue.unstable_requestPaint,Nn=ue.unstable_now,_x=ue.unstable_getCurrentPriorityLevel,Jh=ue.unstable_ImmediatePriority,Wh=ue.unstable_UserBlockingPriority,Jo=ue.unstable_NormalPriority,Ox=ue.unstable_LowPriority,$h=ue.unstable_IdlePriority,Lx=ue.log,Ux=ue.unstable_setDisableYieldValue,za=null,Ze=null;function gl(t){if(typeof Lx=="function"&&Ux(t),Ze&&typeof Ze.setStrictMode=="function")try{Ze.setStrictMode(za,t)}catch{}}var Ke=Math.clz32?Math.clz32:qx,Bx=Math.log,Hx=Math.LN2;function qx(t){return t>>>=0,t===0?32:31-(Bx(t)/Hx|0)|0}var bo=256,xo=4194304;function Pl(t){var e=t&42;if(e!==0)return e;switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function Tu(t,e,n){var l=t.pendingLanes;if(l===0)return 0;var i=0,r=t.suspendedLanes,a=t.pingedLanes;t=t.warmLanes;var o=l&134217727;return o!==0?(l=o&~r,l!==0?i=Pl(l):(a&=o,a!==0?i=Pl(a):n||(n=o&~t,n!==0&&(i=Pl(n))))):(o=l&~r,o!==0?i=Pl(o):a!==0?i=Pl(a):n||(n=l&~t,n!==0&&(i=Pl(n)))),i===0?0:e!==0&&e!==i&&(e&r)===0&&(r=i&-i,n=e&-e,r>=n||r===32&&(n&4194048)!==0)?e:i}function _a(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function jx(t,e){switch(t){case 1:case 2:case 4:case 8:case 64:return e+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function tg(){var t=bo;return bo<<=1,(bo&4194048)===0&&(bo=256),t}function eg(){var t=xo;return xo<<=1,(xo&62914560)===0&&(xo=4194304),t}function Xs(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function Oa(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function Ix(t,e,n,l,i,r){var a=t.pendingLanes;t.pendingLanes=n,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=n,t.entangledLanes&=n,t.errorRecoveryDisabledLanes&=n,t.shellSuspendCounter=0;var o=t.entanglements,u=t.expirationTimes,s=t.hiddenUpdates;for(n=a&~n;0<n;){var c=31-Ke(n),f=1<<c;o[c]=0,u[c]=-1;var m=s[c];if(m!==null)for(s[c]=null,c=0;c<m.length;c++){var p=m[c];p!==null&&(p.lane&=-536870913)}n&=~f}l!==0&&ng(t,l,0),r!==0&&i===0&&t.tag!==0&&(t.suspendedLanes|=r&~(a&~e))}function ng(t,e,n){t.pendingLanes|=e,t.suspendedLanes&=~e;var l=31-Ke(e);t.entangledLanes|=e,t.entanglements[l]=t.entanglements[l]|1073741824|n&4194090}function lg(t,e){var n=t.entangledLanes|=e;for(t=t.entanglements;n;){var l=31-Ke(n),i=1<<l;i&e|t[l]&e&&(t[l]|=e),n&=~i}}function Sf(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function kf(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function ig(){var t=vt.p;return t!==0?t:(t=window.event,t===void 0?32:E1(t.type))}function Yx(t,e){var n=vt.p;try{return vt.p=t,e()}finally{vt.p=n}}var Nl=Math.random().toString(36).slice(2),ke="__reactFiber$"+Nl,Ie="__reactProps$"+Nl,br="__reactContainer$"+Nl,Dc="__reactEvents$"+Nl,Vx="__reactListeners$"+Nl,Fx="__reactHandles$"+Nl,Ad="__reactResources$"+Nl,La="__reactMarker$"+Nl;function Ef(t){delete t[ke],delete t[Ie],delete t[Dc],delete t[Vx],delete t[Fx]}function Fi(t){var e=t[ke];if(e)return e;for(var n=t.parentNode;n;){if(e=n[br]||n[ke]){if(n=e.alternate,e.child!==null||n!==null&&n.child!==null)for(t=Oh(t);t!==null;){if(n=t[ke])return n;t=Oh(t)}return e}t=n,n=t.parentNode}return null}function xr(t){if(t=t[ke]||t[br]){var e=t.tag;if(e===5||e===6||e===13||e===26||e===27||e===3)return t}return null}function ea(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(R(33))}function tr(t){var e=t[Ad];return e||(e=t[Ad]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function pe(t){t[La]=!0}var rg=new Set,ag={};function ci(t,e){sr(t,e),sr(t+"Capture",e)}function sr(t,e){for(ag[t]=e,t=0;t<e.length;t++)rg.add(e[t])}var Qx=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Cd={},Rd={};function Xx(t){return Mc.call(Rd,t)?!0:Mc.call(Cd,t)?!1:Qx.test(t)?Rd[t]=!0:(Cd[t]=!0,!1)}function Lo(t,e,n){if(Xx(e))if(n===null)t.removeAttribute(e);else{switch(typeof n){case"undefined":case"function":case"symbol":t.removeAttribute(e);return;case"boolean":var l=e.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){t.removeAttribute(e);return}}t.setAttribute(e,""+n)}}function So(t,e,n){if(n===null)t.removeAttribute(e);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(e);return}t.setAttribute(e,""+n)}}function In(t,e,n,l){if(l===null)t.removeAttribute(n);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(n);return}t.setAttributeNS(e,n,""+l)}}var Gs,Md;function qi(t){if(Gs===void 0)try{throw Error()}catch(n){var e=n.stack.trim().match(/\n( *(at )?)/);Gs=e&&e[1]||"",Md=-1<n.stack.indexOf(`
|
|
1
|
+
var ex=Object.create;var zs=Object.defineProperty;var nx=Object.getOwnPropertyDescriptor;var ix=Object.getOwnPropertyNames;var lx=Object.getPrototypeOf,rx=Object.prototype.hasOwnProperty;var Be=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),$d=(t,e)=>{for(var n in e)zs(t,n,{get:e[n],enumerable:!0})},ax=(t,e,n,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let l of ix(e))!rx.call(t,l)&&l!==n&&zs(t,l,{get:()=>e[l],enumerable:!(i=nx(e,l))||i.enumerable});return t};var I=(t,e,n)=>(n=t!=null?ex(lx(t)):{},ax(e||!t||!t.__esModule?zs(n,"default",{value:t,enumerable:!0}):n,t));var fm=Be(at=>{"use strict";var Os=Symbol.for("react.transitional.element"),ox=Symbol.for("react.portal"),ux=Symbol.for("react.fragment"),sx=Symbol.for("react.strict_mode"),cx=Symbol.for("react.profiler"),fx=Symbol.for("react.consumer"),px=Symbol.for("react.context"),dx=Symbol.for("react.forward_ref"),mx=Symbol.for("react.suspense"),hx=Symbol.for("react.memo"),rm=Symbol.for("react.lazy"),tm=Symbol.iterator;function gx(t){return t===null||typeof t!="object"?null:(t=tm&&t[tm]||t["@@iterator"],typeof t=="function"?t:null)}var am={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},om=Object.assign,um={};function Ul(t,e,n){this.props=t,this.context=e,this.refs=um,this.updater=n||am}Ul.prototype.isReactComponent={};Ul.prototype.setState=function(t,e){if(typeof t!="object"&&typeof t!="function"&&t!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,e,"setState")};Ul.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function sm(){}sm.prototype=Ul.prototype;function Ls(t,e,n){this.props=t,this.context=e,this.refs=um,this.updater=n||am}var Bs=Ls.prototype=new sm;Bs.constructor=Ls;om(Bs,Ul.prototype);Bs.isPureReactComponent=!0;var em=Array.isArray,Ut={H:null,A:null,T:null,S:null,V:null},cm=Object.prototype.hasOwnProperty;function Us(t,e,n,i,l,r){return n=r.ref,{$$typeof:Os,type:t,key:e,ref:n!==void 0?n:null,props:r}}function yx(t,e){return Us(t.type,e,void 0,void 0,void 0,t.props)}function Hs(t){return typeof t=="object"&&t!==null&&t.$$typeof===Os}function bx(t){var e={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,function(n){return e[n]})}var nm=/\/+/g;function _s(t,e){return typeof t=="object"&&t!==null&&t.key!=null?bx(""+t.key):e.toString(36)}function im(){}function vx(t){switch(t.status){case"fulfilled":return t.value;case"rejected":throw t.reason;default:switch(typeof t.status=="string"?t.then(im,im):(t.status="pending",t.then(function(e){t.status==="pending"&&(t.status="fulfilled",t.value=e)},function(e){t.status==="pending"&&(t.status="rejected",t.reason=e)})),t.status){case"fulfilled":return t.value;case"rejected":throw t.reason}}throw t}function Bl(t,e,n,i,l){var r=typeof t;(r==="undefined"||r==="boolean")&&(t=null);var a=!1;if(t===null)a=!0;else switch(r){case"bigint":case"string":case"number":a=!0;break;case"object":switch(t.$$typeof){case Os:case ox:a=!0;break;case rm:return a=t._init,Bl(a(t._payload),e,n,i,l)}}if(a)return l=l(t),a=i===""?"."+_s(t,0):i,em(l)?(n="",a!=null&&(n=a.replace(nm,"$&/")+"/"),Bl(l,e,n,"",function(s){return s})):l!=null&&(Hs(l)&&(l=yx(l,n+(l.key==null||t&&t.key===l.key?"":(""+l.key).replace(nm,"$&/")+"/")+a)),e.push(l)),1;a=0;var o=i===""?".":i+":";if(em(t))for(var u=0;u<t.length;u++)i=t[u],r=o+_s(i,u),a+=Bl(i,e,n,r,l);else if(u=gx(t),typeof u=="function")for(t=u.call(t),u=0;!(i=t.next()).done;)i=i.value,r=o+_s(i,u++),a+=Bl(i,e,n,r,l);else if(r==="object"){if(typeof t.then=="function")return Bl(vx(t),e,n,i,l);throw e=String(t),Error("Objects are not valid as a React child (found: "+(e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead.")}return a}function yo(t,e,n){if(t==null)return t;var i=[],l=0;return Bl(t,i,"","",function(r){return e.call(n,r,l++)}),i}function xx(t){if(t._status===-1){var e=t._result;e=e(),e.then(function(n){(t._status===0||t._status===-1)&&(t._status=1,t._result=n)},function(n){(t._status===0||t._status===-1)&&(t._status=2,t._result=n)}),t._status===-1&&(t._status=0,t._result=e)}if(t._status===1)return t._result.default;throw t._result}var lm=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)};function Sx(){}at.Children={map:yo,forEach:function(t,e,n){yo(t,function(){e.apply(this,arguments)},n)},count:function(t){var e=0;return yo(t,function(){e++}),e},toArray:function(t){return yo(t,function(e){return e})||[]},only:function(t){if(!Hs(t))throw Error("React.Children.only expected to receive a single React element child.");return t}};at.Component=Ul;at.Fragment=ux;at.Profiler=cx;at.PureComponent=Ls;at.StrictMode=sx;at.Suspense=mx;at.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Ut;at.__COMPILER_RUNTIME={__proto__:null,c:function(t){return Ut.H.useMemoCache(t)}};at.cache=function(t){return function(){return t.apply(null,arguments)}};at.cloneElement=function(t,e,n){if(t==null)throw Error("The argument must be a React element, but you passed "+t+".");var i=om({},t.props),l=t.key,r=void 0;if(e!=null)for(a in e.ref!==void 0&&(r=void 0),e.key!==void 0&&(l=""+e.key),e)!cm.call(e,a)||a==="key"||a==="__self"||a==="__source"||a==="ref"&&e.ref===void 0||(i[a]=e[a]);var a=arguments.length-2;if(a===1)i.children=n;else if(1<a){for(var o=Array(a),u=0;u<a;u++)o[u]=arguments[u+2];i.children=o}return Us(t.type,l,void 0,void 0,r,i)};at.createContext=function(t){return t={$$typeof:px,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null},t.Provider=t,t.Consumer={$$typeof:fx,_context:t},t};at.createElement=function(t,e,n){var i,l={},r=null;if(e!=null)for(i in e.key!==void 0&&(r=""+e.key),e)cm.call(e,i)&&i!=="key"&&i!=="__self"&&i!=="__source"&&(l[i]=e[i]);var a=arguments.length-2;if(a===1)l.children=n;else if(1<a){for(var o=Array(a),u=0;u<a;u++)o[u]=arguments[u+2];l.children=o}if(t&&t.defaultProps)for(i in a=t.defaultProps,a)l[i]===void 0&&(l[i]=a[i]);return Us(t,r,void 0,void 0,null,l)};at.createRef=function(){return{current:null}};at.forwardRef=function(t){return{$$typeof:dx,render:t}};at.isValidElement=Hs;at.lazy=function(t){return{$$typeof:rm,_payload:{_status:-1,_result:t},_init:xx}};at.memo=function(t,e){return{$$typeof:hx,type:t,compare:e===void 0?null:e}};at.startTransition=function(t){var e=Ut.T,n={};Ut.T=n;try{var i=t(),l=Ut.S;l!==null&&l(n,i),typeof i=="object"&&i!==null&&typeof i.then=="function"&&i.then(Sx,lm)}catch(r){lm(r)}finally{Ut.T=e}};at.unstable_useCacheRefresh=function(){return Ut.H.useCacheRefresh()};at.use=function(t){return Ut.H.use(t)};at.useActionState=function(t,e,n){return Ut.H.useActionState(t,e,n)};at.useCallback=function(t,e){return Ut.H.useCallback(t,e)};at.useContext=function(t){return Ut.H.useContext(t)};at.useDebugValue=function(){};at.useDeferredValue=function(t,e){return Ut.H.useDeferredValue(t,e)};at.useEffect=function(t,e,n){var i=Ut.H;if(typeof n=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return i.useEffect(t,e)};at.useId=function(){return Ut.H.useId()};at.useImperativeHandle=function(t,e,n){return Ut.H.useImperativeHandle(t,e,n)};at.useInsertionEffect=function(t,e){return Ut.H.useInsertionEffect(t,e)};at.useLayoutEffect=function(t,e){return Ut.H.useLayoutEffect(t,e)};at.useMemo=function(t,e){return Ut.H.useMemo(t,e)};at.useOptimistic=function(t,e){return Ut.H.useOptimistic(t,e)};at.useReducer=function(t,e,n){return Ut.H.useReducer(t,e,n)};at.useRef=function(t){return Ut.H.useRef(t)};at.useState=function(t){return Ut.H.useState(t)};at.useSyncExternalStore=function(t,e,n){return Ut.H.useSyncExternalStore(t,e,n)};at.useTransition=function(){return Ut.H.useTransition()};at.version="19.1.1"});var le=Be((l2,pm)=>{"use strict";pm.exports=fm()});var km=Be(Ht=>{"use strict";function Ys(t,e){var n=t.length;t.push(e);t:for(;0<n;){var i=n-1>>>1,l=t[i];if(0<bo(l,e))t[i]=e,t[n]=l,n=i;else break t}}function Nn(t){return t.length===0?null:t[0]}function xo(t){if(t.length===0)return null;var e=t[0],n=t.pop();if(n!==e){t[0]=n;t:for(var i=0,l=t.length,r=l>>>1;i<r;){var a=2*(i+1)-1,o=t[a],u=a+1,s=t[u];if(0>bo(o,n))u<l&&0>bo(s,o)?(t[i]=s,t[u]=n,i=u):(t[i]=o,t[a]=n,i=a);else if(u<l&&0>bo(s,n))t[i]=s,t[u]=n,i=u;else break t}}return e}function bo(t,e){var n=t.sortIndex-e.sortIndex;return n!==0?n:t.id-e.id}Ht.unstable_now=void 0;typeof performance=="object"&&typeof performance.now=="function"?(dm=performance,Ht.unstable_now=function(){return dm.now()}):(qs=Date,mm=qs.now(),Ht.unstable_now=function(){return qs.now()-mm});var dm,qs,mm,Qn=[],di=[],kx=1,sn=null,Ae=3,Vs=!1,Qr=!1,Xr=!1,Fs=!1,ym=typeof setTimeout=="function"?setTimeout:null,bm=typeof clearTimeout=="function"?clearTimeout:null,hm=typeof setImmediate<"u"?setImmediate:null;function vo(t){for(var e=Nn(di);e!==null;){if(e.callback===null)xo(di);else if(e.startTime<=t)xo(di),e.sortIndex=e.expirationTime,Ys(Qn,e);else break;e=Nn(di)}}function Qs(t){if(Xr=!1,vo(t),!Qr)if(Nn(Qn)!==null)Qr=!0,ql||(ql=!0,Hl());else{var e=Nn(di);e!==null&&Xs(Qs,e.startTime-t)}}var ql=!1,Gr=-1,vm=5,xm=-1;function Sm(){return Fs?!0:!(Ht.unstable_now()-xm<vm)}function Is(){if(Fs=!1,ql){var t=Ht.unstable_now();xm=t;var e=!0;try{t:{Qr=!1,Xr&&(Xr=!1,bm(Gr),Gr=-1),Vs=!0;var n=Ae;try{e:{for(vo(t),sn=Nn(Qn);sn!==null&&!(sn.expirationTime>t&&Sm());){var i=sn.callback;if(typeof i=="function"){sn.callback=null,Ae=sn.priorityLevel;var l=i(sn.expirationTime<=t);if(t=Ht.unstable_now(),typeof l=="function"){sn.callback=l,vo(t),e=!0;break e}sn===Nn(Qn)&&xo(Qn),vo(t)}else xo(Qn);sn=Nn(Qn)}if(sn!==null)e=!0;else{var r=Nn(di);r!==null&&Xs(Qs,r.startTime-t),e=!1}}break t}finally{sn=null,Ae=n,Vs=!1}e=void 0}}finally{e?Hl():ql=!1}}}var Hl;typeof hm=="function"?Hl=function(){hm(Is)}:typeof MessageChannel<"u"?(js=new MessageChannel,gm=js.port2,js.port1.onmessage=Is,Hl=function(){gm.postMessage(null)}):Hl=function(){ym(Is,0)};var js,gm;function Xs(t,e){Gr=ym(function(){t(Ht.unstable_now())},e)}Ht.unstable_IdlePriority=5;Ht.unstable_ImmediatePriority=1;Ht.unstable_LowPriority=4;Ht.unstable_NormalPriority=3;Ht.unstable_Profiling=null;Ht.unstable_UserBlockingPriority=2;Ht.unstable_cancelCallback=function(t){t.callback=null};Ht.unstable_forceFrameRate=function(t){0>t||125<t?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):vm=0<t?Math.floor(1e3/t):5};Ht.unstable_getCurrentPriorityLevel=function(){return Ae};Ht.unstable_next=function(t){switch(Ae){case 1:case 2:case 3:var e=3;break;default:e=Ae}var n=Ae;Ae=e;try{return t()}finally{Ae=n}};Ht.unstable_requestPaint=function(){Fs=!0};Ht.unstable_runWithPriority=function(t,e){switch(t){case 1:case 2:case 3:case 4:case 5:break;default:t=3}var n=Ae;Ae=t;try{return e()}finally{Ae=n}};Ht.unstable_scheduleCallback=function(t,e,n){var i=Ht.unstable_now();switch(typeof n=="object"&&n!==null?(n=n.delay,n=typeof n=="number"&&0<n?i+n:i):n=i,t){case 1:var l=-1;break;case 2:l=250;break;case 5:l=1073741823;break;case 4:l=1e4;break;default:l=5e3}return l=n+l,t={id:kx++,callback:e,priorityLevel:t,startTime:n,expirationTime:l,sortIndex:-1},n>i?(t.sortIndex=n,Ys(di,t),Nn(Qn)===null&&t===Nn(di)&&(Xr?(bm(Gr),Gr=-1):Xr=!0,Xs(Qs,n-i))):(t.sortIndex=l,Ys(Qn,t),Qr||Vs||(Qr=!0,ql||(ql=!0,Hl()))),t};Ht.unstable_shouldYield=Sm;Ht.unstable_wrapCallback=function(t){var e=Ae;return function(){var n=Ae;Ae=e;try{return t.apply(this,arguments)}finally{Ae=n}}}});var Em=Be((a2,wm)=>{"use strict";wm.exports=km()});var Am=Be(He=>{"use strict";var wx=le();function Tm(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function mi(){}var Ue={d:{f:mi,r:function(){throw Error(Tm(522))},D:mi,C:mi,L:mi,m:mi,X:mi,S:mi,M:mi},p:0,findDOMNode:null},Ex=Symbol.for("react.portal");function Tx(t,e,n){var i=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Ex,key:i==null?null:""+i,children:t,containerInfo:e,implementation:n}}var Zr=wx.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function So(t,e){if(t==="font")return"";if(typeof e=="string")return e==="use-credentials"?e:""}He.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Ue;He.createPortal=function(t,e){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)throw Error(Tm(299));return Tx(t,e,null,n)};He.flushSync=function(t){var e=Zr.T,n=Ue.p;try{if(Zr.T=null,Ue.p=2,t)return t()}finally{Zr.T=e,Ue.p=n,Ue.d.f()}};He.preconnect=function(t,e){typeof t=="string"&&(e?(e=e.crossOrigin,e=typeof e=="string"?e==="use-credentials"?e:"":void 0):e=null,Ue.d.C(t,e))};He.prefetchDNS=function(t){typeof t=="string"&&Ue.d.D(t)};He.preinit=function(t,e){if(typeof t=="string"&&e&&typeof e.as=="string"){var n=e.as,i=So(n,e.crossOrigin),l=typeof e.integrity=="string"?e.integrity:void 0,r=typeof e.fetchPriority=="string"?e.fetchPriority:void 0;n==="style"?Ue.d.S(t,typeof e.precedence=="string"?e.precedence:void 0,{crossOrigin:i,integrity:l,fetchPriority:r}):n==="script"&&Ue.d.X(t,{crossOrigin:i,integrity:l,fetchPriority:r,nonce:typeof e.nonce=="string"?e.nonce:void 0})}};He.preinitModule=function(t,e){if(typeof t=="string")if(typeof e=="object"&&e!==null){if(e.as==null||e.as==="script"){var n=So(e.as,e.crossOrigin);Ue.d.M(t,{crossOrigin:n,integrity:typeof e.integrity=="string"?e.integrity:void 0,nonce:typeof e.nonce=="string"?e.nonce:void 0})}}else e==null&&Ue.d.M(t)};He.preload=function(t,e){if(typeof t=="string"&&typeof e=="object"&&e!==null&&typeof e.as=="string"){var n=e.as,i=So(n,e.crossOrigin);Ue.d.L(t,n,{crossOrigin:i,integrity:typeof e.integrity=="string"?e.integrity:void 0,nonce:typeof e.nonce=="string"?e.nonce:void 0,type:typeof e.type=="string"?e.type:void 0,fetchPriority:typeof e.fetchPriority=="string"?e.fetchPriority:void 0,referrerPolicy:typeof e.referrerPolicy=="string"?e.referrerPolicy:void 0,imageSrcSet:typeof e.imageSrcSet=="string"?e.imageSrcSet:void 0,imageSizes:typeof e.imageSizes=="string"?e.imageSizes:void 0,media:typeof e.media=="string"?e.media:void 0})}};He.preloadModule=function(t,e){if(typeof t=="string")if(e){var n=So(e.as,e.crossOrigin);Ue.d.m(t,{as:typeof e.as=="string"&&e.as!=="script"?e.as:void 0,crossOrigin:n,integrity:typeof e.integrity=="string"?e.integrity:void 0})}else Ue.d.m(t)};He.requestFormReset=function(t){Ue.d.r(t)};He.unstable_batchedUpdates=function(t,e){return t(e)};He.useFormState=function(t,e,n){return Zr.H.useFormState(t,e,n)};He.useFormStatus=function(){return Zr.H.useHostTransitionStatus()};He.version="19.1.1"});var Gs=Be((u2,Rm)=>{"use strict";function Cm(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Cm)}catch(t){console.error(t)}}Cm(),Rm.exports=Am()});var Mb=Be(Vu=>{"use strict";var pe=Em(),Ph=le(),Ax=Gs();function M(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function Jh(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function La(t){var e=t,n=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,(e.flags&4098)!==0&&(n=e.return),t=e.return;while(t)}return e.tag===3?n:null}function Wh(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function Nm(t){if(La(t)!==t)throw Error(M(188))}function Cx(t){var e=t.alternate;if(!e){if(e=La(t),e===null)throw Error(M(188));return e!==t?null:t}for(var n=t,i=e;;){var l=n.return;if(l===null)break;var r=l.alternate;if(r===null){if(i=l.return,i!==null){n=i;continue}break}if(l.child===r.child){for(r=l.child;r;){if(r===n)return Nm(l),t;if(r===i)return Nm(l),e;r=r.sibling}throw Error(M(188))}if(n.return!==i.return)n=l,i=r;else{for(var a=!1,o=l.child;o;){if(o===n){a=!0,n=l,i=r;break}if(o===i){a=!0,i=l,n=r;break}o=o.sibling}if(!a){for(o=r.child;o;){if(o===n){a=!0,n=r,i=l;break}if(o===i){a=!0,i=r,n=l;break}o=o.sibling}if(!a)throw Error(M(189))}}if(n.alternate!==i)throw Error(M(190))}if(n.tag!==3)throw Error(M(188));return n.stateNode.current===n?t:e}function $h(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=$h(t),e!==null)return e;t=t.sibling}return null}var Lt=Object.assign,Rx=Symbol.for("react.element"),ko=Symbol.for("react.transitional.element"),ia=Symbol.for("react.portal"),Xl=Symbol.for("react.fragment"),tg=Symbol.for("react.strict_mode"),Tc=Symbol.for("react.profiler"),Nx=Symbol.for("react.provider"),eg=Symbol.for("react.consumer"),Pn=Symbol.for("react.context"),Sf=Symbol.for("react.forward_ref"),Ac=Symbol.for("react.suspense"),Cc=Symbol.for("react.suspense_list"),kf=Symbol.for("react.memo"),yi=Symbol.for("react.lazy");Symbol.for("react.scope");var Rc=Symbol.for("react.activity");Symbol.for("react.legacy_hidden");Symbol.for("react.tracing_marker");var Mx=Symbol.for("react.memo_cache_sentinel");Symbol.for("react.view_transition");var Mm=Symbol.iterator;function Kr(t){return t===null||typeof t!="object"?null:(t=Mm&&t[Mm]||t["@@iterator"],typeof t=="function"?t:null)}var Dx=Symbol.for("react.client.reference");function Nc(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===Dx?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case Xl:return"Fragment";case Tc:return"Profiler";case tg:return"StrictMode";case Ac:return"Suspense";case Cc:return"SuspenseList";case Rc:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case ia:return"Portal";case Pn:return(t.displayName||"Context")+".Provider";case eg:return(t._context.displayName||"Context")+".Consumer";case Sf:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case kf:return e=t.displayName||null,e!==null?e:Nc(t.type)||"Memo";case yi:e=t._payload,t=t._init;try{return Nc(t(e))}catch{}}return null}var la=Array.isArray,J=Ph.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,wt=Ax.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,il={pending:!1,data:null,method:null,action:null},Mc=[],Gl=-1;function Bn(t){return{current:t}}function ye(t){0>Gl||(t.current=Mc[Gl],Mc[Gl]=null,Gl--)}function It(t,e){Gl++,Mc[Gl]=t.current,t.current=e}var _n=Bn(null),Sa=Bn(null),Ci=Bn(null),Wo=Bn(null);function $o(t,e){switch(It(Ci,e),It(Sa,t),It(_n,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?Bh(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=Bh(e),t=bb(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}ye(_n),It(_n,t)}function pr(){ye(_n),ye(Sa),ye(Ci)}function Dc(t){t.memoizedState!==null&&It(Wo,t);var e=_n.current,n=bb(e,t.type);e!==n&&(It(Sa,t),It(_n,n))}function tu(t){Sa.current===t&&(ye(_n),ye(Sa)),Wo.current===t&&(ye(Wo),Da._currentValue=il)}var zc=Object.prototype.hasOwnProperty,wf=pe.unstable_scheduleCallback,Zs=pe.unstable_cancelCallback,zx=pe.unstable_shouldYield,_x=pe.unstable_requestPaint,On=pe.unstable_now,Ox=pe.unstable_getCurrentPriorityLevel,ng=pe.unstable_ImmediatePriority,ig=pe.unstable_UserBlockingPriority,eu=pe.unstable_NormalPriority,Lx=pe.unstable_LowPriority,lg=pe.unstable_IdlePriority,Bx=pe.log,Ux=pe.unstable_setDisableYieldValue,Ba=null,tn=null;function wi(t){if(typeof Bx=="function"&&Ux(t),tn&&typeof tn.setStrictMode=="function")try{tn.setStrictMode(Ba,t)}catch{}}var en=Math.clz32?Math.clz32:Ix,Hx=Math.log,qx=Math.LN2;function Ix(t){return t>>>=0,t===0?32:31-(Hx(t)/qx|0)|0}var wo=256,Eo=4194304;function tl(t){var e=t&42;if(e!==0)return e;switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function Ru(t,e,n){var i=t.pendingLanes;if(i===0)return 0;var l=0,r=t.suspendedLanes,a=t.pingedLanes;t=t.warmLanes;var o=i&134217727;return o!==0?(i=o&~r,i!==0?l=tl(i):(a&=o,a!==0?l=tl(a):n||(n=o&~t,n!==0&&(l=tl(n))))):(o=i&~r,o!==0?l=tl(o):a!==0?l=tl(a):n||(n=i&~t,n!==0&&(l=tl(n)))),l===0?0:e!==0&&e!==l&&(e&r)===0&&(r=l&-l,n=e&-e,r>=n||r===32&&(n&4194048)!==0)?e:l}function Ua(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function jx(t,e){switch(t){case 1:case 2:case 4:case 8:case 64:return e+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function rg(){var t=wo;return wo<<=1,(wo&4194048)===0&&(wo=256),t}function ag(){var t=Eo;return Eo<<=1,(Eo&62914560)===0&&(Eo=4194304),t}function Ks(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function Ha(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function Yx(t,e,n,i,l,r){var a=t.pendingLanes;t.pendingLanes=n,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=n,t.entangledLanes&=n,t.errorRecoveryDisabledLanes&=n,t.shellSuspendCounter=0;var o=t.entanglements,u=t.expirationTimes,s=t.hiddenUpdates;for(n=a&~n;0<n;){var c=31-en(n),f=1<<c;o[c]=0,u[c]=-1;var d=s[c];if(d!==null)for(s[c]=null,c=0;c<d.length;c++){var p=d[c];p!==null&&(p.lane&=-536870913)}n&=~f}i!==0&&og(t,i,0),r!==0&&l===0&&t.tag!==0&&(t.suspendedLanes|=r&~(a&~e))}function og(t,e,n){t.pendingLanes|=e,t.suspendedLanes&=~e;var i=31-en(e);t.entangledLanes|=e,t.entanglements[i]=t.entanglements[i]|1073741824|n&4194090}function ug(t,e){var n=t.entangledLanes|=e;for(t=t.entanglements;n;){var i=31-en(n),l=1<<i;l&e|t[i]&e&&(t[i]|=e),n&=~l}}function Ef(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function Tf(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function sg(){var t=wt.p;return t!==0?t:(t=window.event,t===void 0?32:Rb(t.type))}function Vx(t,e){var n=wt.p;try{return wt.p=t,e()}finally{wt.p=n}}var Hi=Math.random().toString(36).slice(2),Ce="__reactFiber$"+Hi,Ge="__reactProps$"+Hi,wr="__reactContainer$"+Hi,_c="__reactEvents$"+Hi,Fx="__reactListeners$"+Hi,Qx="__reactHandles$"+Hi,Dm="__reactResources$"+Hi,qa="__reactMarker$"+Hi;function Af(t){delete t[Ce],delete t[Ge],delete t[_c],delete t[Fx],delete t[Qx]}function Zl(t){var e=t[Ce];if(e)return e;for(var n=t.parentNode;n;){if(e=n[wr]||n[Ce]){if(n=e.alternate,e.child!==null||n!==null&&n.child!==null)for(t=qh(t);t!==null;){if(n=t[Ce])return n;t=qh(t)}return e}t=n,n=t.parentNode}return null}function Er(t){if(t=t[Ce]||t[wr]){var e=t.tag;if(e===5||e===6||e===13||e===26||e===27||e===3)return t}return null}function ra(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(M(33))}function lr(t){var e=t[Dm];return e||(e=t[Dm]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function he(t){t[qa]=!0}var cg=new Set,fg={};function ml(t,e){dr(t,e),dr(t+"Capture",e)}function dr(t,e){for(fg[t]=e,t=0;t<e.length;t++)cg.add(e[t])}var Xx=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),zm={},_m={};function Gx(t){return zc.call(_m,t)?!0:zc.call(zm,t)?!1:Xx.test(t)?_m[t]=!0:(zm[t]=!0,!1)}function qo(t,e,n){if(Gx(e))if(n===null)t.removeAttribute(e);else{switch(typeof n){case"undefined":case"function":case"symbol":t.removeAttribute(e);return;case"boolean":var i=e.toLowerCase().slice(0,5);if(i!=="data-"&&i!=="aria-"){t.removeAttribute(e);return}}t.setAttribute(e,""+n)}}function To(t,e,n){if(n===null)t.removeAttribute(e);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(e);return}t.setAttribute(e,""+n)}}function Xn(t,e,n,i){if(i===null)t.removeAttribute(n);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(n);return}t.setAttributeNS(e,n,""+i)}}var Ps,Om;function Vl(t){if(Ps===void 0)try{throw Error()}catch(n){var e=n.stack.trim().match(/\n( *(at )?)/);Ps=e&&e[1]||"",Om=-1<n.stack.indexOf(`
|
|
2
2
|
at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
3
|
-
`+
|
|
3
|
+
`+Ps+t+Om}var Js=!1;function Ws(t,e){if(!t||Js)return"";Js=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var i={DetermineComponentFrameRoot:function(){try{if(e){var f=function(){throw Error()};if(Object.defineProperty(f.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(f,[])}catch(p){var d=p}Reflect.construct(t,[],f)}else{try{f.call()}catch(p){d=p}t.call(f.prototype)}}else{try{throw Error()}catch(p){d=p}(f=t())&&typeof f.catch=="function"&&f.catch(function(){})}}catch(p){if(p&&d&&typeof p.stack=="string")return[p.stack,d.stack]}return[null,null]}};i.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var l=Object.getOwnPropertyDescriptor(i.DetermineComponentFrameRoot,"name");l&&l.configurable&&Object.defineProperty(i.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var r=i.DetermineComponentFrameRoot(),a=r[0],o=r[1];if(a&&o){var u=a.split(`
|
|
4
4
|
`),s=o.split(`
|
|
5
|
-
`);for(i=
|
|
6
|
-
`+u[
|
|
5
|
+
`);for(l=i=0;i<u.length&&!u[i].includes("DetermineComponentFrameRoot");)i++;for(;l<s.length&&!s[l].includes("DetermineComponentFrameRoot");)l++;if(i===u.length||l===s.length)for(i=u.length-1,l=s.length-1;1<=i&&0<=l&&u[i]!==s[l];)l--;for(;1<=i&&0<=l;i--,l--)if(u[i]!==s[l]){if(i!==1||l!==1)do if(i--,l--,0>l||u[i]!==s[l]){var c=`
|
|
6
|
+
`+u[i].replace(" at new "," at ");return t.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",t.displayName)),c}while(1<=i&&0<=l);break}}}finally{Js=!1,Error.prepareStackTrace=n}return(n=t?t.displayName||t.name:"")?Vl(n):""}function Zx(t){switch(t.tag){case 26:case 27:case 5:return Vl(t.type);case 16:return Vl("Lazy");case 13:return Vl("Suspense");case 19:return Vl("SuspenseList");case 0:case 15:return Ws(t.type,!1);case 11:return Ws(t.type.render,!1);case 1:return Ws(t.type,!0);case 31:return Vl("Activity");default:return""}}function Lm(t){try{var e="";do e+=Zx(t),t=t.return;while(t);return e}catch(n){return`
|
|
7
7
|
Error generating stack: `+n.message+`
|
|
8
|
-
`+n.stack}}function ln(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function og(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function Zx(t){var e=og(t)?"checked":"value",n=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),l=""+t[e];if(!t.hasOwnProperty(e)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,r=n.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return i.call(this)},set:function(a){l=""+a,r.call(this,a)}}),Object.defineProperty(t,e,{enumerable:n.enumerable}),{getValue:function(){return l},setValue:function(a){l=""+a},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function Wo(t){t._valueTracker||(t._valueTracker=Zx(t))}function ug(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),l="";return t&&(l=og(t)?t.checked?"true":"false":t.value),t=l,t!==n?(e.setValue(t),!0):!1}function $o(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var Kx=/[\n"\\]/g;function on(t){return t.replace(Kx,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function Nc(t,e,n,l,i,r,a,o){t.name="",a!=null&&typeof a!="function"&&typeof a!="symbol"&&typeof a!="boolean"?t.type=a:t.removeAttribute("type"),e!=null?a==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+ln(e)):t.value!==""+ln(e)&&(t.value=""+ln(e)):a!=="submit"&&a!=="reset"||t.removeAttribute("value"),e!=null?zc(t,a,ln(e)):n!=null?zc(t,a,ln(n)):l!=null&&t.removeAttribute("value"),i==null&&r!=null&&(t.defaultChecked=!!r),i!=null&&(t.checked=i&&typeof i!="function"&&typeof i!="symbol"),o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"?t.name=""+ln(o):t.removeAttribute("name")}function sg(t,e,n,l,i,r,a,o){if(r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"&&(t.type=r),e!=null||n!=null){if(!(r!=="submit"&&r!=="reset"||e!=null))return;n=n!=null?""+ln(n):"",e=e!=null?""+ln(e):n,o||e===t.value||(t.value=e),t.defaultValue=e}l=l??i,l=typeof l!="function"&&typeof l!="symbol"&&!!l,t.checked=o?t.checked:!!l,t.defaultChecked=!!l,a!=null&&typeof a!="function"&&typeof a!="symbol"&&typeof a!="boolean"&&(t.name=a)}function zc(t,e,n){e==="number"&&$o(t.ownerDocument)===t||t.defaultValue===""+n||(t.defaultValue=""+n)}function er(t,e,n,l){if(t=t.options,e){e={};for(var i=0;i<n.length;i++)e["$"+n[i]]=!0;for(n=0;n<t.length;n++)i=e.hasOwnProperty("$"+t[n].value),t[n].selected!==i&&(t[n].selected=i),i&&l&&(t[n].defaultSelected=!0)}else{for(n=""+ln(n),e=null,i=0;i<t.length;i++){if(t[i].value===n){t[i].selected=!0,l&&(t[i].defaultSelected=!0);return}e!==null||t[i].disabled||(e=t[i])}e!==null&&(e.selected=!0)}}function cg(t,e,n){if(e!=null&&(e=""+ln(e),e!==t.value&&(t.value=e),n==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=n!=null?""+ln(n):""}function fg(t,e,n,l){if(e==null){if(l!=null){if(n!=null)throw Error(R(92));if(ta(l)){if(1<l.length)throw Error(R(93));l=l[0]}n=l}n==null&&(n=""),e=n}n=ln(e),t.defaultValue=n,l=t.textContent,l===n&&l!==""&&l!==null&&(t.value=l)}function cr(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var Px=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Nd(t,e,n){var l=e.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?l?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":l?t.setProperty(e,n):typeof n!="number"||n===0||Px.has(e)?e==="float"?t.cssFloat=n:t[e]=(""+n).trim():t[e]=n+"px"}function pg(t,e,n){if(e!=null&&typeof e!="object")throw Error(R(62));if(t=t.style,n!=null){for(var l in n)!n.hasOwnProperty(l)||e!=null&&e.hasOwnProperty(l)||(l.indexOf("--")===0?t.setProperty(l,""):l==="float"?t.cssFloat="":t[l]="");for(var i in e)l=e[i],e.hasOwnProperty(i)&&n[i]!==l&&Nd(t,i,l)}else for(var r in e)e.hasOwnProperty(r)&&Nd(t,r,e[r])}function Tf(t){if(t.indexOf("-")===-1)return!1;switch(t){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 Jx=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Wx=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Uo(t){return Wx.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}var _c=null;function wf(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Qi=null,nr=null;function zd(t){var e=xr(t);if(e&&(t=e.stateNode)){var n=t[Ie]||null;t:switch(t=e.stateNode,e.type){case"input":if(Nc(t,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),e=n.name,n.type==="radio"&&e!=null){for(n=t;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+on(""+e)+'"][type="radio"]'),e=0;e<n.length;e++){var l=n[e];if(l!==t&&l.form===t.form){var i=l[Ie]||null;if(!i)throw Error(R(90));Nc(l,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(e=0;e<n.length;e++)l=n[e],l.form===t.form&&ug(l)}break t;case"textarea":cg(t,n.value,n.defaultValue);break t;case"select":e=n.value,e!=null&&er(t,!!n.multiple,e,!1)}}}var Ps=!1;function mg(t,e,n){if(Ps)return t(e,n);Ps=!0;try{var l=t(e);return l}finally{if(Ps=!1,(Qi!==null||nr!==null)&&(Ou(),Qi&&(e=Qi,t=nr,nr=Qi=null,zd(e),t)))for(e=0;e<t.length;e++)zd(t[e])}}function va(t,e){var n=t.stateNode;if(n===null)return null;var l=n[Ie]||null;if(l===null)return null;n=l[e];t:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(t=t.type,l=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!l;break t;default:t=!1}if(t)return null;if(n&&typeof n!="function")throw Error(R(231,e,typeof n));return n}var Wn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Oc=!1;if(Wn)try{Ui={},Object.defineProperty(Ui,"passive",{get:function(){Oc=!0}}),window.addEventListener("test",Ui,Ui),window.removeEventListener("test",Ui,Ui)}catch{Oc=!1}var Ui,yl=null,Af=null,Bo=null;function dg(){if(Bo)return Bo;var t,e=Af,n=e.length,l,i="value"in yl?yl.value:yl.textContent,r=i.length;for(t=0;t<n&&e[t]===i[t];t++);var a=n-t;for(l=1;l<=a&&e[n-l]===i[r-l];l++);return Bo=i.slice(t,1<l?1-l:void 0)}function Ho(t){var e=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function ko(){return!0}function _d(){return!1}function Ye(t){function e(n,l,i,r,a){this._reactName=n,this._targetInst=i,this.type=l,this.nativeEvent=r,this.target=a,this.currentTarget=null;for(var o in t)t.hasOwnProperty(o)&&(n=t[o],this[o]=n?n(r):r[o]);return this.isDefaultPrevented=(r.defaultPrevented!=null?r.defaultPrevented:r.returnValue===!1)?ko:_d,this.isPropagationStopped=_d,this}return Nt(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=ko)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=ko)},persist:function(){},isPersistent:ko}),e}var fi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},wu=Ye(fi),Ua=Nt({},fi,{view:0,detail:0}),$x=Ye(Ua),Js,Ws,Xr,Au=Nt({},Ua,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Cf,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==Xr&&(Xr&&t.type==="mousemove"?(Js=t.screenX-Xr.screenX,Ws=t.screenY-Xr.screenY):Ws=Js=0,Xr=t),Js)},movementY:function(t){return"movementY"in t?t.movementY:Ws}}),Od=Ye(Au),tS=Nt({},Au,{dataTransfer:0}),eS=Ye(tS),nS=Nt({},Ua,{relatedTarget:0}),$s=Ye(nS),lS=Nt({},fi,{animationName:0,elapsedTime:0,pseudoElement:0}),iS=Ye(lS),rS=Nt({},fi,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),aS=Ye(rS),oS=Nt({},fi,{data:0}),Ld=Ye(oS),uS={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},sS={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"},cS={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function fS(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=cS[t])?!!e[t]:!1}function Cf(){return fS}var pS=Nt({},Ua,{key:function(t){if(t.key){var e=uS[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=Ho(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?sS[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Cf,charCode:function(t){return t.type==="keypress"?Ho(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Ho(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),mS=Ye(pS),dS=Nt({},Au,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ud=Ye(dS),hS=Nt({},Ua,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Cf}),gS=Ye(hS),yS=Nt({},fi,{propertyName:0,elapsedTime:0,pseudoElement:0}),vS=Ye(yS),bS=Nt({},Au,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),xS=Ye(bS),SS=Nt({},fi,{newState:0,oldState:0}),kS=Ye(SS),ES=[9,13,27,32],Rf=Wn&&"CompositionEvent"in window,la=null;Wn&&"documentMode"in document&&(la=document.documentMode);var TS=Wn&&"TextEvent"in window&&!la,hg=Wn&&(!Rf||la&&8<la&&11>=la),Bd=" ",Hd=!1;function gg(t,e){switch(t){case"keyup":return ES.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function yg(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Xi=!1;function wS(t,e){switch(t){case"compositionend":return yg(e);case"keypress":return e.which!==32?null:(Hd=!0,Bd);case"textInput":return t=e.data,t===Bd&&Hd?null:t;default:return null}}function AS(t,e){if(Xi)return t==="compositionend"||!Rf&&gg(t,e)?(t=dg(),Bo=Af=yl=null,Xi=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return hg&&e.locale!=="ko"?null:e.data;default:return null}}var CS={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 qd(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!CS[t.type]:e==="textarea"}function vg(t,e,n,l){Qi?nr?nr.push(l):nr=[l]:Qi=l,e=yu(e,"onChange"),0<e.length&&(n=new wu("onChange","change",null,n,l),t.push({event:n,listeners:e}))}var ia=null,ba=null;function RS(t){c1(t,0)}function Cu(t){var e=ea(t);if(ug(e))return t}function jd(t,e){if(t==="change")return e}var bg=!1;Wn&&(Wn?(To="oninput"in document,To||(tc=document.createElement("div"),tc.setAttribute("oninput","return;"),To=typeof tc.oninput=="function"),Eo=To):Eo=!1,bg=Eo&&(!document.documentMode||9<document.documentMode));var Eo,To,tc;function Id(){ia&&(ia.detachEvent("onpropertychange",xg),ba=ia=null)}function xg(t){if(t.propertyName==="value"&&Cu(ba)){var e=[];vg(e,ba,t,wf(t)),mg(RS,e)}}function MS(t,e,n){t==="focusin"?(Id(),ia=e,ba=n,ia.attachEvent("onpropertychange",xg)):t==="focusout"&&Id()}function DS(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Cu(ba)}function NS(t,e){if(t==="click")return Cu(e)}function zS(t,e){if(t==="input"||t==="change")return Cu(e)}function _S(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var We=typeof Object.is=="function"?Object.is:_S;function xa(t,e){if(We(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var n=Object.keys(t),l=Object.keys(e);if(n.length!==l.length)return!1;for(l=0;l<n.length;l++){var i=n[l];if(!Mc.call(e,i)||!We(t[i],e[i]))return!1}return!0}function Yd(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Vd(t,e){var n=Yd(t);t=0;for(var l;n;){if(n.nodeType===3){if(l=t+n.textContent.length,t<=e&&l>=e)return{node:n,offset:e-t};t=l}t:{for(;n;){if(n.nextSibling){n=n.nextSibling;break t}n=n.parentNode}n=void 0}n=Yd(n)}}function Sg(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?Sg(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function kg(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=$o(t.document);e instanceof t.HTMLIFrameElement;){try{var n=typeof e.contentWindow.location.href=="string"}catch{n=!1}if(n)t=e.contentWindow;else break;e=$o(t.document)}return e}function Mf(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}var OS=Wn&&"documentMode"in document&&11>=document.documentMode,Gi=null,Lc=null,ra=null,Uc=!1;function Fd(t,e,n){var l=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Uc||Gi==null||Gi!==$o(l)||(l=Gi,"selectionStart"in l&&Mf(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),ra&&xa(ra,l)||(ra=l,l=yu(Lc,"onSelect"),0<l.length&&(e=new wu("onSelect","select",null,e,n),t.push({event:e,listeners:l}),e.target=Gi)))}function Kl(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var Zi={animationend:Kl("Animation","AnimationEnd"),animationiteration:Kl("Animation","AnimationIteration"),animationstart:Kl("Animation","AnimationStart"),transitionrun:Kl("Transition","TransitionRun"),transitionstart:Kl("Transition","TransitionStart"),transitioncancel:Kl("Transition","TransitionCancel"),transitionend:Kl("Transition","TransitionEnd")},ec={},Eg={};Wn&&(Eg=document.createElement("div").style,"AnimationEvent"in window||(delete Zi.animationend.animation,delete Zi.animationiteration.animation,delete Zi.animationstart.animation),"TransitionEvent"in window||delete Zi.transitionend.transition);function pi(t){if(ec[t])return ec[t];if(!Zi[t])return t;var e=Zi[t],n;for(n in e)if(e.hasOwnProperty(n)&&n in Eg)return ec[t]=e[n];return t}var Tg=pi("animationend"),wg=pi("animationiteration"),Ag=pi("animationstart"),LS=pi("transitionrun"),US=pi("transitionstart"),BS=pi("transitioncancel"),Cg=pi("transitionend"),Rg=new Map,Bc="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Bc.push("scrollEnd");function vn(t,e){Rg.set(t,e),ci(e,[t])}var Qd=new WeakMap;function un(t,e){if(typeof t=="object"&&t!==null){var n=Qd.get(t);return n!==void 0?n:(e={value:t,source:e,stack:Dd(e)},Qd.set(t,e),e)}return{value:t,source:e,stack:Dd(e)}}var nn=[],Ki=0,Df=0;function Ru(){for(var t=Ki,e=Df=Ki=0;e<t;){var n=nn[e];nn[e++]=null;var l=nn[e];nn[e++]=null;var i=nn[e];nn[e++]=null;var r=nn[e];if(nn[e++]=null,l!==null&&i!==null){var a=l.pending;a===null?i.next=i:(i.next=a.next,a.next=i),l.pending=i}r!==0&&Mg(n,i,r)}}function Mu(t,e,n,l){nn[Ki++]=t,nn[Ki++]=e,nn[Ki++]=n,nn[Ki++]=l,Df|=l,t.lanes|=l,t=t.alternate,t!==null&&(t.lanes|=l)}function Nf(t,e,n,l){return Mu(t,e,n,l),tu(t)}function Sr(t,e){return Mu(t,null,null,e),tu(t)}function Mg(t,e,n){t.lanes|=n;var l=t.alternate;l!==null&&(l.lanes|=n);for(var i=!1,r=t.return;r!==null;)r.childLanes|=n,l=r.alternate,l!==null&&(l.childLanes|=n),r.tag===22&&(t=r.stateNode,t===null||t._visibility&1||(i=!0)),t=r,r=r.return;return t.tag===3?(r=t.stateNode,i&&e!==null&&(i=31-Ke(n),t=r.hiddenUpdates,l=t[i],l===null?t[i]=[e]:l.push(e),e.lane=n|536870912),r):null}function tu(t){if(50<ha)throw ha=0,rf=null,Error(R(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var Pi={};function HS(t,e,n,l){this.tag=t,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ge(t,e,n,l){return new HS(t,e,n,l)}function zf(t){return t=t.prototype,!(!t||!t.isReactComponent)}function Pn(t,e){var n=t.alternate;return n===null?(n=Ge(t.tag,e,t.key,t.mode),n.elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.type=t.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=t.flags&65011712,n.childLanes=t.childLanes,n.lanes=t.lanes,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n.refCleanup=t.refCleanup,n}function Dg(t,e){t.flags&=65011714;var n=t.alternate;return n===null?(t.childLanes=0,t.lanes=e,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=n.childLanes,t.lanes=n.lanes,t.child=n.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=n.memoizedProps,t.memoizedState=n.memoizedState,t.updateQueue=n.updateQueue,t.type=n.type,e=n.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),t}function qo(t,e,n,l,i,r){var a=0;if(l=t,typeof t=="function")zf(t)&&(a=1);else if(typeof t=="string")a=Hk(t,n,Dn.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case wc:return t=Ge(31,n,e,i),t.elementType=wc,t.lanes=r,t;case Yi:return ti(n.children,i,r,e);case Kh:a=8,i|=24;break;case kc:return t=Ge(12,n,e,i|2),t.elementType=kc,t.lanes=r,t;case Ec:return t=Ge(13,n,e,i),t.elementType=Ec,t.lanes=r,t;case Tc:return t=Ge(19,n,e,i),t.elementType=Tc,t.lanes=r,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case Rx:case Qn:a=10;break t;case Ph:a=9;break t;case vf:a=11;break t;case bf:a=14;break t;case cl:a=16,l=null;break t}a=29,n=Error(R(130,t===null?"null":typeof t,"")),l=null}return e=Ge(a,n,e,i),e.elementType=t,e.type=l,e.lanes=r,e}function ti(t,e,n,l){return t=Ge(7,t,l,e),t.lanes=n,t}function nc(t,e,n){return t=Ge(6,t,null,e),t.lanes=n,t}function lc(t,e,n){return e=Ge(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var Ji=[],Wi=0,eu=null,nu=0,rn=[],an=0,ei=null,Xn=1,Gn="";function Jl(t,e){Ji[Wi++]=nu,Ji[Wi++]=eu,eu=t,nu=e}function Ng(t,e,n){rn[an++]=Xn,rn[an++]=Gn,rn[an++]=ei,ei=t;var l=Xn;t=Gn;var i=32-Ke(l)-1;l&=~(1<<i),n+=1;var r=32-Ke(e)+i;if(30<r){var a=i-i%5;r=(l&(1<<a)-1).toString(32),l>>=a,i-=a,Xn=1<<32-Ke(e)+i|n<<i|l,Gn=r+t}else Xn=1<<r|n<<i|l,Gn=t}function _f(t){t.return!==null&&(Jl(t,1),Ng(t,1,0))}function Of(t){for(;t===eu;)eu=Ji[--Wi],Ji[Wi]=null,nu=Ji[--Wi],Ji[Wi]=null;for(;t===ei;)ei=rn[--an],rn[an]=null,Gn=rn[--an],rn[an]=null,Xn=rn[--an],rn[an]=null}var Oe=null,Vt=null,yt=!1,ni=null,Rn=!1,Hc=Error(R(519));function ai(t){var e=Error(R(418,""));throw Sa(un(e,t)),Hc}function Xd(t){var e=t.stateNode,n=t.type,l=t.memoizedProps;switch(e[ke]=t,e[Ie]=l,n){case"dialog":ut("cancel",e),ut("close",e);break;case"iframe":case"object":case"embed":ut("load",e);break;case"video":case"audio":for(n=0;n<Ta.length;n++)ut(Ta[n],e);break;case"source":ut("error",e);break;case"img":case"image":case"link":ut("error",e),ut("load",e);break;case"details":ut("toggle",e);break;case"input":ut("invalid",e),sg(e,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0),Wo(e);break;case"select":ut("invalid",e);break;case"textarea":ut("invalid",e),fg(e,l.value,l.defaultValue,l.children),Wo(e)}n=l.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||e.textContent===""+n||l.suppressHydrationWarning===!0||p1(e.textContent,n)?(l.popover!=null&&(ut("beforetoggle",e),ut("toggle",e)),l.onScroll!=null&&ut("scroll",e),l.onScrollEnd!=null&&ut("scrollend",e),l.onClick!=null&&(e.onclick=Bu),e=!0):e=!1,e||ai(t)}function Gd(t){for(Oe=t.return;Oe;)switch(Oe.tag){case 5:case 13:Rn=!1;return;case 27:case 3:Rn=!0;return;default:Oe=Oe.return}}function Gr(t){if(t!==Oe)return!1;if(!yt)return Gd(t),yt=!0,!1;var e=t.tag,n;if((n=e!==3&&e!==27)&&((n=e===5)&&(n=t.type,n=!(n!=="form"&&n!=="button")||ff(t.type,t.memoizedProps)),n=!n),n&&Vt&&ai(t),Gd(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(R(317));t:{for(t=t.nextSibling,e=0;t;){if(t.nodeType===8)if(n=t.data,n==="/$"){if(e===0){Vt=yn(t.nextSibling);break t}e--}else n!=="$"&&n!=="$!"&&n!=="$?"||e++;t=t.nextSibling}Vt=null}}else e===27?(e=Vt,zl(t.type)?(t=df,df=null,Vt=t):Vt=e):Vt=Oe?yn(t.stateNode.nextSibling):null;return!0}function Ba(){Vt=Oe=null,yt=!1}function Zd(){var t=ni;return t!==null&&(je===null?je=t:je.push.apply(je,t),ni=null),t}function Sa(t){ni===null?ni=[t]:ni.push(t)}var qc=_n(null),mi=null,Zn=null;function pl(t,e,n){Ut(qc,e._currentValue),e._currentValue=n}function Jn(t){t._currentValue=qc.current,de(qc)}function jc(t,e,n){for(;t!==null;){var l=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,l!==null&&(l.childLanes|=e)):l!==null&&(l.childLanes&e)!==e&&(l.childLanes|=e),t===n)break;t=t.return}}function Ic(t,e,n,l){var i=t.child;for(i!==null&&(i.return=t);i!==null;){var r=i.dependencies;if(r!==null){var a=i.child;r=r.firstContext;t:for(;r!==null;){var o=r;r=i;for(var u=0;u<e.length;u++)if(o.context===e[u]){r.lanes|=n,o=r.alternate,o!==null&&(o.lanes|=n),jc(r.return,n,t),l||(a=null);break t}r=o.next}}else if(i.tag===18){if(a=i.return,a===null)throw Error(R(341));a.lanes|=n,r=a.alternate,r!==null&&(r.lanes|=n),jc(a,n,t),a=null}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===t){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}}function Ha(t,e,n,l){t=null;for(var i=e,r=!1;i!==null;){if(!r){if((i.flags&524288)!==0)r=!0;else if((i.flags&262144)!==0)break}if(i.tag===10){var a=i.alternate;if(a===null)throw Error(R(387));if(a=a.memoizedProps,a!==null){var o=i.type;We(i.pendingProps.value,a.value)||(t!==null?t.push(o):t=[o])}}else if(i===Zo.current){if(a=i.alternate,a===null)throw Error(R(387));a.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(t!==null?t.push(Ca):t=[Ca])}i=i.return}t!==null&&Ic(e,t,n,l),e.flags|=262144}function lu(t){for(t=t.firstContext;t!==null;){if(!We(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function oi(t){mi=t,Zn=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function Ee(t){return zg(mi,t)}function wo(t,e){return mi===null&&oi(t),zg(t,e)}function zg(t,e){var n=e._currentValue;if(e={context:e,memoizedValue:n,next:null},Zn===null){if(t===null)throw Error(R(308));Zn=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else Zn=Zn.next=e;return n}var qS=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(n,l){t.push(l)}};this.abort=function(){e.aborted=!0,t.forEach(function(n){return n()})}},jS=ue.unstable_scheduleCallback,IS=ue.unstable_NormalPriority,ae={$$typeof:Qn,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Lf(){return{controller:new qS,data:new Map,refCount:0}}function qa(t){t.refCount--,t.refCount===0&&jS(IS,function(){t.controller.abort()})}var aa=null,Yc=0,fr=0,lr=null;function YS(t,e){if(aa===null){var n=aa=[];Yc=0,fr=ip(),lr={status:"pending",value:void 0,then:function(l){n.push(l)}}}return Yc++,e.then(Kd,Kd),e}function Kd(){if(--Yc===0&&aa!==null){lr!==null&&(lr.status="fulfilled");var t=aa;aa=null,fr=0,lr=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function VS(t,e){var n=[],l={status:"pending",value:null,reason:null,then:function(i){n.push(i)}};return t.then(function(){l.status="fulfilled",l.value=e;for(var i=0;i<n.length;i++)(0,n[i])(e)},function(i){for(l.status="rejected",l.reason=i,i=0;i<n.length;i++)(0,n[i])(void 0)}),l}var Pd=P.S;P.S=function(t,e){typeof e=="object"&&e!==null&&typeof e.then=="function"&&YS(t,e),Pd!==null&&Pd(t,e)};var li=_n(null);function Uf(){var t=li.current;return t!==null?t:Dt.pooledCache}function jo(t,e){e===null?Ut(li,li.current):Ut(li,e.pool)}function _g(){var t=Uf();return t===null?null:{parent:ae._currentValue,pool:t}}var ja=Error(R(460)),Og=Error(R(474)),Du=Error(R(542)),Vc={then:function(){}};function Jd(t){return t=t.status,t==="fulfilled"||t==="rejected"}function Ao(){}function Lg(t,e,n){switch(n=t[n],n===void 0?t.push(e):n!==e&&(e.then(Ao,Ao),e=n),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,$d(t),t;default:if(typeof e.status=="string")e.then(Ao,Ao);else{if(t=Dt,t!==null&&100<t.shellSuspendCounter)throw Error(R(482));t=e,t.status="pending",t.then(function(l){if(e.status==="pending"){var i=e;i.status="fulfilled",i.value=l}},function(l){if(e.status==="pending"){var i=e;i.status="rejected",i.reason=l}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,$d(t),t}throw oa=e,ja}}var oa=null;function Wd(){if(oa===null)throw Error(R(459));var t=oa;return oa=null,t}function $d(t){if(t===ja||t===Du)throw Error(R(483))}var fl=!1;function Bf(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Fc(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function Sl(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function kl(t,e,n){var l=t.updateQueue;if(l===null)return null;if(l=l.shared,(wt&2)!==0){var i=l.pending;return i===null?e.next=e:(e.next=i.next,i.next=e),l.pending=e,e=tu(t),Mg(t,null,n),e}return Mu(t,l,e,n),tu(t)}function ua(t,e,n){if(e=e.updateQueue,e!==null&&(e=e.shared,(n&4194048)!==0)){var l=e.lanes;l&=t.pendingLanes,n|=l,e.lanes=n,lg(t,n)}}function ic(t,e){var n=t.updateQueue,l=t.alternate;if(l!==null&&(l=l.updateQueue,n===l)){var i=null,r=null;if(n=n.firstBaseUpdate,n!==null){do{var a={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};r===null?i=r=a:r=r.next=a,n=n.next}while(n!==null);r===null?i=r=e:r=r.next=e}else i=r=e;n={baseState:l.baseState,firstBaseUpdate:i,lastBaseUpdate:r,shared:l.shared,callbacks:l.callbacks},t.updateQueue=n;return}t=n.lastBaseUpdate,t===null?n.firstBaseUpdate=e:t.next=e,n.lastBaseUpdate=e}var Qc=!1;function sa(){if(Qc){var t=lr;if(t!==null)throw t}}function ca(t,e,n,l){Qc=!1;var i=t.updateQueue;fl=!1;var r=i.firstBaseUpdate,a=i.lastBaseUpdate,o=i.shared.pending;if(o!==null){i.shared.pending=null;var u=o,s=u.next;u.next=null,a===null?r=s:a.next=s,a=u;var c=t.alternate;c!==null&&(c=c.updateQueue,o=c.lastBaseUpdate,o!==a&&(o===null?c.firstBaseUpdate=s:o.next=s,c.lastBaseUpdate=u))}if(r!==null){var f=i.baseState;a=0,c=s=u=null,o=r;do{var m=o.lane&-536870913,p=m!==o.lane;if(p?(pt&m)===m:(l&m)===m){m!==0&&m===fr&&(Qc=!0),c!==null&&(c=c.next={lane:0,tag:o.tag,payload:o.payload,callback:null,next:null});t:{var g=t,v=o;m=e;var k=n;switch(v.tag){case 1:if(g=v.payload,typeof g=="function"){f=g.call(k,f,m);break t}f=g;break t;case 3:g.flags=g.flags&-65537|128;case 0:if(g=v.payload,m=typeof g=="function"?g.call(k,f,m):g,m==null)break t;f=Nt({},f,m);break t;case 2:fl=!0}}m=o.callback,m!==null&&(t.flags|=64,p&&(t.flags|=8192),p=i.callbacks,p===null?i.callbacks=[m]:p.push(m))}else p={lane:m,tag:o.tag,payload:o.payload,callback:o.callback,next:null},c===null?(s=c=p,u=f):c=c.next=p,a|=m;if(o=o.next,o===null){if(o=i.shared.pending,o===null)break;p=o,o=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(!0);c===null&&(u=f),i.baseState=u,i.firstBaseUpdate=s,i.lastBaseUpdate=c,r===null&&(i.shared.lanes=0),Dl|=a,t.lanes=a,t.memoizedState=f}}function Ug(t,e){if(typeof t!="function")throw Error(R(191,t));t.call(e)}function Bg(t,e){var n=t.callbacks;if(n!==null)for(t.callbacks=null,t=0;t<n.length;t++)Ug(n[t],e)}var pr=_n(null),iu=_n(0);function th(t,e){t=el,Ut(iu,t),Ut(pr,e),el=t|e.baseLanes}function Xc(){Ut(iu,el),Ut(pr,pr.current)}function Hf(){el=iu.current,de(pr),de(iu)}var Rl=0,rt=null,Rt=null,te=null,ru=!1,ir=!1,ui=!1,au=0,ka=0,rr=null,FS=0;function Gt(){throw Error(R(321))}function qf(t,e){if(e===null)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!We(t[n],e[n]))return!1;return!0}function jf(t,e,n,l,i,r){return Rl=r,rt=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,P.H=t===null||t.memoizedState===null?dy:hy,ui=!1,r=n(l,i),ui=!1,ir&&(r=qg(e,n,l,i)),Hg(t),r}function Hg(t){P.H=ou;var e=Rt!==null&&Rt.next!==null;if(Rl=0,te=Rt=rt=null,ru=!1,ka=0,rr=null,e)throw Error(R(300));t===null||me||(t=t.dependencies,t!==null&&lu(t)&&(me=!0))}function qg(t,e,n,l){rt=t;var i=0;do{if(ir&&(rr=null),ka=0,ir=!1,25<=i)throw Error(R(301));if(i+=1,te=Rt=null,t.updateQueue!=null){var r=t.updateQueue;r.lastEffect=null,r.events=null,r.stores=null,r.memoCache!=null&&(r.memoCache.index=0)}P.H=JS,r=e(n,l)}while(ir);return r}function QS(){var t=P.H,e=t.useState()[0];return e=typeof e.then=="function"?Ia(e):e,t=t.useState()[0],(Rt!==null?Rt.memoizedState:null)!==t&&(rt.flags|=1024),e}function If(){var t=au!==0;return au=0,t}function Yf(t,e,n){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~n}function Vf(t){if(ru){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}ru=!1}Rl=0,te=Rt=rt=null,ir=!1,ka=au=0,rr=null}function He(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return te===null?rt.memoizedState=te=t:te=te.next=t,te}function ee(){if(Rt===null){var t=rt.alternate;t=t!==null?t.memoizedState:null}else t=Rt.next;var e=te===null?rt.memoizedState:te.next;if(e!==null)te=e,Rt=t;else{if(t===null)throw rt.alternate===null?Error(R(467)):Error(R(310));Rt=t,t={memoizedState:Rt.memoizedState,baseState:Rt.baseState,baseQueue:Rt.baseQueue,queue:Rt.queue,next:null},te===null?rt.memoizedState=te=t:te=te.next=t}return te}function Ff(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ia(t){var e=ka;return ka+=1,rr===null&&(rr=[]),t=Lg(rr,t,e),e=rt,(te===null?e.memoizedState:te.next)===null&&(e=e.alternate,P.H=e===null||e.memoizedState===null?dy:hy),t}function Nu(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return Ia(t);if(t.$$typeof===Qn)return Ee(t)}throw Error(R(438,String(t)))}function Qf(t){var e=null,n=rt.updateQueue;if(n!==null&&(e=n.memoCache),e==null){var l=rt.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(e={data:l.data.map(function(i){return i.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),n===null&&(n=Ff(),rt.updateQueue=n),n.memoCache=e,n=e.data[e.index],n===void 0)for(n=e.data[e.index]=Array(t),l=0;l<t;l++)n[l]=Mx;return e.index++,n}function $n(t,e){return typeof e=="function"?e(t):e}function Io(t){var e=ee();return Xf(e,Rt,t)}function Xf(t,e,n){var l=t.queue;if(l===null)throw Error(R(311));l.lastRenderedReducer=n;var i=t.baseQueue,r=l.pending;if(r!==null){if(i!==null){var a=i.next;i.next=r.next,r.next=a}e.baseQueue=i=r,l.pending=null}if(r=t.baseState,i===null)t.memoizedState=r;else{e=i.next;var o=a=null,u=null,s=e,c=!1;do{var f=s.lane&-536870913;if(f!==s.lane?(pt&f)===f:(Rl&f)===f){var m=s.revertLane;if(m===0)u!==null&&(u=u.next={lane:0,revertLane:0,action:s.action,hasEagerState:s.hasEagerState,eagerState:s.eagerState,next:null}),f===fr&&(c=!0);else if((Rl&m)===m){s=s.next,m===fr&&(c=!0);continue}else f={lane:0,revertLane:s.revertLane,action:s.action,hasEagerState:s.hasEagerState,eagerState:s.eagerState,next:null},u===null?(o=u=f,a=r):u=u.next=f,rt.lanes|=m,Dl|=m;f=s.action,ui&&n(r,f),r=s.hasEagerState?s.eagerState:n(r,f)}else m={lane:f,revertLane:s.revertLane,action:s.action,hasEagerState:s.hasEagerState,eagerState:s.eagerState,next:null},u===null?(o=u=m,a=r):u=u.next=m,rt.lanes|=f,Dl|=f;s=s.next}while(s!==null&&s!==e);if(u===null?a=r:u.next=o,!We(r,t.memoizedState)&&(me=!0,c&&(n=lr,n!==null)))throw n;t.memoizedState=r,t.baseState=a,t.baseQueue=u,l.lastRenderedState=r}return i===null&&(l.lanes=0),[t.memoizedState,l.dispatch]}function rc(t){var e=ee(),n=e.queue;if(n===null)throw Error(R(311));n.lastRenderedReducer=t;var l=n.dispatch,i=n.pending,r=e.memoizedState;if(i!==null){n.pending=null;var a=i=i.next;do r=t(r,a.action),a=a.next;while(a!==i);We(r,e.memoizedState)||(me=!0),e.memoizedState=r,e.baseQueue===null&&(e.baseState=r),n.lastRenderedState=r}return[r,l]}function jg(t,e,n){var l=rt,i=ee(),r=yt;if(r){if(n===void 0)throw Error(R(407));n=n()}else n=e();var a=!We((Rt||i).memoizedState,n);a&&(i.memoizedState=n,me=!0),i=i.queue;var o=Vg.bind(null,l,i,t);if(Ya(2048,8,o,[t]),i.getSnapshot!==e||a||te!==null&&te.memoizedState.tag&1){if(l.flags|=2048,mr(9,zu(),Yg.bind(null,l,i,n,e),null),Dt===null)throw Error(R(349));r||(Rl&124)!==0||Ig(l,e,n)}return n}function Ig(t,e,n){t.flags|=16384,t={getSnapshot:e,value:n},e=rt.updateQueue,e===null?(e=Ff(),rt.updateQueue=e,e.stores=[t]):(n=e.stores,n===null?e.stores=[t]:n.push(t))}function Yg(t,e,n,l){e.value=n,e.getSnapshot=l,Fg(e)&&Qg(t)}function Vg(t,e,n){return n(function(){Fg(e)&&Qg(t)})}function Fg(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!We(t,n)}catch{return!0}}function Qg(t){var e=Sr(t,2);e!==null&&Je(e,t,2)}function Gc(t){var e=He();if(typeof t=="function"){var n=t;if(t=n(),ui){gl(!0);try{n()}finally{gl(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:$n,lastRenderedState:t},e}function Xg(t,e,n,l){return t.baseState=n,Xf(t,Rt,typeof l=="function"?l:$n)}function XS(t,e,n,l,i){if(_u(t))throw Error(R(485));if(t=e.action,t!==null){var r={payload:i,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(a){r.listeners.push(a)}};P.T!==null?n(!0):r.isTransition=!1,l(r),n=e.pending,n===null?(r.next=e.pending=r,Gg(e,r)):(r.next=n.next,e.pending=n.next=r)}}function Gg(t,e){var n=e.action,l=e.payload,i=t.state;if(e.isTransition){var r=P.T,a={};P.T=a;try{var o=n(i,l),u=P.S;u!==null&&u(a,o),eh(t,e,o)}catch(s){Zc(t,e,s)}finally{P.T=r}}else try{r=n(i,l),eh(t,e,r)}catch(s){Zc(t,e,s)}}function eh(t,e,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(l){nh(t,e,l)},function(l){return Zc(t,e,l)}):nh(t,e,n)}function nh(t,e,n){e.status="fulfilled",e.value=n,Zg(e),t.state=n,e=t.pending,e!==null&&(n=e.next,n===e?t.pending=null:(n=n.next,e.next=n,Gg(t,n)))}function Zc(t,e,n){var l=t.pending;if(t.pending=null,l!==null){l=l.next;do e.status="rejected",e.reason=n,Zg(e),e=e.next;while(e!==l)}t.action=null}function Zg(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function Kg(t,e){return e}function lh(t,e){if(yt){var n=Dt.formState;if(n!==null){t:{var l=rt;if(yt){if(Vt){e:{for(var i=Vt,r=Rn;i.nodeType!==8;){if(!r){i=null;break e}if(i=yn(i.nextSibling),i===null){i=null;break e}}r=i.data,i=r==="F!"||r==="F"?i:null}if(i){Vt=yn(i.nextSibling),l=i.data==="F!";break t}}ai(l)}l=!1}l&&(e=n[0])}}return n=He(),n.memoizedState=n.baseState=e,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Kg,lastRenderedState:e},n.queue=l,n=fy.bind(null,rt,l),l.dispatch=n,l=Gc(!1),r=Pf.bind(null,rt,!1,l.queue),l=He(),i={state:e,dispatch:null,action:t,pending:null},l.queue=i,n=XS.bind(null,rt,i,r,n),i.dispatch=n,l.memoizedState=t,[e,n,!1]}function ih(t){var e=ee();return Pg(e,Rt,t)}function Pg(t,e,n){if(e=Xf(t,e,Kg)[0],t=Io($n)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var l=Ia(e)}catch(a){throw a===ja?Du:a}else l=e;e=ee();var i=e.queue,r=i.dispatch;return n!==e.memoizedState&&(rt.flags|=2048,mr(9,zu(),GS.bind(null,i,n),null)),[l,r,t]}function GS(t,e){t.action=e}function rh(t){var e=ee(),n=Rt;if(n!==null)return Pg(e,n,t);ee(),e=e.memoizedState,n=ee();var l=n.queue.dispatch;return n.memoizedState=t,[e,l,!1]}function mr(t,e,n,l){return t={tag:t,create:n,deps:l,inst:e,next:null},e=rt.updateQueue,e===null&&(e=Ff(),rt.updateQueue=e),n=e.lastEffect,n===null?e.lastEffect=t.next=t:(l=n.next,n.next=t,t.next=l,e.lastEffect=t),t}function zu(){return{destroy:void 0,resource:void 0}}function Jg(){return ee().memoizedState}function Yo(t,e,n,l){var i=He();l=l===void 0?null:l,rt.flags|=t,i.memoizedState=mr(1|e,zu(),n,l)}function Ya(t,e,n,l){var i=ee();l=l===void 0?null:l;var r=i.memoizedState.inst;Rt!==null&&l!==null&&qf(l,Rt.memoizedState.deps)?i.memoizedState=mr(e,r,n,l):(rt.flags|=t,i.memoizedState=mr(1|e,r,n,l))}function ah(t,e){Yo(8390656,8,t,e)}function Wg(t,e){Ya(2048,8,t,e)}function $g(t,e){return Ya(4,2,t,e)}function ty(t,e){return Ya(4,4,t,e)}function ey(t,e){if(typeof e=="function"){t=t();var n=e(t);return function(){typeof n=="function"?n():e(null)}}if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function ny(t,e,n){n=n!=null?n.concat([t]):null,Ya(4,4,ey.bind(null,e,t),n)}function Gf(){}function ly(t,e){var n=ee();e=e===void 0?null:e;var l=n.memoizedState;return e!==null&&qf(e,l[1])?l[0]:(n.memoizedState=[t,e],t)}function iy(t,e){var n=ee();e=e===void 0?null:e;var l=n.memoizedState;if(e!==null&&qf(e,l[1]))return l[0];if(l=t(),ui){gl(!0);try{t()}finally{gl(!1)}}return n.memoizedState=[l,e],l}function Zf(t,e,n){return n===void 0||(Rl&1073741824)!==0?t.memoizedState=e:(t.memoizedState=n,t=Zy(),rt.lanes|=t,Dl|=t,n)}function ry(t,e,n,l){return We(n,e)?n:pr.current!==null?(t=Zf(t,n,l),We(t,e)||(me=!0),t):(Rl&42)===0?(me=!0,t.memoizedState=n):(t=Zy(),rt.lanes|=t,Dl|=t,e)}function ay(t,e,n,l,i){var r=vt.p;vt.p=r!==0&&8>r?r:8;var a=P.T,o={};P.T=o,Pf(t,!1,e,n);try{var u=i(),s=P.S;if(s!==null&&s(o,u),u!==null&&typeof u=="object"&&typeof u.then=="function"){var c=VS(u,l);fa(t,e,c,Pe(t))}else fa(t,e,l,Pe(t))}catch(f){fa(t,e,{then:function(){},status:"rejected",reason:f},Pe())}finally{vt.p=r,P.T=a}}function ZS(){}function Kc(t,e,n,l){if(t.tag!==5)throw Error(R(476));var i=oy(t).queue;ay(t,i,e,$l,n===null?ZS:function(){return uy(t),n(l)})}function oy(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:$l,baseState:$l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:$n,lastRenderedState:$l},next:null};var n={};return e.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:$n,lastRenderedState:n},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function uy(t){var e=oy(t).next.queue;fa(t,e,{},Pe())}function Kf(){return Ee(Ca)}function sy(){return ee().memoizedState}function cy(){return ee().memoizedState}function KS(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var n=Pe();t=Sl(n);var l=kl(e,t,n);l!==null&&(Je(l,e,n),ua(l,e,n)),e={cache:Lf()},t.payload=e;return}e=e.return}}function PS(t,e,n){var l=Pe();n={lane:l,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null},_u(t)?py(e,n):(n=Nf(t,e,n,l),n!==null&&(Je(n,t,l),my(n,e,l)))}function fy(t,e,n){var l=Pe();fa(t,e,n,l)}function fa(t,e,n,l){var i={lane:l,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null};if(_u(t))py(e,i);else{var r=t.alternate;if(t.lanes===0&&(r===null||r.lanes===0)&&(r=e.lastRenderedReducer,r!==null))try{var a=e.lastRenderedState,o=r(a,n);if(i.hasEagerState=!0,i.eagerState=o,We(o,a))return Mu(t,e,i,0),Dt===null&&Ru(),!1}catch{}finally{}if(n=Nf(t,e,i,l),n!==null)return Je(n,t,l),my(n,e,l),!0}return!1}function Pf(t,e,n,l){if(l={lane:2,revertLane:ip(),action:l,hasEagerState:!1,eagerState:null,next:null},_u(t)){if(e)throw Error(R(479))}else e=Nf(t,n,l,2),e!==null&&Je(e,t,2)}function _u(t){var e=t.alternate;return t===rt||e!==null&&e===rt}function py(t,e){ir=ru=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function my(t,e,n){if((n&4194048)!==0){var l=e.lanes;l&=t.pendingLanes,n|=l,e.lanes=n,lg(t,n)}}var ou={readContext:Ee,use:Nu,useCallback:Gt,useContext:Gt,useEffect:Gt,useImperativeHandle:Gt,useLayoutEffect:Gt,useInsertionEffect:Gt,useMemo:Gt,useReducer:Gt,useRef:Gt,useState:Gt,useDebugValue:Gt,useDeferredValue:Gt,useTransition:Gt,useSyncExternalStore:Gt,useId:Gt,useHostTransitionStatus:Gt,useFormState:Gt,useActionState:Gt,useOptimistic:Gt,useMemoCache:Gt,useCacheRefresh:Gt},dy={readContext:Ee,use:Nu,useCallback:function(t,e){return He().memoizedState=[t,e===void 0?null:e],t},useContext:Ee,useEffect:ah,useImperativeHandle:function(t,e,n){n=n!=null?n.concat([t]):null,Yo(4194308,4,ey.bind(null,e,t),n)},useLayoutEffect:function(t,e){return Yo(4194308,4,t,e)},useInsertionEffect:function(t,e){Yo(4,2,t,e)},useMemo:function(t,e){var n=He();e=e===void 0?null:e;var l=t();if(ui){gl(!0);try{t()}finally{gl(!1)}}return n.memoizedState=[l,e],l},useReducer:function(t,e,n){var l=He();if(n!==void 0){var i=n(e);if(ui){gl(!0);try{n(e)}finally{gl(!1)}}}else i=e;return l.memoizedState=l.baseState=i,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:i},l.queue=t,t=t.dispatch=PS.bind(null,rt,t),[l.memoizedState,t]},useRef:function(t){var e=He();return t={current:t},e.memoizedState=t},useState:function(t){t=Gc(t);var e=t.queue,n=fy.bind(null,rt,e);return e.dispatch=n,[t.memoizedState,n]},useDebugValue:Gf,useDeferredValue:function(t,e){var n=He();return Zf(n,t,e)},useTransition:function(){var t=Gc(!1);return t=ay.bind(null,rt,t.queue,!0,!1),He().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,n){var l=rt,i=He();if(yt){if(n===void 0)throw Error(R(407));n=n()}else{if(n=e(),Dt===null)throw Error(R(349));(pt&124)!==0||Ig(l,e,n)}i.memoizedState=n;var r={value:n,getSnapshot:e};return i.queue=r,ah(Vg.bind(null,l,r,t),[t]),l.flags|=2048,mr(9,zu(),Yg.bind(null,l,r,n,e),null),n},useId:function(){var t=He(),e=Dt.identifierPrefix;if(yt){var n=Gn,l=Xn;n=(l&~(1<<32-Ke(l)-1)).toString(32)+n,e="\xAB"+e+"R"+n,n=au++,0<n&&(e+="H"+n.toString(32)),e+="\xBB"}else n=FS++,e="\xAB"+e+"r"+n.toString(32)+"\xBB";return t.memoizedState=e},useHostTransitionStatus:Kf,useFormState:lh,useActionState:lh,useOptimistic:function(t){var e=He();e.memoizedState=e.baseState=t;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=n,e=Pf.bind(null,rt,!0,n),n.dispatch=e,[t,e]},useMemoCache:Qf,useCacheRefresh:function(){return He().memoizedState=KS.bind(null,rt)}},hy={readContext:Ee,use:Nu,useCallback:ly,useContext:Ee,useEffect:Wg,useImperativeHandle:ny,useInsertionEffect:$g,useLayoutEffect:ty,useMemo:iy,useReducer:Io,useRef:Jg,useState:function(){return Io($n)},useDebugValue:Gf,useDeferredValue:function(t,e){var n=ee();return ry(n,Rt.memoizedState,t,e)},useTransition:function(){var t=Io($n)[0],e=ee().memoizedState;return[typeof t=="boolean"?t:Ia(t),e]},useSyncExternalStore:jg,useId:sy,useHostTransitionStatus:Kf,useFormState:ih,useActionState:ih,useOptimistic:function(t,e){var n=ee();return Xg(n,Rt,t,e)},useMemoCache:Qf,useCacheRefresh:cy},JS={readContext:Ee,use:Nu,useCallback:ly,useContext:Ee,useEffect:Wg,useImperativeHandle:ny,useInsertionEffect:$g,useLayoutEffect:ty,useMemo:iy,useReducer:rc,useRef:Jg,useState:function(){return rc($n)},useDebugValue:Gf,useDeferredValue:function(t,e){var n=ee();return Rt===null?Zf(n,t,e):ry(n,Rt.memoizedState,t,e)},useTransition:function(){var t=rc($n)[0],e=ee().memoizedState;return[typeof t=="boolean"?t:Ia(t),e]},useSyncExternalStore:jg,useId:sy,useHostTransitionStatus:Kf,useFormState:rh,useActionState:rh,useOptimistic:function(t,e){var n=ee();return Rt!==null?Xg(n,Rt,t,e):(n.baseState=t,[t,n.queue.dispatch])},useMemoCache:Qf,useCacheRefresh:cy},ar=null,Ea=0;function Co(t){var e=Ea;return Ea+=1,ar===null&&(ar=[]),Lg(ar,t,e)}function Zr(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function Ro(t,e){throw e.$$typeof===Cx?Error(R(525)):(t=Object.prototype.toString.call(e),Error(R(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function oh(t){var e=t._init;return e(t._payload)}function gy(t){function e(d,h){if(t){var y=d.deletions;y===null?(d.deletions=[h],d.flags|=16):y.push(h)}}function n(d,h){if(!t)return null;for(;h!==null;)e(d,h),h=h.sibling;return null}function l(d){for(var h=new Map;d!==null;)d.key!==null?h.set(d.key,d):h.set(d.index,d),d=d.sibling;return h}function i(d,h){return d=Pn(d,h),d.index=0,d.sibling=null,d}function r(d,h,y){return d.index=y,t?(y=d.alternate,y!==null?(y=y.index,y<h?(d.flags|=67108866,h):y):(d.flags|=67108866,h)):(d.flags|=1048576,h)}function a(d){return t&&d.alternate===null&&(d.flags|=67108866),d}function o(d,h,y,T){return h===null||h.tag!==6?(h=nc(y,d.mode,T),h.return=d,h):(h=i(h,y),h.return=d,h)}function u(d,h,y,T){var C=y.type;return C===Yi?c(d,h,y.props.children,T,y.key):h!==null&&(h.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===cl&&oh(C)===h.type)?(h=i(h,y.props),Zr(h,y),h.return=d,h):(h=qo(y.type,y.key,y.props,null,d.mode,T),Zr(h,y),h.return=d,h)}function s(d,h,y,T){return h===null||h.tag!==4||h.stateNode.containerInfo!==y.containerInfo||h.stateNode.implementation!==y.implementation?(h=lc(y,d.mode,T),h.return=d,h):(h=i(h,y.children||[]),h.return=d,h)}function c(d,h,y,T,C){return h===null||h.tag!==7?(h=ti(y,d.mode,T,C),h.return=d,h):(h=i(h,y),h.return=d,h)}function f(d,h,y){if(typeof h=="string"&&h!==""||typeof h=="number"||typeof h=="bigint")return h=nc(""+h,d.mode,y),h.return=d,h;if(typeof h=="object"&&h!==null){switch(h.$$typeof){case vo:return y=qo(h.type,h.key,h.props,null,d.mode,y),Zr(y,h),y.return=d,y;case $r:return h=lc(h,d.mode,y),h.return=d,h;case cl:var T=h._init;return h=T(h._payload),f(d,h,y)}if(ta(h)||Qr(h))return h=ti(h,d.mode,y,null),h.return=d,h;if(typeof h.then=="function")return f(d,Co(h),y);if(h.$$typeof===Qn)return f(d,wo(d,h),y);Ro(d,h)}return null}function m(d,h,y,T){var C=h!==null?h.key:null;if(typeof y=="string"&&y!==""||typeof y=="number"||typeof y=="bigint")return C!==null?null:o(d,h,""+y,T);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case vo:return y.key===C?u(d,h,y,T):null;case $r:return y.key===C?s(d,h,y,T):null;case cl:return C=y._init,y=C(y._payload),m(d,h,y,T)}if(ta(y)||Qr(y))return C!==null?null:c(d,h,y,T,null);if(typeof y.then=="function")return m(d,h,Co(y),T);if(y.$$typeof===Qn)return m(d,h,wo(d,y),T);Ro(d,y)}return null}function p(d,h,y,T,C){if(typeof T=="string"&&T!==""||typeof T=="number"||typeof T=="bigint")return d=d.get(y)||null,o(h,d,""+T,C);if(typeof T=="object"&&T!==null){switch(T.$$typeof){case vo:return d=d.get(T.key===null?y:T.key)||null,u(h,d,T,C);case $r:return d=d.get(T.key===null?y:T.key)||null,s(h,d,T,C);case cl:var E=T._init;return T=E(T._payload),p(d,h,y,T,C)}if(ta(T)||Qr(T))return d=d.get(y)||null,c(h,d,T,C,null);if(typeof T.then=="function")return p(d,h,y,Co(T),C);if(T.$$typeof===Qn)return p(d,h,y,wo(h,T),C);Ro(h,T)}return null}function g(d,h,y,T){for(var C=null,E=null,M=h,N=h=0,L=null;M!==null&&N<y.length;N++){M.index>N?(L=M,M=null):L=M.sibling;var S=m(d,M,y[N],T);if(S===null){M===null&&(M=L);break}t&&M&&S.alternate===null&&e(d,M),h=r(S,h,N),E===null?C=S:E.sibling=S,E=S,M=L}if(N===y.length)return n(d,M),yt&&Jl(d,N),C;if(M===null){for(;N<y.length;N++)M=f(d,y[N],T),M!==null&&(h=r(M,h,N),E===null?C=M:E.sibling=M,E=M);return yt&&Jl(d,N),C}for(M=l(M);N<y.length;N++)L=p(M,d,N,y[N],T),L!==null&&(t&&L.alternate!==null&&M.delete(L.key===null?N:L.key),h=r(L,h,N),E===null?C=L:E.sibling=L,E=L);return t&&M.forEach(function(et){return e(d,et)}),yt&&Jl(d,N),C}function v(d,h,y,T){if(y==null)throw Error(R(151));for(var C=null,E=null,M=h,N=h=0,L=null,S=y.next();M!==null&&!S.done;N++,S=y.next()){M.index>N?(L=M,M=null):L=M.sibling;var et=m(d,M,S.value,T);if(et===null){M===null&&(M=L);break}t&&M&&et.alternate===null&&e(d,M),h=r(et,h,N),E===null?C=et:E.sibling=et,E=et,M=L}if(S.done)return n(d,M),yt&&Jl(d,N),C;if(M===null){for(;!S.done;N++,S=y.next())S=f(d,S.value,T),S!==null&&(h=r(S,h,N),E===null?C=S:E.sibling=S,E=S);return yt&&Jl(d,N),C}for(M=l(M);!S.done;N++,S=y.next())S=p(M,d,N,S.value,T),S!==null&&(t&&S.alternate!==null&&M.delete(S.key===null?N:S.key),h=r(S,h,N),E===null?C=S:E.sibling=S,E=S);return t&&M.forEach(function(K){return e(d,K)}),yt&&Jl(d,N),C}function k(d,h,y,T){if(typeof y=="object"&&y!==null&&y.type===Yi&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case vo:t:{for(var C=y.key;h!==null;){if(h.key===C){if(C=y.type,C===Yi){if(h.tag===7){n(d,h.sibling),T=i(h,y.props.children),T.return=d,d=T;break t}}else if(h.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===cl&&oh(C)===h.type){n(d,h.sibling),T=i(h,y.props),Zr(T,y),T.return=d,d=T;break t}n(d,h);break}else e(d,h);h=h.sibling}y.type===Yi?(T=ti(y.props.children,d.mode,T,y.key),T.return=d,d=T):(T=qo(y.type,y.key,y.props,null,d.mode,T),Zr(T,y),T.return=d,d=T)}return a(d);case $r:t:{for(C=y.key;h!==null;){if(h.key===C)if(h.tag===4&&h.stateNode.containerInfo===y.containerInfo&&h.stateNode.implementation===y.implementation){n(d,h.sibling),T=i(h,y.children||[]),T.return=d,d=T;break t}else{n(d,h);break}else e(d,h);h=h.sibling}T=lc(y,d.mode,T),T.return=d,d=T}return a(d);case cl:return C=y._init,y=C(y._payload),k(d,h,y,T)}if(ta(y))return g(d,h,y,T);if(Qr(y)){if(C=Qr(y),typeof C!="function")throw Error(R(150));return y=C.call(y),v(d,h,y,T)}if(typeof y.then=="function")return k(d,h,Co(y),T);if(y.$$typeof===Qn)return k(d,h,wo(d,y),T);Ro(d,y)}return typeof y=="string"&&y!==""||typeof y=="number"||typeof y=="bigint"?(y=""+y,h!==null&&h.tag===6?(n(d,h.sibling),T=i(h,y),T.return=d,d=T):(n(d,h),T=nc(y,d.mode,T),T.return=d,d=T),a(d)):n(d,h)}return function(d,h,y,T){try{Ea=0;var C=k(d,h,y,T);return ar=null,C}catch(M){if(M===ja||M===Du)throw M;var E=Ge(29,M,null,d.mode);return E.lanes=T,E.return=d,E}finally{}}}var dr=gy(!0),yy=gy(!1),cn=_n(null),zn=null;function ml(t){var e=t.alternate;Ut(oe,oe.current&1),Ut(cn,t),zn===null&&(e===null||pr.current!==null||e.memoizedState!==null)&&(zn=t)}function vy(t){if(t.tag===22){if(Ut(oe,oe.current),Ut(cn,t),zn===null){var e=t.alternate;e!==null&&e.memoizedState!==null&&(zn=t)}}else dl(t)}function dl(){Ut(oe,oe.current),Ut(cn,cn.current)}function Kn(t){de(cn),zn===t&&(zn=null),de(oe)}var oe=_n(0);function uu(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||mf(n)))return e}else if(e.tag===19&&e.memoizedProps.revealOrder!==void 0){if((e.flags&128)!==0)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}function ac(t,e,n,l){e=t.memoizedState,n=n(l,e),n=n==null?e:Nt({},e,n),t.memoizedState=n,t.lanes===0&&(t.updateQueue.baseState=n)}var Pc={enqueueSetState:function(t,e,n){t=t._reactInternals;var l=Pe(),i=Sl(l);i.payload=e,n!=null&&(i.callback=n),e=kl(t,i,l),e!==null&&(Je(e,t,l),ua(e,t,l))},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var l=Pe(),i=Sl(l);i.tag=1,i.payload=e,n!=null&&(i.callback=n),e=kl(t,i,l),e!==null&&(Je(e,t,l),ua(e,t,l))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=Pe(),l=Sl(n);l.tag=2,e!=null&&(l.callback=e),e=kl(t,l,n),e!==null&&(Je(e,t,n),ua(e,t,n))}};function uh(t,e,n,l,i,r,a){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(l,r,a):e.prototype&&e.prototype.isPureReactComponent?!xa(n,l)||!xa(i,r):!0}function sh(t,e,n,l){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(n,l),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(n,l),e.state!==t&&Pc.enqueueReplaceState(e,e.state,null)}function si(t,e){var n=e;if("ref"in e){n={};for(var l in e)l!=="ref"&&(n[l]=e[l])}if(t=t.defaultProps){n===e&&(n=Nt({},n));for(var i in t)n[i]===void 0&&(n[i]=t[i])}return n}var su=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)};function by(t){su(t)}function xy(t){console.error(t)}function Sy(t){su(t)}function cu(t,e){try{var n=t.onUncaughtError;n(e.value,{componentStack:e.stack})}catch(l){setTimeout(function(){throw l})}}function ch(t,e,n){try{var l=t.onCaughtError;l(n.value,{componentStack:n.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(i){setTimeout(function(){throw i})}}function Jc(t,e,n){return n=Sl(n),n.tag=3,n.payload={element:null},n.callback=function(){cu(t,e)},n}function ky(t){return t=Sl(t),t.tag=3,t}function Ey(t,e,n,l){var i=n.type.getDerivedStateFromError;if(typeof i=="function"){var r=l.value;t.payload=function(){return i(r)},t.callback=function(){ch(e,n,l)}}var a=n.stateNode;a!==null&&typeof a.componentDidCatch=="function"&&(t.callback=function(){ch(e,n,l),typeof i!="function"&&(El===null?El=new Set([this]):El.add(this));var o=l.stack;this.componentDidCatch(l.value,{componentStack:o!==null?o:""})})}function WS(t,e,n,l,i){if(n.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(e=n.alternate,e!==null&&Ha(e,n,i,!0),n=cn.current,n!==null){switch(n.tag){case 13:return zn===null?af():n.alternate===null&&Ft===0&&(Ft=3),n.flags&=-257,n.flags|=65536,n.lanes=i,l===Vc?n.flags|=16384:(e=n.updateQueue,e===null?n.updateQueue=new Set([l]):e.add(l),yc(t,l,i)),!1;case 22:return n.flags|=65536,l===Vc?n.flags|=16384:(e=n.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([l])},n.updateQueue=e):(n=e.retryQueue,n===null?e.retryQueue=new Set([l]):n.add(l)),yc(t,l,i)),!1}throw Error(R(435,n.tag))}return yc(t,l,i),af(),!1}if(yt)return e=cn.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=i,l!==Hc&&(t=Error(R(422),{cause:l}),Sa(un(t,n)))):(l!==Hc&&(e=Error(R(423),{cause:l}),Sa(un(e,n))),t=t.current.alternate,t.flags|=65536,i&=-i,t.lanes|=i,l=un(l,n),i=Jc(t.stateNode,l,i),ic(t,i),Ft!==4&&(Ft=2)),!1;var r=Error(R(520),{cause:l});if(r=un(r,n),da===null?da=[r]:da.push(r),Ft!==4&&(Ft=2),e===null)return!0;l=un(l,n),n=e;do{switch(n.tag){case 3:return n.flags|=65536,t=i&-i,n.lanes|=t,t=Jc(n.stateNode,l,t),ic(n,t),!1;case 1:if(e=n.type,r=n.stateNode,(n.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||r!==null&&typeof r.componentDidCatch=="function"&&(El===null||!El.has(r))))return n.flags|=65536,i&=-i,n.lanes|=i,i=ky(i),Ey(i,t,n,l),ic(n,i),!1}n=n.return}while(n!==null);return!1}var Ty=Error(R(461)),me=!1;function ve(t,e,n,l){e.child=t===null?yy(e,null,n,l):dr(e,t.child,n,l)}function fh(t,e,n,l,i){n=n.render;var r=e.ref;if("ref"in l){var a={};for(var o in l)o!=="ref"&&(a[o]=l[o])}else a=l;return oi(e),l=jf(t,e,n,a,r,i),o=If(),t!==null&&!me?(Yf(t,e,i),tl(t,e,i)):(yt&&o&&_f(e),e.flags|=1,ve(t,e,l,i),e.child)}function ph(t,e,n,l,i){if(t===null){var r=n.type;return typeof r=="function"&&!zf(r)&&r.defaultProps===void 0&&n.compare===null?(e.tag=15,e.type=r,wy(t,e,r,l,i)):(t=qo(n.type,null,l,e,e.mode,i),t.ref=e.ref,t.return=e,e.child=t)}if(r=t.child,!Jf(t,i)){var a=r.memoizedProps;if(n=n.compare,n=n!==null?n:xa,n(a,l)&&t.ref===e.ref)return tl(t,e,i)}return e.flags|=1,t=Pn(r,l),t.ref=e.ref,t.return=e,e.child=t}function wy(t,e,n,l,i){if(t!==null){var r=t.memoizedProps;if(xa(r,l)&&t.ref===e.ref)if(me=!1,e.pendingProps=l=r,Jf(t,i))(t.flags&131072)!==0&&(me=!0);else return e.lanes=t.lanes,tl(t,e,i)}return Wc(t,e,n,l,i)}function Ay(t,e,n){var l=e.pendingProps,i=l.children,r=t!==null?t.memoizedState:null;if(l.mode==="hidden"){if((e.flags&128)!==0){if(l=r!==null?r.baseLanes|n:n,t!==null){for(i=e.child=t.child,r=0;i!==null;)r=r|i.lanes|i.childLanes,i=i.sibling;e.childLanes=r&~l}else e.childLanes=0,e.child=null;return mh(t,e,l,n)}if((n&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&jo(e,r!==null?r.cachePool:null),r!==null?th(e,r):Xc(),vy(e);else return e.lanes=e.childLanes=536870912,mh(t,e,r!==null?r.baseLanes|n:n,n)}else r!==null?(jo(e,r.cachePool),th(e,r),dl(e),e.memoizedState=null):(t!==null&&jo(e,null),Xc(),dl(e));return ve(t,e,i,n),e.child}function mh(t,e,n,l){var i=Uf();return i=i===null?null:{parent:ae._currentValue,pool:i},e.memoizedState={baseLanes:n,cachePool:i},t!==null&&jo(e,null),Xc(),vy(e),t!==null&&Ha(t,e,l,!0),null}function Vo(t,e){var n=e.ref;if(n===null)t!==null&&t.ref!==null&&(e.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(R(284));(t===null||t.ref!==n)&&(e.flags|=4194816)}}function Wc(t,e,n,l,i){return oi(e),n=jf(t,e,n,l,void 0,i),l=If(),t!==null&&!me?(Yf(t,e,i),tl(t,e,i)):(yt&&l&&_f(e),e.flags|=1,ve(t,e,n,i),e.child)}function dh(t,e,n,l,i,r){return oi(e),e.updateQueue=null,n=qg(e,l,n,i),Hg(t),l=If(),t!==null&&!me?(Yf(t,e,r),tl(t,e,r)):(yt&&l&&_f(e),e.flags|=1,ve(t,e,n,r),e.child)}function hh(t,e,n,l,i){if(oi(e),e.stateNode===null){var r=Pi,a=n.contextType;typeof a=="object"&&a!==null&&(r=Ee(a)),r=new n(l,r),e.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,r.updater=Pc,e.stateNode=r,r._reactInternals=e,r=e.stateNode,r.props=l,r.state=e.memoizedState,r.refs={},Bf(e),a=n.contextType,r.context=typeof a=="object"&&a!==null?Ee(a):Pi,r.state=e.memoizedState,a=n.getDerivedStateFromProps,typeof a=="function"&&(ac(e,n,a,l),r.state=e.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof r.getSnapshotBeforeUpdate=="function"||typeof r.UNSAFE_componentWillMount!="function"&&typeof r.componentWillMount!="function"||(a=r.state,typeof r.componentWillMount=="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount(),a!==r.state&&Pc.enqueueReplaceState(r,r.state,null),ca(e,l,r,i),sa(),r.state=e.memoizedState),typeof r.componentDidMount=="function"&&(e.flags|=4194308),l=!0}else if(t===null){r=e.stateNode;var o=e.memoizedProps,u=si(n,o);r.props=u;var s=r.context,c=n.contextType;a=Pi,typeof c=="object"&&c!==null&&(a=Ee(c));var f=n.getDerivedStateFromProps;c=typeof f=="function"||typeof r.getSnapshotBeforeUpdate=="function",o=e.pendingProps!==o,c||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(o||s!==a)&&sh(e,r,l,a),fl=!1;var m=e.memoizedState;r.state=m,ca(e,l,r,i),sa(),s=e.memoizedState,o||m!==s||fl?(typeof f=="function"&&(ac(e,n,f,l),s=e.memoizedState),(u=fl||uh(e,n,u,l,m,s,a))?(c||typeof r.UNSAFE_componentWillMount!="function"&&typeof r.componentWillMount!="function"||(typeof r.componentWillMount=="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount()),typeof r.componentDidMount=="function"&&(e.flags|=4194308)):(typeof r.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=l,e.memoizedState=s),r.props=l,r.state=s,r.context=a,l=u):(typeof r.componentDidMount=="function"&&(e.flags|=4194308),l=!1)}else{r=e.stateNode,Fc(t,e),a=e.memoizedProps,c=si(n,a),r.props=c,f=e.pendingProps,m=r.context,s=n.contextType,u=Pi,typeof s=="object"&&s!==null&&(u=Ee(s)),o=n.getDerivedStateFromProps,(s=typeof o=="function"||typeof r.getSnapshotBeforeUpdate=="function")||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(a!==f||m!==u)&&sh(e,r,l,u),fl=!1,m=e.memoizedState,r.state=m,ca(e,l,r,i),sa();var p=e.memoizedState;a!==f||m!==p||fl||t!==null&&t.dependencies!==null&&lu(t.dependencies)?(typeof o=="function"&&(ac(e,n,o,l),p=e.memoizedState),(c=fl||uh(e,n,c,l,m,p,u)||t!==null&&t.dependencies!==null&&lu(t.dependencies))?(s||typeof r.UNSAFE_componentWillUpdate!="function"&&typeof r.componentWillUpdate!="function"||(typeof r.componentWillUpdate=="function"&&r.componentWillUpdate(l,p,u),typeof r.UNSAFE_componentWillUpdate=="function"&&r.UNSAFE_componentWillUpdate(l,p,u)),typeof r.componentDidUpdate=="function"&&(e.flags|=4),typeof r.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof r.componentDidUpdate!="function"||a===t.memoizedProps&&m===t.memoizedState||(e.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||a===t.memoizedProps&&m===t.memoizedState||(e.flags|=1024),e.memoizedProps=l,e.memoizedState=p),r.props=l,r.state=p,r.context=u,l=c):(typeof r.componentDidUpdate!="function"||a===t.memoizedProps&&m===t.memoizedState||(e.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||a===t.memoizedProps&&m===t.memoizedState||(e.flags|=1024),l=!1)}return r=l,Vo(t,e),l=(e.flags&128)!==0,r||l?(r=e.stateNode,n=l&&typeof n.getDerivedStateFromError!="function"?null:r.render(),e.flags|=1,t!==null&&l?(e.child=dr(e,t.child,null,i),e.child=dr(e,null,n,i)):ve(t,e,n,i),e.memoizedState=r.state,t=e.child):t=tl(t,e,i),t}function gh(t,e,n,l){return Ba(),e.flags|=256,ve(t,e,n,l),e.child}var oc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function uc(t){return{baseLanes:t,cachePool:_g()}}function sc(t,e,n){return t=t!==null?t.childLanes&~n:0,e&&(t|=sn),t}function Cy(t,e,n){var l=e.pendingProps,i=!1,r=(e.flags&128)!==0,a;if((a=r)||(a=t!==null&&t.memoizedState===null?!1:(oe.current&2)!==0),a&&(i=!0,e.flags&=-129),a=(e.flags&32)!==0,e.flags&=-33,t===null){if(yt){if(i?ml(e):dl(e),yt){var o=Vt,u;if(u=o){t:{for(u=o,o=Rn;u.nodeType!==8;){if(!o){o=null;break t}if(u=yn(u.nextSibling),u===null){o=null;break t}}o=u}o!==null?(e.memoizedState={dehydrated:o,treeContext:ei!==null?{id:Xn,overflow:Gn}:null,retryLane:536870912,hydrationErrors:null},u=Ge(18,null,null,0),u.stateNode=o,u.return=e,e.child=u,Oe=e,Vt=null,u=!0):u=!1}u||ai(e)}if(o=e.memoizedState,o!==null&&(o=o.dehydrated,o!==null))return mf(o)?e.lanes=32:e.lanes=536870912,null;Kn(e)}return o=l.children,l=l.fallback,i?(dl(e),i=e.mode,o=fu({mode:"hidden",children:o},i),l=ti(l,i,n,null),o.return=e,l.return=e,o.sibling=l,e.child=o,i=e.child,i.memoizedState=uc(n),i.childLanes=sc(t,a,n),e.memoizedState=oc,l):(ml(e),$c(e,o))}if(u=t.memoizedState,u!==null&&(o=u.dehydrated,o!==null)){if(r)e.flags&256?(ml(e),e.flags&=-257,e=cc(t,e,n)):e.memoizedState!==null?(dl(e),e.child=t.child,e.flags|=128,e=null):(dl(e),i=l.fallback,o=e.mode,l=fu({mode:"visible",children:l.children},o),i=ti(i,o,n,null),i.flags|=2,l.return=e,i.return=e,l.sibling=i,e.child=l,dr(e,t.child,null,n),l=e.child,l.memoizedState=uc(n),l.childLanes=sc(t,a,n),e.memoizedState=oc,e=i);else if(ml(e),mf(o)){if(a=o.nextSibling&&o.nextSibling.dataset,a)var s=a.dgst;a=s,l=Error(R(419)),l.stack="",l.digest=a,Sa({value:l,source:null,stack:null}),e=cc(t,e,n)}else if(me||Ha(t,e,n,!1),a=(n&t.childLanes)!==0,me||a){if(a=Dt,a!==null&&(l=n&-n,l=(l&42)!==0?1:Sf(l),l=(l&(a.suspendedLanes|n))!==0?0:l,l!==0&&l!==u.retryLane))throw u.retryLane=l,Sr(t,l),Je(a,t,l),Ty;o.data==="$?"||af(),e=cc(t,e,n)}else o.data==="$?"?(e.flags|=192,e.child=t.child,e=null):(t=u.treeContext,Vt=yn(o.nextSibling),Oe=e,yt=!0,ni=null,Rn=!1,t!==null&&(rn[an++]=Xn,rn[an++]=Gn,rn[an++]=ei,Xn=t.id,Gn=t.overflow,ei=e),e=$c(e,l.children),e.flags|=4096);return e}return i?(dl(e),i=l.fallback,o=e.mode,u=t.child,s=u.sibling,l=Pn(u,{mode:"hidden",children:l.children}),l.subtreeFlags=u.subtreeFlags&65011712,s!==null?i=Pn(s,i):(i=ti(i,o,n,null),i.flags|=2),i.return=e,l.return=e,l.sibling=i,e.child=l,l=i,i=e.child,o=t.child.memoizedState,o===null?o=uc(n):(u=o.cachePool,u!==null?(s=ae._currentValue,u=u.parent!==s?{parent:s,pool:s}:u):u=_g(),o={baseLanes:o.baseLanes|n,cachePool:u}),i.memoizedState=o,i.childLanes=sc(t,a,n),e.memoizedState=oc,l):(ml(e),n=t.child,t=n.sibling,n=Pn(n,{mode:"visible",children:l.children}),n.return=e,n.sibling=null,t!==null&&(a=e.deletions,a===null?(e.deletions=[t],e.flags|=16):a.push(t)),e.child=n,e.memoizedState=null,n)}function $c(t,e){return e=fu({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function fu(t,e){return t=Ge(22,t,null,e),t.lanes=0,t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},t}function cc(t,e,n){return dr(e,t.child,null,n),t=$c(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function yh(t,e,n){t.lanes|=e;var l=t.alternate;l!==null&&(l.lanes|=e),jc(t.return,e,n)}function fc(t,e,n,l,i){var r=t.memoizedState;r===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:l,tail:n,tailMode:i}:(r.isBackwards=e,r.rendering=null,r.renderingStartTime=0,r.last=l,r.tail=n,r.tailMode=i)}function Ry(t,e,n){var l=e.pendingProps,i=l.revealOrder,r=l.tail;if(ve(t,e,l.children,n),l=oe.current,(l&2)!==0)l=l&1|2,e.flags|=128;else{if(t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&yh(t,n,e);else if(t.tag===19)yh(t,n,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break t;for(;t.sibling===null;){if(t.return===null||t.return===e)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}l&=1}switch(Ut(oe,l),i){case"forwards":for(n=e.child,i=null;n!==null;)t=n.alternate,t!==null&&uu(t)===null&&(i=n),n=n.sibling;n=i,n===null?(i=e.child,e.child=null):(i=n.sibling,n.sibling=null),fc(e,!1,i,n,r);break;case"backwards":for(n=null,i=e.child,e.child=null;i!==null;){if(t=i.alternate,t!==null&&uu(t)===null){e.child=i;break}t=i.sibling,i.sibling=n,n=i,i=t}fc(e,!0,n,null,r);break;case"together":fc(e,!1,null,null,void 0);break;default:e.memoizedState=null}return e.child}function tl(t,e,n){if(t!==null&&(e.dependencies=t.dependencies),Dl|=e.lanes,(n&e.childLanes)===0)if(t!==null){if(Ha(t,e,n,!1),(n&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(R(153));if(e.child!==null){for(t=e.child,n=Pn(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=Pn(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}function Jf(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&lu(t)))}function $S(t,e,n){switch(e.tag){case 3:Ko(e,e.stateNode.containerInfo),pl(e,ae,t.memoizedState.cache),Ba();break;case 27:case 5:Rc(e);break;case 4:Ko(e,e.stateNode.containerInfo);break;case 10:pl(e,e.type,e.memoizedProps.value);break;case 13:var l=e.memoizedState;if(l!==null)return l.dehydrated!==null?(ml(e),e.flags|=128,null):(n&e.child.childLanes)!==0?Cy(t,e,n):(ml(e),t=tl(t,e,n),t!==null?t.sibling:null);ml(e);break;case 19:var i=(t.flags&128)!==0;if(l=(n&e.childLanes)!==0,l||(Ha(t,e,n,!1),l=(n&e.childLanes)!==0),i){if(l)return Ry(t,e,n);e.flags|=128}if(i=e.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Ut(oe,oe.current),l)break;return null;case 22:case 23:return e.lanes=0,Ay(t,e,n);case 24:pl(e,ae,t.memoizedState.cache)}return tl(t,e,n)}function My(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps)me=!0;else{if(!Jf(t,n)&&(e.flags&128)===0)return me=!1,$S(t,e,n);me=(t.flags&131072)!==0}else me=!1,yt&&(e.flags&1048576)!==0&&Ng(e,nu,e.index);switch(e.lanes=0,e.tag){case 16:t:{t=e.pendingProps;var l=e.elementType,i=l._init;if(l=i(l._payload),e.type=l,typeof l=="function")zf(l)?(t=si(l,t),e.tag=1,e=hh(null,e,l,t,n)):(e.tag=0,e=Wc(null,e,l,t,n));else{if(l!=null){if(i=l.$$typeof,i===vf){e.tag=11,e=fh(null,e,l,t,n);break t}else if(i===bf){e.tag=14,e=ph(null,e,l,t,n);break t}}throw e=Ac(l)||l,Error(R(306,e,""))}}return e;case 0:return Wc(t,e,e.type,e.pendingProps,n);case 1:return l=e.type,i=si(l,e.pendingProps),hh(t,e,l,i,n);case 3:t:{if(Ko(e,e.stateNode.containerInfo),t===null)throw Error(R(387));l=e.pendingProps;var r=e.memoizedState;i=r.element,Fc(t,e),ca(e,l,null,n);var a=e.memoizedState;if(l=a.cache,pl(e,ae,l),l!==r.cache&&Ic(e,[ae],n,!0),sa(),l=a.element,r.isDehydrated)if(r={element:l,isDehydrated:!1,cache:a.cache},e.updateQueue.baseState=r,e.memoizedState=r,e.flags&256){e=gh(t,e,l,n);break t}else if(l!==i){i=un(Error(R(424)),e),Sa(i),e=gh(t,e,l,n);break t}else{switch(t=e.stateNode.containerInfo,t.nodeType){case 9:t=t.body;break;default:t=t.nodeName==="HTML"?t.ownerDocument.body:t}for(Vt=yn(t.firstChild),Oe=e,yt=!0,ni=null,Rn=!0,n=yy(e,null,l,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Ba(),l===i){e=tl(t,e,n);break t}ve(t,e,l,n)}e=e.child}return e;case 26:return Vo(t,e),t===null?(n=Uh(e.type,null,e.pendingProps,null))?e.memoizedState=n:yt||(n=e.type,t=e.pendingProps,l=vu(xl.current).createElement(n),l[ke]=e,l[Ie]=t,xe(l,n,t),pe(l),e.stateNode=l):e.memoizedState=Uh(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return Rc(e),t===null&&yt&&(l=e.stateNode=h1(e.type,e.pendingProps,xl.current),Oe=e,Rn=!0,i=Vt,zl(e.type)?(df=i,Vt=yn(l.firstChild)):Vt=i),ve(t,e,e.pendingProps.children,n),Vo(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&yt&&((i=l=Vt)&&(l=wk(l,e.type,e.pendingProps,Rn),l!==null?(e.stateNode=l,Oe=e,Vt=yn(l.firstChild),Rn=!1,i=!0):i=!1),i||ai(e)),Rc(e),i=e.type,r=e.pendingProps,a=t!==null?t.memoizedProps:null,l=r.children,ff(i,r)?l=null:a!==null&&ff(i,a)&&(e.flags|=32),e.memoizedState!==null&&(i=jf(t,e,QS,null,null,n),Ca._currentValue=i),Vo(t,e),ve(t,e,l,n),e.child;case 6:return t===null&&yt&&((t=n=Vt)&&(n=Ak(n,e.pendingProps,Rn),n!==null?(e.stateNode=n,Oe=e,Vt=null,t=!0):t=!1),t||ai(e)),null;case 13:return Cy(t,e,n);case 4:return Ko(e,e.stateNode.containerInfo),l=e.pendingProps,t===null?e.child=dr(e,null,l,n):ve(t,e,l,n),e.child;case 11:return fh(t,e,e.type,e.pendingProps,n);case 7:return ve(t,e,e.pendingProps,n),e.child;case 8:return ve(t,e,e.pendingProps.children,n),e.child;case 12:return ve(t,e,e.pendingProps.children,n),e.child;case 10:return l=e.pendingProps,pl(e,e.type,l.value),ve(t,e,l.children,n),e.child;case 9:return i=e.type._context,l=e.pendingProps.children,oi(e),i=Ee(i),l=l(i),e.flags|=1,ve(t,e,l,n),e.child;case 14:return ph(t,e,e.type,e.pendingProps,n);case 15:return wy(t,e,e.type,e.pendingProps,n);case 19:return Ry(t,e,n);case 31:return l=e.pendingProps,n=e.mode,l={mode:l.mode,children:l.children},t===null?(n=fu(l,n),n.ref=e.ref,e.child=n,n.return=e,e=n):(n=Pn(t.child,l),n.ref=e.ref,e.child=n,n.return=e,e=n),e;case 22:return Ay(t,e,n);case 24:return oi(e),l=Ee(ae),t===null?(i=Uf(),i===null&&(i=Dt,r=Lf(),i.pooledCache=r,r.refCount++,r!==null&&(i.pooledCacheLanes|=n),i=r),e.memoizedState={parent:l,cache:i},Bf(e),pl(e,ae,i)):((t.lanes&n)!==0&&(Fc(t,e),ca(e,null,null,n),sa()),i=t.memoizedState,r=e.memoizedState,i.parent!==l?(i={parent:l,cache:l},e.memoizedState=i,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=i),pl(e,ae,l)):(l=r.cache,pl(e,ae,l),l!==i.cache&&Ic(e,[ae],n,!0))),ve(t,e,e.pendingProps.children,n),e.child;case 29:throw e.pendingProps}throw Error(R(156,e.tag))}function Yn(t){t.flags|=4}function vh(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!v1(e)){if(e=cn.current,e!==null&&((pt&4194048)===pt?zn!==null:(pt&62914560)!==pt&&(pt&536870912)===0||e!==zn))throw oa=Vc,Og;t.flags|=8192}}function Mo(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?eg():536870912,t.lanes|=e,hr|=e)}function Kr(t,e){if(!yt)switch(t.tailMode){case"hidden":e=t.tail;for(var n=null;e!==null;)e.alternate!==null&&(n=e),e=e.sibling;n===null?t.tail=null:n.sibling=null;break;case"collapsed":n=t.tail;for(var l=null;n!==null;)n.alternate!==null&&(l=n),n=n.sibling;l===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:l.sibling=null}}function jt(t){var e=t.alternate!==null&&t.alternate.child===t.child,n=0,l=0;if(e)for(var i=t.child;i!==null;)n|=i.lanes|i.childLanes,l|=i.subtreeFlags&65011712,l|=i.flags&65011712,i.return=t,i=i.sibling;else for(i=t.child;i!==null;)n|=i.lanes|i.childLanes,l|=i.subtreeFlags,l|=i.flags,i.return=t,i=i.sibling;return t.subtreeFlags|=l,t.childLanes=n,e}function tk(t,e,n){var l=e.pendingProps;switch(Of(e),e.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return jt(e),null;case 1:return jt(e),null;case 3:return n=e.stateNode,l=null,t!==null&&(l=t.memoizedState.cache),e.memoizedState.cache!==l&&(e.flags|=2048),Jn(ae),ur(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(t===null||t.child===null)&&(Gr(e)?Yn(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,Zd())),jt(e),null;case 26:return n=e.memoizedState,t===null?(Yn(e),n!==null?(jt(e),vh(e,n)):(jt(e),e.flags&=-16777217)):n?n!==t.memoizedState?(Yn(e),jt(e),vh(e,n)):(jt(e),e.flags&=-16777217):(t.memoizedProps!==l&&Yn(e),jt(e),e.flags&=-16777217),null;case 27:Po(e),n=xl.current;var i=e.type;if(t!==null&&e.stateNode!=null)t.memoizedProps!==l&&Yn(e);else{if(!l){if(e.stateNode===null)throw Error(R(166));return jt(e),null}t=Dn.current,Gr(e)?Xd(e,t):(t=h1(i,l,n),e.stateNode=t,Yn(e))}return jt(e),null;case 5:if(Po(e),n=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==l&&Yn(e);else{if(!l){if(e.stateNode===null)throw Error(R(166));return jt(e),null}if(t=Dn.current,Gr(e))Xd(e,t);else{switch(i=vu(xl.current),t){case 1:t=i.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:t=i.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":t=i.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":t=i.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":t=i.createElement("div"),t.innerHTML="<script><\/script>",t=t.removeChild(t.firstChild);break;case"select":t=typeof l.is=="string"?i.createElement("select",{is:l.is}):i.createElement("select"),l.multiple?t.multiple=!0:l.size&&(t.size=l.size);break;default:t=typeof l.is=="string"?i.createElement(n,{is:l.is}):i.createElement(n)}}t[ke]=e,t[Ie]=l;t:for(i=e.child;i!==null;){if(i.tag===5||i.tag===6)t.appendChild(i.stateNode);else if(i.tag!==4&&i.tag!==27&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===e)break t;for(;i.sibling===null;){if(i.return===null||i.return===e)break t;i=i.return}i.sibling.return=i.return,i=i.sibling}e.stateNode=t;t:switch(xe(t,n,l),n){case"button":case"input":case"select":case"textarea":t=!!l.autoFocus;break t;case"img":t=!0;break t;default:t=!1}t&&Yn(e)}}return jt(e),e.flags&=-16777217,null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==l&&Yn(e);else{if(typeof l!="string"&&e.stateNode===null)throw Error(R(166));if(t=xl.current,Gr(e)){if(t=e.stateNode,n=e.memoizedProps,l=null,i=Oe,i!==null)switch(i.tag){case 27:case 5:l=i.memoizedProps}t[ke]=e,t=!!(t.nodeValue===n||l!==null&&l.suppressHydrationWarning===!0||p1(t.nodeValue,n)),t||ai(e)}else t=vu(t).createTextNode(l),t[ke]=e,e.stateNode=t}return jt(e),null;case 13:if(l=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(i=Gr(e),l!==null&&l.dehydrated!==null){if(t===null){if(!i)throw Error(R(318));if(i=e.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(R(317));i[ke]=e}else Ba(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;jt(e),i=!1}else i=Zd(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=i),i=!0;if(!i)return e.flags&256?(Kn(e),e):(Kn(e),null)}if(Kn(e),(e.flags&128)!==0)return e.lanes=n,e;if(n=l!==null,t=t!==null&&t.memoizedState!==null,n){l=e.child,i=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(i=l.alternate.memoizedState.cachePool.pool);var r=null;l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(r=l.memoizedState.cachePool.pool),r!==i&&(l.flags|=2048)}return n!==t&&n&&(e.child.flags|=8192),Mo(e,e.updateQueue),jt(e),null;case 4:return ur(),t===null&&rp(e.stateNode.containerInfo),jt(e),null;case 10:return Jn(e.type),jt(e),null;case 19:if(de(oe),i=e.memoizedState,i===null)return jt(e),null;if(l=(e.flags&128)!==0,r=i.rendering,r===null)if(l)Kr(i,!1);else{if(Ft!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(r=uu(t),r!==null){for(e.flags|=128,Kr(i,!1),t=r.updateQueue,e.updateQueue=t,Mo(e,t),e.subtreeFlags=0,t=n,n=e.child;n!==null;)Dg(n,t),n=n.sibling;return Ut(oe,oe.current&1|2),e.child}t=t.sibling}i.tail!==null&&Nn()>mu&&(e.flags|=128,l=!0,Kr(i,!1),e.lanes=4194304)}else{if(!l)if(t=uu(r),t!==null){if(e.flags|=128,l=!0,t=t.updateQueue,e.updateQueue=t,Mo(e,t),Kr(i,!0),i.tail===null&&i.tailMode==="hidden"&&!r.alternate&&!yt)return jt(e),null}else 2*Nn()-i.renderingStartTime>mu&&n!==536870912&&(e.flags|=128,l=!0,Kr(i,!1),e.lanes=4194304);i.isBackwards?(r.sibling=e.child,e.child=r):(t=i.last,t!==null?t.sibling=r:e.child=r,i.last=r)}return i.tail!==null?(e=i.tail,i.rendering=e,i.tail=e.sibling,i.renderingStartTime=Nn(),e.sibling=null,t=oe.current,Ut(oe,l?t&1|2:t&1),e):(jt(e),null);case 22:case 23:return Kn(e),Hf(),l=e.memoizedState!==null,t!==null?t.memoizedState!==null!==l&&(e.flags|=8192):l&&(e.flags|=8192),l?(n&536870912)!==0&&(e.flags&128)===0&&(jt(e),e.subtreeFlags&6&&(e.flags|=8192)):jt(e),n=e.updateQueue,n!==null&&Mo(e,n.retryQueue),n=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),l=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),l!==n&&(e.flags|=2048),t!==null&&de(li),null;case 24:return n=null,t!==null&&(n=t.memoizedState.cache),e.memoizedState.cache!==n&&(e.flags|=2048),Jn(ae),jt(e),null;case 25:return null;case 30:return null}throw Error(R(156,e.tag))}function ek(t,e){switch(Of(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return Jn(ae),ur(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return Po(e),null;case 13:if(Kn(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(R(340));Ba()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return de(oe),null;case 4:return ur(),null;case 10:return Jn(e.type),null;case 22:case 23:return Kn(e),Hf(),t!==null&&de(li),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return Jn(ae),null;case 25:return null;default:return null}}function Dy(t,e){switch(Of(e),e.tag){case 3:Jn(ae),ur();break;case 26:case 27:case 5:Po(e);break;case 4:ur();break;case 13:Kn(e);break;case 19:de(oe);break;case 10:Jn(e.type);break;case 22:case 23:Kn(e),Hf(),t!==null&&de(li);break;case 24:Jn(ae)}}function Va(t,e){try{var n=e.updateQueue,l=n!==null?n.lastEffect:null;if(l!==null){var i=l.next;n=i;do{if((n.tag&t)===t){l=void 0;var r=n.create,a=n.inst;l=r(),a.destroy=l}n=n.next}while(n!==i)}}catch(o){Mt(e,e.return,o)}}function Ml(t,e,n){try{var l=e.updateQueue,i=l!==null?l.lastEffect:null;if(i!==null){var r=i.next;l=r;do{if((l.tag&t)===t){var a=l.inst,o=a.destroy;if(o!==void 0){a.destroy=void 0,i=e;var u=n,s=o;try{s()}catch(c){Mt(i,u,c)}}}l=l.next}while(l!==r)}}catch(c){Mt(e,e.return,c)}}function Ny(t){var e=t.updateQueue;if(e!==null){var n=t.stateNode;try{Bg(e,n)}catch(l){Mt(t,t.return,l)}}}function zy(t,e,n){n.props=si(t.type,t.memoizedProps),n.state=t.memoizedState;try{n.componentWillUnmount()}catch(l){Mt(t,e,l)}}function pa(t,e){try{var n=t.ref;if(n!==null){switch(t.tag){case 26:case 27:case 5:var l=t.stateNode;break;case 30:l=t.stateNode;break;default:l=t.stateNode}typeof n=="function"?t.refCleanup=n(l):n.current=l}}catch(i){Mt(t,e,i)}}function Mn(t,e){var n=t.ref,l=t.refCleanup;if(n!==null)if(typeof l=="function")try{l()}catch(i){Mt(t,e,i)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(i){Mt(t,e,i)}else n.current=null}function _y(t){var e=t.type,n=t.memoizedProps,l=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":n.autoFocus&&l.focus();break t;case"img":n.src?l.src=n.src:n.srcSet&&(l.srcset=n.srcSet)}}catch(i){Mt(t,t.return,i)}}function pc(t,e,n){try{var l=t.stateNode;xk(l,t.type,n,e),l[Ie]=e}catch(i){Mt(t,t.return,i)}}function Oy(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&zl(t.type)||t.tag===4}function mc(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||Oy(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&zl(t.type)||t.flags&2||t.child===null||t.tag===4)continue t;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function tf(t,e,n){var l=t.tag;if(l===5||l===6)t=t.stateNode,e?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(t,e):(e=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,e.appendChild(t),n=n._reactRootContainer,n!=null||e.onclick!==null||(e.onclick=Bu));else if(l!==4&&(l===27&&zl(t.type)&&(n=t.stateNode,e=null),t=t.child,t!==null))for(tf(t,e,n),t=t.sibling;t!==null;)tf(t,e,n),t=t.sibling}function pu(t,e,n){var l=t.tag;if(l===5||l===6)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(l!==4&&(l===27&&zl(t.type)&&(n=t.stateNode),t=t.child,t!==null))for(pu(t,e,n),t=t.sibling;t!==null;)pu(t,e,n),t=t.sibling}function Ly(t){var e=t.stateNode,n=t.memoizedProps;try{for(var l=t.type,i=e.attributes;i.length;)e.removeAttributeNode(i[0]);xe(e,l,n),e[ke]=t,e[Ie]=n}catch(r){Mt(t,t.return,r)}}var Fn=!1,Zt=!1,dc=!1,bh=typeof WeakSet=="function"?WeakSet:Set,fe=null;function nk(t,e){if(t=t.containerInfo,sf=ku,t=kg(t),Mf(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else t:{n=(n=t.ownerDocument)&&n.defaultView||window;var l=n.getSelection&&n.getSelection();if(l&&l.rangeCount!==0){n=l.anchorNode;var i=l.anchorOffset,r=l.focusNode;l=l.focusOffset;try{n.nodeType,r.nodeType}catch{n=null;break t}var a=0,o=-1,u=-1,s=0,c=0,f=t,m=null;e:for(;;){for(var p;f!==n||i!==0&&f.nodeType!==3||(o=a+i),f!==r||l!==0&&f.nodeType!==3||(u=a+l),f.nodeType===3&&(a+=f.nodeValue.length),(p=f.firstChild)!==null;)m=f,f=p;for(;;){if(f===t)break e;if(m===n&&++s===i&&(o=a),m===r&&++c===l&&(u=a),(p=f.nextSibling)!==null)break;f=m,m=f.parentNode}f=p}n=o===-1||u===-1?null:{start:o,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(cf={focusedElem:t,selectionRange:n},ku=!1,fe=e;fe!==null;)if(e=fe,t=e.child,(e.subtreeFlags&1024)!==0&&t!==null)t.return=e,fe=t;else for(;fe!==null;){switch(e=fe,r=e.alternate,t=e.flags,e.tag){case 0:break;case 11:case 15:break;case 1:if((t&1024)!==0&&r!==null){t=void 0,n=e,i=r.memoizedProps,r=r.memoizedState,l=n.stateNode;try{var g=si(n.type,i,n.elementType===n.type);t=l.getSnapshotBeforeUpdate(g,r),l.__reactInternalSnapshotBeforeUpdate=t}catch(v){Mt(n,n.return,v)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,n=t.nodeType,n===9)pf(t);else if(n===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":pf(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(R(163))}if(t=e.sibling,t!==null){t.return=e.return,fe=t;break}fe=e.return}}function Uy(t,e,n){var l=n.flags;switch(n.tag){case 0:case 11:case 15:ul(t,n),l&4&&Va(5,n);break;case 1:if(ul(t,n),l&4)if(t=n.stateNode,e===null)try{t.componentDidMount()}catch(a){Mt(n,n.return,a)}else{var i=si(n.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(i,e,t.__reactInternalSnapshotBeforeUpdate)}catch(a){Mt(n,n.return,a)}}l&64&&Ny(n),l&512&&pa(n,n.return);break;case 3:if(ul(t,n),l&64&&(t=n.updateQueue,t!==null)){if(e=null,n.child!==null)switch(n.child.tag){case 27:case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}try{Bg(t,e)}catch(a){Mt(n,n.return,a)}}break;case 27:e===null&&l&4&&Ly(n);case 26:case 5:ul(t,n),e===null&&l&4&&_y(n),l&512&&pa(n,n.return);break;case 12:ul(t,n);break;case 13:ul(t,n),l&4&&qy(t,n),l&64&&(t=n.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(n=fk.bind(null,n),Ck(t,n))));break;case 22:if(l=n.memoizedState!==null||Fn,!l){e=e!==null&&e.memoizedState!==null||Zt,i=Fn;var r=Zt;Fn=l,(Zt=e)&&!r?sl(t,n,(n.subtreeFlags&8772)!==0):ul(t,n),Fn=i,Zt=r}break;case 30:break;default:ul(t,n)}}function By(t){var e=t.alternate;e!==null&&(t.alternate=null,By(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&Ef(e)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var Lt=null,qe=!1;function Vn(t,e,n){for(n=n.child;n!==null;)Hy(t,e,n),n=n.sibling}function Hy(t,e,n){if(Ze&&typeof Ze.onCommitFiberUnmount=="function")try{Ze.onCommitFiberUnmount(za,n)}catch{}switch(n.tag){case 26:Zt||Mn(n,e),Vn(t,e,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Zt||Mn(n,e);var l=Lt,i=qe;zl(n.type)&&(Lt=n.stateNode,qe=!1),Vn(t,e,n),ga(n.stateNode),Lt=l,qe=i;break;case 5:Zt||Mn(n,e);case 6:if(l=Lt,i=qe,Lt=null,Vn(t,e,n),Lt=l,qe=i,Lt!==null)if(qe)try{(Lt.nodeType===9?Lt.body:Lt.nodeName==="HTML"?Lt.ownerDocument.body:Lt).removeChild(n.stateNode)}catch(r){Mt(n,e,r)}else try{Lt.removeChild(n.stateNode)}catch(r){Mt(n,e,r)}break;case 18:Lt!==null&&(qe?(t=Lt,_h(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,n.stateNode),Da(t)):_h(Lt,n.stateNode));break;case 4:l=Lt,i=qe,Lt=n.stateNode.containerInfo,qe=!0,Vn(t,e,n),Lt=l,qe=i;break;case 0:case 11:case 14:case 15:Zt||Ml(2,n,e),Zt||Ml(4,n,e),Vn(t,e,n);break;case 1:Zt||(Mn(n,e),l=n.stateNode,typeof l.componentWillUnmount=="function"&&zy(n,e,l)),Vn(t,e,n);break;case 21:Vn(t,e,n);break;case 22:Zt=(l=Zt)||n.memoizedState!==null,Vn(t,e,n),Zt=l;break;default:Vn(t,e,n)}}function qy(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{Da(t)}catch(n){Mt(e,e.return,n)}}function lk(t){switch(t.tag){case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new bh),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new bh),e;default:throw Error(R(435,t.tag))}}function hc(t,e){var n=lk(t);e.forEach(function(l){var i=pk.bind(null,t,l);n.has(l)||(n.add(l),l.then(i,i))})}function Fe(t,e){var n=e.deletions;if(n!==null)for(var l=0;l<n.length;l++){var i=n[l],r=t,a=e,o=a;t:for(;o!==null;){switch(o.tag){case 27:if(zl(o.type)){Lt=o.stateNode,qe=!1;break t}break;case 5:Lt=o.stateNode,qe=!1;break t;case 3:case 4:Lt=o.stateNode.containerInfo,qe=!0;break t}o=o.return}if(Lt===null)throw Error(R(160));Hy(r,a,i),Lt=null,qe=!1,r=i.alternate,r!==null&&(r.return=null),i.return=null}if(e.subtreeFlags&13878)for(e=e.child;e!==null;)jy(e,t),e=e.sibling}var gn=null;function jy(t,e){var n=t.alternate,l=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:Fe(e,t),Qe(t),l&4&&(Ml(3,t,t.return),Va(3,t),Ml(5,t,t.return));break;case 1:Fe(e,t),Qe(t),l&512&&(Zt||n===null||Mn(n,n.return)),l&64&&Fn&&(t=t.updateQueue,t!==null&&(l=t.callbacks,l!==null&&(n=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=n===null?l:n.concat(l))));break;case 26:var i=gn;if(Fe(e,t),Qe(t),l&512&&(Zt||n===null||Mn(n,n.return)),l&4){var r=n!==null?n.memoizedState:null;if(l=t.memoizedState,n===null)if(l===null)if(t.stateNode===null){t:{l=t.type,n=t.memoizedProps,i=i.ownerDocument||i;e:switch(l){case"title":r=i.getElementsByTagName("title")[0],(!r||r[La]||r[ke]||r.namespaceURI==="http://www.w3.org/2000/svg"||r.hasAttribute("itemprop"))&&(r=i.createElement(l),i.head.insertBefore(r,i.querySelector("head > title"))),xe(r,l,n),r[ke]=t,pe(r),l=r;break t;case"link":var a=Hh("link","href",i).get(l+(n.href||""));if(a){for(var o=0;o<a.length;o++)if(r=a[o],r.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&r.getAttribute("rel")===(n.rel==null?null:n.rel)&&r.getAttribute("title")===(n.title==null?null:n.title)&&r.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){a.splice(o,1);break e}}r=i.createElement(l),xe(r,l,n),i.head.appendChild(r);break;case"meta":if(a=Hh("meta","content",i).get(l+(n.content||""))){for(o=0;o<a.length;o++)if(r=a[o],r.getAttribute("content")===(n.content==null?null:""+n.content)&&r.getAttribute("name")===(n.name==null?null:n.name)&&r.getAttribute("property")===(n.property==null?null:n.property)&&r.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&r.getAttribute("charset")===(n.charSet==null?null:n.charSet)){a.splice(o,1);break e}}r=i.createElement(l),xe(r,l,n),i.head.appendChild(r);break;default:throw Error(R(468,l))}r[ke]=t,pe(r),l=r}t.stateNode=l}else qh(i,t.type,t.stateNode);else t.stateNode=Bh(i,l,t.memoizedProps);else r!==l?(r===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):r.count--,l===null?qh(i,t.type,t.stateNode):Bh(i,l,t.memoizedProps)):l===null&&t.stateNode!==null&&pc(t,t.memoizedProps,n.memoizedProps)}break;case 27:Fe(e,t),Qe(t),l&512&&(Zt||n===null||Mn(n,n.return)),n!==null&&l&4&&pc(t,t.memoizedProps,n.memoizedProps);break;case 5:if(Fe(e,t),Qe(t),l&512&&(Zt||n===null||Mn(n,n.return)),t.flags&32){i=t.stateNode;try{cr(i,"")}catch(p){Mt(t,t.return,p)}}l&4&&t.stateNode!=null&&(i=t.memoizedProps,pc(t,i,n!==null?n.memoizedProps:i)),l&1024&&(dc=!0);break;case 6:if(Fe(e,t),Qe(t),l&4){if(t.stateNode===null)throw Error(R(162));l=t.memoizedProps,n=t.stateNode;try{n.nodeValue=l}catch(p){Mt(t,t.return,p)}}break;case 3:if(Xo=null,i=gn,gn=bu(e.containerInfo),Fe(e,t),gn=i,Qe(t),l&4&&n!==null&&n.memoizedState.isDehydrated)try{Da(e.containerInfo)}catch(p){Mt(t,t.return,p)}dc&&(dc=!1,Iy(t));break;case 4:l=gn,gn=bu(t.stateNode.containerInfo),Fe(e,t),Qe(t),gn=l;break;case 12:Fe(e,t),Qe(t);break;case 13:Fe(e,t),Qe(t),t.child.flags&8192&&t.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(np=Nn()),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,hc(t,l)));break;case 22:i=t.memoizedState!==null;var u=n!==null&&n.memoizedState!==null,s=Fn,c=Zt;if(Fn=s||i,Zt=c||u,Fe(e,t),Zt=c,Fn=s,Qe(t),l&8192)t:for(e=t.stateNode,e._visibility=i?e._visibility&-2:e._visibility|1,i&&(n===null||u||Fn||Zt||Wl(t)),n=null,e=t;;){if(e.tag===5||e.tag===26){if(n===null){u=n=e;try{if(r=u.stateNode,i)a=r.style,typeof a.setProperty=="function"?a.setProperty("display","none","important"):a.display="none";else{o=u.stateNode;var f=u.memoizedProps.style,m=f!=null&&f.hasOwnProperty("display")?f.display:null;o.style.display=m==null||typeof m=="boolean"?"":(""+m).trim()}}catch(p){Mt(u,u.return,p)}}}else if(e.tag===6){if(n===null){u=e;try{u.stateNode.nodeValue=i?"":u.memoizedProps}catch(p){Mt(u,u.return,p)}}}else if((e.tag!==22&&e.tag!==23||e.memoizedState===null||e===t)&&e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break t;for(;e.sibling===null;){if(e.return===null||e.return===t)break t;n===e&&(n=null),e=e.return}n===e&&(n=null),e.sibling.return=e.return,e=e.sibling}l&4&&(l=t.updateQueue,l!==null&&(n=l.retryQueue,n!==null&&(l.retryQueue=null,hc(t,n))));break;case 19:Fe(e,t),Qe(t),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,hc(t,l)));break;case 30:break;case 21:break;default:Fe(e,t),Qe(t)}}function Qe(t){var e=t.flags;if(e&2){try{for(var n,l=t.return;l!==null;){if(Oy(l)){n=l;break}l=l.return}if(n==null)throw Error(R(160));switch(n.tag){case 27:var i=n.stateNode,r=mc(t);pu(t,r,i);break;case 5:var a=n.stateNode;n.flags&32&&(cr(a,""),n.flags&=-33);var o=mc(t);pu(t,o,a);break;case 3:case 4:var u=n.stateNode.containerInfo,s=mc(t);tf(t,s,u);break;default:throw Error(R(161))}}catch(c){Mt(t,t.return,c)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function Iy(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;Iy(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function ul(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)Uy(t,e.alternate,e),e=e.sibling}function Wl(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:Ml(4,e,e.return),Wl(e);break;case 1:Mn(e,e.return);var n=e.stateNode;typeof n.componentWillUnmount=="function"&&zy(e,e.return,n),Wl(e);break;case 27:ga(e.stateNode);case 26:case 5:Mn(e,e.return),Wl(e);break;case 22:e.memoizedState===null&&Wl(e);break;case 30:Wl(e);break;default:Wl(e)}t=t.sibling}}function sl(t,e,n){for(n=n&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var l=e.alternate,i=t,r=e,a=r.flags;switch(r.tag){case 0:case 11:case 15:sl(i,r,n),Va(4,r);break;case 1:if(sl(i,r,n),l=r,i=l.stateNode,typeof i.componentDidMount=="function")try{i.componentDidMount()}catch(s){Mt(l,l.return,s)}if(l=r,i=l.updateQueue,i!==null){var o=l.stateNode;try{var u=i.shared.hiddenCallbacks;if(u!==null)for(i.shared.hiddenCallbacks=null,i=0;i<u.length;i++)Ug(u[i],o)}catch(s){Mt(l,l.return,s)}}n&&a&64&&Ny(r),pa(r,r.return);break;case 27:Ly(r);case 26:case 5:sl(i,r,n),n&&l===null&&a&4&&_y(r),pa(r,r.return);break;case 12:sl(i,r,n);break;case 13:sl(i,r,n),n&&a&4&&qy(i,r);break;case 22:r.memoizedState===null&&sl(i,r,n),pa(r,r.return);break;case 30:break;default:sl(i,r,n)}e=e.sibling}}function Wf(t,e){var n=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),t=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(t=e.memoizedState.cachePool.pool),t!==n&&(t!=null&&t.refCount++,n!=null&&qa(n))}function $f(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&qa(t))}function Cn(t,e,n,l){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Yy(t,e,n,l),e=e.sibling}function Yy(t,e,n,l){var i=e.flags;switch(e.tag){case 0:case 11:case 15:Cn(t,e,n,l),i&2048&&Va(9,e);break;case 1:Cn(t,e,n,l);break;case 3:Cn(t,e,n,l),i&2048&&(t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&qa(t)));break;case 12:if(i&2048){Cn(t,e,n,l),t=e.stateNode;try{var r=e.memoizedProps,a=r.id,o=r.onPostCommit;typeof o=="function"&&o(a,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(u){Mt(e,e.return,u)}}else Cn(t,e,n,l);break;case 13:Cn(t,e,n,l);break;case 23:break;case 22:r=e.stateNode,a=e.alternate,e.memoizedState!==null?r._visibility&2?Cn(t,e,n,l):ma(t,e):r._visibility&2?Cn(t,e,n,l):(r._visibility|=2,ji(t,e,n,l,(e.subtreeFlags&10256)!==0)),i&2048&&Wf(a,e);break;case 24:Cn(t,e,n,l),i&2048&&$f(e.alternate,e);break;default:Cn(t,e,n,l)}}function ji(t,e,n,l,i){for(i=i&&(e.subtreeFlags&10256)!==0,e=e.child;e!==null;){var r=t,a=e,o=n,u=l,s=a.flags;switch(a.tag){case 0:case 11:case 15:ji(r,a,o,u,i),Va(8,a);break;case 23:break;case 22:var c=a.stateNode;a.memoizedState!==null?c._visibility&2?ji(r,a,o,u,i):ma(r,a):(c._visibility|=2,ji(r,a,o,u,i)),i&&s&2048&&Wf(a.alternate,a);break;case 24:ji(r,a,o,u,i),i&&s&2048&&$f(a.alternate,a);break;default:ji(r,a,o,u,i)}e=e.sibling}}function ma(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var n=t,l=e,i=l.flags;switch(l.tag){case 22:ma(n,l),i&2048&&Wf(l.alternate,l);break;case 24:ma(n,l),i&2048&&$f(l.alternate,l);break;default:ma(n,l)}e=e.sibling}}var na=8192;function Bi(t){if(t.subtreeFlags&na)for(t=t.child;t!==null;)Vy(t),t=t.sibling}function Vy(t){switch(t.tag){case 26:Bi(t),t.flags&na&&t.memoizedState!==null&&jk(gn,t.memoizedState,t.memoizedProps);break;case 5:Bi(t);break;case 3:case 4:var e=gn;gn=bu(t.stateNode.containerInfo),Bi(t),gn=e;break;case 22:t.memoizedState===null&&(e=t.alternate,e!==null&&e.memoizedState!==null?(e=na,na=16777216,Bi(t),na=e):Bi(t));break;default:Bi(t)}}function Fy(t){var e=t.alternate;if(e!==null&&(t=e.child,t!==null)){e.child=null;do e=t.sibling,t.sibling=null,t=e;while(t!==null)}}function Pr(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var n=0;n<e.length;n++){var l=e[n];fe=l,Xy(l,t)}Fy(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Qy(t),t=t.sibling}function Qy(t){switch(t.tag){case 0:case 11:case 15:Pr(t),t.flags&2048&&Ml(9,t,t.return);break;case 3:Pr(t);break;case 12:Pr(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,Fo(t)):Pr(t);break;default:Pr(t)}}function Fo(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var n=0;n<e.length;n++){var l=e[n];fe=l,Xy(l,t)}Fy(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:Ml(8,e,e.return),Fo(e);break;case 22:n=e.stateNode,n._visibility&2&&(n._visibility&=-3,Fo(e));break;default:Fo(e)}t=t.sibling}}function Xy(t,e){for(;fe!==null;){var n=fe;switch(n.tag){case 0:case 11:case 15:Ml(8,n,e);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var l=n.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:qa(n.memoizedState.cache)}if(l=n.child,l!==null)l.return=n,fe=l;else t:for(n=t;fe!==null;){l=fe;var i=l.sibling,r=l.return;if(By(l),l===n){fe=null;break t}if(i!==null){i.return=r,fe=i;break t}fe=r}}}var ik={getCacheForType:function(t){var e=Ee(ae),n=e.data.get(t);return n===void 0&&(n=t(),e.data.set(t,n)),n}},rk=typeof WeakMap=="function"?WeakMap:Map,wt=0,Dt=null,st=null,pt=0,Tt=0,Xe=null,vl=!1,kr=!1,tp=!1,el=0,Ft=0,Dl=0,ii=0,ep=0,sn=0,hr=0,da=null,je=null,ef=!1,np=0,mu=1/0,du=null,El=null,be=0,Tl=null,gr=null,or=0,nf=0,lf=null,Gy=null,ha=0,rf=null;function Pe(){if((wt&2)!==0&&pt!==0)return pt&-pt;if(P.T!==null){var t=fr;return t!==0?t:ip()}return ig()}function Zy(){sn===0&&(sn=(pt&536870912)===0||yt?tg():536870912);var t=cn.current;return t!==null&&(t.flags|=32),sn}function Je(t,e,n){(t===Dt&&(Tt===2||Tt===9)||t.cancelPendingCommit!==null)&&(yr(t,0),bl(t,pt,sn,!1)),Oa(t,n),((wt&2)===0||t!==Dt)&&(t===Dt&&((wt&2)===0&&(ii|=n),Ft===4&&bl(t,pt,sn,!1)),On(t))}function Ky(t,e,n){if((wt&6)!==0)throw Error(R(327));var l=!n&&(e&124)===0&&(e&t.expiredLanes)===0||_a(t,e),i=l?uk(t,e):gc(t,e,!0),r=l;do{if(i===0){kr&&!l&&bl(t,e,0,!1);break}else{if(n=t.current.alternate,r&&!ak(n)){i=gc(t,e,!1),r=!1;continue}if(i===2){if(r=e,t.errorRecoveryDisabledLanes&r)var a=0;else a=t.pendingLanes&-536870913,a=a!==0?a:a&536870912?536870912:0;if(a!==0){e=a;t:{var o=t;i=da;var u=o.current.memoizedState.isDehydrated;if(u&&(yr(o,a).flags|=256),a=gc(o,a,!1),a!==2){if(tp&&!u){o.errorRecoveryDisabledLanes|=r,ii|=r,i=4;break t}r=je,je=i,r!==null&&(je===null?je=r:je.push.apply(je,r))}i=a}if(r=!1,i!==2)continue}}if(i===1){yr(t,0),bl(t,e,0,!0);break}t:{switch(l=t,r=i,r){case 0:case 1:throw Error(R(345));case 4:if((e&4194048)!==e)break;case 6:bl(l,e,sn,!vl);break t;case 2:je=null;break;case 3:case 5:break;default:throw Error(R(329))}if((e&62914560)===e&&(i=np+300-Nn(),10<i)){if(bl(l,e,sn,!vl),Tu(l,0,!0)!==0)break t;l.timeoutHandle=d1(xh.bind(null,l,n,je,du,ef,e,sn,ii,hr,vl,r,2,-0,0),i);break t}xh(l,n,je,du,ef,e,sn,ii,hr,vl,r,0,-0,0)}}break}while(!0);On(t)}function xh(t,e,n,l,i,r,a,o,u,s,c,f,m,p){if(t.timeoutHandle=-1,f=e.subtreeFlags,(f&8192||(f&16785408)===16785408)&&(Aa={stylesheets:null,count:0,unsuspend:qk},Vy(e),f=Ik(),f!==null)){t.cancelPendingCommit=f(kh.bind(null,t,e,r,n,l,i,a,o,u,c,1,m,p)),bl(t,r,a,!s);return}kh(t,e,r,n,l,i,a,o,u)}function ak(t){for(var e=t;;){var n=e.tag;if((n===0||n===11||n===15)&&e.flags&16384&&(n=e.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var l=0;l<n.length;l++){var i=n[l],r=i.getSnapshot;i=i.value;try{if(!We(r(),i))return!1}catch{return!1}}if(n=e.child,e.subtreeFlags&16384&&n!==null)n.return=e,e=n;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function bl(t,e,n,l){e&=~ep,e&=~ii,t.suspendedLanes|=e,t.pingedLanes&=~e,l&&(t.warmLanes|=e),l=t.expirationTimes;for(var i=e;0<i;){var r=31-Ke(i),a=1<<r;l[r]=-1,i&=~a}n!==0&&ng(t,n,e)}function Ou(){return(wt&6)===0?(Fa(0,!1),!1):!0}function lp(){if(st!==null){if(Tt===0)var t=st.return;else t=st,Zn=mi=null,Vf(t),ar=null,Ea=0,t=st;for(;t!==null;)Dy(t.alternate,t),t=t.return;st=null}}function yr(t,e){var n=t.timeoutHandle;n!==-1&&(t.timeoutHandle=-1,kk(n)),n=t.cancelPendingCommit,n!==null&&(t.cancelPendingCommit=null,n()),lp(),Dt=t,st=n=Pn(t.current,null),pt=e,Tt=0,Xe=null,vl=!1,kr=_a(t,e),tp=!1,hr=sn=ep=ii=Dl=Ft=0,je=da=null,ef=!1,(e&8)!==0&&(e|=e&32);var l=t.entangledLanes;if(l!==0)for(t=t.entanglements,l&=e;0<l;){var i=31-Ke(l),r=1<<i;e|=t[i],l&=~r}return el=e,Ru(),n}function Py(t,e){rt=null,P.H=ou,e===ja||e===Du?(e=Wd(),Tt=3):e===Og?(e=Wd(),Tt=4):Tt=e===Ty?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,Xe=e,st===null&&(Ft=1,cu(t,un(e,t.current)))}function Jy(){var t=P.H;return P.H=ou,t===null?ou:t}function Wy(){var t=P.A;return P.A=ik,t}function af(){Ft=4,vl||(pt&4194048)!==pt&&cn.current!==null||(kr=!0),(Dl&134217727)===0&&(ii&134217727)===0||Dt===null||bl(Dt,pt,sn,!1)}function gc(t,e,n){var l=wt;wt|=2;var i=Jy(),r=Wy();(Dt!==t||pt!==e)&&(du=null,yr(t,e)),e=!1;var a=Ft;t:do try{if(Tt!==0&&st!==null){var o=st,u=Xe;switch(Tt){case 8:lp(),a=6;break t;case 3:case 2:case 9:case 6:cn.current===null&&(e=!0);var s=Tt;if(Tt=0,Xe=null,$i(t,o,u,s),n&&kr){a=0;break t}break;default:s=Tt,Tt=0,Xe=null,$i(t,o,u,s)}}ok(),a=Ft;break}catch(c){Py(t,c)}while(!0);return e&&t.shellSuspendCounter++,Zn=mi=null,wt=l,P.H=i,P.A=r,st===null&&(Dt=null,pt=0,Ru()),a}function ok(){for(;st!==null;)$y(st)}function uk(t,e){var n=wt;wt|=2;var l=Jy(),i=Wy();Dt!==t||pt!==e?(du=null,mu=Nn()+500,yr(t,e)):kr=_a(t,e);t:do try{if(Tt!==0&&st!==null){e=st;var r=Xe;e:switch(Tt){case 1:Tt=0,Xe=null,$i(t,e,r,1);break;case 2:case 9:if(Jd(r)){Tt=0,Xe=null,Sh(e);break}e=function(){Tt!==2&&Tt!==9||Dt!==t||(Tt=7),On(t)},r.then(e,e);break t;case 3:Tt=7;break t;case 4:Tt=5;break t;case 7:Jd(r)?(Tt=0,Xe=null,Sh(e)):(Tt=0,Xe=null,$i(t,e,r,7));break;case 5:var a=null;switch(st.tag){case 26:a=st.memoizedState;case 5:case 27:var o=st;if(!a||v1(a)){Tt=0,Xe=null;var u=o.sibling;if(u!==null)st=u;else{var s=o.return;s!==null?(st=s,Lu(s)):st=null}break e}}Tt=0,Xe=null,$i(t,e,r,5);break;case 6:Tt=0,Xe=null,$i(t,e,r,6);break;case 8:lp(),Ft=6;break t;default:throw Error(R(462))}}sk();break}catch(c){Py(t,c)}while(!0);return Zn=mi=null,P.H=l,P.A=i,wt=n,st!==null?0:(Dt=null,pt=0,Ru(),Ft)}function sk(){for(;st!==null&&!Nx();)$y(st)}function $y(t){var e=My(t.alternate,t,el);t.memoizedProps=t.pendingProps,e===null?Lu(t):st=e}function Sh(t){var e=t,n=e.alternate;switch(e.tag){case 15:case 0:e=dh(n,e,e.pendingProps,e.type,void 0,pt);break;case 11:e=dh(n,e,e.pendingProps,e.type.render,e.ref,pt);break;case 5:Vf(e);default:Dy(n,e),e=st=Dg(e,el),e=My(n,e,el)}t.memoizedProps=t.pendingProps,e===null?Lu(t):st=e}function $i(t,e,n,l){Zn=mi=null,Vf(e),ar=null,Ea=0;var i=e.return;try{if(WS(t,i,e,n,pt)){Ft=1,cu(t,un(n,t.current)),st=null;return}}catch(r){if(i!==null)throw st=i,r;Ft=1,cu(t,un(n,t.current)),st=null;return}e.flags&32768?(yt||l===1?t=!0:kr||(pt&536870912)!==0?t=!1:(vl=t=!0,(l===2||l===9||l===3||l===6)&&(l=cn.current,l!==null&&l.tag===13&&(l.flags|=16384))),t1(e,t)):Lu(e)}function Lu(t){var e=t;do{if((e.flags&32768)!==0){t1(e,vl);return}t=e.return;var n=tk(e.alternate,e,el);if(n!==null){st=n;return}if(e=e.sibling,e!==null){st=e;return}st=e=t}while(e!==null);Ft===0&&(Ft=5)}function t1(t,e){do{var n=ek(t.alternate,t);if(n!==null){n.flags&=32767,st=n;return}if(n=t.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!e&&(t=t.sibling,t!==null)){st=t;return}st=t=n}while(t!==null);Ft=6,st=null}function kh(t,e,n,l,i,r,a,o,u){t.cancelPendingCommit=null;do Uu();while(be!==0);if((wt&6)!==0)throw Error(R(327));if(e!==null){if(e===t.current)throw Error(R(177));if(r=e.lanes|e.childLanes,r|=Df,Ix(t,n,r,a,o,u),t===Dt&&(st=Dt=null,pt=0),gr=e,Tl=t,or=n,nf=r,lf=i,Gy=l,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,mk(Jo,function(){return r1(!0),null})):(t.callbackNode=null,t.callbackPriority=0),l=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||l){l=P.T,P.T=null,i=vt.p,vt.p=2,a=wt,wt|=4;try{nk(t,e,n)}finally{wt=a,vt.p=i,P.T=l}}be=1,e1(),n1(),l1()}}function e1(){if(be===1){be=0;var t=Tl,e=gr,n=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||n){n=P.T,P.T=null;var l=vt.p;vt.p=2;var i=wt;wt|=4;try{jy(e,t);var r=cf,a=kg(t.containerInfo),o=r.focusedElem,u=r.selectionRange;if(a!==o&&o&&o.ownerDocument&&Sg(o.ownerDocument.documentElement,o)){if(u!==null&&Mf(o)){var s=u.start,c=u.end;if(c===void 0&&(c=s),"selectionStart"in o)o.selectionStart=s,o.selectionEnd=Math.min(c,o.value.length);else{var f=o.ownerDocument||document,m=f&&f.defaultView||window;if(m.getSelection){var p=m.getSelection(),g=o.textContent.length,v=Math.min(u.start,g),k=u.end===void 0?v:Math.min(u.end,g);!p.extend&&v>k&&(a=k,k=v,v=a);var d=Vd(o,v),h=Vd(o,k);if(d&&h&&(p.rangeCount!==1||p.anchorNode!==d.node||p.anchorOffset!==d.offset||p.focusNode!==h.node||p.focusOffset!==h.offset)){var y=f.createRange();y.setStart(d.node,d.offset),p.removeAllRanges(),v>k?(p.addRange(y),p.extend(h.node,h.offset)):(y.setEnd(h.node,h.offset),p.addRange(y))}}}}for(f=[],p=o;p=p.parentNode;)p.nodeType===1&&f.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof o.focus=="function"&&o.focus(),o=0;o<f.length;o++){var T=f[o];T.element.scrollLeft=T.left,T.element.scrollTop=T.top}}ku=!!sf,cf=sf=null}finally{wt=i,vt.p=l,P.T=n}}t.current=e,be=2}}function n1(){if(be===2){be=0;var t=Tl,e=gr,n=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||n){n=P.T,P.T=null;var l=vt.p;vt.p=2;var i=wt;wt|=4;try{Uy(t,e.alternate,e)}finally{wt=i,vt.p=l,P.T=n}}be=3}}function l1(){if(be===4||be===3){be=0,zx();var t=Tl,e=gr,n=or,l=Gy;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?be=5:(be=0,gr=Tl=null,i1(t,t.pendingLanes));var i=t.pendingLanes;if(i===0&&(El=null),kf(n),e=e.stateNode,Ze&&typeof Ze.onCommitFiberRoot=="function")try{Ze.onCommitFiberRoot(za,e,void 0,(e.current.flags&128)===128)}catch{}if(l!==null){e=P.T,i=vt.p,vt.p=2,P.T=null;try{for(var r=t.onRecoverableError,a=0;a<l.length;a++){var o=l[a];r(o.value,{componentStack:o.stack})}}finally{P.T=e,vt.p=i}}(or&3)!==0&&Uu(),On(t),i=t.pendingLanes,(n&4194090)!==0&&(i&42)!==0?t===rf?ha++:(ha=0,rf=t):ha=0,Fa(0,!1)}}function i1(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,qa(e)))}function Uu(t){return e1(),n1(),l1(),r1(t)}function r1(){if(be!==5)return!1;var t=Tl,e=nf;nf=0;var n=kf(or),l=P.T,i=vt.p;try{vt.p=32>n?32:n,P.T=null,n=lf,lf=null;var r=Tl,a=or;if(be=0,gr=Tl=null,or=0,(wt&6)!==0)throw Error(R(331));var o=wt;if(wt|=4,Qy(r.current),Yy(r,r.current,a,n),wt=o,Fa(0,!1),Ze&&typeof Ze.onPostCommitFiberRoot=="function")try{Ze.onPostCommitFiberRoot(za,r)}catch{}return!0}finally{vt.p=i,P.T=l,i1(t,e)}}function Eh(t,e,n){e=un(n,e),e=Jc(t.stateNode,e,2),t=kl(t,e,2),t!==null&&(Oa(t,2),On(t))}function Mt(t,e,n){if(t.tag===3)Eh(t,t,n);else for(;e!==null;){if(e.tag===3){Eh(e,t,n);break}else if(e.tag===1){var l=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(El===null||!El.has(l))){t=un(n,t),n=ky(2),l=kl(e,n,2),l!==null&&(Ey(n,l,e,t),Oa(l,2),On(l));break}}e=e.return}}function yc(t,e,n){var l=t.pingCache;if(l===null){l=t.pingCache=new rk;var i=new Set;l.set(e,i)}else i=l.get(e),i===void 0&&(i=new Set,l.set(e,i));i.has(n)||(tp=!0,i.add(n),t=ck.bind(null,t,e,n),e.then(t,t))}function ck(t,e,n){var l=t.pingCache;l!==null&&l.delete(e),t.pingedLanes|=t.suspendedLanes&n,t.warmLanes&=~n,Dt===t&&(pt&n)===n&&(Ft===4||Ft===3&&(pt&62914560)===pt&&300>Nn()-np?(wt&2)===0&&yr(t,0):ep|=n,hr===pt&&(hr=0)),On(t)}function a1(t,e){e===0&&(e=eg()),t=Sr(t,e),t!==null&&(Oa(t,e),On(t))}function fk(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),a1(t,n)}function pk(t,e){var n=0;switch(t.tag){case 13:var l=t.stateNode,i=t.memoizedState;i!==null&&(n=i.retryLane);break;case 19:l=t.stateNode;break;case 22:l=t.stateNode._retryCache;break;default:throw Error(R(314))}l!==null&&l.delete(e),a1(t,n)}function mk(t,e){return xf(t,e)}var hu=null,Ii=null,of=!1,gu=!1,vc=!1,ri=0;function On(t){t!==Ii&&t.next===null&&(Ii===null?hu=Ii=t:Ii=Ii.next=t),gu=!0,of||(of=!0,hk())}function Fa(t,e){if(!vc&&gu){vc=!0;do for(var n=!1,l=hu;l!==null;){if(!e)if(t!==0){var i=l.pendingLanes;if(i===0)var r=0;else{var a=l.suspendedLanes,o=l.pingedLanes;r=(1<<31-Ke(42|t)+1)-1,r&=i&~(a&~o),r=r&201326741?r&201326741|1:r?r|2:0}r!==0&&(n=!0,Th(l,r))}else r=pt,r=Tu(l,l===Dt?r:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(r&3)===0||_a(l,r)||(n=!0,Th(l,r));l=l.next}while(n);vc=!1}}function dk(){o1()}function o1(){gu=of=!1;var t=0;ri!==0&&(Sk()&&(t=ri),ri=0);for(var e=Nn(),n=null,l=hu;l!==null;){var i=l.next,r=u1(l,e);r===0?(l.next=null,n===null?hu=i:n.next=i,i===null&&(Ii=n)):(n=l,(t!==0||(r&3)!==0)&&(gu=!0)),l=i}Fa(t,!1)}function u1(t,e){for(var n=t.suspendedLanes,l=t.pingedLanes,i=t.expirationTimes,r=t.pendingLanes&-62914561;0<r;){var a=31-Ke(r),o=1<<a,u=i[a];u===-1?((o&n)===0||(o&l)!==0)&&(i[a]=jx(o,e)):u<=e&&(t.expiredLanes|=o),r&=~o}if(e=Dt,n=pt,n=Tu(t,t===e?n:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),l=t.callbackNode,n===0||t===e&&(Tt===2||Tt===9)||t.cancelPendingCommit!==null)return l!==null&&l!==null&&Qs(l),t.callbackNode=null,t.callbackPriority=0;if((n&3)===0||_a(t,n)){if(e=n&-n,e===t.callbackPriority)return e;switch(l!==null&&Qs(l),kf(n)){case 2:case 8:n=Wh;break;case 32:n=Jo;break;case 268435456:n=$h;break;default:n=Jo}return l=s1.bind(null,t),n=xf(n,l),t.callbackPriority=e,t.callbackNode=n,e}return l!==null&&l!==null&&Qs(l),t.callbackPriority=2,t.callbackNode=null,2}function s1(t,e){if(be!==0&&be!==5)return t.callbackNode=null,t.callbackPriority=0,null;var n=t.callbackNode;if(Uu(!0)&&t.callbackNode!==n)return null;var l=pt;return l=Tu(t,t===Dt?l:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),l===0?null:(Ky(t,l,e),u1(t,Nn()),t.callbackNode!=null&&t.callbackNode===n?s1.bind(null,t):null)}function Th(t,e){if(Uu())return null;Ky(t,e,!0)}function hk(){Ek(function(){(wt&6)!==0?xf(Jh,dk):o1()})}function ip(){return ri===0&&(ri=tg()),ri}function wh(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:Uo(""+t)}function Ah(t,e){var n=e.ownerDocument.createElement("input");return n.name=e.name,n.value=e.value,t.id&&n.setAttribute("form",t.id),e.parentNode.insertBefore(n,e),t=new FormData(t),n.parentNode.removeChild(n),t}function gk(t,e,n,l,i){if(e==="submit"&&n&&n.stateNode===i){var r=wh((i[Ie]||null).action),a=l.submitter;a&&(e=(e=a[Ie]||null)?wh(e.formAction):a.getAttribute("formAction"),e!==null&&(r=e,a=null));var o=new wu("action","action",null,l,i);t.push({event:o,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(ri!==0){var u=a?Ah(i,a):new FormData(i);Kc(n,{pending:!0,data:u,method:i.method,action:r},null,u)}}else typeof r=="function"&&(o.preventDefault(),u=a?Ah(i,a):new FormData(i),Kc(n,{pending:!0,data:u,method:i.method,action:r},r,u))},currentTarget:i}]})}}for(Do=0;Do<Bc.length;Do++)No=Bc[Do],Ch=No.toLowerCase(),Rh=No[0].toUpperCase()+No.slice(1),vn(Ch,"on"+Rh);var No,Ch,Rh,Do;vn(Tg,"onAnimationEnd");vn(wg,"onAnimationIteration");vn(Ag,"onAnimationStart");vn("dblclick","onDoubleClick");vn("focusin","onFocus");vn("focusout","onBlur");vn(LS,"onTransitionRun");vn(US,"onTransitionStart");vn(BS,"onTransitionCancel");vn(Cg,"onTransitionEnd");sr("onMouseEnter",["mouseout","mouseover"]);sr("onMouseLeave",["mouseout","mouseover"]);sr("onPointerEnter",["pointerout","pointerover"]);sr("onPointerLeave",["pointerout","pointerover"]);ci("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));ci("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));ci("onBeforeInput",["compositionend","keypress","textInput","paste"]);ci("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));ci("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));ci("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ta="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(" "),yk=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ta));function c1(t,e){e=(e&4)!==0;for(var n=0;n<t.length;n++){var l=t[n],i=l.event;l=l.listeners;t:{var r=void 0;if(e)for(var a=l.length-1;0<=a;a--){var o=l[a],u=o.instance,s=o.currentTarget;if(o=o.listener,u!==r&&i.isPropagationStopped())break t;r=o,i.currentTarget=s;try{r(i)}catch(c){su(c)}i.currentTarget=null,r=u}else for(a=0;a<l.length;a++){if(o=l[a],u=o.instance,s=o.currentTarget,o=o.listener,u!==r&&i.isPropagationStopped())break t;r=o,i.currentTarget=s;try{r(i)}catch(c){su(c)}i.currentTarget=null,r=u}}}}function ut(t,e){var n=e[Dc];n===void 0&&(n=e[Dc]=new Set);var l=t+"__bubble";n.has(l)||(f1(e,t,2,!1),n.add(l))}function bc(t,e,n){var l=0;e&&(l|=4),f1(n,t,l,e)}var zo="_reactListening"+Math.random().toString(36).slice(2);function rp(t){if(!t[zo]){t[zo]=!0,rg.forEach(function(n){n!=="selectionchange"&&(yk.has(n)||bc(n,!1,t),bc(n,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[zo]||(e[zo]=!0,bc("selectionchange",!1,e))}}function f1(t,e,n,l){switch(E1(e)){case 2:var i=Fk;break;case 8:i=Qk;break;default:i=sp}n=i.bind(null,e,n,t),i=void 0,!Oc||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(i=!0),l?i!==void 0?t.addEventListener(e,n,{capture:!0,passive:i}):t.addEventListener(e,n,!0):i!==void 0?t.addEventListener(e,n,{passive:i}):t.addEventListener(e,n,!1)}function xc(t,e,n,l,i){var r=l;if((e&1)===0&&(e&2)===0&&l!==null)t:for(;;){if(l===null)return;var a=l.tag;if(a===3||a===4){var o=l.stateNode.containerInfo;if(o===i)break;if(a===4)for(a=l.return;a!==null;){var u=a.tag;if((u===3||u===4)&&a.stateNode.containerInfo===i)return;a=a.return}for(;o!==null;){if(a=Fi(o),a===null)return;if(u=a.tag,u===5||u===6||u===26||u===27){l=r=a;continue t}o=o.parentNode}}l=l.return}mg(function(){var s=r,c=wf(n),f=[];t:{var m=Rg.get(t);if(m!==void 0){var p=wu,g=t;switch(t){case"keypress":if(Ho(n)===0)break t;case"keydown":case"keyup":p=mS;break;case"focusin":g="focus",p=$s;break;case"focusout":g="blur",p=$s;break;case"beforeblur":case"afterblur":p=$s;break;case"click":if(n.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":p=Od;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":p=eS;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":p=gS;break;case Tg:case wg:case Ag:p=iS;break;case Cg:p=vS;break;case"scroll":case"scrollend":p=$x;break;case"wheel":p=xS;break;case"copy":case"cut":case"paste":p=aS;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":p=Ud;break;case"toggle":case"beforetoggle":p=kS}var v=(e&4)!==0,k=!v&&(t==="scroll"||t==="scrollend"),d=v?m!==null?m+"Capture":null:m;v=[];for(var h=s,y;h!==null;){var T=h;if(y=T.stateNode,T=T.tag,T!==5&&T!==26&&T!==27||y===null||d===null||(T=va(h,d),T!=null&&v.push(wa(h,T,y))),k)break;h=h.return}0<v.length&&(m=new p(m,g,null,n,c),f.push({event:m,listeners:v}))}}if((e&7)===0){t:{if(m=t==="mouseover"||t==="pointerover",p=t==="mouseout"||t==="pointerout",m&&n!==_c&&(g=n.relatedTarget||n.fromElement)&&(Fi(g)||g[br]))break t;if((p||m)&&(m=c.window===c?c:(m=c.ownerDocument)?m.defaultView||m.parentWindow:window,p?(g=n.relatedTarget||n.toElement,p=s,g=g?Fi(g):null,g!==null&&(k=Na(g),v=g.tag,g!==k||v!==5&&v!==27&&v!==6)&&(g=null)):(p=null,g=s),p!==g)){if(v=Od,T="onMouseLeave",d="onMouseEnter",h="mouse",(t==="pointerout"||t==="pointerover")&&(v=Ud,T="onPointerLeave",d="onPointerEnter",h="pointer"),k=p==null?m:ea(p),y=g==null?m:ea(g),m=new v(T,h+"leave",p,n,c),m.target=k,m.relatedTarget=y,T=null,Fi(c)===s&&(v=new v(d,h+"enter",g,n,c),v.target=y,v.relatedTarget=k,T=v),k=T,p&&g)e:{for(v=p,d=g,h=0,y=v;y;y=Hi(y))h++;for(y=0,T=d;T;T=Hi(T))y++;for(;0<h-y;)v=Hi(v),h--;for(;0<y-h;)d=Hi(d),y--;for(;h--;){if(v===d||d!==null&&v===d.alternate)break e;v=Hi(v),d=Hi(d)}v=null}else v=null;p!==null&&Mh(f,m,p,v,!1),g!==null&&k!==null&&Mh(f,k,g,v,!0)}}t:{if(m=s?ea(s):window,p=m.nodeName&&m.nodeName.toLowerCase(),p==="select"||p==="input"&&m.type==="file")var C=jd;else if(qd(m))if(bg)C=zS;else{C=DS;var E=MS}else p=m.nodeName,!p||p.toLowerCase()!=="input"||m.type!=="checkbox"&&m.type!=="radio"?s&&Tf(s.elementType)&&(C=jd):C=NS;if(C&&(C=C(t,s))){vg(f,C,n,c);break t}E&&E(t,m,s),t==="focusout"&&s&&m.type==="number"&&s.memoizedProps.value!=null&&zc(m,"number",m.value)}switch(E=s?ea(s):window,t){case"focusin":(qd(E)||E.contentEditable==="true")&&(Gi=E,Lc=s,ra=null);break;case"focusout":ra=Lc=Gi=null;break;case"mousedown":Uc=!0;break;case"contextmenu":case"mouseup":case"dragend":Uc=!1,Fd(f,n,c);break;case"selectionchange":if(OS)break;case"keydown":case"keyup":Fd(f,n,c)}var M;if(Rf)t:{switch(t){case"compositionstart":var N="onCompositionStart";break t;case"compositionend":N="onCompositionEnd";break t;case"compositionupdate":N="onCompositionUpdate";break t}N=void 0}else Xi?gg(t,n)&&(N="onCompositionEnd"):t==="keydown"&&n.keyCode===229&&(N="onCompositionStart");N&&(hg&&n.locale!=="ko"&&(Xi||N!=="onCompositionStart"?N==="onCompositionEnd"&&Xi&&(M=dg()):(yl=c,Af="value"in yl?yl.value:yl.textContent,Xi=!0)),E=yu(s,N),0<E.length&&(N=new Ld(N,t,null,n,c),f.push({event:N,listeners:E}),M?N.data=M:(M=yg(n),M!==null&&(N.data=M)))),(M=TS?wS(t,n):AS(t,n))&&(N=yu(s,"onBeforeInput"),0<N.length&&(E=new Ld("onBeforeInput","beforeinput",null,n,c),f.push({event:E,listeners:N}),E.data=M)),gk(f,t,s,n,c)}c1(f,e)})}function wa(t,e,n){return{instance:t,listener:e,currentTarget:n}}function yu(t,e){for(var n=e+"Capture",l=[];t!==null;){var i=t,r=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||r===null||(i=va(t,n),i!=null&&l.unshift(wa(t,i,r)),i=va(t,e),i!=null&&l.push(wa(t,i,r))),t.tag===3)return l;t=t.return}return[]}function Hi(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function Mh(t,e,n,l,i){for(var r=e._reactName,a=[];n!==null&&n!==l;){var o=n,u=o.alternate,s=o.stateNode;if(o=o.tag,u!==null&&u===l)break;o!==5&&o!==26&&o!==27||s===null||(u=s,i?(s=va(n,r),s!=null&&a.unshift(wa(n,s,u))):i||(s=va(n,r),s!=null&&a.push(wa(n,s,u)))),n=n.return}a.length!==0&&t.push({event:e,listeners:a})}var vk=/\r\n?/g,bk=/\u0000|\uFFFD/g;function Dh(t){return(typeof t=="string"?t:""+t).replace(vk,`
|
|
9
|
-
`).replace(bk,"")}function p1(t,e){return e=Dh(e),Dh(t)===e}function Bu(){}function Ct(t,e,n,l,i,r){switch(n){case"children":typeof l=="string"?e==="body"||e==="textarea"&&l===""||cr(t,l):(typeof l=="number"||typeof l=="bigint")&&e!=="body"&&cr(t,""+l);break;case"className":So(t,"class",l);break;case"tabIndex":So(t,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":So(t,n,l);break;case"style":pg(t,l,r);break;case"data":if(e!=="object"){So(t,"data",l);break}case"src":case"href":if(l===""&&(e!=="a"||n!=="href")){t.removeAttribute(n);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){t.removeAttribute(n);break}l=Uo(""+l),t.setAttribute(n,l);break;case"action":case"formAction":if(typeof l=="function"){t.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof r=="function"&&(n==="formAction"?(e!=="input"&&Ct(t,e,"name",i.name,i,null),Ct(t,e,"formEncType",i.formEncType,i,null),Ct(t,e,"formMethod",i.formMethod,i,null),Ct(t,e,"formTarget",i.formTarget,i,null)):(Ct(t,e,"encType",i.encType,i,null),Ct(t,e,"method",i.method,i,null),Ct(t,e,"target",i.target,i,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){t.removeAttribute(n);break}l=Uo(""+l),t.setAttribute(n,l);break;case"onClick":l!=null&&(t.onclick=Bu);break;case"onScroll":l!=null&&ut("scroll",t);break;case"onScrollEnd":l!=null&&ut("scrollend",t);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(R(61));if(n=l.__html,n!=null){if(i.children!=null)throw Error(R(60));t.innerHTML=n}}break;case"multiple":t.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":t.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){t.removeAttribute("xlink:href");break}n=Uo(""+l),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(n,""+l):t.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":l&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(n,""):t.removeAttribute(n);break;case"capture":case"download":l===!0?t.setAttribute(n,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(n,l):t.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?t.setAttribute(n,l):t.removeAttribute(n);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?t.removeAttribute(n):t.setAttribute(n,l);break;case"popover":ut("beforetoggle",t),ut("toggle",t),Lo(t,"popover",l);break;case"xlinkActuate":In(t,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":In(t,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":In(t,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":In(t,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":In(t,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":In(t,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":In(t,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":In(t,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":In(t,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":Lo(t,"is",l);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=Jx.get(n)||n,Lo(t,n,l))}}function uf(t,e,n,l,i,r){switch(n){case"style":pg(t,l,r);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(R(61));if(n=l.__html,n!=null){if(i.children!=null)throw Error(R(60));t.innerHTML=n}}break;case"children":typeof l=="string"?cr(t,l):(typeof l=="number"||typeof l=="bigint")&&cr(t,""+l);break;case"onScroll":l!=null&&ut("scroll",t);break;case"onScrollEnd":l!=null&&ut("scrollend",t);break;case"onClick":l!=null&&(t.onclick=Bu);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!ag.hasOwnProperty(n))t:{if(n[0]==="o"&&n[1]==="n"&&(i=n.endsWith("Capture"),e=n.slice(2,i?n.length-7:void 0),r=t[Ie]||null,r=r!=null?r[n]:null,typeof r=="function"&&t.removeEventListener(e,r,i),typeof l=="function")){typeof r!="function"&&r!==null&&(n in t?t[n]=null:t.hasAttribute(n)&&t.removeAttribute(n)),t.addEventListener(e,l,i);break t}n in t?t[n]=l:l===!0?t.setAttribute(n,""):Lo(t,n,l)}}}function xe(t,e,n){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ut("error",t),ut("load",t);var l=!1,i=!1,r;for(r in n)if(n.hasOwnProperty(r)){var a=n[r];if(a!=null)switch(r){case"src":l=!0;break;case"srcSet":i=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(R(137,e));default:Ct(t,e,r,a,n,null)}}i&&Ct(t,e,"srcSet",n.srcSet,n,null),l&&Ct(t,e,"src",n.src,n,null);return;case"input":ut("invalid",t);var o=r=a=i=null,u=null,s=null;for(l in n)if(n.hasOwnProperty(l)){var c=n[l];if(c!=null)switch(l){case"name":i=c;break;case"type":a=c;break;case"checked":u=c;break;case"defaultChecked":s=c;break;case"value":r=c;break;case"defaultValue":o=c;break;case"children":case"dangerouslySetInnerHTML":if(c!=null)throw Error(R(137,e));break;default:Ct(t,e,l,c,n,null)}}sg(t,r,o,u,s,a,i,!1),Wo(t);return;case"select":ut("invalid",t),l=a=r=null;for(i in n)if(n.hasOwnProperty(i)&&(o=n[i],o!=null))switch(i){case"value":r=o;break;case"defaultValue":a=o;break;case"multiple":l=o;default:Ct(t,e,i,o,n,null)}e=r,n=a,t.multiple=!!l,e!=null?er(t,!!l,e,!1):n!=null&&er(t,!!l,n,!0);return;case"textarea":ut("invalid",t),r=i=l=null;for(a in n)if(n.hasOwnProperty(a)&&(o=n[a],o!=null))switch(a){case"value":l=o;break;case"defaultValue":i=o;break;case"children":r=o;break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(R(91));break;default:Ct(t,e,a,o,n,null)}fg(t,l,i,r),Wo(t);return;case"option":for(u in n)if(n.hasOwnProperty(u)&&(l=n[u],l!=null))switch(u){case"selected":t.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:Ct(t,e,u,l,n,null)}return;case"dialog":ut("beforetoggle",t),ut("toggle",t),ut("cancel",t),ut("close",t);break;case"iframe":case"object":ut("load",t);break;case"video":case"audio":for(l=0;l<Ta.length;l++)ut(Ta[l],t);break;case"image":ut("error",t),ut("load",t);break;case"details":ut("toggle",t);break;case"embed":case"source":case"link":ut("error",t),ut("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(s in n)if(n.hasOwnProperty(s)&&(l=n[s],l!=null))switch(s){case"children":case"dangerouslySetInnerHTML":throw Error(R(137,e));default:Ct(t,e,s,l,n,null)}return;default:if(Tf(e)){for(c in n)n.hasOwnProperty(c)&&(l=n[c],l!==void 0&&uf(t,e,c,l,n,void 0));return}}for(o in n)n.hasOwnProperty(o)&&(l=n[o],l!=null&&Ct(t,e,o,l,n,null))}function xk(t,e,n,l){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var i=null,r=null,a=null,o=null,u=null,s=null,c=null;for(p in n){var f=n[p];if(n.hasOwnProperty(p)&&f!=null)switch(p){case"checked":break;case"value":break;case"defaultValue":u=f;default:l.hasOwnProperty(p)||Ct(t,e,p,null,l,f)}}for(var m in l){var p=l[m];if(f=n[m],l.hasOwnProperty(m)&&(p!=null||f!=null))switch(m){case"type":r=p;break;case"name":i=p;break;case"checked":s=p;break;case"defaultChecked":c=p;break;case"value":a=p;break;case"defaultValue":o=p;break;case"children":case"dangerouslySetInnerHTML":if(p!=null)throw Error(R(137,e));break;default:p!==f&&Ct(t,e,m,p,l,f)}}Nc(t,a,o,u,s,c,r,i);return;case"select":p=a=o=m=null;for(r in n)if(u=n[r],n.hasOwnProperty(r)&&u!=null)switch(r){case"value":break;case"multiple":p=u;default:l.hasOwnProperty(r)||Ct(t,e,r,null,l,u)}for(i in l)if(r=l[i],u=n[i],l.hasOwnProperty(i)&&(r!=null||u!=null))switch(i){case"value":m=r;break;case"defaultValue":o=r;break;case"multiple":a=r;default:r!==u&&Ct(t,e,i,r,l,u)}e=o,n=a,l=p,m!=null?er(t,!!n,m,!1):!!l!=!!n&&(e!=null?er(t,!!n,e,!0):er(t,!!n,n?[]:"",!1));return;case"textarea":p=m=null;for(o in n)if(i=n[o],n.hasOwnProperty(o)&&i!=null&&!l.hasOwnProperty(o))switch(o){case"value":break;case"children":break;default:Ct(t,e,o,null,l,i)}for(a in l)if(i=l[a],r=n[a],l.hasOwnProperty(a)&&(i!=null||r!=null))switch(a){case"value":m=i;break;case"defaultValue":p=i;break;case"children":break;case"dangerouslySetInnerHTML":if(i!=null)throw Error(R(91));break;default:i!==r&&Ct(t,e,a,i,l,r)}cg(t,m,p);return;case"option":for(var g in n)if(m=n[g],n.hasOwnProperty(g)&&m!=null&&!l.hasOwnProperty(g))switch(g){case"selected":t.selected=!1;break;default:Ct(t,e,g,null,l,m)}for(u in l)if(m=l[u],p=n[u],l.hasOwnProperty(u)&&m!==p&&(m!=null||p!=null))switch(u){case"selected":t.selected=m&&typeof m!="function"&&typeof m!="symbol";break;default:Ct(t,e,u,m,l,p)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var v in n)m=n[v],n.hasOwnProperty(v)&&m!=null&&!l.hasOwnProperty(v)&&Ct(t,e,v,null,l,m);for(s in l)if(m=l[s],p=n[s],l.hasOwnProperty(s)&&m!==p&&(m!=null||p!=null))switch(s){case"children":case"dangerouslySetInnerHTML":if(m!=null)throw Error(R(137,e));break;default:Ct(t,e,s,m,l,p)}return;default:if(Tf(e)){for(var k in n)m=n[k],n.hasOwnProperty(k)&&m!==void 0&&!l.hasOwnProperty(k)&&uf(t,e,k,void 0,l,m);for(c in l)m=l[c],p=n[c],!l.hasOwnProperty(c)||m===p||m===void 0&&p===void 0||uf(t,e,c,m,l,p);return}}for(var d in n)m=n[d],n.hasOwnProperty(d)&&m!=null&&!l.hasOwnProperty(d)&&Ct(t,e,d,null,l,m);for(f in l)m=l[f],p=n[f],!l.hasOwnProperty(f)||m===p||m==null&&p==null||Ct(t,e,f,m,l,p)}var sf=null,cf=null;function vu(t){return t.nodeType===9?t:t.ownerDocument}function Nh(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function m1(t,e){if(t===0)switch(e){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&e==="foreignObject"?0:t}function ff(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.children=="bigint"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var Sc=null;function Sk(){var t=window.event;return t&&t.type==="popstate"?t===Sc?!1:(Sc=t,!0):(Sc=null,!1)}var d1=typeof setTimeout=="function"?setTimeout:void 0,kk=typeof clearTimeout=="function"?clearTimeout:void 0,zh=typeof Promise=="function"?Promise:void 0,Ek=typeof queueMicrotask=="function"?queueMicrotask:typeof zh<"u"?function(t){return zh.resolve(null).then(t).catch(Tk)}:d1;function Tk(t){setTimeout(function(){throw t})}function zl(t){return t==="head"}function _h(t,e){var n=e,l=0,i=0;do{var r=n.nextSibling;if(t.removeChild(n),r&&r.nodeType===8)if(n=r.data,n==="/$"){if(0<l&&8>l){n=l;var a=t.ownerDocument;if(n&1&&ga(a.documentElement),n&2&&ga(a.body),n&4)for(n=a.head,ga(n),a=n.firstChild;a;){var o=a.nextSibling,u=a.nodeName;a[La]||u==="SCRIPT"||u==="STYLE"||u==="LINK"&&a.rel.toLowerCase()==="stylesheet"||n.removeChild(a),a=o}}if(i===0){t.removeChild(r),Da(e);return}i--}else n==="$"||n==="$?"||n==="$!"?i++:l=n.charCodeAt(0)-48;else l=0;n=r}while(n);Da(e)}function pf(t){var e=t.firstChild;for(e&&e.nodeType===10&&(e=e.nextSibling);e;){var n=e;switch(e=e.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":pf(n),Ef(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}t.removeChild(n)}}function wk(t,e,n,l){for(;t.nodeType===1;){var i=n;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!l&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(l){if(!t[La])switch(e){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(r=t.getAttribute("rel"),r==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(r!==i.rel||t.getAttribute("href")!==(i.href==null||i.href===""?null:i.href)||t.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin)||t.getAttribute("title")!==(i.title==null?null:i.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(r=t.getAttribute("src"),(r!==(i.src==null?null:i.src)||t.getAttribute("type")!==(i.type==null?null:i.type)||t.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin))&&r&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var r=i.name==null?null:""+i.name;if(i.type==="hidden"&&t.getAttribute("name")===r)return t}else return t;if(t=yn(t.nextSibling),t===null)break}return null}function Ak(t,e,n){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!n||(t=yn(t.nextSibling),t===null))return null;return t}function mf(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState==="complete"}function Ck(t,e){var n=t.ownerDocument;if(t.data!=="$?"||n.readyState==="complete")e();else{var l=function(){e(),n.removeEventListener("DOMContentLoaded",l)};n.addEventListener("DOMContentLoaded",l),t._reactRetry=l}}function yn(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?"||e==="F!"||e==="F")break;if(e==="/$")return null}}return t}var df=null;function Oh(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="$"||n==="$!"||n==="$?"){if(e===0)return t;e--}else n==="/$"&&e++}t=t.previousSibling}return null}function h1(t,e,n){switch(e=vu(n),t){case"html":if(t=e.documentElement,!t)throw Error(R(452));return t;case"head":if(t=e.head,!t)throw Error(R(453));return t;case"body":if(t=e.body,!t)throw Error(R(454));return t;default:throw Error(R(451))}}function ga(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);Ef(t)}var fn=new Map,Lh=new Set;function bu(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var nl=vt.d;vt.d={f:Rk,r:Mk,D:Dk,C:Nk,L:zk,m:_k,X:Lk,S:Ok,M:Uk};function Rk(){var t=nl.f(),e=Ou();return t||e}function Mk(t){var e=xr(t);e!==null&&e.tag===5&&e.type==="form"?uy(e):nl.r(t)}var Er=typeof document>"u"?null:document;function g1(t,e,n){var l=Er;if(l&&typeof e=="string"&&e){var i=on(e);i='link[rel="'+t+'"][href="'+i+'"]',typeof n=="string"&&(i+='[crossorigin="'+n+'"]'),Lh.has(i)||(Lh.add(i),t={rel:t,crossOrigin:n,href:e},l.querySelector(i)===null&&(e=l.createElement("link"),xe(e,"link",t),pe(e),l.head.appendChild(e)))}}function Dk(t){nl.D(t),g1("dns-prefetch",t,null)}function Nk(t,e){nl.C(t,e),g1("preconnect",t,e)}function zk(t,e,n){nl.L(t,e,n);var l=Er;if(l&&t&&e){var i='link[rel="preload"][as="'+on(e)+'"]';e==="image"&&n&&n.imageSrcSet?(i+='[imagesrcset="'+on(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(i+='[imagesizes="'+on(n.imageSizes)+'"]')):i+='[href="'+on(t)+'"]';var r=i;switch(e){case"style":r=vr(t);break;case"script":r=Tr(t)}fn.has(r)||(t=Nt({rel:"preload",href:e==="image"&&n&&n.imageSrcSet?void 0:t,as:e},n),fn.set(r,t),l.querySelector(i)!==null||e==="style"&&l.querySelector(Qa(r))||e==="script"&&l.querySelector(Xa(r))||(e=l.createElement("link"),xe(e,"link",t),pe(e),l.head.appendChild(e)))}}function _k(t,e){nl.m(t,e);var n=Er;if(n&&t){var l=e&&typeof e.as=="string"?e.as:"script",i='link[rel="modulepreload"][as="'+on(l)+'"][href="'+on(t)+'"]',r=i;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":r=Tr(t)}if(!fn.has(r)&&(t=Nt({rel:"modulepreload",href:t},e),fn.set(r,t),n.querySelector(i)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Xa(r)))return}l=n.createElement("link"),xe(l,"link",t),pe(l),n.head.appendChild(l)}}}function Ok(t,e,n){nl.S(t,e,n);var l=Er;if(l&&t){var i=tr(l).hoistableStyles,r=vr(t);e=e||"default";var a=i.get(r);if(!a){var o={loading:0,preload:null};if(a=l.querySelector(Qa(r)))o.loading=5;else{t=Nt({rel:"stylesheet",href:t,"data-precedence":e},n),(n=fn.get(r))&&ap(t,n);var u=a=l.createElement("link");pe(u),xe(u,"link",t),u._p=new Promise(function(s,c){u.onload=s,u.onerror=c}),u.addEventListener("load",function(){o.loading|=1}),u.addEventListener("error",function(){o.loading|=2}),o.loading|=4,Qo(a,e,l)}a={type:"stylesheet",instance:a,count:1,state:o},i.set(r,a)}}}function Lk(t,e){nl.X(t,e);var n=Er;if(n&&t){var l=tr(n).hoistableScripts,i=Tr(t),r=l.get(i);r||(r=n.querySelector(Xa(i)),r||(t=Nt({src:t,async:!0},e),(e=fn.get(i))&&op(t,e),r=n.createElement("script"),pe(r),xe(r,"link",t),n.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},l.set(i,r))}}function Uk(t,e){nl.M(t,e);var n=Er;if(n&&t){var l=tr(n).hoistableScripts,i=Tr(t),r=l.get(i);r||(r=n.querySelector(Xa(i)),r||(t=Nt({src:t,async:!0,type:"module"},e),(e=fn.get(i))&&op(t,e),r=n.createElement("script"),pe(r),xe(r,"link",t),n.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},l.set(i,r))}}function Uh(t,e,n,l){var i=(i=xl.current)?bu(i):null;if(!i)throw Error(R(446));switch(t){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(e=vr(n.href),n=tr(i).hoistableStyles,l=n.get(e),l||(l={type:"style",instance:null,count:0,state:null},n.set(e,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){t=vr(n.href);var r=tr(i).hoistableStyles,a=r.get(t);if(a||(i=i.ownerDocument||i,a={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},r.set(t,a),(r=i.querySelector(Qa(t)))&&!r._p&&(a.instance=r,a.state.loading=5),fn.has(t)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},fn.set(t,n),r||Bk(i,t,n,a.state))),e&&l===null)throw Error(R(528,""));return a}if(e&&l!==null)throw Error(R(529,""));return null;case"script":return e=n.async,n=n.src,typeof n=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=Tr(n),n=tr(i).hoistableScripts,l=n.get(e),l||(l={type:"script",instance:null,count:0,state:null},n.set(e,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(R(444,t))}}function vr(t){return'href="'+on(t)+'"'}function Qa(t){return'link[rel="stylesheet"]['+t+"]"}function y1(t){return Nt({},t,{"data-precedence":t.precedence,precedence:null})}function Bk(t,e,n,l){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?l.loading=1:(e=t.createElement("link"),l.preload=e,e.addEventListener("load",function(){return l.loading|=1}),e.addEventListener("error",function(){return l.loading|=2}),xe(e,"link",n),pe(e),t.head.appendChild(e))}function Tr(t){return'[src="'+on(t)+'"]'}function Xa(t){return"script[async]"+t}function Bh(t,e,n){if(e.count++,e.instance===null)switch(e.type){case"style":var l=t.querySelector('style[data-href~="'+on(n.href)+'"]');if(l)return e.instance=l,pe(l),l;var i=Nt({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return l=(t.ownerDocument||t).createElement("style"),pe(l),xe(l,"style",i),Qo(l,n.precedence,t),e.instance=l;case"stylesheet":i=vr(n.href);var r=t.querySelector(Qa(i));if(r)return e.state.loading|=4,e.instance=r,pe(r),r;l=y1(n),(i=fn.get(i))&&ap(l,i),r=(t.ownerDocument||t).createElement("link"),pe(r);var a=r;return a._p=new Promise(function(o,u){a.onload=o,a.onerror=u}),xe(r,"link",l),e.state.loading|=4,Qo(r,n.precedence,t),e.instance=r;case"script":return r=Tr(n.src),(i=t.querySelector(Xa(r)))?(e.instance=i,pe(i),i):(l=n,(i=fn.get(r))&&(l=Nt({},n),op(l,i)),t=t.ownerDocument||t,i=t.createElement("script"),pe(i),xe(i,"link",l),t.head.appendChild(i),e.instance=i);case"void":return null;default:throw Error(R(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(l=e.instance,e.state.loading|=4,Qo(l,n.precedence,t));return e.instance}function Qo(t,e,n){for(var l=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=l.length?l[l.length-1]:null,r=i,a=0;a<l.length;a++){var o=l[a];if(o.dataset.precedence===e)r=o;else if(r!==i)break}r?r.parentNode.insertBefore(t,r.nextSibling):(e=n.nodeType===9?n.head:n,e.insertBefore(t,e.firstChild))}function ap(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function op(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var Xo=null;function Hh(t,e,n){if(Xo===null){var l=new Map,i=Xo=new Map;i.set(n,l)}else i=Xo,l=i.get(n),l||(l=new Map,i.set(n,l));if(l.has(t))return l;for(l.set(t,null),n=n.getElementsByTagName(t),i=0;i<n.length;i++){var r=n[i];if(!(r[La]||r[ke]||t==="link"&&r.getAttribute("rel")==="stylesheet")&&r.namespaceURI!=="http://www.w3.org/2000/svg"){var a=r.getAttribute(e)||"";a=t+a;var o=l.get(a);o?o.push(r):l.set(a,[r])}}return l}function qh(t,e,n){t=t.ownerDocument||t,t.head.insertBefore(n,e==="title"?t.querySelector("head > title"):null)}function Hk(t,e,n){if(n===1||e.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof e.precedence!="string"||typeof e.href!="string"||e.href==="")break;return!0;case"link":if(typeof e.rel!="string"||typeof e.href!="string"||e.href===""||e.onLoad||e.onError)break;switch(e.rel){case"stylesheet":return t=e.disabled,typeof e.precedence=="string"&&t==null;default:return!0}case"script":if(e.async&&typeof e.async!="function"&&typeof e.async!="symbol"&&!e.onLoad&&!e.onError&&e.src&&typeof e.src=="string")return!0}return!1}function v1(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}var Aa=null;function qk(){}function jk(t,e,n){if(Aa===null)throw Error(R(475));var l=Aa;if(e.type==="stylesheet"&&(typeof n.media!="string"||matchMedia(n.media).matches!==!1)&&(e.state.loading&4)===0){if(e.instance===null){var i=vr(n.href),r=t.querySelector(Qa(i));if(r){t=r._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(l.count++,l=xu.bind(l),t.then(l,l)),e.state.loading|=4,e.instance=r,pe(r);return}r=t.ownerDocument||t,n=y1(n),(i=fn.get(i))&&ap(n,i),r=r.createElement("link"),pe(r);var a=r;a._p=new Promise(function(o,u){a.onload=o,a.onerror=u}),xe(r,"link",n),e.instance=r}l.stylesheets===null&&(l.stylesheets=new Map),l.stylesheets.set(e,t),(t=e.state.preload)&&(e.state.loading&3)===0&&(l.count++,e=xu.bind(l),t.addEventListener("load",e),t.addEventListener("error",e))}}function Ik(){if(Aa===null)throw Error(R(475));var t=Aa;return t.stylesheets&&t.count===0&&hf(t,t.stylesheets),0<t.count?function(e){var n=setTimeout(function(){if(t.stylesheets&&hf(t,t.stylesheets),t.unsuspend){var l=t.unsuspend;t.unsuspend=null,l()}},6e4);return t.unsuspend=e,function(){t.unsuspend=null,clearTimeout(n)}}:null}function xu(){if(this.count--,this.count===0){if(this.stylesheets)hf(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var Su=null;function hf(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Su=new Map,e.forEach(Yk,t),Su=null,xu.call(t))}function Yk(t,e){if(!(e.state.loading&4)){var n=Su.get(t);if(n)var l=n.get(null);else{n=new Map,Su.set(t,n);for(var i=t.querySelectorAll("link[data-precedence],style[data-precedence]"),r=0;r<i.length;r++){var a=i[r];(a.nodeName==="LINK"||a.getAttribute("media")!=="not all")&&(n.set(a.dataset.precedence,a),l=a)}l&&n.set(null,l)}i=e.instance,a=i.getAttribute("data-precedence"),r=n.get(a)||l,r===l&&n.set(null,i),n.set(a,i),this.count++,l=xu.bind(this),i.addEventListener("load",l),i.addEventListener("error",l),r?r.parentNode.insertBefore(i,r.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(i,t.firstChild)),e.state.loading|=4}}var Ca={$$typeof:Qn,Provider:null,Consumer:null,_currentValue:$l,_currentValue2:$l,_threadCount:0};function Vk(t,e,n,l,i,r,a,o){this.tag=1,this.containerInfo=t,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Xs(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Xs(0),this.hiddenUpdates=Xs(null),this.identifierPrefix=l,this.onUncaughtError=i,this.onCaughtError=r,this.onRecoverableError=a,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=o,this.incompleteTransitions=new Map}function b1(t,e,n,l,i,r,a,o,u,s,c,f){return t=new Vk(t,e,n,a,o,u,s,f),e=1,r===!0&&(e|=24),r=Ge(3,null,null,e),t.current=r,r.stateNode=t,e=Lf(),e.refCount++,t.pooledCache=e,e.refCount++,r.memoizedState={element:l,isDehydrated:n,cache:e},Bf(r),t}function x1(t){return t?(t=Pi,t):Pi}function S1(t,e,n,l,i,r){i=x1(i),l.context===null?l.context=i:l.pendingContext=i,l=Sl(e),l.payload={element:n},r=r===void 0?null:r,r!==null&&(l.callback=r),n=kl(t,l,e),n!==null&&(Je(n,t,e),ua(n,t,e))}function jh(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var n=t.retryLane;t.retryLane=n!==0&&n<e?n:e}}function up(t,e){jh(t,e),(t=t.alternate)&&jh(t,e)}function k1(t){if(t.tag===13){var e=Sr(t,67108864);e!==null&&Je(e,t,67108864),up(t,67108864)}}var ku=!0;function Fk(t,e,n,l){var i=P.T;P.T=null;var r=vt.p;try{vt.p=2,sp(t,e,n,l)}finally{vt.p=r,P.T=i}}function Qk(t,e,n,l){var i=P.T;P.T=null;var r=vt.p;try{vt.p=8,sp(t,e,n,l)}finally{vt.p=r,P.T=i}}function sp(t,e,n,l){if(ku){var i=gf(l);if(i===null)xc(t,e,l,Eu,n),Ih(t,l);else if(Gk(i,t,e,n,l))l.stopPropagation();else if(Ih(t,l),e&4&&-1<Xk.indexOf(t)){for(;i!==null;){var r=xr(i);if(r!==null)switch(r.tag){case 3:if(r=r.stateNode,r.current.memoizedState.isDehydrated){var a=Pl(r.pendingLanes);if(a!==0){var o=r;for(o.pendingLanes|=2,o.entangledLanes|=2;a;){var u=1<<31-Ke(a);o.entanglements[1]|=u,a&=~u}On(r),(wt&6)===0&&(mu=Nn()+500,Fa(0,!1))}}break;case 13:o=Sr(r,2),o!==null&&Je(o,r,2),Ou(),up(r,2)}if(r=gf(l),r===null&&xc(t,e,l,Eu,n),r===i)break;i=r}i!==null&&l.stopPropagation()}else xc(t,e,l,null,n)}}function gf(t){return t=wf(t),cp(t)}var Eu=null;function cp(t){if(Eu=null,t=Fi(t),t!==null){var e=Na(t);if(e===null)t=null;else{var n=e.tag;if(n===13){if(t=Gh(e),t!==null)return t;t=null}else if(n===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null)}}return Eu=t,null}function E1(t){switch(t){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(_x()){case Jh:return 2;case Wh:return 8;case Jo:case Ox:return 32;case $h:return 268435456;default:return 32}default:return 32}}var yf=!1,wl=null,Al=null,Cl=null,Ra=new Map,Ma=new Map,hl=[],Xk="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function Ih(t,e){switch(t){case"focusin":case"focusout":wl=null;break;case"dragenter":case"dragleave":Al=null;break;case"mouseover":case"mouseout":Cl=null;break;case"pointerover":case"pointerout":Ra.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ma.delete(e.pointerId)}}function Jr(t,e,n,l,i,r){return t===null||t.nativeEvent!==r?(t={blockedOn:e,domEventName:n,eventSystemFlags:l,nativeEvent:r,targetContainers:[i]},e!==null&&(e=xr(e),e!==null&&k1(e)),t):(t.eventSystemFlags|=l,e=t.targetContainers,i!==null&&e.indexOf(i)===-1&&e.push(i),t)}function Gk(t,e,n,l,i){switch(e){case"focusin":return wl=Jr(wl,t,e,n,l,i),!0;case"dragenter":return Al=Jr(Al,t,e,n,l,i),!0;case"mouseover":return Cl=Jr(Cl,t,e,n,l,i),!0;case"pointerover":var r=i.pointerId;return Ra.set(r,Jr(Ra.get(r)||null,t,e,n,l,i)),!0;case"gotpointercapture":return r=i.pointerId,Ma.set(r,Jr(Ma.get(r)||null,t,e,n,l,i)),!0}return!1}function T1(t){var e=Fi(t.target);if(e!==null){var n=Na(e);if(n!==null){if(e=n.tag,e===13){if(e=Gh(n),e!==null){t.blockedOn=e,Yx(t.priority,function(){if(n.tag===13){var l=Pe();l=Sf(l);var i=Sr(n,l);i!==null&&Je(i,n,l),up(n,l)}});return}}else if(e===3&&n.stateNode.current.memoizedState.isDehydrated){t.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}t.blockedOn=null}function Go(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var n=gf(t.nativeEvent);if(n===null){n=t.nativeEvent;var l=new n.constructor(n.type,n);_c=l,n.target.dispatchEvent(l),_c=null}else return e=xr(n),e!==null&&k1(e),t.blockedOn=n,!1;e.shift()}return!0}function Yh(t,e,n){Go(t)&&n.delete(e)}function Zk(){yf=!1,wl!==null&&Go(wl)&&(wl=null),Al!==null&&Go(Al)&&(Al=null),Cl!==null&&Go(Cl)&&(Cl=null),Ra.forEach(Yh),Ma.forEach(Yh)}function _o(t,e){t.blockedOn===e&&(t.blockedOn=null,yf||(yf=!0,ue.unstable_scheduleCallback(ue.unstable_NormalPriority,Zk)))}var Oo=null;function Vh(t){Oo!==t&&(Oo=t,ue.unstable_scheduleCallback(ue.unstable_NormalPriority,function(){Oo===t&&(Oo=null);for(var e=0;e<t.length;e+=3){var n=t[e],l=t[e+1],i=t[e+2];if(typeof l!="function"){if(cp(l||n)===null)continue;break}var r=xr(n);r!==null&&(t.splice(e,3),e-=3,Kc(r,{pending:!0,data:i,method:n.method,action:l},l,i))}}))}function Da(t){function e(u){return _o(u,t)}wl!==null&&_o(wl,t),Al!==null&&_o(Al,t),Cl!==null&&_o(Cl,t),Ra.forEach(e),Ma.forEach(e);for(var n=0;n<hl.length;n++){var l=hl[n];l.blockedOn===t&&(l.blockedOn=null)}for(;0<hl.length&&(n=hl[0],n.blockedOn===null);)T1(n),n.blockedOn===null&&hl.shift();if(n=(t.ownerDocument||t).$$reactFormReplay,n!=null)for(l=0;l<n.length;l+=3){var i=n[l],r=n[l+1],a=i[Ie]||null;if(typeof r=="function")a||Vh(n);else if(a){var o=null;if(r&&r.hasAttribute("formAction")){if(i=r,a=r[Ie]||null)o=a.formAction;else if(cp(i)!==null)continue}else o=a.action;typeof o=="function"?n[l+1]=o:(n.splice(l,3),l-=3),Vh(n)}}}function fp(t){this._internalRoot=t}Hu.prototype.render=fp.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(R(409));var n=e.current,l=Pe();S1(n,l,t,e,null,null)};Hu.prototype.unmount=fp.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;S1(t.current,2,null,t,null,null),Ou(),e[br]=null}};function Hu(t){this._internalRoot=t}Hu.prototype.unstable_scheduleHydration=function(t){if(t){var e=ig();t={blockedOn:null,target:t,priority:e};for(var n=0;n<hl.length&&e!==0&&e<hl[n].priority;n++);hl.splice(n,0,t),n===0&&T1(t)}};var Fh=Qh.version;if(Fh!=="19.1.1")throw Error(R(527,Fh,"19.1.1"));vt.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(R(188)):(t=Object.keys(t).join(","),Error(R(268,t)));return t=Ax(e),t=t!==null?Zh(t):null,t=t===null?null:t.stateNode,t};var Kk={bundleType:0,version:"19.1.1",rendererPackageName:"react-dom",currentDispatcherRef:P,reconcilerVersion:"19.1.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(Wr=__REACT_DEVTOOLS_GLOBAL_HOOK__,!Wr.isDisabled&&Wr.supportsFiber))try{za=Wr.inject(Kk),Ze=Wr}catch{}var Wr;qu.createRoot=function(t,e){if(!Xh(t))throw Error(R(299));var n=!1,l="",i=by,r=xy,a=Sy,o=null;return e!=null&&(e.unstable_strictMode===!0&&(n=!0),e.identifierPrefix!==void 0&&(l=e.identifierPrefix),e.onUncaughtError!==void 0&&(i=e.onUncaughtError),e.onCaughtError!==void 0&&(r=e.onCaughtError),e.onRecoverableError!==void 0&&(a=e.onRecoverableError),e.unstable_transitionCallbacks!==void 0&&(o=e.unstable_transitionCallbacks)),e=b1(t,1,!1,null,null,n,l,i,r,a,o,null),t[br]=e.current,rp(t),new fp(e)};qu.hydrateRoot=function(t,e,n){if(!Xh(t))throw Error(R(299));var l=!1,i="",r=by,a=xy,o=Sy,u=null,s=null;return n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onUncaughtError!==void 0&&(r=n.onUncaughtError),n.onCaughtError!==void 0&&(a=n.onCaughtError),n.onRecoverableError!==void 0&&(o=n.onRecoverableError),n.unstable_transitionCallbacks!==void 0&&(u=n.unstable_transitionCallbacks),n.formState!==void 0&&(s=n.formState)),e=b1(t,1,!0,e,n??null,l,i,r,a,o,u,s),e.context=x1(null),n=e.current,l=Pe(),l=Sf(l),i=Sl(l),i.callback=null,kl(n,i,l),n=l,e.current.lanes=n,Oa(e,n),On(e),t[br]=e.current,rp(t),new Hu(e)};qu.version="19.1.1"});var R1=Ne((uR,C1)=>{"use strict";function A1(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(A1)}catch(t){console.error(t)}}A1(),C1.exports=w1()});var Q1=Ne((m2,F1)=>{"use strict";var j1=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,rE=/\n/g,aE=/^\s*/,oE=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,uE=/^:\s*/,sE=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,cE=/^[;\s]*/,fE=/^\s+|\s+$/g,pE=`
|
|
10
|
-
`,I1="/",Y1="*",gi="",mE="comment",dE="declaration";function hE(t,e){if(typeof t!="string")throw new TypeError("First argument must be a string");if(!t)return[];e=e||{};var n=1,l=1;function i(g){var v=g.match(rE);v&&(n+=v.length);var k=g.lastIndexOf(pE);l=~k?g.length-k:l+g.length}function r(){var g={line:n,column:l};return function(v){return v.position=new a(g),s(),v}}function a(g){this.start=g,this.end={line:n,column:l},this.source=e.source}a.prototype.content=t;function o(g){var v=new Error(e.source+":"+n+":"+l+": "+g);if(v.reason=g,v.filename=e.source,v.line=n,v.column=l,v.source=t,!e.silent)throw v}function u(g){var v=g.exec(t);if(v){var k=v[0];return i(k),t=t.slice(k.length),v}}function s(){u(aE)}function c(g){var v;for(g=g||[];v=f();)v!==!1&&g.push(v);return g}function f(){var g=r();if(!(I1!=t.charAt(0)||Y1!=t.charAt(1))){for(var v=2;gi!=t.charAt(v)&&(Y1!=t.charAt(v)||I1!=t.charAt(v+1));)++v;if(v+=2,gi===t.charAt(v-1))return o("End of comment missing");var k=t.slice(2,v-2);return l+=2,i(k),t=t.slice(v),l+=2,g({type:mE,comment:k})}}function m(){var g=r(),v=u(oE);if(v){if(f(),!u(uE))return o("property missing ':'");var k=u(sE),d=g({type:dE,property:V1(v[0].replace(j1,gi)),value:k?V1(k[0].replace(j1,gi)):gi});return u(cE),d}}function p(){var g=[];c(g);for(var v;v=m();)v!==!1&&(g.push(v),c(g));return g}return s(),p()}function V1(t){return t?t.replace(fE,gi):gi}F1.exports=hE});var X1=Ne(Ka=>{"use strict";var gE=Ka&&Ka.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ka,"__esModule",{value:!0});Ka.default=vE;var yE=gE(Q1());function vE(t,e){let n=null;if(!t||typeof t!="string")return n;let l=(0,yE.default)(t),i=typeof e=="function";return l.forEach(r=>{if(r.type!=="declaration")return;let{property:a,value:o}=r;i?e(a,o,r):o&&(n=n||{},n[a]=o)}),n}});var Z1=Ne(Qu=>{"use strict";Object.defineProperty(Qu,"__esModule",{value:!0});Qu.camelCase=void 0;var bE=/^--[a-zA-Z0-9_-]+$/,xE=/-([a-z])/g,SE=/^[^-]+$/,kE=/^-(webkit|moz|ms|o|khtml)-/,EE=/^-(ms)-/,TE=function(t){return!t||SE.test(t)||bE.test(t)},wE=function(t,e){return e.toUpperCase()},G1=function(t,e){return"".concat(e,"-")},AE=function(t,e){return e===void 0&&(e={}),TE(t)?t:(t=t.toLowerCase(),e.reactCompat?t=t.replace(EE,G1):t=t.replace(kE,G1),t.replace(xE,wE))};Qu.camelCase=AE});var P1=Ne((kp,K1)=>{"use strict";var CE=kp&&kp.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},RE=CE(X1()),ME=Z1();function Sp(t,e){var n={};return!t||typeof t!="string"||(0,RE.default)(t,function(l,i){l&&i&&(n[(0,ME.camelCase)(l,e)]=i)}),n}Sp.default=Sp;K1.exports=Sp});var av=Ne(Gu=>{"use strict";var KE=Symbol.for("react.transitional.element"),PE=Symbol.for("react.fragment");function rv(t,e,n){var l=null;if(n!==void 0&&(l=""+n),e.key!==void 0&&(l=""+e.key),"key"in e){n={};for(var i in e)i!=="key"&&(n[i]=e[i])}else n=e;return e=n.ref,{$$typeof:KE,type:t,key:l,ref:e!==void 0?e:null,props:n}}Gu.Fragment=PE;Gu.jsx=rv;Gu.jsxs=rv});var $=Ne((j2,ov)=>{"use strict";ov.exports=av()});var E0=Ne((Q_,k0)=>{"use strict";var gs=Object.prototype.hasOwnProperty,S0=Object.prototype.toString,h0=Object.defineProperty,g0=Object.getOwnPropertyDescriptor,y0=function(e){return typeof Array.isArray=="function"?Array.isArray(e):S0.call(e)==="[object Array]"},v0=function(e){if(!e||S0.call(e)!=="[object Object]")return!1;var n=gs.call(e,"constructor"),l=e.constructor&&e.constructor.prototype&&gs.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!l)return!1;var i;for(i in e);return typeof i>"u"||gs.call(e,i)},b0=function(e,n){h0&&n.name==="__proto__"?h0(e,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):e[n.name]=n.newValue},x0=function(e,n){if(n==="__proto__")if(gs.call(e,n)){if(g0)return g0(e,n).value}else return;return e[n]};k0.exports=function t(){var e,n,l,i,r,a,o=arguments[0],u=1,s=arguments.length,c=!1;for(typeof o=="boolean"&&(c=o,o=arguments[1]||{},u=2),(o==null||typeof o!="object"&&typeof o!="function")&&(o={});u<s;++u)if(e=arguments[u],e!=null)for(n in e)l=x0(o,n),i=x0(e,n),o!==i&&(c&&i&&(v0(i)||(r=y0(i)))?(r?(r=!1,a=l&&y0(l)?l:[]):a=l&&v0(l)?l:{},b0(o,{name:n,newValue:t(c,a,i)})):typeof i<"u"&&b0(o,{name:n,newValue:i}));return o}});var Kb=q($t(),1),Pb=q(R1(),1);var gt=q($t(),1);function M1(){return window.__CODELY__??{}}function D1(t){return t.mode??"chat"}function N1(t){return t.controlPlaneApiBase??"/__codely__/control-plane"}var kb=q($t(),1);function z1(t,e){let n=e||{};return(t[t.length-1]===""?[...t,""]:t).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}var Pk=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Jk=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Wk={};function ju(t,e){return((e||Wk).jsx?Jk:Pk).test(t)}var $k=/[ \t\n\f\r]/g;function pp(t){return typeof t=="object"?t.type==="text"?_1(t.value):!1:_1(t)}function _1(t){return t.replace($k,"")===""}var ll=class{constructor(e,n,l){this.normal=n,this.property=e,l&&(this.space=l)}};ll.prototype.normal={};ll.prototype.property={};ll.prototype.space=void 0;function mp(t,e){let n={},l={};for(let i of t)Object.assign(n,i.property),Object.assign(l,i.normal);return new ll(n,l,e)}function Ga(t){return t.toLowerCase()}var he=class{constructor(e,n){this.attribute=n,this.property=e}};he.prototype.attribute="";he.prototype.booleanish=!1;he.prototype.boolean=!1;he.prototype.commaOrSpaceSeparated=!1;he.prototype.commaSeparated=!1;he.prototype.defined=!1;he.prototype.mustUseProperty=!1;he.prototype.number=!1;he.prototype.overloadedBoolean=!1;he.prototype.property="";he.prototype.spaceSeparated=!1;he.prototype.space=void 0;var Za={};Zm(Za,{boolean:()=>nt,booleanish:()=>Qt,commaOrSpaceSeparated:()=>Ve,commaSeparated:()=>_l,number:()=>D,overloadedBoolean:()=>Iu,spaceSeparated:()=>At});var tE=0,nt=di(),Qt=di(),Iu=di(),D=di(),At=di(),_l=di(),Ve=di();function di(){return 2**++tE}var dp=Object.keys(Za),hi=class extends he{constructor(e,n,l,i){let r=-1;if(super(e,n),O1(this,"space",i),typeof l=="number")for(;++r<dp.length;){let a=dp[r];O1(this,dp[r],(l&Za[a])===Za[a])}}};hi.prototype.defined=!0;function O1(t,e,n){n&&(t[e]=n)}function pn(t){let e={},n={};for(let[l,i]of Object.entries(t.properties)){let r=new hi(l,t.transform(t.attributes||{},l),i,t.space);t.mustUseProperty&&t.mustUseProperty.includes(l)&&(r.mustUseProperty=!0),e[l]=r,n[Ga(l)]=l,n[Ga(r.attribute)]=l}return new ll(e,n,t.space)}var hp=pn({properties:{ariaActiveDescendant:null,ariaAtomic:Qt,ariaAutoComplete:null,ariaBusy:Qt,ariaChecked:Qt,ariaColCount:D,ariaColIndex:D,ariaColSpan:D,ariaControls:At,ariaCurrent:null,ariaDescribedBy:At,ariaDetails:null,ariaDisabled:Qt,ariaDropEffect:At,ariaErrorMessage:null,ariaExpanded:Qt,ariaFlowTo:At,ariaGrabbed:Qt,ariaHasPopup:null,ariaHidden:Qt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:At,ariaLevel:D,ariaLive:null,ariaModal:Qt,ariaMultiLine:Qt,ariaMultiSelectable:Qt,ariaOrientation:null,ariaOwns:At,ariaPlaceholder:null,ariaPosInSet:D,ariaPressed:Qt,ariaReadOnly:Qt,ariaRelevant:null,ariaRequired:Qt,ariaRoleDescription:At,ariaRowCount:D,ariaRowIndex:D,ariaRowSpan:D,ariaSelected:Qt,ariaSetSize:D,ariaSort:null,ariaValueMax:D,ariaValueMin:D,ariaValueNow:D,ariaValueText:null,role:null},transform(t,e){return e==="role"?e:"aria-"+e.slice(4).toLowerCase()}});function Yu(t,e){return e in t?t[e]:e}function Vu(t,e){return Yu(t,e.toLowerCase())}var L1=pn({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:_l,acceptCharset:At,accessKey:At,action:null,allow:null,allowFullScreen:nt,allowPaymentRequest:nt,allowUserMedia:nt,alt:null,as:null,async:nt,autoCapitalize:null,autoComplete:At,autoFocus:nt,autoPlay:nt,blocking:At,capture:null,charSet:null,checked:nt,cite:null,className:At,cols:D,colSpan:null,content:null,contentEditable:Qt,controls:nt,controlsList:At,coords:D|_l,crossOrigin:null,data:null,dateTime:null,decoding:null,default:nt,defer:nt,dir:null,dirName:null,disabled:nt,download:Iu,draggable:Qt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:nt,formTarget:null,headers:At,height:D,hidden:Iu,high:D,href:null,hrefLang:null,htmlFor:At,httpEquiv:At,id:null,imageSizes:null,imageSrcSet:null,inert:nt,inputMode:null,integrity:null,is:null,isMap:nt,itemId:null,itemProp:At,itemRef:At,itemScope:nt,itemType:At,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:nt,low:D,manifest:null,max:null,maxLength:D,media:null,method:null,min:null,minLength:D,multiple:nt,muted:nt,name:null,nonce:null,noModule:nt,noValidate:nt,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:nt,optimum:D,pattern:null,ping:At,placeholder:null,playsInline:nt,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:nt,referrerPolicy:null,rel:At,required:nt,reversed:nt,rows:D,rowSpan:D,sandbox:At,scope:null,scoped:nt,seamless:nt,selected:nt,shadowRootClonable:nt,shadowRootDelegatesFocus:nt,shadowRootMode:null,shape:null,size:D,sizes:null,slot:null,span:D,spellCheck:Qt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:D,step:null,style:null,tabIndex:D,target:null,title:null,translate:null,type:null,typeMustMatch:nt,useMap:null,value:Qt,width:D,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:At,axis:null,background:null,bgColor:null,border:D,borderColor:null,bottomMargin:D,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:nt,declare:nt,event:null,face:null,frame:null,frameBorder:null,hSpace:D,leftMargin:D,link:null,longDesc:null,lowSrc:null,marginHeight:D,marginWidth:D,noResize:nt,noHref:nt,noShade:nt,noWrap:nt,object:null,profile:null,prompt:null,rev:null,rightMargin:D,rules:null,scheme:null,scrolling:Qt,standby:null,summary:null,text:null,topMargin:D,valueType:null,version:null,vAlign:null,vLink:null,vSpace:D,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:nt,disableRemotePlayback:nt,prefix:null,property:null,results:D,security:null,unselectable:null},space:"html",transform:Vu});var U1=pn({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:Ve,accentHeight:D,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:D,amplitude:D,arabicForm:null,ascent:D,attributeName:null,attributeType:null,azimuth:D,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:D,by:null,calcMode:null,capHeight:D,className:At,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:D,diffuseConstant:D,direction:null,display:null,dur:null,divisor:D,dominantBaseline:null,download:nt,dx:null,dy:null,edgeMode:null,editable:null,elevation:D,enableBackground:null,end:null,event:null,exponent:D,externalResourcesRequired:null,fill:null,fillOpacity:D,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:_l,g2:_l,glyphName:_l,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:D,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:D,horizOriginX:D,horizOriginY:D,id:null,ideographic:D,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:D,k:D,k1:D,k2:D,k3:D,k4:D,kernelMatrix:Ve,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:D,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:D,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:D,overlineThickness:D,paintOrder:null,panose1:null,path:null,pathLength:D,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:At,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:D,pointsAtY:D,pointsAtZ:D,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Ve,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Ve,rev:Ve,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Ve,requiredFeatures:Ve,requiredFonts:Ve,requiredFormats:Ve,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:D,specularExponent:D,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:D,strikethroughThickness:D,string:null,stroke:null,strokeDashArray:Ve,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:D,strokeOpacity:D,strokeWidth:null,style:null,surfaceScale:D,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Ve,tabIndex:D,tableValues:null,target:null,targetX:D,targetY:D,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Ve,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:D,underlineThickness:D,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:D,values:null,vAlphabetic:D,vMathematical:D,vectorEffect:null,vHanging:D,vIdeographic:D,version:null,vertAdvY:D,vertOriginX:D,vertOriginY:D,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:D,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Yu});var gp=pn({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(t,e){return"xlink:"+e.slice(5).toLowerCase()}});var yp=pn({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Vu});var vp=pn({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(t,e){return"xml:"+e.slice(3).toLowerCase()}});var bp={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"};var eE=/[A-Z]/g,B1=/-[a-z]/g,nE=/^data[-\w.:]+$/i;function xp(t,e){let n=Ga(e),l=e,i=he;if(n in t.normal)return t.property[t.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&nE.test(e)){if(e.charAt(4)==="-"){let r=e.slice(5).replace(B1,iE);l="data"+r.charAt(0).toUpperCase()+r.slice(1)}else{let r=e.slice(4);if(!B1.test(r)){let a=r.replace(eE,lE);a.charAt(0)!=="-"&&(a="-"+a),e="data"+a}}i=hi}return new i(l,e)}function lE(t){return"-"+t.toLowerCase()}function iE(t){return t.charAt(1).toUpperCase()}var H1=mp([hp,L1,gp,yp,vp],"html"),Fu=mp([hp,U1,gp,yp,vp],"svg");function q1(t){return t.join(" ").trim()}var tv=q(P1(),1);var Xu=J1("end"),wr=J1("start");function J1(t){return e;function e(n){let l=n&&n.position&&n.position[t]||{};if(typeof l.line=="number"&&l.line>0&&typeof l.column=="number"&&l.column>0)return{line:l.line,column:l.column,offset:typeof l.offset=="number"&&l.offset>-1?l.offset:void 0}}}function Ep(t){let e=wr(t),n=Xu(t);if(e&&n)return{start:e,end:n}}function Ol(t){return!t||typeof t!="object"?"":"position"in t||"type"in t?W1(t.position):"start"in t||"end"in t?W1(t):"line"in t||"column"in t?Tp(t):""}function Tp(t){return $1(t&&t.line)+":"+$1(t&&t.column)}function W1(t){return Tp(t&&t.start)+"-"+Tp(t&&t.end)}function $1(t){return t&&typeof t=="number"?t:1}var Kt=class extends Error{constructor(e,n,l){super(),typeof n=="string"&&(l=n,n=void 0);let i="",r={},a=!1;if(n&&("line"in n&&"column"in n?r={place:n}:"start"in n&&"end"in n?r={place:n}:"type"in n?r={ancestors:[n],place:n.position}:r={...n}),typeof e=="string"?i=e:!r.cause&&e&&(a=!0,i=e.message,r.cause=e),!r.ruleId&&!r.source&&typeof l=="string"){let u=l.indexOf(":");u===-1?r.ruleId=l:(r.source=l.slice(0,u),r.ruleId=l.slice(u+1))}if(!r.place&&r.ancestors&&r.ancestors){let u=r.ancestors[r.ancestors.length-1];u&&(r.place=u.position)}let o=r.place&&"start"in r.place?r.place.start:r.place;this.ancestors=r.ancestors||void 0,this.cause=r.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=o?o.line:void 0,this.name=Ol(r.place)||"1:1",this.place=r.place||void 0,this.reason=this.message,this.ruleId=r.ruleId||void 0,this.source=r.source||void 0,this.stack=a&&r.cause&&typeof r.cause.stack=="string"?r.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}};Kt.prototype.file="";Kt.prototype.name="";Kt.prototype.reason="";Kt.prototype.message="";Kt.prototype.stack="";Kt.prototype.column=void 0;Kt.prototype.line=void 0;Kt.prototype.ancestors=void 0;Kt.prototype.cause=void 0;Kt.prototype.fatal=void 0;Kt.prototype.place=void 0;Kt.prototype.ruleId=void 0;Kt.prototype.source=void 0;var wp={}.hasOwnProperty,DE=new Map,NE=/[A-Z]/g,zE=new Set(["table","tbody","thead","tfoot","tr"]),_E=new Set(["td","th"]),ev="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Ap(t,e){if(!e||e.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");let n=e.filePath||void 0,l;if(e.development){if(typeof e.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");l=IE(n,e.jsxDEV)}else{if(typeof e.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof e.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");l=jE(n,e.jsx,e.jsxs)}let i={Fragment:e.Fragment,ancestors:[],components:e.components||{},create:l,elementAttributeNameCase:e.elementAttributeNameCase||"react",evaluater:e.createEvaluater?e.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:e.ignoreInvalidStyle||!1,passKeys:e.passKeys!==!1,passNode:e.passNode||!1,schema:e.space==="svg"?Fu:H1,stylePropertyNameCase:e.stylePropertyNameCase||"dom",tableCellAlignToStyle:e.tableCellAlignToStyle!==!1},r=nv(i,t,void 0);return r&&typeof r!="string"?r:i.create(t,i.Fragment,{children:r||void 0},void 0)}function nv(t,e,n){if(e.type==="element")return OE(t,e,n);if(e.type==="mdxFlowExpression"||e.type==="mdxTextExpression")return LE(t,e);if(e.type==="mdxJsxFlowElement"||e.type==="mdxJsxTextElement")return BE(t,e,n);if(e.type==="mdxjsEsm")return UE(t,e);if(e.type==="root")return HE(t,e,n);if(e.type==="text")return qE(t,e)}function OE(t,e,n){let l=t.schema,i=l;e.tagName.toLowerCase()==="svg"&&l.space==="html"&&(i=Fu,t.schema=i),t.ancestors.push(e);let r=iv(t,e.tagName,!1),a=YE(t,e),o=Rp(t,e);return zE.has(e.tagName)&&(o=o.filter(function(u){return typeof u=="string"?!pp(u):!0})),lv(t,a,r,e),Cp(a,o),t.ancestors.pop(),t.schema=l,t.create(e,r,a,n)}function LE(t,e){if(e.data&&e.data.estree&&t.evaluater){let l=e.data.estree.body[0];return l.type,t.evaluater.evaluateExpression(l.expression)}Pa(t,e.position)}function UE(t,e){if(e.data&&e.data.estree&&t.evaluater)return t.evaluater.evaluateProgram(e.data.estree);Pa(t,e.position)}function BE(t,e,n){let l=t.schema,i=l;e.name==="svg"&&l.space==="html"&&(i=Fu,t.schema=i),t.ancestors.push(e);let r=e.name===null?t.Fragment:iv(t,e.name,!0),a=VE(t,e),o=Rp(t,e);return lv(t,a,r,e),Cp(a,o),t.ancestors.pop(),t.schema=l,t.create(e,r,a,n)}function HE(t,e,n){let l={};return Cp(l,Rp(t,e)),t.create(e,t.Fragment,l,n)}function qE(t,e){return e.value}function lv(t,e,n,l){typeof n!="string"&&n!==t.Fragment&&t.passNode&&(e.node=l)}function Cp(t,e){if(e.length>0){let n=e.length>1?e:e[0];n&&(t.children=n)}}function jE(t,e,n){return l;function l(i,r,a,o){let s=Array.isArray(a.children)?n:e;return o?s(r,a,o):s(r,a)}}function IE(t,e){return n;function n(l,i,r,a){let o=Array.isArray(r.children),u=wr(l);return e(i,r,a,o,{columnNumber:u?u.column-1:void 0,fileName:t,lineNumber:u?u.line:void 0},void 0)}}function YE(t,e){let n={},l,i;for(i in e.properties)if(i!=="children"&&wp.call(e.properties,i)){let r=FE(t,i,e.properties[i]);if(r){let[a,o]=r;t.tableCellAlignToStyle&&a==="align"&&typeof o=="string"&&_E.has(e.tagName)?l=o:n[a]=o}}if(l){let r=n.style||(n.style={});r[t.stylePropertyNameCase==="css"?"text-align":"textAlign"]=l}return n}function VE(t,e){let n={};for(let l of e.attributes)if(l.type==="mdxJsxExpressionAttribute")if(l.data&&l.data.estree&&t.evaluater){let r=l.data.estree.body[0];r.type;let a=r.expression;a.type;let o=a.properties[0];o.type,Object.assign(n,t.evaluater.evaluateExpression(o.argument))}else Pa(t,e.position);else{let i=l.name,r;if(l.value&&typeof l.value=="object")if(l.value.data&&l.value.data.estree&&t.evaluater){let o=l.value.data.estree.body[0];o.type,r=t.evaluater.evaluateExpression(o.expression)}else Pa(t,e.position);else r=l.value===null?!0:l.value;n[i]=r}return n}function Rp(t,e){let n=[],l=-1,i=t.passKeys?new Map:DE;for(;++l<e.children.length;){let r=e.children[l],a;if(t.passKeys){let u=r.type==="element"?r.tagName:r.type==="mdxJsxFlowElement"||r.type==="mdxJsxTextElement"?r.name:void 0;if(u){let s=i.get(u)||0;a=u+"-"+s,i.set(u,s+1)}}let o=nv(t,r,a);o!==void 0&&n.push(o)}return n}function FE(t,e,n){let l=xp(t.schema,e);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=l.commaSeparated?z1(n):q1(n)),l.property==="style"){let i=typeof n=="object"?n:QE(t,String(n));return t.stylePropertyNameCase==="css"&&(i=XE(i)),["style",i]}return[t.elementAttributeNameCase==="react"&&l.space?bp[l.property]||l.property:l.attribute,n]}}function QE(t,e){try{return(0,tv.default)(e,{reactCompat:!0})}catch(n){if(t.ignoreInvalidStyle)return{};let l=n,i=new Kt("Cannot parse `style` attribute",{ancestors:t.ancestors,cause:l,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw i.file=t.filePath||void 0,i.url=ev+"#cannot-parse-style-attribute",i}}function iv(t,e,n){let l;if(!n)l={type:"Literal",value:e};else if(e.includes(".")){let i=e.split("."),r=-1,a;for(;++r<i.length;){let o=ju(i[r])?{type:"Identifier",name:i[r]}:{type:"Literal",value:i[r]};a=a?{type:"MemberExpression",object:a,property:o,computed:!!(r&&o.type==="Literal"),optional:!1}:o}l=a}else l=ju(e)&&!/^[a-z]/.test(e)?{type:"Identifier",name:e}:{type:"Literal",value:e};if(l.type==="Literal"){let i=l.value;return wp.call(t.components,i)?t.components[i]:i}if(t.evaluater)return t.evaluater.evaluateExpression(l);Pa(t)}function Pa(t,e){let n=new Kt("Cannot handle MDX estrees without `createEvaluater`",{ancestors:t.ancestors,place:e,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=t.filePath||void 0,n.url=ev+"#cannot-handle-mdx-estrees-without-createevaluater",n}function XE(t){let e={},n;for(n in t)wp.call(t,n)&&(e[GE(n)]=t[n]);return e}function GE(t){let e=t.replace(NE,ZE);return e.slice(0,3)==="ms-"&&(e="-"+e),e}function ZE(t){return"-"+t.toLowerCase()}var Ja={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"]};var Dr=q($(),1),_0=q($t(),1);var JE={};function yi(t,e){let n=e||JE,l=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return sv(t,l,i)}function sv(t,e,n){if(WE(t)){if("value"in t)return t.type==="html"&&!n?"":t.value;if(e&&"alt"in t&&t.alt)return t.alt;if("children"in t)return uv(t.children,e,n)}return Array.isArray(t)?uv(t,e,n):""}function uv(t,e,n){let l=[],i=-1;for(;++i<t.length;)l[i]=sv(t[i],e,n);return l.join("")}function WE(t){return!!(t&&typeof t=="object")}var cv=document.createElement("i");function Ar(t){let e="&"+t+";";cv.innerHTML=e;let n=cv.textContent;return n.charCodeAt(n.length-1)===59&&t!=="semi"||n===e?!1:n}function Pt(t,e,n,l){let i=t.length,r=0,a;if(e<0?e=-e>i?0:i+e:e=e>i?i:e,n=n>0?n:0,l.length<1e4)a=Array.from(l),a.unshift(e,n),t.splice(...a);else for(n&&t.splice(e,n);r<l.length;)a=l.slice(r,r+1e4),a.unshift(e,0),t.splice(...a),r+=1e4,e+=1e4}function Le(t,e){return t.length>0?(Pt(t,t.length,0,e),t):e}var fv={}.hasOwnProperty;function Zu(t){let e={},n=-1;for(;++n<t.length;)$E(e,t[n]);return e}function $E(t,e){let n;for(n in e){let i=(fv.call(t,n)?t[n]:void 0)||(t[n]={}),r=e[n],a;if(r)for(a in r){fv.call(i,a)||(i[a]=[]);let o=r[a];tT(i[a],Array.isArray(o)?o:o?[o]:[])}}}function tT(t,e){let n=-1,l=[];for(;++n<e.length;)(e[n].add==="after"?t:l).push(e[n]);Pt(t,0,0,l)}function Ku(t,e){let n=Number.parseInt(t,e);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?"\uFFFD":String.fromCodePoint(n)}function Te(t){return t.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}var se=Ll(/[A-Za-z]/),Xt=Ll(/[\dA-Za-z]/),pv=Ll(/[#-'*+\--9=?A-Z^-~]/);function vi(t){return t!==null&&(t<32||t===127)}var Wa=Ll(/\d/),mv=Ll(/[\dA-Fa-f]/),dv=Ll(/[!-/:-@[-`{-~]/);function O(t){return t!==null&&t<-2}function at(t){return t!==null&&(t<0||t===32)}function G(t){return t===-2||t===-1||t===32}var bi=Ll(/\p{P}|\p{S}/u),Ln=Ll(/\s/);function Ll(t){return e;function e(n){return n!==null&&n>-1&&t.test(String.fromCharCode(n))}}function mn(t){let e=[],n=-1,l=0,i=0;for(;++n<t.length;){let r=t.charCodeAt(n),a="";if(r===37&&Xt(t.charCodeAt(n+1))&&Xt(t.charCodeAt(n+2)))i=2;else if(r<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(r))||(a=String.fromCharCode(r));else if(r>55295&&r<57344){let o=t.charCodeAt(n+1);r<56320&&o>56319&&o<57344?(a=String.fromCharCode(r,o),i=1):a="\uFFFD"}else a=String.fromCharCode(r);a&&(e.push(t.slice(l,n),encodeURIComponent(a)),l=n+i+1,a=""),i&&(n+=i,i=0)}return e.join("")+t.slice(l)}function Q(t,e,n,l){let i=l?l-1:Number.POSITIVE_INFINITY,r=0;return a;function a(u){return G(u)?(t.enter(n),o(u)):e(u)}function o(u){return G(u)&&r++<i?(t.consume(u),o):(t.exit(n),e(u))}}var hv={tokenize:eT};function eT(t){let e=t.attempt(this.parser.constructs.contentInitial,l,i),n;return e;function l(o){if(o===null){t.consume(o);return}return t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),Q(t,e,"linePrefix")}function i(o){return t.enter("paragraph"),r(o)}function r(o){let u=t.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=u),n=u,a(o)}function a(o){if(o===null){t.exit("chunkText"),t.exit("paragraph"),t.consume(o);return}return O(o)?(t.consume(o),t.exit("chunkText"),r):(t.consume(o),a)}}var yv={tokenize:nT},gv={tokenize:lT};function nT(t){let e=this,n=[],l=0,i,r,a;return o;function o(y){if(l<n.length){let T=n[l];return e.containerState=T[1],t.attempt(T[0].continuation,u,s)(y)}return s(y)}function u(y){if(l++,e.containerState._closeFlow){e.containerState._closeFlow=void 0,i&&h();let T=e.events.length,C=T,E;for(;C--;)if(e.events[C][0]==="exit"&&e.events[C][1].type==="chunkFlow"){E=e.events[C][1].end;break}d(l);let M=T;for(;M<e.events.length;)e.events[M][1].end={...E},M++;return Pt(e.events,C+1,0,e.events.slice(T)),e.events.length=M,s(y)}return o(y)}function s(y){if(l===n.length){if(!i)return m(y);if(i.currentConstruct&&i.currentConstruct.concrete)return g(y);e.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return e.containerState={},t.check(gv,c,f)(y)}function c(y){return i&&h(),d(l),m(y)}function f(y){return e.parser.lazy[e.now().line]=l!==n.length,a=e.now().offset,g(y)}function m(y){return e.containerState={},t.attempt(gv,p,g)(y)}function p(y){return l++,n.push([e.currentConstruct,e.containerState]),m(y)}function g(y){if(y===null){i&&h(),d(0),t.consume(y);return}return i=i||e.parser.flow(e.now()),t.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:r}),v(y)}function v(y){if(y===null){k(t.exit("chunkFlow"),!0),d(0),t.consume(y);return}return O(y)?(t.consume(y),k(t.exit("chunkFlow")),l=0,e.interrupt=void 0,o):(t.consume(y),v)}function k(y,T){let C=e.sliceStream(y);if(T&&C.push(null),y.previous=r,r&&(r.next=y),r=y,i.defineSkip(y.start),i.write(C),e.parser.lazy[y.start.line]){let E=i.events.length;for(;E--;)if(i.events[E][1].start.offset<a&&(!i.events[E][1].end||i.events[E][1].end.offset>a))return;let M=e.events.length,N=M,L,S;for(;N--;)if(e.events[N][0]==="exit"&&e.events[N][1].type==="chunkFlow"){if(L){S=e.events[N][1].end;break}L=!0}for(d(l),E=M;E<e.events.length;)e.events[E][1].end={...S},E++;Pt(e.events,N+1,0,e.events.slice(M)),e.events.length=E}}function d(y){let T=n.length;for(;T-- >y;){let C=n[T];e.containerState=C[1],C[0].exit.call(e,t)}n.length=y}function h(){i.write([null]),r=void 0,i=void 0,e.containerState._closeFlow=void 0}}function lT(t,e,n){return Q(t,t.attempt(this.parser.constructs.document,e,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function il(t){if(t===null||at(t)||Ln(t))return 1;if(bi(t))return 2}function Ul(t,e,n){let l=[],i=-1;for(;++i<t.length;){let r=t[i].resolveAll;r&&!l.includes(r)&&(e=r(e,n),l.push(r))}return e}var $a={name:"attention",resolveAll:iT,tokenize:rT};function iT(t,e){let n=-1,l,i,r,a,o,u,s,c;for(;++n<t.length;)if(t[n][0]==="enter"&&t[n][1].type==="attentionSequence"&&t[n][1]._close){for(l=n;l--;)if(t[l][0]==="exit"&&t[l][1].type==="attentionSequence"&&t[l][1]._open&&e.sliceSerialize(t[l][1]).charCodeAt(0)===e.sliceSerialize(t[n][1]).charCodeAt(0)){if((t[l][1]._close||t[n][1]._open)&&(t[n][1].end.offset-t[n][1].start.offset)%3&&!((t[l][1].end.offset-t[l][1].start.offset+t[n][1].end.offset-t[n][1].start.offset)%3))continue;u=t[l][1].end.offset-t[l][1].start.offset>1&&t[n][1].end.offset-t[n][1].start.offset>1?2:1;let f={...t[l][1].end},m={...t[n][1].start};vv(f,-u),vv(m,u),a={type:u>1?"strongSequence":"emphasisSequence",start:f,end:{...t[l][1].end}},o={type:u>1?"strongSequence":"emphasisSequence",start:{...t[n][1].start},end:m},r={type:u>1?"strongText":"emphasisText",start:{...t[l][1].end},end:{...t[n][1].start}},i={type:u>1?"strong":"emphasis",start:{...a.start},end:{...o.end}},t[l][1].end={...a.start},t[n][1].start={...o.end},s=[],t[l][1].end.offset-t[l][1].start.offset&&(s=Le(s,[["enter",t[l][1],e],["exit",t[l][1],e]])),s=Le(s,[["enter",i,e],["enter",a,e],["exit",a,e],["enter",r,e]]),s=Le(s,Ul(e.parser.constructs.insideSpan.null,t.slice(l+1,n),e)),s=Le(s,[["exit",r,e],["enter",o,e],["exit",o,e],["exit",i,e]]),t[n][1].end.offset-t[n][1].start.offset?(c=2,s=Le(s,[["enter",t[n][1],e],["exit",t[n][1],e]])):c=0,Pt(t,l-1,n-l+3,s),n=l+s.length-c-2;break}}for(n=-1;++n<t.length;)t[n][1].type==="attentionSequence"&&(t[n][1].type="data");return t}function rT(t,e){let n=this.parser.constructs.attentionMarkers.null,l=this.previous,i=il(l),r;return a;function a(u){return r=u,t.enter("attentionSequence"),o(u)}function o(u){if(u===r)return t.consume(u),o;let s=t.exit("attentionSequence"),c=il(u),f=!c||c===2&&i||n.includes(u),m=!i||i===2&&c||n.includes(l);return s._open=!!(r===42?f:f&&(i||!m)),s._close=!!(r===42?m:m&&(c||!f)),e(u)}}function vv(t,e){t.column+=e,t.offset+=e,t._bufferIndex+=e}var Mp={name:"autolink",tokenize:aT};function aT(t,e,n){let l=0;return i;function i(p){return t.enter("autolink"),t.enter("autolinkMarker"),t.consume(p),t.exit("autolinkMarker"),t.enter("autolinkProtocol"),r}function r(p){return se(p)?(t.consume(p),a):p===64?n(p):s(p)}function a(p){return p===43||p===45||p===46||Xt(p)?(l=1,o(p)):s(p)}function o(p){return p===58?(t.consume(p),l=0,u):(p===43||p===45||p===46||Xt(p))&&l++<32?(t.consume(p),o):(l=0,s(p))}function u(p){return p===62?(t.exit("autolinkProtocol"),t.enter("autolinkMarker"),t.consume(p),t.exit("autolinkMarker"),t.exit("autolink"),e):p===null||p===32||p===60||vi(p)?n(p):(t.consume(p),u)}function s(p){return p===64?(t.consume(p),c):pv(p)?(t.consume(p),s):n(p)}function c(p){return Xt(p)?f(p):n(p)}function f(p){return p===46?(t.consume(p),l=0,c):p===62?(t.exit("autolinkProtocol").type="autolinkEmail",t.enter("autolinkMarker"),t.consume(p),t.exit("autolinkMarker"),t.exit("autolink"),e):m(p)}function m(p){if((p===45||Xt(p))&&l++<63){let g=p===45?m:f;return t.consume(p),g}return n(p)}}var Un={partial:!0,tokenize:oT};function oT(t,e,n){return l;function l(r){return G(r)?Q(t,i,"linePrefix")(r):i(r)}function i(r){return r===null||O(r)?e(r):n(r)}}var Pu={continuation:{tokenize:sT},exit:cT,name:"blockQuote",tokenize:uT};function uT(t,e,n){let l=this;return i;function i(a){if(a===62){let o=l.containerState;return o.open||(t.enter("blockQuote",{_container:!0}),o.open=!0),t.enter("blockQuotePrefix"),t.enter("blockQuoteMarker"),t.consume(a),t.exit("blockQuoteMarker"),r}return n(a)}function r(a){return G(a)?(t.enter("blockQuotePrefixWhitespace"),t.consume(a),t.exit("blockQuotePrefixWhitespace"),t.exit("blockQuotePrefix"),e):(t.exit("blockQuotePrefix"),e(a))}}function sT(t,e,n){let l=this;return i;function i(a){return G(a)?Q(t,r,"linePrefix",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a):r(a)}function r(a){return t.attempt(Pu,e,n)(a)}}function cT(t){t.exit("blockQuote")}var Ju={name:"characterEscape",tokenize:fT};function fT(t,e,n){return l;function l(r){return t.enter("characterEscape"),t.enter("escapeMarker"),t.consume(r),t.exit("escapeMarker"),i}function i(r){return dv(r)?(t.enter("characterEscapeValue"),t.consume(r),t.exit("characterEscapeValue"),t.exit("characterEscape"),e):n(r)}}var Wu={name:"characterReference",tokenize:pT};function pT(t,e,n){let l=this,i=0,r,a;return o;function o(f){return t.enter("characterReference"),t.enter("characterReferenceMarker"),t.consume(f),t.exit("characterReferenceMarker"),u}function u(f){return f===35?(t.enter("characterReferenceMarkerNumeric"),t.consume(f),t.exit("characterReferenceMarkerNumeric"),s):(t.enter("characterReferenceValue"),r=31,a=Xt,c(f))}function s(f){return f===88||f===120?(t.enter("characterReferenceMarkerHexadecimal"),t.consume(f),t.exit("characterReferenceMarkerHexadecimal"),t.enter("characterReferenceValue"),r=6,a=mv,c):(t.enter("characterReferenceValue"),r=7,a=Wa,c(f))}function c(f){if(f===59&&i){let m=t.exit("characterReferenceValue");return a===Xt&&!Ar(l.sliceSerialize(m))?n(f):(t.enter("characterReferenceMarker"),t.consume(f),t.exit("characterReferenceMarker"),t.exit("characterReference"),e)}return a(f)&&i++<r?(t.consume(f),c):n(f)}}var bv={partial:!0,tokenize:dT},$u={concrete:!0,name:"codeFenced",tokenize:mT};function mT(t,e,n){let l=this,i={partial:!0,tokenize:C},r=0,a=0,o;return u;function u(E){return s(E)}function s(E){let M=l.events[l.events.length-1];return r=M&&M[1].type==="linePrefix"?M[2].sliceSerialize(M[1],!0).length:0,o=E,t.enter("codeFenced"),t.enter("codeFencedFence"),t.enter("codeFencedFenceSequence"),c(E)}function c(E){return E===o?(a++,t.consume(E),c):a<3?n(E):(t.exit("codeFencedFenceSequence"),G(E)?Q(t,f,"whitespace")(E):f(E))}function f(E){return E===null||O(E)?(t.exit("codeFencedFence"),l.interrupt?e(E):t.check(bv,v,T)(E)):(t.enter("codeFencedFenceInfo"),t.enter("chunkString",{contentType:"string"}),m(E))}function m(E){return E===null||O(E)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),f(E)):G(E)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),Q(t,p,"whitespace")(E)):E===96&&E===o?n(E):(t.consume(E),m)}function p(E){return E===null||O(E)?f(E):(t.enter("codeFencedFenceMeta"),t.enter("chunkString",{contentType:"string"}),g(E))}function g(E){return E===null||O(E)?(t.exit("chunkString"),t.exit("codeFencedFenceMeta"),f(E)):E===96&&E===o?n(E):(t.consume(E),g)}function v(E){return t.attempt(i,T,k)(E)}function k(E){return t.enter("lineEnding"),t.consume(E),t.exit("lineEnding"),d}function d(E){return r>0&&G(E)?Q(t,h,"linePrefix",r+1)(E):h(E)}function h(E){return E===null||O(E)?t.check(bv,v,T)(E):(t.enter("codeFlowValue"),y(E))}function y(E){return E===null||O(E)?(t.exit("codeFlowValue"),h(E)):(t.consume(E),y)}function T(E){return t.exit("codeFenced"),e(E)}function C(E,M,N){let L=0;return S;function S(J){return E.enter("lineEnding"),E.consume(J),E.exit("lineEnding"),et}function et(J){return E.enter("codeFencedFence"),G(J)?Q(E,K,"linePrefix",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(J):K(J)}function K(J){return J===o?(E.enter("codeFencedFenceSequence"),I(J)):N(J)}function I(J){return J===o?(L++,E.consume(J),I):L>=a?(E.exit("codeFencedFenceSequence"),G(J)?Q(E,Z,"whitespace")(J):Z(J)):N(J)}function Z(J){return J===null||O(J)?(E.exit("codeFencedFence"),M(J)):N(J)}}}function dT(t,e,n){let l=this;return i;function i(a){return a===null?n(a):(t.enter("lineEnding"),t.consume(a),t.exit("lineEnding"),r)}function r(a){return l.parser.lazy[l.now().line]?n(a):e(a)}}var to={name:"codeIndented",tokenize:gT},hT={partial:!0,tokenize:yT};function gT(t,e,n){let l=this;return i;function i(s){return t.enter("codeIndented"),Q(t,r,"linePrefix",5)(s)}function r(s){let c=l.events[l.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?a(s):n(s)}function a(s){return s===null?u(s):O(s)?t.attempt(hT,a,u)(s):(t.enter("codeFlowValue"),o(s))}function o(s){return s===null||O(s)?(t.exit("codeFlowValue"),a(s)):(t.consume(s),o)}function u(s){return t.exit("codeIndented"),e(s)}}function yT(t,e,n){let l=this;return i;function i(a){return l.parser.lazy[l.now().line]?n(a):O(a)?(t.enter("lineEnding"),t.consume(a),t.exit("lineEnding"),i):Q(t,r,"linePrefix",5)(a)}function r(a){let o=l.events[l.events.length-1];return o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?e(a):O(a)?i(a):n(a)}}var Dp={name:"codeText",previous:bT,resolve:vT,tokenize:xT};function vT(t){let e=t.length-4,n=3,l,i;if((t[n][1].type==="lineEnding"||t[n][1].type==="space")&&(t[e][1].type==="lineEnding"||t[e][1].type==="space")){for(l=n;++l<e;)if(t[l][1].type==="codeTextData"){t[n][1].type="codeTextPadding",t[e][1].type="codeTextPadding",n+=2,e-=2;break}}for(l=n-1,e++;++l<=e;)i===void 0?l!==e&&t[l][1].type!=="lineEnding"&&(i=l):(l===e||t[l][1].type==="lineEnding")&&(t[i][1].type="codeTextData",l!==i+2&&(t[i][1].end=t[l-1][1].end,t.splice(i+2,l-i-2),e-=l-i-2,l=i+2),i=void 0);return t}function bT(t){return t!==96||this.events[this.events.length-1][1].type==="characterEscape"}function xT(t,e,n){let l=this,i=0,r,a;return o;function o(m){return t.enter("codeText"),t.enter("codeTextSequence"),u(m)}function u(m){return m===96?(t.consume(m),i++,u):(t.exit("codeTextSequence"),s(m))}function s(m){return m===null?n(m):m===32?(t.enter("space"),t.consume(m),t.exit("space"),s):m===96?(a=t.enter("codeTextSequence"),r=0,f(m)):O(m)?(t.enter("lineEnding"),t.consume(m),t.exit("lineEnding"),s):(t.enter("codeTextData"),c(m))}function c(m){return m===null||m===32||m===96||O(m)?(t.exit("codeTextData"),s(m)):(t.consume(m),c)}function f(m){return m===96?(t.consume(m),r++,f):r===i?(t.exit("codeTextSequence"),t.exit("codeText"),e(m)):(a.type="codeTextData",c(m))}}var ts=class{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,n){let l=n??Number.POSITIVE_INFINITY;return l<this.left.length?this.left.slice(e,l):e>this.left.length?this.right.slice(this.right.length-l+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-l+this.left.length).reverse())}splice(e,n,l){let i=n||0;this.setCursor(Math.trunc(e));let r=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return l&&eo(this.left,l),r.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(e){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(e)}pushMany(e){this.setCursor(Number.POSITIVE_INFINITY),eo(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),eo(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&this.right.length===0||e<0&&this.left.length===0))if(e<this.left.length){let n=this.left.splice(e,Number.POSITIVE_INFINITY);eo(this.right,n.reverse())}else{let n=this.right.splice(this.left.length+this.right.length-e,Number.POSITIVE_INFINITY);eo(this.left,n.reverse())}}};function eo(t,e){let n=0;if(e.length<1e4)t.push(...e);else for(;n<e.length;)t.push(...e.slice(n,n+1e4)),n+=1e4}function es(t){let e={},n=-1,l,i,r,a,o,u,s,c=new ts(t);for(;++n<c.length;){for(;n in e;)n=e[n];if(l=c.get(n),n&&l[1].type==="chunkFlow"&&c.get(n-1)[1].type==="listItemPrefix"&&(u=l[1]._tokenizer.events,r=0,r<u.length&&u[r][1].type==="lineEndingBlank"&&(r+=2),r<u.length&&u[r][1].type==="content"))for(;++r<u.length&&u[r][1].type!=="content";)u[r][1].type==="chunkText"&&(u[r][1]._isInFirstContentOfListItem=!0,r++);if(l[0]==="enter")l[1].contentType&&(Object.assign(e,ST(c,n)),n=e[n],s=!0);else if(l[1]._container){for(r=n,i=void 0;r--;)if(a=c.get(r),a[1].type==="lineEnding"||a[1].type==="lineEndingBlank")a[0]==="enter"&&(i&&(c.get(i)[1].type="lineEndingBlank"),a[1].type="lineEnding",i=r);else if(!(a[1].type==="linePrefix"||a[1].type==="listItemIndent"))break;i&&(l[1].end={...c.get(i)[1].start},o=c.slice(i,n),o.unshift(l),c.splice(i,n-i+1,o))}}return Pt(t,0,Number.POSITIVE_INFINITY,c.slice(0)),!s}function ST(t,e){let n=t.get(e)[1],l=t.get(e)[2],i=e-1,r=[],a=n._tokenizer;a||(a=l.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(a._contentTypeTextTrailing=!0));let o=a.events,u=[],s={},c,f,m=-1,p=n,g=0,v=0,k=[v];for(;p;){for(;t.get(++i)[1]!==p;);r.push(i),p._tokenizer||(c=l.sliceStream(p),p.next||c.push(null),f&&a.defineSkip(p.start),p._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=!0),a.write(c),p._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=void 0)),f=p,p=p.next}for(p=n;++m<o.length;)o[m][0]==="exit"&&o[m-1][0]==="enter"&&o[m][1].type===o[m-1][1].type&&o[m][1].start.line!==o[m][1].end.line&&(v=m+1,k.push(v),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(a.events=[],p?(p._tokenizer=void 0,p.previous=void 0):k.pop(),m=k.length;m--;){let d=o.slice(k[m],k[m+1]),h=r.pop();u.push([h,h+d.length-1]),t.splice(h,2,d)}for(u.reverse(),m=-1;++m<u.length;)s[g+u[m][0]]=g+u[m][1],g+=u[m][1]-u[m][0]-1;return s}var Np={resolve:ET,tokenize:TT},kT={partial:!0,tokenize:wT};function ET(t){return es(t),t}function TT(t,e){let n;return l;function l(o){return t.enter("content"),n=t.enter("chunkContent",{contentType:"content"}),i(o)}function i(o){return o===null?r(o):O(o)?t.check(kT,a,r)(o):(t.consume(o),i)}function r(o){return t.exit("chunkContent"),t.exit("content"),e(o)}function a(o){return t.consume(o),t.exit("chunkContent"),n.next=t.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,i}}function wT(t,e,n){let l=this;return i;function i(a){return t.exit("chunkContent"),t.enter("lineEnding"),t.consume(a),t.exit("lineEnding"),Q(t,r,"linePrefix")}function r(a){if(a===null||O(a))return n(a);let o=l.events[l.events.length-1];return!l.parser.constructs.disable.null.includes("codeIndented")&&o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?e(a):t.interrupt(l.parser.constructs.flow,n,e)(a)}}function ns(t,e,n,l,i,r,a,o,u){let s=u||Number.POSITIVE_INFINITY,c=0;return f;function f(d){return d===60?(t.enter(l),t.enter(i),t.enter(r),t.consume(d),t.exit(r),m):d===null||d===32||d===41||vi(d)?n(d):(t.enter(l),t.enter(a),t.enter(o),t.enter("chunkString",{contentType:"string"}),v(d))}function m(d){return d===62?(t.enter(r),t.consume(d),t.exit(r),t.exit(i),t.exit(l),e):(t.enter(o),t.enter("chunkString",{contentType:"string"}),p(d))}function p(d){return d===62?(t.exit("chunkString"),t.exit(o),m(d)):d===null||d===60||O(d)?n(d):(t.consume(d),d===92?g:p)}function g(d){return d===60||d===62||d===92?(t.consume(d),p):p(d)}function v(d){return!c&&(d===null||d===41||at(d))?(t.exit("chunkString"),t.exit(o),t.exit(a),t.exit(l),e(d)):c<s&&d===40?(t.consume(d),c++,v):d===41?(t.consume(d),c--,v):d===null||d===32||d===40||vi(d)?n(d):(t.consume(d),d===92?k:v)}function k(d){return d===40||d===41||d===92?(t.consume(d),v):v(d)}}function ls(t,e,n,l,i,r){let a=this,o=0,u;return s;function s(p){return t.enter(l),t.enter(i),t.consume(p),t.exit(i),t.enter(r),c}function c(p){return o>999||p===null||p===91||p===93&&!u||p===94&&!o&&"_hiddenFootnoteSupport"in a.parser.constructs?n(p):p===93?(t.exit(r),t.enter(i),t.consume(p),t.exit(i),t.exit(l),e):O(p)?(t.enter("lineEnding"),t.consume(p),t.exit("lineEnding"),c):(t.enter("chunkString",{contentType:"string"}),f(p))}function f(p){return p===null||p===91||p===93||O(p)||o++>999?(t.exit("chunkString"),c(p)):(t.consume(p),u||(u=!G(p)),p===92?m:f)}function m(p){return p===91||p===92||p===93?(t.consume(p),o++,f):f(p)}}function is(t,e,n,l,i,r){let a;return o;function o(m){return m===34||m===39||m===40?(t.enter(l),t.enter(i),t.consume(m),t.exit(i),a=m===40?41:m,u):n(m)}function u(m){return m===a?(t.enter(i),t.consume(m),t.exit(i),t.exit(l),e):(t.enter(r),s(m))}function s(m){return m===a?(t.exit(r),u(a)):m===null?n(m):O(m)?(t.enter("lineEnding"),t.consume(m),t.exit("lineEnding"),Q(t,s,"linePrefix")):(t.enter("chunkString",{contentType:"string"}),c(m))}function c(m){return m===a||m===null||O(m)?(t.exit("chunkString"),s(m)):(t.consume(m),m===92?f:c)}function f(m){return m===a||m===92?(t.consume(m),c):c(m)}}function xi(t,e){let n;return l;function l(i){return O(i)?(t.enter("lineEnding"),t.consume(i),t.exit("lineEnding"),n=!0,l):G(i)?Q(t,l,n?"linePrefix":"lineSuffix")(i):e(i)}}var zp={name:"definition",tokenize:CT},AT={partial:!0,tokenize:RT};function CT(t,e,n){let l=this,i;return r;function r(p){return t.enter("definition"),a(p)}function a(p){return ls.call(l,t,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function o(p){return i=Te(l.sliceSerialize(l.events[l.events.length-1][1]).slice(1,-1)),p===58?(t.enter("definitionMarker"),t.consume(p),t.exit("definitionMarker"),u):n(p)}function u(p){return at(p)?xi(t,s)(p):s(p)}function s(p){return ns(t,c,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function c(p){return t.attempt(AT,f,f)(p)}function f(p){return G(p)?Q(t,m,"whitespace")(p):m(p)}function m(p){return p===null||O(p)?(t.exit("definition"),l.parser.defined.push(i),e(p)):n(p)}}function RT(t,e,n){return l;function l(o){return at(o)?xi(t,i)(o):n(o)}function i(o){return is(t,r,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(o)}function r(o){return G(o)?Q(t,a,"whitespace")(o):a(o)}function a(o){return o===null||O(o)?e(o):n(o)}}var _p={name:"hardBreakEscape",tokenize:MT};function MT(t,e,n){return l;function l(r){return t.enter("hardBreakEscape"),t.consume(r),i}function i(r){return O(r)?(t.exit("hardBreakEscape"),e(r)):n(r)}}var Op={name:"headingAtx",resolve:DT,tokenize:NT};function DT(t,e){let n=t.length-2,l=3,i,r;return t[l][1].type==="whitespace"&&(l+=2),n-2>l&&t[n][1].type==="whitespace"&&(n-=2),t[n][1].type==="atxHeadingSequence"&&(l===n-1||n-4>l&&t[n-2][1].type==="whitespace")&&(n-=l+1===n?2:4),n>l&&(i={type:"atxHeadingText",start:t[l][1].start,end:t[n][1].end},r={type:"chunkText",start:t[l][1].start,end:t[n][1].end,contentType:"text"},Pt(t,l,n-l+1,[["enter",i,e],["enter",r,e],["exit",r,e],["exit",i,e]])),t}function NT(t,e,n){let l=0;return i;function i(c){return t.enter("atxHeading"),r(c)}function r(c){return t.enter("atxHeadingSequence"),a(c)}function a(c){return c===35&&l++<6?(t.consume(c),a):c===null||at(c)?(t.exit("atxHeadingSequence"),o(c)):n(c)}function o(c){return c===35?(t.enter("atxHeadingSequence"),u(c)):c===null||O(c)?(t.exit("atxHeading"),e(c)):G(c)?Q(t,o,"whitespace")(c):(t.enter("atxHeadingText"),s(c))}function u(c){return c===35?(t.consume(c),u):(t.exit("atxHeadingSequence"),o(c))}function s(c){return c===null||c===35||at(c)?(t.exit("atxHeadingText"),o(c)):(t.consume(c),s)}}var xv=["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"],Lp=["pre","script","style","textarea"];var Up={concrete:!0,name:"htmlFlow",resolveTo:OT,tokenize:LT},zT={partial:!0,tokenize:BT},_T={partial:!0,tokenize:UT};function OT(t){let e=t.length;for(;e--&&!(t[e][0]==="enter"&&t[e][1].type==="htmlFlow"););return e>1&&t[e-2][1].type==="linePrefix"&&(t[e][1].start=t[e-2][1].start,t[e+1][1].start=t[e-2][1].start,t.splice(e-2,2)),t}function LT(t,e,n){let l=this,i,r,a,o,u;return s;function s(x){return c(x)}function c(x){return t.enter("htmlFlow"),t.enter("htmlFlowData"),t.consume(x),f}function f(x){return x===33?(t.consume(x),m):x===47?(t.consume(x),r=!0,v):x===63?(t.consume(x),i=3,l.interrupt?e:b):se(x)?(t.consume(x),a=String.fromCharCode(x),k):n(x)}function m(x){return x===45?(t.consume(x),i=2,p):x===91?(t.consume(x),i=5,o=0,g):se(x)?(t.consume(x),i=4,l.interrupt?e:b):n(x)}function p(x){return x===45?(t.consume(x),l.interrupt?e:b):n(x)}function g(x){let zt="CDATA[";return x===zt.charCodeAt(o++)?(t.consume(x),o===zt.length?l.interrupt?e:K:g):n(x)}function v(x){return se(x)?(t.consume(x),a=String.fromCharCode(x),k):n(x)}function k(x){if(x===null||x===47||x===62||at(x)){let zt=x===47,U=a.toLowerCase();return!zt&&!r&&Lp.includes(U)?(i=1,l.interrupt?e(x):K(x)):xv.includes(a.toLowerCase())?(i=6,zt?(t.consume(x),d):l.interrupt?e(x):K(x)):(i=7,l.interrupt&&!l.parser.lazy[l.now().line]?n(x):r?h(x):y(x))}return x===45||Xt(x)?(t.consume(x),a+=String.fromCharCode(x),k):n(x)}function d(x){return x===62?(t.consume(x),l.interrupt?e:K):n(x)}function h(x){return G(x)?(t.consume(x),h):S(x)}function y(x){return x===47?(t.consume(x),S):x===58||x===95||se(x)?(t.consume(x),T):G(x)?(t.consume(x),y):S(x)}function T(x){return x===45||x===46||x===58||x===95||Xt(x)?(t.consume(x),T):C(x)}function C(x){return x===61?(t.consume(x),E):G(x)?(t.consume(x),C):y(x)}function E(x){return x===null||x===60||x===61||x===62||x===96?n(x):x===34||x===39?(t.consume(x),u=x,M):G(x)?(t.consume(x),E):N(x)}function M(x){return x===u?(t.consume(x),u=null,L):x===null||O(x)?n(x):(t.consume(x),M)}function N(x){return x===null||x===34||x===39||x===47||x===60||x===61||x===62||x===96||at(x)?C(x):(t.consume(x),N)}function L(x){return x===47||x===62||G(x)?y(x):n(x)}function S(x){return x===62?(t.consume(x),et):n(x)}function et(x){return x===null||O(x)?K(x):G(x)?(t.consume(x),et):n(x)}function K(x){return x===45&&i===2?(t.consume(x),dt):x===60&&i===1?(t.consume(x),xt):x===62&&i===4?(t.consume(x),Wt):x===63&&i===3?(t.consume(x),b):x===93&&i===5?(t.consume(x),le):O(x)&&(i===6||i===7)?(t.exit("htmlFlowData"),t.check(zT,qt,I)(x)):x===null||O(x)?(t.exit("htmlFlowData"),I(x)):(t.consume(x),K)}function I(x){return t.check(_T,Z,qt)(x)}function Z(x){return t.enter("lineEnding"),t.consume(x),t.exit("lineEnding"),J}function J(x){return x===null||O(x)?I(x):(t.enter("htmlFlowData"),K(x))}function dt(x){return x===45?(t.consume(x),b):K(x)}function xt(x){return x===47?(t.consume(x),a="",It):K(x)}function It(x){if(x===62){let zt=a.toLowerCase();return Lp.includes(zt)?(t.consume(x),Wt):K(x)}return se(x)&&a.length<8?(t.consume(x),a+=String.fromCharCode(x),It):K(x)}function le(x){return x===93?(t.consume(x),b):K(x)}function b(x){return x===62?(t.consume(x),Wt):x===45&&i===2?(t.consume(x),b):K(x)}function Wt(x){return x===null||O(x)?(t.exit("htmlFlowData"),qt(x)):(t.consume(x),Wt)}function qt(x){return t.exit("htmlFlow"),e(x)}}function UT(t,e,n){let l=this;return i;function i(a){return O(a)?(t.enter("lineEnding"),t.consume(a),t.exit("lineEnding"),r):n(a)}function r(a){return l.parser.lazy[l.now().line]?n(a):e(a)}}function BT(t,e,n){return l;function l(i){return t.enter("lineEnding"),t.consume(i),t.exit("lineEnding"),t.attempt(Un,e,n)}}var Bp={name:"htmlText",tokenize:HT};function HT(t,e,n){let l=this,i,r,a;return o;function o(b){return t.enter("htmlText"),t.enter("htmlTextData"),t.consume(b),u}function u(b){return b===33?(t.consume(b),s):b===47?(t.consume(b),C):b===63?(t.consume(b),y):se(b)?(t.consume(b),N):n(b)}function s(b){return b===45?(t.consume(b),c):b===91?(t.consume(b),r=0,g):se(b)?(t.consume(b),h):n(b)}function c(b){return b===45?(t.consume(b),p):n(b)}function f(b){return b===null?n(b):b===45?(t.consume(b),m):O(b)?(a=f,xt(b)):(t.consume(b),f)}function m(b){return b===45?(t.consume(b),p):f(b)}function p(b){return b===62?dt(b):b===45?m(b):f(b)}function g(b){let Wt="CDATA[";return b===Wt.charCodeAt(r++)?(t.consume(b),r===Wt.length?v:g):n(b)}function v(b){return b===null?n(b):b===93?(t.consume(b),k):O(b)?(a=v,xt(b)):(t.consume(b),v)}function k(b){return b===93?(t.consume(b),d):v(b)}function d(b){return b===62?dt(b):b===93?(t.consume(b),d):v(b)}function h(b){return b===null||b===62?dt(b):O(b)?(a=h,xt(b)):(t.consume(b),h)}function y(b){return b===null?n(b):b===63?(t.consume(b),T):O(b)?(a=y,xt(b)):(t.consume(b),y)}function T(b){return b===62?dt(b):y(b)}function C(b){return se(b)?(t.consume(b),E):n(b)}function E(b){return b===45||Xt(b)?(t.consume(b),E):M(b)}function M(b){return O(b)?(a=M,xt(b)):G(b)?(t.consume(b),M):dt(b)}function N(b){return b===45||Xt(b)?(t.consume(b),N):b===47||b===62||at(b)?L(b):n(b)}function L(b){return b===47?(t.consume(b),dt):b===58||b===95||se(b)?(t.consume(b),S):O(b)?(a=L,xt(b)):G(b)?(t.consume(b),L):dt(b)}function S(b){return b===45||b===46||b===58||b===95||Xt(b)?(t.consume(b),S):et(b)}function et(b){return b===61?(t.consume(b),K):O(b)?(a=et,xt(b)):G(b)?(t.consume(b),et):L(b)}function K(b){return b===null||b===60||b===61||b===62||b===96?n(b):b===34||b===39?(t.consume(b),i=b,I):O(b)?(a=K,xt(b)):G(b)?(t.consume(b),K):(t.consume(b),Z)}function I(b){return b===i?(t.consume(b),i=void 0,J):b===null?n(b):O(b)?(a=I,xt(b)):(t.consume(b),I)}function Z(b){return b===null||b===34||b===39||b===60||b===61||b===96?n(b):b===47||b===62||at(b)?L(b):(t.consume(b),Z)}function J(b){return b===47||b===62||at(b)?L(b):n(b)}function dt(b){return b===62?(t.consume(b),t.exit("htmlTextData"),t.exit("htmlText"),e):n(b)}function xt(b){return t.exit("htmlTextData"),t.enter("lineEnding"),t.consume(b),t.exit("lineEnding"),It}function It(b){return G(b)?Q(t,le,"linePrefix",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(b):le(b)}function le(b){return t.enter("htmlTextData"),a(b)}}var Si={name:"labelEnd",resolveAll:YT,resolveTo:VT,tokenize:FT},qT={tokenize:QT},jT={tokenize:XT},IT={tokenize:GT};function YT(t){let e=-1,n=[];for(;++e<t.length;){let l=t[e][1];if(n.push(t[e]),l.type==="labelImage"||l.type==="labelLink"||l.type==="labelEnd"){let i=l.type==="labelImage"?4:2;l.type="data",e+=i}}return t.length!==n.length&&Pt(t,0,t.length,n),t}function VT(t,e){let n=t.length,l=0,i,r,a,o;for(;n--;)if(i=t[n][1],r){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;t[n][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(a){if(t[n][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(r=n,i.type!=="labelLink")){l=2;break}}else i.type==="labelEnd"&&(a=n);let u={type:t[r][1].type==="labelLink"?"link":"image",start:{...t[r][1].start},end:{...t[t.length-1][1].end}},s={type:"label",start:{...t[r][1].start},end:{...t[a][1].end}},c={type:"labelText",start:{...t[r+l+2][1].end},end:{...t[a-2][1].start}};return o=[["enter",u,e],["enter",s,e]],o=Le(o,t.slice(r+1,r+l+3)),o=Le(o,[["enter",c,e]]),o=Le(o,Ul(e.parser.constructs.insideSpan.null,t.slice(r+l+4,a-3),e)),o=Le(o,[["exit",c,e],t[a-2],t[a-1],["exit",s,e]]),o=Le(o,t.slice(a+1)),o=Le(o,[["exit",u,e]]),Pt(t,r,t.length,o),t}function FT(t,e,n){let l=this,i=l.events.length,r,a;for(;i--;)if((l.events[i][1].type==="labelImage"||l.events[i][1].type==="labelLink")&&!l.events[i][1]._balanced){r=l.events[i][1];break}return o;function o(m){return r?r._inactive?f(m):(a=l.parser.defined.includes(Te(l.sliceSerialize({start:r.end,end:l.now()}))),t.enter("labelEnd"),t.enter("labelMarker"),t.consume(m),t.exit("labelMarker"),t.exit("labelEnd"),u):n(m)}function u(m){return m===40?t.attempt(qT,c,a?c:f)(m):m===91?t.attempt(jT,c,a?s:f)(m):a?c(m):f(m)}function s(m){return t.attempt(IT,c,f)(m)}function c(m){return e(m)}function f(m){return r._balanced=!0,n(m)}}function QT(t,e,n){return l;function l(f){return t.enter("resource"),t.enter("resourceMarker"),t.consume(f),t.exit("resourceMarker"),i}function i(f){return at(f)?xi(t,r)(f):r(f)}function r(f){return f===41?c(f):ns(t,a,o,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(f)}function a(f){return at(f)?xi(t,u)(f):c(f)}function o(f){return n(f)}function u(f){return f===34||f===39||f===40?is(t,s,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(f):c(f)}function s(f){return at(f)?xi(t,c)(f):c(f)}function c(f){return f===41?(t.enter("resourceMarker"),t.consume(f),t.exit("resourceMarker"),t.exit("resource"),e):n(f)}}function XT(t,e,n){let l=this;return i;function i(o){return ls.call(l,t,r,a,"reference","referenceMarker","referenceString")(o)}function r(o){return l.parser.defined.includes(Te(l.sliceSerialize(l.events[l.events.length-1][1]).slice(1,-1)))?e(o):n(o)}function a(o){return n(o)}}function GT(t,e,n){return l;function l(r){return t.enter("reference"),t.enter("referenceMarker"),t.consume(r),t.exit("referenceMarker"),i}function i(r){return r===93?(t.enter("referenceMarker"),t.consume(r),t.exit("referenceMarker"),t.exit("reference"),e):n(r)}}var Hp={name:"labelStartImage",resolveAll:Si.resolveAll,tokenize:ZT};function ZT(t,e,n){let l=this;return i;function i(o){return t.enter("labelImage"),t.enter("labelImageMarker"),t.consume(o),t.exit("labelImageMarker"),r}function r(o){return o===91?(t.enter("labelMarker"),t.consume(o),t.exit("labelMarker"),t.exit("labelImage"),a):n(o)}function a(o){return o===94&&"_hiddenFootnoteSupport"in l.parser.constructs?n(o):e(o)}}var qp={name:"labelStartLink",resolveAll:Si.resolveAll,tokenize:KT};function KT(t,e,n){let l=this;return i;function i(a){return t.enter("labelLink"),t.enter("labelMarker"),t.consume(a),t.exit("labelMarker"),t.exit("labelLink"),r}function r(a){return a===94&&"_hiddenFootnoteSupport"in l.parser.constructs?n(a):e(a)}}var no={name:"lineEnding",tokenize:PT};function PT(t,e){return n;function n(l){return t.enter("lineEnding"),t.consume(l),t.exit("lineEnding"),Q(t,e,"linePrefix")}}var ki={name:"thematicBreak",tokenize:JT};function JT(t,e,n){let l=0,i;return r;function r(s){return t.enter("thematicBreak"),a(s)}function a(s){return i=s,o(s)}function o(s){return s===i?(t.enter("thematicBreakSequence"),u(s)):l>=3&&(s===null||O(s))?(t.exit("thematicBreak"),e(s)):n(s)}function u(s){return s===i?(t.consume(s),l++,u):(t.exit("thematicBreakSequence"),G(s)?Q(t,o,"whitespace")(s):o(s))}}var we={continuation:{tokenize:ew},exit:lw,name:"list",tokenize:tw},WT={partial:!0,tokenize:iw},$T={partial:!0,tokenize:nw};function tw(t,e,n){let l=this,i=l.events[l.events.length-1],r=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,a=0;return o;function o(p){let g=l.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(g==="listUnordered"?!l.containerState.marker||p===l.containerState.marker:Wa(p)){if(l.containerState.type||(l.containerState.type=g,t.enter(g,{_container:!0})),g==="listUnordered")return t.enter("listItemPrefix"),p===42||p===45?t.check(ki,n,s)(p):s(p);if(!l.interrupt||p===49)return t.enter("listItemPrefix"),t.enter("listItemValue"),u(p)}return n(p)}function u(p){return Wa(p)&&++a<10?(t.consume(p),u):(!l.interrupt||a<2)&&(l.containerState.marker?p===l.containerState.marker:p===41||p===46)?(t.exit("listItemValue"),s(p)):n(p)}function s(p){return t.enter("listItemMarker"),t.consume(p),t.exit("listItemMarker"),l.containerState.marker=l.containerState.marker||p,t.check(Un,l.interrupt?n:c,t.attempt(WT,m,f))}function c(p){return l.containerState.initialBlankLine=!0,r++,m(p)}function f(p){return G(p)?(t.enter("listItemPrefixWhitespace"),t.consume(p),t.exit("listItemPrefixWhitespace"),m):n(p)}function m(p){return l.containerState.size=r+l.sliceSerialize(t.exit("listItemPrefix"),!0).length,e(p)}}function ew(t,e,n){let l=this;return l.containerState._closeFlow=void 0,t.check(Un,i,r);function i(o){return l.containerState.furtherBlankLines=l.containerState.furtherBlankLines||l.containerState.initialBlankLine,Q(t,e,"listItemIndent",l.containerState.size+1)(o)}function r(o){return l.containerState.furtherBlankLines||!G(o)?(l.containerState.furtherBlankLines=void 0,l.containerState.initialBlankLine=void 0,a(o)):(l.containerState.furtherBlankLines=void 0,l.containerState.initialBlankLine=void 0,t.attempt($T,e,a)(o))}function a(o){return l.containerState._closeFlow=!0,l.interrupt=void 0,Q(t,t.attempt(we,e,n),"linePrefix",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}function nw(t,e,n){let l=this;return Q(t,i,"listItemIndent",l.containerState.size+1);function i(r){let a=l.events[l.events.length-1];return a&&a[1].type==="listItemIndent"&&a[2].sliceSerialize(a[1],!0).length===l.containerState.size?e(r):n(r)}}function lw(t){t.exit(this.containerState.type)}function iw(t,e,n){let l=this;return Q(t,i,"listItemPrefixWhitespace",l.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(r){let a=l.events[l.events.length-1];return!G(r)&&a&&a[1].type==="listItemPrefixWhitespace"?e(r):n(r)}}var rs={name:"setextUnderline",resolveTo:rw,tokenize:aw};function rw(t,e){let n=t.length,l,i,r;for(;n--;)if(t[n][0]==="enter"){if(t[n][1].type==="content"){l=n;break}t[n][1].type==="paragraph"&&(i=n)}else t[n][1].type==="content"&&t.splice(n,1),!r&&t[n][1].type==="definition"&&(r=n);let a={type:"setextHeading",start:{...t[l][1].start},end:{...t[t.length-1][1].end}};return t[i][1].type="setextHeadingText",r?(t.splice(i,0,["enter",a,e]),t.splice(r+1,0,["exit",t[l][1],e]),t[l][1].end={...t[r][1].end}):t[l][1]=a,t.push(["exit",a,e]),t}function aw(t,e,n){let l=this,i;return r;function r(s){let c=l.events.length,f;for(;c--;)if(l.events[c][1].type!=="lineEnding"&&l.events[c][1].type!=="linePrefix"&&l.events[c][1].type!=="content"){f=l.events[c][1].type==="paragraph";break}return!l.parser.lazy[l.now().line]&&(l.interrupt||f)?(t.enter("setextHeadingLine"),i=s,a(s)):n(s)}function a(s){return t.enter("setextHeadingLineSequence"),o(s)}function o(s){return s===i?(t.consume(s),o):(t.exit("setextHeadingLineSequence"),G(s)?Q(t,u,"lineSuffix")(s):u(s))}function u(s){return s===null||O(s)?(t.exit("setextHeadingLine"),e(s)):n(s)}}var Sv={tokenize:ow};function ow(t){let e=this,n=t.attempt(Un,l,t.attempt(this.parser.constructs.flowInitial,i,Q(t,t.attempt(this.parser.constructs.flow,i,t.attempt(Np,i)),"linePrefix")));return n;function l(r){if(r===null){t.consume(r);return}return t.enter("lineEndingBlank"),t.consume(r),t.exit("lineEndingBlank"),e.currentConstruct=void 0,n}function i(r){if(r===null){t.consume(r);return}return t.enter("lineEnding"),t.consume(r),t.exit("lineEnding"),e.currentConstruct=void 0,n}}var kv={resolveAll:Av()},Ev=wv("string"),Tv=wv("text");function wv(t){return{resolveAll:Av(t==="text"?uw:void 0),tokenize:e};function e(n){let l=this,i=this.parser.constructs[t],r=n.attempt(i,a,o);return a;function a(c){return s(c)?r(c):o(c)}function o(c){if(c===null){n.consume(c);return}return n.enter("data"),n.consume(c),u}function u(c){return s(c)?(n.exit("data"),r(c)):(n.consume(c),u)}function s(c){if(c===null)return!0;let f=i[c],m=-1;if(f)for(;++m<f.length;){let p=f[m];if(!p.previous||p.previous.call(l,l.previous))return!0}return!1}}}function Av(t){return e;function e(n,l){let i=-1,r;for(;++i<=n.length;)r===void 0?n[i]&&n[i][1].type==="data"&&(r=i,i++):(!n[i]||n[i][1].type!=="data")&&(i!==r+2&&(n[r][1].end=n[i-1][1].end,n.splice(r+2,i-r-2),i=r+2),r=void 0);return t?t(n,l):n}}function uw(t,e){let n=0;for(;++n<=t.length;)if((n===t.length||t[n][1].type==="lineEnding")&&t[n-1][1].type==="data"){let l=t[n-1][1],i=e.sliceStream(l),r=i.length,a=-1,o=0,u;for(;r--;){let s=i[r];if(typeof s=="string"){for(a=s.length;s.charCodeAt(a-1)===32;)o++,a--;if(a)break;a=-1}else if(s===-2)u=!0,o++;else if(s!==-1){r++;break}}if(e._contentTypeTextTrailing&&n===t.length&&(o=0),o){let s={type:n===t.length||u||o<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:r?a:l.start._bufferIndex+a,_index:l.start._index+r,line:l.end.line,column:l.end.column-o,offset:l.end.offset-o},end:{...l.end}};l.end={...s.start},l.start.offset===l.end.offset?Object.assign(l,s):(t.splice(n,0,["enter",s,e],["exit",s,e]),n+=2)}n++}return t}var jp={};Zm(jp,{attentionMarkers:()=>gw,contentInitial:()=>cw,disable:()=>yw,document:()=>sw,flow:()=>pw,flowInitial:()=>fw,insideSpan:()=>hw,string:()=>mw,text:()=>dw});var sw={42:we,43:we,45:we,48:we,49:we,50:we,51:we,52:we,53:we,54:we,55:we,56:we,57:we,62:Pu},cw={91:zp},fw={[-2]:to,[-1]:to,32:to},pw={35:Op,42:ki,45:[rs,ki],60:Up,61:rs,95:ki,96:$u,126:$u},mw={38:Wu,92:Ju},dw={[-5]:no,[-4]:no,[-3]:no,33:Hp,38:Wu,42:$a,60:[Mp,Bp],91:qp,92:[_p,Ju],93:Si,95:$a,96:Dp},hw={null:[$a,kv]},gw={null:[42,95]},yw={null:[]};function Cv(t,e,n){let l={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0},i={},r=[],a=[],o=[],u=!0,s={attempt:L(M),check:L(N),consume:T,enter:C,exit:E,interrupt:L(N,{interrupt:!0})},c={code:null,containerState:{},defineSkip:d,events:[],now:k,parser:t,previous:null,sliceSerialize:g,sliceStream:v,write:p},f=e.tokenize.call(c,s),m;return e.resolveAll&&r.push(e),c;function p(I){return a=Le(a,I),h(),a[a.length-1]!==null?[]:(S(e,0),c.events=Ul(r,c.events,c),c.events)}function g(I,Z){return bw(v(I),Z)}function v(I){return vw(a,I)}function k(){let{_bufferIndex:I,_index:Z,line:J,column:dt,offset:xt}=l;return{_bufferIndex:I,_index:Z,line:J,column:dt,offset:xt}}function d(I){i[I.line]=I.column,K()}function h(){let I;for(;l._index<a.length;){let Z=a[l._index];if(typeof Z=="string")for(I=l._index,l._bufferIndex<0&&(l._bufferIndex=0);l._index===I&&l._bufferIndex<Z.length;)y(Z.charCodeAt(l._bufferIndex));else y(Z)}}function y(I){u=void 0,m=I,f=f(I)}function T(I){O(I)?(l.line++,l.column=1,l.offset+=I===-3?2:1,K()):I!==-1&&(l.column++,l.offset++),l._bufferIndex<0?l._index++:(l._bufferIndex++,l._bufferIndex===a[l._index].length&&(l._bufferIndex=-1,l._index++)),c.previous=I,u=!0}function C(I,Z){let J=Z||{};return J.type=I,J.start=k(),c.events.push(["enter",J,c]),o.push(J),J}function E(I){let Z=o.pop();return Z.end=k(),c.events.push(["exit",Z,c]),Z}function M(I,Z){S(I,Z.from)}function N(I,Z){Z.restore()}function L(I,Z){return J;function J(dt,xt,It){let le,b,Wt,qt;return Array.isArray(dt)?zt(dt):"tokenize"in dt?zt([dt]):x(dt);function x(_){return W;function W(ft){let ie=ft!==null&&_[ft],Yt=ft!==null&&_.null,hn=[...Array.isArray(ie)?ie:ie?[ie]:[],...Array.isArray(Yt)?Yt:Yt?[Yt]:[]];return zt(hn)(ft)}}function zt(_){return le=_,b=0,_.length===0?It:U(_[b])}function U(_){return W;function W(ft){return qt=et(),Wt=_,_.partial||(c.currentConstruct=_),_.name&&c.parser.constructs.disable.null.includes(_.name)?H(ft):_.tokenize.call(Z?Object.assign(Object.create(c),Z):c,s,Y,H)(ft)}}function Y(_){return u=!0,I(Wt,qt),xt}function H(_){return u=!0,qt.restore(),++b<le.length?U(le[b]):It}}}function S(I,Z){I.resolveAll&&!r.includes(I)&&r.push(I),I.resolve&&Pt(c.events,Z,c.events.length-Z,I.resolve(c.events.slice(Z),c)),I.resolveTo&&(c.events=I.resolveTo(c.events,c))}function et(){let I=k(),Z=c.previous,J=c.currentConstruct,dt=c.events.length,xt=Array.from(o);return{from:dt,restore:It};function It(){l=I,c.previous=Z,c.currentConstruct=J,c.events.length=dt,o=xt,K()}}function K(){l.line in i&&l.column<2&&(l.column=i[l.line],l.offset+=i[l.line]-1)}}function vw(t,e){let n=e.start._index,l=e.start._bufferIndex,i=e.end._index,r=e.end._bufferIndex,a;if(n===i)a=[t[n].slice(l,r)];else{if(a=t.slice(n,i),l>-1){let o=a[0];typeof o=="string"?a[0]=o.slice(l):a.shift()}r>0&&a.push(t[i].slice(0,r))}return a}function bw(t,e){let n=-1,l=[],i;for(;++n<t.length;){let r=t[n],a;if(typeof r=="string")a=r;else switch(r){case-5:{a="\r";break}case-4:{a=`
|
|
8
|
+
`+n.stack}}function fn(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function pg(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function Kx(t){var e=pg(t)?"checked":"value",n=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),i=""+t[e];if(!t.hasOwnProperty(e)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,r=n.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return l.call(this)},set:function(a){i=""+a,r.call(this,a)}}),Object.defineProperty(t,e,{enumerable:n.enumerable}),{getValue:function(){return i},setValue:function(a){i=""+a},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function nu(t){t._valueTracker||(t._valueTracker=Kx(t))}function dg(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),i="";return t&&(i=pg(t)?t.checked?"true":"false":t.value),t=i,t!==n?(e.setValue(t),!0):!1}function iu(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var Px=/[\n"\\]/g;function mn(t){return t.replace(Px,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function Oc(t,e,n,i,l,r,a,o){t.name="",a!=null&&typeof a!="function"&&typeof a!="symbol"&&typeof a!="boolean"?t.type=a:t.removeAttribute("type"),e!=null?a==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+fn(e)):t.value!==""+fn(e)&&(t.value=""+fn(e)):a!=="submit"&&a!=="reset"||t.removeAttribute("value"),e!=null?Lc(t,a,fn(e)):n!=null?Lc(t,a,fn(n)):i!=null&&t.removeAttribute("value"),l==null&&r!=null&&(t.defaultChecked=!!r),l!=null&&(t.checked=l&&typeof l!="function"&&typeof l!="symbol"),o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"?t.name=""+fn(o):t.removeAttribute("name")}function mg(t,e,n,i,l,r,a,o){if(r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"&&(t.type=r),e!=null||n!=null){if(!(r!=="submit"&&r!=="reset"||e!=null))return;n=n!=null?""+fn(n):"",e=e!=null?""+fn(e):n,o||e===t.value||(t.value=e),t.defaultValue=e}i=i??l,i=typeof i!="function"&&typeof i!="symbol"&&!!i,t.checked=o?t.checked:!!i,t.defaultChecked=!!i,a!=null&&typeof a!="function"&&typeof a!="symbol"&&typeof a!="boolean"&&(t.name=a)}function Lc(t,e,n){e==="number"&&iu(t.ownerDocument)===t||t.defaultValue===""+n||(t.defaultValue=""+n)}function rr(t,e,n,i){if(t=t.options,e){e={};for(var l=0;l<n.length;l++)e["$"+n[l]]=!0;for(n=0;n<t.length;n++)l=e.hasOwnProperty("$"+t[n].value),t[n].selected!==l&&(t[n].selected=l),l&&i&&(t[n].defaultSelected=!0)}else{for(n=""+fn(n),e=null,l=0;l<t.length;l++){if(t[l].value===n){t[l].selected=!0,i&&(t[l].defaultSelected=!0);return}e!==null||t[l].disabled||(e=t[l])}e!==null&&(e.selected=!0)}}function hg(t,e,n){if(e!=null&&(e=""+fn(e),e!==t.value&&(t.value=e),n==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=n!=null?""+fn(n):""}function gg(t,e,n,i){if(e==null){if(i!=null){if(n!=null)throw Error(M(92));if(la(i)){if(1<i.length)throw Error(M(93));i=i[0]}n=i}n==null&&(n=""),e=n}n=fn(e),t.defaultValue=n,i=t.textContent,i===n&&i!==""&&i!==null&&(t.value=i)}function mr(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var Jx=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Bm(t,e,n){var i=e.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?i?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":i?t.setProperty(e,n):typeof n!="number"||n===0||Jx.has(e)?e==="float"?t.cssFloat=n:t[e]=(""+n).trim():t[e]=n+"px"}function yg(t,e,n){if(e!=null&&typeof e!="object")throw Error(M(62));if(t=t.style,n!=null){for(var i in n)!n.hasOwnProperty(i)||e!=null&&e.hasOwnProperty(i)||(i.indexOf("--")===0?t.setProperty(i,""):i==="float"?t.cssFloat="":t[i]="");for(var l in e)i=e[l],e.hasOwnProperty(l)&&n[l]!==i&&Bm(t,l,i)}else for(var r in e)e.hasOwnProperty(r)&&Bm(t,r,e[r])}function Cf(t){if(t.indexOf("-")===-1)return!1;switch(t){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 Wx=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),$x=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Io(t){return $x.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}var Bc=null;function Rf(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Kl=null,ar=null;function Um(t){var e=Er(t);if(e&&(t=e.stateNode)){var n=t[Ge]||null;t:switch(t=e.stateNode,e.type){case"input":if(Oc(t,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),e=n.name,n.type==="radio"&&e!=null){for(n=t;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+mn(""+e)+'"][type="radio"]'),e=0;e<n.length;e++){var i=n[e];if(i!==t&&i.form===t.form){var l=i[Ge]||null;if(!l)throw Error(M(90));Oc(i,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name)}}for(e=0;e<n.length;e++)i=n[e],i.form===t.form&&dg(i)}break t;case"textarea":hg(t,n.value,n.defaultValue);break t;case"select":e=n.value,e!=null&&rr(t,!!n.multiple,e,!1)}}}var $s=!1;function bg(t,e,n){if($s)return t(e,n);$s=!0;try{var i=t(e);return i}finally{if($s=!1,(Kl!==null||ar!==null)&&(Hu(),Kl&&(e=Kl,t=ar,ar=Kl=null,Um(e),t)))for(e=0;e<t.length;e++)Um(t[e])}}function ka(t,e){var n=t.stateNode;if(n===null)return null;var i=n[Ge]||null;if(i===null)return null;n=i[e];t:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(i=!i.disabled)||(t=t.type,i=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!i;break t;default:t=!1}if(t)return null;if(n&&typeof n!="function")throw Error(M(231,e,typeof n));return n}var ii=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Uc=!1;if(ii)try{Il={},Object.defineProperty(Il,"passive",{get:function(){Uc=!0}}),window.addEventListener("test",Il,Il),window.removeEventListener("test",Il,Il)}catch{Uc=!1}var Il,Ei=null,Nf=null,jo=null;function vg(){if(jo)return jo;var t,e=Nf,n=e.length,i,l="value"in Ei?Ei.value:Ei.textContent,r=l.length;for(t=0;t<n&&e[t]===l[t];t++);var a=n-t;for(i=1;i<=a&&e[n-i]===l[r-i];i++);return jo=l.slice(t,1<i?1-i:void 0)}function Yo(t){var e=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function Ao(){return!0}function Hm(){return!1}function Ze(t){function e(n,i,l,r,a){this._reactName=n,this._targetInst=l,this.type=i,this.nativeEvent=r,this.target=a,this.currentTarget=null;for(var o in t)t.hasOwnProperty(o)&&(n=t[o],this[o]=n?n(r):r[o]);return this.isDefaultPrevented=(r.defaultPrevented!=null?r.defaultPrevented:r.returnValue===!1)?Ao:Hm,this.isPropagationStopped=Hm,this}return Lt(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Ao)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Ao)},persist:function(){},isPersistent:Ao}),e}var hl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Nu=Ze(hl),Ia=Lt({},hl,{view:0,detail:0}),tS=Ze(Ia),tc,ec,Pr,Mu=Lt({},Ia,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Mf,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==Pr&&(Pr&&t.type==="mousemove"?(tc=t.screenX-Pr.screenX,ec=t.screenY-Pr.screenY):ec=tc=0,Pr=t),tc)},movementY:function(t){return"movementY"in t?t.movementY:ec}}),qm=Ze(Mu),eS=Lt({},Mu,{dataTransfer:0}),nS=Ze(eS),iS=Lt({},Ia,{relatedTarget:0}),nc=Ze(iS),lS=Lt({},hl,{animationName:0,elapsedTime:0,pseudoElement:0}),rS=Ze(lS),aS=Lt({},hl,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),oS=Ze(aS),uS=Lt({},hl,{data:0}),Im=Ze(uS),sS={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},cS={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"},fS={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function pS(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=fS[t])?!!e[t]:!1}function Mf(){return pS}var dS=Lt({},Ia,{key:function(t){if(t.key){var e=sS[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=Yo(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?cS[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Mf,charCode:function(t){return t.type==="keypress"?Yo(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Yo(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),mS=Ze(dS),hS=Lt({},Mu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),jm=Ze(hS),gS=Lt({},Ia,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Mf}),yS=Ze(gS),bS=Lt({},hl,{propertyName:0,elapsedTime:0,pseudoElement:0}),vS=Ze(bS),xS=Lt({},Mu,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),SS=Ze(xS),kS=Lt({},hl,{newState:0,oldState:0}),wS=Ze(kS),ES=[9,13,27,32],Df=ii&&"CompositionEvent"in window,oa=null;ii&&"documentMode"in document&&(oa=document.documentMode);var TS=ii&&"TextEvent"in window&&!oa,xg=ii&&(!Df||oa&&8<oa&&11>=oa),Ym=" ",Vm=!1;function Sg(t,e){switch(t){case"keyup":return ES.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function kg(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Pl=!1;function AS(t,e){switch(t){case"compositionend":return kg(e);case"keypress":return e.which!==32?null:(Vm=!0,Ym);case"textInput":return t=e.data,t===Ym&&Vm?null:t;default:return null}}function CS(t,e){if(Pl)return t==="compositionend"||!Df&&Sg(t,e)?(t=vg(),jo=Nf=Ei=null,Pl=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return xg&&e.locale!=="ko"?null:e.data;default:return null}}var RS={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 Fm(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!RS[t.type]:e==="textarea"}function wg(t,e,n,i){Kl?ar?ar.push(i):ar=[i]:Kl=i,e=Su(e,"onChange"),0<e.length&&(n=new Nu("onChange","change",null,n,i),t.push({event:n,listeners:e}))}var ua=null,wa=null;function NS(t){hb(t,0)}function Du(t){var e=ra(t);if(dg(e))return t}function Qm(t,e){if(t==="change")return e}var Eg=!1;ii&&(ii?(Ro="oninput"in document,Ro||(ic=document.createElement("div"),ic.setAttribute("oninput","return;"),Ro=typeof ic.oninput=="function"),Co=Ro):Co=!1,Eg=Co&&(!document.documentMode||9<document.documentMode));var Co,Ro,ic;function Xm(){ua&&(ua.detachEvent("onpropertychange",Tg),wa=ua=null)}function Tg(t){if(t.propertyName==="value"&&Du(wa)){var e=[];wg(e,wa,t,Rf(t)),bg(NS,e)}}function MS(t,e,n){t==="focusin"?(Xm(),ua=e,wa=n,ua.attachEvent("onpropertychange",Tg)):t==="focusout"&&Xm()}function DS(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Du(wa)}function zS(t,e){if(t==="click")return Du(e)}function _S(t,e){if(t==="input"||t==="change")return Du(e)}function OS(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var rn=typeof Object.is=="function"?Object.is:OS;function Ea(t,e){if(rn(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var n=Object.keys(t),i=Object.keys(e);if(n.length!==i.length)return!1;for(i=0;i<n.length;i++){var l=n[i];if(!zc.call(e,l)||!rn(t[l],e[l]))return!1}return!0}function Gm(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Zm(t,e){var n=Gm(t);t=0;for(var i;n;){if(n.nodeType===3){if(i=t+n.textContent.length,t<=e&&i>=e)return{node:n,offset:e-t};t=i}t:{for(;n;){if(n.nextSibling){n=n.nextSibling;break t}n=n.parentNode}n=void 0}n=Gm(n)}}function Ag(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?Ag(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function Cg(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=iu(t.document);e instanceof t.HTMLIFrameElement;){try{var n=typeof e.contentWindow.location.href=="string"}catch{n=!1}if(n)t=e.contentWindow;else break;e=iu(t.document)}return e}function zf(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}var LS=ii&&"documentMode"in document&&11>=document.documentMode,Jl=null,Hc=null,sa=null,qc=!1;function Km(t,e,n){var i=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;qc||Jl==null||Jl!==iu(i)||(i=Jl,"selectionStart"in i&&zf(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),sa&&Ea(sa,i)||(sa=i,i=Su(Hc,"onSelect"),0<i.length&&(e=new Nu("onSelect","select",null,e,n),t.push({event:e,listeners:i}),e.target=Jl)))}function $i(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var Wl={animationend:$i("Animation","AnimationEnd"),animationiteration:$i("Animation","AnimationIteration"),animationstart:$i("Animation","AnimationStart"),transitionrun:$i("Transition","TransitionRun"),transitionstart:$i("Transition","TransitionStart"),transitioncancel:$i("Transition","TransitionCancel"),transitionend:$i("Transition","TransitionEnd")},lc={},Rg={};ii&&(Rg=document.createElement("div").style,"AnimationEvent"in window||(delete Wl.animationend.animation,delete Wl.animationiteration.animation,delete Wl.animationstart.animation),"TransitionEvent"in window||delete Wl.transitionend.transition);function gl(t){if(lc[t])return lc[t];if(!Wl[t])return t;var e=Wl[t],n;for(n in e)if(e.hasOwnProperty(n)&&n in Rg)return lc[t]=e[n];return t}var Ng=gl("animationend"),Mg=gl("animationiteration"),Dg=gl("animationstart"),BS=gl("transitionrun"),US=gl("transitionstart"),HS=gl("transitioncancel"),zg=gl("transitionend"),_g=new Map,Ic="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Ic.push("scrollEnd");function En(t,e){_g.set(t,e),ml(e,[t])}var Pm=new WeakMap;function hn(t,e){if(typeof t=="object"&&t!==null){var n=Pm.get(t);return n!==void 0?n:(e={value:t,source:e,stack:Lm(e)},Pm.set(t,e),e)}return{value:t,source:e,stack:Lm(e)}}var cn=[],$l=0,_f=0;function zu(){for(var t=$l,e=_f=$l=0;e<t;){var n=cn[e];cn[e++]=null;var i=cn[e];cn[e++]=null;var l=cn[e];cn[e++]=null;var r=cn[e];if(cn[e++]=null,i!==null&&l!==null){var a=i.pending;a===null?l.next=l:(l.next=a.next,a.next=l),i.pending=l}r!==0&&Og(n,l,r)}}function _u(t,e,n,i){cn[$l++]=t,cn[$l++]=e,cn[$l++]=n,cn[$l++]=i,_f|=i,t.lanes|=i,t=t.alternate,t!==null&&(t.lanes|=i)}function Of(t,e,n,i){return _u(t,e,n,i),lu(t)}function Tr(t,e){return _u(t,null,null,e),lu(t)}function Og(t,e,n){t.lanes|=n;var i=t.alternate;i!==null&&(i.lanes|=n);for(var l=!1,r=t.return;r!==null;)r.childLanes|=n,i=r.alternate,i!==null&&(i.childLanes|=n),r.tag===22&&(t=r.stateNode,t===null||t._visibility&1||(l=!0)),t=r,r=r.return;return t.tag===3?(r=t.stateNode,l&&e!==null&&(l=31-en(n),t=r.hiddenUpdates,i=t[l],i===null?t[l]=[e]:i.push(e),e.lane=n|536870912),r):null}function lu(t){if(50<va)throw va=0,uf=null,Error(M(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var tr={};function qS(t,e,n,i){this.tag=t,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function $e(t,e,n,i){return new qS(t,e,n,i)}function Lf(t){return t=t.prototype,!(!t||!t.isReactComponent)}function ei(t,e){var n=t.alternate;return n===null?(n=$e(t.tag,e,t.key,t.mode),n.elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.type=t.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=t.flags&65011712,n.childLanes=t.childLanes,n.lanes=t.lanes,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n.refCleanup=t.refCleanup,n}function Lg(t,e){t.flags&=65011714;var n=t.alternate;return n===null?(t.childLanes=0,t.lanes=e,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=n.childLanes,t.lanes=n.lanes,t.child=n.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=n.memoizedProps,t.memoizedState=n.memoizedState,t.updateQueue=n.updateQueue,t.type=n.type,e=n.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),t}function Vo(t,e,n,i,l,r){var a=0;if(i=t,typeof t=="function")Lf(t)&&(a=1);else if(typeof t=="string")a=qk(t,n,_n.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case Rc:return t=$e(31,n,e,l),t.elementType=Rc,t.lanes=r,t;case Xl:return ll(n.children,l,r,e);case tg:a=8,l|=24;break;case Tc:return t=$e(12,n,e,l|2),t.elementType=Tc,t.lanes=r,t;case Ac:return t=$e(13,n,e,l),t.elementType=Ac,t.lanes=r,t;case Cc:return t=$e(19,n,e,l),t.elementType=Cc,t.lanes=r,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case Nx:case Pn:a=10;break t;case eg:a=9;break t;case Sf:a=11;break t;case kf:a=14;break t;case yi:a=16,i=null;break t}a=29,n=Error(M(130,t===null?"null":typeof t,"")),i=null}return e=$e(a,n,e,l),e.elementType=t,e.type=i,e.lanes=r,e}function ll(t,e,n,i){return t=$e(7,t,i,e),t.lanes=n,t}function rc(t,e,n){return t=$e(6,t,null,e),t.lanes=n,t}function ac(t,e,n){return e=$e(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var er=[],nr=0,ru=null,au=0,pn=[],dn=0,rl=null,Jn=1,Wn="";function el(t,e){er[nr++]=au,er[nr++]=ru,ru=t,au=e}function Bg(t,e,n){pn[dn++]=Jn,pn[dn++]=Wn,pn[dn++]=rl,rl=t;var i=Jn;t=Wn;var l=32-en(i)-1;i&=~(1<<l),n+=1;var r=32-en(e)+l;if(30<r){var a=l-l%5;r=(i&(1<<a)-1).toString(32),i>>=a,l-=a,Jn=1<<32-en(e)+l|n<<l|i,Wn=r+t}else Jn=1<<r|n<<l|i,Wn=t}function Bf(t){t.return!==null&&(el(t,1),Bg(t,1,0))}function Uf(t){for(;t===ru;)ru=er[--nr],er[nr]=null,au=er[--nr],er[nr]=null;for(;t===rl;)rl=pn[--dn],pn[dn]=null,Wn=pn[--dn],pn[dn]=null,Jn=pn[--dn],pn[dn]=null}var qe=null,Zt=null,kt=!1,al=null,Dn=!1,jc=Error(M(519));function cl(t){var e=Error(M(418,""));throw Ta(hn(e,t)),jc}function Jm(t){var e=t.stateNode,n=t.type,i=t.memoizedProps;switch(e[Ce]=t,e[Ge]=i,n){case"dialog":st("cancel",e),st("close",e);break;case"iframe":case"object":case"embed":st("load",e);break;case"video":case"audio":for(n=0;n<Ra.length;n++)st(Ra[n],e);break;case"source":st("error",e);break;case"img":case"image":case"link":st("error",e),st("load",e);break;case"details":st("toggle",e);break;case"input":st("invalid",e),mg(e,i.value,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name,!0),nu(e);break;case"select":st("invalid",e);break;case"textarea":st("invalid",e),gg(e,i.value,i.defaultValue,i.children),nu(e)}n=i.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||e.textContent===""+n||i.suppressHydrationWarning===!0||yb(e.textContent,n)?(i.popover!=null&&(st("beforetoggle",e),st("toggle",e)),i.onScroll!=null&&st("scroll",e),i.onScrollEnd!=null&&st("scrollend",e),i.onClick!=null&&(e.onclick=ju),e=!0):e=!1,e||cl(t)}function Wm(t){for(qe=t.return;qe;)switch(qe.tag){case 5:case 13:Dn=!1;return;case 27:case 3:Dn=!0;return;default:qe=qe.return}}function Jr(t){if(t!==qe)return!1;if(!kt)return Wm(t),kt=!0,!1;var e=t.tag,n;if((n=e!==3&&e!==27)&&((n=e===5)&&(n=t.type,n=!(n!=="form"&&n!=="button")||mf(t.type,t.memoizedProps)),n=!n),n&&Zt&&cl(t),Wm(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(M(317));t:{for(t=t.nextSibling,e=0;t;){if(t.nodeType===8)if(n=t.data,n==="/$"){if(e===0){Zt=wn(t.nextSibling);break t}e--}else n!=="$"&&n!=="$!"&&n!=="$?"||e++;t=t.nextSibling}Zt=null}}else e===27?(e=Zt,qi(t.type)?(t=yf,yf=null,Zt=t):Zt=e):Zt=qe?wn(t.stateNode.nextSibling):null;return!0}function ja(){Zt=qe=null,kt=!1}function $m(){var t=al;return t!==null&&(Xe===null?Xe=t:Xe.push.apply(Xe,t),al=null),t}function Ta(t){al===null?al=[t]:al.push(t)}var Yc=Bn(null),yl=null,$n=null;function vi(t,e,n){It(Yc,e._currentValue),e._currentValue=n}function ni(t){t._currentValue=Yc.current,ye(Yc)}function Vc(t,e,n){for(;t!==null;){var i=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,i!==null&&(i.childLanes|=e)):i!==null&&(i.childLanes&e)!==e&&(i.childLanes|=e),t===n)break;t=t.return}}function Fc(t,e,n,i){var l=t.child;for(l!==null&&(l.return=t);l!==null;){var r=l.dependencies;if(r!==null){var a=l.child;r=r.firstContext;t:for(;r!==null;){var o=r;r=l;for(var u=0;u<e.length;u++)if(o.context===e[u]){r.lanes|=n,o=r.alternate,o!==null&&(o.lanes|=n),Vc(r.return,n,t),i||(a=null);break t}r=o.next}}else if(l.tag===18){if(a=l.return,a===null)throw Error(M(341));a.lanes|=n,r=a.alternate,r!==null&&(r.lanes|=n),Vc(a,n,t),a=null}else a=l.child;if(a!==null)a.return=l;else for(a=l;a!==null;){if(a===t){a=null;break}if(l=a.sibling,l!==null){l.return=a.return,a=l;break}a=a.return}l=a}}function Ya(t,e,n,i){t=null;for(var l=e,r=!1;l!==null;){if(!r){if((l.flags&524288)!==0)r=!0;else if((l.flags&262144)!==0)break}if(l.tag===10){var a=l.alternate;if(a===null)throw Error(M(387));if(a=a.memoizedProps,a!==null){var o=l.type;rn(l.pendingProps.value,a.value)||(t!==null?t.push(o):t=[o])}}else if(l===Wo.current){if(a=l.alternate,a===null)throw Error(M(387));a.memoizedState.memoizedState!==l.memoizedState.memoizedState&&(t!==null?t.push(Da):t=[Da])}l=l.return}t!==null&&Fc(e,t,n,i),e.flags|=262144}function ou(t){for(t=t.firstContext;t!==null;){if(!rn(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function fl(t){yl=t,$n=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function Re(t){return Ug(yl,t)}function No(t,e){return yl===null&&fl(t),Ug(t,e)}function Ug(t,e){var n=e._currentValue;if(e={context:e,memoizedValue:n,next:null},$n===null){if(t===null)throw Error(M(308));$n=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else $n=$n.next=e;return n}var IS=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(n,i){t.push(i)}};this.abort=function(){e.aborted=!0,t.forEach(function(n){return n()})}},jS=pe.unstable_scheduleCallback,YS=pe.unstable_NormalPriority,ce={$$typeof:Pn,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Hf(){return{controller:new IS,data:new Map,refCount:0}}function Va(t){t.refCount--,t.refCount===0&&jS(YS,function(){t.controller.abort()})}var ca=null,Qc=0,hr=0,or=null;function VS(t,e){if(ca===null){var n=ca=[];Qc=0,hr=op(),or={status:"pending",value:void 0,then:function(i){n.push(i)}}}return Qc++,e.then(th,th),e}function th(){if(--Qc===0&&ca!==null){or!==null&&(or.status="fulfilled");var t=ca;ca=null,hr=0,or=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function FS(t,e){var n=[],i={status:"pending",value:null,reason:null,then:function(l){n.push(l)}};return t.then(function(){i.status="fulfilled",i.value=e;for(var l=0;l<n.length;l++)(0,n[l])(e)},function(l){for(i.status="rejected",i.reason=l,l=0;l<n.length;l++)(0,n[l])(void 0)}),i}var eh=J.S;J.S=function(t,e){typeof e=="object"&&e!==null&&typeof e.then=="function"&&VS(t,e),eh!==null&&eh(t,e)};var ol=Bn(null);function qf(){var t=ol.current;return t!==null?t:Ot.pooledCache}function Fo(t,e){e===null?It(ol,ol.current):It(ol,e.pool)}function Hg(){var t=qf();return t===null?null:{parent:ce._currentValue,pool:t}}var Fa=Error(M(460)),qg=Error(M(474)),Ou=Error(M(542)),Xc={then:function(){}};function nh(t){return t=t.status,t==="fulfilled"||t==="rejected"}function Mo(){}function Ig(t,e,n){switch(n=t[n],n===void 0?t.push(e):n!==e&&(e.then(Mo,Mo),e=n),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,lh(t),t;default:if(typeof e.status=="string")e.then(Mo,Mo);else{if(t=Ot,t!==null&&100<t.shellSuspendCounter)throw Error(M(482));t=e,t.status="pending",t.then(function(i){if(e.status==="pending"){var l=e;l.status="fulfilled",l.value=i}},function(i){if(e.status==="pending"){var l=e;l.status="rejected",l.reason=i}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,lh(t),t}throw fa=e,Fa}}var fa=null;function ih(){if(fa===null)throw Error(M(459));var t=fa;return fa=null,t}function lh(t){if(t===Fa||t===Ou)throw Error(M(483))}var bi=!1;function If(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Gc(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function Ri(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function Ni(t,e,n){var i=t.updateQueue;if(i===null)return null;if(i=i.shared,(Ct&2)!==0){var l=i.pending;return l===null?e.next=e:(e.next=l.next,l.next=e),i.pending=e,e=lu(t),Og(t,null,n),e}return _u(t,i,e,n),lu(t)}function pa(t,e,n){if(e=e.updateQueue,e!==null&&(e=e.shared,(n&4194048)!==0)){var i=e.lanes;i&=t.pendingLanes,n|=i,e.lanes=n,ug(t,n)}}function oc(t,e){var n=t.updateQueue,i=t.alternate;if(i!==null&&(i=i.updateQueue,n===i)){var l=null,r=null;if(n=n.firstBaseUpdate,n!==null){do{var a={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};r===null?l=r=a:r=r.next=a,n=n.next}while(n!==null);r===null?l=r=e:r=r.next=e}else l=r=e;n={baseState:i.baseState,firstBaseUpdate:l,lastBaseUpdate:r,shared:i.shared,callbacks:i.callbacks},t.updateQueue=n;return}t=n.lastBaseUpdate,t===null?n.firstBaseUpdate=e:t.next=e,n.lastBaseUpdate=e}var Zc=!1;function da(){if(Zc){var t=or;if(t!==null)throw t}}function ma(t,e,n,i){Zc=!1;var l=t.updateQueue;bi=!1;var r=l.firstBaseUpdate,a=l.lastBaseUpdate,o=l.shared.pending;if(o!==null){l.shared.pending=null;var u=o,s=u.next;u.next=null,a===null?r=s:a.next=s,a=u;var c=t.alternate;c!==null&&(c=c.updateQueue,o=c.lastBaseUpdate,o!==a&&(o===null?c.firstBaseUpdate=s:o.next=s,c.lastBaseUpdate=u))}if(r!==null){var f=l.baseState;a=0,c=s=u=null,o=r;do{var d=o.lane&-536870913,p=d!==o.lane;if(p?(mt&d)===d:(i&d)===d){d!==0&&d===hr&&(Zc=!0),c!==null&&(c=c.next={lane:0,tag:o.tag,payload:o.payload,callback:null,next:null});t:{var g=t,b=o;d=e;var T=n;switch(b.tag){case 1:if(g=b.payload,typeof g=="function"){f=g.call(T,f,d);break t}f=g;break t;case 3:g.flags=g.flags&-65537|128;case 0:if(g=b.payload,d=typeof g=="function"?g.call(T,f,d):g,d==null)break t;f=Lt({},f,d);break t;case 2:bi=!0}}d=o.callback,d!==null&&(t.flags|=64,p&&(t.flags|=8192),p=l.callbacks,p===null?l.callbacks=[d]:p.push(d))}else p={lane:d,tag:o.tag,payload:o.payload,callback:o.callback,next:null},c===null?(s=c=p,u=f):c=c.next=p,a|=d;if(o=o.next,o===null){if(o=l.shared.pending,o===null)break;p=o,o=p.next,p.next=null,l.lastBaseUpdate=p,l.shared.pending=null}}while(!0);c===null&&(u=f),l.baseState=u,l.firstBaseUpdate=s,l.lastBaseUpdate=c,r===null&&(l.shared.lanes=0),Ui|=a,t.lanes=a,t.memoizedState=f}}function jg(t,e){if(typeof t!="function")throw Error(M(191,t));t.call(e)}function Yg(t,e){var n=t.callbacks;if(n!==null)for(t.callbacks=null,t=0;t<n.length;t++)jg(n[t],e)}var gr=Bn(null),uu=Bn(0);function rh(t,e){t=ai,It(uu,t),It(gr,e),ai=t|e.baseLanes}function Kc(){It(uu,ai),It(gr,gr.current)}function jf(){ai=uu.current,ye(gr),ye(uu)}var Li=0,ot=null,Dt=null,re=null,su=!1,ur=!1,pl=!1,cu=0,Aa=0,sr=null,QS=0;function te(){throw Error(M(321))}function Yf(t,e){if(e===null)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!rn(t[n],e[n]))return!1;return!0}function Vf(t,e,n,i,l,r){return Li=r,ot=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,J.H=t===null||t.memoizedState===null?vy:xy,pl=!1,r=n(i,l),pl=!1,ur&&(r=Fg(e,n,i,l)),Vg(t),r}function Vg(t){J.H=fu;var e=Dt!==null&&Dt.next!==null;if(Li=0,re=Dt=ot=null,su=!1,Aa=0,sr=null,e)throw Error(M(300));t===null||ge||(t=t.dependencies,t!==null&&ou(t)&&(ge=!0))}function Fg(t,e,n,i){ot=t;var l=0;do{if(ur&&(sr=null),Aa=0,ur=!1,25<=l)throw Error(M(301));if(l+=1,re=Dt=null,t.updateQueue!=null){var r=t.updateQueue;r.lastEffect=null,r.events=null,r.stores=null,r.memoCache!=null&&(r.memoCache.index=0)}J.H=WS,r=e(n,i)}while(ur);return r}function XS(){var t=J.H,e=t.useState()[0];return e=typeof e.then=="function"?Qa(e):e,t=t.useState()[0],(Dt!==null?Dt.memoizedState:null)!==t&&(ot.flags|=1024),e}function Ff(){var t=cu!==0;return cu=0,t}function Qf(t,e,n){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~n}function Xf(t){if(su){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}su=!1}Li=0,re=Dt=ot=null,ur=!1,Aa=cu=0,sr=null}function Fe(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return re===null?ot.memoizedState=re=t:re=re.next=t,re}function ae(){if(Dt===null){var t=ot.alternate;t=t!==null?t.memoizedState:null}else t=Dt.next;var e=re===null?ot.memoizedState:re.next;if(e!==null)re=e,Dt=t;else{if(t===null)throw ot.alternate===null?Error(M(467)):Error(M(310));Dt=t,t={memoizedState:Dt.memoizedState,baseState:Dt.baseState,baseQueue:Dt.baseQueue,queue:Dt.queue,next:null},re===null?ot.memoizedState=re=t:re=re.next=t}return re}function Gf(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Qa(t){var e=Aa;return Aa+=1,sr===null&&(sr=[]),t=Ig(sr,t,e),e=ot,(re===null?e.memoizedState:re.next)===null&&(e=e.alternate,J.H=e===null||e.memoizedState===null?vy:xy),t}function Lu(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return Qa(t);if(t.$$typeof===Pn)return Re(t)}throw Error(M(438,String(t)))}function Zf(t){var e=null,n=ot.updateQueue;if(n!==null&&(e=n.memoCache),e==null){var i=ot.alternate;i!==null&&(i=i.updateQueue,i!==null&&(i=i.memoCache,i!=null&&(e={data:i.data.map(function(l){return l.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),n===null&&(n=Gf(),ot.updateQueue=n),n.memoCache=e,n=e.data[e.index],n===void 0)for(n=e.data[e.index]=Array(t),i=0;i<t;i++)n[i]=Mx;return e.index++,n}function li(t,e){return typeof e=="function"?e(t):e}function Qo(t){var e=ae();return Kf(e,Dt,t)}function Kf(t,e,n){var i=t.queue;if(i===null)throw Error(M(311));i.lastRenderedReducer=n;var l=t.baseQueue,r=i.pending;if(r!==null){if(l!==null){var a=l.next;l.next=r.next,r.next=a}e.baseQueue=l=r,i.pending=null}if(r=t.baseState,l===null)t.memoizedState=r;else{e=l.next;var o=a=null,u=null,s=e,c=!1;do{var f=s.lane&-536870913;if(f!==s.lane?(mt&f)===f:(Li&f)===f){var d=s.revertLane;if(d===0)u!==null&&(u=u.next={lane:0,revertLane:0,action:s.action,hasEagerState:s.hasEagerState,eagerState:s.eagerState,next:null}),f===hr&&(c=!0);else if((Li&d)===d){s=s.next,d===hr&&(c=!0);continue}else f={lane:0,revertLane:s.revertLane,action:s.action,hasEagerState:s.hasEagerState,eagerState:s.eagerState,next:null},u===null?(o=u=f,a=r):u=u.next=f,ot.lanes|=d,Ui|=d;f=s.action,pl&&n(r,f),r=s.hasEagerState?s.eagerState:n(r,f)}else d={lane:f,revertLane:s.revertLane,action:s.action,hasEagerState:s.hasEagerState,eagerState:s.eagerState,next:null},u===null?(o=u=d,a=r):u=u.next=d,ot.lanes|=f,Ui|=f;s=s.next}while(s!==null&&s!==e);if(u===null?a=r:u.next=o,!rn(r,t.memoizedState)&&(ge=!0,c&&(n=or,n!==null)))throw n;t.memoizedState=r,t.baseState=a,t.baseQueue=u,i.lastRenderedState=r}return l===null&&(i.lanes=0),[t.memoizedState,i.dispatch]}function uc(t){var e=ae(),n=e.queue;if(n===null)throw Error(M(311));n.lastRenderedReducer=t;var i=n.dispatch,l=n.pending,r=e.memoizedState;if(l!==null){n.pending=null;var a=l=l.next;do r=t(r,a.action),a=a.next;while(a!==l);rn(r,e.memoizedState)||(ge=!0),e.memoizedState=r,e.baseQueue===null&&(e.baseState=r),n.lastRenderedState=r}return[r,i]}function Qg(t,e,n){var i=ot,l=ae(),r=kt;if(r){if(n===void 0)throw Error(M(407));n=n()}else n=e();var a=!rn((Dt||l).memoizedState,n);a&&(l.memoizedState=n,ge=!0),l=l.queue;var o=Zg.bind(null,i,l,t);if(Xa(2048,8,o,[t]),l.getSnapshot!==e||a||re!==null&&re.memoizedState.tag&1){if(i.flags|=2048,yr(9,Bu(),Gg.bind(null,i,l,n,e),null),Ot===null)throw Error(M(349));r||(Li&124)!==0||Xg(i,e,n)}return n}function Xg(t,e,n){t.flags|=16384,t={getSnapshot:e,value:n},e=ot.updateQueue,e===null?(e=Gf(),ot.updateQueue=e,e.stores=[t]):(n=e.stores,n===null?e.stores=[t]:n.push(t))}function Gg(t,e,n,i){e.value=n,e.getSnapshot=i,Kg(e)&&Pg(t)}function Zg(t,e,n){return n(function(){Kg(e)&&Pg(t)})}function Kg(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!rn(t,n)}catch{return!0}}function Pg(t){var e=Tr(t,2);e!==null&&ln(e,t,2)}function Pc(t){var e=Fe();if(typeof t=="function"){var n=t;if(t=n(),pl){wi(!0);try{n()}finally{wi(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:li,lastRenderedState:t},e}function Jg(t,e,n,i){return t.baseState=n,Kf(t,Dt,typeof i=="function"?i:li)}function GS(t,e,n,i,l){if(Uu(t))throw Error(M(485));if(t=e.action,t!==null){var r={payload:l,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(a){r.listeners.push(a)}};J.T!==null?n(!0):r.isTransition=!1,i(r),n=e.pending,n===null?(r.next=e.pending=r,Wg(e,r)):(r.next=n.next,e.pending=n.next=r)}}function Wg(t,e){var n=e.action,i=e.payload,l=t.state;if(e.isTransition){var r=J.T,a={};J.T=a;try{var o=n(l,i),u=J.S;u!==null&&u(a,o),ah(t,e,o)}catch(s){Jc(t,e,s)}finally{J.T=r}}else try{r=n(l,i),ah(t,e,r)}catch(s){Jc(t,e,s)}}function ah(t,e,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(i){oh(t,e,i)},function(i){return Jc(t,e,i)}):oh(t,e,n)}function oh(t,e,n){e.status="fulfilled",e.value=n,$g(e),t.state=n,e=t.pending,e!==null&&(n=e.next,n===e?t.pending=null:(n=n.next,e.next=n,Wg(t,n)))}function Jc(t,e,n){var i=t.pending;if(t.pending=null,i!==null){i=i.next;do e.status="rejected",e.reason=n,$g(e),e=e.next;while(e!==i)}t.action=null}function $g(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function ty(t,e){return e}function uh(t,e){if(kt){var n=Ot.formState;if(n!==null){t:{var i=ot;if(kt){if(Zt){e:{for(var l=Zt,r=Dn;l.nodeType!==8;){if(!r){l=null;break e}if(l=wn(l.nextSibling),l===null){l=null;break e}}r=l.data,l=r==="F!"||r==="F"?l:null}if(l){Zt=wn(l.nextSibling),i=l.data==="F!";break t}}cl(i)}i=!1}i&&(e=n[0])}}return n=Fe(),n.memoizedState=n.baseState=e,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ty,lastRenderedState:e},n.queue=i,n=gy.bind(null,ot,i),i.dispatch=n,i=Pc(!1),r=$f.bind(null,ot,!1,i.queue),i=Fe(),l={state:e,dispatch:null,action:t,pending:null},i.queue=l,n=GS.bind(null,ot,l,r,n),l.dispatch=n,i.memoizedState=t,[e,n,!1]}function sh(t){var e=ae();return ey(e,Dt,t)}function ey(t,e,n){if(e=Kf(t,e,ty)[0],t=Qo(li)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var i=Qa(e)}catch(a){throw a===Fa?Ou:a}else i=e;e=ae();var l=e.queue,r=l.dispatch;return n!==e.memoizedState&&(ot.flags|=2048,yr(9,Bu(),ZS.bind(null,l,n),null)),[i,r,t]}function ZS(t,e){t.action=e}function ch(t){var e=ae(),n=Dt;if(n!==null)return ey(e,n,t);ae(),e=e.memoizedState,n=ae();var i=n.queue.dispatch;return n.memoizedState=t,[e,i,!1]}function yr(t,e,n,i){return t={tag:t,create:n,deps:i,inst:e,next:null},e=ot.updateQueue,e===null&&(e=Gf(),ot.updateQueue=e),n=e.lastEffect,n===null?e.lastEffect=t.next=t:(i=n.next,n.next=t,t.next=i,e.lastEffect=t),t}function Bu(){return{destroy:void 0,resource:void 0}}function ny(){return ae().memoizedState}function Xo(t,e,n,i){var l=Fe();i=i===void 0?null:i,ot.flags|=t,l.memoizedState=yr(1|e,Bu(),n,i)}function Xa(t,e,n,i){var l=ae();i=i===void 0?null:i;var r=l.memoizedState.inst;Dt!==null&&i!==null&&Yf(i,Dt.memoizedState.deps)?l.memoizedState=yr(e,r,n,i):(ot.flags|=t,l.memoizedState=yr(1|e,r,n,i))}function fh(t,e){Xo(8390656,8,t,e)}function iy(t,e){Xa(2048,8,t,e)}function ly(t,e){return Xa(4,2,t,e)}function ry(t,e){return Xa(4,4,t,e)}function ay(t,e){if(typeof e=="function"){t=t();var n=e(t);return function(){typeof n=="function"?n():e(null)}}if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function oy(t,e,n){n=n!=null?n.concat([t]):null,Xa(4,4,ay.bind(null,e,t),n)}function Pf(){}function uy(t,e){var n=ae();e=e===void 0?null:e;var i=n.memoizedState;return e!==null&&Yf(e,i[1])?i[0]:(n.memoizedState=[t,e],t)}function sy(t,e){var n=ae();e=e===void 0?null:e;var i=n.memoizedState;if(e!==null&&Yf(e,i[1]))return i[0];if(i=t(),pl){wi(!0);try{t()}finally{wi(!1)}}return n.memoizedState=[i,e],i}function Jf(t,e,n){return n===void 0||(Li&1073741824)!==0?t.memoizedState=e:(t.memoizedState=n,t=$y(),ot.lanes|=t,Ui|=t,n)}function cy(t,e,n,i){return rn(n,e)?n:gr.current!==null?(t=Jf(t,n,i),rn(t,e)||(ge=!0),t):(Li&42)===0?(ge=!0,t.memoizedState=n):(t=$y(),ot.lanes|=t,Ui|=t,e)}function fy(t,e,n,i,l){var r=wt.p;wt.p=r!==0&&8>r?r:8;var a=J.T,o={};J.T=o,$f(t,!1,e,n);try{var u=l(),s=J.S;if(s!==null&&s(o,u),u!==null&&typeof u=="object"&&typeof u.then=="function"){var c=FS(u,i);ha(t,e,c,nn(t))}else ha(t,e,i,nn(t))}catch(f){ha(t,e,{then:function(){},status:"rejected",reason:f},nn())}finally{wt.p=r,J.T=a}}function KS(){}function Wc(t,e,n,i){if(t.tag!==5)throw Error(M(476));var l=py(t).queue;fy(t,l,e,il,n===null?KS:function(){return dy(t),n(i)})}function py(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:il,baseState:il,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:li,lastRenderedState:il},next:null};var n={};return e.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:li,lastRenderedState:n},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function dy(t){var e=py(t).next.queue;ha(t,e,{},nn())}function Wf(){return Re(Da)}function my(){return ae().memoizedState}function hy(){return ae().memoizedState}function PS(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var n=nn();t=Ri(n);var i=Ni(e,t,n);i!==null&&(ln(i,e,n),pa(i,e,n)),e={cache:Hf()},t.payload=e;return}e=e.return}}function JS(t,e,n){var i=nn();n={lane:i,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null},Uu(t)?yy(e,n):(n=Of(t,e,n,i),n!==null&&(ln(n,t,i),by(n,e,i)))}function gy(t,e,n){var i=nn();ha(t,e,n,i)}function ha(t,e,n,i){var l={lane:i,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null};if(Uu(t))yy(e,l);else{var r=t.alternate;if(t.lanes===0&&(r===null||r.lanes===0)&&(r=e.lastRenderedReducer,r!==null))try{var a=e.lastRenderedState,o=r(a,n);if(l.hasEagerState=!0,l.eagerState=o,rn(o,a))return _u(t,e,l,0),Ot===null&&zu(),!1}catch{}finally{}if(n=Of(t,e,l,i),n!==null)return ln(n,t,i),by(n,e,i),!0}return!1}function $f(t,e,n,i){if(i={lane:2,revertLane:op(),action:i,hasEagerState:!1,eagerState:null,next:null},Uu(t)){if(e)throw Error(M(479))}else e=Of(t,n,i,2),e!==null&&ln(e,t,2)}function Uu(t){var e=t.alternate;return t===ot||e!==null&&e===ot}function yy(t,e){ur=su=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function by(t,e,n){if((n&4194048)!==0){var i=e.lanes;i&=t.pendingLanes,n|=i,e.lanes=n,ug(t,n)}}var fu={readContext:Re,use:Lu,useCallback:te,useContext:te,useEffect:te,useImperativeHandle:te,useLayoutEffect:te,useInsertionEffect:te,useMemo:te,useReducer:te,useRef:te,useState:te,useDebugValue:te,useDeferredValue:te,useTransition:te,useSyncExternalStore:te,useId:te,useHostTransitionStatus:te,useFormState:te,useActionState:te,useOptimistic:te,useMemoCache:te,useCacheRefresh:te},vy={readContext:Re,use:Lu,useCallback:function(t,e){return Fe().memoizedState=[t,e===void 0?null:e],t},useContext:Re,useEffect:fh,useImperativeHandle:function(t,e,n){n=n!=null?n.concat([t]):null,Xo(4194308,4,ay.bind(null,e,t),n)},useLayoutEffect:function(t,e){return Xo(4194308,4,t,e)},useInsertionEffect:function(t,e){Xo(4,2,t,e)},useMemo:function(t,e){var n=Fe();e=e===void 0?null:e;var i=t();if(pl){wi(!0);try{t()}finally{wi(!1)}}return n.memoizedState=[i,e],i},useReducer:function(t,e,n){var i=Fe();if(n!==void 0){var l=n(e);if(pl){wi(!0);try{n(e)}finally{wi(!1)}}}else l=e;return i.memoizedState=i.baseState=l,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:l},i.queue=t,t=t.dispatch=JS.bind(null,ot,t),[i.memoizedState,t]},useRef:function(t){var e=Fe();return t={current:t},e.memoizedState=t},useState:function(t){t=Pc(t);var e=t.queue,n=gy.bind(null,ot,e);return e.dispatch=n,[t.memoizedState,n]},useDebugValue:Pf,useDeferredValue:function(t,e){var n=Fe();return Jf(n,t,e)},useTransition:function(){var t=Pc(!1);return t=fy.bind(null,ot,t.queue,!0,!1),Fe().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,n){var i=ot,l=Fe();if(kt){if(n===void 0)throw Error(M(407));n=n()}else{if(n=e(),Ot===null)throw Error(M(349));(mt&124)!==0||Xg(i,e,n)}l.memoizedState=n;var r={value:n,getSnapshot:e};return l.queue=r,fh(Zg.bind(null,i,r,t),[t]),i.flags|=2048,yr(9,Bu(),Gg.bind(null,i,r,n,e),null),n},useId:function(){var t=Fe(),e=Ot.identifierPrefix;if(kt){var n=Wn,i=Jn;n=(i&~(1<<32-en(i)-1)).toString(32)+n,e="\xAB"+e+"R"+n,n=cu++,0<n&&(e+="H"+n.toString(32)),e+="\xBB"}else n=QS++,e="\xAB"+e+"r"+n.toString(32)+"\xBB";return t.memoizedState=e},useHostTransitionStatus:Wf,useFormState:uh,useActionState:uh,useOptimistic:function(t){var e=Fe();e.memoizedState=e.baseState=t;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=n,e=$f.bind(null,ot,!0,n),n.dispatch=e,[t,e]},useMemoCache:Zf,useCacheRefresh:function(){return Fe().memoizedState=PS.bind(null,ot)}},xy={readContext:Re,use:Lu,useCallback:uy,useContext:Re,useEffect:iy,useImperativeHandle:oy,useInsertionEffect:ly,useLayoutEffect:ry,useMemo:sy,useReducer:Qo,useRef:ny,useState:function(){return Qo(li)},useDebugValue:Pf,useDeferredValue:function(t,e){var n=ae();return cy(n,Dt.memoizedState,t,e)},useTransition:function(){var t=Qo(li)[0],e=ae().memoizedState;return[typeof t=="boolean"?t:Qa(t),e]},useSyncExternalStore:Qg,useId:my,useHostTransitionStatus:Wf,useFormState:sh,useActionState:sh,useOptimistic:function(t,e){var n=ae();return Jg(n,Dt,t,e)},useMemoCache:Zf,useCacheRefresh:hy},WS={readContext:Re,use:Lu,useCallback:uy,useContext:Re,useEffect:iy,useImperativeHandle:oy,useInsertionEffect:ly,useLayoutEffect:ry,useMemo:sy,useReducer:uc,useRef:ny,useState:function(){return uc(li)},useDebugValue:Pf,useDeferredValue:function(t,e){var n=ae();return Dt===null?Jf(n,t,e):cy(n,Dt.memoizedState,t,e)},useTransition:function(){var t=uc(li)[0],e=ae().memoizedState;return[typeof t=="boolean"?t:Qa(t),e]},useSyncExternalStore:Qg,useId:my,useHostTransitionStatus:Wf,useFormState:ch,useActionState:ch,useOptimistic:function(t,e){var n=ae();return Dt!==null?Jg(n,Dt,t,e):(n.baseState=t,[t,n.queue.dispatch])},useMemoCache:Zf,useCacheRefresh:hy},cr=null,Ca=0;function Do(t){var e=Ca;return Ca+=1,cr===null&&(cr=[]),Ig(cr,t,e)}function Wr(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function zo(t,e){throw e.$$typeof===Rx?Error(M(525)):(t=Object.prototype.toString.call(e),Error(M(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function ph(t){var e=t._init;return e(t._payload)}function Sy(t){function e(m,h){if(t){var y=m.deletions;y===null?(m.deletions=[h],m.flags|=16):y.push(h)}}function n(m,h){if(!t)return null;for(;h!==null;)e(m,h),h=h.sibling;return null}function i(m){for(var h=new Map;m!==null;)m.key!==null?h.set(m.key,m):h.set(m.index,m),m=m.sibling;return h}function l(m,h){return m=ei(m,h),m.index=0,m.sibling=null,m}function r(m,h,y){return m.index=y,t?(y=m.alternate,y!==null?(y=y.index,y<h?(m.flags|=67108866,h):y):(m.flags|=67108866,h)):(m.flags|=1048576,h)}function a(m){return t&&m.alternate===null&&(m.flags|=67108866),m}function o(m,h,y,k){return h===null||h.tag!==6?(h=rc(y,m.mode,k),h.return=m,h):(h=l(h,y),h.return=m,h)}function u(m,h,y,k){var A=y.type;return A===Xl?c(m,h,y.props.children,k,y.key):h!==null&&(h.elementType===A||typeof A=="object"&&A!==null&&A.$$typeof===yi&&ph(A)===h.type)?(h=l(h,y.props),Wr(h,y),h.return=m,h):(h=Vo(y.type,y.key,y.props,null,m.mode,k),Wr(h,y),h.return=m,h)}function s(m,h,y,k){return h===null||h.tag!==4||h.stateNode.containerInfo!==y.containerInfo||h.stateNode.implementation!==y.implementation?(h=ac(y,m.mode,k),h.return=m,h):(h=l(h,y.children||[]),h.return=m,h)}function c(m,h,y,k,A){return h===null||h.tag!==7?(h=ll(y,m.mode,k,A),h.return=m,h):(h=l(h,y),h.return=m,h)}function f(m,h,y){if(typeof h=="string"&&h!==""||typeof h=="number"||typeof h=="bigint")return h=rc(""+h,m.mode,y),h.return=m,h;if(typeof h=="object"&&h!==null){switch(h.$$typeof){case ko:return y=Vo(h.type,h.key,h.props,null,m.mode,y),Wr(y,h),y.return=m,y;case ia:return h=ac(h,m.mode,y),h.return=m,h;case yi:var k=h._init;return h=k(h._payload),f(m,h,y)}if(la(h)||Kr(h))return h=ll(h,m.mode,y,null),h.return=m,h;if(typeof h.then=="function")return f(m,Do(h),y);if(h.$$typeof===Pn)return f(m,No(m,h),y);zo(m,h)}return null}function d(m,h,y,k){var A=h!==null?h.key:null;if(typeof y=="string"&&y!==""||typeof y=="number"||typeof y=="bigint")return A!==null?null:o(m,h,""+y,k);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case ko:return y.key===A?u(m,h,y,k):null;case ia:return y.key===A?s(m,h,y,k):null;case yi:return A=y._init,y=A(y._payload),d(m,h,y,k)}if(la(y)||Kr(y))return A!==null?null:c(m,h,y,k,null);if(typeof y.then=="function")return d(m,h,Do(y),k);if(y.$$typeof===Pn)return d(m,h,No(m,y),k);zo(m,y)}return null}function p(m,h,y,k,A){if(typeof k=="string"&&k!==""||typeof k=="number"||typeof k=="bigint")return m=m.get(y)||null,o(h,m,""+k,A);if(typeof k=="object"&&k!==null){switch(k.$$typeof){case ko:return m=m.get(k.key===null?y:k.key)||null,u(h,m,k,A);case ia:return m=m.get(k.key===null?y:k.key)||null,s(h,m,k,A);case yi:var w=k._init;return k=w(k._payload),p(m,h,y,k,A)}if(la(k)||Kr(k))return m=m.get(y)||null,c(h,m,k,A,null);if(typeof k.then=="function")return p(m,h,y,Do(k),A);if(k.$$typeof===Pn)return p(m,h,y,No(h,k),A);zo(h,k)}return null}function g(m,h,y,k){for(var A=null,w=null,D=h,_=h=0,U=null;D!==null&&_<y.length;_++){D.index>_?(U=D,D=null):U=D.sibling;var S=d(m,D,y[_],k);if(S===null){D===null&&(D=U);break}t&&D&&S.alternate===null&&e(m,D),h=r(S,h,_),w===null?A=S:w.sibling=S,w=S,D=U}if(_===y.length)return n(m,D),kt&&el(m,_),A;if(D===null){for(;_<y.length;_++)D=f(m,y[_],k),D!==null&&(h=r(D,h,_),w===null?A=D:w.sibling=D,w=D);return kt&&el(m,_),A}for(D=i(D);_<y.length;_++)U=p(D,m,_,y[_],k),U!==null&&(t&&U.alternate!==null&&D.delete(U.key===null?_:U.key),h=r(U,h,_),w===null?A=U:w.sibling=U,w=U);return t&&D.forEach(function(nt){return e(m,nt)}),kt&&el(m,_),A}function b(m,h,y,k){if(y==null)throw Error(M(151));for(var A=null,w=null,D=h,_=h=0,U=null,S=y.next();D!==null&&!S.done;_++,S=y.next()){D.index>_?(U=D,D=null):U=D.sibling;var nt=d(m,D,S.value,k);if(nt===null){D===null&&(D=U);break}t&&D&&nt.alternate===null&&e(m,D),h=r(nt,h,_),w===null?A=nt:w.sibling=nt,w=nt,D=U}if(S.done)return n(m,D),kt&&el(m,_),A;if(D===null){for(;!S.done;_++,S=y.next())S=f(m,S.value,k),S!==null&&(h=r(S,h,_),w===null?A=S:w.sibling=S,w=S);return kt&&el(m,_),A}for(D=i(D);!S.done;_++,S=y.next())S=p(D,m,_,S.value,k),S!==null&&(t&&S.alternate!==null&&D.delete(S.key===null?_:S.key),h=r(S,h,_),w===null?A=S:w.sibling=S,w=S);return t&&D.forEach(function(K){return e(m,K)}),kt&&el(m,_),A}function T(m,h,y,k){if(typeof y=="object"&&y!==null&&y.type===Xl&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case ko:t:{for(var A=y.key;h!==null;){if(h.key===A){if(A=y.type,A===Xl){if(h.tag===7){n(m,h.sibling),k=l(h,y.props.children),k.return=m,m=k;break t}}else if(h.elementType===A||typeof A=="object"&&A!==null&&A.$$typeof===yi&&ph(A)===h.type){n(m,h.sibling),k=l(h,y.props),Wr(k,y),k.return=m,m=k;break t}n(m,h);break}else e(m,h);h=h.sibling}y.type===Xl?(k=ll(y.props.children,m.mode,k,y.key),k.return=m,m=k):(k=Vo(y.type,y.key,y.props,null,m.mode,k),Wr(k,y),k.return=m,m=k)}return a(m);case ia:t:{for(A=y.key;h!==null;){if(h.key===A)if(h.tag===4&&h.stateNode.containerInfo===y.containerInfo&&h.stateNode.implementation===y.implementation){n(m,h.sibling),k=l(h,y.children||[]),k.return=m,m=k;break t}else{n(m,h);break}else e(m,h);h=h.sibling}k=ac(y,m.mode,k),k.return=m,m=k}return a(m);case yi:return A=y._init,y=A(y._payload),T(m,h,y,k)}if(la(y))return g(m,h,y,k);if(Kr(y)){if(A=Kr(y),typeof A!="function")throw Error(M(150));return y=A.call(y),b(m,h,y,k)}if(typeof y.then=="function")return T(m,h,Do(y),k);if(y.$$typeof===Pn)return T(m,h,No(m,y),k);zo(m,y)}return typeof y=="string"&&y!==""||typeof y=="number"||typeof y=="bigint"?(y=""+y,h!==null&&h.tag===6?(n(m,h.sibling),k=l(h,y),k.return=m,m=k):(n(m,h),k=rc(y,m.mode,k),k.return=m,m=k),a(m)):n(m,h)}return function(m,h,y,k){try{Ca=0;var A=T(m,h,y,k);return cr=null,A}catch(D){if(D===Fa||D===Ou)throw D;var w=$e(29,D,null,m.mode);return w.lanes=k,w.return=m,w}finally{}}}var br=Sy(!0),ky=Sy(!1),yn=Bn(null),Ln=null;function xi(t){var e=t.alternate;It(fe,fe.current&1),It(yn,t),Ln===null&&(e===null||gr.current!==null||e.memoizedState!==null)&&(Ln=t)}function wy(t){if(t.tag===22){if(It(fe,fe.current),It(yn,t),Ln===null){var e=t.alternate;e!==null&&e.memoizedState!==null&&(Ln=t)}}else Si(t)}function Si(){It(fe,fe.current),It(yn,yn.current)}function ti(t){ye(yn),Ln===t&&(Ln=null),ye(fe)}var fe=Bn(0);function pu(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||gf(n)))return e}else if(e.tag===19&&e.memoizedProps.revealOrder!==void 0){if((e.flags&128)!==0)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}function sc(t,e,n,i){e=t.memoizedState,n=n(i,e),n=n==null?e:Lt({},e,n),t.memoizedState=n,t.lanes===0&&(t.updateQueue.baseState=n)}var $c={enqueueSetState:function(t,e,n){t=t._reactInternals;var i=nn(),l=Ri(i);l.payload=e,n!=null&&(l.callback=n),e=Ni(t,l,i),e!==null&&(ln(e,t,i),pa(e,t,i))},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var i=nn(),l=Ri(i);l.tag=1,l.payload=e,n!=null&&(l.callback=n),e=Ni(t,l,i),e!==null&&(ln(e,t,i),pa(e,t,i))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=nn(),i=Ri(n);i.tag=2,e!=null&&(i.callback=e),e=Ni(t,i,n),e!==null&&(ln(e,t,n),pa(e,t,n))}};function dh(t,e,n,i,l,r,a){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(i,r,a):e.prototype&&e.prototype.isPureReactComponent?!Ea(n,i)||!Ea(l,r):!0}function mh(t,e,n,i){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(n,i),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(n,i),e.state!==t&&$c.enqueueReplaceState(e,e.state,null)}function dl(t,e){var n=e;if("ref"in e){n={};for(var i in e)i!=="ref"&&(n[i]=e[i])}if(t=t.defaultProps){n===e&&(n=Lt({},n));for(var l in t)n[l]===void 0&&(n[l]=t[l])}return n}var du=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)};function Ey(t){du(t)}function Ty(t){console.error(t)}function Ay(t){du(t)}function mu(t,e){try{var n=t.onUncaughtError;n(e.value,{componentStack:e.stack})}catch(i){setTimeout(function(){throw i})}}function hh(t,e,n){try{var i=t.onCaughtError;i(n.value,{componentStack:n.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(l){setTimeout(function(){throw l})}}function tf(t,e,n){return n=Ri(n),n.tag=3,n.payload={element:null},n.callback=function(){mu(t,e)},n}function Cy(t){return t=Ri(t),t.tag=3,t}function Ry(t,e,n,i){var l=n.type.getDerivedStateFromError;if(typeof l=="function"){var r=i.value;t.payload=function(){return l(r)},t.callback=function(){hh(e,n,i)}}var a=n.stateNode;a!==null&&typeof a.componentDidCatch=="function"&&(t.callback=function(){hh(e,n,i),typeof l!="function"&&(Mi===null?Mi=new Set([this]):Mi.add(this));var o=i.stack;this.componentDidCatch(i.value,{componentStack:o!==null?o:""})})}function $S(t,e,n,i,l){if(n.flags|=32768,i!==null&&typeof i=="object"&&typeof i.then=="function"){if(e=n.alternate,e!==null&&Ya(e,n,l,!0),n=yn.current,n!==null){switch(n.tag){case 13:return Ln===null?sf():n.alternate===null&&Kt===0&&(Kt=3),n.flags&=-257,n.flags|=65536,n.lanes=l,i===Xc?n.flags|=16384:(e=n.updateQueue,e===null?n.updateQueue=new Set([i]):e.add(i),xc(t,i,l)),!1;case 22:return n.flags|=65536,i===Xc?n.flags|=16384:(e=n.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([i])},n.updateQueue=e):(n=e.retryQueue,n===null?e.retryQueue=new Set([i]):n.add(i)),xc(t,i,l)),!1}throw Error(M(435,n.tag))}return xc(t,i,l),sf(),!1}if(kt)return e=yn.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=l,i!==jc&&(t=Error(M(422),{cause:i}),Ta(hn(t,n)))):(i!==jc&&(e=Error(M(423),{cause:i}),Ta(hn(e,n))),t=t.current.alternate,t.flags|=65536,l&=-l,t.lanes|=l,i=hn(i,n),l=tf(t.stateNode,i,l),oc(t,l),Kt!==4&&(Kt=2)),!1;var r=Error(M(520),{cause:i});if(r=hn(r,n),ba===null?ba=[r]:ba.push(r),Kt!==4&&(Kt=2),e===null)return!0;i=hn(i,n),n=e;do{switch(n.tag){case 3:return n.flags|=65536,t=l&-l,n.lanes|=t,t=tf(n.stateNode,i,t),oc(n,t),!1;case 1:if(e=n.type,r=n.stateNode,(n.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||r!==null&&typeof r.componentDidCatch=="function"&&(Mi===null||!Mi.has(r))))return n.flags|=65536,l&=-l,n.lanes|=l,l=Cy(l),Ry(l,t,n,i),oc(n,l),!1}n=n.return}while(n!==null);return!1}var Ny=Error(M(461)),ge=!1;function Se(t,e,n,i){e.child=t===null?ky(e,null,n,i):br(e,t.child,n,i)}function gh(t,e,n,i,l){n=n.render;var r=e.ref;if("ref"in i){var a={};for(var o in i)o!=="ref"&&(a[o]=i[o])}else a=i;return fl(e),i=Vf(t,e,n,a,r,l),o=Ff(),t!==null&&!ge?(Qf(t,e,l),ri(t,e,l)):(kt&&o&&Bf(e),e.flags|=1,Se(t,e,i,l),e.child)}function yh(t,e,n,i,l){if(t===null){var r=n.type;return typeof r=="function"&&!Lf(r)&&r.defaultProps===void 0&&n.compare===null?(e.tag=15,e.type=r,My(t,e,r,i,l)):(t=Vo(n.type,null,i,e,e.mode,l),t.ref=e.ref,t.return=e,e.child=t)}if(r=t.child,!tp(t,l)){var a=r.memoizedProps;if(n=n.compare,n=n!==null?n:Ea,n(a,i)&&t.ref===e.ref)return ri(t,e,l)}return e.flags|=1,t=ei(r,i),t.ref=e.ref,t.return=e,e.child=t}function My(t,e,n,i,l){if(t!==null){var r=t.memoizedProps;if(Ea(r,i)&&t.ref===e.ref)if(ge=!1,e.pendingProps=i=r,tp(t,l))(t.flags&131072)!==0&&(ge=!0);else return e.lanes=t.lanes,ri(t,e,l)}return ef(t,e,n,i,l)}function Dy(t,e,n){var i=e.pendingProps,l=i.children,r=t!==null?t.memoizedState:null;if(i.mode==="hidden"){if((e.flags&128)!==0){if(i=r!==null?r.baseLanes|n:n,t!==null){for(l=e.child=t.child,r=0;l!==null;)r=r|l.lanes|l.childLanes,l=l.sibling;e.childLanes=r&~i}else e.childLanes=0,e.child=null;return bh(t,e,i,n)}if((n&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&Fo(e,r!==null?r.cachePool:null),r!==null?rh(e,r):Kc(),wy(e);else return e.lanes=e.childLanes=536870912,bh(t,e,r!==null?r.baseLanes|n:n,n)}else r!==null?(Fo(e,r.cachePool),rh(e,r),Si(e),e.memoizedState=null):(t!==null&&Fo(e,null),Kc(),Si(e));return Se(t,e,l,n),e.child}function bh(t,e,n,i){var l=qf();return l=l===null?null:{parent:ce._currentValue,pool:l},e.memoizedState={baseLanes:n,cachePool:l},t!==null&&Fo(e,null),Kc(),wy(e),t!==null&&Ya(t,e,i,!0),null}function Go(t,e){var n=e.ref;if(n===null)t!==null&&t.ref!==null&&(e.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(M(284));(t===null||t.ref!==n)&&(e.flags|=4194816)}}function ef(t,e,n,i,l){return fl(e),n=Vf(t,e,n,i,void 0,l),i=Ff(),t!==null&&!ge?(Qf(t,e,l),ri(t,e,l)):(kt&&i&&Bf(e),e.flags|=1,Se(t,e,n,l),e.child)}function vh(t,e,n,i,l,r){return fl(e),e.updateQueue=null,n=Fg(e,i,n,l),Vg(t),i=Ff(),t!==null&&!ge?(Qf(t,e,r),ri(t,e,r)):(kt&&i&&Bf(e),e.flags|=1,Se(t,e,n,r),e.child)}function xh(t,e,n,i,l){if(fl(e),e.stateNode===null){var r=tr,a=n.contextType;typeof a=="object"&&a!==null&&(r=Re(a)),r=new n(i,r),e.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,r.updater=$c,e.stateNode=r,r._reactInternals=e,r=e.stateNode,r.props=i,r.state=e.memoizedState,r.refs={},If(e),a=n.contextType,r.context=typeof a=="object"&&a!==null?Re(a):tr,r.state=e.memoizedState,a=n.getDerivedStateFromProps,typeof a=="function"&&(sc(e,n,a,i),r.state=e.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof r.getSnapshotBeforeUpdate=="function"||typeof r.UNSAFE_componentWillMount!="function"&&typeof r.componentWillMount!="function"||(a=r.state,typeof r.componentWillMount=="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount(),a!==r.state&&$c.enqueueReplaceState(r,r.state,null),ma(e,i,r,l),da(),r.state=e.memoizedState),typeof r.componentDidMount=="function"&&(e.flags|=4194308),i=!0}else if(t===null){r=e.stateNode;var o=e.memoizedProps,u=dl(n,o);r.props=u;var s=r.context,c=n.contextType;a=tr,typeof c=="object"&&c!==null&&(a=Re(c));var f=n.getDerivedStateFromProps;c=typeof f=="function"||typeof r.getSnapshotBeforeUpdate=="function",o=e.pendingProps!==o,c||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(o||s!==a)&&mh(e,r,i,a),bi=!1;var d=e.memoizedState;r.state=d,ma(e,i,r,l),da(),s=e.memoizedState,o||d!==s||bi?(typeof f=="function"&&(sc(e,n,f,i),s=e.memoizedState),(u=bi||dh(e,n,u,i,d,s,a))?(c||typeof r.UNSAFE_componentWillMount!="function"&&typeof r.componentWillMount!="function"||(typeof r.componentWillMount=="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount()),typeof r.componentDidMount=="function"&&(e.flags|=4194308)):(typeof r.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=i,e.memoizedState=s),r.props=i,r.state=s,r.context=a,i=u):(typeof r.componentDidMount=="function"&&(e.flags|=4194308),i=!1)}else{r=e.stateNode,Gc(t,e),a=e.memoizedProps,c=dl(n,a),r.props=c,f=e.pendingProps,d=r.context,s=n.contextType,u=tr,typeof s=="object"&&s!==null&&(u=Re(s)),o=n.getDerivedStateFromProps,(s=typeof o=="function"||typeof r.getSnapshotBeforeUpdate=="function")||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(a!==f||d!==u)&&mh(e,r,i,u),bi=!1,d=e.memoizedState,r.state=d,ma(e,i,r,l),da();var p=e.memoizedState;a!==f||d!==p||bi||t!==null&&t.dependencies!==null&&ou(t.dependencies)?(typeof o=="function"&&(sc(e,n,o,i),p=e.memoizedState),(c=bi||dh(e,n,c,i,d,p,u)||t!==null&&t.dependencies!==null&&ou(t.dependencies))?(s||typeof r.UNSAFE_componentWillUpdate!="function"&&typeof r.componentWillUpdate!="function"||(typeof r.componentWillUpdate=="function"&&r.componentWillUpdate(i,p,u),typeof r.UNSAFE_componentWillUpdate=="function"&&r.UNSAFE_componentWillUpdate(i,p,u)),typeof r.componentDidUpdate=="function"&&(e.flags|=4),typeof r.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof r.componentDidUpdate!="function"||a===t.memoizedProps&&d===t.memoizedState||(e.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||a===t.memoizedProps&&d===t.memoizedState||(e.flags|=1024),e.memoizedProps=i,e.memoizedState=p),r.props=i,r.state=p,r.context=u,i=c):(typeof r.componentDidUpdate!="function"||a===t.memoizedProps&&d===t.memoizedState||(e.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||a===t.memoizedProps&&d===t.memoizedState||(e.flags|=1024),i=!1)}return r=i,Go(t,e),i=(e.flags&128)!==0,r||i?(r=e.stateNode,n=i&&typeof n.getDerivedStateFromError!="function"?null:r.render(),e.flags|=1,t!==null&&i?(e.child=br(e,t.child,null,l),e.child=br(e,null,n,l)):Se(t,e,n,l),e.memoizedState=r.state,t=e.child):t=ri(t,e,l),t}function Sh(t,e,n,i){return ja(),e.flags|=256,Se(t,e,n,i),e.child}var cc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function fc(t){return{baseLanes:t,cachePool:Hg()}}function pc(t,e,n){return t=t!==null?t.childLanes&~n:0,e&&(t|=gn),t}function zy(t,e,n){var i=e.pendingProps,l=!1,r=(e.flags&128)!==0,a;if((a=r)||(a=t!==null&&t.memoizedState===null?!1:(fe.current&2)!==0),a&&(l=!0,e.flags&=-129),a=(e.flags&32)!==0,e.flags&=-33,t===null){if(kt){if(l?xi(e):Si(e),kt){var o=Zt,u;if(u=o){t:{for(u=o,o=Dn;u.nodeType!==8;){if(!o){o=null;break t}if(u=wn(u.nextSibling),u===null){o=null;break t}}o=u}o!==null?(e.memoizedState={dehydrated:o,treeContext:rl!==null?{id:Jn,overflow:Wn}:null,retryLane:536870912,hydrationErrors:null},u=$e(18,null,null,0),u.stateNode=o,u.return=e,e.child=u,qe=e,Zt=null,u=!0):u=!1}u||cl(e)}if(o=e.memoizedState,o!==null&&(o=o.dehydrated,o!==null))return gf(o)?e.lanes=32:e.lanes=536870912,null;ti(e)}return o=i.children,i=i.fallback,l?(Si(e),l=e.mode,o=hu({mode:"hidden",children:o},l),i=ll(i,l,n,null),o.return=e,i.return=e,o.sibling=i,e.child=o,l=e.child,l.memoizedState=fc(n),l.childLanes=pc(t,a,n),e.memoizedState=cc,i):(xi(e),nf(e,o))}if(u=t.memoizedState,u!==null&&(o=u.dehydrated,o!==null)){if(r)e.flags&256?(xi(e),e.flags&=-257,e=dc(t,e,n)):e.memoizedState!==null?(Si(e),e.child=t.child,e.flags|=128,e=null):(Si(e),l=i.fallback,o=e.mode,i=hu({mode:"visible",children:i.children},o),l=ll(l,o,n,null),l.flags|=2,i.return=e,l.return=e,i.sibling=l,e.child=i,br(e,t.child,null,n),i=e.child,i.memoizedState=fc(n),i.childLanes=pc(t,a,n),e.memoizedState=cc,e=l);else if(xi(e),gf(o)){if(a=o.nextSibling&&o.nextSibling.dataset,a)var s=a.dgst;a=s,i=Error(M(419)),i.stack="",i.digest=a,Ta({value:i,source:null,stack:null}),e=dc(t,e,n)}else if(ge||Ya(t,e,n,!1),a=(n&t.childLanes)!==0,ge||a){if(a=Ot,a!==null&&(i=n&-n,i=(i&42)!==0?1:Ef(i),i=(i&(a.suspendedLanes|n))!==0?0:i,i!==0&&i!==u.retryLane))throw u.retryLane=i,Tr(t,i),ln(a,t,i),Ny;o.data==="$?"||sf(),e=dc(t,e,n)}else o.data==="$?"?(e.flags|=192,e.child=t.child,e=null):(t=u.treeContext,Zt=wn(o.nextSibling),qe=e,kt=!0,al=null,Dn=!1,t!==null&&(pn[dn++]=Jn,pn[dn++]=Wn,pn[dn++]=rl,Jn=t.id,Wn=t.overflow,rl=e),e=nf(e,i.children),e.flags|=4096);return e}return l?(Si(e),l=i.fallback,o=e.mode,u=t.child,s=u.sibling,i=ei(u,{mode:"hidden",children:i.children}),i.subtreeFlags=u.subtreeFlags&65011712,s!==null?l=ei(s,l):(l=ll(l,o,n,null),l.flags|=2),l.return=e,i.return=e,i.sibling=l,e.child=i,i=l,l=e.child,o=t.child.memoizedState,o===null?o=fc(n):(u=o.cachePool,u!==null?(s=ce._currentValue,u=u.parent!==s?{parent:s,pool:s}:u):u=Hg(),o={baseLanes:o.baseLanes|n,cachePool:u}),l.memoizedState=o,l.childLanes=pc(t,a,n),e.memoizedState=cc,i):(xi(e),n=t.child,t=n.sibling,n=ei(n,{mode:"visible",children:i.children}),n.return=e,n.sibling=null,t!==null&&(a=e.deletions,a===null?(e.deletions=[t],e.flags|=16):a.push(t)),e.child=n,e.memoizedState=null,n)}function nf(t,e){return e=hu({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function hu(t,e){return t=$e(22,t,null,e),t.lanes=0,t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},t}function dc(t,e,n){return br(e,t.child,null,n),t=nf(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function kh(t,e,n){t.lanes|=e;var i=t.alternate;i!==null&&(i.lanes|=e),Vc(t.return,e,n)}function mc(t,e,n,i,l){var r=t.memoizedState;r===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:i,tail:n,tailMode:l}:(r.isBackwards=e,r.rendering=null,r.renderingStartTime=0,r.last=i,r.tail=n,r.tailMode=l)}function _y(t,e,n){var i=e.pendingProps,l=i.revealOrder,r=i.tail;if(Se(t,e,i.children,n),i=fe.current,(i&2)!==0)i=i&1|2,e.flags|=128;else{if(t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&kh(t,n,e);else if(t.tag===19)kh(t,n,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break t;for(;t.sibling===null;){if(t.return===null||t.return===e)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}i&=1}switch(It(fe,i),l){case"forwards":for(n=e.child,l=null;n!==null;)t=n.alternate,t!==null&&pu(t)===null&&(l=n),n=n.sibling;n=l,n===null?(l=e.child,e.child=null):(l=n.sibling,n.sibling=null),mc(e,!1,l,n,r);break;case"backwards":for(n=null,l=e.child,e.child=null;l!==null;){if(t=l.alternate,t!==null&&pu(t)===null){e.child=l;break}t=l.sibling,l.sibling=n,n=l,l=t}mc(e,!0,n,null,r);break;case"together":mc(e,!1,null,null,void 0);break;default:e.memoizedState=null}return e.child}function ri(t,e,n){if(t!==null&&(e.dependencies=t.dependencies),Ui|=e.lanes,(n&e.childLanes)===0)if(t!==null){if(Ya(t,e,n,!1),(n&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(M(153));if(e.child!==null){for(t=e.child,n=ei(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=ei(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}function tp(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&ou(t)))}function tk(t,e,n){switch(e.tag){case 3:$o(e,e.stateNode.containerInfo),vi(e,ce,t.memoizedState.cache),ja();break;case 27:case 5:Dc(e);break;case 4:$o(e,e.stateNode.containerInfo);break;case 10:vi(e,e.type,e.memoizedProps.value);break;case 13:var i=e.memoizedState;if(i!==null)return i.dehydrated!==null?(xi(e),e.flags|=128,null):(n&e.child.childLanes)!==0?zy(t,e,n):(xi(e),t=ri(t,e,n),t!==null?t.sibling:null);xi(e);break;case 19:var l=(t.flags&128)!==0;if(i=(n&e.childLanes)!==0,i||(Ya(t,e,n,!1),i=(n&e.childLanes)!==0),l){if(i)return _y(t,e,n);e.flags|=128}if(l=e.memoizedState,l!==null&&(l.rendering=null,l.tail=null,l.lastEffect=null),It(fe,fe.current),i)break;return null;case 22:case 23:return e.lanes=0,Dy(t,e,n);case 24:vi(e,ce,t.memoizedState.cache)}return ri(t,e,n)}function Oy(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps)ge=!0;else{if(!tp(t,n)&&(e.flags&128)===0)return ge=!1,tk(t,e,n);ge=(t.flags&131072)!==0}else ge=!1,kt&&(e.flags&1048576)!==0&&Bg(e,au,e.index);switch(e.lanes=0,e.tag){case 16:t:{t=e.pendingProps;var i=e.elementType,l=i._init;if(i=l(i._payload),e.type=i,typeof i=="function")Lf(i)?(t=dl(i,t),e.tag=1,e=xh(null,e,i,t,n)):(e.tag=0,e=ef(null,e,i,t,n));else{if(i!=null){if(l=i.$$typeof,l===Sf){e.tag=11,e=gh(null,e,i,t,n);break t}else if(l===kf){e.tag=14,e=yh(null,e,i,t,n);break t}}throw e=Nc(i)||i,Error(M(306,e,""))}}return e;case 0:return ef(t,e,e.type,e.pendingProps,n);case 1:return i=e.type,l=dl(i,e.pendingProps),xh(t,e,i,l,n);case 3:t:{if($o(e,e.stateNode.containerInfo),t===null)throw Error(M(387));i=e.pendingProps;var r=e.memoizedState;l=r.element,Gc(t,e),ma(e,i,null,n);var a=e.memoizedState;if(i=a.cache,vi(e,ce,i),i!==r.cache&&Fc(e,[ce],n,!0),da(),i=a.element,r.isDehydrated)if(r={element:i,isDehydrated:!1,cache:a.cache},e.updateQueue.baseState=r,e.memoizedState=r,e.flags&256){e=Sh(t,e,i,n);break t}else if(i!==l){l=hn(Error(M(424)),e),Ta(l),e=Sh(t,e,i,n);break t}else{switch(t=e.stateNode.containerInfo,t.nodeType){case 9:t=t.body;break;default:t=t.nodeName==="HTML"?t.ownerDocument.body:t}for(Zt=wn(t.firstChild),qe=e,kt=!0,al=null,Dn=!0,n=ky(e,null,i,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(ja(),i===l){e=ri(t,e,n);break t}Se(t,e,i,n)}e=e.child}return e;case 26:return Go(t,e),t===null?(n=jh(e.type,null,e.pendingProps,null))?e.memoizedState=n:kt||(n=e.type,t=e.pendingProps,i=ku(Ci.current).createElement(n),i[Ce]=e,i[Ge]=t,we(i,n,t),he(i),e.stateNode=i):e.memoizedState=jh(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return Dc(e),t===null&&kt&&(i=e.stateNode=xb(e.type,e.pendingProps,Ci.current),qe=e,Dn=!0,l=Zt,qi(e.type)?(yf=l,Zt=wn(i.firstChild)):Zt=l),Se(t,e,e.pendingProps.children,n),Go(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&kt&&((l=i=Zt)&&(i=Ak(i,e.type,e.pendingProps,Dn),i!==null?(e.stateNode=i,qe=e,Zt=wn(i.firstChild),Dn=!1,l=!0):l=!1),l||cl(e)),Dc(e),l=e.type,r=e.pendingProps,a=t!==null?t.memoizedProps:null,i=r.children,mf(l,r)?i=null:a!==null&&mf(l,a)&&(e.flags|=32),e.memoizedState!==null&&(l=Vf(t,e,XS,null,null,n),Da._currentValue=l),Go(t,e),Se(t,e,i,n),e.child;case 6:return t===null&&kt&&((t=n=Zt)&&(n=Ck(n,e.pendingProps,Dn),n!==null?(e.stateNode=n,qe=e,Zt=null,t=!0):t=!1),t||cl(e)),null;case 13:return zy(t,e,n);case 4:return $o(e,e.stateNode.containerInfo),i=e.pendingProps,t===null?e.child=br(e,null,i,n):Se(t,e,i,n),e.child;case 11:return gh(t,e,e.type,e.pendingProps,n);case 7:return Se(t,e,e.pendingProps,n),e.child;case 8:return Se(t,e,e.pendingProps.children,n),e.child;case 12:return Se(t,e,e.pendingProps.children,n),e.child;case 10:return i=e.pendingProps,vi(e,e.type,i.value),Se(t,e,i.children,n),e.child;case 9:return l=e.type._context,i=e.pendingProps.children,fl(e),l=Re(l),i=i(l),e.flags|=1,Se(t,e,i,n),e.child;case 14:return yh(t,e,e.type,e.pendingProps,n);case 15:return My(t,e,e.type,e.pendingProps,n);case 19:return _y(t,e,n);case 31:return i=e.pendingProps,n=e.mode,i={mode:i.mode,children:i.children},t===null?(n=hu(i,n),n.ref=e.ref,e.child=n,n.return=e,e=n):(n=ei(t.child,i),n.ref=e.ref,e.child=n,n.return=e,e=n),e;case 22:return Dy(t,e,n);case 24:return fl(e),i=Re(ce),t===null?(l=qf(),l===null&&(l=Ot,r=Hf(),l.pooledCache=r,r.refCount++,r!==null&&(l.pooledCacheLanes|=n),l=r),e.memoizedState={parent:i,cache:l},If(e),vi(e,ce,l)):((t.lanes&n)!==0&&(Gc(t,e),ma(e,null,null,n),da()),l=t.memoizedState,r=e.memoizedState,l.parent!==i?(l={parent:i,cache:i},e.memoizedState=l,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=l),vi(e,ce,i)):(i=r.cache,vi(e,ce,i),i!==l.cache&&Fc(e,[ce],n,!0))),Se(t,e,e.pendingProps.children,n),e.child;case 29:throw e.pendingProps}throw Error(M(156,e.tag))}function Gn(t){t.flags|=4}function wh(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!wb(e)){if(e=yn.current,e!==null&&((mt&4194048)===mt?Ln!==null:(mt&62914560)!==mt&&(mt&536870912)===0||e!==Ln))throw fa=Xc,qg;t.flags|=8192}}function _o(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?ag():536870912,t.lanes|=e,vr|=e)}function $r(t,e){if(!kt)switch(t.tailMode){case"hidden":e=t.tail;for(var n=null;e!==null;)e.alternate!==null&&(n=e),e=e.sibling;n===null?t.tail=null:n.sibling=null;break;case"collapsed":n=t.tail;for(var i=null;n!==null;)n.alternate!==null&&(i=n),n=n.sibling;i===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:i.sibling=null}}function Xt(t){var e=t.alternate!==null&&t.alternate.child===t.child,n=0,i=0;if(e)for(var l=t.child;l!==null;)n|=l.lanes|l.childLanes,i|=l.subtreeFlags&65011712,i|=l.flags&65011712,l.return=t,l=l.sibling;else for(l=t.child;l!==null;)n|=l.lanes|l.childLanes,i|=l.subtreeFlags,i|=l.flags,l.return=t,l=l.sibling;return t.subtreeFlags|=i,t.childLanes=n,e}function ek(t,e,n){var i=e.pendingProps;switch(Uf(e),e.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Xt(e),null;case 1:return Xt(e),null;case 3:return n=e.stateNode,i=null,t!==null&&(i=t.memoizedState.cache),e.memoizedState.cache!==i&&(e.flags|=2048),ni(ce),pr(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(t===null||t.child===null)&&(Jr(e)?Gn(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,$m())),Xt(e),null;case 26:return n=e.memoizedState,t===null?(Gn(e),n!==null?(Xt(e),wh(e,n)):(Xt(e),e.flags&=-16777217)):n?n!==t.memoizedState?(Gn(e),Xt(e),wh(e,n)):(Xt(e),e.flags&=-16777217):(t.memoizedProps!==i&&Gn(e),Xt(e),e.flags&=-16777217),null;case 27:tu(e),n=Ci.current;var l=e.type;if(t!==null&&e.stateNode!=null)t.memoizedProps!==i&&Gn(e);else{if(!i){if(e.stateNode===null)throw Error(M(166));return Xt(e),null}t=_n.current,Jr(e)?Jm(e,t):(t=xb(l,i,n),e.stateNode=t,Gn(e))}return Xt(e),null;case 5:if(tu(e),n=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==i&&Gn(e);else{if(!i){if(e.stateNode===null)throw Error(M(166));return Xt(e),null}if(t=_n.current,Jr(e))Jm(e,t);else{switch(l=ku(Ci.current),t){case 1:t=l.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:t=l.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":t=l.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":t=l.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":t=l.createElement("div"),t.innerHTML="<script><\/script>",t=t.removeChild(t.firstChild);break;case"select":t=typeof i.is=="string"?l.createElement("select",{is:i.is}):l.createElement("select"),i.multiple?t.multiple=!0:i.size&&(t.size=i.size);break;default:t=typeof i.is=="string"?l.createElement(n,{is:i.is}):l.createElement(n)}}t[Ce]=e,t[Ge]=i;t:for(l=e.child;l!==null;){if(l.tag===5||l.tag===6)t.appendChild(l.stateNode);else if(l.tag!==4&&l.tag!==27&&l.child!==null){l.child.return=l,l=l.child;continue}if(l===e)break t;for(;l.sibling===null;){if(l.return===null||l.return===e)break t;l=l.return}l.sibling.return=l.return,l=l.sibling}e.stateNode=t;t:switch(we(t,n,i),n){case"button":case"input":case"select":case"textarea":t=!!i.autoFocus;break t;case"img":t=!0;break t;default:t=!1}t&&Gn(e)}}return Xt(e),e.flags&=-16777217,null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==i&&Gn(e);else{if(typeof i!="string"&&e.stateNode===null)throw Error(M(166));if(t=Ci.current,Jr(e)){if(t=e.stateNode,n=e.memoizedProps,i=null,l=qe,l!==null)switch(l.tag){case 27:case 5:i=l.memoizedProps}t[Ce]=e,t=!!(t.nodeValue===n||i!==null&&i.suppressHydrationWarning===!0||yb(t.nodeValue,n)),t||cl(e)}else t=ku(t).createTextNode(i),t[Ce]=e,e.stateNode=t}return Xt(e),null;case 13:if(i=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(l=Jr(e),i!==null&&i.dehydrated!==null){if(t===null){if(!l)throw Error(M(318));if(l=e.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(M(317));l[Ce]=e}else ja(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Xt(e),l=!1}else l=$m(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=l),l=!0;if(!l)return e.flags&256?(ti(e),e):(ti(e),null)}if(ti(e),(e.flags&128)!==0)return e.lanes=n,e;if(n=i!==null,t=t!==null&&t.memoizedState!==null,n){i=e.child,l=null,i.alternate!==null&&i.alternate.memoizedState!==null&&i.alternate.memoizedState.cachePool!==null&&(l=i.alternate.memoizedState.cachePool.pool);var r=null;i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(r=i.memoizedState.cachePool.pool),r!==l&&(i.flags|=2048)}return n!==t&&n&&(e.child.flags|=8192),_o(e,e.updateQueue),Xt(e),null;case 4:return pr(),t===null&&up(e.stateNode.containerInfo),Xt(e),null;case 10:return ni(e.type),Xt(e),null;case 19:if(ye(fe),l=e.memoizedState,l===null)return Xt(e),null;if(i=(e.flags&128)!==0,r=l.rendering,r===null)if(i)$r(l,!1);else{if(Kt!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(r=pu(t),r!==null){for(e.flags|=128,$r(l,!1),t=r.updateQueue,e.updateQueue=t,_o(e,t),e.subtreeFlags=0,t=n,n=e.child;n!==null;)Lg(n,t),n=n.sibling;return It(fe,fe.current&1|2),e.child}t=t.sibling}l.tail!==null&&On()>yu&&(e.flags|=128,i=!0,$r(l,!1),e.lanes=4194304)}else{if(!i)if(t=pu(r),t!==null){if(e.flags|=128,i=!0,t=t.updateQueue,e.updateQueue=t,_o(e,t),$r(l,!0),l.tail===null&&l.tailMode==="hidden"&&!r.alternate&&!kt)return Xt(e),null}else 2*On()-l.renderingStartTime>yu&&n!==536870912&&(e.flags|=128,i=!0,$r(l,!1),e.lanes=4194304);l.isBackwards?(r.sibling=e.child,e.child=r):(t=l.last,t!==null?t.sibling=r:e.child=r,l.last=r)}return l.tail!==null?(e=l.tail,l.rendering=e,l.tail=e.sibling,l.renderingStartTime=On(),e.sibling=null,t=fe.current,It(fe,i?t&1|2:t&1),e):(Xt(e),null);case 22:case 23:return ti(e),jf(),i=e.memoizedState!==null,t!==null?t.memoizedState!==null!==i&&(e.flags|=8192):i&&(e.flags|=8192),i?(n&536870912)!==0&&(e.flags&128)===0&&(Xt(e),e.subtreeFlags&6&&(e.flags|=8192)):Xt(e),n=e.updateQueue,n!==null&&_o(e,n.retryQueue),n=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),i=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(i=e.memoizedState.cachePool.pool),i!==n&&(e.flags|=2048),t!==null&&ye(ol),null;case 24:return n=null,t!==null&&(n=t.memoizedState.cache),e.memoizedState.cache!==n&&(e.flags|=2048),ni(ce),Xt(e),null;case 25:return null;case 30:return null}throw Error(M(156,e.tag))}function nk(t,e){switch(Uf(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return ni(ce),pr(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return tu(e),null;case 13:if(ti(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(M(340));ja()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return ye(fe),null;case 4:return pr(),null;case 10:return ni(e.type),null;case 22:case 23:return ti(e),jf(),t!==null&&ye(ol),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return ni(ce),null;case 25:return null;default:return null}}function Ly(t,e){switch(Uf(e),e.tag){case 3:ni(ce),pr();break;case 26:case 27:case 5:tu(e);break;case 4:pr();break;case 13:ti(e);break;case 19:ye(fe);break;case 10:ni(e.type);break;case 22:case 23:ti(e),jf(),t!==null&&ye(ol);break;case 24:ni(ce)}}function Ga(t,e){try{var n=e.updateQueue,i=n!==null?n.lastEffect:null;if(i!==null){var l=i.next;n=l;do{if((n.tag&t)===t){i=void 0;var r=n.create,a=n.inst;i=r(),a.destroy=i}n=n.next}while(n!==l)}}catch(o){_t(e,e.return,o)}}function Bi(t,e,n){try{var i=e.updateQueue,l=i!==null?i.lastEffect:null;if(l!==null){var r=l.next;i=r;do{if((i.tag&t)===t){var a=i.inst,o=a.destroy;if(o!==void 0){a.destroy=void 0,l=e;var u=n,s=o;try{s()}catch(c){_t(l,u,c)}}}i=i.next}while(i!==r)}}catch(c){_t(e,e.return,c)}}function By(t){var e=t.updateQueue;if(e!==null){var n=t.stateNode;try{Yg(e,n)}catch(i){_t(t,t.return,i)}}}function Uy(t,e,n){n.props=dl(t.type,t.memoizedProps),n.state=t.memoizedState;try{n.componentWillUnmount()}catch(i){_t(t,e,i)}}function ga(t,e){try{var n=t.ref;if(n!==null){switch(t.tag){case 26:case 27:case 5:var i=t.stateNode;break;case 30:i=t.stateNode;break;default:i=t.stateNode}typeof n=="function"?t.refCleanup=n(i):n.current=i}}catch(l){_t(t,e,l)}}function zn(t,e){var n=t.ref,i=t.refCleanup;if(n!==null)if(typeof i=="function")try{i()}catch(l){_t(t,e,l)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(l){_t(t,e,l)}else n.current=null}function Hy(t){var e=t.type,n=t.memoizedProps,i=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":n.autoFocus&&i.focus();break t;case"img":n.src?i.src=n.src:n.srcSet&&(i.srcset=n.srcSet)}}catch(l){_t(t,t.return,l)}}function hc(t,e,n){try{var i=t.stateNode;Sk(i,t.type,n,e),i[Ge]=e}catch(l){_t(t,t.return,l)}}function qy(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&qi(t.type)||t.tag===4}function gc(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||qy(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&qi(t.type)||t.flags&2||t.child===null||t.tag===4)continue t;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function lf(t,e,n){var i=t.tag;if(i===5||i===6)t=t.stateNode,e?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(t,e):(e=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,e.appendChild(t),n=n._reactRootContainer,n!=null||e.onclick!==null||(e.onclick=ju));else if(i!==4&&(i===27&&qi(t.type)&&(n=t.stateNode,e=null),t=t.child,t!==null))for(lf(t,e,n),t=t.sibling;t!==null;)lf(t,e,n),t=t.sibling}function gu(t,e,n){var i=t.tag;if(i===5||i===6)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(i!==4&&(i===27&&qi(t.type)&&(n=t.stateNode),t=t.child,t!==null))for(gu(t,e,n),t=t.sibling;t!==null;)gu(t,e,n),t=t.sibling}function Iy(t){var e=t.stateNode,n=t.memoizedProps;try{for(var i=t.type,l=e.attributes;l.length;)e.removeAttributeNode(l[0]);we(e,i,n),e[Ce]=t,e[Ge]=n}catch(r){_t(t,t.return,r)}}var Kn=!1,ee=!1,yc=!1,Eh=typeof WeakSet=="function"?WeakSet:Set,me=null;function ik(t,e){if(t=t.containerInfo,pf=Au,t=Cg(t),zf(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else t:{n=(n=t.ownerDocument)&&n.defaultView||window;var i=n.getSelection&&n.getSelection();if(i&&i.rangeCount!==0){n=i.anchorNode;var l=i.anchorOffset,r=i.focusNode;i=i.focusOffset;try{n.nodeType,r.nodeType}catch{n=null;break t}var a=0,o=-1,u=-1,s=0,c=0,f=t,d=null;e:for(;;){for(var p;f!==n||l!==0&&f.nodeType!==3||(o=a+l),f!==r||i!==0&&f.nodeType!==3||(u=a+i),f.nodeType===3&&(a+=f.nodeValue.length),(p=f.firstChild)!==null;)d=f,f=p;for(;;){if(f===t)break e;if(d===n&&++s===l&&(o=a),d===r&&++c===i&&(u=a),(p=f.nextSibling)!==null)break;f=d,d=f.parentNode}f=p}n=o===-1||u===-1?null:{start:o,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(df={focusedElem:t,selectionRange:n},Au=!1,me=e;me!==null;)if(e=me,t=e.child,(e.subtreeFlags&1024)!==0&&t!==null)t.return=e,me=t;else for(;me!==null;){switch(e=me,r=e.alternate,t=e.flags,e.tag){case 0:break;case 11:case 15:break;case 1:if((t&1024)!==0&&r!==null){t=void 0,n=e,l=r.memoizedProps,r=r.memoizedState,i=n.stateNode;try{var g=dl(n.type,l,n.elementType===n.type);t=i.getSnapshotBeforeUpdate(g,r),i.__reactInternalSnapshotBeforeUpdate=t}catch(b){_t(n,n.return,b)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,n=t.nodeType,n===9)hf(t);else if(n===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":hf(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(M(163))}if(t=e.sibling,t!==null){t.return=e.return,me=t;break}me=e.return}}function jy(t,e,n){var i=n.flags;switch(n.tag){case 0:case 11:case 15:hi(t,n),i&4&&Ga(5,n);break;case 1:if(hi(t,n),i&4)if(t=n.stateNode,e===null)try{t.componentDidMount()}catch(a){_t(n,n.return,a)}else{var l=dl(n.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(l,e,t.__reactInternalSnapshotBeforeUpdate)}catch(a){_t(n,n.return,a)}}i&64&&By(n),i&512&&ga(n,n.return);break;case 3:if(hi(t,n),i&64&&(t=n.updateQueue,t!==null)){if(e=null,n.child!==null)switch(n.child.tag){case 27:case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}try{Yg(t,e)}catch(a){_t(n,n.return,a)}}break;case 27:e===null&&i&4&&Iy(n);case 26:case 5:hi(t,n),e===null&&i&4&&Hy(n),i&512&&ga(n,n.return);break;case 12:hi(t,n);break;case 13:hi(t,n),i&4&&Fy(t,n),i&64&&(t=n.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(n=pk.bind(null,n),Rk(t,n))));break;case 22:if(i=n.memoizedState!==null||Kn,!i){e=e!==null&&e.memoizedState!==null||ee,l=Kn;var r=ee;Kn=i,(ee=e)&&!r?gi(t,n,(n.subtreeFlags&8772)!==0):hi(t,n),Kn=l,ee=r}break;case 30:break;default:hi(t,n)}}function Yy(t){var e=t.alternate;e!==null&&(t.alternate=null,Yy(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&Af(e)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var qt=null,Qe=!1;function Zn(t,e,n){for(n=n.child;n!==null;)Vy(t,e,n),n=n.sibling}function Vy(t,e,n){if(tn&&typeof tn.onCommitFiberUnmount=="function")try{tn.onCommitFiberUnmount(Ba,n)}catch{}switch(n.tag){case 26:ee||zn(n,e),Zn(t,e,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:ee||zn(n,e);var i=qt,l=Qe;qi(n.type)&&(qt=n.stateNode,Qe=!1),Zn(t,e,n),xa(n.stateNode),qt=i,Qe=l;break;case 5:ee||zn(n,e);case 6:if(i=qt,l=Qe,qt=null,Zn(t,e,n),qt=i,Qe=l,qt!==null)if(Qe)try{(qt.nodeType===9?qt.body:qt.nodeName==="HTML"?qt.ownerDocument.body:qt).removeChild(n.stateNode)}catch(r){_t(n,e,r)}else try{qt.removeChild(n.stateNode)}catch(r){_t(n,e,r)}break;case 18:qt!==null&&(Qe?(t=qt,Hh(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,n.stateNode),Oa(t)):Hh(qt,n.stateNode));break;case 4:i=qt,l=Qe,qt=n.stateNode.containerInfo,Qe=!0,Zn(t,e,n),qt=i,Qe=l;break;case 0:case 11:case 14:case 15:ee||Bi(2,n,e),ee||Bi(4,n,e),Zn(t,e,n);break;case 1:ee||(zn(n,e),i=n.stateNode,typeof i.componentWillUnmount=="function"&&Uy(n,e,i)),Zn(t,e,n);break;case 21:Zn(t,e,n);break;case 22:ee=(i=ee)||n.memoizedState!==null,Zn(t,e,n),ee=i;break;default:Zn(t,e,n)}}function Fy(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{Oa(t)}catch(n){_t(e,e.return,n)}}function lk(t){switch(t.tag){case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new Eh),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new Eh),e;default:throw Error(M(435,t.tag))}}function bc(t,e){var n=lk(t);e.forEach(function(i){var l=dk.bind(null,t,i);n.has(i)||(n.add(i),i.then(l,l))})}function Pe(t,e){var n=e.deletions;if(n!==null)for(var i=0;i<n.length;i++){var l=n[i],r=t,a=e,o=a;t:for(;o!==null;){switch(o.tag){case 27:if(qi(o.type)){qt=o.stateNode,Qe=!1;break t}break;case 5:qt=o.stateNode,Qe=!1;break t;case 3:case 4:qt=o.stateNode.containerInfo,Qe=!0;break t}o=o.return}if(qt===null)throw Error(M(160));Vy(r,a,l),qt=null,Qe=!1,r=l.alternate,r!==null&&(r.return=null),l.return=null}if(e.subtreeFlags&13878)for(e=e.child;e!==null;)Qy(e,t),e=e.sibling}var kn=null;function Qy(t,e){var n=t.alternate,i=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:Pe(e,t),Je(t),i&4&&(Bi(3,t,t.return),Ga(3,t),Bi(5,t,t.return));break;case 1:Pe(e,t),Je(t),i&512&&(ee||n===null||zn(n,n.return)),i&64&&Kn&&(t=t.updateQueue,t!==null&&(i=t.callbacks,i!==null&&(n=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=n===null?i:n.concat(i))));break;case 26:var l=kn;if(Pe(e,t),Je(t),i&512&&(ee||n===null||zn(n,n.return)),i&4){var r=n!==null?n.memoizedState:null;if(i=t.memoizedState,n===null)if(i===null)if(t.stateNode===null){t:{i=t.type,n=t.memoizedProps,l=l.ownerDocument||l;e:switch(i){case"title":r=l.getElementsByTagName("title")[0],(!r||r[qa]||r[Ce]||r.namespaceURI==="http://www.w3.org/2000/svg"||r.hasAttribute("itemprop"))&&(r=l.createElement(i),l.head.insertBefore(r,l.querySelector("head > title"))),we(r,i,n),r[Ce]=t,he(r),i=r;break t;case"link":var a=Vh("link","href",l).get(i+(n.href||""));if(a){for(var o=0;o<a.length;o++)if(r=a[o],r.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&r.getAttribute("rel")===(n.rel==null?null:n.rel)&&r.getAttribute("title")===(n.title==null?null:n.title)&&r.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){a.splice(o,1);break e}}r=l.createElement(i),we(r,i,n),l.head.appendChild(r);break;case"meta":if(a=Vh("meta","content",l).get(i+(n.content||""))){for(o=0;o<a.length;o++)if(r=a[o],r.getAttribute("content")===(n.content==null?null:""+n.content)&&r.getAttribute("name")===(n.name==null?null:n.name)&&r.getAttribute("property")===(n.property==null?null:n.property)&&r.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&r.getAttribute("charset")===(n.charSet==null?null:n.charSet)){a.splice(o,1);break e}}r=l.createElement(i),we(r,i,n),l.head.appendChild(r);break;default:throw Error(M(468,i))}r[Ce]=t,he(r),i=r}t.stateNode=i}else Fh(l,t.type,t.stateNode);else t.stateNode=Yh(l,i,t.memoizedProps);else r!==i?(r===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):r.count--,i===null?Fh(l,t.type,t.stateNode):Yh(l,i,t.memoizedProps)):i===null&&t.stateNode!==null&&hc(t,t.memoizedProps,n.memoizedProps)}break;case 27:Pe(e,t),Je(t),i&512&&(ee||n===null||zn(n,n.return)),n!==null&&i&4&&hc(t,t.memoizedProps,n.memoizedProps);break;case 5:if(Pe(e,t),Je(t),i&512&&(ee||n===null||zn(n,n.return)),t.flags&32){l=t.stateNode;try{mr(l,"")}catch(p){_t(t,t.return,p)}}i&4&&t.stateNode!=null&&(l=t.memoizedProps,hc(t,l,n!==null?n.memoizedProps:l)),i&1024&&(yc=!0);break;case 6:if(Pe(e,t),Je(t),i&4){if(t.stateNode===null)throw Error(M(162));i=t.memoizedProps,n=t.stateNode;try{n.nodeValue=i}catch(p){_t(t,t.return,p)}}break;case 3:if(Po=null,l=kn,kn=wu(e.containerInfo),Pe(e,t),kn=l,Je(t),i&4&&n!==null&&n.memoizedState.isDehydrated)try{Oa(e.containerInfo)}catch(p){_t(t,t.return,p)}yc&&(yc=!1,Xy(t));break;case 4:i=kn,kn=wu(t.stateNode.containerInfo),Pe(e,t),Je(t),kn=i;break;case 12:Pe(e,t),Je(t);break;case 13:Pe(e,t),Je(t),t.child.flags&8192&&t.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(rp=On()),i&4&&(i=t.updateQueue,i!==null&&(t.updateQueue=null,bc(t,i)));break;case 22:l=t.memoizedState!==null;var u=n!==null&&n.memoizedState!==null,s=Kn,c=ee;if(Kn=s||l,ee=c||u,Pe(e,t),ee=c,Kn=s,Je(t),i&8192)t:for(e=t.stateNode,e._visibility=l?e._visibility&-2:e._visibility|1,l&&(n===null||u||Kn||ee||nl(t)),n=null,e=t;;){if(e.tag===5||e.tag===26){if(n===null){u=n=e;try{if(r=u.stateNode,l)a=r.style,typeof a.setProperty=="function"?a.setProperty("display","none","important"):a.display="none";else{o=u.stateNode;var f=u.memoizedProps.style,d=f!=null&&f.hasOwnProperty("display")?f.display:null;o.style.display=d==null||typeof d=="boolean"?"":(""+d).trim()}}catch(p){_t(u,u.return,p)}}}else if(e.tag===6){if(n===null){u=e;try{u.stateNode.nodeValue=l?"":u.memoizedProps}catch(p){_t(u,u.return,p)}}}else if((e.tag!==22&&e.tag!==23||e.memoizedState===null||e===t)&&e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break t;for(;e.sibling===null;){if(e.return===null||e.return===t)break t;n===e&&(n=null),e=e.return}n===e&&(n=null),e.sibling.return=e.return,e=e.sibling}i&4&&(i=t.updateQueue,i!==null&&(n=i.retryQueue,n!==null&&(i.retryQueue=null,bc(t,n))));break;case 19:Pe(e,t),Je(t),i&4&&(i=t.updateQueue,i!==null&&(t.updateQueue=null,bc(t,i)));break;case 30:break;case 21:break;default:Pe(e,t),Je(t)}}function Je(t){var e=t.flags;if(e&2){try{for(var n,i=t.return;i!==null;){if(qy(i)){n=i;break}i=i.return}if(n==null)throw Error(M(160));switch(n.tag){case 27:var l=n.stateNode,r=gc(t);gu(t,r,l);break;case 5:var a=n.stateNode;n.flags&32&&(mr(a,""),n.flags&=-33);var o=gc(t);gu(t,o,a);break;case 3:case 4:var u=n.stateNode.containerInfo,s=gc(t);lf(t,s,u);break;default:throw Error(M(161))}}catch(c){_t(t,t.return,c)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function Xy(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;Xy(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function hi(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)jy(t,e.alternate,e),e=e.sibling}function nl(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:Bi(4,e,e.return),nl(e);break;case 1:zn(e,e.return);var n=e.stateNode;typeof n.componentWillUnmount=="function"&&Uy(e,e.return,n),nl(e);break;case 27:xa(e.stateNode);case 26:case 5:zn(e,e.return),nl(e);break;case 22:e.memoizedState===null&&nl(e);break;case 30:nl(e);break;default:nl(e)}t=t.sibling}}function gi(t,e,n){for(n=n&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var i=e.alternate,l=t,r=e,a=r.flags;switch(r.tag){case 0:case 11:case 15:gi(l,r,n),Ga(4,r);break;case 1:if(gi(l,r,n),i=r,l=i.stateNode,typeof l.componentDidMount=="function")try{l.componentDidMount()}catch(s){_t(i,i.return,s)}if(i=r,l=i.updateQueue,l!==null){var o=i.stateNode;try{var u=l.shared.hiddenCallbacks;if(u!==null)for(l.shared.hiddenCallbacks=null,l=0;l<u.length;l++)jg(u[l],o)}catch(s){_t(i,i.return,s)}}n&&a&64&&By(r),ga(r,r.return);break;case 27:Iy(r);case 26:case 5:gi(l,r,n),n&&i===null&&a&4&&Hy(r),ga(r,r.return);break;case 12:gi(l,r,n);break;case 13:gi(l,r,n),n&&a&4&&Fy(l,r);break;case 22:r.memoizedState===null&&gi(l,r,n),ga(r,r.return);break;case 30:break;default:gi(l,r,n)}e=e.sibling}}function ep(t,e){var n=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),t=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(t=e.memoizedState.cachePool.pool),t!==n&&(t!=null&&t.refCount++,n!=null&&Va(n))}function np(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&Va(t))}function Mn(t,e,n,i){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Gy(t,e,n,i),e=e.sibling}function Gy(t,e,n,i){var l=e.flags;switch(e.tag){case 0:case 11:case 15:Mn(t,e,n,i),l&2048&&Ga(9,e);break;case 1:Mn(t,e,n,i);break;case 3:Mn(t,e,n,i),l&2048&&(t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&Va(t)));break;case 12:if(l&2048){Mn(t,e,n,i),t=e.stateNode;try{var r=e.memoizedProps,a=r.id,o=r.onPostCommit;typeof o=="function"&&o(a,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(u){_t(e,e.return,u)}}else Mn(t,e,n,i);break;case 13:Mn(t,e,n,i);break;case 23:break;case 22:r=e.stateNode,a=e.alternate,e.memoizedState!==null?r._visibility&2?Mn(t,e,n,i):ya(t,e):r._visibility&2?Mn(t,e,n,i):(r._visibility|=2,Fl(t,e,n,i,(e.subtreeFlags&10256)!==0)),l&2048&&ep(a,e);break;case 24:Mn(t,e,n,i),l&2048&&np(e.alternate,e);break;default:Mn(t,e,n,i)}}function Fl(t,e,n,i,l){for(l=l&&(e.subtreeFlags&10256)!==0,e=e.child;e!==null;){var r=t,a=e,o=n,u=i,s=a.flags;switch(a.tag){case 0:case 11:case 15:Fl(r,a,o,u,l),Ga(8,a);break;case 23:break;case 22:var c=a.stateNode;a.memoizedState!==null?c._visibility&2?Fl(r,a,o,u,l):ya(r,a):(c._visibility|=2,Fl(r,a,o,u,l)),l&&s&2048&&ep(a.alternate,a);break;case 24:Fl(r,a,o,u,l),l&&s&2048&&np(a.alternate,a);break;default:Fl(r,a,o,u,l)}e=e.sibling}}function ya(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var n=t,i=e,l=i.flags;switch(i.tag){case 22:ya(n,i),l&2048&&ep(i.alternate,i);break;case 24:ya(n,i),l&2048&&np(i.alternate,i);break;default:ya(n,i)}e=e.sibling}}var aa=8192;function jl(t){if(t.subtreeFlags&aa)for(t=t.child;t!==null;)Zy(t),t=t.sibling}function Zy(t){switch(t.tag){case 26:jl(t),t.flags&aa&&t.memoizedState!==null&&jk(kn,t.memoizedState,t.memoizedProps);break;case 5:jl(t);break;case 3:case 4:var e=kn;kn=wu(t.stateNode.containerInfo),jl(t),kn=e;break;case 22:t.memoizedState===null&&(e=t.alternate,e!==null&&e.memoizedState!==null?(e=aa,aa=16777216,jl(t),aa=e):jl(t));break;default:jl(t)}}function Ky(t){var e=t.alternate;if(e!==null&&(t=e.child,t!==null)){e.child=null;do e=t.sibling,t.sibling=null,t=e;while(t!==null)}}function ta(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var n=0;n<e.length;n++){var i=e[n];me=i,Jy(i,t)}Ky(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Py(t),t=t.sibling}function Py(t){switch(t.tag){case 0:case 11:case 15:ta(t),t.flags&2048&&Bi(9,t,t.return);break;case 3:ta(t);break;case 12:ta(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,Zo(t)):ta(t);break;default:ta(t)}}function Zo(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var n=0;n<e.length;n++){var i=e[n];me=i,Jy(i,t)}Ky(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:Bi(8,e,e.return),Zo(e);break;case 22:n=e.stateNode,n._visibility&2&&(n._visibility&=-3,Zo(e));break;default:Zo(e)}t=t.sibling}}function Jy(t,e){for(;me!==null;){var n=me;switch(n.tag){case 0:case 11:case 15:Bi(8,n,e);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var i=n.memoizedState.cachePool.pool;i!=null&&i.refCount++}break;case 24:Va(n.memoizedState.cache)}if(i=n.child,i!==null)i.return=n,me=i;else t:for(n=t;me!==null;){i=me;var l=i.sibling,r=i.return;if(Yy(i),i===n){me=null;break t}if(l!==null){l.return=r,me=l;break t}me=r}}}var rk={getCacheForType:function(t){var e=Re(ce),n=e.data.get(t);return n===void 0&&(n=t(),e.data.set(t,n)),n}},ak=typeof WeakMap=="function"?WeakMap:Map,Ct=0,Ot=null,ct=null,mt=0,At=0,We=null,Ti=!1,Ar=!1,ip=!1,ai=0,Kt=0,Ui=0,ul=0,lp=0,gn=0,vr=0,ba=null,Xe=null,rf=!1,rp=0,yu=1/0,bu=null,Mi=null,ke=0,Di=null,xr=null,fr=0,af=0,of=null,Wy=null,va=0,uf=null;function nn(){if((Ct&2)!==0&&mt!==0)return mt&-mt;if(J.T!==null){var t=hr;return t!==0?t:op()}return sg()}function $y(){gn===0&&(gn=(mt&536870912)===0||kt?rg():536870912);var t=yn.current;return t!==null&&(t.flags|=32),gn}function ln(t,e,n){(t===Ot&&(At===2||At===9)||t.cancelPendingCommit!==null)&&(Sr(t,0),Ai(t,mt,gn,!1)),Ha(t,n),((Ct&2)===0||t!==Ot)&&(t===Ot&&((Ct&2)===0&&(ul|=n),Kt===4&&Ai(t,mt,gn,!1)),Un(t))}function tb(t,e,n){if((Ct&6)!==0)throw Error(M(327));var i=!n&&(e&124)===0&&(e&t.expiredLanes)===0||Ua(t,e),l=i?sk(t,e):vc(t,e,!0),r=i;do{if(l===0){Ar&&!i&&Ai(t,e,0,!1);break}else{if(n=t.current.alternate,r&&!ok(n)){l=vc(t,e,!1),r=!1;continue}if(l===2){if(r=e,t.errorRecoveryDisabledLanes&r)var a=0;else a=t.pendingLanes&-536870913,a=a!==0?a:a&536870912?536870912:0;if(a!==0){e=a;t:{var o=t;l=ba;var u=o.current.memoizedState.isDehydrated;if(u&&(Sr(o,a).flags|=256),a=vc(o,a,!1),a!==2){if(ip&&!u){o.errorRecoveryDisabledLanes|=r,ul|=r,l=4;break t}r=Xe,Xe=l,r!==null&&(Xe===null?Xe=r:Xe.push.apply(Xe,r))}l=a}if(r=!1,l!==2)continue}}if(l===1){Sr(t,0),Ai(t,e,0,!0);break}t:{switch(i=t,r=l,r){case 0:case 1:throw Error(M(345));case 4:if((e&4194048)!==e)break;case 6:Ai(i,e,gn,!Ti);break t;case 2:Xe=null;break;case 3:case 5:break;default:throw Error(M(329))}if((e&62914560)===e&&(l=rp+300-On(),10<l)){if(Ai(i,e,gn,!Ti),Ru(i,0,!0)!==0)break t;i.timeoutHandle=vb(Th.bind(null,i,n,Xe,bu,rf,e,gn,ul,vr,Ti,r,2,-0,0),l);break t}Th(i,n,Xe,bu,rf,e,gn,ul,vr,Ti,r,0,-0,0)}}break}while(!0);Un(t)}function Th(t,e,n,i,l,r,a,o,u,s,c,f,d,p){if(t.timeoutHandle=-1,f=e.subtreeFlags,(f&8192||(f&16785408)===16785408)&&(Ma={stylesheets:null,count:0,unsuspend:Ik},Zy(e),f=Yk(),f!==null)){t.cancelPendingCommit=f(Ch.bind(null,t,e,r,n,i,l,a,o,u,c,1,d,p)),Ai(t,r,a,!s);return}Ch(t,e,r,n,i,l,a,o,u)}function ok(t){for(var e=t;;){var n=e.tag;if((n===0||n===11||n===15)&&e.flags&16384&&(n=e.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var i=0;i<n.length;i++){var l=n[i],r=l.getSnapshot;l=l.value;try{if(!rn(r(),l))return!1}catch{return!1}}if(n=e.child,e.subtreeFlags&16384&&n!==null)n.return=e,e=n;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function Ai(t,e,n,i){e&=~lp,e&=~ul,t.suspendedLanes|=e,t.pingedLanes&=~e,i&&(t.warmLanes|=e),i=t.expirationTimes;for(var l=e;0<l;){var r=31-en(l),a=1<<r;i[r]=-1,l&=~a}n!==0&&og(t,n,e)}function Hu(){return(Ct&6)===0?(Za(0,!1),!1):!0}function ap(){if(ct!==null){if(At===0)var t=ct.return;else t=ct,$n=yl=null,Xf(t),cr=null,Ca=0,t=ct;for(;t!==null;)Ly(t.alternate,t),t=t.return;ct=null}}function Sr(t,e){var n=t.timeoutHandle;n!==-1&&(t.timeoutHandle=-1,wk(n)),n=t.cancelPendingCommit,n!==null&&(t.cancelPendingCommit=null,n()),ap(),Ot=t,ct=n=ei(t.current,null),mt=e,At=0,We=null,Ti=!1,Ar=Ua(t,e),ip=!1,vr=gn=lp=ul=Ui=Kt=0,Xe=ba=null,rf=!1,(e&8)!==0&&(e|=e&32);var i=t.entangledLanes;if(i!==0)for(t=t.entanglements,i&=e;0<i;){var l=31-en(i),r=1<<l;e|=t[l],i&=~r}return ai=e,zu(),n}function eb(t,e){ot=null,J.H=fu,e===Fa||e===Ou?(e=ih(),At=3):e===qg?(e=ih(),At=4):At=e===Ny?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,We=e,ct===null&&(Kt=1,mu(t,hn(e,t.current)))}function nb(){var t=J.H;return J.H=fu,t===null?fu:t}function ib(){var t=J.A;return J.A=rk,t}function sf(){Kt=4,Ti||(mt&4194048)!==mt&&yn.current!==null||(Ar=!0),(Ui&134217727)===0&&(ul&134217727)===0||Ot===null||Ai(Ot,mt,gn,!1)}function vc(t,e,n){var i=Ct;Ct|=2;var l=nb(),r=ib();(Ot!==t||mt!==e)&&(bu=null,Sr(t,e)),e=!1;var a=Kt;t:do try{if(At!==0&&ct!==null){var o=ct,u=We;switch(At){case 8:ap(),a=6;break t;case 3:case 2:case 9:case 6:yn.current===null&&(e=!0);var s=At;if(At=0,We=null,ir(t,o,u,s),n&&Ar){a=0;break t}break;default:s=At,At=0,We=null,ir(t,o,u,s)}}uk(),a=Kt;break}catch(c){eb(t,c)}while(!0);return e&&t.shellSuspendCounter++,$n=yl=null,Ct=i,J.H=l,J.A=r,ct===null&&(Ot=null,mt=0,zu()),a}function uk(){for(;ct!==null;)lb(ct)}function sk(t,e){var n=Ct;Ct|=2;var i=nb(),l=ib();Ot!==t||mt!==e?(bu=null,yu=On()+500,Sr(t,e)):Ar=Ua(t,e);t:do try{if(At!==0&&ct!==null){e=ct;var r=We;e:switch(At){case 1:At=0,We=null,ir(t,e,r,1);break;case 2:case 9:if(nh(r)){At=0,We=null,Ah(e);break}e=function(){At!==2&&At!==9||Ot!==t||(At=7),Un(t)},r.then(e,e);break t;case 3:At=7;break t;case 4:At=5;break t;case 7:nh(r)?(At=0,We=null,Ah(e)):(At=0,We=null,ir(t,e,r,7));break;case 5:var a=null;switch(ct.tag){case 26:a=ct.memoizedState;case 5:case 27:var o=ct;if(!a||wb(a)){At=0,We=null;var u=o.sibling;if(u!==null)ct=u;else{var s=o.return;s!==null?(ct=s,qu(s)):ct=null}break e}}At=0,We=null,ir(t,e,r,5);break;case 6:At=0,We=null,ir(t,e,r,6);break;case 8:ap(),Kt=6;break t;default:throw Error(M(462))}}ck();break}catch(c){eb(t,c)}while(!0);return $n=yl=null,J.H=i,J.A=l,Ct=n,ct!==null?0:(Ot=null,mt=0,zu(),Kt)}function ck(){for(;ct!==null&&!zx();)lb(ct)}function lb(t){var e=Oy(t.alternate,t,ai);t.memoizedProps=t.pendingProps,e===null?qu(t):ct=e}function Ah(t){var e=t,n=e.alternate;switch(e.tag){case 15:case 0:e=vh(n,e,e.pendingProps,e.type,void 0,mt);break;case 11:e=vh(n,e,e.pendingProps,e.type.render,e.ref,mt);break;case 5:Xf(e);default:Ly(n,e),e=ct=Lg(e,ai),e=Oy(n,e,ai)}t.memoizedProps=t.pendingProps,e===null?qu(t):ct=e}function ir(t,e,n,i){$n=yl=null,Xf(e),cr=null,Ca=0;var l=e.return;try{if($S(t,l,e,n,mt)){Kt=1,mu(t,hn(n,t.current)),ct=null;return}}catch(r){if(l!==null)throw ct=l,r;Kt=1,mu(t,hn(n,t.current)),ct=null;return}e.flags&32768?(kt||i===1?t=!0:Ar||(mt&536870912)!==0?t=!1:(Ti=t=!0,(i===2||i===9||i===3||i===6)&&(i=yn.current,i!==null&&i.tag===13&&(i.flags|=16384))),rb(e,t)):qu(e)}function qu(t){var e=t;do{if((e.flags&32768)!==0){rb(e,Ti);return}t=e.return;var n=ek(e.alternate,e,ai);if(n!==null){ct=n;return}if(e=e.sibling,e!==null){ct=e;return}ct=e=t}while(e!==null);Kt===0&&(Kt=5)}function rb(t,e){do{var n=nk(t.alternate,t);if(n!==null){n.flags&=32767,ct=n;return}if(n=t.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!e&&(t=t.sibling,t!==null)){ct=t;return}ct=t=n}while(t!==null);Kt=6,ct=null}function Ch(t,e,n,i,l,r,a,o,u){t.cancelPendingCommit=null;do Iu();while(ke!==0);if((Ct&6)!==0)throw Error(M(327));if(e!==null){if(e===t.current)throw Error(M(177));if(r=e.lanes|e.childLanes,r|=_f,Yx(t,n,r,a,o,u),t===Ot&&(ct=Ot=null,mt=0),xr=e,Di=t,fr=n,af=r,of=l,Wy=i,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,mk(eu,function(){return cb(!0),null})):(t.callbackNode=null,t.callbackPriority=0),i=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||i){i=J.T,J.T=null,l=wt.p,wt.p=2,a=Ct,Ct|=4;try{ik(t,e,n)}finally{Ct=a,wt.p=l,J.T=i}}ke=1,ab(),ob(),ub()}}function ab(){if(ke===1){ke=0;var t=Di,e=xr,n=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||n){n=J.T,J.T=null;var i=wt.p;wt.p=2;var l=Ct;Ct|=4;try{Qy(e,t);var r=df,a=Cg(t.containerInfo),o=r.focusedElem,u=r.selectionRange;if(a!==o&&o&&o.ownerDocument&&Ag(o.ownerDocument.documentElement,o)){if(u!==null&&zf(o)){var s=u.start,c=u.end;if(c===void 0&&(c=s),"selectionStart"in o)o.selectionStart=s,o.selectionEnd=Math.min(c,o.value.length);else{var f=o.ownerDocument||document,d=f&&f.defaultView||window;if(d.getSelection){var p=d.getSelection(),g=o.textContent.length,b=Math.min(u.start,g),T=u.end===void 0?b:Math.min(u.end,g);!p.extend&&b>T&&(a=T,T=b,b=a);var m=Zm(o,b),h=Zm(o,T);if(m&&h&&(p.rangeCount!==1||p.anchorNode!==m.node||p.anchorOffset!==m.offset||p.focusNode!==h.node||p.focusOffset!==h.offset)){var y=f.createRange();y.setStart(m.node,m.offset),p.removeAllRanges(),b>T?(p.addRange(y),p.extend(h.node,h.offset)):(y.setEnd(h.node,h.offset),p.addRange(y))}}}}for(f=[],p=o;p=p.parentNode;)p.nodeType===1&&f.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof o.focus=="function"&&o.focus(),o=0;o<f.length;o++){var k=f[o];k.element.scrollLeft=k.left,k.element.scrollTop=k.top}}Au=!!pf,df=pf=null}finally{Ct=l,wt.p=i,J.T=n}}t.current=e,ke=2}}function ob(){if(ke===2){ke=0;var t=Di,e=xr,n=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||n){n=J.T,J.T=null;var i=wt.p;wt.p=2;var l=Ct;Ct|=4;try{jy(t,e.alternate,e)}finally{Ct=l,wt.p=i,J.T=n}}ke=3}}function ub(){if(ke===4||ke===3){ke=0,_x();var t=Di,e=xr,n=fr,i=Wy;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?ke=5:(ke=0,xr=Di=null,sb(t,t.pendingLanes));var l=t.pendingLanes;if(l===0&&(Mi=null),Tf(n),e=e.stateNode,tn&&typeof tn.onCommitFiberRoot=="function")try{tn.onCommitFiberRoot(Ba,e,void 0,(e.current.flags&128)===128)}catch{}if(i!==null){e=J.T,l=wt.p,wt.p=2,J.T=null;try{for(var r=t.onRecoverableError,a=0;a<i.length;a++){var o=i[a];r(o.value,{componentStack:o.stack})}}finally{J.T=e,wt.p=l}}(fr&3)!==0&&Iu(),Un(t),l=t.pendingLanes,(n&4194090)!==0&&(l&42)!==0?t===uf?va++:(va=0,uf=t):va=0,Za(0,!1)}}function sb(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,Va(e)))}function Iu(t){return ab(),ob(),ub(),cb(t)}function cb(){if(ke!==5)return!1;var t=Di,e=af;af=0;var n=Tf(fr),i=J.T,l=wt.p;try{wt.p=32>n?32:n,J.T=null,n=of,of=null;var r=Di,a=fr;if(ke=0,xr=Di=null,fr=0,(Ct&6)!==0)throw Error(M(331));var o=Ct;if(Ct|=4,Py(r.current),Gy(r,r.current,a,n),Ct=o,Za(0,!1),tn&&typeof tn.onPostCommitFiberRoot=="function")try{tn.onPostCommitFiberRoot(Ba,r)}catch{}return!0}finally{wt.p=l,J.T=i,sb(t,e)}}function Rh(t,e,n){e=hn(n,e),e=tf(t.stateNode,e,2),t=Ni(t,e,2),t!==null&&(Ha(t,2),Un(t))}function _t(t,e,n){if(t.tag===3)Rh(t,t,n);else for(;e!==null;){if(e.tag===3){Rh(e,t,n);break}else if(e.tag===1){var i=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(Mi===null||!Mi.has(i))){t=hn(n,t),n=Cy(2),i=Ni(e,n,2),i!==null&&(Ry(n,i,e,t),Ha(i,2),Un(i));break}}e=e.return}}function xc(t,e,n){var i=t.pingCache;if(i===null){i=t.pingCache=new ak;var l=new Set;i.set(e,l)}else l=i.get(e),l===void 0&&(l=new Set,i.set(e,l));l.has(n)||(ip=!0,l.add(n),t=fk.bind(null,t,e,n),e.then(t,t))}function fk(t,e,n){var i=t.pingCache;i!==null&&i.delete(e),t.pingedLanes|=t.suspendedLanes&n,t.warmLanes&=~n,Ot===t&&(mt&n)===n&&(Kt===4||Kt===3&&(mt&62914560)===mt&&300>On()-rp?(Ct&2)===0&&Sr(t,0):lp|=n,vr===mt&&(vr=0)),Un(t)}function fb(t,e){e===0&&(e=ag()),t=Tr(t,e),t!==null&&(Ha(t,e),Un(t))}function pk(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),fb(t,n)}function dk(t,e){var n=0;switch(t.tag){case 13:var i=t.stateNode,l=t.memoizedState;l!==null&&(n=l.retryLane);break;case 19:i=t.stateNode;break;case 22:i=t.stateNode._retryCache;break;default:throw Error(M(314))}i!==null&&i.delete(e),fb(t,n)}function mk(t,e){return wf(t,e)}var vu=null,Ql=null,cf=!1,xu=!1,Sc=!1,sl=0;function Un(t){t!==Ql&&t.next===null&&(Ql===null?vu=Ql=t:Ql=Ql.next=t),xu=!0,cf||(cf=!0,gk())}function Za(t,e){if(!Sc&&xu){Sc=!0;do for(var n=!1,i=vu;i!==null;){if(!e)if(t!==0){var l=i.pendingLanes;if(l===0)var r=0;else{var a=i.suspendedLanes,o=i.pingedLanes;r=(1<<31-en(42|t)+1)-1,r&=l&~(a&~o),r=r&201326741?r&201326741|1:r?r|2:0}r!==0&&(n=!0,Nh(i,r))}else r=mt,r=Ru(i,i===Ot?r:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),(r&3)===0||Ua(i,r)||(n=!0,Nh(i,r));i=i.next}while(n);Sc=!1}}function hk(){pb()}function pb(){xu=cf=!1;var t=0;sl!==0&&(kk()&&(t=sl),sl=0);for(var e=On(),n=null,i=vu;i!==null;){var l=i.next,r=db(i,e);r===0?(i.next=null,n===null?vu=l:n.next=l,l===null&&(Ql=n)):(n=i,(t!==0||(r&3)!==0)&&(xu=!0)),i=l}Za(t,!1)}function db(t,e){for(var n=t.suspendedLanes,i=t.pingedLanes,l=t.expirationTimes,r=t.pendingLanes&-62914561;0<r;){var a=31-en(r),o=1<<a,u=l[a];u===-1?((o&n)===0||(o&i)!==0)&&(l[a]=jx(o,e)):u<=e&&(t.expiredLanes|=o),r&=~o}if(e=Ot,n=mt,n=Ru(t,t===e?n:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),i=t.callbackNode,n===0||t===e&&(At===2||At===9)||t.cancelPendingCommit!==null)return i!==null&&i!==null&&Zs(i),t.callbackNode=null,t.callbackPriority=0;if((n&3)===0||Ua(t,n)){if(e=n&-n,e===t.callbackPriority)return e;switch(i!==null&&Zs(i),Tf(n)){case 2:case 8:n=ig;break;case 32:n=eu;break;case 268435456:n=lg;break;default:n=eu}return i=mb.bind(null,t),n=wf(n,i),t.callbackPriority=e,t.callbackNode=n,e}return i!==null&&i!==null&&Zs(i),t.callbackPriority=2,t.callbackNode=null,2}function mb(t,e){if(ke!==0&&ke!==5)return t.callbackNode=null,t.callbackPriority=0,null;var n=t.callbackNode;if(Iu(!0)&&t.callbackNode!==n)return null;var i=mt;return i=Ru(t,t===Ot?i:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),i===0?null:(tb(t,i,e),db(t,On()),t.callbackNode!=null&&t.callbackNode===n?mb.bind(null,t):null)}function Nh(t,e){if(Iu())return null;tb(t,e,!0)}function gk(){Ek(function(){(Ct&6)!==0?wf(ng,hk):pb()})}function op(){return sl===0&&(sl=rg()),sl}function Mh(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:Io(""+t)}function Dh(t,e){var n=e.ownerDocument.createElement("input");return n.name=e.name,n.value=e.value,t.id&&n.setAttribute("form",t.id),e.parentNode.insertBefore(n,e),t=new FormData(t),n.parentNode.removeChild(n),t}function yk(t,e,n,i,l){if(e==="submit"&&n&&n.stateNode===l){var r=Mh((l[Ge]||null).action),a=i.submitter;a&&(e=(e=a[Ge]||null)?Mh(e.formAction):a.getAttribute("formAction"),e!==null&&(r=e,a=null));var o=new Nu("action","action",null,i,l);t.push({event:o,listeners:[{instance:null,listener:function(){if(i.defaultPrevented){if(sl!==0){var u=a?Dh(l,a):new FormData(l);Wc(n,{pending:!0,data:u,method:l.method,action:r},null,u)}}else typeof r=="function"&&(o.preventDefault(),u=a?Dh(l,a):new FormData(l),Wc(n,{pending:!0,data:u,method:l.method,action:r},r,u))},currentTarget:l}]})}}for(Oo=0;Oo<Ic.length;Oo++)Lo=Ic[Oo],zh=Lo.toLowerCase(),_h=Lo[0].toUpperCase()+Lo.slice(1),En(zh,"on"+_h);var Lo,zh,_h,Oo;En(Ng,"onAnimationEnd");En(Mg,"onAnimationIteration");En(Dg,"onAnimationStart");En("dblclick","onDoubleClick");En("focusin","onFocus");En("focusout","onBlur");En(BS,"onTransitionRun");En(US,"onTransitionStart");En(HS,"onTransitionCancel");En(zg,"onTransitionEnd");dr("onMouseEnter",["mouseout","mouseover"]);dr("onMouseLeave",["mouseout","mouseover"]);dr("onPointerEnter",["pointerout","pointerover"]);dr("onPointerLeave",["pointerout","pointerover"]);ml("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));ml("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));ml("onBeforeInput",["compositionend","keypress","textInput","paste"]);ml("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));ml("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));ml("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ra="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(" "),bk=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ra));function hb(t,e){e=(e&4)!==0;for(var n=0;n<t.length;n++){var i=t[n],l=i.event;i=i.listeners;t:{var r=void 0;if(e)for(var a=i.length-1;0<=a;a--){var o=i[a],u=o.instance,s=o.currentTarget;if(o=o.listener,u!==r&&l.isPropagationStopped())break t;r=o,l.currentTarget=s;try{r(l)}catch(c){du(c)}l.currentTarget=null,r=u}else for(a=0;a<i.length;a++){if(o=i[a],u=o.instance,s=o.currentTarget,o=o.listener,u!==r&&l.isPropagationStopped())break t;r=o,l.currentTarget=s;try{r(l)}catch(c){du(c)}l.currentTarget=null,r=u}}}}function st(t,e){var n=e[_c];n===void 0&&(n=e[_c]=new Set);var i=t+"__bubble";n.has(i)||(gb(e,t,2,!1),n.add(i))}function kc(t,e,n){var i=0;e&&(i|=4),gb(n,t,i,e)}var Bo="_reactListening"+Math.random().toString(36).slice(2);function up(t){if(!t[Bo]){t[Bo]=!0,cg.forEach(function(n){n!=="selectionchange"&&(bk.has(n)||kc(n,!1,t),kc(n,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[Bo]||(e[Bo]=!0,kc("selectionchange",!1,e))}}function gb(t,e,n,i){switch(Rb(e)){case 2:var l=Qk;break;case 8:l=Xk;break;default:l=pp}n=l.bind(null,e,n,t),l=void 0,!Uc||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(l=!0),i?l!==void 0?t.addEventListener(e,n,{capture:!0,passive:l}):t.addEventListener(e,n,!0):l!==void 0?t.addEventListener(e,n,{passive:l}):t.addEventListener(e,n,!1)}function wc(t,e,n,i,l){var r=i;if((e&1)===0&&(e&2)===0&&i!==null)t:for(;;){if(i===null)return;var a=i.tag;if(a===3||a===4){var o=i.stateNode.containerInfo;if(o===l)break;if(a===4)for(a=i.return;a!==null;){var u=a.tag;if((u===3||u===4)&&a.stateNode.containerInfo===l)return;a=a.return}for(;o!==null;){if(a=Zl(o),a===null)return;if(u=a.tag,u===5||u===6||u===26||u===27){i=r=a;continue t}o=o.parentNode}}i=i.return}bg(function(){var s=r,c=Rf(n),f=[];t:{var d=_g.get(t);if(d!==void 0){var p=Nu,g=t;switch(t){case"keypress":if(Yo(n)===0)break t;case"keydown":case"keyup":p=mS;break;case"focusin":g="focus",p=nc;break;case"focusout":g="blur",p=nc;break;case"beforeblur":case"afterblur":p=nc;break;case"click":if(n.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":p=qm;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":p=nS;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":p=yS;break;case Ng:case Mg:case Dg:p=rS;break;case zg:p=vS;break;case"scroll":case"scrollend":p=tS;break;case"wheel":p=SS;break;case"copy":case"cut":case"paste":p=oS;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":p=jm;break;case"toggle":case"beforetoggle":p=wS}var b=(e&4)!==0,T=!b&&(t==="scroll"||t==="scrollend"),m=b?d!==null?d+"Capture":null:d;b=[];for(var h=s,y;h!==null;){var k=h;if(y=k.stateNode,k=k.tag,k!==5&&k!==26&&k!==27||y===null||m===null||(k=ka(h,m),k!=null&&b.push(Na(h,k,y))),T)break;h=h.return}0<b.length&&(d=new p(d,g,null,n,c),f.push({event:d,listeners:b}))}}if((e&7)===0){t:{if(d=t==="mouseover"||t==="pointerover",p=t==="mouseout"||t==="pointerout",d&&n!==Bc&&(g=n.relatedTarget||n.fromElement)&&(Zl(g)||g[wr]))break t;if((p||d)&&(d=c.window===c?c:(d=c.ownerDocument)?d.defaultView||d.parentWindow:window,p?(g=n.relatedTarget||n.toElement,p=s,g=g?Zl(g):null,g!==null&&(T=La(g),b=g.tag,g!==T||b!==5&&b!==27&&b!==6)&&(g=null)):(p=null,g=s),p!==g)){if(b=qm,k="onMouseLeave",m="onMouseEnter",h="mouse",(t==="pointerout"||t==="pointerover")&&(b=jm,k="onPointerLeave",m="onPointerEnter",h="pointer"),T=p==null?d:ra(p),y=g==null?d:ra(g),d=new b(k,h+"leave",p,n,c),d.target=T,d.relatedTarget=y,k=null,Zl(c)===s&&(b=new b(m,h+"enter",g,n,c),b.target=y,b.relatedTarget=T,k=b),T=k,p&&g)e:{for(b=p,m=g,h=0,y=b;y;y=Yl(y))h++;for(y=0,k=m;k;k=Yl(k))y++;for(;0<h-y;)b=Yl(b),h--;for(;0<y-h;)m=Yl(m),y--;for(;h--;){if(b===m||m!==null&&b===m.alternate)break e;b=Yl(b),m=Yl(m)}b=null}else b=null;p!==null&&Oh(f,d,p,b,!1),g!==null&&T!==null&&Oh(f,T,g,b,!0)}}t:{if(d=s?ra(s):window,p=d.nodeName&&d.nodeName.toLowerCase(),p==="select"||p==="input"&&d.type==="file")var A=Qm;else if(Fm(d))if(Eg)A=_S;else{A=DS;var w=MS}else p=d.nodeName,!p||p.toLowerCase()!=="input"||d.type!=="checkbox"&&d.type!=="radio"?s&&Cf(s.elementType)&&(A=Qm):A=zS;if(A&&(A=A(t,s))){wg(f,A,n,c);break t}w&&w(t,d,s),t==="focusout"&&s&&d.type==="number"&&s.memoizedProps.value!=null&&Lc(d,"number",d.value)}switch(w=s?ra(s):window,t){case"focusin":(Fm(w)||w.contentEditable==="true")&&(Jl=w,Hc=s,sa=null);break;case"focusout":sa=Hc=Jl=null;break;case"mousedown":qc=!0;break;case"contextmenu":case"mouseup":case"dragend":qc=!1,Km(f,n,c);break;case"selectionchange":if(LS)break;case"keydown":case"keyup":Km(f,n,c)}var D;if(Df)t:{switch(t){case"compositionstart":var _="onCompositionStart";break t;case"compositionend":_="onCompositionEnd";break t;case"compositionupdate":_="onCompositionUpdate";break t}_=void 0}else Pl?Sg(t,n)&&(_="onCompositionEnd"):t==="keydown"&&n.keyCode===229&&(_="onCompositionStart");_&&(xg&&n.locale!=="ko"&&(Pl||_!=="onCompositionStart"?_==="onCompositionEnd"&&Pl&&(D=vg()):(Ei=c,Nf="value"in Ei?Ei.value:Ei.textContent,Pl=!0)),w=Su(s,_),0<w.length&&(_=new Im(_,t,null,n,c),f.push({event:_,listeners:w}),D?_.data=D:(D=kg(n),D!==null&&(_.data=D)))),(D=TS?AS(t,n):CS(t,n))&&(_=Su(s,"onBeforeInput"),0<_.length&&(w=new Im("onBeforeInput","beforeinput",null,n,c),f.push({event:w,listeners:_}),w.data=D)),yk(f,t,s,n,c)}hb(f,e)})}function Na(t,e,n){return{instance:t,listener:e,currentTarget:n}}function Su(t,e){for(var n=e+"Capture",i=[];t!==null;){var l=t,r=l.stateNode;if(l=l.tag,l!==5&&l!==26&&l!==27||r===null||(l=ka(t,n),l!=null&&i.unshift(Na(t,l,r)),l=ka(t,e),l!=null&&i.push(Na(t,l,r))),t.tag===3)return i;t=t.return}return[]}function Yl(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function Oh(t,e,n,i,l){for(var r=e._reactName,a=[];n!==null&&n!==i;){var o=n,u=o.alternate,s=o.stateNode;if(o=o.tag,u!==null&&u===i)break;o!==5&&o!==26&&o!==27||s===null||(u=s,l?(s=ka(n,r),s!=null&&a.unshift(Na(n,s,u))):l||(s=ka(n,r),s!=null&&a.push(Na(n,s,u)))),n=n.return}a.length!==0&&t.push({event:e,listeners:a})}var vk=/\r\n?/g,xk=/\u0000|\uFFFD/g;function Lh(t){return(typeof t=="string"?t:""+t).replace(vk,`
|
|
9
|
+
`).replace(xk,"")}function yb(t,e){return e=Lh(e),Lh(t)===e}function ju(){}function Mt(t,e,n,i,l,r){switch(n){case"children":typeof i=="string"?e==="body"||e==="textarea"&&i===""||mr(t,i):(typeof i=="number"||typeof i=="bigint")&&e!=="body"&&mr(t,""+i);break;case"className":To(t,"class",i);break;case"tabIndex":To(t,"tabindex",i);break;case"dir":case"role":case"viewBox":case"width":case"height":To(t,n,i);break;case"style":yg(t,i,r);break;case"data":if(e!=="object"){To(t,"data",i);break}case"src":case"href":if(i===""&&(e!=="a"||n!=="href")){t.removeAttribute(n);break}if(i==null||typeof i=="function"||typeof i=="symbol"||typeof i=="boolean"){t.removeAttribute(n);break}i=Io(""+i),t.setAttribute(n,i);break;case"action":case"formAction":if(typeof i=="function"){t.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof r=="function"&&(n==="formAction"?(e!=="input"&&Mt(t,e,"name",l.name,l,null),Mt(t,e,"formEncType",l.formEncType,l,null),Mt(t,e,"formMethod",l.formMethod,l,null),Mt(t,e,"formTarget",l.formTarget,l,null)):(Mt(t,e,"encType",l.encType,l,null),Mt(t,e,"method",l.method,l,null),Mt(t,e,"target",l.target,l,null)));if(i==null||typeof i=="symbol"||typeof i=="boolean"){t.removeAttribute(n);break}i=Io(""+i),t.setAttribute(n,i);break;case"onClick":i!=null&&(t.onclick=ju);break;case"onScroll":i!=null&&st("scroll",t);break;case"onScrollEnd":i!=null&&st("scrollend",t);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(M(61));if(n=i.__html,n!=null){if(l.children!=null)throw Error(M(60));t.innerHTML=n}}break;case"multiple":t.multiple=i&&typeof i!="function"&&typeof i!="symbol";break;case"muted":t.muted=i&&typeof i!="function"&&typeof i!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(i==null||typeof i=="function"||typeof i=="boolean"||typeof i=="symbol"){t.removeAttribute("xlink:href");break}n=Io(""+i),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":i!=null&&typeof i!="function"&&typeof i!="symbol"?t.setAttribute(n,""+i):t.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":i&&typeof i!="function"&&typeof i!="symbol"?t.setAttribute(n,""):t.removeAttribute(n);break;case"capture":case"download":i===!0?t.setAttribute(n,""):i!==!1&&i!=null&&typeof i!="function"&&typeof i!="symbol"?t.setAttribute(n,i):t.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":i!=null&&typeof i!="function"&&typeof i!="symbol"&&!isNaN(i)&&1<=i?t.setAttribute(n,i):t.removeAttribute(n);break;case"rowSpan":case"start":i==null||typeof i=="function"||typeof i=="symbol"||isNaN(i)?t.removeAttribute(n):t.setAttribute(n,i);break;case"popover":st("beforetoggle",t),st("toggle",t),qo(t,"popover",i);break;case"xlinkActuate":Xn(t,"http://www.w3.org/1999/xlink","xlink:actuate",i);break;case"xlinkArcrole":Xn(t,"http://www.w3.org/1999/xlink","xlink:arcrole",i);break;case"xlinkRole":Xn(t,"http://www.w3.org/1999/xlink","xlink:role",i);break;case"xlinkShow":Xn(t,"http://www.w3.org/1999/xlink","xlink:show",i);break;case"xlinkTitle":Xn(t,"http://www.w3.org/1999/xlink","xlink:title",i);break;case"xlinkType":Xn(t,"http://www.w3.org/1999/xlink","xlink:type",i);break;case"xmlBase":Xn(t,"http://www.w3.org/XML/1998/namespace","xml:base",i);break;case"xmlLang":Xn(t,"http://www.w3.org/XML/1998/namespace","xml:lang",i);break;case"xmlSpace":Xn(t,"http://www.w3.org/XML/1998/namespace","xml:space",i);break;case"is":qo(t,"is",i);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=Wx.get(n)||n,qo(t,n,i))}}function ff(t,e,n,i,l,r){switch(n){case"style":yg(t,i,r);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(M(61));if(n=i.__html,n!=null){if(l.children!=null)throw Error(M(60));t.innerHTML=n}}break;case"children":typeof i=="string"?mr(t,i):(typeof i=="number"||typeof i=="bigint")&&mr(t,""+i);break;case"onScroll":i!=null&&st("scroll",t);break;case"onScrollEnd":i!=null&&st("scrollend",t);break;case"onClick":i!=null&&(t.onclick=ju);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!fg.hasOwnProperty(n))t:{if(n[0]==="o"&&n[1]==="n"&&(l=n.endsWith("Capture"),e=n.slice(2,l?n.length-7:void 0),r=t[Ge]||null,r=r!=null?r[n]:null,typeof r=="function"&&t.removeEventListener(e,r,l),typeof i=="function")){typeof r!="function"&&r!==null&&(n in t?t[n]=null:t.hasAttribute(n)&&t.removeAttribute(n)),t.addEventListener(e,i,l);break t}n in t?t[n]=i:i===!0?t.setAttribute(n,""):qo(t,n,i)}}}function we(t,e,n){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":st("error",t),st("load",t);var i=!1,l=!1,r;for(r in n)if(n.hasOwnProperty(r)){var a=n[r];if(a!=null)switch(r){case"src":i=!0;break;case"srcSet":l=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(M(137,e));default:Mt(t,e,r,a,n,null)}}l&&Mt(t,e,"srcSet",n.srcSet,n,null),i&&Mt(t,e,"src",n.src,n,null);return;case"input":st("invalid",t);var o=r=a=l=null,u=null,s=null;for(i in n)if(n.hasOwnProperty(i)){var c=n[i];if(c!=null)switch(i){case"name":l=c;break;case"type":a=c;break;case"checked":u=c;break;case"defaultChecked":s=c;break;case"value":r=c;break;case"defaultValue":o=c;break;case"children":case"dangerouslySetInnerHTML":if(c!=null)throw Error(M(137,e));break;default:Mt(t,e,i,c,n,null)}}mg(t,r,o,u,s,a,l,!1),nu(t);return;case"select":st("invalid",t),i=a=r=null;for(l in n)if(n.hasOwnProperty(l)&&(o=n[l],o!=null))switch(l){case"value":r=o;break;case"defaultValue":a=o;break;case"multiple":i=o;default:Mt(t,e,l,o,n,null)}e=r,n=a,t.multiple=!!i,e!=null?rr(t,!!i,e,!1):n!=null&&rr(t,!!i,n,!0);return;case"textarea":st("invalid",t),r=l=i=null;for(a in n)if(n.hasOwnProperty(a)&&(o=n[a],o!=null))switch(a){case"value":i=o;break;case"defaultValue":l=o;break;case"children":r=o;break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(M(91));break;default:Mt(t,e,a,o,n,null)}gg(t,i,l,r),nu(t);return;case"option":for(u in n)if(n.hasOwnProperty(u)&&(i=n[u],i!=null))switch(u){case"selected":t.selected=i&&typeof i!="function"&&typeof i!="symbol";break;default:Mt(t,e,u,i,n,null)}return;case"dialog":st("beforetoggle",t),st("toggle",t),st("cancel",t),st("close",t);break;case"iframe":case"object":st("load",t);break;case"video":case"audio":for(i=0;i<Ra.length;i++)st(Ra[i],t);break;case"image":st("error",t),st("load",t);break;case"details":st("toggle",t);break;case"embed":case"source":case"link":st("error",t),st("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(s in n)if(n.hasOwnProperty(s)&&(i=n[s],i!=null))switch(s){case"children":case"dangerouslySetInnerHTML":throw Error(M(137,e));default:Mt(t,e,s,i,n,null)}return;default:if(Cf(e)){for(c in n)n.hasOwnProperty(c)&&(i=n[c],i!==void 0&&ff(t,e,c,i,n,void 0));return}}for(o in n)n.hasOwnProperty(o)&&(i=n[o],i!=null&&Mt(t,e,o,i,n,null))}function Sk(t,e,n,i){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var l=null,r=null,a=null,o=null,u=null,s=null,c=null;for(p in n){var f=n[p];if(n.hasOwnProperty(p)&&f!=null)switch(p){case"checked":break;case"value":break;case"defaultValue":u=f;default:i.hasOwnProperty(p)||Mt(t,e,p,null,i,f)}}for(var d in i){var p=i[d];if(f=n[d],i.hasOwnProperty(d)&&(p!=null||f!=null))switch(d){case"type":r=p;break;case"name":l=p;break;case"checked":s=p;break;case"defaultChecked":c=p;break;case"value":a=p;break;case"defaultValue":o=p;break;case"children":case"dangerouslySetInnerHTML":if(p!=null)throw Error(M(137,e));break;default:p!==f&&Mt(t,e,d,p,i,f)}}Oc(t,a,o,u,s,c,r,l);return;case"select":p=a=o=d=null;for(r in n)if(u=n[r],n.hasOwnProperty(r)&&u!=null)switch(r){case"value":break;case"multiple":p=u;default:i.hasOwnProperty(r)||Mt(t,e,r,null,i,u)}for(l in i)if(r=i[l],u=n[l],i.hasOwnProperty(l)&&(r!=null||u!=null))switch(l){case"value":d=r;break;case"defaultValue":o=r;break;case"multiple":a=r;default:r!==u&&Mt(t,e,l,r,i,u)}e=o,n=a,i=p,d!=null?rr(t,!!n,d,!1):!!i!=!!n&&(e!=null?rr(t,!!n,e,!0):rr(t,!!n,n?[]:"",!1));return;case"textarea":p=d=null;for(o in n)if(l=n[o],n.hasOwnProperty(o)&&l!=null&&!i.hasOwnProperty(o))switch(o){case"value":break;case"children":break;default:Mt(t,e,o,null,i,l)}for(a in i)if(l=i[a],r=n[a],i.hasOwnProperty(a)&&(l!=null||r!=null))switch(a){case"value":d=l;break;case"defaultValue":p=l;break;case"children":break;case"dangerouslySetInnerHTML":if(l!=null)throw Error(M(91));break;default:l!==r&&Mt(t,e,a,l,i,r)}hg(t,d,p);return;case"option":for(var g in n)if(d=n[g],n.hasOwnProperty(g)&&d!=null&&!i.hasOwnProperty(g))switch(g){case"selected":t.selected=!1;break;default:Mt(t,e,g,null,i,d)}for(u in i)if(d=i[u],p=n[u],i.hasOwnProperty(u)&&d!==p&&(d!=null||p!=null))switch(u){case"selected":t.selected=d&&typeof d!="function"&&typeof d!="symbol";break;default:Mt(t,e,u,d,i,p)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var b in n)d=n[b],n.hasOwnProperty(b)&&d!=null&&!i.hasOwnProperty(b)&&Mt(t,e,b,null,i,d);for(s in i)if(d=i[s],p=n[s],i.hasOwnProperty(s)&&d!==p&&(d!=null||p!=null))switch(s){case"children":case"dangerouslySetInnerHTML":if(d!=null)throw Error(M(137,e));break;default:Mt(t,e,s,d,i,p)}return;default:if(Cf(e)){for(var T in n)d=n[T],n.hasOwnProperty(T)&&d!==void 0&&!i.hasOwnProperty(T)&&ff(t,e,T,void 0,i,d);for(c in i)d=i[c],p=n[c],!i.hasOwnProperty(c)||d===p||d===void 0&&p===void 0||ff(t,e,c,d,i,p);return}}for(var m in n)d=n[m],n.hasOwnProperty(m)&&d!=null&&!i.hasOwnProperty(m)&&Mt(t,e,m,null,i,d);for(f in i)d=i[f],p=n[f],!i.hasOwnProperty(f)||d===p||d==null&&p==null||Mt(t,e,f,d,i,p)}var pf=null,df=null;function ku(t){return t.nodeType===9?t:t.ownerDocument}function Bh(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function bb(t,e){if(t===0)switch(e){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&e==="foreignObject"?0:t}function mf(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.children=="bigint"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var Ec=null;function kk(){var t=window.event;return t&&t.type==="popstate"?t===Ec?!1:(Ec=t,!0):(Ec=null,!1)}var vb=typeof setTimeout=="function"?setTimeout:void 0,wk=typeof clearTimeout=="function"?clearTimeout:void 0,Uh=typeof Promise=="function"?Promise:void 0,Ek=typeof queueMicrotask=="function"?queueMicrotask:typeof Uh<"u"?function(t){return Uh.resolve(null).then(t).catch(Tk)}:vb;function Tk(t){setTimeout(function(){throw t})}function qi(t){return t==="head"}function Hh(t,e){var n=e,i=0,l=0;do{var r=n.nextSibling;if(t.removeChild(n),r&&r.nodeType===8)if(n=r.data,n==="/$"){if(0<i&&8>i){n=i;var a=t.ownerDocument;if(n&1&&xa(a.documentElement),n&2&&xa(a.body),n&4)for(n=a.head,xa(n),a=n.firstChild;a;){var o=a.nextSibling,u=a.nodeName;a[qa]||u==="SCRIPT"||u==="STYLE"||u==="LINK"&&a.rel.toLowerCase()==="stylesheet"||n.removeChild(a),a=o}}if(l===0){t.removeChild(r),Oa(e);return}l--}else n==="$"||n==="$?"||n==="$!"?l++:i=n.charCodeAt(0)-48;else i=0;n=r}while(n);Oa(e)}function hf(t){var e=t.firstChild;for(e&&e.nodeType===10&&(e=e.nextSibling);e;){var n=e;switch(e=e.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":hf(n),Af(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}t.removeChild(n)}}function Ak(t,e,n,i){for(;t.nodeType===1;){var l=n;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!i&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(i){if(!t[qa])switch(e){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(r=t.getAttribute("rel"),r==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(r!==l.rel||t.getAttribute("href")!==(l.href==null||l.href===""?null:l.href)||t.getAttribute("crossorigin")!==(l.crossOrigin==null?null:l.crossOrigin)||t.getAttribute("title")!==(l.title==null?null:l.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(r=t.getAttribute("src"),(r!==(l.src==null?null:l.src)||t.getAttribute("type")!==(l.type==null?null:l.type)||t.getAttribute("crossorigin")!==(l.crossOrigin==null?null:l.crossOrigin))&&r&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var r=l.name==null?null:""+l.name;if(l.type==="hidden"&&t.getAttribute("name")===r)return t}else return t;if(t=wn(t.nextSibling),t===null)break}return null}function Ck(t,e,n){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!n||(t=wn(t.nextSibling),t===null))return null;return t}function gf(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState==="complete"}function Rk(t,e){var n=t.ownerDocument;if(t.data!=="$?"||n.readyState==="complete")e();else{var i=function(){e(),n.removeEventListener("DOMContentLoaded",i)};n.addEventListener("DOMContentLoaded",i),t._reactRetry=i}}function wn(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?"||e==="F!"||e==="F")break;if(e==="/$")return null}}return t}var yf=null;function qh(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="$"||n==="$!"||n==="$?"){if(e===0)return t;e--}else n==="/$"&&e++}t=t.previousSibling}return null}function xb(t,e,n){switch(e=ku(n),t){case"html":if(t=e.documentElement,!t)throw Error(M(452));return t;case"head":if(t=e.head,!t)throw Error(M(453));return t;case"body":if(t=e.body,!t)throw Error(M(454));return t;default:throw Error(M(451))}}function xa(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);Af(t)}var bn=new Map,Ih=new Set;function wu(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var oi=wt.d;wt.d={f:Nk,r:Mk,D:Dk,C:zk,L:_k,m:Ok,X:Bk,S:Lk,M:Uk};function Nk(){var t=oi.f(),e=Hu();return t||e}function Mk(t){var e=Er(t);e!==null&&e.tag===5&&e.type==="form"?dy(e):oi.r(t)}var Cr=typeof document>"u"?null:document;function Sb(t,e,n){var i=Cr;if(i&&typeof e=="string"&&e){var l=mn(e);l='link[rel="'+t+'"][href="'+l+'"]',typeof n=="string"&&(l+='[crossorigin="'+n+'"]'),Ih.has(l)||(Ih.add(l),t={rel:t,crossOrigin:n,href:e},i.querySelector(l)===null&&(e=i.createElement("link"),we(e,"link",t),he(e),i.head.appendChild(e)))}}function Dk(t){oi.D(t),Sb("dns-prefetch",t,null)}function zk(t,e){oi.C(t,e),Sb("preconnect",t,e)}function _k(t,e,n){oi.L(t,e,n);var i=Cr;if(i&&t&&e){var l='link[rel="preload"][as="'+mn(e)+'"]';e==="image"&&n&&n.imageSrcSet?(l+='[imagesrcset="'+mn(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(l+='[imagesizes="'+mn(n.imageSizes)+'"]')):l+='[href="'+mn(t)+'"]';var r=l;switch(e){case"style":r=kr(t);break;case"script":r=Rr(t)}bn.has(r)||(t=Lt({rel:"preload",href:e==="image"&&n&&n.imageSrcSet?void 0:t,as:e},n),bn.set(r,t),i.querySelector(l)!==null||e==="style"&&i.querySelector(Ka(r))||e==="script"&&i.querySelector(Pa(r))||(e=i.createElement("link"),we(e,"link",t),he(e),i.head.appendChild(e)))}}function Ok(t,e){oi.m(t,e);var n=Cr;if(n&&t){var i=e&&typeof e.as=="string"?e.as:"script",l='link[rel="modulepreload"][as="'+mn(i)+'"][href="'+mn(t)+'"]',r=l;switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":r=Rr(t)}if(!bn.has(r)&&(t=Lt({rel:"modulepreload",href:t},e),bn.set(r,t),n.querySelector(l)===null)){switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Pa(r)))return}i=n.createElement("link"),we(i,"link",t),he(i),n.head.appendChild(i)}}}function Lk(t,e,n){oi.S(t,e,n);var i=Cr;if(i&&t){var l=lr(i).hoistableStyles,r=kr(t);e=e||"default";var a=l.get(r);if(!a){var o={loading:0,preload:null};if(a=i.querySelector(Ka(r)))o.loading=5;else{t=Lt({rel:"stylesheet",href:t,"data-precedence":e},n),(n=bn.get(r))&&sp(t,n);var u=a=i.createElement("link");he(u),we(u,"link",t),u._p=new Promise(function(s,c){u.onload=s,u.onerror=c}),u.addEventListener("load",function(){o.loading|=1}),u.addEventListener("error",function(){o.loading|=2}),o.loading|=4,Ko(a,e,i)}a={type:"stylesheet",instance:a,count:1,state:o},l.set(r,a)}}}function Bk(t,e){oi.X(t,e);var n=Cr;if(n&&t){var i=lr(n).hoistableScripts,l=Rr(t),r=i.get(l);r||(r=n.querySelector(Pa(l)),r||(t=Lt({src:t,async:!0},e),(e=bn.get(l))&&cp(t,e),r=n.createElement("script"),he(r),we(r,"link",t),n.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},i.set(l,r))}}function Uk(t,e){oi.M(t,e);var n=Cr;if(n&&t){var i=lr(n).hoistableScripts,l=Rr(t),r=i.get(l);r||(r=n.querySelector(Pa(l)),r||(t=Lt({src:t,async:!0,type:"module"},e),(e=bn.get(l))&&cp(t,e),r=n.createElement("script"),he(r),we(r,"link",t),n.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},i.set(l,r))}}function jh(t,e,n,i){var l=(l=Ci.current)?wu(l):null;if(!l)throw Error(M(446));switch(t){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(e=kr(n.href),n=lr(l).hoistableStyles,i=n.get(e),i||(i={type:"style",instance:null,count:0,state:null},n.set(e,i)),i):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){t=kr(n.href);var r=lr(l).hoistableStyles,a=r.get(t);if(a||(l=l.ownerDocument||l,a={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},r.set(t,a),(r=l.querySelector(Ka(t)))&&!r._p&&(a.instance=r,a.state.loading=5),bn.has(t)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},bn.set(t,n),r||Hk(l,t,n,a.state))),e&&i===null)throw Error(M(528,""));return a}if(e&&i!==null)throw Error(M(529,""));return null;case"script":return e=n.async,n=n.src,typeof n=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=Rr(n),n=lr(l).hoistableScripts,i=n.get(e),i||(i={type:"script",instance:null,count:0,state:null},n.set(e,i)),i):{type:"void",instance:null,count:0,state:null};default:throw Error(M(444,t))}}function kr(t){return'href="'+mn(t)+'"'}function Ka(t){return'link[rel="stylesheet"]['+t+"]"}function kb(t){return Lt({},t,{"data-precedence":t.precedence,precedence:null})}function Hk(t,e,n,i){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?i.loading=1:(e=t.createElement("link"),i.preload=e,e.addEventListener("load",function(){return i.loading|=1}),e.addEventListener("error",function(){return i.loading|=2}),we(e,"link",n),he(e),t.head.appendChild(e))}function Rr(t){return'[src="'+mn(t)+'"]'}function Pa(t){return"script[async]"+t}function Yh(t,e,n){if(e.count++,e.instance===null)switch(e.type){case"style":var i=t.querySelector('style[data-href~="'+mn(n.href)+'"]');if(i)return e.instance=i,he(i),i;var l=Lt({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return i=(t.ownerDocument||t).createElement("style"),he(i),we(i,"style",l),Ko(i,n.precedence,t),e.instance=i;case"stylesheet":l=kr(n.href);var r=t.querySelector(Ka(l));if(r)return e.state.loading|=4,e.instance=r,he(r),r;i=kb(n),(l=bn.get(l))&&sp(i,l),r=(t.ownerDocument||t).createElement("link"),he(r);var a=r;return a._p=new Promise(function(o,u){a.onload=o,a.onerror=u}),we(r,"link",i),e.state.loading|=4,Ko(r,n.precedence,t),e.instance=r;case"script":return r=Rr(n.src),(l=t.querySelector(Pa(r)))?(e.instance=l,he(l),l):(i=n,(l=bn.get(r))&&(i=Lt({},n),cp(i,l)),t=t.ownerDocument||t,l=t.createElement("script"),he(l),we(l,"link",i),t.head.appendChild(l),e.instance=l);case"void":return null;default:throw Error(M(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(i=e.instance,e.state.loading|=4,Ko(i,n.precedence,t));return e.instance}function Ko(t,e,n){for(var i=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),l=i.length?i[i.length-1]:null,r=l,a=0;a<i.length;a++){var o=i[a];if(o.dataset.precedence===e)r=o;else if(r!==l)break}r?r.parentNode.insertBefore(t,r.nextSibling):(e=n.nodeType===9?n.head:n,e.insertBefore(t,e.firstChild))}function sp(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function cp(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var Po=null;function Vh(t,e,n){if(Po===null){var i=new Map,l=Po=new Map;l.set(n,i)}else l=Po,i=l.get(n),i||(i=new Map,l.set(n,i));if(i.has(t))return i;for(i.set(t,null),n=n.getElementsByTagName(t),l=0;l<n.length;l++){var r=n[l];if(!(r[qa]||r[Ce]||t==="link"&&r.getAttribute("rel")==="stylesheet")&&r.namespaceURI!=="http://www.w3.org/2000/svg"){var a=r.getAttribute(e)||"";a=t+a;var o=i.get(a);o?o.push(r):i.set(a,[r])}}return i}function Fh(t,e,n){t=t.ownerDocument||t,t.head.insertBefore(n,e==="title"?t.querySelector("head > title"):null)}function qk(t,e,n){if(n===1||e.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof e.precedence!="string"||typeof e.href!="string"||e.href==="")break;return!0;case"link":if(typeof e.rel!="string"||typeof e.href!="string"||e.href===""||e.onLoad||e.onError)break;switch(e.rel){case"stylesheet":return t=e.disabled,typeof e.precedence=="string"&&t==null;default:return!0}case"script":if(e.async&&typeof e.async!="function"&&typeof e.async!="symbol"&&!e.onLoad&&!e.onError&&e.src&&typeof e.src=="string")return!0}return!1}function wb(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}var Ma=null;function Ik(){}function jk(t,e,n){if(Ma===null)throw Error(M(475));var i=Ma;if(e.type==="stylesheet"&&(typeof n.media!="string"||matchMedia(n.media).matches!==!1)&&(e.state.loading&4)===0){if(e.instance===null){var l=kr(n.href),r=t.querySelector(Ka(l));if(r){t=r._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(i.count++,i=Eu.bind(i),t.then(i,i)),e.state.loading|=4,e.instance=r,he(r);return}r=t.ownerDocument||t,n=kb(n),(l=bn.get(l))&&sp(n,l),r=r.createElement("link"),he(r);var a=r;a._p=new Promise(function(o,u){a.onload=o,a.onerror=u}),we(r,"link",n),e.instance=r}i.stylesheets===null&&(i.stylesheets=new Map),i.stylesheets.set(e,t),(t=e.state.preload)&&(e.state.loading&3)===0&&(i.count++,e=Eu.bind(i),t.addEventListener("load",e),t.addEventListener("error",e))}}function Yk(){if(Ma===null)throw Error(M(475));var t=Ma;return t.stylesheets&&t.count===0&&bf(t,t.stylesheets),0<t.count?function(e){var n=setTimeout(function(){if(t.stylesheets&&bf(t,t.stylesheets),t.unsuspend){var i=t.unsuspend;t.unsuspend=null,i()}},6e4);return t.unsuspend=e,function(){t.unsuspend=null,clearTimeout(n)}}:null}function Eu(){if(this.count--,this.count===0){if(this.stylesheets)bf(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var Tu=null;function bf(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Tu=new Map,e.forEach(Vk,t),Tu=null,Eu.call(t))}function Vk(t,e){if(!(e.state.loading&4)){var n=Tu.get(t);if(n)var i=n.get(null);else{n=new Map,Tu.set(t,n);for(var l=t.querySelectorAll("link[data-precedence],style[data-precedence]"),r=0;r<l.length;r++){var a=l[r];(a.nodeName==="LINK"||a.getAttribute("media")!=="not all")&&(n.set(a.dataset.precedence,a),i=a)}i&&n.set(null,i)}l=e.instance,a=l.getAttribute("data-precedence"),r=n.get(a)||i,r===i&&n.set(null,l),n.set(a,l),this.count++,i=Eu.bind(this),l.addEventListener("load",i),l.addEventListener("error",i),r?r.parentNode.insertBefore(l,r.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(l,t.firstChild)),e.state.loading|=4}}var Da={$$typeof:Pn,Provider:null,Consumer:null,_currentValue:il,_currentValue2:il,_threadCount:0};function Fk(t,e,n,i,l,r,a,o){this.tag=1,this.containerInfo=t,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Ks(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ks(0),this.hiddenUpdates=Ks(null),this.identifierPrefix=i,this.onUncaughtError=l,this.onCaughtError=r,this.onRecoverableError=a,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=o,this.incompleteTransitions=new Map}function Eb(t,e,n,i,l,r,a,o,u,s,c,f){return t=new Fk(t,e,n,a,o,u,s,f),e=1,r===!0&&(e|=24),r=$e(3,null,null,e),t.current=r,r.stateNode=t,e=Hf(),e.refCount++,t.pooledCache=e,e.refCount++,r.memoizedState={element:i,isDehydrated:n,cache:e},If(r),t}function Tb(t){return t?(t=tr,t):tr}function Ab(t,e,n,i,l,r){l=Tb(l),i.context===null?i.context=l:i.pendingContext=l,i=Ri(e),i.payload={element:n},r=r===void 0?null:r,r!==null&&(i.callback=r),n=Ni(t,i,e),n!==null&&(ln(n,t,e),pa(n,t,e))}function Qh(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var n=t.retryLane;t.retryLane=n!==0&&n<e?n:e}}function fp(t,e){Qh(t,e),(t=t.alternate)&&Qh(t,e)}function Cb(t){if(t.tag===13){var e=Tr(t,67108864);e!==null&&ln(e,t,67108864),fp(t,67108864)}}var Au=!0;function Qk(t,e,n,i){var l=J.T;J.T=null;var r=wt.p;try{wt.p=2,pp(t,e,n,i)}finally{wt.p=r,J.T=l}}function Xk(t,e,n,i){var l=J.T;J.T=null;var r=wt.p;try{wt.p=8,pp(t,e,n,i)}finally{wt.p=r,J.T=l}}function pp(t,e,n,i){if(Au){var l=vf(i);if(l===null)wc(t,e,i,Cu,n),Xh(t,i);else if(Zk(l,t,e,n,i))i.stopPropagation();else if(Xh(t,i),e&4&&-1<Gk.indexOf(t)){for(;l!==null;){var r=Er(l);if(r!==null)switch(r.tag){case 3:if(r=r.stateNode,r.current.memoizedState.isDehydrated){var a=tl(r.pendingLanes);if(a!==0){var o=r;for(o.pendingLanes|=2,o.entangledLanes|=2;a;){var u=1<<31-en(a);o.entanglements[1]|=u,a&=~u}Un(r),(Ct&6)===0&&(yu=On()+500,Za(0,!1))}}break;case 13:o=Tr(r,2),o!==null&&ln(o,r,2),Hu(),fp(r,2)}if(r=vf(i),r===null&&wc(t,e,i,Cu,n),r===l)break;l=r}l!==null&&i.stopPropagation()}else wc(t,e,i,null,n)}}function vf(t){return t=Rf(t),dp(t)}var Cu=null;function dp(t){if(Cu=null,t=Zl(t),t!==null){var e=La(t);if(e===null)t=null;else{var n=e.tag;if(n===13){if(t=Wh(e),t!==null)return t;t=null}else if(n===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null)}}return Cu=t,null}function Rb(t){switch(t){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Ox()){case ng:return 2;case ig:return 8;case eu:case Lx:return 32;case lg:return 268435456;default:return 32}default:return 32}}var xf=!1,zi=null,_i=null,Oi=null,za=new Map,_a=new Map,ki=[],Gk="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function Xh(t,e){switch(t){case"focusin":case"focusout":zi=null;break;case"dragenter":case"dragleave":_i=null;break;case"mouseover":case"mouseout":Oi=null;break;case"pointerover":case"pointerout":za.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":_a.delete(e.pointerId)}}function ea(t,e,n,i,l,r){return t===null||t.nativeEvent!==r?(t={blockedOn:e,domEventName:n,eventSystemFlags:i,nativeEvent:r,targetContainers:[l]},e!==null&&(e=Er(e),e!==null&&Cb(e)),t):(t.eventSystemFlags|=i,e=t.targetContainers,l!==null&&e.indexOf(l)===-1&&e.push(l),t)}function Zk(t,e,n,i,l){switch(e){case"focusin":return zi=ea(zi,t,e,n,i,l),!0;case"dragenter":return _i=ea(_i,t,e,n,i,l),!0;case"mouseover":return Oi=ea(Oi,t,e,n,i,l),!0;case"pointerover":var r=l.pointerId;return za.set(r,ea(za.get(r)||null,t,e,n,i,l)),!0;case"gotpointercapture":return r=l.pointerId,_a.set(r,ea(_a.get(r)||null,t,e,n,i,l)),!0}return!1}function Nb(t){var e=Zl(t.target);if(e!==null){var n=La(e);if(n!==null){if(e=n.tag,e===13){if(e=Wh(n),e!==null){t.blockedOn=e,Vx(t.priority,function(){if(n.tag===13){var i=nn();i=Ef(i);var l=Tr(n,i);l!==null&&ln(l,n,i),fp(n,i)}});return}}else if(e===3&&n.stateNode.current.memoizedState.isDehydrated){t.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}t.blockedOn=null}function Jo(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var n=vf(t.nativeEvent);if(n===null){n=t.nativeEvent;var i=new n.constructor(n.type,n);Bc=i,n.target.dispatchEvent(i),Bc=null}else return e=Er(n),e!==null&&Cb(e),t.blockedOn=n,!1;e.shift()}return!0}function Gh(t,e,n){Jo(t)&&n.delete(e)}function Kk(){xf=!1,zi!==null&&Jo(zi)&&(zi=null),_i!==null&&Jo(_i)&&(_i=null),Oi!==null&&Jo(Oi)&&(Oi=null),za.forEach(Gh),_a.forEach(Gh)}function Uo(t,e){t.blockedOn===e&&(t.blockedOn=null,xf||(xf=!0,pe.unstable_scheduleCallback(pe.unstable_NormalPriority,Kk)))}var Ho=null;function Zh(t){Ho!==t&&(Ho=t,pe.unstable_scheduleCallback(pe.unstable_NormalPriority,function(){Ho===t&&(Ho=null);for(var e=0;e<t.length;e+=3){var n=t[e],i=t[e+1],l=t[e+2];if(typeof i!="function"){if(dp(i||n)===null)continue;break}var r=Er(n);r!==null&&(t.splice(e,3),e-=3,Wc(r,{pending:!0,data:l,method:n.method,action:i},i,l))}}))}function Oa(t){function e(u){return Uo(u,t)}zi!==null&&Uo(zi,t),_i!==null&&Uo(_i,t),Oi!==null&&Uo(Oi,t),za.forEach(e),_a.forEach(e);for(var n=0;n<ki.length;n++){var i=ki[n];i.blockedOn===t&&(i.blockedOn=null)}for(;0<ki.length&&(n=ki[0],n.blockedOn===null);)Nb(n),n.blockedOn===null&&ki.shift();if(n=(t.ownerDocument||t).$$reactFormReplay,n!=null)for(i=0;i<n.length;i+=3){var l=n[i],r=n[i+1],a=l[Ge]||null;if(typeof r=="function")a||Zh(n);else if(a){var o=null;if(r&&r.hasAttribute("formAction")){if(l=r,a=r[Ge]||null)o=a.formAction;else if(dp(l)!==null)continue}else o=a.action;typeof o=="function"?n[i+1]=o:(n.splice(i,3),i-=3),Zh(n)}}}function mp(t){this._internalRoot=t}Yu.prototype.render=mp.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(M(409));var n=e.current,i=nn();Ab(n,i,t,e,null,null)};Yu.prototype.unmount=mp.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;Ab(t.current,2,null,t,null,null),Hu(),e[wr]=null}};function Yu(t){this._internalRoot=t}Yu.prototype.unstable_scheduleHydration=function(t){if(t){var e=sg();t={blockedOn:null,target:t,priority:e};for(var n=0;n<ki.length&&e!==0&&e<ki[n].priority;n++);ki.splice(n,0,t),n===0&&Nb(t)}};var Kh=Ph.version;if(Kh!=="19.1.1")throw Error(M(527,Kh,"19.1.1"));wt.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(M(188)):(t=Object.keys(t).join(","),Error(M(268,t)));return t=Cx(e),t=t!==null?$h(t):null,t=t===null?null:t.stateNode,t};var Pk={bundleType:0,version:"19.1.1",rendererPackageName:"react-dom",currentDispatcherRef:J,reconcilerVersion:"19.1.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(na=__REACT_DEVTOOLS_GLOBAL_HOOK__,!na.isDisabled&&na.supportsFiber))try{Ba=na.inject(Pk),tn=na}catch{}var na;Vu.createRoot=function(t,e){if(!Jh(t))throw Error(M(299));var n=!1,i="",l=Ey,r=Ty,a=Ay,o=null;return e!=null&&(e.unstable_strictMode===!0&&(n=!0),e.identifierPrefix!==void 0&&(i=e.identifierPrefix),e.onUncaughtError!==void 0&&(l=e.onUncaughtError),e.onCaughtError!==void 0&&(r=e.onCaughtError),e.onRecoverableError!==void 0&&(a=e.onRecoverableError),e.unstable_transitionCallbacks!==void 0&&(o=e.unstable_transitionCallbacks)),e=Eb(t,1,!1,null,null,n,i,l,r,a,o,null),t[wr]=e.current,up(t),new mp(e)};Vu.hydrateRoot=function(t,e,n){if(!Jh(t))throw Error(M(299));var i=!1,l="",r=Ey,a=Ty,o=Ay,u=null,s=null;return n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(l=n.identifierPrefix),n.onUncaughtError!==void 0&&(r=n.onUncaughtError),n.onCaughtError!==void 0&&(a=n.onCaughtError),n.onRecoverableError!==void 0&&(o=n.onRecoverableError),n.unstable_transitionCallbacks!==void 0&&(u=n.unstable_transitionCallbacks),n.formState!==void 0&&(s=n.formState)),e=Eb(t,1,!0,e,n??null,i,l,r,a,o,u,s),e.context=Tb(null),n=e.current,i=nn(),i=Ef(i),l=Ri(i),l.callback=null,Ni(n,l,i),n=i,e.current.lanes=n,Ha(e,n),Un(e),t[wr]=e.current,up(t),new Yu(e)};Vu.version="19.1.1"});var _b=Be((c2,zb)=>{"use strict";function Db(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Db)}catch(t){console.error(t)}}Db(),zb.exports=Mb()});var Pb=Be((hR,Kb)=>{"use strict";var Qb=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,aw=/\n/g,ow=/^\s*/,uw=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,sw=/^:\s*/,cw=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,fw=/^[;\s]*/,pw=/^\s+|\s+$/g,dw=`
|
|
10
|
+
`,Xb="/",Gb="*",xl="",mw="comment",hw="declaration";function gw(t,e){if(typeof t!="string")throw new TypeError("First argument must be a string");if(!t)return[];e=e||{};var n=1,i=1;function l(g){var b=g.match(aw);b&&(n+=b.length);var T=g.lastIndexOf(dw);i=~T?g.length-T:i+g.length}function r(){var g={line:n,column:i};return function(b){return b.position=new a(g),s(),b}}function a(g){this.start=g,this.end={line:n,column:i},this.source=e.source}a.prototype.content=t;function o(g){var b=new Error(e.source+":"+n+":"+i+": "+g);if(b.reason=g,b.filename=e.source,b.line=n,b.column=i,b.source=t,!e.silent)throw b}function u(g){var b=g.exec(t);if(b){var T=b[0];return l(T),t=t.slice(T.length),b}}function s(){u(ow)}function c(g){var b;for(g=g||[];b=f();)b!==!1&&g.push(b);return g}function f(){var g=r();if(!(Xb!=t.charAt(0)||Gb!=t.charAt(1))){for(var b=2;xl!=t.charAt(b)&&(Gb!=t.charAt(b)||Xb!=t.charAt(b+1));)++b;if(b+=2,xl===t.charAt(b-1))return o("End of comment missing");var T=t.slice(2,b-2);return i+=2,l(T),t=t.slice(b),i+=2,g({type:mw,comment:T})}}function d(){var g=r(),b=u(uw);if(b){if(f(),!u(sw))return o("property missing ':'");var T=u(cw),m=g({type:hw,property:Zb(b[0].replace(Qb,xl)),value:T?Zb(T[0].replace(Qb,xl)):xl});return u(fw),m}}function p(){var g=[];c(g);for(var b;b=d();)b!==!1&&(g.push(b),c(g));return g}return s(),p()}function Zb(t){return t?t.replace(pw,xl):xl}Kb.exports=gw});var Jb=Be($a=>{"use strict";var yw=$a&&$a.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty($a,"__esModule",{value:!0});$a.default=vw;var bw=yw(Pb());function vw(t,e){let n=null;if(!t||typeof t!="string")return n;let i=(0,bw.default)(t),l=typeof e=="function";return i.forEach(r=>{if(r.type!=="declaration")return;let{property:a,value:o}=r;l?e(a,o,r):o&&(n=n||{},n[a]=o)}),n}});var $b=Be(Ku=>{"use strict";Object.defineProperty(Ku,"__esModule",{value:!0});Ku.camelCase=void 0;var xw=/^--[a-zA-Z0-9_-]+$/,Sw=/-([a-z])/g,kw=/^[^-]+$/,ww=/^-(webkit|moz|ms|o|khtml)-/,Ew=/^-(ms)-/,Tw=function(t){return!t||kw.test(t)||xw.test(t)},Aw=function(t,e){return e.toUpperCase()},Wb=function(t,e){return"".concat(e,"-")},Cw=function(t,e){return e===void 0&&(e={}),Tw(t)?t:(t=t.toLowerCase(),e.reactCompat?t=t.replace(Ew,Wb):t=t.replace(ww,Wb),t.replace(Sw,Aw))};Ku.camelCase=Cw});var ev=Be((Tp,tv)=>{"use strict";var Rw=Tp&&Tp.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},Nw=Rw(Jb()),Mw=$b();function Ep(t,e){var n={};return!t||typeof t!="string"||(0,Nw.default)(t,function(i,l){i&&l&&(n[(0,Mw.camelCase)(i,e)]=l)}),n}Ep.default=Ep;tv.exports=Ep});var fv=Be(Ju=>{"use strict";var Pw=Symbol.for("react.transitional.element"),Jw=Symbol.for("react.fragment");function cv(t,e,n){var i=null;if(n!==void 0&&(i=""+n),e.key!==void 0&&(i=""+e.key),"key"in e){n={};for(var l in e)l!=="key"&&(n[l]=e[l])}else n=e;return e=n.ref,{$$typeof:Pw,type:t,key:i,ref:e!==void 0?e:null,props:n}}Ju.Fragment=Jw;Ju.jsx=cv;Ju.jsxs=cv});var tt=Be((YR,pv)=>{"use strict";pv.exports=fv()});var R1=Be((G3,C1)=>{"use strict";var xs=Object.prototype.hasOwnProperty,A1=Object.prototype.toString,x1=Object.defineProperty,S1=Object.getOwnPropertyDescriptor,k1=function(e){return typeof Array.isArray=="function"?Array.isArray(e):A1.call(e)==="[object Array]"},w1=function(e){if(!e||A1.call(e)!=="[object Object]")return!1;var n=xs.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&xs.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!i)return!1;var l;for(l in e);return typeof l>"u"||xs.call(e,l)},E1=function(e,n){x1&&n.name==="__proto__"?x1(e,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):e[n.name]=n.newValue},T1=function(e,n){if(n==="__proto__")if(xs.call(e,n)){if(S1)return S1(e,n).value}else return;return e[n]};C1.exports=function t(){var e,n,i,l,r,a,o=arguments[0],u=1,s=arguments.length,c=!1;for(typeof o=="boolean"&&(c=o,o=arguments[1]||{},u=2),(o==null||typeof o!="object"&&typeof o!="function")&&(o={});u<s;++u)if(e=arguments[u],e!=null)for(n in e)i=T1(o,n),l=T1(e,n),o!==l&&(c&&l&&(w1(l)||(r=k1(l)))?(r?(r=!1,a=i&&k1(i)?i:[]):a=i&&w1(i)?i:{},E1(o,{name:n,newValue:t(c,a,l)})):typeof l<"u"&&E1(o,{name:n,newValue:l}));return o}});var W0=I(le(),1),$0=I(_b(),1);var bt=I(le(),1);function Ob(){return window.__CODELY__??{}}function Lb(t){return t.mode??"chat"}function Bb(t){return t.controlPlaneApiBase??"/__codely__/control-plane"}var C0=I(le(),1);function Ub(t,e){let n=e||{};return(t[t.length-1]===""?[...t,""]:t).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}var Jk=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Wk=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,$k={};function Fu(t,e){return((e||$k).jsx?Wk:Jk).test(t)}var tw=/[ \t\n\f\r]/g;function hp(t){return typeof t=="object"?t.type==="text"?Hb(t.value):!1:Hb(t)}function Hb(t){return t.replace(tw,"")===""}var ui=class{constructor(e,n,i){this.normal=n,this.property=e,i&&(this.space=i)}};ui.prototype.normal={};ui.prototype.property={};ui.prototype.space=void 0;function gp(t,e){let n={},i={};for(let l of t)Object.assign(n,l.property),Object.assign(i,l.normal);return new ui(n,i,e)}function Ja(t){return t.toLowerCase()}var be=class{constructor(e,n){this.attribute=n,this.property=e}};be.prototype.attribute="";be.prototype.booleanish=!1;be.prototype.boolean=!1;be.prototype.commaOrSpaceSeparated=!1;be.prototype.commaSeparated=!1;be.prototype.defined=!1;be.prototype.mustUseProperty=!1;be.prototype.number=!1;be.prototype.overloadedBoolean=!1;be.prototype.property="";be.prototype.spaceSeparated=!1;be.prototype.space=void 0;var Wa={};$d(Wa,{boolean:()=>et,booleanish:()=>Pt,commaOrSpaceSeparated:()=>Ke,commaSeparated:()=>Ii,number:()=>z,overloadedBoolean:()=>Qu,spaceSeparated:()=>Rt});var ew=0,et=bl(),Pt=bl(),Qu=bl(),z=bl(),Rt=bl(),Ii=bl(),Ke=bl();function bl(){return 2**++ew}var yp=Object.keys(Wa),vl=class extends be{constructor(e,n,i,l){let r=-1;if(super(e,n),qb(this,"space",l),typeof i=="number")for(;++r<yp.length;){let a=yp[r];qb(this,yp[r],(i&Wa[a])===Wa[a])}}};vl.prototype.defined=!0;function qb(t,e,n){n&&(t[e]=n)}function vn(t){let e={},n={};for(let[i,l]of Object.entries(t.properties)){let r=new vl(i,t.transform(t.attributes||{},i),l,t.space);t.mustUseProperty&&t.mustUseProperty.includes(i)&&(r.mustUseProperty=!0),e[i]=r,n[Ja(i)]=i,n[Ja(r.attribute)]=i}return new ui(e,n,t.space)}var bp=vn({properties:{ariaActiveDescendant:null,ariaAtomic:Pt,ariaAutoComplete:null,ariaBusy:Pt,ariaChecked:Pt,ariaColCount:z,ariaColIndex:z,ariaColSpan:z,ariaControls:Rt,ariaCurrent:null,ariaDescribedBy:Rt,ariaDetails:null,ariaDisabled:Pt,ariaDropEffect:Rt,ariaErrorMessage:null,ariaExpanded:Pt,ariaFlowTo:Rt,ariaGrabbed:Pt,ariaHasPopup:null,ariaHidden:Pt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Rt,ariaLevel:z,ariaLive:null,ariaModal:Pt,ariaMultiLine:Pt,ariaMultiSelectable:Pt,ariaOrientation:null,ariaOwns:Rt,ariaPlaceholder:null,ariaPosInSet:z,ariaPressed:Pt,ariaReadOnly:Pt,ariaRelevant:null,ariaRequired:Pt,ariaRoleDescription:Rt,ariaRowCount:z,ariaRowIndex:z,ariaRowSpan:z,ariaSelected:Pt,ariaSetSize:z,ariaSort:null,ariaValueMax:z,ariaValueMin:z,ariaValueNow:z,ariaValueText:null,role:null},transform(t,e){return e==="role"?e:"aria-"+e.slice(4).toLowerCase()}});function Xu(t,e){return e in t?t[e]:e}function Gu(t,e){return Xu(t,e.toLowerCase())}var Ib=vn({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ii,acceptCharset:Rt,accessKey:Rt,action:null,allow:null,allowFullScreen:et,allowPaymentRequest:et,allowUserMedia:et,alt:null,as:null,async:et,autoCapitalize:null,autoComplete:Rt,autoFocus:et,autoPlay:et,blocking:Rt,capture:null,charSet:null,checked:et,cite:null,className:Rt,cols:z,colSpan:null,content:null,contentEditable:Pt,controls:et,controlsList:Rt,coords:z|Ii,crossOrigin:null,data:null,dateTime:null,decoding:null,default:et,defer:et,dir:null,dirName:null,disabled:et,download:Qu,draggable:Pt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:et,formTarget:null,headers:Rt,height:z,hidden:Qu,high:z,href:null,hrefLang:null,htmlFor:Rt,httpEquiv:Rt,id:null,imageSizes:null,imageSrcSet:null,inert:et,inputMode:null,integrity:null,is:null,isMap:et,itemId:null,itemProp:Rt,itemRef:Rt,itemScope:et,itemType:Rt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:et,low:z,manifest:null,max:null,maxLength:z,media:null,method:null,min:null,minLength:z,multiple:et,muted:et,name:null,nonce:null,noModule:et,noValidate:et,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:et,optimum:z,pattern:null,ping:Rt,placeholder:null,playsInline:et,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:et,referrerPolicy:null,rel:Rt,required:et,reversed:et,rows:z,rowSpan:z,sandbox:Rt,scope:null,scoped:et,seamless:et,selected:et,shadowRootClonable:et,shadowRootDelegatesFocus:et,shadowRootMode:null,shape:null,size:z,sizes:null,slot:null,span:z,spellCheck:Pt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:z,step:null,style:null,tabIndex:z,target:null,title:null,translate:null,type:null,typeMustMatch:et,useMap:null,value:Pt,width:z,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Rt,axis:null,background:null,bgColor:null,border:z,borderColor:null,bottomMargin:z,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:et,declare:et,event:null,face:null,frame:null,frameBorder:null,hSpace:z,leftMargin:z,link:null,longDesc:null,lowSrc:null,marginHeight:z,marginWidth:z,noResize:et,noHref:et,noShade:et,noWrap:et,object:null,profile:null,prompt:null,rev:null,rightMargin:z,rules:null,scheme:null,scrolling:Pt,standby:null,summary:null,text:null,topMargin:z,valueType:null,version:null,vAlign:null,vLink:null,vSpace:z,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:et,disableRemotePlayback:et,prefix:null,property:null,results:z,security:null,unselectable:null},space:"html",transform:Gu});var jb=vn({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:Ke,accentHeight:z,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:z,amplitude:z,arabicForm:null,ascent:z,attributeName:null,attributeType:null,azimuth:z,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:z,by:null,calcMode:null,capHeight:z,className:Rt,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:z,diffuseConstant:z,direction:null,display:null,dur:null,divisor:z,dominantBaseline:null,download:et,dx:null,dy:null,edgeMode:null,editable:null,elevation:z,enableBackground:null,end:null,event:null,exponent:z,externalResourcesRequired:null,fill:null,fillOpacity:z,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:Ii,g2:Ii,glyphName:Ii,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:z,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:z,horizOriginX:z,horizOriginY:z,id:null,ideographic:z,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:z,k:z,k1:z,k2:z,k3:z,k4:z,kernelMatrix:Ke,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:z,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:z,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:z,overlineThickness:z,paintOrder:null,panose1:null,path:null,pathLength:z,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Rt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:z,pointsAtY:z,pointsAtZ:z,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Ke,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Ke,rev:Ke,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Ke,requiredFeatures:Ke,requiredFonts:Ke,requiredFormats:Ke,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:z,specularExponent:z,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:z,strikethroughThickness:z,string:null,stroke:null,strokeDashArray:Ke,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:z,strokeOpacity:z,strokeWidth:null,style:null,surfaceScale:z,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Ke,tabIndex:z,tableValues:null,target:null,targetX:z,targetY:z,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Ke,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:z,underlineThickness:z,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:z,values:null,vAlphabetic:z,vMathematical:z,vectorEffect:null,vHanging:z,vIdeographic:z,version:null,vertAdvY:z,vertOriginX:z,vertOriginY:z,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:z,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Xu});var vp=vn({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(t,e){return"xlink:"+e.slice(5).toLowerCase()}});var xp=vn({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Gu});var Sp=vn({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(t,e){return"xml:"+e.slice(3).toLowerCase()}});var kp={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"};var nw=/[A-Z]/g,Yb=/-[a-z]/g,iw=/^data[-\w.:]+$/i;function wp(t,e){let n=Ja(e),i=e,l=be;if(n in t.normal)return t.property[t.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&iw.test(e)){if(e.charAt(4)==="-"){let r=e.slice(5).replace(Yb,rw);i="data"+r.charAt(0).toUpperCase()+r.slice(1)}else{let r=e.slice(4);if(!Yb.test(r)){let a=r.replace(nw,lw);a.charAt(0)!=="-"&&(a="-"+a),e="data"+a}}l=vl}return new l(i,e)}function lw(t){return"-"+t.toLowerCase()}function rw(t){return t.charAt(1).toUpperCase()}var Vb=gp([bp,Ib,vp,xp,Sp],"html"),Zu=gp([bp,jb,vp,xp,Sp],"svg");function Fb(t){return t.join(" ").trim()}var rv=I(ev(),1);var Pu=nv("end"),Nr=nv("start");function nv(t){return e;function e(n){let i=n&&n.position&&n.position[t]||{};if(typeof i.line=="number"&&i.line>0&&typeof i.column=="number"&&i.column>0)return{line:i.line,column:i.column,offset:typeof i.offset=="number"&&i.offset>-1?i.offset:void 0}}}function Ap(t){let e=Nr(t),n=Pu(t);if(e&&n)return{start:e,end:n}}function ji(t){return!t||typeof t!="object"?"":"position"in t||"type"in t?iv(t.position):"start"in t||"end"in t?iv(t):"line"in t||"column"in t?Cp(t):""}function Cp(t){return lv(t&&t.line)+":"+lv(t&&t.column)}function iv(t){return Cp(t&&t.start)+"-"+Cp(t&&t.end)}function lv(t){return t&&typeof t=="number"?t:1}var ne=class extends Error{constructor(e,n,i){super(),typeof n=="string"&&(i=n,n=void 0);let l="",r={},a=!1;if(n&&("line"in n&&"column"in n?r={place:n}:"start"in n&&"end"in n?r={place:n}:"type"in n?r={ancestors:[n],place:n.position}:r={...n}),typeof e=="string"?l=e:!r.cause&&e&&(a=!0,l=e.message,r.cause=e),!r.ruleId&&!r.source&&typeof i=="string"){let u=i.indexOf(":");u===-1?r.ruleId=i:(r.source=i.slice(0,u),r.ruleId=i.slice(u+1))}if(!r.place&&r.ancestors&&r.ancestors){let u=r.ancestors[r.ancestors.length-1];u&&(r.place=u.position)}let o=r.place&&"start"in r.place?r.place.start:r.place;this.ancestors=r.ancestors||void 0,this.cause=r.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file="",this.message=l,this.line=o?o.line:void 0,this.name=ji(r.place)||"1:1",this.place=r.place||void 0,this.reason=this.message,this.ruleId=r.ruleId||void 0,this.source=r.source||void 0,this.stack=a&&r.cause&&typeof r.cause.stack=="string"?r.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}};ne.prototype.file="";ne.prototype.name="";ne.prototype.reason="";ne.prototype.message="";ne.prototype.stack="";ne.prototype.column=void 0;ne.prototype.line=void 0;ne.prototype.ancestors=void 0;ne.prototype.cause=void 0;ne.prototype.fatal=void 0;ne.prototype.place=void 0;ne.prototype.ruleId=void 0;ne.prototype.source=void 0;var Rp={}.hasOwnProperty,Dw=new Map,zw=/[A-Z]/g,_w=new Set(["table","tbody","thead","tfoot","tr"]),Ow=new Set(["td","th"]),av="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Np(t,e){if(!e||e.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");let n=e.filePath||void 0,i;if(e.development){if(typeof e.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");i=Yw(n,e.jsxDEV)}else{if(typeof e.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof e.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");i=jw(n,e.jsx,e.jsxs)}let l={Fragment:e.Fragment,ancestors:[],components:e.components||{},create:i,elementAttributeNameCase:e.elementAttributeNameCase||"react",evaluater:e.createEvaluater?e.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:e.ignoreInvalidStyle||!1,passKeys:e.passKeys!==!1,passNode:e.passNode||!1,schema:e.space==="svg"?Zu:Vb,stylePropertyNameCase:e.stylePropertyNameCase||"dom",tableCellAlignToStyle:e.tableCellAlignToStyle!==!1},r=ov(l,t,void 0);return r&&typeof r!="string"?r:l.create(t,l.Fragment,{children:r||void 0},void 0)}function ov(t,e,n){if(e.type==="element")return Lw(t,e,n);if(e.type==="mdxFlowExpression"||e.type==="mdxTextExpression")return Bw(t,e);if(e.type==="mdxJsxFlowElement"||e.type==="mdxJsxTextElement")return Hw(t,e,n);if(e.type==="mdxjsEsm")return Uw(t,e);if(e.type==="root")return qw(t,e,n);if(e.type==="text")return Iw(t,e)}function Lw(t,e,n){let i=t.schema,l=i;e.tagName.toLowerCase()==="svg"&&i.space==="html"&&(l=Zu,t.schema=l),t.ancestors.push(e);let r=sv(t,e.tagName,!1),a=Vw(t,e),o=Dp(t,e);return _w.has(e.tagName)&&(o=o.filter(function(u){return typeof u=="string"?!hp(u):!0})),uv(t,a,r,e),Mp(a,o),t.ancestors.pop(),t.schema=i,t.create(e,r,a,n)}function Bw(t,e){if(e.data&&e.data.estree&&t.evaluater){let i=e.data.estree.body[0];return i.type,t.evaluater.evaluateExpression(i.expression)}to(t,e.position)}function Uw(t,e){if(e.data&&e.data.estree&&t.evaluater)return t.evaluater.evaluateProgram(e.data.estree);to(t,e.position)}function Hw(t,e,n){let i=t.schema,l=i;e.name==="svg"&&i.space==="html"&&(l=Zu,t.schema=l),t.ancestors.push(e);let r=e.name===null?t.Fragment:sv(t,e.name,!0),a=Fw(t,e),o=Dp(t,e);return uv(t,a,r,e),Mp(a,o),t.ancestors.pop(),t.schema=i,t.create(e,r,a,n)}function qw(t,e,n){let i={};return Mp(i,Dp(t,e)),t.create(e,t.Fragment,i,n)}function Iw(t,e){return e.value}function uv(t,e,n,i){typeof n!="string"&&n!==t.Fragment&&t.passNode&&(e.node=i)}function Mp(t,e){if(e.length>0){let n=e.length>1?e:e[0];n&&(t.children=n)}}function jw(t,e,n){return i;function i(l,r,a,o){let s=Array.isArray(a.children)?n:e;return o?s(r,a,o):s(r,a)}}function Yw(t,e){return n;function n(i,l,r,a){let o=Array.isArray(r.children),u=Nr(i);return e(l,r,a,o,{columnNumber:u?u.column-1:void 0,fileName:t,lineNumber:u?u.line:void 0},void 0)}}function Vw(t,e){let n={},i,l;for(l in e.properties)if(l!=="children"&&Rp.call(e.properties,l)){let r=Qw(t,l,e.properties[l]);if(r){let[a,o]=r;t.tableCellAlignToStyle&&a==="align"&&typeof o=="string"&&Ow.has(e.tagName)?i=o:n[a]=o}}if(i){let r=n.style||(n.style={});r[t.stylePropertyNameCase==="css"?"text-align":"textAlign"]=i}return n}function Fw(t,e){let n={};for(let i of e.attributes)if(i.type==="mdxJsxExpressionAttribute")if(i.data&&i.data.estree&&t.evaluater){let r=i.data.estree.body[0];r.type;let a=r.expression;a.type;let o=a.properties[0];o.type,Object.assign(n,t.evaluater.evaluateExpression(o.argument))}else to(t,e.position);else{let l=i.name,r;if(i.value&&typeof i.value=="object")if(i.value.data&&i.value.data.estree&&t.evaluater){let o=i.value.data.estree.body[0];o.type,r=t.evaluater.evaluateExpression(o.expression)}else to(t,e.position);else r=i.value===null?!0:i.value;n[l]=r}return n}function Dp(t,e){let n=[],i=-1,l=t.passKeys?new Map:Dw;for(;++i<e.children.length;){let r=e.children[i],a;if(t.passKeys){let u=r.type==="element"?r.tagName:r.type==="mdxJsxFlowElement"||r.type==="mdxJsxTextElement"?r.name:void 0;if(u){let s=l.get(u)||0;a=u+"-"+s,l.set(u,s+1)}}let o=ov(t,r,a);o!==void 0&&n.push(o)}return n}function Qw(t,e,n){let i=wp(t.schema,e);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=i.commaSeparated?Ub(n):Fb(n)),i.property==="style"){let l=typeof n=="object"?n:Xw(t,String(n));return t.stylePropertyNameCase==="css"&&(l=Gw(l)),["style",l]}return[t.elementAttributeNameCase==="react"&&i.space?kp[i.property]||i.property:i.attribute,n]}}function Xw(t,e){try{return(0,rv.default)(e,{reactCompat:!0})}catch(n){if(t.ignoreInvalidStyle)return{};let i=n,l=new ne("Cannot parse `style` attribute",{ancestors:t.ancestors,cause:i,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw l.file=t.filePath||void 0,l.url=av+"#cannot-parse-style-attribute",l}}function sv(t,e,n){let i;if(!n)i={type:"Literal",value:e};else if(e.includes(".")){let l=e.split("."),r=-1,a;for(;++r<l.length;){let o=Fu(l[r])?{type:"Identifier",name:l[r]}:{type:"Literal",value:l[r]};a=a?{type:"MemberExpression",object:a,property:o,computed:!!(r&&o.type==="Literal"),optional:!1}:o}i=a}else i=Fu(e)&&!/^[a-z]/.test(e)?{type:"Identifier",name:e}:{type:"Literal",value:e};if(i.type==="Literal"){let l=i.value;return Rp.call(t.components,l)?t.components[l]:l}if(t.evaluater)return t.evaluater.evaluateExpression(i);to(t)}function to(t,e){let n=new ne("Cannot handle MDX estrees without `createEvaluater`",{ancestors:t.ancestors,place:e,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=t.filePath||void 0,n.url=av+"#cannot-handle-mdx-estrees-without-createevaluater",n}function Gw(t){let e={},n;for(n in t)Rp.call(t,n)&&(e[Zw(n)]=t[n]);return e}function Zw(t){let e=t.replace(zw,Kw);return e.slice(0,3)==="ms-"&&(e="-"+e),e}function Kw(t){return"-"+t.toLowerCase()}var eo={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"]};var Or=I(tt(),1),H1=I(le(),1);var Ww={};function Sl(t,e){let n=e||Ww,i=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,l=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return mv(t,i,l)}function mv(t,e,n){if($w(t)){if("value"in t)return t.type==="html"&&!n?"":t.value;if(e&&"alt"in t&&t.alt)return t.alt;if("children"in t)return dv(t.children,e,n)}return Array.isArray(t)?dv(t,e,n):""}function dv(t,e,n){let i=[],l=-1;for(;++l<t.length;)i[l]=mv(t[l],e,n);return i.join("")}function $w(t){return!!(t&&typeof t=="object")}var hv=document.createElement("i");function Mr(t){let e="&"+t+";";hv.innerHTML=e;let n=hv.textContent;return n.charCodeAt(n.length-1)===59&&t!=="semi"||n===e?!1:n}function ie(t,e,n,i){let l=t.length,r=0,a;if(e<0?e=-e>l?0:l+e:e=e>l?l:e,n=n>0?n:0,i.length<1e4)a=Array.from(i),a.unshift(e,n),t.splice(...a);else for(n&&t.splice(e,n);r<i.length;)a=i.slice(r,r+1e4),a.unshift(e,0),t.splice(...a),r+=1e4,e+=1e4}function Ie(t,e){return t.length>0?(ie(t,t.length,0,e),t):e}var gv={}.hasOwnProperty;function Wu(t){let e={},n=-1;for(;++n<t.length;)tE(e,t[n]);return e}function tE(t,e){let n;for(n in e){let l=(gv.call(t,n)?t[n]:void 0)||(t[n]={}),r=e[n],a;if(r)for(a in r){gv.call(l,a)||(l[a]=[]);let o=r[a];eE(l[a],Array.isArray(o)?o:o?[o]:[])}}}function eE(t,e){let n=-1,i=[];for(;++n<e.length;)(e[n].add==="after"?t:i).push(e[n]);ie(t,0,0,i)}function $u(t,e){let n=Number.parseInt(t,e);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?"\uFFFD":String.fromCodePoint(n)}function Ne(t){return t.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}var de=Yi(/[A-Za-z]/),Jt=Yi(/[\dA-Za-z]/),yv=Yi(/[#-'*+\--9=?A-Z^-~]/);function kl(t){return t!==null&&(t<32||t===127)}var no=Yi(/\d/),bv=Yi(/[\dA-Fa-f]/),vv=Yi(/[!-/:-@[-`{-~]/);function B(t){return t!==null&&t<-2}function ut(t){return t!==null&&(t<0||t===32)}function Z(t){return t===-2||t===-1||t===32}var wl=Yi(/\p{P}|\p{S}/u),Hn=Yi(/\s/);function Yi(t){return e;function e(n){return n!==null&&n>-1&&t.test(String.fromCharCode(n))}}function xn(t){let e=[],n=-1,i=0,l=0;for(;++n<t.length;){let r=t.charCodeAt(n),a="";if(r===37&&Jt(t.charCodeAt(n+1))&&Jt(t.charCodeAt(n+2)))l=2;else if(r<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(r))||(a=String.fromCharCode(r));else if(r>55295&&r<57344){let o=t.charCodeAt(n+1);r<56320&&o>56319&&o<57344?(a=String.fromCharCode(r,o),l=1):a="\uFFFD"}else a=String.fromCharCode(r);a&&(e.push(t.slice(i,n),encodeURIComponent(a)),i=n+l+1,a=""),l&&(n+=l,l=0)}return e.join("")+t.slice(i)}function X(t,e,n,i){let l=i?i-1:Number.POSITIVE_INFINITY,r=0;return a;function a(u){return Z(u)?(t.enter(n),o(u)):e(u)}function o(u){return Z(u)&&r++<l?(t.consume(u),o):(t.exit(n),e(u))}}var xv={tokenize:nE};function nE(t){let e=t.attempt(this.parser.constructs.contentInitial,i,l),n;return e;function i(o){if(o===null){t.consume(o);return}return t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),X(t,e,"linePrefix")}function l(o){return t.enter("paragraph"),r(o)}function r(o){let u=t.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=u),n=u,a(o)}function a(o){if(o===null){t.exit("chunkText"),t.exit("paragraph"),t.consume(o);return}return B(o)?(t.consume(o),t.exit("chunkText"),r):(t.consume(o),a)}}var kv={tokenize:iE},Sv={tokenize:lE};function iE(t){let e=this,n=[],i=0,l,r,a;return o;function o(y){if(i<n.length){let k=n[i];return e.containerState=k[1],t.attempt(k[0].continuation,u,s)(y)}return s(y)}function u(y){if(i++,e.containerState._closeFlow){e.containerState._closeFlow=void 0,l&&h();let k=e.events.length,A=k,w;for(;A--;)if(e.events[A][0]==="exit"&&e.events[A][1].type==="chunkFlow"){w=e.events[A][1].end;break}m(i);let D=k;for(;D<e.events.length;)e.events[D][1].end={...w},D++;return ie(e.events,A+1,0,e.events.slice(k)),e.events.length=D,s(y)}return o(y)}function s(y){if(i===n.length){if(!l)return d(y);if(l.currentConstruct&&l.currentConstruct.concrete)return g(y);e.interrupt=!!(l.currentConstruct&&!l._gfmTableDynamicInterruptHack)}return e.containerState={},t.check(Sv,c,f)(y)}function c(y){return l&&h(),m(i),d(y)}function f(y){return e.parser.lazy[e.now().line]=i!==n.length,a=e.now().offset,g(y)}function d(y){return e.containerState={},t.attempt(Sv,p,g)(y)}function p(y){return i++,n.push([e.currentConstruct,e.containerState]),d(y)}function g(y){if(y===null){l&&h(),m(0),t.consume(y);return}return l=l||e.parser.flow(e.now()),t.enter("chunkFlow",{_tokenizer:l,contentType:"flow",previous:r}),b(y)}function b(y){if(y===null){T(t.exit("chunkFlow"),!0),m(0),t.consume(y);return}return B(y)?(t.consume(y),T(t.exit("chunkFlow")),i=0,e.interrupt=void 0,o):(t.consume(y),b)}function T(y,k){let A=e.sliceStream(y);if(k&&A.push(null),y.previous=r,r&&(r.next=y),r=y,l.defineSkip(y.start),l.write(A),e.parser.lazy[y.start.line]){let w=l.events.length;for(;w--;)if(l.events[w][1].start.offset<a&&(!l.events[w][1].end||l.events[w][1].end.offset>a))return;let D=e.events.length,_=D,U,S;for(;_--;)if(e.events[_][0]==="exit"&&e.events[_][1].type==="chunkFlow"){if(U){S=e.events[_][1].end;break}U=!0}for(m(i),w=D;w<e.events.length;)e.events[w][1].end={...S},w++;ie(e.events,_+1,0,e.events.slice(D)),e.events.length=w}}function m(y){let k=n.length;for(;k-- >y;){let A=n[k];e.containerState=A[1],A[0].exit.call(e,t)}n.length=y}function h(){l.write([null]),r=void 0,l=void 0,e.containerState._closeFlow=void 0}}function lE(t,e,n){return X(t,t.attempt(this.parser.constructs.document,e,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function si(t){if(t===null||ut(t)||Hn(t))return 1;if(wl(t))return 2}function Vi(t,e,n){let i=[],l=-1;for(;++l<t.length;){let r=t[l].resolveAll;r&&!i.includes(r)&&(e=r(e,n),i.push(r))}return e}var io={name:"attention",resolveAll:rE,tokenize:aE};function rE(t,e){let n=-1,i,l,r,a,o,u,s,c;for(;++n<t.length;)if(t[n][0]==="enter"&&t[n][1].type==="attentionSequence"&&t[n][1]._close){for(i=n;i--;)if(t[i][0]==="exit"&&t[i][1].type==="attentionSequence"&&t[i][1]._open&&e.sliceSerialize(t[i][1]).charCodeAt(0)===e.sliceSerialize(t[n][1]).charCodeAt(0)){if((t[i][1]._close||t[n][1]._open)&&(t[n][1].end.offset-t[n][1].start.offset)%3&&!((t[i][1].end.offset-t[i][1].start.offset+t[n][1].end.offset-t[n][1].start.offset)%3))continue;u=t[i][1].end.offset-t[i][1].start.offset>1&&t[n][1].end.offset-t[n][1].start.offset>1?2:1;let f={...t[i][1].end},d={...t[n][1].start};wv(f,-u),wv(d,u),a={type:u>1?"strongSequence":"emphasisSequence",start:f,end:{...t[i][1].end}},o={type:u>1?"strongSequence":"emphasisSequence",start:{...t[n][1].start},end:d},r={type:u>1?"strongText":"emphasisText",start:{...t[i][1].end},end:{...t[n][1].start}},l={type:u>1?"strong":"emphasis",start:{...a.start},end:{...o.end}},t[i][1].end={...a.start},t[n][1].start={...o.end},s=[],t[i][1].end.offset-t[i][1].start.offset&&(s=Ie(s,[["enter",t[i][1],e],["exit",t[i][1],e]])),s=Ie(s,[["enter",l,e],["enter",a,e],["exit",a,e],["enter",r,e]]),s=Ie(s,Vi(e.parser.constructs.insideSpan.null,t.slice(i+1,n),e)),s=Ie(s,[["exit",r,e],["enter",o,e],["exit",o,e],["exit",l,e]]),t[n][1].end.offset-t[n][1].start.offset?(c=2,s=Ie(s,[["enter",t[n][1],e],["exit",t[n][1],e]])):c=0,ie(t,i-1,n-i+3,s),n=i+s.length-c-2;break}}for(n=-1;++n<t.length;)t[n][1].type==="attentionSequence"&&(t[n][1].type="data");return t}function aE(t,e){let n=this.parser.constructs.attentionMarkers.null,i=this.previous,l=si(i),r;return a;function a(u){return r=u,t.enter("attentionSequence"),o(u)}function o(u){if(u===r)return t.consume(u),o;let s=t.exit("attentionSequence"),c=si(u),f=!c||c===2&&l||n.includes(u),d=!l||l===2&&c||n.includes(i);return s._open=!!(r===42?f:f&&(l||!d)),s._close=!!(r===42?d:d&&(c||!f)),e(u)}}function wv(t,e){t.column+=e,t.offset+=e,t._bufferIndex+=e}var zp={name:"autolink",tokenize:oE};function oE(t,e,n){let i=0;return l;function l(p){return t.enter("autolink"),t.enter("autolinkMarker"),t.consume(p),t.exit("autolinkMarker"),t.enter("autolinkProtocol"),r}function r(p){return de(p)?(t.consume(p),a):p===64?n(p):s(p)}function a(p){return p===43||p===45||p===46||Jt(p)?(i=1,o(p)):s(p)}function o(p){return p===58?(t.consume(p),i=0,u):(p===43||p===45||p===46||Jt(p))&&i++<32?(t.consume(p),o):(i=0,s(p))}function u(p){return p===62?(t.exit("autolinkProtocol"),t.enter("autolinkMarker"),t.consume(p),t.exit("autolinkMarker"),t.exit("autolink"),e):p===null||p===32||p===60||kl(p)?n(p):(t.consume(p),u)}function s(p){return p===64?(t.consume(p),c):yv(p)?(t.consume(p),s):n(p)}function c(p){return Jt(p)?f(p):n(p)}function f(p){return p===46?(t.consume(p),i=0,c):p===62?(t.exit("autolinkProtocol").type="autolinkEmail",t.enter("autolinkMarker"),t.consume(p),t.exit("autolinkMarker"),t.exit("autolink"),e):d(p)}function d(p){if((p===45||Jt(p))&&i++<63){let g=p===45?d:f;return t.consume(p),g}return n(p)}}var qn={partial:!0,tokenize:uE};function uE(t,e,n){return i;function i(r){return Z(r)?X(t,l,"linePrefix")(r):l(r)}function l(r){return r===null||B(r)?e(r):n(r)}}var ts={continuation:{tokenize:cE},exit:fE,name:"blockQuote",tokenize:sE};function sE(t,e,n){let i=this;return l;function l(a){if(a===62){let o=i.containerState;return o.open||(t.enter("blockQuote",{_container:!0}),o.open=!0),t.enter("blockQuotePrefix"),t.enter("blockQuoteMarker"),t.consume(a),t.exit("blockQuoteMarker"),r}return n(a)}function r(a){return Z(a)?(t.enter("blockQuotePrefixWhitespace"),t.consume(a),t.exit("blockQuotePrefixWhitespace"),t.exit("blockQuotePrefix"),e):(t.exit("blockQuotePrefix"),e(a))}}function cE(t,e,n){let i=this;return l;function l(a){return Z(a)?X(t,r,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a):r(a)}function r(a){return t.attempt(ts,e,n)(a)}}function fE(t){t.exit("blockQuote")}var es={name:"characterEscape",tokenize:pE};function pE(t,e,n){return i;function i(r){return t.enter("characterEscape"),t.enter("escapeMarker"),t.consume(r),t.exit("escapeMarker"),l}function l(r){return vv(r)?(t.enter("characterEscapeValue"),t.consume(r),t.exit("characterEscapeValue"),t.exit("characterEscape"),e):n(r)}}var ns={name:"characterReference",tokenize:dE};function dE(t,e,n){let i=this,l=0,r,a;return o;function o(f){return t.enter("characterReference"),t.enter("characterReferenceMarker"),t.consume(f),t.exit("characterReferenceMarker"),u}function u(f){return f===35?(t.enter("characterReferenceMarkerNumeric"),t.consume(f),t.exit("characterReferenceMarkerNumeric"),s):(t.enter("characterReferenceValue"),r=31,a=Jt,c(f))}function s(f){return f===88||f===120?(t.enter("characterReferenceMarkerHexadecimal"),t.consume(f),t.exit("characterReferenceMarkerHexadecimal"),t.enter("characterReferenceValue"),r=6,a=bv,c):(t.enter("characterReferenceValue"),r=7,a=no,c(f))}function c(f){if(f===59&&l){let d=t.exit("characterReferenceValue");return a===Jt&&!Mr(i.sliceSerialize(d))?n(f):(t.enter("characterReferenceMarker"),t.consume(f),t.exit("characterReferenceMarker"),t.exit("characterReference"),e)}return a(f)&&l++<r?(t.consume(f),c):n(f)}}var Ev={partial:!0,tokenize:hE},is={concrete:!0,name:"codeFenced",tokenize:mE};function mE(t,e,n){let i=this,l={partial:!0,tokenize:A},r=0,a=0,o;return u;function u(w){return s(w)}function s(w){let D=i.events[i.events.length-1];return r=D&&D[1].type==="linePrefix"?D[2].sliceSerialize(D[1],!0).length:0,o=w,t.enter("codeFenced"),t.enter("codeFencedFence"),t.enter("codeFencedFenceSequence"),c(w)}function c(w){return w===o?(a++,t.consume(w),c):a<3?n(w):(t.exit("codeFencedFenceSequence"),Z(w)?X(t,f,"whitespace")(w):f(w))}function f(w){return w===null||B(w)?(t.exit("codeFencedFence"),i.interrupt?e(w):t.check(Ev,b,k)(w)):(t.enter("codeFencedFenceInfo"),t.enter("chunkString",{contentType:"string"}),d(w))}function d(w){return w===null||B(w)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),f(w)):Z(w)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),X(t,p,"whitespace")(w)):w===96&&w===o?n(w):(t.consume(w),d)}function p(w){return w===null||B(w)?f(w):(t.enter("codeFencedFenceMeta"),t.enter("chunkString",{contentType:"string"}),g(w))}function g(w){return w===null||B(w)?(t.exit("chunkString"),t.exit("codeFencedFenceMeta"),f(w)):w===96&&w===o?n(w):(t.consume(w),g)}function b(w){return t.attempt(l,k,T)(w)}function T(w){return t.enter("lineEnding"),t.consume(w),t.exit("lineEnding"),m}function m(w){return r>0&&Z(w)?X(t,h,"linePrefix",r+1)(w):h(w)}function h(w){return w===null||B(w)?t.check(Ev,b,k)(w):(t.enter("codeFlowValue"),y(w))}function y(w){return w===null||B(w)?(t.exit("codeFlowValue"),h(w)):(t.consume(w),y)}function k(w){return t.exit("codeFenced"),e(w)}function A(w,D,_){let U=0;return S;function S(W){return w.enter("lineEnding"),w.consume(W),w.exit("lineEnding"),nt}function nt(W){return w.enter("codeFencedFence"),Z(W)?X(w,K,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(W):K(W)}function K(W){return W===o?(w.enter("codeFencedFenceSequence"),Y(W)):_(W)}function Y(W){return W===o?(U++,w.consume(W),Y):U>=a?(w.exit("codeFencedFenceSequence"),Z(W)?X(w,G,"whitespace")(W):G(W)):_(W)}function G(W){return W===null||B(W)?(w.exit("codeFencedFence"),D(W)):_(W)}}}function hE(t,e,n){let i=this;return l;function l(a){return a===null?n(a):(t.enter("lineEnding"),t.consume(a),t.exit("lineEnding"),r)}function r(a){return i.parser.lazy[i.now().line]?n(a):e(a)}}var lo={name:"codeIndented",tokenize:yE},gE={partial:!0,tokenize:bE};function yE(t,e,n){let i=this;return l;function l(s){return t.enter("codeIndented"),X(t,r,"linePrefix",5)(s)}function r(s){let c=i.events[i.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?a(s):n(s)}function a(s){return s===null?u(s):B(s)?t.attempt(gE,a,u)(s):(t.enter("codeFlowValue"),o(s))}function o(s){return s===null||B(s)?(t.exit("codeFlowValue"),a(s)):(t.consume(s),o)}function u(s){return t.exit("codeIndented"),e(s)}}function bE(t,e,n){let i=this;return l;function l(a){return i.parser.lazy[i.now().line]?n(a):B(a)?(t.enter("lineEnding"),t.consume(a),t.exit("lineEnding"),l):X(t,r,"linePrefix",5)(a)}function r(a){let o=i.events[i.events.length-1];return o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?e(a):B(a)?l(a):n(a)}}var _p={name:"codeText",previous:xE,resolve:vE,tokenize:SE};function vE(t){let e=t.length-4,n=3,i,l;if((t[n][1].type==="lineEnding"||t[n][1].type==="space")&&(t[e][1].type==="lineEnding"||t[e][1].type==="space")){for(i=n;++i<e;)if(t[i][1].type==="codeTextData"){t[n][1].type="codeTextPadding",t[e][1].type="codeTextPadding",n+=2,e-=2;break}}for(i=n-1,e++;++i<=e;)l===void 0?i!==e&&t[i][1].type!=="lineEnding"&&(l=i):(i===e||t[i][1].type==="lineEnding")&&(t[l][1].type="codeTextData",i!==l+2&&(t[l][1].end=t[i-1][1].end,t.splice(l+2,i-l-2),e-=i-l-2,i=l+2),l=void 0);return t}function xE(t){return t!==96||this.events[this.events.length-1][1].type==="characterEscape"}function SE(t,e,n){let i=this,l=0,r,a;return o;function o(d){return t.enter("codeText"),t.enter("codeTextSequence"),u(d)}function u(d){return d===96?(t.consume(d),l++,u):(t.exit("codeTextSequence"),s(d))}function s(d){return d===null?n(d):d===32?(t.enter("space"),t.consume(d),t.exit("space"),s):d===96?(a=t.enter("codeTextSequence"),r=0,f(d)):B(d)?(t.enter("lineEnding"),t.consume(d),t.exit("lineEnding"),s):(t.enter("codeTextData"),c(d))}function c(d){return d===null||d===32||d===96||B(d)?(t.exit("codeTextData"),s(d)):(t.consume(d),c)}function f(d){return d===96?(t.consume(d),r++,f):r===l?(t.exit("codeTextSequence"),t.exit("codeText"),e(d)):(a.type="codeTextData",c(d))}}var ls=class{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,n){let i=n??Number.POSITIVE_INFINITY;return i<this.left.length?this.left.slice(e,i):e>this.left.length?this.right.slice(this.right.length-i+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-i+this.left.length).reverse())}splice(e,n,i){let l=n||0;this.setCursor(Math.trunc(e));let r=this.right.splice(this.right.length-l,Number.POSITIVE_INFINITY);return i&&ro(this.left,i),r.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(e){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(e)}pushMany(e){this.setCursor(Number.POSITIVE_INFINITY),ro(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),ro(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&this.right.length===0||e<0&&this.left.length===0))if(e<this.left.length){let n=this.left.splice(e,Number.POSITIVE_INFINITY);ro(this.right,n.reverse())}else{let n=this.right.splice(this.left.length+this.right.length-e,Number.POSITIVE_INFINITY);ro(this.left,n.reverse())}}};function ro(t,e){let n=0;if(e.length<1e4)t.push(...e);else for(;n<e.length;)t.push(...e.slice(n,n+1e4)),n+=1e4}function rs(t){let e={},n=-1,i,l,r,a,o,u,s,c=new ls(t);for(;++n<c.length;){for(;n in e;)n=e[n];if(i=c.get(n),n&&i[1].type==="chunkFlow"&&c.get(n-1)[1].type==="listItemPrefix"&&(u=i[1]._tokenizer.events,r=0,r<u.length&&u[r][1].type==="lineEndingBlank"&&(r+=2),r<u.length&&u[r][1].type==="content"))for(;++r<u.length&&u[r][1].type!=="content";)u[r][1].type==="chunkText"&&(u[r][1]._isInFirstContentOfListItem=!0,r++);if(i[0]==="enter")i[1].contentType&&(Object.assign(e,kE(c,n)),n=e[n],s=!0);else if(i[1]._container){for(r=n,l=void 0;r--;)if(a=c.get(r),a[1].type==="lineEnding"||a[1].type==="lineEndingBlank")a[0]==="enter"&&(l&&(c.get(l)[1].type="lineEndingBlank"),a[1].type="lineEnding",l=r);else if(!(a[1].type==="linePrefix"||a[1].type==="listItemIndent"))break;l&&(i[1].end={...c.get(l)[1].start},o=c.slice(l,n),o.unshift(i),c.splice(l,n-l+1,o))}}return ie(t,0,Number.POSITIVE_INFINITY,c.slice(0)),!s}function kE(t,e){let n=t.get(e)[1],i=t.get(e)[2],l=e-1,r=[],a=n._tokenizer;a||(a=i.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(a._contentTypeTextTrailing=!0));let o=a.events,u=[],s={},c,f,d=-1,p=n,g=0,b=0,T=[b];for(;p;){for(;t.get(++l)[1]!==p;);r.push(l),p._tokenizer||(c=i.sliceStream(p),p.next||c.push(null),f&&a.defineSkip(p.start),p._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=!0),a.write(c),p._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=void 0)),f=p,p=p.next}for(p=n;++d<o.length;)o[d][0]==="exit"&&o[d-1][0]==="enter"&&o[d][1].type===o[d-1][1].type&&o[d][1].start.line!==o[d][1].end.line&&(b=d+1,T.push(b),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(a.events=[],p?(p._tokenizer=void 0,p.previous=void 0):T.pop(),d=T.length;d--;){let m=o.slice(T[d],T[d+1]),h=r.pop();u.push([h,h+m.length-1]),t.splice(h,2,m)}for(u.reverse(),d=-1;++d<u.length;)s[g+u[d][0]]=g+u[d][1],g+=u[d][1]-u[d][0]-1;return s}var Op={resolve:EE,tokenize:TE},wE={partial:!0,tokenize:AE};function EE(t){return rs(t),t}function TE(t,e){let n;return i;function i(o){return t.enter("content"),n=t.enter("chunkContent",{contentType:"content"}),l(o)}function l(o){return o===null?r(o):B(o)?t.check(wE,a,r)(o):(t.consume(o),l)}function r(o){return t.exit("chunkContent"),t.exit("content"),e(o)}function a(o){return t.consume(o),t.exit("chunkContent"),n.next=t.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,l}}function AE(t,e,n){let i=this;return l;function l(a){return t.exit("chunkContent"),t.enter("lineEnding"),t.consume(a),t.exit("lineEnding"),X(t,r,"linePrefix")}function r(a){if(a===null||B(a))return n(a);let o=i.events[i.events.length-1];return!i.parser.constructs.disable.null.includes("codeIndented")&&o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?e(a):t.interrupt(i.parser.constructs.flow,n,e)(a)}}function as(t,e,n,i,l,r,a,o,u){let s=u||Number.POSITIVE_INFINITY,c=0;return f;function f(m){return m===60?(t.enter(i),t.enter(l),t.enter(r),t.consume(m),t.exit(r),d):m===null||m===32||m===41||kl(m)?n(m):(t.enter(i),t.enter(a),t.enter(o),t.enter("chunkString",{contentType:"string"}),b(m))}function d(m){return m===62?(t.enter(r),t.consume(m),t.exit(r),t.exit(l),t.exit(i),e):(t.enter(o),t.enter("chunkString",{contentType:"string"}),p(m))}function p(m){return m===62?(t.exit("chunkString"),t.exit(o),d(m)):m===null||m===60||B(m)?n(m):(t.consume(m),m===92?g:p)}function g(m){return m===60||m===62||m===92?(t.consume(m),p):p(m)}function b(m){return!c&&(m===null||m===41||ut(m))?(t.exit("chunkString"),t.exit(o),t.exit(a),t.exit(i),e(m)):c<s&&m===40?(t.consume(m),c++,b):m===41?(t.consume(m),c--,b):m===null||m===32||m===40||kl(m)?n(m):(t.consume(m),m===92?T:b)}function T(m){return m===40||m===41||m===92?(t.consume(m),b):b(m)}}function os(t,e,n,i,l,r){let a=this,o=0,u;return s;function s(p){return t.enter(i),t.enter(l),t.consume(p),t.exit(l),t.enter(r),c}function c(p){return o>999||p===null||p===91||p===93&&!u||p===94&&!o&&"_hiddenFootnoteSupport"in a.parser.constructs?n(p):p===93?(t.exit(r),t.enter(l),t.consume(p),t.exit(l),t.exit(i),e):B(p)?(t.enter("lineEnding"),t.consume(p),t.exit("lineEnding"),c):(t.enter("chunkString",{contentType:"string"}),f(p))}function f(p){return p===null||p===91||p===93||B(p)||o++>999?(t.exit("chunkString"),c(p)):(t.consume(p),u||(u=!Z(p)),p===92?d:f)}function d(p){return p===91||p===92||p===93?(t.consume(p),o++,f):f(p)}}function us(t,e,n,i,l,r){let a;return o;function o(d){return d===34||d===39||d===40?(t.enter(i),t.enter(l),t.consume(d),t.exit(l),a=d===40?41:d,u):n(d)}function u(d){return d===a?(t.enter(l),t.consume(d),t.exit(l),t.exit(i),e):(t.enter(r),s(d))}function s(d){return d===a?(t.exit(r),u(a)):d===null?n(d):B(d)?(t.enter("lineEnding"),t.consume(d),t.exit("lineEnding"),X(t,s,"linePrefix")):(t.enter("chunkString",{contentType:"string"}),c(d))}function c(d){return d===a||d===null||B(d)?(t.exit("chunkString"),s(d)):(t.consume(d),d===92?f:c)}function f(d){return d===a||d===92?(t.consume(d),c):c(d)}}function El(t,e){let n;return i;function i(l){return B(l)?(t.enter("lineEnding"),t.consume(l),t.exit("lineEnding"),n=!0,i):Z(l)?X(t,i,n?"linePrefix":"lineSuffix")(l):e(l)}}var Lp={name:"definition",tokenize:RE},CE={partial:!0,tokenize:NE};function RE(t,e,n){let i=this,l;return r;function r(p){return t.enter("definition"),a(p)}function a(p){return os.call(i,t,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function o(p){return l=Ne(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),p===58?(t.enter("definitionMarker"),t.consume(p),t.exit("definitionMarker"),u):n(p)}function u(p){return ut(p)?El(t,s)(p):s(p)}function s(p){return as(t,c,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function c(p){return t.attempt(CE,f,f)(p)}function f(p){return Z(p)?X(t,d,"whitespace")(p):d(p)}function d(p){return p===null||B(p)?(t.exit("definition"),i.parser.defined.push(l),e(p)):n(p)}}function NE(t,e,n){return i;function i(o){return ut(o)?El(t,l)(o):n(o)}function l(o){return us(t,r,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(o)}function r(o){return Z(o)?X(t,a,"whitespace")(o):a(o)}function a(o){return o===null||B(o)?e(o):n(o)}}var Bp={name:"hardBreakEscape",tokenize:ME};function ME(t,e,n){return i;function i(r){return t.enter("hardBreakEscape"),t.consume(r),l}function l(r){return B(r)?(t.exit("hardBreakEscape"),e(r)):n(r)}}var Up={name:"headingAtx",resolve:DE,tokenize:zE};function DE(t,e){let n=t.length-2,i=3,l,r;return t[i][1].type==="whitespace"&&(i+=2),n-2>i&&t[n][1].type==="whitespace"&&(n-=2),t[n][1].type==="atxHeadingSequence"&&(i===n-1||n-4>i&&t[n-2][1].type==="whitespace")&&(n-=i+1===n?2:4),n>i&&(l={type:"atxHeadingText",start:t[i][1].start,end:t[n][1].end},r={type:"chunkText",start:t[i][1].start,end:t[n][1].end,contentType:"text"},ie(t,i,n-i+1,[["enter",l,e],["enter",r,e],["exit",r,e],["exit",l,e]])),t}function zE(t,e,n){let i=0;return l;function l(c){return t.enter("atxHeading"),r(c)}function r(c){return t.enter("atxHeadingSequence"),a(c)}function a(c){return c===35&&i++<6?(t.consume(c),a):c===null||ut(c)?(t.exit("atxHeadingSequence"),o(c)):n(c)}function o(c){return c===35?(t.enter("atxHeadingSequence"),u(c)):c===null||B(c)?(t.exit("atxHeading"),e(c)):Z(c)?X(t,o,"whitespace")(c):(t.enter("atxHeadingText"),s(c))}function u(c){return c===35?(t.consume(c),u):(t.exit("atxHeadingSequence"),o(c))}function s(c){return c===null||c===35||ut(c)?(t.exit("atxHeadingText"),o(c)):(t.consume(c),s)}}var Tv=["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"],Hp=["pre","script","style","textarea"];var qp={concrete:!0,name:"htmlFlow",resolveTo:LE,tokenize:BE},_E={partial:!0,tokenize:HE},OE={partial:!0,tokenize:UE};function LE(t){let e=t.length;for(;e--&&!(t[e][0]==="enter"&&t[e][1].type==="htmlFlow"););return e>1&&t[e-2][1].type==="linePrefix"&&(t[e][1].start=t[e-2][1].start,t[e+1][1].start=t[e-2][1].start,t.splice(e-2,2)),t}function BE(t,e,n){let i=this,l,r,a,o,u;return s;function s(x){return c(x)}function c(x){return t.enter("htmlFlow"),t.enter("htmlFlowData"),t.consume(x),f}function f(x){return x===33?(t.consume(x),d):x===47?(t.consume(x),r=!0,b):x===63?(t.consume(x),l=3,i.interrupt?e:v):de(x)?(t.consume(x),a=String.fromCharCode(x),T):n(x)}function d(x){return x===45?(t.consume(x),l=2,p):x===91?(t.consume(x),l=5,o=0,g):de(x)?(t.consume(x),l=4,i.interrupt?e:v):n(x)}function p(x){return x===45?(t.consume(x),i.interrupt?e:v):n(x)}function g(x){let zt="CDATA[";return x===zt.charCodeAt(o++)?(t.consume(x),o===zt.length?i.interrupt?e:K:g):n(x)}function b(x){return de(x)?(t.consume(x),a=String.fromCharCode(x),T):n(x)}function T(x){if(x===null||x===47||x===62||ut(x)){let zt=x===47,H=a.toLowerCase();return!zt&&!r&&Hp.includes(H)?(l=1,i.interrupt?e(x):K(x)):Tv.includes(a.toLowerCase())?(l=6,zt?(t.consume(x),m):i.interrupt?e(x):K(x)):(l=7,i.interrupt&&!i.parser.lazy[i.now().line]?n(x):r?h(x):y(x))}return x===45||Jt(x)?(t.consume(x),a+=String.fromCharCode(x),T):n(x)}function m(x){return x===62?(t.consume(x),i.interrupt?e:K):n(x)}function h(x){return Z(x)?(t.consume(x),h):S(x)}function y(x){return x===47?(t.consume(x),S):x===58||x===95||de(x)?(t.consume(x),k):Z(x)?(t.consume(x),y):S(x)}function k(x){return x===45||x===46||x===58||x===95||Jt(x)?(t.consume(x),k):A(x)}function A(x){return x===61?(t.consume(x),w):Z(x)?(t.consume(x),A):y(x)}function w(x){return x===null||x===60||x===61||x===62||x===96?n(x):x===34||x===39?(t.consume(x),u=x,D):Z(x)?(t.consume(x),w):_(x)}function D(x){return x===u?(t.consume(x),u=null,U):x===null||B(x)?n(x):(t.consume(x),D)}function _(x){return x===null||x===34||x===39||x===47||x===60||x===61||x===62||x===96||ut(x)?A(x):(t.consume(x),_)}function U(x){return x===47||x===62||Z(x)?y(x):n(x)}function S(x){return x===62?(t.consume(x),nt):n(x)}function nt(x){return x===null||B(x)?K(x):Z(x)?(t.consume(x),nt):n(x)}function K(x){return x===45&&l===2?(t.consume(x),gt):x===60&&l===1?(t.consume(x),vt):x===62&&l===4?(t.consume(x),Nt):x===63&&l===3?(t.consume(x),v):x===93&&l===5?(t.consume(x),xe):B(x)&&(l===6||l===7)?(t.exit("htmlFlowData"),t.check(_E,Bt,Y)(x)):x===null||B(x)?(t.exit("htmlFlowData"),Y(x)):(t.consume(x),K)}function Y(x){return t.check(OE,G,Bt)(x)}function G(x){return t.enter("lineEnding"),t.consume(x),t.exit("lineEnding"),W}function W(x){return x===null||B(x)?Y(x):(t.enter("htmlFlowData"),K(x))}function gt(x){return x===45?(t.consume(x),v):K(x)}function vt(x){return x===47?(t.consume(x),a="",Vt):K(x)}function Vt(x){if(x===62){let zt=a.toLowerCase();return Hp.includes(zt)?(t.consume(x),Nt):K(x)}return de(x)&&a.length<8?(t.consume(x),a+=String.fromCharCode(x),Vt):K(x)}function xe(x){return x===93?(t.consume(x),v):K(x)}function v(x){return x===62?(t.consume(x),Nt):x===45&&l===2?(t.consume(x),v):K(x)}function Nt(x){return x===null||B(x)?(t.exit("htmlFlowData"),Bt(x)):(t.consume(x),Nt)}function Bt(x){return t.exit("htmlFlow"),e(x)}}function UE(t,e,n){let i=this;return l;function l(a){return B(a)?(t.enter("lineEnding"),t.consume(a),t.exit("lineEnding"),r):n(a)}function r(a){return i.parser.lazy[i.now().line]?n(a):e(a)}}function HE(t,e,n){return i;function i(l){return t.enter("lineEnding"),t.consume(l),t.exit("lineEnding"),t.attempt(qn,e,n)}}var Ip={name:"htmlText",tokenize:qE};function qE(t,e,n){let i=this,l,r,a;return o;function o(v){return t.enter("htmlText"),t.enter("htmlTextData"),t.consume(v),u}function u(v){return v===33?(t.consume(v),s):v===47?(t.consume(v),A):v===63?(t.consume(v),y):de(v)?(t.consume(v),_):n(v)}function s(v){return v===45?(t.consume(v),c):v===91?(t.consume(v),r=0,g):de(v)?(t.consume(v),h):n(v)}function c(v){return v===45?(t.consume(v),p):n(v)}function f(v){return v===null?n(v):v===45?(t.consume(v),d):B(v)?(a=f,vt(v)):(t.consume(v),f)}function d(v){return v===45?(t.consume(v),p):f(v)}function p(v){return v===62?gt(v):v===45?d(v):f(v)}function g(v){let Nt="CDATA[";return v===Nt.charCodeAt(r++)?(t.consume(v),r===Nt.length?b:g):n(v)}function b(v){return v===null?n(v):v===93?(t.consume(v),T):B(v)?(a=b,vt(v)):(t.consume(v),b)}function T(v){return v===93?(t.consume(v),m):b(v)}function m(v){return v===62?gt(v):v===93?(t.consume(v),m):b(v)}function h(v){return v===null||v===62?gt(v):B(v)?(a=h,vt(v)):(t.consume(v),h)}function y(v){return v===null?n(v):v===63?(t.consume(v),k):B(v)?(a=y,vt(v)):(t.consume(v),y)}function k(v){return v===62?gt(v):y(v)}function A(v){return de(v)?(t.consume(v),w):n(v)}function w(v){return v===45||Jt(v)?(t.consume(v),w):D(v)}function D(v){return B(v)?(a=D,vt(v)):Z(v)?(t.consume(v),D):gt(v)}function _(v){return v===45||Jt(v)?(t.consume(v),_):v===47||v===62||ut(v)?U(v):n(v)}function U(v){return v===47?(t.consume(v),gt):v===58||v===95||de(v)?(t.consume(v),S):B(v)?(a=U,vt(v)):Z(v)?(t.consume(v),U):gt(v)}function S(v){return v===45||v===46||v===58||v===95||Jt(v)?(t.consume(v),S):nt(v)}function nt(v){return v===61?(t.consume(v),K):B(v)?(a=nt,vt(v)):Z(v)?(t.consume(v),nt):U(v)}function K(v){return v===null||v===60||v===61||v===62||v===96?n(v):v===34||v===39?(t.consume(v),l=v,Y):B(v)?(a=K,vt(v)):Z(v)?(t.consume(v),K):(t.consume(v),G)}function Y(v){return v===l?(t.consume(v),l=void 0,W):v===null?n(v):B(v)?(a=Y,vt(v)):(t.consume(v),Y)}function G(v){return v===null||v===34||v===39||v===60||v===61||v===96?n(v):v===47||v===62||ut(v)?U(v):(t.consume(v),G)}function W(v){return v===47||v===62||ut(v)?U(v):n(v)}function gt(v){return v===62?(t.consume(v),t.exit("htmlTextData"),t.exit("htmlText"),e):n(v)}function vt(v){return t.exit("htmlTextData"),t.enter("lineEnding"),t.consume(v),t.exit("lineEnding"),Vt}function Vt(v){return Z(v)?X(t,xe,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(v):xe(v)}function xe(v){return t.enter("htmlTextData"),a(v)}}var Tl={name:"labelEnd",resolveAll:VE,resolveTo:FE,tokenize:QE},IE={tokenize:XE},jE={tokenize:GE},YE={tokenize:ZE};function VE(t){let e=-1,n=[];for(;++e<t.length;){let i=t[e][1];if(n.push(t[e]),i.type==="labelImage"||i.type==="labelLink"||i.type==="labelEnd"){let l=i.type==="labelImage"?4:2;i.type="data",e+=l}}return t.length!==n.length&&ie(t,0,t.length,n),t}function FE(t,e){let n=t.length,i=0,l,r,a,o;for(;n--;)if(l=t[n][1],r){if(l.type==="link"||l.type==="labelLink"&&l._inactive)break;t[n][0]==="enter"&&l.type==="labelLink"&&(l._inactive=!0)}else if(a){if(t[n][0]==="enter"&&(l.type==="labelImage"||l.type==="labelLink")&&!l._balanced&&(r=n,l.type!=="labelLink")){i=2;break}}else l.type==="labelEnd"&&(a=n);let u={type:t[r][1].type==="labelLink"?"link":"image",start:{...t[r][1].start},end:{...t[t.length-1][1].end}},s={type:"label",start:{...t[r][1].start},end:{...t[a][1].end}},c={type:"labelText",start:{...t[r+i+2][1].end},end:{...t[a-2][1].start}};return o=[["enter",u,e],["enter",s,e]],o=Ie(o,t.slice(r+1,r+i+3)),o=Ie(o,[["enter",c,e]]),o=Ie(o,Vi(e.parser.constructs.insideSpan.null,t.slice(r+i+4,a-3),e)),o=Ie(o,[["exit",c,e],t[a-2],t[a-1],["exit",s,e]]),o=Ie(o,t.slice(a+1)),o=Ie(o,[["exit",u,e]]),ie(t,r,t.length,o),t}function QE(t,e,n){let i=this,l=i.events.length,r,a;for(;l--;)if((i.events[l][1].type==="labelImage"||i.events[l][1].type==="labelLink")&&!i.events[l][1]._balanced){r=i.events[l][1];break}return o;function o(d){return r?r._inactive?f(d):(a=i.parser.defined.includes(Ne(i.sliceSerialize({start:r.end,end:i.now()}))),t.enter("labelEnd"),t.enter("labelMarker"),t.consume(d),t.exit("labelMarker"),t.exit("labelEnd"),u):n(d)}function u(d){return d===40?t.attempt(IE,c,a?c:f)(d):d===91?t.attempt(jE,c,a?s:f)(d):a?c(d):f(d)}function s(d){return t.attempt(YE,c,f)(d)}function c(d){return e(d)}function f(d){return r._balanced=!0,n(d)}}function XE(t,e,n){return i;function i(f){return t.enter("resource"),t.enter("resourceMarker"),t.consume(f),t.exit("resourceMarker"),l}function l(f){return ut(f)?El(t,r)(f):r(f)}function r(f){return f===41?c(f):as(t,a,o,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(f)}function a(f){return ut(f)?El(t,u)(f):c(f)}function o(f){return n(f)}function u(f){return f===34||f===39||f===40?us(t,s,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(f):c(f)}function s(f){return ut(f)?El(t,c)(f):c(f)}function c(f){return f===41?(t.enter("resourceMarker"),t.consume(f),t.exit("resourceMarker"),t.exit("resource"),e):n(f)}}function GE(t,e,n){let i=this;return l;function l(o){return os.call(i,t,r,a,"reference","referenceMarker","referenceString")(o)}function r(o){return i.parser.defined.includes(Ne(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)))?e(o):n(o)}function a(o){return n(o)}}function ZE(t,e,n){return i;function i(r){return t.enter("reference"),t.enter("referenceMarker"),t.consume(r),t.exit("referenceMarker"),l}function l(r){return r===93?(t.enter("referenceMarker"),t.consume(r),t.exit("referenceMarker"),t.exit("reference"),e):n(r)}}var jp={name:"labelStartImage",resolveAll:Tl.resolveAll,tokenize:KE};function KE(t,e,n){let i=this;return l;function l(o){return t.enter("labelImage"),t.enter("labelImageMarker"),t.consume(o),t.exit("labelImageMarker"),r}function r(o){return o===91?(t.enter("labelMarker"),t.consume(o),t.exit("labelMarker"),t.exit("labelImage"),a):n(o)}function a(o){return o===94&&"_hiddenFootnoteSupport"in i.parser.constructs?n(o):e(o)}}var Yp={name:"labelStartLink",resolveAll:Tl.resolveAll,tokenize:PE};function PE(t,e,n){let i=this;return l;function l(a){return t.enter("labelLink"),t.enter("labelMarker"),t.consume(a),t.exit("labelMarker"),t.exit("labelLink"),r}function r(a){return a===94&&"_hiddenFootnoteSupport"in i.parser.constructs?n(a):e(a)}}var ao={name:"lineEnding",tokenize:JE};function JE(t,e){return n;function n(i){return t.enter("lineEnding"),t.consume(i),t.exit("lineEnding"),X(t,e,"linePrefix")}}var Al={name:"thematicBreak",tokenize:WE};function WE(t,e,n){let i=0,l;return r;function r(s){return t.enter("thematicBreak"),a(s)}function a(s){return l=s,o(s)}function o(s){return s===l?(t.enter("thematicBreakSequence"),u(s)):i>=3&&(s===null||B(s))?(t.exit("thematicBreak"),e(s)):n(s)}function u(s){return s===l?(t.consume(s),i++,u):(t.exit("thematicBreakSequence"),Z(s)?X(t,o,"whitespace")(s):o(s))}}var Me={continuation:{tokenize:nT},exit:lT,name:"list",tokenize:eT},$E={partial:!0,tokenize:rT},tT={partial:!0,tokenize:iT};function eT(t,e,n){let i=this,l=i.events[i.events.length-1],r=l&&l[1].type==="linePrefix"?l[2].sliceSerialize(l[1],!0).length:0,a=0;return o;function o(p){let g=i.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(g==="listUnordered"?!i.containerState.marker||p===i.containerState.marker:no(p)){if(i.containerState.type||(i.containerState.type=g,t.enter(g,{_container:!0})),g==="listUnordered")return t.enter("listItemPrefix"),p===42||p===45?t.check(Al,n,s)(p):s(p);if(!i.interrupt||p===49)return t.enter("listItemPrefix"),t.enter("listItemValue"),u(p)}return n(p)}function u(p){return no(p)&&++a<10?(t.consume(p),u):(!i.interrupt||a<2)&&(i.containerState.marker?p===i.containerState.marker:p===41||p===46)?(t.exit("listItemValue"),s(p)):n(p)}function s(p){return t.enter("listItemMarker"),t.consume(p),t.exit("listItemMarker"),i.containerState.marker=i.containerState.marker||p,t.check(qn,i.interrupt?n:c,t.attempt($E,d,f))}function c(p){return i.containerState.initialBlankLine=!0,r++,d(p)}function f(p){return Z(p)?(t.enter("listItemPrefixWhitespace"),t.consume(p),t.exit("listItemPrefixWhitespace"),d):n(p)}function d(p){return i.containerState.size=r+i.sliceSerialize(t.exit("listItemPrefix"),!0).length,e(p)}}function nT(t,e,n){let i=this;return i.containerState._closeFlow=void 0,t.check(qn,l,r);function l(o){return i.containerState.furtherBlankLines=i.containerState.furtherBlankLines||i.containerState.initialBlankLine,X(t,e,"listItemIndent",i.containerState.size+1)(o)}function r(o){return i.containerState.furtherBlankLines||!Z(o)?(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,a(o)):(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,t.attempt(tT,e,a)(o))}function a(o){return i.containerState._closeFlow=!0,i.interrupt=void 0,X(t,t.attempt(Me,e,n),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}function iT(t,e,n){let i=this;return X(t,l,"listItemIndent",i.containerState.size+1);function l(r){let a=i.events[i.events.length-1];return a&&a[1].type==="listItemIndent"&&a[2].sliceSerialize(a[1],!0).length===i.containerState.size?e(r):n(r)}}function lT(t){t.exit(this.containerState.type)}function rT(t,e,n){let i=this;return X(t,l,"listItemPrefixWhitespace",i.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function l(r){let a=i.events[i.events.length-1];return!Z(r)&&a&&a[1].type==="listItemPrefixWhitespace"?e(r):n(r)}}var ss={name:"setextUnderline",resolveTo:aT,tokenize:oT};function aT(t,e){let n=t.length,i,l,r;for(;n--;)if(t[n][0]==="enter"){if(t[n][1].type==="content"){i=n;break}t[n][1].type==="paragraph"&&(l=n)}else t[n][1].type==="content"&&t.splice(n,1),!r&&t[n][1].type==="definition"&&(r=n);let a={type:"setextHeading",start:{...t[i][1].start},end:{...t[t.length-1][1].end}};return t[l][1].type="setextHeadingText",r?(t.splice(l,0,["enter",a,e]),t.splice(r+1,0,["exit",t[i][1],e]),t[i][1].end={...t[r][1].end}):t[i][1]=a,t.push(["exit",a,e]),t}function oT(t,e,n){let i=this,l;return r;function r(s){let c=i.events.length,f;for(;c--;)if(i.events[c][1].type!=="lineEnding"&&i.events[c][1].type!=="linePrefix"&&i.events[c][1].type!=="content"){f=i.events[c][1].type==="paragraph";break}return!i.parser.lazy[i.now().line]&&(i.interrupt||f)?(t.enter("setextHeadingLine"),l=s,a(s)):n(s)}function a(s){return t.enter("setextHeadingLineSequence"),o(s)}function o(s){return s===l?(t.consume(s),o):(t.exit("setextHeadingLineSequence"),Z(s)?X(t,u,"lineSuffix")(s):u(s))}function u(s){return s===null||B(s)?(t.exit("setextHeadingLine"),e(s)):n(s)}}var Av={tokenize:uT};function uT(t){let e=this,n=t.attempt(qn,i,t.attempt(this.parser.constructs.flowInitial,l,X(t,t.attempt(this.parser.constructs.flow,l,t.attempt(Op,l)),"linePrefix")));return n;function i(r){if(r===null){t.consume(r);return}return t.enter("lineEndingBlank"),t.consume(r),t.exit("lineEndingBlank"),e.currentConstruct=void 0,n}function l(r){if(r===null){t.consume(r);return}return t.enter("lineEnding"),t.consume(r),t.exit("lineEnding"),e.currentConstruct=void 0,n}}var Cv={resolveAll:Dv()},Rv=Mv("string"),Nv=Mv("text");function Mv(t){return{resolveAll:Dv(t==="text"?sT:void 0),tokenize:e};function e(n){let i=this,l=this.parser.constructs[t],r=n.attempt(l,a,o);return a;function a(c){return s(c)?r(c):o(c)}function o(c){if(c===null){n.consume(c);return}return n.enter("data"),n.consume(c),u}function u(c){return s(c)?(n.exit("data"),r(c)):(n.consume(c),u)}function s(c){if(c===null)return!0;let f=l[c],d=-1;if(f)for(;++d<f.length;){let p=f[d];if(!p.previous||p.previous.call(i,i.previous))return!0}return!1}}}function Dv(t){return e;function e(n,i){let l=-1,r;for(;++l<=n.length;)r===void 0?n[l]&&n[l][1].type==="data"&&(r=l,l++):(!n[l]||n[l][1].type!=="data")&&(l!==r+2&&(n[r][1].end=n[l-1][1].end,n.splice(r+2,l-r-2),l=r+2),r=void 0);return t?t(n,i):n}}function sT(t,e){let n=0;for(;++n<=t.length;)if((n===t.length||t[n][1].type==="lineEnding")&&t[n-1][1].type==="data"){let i=t[n-1][1],l=e.sliceStream(i),r=l.length,a=-1,o=0,u;for(;r--;){let s=l[r];if(typeof s=="string"){for(a=s.length;s.charCodeAt(a-1)===32;)o++,a--;if(a)break;a=-1}else if(s===-2)u=!0,o++;else if(s!==-1){r++;break}}if(e._contentTypeTextTrailing&&n===t.length&&(o=0),o){let s={type:n===t.length||u||o<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:r?a:i.start._bufferIndex+a,_index:i.start._index+r,line:i.end.line,column:i.end.column-o,offset:i.end.offset-o},end:{...i.end}};i.end={...s.start},i.start.offset===i.end.offset?Object.assign(i,s):(t.splice(n,0,["enter",s,e],["exit",s,e]),n+=2)}n++}return t}var Vp={};$d(Vp,{attentionMarkers:()=>yT,contentInitial:()=>fT,disable:()=>bT,document:()=>cT,flow:()=>dT,flowInitial:()=>pT,insideSpan:()=>gT,string:()=>mT,text:()=>hT});var cT={42:Me,43:Me,45:Me,48:Me,49:Me,50:Me,51:Me,52:Me,53:Me,54:Me,55:Me,56:Me,57:Me,62:ts},fT={91:Lp},pT={[-2]:lo,[-1]:lo,32:lo},dT={35:Up,42:Al,45:[ss,Al],60:qp,61:ss,95:Al,96:is,126:is},mT={38:ns,92:es},hT={[-5]:ao,[-4]:ao,[-3]:ao,33:jp,38:ns,42:io,60:[zp,Ip],91:Yp,92:[Bp,es],93:Tl,95:io,96:_p},gT={null:[io,Cv]},yT={null:[42,95]},bT={null:[]};function zv(t,e,n){let i={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0},l={},r=[],a=[],o=[],u=!0,s={attempt:U(D),check:U(_),consume:k,enter:A,exit:w,interrupt:U(_,{interrupt:!0})},c={code:null,containerState:{},defineSkip:m,events:[],now:T,parser:t,previous:null,sliceSerialize:g,sliceStream:b,write:p},f=e.tokenize.call(c,s),d;return e.resolveAll&&r.push(e),c;function p(Y){return a=Ie(a,Y),h(),a[a.length-1]!==null?[]:(S(e,0),c.events=Vi(r,c.events,c),c.events)}function g(Y,G){return xT(b(Y),G)}function b(Y){return vT(a,Y)}function T(){let{_bufferIndex:Y,_index:G,line:W,column:gt,offset:vt}=i;return{_bufferIndex:Y,_index:G,line:W,column:gt,offset:vt}}function m(Y){l[Y.line]=Y.column,K()}function h(){let Y;for(;i._index<a.length;){let G=a[i._index];if(typeof G=="string")for(Y=i._index,i._bufferIndex<0&&(i._bufferIndex=0);i._index===Y&&i._bufferIndex<G.length;)y(G.charCodeAt(i._bufferIndex));else y(G)}}function y(Y){u=void 0,d=Y,f=f(Y)}function k(Y){B(Y)?(i.line++,i.column=1,i.offset+=Y===-3?2:1,K()):Y!==-1&&(i.column++,i.offset++),i._bufferIndex<0?i._index++:(i._bufferIndex++,i._bufferIndex===a[i._index].length&&(i._bufferIndex=-1,i._index++)),c.previous=Y,u=!0}function A(Y,G){let W=G||{};return W.type=Y,W.start=T(),c.events.push(["enter",W,c]),o.push(W),W}function w(Y){let G=o.pop();return G.end=T(),c.events.push(["exit",G,c]),G}function D(Y,G){S(Y,G.from)}function _(Y,G){G.restore()}function U(Y,G){return W;function W(gt,vt,Vt){let xe,v,Nt,Bt;return Array.isArray(gt)?zt(gt):"tokenize"in gt?zt([gt]):x(gt);function x(L){return $;function $(dt){let Tt=dt!==null&&L[dt],Ft=dt!==null&&L.null,Ye=[...Array.isArray(Tt)?Tt:Tt?[Tt]:[],...Array.isArray(Ft)?Ft:Ft?[Ft]:[]];return zt(Ye)(dt)}}function zt(L){return xe=L,v=0,L.length===0?Vt:H(L[v])}function H(L){return $;function $(dt){return Bt=nt(),Nt=L,L.partial||(c.currentConstruct=L),L.name&&c.parser.constructs.disable.null.includes(L.name)?j(dt):L.tokenize.call(G?Object.assign(Object.create(c),G):c,s,F,j)(dt)}}function F(L){return u=!0,Y(Nt,Bt),vt}function j(L){return u=!0,Bt.restore(),++v<xe.length?H(xe[v]):Vt}}}function S(Y,G){Y.resolveAll&&!r.includes(Y)&&r.push(Y),Y.resolve&&ie(c.events,G,c.events.length-G,Y.resolve(c.events.slice(G),c)),Y.resolveTo&&(c.events=Y.resolveTo(c.events,c))}function nt(){let Y=T(),G=c.previous,W=c.currentConstruct,gt=c.events.length,vt=Array.from(o);return{from:gt,restore:Vt};function Vt(){i=Y,c.previous=G,c.currentConstruct=W,c.events.length=gt,o=vt,K()}}function K(){i.line in l&&i.column<2&&(i.column=l[i.line],i.offset+=l[i.line]-1)}}function vT(t,e){let n=e.start._index,i=e.start._bufferIndex,l=e.end._index,r=e.end._bufferIndex,a;if(n===l)a=[t[n].slice(i,r)];else{if(a=t.slice(n,l),i>-1){let o=a[0];typeof o=="string"?a[0]=o.slice(i):a.shift()}r>0&&a.push(t[l].slice(0,r))}return a}function xT(t,e){let n=-1,i=[],l;for(;++n<t.length;){let r=t[n],a;if(typeof r=="string")a=r;else switch(r){case-5:{a="\r";break}case-4:{a=`
|
|
11
11
|
`;break}case-3:{a=`\r
|
|
12
|
-
`;break}case-2:{a=e?" ":" ";break}case-1:{if(!e&&i)continue;a=" ";break}default:a=String.fromCharCode(r)}i=r===-2,l.push(a)}return l.join("")}function Ip(t){let l={constructs:Zu([jp,...(t||{}).extensions||[]]),content:i(hv),defined:[],document:i(yv),flow:i(Sv),lazy:{},string:i(Ev),text:i(Tv)};return l;function i(r){return a;function a(o){return Cv(l,r,o)}}}function Yp(t){for(;!es(t););return t}var Rv=/[\0\t\n\r]/g;function Vp(){let t=1,e="",n=!0,l;return i;function i(r,a,o){let u=[],s,c,f,m,p;for(r=e+(typeof r=="string"?r.toString():new TextDecoder(a||void 0).decode(r)),f=0,e="",n&&(r.charCodeAt(0)===65279&&f++,n=void 0);f<r.length;){if(Rv.lastIndex=f,s=Rv.exec(r),m=s&&s.index!==void 0?s.index:r.length,p=r.charCodeAt(m),!s){e=r.slice(f);break}if(p===10&&f===m&&l)u.push(-3),l=void 0;else switch(l&&(u.push(-5),l=void 0),f<m&&(u.push(r.slice(f,m)),t+=m-f),p){case 0:{u.push(65533),t++;break}case 9:{for(c=Math.ceil(t/4)*4,u.push(-2);t++<c;)u.push(-1);break}case 10:{u.push(-4),t=1;break}default:l=!0,t=1}f=m+1}return o&&(l&&u.push(-5),e&&u.push(e),u.push(null)),u}}var xw=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Mv(t){return t.replace(xw,Sw)}function Sw(t,e,n){if(e)return e;if(n.charCodeAt(0)===35){let i=n.charCodeAt(1),r=i===120||i===88;return Ku(n.slice(r?2:1),r?16:10)}return Ar(n)||t}var Nv={}.hasOwnProperty;function Fp(t,e,n){return typeof e!="string"&&(n=e,e=void 0),kw(n)(Yp(Ip(n).document().write(Vp()(t,e,!0))))}function kw(t){let e={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:r(Tn),autolinkProtocol:L,autolinkEmail:L,atxHeading:r(kn),blockQuote:r(ft),characterEscape:L,characterReference:L,codeFenced:r(ie),codeFencedFenceInfo:a,codeFencedFenceMeta:a,codeIndented:r(ie,a),codeText:r(Yt,a),codeTextData:L,data:L,codeFlowValue:L,definition:r(hn),definitionDestinationString:a,definitionLabelString:a,definitionTitleString:a,emphasis:r(ce),hardBreakEscape:r(Ql),hardBreakTrailing:r(Ql),htmlFlow:r(Xl,a),htmlFlowData:L,htmlText:r(Xl,a),htmlTextData:L,image:r(En),label:a,link:r(Tn),listItem:r(Gl),listItemValue:m,listOrdered:r(wn,f),listUnordered:r(wn),paragraph:r(Ni),reference:x,referenceString:a,resourceDestinationString:a,resourceTitleString:a,setextHeading:r(kn),strong:r(B),thematicBreak:r(kt)},exit:{atxHeading:u(),atxHeadingSequence:C,autolink:u(),autolinkEmail:W,autolinkProtocol:_,blockQuote:u(),characterEscapeValue:S,characterReferenceMarkerHexadecimal:U,characterReferenceMarkerNumeric:U,characterReferenceValue:Y,characterReference:H,codeFenced:u(k),codeFencedFence:v,codeFencedFenceInfo:p,codeFencedFenceMeta:g,codeFlowValue:S,codeIndented:u(d),codeText:u(J),codeTextData:S,data:S,definition:u(),definitionDestinationString:T,definitionLabelString:h,definitionTitleString:y,emphasis:u(),hardBreakEscape:u(K),hardBreakTrailing:u(K),htmlFlow:u(I),htmlFlowData:S,htmlText:u(Z),htmlTextData:S,image:u(xt),label:le,labelText:It,lineEnding:et,link:u(dt),listItem:u(),listOrdered:u(),listUnordered:u(),paragraph:u(),referenceString:zt,resourceDestinationString:b,resourceTitleString:Wt,resource:qt,setextHeading:u(N),setextHeadingLineSequence:M,setextHeadingText:E,strong:u(),thematicBreak:u()}};zv(e,(t||{}).mdastExtensions||[]);let n={};return l;function l(w){let z={type:"root",children:[]},tt={stack:[z],tokenStack:[],config:e,enter:o,exit:s,buffer:a,resume:c,data:n},ot=[],A=-1;for(;++A<w.length;)if(w[A][1].type==="listOrdered"||w[A][1].type==="listUnordered")if(w[A][0]==="enter")ot.push(A);else{let j=ot.pop();A=i(w,j,A)}for(A=-1;++A<w.length;){let j=e[w[A][0]];Nv.call(j,w[A][1].type)&&j[w[A][1].type].call(Object.assign({sliceSerialize:w[A][2].sliceSerialize},tt),w[A][1])}if(tt.tokenStack.length>0){let j=tt.tokenStack[tt.tokenStack.length-1];(j[1]||Dv).call(tt,void 0,j[0])}for(z.position={start:Bl(w.length>0?w[0][1].start:{line:1,column:1,offset:0}),end:Bl(w.length>0?w[w.length-2][1].end:{line:1,column:1,offset:0})},A=-1;++A<e.transforms.length;)z=e.transforms[A](z)||z;return z}function i(w,z,tt){let ot=z-1,A=-1,j=!1,V,X,it,De;for(;++ot<=tt;){let Et=w[ot];switch(Et[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Et[0]==="enter"?A++:A--,De=void 0;break}case"lineEndingBlank":{Et[0]==="enter"&&(V&&!De&&!A&&!it&&(it=ot),De=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:De=void 0}if(!A&&Et[0]==="enter"&&Et[1].type==="listItemPrefix"||A===-1&&Et[0]==="exit"&&(Et[1].type==="listUnordered"||Et[1].type==="listOrdered")){if(V){let re=ot;for(X=void 0;re--;){let ye=w[re];if(ye[1].type==="lineEnding"||ye[1].type==="lineEndingBlank"){if(ye[0]==="exit")continue;X&&(w[X][1].type="lineEndingBlank",j=!0),ye[1].type="lineEnding",X=re}else if(!(ye[1].type==="linePrefix"||ye[1].type==="blockQuotePrefix"||ye[1].type==="blockQuotePrefixWhitespace"||ye[1].type==="blockQuoteMarker"||ye[1].type==="listItemIndent"))break}it&&(!X||it<X)&&(V._spread=!0),V.end=Object.assign({},X?w[X][1].start:Et[1].end),w.splice(X||ot,0,["exit",V,Et[2]]),ot++,tt++}if(Et[1].type==="listItemPrefix"){let re={type:"listItem",_spread:!1,start:Object.assign({},Et[1].start),end:void 0};V=re,w.splice(ot,0,["enter",re,Et[2]]),ot++,tt++,it=void 0,De=!0}}}return w[z][1]._spread=j,tt}function r(w,z){return tt;function tt(ot){o.call(this,w(ot),ot),z&&z.call(this,ot)}}function a(){this.stack.push({type:"fragment",children:[]})}function o(w,z,tt){this.stack[this.stack.length-1].children.push(w),this.stack.push(w),this.tokenStack.push([z,tt||void 0]),w.position={start:Bl(z.start),end:void 0}}function u(w){return z;function z(tt){w&&w.call(this,tt),s.call(this,tt)}}function s(w,z){let tt=this.stack.pop(),ot=this.tokenStack.pop();if(ot)ot[0].type!==w.type&&(z?z.call(this,w,ot[0]):(ot[1]||Dv).call(this,w,ot[0]));else throw new Error("Cannot close `"+w.type+"` ("+Ol({start:w.start,end:w.end})+"): it\u2019s not open");tt.position.end=Bl(w.end)}function c(){return yi(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function m(w){if(this.data.expectingFirstListItemValue){let z=this.stack[this.stack.length-2];z.start=Number.parseInt(this.sliceSerialize(w),10),this.data.expectingFirstListItemValue=void 0}}function p(){let w=this.resume(),z=this.stack[this.stack.length-1];z.lang=w}function g(){let w=this.resume(),z=this.stack[this.stack.length-1];z.meta=w}function v(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function k(){let w=this.resume(),z=this.stack[this.stack.length-1];z.value=w.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function d(){let w=this.resume(),z=this.stack[this.stack.length-1];z.value=w.replace(/(\r?\n|\r)$/g,"")}function h(w){let z=this.resume(),tt=this.stack[this.stack.length-1];tt.label=z,tt.identifier=Te(this.sliceSerialize(w)).toLowerCase()}function y(){let w=this.resume(),z=this.stack[this.stack.length-1];z.title=w}function T(){let w=this.resume(),z=this.stack[this.stack.length-1];z.url=w}function C(w){let z=this.stack[this.stack.length-1];if(!z.depth){let tt=this.sliceSerialize(w).length;z.depth=tt}}function E(){this.data.setextHeadingSlurpLineEnding=!0}function M(w){let z=this.stack[this.stack.length-1];z.depth=this.sliceSerialize(w).codePointAt(0)===61?1:2}function N(){this.data.setextHeadingSlurpLineEnding=void 0}function L(w){let tt=this.stack[this.stack.length-1].children,ot=tt[tt.length-1];(!ot||ot.type!=="text")&&(ot=St(),ot.position={start:Bl(w.start),end:void 0},tt.push(ot)),this.stack.push(ot)}function S(w){let z=this.stack.pop();z.value+=this.sliceSerialize(w),z.position.end=Bl(w.end)}function et(w){let z=this.stack[this.stack.length-1];if(this.data.atHardBreak){let tt=z.children[z.children.length-1];tt.position.end=Bl(w.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&e.canContainEols.includes(z.type)&&(L.call(this,w),S.call(this,w))}function K(){this.data.atHardBreak=!0}function I(){let w=this.resume(),z=this.stack[this.stack.length-1];z.value=w}function Z(){let w=this.resume(),z=this.stack[this.stack.length-1];z.value=w}function J(){let w=this.resume(),z=this.stack[this.stack.length-1];z.value=w}function dt(){let w=this.stack[this.stack.length-1];if(this.data.inReference){let z=this.data.referenceType||"shortcut";w.type+="Reference",w.referenceType=z,delete w.url,delete w.title}else delete w.identifier,delete w.label;this.data.referenceType=void 0}function xt(){let w=this.stack[this.stack.length-1];if(this.data.inReference){let z=this.data.referenceType||"shortcut";w.type+="Reference",w.referenceType=z,delete w.url,delete w.title}else delete w.identifier,delete w.label;this.data.referenceType=void 0}function It(w){let z=this.sliceSerialize(w),tt=this.stack[this.stack.length-2];tt.label=Mv(z),tt.identifier=Te(z).toLowerCase()}function le(){let w=this.stack[this.stack.length-1],z=this.resume(),tt=this.stack[this.stack.length-1];if(this.data.inReference=!0,tt.type==="link"){let ot=w.children;tt.children=ot}else tt.alt=z}function b(){let w=this.resume(),z=this.stack[this.stack.length-1];z.url=w}function Wt(){let w=this.resume(),z=this.stack[this.stack.length-1];z.title=w}function qt(){this.data.inReference=void 0}function x(){this.data.referenceType="collapsed"}function zt(w){let z=this.resume(),tt=this.stack[this.stack.length-1];tt.label=z,tt.identifier=Te(this.sliceSerialize(w)).toLowerCase(),this.data.referenceType="full"}function U(w){this.data.characterReferenceType=w.type}function Y(w){let z=this.sliceSerialize(w),tt=this.data.characterReferenceType,ot;tt?(ot=Ku(z,tt==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):ot=Ar(z);let A=this.stack[this.stack.length-1];A.value+=ot}function H(w){let z=this.stack.pop();z.position.end=Bl(w.end)}function _(w){S.call(this,w);let z=this.stack[this.stack.length-1];z.url=this.sliceSerialize(w)}function W(w){S.call(this,w);let z=this.stack[this.stack.length-1];z.url="mailto:"+this.sliceSerialize(w)}function ft(){return{type:"blockquote",children:[]}}function ie(){return{type:"code",lang:null,meta:null,value:""}}function Yt(){return{type:"inlineCode",value:""}}function hn(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function ce(){return{type:"emphasis",children:[]}}function kn(){return{type:"heading",depth:0,children:[]}}function Ql(){return{type:"break"}}function Xl(){return{type:"html",value:""}}function En(){return{type:"image",title:null,url:"",alt:null}}function Tn(){return{type:"link",title:null,url:"",children:[]}}function wn(w){return{type:"list",ordered:w.type==="listOrdered",start:null,spread:w._spread,children:[]}}function Gl(w){return{type:"listItem",spread:w._spread,checked:null,children:[]}}function Ni(){return{type:"paragraph",children:[]}}function B(){return{type:"strong",children:[]}}function St(){return{type:"text",value:""}}function kt(){return{type:"thematicBreak"}}}function Bl(t){return{line:t.line,column:t.column,offset:t.offset}}function zv(t,e){let n=-1;for(;++n<e.length;){let l=e[n];Array.isArray(l)?zv(t,l):Ew(t,l)}}function Ew(t,e){let n;for(n in e)if(Nv.call(e,n))switch(n){case"canContainEols":{let l=e[n];l&&t[n].push(...l);break}case"transforms":{let l=e[n];l&&t[n].push(...l);break}case"enter":case"exit":{let l=e[n];l&&Object.assign(t[n],l);break}}}function Dv(t,e){throw t?new Error("Cannot close `"+t.type+"` ("+Ol({start:t.start,end:t.end})+"): a different token (`"+e.type+"`, "+Ol({start:e.start,end:e.end})+") is open"):new Error("Cannot close document, a token (`"+e.type+"`, "+Ol({start:e.start,end:e.end})+") is still open")}function as(t){let e=this;e.parser=n;function n(l){return Fp(l,{...e.data("settings"),...t,extensions:e.data("micromarkExtensions")||[],mdastExtensions:e.data("fromMarkdownExtensions")||[]})}}function _v(t,e){let n={type:"element",tagName:"blockquote",properties:{},children:t.wrap(t.all(e),!0)};return t.patch(e,n),t.applyData(e,n)}function Ov(t,e){let n={type:"element",tagName:"br",properties:{},children:[]};return t.patch(e,n),[t.applyData(e,n),{type:"text",value:`
|
|
13
|
-
`}]}function
|
|
14
|
-
`:"",
|
|
15
|
-
`}),c.type==="element"&&c.tagName==="p"&&!
|
|
16
|
-
`});let s={type:"element",tagName:"li",properties:r,children:a};return t.patch(e,s),t.applyData(e,s)}function
|
|
12
|
+
`;break}case-2:{a=e?" ":" ";break}case-1:{if(!e&&l)continue;a=" ";break}default:a=String.fromCharCode(r)}l=r===-2,i.push(a)}return i.join("")}function Fp(t){let i={constructs:Wu([Vp,...(t||{}).extensions||[]]),content:l(xv),defined:[],document:l(kv),flow:l(Av),lazy:{},string:l(Rv),text:l(Nv)};return i;function l(r){return a;function a(o){return zv(i,r,o)}}}function Qp(t){for(;!rs(t););return t}var _v=/[\0\t\n\r]/g;function Xp(){let t=1,e="",n=!0,i;return l;function l(r,a,o){let u=[],s,c,f,d,p;for(r=e+(typeof r=="string"?r.toString():new TextDecoder(a||void 0).decode(r)),f=0,e="",n&&(r.charCodeAt(0)===65279&&f++,n=void 0);f<r.length;){if(_v.lastIndex=f,s=_v.exec(r),d=s&&s.index!==void 0?s.index:r.length,p=r.charCodeAt(d),!s){e=r.slice(f);break}if(p===10&&f===d&&i)u.push(-3),i=void 0;else switch(i&&(u.push(-5),i=void 0),f<d&&(u.push(r.slice(f,d)),t+=d-f),p){case 0:{u.push(65533),t++;break}case 9:{for(c=Math.ceil(t/4)*4,u.push(-2);t++<c;)u.push(-1);break}case 10:{u.push(-4),t=1;break}default:i=!0,t=1}f=d+1}return o&&(i&&u.push(-5),e&&u.push(e),u.push(null)),u}}var ST=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Ov(t){return t.replace(ST,kT)}function kT(t,e,n){if(e)return e;if(n.charCodeAt(0)===35){let l=n.charCodeAt(1),r=l===120||l===88;return $u(n.slice(r?2:1),r?16:10)}return Mr(n)||t}var Bv={}.hasOwnProperty;function Gp(t,e,n){return typeof e!="string"&&(n=e,e=void 0),wT(n)(Qp(Fp(n).document().write(Xp()(t,e,!0))))}function wT(t){let e={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:r(Ee),autolinkProtocol:U,autolinkEmail:U,atxHeading:r(un),blockQuote:r(dt),characterEscape:U,characterReference:U,codeFenced:r(Tt),codeFencedFenceInfo:a,codeFencedFenceMeta:a,codeIndented:r(Tt,a),codeText:r(Ft,a),codeTextData:U,data:U,codeFlowValue:U,definition:r(Ye),definitionDestinationString:a,definitionLabelString:a,definitionTitleString:a,emphasis:r(Wt),hardBreakEscape:r(Rn),hardBreakTrailing:r(Rn),htmlFlow:r(fi,a),htmlFlowData:U,htmlText:r(fi,a),htmlTextData:U,image:r(Gt),label:a,link:r(Ee),listItem:r(Le),listItemValue:d,listOrdered:r(Ve,f),listUnordered:r(Ve),paragraph:r(Vn),reference:x,referenceString:a,resourceDestinationString:a,resourceTitleString:a,setextHeading:r(un),strong:r(Fn),thematicBreak:r(pi)},exit:{atxHeading:u(),atxHeadingSequence:A,autolink:u(),autolinkEmail:$,autolinkProtocol:L,blockQuote:u(),characterEscapeValue:S,characterReferenceMarkerHexadecimal:H,characterReferenceMarkerNumeric:H,characterReferenceValue:F,characterReference:j,codeFenced:u(T),codeFencedFence:b,codeFencedFenceInfo:p,codeFencedFenceMeta:g,codeFlowValue:S,codeIndented:u(m),codeText:u(W),codeTextData:S,data:S,definition:u(),definitionDestinationString:k,definitionLabelString:h,definitionTitleString:y,emphasis:u(),hardBreakEscape:u(K),hardBreakTrailing:u(K),htmlFlow:u(Y),htmlFlowData:S,htmlText:u(G),htmlTextData:S,image:u(vt),label:xe,labelText:Vt,lineEnding:nt,link:u(gt),listItem:u(),listOrdered:u(),listUnordered:u(),paragraph:u(),referenceString:zt,resourceDestinationString:v,resourceTitleString:Nt,resource:Bt,setextHeading:u(_),setextHeadingLineSequence:D,setextHeadingText:w,strong:u(),thematicBreak:u()}};Uv(e,(t||{}).mdastExtensions||[]);let n={};return i;function i(R){let O={type:"root",children:[]},P={stack:[O],tokenStack:[],config:e,enter:o,exit:s,buffer:a,resume:c,data:n},rt=[],C=-1;for(;++C<R.length;)if(R[C][1].type==="listOrdered"||R[C][1].type==="listUnordered")if(R[C][0]==="enter")rt.push(C);else{let q=rt.pop();C=l(R,q,C)}for(C=-1;++C<R.length;){let q=e[R[C][0]];Bv.call(q,R[C][1].type)&&q[R[C][1].type].call(Object.assign({sliceSerialize:R[C][2].sliceSerialize},P),R[C][1])}if(P.tokenStack.length>0){let q=P.tokenStack[P.tokenStack.length-1];(q[1]||Lv).call(P,void 0,q[0])}for(O.position={start:Fi(R.length>0?R[0][1].start:{line:1,column:1,offset:0}),end:Fi(R.length>0?R[R.length-2][1].end:{line:1,column:1,offset:0})},C=-1;++C<e.transforms.length;)O=e.transforms[C](O)||O;return O}function l(R,O,P){let rt=O-1,C=-1,q=!1,V,Q,it,ue;for(;++rt<=P;){let xt=R[rt];switch(xt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{xt[0]==="enter"?C++:C--,ue=void 0;break}case"lineEndingBlank":{xt[0]==="enter"&&(V&&!ue&&!C&&!it&&(it=rt),ue=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:ue=void 0}if(!C&&xt[0]==="enter"&&xt[1].type==="listItemPrefix"||C===-1&&xt[0]==="exit"&&(xt[1].type==="listUnordered"||xt[1].type==="listOrdered")){if(V){let $t=rt;for(Q=void 0;$t--;){let se=R[$t];if(se[1].type==="lineEnding"||se[1].type==="lineEndingBlank"){if(se[0]==="exit")continue;Q&&(R[Q][1].type="lineEndingBlank",q=!0),se[1].type="lineEnding",Q=$t}else if(!(se[1].type==="linePrefix"||se[1].type==="blockQuotePrefix"||se[1].type==="blockQuotePrefixWhitespace"||se[1].type==="blockQuoteMarker"||se[1].type==="listItemIndent"))break}it&&(!Q||it<Q)&&(V._spread=!0),V.end=Object.assign({},Q?R[Q][1].start:xt[1].end),R.splice(Q||rt,0,["exit",V,xt[2]]),rt++,P++}if(xt[1].type==="listItemPrefix"){let $t={type:"listItem",_spread:!1,start:Object.assign({},xt[1].start),end:void 0};V=$t,R.splice(rt,0,["enter",$t,xt[2]]),rt++,P++,it=void 0,ue=!0}}}return R[O][1]._spread=q,P}function r(R,O){return P;function P(rt){o.call(this,R(rt),rt),O&&O.call(this,rt)}}function a(){this.stack.push({type:"fragment",children:[]})}function o(R,O,P){this.stack[this.stack.length-1].children.push(R),this.stack.push(R),this.tokenStack.push([O,P||void 0]),R.position={start:Fi(O.start),end:void 0}}function u(R){return O;function O(P){R&&R.call(this,P),s.call(this,P)}}function s(R,O){let P=this.stack.pop(),rt=this.tokenStack.pop();if(rt)rt[0].type!==R.type&&(O?O.call(this,R,rt[0]):(rt[1]||Lv).call(this,R,rt[0]));else throw new Error("Cannot close `"+R.type+"` ("+ji({start:R.start,end:R.end})+"): it\u2019s not open");P.position.end=Fi(R.end)}function c(){return Sl(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function d(R){if(this.data.expectingFirstListItemValue){let O=this.stack[this.stack.length-2];O.start=Number.parseInt(this.sliceSerialize(R),10),this.data.expectingFirstListItemValue=void 0}}function p(){let R=this.resume(),O=this.stack[this.stack.length-1];O.lang=R}function g(){let R=this.resume(),O=this.stack[this.stack.length-1];O.meta=R}function b(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function T(){let R=this.resume(),O=this.stack[this.stack.length-1];O.value=R.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function m(){let R=this.resume(),O=this.stack[this.stack.length-1];O.value=R.replace(/(\r?\n|\r)$/g,"")}function h(R){let O=this.resume(),P=this.stack[this.stack.length-1];P.label=O,P.identifier=Ne(this.sliceSerialize(R)).toLowerCase()}function y(){let R=this.resume(),O=this.stack[this.stack.length-1];O.title=R}function k(){let R=this.resume(),O=this.stack[this.stack.length-1];O.url=R}function A(R){let O=this.stack[this.stack.length-1];if(!O.depth){let P=this.sliceSerialize(R).length;O.depth=P}}function w(){this.data.setextHeadingSlurpLineEnding=!0}function D(R){let O=this.stack[this.stack.length-1];O.depth=this.sliceSerialize(R).codePointAt(0)===61?1:2}function _(){this.data.setextHeadingSlurpLineEnding=void 0}function U(R){let P=this.stack[this.stack.length-1].children,rt=P[P.length-1];(!rt||rt.type!=="text")&&(rt=Ll(),rt.position={start:Fi(R.start),end:void 0},P.push(rt)),this.stack.push(rt)}function S(R){let O=this.stack.pop();O.value+=this.sliceSerialize(R),O.position.end=Fi(R.end)}function nt(R){let O=this.stack[this.stack.length-1];if(this.data.atHardBreak){let P=O.children[O.children.length-1];P.position.end=Fi(R.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&e.canContainEols.includes(O.type)&&(U.call(this,R),S.call(this,R))}function K(){this.data.atHardBreak=!0}function Y(){let R=this.resume(),O=this.stack[this.stack.length-1];O.value=R}function G(){let R=this.resume(),O=this.stack[this.stack.length-1];O.value=R}function W(){let R=this.resume(),O=this.stack[this.stack.length-1];O.value=R}function gt(){let R=this.stack[this.stack.length-1];if(this.data.inReference){let O=this.data.referenceType||"shortcut";R.type+="Reference",R.referenceType=O,delete R.url,delete R.title}else delete R.identifier,delete R.label;this.data.referenceType=void 0}function vt(){let R=this.stack[this.stack.length-1];if(this.data.inReference){let O=this.data.referenceType||"shortcut";R.type+="Reference",R.referenceType=O,delete R.url,delete R.title}else delete R.identifier,delete R.label;this.data.referenceType=void 0}function Vt(R){let O=this.sliceSerialize(R),P=this.stack[this.stack.length-2];P.label=Ov(O),P.identifier=Ne(O).toLowerCase()}function xe(){let R=this.stack[this.stack.length-1],O=this.resume(),P=this.stack[this.stack.length-1];if(this.data.inReference=!0,P.type==="link"){let rt=R.children;P.children=rt}else P.alt=O}function v(){let R=this.resume(),O=this.stack[this.stack.length-1];O.url=R}function Nt(){let R=this.resume(),O=this.stack[this.stack.length-1];O.title=R}function Bt(){this.data.inReference=void 0}function x(){this.data.referenceType="collapsed"}function zt(R){let O=this.resume(),P=this.stack[this.stack.length-1];P.label=O,P.identifier=Ne(this.sliceSerialize(R)).toLowerCase(),this.data.referenceType="full"}function H(R){this.data.characterReferenceType=R.type}function F(R){let O=this.sliceSerialize(R),P=this.data.characterReferenceType,rt;P?(rt=$u(O,P==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):rt=Mr(O);let C=this.stack[this.stack.length-1];C.value+=rt}function j(R){let O=this.stack.pop();O.position.end=Fi(R.end)}function L(R){S.call(this,R);let O=this.stack[this.stack.length-1];O.url=this.sliceSerialize(R)}function $(R){S.call(this,R);let O=this.stack[this.stack.length-1];O.url="mailto:"+this.sliceSerialize(R)}function dt(){return{type:"blockquote",children:[]}}function Tt(){return{type:"code",lang:null,meta:null,value:""}}function Ft(){return{type:"inlineCode",value:""}}function Ye(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Wt(){return{type:"emphasis",children:[]}}function un(){return{type:"heading",depth:0,children:[]}}function Rn(){return{type:"break"}}function fi(){return{type:"html",value:""}}function Gt(){return{type:"image",title:null,url:"",alt:null}}function Ee(){return{type:"link",title:null,url:"",children:[]}}function Ve(R){return{type:"list",ordered:R.type==="listOrdered",start:null,spread:R._spread,children:[]}}function Le(R){return{type:"listItem",spread:R._spread,checked:null,children:[]}}function Vn(){return{type:"paragraph",children:[]}}function Fn(){return{type:"strong",children:[]}}function Ll(){return{type:"text",value:""}}function pi(){return{type:"thematicBreak"}}}function Fi(t){return{line:t.line,column:t.column,offset:t.offset}}function Uv(t,e){let n=-1;for(;++n<e.length;){let i=e[n];Array.isArray(i)?Uv(t,i):ET(t,i)}}function ET(t,e){let n;for(n in e)if(Bv.call(e,n))switch(n){case"canContainEols":{let i=e[n];i&&t[n].push(...i);break}case"transforms":{let i=e[n];i&&t[n].push(...i);break}case"enter":case"exit":{let i=e[n];i&&Object.assign(t[n],i);break}}}function Lv(t,e){throw t?new Error("Cannot close `"+t.type+"` ("+ji({start:t.start,end:t.end})+"): a different token (`"+e.type+"`, "+ji({start:e.start,end:e.end})+") is open"):new Error("Cannot close document, a token (`"+e.type+"`, "+ji({start:e.start,end:e.end})+") is still open")}function cs(t){let e=this;e.parser=n;function n(i){return Gp(i,{...e.data("settings"),...t,extensions:e.data("micromarkExtensions")||[],mdastExtensions:e.data("fromMarkdownExtensions")||[]})}}function Hv(t,e){let n={type:"element",tagName:"blockquote",properties:{},children:t.wrap(t.all(e),!0)};return t.patch(e,n),t.applyData(e,n)}function qv(t,e){let n={type:"element",tagName:"br",properties:{},children:[]};return t.patch(e,n),[t.applyData(e,n),{type:"text",value:`
|
|
13
|
+
`}]}function Iv(t,e){let n=e.value?e.value+`
|
|
14
|
+
`:"",i={},l=e.lang?e.lang.split(/\s+/):[];l.length>0&&(i.className=["language-"+l[0]]);let r={type:"element",tagName:"code",properties:i,children:[{type:"text",value:n}]};return e.meta&&(r.data={meta:e.meta}),t.patch(e,r),r=t.applyData(e,r),r={type:"element",tagName:"pre",properties:{},children:[r]},t.patch(e,r),r}function jv(t,e){let n={type:"element",tagName:"del",properties:{},children:t.all(e)};return t.patch(e,n),t.applyData(e,n)}function Yv(t,e){let n={type:"element",tagName:"em",properties:{},children:t.all(e)};return t.patch(e,n),t.applyData(e,n)}function Vv(t,e){let n=typeof t.options.clobberPrefix=="string"?t.options.clobberPrefix:"user-content-",i=String(e.identifier).toUpperCase(),l=xn(i.toLowerCase()),r=t.footnoteOrder.indexOf(i),a,o=t.footnoteCounts.get(i);o===void 0?(o=0,t.footnoteOrder.push(i),a=t.footnoteOrder.length):a=r+1,o+=1,t.footnoteCounts.set(i,o);let u={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+l,id:n+"fnref-"+l+(o>1?"-"+o:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(a)}]};t.patch(e,u);let s={type:"element",tagName:"sup",properties:{},children:[u]};return t.patch(e,s),t.applyData(e,s)}function Fv(t,e){let n={type:"element",tagName:"h"+e.depth,properties:{},children:t.all(e)};return t.patch(e,n),t.applyData(e,n)}function Qv(t,e){if(t.options.allowDangerousHtml){let n={type:"raw",value:e.value};return t.patch(e,n),t.applyData(e,n)}}function fs(t,e){let n=e.referenceType,i="]";if(n==="collapsed"?i+="[]":n==="full"&&(i+="["+(e.label||e.identifier)+"]"),e.type==="imageReference")return[{type:"text",value:"!["+e.alt+i}];let l=t.all(e),r=l[0];r&&r.type==="text"?r.value="["+r.value:l.unshift({type:"text",value:"["});let a=l[l.length-1];return a&&a.type==="text"?a.value+=i:l.push({type:"text",value:i}),l}function Xv(t,e){let n=String(e.identifier).toUpperCase(),i=t.definitionById.get(n);if(!i)return fs(t,e);let l={src:xn(i.url||""),alt:e.alt};i.title!==null&&i.title!==void 0&&(l.title=i.title);let r={type:"element",tagName:"img",properties:l,children:[]};return t.patch(e,r),t.applyData(e,r)}function Gv(t,e){let n={src:xn(e.url)};e.alt!==null&&e.alt!==void 0&&(n.alt=e.alt),e.title!==null&&e.title!==void 0&&(n.title=e.title);let i={type:"element",tagName:"img",properties:n,children:[]};return t.patch(e,i),t.applyData(e,i)}function Zv(t,e){let n={type:"text",value:e.value.replace(/\r?\n|\r/g," ")};t.patch(e,n);let i={type:"element",tagName:"code",properties:{},children:[n]};return t.patch(e,i),t.applyData(e,i)}function Kv(t,e){let n=String(e.identifier).toUpperCase(),i=t.definitionById.get(n);if(!i)return fs(t,e);let l={href:xn(i.url||"")};i.title!==null&&i.title!==void 0&&(l.title=i.title);let r={type:"element",tagName:"a",properties:l,children:t.all(e)};return t.patch(e,r),t.applyData(e,r)}function Pv(t,e){let n={href:xn(e.url)};e.title!==null&&e.title!==void 0&&(n.title=e.title);let i={type:"element",tagName:"a",properties:n,children:t.all(e)};return t.patch(e,i),t.applyData(e,i)}function Jv(t,e,n){let i=t.all(e),l=n?TT(n):Wv(e),r={},a=[];if(typeof e.checked=="boolean"){let c=i[0],f;c&&c.type==="element"&&c.tagName==="p"?f=c:(f={type:"element",tagName:"p",properties:{},children:[]},i.unshift(f)),f.children.length>0&&f.children.unshift({type:"text",value:" "}),f.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:e.checked,disabled:!0},children:[]}),r.className=["task-list-item"]}let o=-1;for(;++o<i.length;){let c=i[o];(l||o!==0||c.type!=="element"||c.tagName!=="p")&&a.push({type:"text",value:`
|
|
15
|
+
`}),c.type==="element"&&c.tagName==="p"&&!l?a.push(...c.children):a.push(c)}let u=i[i.length-1];u&&(l||u.type!=="element"||u.tagName!=="p")&&a.push({type:"text",value:`
|
|
16
|
+
`});let s={type:"element",tagName:"li",properties:r,children:a};return t.patch(e,s),t.applyData(e,s)}function TT(t){let e=!1;if(t.type==="list"){e=t.spread||!1;let n=t.children,i=-1;for(;!e&&++i<n.length;)e=Wv(n[i])}return e}function Wv(t){let e=t.spread;return e??t.children.length>1}function $v(t,e){let n={},i=t.all(e),l=-1;for(typeof e.start=="number"&&e.start!==1&&(n.start=e.start);++l<i.length;){let a=i[l];if(a.type==="element"&&a.tagName==="li"&&a.properties&&Array.isArray(a.properties.className)&&a.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}let r={type:"element",tagName:e.ordered?"ol":"ul",properties:n,children:t.wrap(i,!0)};return t.patch(e,r),t.applyData(e,r)}function t1(t,e){let n={type:"element",tagName:"p",properties:{},children:t.all(e)};return t.patch(e,n),t.applyData(e,n)}function e1(t,e){let n={type:"root",children:t.wrap(t.all(e))};return t.patch(e,n),t.applyData(e,n)}function n1(t,e){let n={type:"element",tagName:"strong",properties:{},children:t.all(e)};return t.patch(e,n),t.applyData(e,n)}function i1(t,e){let n=t.all(e),i=n.shift(),l=[];if(i){let a={type:"element",tagName:"thead",properties:{},children:t.wrap([i],!0)};t.patch(e.children[0],a),l.push(a)}if(n.length>0){let a={type:"element",tagName:"tbody",properties:{},children:t.wrap(n,!0)},o=Nr(e.children[1]),u=Pu(e.children[e.children.length-1]);o&&u&&(a.position={start:o,end:u}),l.push(a)}let r={type:"element",tagName:"table",properties:{},children:t.wrap(l,!0)};return t.patch(e,r),t.applyData(e,r)}function l1(t,e,n){let i=n?n.children:void 0,r=(i?i.indexOf(e):1)===0?"th":"td",a=n&&n.type==="table"?n.align:void 0,o=a?a.length:e.children.length,u=-1,s=[];for(;++u<o;){let f=e.children[u],d={},p=a?a[u]:void 0;p&&(d.align=p);let g={type:"element",tagName:r,properties:d,children:[]};f&&(g.children=t.all(f),t.patch(f,g),g=t.applyData(f,g)),s.push(g)}let c={type:"element",tagName:"tr",properties:{},children:t.wrap(s,!0)};return t.patch(e,c),t.applyData(e,c)}function r1(t,e){let n={type:"element",tagName:"td",properties:{},children:t.all(e)};return t.patch(e,n),t.applyData(e,n)}function o1(t){let e=String(t),n=/\r?\n|\r/g,i=n.exec(e),l=0,r=[];for(;i;)r.push(a1(e.slice(l,i.index),l>0,!0),i[0]),l=i.index+i[0].length,i=n.exec(e);return r.push(a1(e.slice(l),l>0,!1)),r.join("")}function a1(t,e,n){let i=0,l=t.length;if(e){let r=t.codePointAt(i);for(;r===9||r===32;)i++,r=t.codePointAt(i)}if(n){let r=t.codePointAt(l-1);for(;r===9||r===32;)l--,r=t.codePointAt(l-1)}return l>i?t.slice(i,l):""}function u1(t,e){let n={type:"text",value:o1(String(e.value))};return t.patch(e,n),t.applyData(e,n)}function s1(t,e){let n={type:"element",tagName:"hr",properties:{},children:[]};return t.patch(e,n),t.applyData(e,n)}var c1={blockquote:Hv,break:qv,code:Iv,delete:jv,emphasis:Yv,footnoteReference:Vv,heading:Fv,html:Qv,imageReference:Xv,image:Gv,inlineCode:Zv,linkReference:Kv,link:Pv,listItem:Jv,list:$v,paragraph:t1,root:e1,strong:n1,table:i1,tableCell:r1,tableRow:l1,text:u1,thematicBreak:s1,toml:ps,yaml:ps,definition:ps,footnoteDefinition:ps};function ps(){}var f1=typeof self=="object"?self:globalThis,NT=(t,e)=>{let n=(l,r)=>(t.set(r,l),l),i=l=>{if(t.has(l))return t.get(l);let[r,a]=e[l];switch(r){case 0:case-1:return n(a,l);case 1:{let o=n([],l);for(let u of a)o.push(i(u));return o}case 2:{let o=n({},l);for(let[u,s]of a)o[i(u)]=i(s);return o}case 3:return n(new Date(a),l);case 4:{let{source:o,flags:u}=a;return n(new RegExp(o,u),l)}case 5:{let o=n(new Map,l);for(let[u,s]of a)o.set(i(u),i(s));return o}case 6:{let o=n(new Set,l);for(let u of a)o.add(i(u));return o}case 7:{let{name:o,message:u}=a;return n(new f1[o](u),l)}case 8:return n(BigInt(a),l);case"BigInt":return n(Object(BigInt(a)),l);case"ArrayBuffer":return n(new Uint8Array(a).buffer,a);case"DataView":{let{buffer:o}=new Uint8Array(a);return n(new DataView(o),a)}}return n(new f1[r](a),l)};return i},Pp=t=>NT(new Map,t)(0);var Dr="",{toString:MT}={},{keys:DT}=Object,oo=t=>{let e=typeof t;if(e!=="object"||!t)return[0,e];let n=MT.call(t).slice(8,-1);switch(n){case"Array":return[1,Dr];case"Object":return[2,Dr];case"Date":return[3,Dr];case"RegExp":return[4,Dr];case"Map":return[5,Dr];case"Set":return[6,Dr];case"DataView":return[1,n]}return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n]},ms=([t,e])=>t===0&&(e==="function"||e==="symbol"),zT=(t,e,n,i)=>{let l=(a,o)=>{let u=i.push(a)-1;return n.set(o,u),u},r=a=>{if(n.has(a))return n.get(a);let[o,u]=oo(a);switch(o){case 0:{let c=a;switch(u){case"bigint":o=8,c=a.toString();break;case"function":case"symbol":if(t)throw new TypeError("unable to serialize "+u);c=null;break;case"undefined":return l([-1],a)}return l([o,c],a)}case 1:{if(u){let d=a;return u==="DataView"?d=new Uint8Array(a.buffer):u==="ArrayBuffer"&&(d=new Uint8Array(a)),l([u,[...d]],a)}let c=[],f=l([o,c],a);for(let d of a)c.push(r(d));return f}case 2:{if(u)switch(u){case"BigInt":return l([u,a.toString()],a);case"Boolean":case"Number":case"String":return l([u,a.valueOf()],a)}if(e&&"toJSON"in a)return r(a.toJSON());let c=[],f=l([o,c],a);for(let d of DT(a))(t||!ms(oo(a[d])))&&c.push([r(d),r(a[d])]);return f}case 3:return l([o,a.toISOString()],a);case 4:{let{source:c,flags:f}=a;return l([o,{source:c,flags:f}],a)}case 5:{let c=[],f=l([o,c],a);for(let[d,p]of a)(t||!(ms(oo(d))||ms(oo(p))))&&c.push([r(d),r(p)]);return f}case 6:{let c=[],f=l([o,c],a);for(let d of a)(t||!ms(oo(d)))&&c.push(r(d));return f}}let{message:s}=a;return l([o,{name:u,message:s}],a)};return r},Jp=(t,{json:e,lossy:n}={})=>{let i=[];return zT(!(e||n),!!e,new Map,i)(t),i};var zr=typeof structuredClone=="function"?(t,e)=>e&&("json"in e||"lossy"in e)?Pp(Jp(t,e)):structuredClone(t):(t,e)=>Pp(Jp(t,e));function _T(t,e){let n=[{type:"text",value:"\u21A9"}];return e>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(e)}]}),n}function OT(t,e){return"Back to reference "+(t+1)+(e>1?"-"+e:"")}function g1(t){let e=typeof t.options.clobberPrefix=="string"?t.options.clobberPrefix:"user-content-",n=t.options.footnoteBackContent||_T,i=t.options.footnoteBackLabel||OT,l=t.options.footnoteLabel||"Footnotes",r=t.options.footnoteLabelTagName||"h2",a=t.options.footnoteLabelProperties||{className:["sr-only"]},o=[],u=-1;for(;++u<t.footnoteOrder.length;){let s=t.footnoteById.get(t.footnoteOrder[u]);if(!s)continue;let c=t.all(s),f=String(s.identifier).toUpperCase(),d=xn(f.toLowerCase()),p=0,g=[],b=t.footnoteCounts.get(f);for(;b!==void 0&&++p<=b;){g.length>0&&g.push({type:"text",value:" "});let h=typeof n=="string"?n:n(u,p);typeof h=="string"&&(h={type:"text",value:h}),g.push({type:"element",tagName:"a",properties:{href:"#"+e+"fnref-"+d+(p>1?"-"+p:""),dataFootnoteBackref:"",ariaLabel:typeof i=="string"?i:i(u,p),className:["data-footnote-backref"]},children:Array.isArray(h)?h:[h]})}let T=c[c.length-1];if(T&&T.type==="element"&&T.tagName==="p"){let h=T.children[T.children.length-1];h&&h.type==="text"?h.value+=" ":T.children.push({type:"text",value:" "}),T.children.push(...g)}else c.push(...g);let m={type:"element",tagName:"li",properties:{id:e+"fn-"+d},children:t.wrap(c,!0)};t.patch(s,m),o.push(m)}if(o.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:r,properties:{...zr(a),id:"footnote-label"},children:[{type:"text",value:l}]},{type:"text",value:`
|
|
17
17
|
`},{type:"element",tagName:"ol",properties:{},children:t.wrap(o,!0)},{type:"text",value:`
|
|
18
|
-
`}]}}var
|
|
19
|
-
`});++
|
|
20
|
-
`}),n.push(t[
|
|
21
|
-
`}),n}function
|
|
22
|
-
`},i)),r}function hs(t,e){return t&&"run"in t?async function(n,l){let i=ds(n,{file:l,...e});await t.run(i,l)}:function(n,l){return ds(n,{file:l,...t||e})}}function Pp(t){if(t)throw t}var vs=q(E0(),1);function ro(t){if(typeof t!="object"||t===null)return!1;let e=Object.getPrototypeOf(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)}function Jp(){let t=[],e={run:n,use:l};return e;function n(...i){let r=-1,a=i.pop();if(typeof a!="function")throw new TypeError("Expected function as last argument, not "+a);o(null,...i);function o(u,...s){let c=t[++r],f=-1;if(u){a(u);return}for(;++f<i.length;)(s[f]===null||s[f]===void 0)&&(s[f]=i[f]);i=s,c?T0(c,o)(...s):a(null,...s)}}function l(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return t.push(i),e}}function T0(t,e){let n;return l;function l(...a){let o=t.length>a.length,u;o&&a.push(i);try{u=t.apply(this,a)}catch(s){let c=s;if(o&&n)throw c;return i(c)}o||(u&&u.then&&typeof u.then=="function"?u.then(r,i):u instanceof Error?i(u):r(u))}function i(a,...o){n||(n=!0,e(a,...o))}function r(a){i(null,a)}}var bn={basename:Qw,dirname:Xw,extname:Gw,join:Zw,sep:"/"};function Qw(t,e){if(e!==void 0&&typeof e!="string")throw new TypeError('"ext" argument must be a string');ao(t);let n=0,l=-1,i=t.length,r;if(e===void 0||e.length===0||e.length>t.length){for(;i--;)if(t.codePointAt(i)===47){if(r){n=i+1;break}}else l<0&&(r=!0,l=i+1);return l<0?"":t.slice(n,l)}if(e===t)return"";let a=-1,o=e.length-1;for(;i--;)if(t.codePointAt(i)===47){if(r){n=i+1;break}}else a<0&&(r=!0,a=i+1),o>-1&&(t.codePointAt(i)===e.codePointAt(o--)?o<0&&(l=i):(o=-1,l=a));return n===l?l=a:l<0&&(l=t.length),t.slice(n,l)}function Xw(t){if(ao(t),t.length===0)return".";let e=-1,n=t.length,l;for(;--n;)if(t.codePointAt(n)===47){if(l){e=n;break}}else l||(l=!0);return e<0?t.codePointAt(0)===47?"/":".":e===1&&t.codePointAt(0)===47?"//":t.slice(0,e)}function Gw(t){ao(t);let e=t.length,n=-1,l=0,i=-1,r=0,a;for(;e--;){let o=t.codePointAt(e);if(o===47){if(a){l=e+1;break}continue}n<0&&(a=!0,n=e+1),o===46?i<0?i=e:r!==1&&(r=1):i>-1&&(r=-1)}return i<0||n<0||r===0||r===1&&i===n-1&&i===l+1?"":t.slice(i,n)}function Zw(...t){let e=-1,n;for(;++e<t.length;)ao(t[e]),t[e]&&(n=n===void 0?t[e]:n+"/"+t[e]);return n===void 0?".":Kw(n)}function Kw(t){ao(t);let e=t.codePointAt(0)===47,n=Pw(t,!e);return n.length===0&&!e&&(n="."),n.length>0&&t.codePointAt(t.length-1)===47&&(n+="/"),e?"/"+n:n}function Pw(t,e){let n="",l=0,i=-1,r=0,a=-1,o,u;for(;++a<=t.length;){if(a<t.length)o=t.codePointAt(a);else{if(o===47)break;o=47}if(o===47){if(!(i===a-1||r===1))if(i!==a-1&&r===2){if(n.length<2||l!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(u=n.lastIndexOf("/"),u!==n.length-1){u<0?(n="",l=0):(n=n.slice(0,u),l=n.length-1-n.lastIndexOf("/")),i=a,r=0;continue}}else if(n.length>0){n="",l=0,i=a,r=0;continue}}e&&(n=n.length>0?n+"/..":"..",l=2)}else n.length>0?n+="/"+t.slice(i+1,a):n=t.slice(i+1,a),l=a-i-1;i=a,r=0}else o===46&&r>-1?r++:r=-1}return n}function ao(t){if(typeof t!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(t))}var w0={cwd:Jw};function Jw(){return"/"}function Mr(t){return!!(t!==null&&typeof t=="object"&&"href"in t&&t.href&&"protocol"in t&&t.protocol&&t.auth===void 0)}function A0(t){if(typeof t=="string")t=new URL(t);else if(!Mr(t)){let e=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+t+"`");throw e.code="ERR_INVALID_ARG_TYPE",e}if(t.protocol!=="file:"){let e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return Ww(t)}function Ww(t){if(t.hostname!==""){let l=new TypeError('File URL host must be "localhost" or empty on darwin');throw l.code="ERR_INVALID_FILE_URL_HOST",l}let e=t.pathname,n=-1;for(;++n<e.length;)if(e.codePointAt(n)===37&&e.codePointAt(n+1)===50){let l=e.codePointAt(n+2);if(l===70||l===102){let i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(e)}var Wp=["history","path","basename","stem","extname","dirname"],wi=class{constructor(e){let n;e?Mr(e)?n={path:e}:typeof e=="string"||$w(e)?n={value:e}:n=e:n={},this.cwd="cwd"in n?"":w0.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let l=-1;for(;++l<Wp.length;){let r=Wp[l];r in n&&n[r]!==void 0&&n[r]!==null&&(this[r]=r==="history"?[...n[r]]:n[r])}let i;for(i in n)Wp.includes(i)||(this[i]=n[i])}get basename(){return typeof this.path=="string"?bn.basename(this.path):void 0}set basename(e){tm(e,"basename"),$p(e,"basename"),this.path=bn.join(this.dirname||"",e)}get dirname(){return typeof this.path=="string"?bn.dirname(this.path):void 0}set dirname(e){C0(this.basename,"dirname"),this.path=bn.join(e||"",this.basename)}get extname(){return typeof this.path=="string"?bn.extname(this.path):void 0}set extname(e){if($p(e,"extname"),C0(this.dirname,"extname"),e){if(e.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(e.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=bn.join(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){Mr(e)&&(e=A0(e)),tm(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return typeof this.path=="string"?bn.basename(this.path,this.extname):void 0}set stem(e){tm(e,"stem"),$p(e,"stem"),this.path=bn.join(this.dirname||"",e+(this.extname||""))}fail(e,n,l){let i=this.message(e,n,l);throw i.fatal=!0,i}info(e,n,l){let i=this.message(e,n,l);return i.fatal=void 0,i}message(e,n,l){let i=new Kt(e,n,l);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(e){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(e||void 0).decode(this.value)}};function $p(t,e){if(t&&t.includes(bn.sep))throw new Error("`"+e+"` cannot be a path: did not expect `"+bn.sep+"`")}function tm(t,e){if(!t)throw new Error("`"+e+"` cannot be empty")}function C0(t,e){if(!t)throw new Error("Setting `"+e+"` requires `path` to be set too")}function $w(t){return!!(t&&typeof t=="object"&&"byteLength"in t&&"byteOffset"in t)}var R0=(function(t){let l=this.constructor.prototype,i=l[t],r=function(){return i.apply(r,arguments)};return Object.setPrototypeOf(r,l),r});var tA={}.hasOwnProperty,im=class t extends R0{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=Jp()}copy(){let e=new t,n=-1;for(;++n<this.attachers.length;){let l=this.attachers[n];e.use(...l)}return e.data((0,vs.default)(!0,{},this.namespace)),e}data(e,n){return typeof e=="string"?arguments.length===2?(lm("data",this.frozen),this.namespace[e]=n,this):tA.call(this.namespace,e)&&this.namespace[e]||void 0:e?(lm("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;let e=this;for(;++this.freezeIndex<this.attachers.length;){let[n,...l]=this.attachers[this.freezeIndex];if(l[0]===!1)continue;l[0]===!0&&(l[0]=void 0);let i=n.call(e,...l);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(e){this.freeze();let n=ys(e),l=this.parser||this.Parser;return em("parse",l),l(String(n),n)}process(e,n){let l=this;return this.freeze(),em("process",this.parser||this.Parser),nm("process",this.compiler||this.Compiler),n?i(void 0,n):new Promise(i);function i(r,a){let o=ys(e),u=l.parse(o);l.run(u,o,function(c,f,m){if(c||!f||!m)return s(c);let p=f,g=l.stringify(p,m);nA(g)?m.value=g:m.result=g,s(c,m)});function s(c,f){c||!f?a(c):r?r(f):n(void 0,f)}}}processSync(e){let n=!1,l;return this.freeze(),em("processSync",this.parser||this.Parser),nm("processSync",this.compiler||this.Compiler),this.process(e,i),D0("processSync","process",n),l;function i(r,a){n=!0,Pp(r),l=a}}run(e,n,l){M0(e),this.freeze();let i=this.transformers;return!l&&typeof n=="function"&&(l=n,n=void 0),l?r(void 0,l):new Promise(r);function r(a,o){let u=ys(n);i.run(e,u,s);function s(c,f,m){let p=f||e;c?o(c):a?a(p):l(void 0,p,m)}}}runSync(e,n){let l=!1,i;return this.run(e,n,r),D0("runSync","run",l),i;function r(a,o){Pp(a),i=o,l=!0}}stringify(e,n){this.freeze();let l=ys(n),i=this.compiler||this.Compiler;return nm("stringify",i),M0(e),i(e,l)}use(e,...n){let l=this.attachers,i=this.namespace;if(lm("use",this.frozen),e!=null)if(typeof e=="function")u(e,n);else if(typeof e=="object")Array.isArray(e)?o(e):a(e);else throw new TypeError("Expected usable value, not `"+e+"`");return this;function r(s){if(typeof s=="function")u(s,[]);else if(typeof s=="object")if(Array.isArray(s)){let[c,...f]=s;u(c,f)}else a(s);else throw new TypeError("Expected usable value, not `"+s+"`")}function a(s){if(!("plugins"in s)&&!("settings"in s))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");o(s.plugins),s.settings&&(i.settings=(0,vs.default)(!0,i.settings,s.settings))}function o(s){let c=-1;if(s!=null)if(Array.isArray(s))for(;++c<s.length;){let f=s[c];r(f)}else throw new TypeError("Expected a list of plugins, not `"+s+"`")}function u(s,c){let f=-1,m=-1;for(;++f<l.length;)if(l[f][0]===s){m=f;break}if(m===-1)l.push([s,...c]);else if(c.length>0){let[p,...g]=c,v=l[m][1];ro(v)&&ro(p)&&(p=(0,vs.default)(!0,v,p)),l[m]=[s,p,...g]}}}},rm=new im().freeze();function em(t,e){if(typeof e!="function")throw new TypeError("Cannot `"+t+"` without `parser`")}function nm(t,e){if(typeof e!="function")throw new TypeError("Cannot `"+t+"` without `compiler`")}function lm(t,e){if(e)throw new Error("Cannot call `"+t+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function M0(t){if(!ro(t)||typeof t.type!="string")throw new TypeError("Expected node, got `"+t+"`")}function D0(t,e,n){if(!n)throw new Error("`"+t+"` finished async. Use `"+e+"` instead")}function ys(t){return eA(t)?t:new wi(t)}function eA(t){return!!(t&&typeof t=="object"&&"message"in t&&"messages"in t)}function nA(t){return typeof t=="string"||lA(t)}function lA(t){return!!(t&&typeof t=="object"&&"byteLength"in t&&"byteOffset"in t)}var iA="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",N0=[],z0={allowDangerousHtml:!0},rA=/^(https?|ircs?|mailto|xmpp)$/i,aA=[{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 oo(t){let e=oA(t),n=uA(t);return sA(e.runSync(e.parse(n),n),t)}function oA(t){let e=t.rehypePlugins||N0,n=t.remarkPlugins||N0,l=t.remarkRehypeOptions?{...t.remarkRehypeOptions,...z0}:z0;return rm().use(as).use(n).use(hs,l).use(e)}function uA(t){let e=t.children||"",n=new wi;return typeof e=="string"?n.value=e:(""+e,void 0),n}function sA(t,e){let n=e.allowedElements,l=e.allowElement,i=e.components,r=e.disallowedElements,a=e.skipHtml,o=e.unwrapDisallowed,u=e.urlTransform||O0;for(let c of aA)Object.hasOwn(e,c.from)&&(""+c.from+(c.to?"use `"+c.to+"` instead":"remove it")+iA+c.id,void 0);return n&&r&&void 0,Ti(t,s),Ap(t,{Fragment:Dr.Fragment,components:i,ignoreInvalidStyle:!0,jsx:Dr.jsx,jsxs:Dr.jsxs,passKeys:!0,passNode:!0});function s(c,f,m){if(c.type==="raw"&&m&&typeof f=="number")return a?m.children.splice(f,1):m.children[f]={type:"text",value:c.value},f;if(c.type==="element"){let p;for(p in Ja)if(Object.hasOwn(Ja,p)&&Object.hasOwn(c.properties,p)){let g=c.properties[p],v=Ja[p];(v===null||v.includes(c.tagName))&&(c.properties[p]=u(String(g||""),p,c))}}if(c.type==="element"){let p=n?!n.includes(c.tagName):r?r.includes(c.tagName):!1;if(!p&&l&&typeof f=="number"&&(p=!l(c,f,m)),p&&m&&typeof f=="number")return o&&c.children?m.children.splice(f,1,...c.children):m.children.splice(f,1),f}}}function O0(t){let e=t.indexOf(":"),n=t.indexOf("?"),l=t.indexOf("#"),i=t.indexOf("/");return e===-1||i!==-1&&e>i||n!==-1&&e>n||l!==-1&&e>l||rA.test(t.slice(0,e))?t:""}function am(t,e){let n=String(t);if(typeof e!="string")throw new TypeError("Expected character");let l=0,i=n.indexOf(e);for(;i!==-1;)l++,i=n.indexOf(e,i+e.length);return l}function om(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function um(t,e,n){let i=Hl((n||{}).ignore||[]),r=cA(e),a=-1;for(;++a<r.length;)io(t,"text",o);function o(s,c){let f=-1,m;for(;++f<c.length;){let p=c[f],g=m?m.children:void 0;if(i(p,g?g.indexOf(p):void 0,m))return;m=p}if(m)return u(s,c)}function u(s,c){let f=c[c.length-1],m=r[a][0],p=r[a][1],g=0,k=f.children.indexOf(s),d=!1,h=[];m.lastIndex=0;let y=m.exec(s.value);for(;y;){let T=y.index,C={index:y.index,input:y.input,stack:[...c,s]},E=p(...y,C);if(typeof E=="string"&&(E=E.length>0?{type:"text",value:E}:void 0),E===!1?m.lastIndex=T+1:(g!==T&&h.push({type:"text",value:s.value.slice(g,T)}),Array.isArray(E)?h.push(...E):E&&h.push(E),g=T+y[0].length,d=!0),!m.global)break;y=m.exec(s.value)}return d?(g<s.value.length&&h.push({type:"text",value:s.value.slice(g)}),f.children.splice(k,1,...h)):h=[s],k+h.length}}function cA(t){let e=[];if(!Array.isArray(t))throw new TypeError("Expected find and replace tuple or list of tuples");let n=!t[0]||Array.isArray(t[0])?t:[t],l=-1;for(;++l<n.length;){let i=n[l];e.push([fA(i[0]),pA(i[1])])}return e}function fA(t){return typeof t=="string"?new RegExp(om(t),"g"):t}function pA(t){return typeof t=="function"?t:function(){return t}}var sm="phrasing",cm=["autolink","link","image","label"];function pm(){return{transforms:[vA],enter:{literalAutolink:mA,literalAutolinkEmail:fm,literalAutolinkHttp:fm,literalAutolinkWww:fm},exit:{literalAutolink:yA,literalAutolinkEmail:gA,literalAutolinkHttp:dA,literalAutolinkWww:hA}}}function mm(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:sm,notInConstruct:cm},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:sm,notInConstruct:cm},{character:":",before:"[ps]",after:"\\/",inConstruct:sm,notInConstruct:cm}]}}function mA(t){this.enter({type:"link",title:null,url:"",children:[]},t)}function fm(t){this.config.enter.autolinkProtocol.call(this,t)}function dA(t){this.config.exit.autolinkProtocol.call(this,t)}function hA(t){this.config.exit.data.call(this,t);let e=this.stack[this.stack.length-1];e.type,e.url="http://"+this.sliceSerialize(t)}function gA(t){this.config.exit.autolinkEmail.call(this,t)}function yA(t){this.exit(t)}function vA(t){um(t,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,bA],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,xA]],{ignore:["link","linkReference"]})}function bA(t,e,n,l,i){let r="";if(!L0(i)||(/^w/i.test(e)&&(n=e+n,e="",r="http://"),!SA(n)))return!1;let a=kA(n+l);if(!a[0])return!1;let o={type:"link",title:null,url:r+e+a[0],children:[{type:"text",value:e+a[0]}]};return a[1]?[o,{type:"text",value:a[1]}]:o}function xA(t,e,n,l){return!L0(l,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+e+"@"+n,children:[{type:"text",value:e+"@"+n}]}}function SA(t){let e=t.split(".");return!(e.length<2||e[e.length-1]&&(/_/.test(e[e.length-1])||!/[a-zA-Z\d]/.test(e[e.length-1]))||e[e.length-2]&&(/_/.test(e[e.length-2])||!/[a-zA-Z\d]/.test(e[e.length-2])))}function kA(t){let e=/[!"&'),.:;<>?\]}]+$/.exec(t);if(!e)return[t,void 0];t=t.slice(0,e.index);let n=e[0],l=n.indexOf(")"),i=am(t,"("),r=am(t,")");for(;l!==-1&&i>r;)t+=n.slice(0,l+1),n=n.slice(l+1),l=n.indexOf(")"),r++;return[t,n]}function L0(t,e){let n=t.input.charCodeAt(t.index-1);return(t.index===0||Ln(n)||bi(n))&&(!e||n!==47)}U0.peek=NA;function EA(){this.buffer()}function TA(t){this.enter({type:"footnoteReference",identifier:"",label:""},t)}function wA(){this.buffer()}function AA(t){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},t)}function CA(t){let e=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Te(this.sliceSerialize(t)).toLowerCase(),n.label=e}function RA(t){this.exit(t)}function MA(t){let e=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Te(this.sliceSerialize(t)).toLowerCase(),n.label=e}function DA(t){this.exit(t)}function NA(){return"["}function U0(t,e,n,l){let i=n.createTracker(l),r=i.move("[^"),a=n.enter("footnoteReference"),o=n.enter("reference");return r+=i.move(n.safe(n.associationId(t),{after:"]",before:r})),o(),a(),r+=i.move("]"),r}function dm(){return{enter:{gfmFootnoteCallString:EA,gfmFootnoteCall:TA,gfmFootnoteDefinitionLabelString:wA,gfmFootnoteDefinition:AA},exit:{gfmFootnoteCallString:CA,gfmFootnoteCall:RA,gfmFootnoteDefinitionLabelString:MA,gfmFootnoteDefinition:DA}}}function hm(t){let e=!1;return t&&t.firstLineBlank&&(e=!0),{handlers:{footnoteDefinition:n,footnoteReference:U0},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(l,i,r,a){let o=r.createTracker(a),u=o.move("[^"),s=r.enter("footnoteDefinition"),c=r.enter("label");return u+=o.move(r.safe(r.associationId(l),{before:u,after:"]"})),c(),u+=o.move("]:"),l.children&&l.children.length>0&&(o.shift(4),u+=o.move((e?`
|
|
23
|
-
`:" ")+r.indentLines(r.containerFlow(
|
|
24
|
-
`)}function
|
|
25
|
-
`&&
|
|
26
|
-
`}function
|
|
18
|
+
`}]}}var Qi=(function(t){if(t==null)return HT;if(typeof t=="function")return hs(t);if(typeof t=="object")return Array.isArray(t)?LT(t):BT(t);if(typeof t=="string")return UT(t);throw new Error("Expected function, string, or object as test")});function LT(t){let e=[],n=-1;for(;++n<t.length;)e[n]=Qi(t[n]);return hs(i);function i(...l){let r=-1;for(;++r<e.length;)if(e[r].apply(this,l))return!0;return!1}}function BT(t){let e=t;return hs(n);function n(i){let l=i,r;for(r in t)if(l[r]!==e[r])return!1;return!0}}function UT(t){return hs(e);function e(n){return n&&n.type===t}}function hs(t){return e;function e(n,i,l){return!!(qT(n)&&t.call(this,n,typeof i=="number"?i:void 0,l||void 0))}}function HT(){return!0}function qT(t){return t!==null&&typeof t=="object"&&"type"in t}var y1=[],gs=!0,Cl=!1,ys="skip";function uo(t,e,n,i){let l;typeof e=="function"&&typeof n!="function"?(i=n,n=e):l=e;let r=Qi(l),a=i?-1:1;o(t,void 0,[])();function o(u,s,c){let f=u&&typeof u=="object"?u:{};if(typeof f.type=="string"){let p=typeof f.tagName=="string"?f.tagName:typeof f.name=="string"?f.name:void 0;Object.defineProperty(d,"name",{value:"node ("+(u.type+(p?"<"+p+">":""))+")"})}return d;function d(){let p=y1,g,b,T;if((!e||r(u,s,c[c.length-1]||void 0))&&(p=IT(n(u,c)),p[0]===Cl))return p;if("children"in u&&u.children){let m=u;if(m.children&&p[0]!==ys)for(b=(i?m.children.length:-1)+a,T=c.concat(m);b>-1&&b<m.children.length;){let h=m.children[b];if(g=o(h,b,T)(),g[0]===Cl)return g;b=typeof g[1]=="number"?g[1]:b+a}}return p}}}function IT(t){return Array.isArray(t)?t:typeof t=="number"?[gs,t]:t==null?y1:[t]}function Rl(t,e,n,i){let l,r,a;typeof e=="function"&&typeof n!="function"?(r=void 0,a=e,l=n):(r=e,a=n,l=i),uo(t,r,o,l);function o(u,s){let c=s[s.length-1],f=c?c.children.indexOf(u):void 0;return a(u,f,c)}}var Wp={}.hasOwnProperty,jT={};function v1(t,e){let n=e||jT,i=new Map,l=new Map,r=new Map,a={...c1,...n.handlers},o={all:s,applyData:VT,definitionById:i,footnoteById:l,footnoteCounts:r,footnoteOrder:[],handlers:a,one:u,options:n,patch:YT,wrap:QT};return Rl(t,function(c){if(c.type==="definition"||c.type==="footnoteDefinition"){let f=c.type==="definition"?i:l,d=String(c.identifier).toUpperCase();f.has(d)||f.set(d,c)}}),o;function u(c,f){let d=c.type,p=o.handlers[d];if(Wp.call(o.handlers,d)&&p)return p(o,c,f);if(o.options.passThrough&&o.options.passThrough.includes(d)){if("children"in c){let{children:b,...T}=c,m=zr(T);return m.children=o.all(c),m}return zr(c)}return(o.options.unknownHandler||FT)(o,c,f)}function s(c){let f=[];if("children"in c){let d=c.children,p=-1;for(;++p<d.length;){let g=o.one(d[p],c);if(g){if(p&&d[p-1].type==="break"&&(!Array.isArray(g)&&g.type==="text"&&(g.value=b1(g.value)),!Array.isArray(g)&&g.type==="element")){let b=g.children[0];b&&b.type==="text"&&(b.value=b1(b.value))}Array.isArray(g)?f.push(...g):f.push(g)}}}return f}}function YT(t,e){t.position&&(e.position=Ap(t))}function VT(t,e){let n=e;if(t&&t.data){let i=t.data.hName,l=t.data.hChildren,r=t.data.hProperties;if(typeof i=="string")if(n.type==="element")n.tagName=i;else{let a="children"in n?n.children:[n];n={type:"element",tagName:i,properties:{},children:a}}n.type==="element"&&r&&Object.assign(n.properties,zr(r)),"children"in n&&n.children&&l!==null&&l!==void 0&&(n.children=l)}return n}function FT(t,e){let n=e.data||{},i="value"in e&&!(Wp.call(n,"hProperties")||Wp.call(n,"hChildren"))?{type:"text",value:e.value}:{type:"element",tagName:"div",properties:{},children:t.all(e)};return t.patch(e,i),t.applyData(e,i)}function QT(t,e){let n=[],i=-1;for(e&&n.push({type:"text",value:`
|
|
19
|
+
`});++i<t.length;)i&&n.push({type:"text",value:`
|
|
20
|
+
`}),n.push(t[i]);return e&&t.length>0&&n.push({type:"text",value:`
|
|
21
|
+
`}),n}function b1(t){let e=0,n=t.charCodeAt(e);for(;n===9||n===32;)e++,n=t.charCodeAt(e);return t.slice(e)}function bs(t,e){let n=v1(t,e),i=n.one(t,void 0),l=g1(n),r=Array.isArray(i)?{type:"root",children:i}:i||{type:"root",children:[]};return l&&("children"in r,r.children.push({type:"text",value:`
|
|
22
|
+
`},l)),r}function vs(t,e){return t&&"run"in t?async function(n,i){let l=bs(n,{file:i,...e});await t.run(l,i)}:function(n,i){return bs(n,{file:i,...t||e})}}function $p(t){if(t)throw t}var ks=I(R1(),1);function so(t){if(typeof t!="object"||t===null)return!1;let e=Object.getPrototypeOf(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)}function td(){let t=[],e={run:n,use:i};return e;function n(...l){let r=-1,a=l.pop();if(typeof a!="function")throw new TypeError("Expected function as last argument, not "+a);o(null,...l);function o(u,...s){let c=t[++r],f=-1;if(u){a(u);return}for(;++f<l.length;)(s[f]===null||s[f]===void 0)&&(s[f]=l[f]);l=s,c?N1(c,o)(...s):a(null,...s)}}function i(l){if(typeof l!="function")throw new TypeError("Expected `middelware` to be a function, not "+l);return t.push(l),e}}function N1(t,e){let n;return i;function i(...a){let o=t.length>a.length,u;o&&a.push(l);try{u=t.apply(this,a)}catch(s){let c=s;if(o&&n)throw c;return l(c)}o||(u&&u.then&&typeof u.then=="function"?u.then(r,l):u instanceof Error?l(u):r(u))}function l(a,...o){n||(n=!0,e(a,...o))}function r(a){l(null,a)}}var Tn={basename:XT,dirname:GT,extname:ZT,join:KT,sep:"/"};function XT(t,e){if(e!==void 0&&typeof e!="string")throw new TypeError('"ext" argument must be a string');co(t);let n=0,i=-1,l=t.length,r;if(e===void 0||e.length===0||e.length>t.length){for(;l--;)if(t.codePointAt(l)===47){if(r){n=l+1;break}}else i<0&&(r=!0,i=l+1);return i<0?"":t.slice(n,i)}if(e===t)return"";let a=-1,o=e.length-1;for(;l--;)if(t.codePointAt(l)===47){if(r){n=l+1;break}}else a<0&&(r=!0,a=l+1),o>-1&&(t.codePointAt(l)===e.codePointAt(o--)?o<0&&(i=l):(o=-1,i=a));return n===i?i=a:i<0&&(i=t.length),t.slice(n,i)}function GT(t){if(co(t),t.length===0)return".";let e=-1,n=t.length,i;for(;--n;)if(t.codePointAt(n)===47){if(i){e=n;break}}else i||(i=!0);return e<0?t.codePointAt(0)===47?"/":".":e===1&&t.codePointAt(0)===47?"//":t.slice(0,e)}function ZT(t){co(t);let e=t.length,n=-1,i=0,l=-1,r=0,a;for(;e--;){let o=t.codePointAt(e);if(o===47){if(a){i=e+1;break}continue}n<0&&(a=!0,n=e+1),o===46?l<0?l=e:r!==1&&(r=1):l>-1&&(r=-1)}return l<0||n<0||r===0||r===1&&l===n-1&&l===i+1?"":t.slice(l,n)}function KT(...t){let e=-1,n;for(;++e<t.length;)co(t[e]),t[e]&&(n=n===void 0?t[e]:n+"/"+t[e]);return n===void 0?".":PT(n)}function PT(t){co(t);let e=t.codePointAt(0)===47,n=JT(t,!e);return n.length===0&&!e&&(n="."),n.length>0&&t.codePointAt(t.length-1)===47&&(n+="/"),e?"/"+n:n}function JT(t,e){let n="",i=0,l=-1,r=0,a=-1,o,u;for(;++a<=t.length;){if(a<t.length)o=t.codePointAt(a);else{if(o===47)break;o=47}if(o===47){if(!(l===a-1||r===1))if(l!==a-1&&r===2){if(n.length<2||i!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(u=n.lastIndexOf("/"),u!==n.length-1){u<0?(n="",i=0):(n=n.slice(0,u),i=n.length-1-n.lastIndexOf("/")),l=a,r=0;continue}}else if(n.length>0){n="",i=0,l=a,r=0;continue}}e&&(n=n.length>0?n+"/..":"..",i=2)}else n.length>0?n+="/"+t.slice(l+1,a):n=t.slice(l+1,a),i=a-l-1;l=a,r=0}else o===46&&r>-1?r++:r=-1}return n}function co(t){if(typeof t!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(t))}var M1={cwd:WT};function WT(){return"/"}function _r(t){return!!(t!==null&&typeof t=="object"&&"href"in t&&t.href&&"protocol"in t&&t.protocol&&t.auth===void 0)}function D1(t){if(typeof t=="string")t=new URL(t);else if(!_r(t)){let e=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+t+"`");throw e.code="ERR_INVALID_ARG_TYPE",e}if(t.protocol!=="file:"){let e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return $T(t)}function $T(t){if(t.hostname!==""){let i=new TypeError('File URL host must be "localhost" or empty on darwin');throw i.code="ERR_INVALID_FILE_URL_HOST",i}let e=t.pathname,n=-1;for(;++n<e.length;)if(e.codePointAt(n)===37&&e.codePointAt(n+1)===50){let i=e.codePointAt(n+2);if(i===70||i===102){let l=new TypeError("File URL path must not include encoded / characters");throw l.code="ERR_INVALID_FILE_URL_PATH",l}}return decodeURIComponent(e)}var ed=["history","path","basename","stem","extname","dirname"],Nl=class{constructor(e){let n;e?_r(e)?n={path:e}:typeof e=="string"||tA(e)?n={value:e}:n=e:n={},this.cwd="cwd"in n?"":M1.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let i=-1;for(;++i<ed.length;){let r=ed[i];r in n&&n[r]!==void 0&&n[r]!==null&&(this[r]=r==="history"?[...n[r]]:n[r])}let l;for(l in n)ed.includes(l)||(this[l]=n[l])}get basename(){return typeof this.path=="string"?Tn.basename(this.path):void 0}set basename(e){id(e,"basename"),nd(e,"basename"),this.path=Tn.join(this.dirname||"",e)}get dirname(){return typeof this.path=="string"?Tn.dirname(this.path):void 0}set dirname(e){z1(this.basename,"dirname"),this.path=Tn.join(e||"",this.basename)}get extname(){return typeof this.path=="string"?Tn.extname(this.path):void 0}set extname(e){if(nd(e,"extname"),z1(this.dirname,"extname"),e){if(e.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(e.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Tn.join(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){_r(e)&&(e=D1(e)),id(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return typeof this.path=="string"?Tn.basename(this.path,this.extname):void 0}set stem(e){id(e,"stem"),nd(e,"stem"),this.path=Tn.join(this.dirname||"",e+(this.extname||""))}fail(e,n,i){let l=this.message(e,n,i);throw l.fatal=!0,l}info(e,n,i){let l=this.message(e,n,i);return l.fatal=void 0,l}message(e,n,i){let l=new ne(e,n,i);return this.path&&(l.name=this.path+":"+l.name,l.file=this.path),l.fatal=!1,this.messages.push(l),l}toString(e){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(e||void 0).decode(this.value)}};function nd(t,e){if(t&&t.includes(Tn.sep))throw new Error("`"+e+"` cannot be a path: did not expect `"+Tn.sep+"`")}function id(t,e){if(!t)throw new Error("`"+e+"` cannot be empty")}function z1(t,e){if(!t)throw new Error("Setting `"+e+"` requires `path` to be set too")}function tA(t){return!!(t&&typeof t=="object"&&"byteLength"in t&&"byteOffset"in t)}var _1=(function(t){let i=this.constructor.prototype,l=i[t],r=function(){return l.apply(r,arguments)};return Object.setPrototypeOf(r,i),r});var eA={}.hasOwnProperty,od=class t extends _1{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=td()}copy(){let e=new t,n=-1;for(;++n<this.attachers.length;){let i=this.attachers[n];e.use(...i)}return e.data((0,ks.default)(!0,{},this.namespace)),e}data(e,n){return typeof e=="string"?arguments.length===2?(ad("data",this.frozen),this.namespace[e]=n,this):eA.call(this.namespace,e)&&this.namespace[e]||void 0:e?(ad("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;let e=this;for(;++this.freezeIndex<this.attachers.length;){let[n,...i]=this.attachers[this.freezeIndex];if(i[0]===!1)continue;i[0]===!0&&(i[0]=void 0);let l=n.call(e,...i);typeof l=="function"&&this.transformers.use(l)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(e){this.freeze();let n=Ss(e),i=this.parser||this.Parser;return ld("parse",i),i(String(n),n)}process(e,n){let i=this;return this.freeze(),ld("process",this.parser||this.Parser),rd("process",this.compiler||this.Compiler),n?l(void 0,n):new Promise(l);function l(r,a){let o=Ss(e),u=i.parse(o);i.run(u,o,function(c,f,d){if(c||!f||!d)return s(c);let p=f,g=i.stringify(p,d);iA(g)?d.value=g:d.result=g,s(c,d)});function s(c,f){c||!f?a(c):r?r(f):n(void 0,f)}}}processSync(e){let n=!1,i;return this.freeze(),ld("processSync",this.parser||this.Parser),rd("processSync",this.compiler||this.Compiler),this.process(e,l),L1("processSync","process",n),i;function l(r,a){n=!0,$p(r),i=a}}run(e,n,i){O1(e),this.freeze();let l=this.transformers;return!i&&typeof n=="function"&&(i=n,n=void 0),i?r(void 0,i):new Promise(r);function r(a,o){let u=Ss(n);l.run(e,u,s);function s(c,f,d){let p=f||e;c?o(c):a?a(p):i(void 0,p,d)}}}runSync(e,n){let i=!1,l;return this.run(e,n,r),L1("runSync","run",i),l;function r(a,o){$p(a),l=o,i=!0}}stringify(e,n){this.freeze();let i=Ss(n),l=this.compiler||this.Compiler;return rd("stringify",l),O1(e),l(e,i)}use(e,...n){let i=this.attachers,l=this.namespace;if(ad("use",this.frozen),e!=null)if(typeof e=="function")u(e,n);else if(typeof e=="object")Array.isArray(e)?o(e):a(e);else throw new TypeError("Expected usable value, not `"+e+"`");return this;function r(s){if(typeof s=="function")u(s,[]);else if(typeof s=="object")if(Array.isArray(s)){let[c,...f]=s;u(c,f)}else a(s);else throw new TypeError("Expected usable value, not `"+s+"`")}function a(s){if(!("plugins"in s)&&!("settings"in s))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");o(s.plugins),s.settings&&(l.settings=(0,ks.default)(!0,l.settings,s.settings))}function o(s){let c=-1;if(s!=null)if(Array.isArray(s))for(;++c<s.length;){let f=s[c];r(f)}else throw new TypeError("Expected a list of plugins, not `"+s+"`")}function u(s,c){let f=-1,d=-1;for(;++f<i.length;)if(i[f][0]===s){d=f;break}if(d===-1)i.push([s,...c]);else if(c.length>0){let[p,...g]=c,b=i[d][1];so(b)&&so(p)&&(p=(0,ks.default)(!0,b,p)),i[d]=[s,p,...g]}}}},ud=new od().freeze();function ld(t,e){if(typeof e!="function")throw new TypeError("Cannot `"+t+"` without `parser`")}function rd(t,e){if(typeof e!="function")throw new TypeError("Cannot `"+t+"` without `compiler`")}function ad(t,e){if(e)throw new Error("Cannot call `"+t+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function O1(t){if(!so(t)||typeof t.type!="string")throw new TypeError("Expected node, got `"+t+"`")}function L1(t,e,n){if(!n)throw new Error("`"+t+"` finished async. Use `"+e+"` instead")}function Ss(t){return nA(t)?t:new Nl(t)}function nA(t){return!!(t&&typeof t=="object"&&"message"in t&&"messages"in t)}function iA(t){return typeof t=="string"||lA(t)}function lA(t){return!!(t&&typeof t=="object"&&"byteLength"in t&&"byteOffset"in t)}var rA="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",B1=[],U1={allowDangerousHtml:!0},aA=/^(https?|ircs?|mailto|xmpp)$/i,oA=[{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 fo(t){let e=uA(t),n=sA(t);return cA(e.runSync(e.parse(n),n),t)}function uA(t){let e=t.rehypePlugins||B1,n=t.remarkPlugins||B1,i=t.remarkRehypeOptions?{...t.remarkRehypeOptions,...U1}:U1;return ud().use(cs).use(n).use(vs,i).use(e)}function sA(t){let e=t.children||"",n=new Nl;return typeof e=="string"?n.value=e:(""+e,void 0),n}function cA(t,e){let n=e.allowedElements,i=e.allowElement,l=e.components,r=e.disallowedElements,a=e.skipHtml,o=e.unwrapDisallowed,u=e.urlTransform||q1;for(let c of oA)Object.hasOwn(e,c.from)&&(""+c.from+(c.to?"use `"+c.to+"` instead":"remove it")+rA+c.id,void 0);return n&&r&&void 0,Rl(t,s),Np(t,{Fragment:Or.Fragment,components:l,ignoreInvalidStyle:!0,jsx:Or.jsx,jsxs:Or.jsxs,passKeys:!0,passNode:!0});function s(c,f,d){if(c.type==="raw"&&d&&typeof f=="number")return a?d.children.splice(f,1):d.children[f]={type:"text",value:c.value},f;if(c.type==="element"){let p;for(p in eo)if(Object.hasOwn(eo,p)&&Object.hasOwn(c.properties,p)){let g=c.properties[p],b=eo[p];(b===null||b.includes(c.tagName))&&(c.properties[p]=u(String(g||""),p,c))}}if(c.type==="element"){let p=n?!n.includes(c.tagName):r?r.includes(c.tagName):!1;if(!p&&i&&typeof f=="number"&&(p=!i(c,f,d)),p&&d&&typeof f=="number")return o&&c.children?d.children.splice(f,1,...c.children):d.children.splice(f,1),f}}}function q1(t){let e=t.indexOf(":"),n=t.indexOf("?"),i=t.indexOf("#"),l=t.indexOf("/");return e===-1||l!==-1&&e>l||n!==-1&&e>n||i!==-1&&e>i||aA.test(t.slice(0,e))?t:""}function sd(t,e){let n=String(t);if(typeof e!="string")throw new TypeError("Expected character");let i=0,l=n.indexOf(e);for(;l!==-1;)i++,l=n.indexOf(e,l+e.length);return i}function cd(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function fd(t,e,n){let l=Qi((n||{}).ignore||[]),r=fA(e),a=-1;for(;++a<r.length;)uo(t,"text",o);function o(s,c){let f=-1,d;for(;++f<c.length;){let p=c[f],g=d?d.children:void 0;if(l(p,g?g.indexOf(p):void 0,d))return;d=p}if(d)return u(s,c)}function u(s,c){let f=c[c.length-1],d=r[a][0],p=r[a][1],g=0,T=f.children.indexOf(s),m=!1,h=[];d.lastIndex=0;let y=d.exec(s.value);for(;y;){let k=y.index,A={index:y.index,input:y.input,stack:[...c,s]},w=p(...y,A);if(typeof w=="string"&&(w=w.length>0?{type:"text",value:w}:void 0),w===!1?d.lastIndex=k+1:(g!==k&&h.push({type:"text",value:s.value.slice(g,k)}),Array.isArray(w)?h.push(...w):w&&h.push(w),g=k+y[0].length,m=!0),!d.global)break;y=d.exec(s.value)}return m?(g<s.value.length&&h.push({type:"text",value:s.value.slice(g)}),f.children.splice(T,1,...h)):h=[s],T+h.length}}function fA(t){let e=[];if(!Array.isArray(t))throw new TypeError("Expected find and replace tuple or list of tuples");let n=!t[0]||Array.isArray(t[0])?t:[t],i=-1;for(;++i<n.length;){let l=n[i];e.push([pA(l[0]),dA(l[1])])}return e}function pA(t){return typeof t=="string"?new RegExp(cd(t),"g"):t}function dA(t){return typeof t=="function"?t:function(){return t}}var pd="phrasing",dd=["autolink","link","image","label"];function hd(){return{transforms:[vA],enter:{literalAutolink:mA,literalAutolinkEmail:md,literalAutolinkHttp:md,literalAutolinkWww:md},exit:{literalAutolink:bA,literalAutolinkEmail:yA,literalAutolinkHttp:hA,literalAutolinkWww:gA}}}function gd(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:pd,notInConstruct:dd},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:pd,notInConstruct:dd},{character:":",before:"[ps]",after:"\\/",inConstruct:pd,notInConstruct:dd}]}}function mA(t){this.enter({type:"link",title:null,url:"",children:[]},t)}function md(t){this.config.enter.autolinkProtocol.call(this,t)}function hA(t){this.config.exit.autolinkProtocol.call(this,t)}function gA(t){this.config.exit.data.call(this,t);let e=this.stack[this.stack.length-1];e.type,e.url="http://"+this.sliceSerialize(t)}function yA(t){this.config.exit.autolinkEmail.call(this,t)}function bA(t){this.exit(t)}function vA(t){fd(t,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,xA],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,SA]],{ignore:["link","linkReference"]})}function xA(t,e,n,i,l){let r="";if(!I1(l)||(/^w/i.test(e)&&(n=e+n,e="",r="http://"),!kA(n)))return!1;let a=wA(n+i);if(!a[0])return!1;let o={type:"link",title:null,url:r+e+a[0],children:[{type:"text",value:e+a[0]}]};return a[1]?[o,{type:"text",value:a[1]}]:o}function SA(t,e,n,i){return!I1(i,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+e+"@"+n,children:[{type:"text",value:e+"@"+n}]}}function kA(t){let e=t.split(".");return!(e.length<2||e[e.length-1]&&(/_/.test(e[e.length-1])||!/[a-zA-Z\d]/.test(e[e.length-1]))||e[e.length-2]&&(/_/.test(e[e.length-2])||!/[a-zA-Z\d]/.test(e[e.length-2])))}function wA(t){let e=/[!"&'),.:;<>?\]}]+$/.exec(t);if(!e)return[t,void 0];t=t.slice(0,e.index);let n=e[0],i=n.indexOf(")"),l=sd(t,"("),r=sd(t,")");for(;i!==-1&&l>r;)t+=n.slice(0,i+1),n=n.slice(i+1),i=n.indexOf(")"),r++;return[t,n]}function I1(t,e){let n=t.input.charCodeAt(t.index-1);return(t.index===0||Hn(n)||wl(n))&&(!e||n!==47)}j1.peek=zA;function EA(){this.buffer()}function TA(t){this.enter({type:"footnoteReference",identifier:"",label:""},t)}function AA(){this.buffer()}function CA(t){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},t)}function RA(t){let e=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Ne(this.sliceSerialize(t)).toLowerCase(),n.label=e}function NA(t){this.exit(t)}function MA(t){let e=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Ne(this.sliceSerialize(t)).toLowerCase(),n.label=e}function DA(t){this.exit(t)}function zA(){return"["}function j1(t,e,n,i){let l=n.createTracker(i),r=l.move("[^"),a=n.enter("footnoteReference"),o=n.enter("reference");return r+=l.move(n.safe(n.associationId(t),{after:"]",before:r})),o(),a(),r+=l.move("]"),r}function yd(){return{enter:{gfmFootnoteCallString:EA,gfmFootnoteCall:TA,gfmFootnoteDefinitionLabelString:AA,gfmFootnoteDefinition:CA},exit:{gfmFootnoteCallString:RA,gfmFootnoteCall:NA,gfmFootnoteDefinitionLabelString:MA,gfmFootnoteDefinition:DA}}}function bd(t){let e=!1;return t&&t.firstLineBlank&&(e=!0),{handlers:{footnoteDefinition:n,footnoteReference:j1},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(i,l,r,a){let o=r.createTracker(a),u=o.move("[^"),s=r.enter("footnoteDefinition"),c=r.enter("label");return u+=o.move(r.safe(r.associationId(i),{before:u,after:"]"})),c(),u+=o.move("]:"),i.children&&i.children.length>0&&(o.shift(4),u+=o.move((e?`
|
|
23
|
+
`:" ")+r.indentLines(r.containerFlow(i,o.current()),e?Y1:_A))),s(),u}}function _A(t,e,n){return e===0?t:Y1(t,e,n)}function Y1(t,e,n){return(n?"":" ")+t}var OA=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];V1.peek=UA;function vd(){return{canContainEols:["delete"],enter:{strikethrough:LA},exit:{strikethrough:BA}}}function xd(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:OA}],handlers:{delete:V1}}}function LA(t){this.enter({type:"delete",children:[]},t)}function BA(t){this.exit(t)}function V1(t,e,n,i){let l=n.createTracker(i),r=n.enter("strikethrough"),a=l.move("~~");return a+=n.containerPhrasing(t,{...l.current(),before:a,after:"~"}),a+=l.move("~~"),r(),a}function UA(){return"~"}function HA(t){return t.length}function Q1(t,e){let n=e||{},i=(n.align||[]).concat(),l=n.stringLength||HA,r=[],a=[],o=[],u=[],s=0,c=-1;for(;++c<t.length;){let b=[],T=[],m=-1;for(t[c].length>s&&(s=t[c].length);++m<t[c].length;){let h=qA(t[c][m]);if(n.alignDelimiters!==!1){let y=l(h);T[m]=y,(u[m]===void 0||y>u[m])&&(u[m]=y)}b.push(h)}a[c]=b,o[c]=T}let f=-1;if(typeof i=="object"&&"length"in i)for(;++f<s;)r[f]=F1(i[f]);else{let b=F1(i);for(;++f<s;)r[f]=b}f=-1;let d=[],p=[];for(;++f<s;){let b=r[f],T="",m="";b===99?(T=":",m=":"):b===108?T=":":b===114&&(m=":");let h=n.alignDelimiters===!1?1:Math.max(1,u[f]-T.length-m.length),y=T+"-".repeat(h)+m;n.alignDelimiters!==!1&&(h=T.length+h+m.length,h>u[f]&&(u[f]=h),p[f]=h),d[f]=y}a.splice(1,0,d),o.splice(1,0,p),c=-1;let g=[];for(;++c<a.length;){let b=a[c],T=o[c];f=-1;let m=[];for(;++f<s;){let h=b[f]||"",y="",k="";if(n.alignDelimiters!==!1){let A=u[f]-(T[f]||0),w=r[f];w===114?y=" ".repeat(A):w===99?A%2?(y=" ".repeat(A/2+.5),k=" ".repeat(A/2-.5)):(y=" ".repeat(A/2),k=y):k=" ".repeat(A)}n.delimiterStart!==!1&&!f&&m.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&h==="")&&(n.delimiterStart!==!1||f)&&m.push(" "),n.alignDelimiters!==!1&&m.push(y),m.push(h),n.alignDelimiters!==!1&&m.push(k),n.padding!==!1&&m.push(" "),(n.delimiterEnd!==!1||f!==s-1)&&m.push("|")}g.push(n.delimiterEnd===!1?m.join("").replace(/ +$/,""):m.join(""))}return g.join(`
|
|
24
|
+
`)}function qA(t){return t==null?"":String(t)}function F1(t){let e=typeof t=="string"?t.codePointAt(0):0;return e===67||e===99?99:e===76||e===108?108:e===82||e===114?114:0}function X1(t,e,n,i){let l=n.enter("blockquote"),r=n.createTracker(i);r.move("> "),r.shift(2);let a=n.indentLines(n.containerFlow(t,r.current()),IA);return l(),a}function IA(t,e,n){return">"+(n?"":" ")+t}function Z1(t,e){return G1(t,e.inConstruct,!0)&&!G1(t,e.notInConstruct,!1)}function G1(t,e,n){if(typeof e=="string"&&(e=[e]),!e||e.length===0)return n;let i=-1;for(;++i<e.length;)if(t.includes(e[i]))return!0;return!1}function Sd(t,e,n,i){let l=-1;for(;++l<n.unsafe.length;)if(n.unsafe[l].character===`
|
|
25
|
+
`&&Z1(n.stack,n.unsafe[l]))return/[ \t]/.test(i.before)?"":" ";return`\\
|
|
26
|
+
`}function K1(t,e){let n=String(t),i=n.indexOf(e),l=i,r=0,a=0;if(typeof e!="string")throw new TypeError("Expected substring");for(;i!==-1;)i===l?++r>a&&(a=r):r=1,l=i+e.length,i=n.indexOf(e,l);return a}function P1(t,e){return!!(e.options.fences===!1&&t.value&&!t.lang&&/[^ \r\n]/.test(t.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(t.value))}function J1(t){let e=t.options.fence||"`";if(e!=="`"&&e!=="~")throw new Error("Cannot serialize code with `"+e+"` for `options.fence`, expected `` ` `` or `~`");return e}function W1(t,e,n,i){let l=J1(n),r=t.value||"",a=l==="`"?"GraveAccent":"Tilde";if(P1(t,n)){let f=n.enter("codeIndented"),d=n.indentLines(r,jA);return f(),d}let o=n.createTracker(i),u=l.repeat(Math.max(K1(r,l)+1,3)),s=n.enter("codeFenced"),c=o.move(u);if(t.lang){let f=n.enter(`codeFencedLang${a}`);c+=o.move(n.safe(t.lang,{before:c,after:" ",encode:["`"],...o.current()})),f()}if(t.lang&&t.meta){let f=n.enter(`codeFencedMeta${a}`);c+=o.move(" "),c+=o.move(n.safe(t.meta,{before:c,after:`
|
|
27
27
|
`,encode:["`"],...o.current()})),f()}return c+=o.move(`
|
|
28
28
|
`),r&&(c+=o.move(r+`
|
|
29
|
-
`)),c+=o.move(u),s(),c}function jA(t,e,n){return(n?"":" ")+t}function
|
|
30
|
-
`,...u.current()}))),o(),t.title&&(o=n.enter(`title${r}`),s+=u.move(" "+
|
|
29
|
+
`)),c+=o.move(u),s(),c}function jA(t,e,n){return(n?"":" ")+t}function Lr(t){let e=t.options.quote||'"';if(e!=='"'&&e!=="'")throw new Error("Cannot serialize title with `"+e+"` for `options.quote`, expected `\"`, or `'`");return e}function $1(t,e,n,i){let l=Lr(n),r=l==='"'?"Quote":"Apostrophe",a=n.enter("definition"),o=n.enter("label"),u=n.createTracker(i),s=u.move("[");return s+=u.move(n.safe(n.associationId(t),{before:s,after:"]",...u.current()})),s+=u.move("]: "),o(),!t.url||/[\0- \u007F]/.test(t.url)?(o=n.enter("destinationLiteral"),s+=u.move("<"),s+=u.move(n.safe(t.url,{before:s,after:">",...u.current()})),s+=u.move(">")):(o=n.enter("destinationRaw"),s+=u.move(n.safe(t.url,{before:s,after:t.title?" ":`
|
|
30
|
+
`,...u.current()}))),o(),t.title&&(o=n.enter(`title${r}`),s+=u.move(" "+l),s+=u.move(n.safe(t.title,{before:s,after:l,...u.current()})),s+=u.move(l),o()),a(),s}function t0(t){let e=t.options.emphasis||"*";if(e!=="*"&&e!=="_")throw new Error("Cannot serialize emphasis with `"+e+"` for `options.emphasis`, expected `*`, or `_`");return e}function Xi(t){return"&#x"+t.toString(16).toUpperCase()+";"}function Br(t,e,n){let i=si(t),l=si(e);return i===void 0?l===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:l===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:i===1?l===void 0?{inside:!1,outside:!1}:l===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:l===void 0?{inside:!1,outside:!1}:l===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}kd.peek=YA;function kd(t,e,n,i){let l=t0(n),r=n.enter("emphasis"),a=n.createTracker(i),o=a.move(l),u=a.move(n.containerPhrasing(t,{after:l,before:o,...a.current()})),s=u.charCodeAt(0),c=Br(i.before.charCodeAt(i.before.length-1),s,l);c.inside&&(u=Xi(s)+u.slice(1));let f=u.charCodeAt(u.length-1),d=Br(i.after.charCodeAt(0),f,l);d.inside&&(u=u.slice(0,-1)+Xi(f));let p=a.move(l);return r(),n.attentionEncodeSurroundingInfo={after:d.outside,before:c.outside},o+u+p}function YA(t,e,n){return n.options.emphasis||"*"}function e0(t,e){let n=!1;return Rl(t,function(i){if("value"in i&&/\r?\n|\r/.test(i.value)||i.type==="break")return n=!0,Cl}),!!((!t.depth||t.depth<3)&&Sl(t)&&(e.options.setext||n))}function n0(t,e,n,i){let l=Math.max(Math.min(6,t.depth||1),1),r=n.createTracker(i);if(e0(t,n)){let c=n.enter("headingSetext"),f=n.enter("phrasing"),d=n.containerPhrasing(t,{...r.current(),before:`
|
|
31
31
|
`,after:`
|
|
32
|
-
`});return f(),c(),
|
|
33
|
-
`+(
|
|
34
|
-
`))+1))}let a="#".repeat(
|
|
35
|
-
`,...r.current()});return/^[\t ]/.test(s)&&(s=
|
|
36
|
-
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:
|
|
37
|
-
`))}function u(p,g,v,k){let d=v.enter("tableCell"),h=v.enter("phrasing"),y=v.containerPhrasing(p,{...k,before:r,after:r});return h(),d(),y}function s(p,g){return j0(p,{align:g,alignDelimiters:l,padding:n,stringLength:i})}function c(p,g,v){let k=p.children,d=-1,h=[],y=g.enter("table");for(;++d<k.length;)h[d]=f(k[d],g,v);return y(),h}function f(p,g,v){let k=p.children,d=-1,h=[],y=g.enter("tableRow");for(;++d<k.length;)h[d]=u(k[d],p,g,v);return y(),h}function m(p,g,v){let k=uo.inlineCode(p,g,v);return v.stack.includes("tableCell")&&(k=k.replace(/\|/g,"\\$&")),k}}function zm(){return{exit:{taskListCheckValueChecked:cb,taskListCheckValueUnchecked:cb,paragraph:tC}}}function _m(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:eC}}}function cb(t){let e=this.stack[this.stack.length-2];e.type,e.checked=t.type==="taskListCheckValueChecked"}function tC(t){let e=this.stack[this.stack.length-2];if(e&&e.type==="listItem"&&typeof e.checked=="boolean"){let n=this.stack[this.stack.length-1];n.type;let l=n.children[0];if(l&&l.type==="text"){let i=e.children,r=-1,a;for(;++r<i.length;){let o=i[r];if(o.type==="paragraph"){a=o;break}}a===n&&(l.value=l.value.slice(1),l.value.length===0?n.children.shift():n.position&&l.position&&typeof l.position.start.offset=="number"&&(l.position.start.column++,l.position.start.offset++,n.position.start=Object.assign({},l.position.start)))}}this.exit(t)}function eC(t,e,n,l){let i=t.children[0],r=typeof t.checked=="boolean"&&i&&i.type==="paragraph",a="["+(t.checked?"x":" ")+"] ",o=n.createTracker(l);r&&o.move(a);let u=uo.listItem(t,e,n,{...l,...o.current()});return r&&(u=u.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,s)),u;function s(c){return c+a}}function Om(){return[pm(),dm(),gm(),Dm(),zm()]}function Lm(t){return{extensions:[mm(),hm(t),ym(),Nm(t),_m()]}}var nC={tokenize:oC,partial:!0},fb={tokenize:uC,partial:!0},pb={tokenize:sC,partial:!0},mb={tokenize:cC,partial:!0},lC={tokenize:fC,partial:!0},db={name:"wwwAutolink",tokenize:rC,previous:gb},hb={name:"protocolAutolink",tokenize:aC,previous:yb},rl={name:"emailAutolink",tokenize:iC,previous:vb},Bn={};function Bm(){return{text:Bn}}var Ai=48;for(;Ai<123;)Bn[Ai]=rl,Ai++,Ai===58?Ai=65:Ai===91&&(Ai=97);Bn[43]=rl;Bn[45]=rl;Bn[46]=rl;Bn[95]=rl;Bn[72]=[rl,hb];Bn[104]=[rl,hb];Bn[87]=[rl,db];Bn[119]=[rl,db];function iC(t,e,n){let l=this,i,r;return a;function a(f){return!Um(f)||!vb.call(l,l.previous)||Hm(l.events)?n(f):(t.enter("literalAutolink"),t.enter("literalAutolinkEmail"),o(f))}function o(f){return Um(f)?(t.consume(f),o):f===64?(t.consume(f),u):n(f)}function u(f){return f===46?t.check(lC,c,s)(f):f===45||f===95||Xt(f)?(r=!0,t.consume(f),u):c(f)}function s(f){return t.consume(f),i=!0,u}function c(f){return r&&i&&se(l.previous)?(t.exit("literalAutolinkEmail"),t.exit("literalAutolink"),e(f)):n(f)}}function rC(t,e,n){let l=this;return i;function i(a){return a!==87&&a!==119||!gb.call(l,l.previous)||Hm(l.events)?n(a):(t.enter("literalAutolink"),t.enter("literalAutolinkWww"),t.check(nC,t.attempt(fb,t.attempt(pb,r),n),n)(a))}function r(a){return t.exit("literalAutolinkWww"),t.exit("literalAutolink"),e(a)}}function aC(t,e,n){let l=this,i="",r=!1;return a;function a(f){return(f===72||f===104)&&yb.call(l,l.previous)&&!Hm(l.events)?(t.enter("literalAutolink"),t.enter("literalAutolinkHttp"),i+=String.fromCodePoint(f),t.consume(f),o):n(f)}function o(f){if(se(f)&&i.length<5)return i+=String.fromCodePoint(f),t.consume(f),o;if(f===58){let m=i.toLowerCase();if(m==="http"||m==="https")return t.consume(f),u}return n(f)}function u(f){return f===47?(t.consume(f),r?s:(r=!0,u)):n(f)}function s(f){return f===null||vi(f)||at(f)||Ln(f)||bi(f)?n(f):t.attempt(fb,t.attempt(pb,c),n)(f)}function c(f){return t.exit("literalAutolinkHttp"),t.exit("literalAutolink"),e(f)}}function oC(t,e,n){let l=0;return i;function i(a){return(a===87||a===119)&&l<3?(l++,t.consume(a),i):a===46&&l===3?(t.consume(a),r):n(a)}function r(a){return a===null?n(a):e(a)}}function uC(t,e,n){let l,i,r;return a;function a(s){return s===46||s===95?t.check(mb,u,o)(s):s===null||at(s)||Ln(s)||s!==45&&bi(s)?u(s):(r=!0,t.consume(s),a)}function o(s){return s===95?l=!0:(i=l,l=void 0),t.consume(s),a}function u(s){return i||l||!r?n(s):e(s)}}function sC(t,e){let n=0,l=0;return i;function i(a){return a===40?(n++,t.consume(a),i):a===41&&l<n?r(a):a===33||a===34||a===38||a===39||a===41||a===42||a===44||a===46||a===58||a===59||a===60||a===63||a===93||a===95||a===126?t.check(mb,e,r)(a):a===null||at(a)||Ln(a)?e(a):(t.consume(a),i)}function r(a){return a===41&&l++,t.consume(a),i}}function cC(t,e,n){return l;function l(o){return o===33||o===34||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===63||o===95||o===126?(t.consume(o),l):o===38?(t.consume(o),r):o===93?(t.consume(o),i):o===60||o===null||at(o)||Ln(o)?e(o):n(o)}function i(o){return o===null||o===40||o===91||at(o)||Ln(o)?e(o):l(o)}function r(o){return se(o)?a(o):n(o)}function a(o){return o===59?(t.consume(o),l):se(o)?(t.consume(o),a):n(o)}}function fC(t,e,n){return l;function l(r){return t.consume(r),i}function i(r){return Xt(r)?n(r):e(r)}}function gb(t){return t===null||t===40||t===42||t===95||t===91||t===93||t===126||at(t)}function yb(t){return!se(t)}function vb(t){return!(t===47||Um(t))}function Um(t){return t===43||t===45||t===46||t===95||Xt(t)}function Hm(t){let e=t.length,n=!1;for(;e--;){let l=t[e][1];if((l.type==="labelLink"||l.type==="labelImage")&&!l._balanced){n=!0;break}if(l._gfmAutolinkLiteralWalkedInto){n=!1;break}}return t.length>0&&!n&&(t[t.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}var pC={tokenize:bC,partial:!0};function qm(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:gC,continuation:{tokenize:yC},exit:vC}},text:{91:{name:"gfmFootnoteCall",tokenize:hC},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:mC,resolveTo:dC}}}}function mC(t,e,n){let l=this,i=l.events.length,r=l.parser.gfmFootnotes||(l.parser.gfmFootnotes=[]),a;for(;i--;){let u=l.events[i][1];if(u.type==="labelImage"){a=u;break}if(u.type==="gfmFootnoteCall"||u.type==="labelLink"||u.type==="label"||u.type==="image"||u.type==="link")break}return o;function o(u){if(!a||!a._balanced)return n(u);let s=Te(l.sliceSerialize({start:a.end,end:l.now()}));return s.codePointAt(0)!==94||!r.includes(s.slice(1))?n(u):(t.enter("gfmFootnoteCallLabelMarker"),t.consume(u),t.exit("gfmFootnoteCallLabelMarker"),e(u))}}function dC(t,e){let n=t.length,l;for(;n--;)if(t[n][1].type==="labelImage"&&t[n][0]==="enter"){l=t[n][1];break}t[n+1][1].type="data",t[n+3][1].type="gfmFootnoteCallLabelMarker";let i={type:"gfmFootnoteCall",start:Object.assign({},t[n+3][1].start),end:Object.assign({},t[t.length-1][1].end)},r={type:"gfmFootnoteCallMarker",start:Object.assign({},t[n+3][1].end),end:Object.assign({},t[n+3][1].end)};r.end.column++,r.end.offset++,r.end._bufferIndex++;let a={type:"gfmFootnoteCallString",start:Object.assign({},r.end),end:Object.assign({},t[t.length-1][1].start)},o={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},u=[t[n+1],t[n+2],["enter",i,e],t[n+3],t[n+4],["enter",r,e],["exit",r,e],["enter",a,e],["enter",o,e],["exit",o,e],["exit",a,e],t[t.length-2],t[t.length-1],["exit",i,e]];return t.splice(n,t.length-n+1,...u),t}function hC(t,e,n){let l=this,i=l.parser.gfmFootnotes||(l.parser.gfmFootnotes=[]),r=0,a;return o;function o(f){return t.enter("gfmFootnoteCall"),t.enter("gfmFootnoteCallLabelMarker"),t.consume(f),t.exit("gfmFootnoteCallLabelMarker"),u}function u(f){return f!==94?n(f):(t.enter("gfmFootnoteCallMarker"),t.consume(f),t.exit("gfmFootnoteCallMarker"),t.enter("gfmFootnoteCallString"),t.enter("chunkString").contentType="string",s)}function s(f){if(r>999||f===93&&!a||f===null||f===91||at(f))return n(f);if(f===93){t.exit("chunkString");let m=t.exit("gfmFootnoteCallString");return i.includes(Te(l.sliceSerialize(m)))?(t.enter("gfmFootnoteCallLabelMarker"),t.consume(f),t.exit("gfmFootnoteCallLabelMarker"),t.exit("gfmFootnoteCall"),e):n(f)}return at(f)||(a=!0),r++,t.consume(f),f===92?c:s}function c(f){return f===91||f===92||f===93?(t.consume(f),r++,s):s(f)}}function gC(t,e,n){let l=this,i=l.parser.gfmFootnotes||(l.parser.gfmFootnotes=[]),r,a=0,o;return u;function u(g){return t.enter("gfmFootnoteDefinition")._container=!0,t.enter("gfmFootnoteDefinitionLabel"),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(g),t.exit("gfmFootnoteDefinitionLabelMarker"),s}function s(g){return g===94?(t.enter("gfmFootnoteDefinitionMarker"),t.consume(g),t.exit("gfmFootnoteDefinitionMarker"),t.enter("gfmFootnoteDefinitionLabelString"),t.enter("chunkString").contentType="string",c):n(g)}function c(g){if(a>999||g===93&&!o||g===null||g===91||at(g))return n(g);if(g===93){t.exit("chunkString");let v=t.exit("gfmFootnoteDefinitionLabelString");return r=Te(l.sliceSerialize(v)),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(g),t.exit("gfmFootnoteDefinitionLabelMarker"),t.exit("gfmFootnoteDefinitionLabel"),m}return at(g)||(o=!0),a++,t.consume(g),g===92?f:c}function f(g){return g===91||g===92||g===93?(t.consume(g),a++,c):c(g)}function m(g){return g===58?(t.enter("definitionMarker"),t.consume(g),t.exit("definitionMarker"),i.includes(r)||i.push(r),Q(t,p,"gfmFootnoteDefinitionWhitespace")):n(g)}function p(g){return e(g)}}function yC(t,e,n){return t.check(Un,e,t.attempt(pC,e,n))}function vC(t){t.exit("gfmFootnoteDefinition")}function bC(t,e,n){let l=this;return Q(t,i,"gfmFootnoteDefinitionIndent",5);function i(r){let a=l.events[l.events.length-1];return a&&a[1].type==="gfmFootnoteDefinitionIndent"&&a[2].sliceSerialize(a[1],!0).length===4?e(r):n(r)}}function jm(t){let n=(t||{}).singleTilde,l={name:"strikethrough",tokenize:r,resolveAll:i};return n==null&&(n=!0),{text:{126:l},insideSpan:{null:[l]},attentionMarkers:{null:[126]}};function i(a,o){let u=-1;for(;++u<a.length;)if(a[u][0]==="enter"&&a[u][1].type==="strikethroughSequenceTemporary"&&a[u][1]._close){let s=u;for(;s--;)if(a[s][0]==="exit"&&a[s][1].type==="strikethroughSequenceTemporary"&&a[s][1]._open&&a[u][1].end.offset-a[u][1].start.offset===a[s][1].end.offset-a[s][1].start.offset){a[u][1].type="strikethroughSequence",a[s][1].type="strikethroughSequence";let c={type:"strikethrough",start:Object.assign({},a[s][1].start),end:Object.assign({},a[u][1].end)},f={type:"strikethroughText",start:Object.assign({},a[s][1].end),end:Object.assign({},a[u][1].start)},m=[["enter",c,o],["enter",a[s][1],o],["exit",a[s][1],o],["enter",f,o]],p=o.parser.constructs.insideSpan.null;p&&Pt(m,m.length,0,Ul(p,a.slice(s+1,u),o)),Pt(m,m.length,0,[["exit",f,o],["enter",a[u][1],o],["exit",a[u][1],o],["exit",c,o]]),Pt(a,s-1,u-s+3,m),u=s+m.length-2;break}}for(u=-1;++u<a.length;)a[u][1].type==="strikethroughSequenceTemporary"&&(a[u][1].type="data");return a}function r(a,o,u){let s=this.previous,c=this.events,f=0;return m;function m(g){return s===126&&c[c.length-1][1].type!=="characterEscape"?u(g):(a.enter("strikethroughSequenceTemporary"),p(g))}function p(g){let v=il(s);if(g===126)return f>1?u(g):(a.consume(g),f++,p);if(f<2&&!n)return u(g);let k=a.exit("strikethroughSequenceTemporary"),d=il(g);return k._open=!d||d===2&&!!v,k._close=!v||v===2&&!!d,o(g)}}}var xs=class{constructor(){this.map=[]}add(e,n,l){xC(this,e,n,l)}consume(e){if(this.map.sort(function(r,a){return r[0]-a[0]}),this.map.length===0)return;let n=this.map.length,l=[];for(;n>0;)n-=1,l.push(e.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),e.length=this.map[n][0];l.push(e.slice()),e.length=0;let i=l.pop();for(;i;){for(let r of i)e.push(r);i=l.pop()}this.map.length=0}};function xC(t,e,n,l){let i=0;if(!(n===0&&l.length===0)){for(;i<t.map.length;){if(t.map[i][0]===e){t.map[i][1]+=n,t.map[i][2].push(...l);return}i+=1}t.map.push([e,n,l])}}function bb(t,e){let n=!1,l=[];for(;e<t.length;){let i=t[e];if(n){if(i[0]==="enter")i[1].type==="tableContent"&&l.push(t[e+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(t[e-1][1].type==="tableDelimiterMarker"){let r=l.length-1;l[r]=l[r]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(n=!0);e+=1}return l}function Im(){return{flow:{null:{name:"table",tokenize:SC,resolveAll:kC}}}}function SC(t,e,n){let l=this,i=0,r=0,a;return o;function o(S){let et=l.events.length-1;for(;et>-1;){let Z=l.events[et][1].type;if(Z==="lineEnding"||Z==="linePrefix")et--;else break}let K=et>-1?l.events[et][1].type:null,I=K==="tableHead"||K==="tableRow"?E:u;return I===E&&l.parser.lazy[l.now().line]?n(S):I(S)}function u(S){return t.enter("tableHead"),t.enter("tableRow"),s(S)}function s(S){return S===124||(a=!0,r+=1),c(S)}function c(S){return S===null?n(S):O(S)?r>1?(r=0,l.interrupt=!0,t.exit("tableRow"),t.enter("lineEnding"),t.consume(S),t.exit("lineEnding"),p):n(S):G(S)?Q(t,c,"whitespace")(S):(r+=1,a&&(a=!1,i+=1),S===124?(t.enter("tableCellDivider"),t.consume(S),t.exit("tableCellDivider"),a=!0,c):(t.enter("data"),f(S)))}function f(S){return S===null||S===124||at(S)?(t.exit("data"),c(S)):(t.consume(S),S===92?m:f)}function m(S){return S===92||S===124?(t.consume(S),f):f(S)}function p(S){return l.interrupt=!1,l.parser.lazy[l.now().line]?n(S):(t.enter("tableDelimiterRow"),a=!1,G(S)?Q(t,g,"linePrefix",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(S):g(S))}function g(S){return S===45||S===58?k(S):S===124?(a=!0,t.enter("tableCellDivider"),t.consume(S),t.exit("tableCellDivider"),v):C(S)}function v(S){return G(S)?Q(t,k,"whitespace")(S):k(S)}function k(S){return S===58?(r+=1,a=!0,t.enter("tableDelimiterMarker"),t.consume(S),t.exit("tableDelimiterMarker"),d):S===45?(r+=1,d(S)):S===null||O(S)?T(S):C(S)}function d(S){return S===45?(t.enter("tableDelimiterFiller"),h(S)):C(S)}function h(S){return S===45?(t.consume(S),h):S===58?(a=!0,t.exit("tableDelimiterFiller"),t.enter("tableDelimiterMarker"),t.consume(S),t.exit("tableDelimiterMarker"),y):(t.exit("tableDelimiterFiller"),y(S))}function y(S){return G(S)?Q(t,T,"whitespace")(S):T(S)}function T(S){return S===124?g(S):S===null||O(S)?!a||i!==r?C(S):(t.exit("tableDelimiterRow"),t.exit("tableHead"),e(S)):C(S)}function C(S){return n(S)}function E(S){return t.enter("tableRow"),M(S)}function M(S){return S===124?(t.enter("tableCellDivider"),t.consume(S),t.exit("tableCellDivider"),M):S===null||O(S)?(t.exit("tableRow"),e(S)):G(S)?Q(t,M,"whitespace")(S):(t.enter("data"),N(S))}function N(S){return S===null||S===124||at(S)?(t.exit("data"),M(S)):(t.consume(S),S===92?L:N)}function L(S){return S===92||S===124?(t.consume(S),N):N(S)}}function kC(t,e){let n=-1,l=!0,i=0,r=[0,0,0,0],a=[0,0,0,0],o=!1,u=0,s,c,f,m=new xs;for(;++n<t.length;){let p=t[n],g=p[1];p[0]==="enter"?g.type==="tableHead"?(o=!1,u!==0&&(xb(m,e,u,s,c),c=void 0,u=0),s={type:"table",start:Object.assign({},g.start),end:Object.assign({},g.end)},m.add(n,0,[["enter",s,e]])):g.type==="tableRow"||g.type==="tableDelimiterRow"?(l=!0,f=void 0,r=[0,0,0,0],a=[0,n+1,0,0],o&&(o=!1,c={type:"tableBody",start:Object.assign({},g.start),end:Object.assign({},g.end)},m.add(n,0,[["enter",c,e]])),i=g.type==="tableDelimiterRow"?2:c?3:1):i&&(g.type==="data"||g.type==="tableDelimiterMarker"||g.type==="tableDelimiterFiller")?(l=!1,a[2]===0&&(r[1]!==0&&(a[0]=a[1],f=Ss(m,e,r,i,void 0,f),r=[0,0,0,0]),a[2]=n)):g.type==="tableCellDivider"&&(l?l=!1:(r[1]!==0&&(a[0]=a[1],f=Ss(m,e,r,i,void 0,f)),r=a,a=[r[1],n,0,0])):g.type==="tableHead"?(o=!0,u=n):g.type==="tableRow"||g.type==="tableDelimiterRow"?(u=n,r[1]!==0?(a[0]=a[1],f=Ss(m,e,r,i,n,f)):a[1]!==0&&(f=Ss(m,e,a,i,n,f)),i=0):i&&(g.type==="data"||g.type==="tableDelimiterMarker"||g.type==="tableDelimiterFiller")&&(a[3]=n)}for(u!==0&&xb(m,e,u,s,c),m.consume(e.events),n=-1;++n<e.events.length;){let p=e.events[n];p[0]==="enter"&&p[1].type==="table"&&(p[1]._align=bb(e.events,n))}return t}function Ss(t,e,n,l,i,r){let a=l===1?"tableHeader":l===2?"tableDelimiter":"tableData",o="tableContent";n[0]!==0&&(r.end=Object.assign({},Or(e.events,n[0])),t.add(n[0],0,[["exit",r,e]]));let u=Or(e.events,n[1]);if(r={type:a,start:Object.assign({},u),end:Object.assign({},u)},t.add(n[1],0,[["enter",r,e]]),n[2]!==0){let s=Or(e.events,n[2]),c=Or(e.events,n[3]),f={type:o,start:Object.assign({},s),end:Object.assign({},c)};if(t.add(n[2],0,[["enter",f,e]]),l!==2){let m=e.events[n[2]],p=e.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){let g=n[2]+1,v=n[3]-n[2]-1;t.add(g,v,[])}}t.add(n[3]+1,0,[["exit",f,e]])}return i!==void 0&&(r.end=Object.assign({},Or(e.events,i)),t.add(i,0,[["exit",r,e]]),r=void 0),r}function xb(t,e,n,l,i){let r=[],a=Or(e.events,n);i&&(i.end=Object.assign({},a),r.push(["exit",i,e])),l.end=Object.assign({},a),r.push(["exit",l,e]),t.add(n+1,0,r)}function Or(t,e){let n=t[e],l=n[0]==="enter"?"start":"end";return n[1][l]}var EC={name:"tasklistCheck",tokenize:TC};function Ym(){return{text:{91:EC}}}function TC(t,e,n){let l=this;return i;function i(u){return l.previous!==null||!l._gfmTasklistFirstContentOfListItem?n(u):(t.enter("taskListCheck"),t.enter("taskListCheckMarker"),t.consume(u),t.exit("taskListCheckMarker"),r)}function r(u){return at(u)?(t.enter("taskListCheckValueUnchecked"),t.consume(u),t.exit("taskListCheckValueUnchecked"),a):u===88||u===120?(t.enter("taskListCheckValueChecked"),t.consume(u),t.exit("taskListCheckValueChecked"),a):n(u)}function a(u){return u===93?(t.enter("taskListCheckMarker"),t.consume(u),t.exit("taskListCheckMarker"),t.exit("taskListCheck"),o):n(u)}function o(u){return O(u)?e(u):G(u)?t.check({tokenize:wC},e,n)(u):n(u)}}function wC(t,e,n){return Q(t,l,"whitespace");function l(i){return i===null?n(i):e(i)}}function Sb(t){return Zu([Bm(),qm(),jm(t),Im(),Ym()])}var AC={};function Lr(t){let e=this,n=t||AC,l=e.data(),i=l.micromarkExtensions||(l.micromarkExtensions=[]),r=l.fromMarkdownExtensions||(l.fromMarkdownExtensions=[]),a=l.toMarkdownExtensions||(l.toMarkdownExtensions=[]);i.push(Sb(n)),r.push(Om()),a.push(Lm(n))}function Vm(t){if(!t)return t;let e=t.toLowerCase(),n=e.indexOf("<think>"),l=e.indexOf("<thinking>"),i=-1,r=0;if(n!==-1&&(l===-1||n<l)?(i=n,r=7):l!==-1&&(i=l,r=10),i===-1)return t.replace(/\n\n+/g,`
|
|
32
|
+
`});return f(),c(),d+`
|
|
33
|
+
`+(l===1?"=":"-").repeat(d.length-(Math.max(d.lastIndexOf("\r"),d.lastIndexOf(`
|
|
34
|
+
`))+1))}let a="#".repeat(l),o=n.enter("headingAtx"),u=n.enter("phrasing");r.move(a+" ");let s=n.containerPhrasing(t,{before:"# ",after:`
|
|
35
|
+
`,...r.current()});return/^[\t ]/.test(s)&&(s=Xi(s.charCodeAt(0))+s.slice(1)),s=s?a+" "+s:a,n.options.closeAtx&&(s+=" "+a),u(),o(),s}wd.peek=VA;function wd(t){return t.value||""}function VA(){return"<"}Ed.peek=FA;function Ed(t,e,n,i){let l=Lr(n),r=l==='"'?"Quote":"Apostrophe",a=n.enter("image"),o=n.enter("label"),u=n.createTracker(i),s=u.move("![");return s+=u.move(n.safe(t.alt,{before:s,after:"]",...u.current()})),s+=u.move("]("),o(),!t.url&&t.title||/[\0- \u007F]/.test(t.url)?(o=n.enter("destinationLiteral"),s+=u.move("<"),s+=u.move(n.safe(t.url,{before:s,after:">",...u.current()})),s+=u.move(">")):(o=n.enter("destinationRaw"),s+=u.move(n.safe(t.url,{before:s,after:t.title?" ":")",...u.current()}))),o(),t.title&&(o=n.enter(`title${r}`),s+=u.move(" "+l),s+=u.move(n.safe(t.title,{before:s,after:l,...u.current()})),s+=u.move(l),o()),s+=u.move(")"),a(),s}function FA(){return"!"}Td.peek=QA;function Td(t,e,n,i){let l=t.referenceType,r=n.enter("imageReference"),a=n.enter("label"),o=n.createTracker(i),u=o.move("!["),s=n.safe(t.alt,{before:u,after:"]",...o.current()});u+=o.move(s+"]["),a();let c=n.stack;n.stack=[],a=n.enter("reference");let f=n.safe(n.associationId(t),{before:u,after:"]",...o.current()});return a(),n.stack=c,r(),l==="full"||!s||s!==f?u+=o.move(f+"]"):l==="shortcut"?u=u.slice(0,-1):u+=o.move("]"),u}function QA(){return"!"}Ad.peek=XA;function Ad(t,e,n){let i=t.value||"",l="`",r=-1;for(;new RegExp("(^|[^`])"+l+"([^`]|$)").test(i);)l+="`";for(/[^ \r\n]/.test(i)&&(/^[ \r\n]/.test(i)&&/[ \r\n]$/.test(i)||/^`|`$/.test(i))&&(i=" "+i+" ");++r<n.unsafe.length;){let a=n.unsafe[r],o=n.compilePattern(a),u;if(a.atBreak)for(;u=o.exec(i);){let s=u.index;i.charCodeAt(s)===10&&i.charCodeAt(s-1)===13&&s--,i=i.slice(0,s)+" "+i.slice(u.index+1)}}return l+i+l}function XA(){return"`"}function Cd(t,e){let n=Sl(t);return!!(!e.options.resourceLink&&t.url&&!t.title&&t.children&&t.children.length===1&&t.children[0].type==="text"&&(n===t.url||"mailto:"+n===t.url)&&/^[a-z][a-z+.-]+:/i.test(t.url)&&!/[\0- <>\u007F]/.test(t.url))}Rd.peek=GA;function Rd(t,e,n,i){let l=Lr(n),r=l==='"'?"Quote":"Apostrophe",a=n.createTracker(i),o,u;if(Cd(t,n)){let c=n.stack;n.stack=[],o=n.enter("autolink");let f=a.move("<");return f+=a.move(n.containerPhrasing(t,{before:f,after:">",...a.current()})),f+=a.move(">"),o(),n.stack=c,f}o=n.enter("link"),u=n.enter("label");let s=a.move("[");return s+=a.move(n.containerPhrasing(t,{before:s,after:"](",...a.current()})),s+=a.move("]("),u(),!t.url&&t.title||/[\0- \u007F]/.test(t.url)?(u=n.enter("destinationLiteral"),s+=a.move("<"),s+=a.move(n.safe(t.url,{before:s,after:">",...a.current()})),s+=a.move(">")):(u=n.enter("destinationRaw"),s+=a.move(n.safe(t.url,{before:s,after:t.title?" ":")",...a.current()}))),u(),t.title&&(u=n.enter(`title${r}`),s+=a.move(" "+l),s+=a.move(n.safe(t.title,{before:s,after:l,...a.current()})),s+=a.move(l),u()),s+=a.move(")"),o(),s}function GA(t,e,n){return Cd(t,n)?"<":"["}Nd.peek=ZA;function Nd(t,e,n,i){let l=t.referenceType,r=n.enter("linkReference"),a=n.enter("label"),o=n.createTracker(i),u=o.move("["),s=n.containerPhrasing(t,{before:u,after:"]",...o.current()});u+=o.move(s+"]["),a();let c=n.stack;n.stack=[],a=n.enter("reference");let f=n.safe(n.associationId(t),{before:u,after:"]",...o.current()});return a(),n.stack=c,r(),l==="full"||!s||s!==f?u+=o.move(f+"]"):l==="shortcut"?u=u.slice(0,-1):u+=o.move("]"),u}function ZA(){return"["}function Ur(t){let e=t.options.bullet||"*";if(e!=="*"&&e!=="+"&&e!=="-")throw new Error("Cannot serialize items with `"+e+"` for `options.bullet`, expected `*`, `+`, or `-`");return e}function i0(t){let e=Ur(t),n=t.options.bulletOther;if(!n)return e==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===e)throw new Error("Expected `bullet` (`"+e+"`) and `bulletOther` (`"+n+"`) to be different");return n}function l0(t){let e=t.options.bulletOrdered||".";if(e!=="."&&e!==")")throw new Error("Cannot serialize items with `"+e+"` for `options.bulletOrdered`, expected `.` or `)`");return e}function ws(t){let e=t.options.rule||"*";if(e!=="*"&&e!=="-"&&e!=="_")throw new Error("Cannot serialize rules with `"+e+"` for `options.rule`, expected `*`, `-`, or `_`");return e}function r0(t,e,n,i){let l=n.enter("list"),r=n.bulletCurrent,a=t.ordered?l0(n):Ur(n),o=t.ordered?a==="."?")":".":i0(n),u=e&&n.bulletLastUsed?a===n.bulletLastUsed:!1;if(!t.ordered){let c=t.children?t.children[0]:void 0;if((a==="*"||a==="-")&&c&&(!c.children||!c.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&&(u=!0),ws(n)===a&&c){let f=-1;for(;++f<t.children.length;){let d=t.children[f];if(d&&d.type==="listItem"&&d.children&&d.children[0]&&d.children[0].type==="thematicBreak"){u=!0;break}}}}u&&(a=o),n.bulletCurrent=a;let s=n.containerFlow(t,i);return n.bulletLastUsed=a,n.bulletCurrent=r,l(),s}function a0(t){let e=t.options.listItemIndent||"one";if(e!=="tab"&&e!=="one"&&e!=="mixed")throw new Error("Cannot serialize items with `"+e+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return e}function o0(t,e,n,i){let l=a0(n),r=n.bulletCurrent||Ur(n);e&&e.type==="list"&&e.ordered&&(r=(typeof e.start=="number"&&e.start>-1?e.start:1)+(n.options.incrementListMarker===!1?0:e.children.indexOf(t))+r);let a=r.length+1;(l==="tab"||l==="mixed"&&(e&&e.type==="list"&&e.spread||t.spread))&&(a=Math.ceil(a/4)*4);let o=n.createTracker(i);o.move(r+" ".repeat(a-r.length)),o.shift(a);let u=n.enter("listItem"),s=n.indentLines(n.containerFlow(t,o.current()),c);return u(),s;function c(f,d,p){return d?(p?"":" ".repeat(a))+f:(p?r:r+" ".repeat(a-r.length))+f}}function u0(t,e,n,i){let l=n.enter("paragraph"),r=n.enter("phrasing"),a=n.containerPhrasing(t,i);return r(),l(),a}var Md=Qi(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function s0(t,e,n,i){return(t.children.some(function(a){return Md(a)})?n.containerPhrasing:n.containerFlow).call(n,t,i)}function c0(t){let e=t.options.strong||"*";if(e!=="*"&&e!=="_")throw new Error("Cannot serialize strong with `"+e+"` for `options.strong`, expected `*`, or `_`");return e}Dd.peek=KA;function Dd(t,e,n,i){let l=c0(n),r=n.enter("strong"),a=n.createTracker(i),o=a.move(l+l),u=a.move(n.containerPhrasing(t,{after:l,before:o,...a.current()})),s=u.charCodeAt(0),c=Br(i.before.charCodeAt(i.before.length-1),s,l);c.inside&&(u=Xi(s)+u.slice(1));let f=u.charCodeAt(u.length-1),d=Br(i.after.charCodeAt(0),f,l);d.inside&&(u=u.slice(0,-1)+Xi(f));let p=a.move(l+l);return r(),n.attentionEncodeSurroundingInfo={after:d.outside,before:c.outside},o+u+p}function KA(t,e,n){return n.options.strong||"*"}function f0(t,e,n,i){return n.safe(t.value,i)}function p0(t){let e=t.options.ruleRepetition||3;if(e<3)throw new Error("Cannot serialize rules with repetition `"+e+"` for `options.ruleRepetition`, expected `3` or more");return e}function d0(t,e,n){let i=(ws(n)+(n.options.ruleSpaces?" ":"")).repeat(p0(n));return n.options.ruleSpaces?i.slice(0,-1):i}var po={blockquote:X1,break:Sd,code:W1,definition:$1,emphasis:kd,hardBreak:Sd,heading:n0,html:wd,image:Ed,imageReference:Td,inlineCode:Ad,link:Rd,linkReference:Nd,list:r0,listItem:o0,paragraph:u0,root:s0,strong:Dd,text:f0,thematicBreak:d0};function _d(){return{enter:{table:PA,tableData:m0,tableHeader:m0,tableRow:WA},exit:{codeText:$A,table:JA,tableData:zd,tableHeader:zd,tableRow:zd}}}function PA(t){let e=t._align;this.enter({type:"table",align:e.map(function(n){return n==="none"?null:n}),children:[]},t),this.data.inTable=!0}function JA(t){this.exit(t),this.data.inTable=void 0}function WA(t){this.enter({type:"tableRow",children:[]},t)}function zd(t){this.exit(t)}function m0(t){this.enter({type:"tableCell",children:[]},t)}function $A(t){let e=this.resume();this.data.inTable&&(e=e.replace(/\\([\\|])/g,tC));let n=this.stack[this.stack.length-1];n.type,n.value=e,this.exit(t)}function tC(t,e){return e==="|"?e:t}function Od(t){let e=t||{},n=e.tableCellPadding,i=e.tablePipeAlign,l=e.stringLength,r=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
36
|
+
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:d,table:a,tableCell:u,tableRow:o}};function a(p,g,b,T){return s(c(p,b,T),p.align)}function o(p,g,b,T){let m=f(p,b,T),h=s([m]);return h.slice(0,h.indexOf(`
|
|
37
|
+
`))}function u(p,g,b,T){let m=b.enter("tableCell"),h=b.enter("phrasing"),y=b.containerPhrasing(p,{...T,before:r,after:r});return h(),m(),y}function s(p,g){return Q1(p,{align:g,alignDelimiters:i,padding:n,stringLength:l})}function c(p,g,b){let T=p.children,m=-1,h=[],y=g.enter("table");for(;++m<T.length;)h[m]=f(T[m],g,b);return y(),h}function f(p,g,b){let T=p.children,m=-1,h=[],y=g.enter("tableRow");for(;++m<T.length;)h[m]=u(T[m],p,g,b);return y(),h}function d(p,g,b){let T=po.inlineCode(p,g,b);return b.stack.includes("tableCell")&&(T=T.replace(/\|/g,"\\$&")),T}}function Ld(){return{exit:{taskListCheckValueChecked:h0,taskListCheckValueUnchecked:h0,paragraph:eC}}}function Bd(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:nC}}}function h0(t){let e=this.stack[this.stack.length-2];e.type,e.checked=t.type==="taskListCheckValueChecked"}function eC(t){let e=this.stack[this.stack.length-2];if(e&&e.type==="listItem"&&typeof e.checked=="boolean"){let n=this.stack[this.stack.length-1];n.type;let i=n.children[0];if(i&&i.type==="text"){let l=e.children,r=-1,a;for(;++r<l.length;){let o=l[r];if(o.type==="paragraph"){a=o;break}}a===n&&(i.value=i.value.slice(1),i.value.length===0?n.children.shift():n.position&&i.position&&typeof i.position.start.offset=="number"&&(i.position.start.column++,i.position.start.offset++,n.position.start=Object.assign({},i.position.start)))}}this.exit(t)}function nC(t,e,n,i){let l=t.children[0],r=typeof t.checked=="boolean"&&l&&l.type==="paragraph",a="["+(t.checked?"x":" ")+"] ",o=n.createTracker(i);r&&o.move(a);let u=po.listItem(t,e,n,{...i,...o.current()});return r&&(u=u.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,s)),u;function s(c){return c+a}}function Ud(){return[hd(),yd(),vd(),_d(),Ld()]}function Hd(t){return{extensions:[gd(),bd(t),xd(),Od(t),Bd()]}}var iC={tokenize:uC,partial:!0},g0={tokenize:sC,partial:!0},y0={tokenize:cC,partial:!0},b0={tokenize:fC,partial:!0},lC={tokenize:pC,partial:!0},v0={name:"wwwAutolink",tokenize:aC,previous:S0},x0={name:"protocolAutolink",tokenize:oC,previous:k0},ci={name:"emailAutolink",tokenize:rC,previous:w0},In={};function Id(){return{text:In}}var Ml=48;for(;Ml<123;)In[Ml]=ci,Ml++,Ml===58?Ml=65:Ml===91&&(Ml=97);In[43]=ci;In[45]=ci;In[46]=ci;In[95]=ci;In[72]=[ci,x0];In[104]=[ci,x0];In[87]=[ci,v0];In[119]=[ci,v0];function rC(t,e,n){let i=this,l,r;return a;function a(f){return!qd(f)||!w0.call(i,i.previous)||jd(i.events)?n(f):(t.enter("literalAutolink"),t.enter("literalAutolinkEmail"),o(f))}function o(f){return qd(f)?(t.consume(f),o):f===64?(t.consume(f),u):n(f)}function u(f){return f===46?t.check(lC,c,s)(f):f===45||f===95||Jt(f)?(r=!0,t.consume(f),u):c(f)}function s(f){return t.consume(f),l=!0,u}function c(f){return r&&l&&de(i.previous)?(t.exit("literalAutolinkEmail"),t.exit("literalAutolink"),e(f)):n(f)}}function aC(t,e,n){let i=this;return l;function l(a){return a!==87&&a!==119||!S0.call(i,i.previous)||jd(i.events)?n(a):(t.enter("literalAutolink"),t.enter("literalAutolinkWww"),t.check(iC,t.attempt(g0,t.attempt(y0,r),n),n)(a))}function r(a){return t.exit("literalAutolinkWww"),t.exit("literalAutolink"),e(a)}}function oC(t,e,n){let i=this,l="",r=!1;return a;function a(f){return(f===72||f===104)&&k0.call(i,i.previous)&&!jd(i.events)?(t.enter("literalAutolink"),t.enter("literalAutolinkHttp"),l+=String.fromCodePoint(f),t.consume(f),o):n(f)}function o(f){if(de(f)&&l.length<5)return l+=String.fromCodePoint(f),t.consume(f),o;if(f===58){let d=l.toLowerCase();if(d==="http"||d==="https")return t.consume(f),u}return n(f)}function u(f){return f===47?(t.consume(f),r?s:(r=!0,u)):n(f)}function s(f){return f===null||kl(f)||ut(f)||Hn(f)||wl(f)?n(f):t.attempt(g0,t.attempt(y0,c),n)(f)}function c(f){return t.exit("literalAutolinkHttp"),t.exit("literalAutolink"),e(f)}}function uC(t,e,n){let i=0;return l;function l(a){return(a===87||a===119)&&i<3?(i++,t.consume(a),l):a===46&&i===3?(t.consume(a),r):n(a)}function r(a){return a===null?n(a):e(a)}}function sC(t,e,n){let i,l,r;return a;function a(s){return s===46||s===95?t.check(b0,u,o)(s):s===null||ut(s)||Hn(s)||s!==45&&wl(s)?u(s):(r=!0,t.consume(s),a)}function o(s){return s===95?i=!0:(l=i,i=void 0),t.consume(s),a}function u(s){return l||i||!r?n(s):e(s)}}function cC(t,e){let n=0,i=0;return l;function l(a){return a===40?(n++,t.consume(a),l):a===41&&i<n?r(a):a===33||a===34||a===38||a===39||a===41||a===42||a===44||a===46||a===58||a===59||a===60||a===63||a===93||a===95||a===126?t.check(b0,e,r)(a):a===null||ut(a)||Hn(a)?e(a):(t.consume(a),l)}function r(a){return a===41&&i++,t.consume(a),l}}function fC(t,e,n){return i;function i(o){return o===33||o===34||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===63||o===95||o===126?(t.consume(o),i):o===38?(t.consume(o),r):o===93?(t.consume(o),l):o===60||o===null||ut(o)||Hn(o)?e(o):n(o)}function l(o){return o===null||o===40||o===91||ut(o)||Hn(o)?e(o):i(o)}function r(o){return de(o)?a(o):n(o)}function a(o){return o===59?(t.consume(o),i):de(o)?(t.consume(o),a):n(o)}}function pC(t,e,n){return i;function i(r){return t.consume(r),l}function l(r){return Jt(r)?n(r):e(r)}}function S0(t){return t===null||t===40||t===42||t===95||t===91||t===93||t===126||ut(t)}function k0(t){return!de(t)}function w0(t){return!(t===47||qd(t))}function qd(t){return t===43||t===45||t===46||t===95||Jt(t)}function jd(t){let e=t.length,n=!1;for(;e--;){let i=t[e][1];if((i.type==="labelLink"||i.type==="labelImage")&&!i._balanced){n=!0;break}if(i._gfmAutolinkLiteralWalkedInto){n=!1;break}}return t.length>0&&!n&&(t[t.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}var dC={tokenize:xC,partial:!0};function Yd(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:yC,continuation:{tokenize:bC},exit:vC}},text:{91:{name:"gfmFootnoteCall",tokenize:gC},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:mC,resolveTo:hC}}}}function mC(t,e,n){let i=this,l=i.events.length,r=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]),a;for(;l--;){let u=i.events[l][1];if(u.type==="labelImage"){a=u;break}if(u.type==="gfmFootnoteCall"||u.type==="labelLink"||u.type==="label"||u.type==="image"||u.type==="link")break}return o;function o(u){if(!a||!a._balanced)return n(u);let s=Ne(i.sliceSerialize({start:a.end,end:i.now()}));return s.codePointAt(0)!==94||!r.includes(s.slice(1))?n(u):(t.enter("gfmFootnoteCallLabelMarker"),t.consume(u),t.exit("gfmFootnoteCallLabelMarker"),e(u))}}function hC(t,e){let n=t.length,i;for(;n--;)if(t[n][1].type==="labelImage"&&t[n][0]==="enter"){i=t[n][1];break}t[n+1][1].type="data",t[n+3][1].type="gfmFootnoteCallLabelMarker";let l={type:"gfmFootnoteCall",start:Object.assign({},t[n+3][1].start),end:Object.assign({},t[t.length-1][1].end)},r={type:"gfmFootnoteCallMarker",start:Object.assign({},t[n+3][1].end),end:Object.assign({},t[n+3][1].end)};r.end.column++,r.end.offset++,r.end._bufferIndex++;let a={type:"gfmFootnoteCallString",start:Object.assign({},r.end),end:Object.assign({},t[t.length-1][1].start)},o={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},u=[t[n+1],t[n+2],["enter",l,e],t[n+3],t[n+4],["enter",r,e],["exit",r,e],["enter",a,e],["enter",o,e],["exit",o,e],["exit",a,e],t[t.length-2],t[t.length-1],["exit",l,e]];return t.splice(n,t.length-n+1,...u),t}function gC(t,e,n){let i=this,l=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]),r=0,a;return o;function o(f){return t.enter("gfmFootnoteCall"),t.enter("gfmFootnoteCallLabelMarker"),t.consume(f),t.exit("gfmFootnoteCallLabelMarker"),u}function u(f){return f!==94?n(f):(t.enter("gfmFootnoteCallMarker"),t.consume(f),t.exit("gfmFootnoteCallMarker"),t.enter("gfmFootnoteCallString"),t.enter("chunkString").contentType="string",s)}function s(f){if(r>999||f===93&&!a||f===null||f===91||ut(f))return n(f);if(f===93){t.exit("chunkString");let d=t.exit("gfmFootnoteCallString");return l.includes(Ne(i.sliceSerialize(d)))?(t.enter("gfmFootnoteCallLabelMarker"),t.consume(f),t.exit("gfmFootnoteCallLabelMarker"),t.exit("gfmFootnoteCall"),e):n(f)}return ut(f)||(a=!0),r++,t.consume(f),f===92?c:s}function c(f){return f===91||f===92||f===93?(t.consume(f),r++,s):s(f)}}function yC(t,e,n){let i=this,l=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]),r,a=0,o;return u;function u(g){return t.enter("gfmFootnoteDefinition")._container=!0,t.enter("gfmFootnoteDefinitionLabel"),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(g),t.exit("gfmFootnoteDefinitionLabelMarker"),s}function s(g){return g===94?(t.enter("gfmFootnoteDefinitionMarker"),t.consume(g),t.exit("gfmFootnoteDefinitionMarker"),t.enter("gfmFootnoteDefinitionLabelString"),t.enter("chunkString").contentType="string",c):n(g)}function c(g){if(a>999||g===93&&!o||g===null||g===91||ut(g))return n(g);if(g===93){t.exit("chunkString");let b=t.exit("gfmFootnoteDefinitionLabelString");return r=Ne(i.sliceSerialize(b)),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(g),t.exit("gfmFootnoteDefinitionLabelMarker"),t.exit("gfmFootnoteDefinitionLabel"),d}return ut(g)||(o=!0),a++,t.consume(g),g===92?f:c}function f(g){return g===91||g===92||g===93?(t.consume(g),a++,c):c(g)}function d(g){return g===58?(t.enter("definitionMarker"),t.consume(g),t.exit("definitionMarker"),l.includes(r)||l.push(r),X(t,p,"gfmFootnoteDefinitionWhitespace")):n(g)}function p(g){return e(g)}}function bC(t,e,n){return t.check(qn,e,t.attempt(dC,e,n))}function vC(t){t.exit("gfmFootnoteDefinition")}function xC(t,e,n){let i=this;return X(t,l,"gfmFootnoteDefinitionIndent",5);function l(r){let a=i.events[i.events.length-1];return a&&a[1].type==="gfmFootnoteDefinitionIndent"&&a[2].sliceSerialize(a[1],!0).length===4?e(r):n(r)}}function Vd(t){let n=(t||{}).singleTilde,i={name:"strikethrough",tokenize:r,resolveAll:l};return n==null&&(n=!0),{text:{126:i},insideSpan:{null:[i]},attentionMarkers:{null:[126]}};function l(a,o){let u=-1;for(;++u<a.length;)if(a[u][0]==="enter"&&a[u][1].type==="strikethroughSequenceTemporary"&&a[u][1]._close){let s=u;for(;s--;)if(a[s][0]==="exit"&&a[s][1].type==="strikethroughSequenceTemporary"&&a[s][1]._open&&a[u][1].end.offset-a[u][1].start.offset===a[s][1].end.offset-a[s][1].start.offset){a[u][1].type="strikethroughSequence",a[s][1].type="strikethroughSequence";let c={type:"strikethrough",start:Object.assign({},a[s][1].start),end:Object.assign({},a[u][1].end)},f={type:"strikethroughText",start:Object.assign({},a[s][1].end),end:Object.assign({},a[u][1].start)},d=[["enter",c,o],["enter",a[s][1],o],["exit",a[s][1],o],["enter",f,o]],p=o.parser.constructs.insideSpan.null;p&&ie(d,d.length,0,Vi(p,a.slice(s+1,u),o)),ie(d,d.length,0,[["exit",f,o],["enter",a[u][1],o],["exit",a[u][1],o],["exit",c,o]]),ie(a,s-1,u-s+3,d),u=s+d.length-2;break}}for(u=-1;++u<a.length;)a[u][1].type==="strikethroughSequenceTemporary"&&(a[u][1].type="data");return a}function r(a,o,u){let s=this.previous,c=this.events,f=0;return d;function d(g){return s===126&&c[c.length-1][1].type!=="characterEscape"?u(g):(a.enter("strikethroughSequenceTemporary"),p(g))}function p(g){let b=si(s);if(g===126)return f>1?u(g):(a.consume(g),f++,p);if(f<2&&!n)return u(g);let T=a.exit("strikethroughSequenceTemporary"),m=si(g);return T._open=!m||m===2&&!!b,T._close=!b||b===2&&!!m,o(g)}}}var Es=class{constructor(){this.map=[]}add(e,n,i){SC(this,e,n,i)}consume(e){if(this.map.sort(function(r,a){return r[0]-a[0]}),this.map.length===0)return;let n=this.map.length,i=[];for(;n>0;)n-=1,i.push(e.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),e.length=this.map[n][0];i.push(e.slice()),e.length=0;let l=i.pop();for(;l;){for(let r of l)e.push(r);l=i.pop()}this.map.length=0}};function SC(t,e,n,i){let l=0;if(!(n===0&&i.length===0)){for(;l<t.map.length;){if(t.map[l][0]===e){t.map[l][1]+=n,t.map[l][2].push(...i);return}l+=1}t.map.push([e,n,i])}}function E0(t,e){let n=!1,i=[];for(;e<t.length;){let l=t[e];if(n){if(l[0]==="enter")l[1].type==="tableContent"&&i.push(t[e+1][1].type==="tableDelimiterMarker"?"left":"none");else if(l[1].type==="tableContent"){if(t[e-1][1].type==="tableDelimiterMarker"){let r=i.length-1;i[r]=i[r]==="left"?"center":"right"}}else if(l[1].type==="tableDelimiterRow")break}else l[0]==="enter"&&l[1].type==="tableDelimiterRow"&&(n=!0);e+=1}return i}function Fd(){return{flow:{null:{name:"table",tokenize:kC,resolveAll:wC}}}}function kC(t,e,n){let i=this,l=0,r=0,a;return o;function o(S){let nt=i.events.length-1;for(;nt>-1;){let G=i.events[nt][1].type;if(G==="lineEnding"||G==="linePrefix")nt--;else break}let K=nt>-1?i.events[nt][1].type:null,Y=K==="tableHead"||K==="tableRow"?w:u;return Y===w&&i.parser.lazy[i.now().line]?n(S):Y(S)}function u(S){return t.enter("tableHead"),t.enter("tableRow"),s(S)}function s(S){return S===124||(a=!0,r+=1),c(S)}function c(S){return S===null?n(S):B(S)?r>1?(r=0,i.interrupt=!0,t.exit("tableRow"),t.enter("lineEnding"),t.consume(S),t.exit("lineEnding"),p):n(S):Z(S)?X(t,c,"whitespace")(S):(r+=1,a&&(a=!1,l+=1),S===124?(t.enter("tableCellDivider"),t.consume(S),t.exit("tableCellDivider"),a=!0,c):(t.enter("data"),f(S)))}function f(S){return S===null||S===124||ut(S)?(t.exit("data"),c(S)):(t.consume(S),S===92?d:f)}function d(S){return S===92||S===124?(t.consume(S),f):f(S)}function p(S){return i.interrupt=!1,i.parser.lazy[i.now().line]?n(S):(t.enter("tableDelimiterRow"),a=!1,Z(S)?X(t,g,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(S):g(S))}function g(S){return S===45||S===58?T(S):S===124?(a=!0,t.enter("tableCellDivider"),t.consume(S),t.exit("tableCellDivider"),b):A(S)}function b(S){return Z(S)?X(t,T,"whitespace")(S):T(S)}function T(S){return S===58?(r+=1,a=!0,t.enter("tableDelimiterMarker"),t.consume(S),t.exit("tableDelimiterMarker"),m):S===45?(r+=1,m(S)):S===null||B(S)?k(S):A(S)}function m(S){return S===45?(t.enter("tableDelimiterFiller"),h(S)):A(S)}function h(S){return S===45?(t.consume(S),h):S===58?(a=!0,t.exit("tableDelimiterFiller"),t.enter("tableDelimiterMarker"),t.consume(S),t.exit("tableDelimiterMarker"),y):(t.exit("tableDelimiterFiller"),y(S))}function y(S){return Z(S)?X(t,k,"whitespace")(S):k(S)}function k(S){return S===124?g(S):S===null||B(S)?!a||l!==r?A(S):(t.exit("tableDelimiterRow"),t.exit("tableHead"),e(S)):A(S)}function A(S){return n(S)}function w(S){return t.enter("tableRow"),D(S)}function D(S){return S===124?(t.enter("tableCellDivider"),t.consume(S),t.exit("tableCellDivider"),D):S===null||B(S)?(t.exit("tableRow"),e(S)):Z(S)?X(t,D,"whitespace")(S):(t.enter("data"),_(S))}function _(S){return S===null||S===124||ut(S)?(t.exit("data"),D(S)):(t.consume(S),S===92?U:_)}function U(S){return S===92||S===124?(t.consume(S),_):_(S)}}function wC(t,e){let n=-1,i=!0,l=0,r=[0,0,0,0],a=[0,0,0,0],o=!1,u=0,s,c,f,d=new Es;for(;++n<t.length;){let p=t[n],g=p[1];p[0]==="enter"?g.type==="tableHead"?(o=!1,u!==0&&(T0(d,e,u,s,c),c=void 0,u=0),s={type:"table",start:Object.assign({},g.start),end:Object.assign({},g.end)},d.add(n,0,[["enter",s,e]])):g.type==="tableRow"||g.type==="tableDelimiterRow"?(i=!0,f=void 0,r=[0,0,0,0],a=[0,n+1,0,0],o&&(o=!1,c={type:"tableBody",start:Object.assign({},g.start),end:Object.assign({},g.end)},d.add(n,0,[["enter",c,e]])),l=g.type==="tableDelimiterRow"?2:c?3:1):l&&(g.type==="data"||g.type==="tableDelimiterMarker"||g.type==="tableDelimiterFiller")?(i=!1,a[2]===0&&(r[1]!==0&&(a[0]=a[1],f=Ts(d,e,r,l,void 0,f),r=[0,0,0,0]),a[2]=n)):g.type==="tableCellDivider"&&(i?i=!1:(r[1]!==0&&(a[0]=a[1],f=Ts(d,e,r,l,void 0,f)),r=a,a=[r[1],n,0,0])):g.type==="tableHead"?(o=!0,u=n):g.type==="tableRow"||g.type==="tableDelimiterRow"?(u=n,r[1]!==0?(a[0]=a[1],f=Ts(d,e,r,l,n,f)):a[1]!==0&&(f=Ts(d,e,a,l,n,f)),l=0):l&&(g.type==="data"||g.type==="tableDelimiterMarker"||g.type==="tableDelimiterFiller")&&(a[3]=n)}for(u!==0&&T0(d,e,u,s,c),d.consume(e.events),n=-1;++n<e.events.length;){let p=e.events[n];p[0]==="enter"&&p[1].type==="table"&&(p[1]._align=E0(e.events,n))}return t}function Ts(t,e,n,i,l,r){let a=i===1?"tableHeader":i===2?"tableDelimiter":"tableData",o="tableContent";n[0]!==0&&(r.end=Object.assign({},Hr(e.events,n[0])),t.add(n[0],0,[["exit",r,e]]));let u=Hr(e.events,n[1]);if(r={type:a,start:Object.assign({},u),end:Object.assign({},u)},t.add(n[1],0,[["enter",r,e]]),n[2]!==0){let s=Hr(e.events,n[2]),c=Hr(e.events,n[3]),f={type:o,start:Object.assign({},s),end:Object.assign({},c)};if(t.add(n[2],0,[["enter",f,e]]),i!==2){let d=e.events[n[2]],p=e.events[n[3]];if(d[1].end=Object.assign({},p[1].end),d[1].type="chunkText",d[1].contentType="text",n[3]>n[2]+1){let g=n[2]+1,b=n[3]-n[2]-1;t.add(g,b,[])}}t.add(n[3]+1,0,[["exit",f,e]])}return l!==void 0&&(r.end=Object.assign({},Hr(e.events,l)),t.add(l,0,[["exit",r,e]]),r=void 0),r}function T0(t,e,n,i,l){let r=[],a=Hr(e.events,n);l&&(l.end=Object.assign({},a),r.push(["exit",l,e])),i.end=Object.assign({},a),r.push(["exit",i,e]),t.add(n+1,0,r)}function Hr(t,e){let n=t[e],i=n[0]==="enter"?"start":"end";return n[1][i]}var EC={name:"tasklistCheck",tokenize:TC};function Qd(){return{text:{91:EC}}}function TC(t,e,n){let i=this;return l;function l(u){return i.previous!==null||!i._gfmTasklistFirstContentOfListItem?n(u):(t.enter("taskListCheck"),t.enter("taskListCheckMarker"),t.consume(u),t.exit("taskListCheckMarker"),r)}function r(u){return ut(u)?(t.enter("taskListCheckValueUnchecked"),t.consume(u),t.exit("taskListCheckValueUnchecked"),a):u===88||u===120?(t.enter("taskListCheckValueChecked"),t.consume(u),t.exit("taskListCheckValueChecked"),a):n(u)}function a(u){return u===93?(t.enter("taskListCheckMarker"),t.consume(u),t.exit("taskListCheckMarker"),t.exit("taskListCheck"),o):n(u)}function o(u){return B(u)?e(u):Z(u)?t.check({tokenize:AC},e,n)(u):n(u)}}function AC(t,e,n){return X(t,i,"whitespace");function i(l){return l===null?n(l):e(l)}}function A0(t){return Wu([Id(),Yd(),Vd(t),Fd(),Qd()])}var CC={};function qr(t){let e=this,n=t||CC,i=e.data(),l=i.micromarkExtensions||(i.micromarkExtensions=[]),r=i.fromMarkdownExtensions||(i.fromMarkdownExtensions=[]),a=i.toMarkdownExtensions||(i.toMarkdownExtensions=[]);l.push(A0(n)),r.push(Ud()),a.push(Hd(n))}function Xd(t){if(!t)return t;let e=t.toLowerCase(),n=e.indexOf("<think>"),i=e.indexOf("<thinking>"),l=-1,r=0;if(n!==-1&&(i===-1||n<i)?(l=n,r=7):i!==-1&&(l=i,r=10),l===-1)return t.replace(/\n\n+/g,`
|
|
38
38
|
|
|
39
|
-
`);let a=t.slice(0,
|
|
39
|
+
`);let a=t.slice(0,l),o=t.slice(l+r),u=o.toLowerCase(),s=u.indexOf("</think>"),c=u.indexOf("</thinking>"),f=-1,d=0;if(s!==-1&&(c===-1||s<c)?(f=s,d=8):c!==-1&&(f=c,d=11),f===-1)return(a+`
|
|
40
40
|
__THINK_START__
|
|
41
41
|
`+o).replace(/\n\n+/g,`
|
|
42
42
|
|
|
43
|
-
`);let p=o.slice(0,f),g=o.slice(f+
|
|
43
|
+
`);let p=o.slice(0,f),g=o.slice(f+d);return(a+`
|
|
44
44
|
__THINK_START__
|
|
45
45
|
`+p+`
|
|
46
46
|
__THINK_END__
|
|
47
|
-
`+
|
|
47
|
+
`+Xd(g)).replace(/\n\n+/g,`
|
|
48
48
|
|
|
49
|
-
`)}var
|
|
49
|
+
`)}var an=I(tt(),1),mo=({text:t,enableThinkTags:e=!0})=>{let n=e?Xd(t):t;if(e&&n.includes("__THINK_START__")){let i=n.split(/__(?:THINK_START|THINK_END)__/),l=i[0]||"",r=i[1]||"",a=i[2]||"",o=!n.includes("__THINK_END__");return(0,an.jsxs)("div",{className:"md",children:[l.trim()&&(0,an.jsx)(fo,{remarkPlugins:[qr],children:l}),o?(0,an.jsxs)("div",{className:"think active",children:[(0,an.jsx)("div",{className:"think-header",children:"Thinking\u2026"}),(0,an.jsx)("pre",{className:"think-content",children:r.split(`
|
|
50
50
|
`).slice(-3).join(`
|
|
51
|
-
`)})]}):(0
|
|
51
|
+
`)})]}):(0,an.jsxs)("details",{className:"think",children:[(0,an.jsx)("summary",{children:"Thought"}),(0,an.jsx)("pre",{className:"think-content",children:r})]}),a.trim()&&(0,an.jsx)(fo,{remarkPlugins:[qr],children:a})]})}return(0,an.jsx)("div",{className:"md",children:(0,an.jsx)(fo,{remarkPlugins:[qr],children:n})})};var An=I(tt(),1);function As({message:t}){let e=(0,C0.useMemo)(()=>t.completed||t.type!=="thought"?t.text:t.text.split(`
|
|
52
52
|
`).slice(-3).join(`
|
|
53
|
-
`),[t.completed,t.text,t.type]);return(0,
|
|
54
|
-
`):[],
|
|
55
|
-
`):[],r=Math.min(Math.max(
|
|
56
|
-
`]},u))})})}var ct=q($(),1);function RC(t){if(!t)return null;for(let e of t)if(e&&e.type==="diff")return e;return null}function MC(t){return typeof t=="object"&&t!==null}function DC(t){return typeof t.title=="string"&&t.title.startsWith("Execute Unity ")}function NC(t){let e=t.rawInput;return MC(e)?typeof e.agent_name=="string"&&typeof e.task=="string":!1}function Eb(t){if(!t)return!1;for(let e of t)if(e){if(e.type==="diff")return!0;if(e.type==="content"&&e.content?.type==="text"){let n=(e.content.text??"").trim();if(n.length>0){if(n.startsWith("Listed ")&&n.includes("item(s)"))continue;return!0}}}return!1}function zC({raw:t}){let e=Object.entries(t).filter(([n])=>n!=="agent_name"&&n!=="task").map(([n,l])=>typeof l=="string"&&l.length>100?`${n}: ${l.slice(0,100)}...`:`${n}: ${JSON.stringify(l)}`);return e.length===0?null:(0,ct.jsx)("div",{className:"subagent-params",children:e.map((n,l)=>(0,ct.jsx)("div",{className:"subagent-param",children:n},l))})}function Ts({tool:t,onOpenDiff:e}){let n=RC(t.content),l=NC(t);if(!Eb(t.content)&&!DC(t)&&!l)return(0,ct.jsxs)("div",{className:"tool-compact",children:[(0,ct.jsx)("span",{className:"tool-compact-arrow",children:"\u2192"}),(0,ct.jsx)("span",{className:"tool-compact-kind",children:t.kind??"other"}),(0,ct.jsx)("span",{className:"tool-compact-title",children:t.title||"Tool call"}),(0,ct.jsx)("span",{className:"tool-compact-status",children:t.status??"pending"})]});if(l){let r=t.rawInput,a=r.agent_name||"agent",o=r.task||"",u=t.status==="pending"||t.status==="in_progress";return(0,ct.jsxs)("div",{className:"tool-card subagent-card",children:[(0,ct.jsxs)("div",{className:`subagent-header ${u?"running":""}`,children:[(0,ct.jsxs)("div",{className:"subagent-title",children:[(0,ct.jsx)("span",{className:"subagent-label",children:"subagent"}),(0,ct.jsx)("span",{className:"subagent-name",children:a})]}),(0,ct.jsxs)("div",{className:"subagent-status-wrap",children:[u&&(0,ct.jsx)("div",{className:"subagent-spinner"}),(0,ct.jsx)("span",{className:"subagent-status",children:t.status??"pending"})]})]}),(0,ct.jsxs)("div",{className:"subagent-task",children:[(0,ct.jsx)("div",{className:"subagent-task-label",children:"Task:"}),(0,ct.jsx)("div",{className:"subagent-task-text",children:o})]}),r&&(0,ct.jsx)(zC,{raw:r}),Eb(t.content)&&(0,ct.jsx)("div",{className:"subagent-result",children:(t.content??[]).map((s,c)=>s&&s.type==="content"&&s.content?.type==="text"?(0,ct.jsx)(so,{text:s.content.text??"",enableThinkTags:!0},c):null)})]})}return(0,ct.jsxs)("div",{className:"tool-card",children:[(0,ct.jsxs)("div",{className:"tool-card-header",children:[(0,ct.jsxs)("div",{className:"tool-card-title",children:[(0,ct.jsx)("span",{className:"tool-kind",children:t.kind??"other"}),(0,ct.jsx)("span",{children:t.title||"Tool call"})]}),(0,ct.jsx)("span",{className:"tool-status",children:t.status??"pending"})]}),(0,ct.jsxs)("div",{className:"tool-card-body",children:[(t.content??[]).map((r,a)=>r?r.type==="content"&&r.content?.type==="text"?(0,ct.jsx)(so,{text:r.content.text??"",enableThinkTags:!0},a):r.type==="diff"?(0,ct.jsxs)("div",{children:[(0,ct.jsxs)("div",{style:{display:"flex",gap:10,alignItems:"center",flexWrap:"wrap",marginBottom:8},children:[(0,ct.jsx)("div",{className:"pill",children:(0,ct.jsx)("span",{children:`Diff: ${r.path}`})}),(0,ct.jsx)("button",{className:"btn",onClick:()=>e({title:r.path,oldText:r.oldText??"",newText:r.newText??""}),children:"Open diff"})]}),(0,ct.jsx)(Es,{oldText:r.oldText??"",newText:r.newText})]},a):null:null),null]})]})}var jl=q($(),1);function Fm({items:t,activeIndex:e,onPick:n,onHover:l}){return!t||t.length===0?null:(0,jl.jsxs)("div",{className:"autocomplete",children:[(0,jl.jsx)("div",{className:"ac-header",children:"Commands"}),t.map((i,r)=>(0,jl.jsxs)("div",{className:`ac-item${r===e?" active":""}`,onMouseEnter:()=>l(r),onMouseDown:a=>{a.preventDefault(),n(r)},children:[(0,jl.jsx)("div",{className:"ac-name",children:(0,jl.jsx)("code",{children:`/${i.name}`})}),(0,jl.jsx)("div",{className:"ac-desc",children:i.description})]},i.name))]})}var Ci=q($(),1);function Tb({items:t,activeIndex:e,onPick:n,onHover:l}){return!t||t.length===0?null:(0,Ci.jsxs)("div",{className:"autocomplete",children:[(0,Ci.jsx)("div",{className:"ac-header",children:"Paths"}),t.map((i,r)=>(0,Ci.jsx)("div",{className:`ac-item${r===e?" active":""}`,onMouseEnter:()=>l(r),onMouseDown:a=>{a.preventDefault(),n(r)},children:(0,Ci.jsx)("div",{className:"ac-name",children:(0,Ci.jsx)("code",{children:`@${i}`})})},`${i}_${r}`))]})}var Sn=q($(),1);var Ur=({textareaRef:t,value:e,placeholder:n,onChange:l,onKeyDown:i,onSubmit:r,onCancel:a,isBusy:o=!1,textareaClassName:u,submitClassName:s="composer-submit",submitDisabled:c=!1,submitLabel:f,busyLabel:m})=>(0,Sn.jsxs)(Sn.Fragment,{children:[(0,Sn.jsx)("textarea",{ref:t,className:u,value:e,placeholder:n,onChange:l,onKeyDown:i}),(0,Sn.jsx)("button",{type:"button",className:`${s}${o?" busy":""}`,onClick:()=>{if(o){a?.();return}r()},title:o?"Stop":"Send",disabled:c,children:o?m??(0,Sn.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"currentColor",children:(0,Sn.jsx)("rect",{x:"6",y:"6",width:"12",height:"12",rx:"2"})}):f||(0,Sn.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round",children:(0,Sn.jsx)("path",{d:"M12 19V5M5 12l7-7 7 7"})})})]});var ws=q($t(),1);var wb=q(Fs(),1),Il=q($(),1);function Ae({children:t,onClose:e}){return(0,wb.createPortal)((0,Il.jsx)("div",{className:"modal-backdrop",role:"presentation",onMouseDown:l=>{l.target===l.currentTarget&&e()},children:t}),document.body)}function Ce({title:t,onClose:e,children:n,footer:l}){return(0,Il.jsxs)("div",{className:"modal",role:"dialog","aria-modal":"true",children:[(0,Il.jsxs)("div",{className:"modal-header",children:[(0,Il.jsx)("h2",{children:t}),(0,Il.jsx)("button",{className:"btn",onClick:e,children:"Close"})]}),n,l?(0,Il.jsx)("div",{className:"modal-footer",children:l}):null]})}var Re=q($(),1);function Br({title:t,oldText:e,newText:n,onClose:l,onConfirm:i}){let[r,a]=(0,ws.useState)(n),o=(0,ws.useMemo)(()=>typeof i=="function",[i]);return(0,Re.jsx)(Ae,{onClose:l,children:(0,Re.jsx)(Ce,{title:t?`Review change \xB7 ${t}`:"Review change",onClose:l,footer:(0,Re.jsxs)(Re.Fragment,{children:[(0,Re.jsx)("button",{className:"btn",onClick:l,children:"Cancel"}),o?(0,Re.jsx)("button",{className:"btn primary",onClick:()=>i?.(r),children:"Use this version"}):null]}),children:(0,Re.jsxs)("div",{className:"modal-body",children:[(0,Re.jsxs)("div",{className:"modal-pane",children:[(0,Re.jsx)("div",{className:"pane-title",children:"Current (read-only)"}),(0,Re.jsx)("textarea",{readOnly:!0,value:e})]}),(0,Re.jsxs)("div",{className:"modal-pane",children:[(0,Re.jsx)("div",{className:"pane-title",children:"Proposed (editable)"}),(0,Re.jsx)("textarea",{value:r,onChange:u=>a(u.target.value)})]})]})})})}var fo=q($t(),1);var Bt=q($(),1);function _C(t){return t.kind==="allow_once"||t.kind==="allow_always"}function OC(t){return t.kind==="reject_once"||t.kind==="reject_always"}function Ab({req:t,onSelect:e}){let[n,l]=(0,fo.useState)(()=>{let o=t.toolCall?.content??[];for(let u of o)if(u&&u.type==="diff")return{title:u.path,oldText:u.oldText??"",newText:u.newText??""};return null}),[i,r]=(0,fo.useState)(!1),a=(0,fo.useMemo)(()=>n?{codely:{toolConfirmationPayload:{newContent:n.newText}}}:null,[n]);return(0,Bt.jsxs)(Bt.Fragment,{children:[(0,Bt.jsx)(Ae,{onClose:()=>{e({outcome:"cancelled"})},children:(0,Bt.jsx)(Ce,{title:`Approval required \xB7 ${t.toolCall?.title??"Tool call"}`,onClose:()=>e({outcome:"cancelled"}),footer:(0,Bt.jsx)("button",{className:"btn",onClick:()=>e({outcome:"cancelled"}),children:"Cancel"}),children:(0,Bt.jsx)("div",{className:"modal-body",style:{gridTemplateColumns:"1fr"},children:(0,Bt.jsxs)("div",{className:"modal-pane",children:[(0,Bt.jsx)("div",{className:"pane-title",children:"Details"}),(0,Bt.jsxs)("div",{style:{padding:"10px 12px",display:"flex",flexDirection:"column",gap:10},children:[(0,Bt.jsxs)("div",{className:"pill",children:[(0,Bt.jsx)("span",{children:`Kind: ${t.toolCall?.kind??"other"}`}),(0,Bt.jsx)("span",{style:{marginLeft:10},children:`Status: ${t.toolCall?.status??"pending"}`})]}),n?(0,Bt.jsxs)("div",{style:{display:"flex",gap:10,flexWrap:"wrap",alignItems:"center"},children:[(0,Bt.jsx)("div",{className:"pill",children:(0,Bt.jsx)("span",{children:`File: ${n.title}`})}),(0,Bt.jsx)("button",{className:"btn",onClick:()=>r(!0),children:"Edit diff\u2026"})]}):null,n?(0,Bt.jsx)(Es,{oldText:n.oldText,newText:n.newText}):null,(0,Bt.jsx)("div",{className:"section-title",children:"Options"}),(0,Bt.jsx)("div",{style:{display:"flex",flexWrap:"wrap",gap:10},children:(t.options??[]).map(o=>(0,Bt.jsx)("button",{className:OC(o)?"btn danger":o.kind==="allow_always"?"btn primary":"btn",onClick:()=>{e({outcome:"selected",optionId:o.optionId,meta:_C(o)?a??void 0:void 0})},children:o.name||o.optionId},o.optionId))})]})]})})})}),i&&n?(0,Bt.jsx)(Br,{title:n.title,oldText:n.oldText,newText:n.newText,onClose:()=>r(!1),onConfirm:o=>{l({...n,newText:o}),r(!1)}}):null]})}var Cb=q($t(),1);var tn=q($(),1);function Rb({params:t,onDone:e}){let[n,l]=(0,Cb.useState)(t.defaultValue??"");return(0,tn.jsx)(Ae,{onClose:()=>e({outcome:"cancelled"}),children:(0,tn.jsx)(Ce,{title:t.title||"Input required",onClose:()=>e({outcome:"cancelled"}),footer:(0,tn.jsxs)(tn.Fragment,{children:[(0,tn.jsx)("button",{className:"btn",onClick:()=>e({outcome:"cancelled"}),children:"Cancel"}),(0,tn.jsx)("button",{className:"btn primary",onClick:()=>e({outcome:"submitted",text:n}),children:"Submit"})]}),children:(0,tn.jsx)("div",{className:"modal-body",style:{gridTemplateColumns:"1fr"},children:(0,tn.jsxs)("div",{className:"modal-pane",children:[(0,tn.jsx)("div",{className:"pane-title",children:t.prompt||"Please provide input:"}),(0,tn.jsx)("textarea",{value:n,onChange:i=>l(i.target.value),style:{minHeight:140}})]})})})})}var Hn=q($(),1);function Mb({methods:t,onPick:e,onClose:n}){return(0,Hn.jsx)(Ae,{onClose:n,children:(0,Hn.jsx)(Ce,{title:"Authenticate",onClose:n,footer:(0,Hn.jsx)("button",{className:"btn",onClick:n,children:"Cancel"}),children:(0,Hn.jsx)("div",{className:"modal-body",style:{gridTemplateColumns:"1fr"},children:(0,Hn.jsxs)("div",{className:"modal-pane",children:[(0,Hn.jsx)("div",{className:"pane-title",children:"Choose an auth method (stored by the CLI)"}),(0,Hn.jsx)("div",{style:{padding:"10px 12px",display:"flex",flexDirection:"column",gap:10},children:t.map(l=>(0,Hn.jsx)("button",{className:"btn primary",onClick:()=>e(l),children:l.name||l.id},l.id))})]})})})})}var Db=q($t(),1);function Nb(t,e=[]){(0,Db.useLayoutEffect)(()=>{let n=t.current;n&&(n.style.height="auto",n.style.height=`${Math.min(n.scrollHeight,180)}px`)},[t,...e])}var mt=q($t(),1);var Hr=class{constructor(e){this.ws=e}nextId=0;pending=new Map;handlers=new Map;on(e,n){this.handlers.set(e,n)}request(e,n){let l=this.nextId++,i={jsonrpc:"2.0",id:l,method:e,params:n};return this.ws.send(JSON.stringify(i)),new Promise((r,a)=>{let o=s=>r(s),u=s=>a(s);this.pending.set(l,{resolve:o,reject:u})})}notify(e,n){let l={jsonrpc:"2.0",method:e,params:n};this.ws.send(JSON.stringify(l))}handleMessage(e){if(!e||typeof e!="object")return;let n=e,l="id"in n,i="method"in n;if(l&&!i){let r=n.id;if(typeof r!="number")return;let a=this.pending.get(r);if(!a)return;this.pending.delete(r),"result"in n?a.resolve(n.result):a.reject(n.error);return}if(l&&i){let r=n.id,a=n.method;if(typeof r!="number"||typeof a!="string")return;let o=this.handlers.get(a);if(!o){this.respondError(r,{code:-32601,message:`Method not found: ${a}`});return}Promise.resolve().then(()=>o(n.params)).then(u=>this.respond(r,u??null)).catch(u=>this.respondError(r,{code:-32603,message:u instanceof Error?u.message:String(u)}));return}if(i){let r=n.method;if(typeof r!="string")return;let a=this.handlers.get(r);a&&Promise.resolve(a(n.params))}}respond(e,n){let l={jsonrpc:"2.0",id:e,result:n};this.ws.send(JSON.stringify(l))}respondError(e,n){let l={jsonrpc:"2.0",id:e,error:n};this.ws.send(JSON.stringify(l))}};function dn(){try{return new Date().toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})}catch{return""}}function Ri(t){return typeof t=="object"&&t!==null}function LC(t){let e=t.options.find(n=>n.kind==="allow_always")??t.options.find(n=>n.kind==="allow_once")??t.options[0];return e?{outcome:{outcome:"selected",optionId:e.optionId}}:{outcome:{outcome:"cancelled"}}}function zb(t){if(!Ri(t))return!1;let e=t.code,n=t.message;return!!(e===-32002||typeof n=="string"&&n.toLowerCase().includes("auth"))}function UC(t){if(!Ri(t))return!1;let e=t.kind;if(e==="message"){let n=t.message;return _b(n)}return e==="tool"?typeof t.toolCallId=="string"&&t.toolCallId.length>0:!1}function BC(t){return Ri(t)?typeof t.toolCallId=="string"&&typeof t.title=="string"&&typeof t.status=="string"&&typeof t.kind=="string":!1}function _b(t){if(!Ri(t))return!1;let e=t.role,n=t.type,l=t.text;return(e==="user"||e==="assistant")&&n==="text"&&typeof l=="string"}function HC(t){let e=t?._meta;if(!Ri(e))return null;let n=e.codely;if(!Ri(n))return null;let l=n.ui;if(!Ri(l)||l.action!=="replace_history")return null;let i={},r=l.feed;Array.isArray(r)&&(i.feed=r.filter(UC));let a=l.tools;Array.isArray(a)&&(i.tools=a.filter(BC));let o=l.messages;return Array.isArray(o)&&(i.messages=o.filter(_b)),!i.feed&&!i.tools&&!i.messages?null:i}function Ob(t){let[e,n]=(0,mt.useState)("connecting"),[l,i]=(0,mt.useState)(null),[r,a]=(0,mt.useState)({open:!1,methods:[]}),[o,u]=(0,mt.useState)([]),[s,c]=(0,mt.useState)([]),[f,m]=(0,mt.useState)([]),[p,g]=(0,mt.useState)([]),[v,k]=(0,mt.useState)(null),[d,h]=(0,mt.useState)(null),y=(0,mt.useRef)(null),[T,C]=(0,mt.useState)(null),E=(0,mt.useRef)(null),[M,N]=(0,mt.useState)(!1),L=(0,mt.useRef)(null),S=(0,mt.useRef)(null),et=(0,mt.useRef)(0),K=(0,mt.useRef)(null),I=(0,mt.useCallback)(U=>{m(Y=>[...Y,U])},[]),Z=(0,mt.useCallback)(U=>{let{role:Y,type:H,chunk:_}=U;if(!_)return;let W=Y==="assistant"?K.current??void 0:void 0;m(ft=>{let ie=ft.map(ce=>ce.kind==="message"&&!ce.message.completed&&(ce.message.role!==Y||ce.message.type!==H)?{...ce,message:{...ce.message,completed:!0}}:ce),Yt=ie[ie.length-1];if(Yt&&Yt.kind==="message"&&Yt.message.role===Y&&Yt.message.type===H&&!Yt.message.completed){let ce={kind:"message",message:{...Yt.message,text:(Yt.message.text??"")+_}};return[...ie.slice(0,-1),ce]}let hn={kind:"message",message:{id:`${Y}_${H}_${Date.now()}_${Math.random().toString(16).slice(2)}`,role:Y,type:H,time:dn(),text:_,completed:Y==="user",...W!==void 0?{turnId:W}:{}}};return[...ie,hn]})},[]),J=(0,mt.useCallback)(()=>{let U=K.current;U!==null&&(m(Y=>Y.map(H=>H.kind!=="message"||H.message.role!=="assistant"||H.message.turnId!==U||H.message.completed?H:{...H,message:{...H.message,completed:!0}})),K.current=null,N(!1))},[]),dt=(0,mt.useCallback)(U=>{let Y=HC(U);if(Y){Y.tools?g(Y.tools):g([]),Y.feed?m(Y.feed.map(H=>{if(H.kind==="tool")return{kind:"tool",toolCallId:H.toolCallId,time:dn()};let _=H.message;return{kind:"message",message:{id:`rehydrate_${_.role}_${Date.now()}_${Math.random().toString(16).slice(2)}`,role:_.role,type:"text",time:dn(),text:_.text,completed:!0}}})):Y.messages?m(Y.messages.map(H=>({kind:"message",message:{id:`rehydrate_${H.role}_${Date.now()}_${Math.random().toString(16).slice(2)}`,role:H.role,type:"text",time:dn(),text:H.text,completed:!0}}))):m([]),c([]),k(null),K.current=null,N(!1);return}if(U.sessionUpdate==="available_commands_update"){u(U.availableCommands??[]);return}if(U.sessionUpdate==="plan"){c(U.entries??[]);return}if(U.sessionUpdate==="agent_message_chunk"){U.content?.type==="text"&&Z({role:"assistant",type:"text",chunk:U.content.text??""});return}if(U.sessionUpdate==="agent_thought_chunk"){U.content?.type==="text"&&Z({role:"assistant",type:"thought",chunk:U.content.text??""});return}if(U.sessionUpdate==="tool_call"){let H={toolCallId:U.toolCallId,title:U.title,status:U.status,kind:U.kind,content:U.content,rawInput:U.rawInput,locations:U.locations};g(_=>[..._,H]),m(_=>_.map(W=>W.kind==="message"&&!W.message.completed?{...W,message:{...W.message,completed:!0}}:W)),I({kind:"tool",toolCallId:H.toolCallId,time:dn()});return}if(U.sessionUpdate==="tool_call_update"){g(H=>H.map(_=>_.toolCallId===U.toolCallId?{..._,...U.title?{title:U.title}:{},...U.status?{status:U.status}:{},...U.kind?{kind:U.kind}:{},...U.content?{content:U.content}:{}}:_));return}},[I,Z]),xt=(0,mt.useCallback)(async()=>{try{L.current?.close()}catch{}L.current=null,S.current=null,K.current=null,n("connecting"),i(null),k(null);let U=`${location.protocol==="https:"?"wss:":"ws:"}//${location.host}${t.wsPath||"/ws"}`,Y=new WebSocket(U);L.current=Y,Y.addEventListener("open",async()=>{n("connected");let H=new Hr(Y);S.current=H,H.on("session/update",_=>{let W=_;return W&&W.update&&dt(W.update),null}),H.on("session/request_permission",_=>{let W=_;return t.yolo?LC(W):new Promise(ft=>{y.current=ft,h(W)})}),H.on("_session/request_input",_=>{let W=_;return new Promise(ft=>{E.current=ft,C(W)})}),Y.addEventListener("message",_=>{try{let W=JSON.parse(String(_.data));H.handleMessage(W)}catch{}});try{let W=(await H.request("initialize",{protocolVersion:1,clientCapabilities:{fs:{readTextFile:!1,writeTextFile:!1},terminal:!1},clientInfo:{name:"codely-web-ui",version:"0.0.0",title:"Codely Web UI"}}))?.authMethods??[];a({open:!1,methods:W});try{let ft=await H.request("session/new",{cwd:t.cwd||"",mcpServers:[]});i(ft.sessionId),k(null)}catch(ft){zb(ft)?(a({open:!0,methods:W}),k("Authentication required.")):k(`Failed to create session: ${String(ft?.message??ft)}`)}}catch(_){k(`Failed to initialize ACP: ${String(_?.message??_)}`)}}),Y.addEventListener("close",H=>{let _=H,W=[];_&&typeof _.code=="number"&&W.push(`code=${_.code}`),_&&typeof _.reason=="string"&&_.reason.trim()!==""&&W.push(`reason=${_.reason}`),_&&typeof _.wasClean=="boolean"&&W.push(`clean=${_.wasClean}`),n("disconnected"),i(null),k(W.length>0?`Disconnected (${W.join(" ")})`:"Disconnected.")}),Y.addEventListener("error",()=>{n("disconnected"),i(null),k("Connection error.")})},[t.cwd,t.wsPath,t.yolo,dt]),It=(0,mt.useCallback)(async U=>{let Y=S.current;if(Y)try{await Y.request("authenticate",{methodId:U.id});let H=await Y.request("session/new",{cwd:t.cwd||"",mcpServers:[]});i(H.sessionId),a(_=>({..._,open:!1})),k(null)}catch(H){k(`Authentication failed: ${String(H?.message??H)}`)}},[t.cwd]),le=(0,mt.useCallback)(async U=>{let Y=S.current;if(!Y||!l){k("Not connected.");return}let{displayText:H,prompt:_}=typeof U=="string"?{displayText:U,prompt:[{type:"text",text:U}]}:U;Z({role:"user",type:"text",chunk:H}),et.current+=1,K.current=et.current,N(!0);try{let W=await Y.request("session/prompt",{sessionId:l,prompt:_});J(),W?.stopReason==="cancelled"&&k("Cancelled.")}catch(W){if(J(),zb(W)){i(null),a(ft=>({...ft,open:!0})),k("Authentication required.");return}k(`Request failed: ${String(W?.message??W)}`)}},[Z,J,l]),b=(0,mt.useCallback)(()=>{let U=S.current;if(!(!U||!l))try{U.notify("session/cancel",{sessionId:l})}catch{}},[l]),Wt=(0,mt.useCallback)(async(U,Y=10)=>{let H=S.current;if(!H||!l)return[];try{let _=await H.request("_workspace/suggest_paths",{sessionId:l,pattern:U,maxResults:Y});return Array.isArray(_?.paths)?_.paths:[]}catch{return[]}},[l]),qt=(0,mt.useCallback)(async(U,Y=10)=>{let H=S.current;if(!H||!l)return[];try{let _=await H.request("_slash/complete",{sessionId:l,line:U,maxResults:Y});return Array.isArray(_?.items)?_.items:[]}catch{return[]}},[l]),x=(0,mt.useCallback)(U=>{let Y=y.current;y.current=null,h(null),Y&&Y(U)},[]),zt=(0,mt.useCallback)(U=>{let Y=E.current;E.current=null,C(null),Y&&Y(U)},[]);return(0,mt.useEffect)(()=>{xt()},[]),{connection:e,sessionId:l,statusText:v,auth:r,availableCommands:o,planEntries:s,feed:f,tools:p,connect:xt,sendPrompt:le,cancel:b,suggestPaths:Wt,completeSlashCommand:qt,authenticate:It,permissionReq:d,resolvePermission:x,inputReq:T,resolveInput:zt,isBusy:M}}var bt=q($t(),1);function qC(t){return t?t.endsWith("/")?t.slice(0,-1):t:"/__codely__/control-plane"}async function Yl(t,e){let n=await fetch(t,{...e,headers:{"content-type":"application/json",...e?.headers??{}}}),l=await n.text(),i=l?JSON.parse(l):null;if(!n.ok){let r=typeof i?.error=="string"?i.error:`${n.status} ${n.statusText}`;throw new Error(r)}return i}function Lb(t){let e=qC(t);return{list:async()=>(await Yl(`${e}/registry`)).endpoints,getById:async n=>(await Yl(`${e}/registry/${encodeURIComponent(n)}`)).endpoint,create:async n=>(await Yl(`${e}/registry`,{method:"POST",body:JSON.stringify(n)})).endpoint,update:async(n,l)=>(await Yl(`${e}/registry/${encodeURIComponent(n)}`,{method:"PUT",body:JSON.stringify(l)})).endpoint,remove:async n=>{await Yl(`${e}/registry/${encodeURIComponent(n)}`,{method:"DELETE"})},health:async n=>Yl(`${e}/health?endpointId=${encodeURIComponent(n)}`),getRawRegistryJson:async()=>(await Yl(`${e}/registry/raw`)).json,saveRawRegistryJson:async n=>{await Yl(`${e}/registry/raw`,{method:"PUT",body:JSON.stringify({json:n})})}}}var Vl=q($t(),1);var Ue=q($(),1);function jC(t){return t.trim()?t.split(",").map(e=>e.trim()).filter(e=>e.length>0):[]}var Ub=({open:t,endpoint:e,onClose:n,onSave:l})=>{let[i,r]=(0,Vl.useState)(""),[a,o]=(0,Vl.useState)(""),[u,s]=(0,Vl.useState)(""),[c,f]=(0,Vl.useState)(null),[m,p]=(0,Vl.useState)(!1);if((0,Vl.useEffect)(()=>{t&&(r(e?.name??""),o(e?.baseUrl??""),s((e?.tags??[]).join(", ")),f(null),p(!1))},[e,t]),!t)return null;let g=async()=>{if(!i.trim()||!a.trim()){f("Name and base URL are required.");return}p(!0),f(null);try{await l({name:i.trim(),baseUrl:a.trim(),tags:jC(u)}),n()}catch(v){f(v instanceof Error?v.message:"Save failed")}finally{p(!1)}};return(0,Ue.jsx)(Ae,{onClose:n,children:(0,Ue.jsx)(Ce,{title:e?"Edit endpoint":"Add endpoint",onClose:n,footer:(0,Ue.jsxs)("div",{className:"cp-modal-actions",children:[(0,Ue.jsx)("button",{className:"btn",onClick:n,disabled:m,children:"Cancel"}),(0,Ue.jsx)("button",{className:"btn primary",onClick:()=>void g(),disabled:m,children:m?"Saving\u2026":"Save"})]}),children:(0,Ue.jsxs)("div",{className:"cp-modal-body",children:[(0,Ue.jsxs)("label",{className:"cp-label",children:["Name",(0,Ue.jsx)("input",{className:"cp-input",value:i,onChange:v=>r(v.target.value),placeholder:"e.g. Mac Mini - local"})]}),(0,Ue.jsxs)("label",{className:"cp-label",children:["Base URL",(0,Ue.jsx)("input",{className:"cp-input",value:a,onChange:v=>o(v.target.value),placeholder:"http://127.0.0.1:3939"})]}),(0,Ue.jsxs)("label",{className:"cp-label",children:["Tags (comma-separated)",(0,Ue.jsx)("input",{className:"cp-input",value:u,onChange:v=>s(v.target.value),placeholder:"local, gpu, staging"})]}),c?(0,Ue.jsx)("div",{className:"cp-error",children:c}):null]})})})};var Fl=q($t(),1);var ge=q($(),1);function Bb(t){let e=t.split(/\r?\n/),n=[],l=[];for(let i=0;i<e.length;i+=1){let r=e[i]?.trim()??"";if(!r)continue;let a=r.split(",").map(c=>c.trim());if(a.length>3){l.push(`Line ${i+1}: expected "url[, name[, tag]]"`);continue}let o=a[0]??"";if(!o){l.push(`Line ${i+1}: missing endpoint url`);continue}let u=a[1]?.trim()||o,s=a[2]?.trim()||o;n.push({name:u,baseUrl:o,tags:s?[s]:[]})}return l.length>0?{ok:!1,error:l.join(`
|
|
57
|
-
`)}:n.length===0?{ok:!1,error:"No endpoints found."}:{ok:!0,inputs:n}}var
|
|
58
|
-
http://127.0.0.1:3940`,value:l,onChange:f=>i(f.target.value),rows:8}),s.ok?(0,ge.jsxs)("div",{className:"cp-muted",style:{marginTop:8},children:["Parsed ",s.inputs.length," endpoint(s)"]}):null,r?(0,ge.jsx)("div",{className:"cp-error",style:{whiteSpace:"pre-wrap"},children:r}):null]})})})};var Ht=q($(),1);function IC(t){return t===void 0?(0,Ht.jsx)("span",{className:"cp-health unknown",children:"Unknown"}):t===null?(0,Ht.jsx)("span",{className:"cp-health pending",children:"Checking\u2026"}):t.ok?(0,Ht.jsxs)("span",{className:"cp-health ok",children:["Healthy ",(0,Ht.jsxs)("span",{className:"cp-health-ms",children:[t.durationMs,"ms"]})]}):(0,Ht.jsxs)("span",{className:"cp-health err",children:["Unhealthy ",t.error?`\xB7 ${t.error}`:""]})}var qb=({endpoints:t,healthById:e,onEdit:n,onDelete:l,onRefreshHealth:i,selectedIds:r,onToggleSelect:a})=>t.length===0?(0,Ht.jsx)("div",{className:"cp-empty",children:"No endpoints registered yet."}):(0,Ht.jsx)("div",{className:"cp-list",children:t.map(o=>(0,Ht.jsxs)("div",{className:"cp-row",children:[(0,Ht.jsx)("div",{className:"cp-select-box",children:(0,Ht.jsx)("input",{type:"checkbox",checked:r?.has(o.id)??!1,onChange:u=>a?.(o.id,u.target.checked)})}),(0,Ht.jsxs)("div",{className:"cp-row-main",children:[(0,Ht.jsxs)("div",{className:"cp-row-title",children:[(0,Ht.jsx)("span",{className:"cp-name",children:o.name}),(0,Ht.jsx)("span",{className:"cp-url",children:o.baseUrl})]}),(0,Ht.jsxs)("div",{className:"cp-row-meta",children:[IC(e[o.id]),(0,Ht.jsx)("div",{className:"cp-tags",children:o.tags.length===0?(0,Ht.jsx)("span",{className:"cp-tag muted",children:"no tags"}):o.tags.map(u=>(0,Ht.jsx)("span",{className:"cp-tag",children:u},u))})]})]}),(0,Ht.jsxs)("div",{className:"cp-actions",children:[(0,Ht.jsx)("button",{className:"btn",onClick:()=>i(o),children:"Health"}),(0,Ht.jsx)("button",{className:"btn",onClick:()=>n(o),children:"Edit"}),(0,Ht.jsx)("button",{className:"btn danger",onClick:()=>l(o),children:"Delete"})]})]},o.id))});var jb=q($t(),1);var qr=q($t(),1);var Mi=q($(),1);var As=({feed:t,tools:e,onOpenDiff:n})=>{let l=(0,qr.useRef)(null),i=(0,qr.useMemo)(()=>{let r=new Map;for(let a of e)r.set(a.toolCallId,a);return r},[e]);return(0,qr.useEffect)(()=>{l.current&&(l.current.scrollTop=l.current.scrollHeight)},[t]),(0,Mi.jsx)("div",{className:"cp-task-body",ref:l,children:t.length===0?(0,Mi.jsx)("div",{className:"cp-empty",children:"No activity yet."}):t.map(r=>{if(r.kind==="message")return(0,Mi.jsx)("div",{className:"cp-task-message",children:(0,Mi.jsx)(ks,{message:r.message})},r.message.id);let a=i.get(r.toolCallId);return a?(0,Mi.jsx)("div",{className:"cp-task-tool",children:(0,Mi.jsx)(Ts,{tool:a,onOpenDiff:o=>n({title:o.title,oldText:o.oldText,newText:o.newText})})},r.toolCallId):null})})};var Jt=q($(),1);var Ib=({state:t,selected:e,onSelect:n,onClick:l,onForceCancel:i,onForceRefresh:r,onRetry:a,onSendPrompt:o,onOpenDiff:u})=>{let[s,c]=(0,jb.useState)(""),f=t.connection==="connected"?t.isBusy?"busy":"idle":"disconnected",m=t.connection==="disconnected"||t.lastError!==null,p=()=>{if(t.connection!=="connected")return;let k=s.trim();k&&(o(t.endpoint.id,k),c(""))},g=k=>{k.key==="Enter"&&k.ctrlKey&&(k.preventDefault(),p())},v=["cp-task-card",e?"selected":"",m?"error":""].filter(Boolean).join(" ");return(0,Jt.jsxs)("div",{className:v,onClick:()=>l(t.endpoint.id),children:[(0,Jt.jsxs)("div",{className:"cp-task-header",children:[(0,Jt.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:12},children:[(0,Jt.jsx)("input",{type:"checkbox",checked:e,onClick:k=>k.stopPropagation(),onChange:k=>n(t.endpoint.id,k.target.checked),style:{width:16,height:16,cursor:"pointer"}}),(0,Jt.jsxs)("div",{children:[(0,Jt.jsx)("div",{className:"cp-task-name",children:t.endpoint.name}),(0,Jt.jsx)("a",{className:"cp-task-url",href:t.endpoint.baseUrl,target:"_blank",rel:"noreferrer noopener",title:"Open in new tab",onClick:k=>k.stopPropagation(),children:t.endpoint.baseUrl})]})]}),(0,Jt.jsxs)("div",{className:"cp-task-meta",children:[(0,Jt.jsx)("span",{className:`cp-conn ${t.connection}`,children:f}),(0,Jt.jsxs)("span",{className:"cp-queue",children:["queue ",t.queuedCount]}),t.lastActivityAt?(0,Jt.jsx)("span",{className:"cp-activity",children:new Date(t.lastActivityAt).toLocaleTimeString()}):null]}),(0,Jt.jsxs)("div",{className:"cp-task-actions",children:[(0,Jt.jsx)("button",{className:"btn danger",onClick:k=>{k.stopPropagation(),i(t.endpoint.id)},children:"Cancel"}),(0,Jt.jsx)("button",{className:"btn",onClick:k=>{k.stopPropagation(),r(t.endpoint.id)},children:"Refresh"}),t.lastFailed?(0,Jt.jsx)("button",{className:"btn",onClick:k=>{k.stopPropagation(),a(t.endpoint.id)},children:"Retry"}):null]})]}),t.lastError?(0,Jt.jsxs)("div",{className:"cp-task-error",children:["Last error: ",t.lastError]}):null,(0,Jt.jsx)(As,{feed:t.feed,tools:t.tools,onOpenDiff:u}),(0,Jt.jsx)("div",{className:"cp-task-input",onClick:k=>k.stopPropagation(),children:(0,Jt.jsx)(Ur,{value:s,textareaClassName:"cp-task-textarea",placeholder:"Send prompt...",onChange:k=>c(k.target.value),onKeyDown:g,onSubmit:p,submitClassName:"btn primary",submitDisabled:!s.trim()||t.connection!=="connected",submitLabel:"Send"})})]})};var Di=q($t(),1);var qn=q($(),1);var Yb=({open:t,onClose:e,onLoad:n,onSave:l})=>{let[i,r]=(0,Di.useState)(""),[a,o]=(0,Di.useState)(!1),[u,s]=(0,Di.useState)(!1),[c,f]=(0,Di.useState)(null);if((0,Di.useEffect)(()=>{t&&(o(!0),s(!1),f(null),(async()=>{try{let p=await n();r(p)}catch(p){f(p instanceof Error?p.message:"Failed to load JSON")}finally{o(!1)}})())},[n,t]),!t)return null;let m=async()=>{s(!0),f(null);try{await l(i),e()}catch(p){f(p instanceof Error?p.message:"Save failed")}finally{s(!1)}};return(0,qn.jsx)(Ae,{onClose:e,children:(0,qn.jsx)(Ce,{title:"Edit registry JSON",onClose:e,footer:(0,qn.jsxs)("div",{className:"cp-modal-actions",children:[(0,qn.jsx)("button",{className:"btn",onClick:e,disabled:u||a,children:"Cancel"}),(0,qn.jsx)("button",{className:"btn primary",onClick:()=>void m(),disabled:u||a,children:u?"Saving\u2026":"Save"})]}),children:(0,qn.jsxs)("div",{className:"cp-modal-body",children:[(0,qn.jsx)("textarea",{className:"cp-textarea",value:i,onChange:p=>r(p.target.value),rows:12,placeholder:a?"Loading\u2026":"",disabled:a}),c?(0,qn.jsx)("div",{className:"cp-error",style:{whiteSpace:"pre-wrap"},children:c}):null]})})})};var Me=q($t(),1);function jr(t){return typeof t=="object"&&t!==null}function YC(t){return jr(t)?typeof t.toolCallId=="string"&&typeof t.title=="string"&&typeof t.status=="string"&&typeof t.kind=="string":!1}function Vb(t){if(!jr(t))return!1;let e=t.role,n=t.type,l=t.text;return(e==="user"||e==="assistant")&&n==="text"&&typeof l=="string"}function VC(t){if(!jr(t))return!1;let e=t.kind;if(e==="message"){let n=t.message;return Vb(n)}return e==="tool"?typeof t.toolCallId=="string"&&t.toolCallId.length>0:!1}function FC(t){let e=t?._meta;if(!jr(e))return null;let n=e.codely;if(!jr(n))return null;let l=n.ui;if(!jr(l)||l.action!=="replace_history")return null;let i={},r=l.feed;Array.isArray(r)&&(i.feed=r.filter(VC));let a=l.tools;Array.isArray(a)&&(i.tools=a.filter(YC));let o=l.messages;return Array.isArray(o)&&(i.messages=o.filter(Vb)),!i.feed&&!i.tools&&!i.messages?null:i}function QC(t){let e=t.options.find(n=>n.kind==="allow_always")??t.options.find(n=>n.kind==="allow_once")??t.options[0];return e?{outcome:{outcome:"selected",optionId:e.optionId}}:{outcome:{outcome:"cancelled"}}}var Cs=class{constructor(e,n){this.wsUrl=e;this.onStateChange=n}ws=null;rpc=null;sessionId=null;reconnectTimer=null;reconnectAttempts=0;disposed=!1;currentTurnId=0;activeTurnId=null;sessionReadyPromise=null;sessionReadyResolve=null;sessionReadyReject=null;state={connection:"disconnected",sessionId:null,statusText:null,feed:[],tools:[],isBusy:!1,lastActivityAt:null};connect(){if(this.disposed||this.ws&&this.ws.readyState<=WebSocket.OPEN)return;this.clearReconnect(),this.resetSessionReadyPromise(),this.updateState({connection:"connecting",sessionId:null,statusText:null});let e=new WebSocket(this.wsUrl);this.ws=e,e.addEventListener("open",()=>{if(this.ws!==e||this.disposed)return;this.reconnectAttempts=0,this.updateState({connection:"connected"});let n=new Hr(e);this.rpc=n,n.on("session/update",l=>{let i=l;return i?.update&&this.onSessionUpdate(i.update),null}),n.on("session/request_permission",l=>QC(l)),n.on("_session/request_input",()=>({outcome:"cancelled"})),e.addEventListener("message",l=>{if(!(this.ws!==e||this.disposed))try{let i=JSON.parse(String(l.data));n.handleMessage(i)}catch{}}),this.bootstrap(n)}),e.addEventListener("close",()=>{this.ws===e&&(this.rpc=null,this.sessionId=null,this.activeTurnId=null,this.ws=null,this.sessionReadyReject?.(new Error("Disconnected")),this.clearSessionReadyHandlers(),this.updateState({connection:"disconnected",sessionId:null,statusText:"Disconnected.",isBusy:!1}),this.scheduleReconnect())}),e.addEventListener("error",()=>{this.ws===e&&(this.rpc=null,this.sessionId=null,this.activeTurnId=null,this.ws=null,this.sessionReadyReject?.(new Error("Connection error")),this.clearSessionReadyHandlers(),this.updateState({connection:"disconnected",sessionId:null,statusText:"Connection error.",isBusy:!1}),this.scheduleReconnect())})}dispose(){this.disposed=!0,this.clearReconnect(),this.closeWs("dispose")}forceClose(){this.closeWs("force")}forceRefresh(){if(this.disposed)return;this.clearReconnect(),this.currentTurnId=0,this.activeTurnId=null,this.updateState({feed:[],tools:[],isBusy:!1,lastActivityAt:null,statusText:"Refreshing\u2026"});let e=this.ws;if(this.ws=null,this.rpc=null,this.sessionId=null,this.sessionReadyReject?.(new Error("Refreshed")),this.clearSessionReadyHandlers(),e)try{e.close()}catch{}this.connect()}cancel(){let e=this.rpc;if(!(!e||!this.sessionId))try{e.notify("session/cancel",{sessionId:this.sessionId})}catch{}}async sendPrompt(e){(!this.rpc||!this.ws||!this.sessionId)&&(this.connect(),await this.waitForSessionReady(3e4));let n=this.rpc;if(!n||!this.ws||!this.sessionId)throw this.updateState({statusText:"Not connected."}),new Error("Not connected");if(this.state.isBusy)throw this.updateState({statusText:"Session busy."}),new Error("Session busy");let l=this.ws;this.appendChunkToFeed({role:"user",type:"text",chunk:e}),this.currentTurnId+=1,this.activeTurnId=this.currentTurnId,this.updateState({isBusy:!0}),this.touchActivity();let i=null,r=new Promise((a,o)=>{i=()=>o(new Error("Connection closed")),l.addEventListener("close",i),l.addEventListener("error",i)});try{let a=await Promise.race([n.request("session/prompt",{sessionId:this.sessionId,prompt:[{type:"text",text:e}]}),r]);this.markAssistantCompleted(),a?.stopReason==="cancelled"&&this.updateState({statusText:"Cancelled."})}catch(a){throw this.markAssistantCompleted(),this.updateState({statusText:`Request failed: ${String(a?.message??a)}`}),a}finally{i&&(l.removeEventListener("close",i),l.removeEventListener("error",i))}}getState(){return this.state}async bootstrap(e){try{((await e.request("initialize",{protocolVersion:1,clientCapabilities:{fs:{readTextFile:!1,writeTextFile:!1},terminal:!1},clientInfo:{name:"codely-control-plane",version:"0.0.0",title:"Codely Control Plane"}}))?.authMethods??[]).length>0&&this.updateState({statusText:"Authentication required (unsupported)."});let i=await e.request("session/new",{cwd:"",mcpServers:[]});this.sessionId=i.sessionId,this.updateState({sessionId:i.sessionId,statusText:null}),this.touchActivity(),this.sessionReadyResolve?.(),this.clearSessionReadyHandlers()}catch(n){this.updateState({statusText:`Failed to initialize ACP: ${String(n?.message??n)}`}),this.sessionReadyReject?.(n instanceof Error?n:new Error(String(n))),this.clearSessionReadyHandlers(),this.closeWs("bootstrap failed")}}closeWs(e){if(this.ws)try{this.ws.readyState<=WebSocket.OPEN&&this.ws.close()}catch{}this.ws=null,this.rpc=null,this.sessionId=null,this.sessionReadyReject?.(new Error(e??"closed")),this.clearSessionReadyHandlers(),e&&this.updateState({connection:"disconnected",sessionId:null,statusText:e==="force"?"Force cancelled.":this.state.statusText,isBusy:!1})}resetSessionReadyPromise(){this.sessionReadyReject?.(new Error("Replaced by new connection")),this.clearSessionReadyHandlers(),this.sessionReadyPromise=new Promise((e,n)=>{this.sessionReadyResolve=e,this.sessionReadyReject=n})}clearSessionReadyHandlers(){this.sessionReadyResolve=null,this.sessionReadyReject=null}async waitForSessionReady(e){let n=this.sessionReadyPromise;if(!n)throw new Error("Not connected");let l=null,i=new Promise((r,a)=>{l=window.setTimeout(()=>{a(new Error("Session not ready"))},e)});try{await Promise.race([n,i])}finally{l!==null&&clearTimeout(l)}}scheduleReconnect(){if(this.disposed||this.reconnectTimer!==null)return;let e=Math.min(1e3*2**this.reconnectAttempts,5e3);this.reconnectAttempts+=1,this.reconnectTimer=window.setTimeout(()=>{this.reconnectTimer=null,this.connect()},e)}clearReconnect(){this.reconnectTimer!==null&&(clearTimeout(this.reconnectTimer),this.reconnectTimer=null)}updateState(e){this.state={...this.state,...e},this.onStateChange?.(this.state)}touchActivity(){this.updateState({lastActivityAt:Date.now()})}appendFeed(e){this.updateState({feed:[...this.state.feed,e]})}appendChunkToFeed(e){let{role:n,type:l,chunk:i}=e;if(!i)return;let r=n==="assistant"?this.activeTurnId??void 0:void 0,a=this.state.feed.map(s=>s.kind==="message"&&!s.message.completed&&(s.message.role!==n||s.message.type!==l)?{...s,message:{...s.message,completed:!0}}:s),o=a[a.length-1];if(o&&o.kind==="message"&&o.message.role===n&&o.message.type===l&&!o.message.completed){let s={kind:"message",message:{...o.message,text:(o.message.text??"")+i}};this.updateState({feed:[...a.slice(0,-1),s]});return}let u={kind:"message",message:{id:`${n}_${l}_${Date.now()}_${Math.random().toString(16).slice(2)}`,role:n,type:l,time:dn(),text:i,completed:n==="user",...r!==void 0?{turnId:r}:{}}};this.updateState({feed:[...a,u]})}markAssistantCompleted(){let e=this.activeTurnId;if(e===null)return;let n=this.state.feed.map(l=>l.kind!=="message"||l.message.role!=="assistant"||l.message.turnId!==e||l.message.completed?l:{...l,message:{...l.message,completed:!0}});this.activeTurnId=null,this.updateState({feed:n,isBusy:!1})}onSessionUpdate(e){this.touchActivity();let n=FC(e);if(n){if(n.tools?this.updateState({tools:n.tools}):this.updateState({tools:[]}),n.feed){let l=n.feed.map(i=>{if(i.kind==="tool")return{kind:"tool",toolCallId:i.toolCallId,time:dn()};let r=i.message;return{kind:"message",message:{id:`rehydrate_${r.role}_${Date.now()}_${Math.random().toString(16).slice(2)}`,role:r.role,type:"text",time:dn(),text:r.text,completed:!0}}});this.updateState({feed:l})}else if(n.messages){let l=n.messages.map(i=>({kind:"message",message:{id:`rehydrate_${i.role}_${Date.now()}_${Math.random().toString(16).slice(2)}`,role:i.role,type:"text",time:dn(),text:i.text,completed:!0}}));this.updateState({feed:l})}else this.updateState({feed:[]});this.activeTurnId=null,this.updateState({isBusy:!1});return}if(e.sessionUpdate==="agent_message_chunk"){e.content?.type==="text"&&this.appendChunkToFeed({role:"assistant",type:"text",chunk:e.content.text??""});return}if(e.sessionUpdate==="agent_thought_chunk"){e.content?.type==="text"&&this.appendChunkToFeed({role:"assistant",type:"thought",chunk:e.content.text??""});return}if(e.sessionUpdate==="tool_call"){let l={toolCallId:e.toolCallId,title:e.title,status:e.status,kind:e.kind,content:e.content,rawInput:e.rawInput,locations:e.locations};this.updateState({tools:[...this.state.tools,l]});let i=this.state.feed.map(r=>r.kind==="message"&&!r.message.completed?{...r,message:{...r.message,completed:!0}}:r);this.updateState({feed:i}),this.appendFeed({kind:"tool",toolCallId:l.toolCallId,time:dn()});return}if(e.sessionUpdate==="tool_call_update"){let l=this.state.tools.map(i=>i.toolCallId===e.toolCallId?{...i,...e.title?{title:e.title}:{},...e.status?{status:e.status}:{},...e.kind?{kind:e.kind}:{},...e.content?{content:e.content}:{}}:i);this.updateState({tools:l});return}}};function XC(){return{maxRetries:3,backoffMs:1e3}}var Rs=class{constructor(e,n){this.handler=e;this.retryPolicy=n?.retryPolicy??XC(),this.onChange=n?.onChange}queue=[];running=null;lastError=null;lastFailed=null;retryTimer=null;retryPolicy;onChange;enqueue(e){let n={id:`${Date.now()}_${Math.random().toString(16).slice(2)}`,prompt:e,attempts:0};return this.queue.push(n),this.emit(),this.runNext(),n}clear(){this.queue=[],this.lastError=null,this.lastFailed=null,this.retryTimer!==null&&(clearTimeout(this.retryTimer),this.retryTimer=null),this.emit()}retryLastFailed(){if(!this.lastFailed)return;let e={...this.lastFailed,attempts:0};this.lastFailed=null,this.queue.unshift(e),this.emit(),this.runNext()}getSnapshot(){return{queuedCount:this.queue.length,running:!!this.running,lastError:this.lastError,lastFailed:this.lastFailed}}emit(){this.onChange?.(this.getSnapshot())}async runNext(){if(this.running||this.retryTimer!==null)return;let e=this.queue.shift();if(!e){this.emit();return}this.running=e,this.emit();try{await this.handler(e.prompt),this.running=null,this.lastError=null,this.emit(),this.runNext()}catch(n){if(this.running=null,this.lastError=n instanceof Error?n.message:String(n),e.attempts+=1,e.attempts<=this.retryPolicy.maxRetries){this.retryTimer=window.setTimeout(()=>{this.retryTimer=null,this.queue.unshift(e),this.emit(),this.runNext()},this.retryPolicy.backoffMs),this.emit();return}this.lastFailed={...e},this.emit()}}};function GC(t){let e=t.startsWith("http")?t:`${window.location.protocol}//${window.location.host}${t}`,n=new URL(e);return n.protocol=n.protocol==="https:"?"wss:":"ws:",n.pathname=n.pathname.replace(/\/$/,""),n.hash="",n.search="",n.toString()}function ZC(t,e){return`${t}/ws/${encodeURIComponent(e)}`}function Fb(t,e){let n=(0,Me.useMemo)(()=>GC(e),[e]),l=(0,Me.useRef)(new Map),[i,r]=(0,Me.useState)({}),a=(0,Me.useCallback)(p=>{let g={endpoint:p.endpoint,connection:p.clientState.connection,statusText:p.clientState.statusText,feed:p.clientState.feed,tools:p.clientState.tools,isBusy:p.clientState.isBusy,queuedCount:p.schedulerState.queuedCount,lastError:p.schedulerState.lastError,lastFailed:p.schedulerState.lastFailed?{prompt:p.schedulerState.lastFailed.prompt,attempts:p.schedulerState.lastFailed.attempts}:null,lastActivityAt:p.clientState.lastActivityAt};r(v=>({...v,[p.endpoint.id]:g}))},[]);(0,Me.useEffect)(()=>{let p=l.current,g=new Set(t.map(v=>v.id));for(let v of t){let k=p.get(v.id);if(k){k.endpoint=v,a(k);continue}let d=ZC(n,v.id),h=new Cs(d,E=>{let M=p.get(v.id);M&&(M.clientState=E,a(M))}),y=new Rs(async E=>h.sendPrompt(E),{retryPolicy:{maxRetries:3,backoffMs:1e3},onChange:E=>{let M=p.get(v.id);M&&(M.schedulerState=E,a(M))}}),T=h.getState(),C={endpoint:v,client:h,scheduler:y,clientState:T,schedulerState:y.getSnapshot()};p.set(v.id,C),h.connect(),a(C)}for(let[v,k]of p.entries())g.has(v)||(k.client.dispose(),p.delete(v),r(d=>{let h={...d};return delete h[v],h}))},[t,a,n]);let o=(0,Me.useCallback)((p,g)=>{let v=g.length>0?g:t.map(k=>k.id);for(let k of v){let d=l.current.get(k);d&&d.scheduler.enqueue(p)}},[t]),u=(0,Me.useCallback)(p=>{let g=l.current.get(p);g&&(g.scheduler.clear(),g.client.cancel(),a(g))},[a]),s=(0,Me.useCallback)(p=>{let g=l.current.get(p);g&&(g.scheduler.clear(),g.client.cancel(),g.client.forceRefresh(),a(g))},[a]),c=(0,Me.useCallback)(p=>{let g=l.current.get(p);g&&(g.scheduler.retryLastFailed(),a(g))},[a]),f=(0,Me.useCallback)((p,g)=>{let v=l.current.get(p);v&&v.scheduler.enqueue(g)},[]),m=(0,Me.useMemo)(()=>t.map(p=>i[p.id]).filter(Boolean),[t,i]);return{stateById:i,ordered:m,broadcastPrompt:o,forceCancel:u,forceRefresh:s,retryEndpoint:c,sendToEndpoint:f}}var Qb=q($t(),1);var ne=q($(),1);var Xb=({open:t,onClose:e,state:n,onSendPrompt:l,onForceCancel:i,onForceRefresh:r,onRetry:a,onOpenDiff:o})=>{let[u,s]=(0,Qb.useState)("");if(!t)return null;let c=()=>{if(n.connection!=="connected")return;let p=u.trim();p&&(l(n.endpoint.id,p),s(""))},f=p=>{p.key==="Enter"&&p.ctrlKey&&(p.preventDefault(),c())},m=n.connection==="connected"?n.isBusy?"busy":"idle":"disconnected";return(0,ne.jsx)(Ae,{onClose:e,children:(0,ne.jsx)(Ce,{title:n.endpoint.name,onClose:e,footer:null,children:(0,ne.jsxs)("div",{className:"cp-modal-body",style:{height:"80vh",display:"flex",flexDirection:"column",padding:0},children:[(0,ne.jsxs)("div",{className:"cp-task-header",style:{borderBottom:"1px solid var(--border)",padding:"12px"},children:[(0,ne.jsxs)("div",{children:[(0,ne.jsx)("div",{className:"cp-task-url",children:n.endpoint.baseUrl}),(0,ne.jsxs)("div",{className:"cp-task-meta",style:{flexDirection:"row",gap:12,marginTop:4},children:[(0,ne.jsx)("span",{className:`cp-conn ${n.connection}`,children:m}),(0,ne.jsxs)("span",{className:"cp-queue",children:["queue ",n.queuedCount]})]})]}),(0,ne.jsxs)("div",{className:"cp-task-actions",style:{flexDirection:"row"},children:[(0,ne.jsx)("button",{className:"btn danger",onClick:()=>i(n.endpoint.id),children:"Cancel"}),(0,ne.jsx)("button",{className:"btn",onClick:()=>r(n.endpoint.id),children:"Refresh"}),n.lastFailed&&(0,ne.jsx)("button",{className:"btn",onClick:()=>a(n.endpoint.id),children:"Retry"})]})]}),n.lastError&&(0,ne.jsxs)("div",{className:"cp-task-error",children:["Last error: ",n.lastError]}),(0,ne.jsx)("div",{style:{flex:1,overflow:"hidden",display:"flex",flexDirection:"column"},children:(0,ne.jsx)(As,{feed:n.feed,tools:n.tools,onOpenDiff:o})}),(0,ne.jsx)("div",{className:"cp-task-input",children:(0,ne.jsx)(Ur,{value:u,textareaClassName:"cp-task-textarea",placeholder:"Send prompt...",onChange:p=>s(p.target.value),onKeyDown:f,onSubmit:c,submitClassName:"btn primary",submitDisabled:!u.trim()||n.connection!=="connected",submitLabel:"Send"})})]})})})};var F=q($(),1);var Qm=8,Gb=({config:t})=>{let e=N1(t),n=(0,bt.useMemo)(()=>Lb(e),[e]),[l,i]=(0,bt.useState)([]),[r,a]=(0,bt.useState)({}),[o,u]=(0,bt.useState)(!1),[s,c]=(0,bt.useState)(null),[f,m]=(0,bt.useState)(""),[p,g]=(0,bt.useState)("all"),[v,k]=(0,bt.useState)(1),[d,h]=(0,bt.useState)(!1),[y,T]=(0,bt.useState)(null),[C,E]=(0,bt.useState)(new Set),[M,N]=(0,bt.useState)(""),[L,S]=(0,bt.useState)(null),[et,K]=(0,bt.useState)(!1),[I,Z]=(0,bt.useState)(!1),[J,dt]=(0,bt.useState)(!1),[xt,It]=(0,bt.useState)(null),{ordered:le,broadcastPrompt:b,forceCancel:Wt,forceRefresh:qt,retryEndpoint:x,sendToEndpoint:zt}=Fb(l,e),U=(0,bt.useMemo)(()=>xt?le.find(B=>B.endpoint.id===xt):null,[xt,le]),Y=(0,bt.useCallback)(async()=>{u(!0),c(null);try{let B=await n.list();i(B)}catch(B){c(B instanceof Error?B.message:"Failed to load endpoints")}finally{u(!1)}},[n]);(0,bt.useEffect)(()=>{Y()},[Y]);let H=(0,bt.useMemo)(()=>{let B=f.trim().toLowerCase();return l.filter(St=>{if(B&&!`${St.name} ${St.baseUrl} ${St.tags.join(" ")}`.toLowerCase().includes(B))return!1;if(p==="all")return!0;let kt=r[St.id];return kt?p==="healthy"?kt.ok:!kt.ok:!1})},[l,f,p,r]),_=Math.max(1,Math.ceil(H.length/Qm));(0,bt.useEffect)(()=>{v>_&&k(_)},[v,_]),(0,bt.useEffect)(()=>{E(B=>{let St=new Set;for(let kt of B)l.some(w=>w.id===kt)&&St.add(kt);return St})},[l]);let W=(0,bt.useMemo)(()=>{let B=(v-1)*Qm;return H.slice(B,B+Qm)},[H,v]),ft=B=>{T(B),h(!0)},ie=async B=>{if(y){let kt=await n.update(y.id,B);i(w=>w.map(z=>z.id===kt.id?kt:z)),T(kt);return}let St=await n.create(B);i(kt=>[...kt,St])},Yt=async B=>{window.confirm(`Delete endpoint "${B.name}"?`)&&(await n.remove(B.id),i(kt=>kt.filter(w=>w.id!==B.id)),a(kt=>{let w={...kt};return delete w[B.id],w}))},hn=async B=>{a(St=>({...St,[B.id]:null}));try{let St=await n.health(B.id);a(kt=>({...kt,[B.id]:St}))}catch(St){a(kt=>({...kt,[B.id]:{ok:!1,error:St instanceof Error?St.message:"Health check failed",durationMs:0}}))}},ce=(B,St)=>{E(kt=>{let w=new Set(kt);return St?w.add(B):w.delete(B),w})},kn=()=>{E(new Set(l.map(B=>B.id)))},Ql=()=>{E(new Set)},Xl=()=>{let B=M.trim();if(!B)return;let St=C.size>0?Array.from(C):[];b(B,St),N("")},En=B=>{B.key==="Enter"&&B.ctrlKey&&(B.preventDefault(),Xl())},Tn=async B=>{for(let St of B)await n.create(St);await Y()},wn=(0,bt.useCallback)(async()=>await n.getRawRegistryJson(),[n]),Gl=(0,bt.useCallback)(async B=>{await n.saveRawRegistryJson(B),await Y()},[n,Y]),Ni=(0,bt.useCallback)((B,St)=>{E(kt=>{let w=new Set(kt);return St?w.add(B):w.delete(B),w})},[]);return(0,F.jsxs)("div",{className:"app control-plane",children:[(0,F.jsxs)("div",{className:"cp-main",children:[(0,F.jsxs)("div",{className:"cp-header",children:[(0,F.jsxs)("div",{children:[(0,F.jsx)("h1",{children:"Control Plane"}),(0,F.jsxs)("div",{className:"cp-subtitle",children:[l.length," endpoints registered"]})]}),(0,F.jsx)("div",{className:"cp-header-actions",children:(0,F.jsxs)("button",{className:"btn",onClick:()=>K(!et),children:[et?"Hide":"Show"," Endpoints"]})})]}),(0,F.jsxs)("div",{className:"cp-broadcast",children:[(0,F.jsxs)("div",{className:"cp-broadcast-header",children:[(0,F.jsxs)("div",{children:[(0,F.jsx)("div",{className:"cp-broadcast-title",children:"Broadcast prompt"}),(0,F.jsx)("div",{className:"cp-broadcast-subtitle",children:C.size>0?`Selected ${C.size} endpoints`:"No selection \u2014 will broadcast to all"})]}),(0,F.jsxs)("div",{className:"cp-broadcast-actions",children:[(0,F.jsx)("button",{className:"btn",onClick:kn,children:"Select all"}),(0,F.jsx)("button",{className:"btn",onClick:Ql,children:"Clear"})]})]}),(0,F.jsx)("textarea",{className:"cp-textarea",placeholder:"Type a prompt to broadcast... (Ctrl+Enter to send)",value:M,onChange:B=>N(B.target.value),onKeyDown:En}),(0,F.jsx)("div",{className:"cp-broadcast-footer",children:(0,F.jsx)("button",{className:"btn primary",onClick:Xl,disabled:!M.trim()||l.length===0,children:"Broadcast"})})]}),(0,F.jsxs)("div",{className:"cp-workers",children:[(0,F.jsx)("div",{className:"cp-workers-header",children:"Workers"}),le.length===0?(0,F.jsx)("div",{className:"cp-empty",children:"No workers yet. Add endpoints from the right panel."}):(0,F.jsx)("div",{className:"cp-worker-grid",children:le.map(B=>(0,F.jsx)(Ib,{state:B,selected:C.has(B.endpoint.id),onSelect:Ni,onClick:It,onForceCancel:Wt,onForceRefresh:qt,onRetry:x,onSendPrompt:zt,onOpenDiff:S},B.endpoint.id))})]})]}),et?(0,F.jsx)("div",{className:"cp-drawer-backdrop",onClick:()=>K(!1)}):null,(0,F.jsxs)("div",{className:`cp-drawer ${et?"open":""}`,children:[(0,F.jsxs)("div",{className:"cp-drawer-header",children:[(0,F.jsx)("h2",{children:"Endpoints"}),(0,F.jsxs)("div",{style:{display:"flex",gap:8,flexWrap:"wrap"},children:[(0,F.jsx)("button",{className:"btn",onClick:()=>K(!1),children:"Close"}),(0,F.jsx)("button",{className:"btn",onClick:()=>Z(!0),children:"Batch add"}),(0,F.jsx)("button",{className:"btn",onClick:()=>dt(!0),children:"Edit JSON"}),(0,F.jsx)("button",{className:"btn primary",onClick:()=>ft(null),children:"Add"})]})]}),(0,F.jsxs)("div",{className:"cp-drawer-toolbar",children:[(0,F.jsx)("input",{className:"cp-input",placeholder:"Search...",value:f,onChange:B=>m(B.target.value)}),(0,F.jsxs)("select",{className:"cp-select",value:p,onChange:B=>g(B.target.value),children:[(0,F.jsx)("option",{value:"all",children:"All"}),(0,F.jsx)("option",{value:"healthy",children:"Healthy"}),(0,F.jsx)("option",{value:"unhealthy",children:"Unhealthy"})]}),(0,F.jsx)("button",{className:"btn",onClick:()=>void Y(),children:"Refresh"})]}),s?(0,F.jsx)("div",{className:"cp-error",children:s}):null,o?(0,F.jsx)("div",{className:"cp-loading",children:"Loading..."}):null,(0,F.jsx)("div",{className:"cp-drawer-content",children:(0,F.jsx)(qb,{endpoints:W,healthById:r,onEdit:ft,onDelete:Yt,onRefreshHealth:hn,selectedIds:C,onToggleSelect:ce})}),(0,F.jsxs)("div",{className:"cp-pagination",children:[(0,F.jsxs)("div",{className:"cp-page-info",children:[W.length," / ",H.length]}),(0,F.jsxs)("div",{className:"cp-page-controls",children:[(0,F.jsx)("button",{className:"btn",onClick:()=>k(B=>Math.max(1,B-1)),disabled:v<=1,children:"Prev"}),(0,F.jsxs)("span",{className:"cp-page-number",children:[v," / ",_]}),(0,F.jsx)("button",{className:"btn",onClick:()=>k(B=>Math.min(_,B+1)),disabled:v>=_,children:"Next"})]})]})]}),(0,F.jsx)(Ub,{open:d,endpoint:y,onClose:()=>h(!1),onSave:ie}),(0,F.jsx)(Hb,{open:I,onClose:()=>Z(!1),onSubmit:Tn}),(0,F.jsx)(Yb,{open:J,onClose:()=>dt(!1),onLoad:wn,onSave:Gl}),U?(0,F.jsx)(Xb,{open:!!U,onClose:()=>It(null),state:U,onSendPrompt:zt,onForceCancel:Wt,onForceRefresh:qt,onRetry:x,onOpenDiff:S}):null,L?(0,F.jsx)(Br,{title:L.title,oldText:L.oldText,newText:L.newText,onClose:()=>S(null)}):null]})};var ht=q($(),1);function KC(t){return t?t.split("|").map(e=>e.trim()).filter(e=>e.length>0):[]}function PC(t){let e=[],n=/(^|\s)@([^\s]+)/g,l;for(;(l=n.exec(t))!==null;){let r=(l[2]??"").replace(/[),.;:!?]+$/g,"");r.length>0&&e.push(r)}return Array.from(new Set(e))}function JC(t){return t.kind==="tool"}function WC(t){return t.kind==="message"}var $C=({config:t})=>{let{connection:e,auth:n,availableCommands:l,planEntries:i,feed:r,tools:a,connect:o,sendPrompt:u,suggestPaths:s,completeSlashCommand:c,authenticate:f,statusText:m,permissionReq:p,resolvePermission:g,inputReq:v,resolveInput:k,isBusy:d,cancel:h}=Ob({cwd:t.cwd??"",wsPath:t.wsPath??"/ws",yolo:!!t.yolo}),[y,T]=(0,gt.useState)(!1),C=(0,gt.useRef)(null);gt.default.useEffect(()=>(C.current&&clearTimeout(C.current),d?(T(!1),C.current=setTimeout(()=>{T(!0)},500)):T(!1),()=>{C.current&&clearTimeout(C.current)}),[d,r,a]);let[E,M]=(0,gt.useState)(null),N=(0,gt.useRef)(null),[L,S]=(0,gt.useState)("");Nb(N,[L]);let[et,K]=(0,gt.useState)([]),I=A=>{A.preventDefault();let j=A.dataTransfer;if(j.files&&j.files.length>0){let X=Array.from(j.files).map(it=>({id:`file-${Date.now()}-${Math.random().toString(36).slice(2)}`,type:"file",label:it.name,uri:it.name}));K(it=>[...it,...X]);return}let V=j.getData("text");if(V){let X=/^https?:\/\//.test(V);K(it=>[...it,{id:`ref-${Date.now()}-${Math.random().toString(36).slice(2)}`,type:X?"link":"default",label:V.length>30?V.slice(0,30)+"...":V,uri:V}])}},Z=A=>{K(j=>j.filter(V=>V.id!==A))},[J,dt]=(0,gt.useState)(!1),[xt,It]=(0,gt.useState)(0),[le,b]=(0,gt.useState)(!1),[Wt,qt]=(0,gt.useState)(0),[x,zt]=(0,gt.useState)([]),U=(0,gt.useRef)(0),Y=(0,gt.useMemo)(()=>{let A=L.trimStart();if(!A.startsWith("/"))return[];let j=A.slice(1),V=/\s$/.test(j),X=j.split(/\s+/).filter(Et=>Et.length>0),it=X,De="";if(!V&&X.length>0&&(De=X[X.length-1]??"",it=X.slice(0,-1)),it.length===0){let Et=De;return(l??[]).filter(re=>re&&re.name&&re.name.startsWith(Et)).slice(0,10)}if(it.length===1){let Et=it[0]??"",re=(l??[]).find(Zl=>Zl.name===Et),ye=KC(re?.input?.hint??null);if(ye.length===0)return[];let Be=De;return ye.filter(Zl=>Zl.startsWith(Be)).slice(0,10).map(Zl=>({name:`${Et} ${Zl}`,description:re?.description??""}))}return[]},[l,L]),[H,_]=(0,gt.useState)(!1),[W,ft]=(0,gt.useState)(0),[ie,Yt]=(0,gt.useState)([]),[hn,ce]=(0,gt.useState)(null),kn=(0,gt.useRef)(null),Ql=(0,gt.useRef)(0),Xl=(A,j)=>{let V=A.slice(0,j),X=V.lastIndexOf("@");if(X<0||X>0&&!/\s/.test(V[X-1]??""))return null;let it=V.slice(X+1);return/\s/.test(it)?null:{start:X,end:j,query:it}},En=H&&ie.length>0,Tn=le&&x.length>0&&!En,wn=J&&Y.length>0&&!En&&!Tn;gt.default.useEffect(()=>{let A=L.trimStart();if(!A.startsWith("/")){b(!1),zt(Be=>Be.length===0?Be:[]),qt(0);return}let j=A.slice(1),V=/\s$/.test(j),X=j.split(/\s+/).filter(Be=>Be.length>0);if(X.length<2){b(!1),zt(Be=>Be.length===0?Be:[]),qt(0);return}let it=X.slice(2),De=it.length===0&&V,Et=it.length===1&&!V;if(!De&&!Et){b(!1),zt(Be=>Be.length===0?Be:[]),qt(0);return}let re=++U.current,ye=setTimeout(()=>{(async()=>{let Be=await c(A,10);if(re!==U.current)return;let Zl=V?it:it.slice(0,-1),Wb=[...X.slice(0,2),...Zl].join(" ").trim(),Gm=Be.map($b=>({name:`${Wb} ${$b}`.trim(),description:""}));zt(Gm),qt(0),b(Gm.length>0)})()},120);return()=>clearTimeout(ye)},[c,L]),gt.default.useEffect(()=>{if(!H||hn===null)return;let A=++Ql.current,j=setTimeout(()=>{(async()=>{let V=await s(hn,10);A===Ql.current&&(Yt(V),ft(0))})()},120);return()=>clearTimeout(j)},[hn,H,s]);let Gl=A=>{let j=Y[A];if(!j)return;let V=L.match(/^\s*/)?.[0]??"";S(`${V}/${j.name} `),dt(!1),It(0),setTimeout(()=>N.current?.focus(),0)},Ni=A=>{let j=x[A];if(!j)return;let V=L.match(/^\s*/)?.[0]??"";S(`${V}/${j.name} `),b(!1),qt(0),setTimeout(()=>N.current?.focus(),0)},B=A=>{let j=ie[A],V=kn.current;if(!j||!V)return;let X=L.slice(0,V.start),it=L.slice(V.end),De=`@${j} `,Et=`${X}${De}${it}`;S(Et),_(!1),Yt([]),ft(0),ce(null),kn.current=null,setTimeout(()=>{let re=N.current;if(!re)return;re.focus();let ye=X.length+De.length;re.setSelectionRange(ye,ye)},0)},St=async()=>{let A=L.trim();if(!A&&et.length===0)return;let j=[],X=A||(et.length>0?"Attached references.":"");if(et.length>0){let it=et.map(Et=>`[${Et.label}](${Et.uri})`).join(" ");et.some(Et=>Et.type!=="file")&&(X=`${X}
|
|
53
|
+
`),[t.completed,t.text,t.type]);return(0,An.jsx)(An.Fragment,{children:t.type==="thought"?(0,An.jsxs)("details",{className:`think${t.completed?"":" active"}`,open:!t.completed,children:[(0,An.jsx)("summary",{children:"Thinking"}),(0,An.jsx)("div",{className:"think-body",children:(0,An.jsx)("pre",{className:"think-content",children:t.completed?t.text:e})})]}):(0,An.jsx)("div",{className:t.role==="user"?"user-message":"assistant-message",children:(0,An.jsx)(mo,{text:t.text,enableThinkTags:!0})})})}var ho=I(tt(),1);function RC(t){return t.startsWith("+")?"add":t.startsWith("-")?"del":t.startsWith("@@")?"hunk":t.startsWith("---")||t.startsWith("+++")?"meta":""}function Cs({oldText:t,newText:e,maxLines:n=80}){let i=t?String(t).split(`
|
|
54
|
+
`):[],l=e?String(e).split(`
|
|
55
|
+
`):[],r=Math.min(Math.max(i.length,l.length),n);if(r===0)return null;let a=[];a.push("--- old"),a.push("+++ new");for(let o=0;o<r;o++){let u=i[o]??"",s=l[o]??"";u===s?a.push(` ${u}`):(u!==""&&a.push(`-${u}`),s!==""&&a.push(`+${s}`))}return(0,ho.jsx)("div",{className:"diff",children:(0,ho.jsx)("pre",{children:a.slice(0,n).map((o,u)=>(0,ho.jsxs)("span",{className:RC(o),children:[o,`
|
|
56
|
+
`]},u))})})}var ft=I(tt(),1);function NC(t){if(!t)return null;for(let e of t)if(e&&e.type==="diff")return e;return null}function MC(t){return typeof t=="object"&&t!==null}function DC(t){return typeof t.title=="string"&&t.title.startsWith("Execute Unity ")}function zC(t){let e=t.rawInput;return MC(e)?typeof e.agent_name=="string"&&typeof e.task=="string":!1}function R0(t){if(!t)return!1;for(let e of t)if(e){if(e.type==="diff")return!0;if(e.type==="content"&&e.content?.type==="text"){let n=(e.content.text??"").trim();if(n.length>0){if(n.startsWith("Listed ")&&n.includes("item(s)"))continue;return!0}}}return!1}function _C({raw:t}){let e=Object.entries(t).filter(([n])=>n!=="agent_name"&&n!=="task").map(([n,i])=>typeof i=="string"&&i.length>100?`${n}: ${i.slice(0,100)}...`:`${n}: ${JSON.stringify(i)}`);return e.length===0?null:(0,ft.jsx)("div",{className:"subagent-params",children:e.map((n,i)=>(0,ft.jsx)("div",{className:"subagent-param",children:n},i))})}function Rs({tool:t,onOpenDiff:e}){let n=NC(t.content),i=zC(t);if(!R0(t.content)&&!DC(t)&&!i)return(0,ft.jsxs)("div",{className:"tool-compact",children:[(0,ft.jsx)("span",{className:"tool-compact-arrow",children:"\u2192"}),(0,ft.jsx)("span",{className:"tool-compact-kind",children:t.kind??"other"}),(0,ft.jsx)("span",{className:"tool-compact-title",children:t.title||"Tool call"}),(0,ft.jsx)("span",{className:"tool-compact-status",children:t.status??"pending"})]});if(i){let r=t.rawInput,a=r.agent_name||"agent",o=r.task||"",u=t.status==="pending"||t.status==="in_progress";return(0,ft.jsxs)("div",{className:"tool-card subagent-card",children:[(0,ft.jsxs)("div",{className:`subagent-header ${u?"running":""}`,children:[(0,ft.jsxs)("div",{className:"subagent-title",children:[(0,ft.jsx)("span",{className:"subagent-label",children:"subagent"}),(0,ft.jsx)("span",{className:"subagent-name",children:a})]}),(0,ft.jsxs)("div",{className:"subagent-status-wrap",children:[u&&(0,ft.jsx)("div",{className:"subagent-spinner"}),(0,ft.jsx)("span",{className:"subagent-status",children:t.status??"pending"})]})]}),(0,ft.jsxs)("div",{className:"subagent-task",children:[(0,ft.jsx)("div",{className:"subagent-task-label",children:"Task:"}),(0,ft.jsx)("div",{className:"subagent-task-text",children:o})]}),r&&(0,ft.jsx)(_C,{raw:r}),R0(t.content)&&(0,ft.jsx)("div",{className:"subagent-result",children:(t.content??[]).map((s,c)=>s&&s.type==="content"&&s.content?.type==="text"?(0,ft.jsx)(mo,{text:s.content.text??"",enableThinkTags:!0},c):null)})]})}return(0,ft.jsxs)("div",{className:"tool-card",children:[(0,ft.jsxs)("div",{className:"tool-card-header",children:[(0,ft.jsxs)("div",{className:"tool-card-title",children:[(0,ft.jsx)("span",{className:"tool-kind",children:t.kind??"other"}),(0,ft.jsx)("span",{children:t.title||"Tool call"})]}),(0,ft.jsx)("span",{className:"tool-status",children:t.status??"pending"})]}),(0,ft.jsxs)("div",{className:"tool-card-body",children:[(t.content??[]).map((r,a)=>r?r.type==="content"&&r.content?.type==="text"?(0,ft.jsx)(mo,{text:r.content.text??"",enableThinkTags:!0},a):r.type==="diff"?(0,ft.jsxs)("div",{children:[(0,ft.jsxs)("div",{style:{display:"flex",gap:10,alignItems:"center",flexWrap:"wrap",marginBottom:8},children:[(0,ft.jsx)("div",{className:"pill",children:(0,ft.jsx)("span",{children:`Diff: ${r.path}`})}),(0,ft.jsx)("button",{className:"btn",onClick:()=>e({title:r.path,oldText:r.oldText??"",newText:r.newText??""}),children:"Open diff"})]}),(0,ft.jsx)(Cs,{oldText:r.oldText??"",newText:r.newText})]},a):null:null),null]})]})}var Gi=I(tt(),1);function Gd({items:t,activeIndex:e,onPick:n,onHover:i}){return!t||t.length===0?null:(0,Gi.jsxs)("div",{className:"autocomplete",children:[(0,Gi.jsx)("div",{className:"ac-header",children:"Commands"}),t.map((l,r)=>(0,Gi.jsxs)("div",{className:`ac-item${r===e?" active":""}`,onMouseEnter:()=>i(r),onMouseDown:a=>{a.preventDefault(),n(r)},children:[(0,Gi.jsx)("div",{className:"ac-name",children:(0,Gi.jsx)("code",{children:`/${l.name}`})}),(0,Gi.jsx)("div",{className:"ac-desc",children:l.description})]},l.name))]})}var Dl=I(tt(),1);function N0({items:t,activeIndex:e,onPick:n,onHover:i}){return!t||t.length===0?null:(0,Dl.jsxs)("div",{className:"autocomplete",children:[(0,Dl.jsx)("div",{className:"ac-header",children:"Paths"}),t.map((l,r)=>(0,Dl.jsx)("div",{className:`ac-item${r===e?" active":""}`,onMouseEnter:()=>i(r),onMouseDown:a=>{a.preventDefault(),n(r)},children:(0,Dl.jsx)("div",{className:"ac-name",children:(0,Dl.jsx)("code",{children:`@${l}`})})},`${l}_${r}`))]})}var Cn=I(tt(),1);var Zi=({textareaRef:t,value:e,placeholder:n,onChange:i,onKeyDown:l,onSubmit:r,onCancel:a,isBusy:o=!1,textareaClassName:u,submitClassName:s="composer-submit",submitDisabled:c=!1,submitLabel:f,busyLabel:d})=>(0,Cn.jsxs)(Cn.Fragment,{children:[(0,Cn.jsx)("textarea",{ref:t,className:u,value:e,placeholder:n,onChange:i,onKeyDown:l}),(0,Cn.jsx)("button",{type:"button",className:`${s}${o?" busy":""}`,onClick:()=>{if(o){a?.();return}r()},title:o?"Stop":"Send",disabled:c,children:o?d??(0,Cn.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"currentColor",children:(0,Cn.jsx)("rect",{x:"6",y:"6",width:"12",height:"12",rx:"2"})}):f||(0,Cn.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round",children:(0,Cn.jsx)("path",{d:"M12 19V5M5 12l7-7 7 7"})})})]});var Ns=I(le(),1);var M0=I(Gs(),1),Ki=I(tt(),1);function De({children:t,onClose:e}){return(0,M0.createPortal)((0,Ki.jsx)("div",{className:"modal-backdrop",role:"presentation",onMouseDown:i=>{i.target===i.currentTarget&&e()},children:t}),document.body)}function ze({title:t,onClose:e,children:n,footer:i}){return(0,Ki.jsxs)("div",{className:"modal",role:"dialog","aria-modal":"true",children:[(0,Ki.jsxs)("div",{className:"modal-header",children:[(0,Ki.jsx)("h2",{children:t}),(0,Ki.jsx)("button",{className:"btn",onClick:e,children:"Close"})]}),n,i?(0,Ki.jsx)("div",{className:"modal-footer",children:i}):null]})}var _e=I(tt(),1);function Ir({title:t,oldText:e,newText:n,onClose:i,onConfirm:l}){let[r,a]=(0,Ns.useState)(n),o=(0,Ns.useMemo)(()=>typeof l=="function",[l]);return(0,_e.jsx)(De,{onClose:i,children:(0,_e.jsx)(ze,{title:t?`Review change \xB7 ${t}`:"Review change",onClose:i,footer:(0,_e.jsxs)(_e.Fragment,{children:[(0,_e.jsx)("button",{className:"btn",onClick:i,children:"Cancel"}),o?(0,_e.jsx)("button",{className:"btn primary",onClick:()=>l?.(r),children:"Use this version"}):null]}),children:(0,_e.jsxs)("div",{className:"modal-body",children:[(0,_e.jsxs)("div",{className:"modal-pane",children:[(0,_e.jsx)("div",{className:"pane-title",children:"Current (read-only)"}),(0,_e.jsx)("textarea",{readOnly:!0,value:e})]}),(0,_e.jsxs)("div",{className:"modal-pane",children:[(0,_e.jsx)("div",{className:"pane-title",children:"Proposed (editable)"}),(0,_e.jsx)("textarea",{value:r,onChange:u=>a(u.target.value)})]})]})})})}var go=I(le(),1);var jt=I(tt(),1);function OC(t){return t.kind==="allow_once"||t.kind==="allow_always"}function LC(t){return t.kind==="reject_once"||t.kind==="reject_always"}function D0({req:t,onSelect:e}){let[n,i]=(0,go.useState)(()=>{let o=t.toolCall?.content??[];for(let u of o)if(u&&u.type==="diff")return{title:u.path,oldText:u.oldText??"",newText:u.newText??""};return null}),[l,r]=(0,go.useState)(!1),a=(0,go.useMemo)(()=>n?{codely:{toolConfirmationPayload:{newContent:n.newText}}}:null,[n]);return(0,jt.jsxs)(jt.Fragment,{children:[(0,jt.jsx)(De,{onClose:()=>{e({outcome:"cancelled"})},children:(0,jt.jsx)(ze,{title:`Approval required \xB7 ${t.toolCall?.title??"Tool call"}`,onClose:()=>e({outcome:"cancelled"}),footer:(0,jt.jsx)("button",{className:"btn",onClick:()=>e({outcome:"cancelled"}),children:"Cancel"}),children:(0,jt.jsx)("div",{className:"modal-body",style:{gridTemplateColumns:"1fr"},children:(0,jt.jsxs)("div",{className:"modal-pane",children:[(0,jt.jsx)("div",{className:"pane-title",children:"Details"}),(0,jt.jsxs)("div",{style:{padding:"10px 12px",display:"flex",flexDirection:"column",gap:10},children:[(0,jt.jsxs)("div",{className:"pill",children:[(0,jt.jsx)("span",{children:`Kind: ${t.toolCall?.kind??"other"}`}),(0,jt.jsx)("span",{style:{marginLeft:10},children:`Status: ${t.toolCall?.status??"pending"}`})]}),n?(0,jt.jsxs)("div",{style:{display:"flex",gap:10,flexWrap:"wrap",alignItems:"center"},children:[(0,jt.jsx)("div",{className:"pill",children:(0,jt.jsx)("span",{children:`File: ${n.title}`})}),(0,jt.jsx)("button",{className:"btn",onClick:()=>r(!0),children:"Edit diff\u2026"})]}):null,n?(0,jt.jsx)(Cs,{oldText:n.oldText,newText:n.newText}):null,(0,jt.jsx)("div",{className:"section-title",children:"Options"}),(0,jt.jsx)("div",{style:{display:"flex",flexWrap:"wrap",gap:10},children:(t.options??[]).map(o=>(0,jt.jsx)("button",{className:LC(o)?"btn danger":o.kind==="allow_always"?"btn primary":"btn",onClick:()=>{e({outcome:"selected",optionId:o.optionId,meta:OC(o)?a??void 0:void 0})},children:o.name||o.optionId},o.optionId))})]})]})})})}),l&&n?(0,jt.jsx)(Ir,{title:n.title,oldText:n.oldText,newText:n.newText,onClose:()=>r(!1),onConfirm:o=>{i({...n,newText:o}),r(!1)}}):null]})}var z0=I(le(),1);var on=I(tt(),1);function _0({params:t,onDone:e}){let[n,i]=(0,z0.useState)(t.defaultValue??"");return(0,on.jsx)(De,{onClose:()=>e({outcome:"cancelled"}),children:(0,on.jsx)(ze,{title:t.title||"Input required",onClose:()=>e({outcome:"cancelled"}),footer:(0,on.jsxs)(on.Fragment,{children:[(0,on.jsx)("button",{className:"btn",onClick:()=>e({outcome:"cancelled"}),children:"Cancel"}),(0,on.jsx)("button",{className:"btn primary",onClick:()=>e({outcome:"submitted",text:n}),children:"Submit"})]}),children:(0,on.jsx)("div",{className:"modal-body",style:{gridTemplateColumns:"1fr"},children:(0,on.jsxs)("div",{className:"modal-pane",children:[(0,on.jsx)("div",{className:"pane-title",children:t.prompt||"Please provide input:"}),(0,on.jsx)("textarea",{value:n,onChange:l=>i(l.target.value),style:{minHeight:140}})]})})})})}var jn=I(tt(),1);function O0({methods:t,onPick:e,onClose:n}){return(0,jn.jsx)(De,{onClose:n,children:(0,jn.jsx)(ze,{title:"Authenticate",onClose:n,footer:(0,jn.jsx)("button",{className:"btn",onClick:n,children:"Cancel"}),children:(0,jn.jsx)("div",{className:"modal-body",style:{gridTemplateColumns:"1fr"},children:(0,jn.jsxs)("div",{className:"modal-pane",children:[(0,jn.jsx)("div",{className:"pane-title",children:"Choose an auth method (stored by the CLI)"}),(0,jn.jsx)("div",{style:{padding:"10px 12px",display:"flex",flexDirection:"column",gap:10},children:t.map(i=>(0,jn.jsx)("button",{className:"btn primary",onClick:()=>e(i),children:i.name||i.id},i.id))})]})})})})}var L0=I(le(),1);function B0(t,e=[]){(0,L0.useLayoutEffect)(()=>{let n=t.current;n&&(n.style.height="auto",n.style.height=`${Math.min(n.scrollHeight,180)}px`)},[t,...e])}var ht=I(le(),1);var jr=class{constructor(e){this.ws=e}nextId=0;pending=new Map;handlers=new Map;on(e,n){this.handlers.set(e,n)}request(e,n){let i=this.nextId++,l={jsonrpc:"2.0",id:i,method:e,params:n};return this.ws.send(JSON.stringify(l)),new Promise((r,a)=>{let o=s=>r(s),u=s=>a(s);this.pending.set(i,{resolve:o,reject:u})})}notify(e,n){let i={jsonrpc:"2.0",method:e,params:n};this.ws.send(JSON.stringify(i))}handleMessage(e){if(!e||typeof e!="object")return;let n=e,i="id"in n,l="method"in n;if(i&&!l){let r=n.id;if(typeof r!="number")return;let a=this.pending.get(r);if(!a)return;this.pending.delete(r),"result"in n?a.resolve(n.result):a.reject(n.error);return}if(i&&l){let r=n.id,a=n.method;if(typeof r!="number"||typeof a!="string")return;let o=this.handlers.get(a);if(!o){this.respondError(r,{code:-32601,message:`Method not found: ${a}`});return}Promise.resolve().then(()=>o(n.params)).then(u=>this.respond(r,u??null)).catch(u=>this.respondError(r,{code:-32603,message:u instanceof Error?u.message:String(u)}));return}if(l){let r=n.method;if(typeof r!="string")return;let a=this.handlers.get(r);a&&Promise.resolve(a(n.params))}}respond(e,n){let i={jsonrpc:"2.0",id:e,result:n};this.ws.send(JSON.stringify(i))}respondError(e,n){let i={jsonrpc:"2.0",id:e,error:n};this.ws.send(JSON.stringify(i))}};function Sn(){try{return new Date().toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})}catch{return""}}function zl(t){return typeof t=="object"&&t!==null}function BC(t){let e=t.options.find(n=>n.kind==="allow_always")??t.options.find(n=>n.kind==="allow_once")??t.options[0];return e?{outcome:{outcome:"selected",optionId:e.optionId}}:{outcome:{outcome:"cancelled"}}}function U0(t){if(!zl(t))return!1;let e=t.code,n=t.message;return!!(e===-32002||typeof n=="string"&&n.toLowerCase().includes("auth"))}function UC(t){if(!zl(t))return!1;let e=t.kind;if(e==="message"){let n=t.message;return H0(n)}return e==="tool"?typeof t.toolCallId=="string"&&t.toolCallId.length>0:!1}function HC(t){return zl(t)?typeof t.toolCallId=="string"&&typeof t.title=="string"&&typeof t.status=="string"&&typeof t.kind=="string":!1}function H0(t){if(!zl(t))return!1;let e=t.role,n=t.type,i=t.text;return(e==="user"||e==="assistant")&&n==="text"&&typeof i=="string"}function qC(t){let e=t?._meta;if(!zl(e))return null;let n=e.codely;if(!zl(n))return null;let i=n.ui;if(!zl(i)||i.action!=="replace_history")return null;let l={},r=i.feed;Array.isArray(r)&&(l.feed=r.filter(UC));let a=i.tools;Array.isArray(a)&&(l.tools=a.filter(HC));let o=i.messages;return Array.isArray(o)&&(l.messages=o.filter(H0)),!l.feed&&!l.tools&&!l.messages?null:l}function q0(t){let[e,n]=(0,ht.useState)("connecting"),[i,l]=(0,ht.useState)(null),[r,a]=(0,ht.useState)({open:!1,methods:[]}),[o,u]=(0,ht.useState)([]),[s,c]=(0,ht.useState)([]),[f,d]=(0,ht.useState)([]),[p,g]=(0,ht.useState)([]),[b,T]=(0,ht.useState)(null),[m,h]=(0,ht.useState)(null),y=(0,ht.useRef)(null),[k,A]=(0,ht.useState)(null),w=(0,ht.useRef)(null),[D,_]=(0,ht.useState)(!1),U=(0,ht.useRef)(null),S=(0,ht.useRef)(null),nt=(0,ht.useRef)(0),K=(0,ht.useRef)(null),Y=(0,ht.useCallback)(H=>{d(F=>[...F,H])},[]),G=(0,ht.useCallback)(H=>{let{role:F,type:j,chunk:L}=H;if(!L)return;let $=F==="assistant"?K.current??void 0:void 0;d(dt=>{let Tt=dt.map(Wt=>Wt.kind==="message"&&!Wt.message.completed&&(Wt.message.role!==F||Wt.message.type!==j)?{...Wt,message:{...Wt.message,completed:!0}}:Wt),Ft=Tt[Tt.length-1];if(Ft&&Ft.kind==="message"&&Ft.message.role===F&&Ft.message.type===j&&!Ft.message.completed){let Wt={kind:"message",message:{...Ft.message,text:(Ft.message.text??"")+L}};return[...Tt.slice(0,-1),Wt]}let Ye={kind:"message",message:{id:`${F}_${j}_${Date.now()}_${Math.random().toString(16).slice(2)}`,role:F,type:j,time:Sn(),text:L,completed:F==="user",...$!==void 0?{turnId:$}:{}}};return[...Tt,Ye]})},[]),W=(0,ht.useCallback)(()=>{let H=K.current;H!==null&&(d(F=>F.map(j=>j.kind!=="message"||j.message.role!=="assistant"||j.message.turnId!==H||j.message.completed?j:{...j,message:{...j.message,completed:!0}})),K.current=null,_(!1))},[]),gt=(0,ht.useCallback)(H=>{let F=qC(H);if(F){F.tools?g(F.tools):g([]),F.feed?d(F.feed.map(j=>{if(j.kind==="tool")return{kind:"tool",toolCallId:j.toolCallId,time:Sn()};let L=j.message;return{kind:"message",message:{id:`rehydrate_${L.role}_${Date.now()}_${Math.random().toString(16).slice(2)}`,role:L.role,type:"text",time:Sn(),text:L.text,completed:!0}}})):F.messages?d(F.messages.map(j=>({kind:"message",message:{id:`rehydrate_${j.role}_${Date.now()}_${Math.random().toString(16).slice(2)}`,role:j.role,type:"text",time:Sn(),text:j.text,completed:!0}}))):d([]),c([]),T(null),K.current=null,_(!1);return}if(H.sessionUpdate==="available_commands_update"){u(H.availableCommands??[]);return}if(H.sessionUpdate==="plan"){c(H.entries??[]);return}if(H.sessionUpdate==="agent_message_chunk"){H.content?.type==="text"&&G({role:"assistant",type:"text",chunk:H.content.text??""});return}if(H.sessionUpdate==="agent_thought_chunk"){H.content?.type==="text"&&G({role:"assistant",type:"thought",chunk:H.content.text??""});return}if(H.sessionUpdate==="tool_call"){let j={toolCallId:H.toolCallId,title:H.title,status:H.status,kind:H.kind,content:H.content,rawInput:H.rawInput,locations:H.locations};g(L=>[...L,j]),d(L=>L.map($=>$.kind==="message"&&!$.message.completed?{...$,message:{...$.message,completed:!0}}:$)),Y({kind:"tool",toolCallId:j.toolCallId,time:Sn()});return}if(H.sessionUpdate==="tool_call_update"){g(j=>j.map(L=>L.toolCallId===H.toolCallId?{...L,...H.title?{title:H.title}:{},...H.status?{status:H.status}:{},...H.kind?{kind:H.kind}:{},...H.content?{content:H.content}:{}}:L));return}},[Y,G]),vt=(0,ht.useCallback)(async()=>{try{U.current?.close()}catch{}U.current=null,S.current=null,K.current=null,n("connecting"),l(null),T(null);let H=`${location.protocol==="https:"?"wss:":"ws:"}//${location.host}${t.wsPath||"/ws"}`,F=new WebSocket(H);U.current=F,F.addEventListener("open",async()=>{n("connected");let j=new jr(F);S.current=j,j.on("session/update",L=>{let $=L;return $&&$.update&>($.update),null}),j.on("session/request_permission",L=>{let $=L;return t.yolo?BC($):new Promise(dt=>{y.current=dt,h($)})}),j.on("_session/request_input",L=>{let $=L;return new Promise(dt=>{w.current=dt,A($)})}),F.addEventListener("message",L=>{try{let $=JSON.parse(String(L.data));j.handleMessage($)}catch{}});try{let $=(await j.request("initialize",{protocolVersion:1,clientCapabilities:{fs:{readTextFile:!1,writeTextFile:!1},terminal:!1},clientInfo:{name:"codely-web-ui",version:"0.0.0",title:"Codely Web UI"}}))?.authMethods??[];a({open:!1,methods:$});try{let dt=await j.request("session/new",{cwd:t.cwd||"",mcpServers:[]});l(dt.sessionId),T(null)}catch(dt){U0(dt)?(a({open:!0,methods:$}),T("Authentication required.")):T(`Failed to create session: ${String(dt?.message??dt)}`)}}catch(L){T(`Failed to initialize ACP: ${String(L?.message??L)}`)}}),F.addEventListener("close",j=>{let L=j,$=[];L&&typeof L.code=="number"&&$.push(`code=${L.code}`),L&&typeof L.reason=="string"&&L.reason.trim()!==""&&$.push(`reason=${L.reason}`),L&&typeof L.wasClean=="boolean"&&$.push(`clean=${L.wasClean}`),n("disconnected"),l(null),T($.length>0?`Disconnected (${$.join(" ")})`:"Disconnected.")}),F.addEventListener("error",()=>{n("disconnected"),l(null),T("Connection error.")})},[t.cwd,t.wsPath,t.yolo,gt]),Vt=(0,ht.useCallback)(async H=>{let F=S.current;if(F)try{await F.request("authenticate",{methodId:H.id});let j=await F.request("session/new",{cwd:t.cwd||"",mcpServers:[]});l(j.sessionId),a(L=>({...L,open:!1})),T(null)}catch(j){T(`Authentication failed: ${String(j?.message??j)}`)}},[t.cwd]),xe=(0,ht.useCallback)(async H=>{let F=S.current;if(!F||!i){T("Not connected.");return}let{displayText:j,prompt:L}=typeof H=="string"?{displayText:H,prompt:[{type:"text",text:H}]}:H;G({role:"user",type:"text",chunk:j}),nt.current+=1,K.current=nt.current,_(!0);try{let $=await F.request("session/prompt",{sessionId:i,prompt:L});W(),$?.stopReason==="cancelled"&&T("Cancelled.")}catch($){if(W(),U0($)){l(null),a(dt=>({...dt,open:!0})),T("Authentication required.");return}T(`Request failed: ${String($?.message??$)}`)}},[G,W,i]),v=(0,ht.useCallback)(()=>{let H=S.current;if(!(!H||!i))try{H.notify("session/cancel",{sessionId:i})}catch{}},[i]),Nt=(0,ht.useCallback)(async(H,F=10)=>{let j=S.current;if(!j||!i)return[];try{let L=await j.request("_workspace/suggest_paths",{sessionId:i,pattern:H,maxResults:F});return Array.isArray(L?.paths)?L.paths:[]}catch{return[]}},[i]),Bt=(0,ht.useCallback)(async(H,F=10)=>{let j=S.current;if(!j||!i)return[];try{let L=await j.request("_slash/complete",{sessionId:i,line:H,maxResults:F});return Array.isArray(L?.items)?L.items:[]}catch{return[]}},[i]),x=(0,ht.useCallback)(H=>{let F=y.current;y.current=null,h(null),F&&F(H)},[]),zt=(0,ht.useCallback)(H=>{let F=w.current;w.current=null,A(null),F&&F(H)},[]);return(0,ht.useEffect)(()=>{vt()},[]),{connection:e,sessionId:i,statusText:b,auth:r,availableCommands:o,planEntries:s,feed:f,tools:p,connect:vt,sendPrompt:xe,cancel:v,suggestPaths:Nt,completeSlashCommand:Bt,authenticate:Vt,permissionReq:m,resolvePermission:x,inputReq:k,resolveInput:zt,isBusy:D}}var lt=I(le(),1);function IC(t){return t?t.endsWith("/")?t.slice(0,-1):t:"/__codely__/control-plane"}async function Pi(t,e){let n=await fetch(t,{...e,headers:{"content-type":"application/json",...e?.headers??{}}}),i=await n.text(),l=i?JSON.parse(i):null;if(!n.ok){let r=typeof l?.error=="string"?l.error:`${n.status} ${n.statusText}`;throw new Error(r)}return l}function I0(t){let e=IC(t);return{list:async()=>(await Pi(`${e}/registry`)).endpoints,getById:async n=>(await Pi(`${e}/registry/${encodeURIComponent(n)}`)).endpoint,create:async n=>(await Pi(`${e}/registry`,{method:"POST",body:JSON.stringify(n)})).endpoint,update:async(n,i)=>(await Pi(`${e}/registry/${encodeURIComponent(n)}`,{method:"PUT",body:JSON.stringify(i)})).endpoint,remove:async n=>{await Pi(`${e}/registry/${encodeURIComponent(n)}`,{method:"DELETE"})},health:async n=>Pi(`${e}/health?endpointId=${encodeURIComponent(n)}`),getRawRegistryJson:async()=>(await Pi(`${e}/registry/raw`)).json,saveRawRegistryJson:async n=>{await Pi(`${e}/registry/raw`,{method:"PUT",body:JSON.stringify({json:n})})}}}var Ji=I(le(),1);var je=I(tt(),1);function jC(t){return t.trim()?t.split(",").map(e=>e.trim()).filter(e=>e.length>0):[]}var j0=({open:t,endpoint:e,onClose:n,onSave:i})=>{let[l,r]=(0,Ji.useState)(""),[a,o]=(0,Ji.useState)(""),[u,s]=(0,Ji.useState)(""),[c,f]=(0,Ji.useState)(null),[d,p]=(0,Ji.useState)(!1);if((0,Ji.useEffect)(()=>{t&&(r(e?.name??""),o(e?.baseUrl??""),s((e?.tags??[]).join(", ")),f(null),p(!1))},[e,t]),!t)return null;let g=async()=>{if(!l.trim()||!a.trim()){f("Name and base URL are required.");return}p(!0),f(null);try{await i({name:l.trim(),baseUrl:a.trim(),tags:jC(u)}),n()}catch(b){f(b instanceof Error?b.message:"Save failed")}finally{p(!1)}};return(0,je.jsx)(De,{onClose:n,children:(0,je.jsx)(ze,{title:e?"Edit endpoint":"Add endpoint",onClose:n,footer:(0,je.jsxs)("div",{className:"cp-modal-actions",children:[(0,je.jsx)("button",{className:"btn",onClick:n,disabled:d,children:"Cancel"}),(0,je.jsx)("button",{className:"btn primary",onClick:()=>void g(),disabled:d,children:d?"Saving\u2026":"Save"})]}),children:(0,je.jsxs)("div",{className:"cp-modal-body",children:[(0,je.jsxs)("label",{className:"cp-label",children:["Name",(0,je.jsx)("input",{className:"cp-input",value:l,onChange:b=>r(b.target.value),placeholder:"e.g. Mac Mini - local"})]}),(0,je.jsxs)("label",{className:"cp-label",children:["Base URL",(0,je.jsx)("input",{className:"cp-input",value:a,onChange:b=>o(b.target.value),placeholder:"http://127.0.0.1:3939"})]}),(0,je.jsxs)("label",{className:"cp-label",children:["Tags (comma-separated)",(0,je.jsx)("input",{className:"cp-input",value:u,onChange:b=>s(b.target.value),placeholder:"local, gpu, staging"})]}),c?(0,je.jsx)("div",{className:"cp-error",children:c}):null]})})})};var Wi=I(le(),1);var ve=I(tt(),1);function Y0(t){let e=t.split(/\r?\n/),n=[],i=[];for(let l=0;l<e.length;l+=1){let r=e[l]?.trim()??"";if(!r)continue;let a=r.split(",").map(c=>c.trim());if(a.length>3){i.push(`Line ${l+1}: expected "url[, name[, tag]]"`);continue}let o=a[0]??"";if(!o){i.push(`Line ${l+1}: missing endpoint url`);continue}let u=a[1]?.trim()||o,s=a[2]?.trim()||o;n.push({name:u,baseUrl:o,tags:s?[s]:[]})}return i.length>0?{ok:!1,error:i.join(`
|
|
57
|
+
`)}:n.length===0?{ok:!1,error:"No endpoints found."}:{ok:!0,inputs:n}}var V0=({open:t,onClose:e,onSubmit:n})=>{let[i,l]=(0,Wi.useState)(""),[r,a]=(0,Wi.useState)(null),[o,u]=(0,Wi.useState)(!1);(0,Wi.useEffect)(()=>{t&&(l(""),a(null),u(!1))},[t]);let s=(0,Wi.useMemo)(()=>Y0(i),[i]);if(!t)return null;let c=async()=>{let f=Y0(i);if(!f.ok){a(f.error);return}u(!0),a(null);try{await n(f.inputs),e()}catch(d){a(d instanceof Error?d.message:"Batch add failed")}finally{u(!1)}};return(0,ve.jsx)(De,{onClose:e,children:(0,ve.jsx)(ze,{title:"Batch add endpoints",onClose:e,footer:(0,ve.jsxs)("div",{className:"cp-modal-actions",children:[(0,ve.jsx)("button",{className:"btn",onClick:e,disabled:o,children:"Cancel"}),(0,ve.jsx)("button",{className:"btn primary",onClick:()=>void c(),disabled:o,children:o?"Adding\u2026":"Add"})]}),children:(0,ve.jsxs)("div",{className:"cp-modal-body",children:[(0,ve.jsxs)("div",{className:"cp-muted",style:{marginBottom:8},children:["One entry per line (empty lines allowed):",(0,ve.jsx)("br",{}),(0,ve.jsx)("code",{children:"url[, name[, tag]]"}),(0,ve.jsx)("br",{}),"If only ",(0,ve.jsx)("code",{children:"url"})," is provided, ",(0,ve.jsx)("code",{children:"name"})," and"," ",(0,ve.jsx)("code",{children:"tag"})," default to the same url."]}),(0,ve.jsx)("textarea",{className:"cp-textarea",placeholder:`http://127.0.0.1:3939, Local, local
|
|
58
|
+
http://127.0.0.1:3940`,value:i,onChange:f=>l(f.target.value),rows:8}),s.ok?(0,ve.jsxs)("div",{className:"cp-muted",style:{marginTop:8},children:["Parsed ",s.inputs.length," endpoint(s)"]}):null,r?(0,ve.jsx)("div",{className:"cp-error",style:{whiteSpace:"pre-wrap"},children:r}):null]})})})};var Yt=I(tt(),1);function YC(t){return t===void 0?(0,Yt.jsx)("span",{className:"cp-health unknown",children:"Unknown"}):t===null?(0,Yt.jsx)("span",{className:"cp-health pending",children:"Checking\u2026"}):t.ok?(0,Yt.jsxs)("span",{className:"cp-health ok",children:["Healthy ",(0,Yt.jsxs)("span",{className:"cp-health-ms",children:[t.durationMs,"ms"]})]}):(0,Yt.jsxs)("span",{className:"cp-health err",children:["Unhealthy ",t.error?`\xB7 ${t.error}`:""]})}var Zd=({endpoints:t,healthById:e,onEdit:n,onDelete:i,onRefreshHealth:l,selectedIds:r,onToggleSelect:a})=>t.length===0?(0,Yt.jsx)("div",{className:"cp-empty",children:"No endpoints registered yet."}):(0,Yt.jsx)("div",{className:"cp-list",children:t.map(o=>(0,Yt.jsxs)("div",{className:"cp-row",children:[(0,Yt.jsx)("div",{className:"cp-select-box",children:(0,Yt.jsx)("input",{type:"checkbox",checked:r?.has(o.id)??!1,onChange:u=>a?.(o.id,u.target.checked)})}),(0,Yt.jsxs)("div",{className:"cp-row-main",children:[(0,Yt.jsxs)("div",{className:"cp-row-title",children:[(0,Yt.jsx)("span",{className:"cp-name",children:o.name}),(0,Yt.jsx)("span",{className:"cp-url",children:o.baseUrl})]}),(0,Yt.jsxs)("div",{className:"cp-row-meta",children:[YC(e[o.id]),(0,Yt.jsx)("div",{className:"cp-tags",children:o.tags.length===0?(0,Yt.jsx)("span",{className:"cp-tag muted",children:"no tags"}):o.tags.map(u=>(0,Yt.jsx)("span",{className:"cp-tag",children:u},u))})]})]}),(0,Yt.jsxs)("div",{className:"cp-actions",children:[(0,Yt.jsx)("button",{className:"btn",onClick:()=>l(o),children:"Health"}),(0,Yt.jsx)("button",{className:"btn",onClick:()=>n(o),children:"Edit"}),(0,Yt.jsx)("button",{className:"btn danger",onClick:()=>i(o),children:"Delete"})]})]},o.id))});var F0=I(le(),1);var Yr=I(le(),1);var _l=I(tt(),1);var Vr=({feed:t,tools:e,onOpenDiff:n})=>{let i=(0,Yr.useRef)(null),l=(0,Yr.useMemo)(()=>{let r=new Map;for(let a of e)r.set(a.toolCallId,a);return r},[e]);return(0,Yr.useEffect)(()=>{i.current&&(i.current.scrollTop=i.current.scrollHeight)},[t]),(0,_l.jsx)("div",{className:"cp-task-body",ref:i,children:t.length===0?(0,_l.jsx)("div",{className:"cp-empty",children:"No activity yet."}):t.map(r=>{if(r.kind==="message")return(0,_l.jsx)("div",{className:"cp-task-message",children:(0,_l.jsx)(As,{message:r.message})},r.message.id);let a=l.get(r.toolCallId);return a?(0,_l.jsx)("div",{className:"cp-task-tool",children:(0,_l.jsx)(Rs,{tool:a,onOpenDiff:o=>n({title:o.title,oldText:o.oldText,newText:o.newText})})},r.toolCallId):null})})};var Et=I(tt(),1);var Kd=({state:t,selected:e,onSelect:n,onClick:i,onForceCancel:l,onForceRefresh:r,onRetry:a,onSendPrompt:o,onOpenDiff:u,compact:s=!1})=>{let[c,f]=(0,F0.useState)(""),d=t.connection==="connected"?t.isBusy?"busy":"idle":"disconnected",p=t.connection==="disconnected"||t.lastError!==null,g=()=>{if(t.connection!=="connected")return;let m=c.trim();m&&(o(t.endpoint.id,m),f(""))},b=m=>{m.key==="Enter"&&m.ctrlKey&&(m.preventDefault(),g())};if(s){let m=t.feed[t.feed.length-1],h="";if(m)if(m.kind==="message"){let y=m.message.content;h=typeof y=="string"?y:Array.isArray(y)?y.filter(k=>k.type==="text").map(k=>k.type==="text"?k.text:"").join(" "):""}else h=`Tool: ${m.toolCallId}`;return(0,Et.jsxs)("div",{className:`cp-task-card-compact${p?" error":""}`,onClick:()=>i(t.endpoint.id),children:[(0,Et.jsxs)("div",{className:"cp-task-card-compact-body",children:[(0,Et.jsxs)("div",{className:"cp-task-card-compact-top",children:[(0,Et.jsx)("span",{className:"cp-task-card-compact-name",children:t.endpoint.name}),(0,Et.jsx)("span",{className:`cp-conn ${t.connection}`,children:d})]}),(0,Et.jsxs)("div",{className:"cp-task-card-compact-meta",children:[t.queuedCount>0&&(0,Et.jsxs)("span",{children:["queue ",t.queuedCount]}),t.lastActivityAt&&(0,Et.jsx)("span",{children:new Date(t.lastActivityAt).toLocaleTimeString()})]}),h&&(0,Et.jsx)("div",{className:"cp-task-card-compact-preview",children:h})]}),(0,Et.jsx)("span",{className:"cp-task-card-compact-chevron",children:"\u203A"})]})}let T=["cp-task-card",e?"selected":"",p?"error":""].filter(Boolean).join(" ");return(0,Et.jsxs)("div",{className:T,onClick:()=>i(t.endpoint.id),children:[(0,Et.jsxs)("div",{className:"cp-task-header",children:[(0,Et.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:12},children:[(0,Et.jsx)("input",{type:"checkbox",checked:e,onClick:m=>m.stopPropagation(),onChange:m=>n(t.endpoint.id,m.target.checked),style:{width:16,height:16,cursor:"pointer"}}),(0,Et.jsxs)("div",{children:[(0,Et.jsx)("div",{className:"cp-task-name",children:t.endpoint.name}),(0,Et.jsx)("a",{className:"cp-task-url",href:t.endpoint.baseUrl,target:"_blank",rel:"noreferrer noopener",title:"Open in new tab",onClick:m=>m.stopPropagation(),children:t.endpoint.baseUrl})]})]}),(0,Et.jsxs)("div",{className:"cp-task-meta",children:[(0,Et.jsx)("span",{className:`cp-conn ${t.connection}`,children:d}),(0,Et.jsxs)("span",{className:"cp-queue",children:["queue ",t.queuedCount]}),t.lastActivityAt?(0,Et.jsx)("span",{className:"cp-activity",children:new Date(t.lastActivityAt).toLocaleTimeString()}):null]}),(0,Et.jsxs)("div",{className:"cp-task-actions",children:[(0,Et.jsx)("button",{className:"btn danger",onClick:m=>{m.stopPropagation(),l(t.endpoint.id)},children:"Cancel"}),(0,Et.jsx)("button",{className:"btn",onClick:m=>{m.stopPropagation(),r(t.endpoint.id)},children:"Refresh"}),t.lastFailed?(0,Et.jsx)("button",{className:"btn",onClick:m=>{m.stopPropagation(),a(t.endpoint.id)},children:"Retry"}):null]})]}),t.lastError?(0,Et.jsxs)("div",{className:"cp-task-error",children:["Last error: ",t.lastError]}):null,(0,Et.jsx)(Vr,{feed:t.feed,tools:t.tools,onOpenDiff:u}),(0,Et.jsx)("div",{className:"cp-task-input",onClick:m=>m.stopPropagation(),children:(0,Et.jsx)(Zi,{value:c,textareaClassName:"cp-task-textarea",placeholder:"Send prompt...",onChange:m=>f(m.target.value),onKeyDown:b,onSubmit:g,submitClassName:"btn primary",submitDisabled:!c.trim()||t.connection!=="connected",submitLabel:"Send"})})]})};var Ol=I(le(),1);var Yn=I(tt(),1);var Q0=({open:t,onClose:e,onLoad:n,onSave:i})=>{let[l,r]=(0,Ol.useState)(""),[a,o]=(0,Ol.useState)(!1),[u,s]=(0,Ol.useState)(!1),[c,f]=(0,Ol.useState)(null);if((0,Ol.useEffect)(()=>{t&&(o(!0),s(!1),f(null),(async()=>{try{let p=await n();r(p)}catch(p){f(p instanceof Error?p.message:"Failed to load JSON")}finally{o(!1)}})())},[n,t]),!t)return null;let d=async()=>{s(!0),f(null);try{await i(l),e()}catch(p){f(p instanceof Error?p.message:"Save failed")}finally{s(!1)}};return(0,Yn.jsx)(De,{onClose:e,children:(0,Yn.jsx)(ze,{title:"Edit registry JSON",onClose:e,footer:(0,Yn.jsxs)("div",{className:"cp-modal-actions",children:[(0,Yn.jsx)("button",{className:"btn",onClick:e,disabled:u||a,children:"Cancel"}),(0,Yn.jsx)("button",{className:"btn primary",onClick:()=>void d(),disabled:u||a,children:u?"Saving\u2026":"Save"})]}),children:(0,Yn.jsxs)("div",{className:"cp-modal-body",children:[(0,Yn.jsx)("textarea",{className:"cp-textarea",value:l,onChange:p=>r(p.target.value),rows:12,placeholder:a?"Loading\u2026":"",disabled:a}),c?(0,Yn.jsx)("div",{className:"cp-error",style:{whiteSpace:"pre-wrap"},children:c}):null]})})})};var Oe=I(le(),1);function Fr(t){return typeof t=="object"&&t!==null}function VC(t){return Fr(t)?typeof t.toolCallId=="string"&&typeof t.title=="string"&&typeof t.status=="string"&&typeof t.kind=="string":!1}function X0(t){if(!Fr(t))return!1;let e=t.role,n=t.type,i=t.text;return(e==="user"||e==="assistant")&&n==="text"&&typeof i=="string"}function FC(t){if(!Fr(t))return!1;let e=t.kind;if(e==="message"){let n=t.message;return X0(n)}return e==="tool"?typeof t.toolCallId=="string"&&t.toolCallId.length>0:!1}function QC(t){let e=t?._meta;if(!Fr(e))return null;let n=e.codely;if(!Fr(n))return null;let i=n.ui;if(!Fr(i)||i.action!=="replace_history")return null;let l={},r=i.feed;Array.isArray(r)&&(l.feed=r.filter(FC));let a=i.tools;Array.isArray(a)&&(l.tools=a.filter(VC));let o=i.messages;return Array.isArray(o)&&(l.messages=o.filter(X0)),!l.feed&&!l.tools&&!l.messages?null:l}function XC(t){let e=t.options.find(n=>n.kind==="allow_always")??t.options.find(n=>n.kind==="allow_once")??t.options[0];return e?{outcome:{outcome:"selected",optionId:e.optionId}}:{outcome:{outcome:"cancelled"}}}var Ms=class{constructor(e,n){this.wsUrl=e;this.onStateChange=n}ws=null;rpc=null;sessionId=null;reconnectTimer=null;reconnectAttempts=0;disposed=!1;currentTurnId=0;activeTurnId=null;sessionReadyPromise=null;sessionReadyResolve=null;sessionReadyReject=null;state={connection:"disconnected",sessionId:null,statusText:null,feed:[],tools:[],isBusy:!1,lastActivityAt:null};connect(){if(this.disposed||this.ws&&this.ws.readyState<=WebSocket.OPEN)return;this.clearReconnect(),this.resetSessionReadyPromise(),this.updateState({connection:"connecting",sessionId:null,statusText:null});let e=new WebSocket(this.wsUrl);this.ws=e,e.addEventListener("open",()=>{if(this.ws!==e||this.disposed)return;this.reconnectAttempts=0,this.updateState({connection:"connected"});let n=new jr(e);this.rpc=n,n.on("session/update",i=>{let l=i;return l?.update&&this.onSessionUpdate(l.update),null}),n.on("session/request_permission",i=>XC(i)),n.on("_session/request_input",()=>({outcome:"cancelled"})),e.addEventListener("message",i=>{if(!(this.ws!==e||this.disposed))try{let l=JSON.parse(String(i.data));n.handleMessage(l)}catch{}}),this.bootstrap(n)}),e.addEventListener("close",()=>{this.ws===e&&(this.rpc=null,this.sessionId=null,this.activeTurnId=null,this.ws=null,this.sessionReadyReject?.(new Error("Disconnected")),this.clearSessionReadyHandlers(),this.updateState({connection:"disconnected",sessionId:null,statusText:"Disconnected.",isBusy:!1}),this.scheduleReconnect())}),e.addEventListener("error",()=>{this.ws===e&&(this.rpc=null,this.sessionId=null,this.activeTurnId=null,this.ws=null,this.sessionReadyReject?.(new Error("Connection error")),this.clearSessionReadyHandlers(),this.updateState({connection:"disconnected",sessionId:null,statusText:"Connection error.",isBusy:!1}),this.scheduleReconnect())})}dispose(){this.disposed=!0,this.clearReconnect(),this.closeWs("dispose")}forceClose(){this.closeWs("force")}forceRefresh(){if(this.disposed)return;this.clearReconnect(),this.currentTurnId=0,this.activeTurnId=null,this.updateState({feed:[],tools:[],isBusy:!1,lastActivityAt:null,statusText:"Refreshing\u2026"});let e=this.ws;if(this.ws=null,this.rpc=null,this.sessionId=null,this.sessionReadyReject?.(new Error("Refreshed")),this.clearSessionReadyHandlers(),e)try{e.close()}catch{}this.connect()}cancel(){let e=this.rpc;if(!(!e||!this.sessionId))try{e.notify("session/cancel",{sessionId:this.sessionId})}catch{}}async sendPrompt(e){(!this.rpc||!this.ws||!this.sessionId)&&(this.connect(),await this.waitForSessionReady(3e4));let n=this.rpc;if(!n||!this.ws||!this.sessionId)throw this.updateState({statusText:"Not connected."}),new Error("Not connected");if(this.state.isBusy)throw this.updateState({statusText:"Session busy."}),new Error("Session busy");let i=this.ws;this.appendChunkToFeed({role:"user",type:"text",chunk:e}),this.currentTurnId+=1,this.activeTurnId=this.currentTurnId,this.updateState({isBusy:!0}),this.touchActivity();let l=null,r=new Promise((a,o)=>{l=()=>o(new Error("Connection closed")),i.addEventListener("close",l),i.addEventListener("error",l)});try{let a=await Promise.race([n.request("session/prompt",{sessionId:this.sessionId,prompt:[{type:"text",text:e}]}),r]);this.markAssistantCompleted(),a?.stopReason==="cancelled"&&this.updateState({statusText:"Cancelled."})}catch(a){throw this.markAssistantCompleted(),this.updateState({statusText:`Request failed: ${String(a?.message??a)}`}),a}finally{l&&(i.removeEventListener("close",l),i.removeEventListener("error",l))}}getState(){return this.state}async bootstrap(e){try{((await e.request("initialize",{protocolVersion:1,clientCapabilities:{fs:{readTextFile:!1,writeTextFile:!1},terminal:!1},clientInfo:{name:"codely-control-plane",version:"0.0.0",title:"Codely Control Plane"}}))?.authMethods??[]).length>0&&this.updateState({statusText:"Authentication required (unsupported)."});let l=await e.request("session/new",{cwd:"",mcpServers:[]});this.sessionId=l.sessionId,this.updateState({sessionId:l.sessionId,statusText:null}),this.touchActivity(),this.sessionReadyResolve?.(),this.clearSessionReadyHandlers()}catch(n){this.updateState({statusText:`Failed to initialize ACP: ${String(n?.message??n)}`}),this.sessionReadyReject?.(n instanceof Error?n:new Error(String(n))),this.clearSessionReadyHandlers(),this.closeWs("bootstrap failed")}}closeWs(e){if(this.ws)try{this.ws.readyState<=WebSocket.OPEN&&this.ws.close()}catch{}this.ws=null,this.rpc=null,this.sessionId=null,this.sessionReadyReject?.(new Error(e??"closed")),this.clearSessionReadyHandlers(),e&&this.updateState({connection:"disconnected",sessionId:null,statusText:e==="force"?"Force cancelled.":this.state.statusText,isBusy:!1})}resetSessionReadyPromise(){this.sessionReadyReject?.(new Error("Replaced by new connection")),this.clearSessionReadyHandlers(),this.sessionReadyPromise=new Promise((e,n)=>{this.sessionReadyResolve=e,this.sessionReadyReject=n})}clearSessionReadyHandlers(){this.sessionReadyResolve=null,this.sessionReadyReject=null}async waitForSessionReady(e){let n=this.sessionReadyPromise;if(!n)throw new Error("Not connected");let i=null,l=new Promise((r,a)=>{i=window.setTimeout(()=>{a(new Error("Session not ready"))},e)});try{await Promise.race([n,l])}finally{i!==null&&clearTimeout(i)}}scheduleReconnect(){if(this.disposed||this.reconnectTimer!==null)return;let e=Math.min(1e3*2**this.reconnectAttempts,5e3);this.reconnectAttempts+=1,this.reconnectTimer=window.setTimeout(()=>{this.reconnectTimer=null,this.connect()},e)}clearReconnect(){this.reconnectTimer!==null&&(clearTimeout(this.reconnectTimer),this.reconnectTimer=null)}updateState(e){this.state={...this.state,...e},this.onStateChange?.(this.state)}touchActivity(){this.updateState({lastActivityAt:Date.now()})}appendFeed(e){this.updateState({feed:[...this.state.feed,e]})}appendChunkToFeed(e){let{role:n,type:i,chunk:l}=e;if(!l)return;let r=n==="assistant"?this.activeTurnId??void 0:void 0,a=this.state.feed.map(s=>s.kind==="message"&&!s.message.completed&&(s.message.role!==n||s.message.type!==i)?{...s,message:{...s.message,completed:!0}}:s),o=a[a.length-1];if(o&&o.kind==="message"&&o.message.role===n&&o.message.type===i&&!o.message.completed){let s={kind:"message",message:{...o.message,text:(o.message.text??"")+l}};this.updateState({feed:[...a.slice(0,-1),s]});return}let u={kind:"message",message:{id:`${n}_${i}_${Date.now()}_${Math.random().toString(16).slice(2)}`,role:n,type:i,time:Sn(),text:l,completed:n==="user",...r!==void 0?{turnId:r}:{}}};this.updateState({feed:[...a,u]})}markAssistantCompleted(){let e=this.activeTurnId;if(e===null)return;let n=this.state.feed.map(i=>i.kind!=="message"||i.message.role!=="assistant"||i.message.turnId!==e||i.message.completed?i:{...i,message:{...i.message,completed:!0}});this.activeTurnId=null,this.updateState({feed:n,isBusy:!1})}onSessionUpdate(e){this.touchActivity();let n=QC(e);if(n){if(n.tools?this.updateState({tools:n.tools}):this.updateState({tools:[]}),n.feed){let i=n.feed.map(l=>{if(l.kind==="tool")return{kind:"tool",toolCallId:l.toolCallId,time:Sn()};let r=l.message;return{kind:"message",message:{id:`rehydrate_${r.role}_${Date.now()}_${Math.random().toString(16).slice(2)}`,role:r.role,type:"text",time:Sn(),text:r.text,completed:!0}}});this.updateState({feed:i})}else if(n.messages){let i=n.messages.map(l=>({kind:"message",message:{id:`rehydrate_${l.role}_${Date.now()}_${Math.random().toString(16).slice(2)}`,role:l.role,type:"text",time:Sn(),text:l.text,completed:!0}}));this.updateState({feed:i})}else this.updateState({feed:[]});this.activeTurnId=null,this.updateState({isBusy:!1});return}if(e.sessionUpdate==="agent_message_chunk"){e.content?.type==="text"&&this.appendChunkToFeed({role:"assistant",type:"text",chunk:e.content.text??""});return}if(e.sessionUpdate==="agent_thought_chunk"){e.content?.type==="text"&&this.appendChunkToFeed({role:"assistant",type:"thought",chunk:e.content.text??""});return}if(e.sessionUpdate==="tool_call"){let i={toolCallId:e.toolCallId,title:e.title,status:e.status,kind:e.kind,content:e.content,rawInput:e.rawInput,locations:e.locations};this.updateState({tools:[...this.state.tools,i]});let l=this.state.feed.map(r=>r.kind==="message"&&!r.message.completed?{...r,message:{...r.message,completed:!0}}:r);this.updateState({feed:l}),this.appendFeed({kind:"tool",toolCallId:i.toolCallId,time:Sn()});return}if(e.sessionUpdate==="tool_call_update"){let i=this.state.tools.map(l=>l.toolCallId===e.toolCallId?{...l,...e.title?{title:e.title}:{},...e.status?{status:e.status}:{},...e.kind?{kind:e.kind}:{},...e.content?{content:e.content}:{}}:l);this.updateState({tools:i});return}}};function GC(){return{maxRetries:3,backoffMs:1e3}}var Ds=class{constructor(e,n){this.handler=e;this.retryPolicy=n?.retryPolicy??GC(),this.onChange=n?.onChange}queue=[];running=null;lastError=null;lastFailed=null;retryTimer=null;retryPolicy;onChange;enqueue(e){let n={id:`${Date.now()}_${Math.random().toString(16).slice(2)}`,prompt:e,attempts:0};return this.queue.push(n),this.emit(),this.runNext(),n}clear(){this.queue=[],this.lastError=null,this.lastFailed=null,this.retryTimer!==null&&(clearTimeout(this.retryTimer),this.retryTimer=null),this.emit()}retryLastFailed(){if(!this.lastFailed)return;let e={...this.lastFailed,attempts:0};this.lastFailed=null,this.queue.unshift(e),this.emit(),this.runNext()}getSnapshot(){return{queuedCount:this.queue.length,running:!!this.running,lastError:this.lastError,lastFailed:this.lastFailed}}emit(){this.onChange?.(this.getSnapshot())}async runNext(){if(this.running||this.retryTimer!==null)return;let e=this.queue.shift();if(!e){this.emit();return}this.running=e,this.emit();try{await this.handler(e.prompt),this.running=null,this.lastError=null,this.emit(),this.runNext()}catch(n){if(this.running=null,this.lastError=n instanceof Error?n.message:String(n),e.attempts+=1,e.attempts<=this.retryPolicy.maxRetries){this.retryTimer=window.setTimeout(()=>{this.retryTimer=null,this.queue.unshift(e),this.emit(),this.runNext()},this.retryPolicy.backoffMs),this.emit();return}this.lastFailed={...e},this.emit()}}};function ZC(t){let e=t.startsWith("http")?t:`${window.location.protocol}//${window.location.host}${t}`,n=new URL(e);return n.protocol=n.protocol==="https:"?"wss:":"ws:",n.pathname=n.pathname.replace(/\/$/,""),n.hash="",n.search="",n.toString()}function KC(t,e){return`${t}/ws/${encodeURIComponent(e)}`}function G0(t,e){let n=(0,Oe.useMemo)(()=>ZC(e),[e]),i=(0,Oe.useRef)(new Map),[l,r]=(0,Oe.useState)({}),a=(0,Oe.useCallback)(p=>{let g={endpoint:p.endpoint,connection:p.clientState.connection,statusText:p.clientState.statusText,feed:p.clientState.feed,tools:p.clientState.tools,isBusy:p.clientState.isBusy,queuedCount:p.schedulerState.queuedCount,lastError:p.schedulerState.lastError,lastFailed:p.schedulerState.lastFailed?{prompt:p.schedulerState.lastFailed.prompt,attempts:p.schedulerState.lastFailed.attempts}:null,lastActivityAt:p.clientState.lastActivityAt};r(b=>({...b,[p.endpoint.id]:g}))},[]);(0,Oe.useEffect)(()=>{let p=i.current,g=new Set(t.map(b=>b.id));for(let b of t){let T=p.get(b.id);if(T){T.endpoint=b,a(T);continue}let m=KC(n,b.id),h=new Ms(m,w=>{let D=p.get(b.id);D&&(D.clientState=w,a(D))}),y=new Ds(async w=>h.sendPrompt(w),{retryPolicy:{maxRetries:3,backoffMs:1e3},onChange:w=>{let D=p.get(b.id);D&&(D.schedulerState=w,a(D))}}),k=h.getState(),A={endpoint:b,client:h,scheduler:y,clientState:k,schedulerState:y.getSnapshot()};p.set(b.id,A),h.connect(),a(A)}for(let[b,T]of p.entries())g.has(b)||(T.client.dispose(),p.delete(b),r(m=>{let h={...m};return delete h[b],h}))},[t,a,n]);let o=(0,Oe.useCallback)((p,g)=>{let b=g.length>0?g:t.map(T=>T.id);for(let T of b){let m=i.current.get(T);m&&m.scheduler.enqueue(p)}},[t]),u=(0,Oe.useCallback)(p=>{let g=i.current.get(p);g&&(g.scheduler.clear(),g.client.cancel(),a(g))},[a]),s=(0,Oe.useCallback)(p=>{let g=i.current.get(p);g&&(g.scheduler.clear(),g.client.cancel(),g.client.forceRefresh(),a(g))},[a]),c=(0,Oe.useCallback)(p=>{let g=i.current.get(p);g&&(g.scheduler.retryLastFailed(),a(g))},[a]),f=(0,Oe.useCallback)((p,g)=>{let b=i.current.get(p);b&&b.scheduler.enqueue(g)},[]),d=(0,Oe.useMemo)(()=>t.map(p=>l[p.id]).filter(Boolean),[t,l]);return{stateById:l,ordered:d,broadcastPrompt:o,forceCancel:u,forceRefresh:s,retryEndpoint:c,sendToEndpoint:f}}var Z0=I(le(),1);var oe=I(tt(),1);var K0=({open:t,onClose:e,state:n,onSendPrompt:i,onForceCancel:l,onForceRefresh:r,onRetry:a,onOpenDiff:o})=>{let[u,s]=(0,Z0.useState)("");if(!t)return null;let c=()=>{if(n.connection!=="connected")return;let p=u.trim();p&&(i(n.endpoint.id,p),s(""))},f=p=>{p.key==="Enter"&&p.ctrlKey&&(p.preventDefault(),c())},d=n.connection==="connected"?n.isBusy?"busy":"idle":"disconnected";return(0,oe.jsx)(De,{onClose:e,children:(0,oe.jsx)(ze,{title:n.endpoint.name,onClose:e,footer:null,children:(0,oe.jsxs)("div",{className:"cp-modal-body",style:{height:"80vh",display:"flex",flexDirection:"column",padding:0},children:[(0,oe.jsxs)("div",{className:"cp-task-header",style:{borderBottom:"1px solid var(--border)",padding:"12px"},children:[(0,oe.jsxs)("div",{children:[(0,oe.jsx)("div",{className:"cp-task-url",children:n.endpoint.baseUrl}),(0,oe.jsxs)("div",{className:"cp-task-meta",style:{flexDirection:"row",gap:12,marginTop:4},children:[(0,oe.jsx)("span",{className:`cp-conn ${n.connection}`,children:d}),(0,oe.jsxs)("span",{className:"cp-queue",children:["queue ",n.queuedCount]})]})]}),(0,oe.jsxs)("div",{className:"cp-task-actions",style:{flexDirection:"row"},children:[(0,oe.jsx)("button",{className:"btn danger",onClick:()=>l(n.endpoint.id),children:"Cancel"}),(0,oe.jsx)("button",{className:"btn",onClick:()=>r(n.endpoint.id),children:"Refresh"}),n.lastFailed&&(0,oe.jsx)("button",{className:"btn",onClick:()=>a(n.endpoint.id),children:"Retry"})]})]}),n.lastError&&(0,oe.jsxs)("div",{className:"cp-task-error",children:["Last error: ",n.lastError]}),(0,oe.jsx)("div",{style:{flex:1,overflow:"hidden",display:"flex",flexDirection:"column"},children:(0,oe.jsx)(Vr,{feed:n.feed,tools:n.tools,onOpenDiff:o})}),(0,oe.jsx)("div",{className:"cp-task-input",children:(0,oe.jsx)(Zi,{value:u,textareaClassName:"cp-task-textarea",placeholder:"Send prompt...",onChange:p=>s(p.target.value),onKeyDown:f,onSubmit:c,submitClassName:"btn primary",submitDisabled:!u.trim()||n.connection!=="connected",submitLabel:"Send"})})]})})})};var E=I(tt(),1);var Pd=8,PC=({open:t,onClose:e,endpoints:n,selectedIds:i,onToggle:l,onSelectAll:r,onClearAll:a,onSend:o})=>{let[u,s]=(0,lt.useState)("");if((0,lt.useEffect)(()=>{t||s("")},[t]),!t)return null;let c=i.size>0?i.size:n.length;return(0,E.jsx)("div",{className:"cp-broadcast-modal-backdrop",onClick:e,children:(0,E.jsxs)("div",{className:"cp-broadcast-modal",onClick:f=>f.stopPropagation(),children:[(0,E.jsxs)("div",{className:"cp-broadcast-modal-header",children:[(0,E.jsx)("div",{className:"cp-broadcast-modal-title",children:"Broadcast Prompt"}),(0,E.jsx)("button",{className:"cp-broadcast-modal-close",onClick:e,children:"\u2715"})]}),(0,E.jsxs)("div",{className:"cp-broadcast-modal-body",children:[(0,E.jsxs)("div",{className:"cp-broadcast-modal-left",children:[(0,E.jsx)("div",{className:"cp-broadcast-modal-label",children:"Prompt"}),(0,E.jsx)("textarea",{className:"cp-broadcast-modal-textarea",placeholder:"Type a prompt to broadcast to selected workers...",value:u,onChange:f=>s(f.target.value),autoFocus:!0}),(0,E.jsxs)("div",{className:"cp-broadcast-modal-footer",children:[(0,E.jsxs)("span",{className:"cp-broadcast-modal-target",children:["\u2192 ",c," worker",c!==1?"s":""]}),(0,E.jsxs)("div",{style:{display:"flex",gap:8},children:[(0,E.jsx)("button",{className:"btn",onClick:e,children:"Cancel"}),(0,E.jsx)("button",{className:"btn primary",disabled:!u.trim()||n.length===0,onClick:()=>{o(u.trim()),e()},children:"Broadcast"})]})]})]}),(0,E.jsxs)("div",{className:"cp-broadcast-modal-right",children:[(0,E.jsxs)("div",{className:"cp-broadcast-modal-label",children:["Target Workers",(0,E.jsxs)("div",{className:"cp-broadcast-modal-node-actions",children:[(0,E.jsx)("button",{className:"btn",onClick:r,children:"All"}),(0,E.jsx)("button",{className:"btn",onClick:a,children:"None"})]})]}),(0,E.jsx)("div",{className:"cp-broadcast-modal-node-list",children:n.map(f=>(0,E.jsxs)("label",{className:"cp-broadcast-modal-node-item",children:[(0,E.jsx)("input",{type:"checkbox",checked:i.has(f.id),onChange:d=>l(f.id,d.target.checked)}),(0,E.jsxs)("div",{className:"cp-broadcast-modal-node-info",children:[(0,E.jsx)("span",{className:"cp-broadcast-modal-node-name",children:f.name}),(0,E.jsx)("span",{className:"cp-broadcast-modal-node-url",children:f.baseUrl}),f.tags.length>0&&(0,E.jsx)("span",{className:"cp-broadcast-modal-node-tags",children:f.tags.join(", ")})]})]},f.id))})]})]})]})})},P0=({config:t})=>{let e=Bb(t),n=(0,lt.useMemo)(()=>I0(e),[e]),[i,l]=(0,lt.useState)([]),[r,a]=(0,lt.useState)({}),[o,u]=(0,lt.useState)(!1),[s,c]=(0,lt.useState)(null),[f,d]=(0,lt.useState)(""),[p,g]=(0,lt.useState)("all"),[b,T]=(0,lt.useState)(1),[m,h]=(0,lt.useState)(!1),[y,k]=(0,lt.useState)(null),[A,w]=(0,lt.useState)(new Set),[D,_]=(0,lt.useState)(null),[U,S]=(0,lt.useState)(!1),[nt,K]=(0,lt.useState)(!1),[Y,G]=(0,lt.useState)(!1),[W,gt]=(0,lt.useState)(!1),[vt,Vt]=(0,lt.useState)(null),[xe,v]=(0,lt.useState)(!1);(0,lt.useEffect)(()=>{if(typeof window>"u"||typeof window.matchMedia!="function")return;let N=window.matchMedia("(max-width: 768px)"),pt=St=>v(St.matches);return N.addEventListener("change",pt),v(N.matches),()=>N.removeEventListener("change",pt)},[]);let[Nt,Bt]=(0,lt.useState)("workers"),[x,zt]=(0,lt.useState)("list"),[H,F]=(0,lt.useState)(null),[j,L]=(0,lt.useState)(""),[$,dt]=(0,lt.useState)(""),{ordered:Tt,broadcastPrompt:Ft,forceCancel:Ye,forceRefresh:Wt,retryEndpoint:un,sendToEndpoint:Rn}=G0(i,e),fi=(0,lt.useMemo)(()=>vt?Tt.find(N=>N.endpoint.id===vt):null,[vt,Tt]),Gt=(0,lt.useMemo)(()=>H?Tt.find(N=>N.endpoint.id===H):null,[H,Tt]),Ee=(0,lt.useCallback)(async()=>{u(!0),c(null);try{let N=await n.list();l(N)}catch(N){c(N instanceof Error?N.message:"Failed to load endpoints")}finally{u(!1)}},[n]);(0,lt.useEffect)(()=>{Ee()},[Ee]);let Ve=(0,lt.useMemo)(()=>{let N=f.trim().toLowerCase();return i.filter(pt=>{if(N&&!`${pt.name} ${pt.baseUrl} ${pt.tags.join(" ")}`.toLowerCase().includes(N))return!1;if(p==="all")return!0;let St=r[pt.id];return St?p==="healthy"?St.ok:!St.ok:!1})},[i,f,p,r]),Le=Math.max(1,Math.ceil(Ve.length/Pd));(0,lt.useEffect)(()=>{b>Le&&T(Le)},[b,Le]),(0,lt.useEffect)(()=>{w(N=>{let pt=new Set;for(let St of N)i.some(Qt=>Qt.id===St)&&pt.add(St);return pt})},[i]);let Vn=(0,lt.useMemo)(()=>{let N=(b-1)*Pd;return Ve.slice(N,N+Pd)},[Ve,b]),Fn=N=>{k(N),h(!0)},Ll=async N=>{if(y){let St=await n.update(y.id,N);l(Qt=>Qt.map(Wd=>Wd.id===St.id?St:Wd)),k(St);return}let pt=await n.create(N);l(St=>[...St,pt])},pi=async N=>{window.confirm(`Delete endpoint "${N.name}"?`)&&(await n.remove(N.id),l(St=>St.filter(Qt=>Qt.id!==N.id)),a(St=>{let Qt={...St};return delete Qt[N.id],Qt}))},R=async N=>{a(pt=>({...pt,[N.id]:null}));try{let pt=await n.health(N.id);a(St=>({...St,[N.id]:pt}))}catch(pt){a(St=>({...St,[N.id]:{ok:!1,error:pt instanceof Error?pt.message:"Health check failed",durationMs:0}}))}},O=(N,pt)=>{w(St=>{let Qt=new Set(St);return pt?Qt.add(N):Qt.delete(N),Qt})},P=()=>w(new Set(i.map(N=>N.id))),rt=()=>w(new Set),C=N=>{let pt=A.size>0?Array.from(A):[];Ft(N,pt)},q=()=>{let N=$.trim();if(!N)return;let pt=A.size>0?Array.from(A):[];Ft(N,pt),dt("")},V=async N=>{for(let pt of N)await n.create(pt);await Ee()},Q=(0,lt.useCallback)(async()=>await n.getRawRegistryJson(),[n]),it=(0,lt.useCallback)(async N=>{await n.saveRawRegistryJson(N),await Ee()},[n,Ee]),ue=(0,lt.useCallback)((N,pt)=>{w(St=>{let Qt=new Set(St);return pt?Qt.add(N):Qt.delete(N),Qt})},[]),xt=N=>{F(N),L(""),zt("detail")},$t=()=>{zt("list"),F(null)},se=()=>{if(!Gt||Gt.connection!=="connected")return;let N=j.trim();N&&(Rn(Gt.endpoint.id,N),L(""))},Te=A.size>0?`${A.size} of ${i.length} selected`:`All ${i.length} workers`;return(0,E.jsxs)("div",{className:"app control-plane",children:[(0,E.jsx)(PC,{open:W,onClose:()=>gt(!1),endpoints:i,selectedIds:A,onToggle:O,onSelectAll:P,onClearAll:rt,onSend:C}),!xe&&(0,E.jsxs)("div",{className:"cp-header cp-header-pc",children:[(0,E.jsxs)("div",{children:[(0,E.jsx)("h1",{children:"Control Plane"}),(0,E.jsxs)("div",{className:"cp-subtitle",children:[i.length," endpoints registered"]})]}),(0,E.jsx)("div",{className:"cp-header-actions",children:(0,E.jsxs)("button",{className:"btn",onClick:()=>S(!U),children:[U?"Hide":"Show"," Endpoints"]})})]}),xe&&(0,E.jsx)("div",{className:"cp-header cp-header-mobile",children:x==="detail"&&Gt?(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)("button",{className:"cp-mobile-back-btn",onClick:$t,children:"\u2039 Back"}),(0,E.jsx)("span",{className:"cp-mobile-detail-title",style:{flex:1,minWidth:0},children:Gt.endpoint.name}),(0,E.jsxs)("div",{style:{display:"flex",gap:6},children:[(0,E.jsx)("button",{className:"btn danger",onClick:()=>Ye(Gt.endpoint.id),children:"Cancel"}),(0,E.jsx)("button",{className:"btn",onClick:()=>Wt(Gt.endpoint.id),children:"Refresh"})]})]}):(0,E.jsxs)("div",{children:[(0,E.jsx)("div",{className:"cp-mobile-header-title",children:Nt==="broadcast"?"Broadcast":Nt==="endpoints"?"Endpoints":"Control Plane"}),(0,E.jsx)("div",{className:"cp-subtitle",children:Nt==="broadcast"?A.size>0?`${A.size} of ${i.length} selected`:`${i.length} workers`:`${i.length} workers`})]})}),(0,E.jsxs)("div",{className:"cp-body",children:[(0,E.jsxs)("div",{className:"cp-sidebar",children:[(0,E.jsxs)("div",{className:"cp-sidebar-broadcast-section",children:[(0,E.jsx)("div",{className:"cp-sidebar-section-label",children:"Broadcast"}),(0,E.jsx)("div",{className:"cp-sidebar-broadcast-target",children:Te}),(0,E.jsx)("button",{className:"btn primary cp-sidebar-broadcast-btn",onClick:()=>gt(!0),disabled:i.length===0,children:"Broadcast\u2026"})]}),(0,E.jsxs)("div",{className:"cp-sidebar-section-label cp-sidebar-workers-label",children:["Workers",(0,E.jsx)("span",{className:"cp-sidebar-workers-count",children:Tt.length})]}),(0,E.jsx)("div",{className:"cp-sidebar-workers",children:Tt.length===0?(0,E.jsx)("div",{className:"cp-empty",style:{padding:"8px 12px"},children:"No workers yet."}):Tt.map(N=>{let pt=N.connection==="connected"?N.isBusy?"busy":"idle":"disc",St=vt===N.endpoint.id;return(0,E.jsxs)("div",{className:`cp-sidebar-worker-item${St?" active":""}`,onClick:()=>Vt(N.endpoint.id),children:[(0,E.jsx)("input",{type:"checkbox","aria-hidden":"true",tabIndex:-1,checked:A.has(N.endpoint.id),onClick:Qt=>Qt.stopPropagation(),onChange:Qt=>ue(N.endpoint.id,Qt.target.checked)}),(0,E.jsxs)("div",{className:"cp-sidebar-worker-info",children:[(0,E.jsx)("span",{className:"cp-sidebar-worker-name",children:N.endpoint.name}),(0,E.jsx)("span",{className:"cp-sidebar-worker-url",children:N.endpoint.baseUrl}),N.endpoint.tags.length>0&&(0,E.jsx)("span",{className:"cp-sidebar-worker-tags",children:N.endpoint.tags.join(" \xB7 ")})]}),(0,E.jsx)("span",{className:`cp-conn ${N.connection} cp-sidebar-worker-status`,children:pt})]},N.endpoint.id)})})]}),(0,E.jsx)("div",{className:"cp-main",children:(0,E.jsxs)("div",{className:"cp-workers",children:[(0,E.jsx)("div",{className:"cp-workers-header",children:"Workers"}),Tt.length===0?(0,E.jsx)("div",{className:"cp-empty",style:{padding:"12px 16px"},children:"No workers yet. Add endpoints from the Endpoints panel."}):(0,E.jsx)("div",{className:"cp-worker-grid",children:Tt.map(N=>(0,E.jsx)(Kd,{state:N,selected:A.has(N.endpoint.id),onSelect:ue,onClick:Vt,onForceCancel:Ye,onForceRefresh:Wt,onRetry:un,onSendPrompt:Rn,onOpenDiff:_},N.endpoint.id))})]})}),Nt==="workers"&&x==="list"&&(0,E.jsx)("div",{className:"cp-mobile-list",children:Tt.length===0?(0,E.jsx)("div",{className:"cp-empty",children:"No workers yet."}):Tt.map(N=>(0,E.jsx)(Kd,{state:N,selected:A.has(N.endpoint.id),onSelect:ue,onClick:xt,onForceCancel:Ye,onForceRefresh:Wt,onRetry:un,onSendPrompt:Rn,onOpenDiff:_,compact:!0},N.endpoint.id))}),Nt==="workers"&&x==="detail"&&Gt&&(0,E.jsxs)("div",{className:"cp-mobile-detail",children:[Gt.lastError&&(0,E.jsxs)("div",{className:"cp-task-error",children:["Last error: ",Gt.lastError]}),(0,E.jsx)("div",{className:"cp-mobile-detail-feed",children:(0,E.jsx)(Vr,{feed:Gt.feed,tools:Gt.tools,onOpenDiff:_})}),(0,E.jsx)("div",{className:"cp-mobile-detail-input",children:(0,E.jsx)(Zi,{value:j,textareaClassName:"cp-mobile-detail-textarea",placeholder:"Send a prompt...",onChange:N=>L(N.target.value),onSubmit:se,submitClassName:"btn primary cp-mobile-detail-send",submitDisabled:!j.trim()||Gt.connection!=="connected",submitLabel:"Send"})})]}),Nt==="broadcast"&&(0,E.jsxs)("div",{className:"cp-mobile-broadcast-tab",children:[(0,E.jsxs)("div",{className:"cp-broadcast-sheet-nodes",children:[(0,E.jsxs)("div",{className:"cp-broadcast-sheet-nodes-header",children:[(0,E.jsx)("span",{className:"cp-broadcast-sheet-subtitle",children:A.size>0?`${A.size} of ${i.length} selected`:`All ${i.length} workers`}),(0,E.jsxs)("div",{style:{display:"flex",gap:6},children:[(0,E.jsx)("button",{className:"btn",onClick:P,children:"All"}),(0,E.jsx)("button",{className:"btn",onClick:rt,children:"None"})]})]}),(0,E.jsx)("div",{className:"cp-broadcast-sheet-node-list",children:i.map(N=>(0,E.jsxs)("label",{className:"cp-broadcast-sheet-node-item",children:[(0,E.jsx)("input",{type:"checkbox",checked:A.has(N.id),onChange:pt=>O(N.id,pt.target.checked)}),(0,E.jsxs)("div",{className:"cp-broadcast-sheet-node-info",children:[(0,E.jsx)("span",{className:"cp-broadcast-sheet-node-name",children:N.name}),(0,E.jsx)("span",{className:"cp-broadcast-sheet-node-url",children:N.baseUrl})]})]},N.id))})]}),(0,E.jsxs)("div",{className:"cp-broadcast-sheet-compose",children:[(0,E.jsx)("textarea",{className:"cp-broadcast-sheet-textarea",placeholder:"Type a prompt...",value:$,onChange:N=>dt(N.target.value)}),(0,E.jsx)("div",{className:"cp-broadcast-sheet-footer",children:(0,E.jsx)("button",{className:"btn primary",onClick:q,disabled:!$.trim()||i.length===0,children:"Send"})})]})]}),Nt==="endpoints"&&(0,E.jsxs)("div",{className:"cp-mobile-endpoints-tab",children:[(0,E.jsxs)("div",{className:"cp-mobile-endpoints-toolbar",children:[(0,E.jsxs)("div",{style:{display:"flex",gap:8,flexWrap:"wrap"},children:[(0,E.jsx)("button",{className:"btn",onClick:()=>K(!0),children:"Batch add"}),(0,E.jsx)("button",{className:"btn",onClick:()=>G(!0),children:"Edit JSON"}),(0,E.jsx)("button",{className:"btn primary",onClick:()=>Fn(null),children:"Add"})]}),(0,E.jsxs)("div",{style:{display:"flex",gap:8,marginTop:8},children:[(0,E.jsx)("input",{className:"cp-input",placeholder:"Search...",value:f,onChange:N=>d(N.target.value),style:{flex:1}}),(0,E.jsx)("button",{className:"btn",onClick:()=>void Ee(),children:"Refresh"})]})]}),s&&(0,E.jsx)("div",{className:"cp-error",style:{padding:"0 14px"},children:s}),o&&(0,E.jsx)("div",{className:"cp-loading",style:{padding:"0 14px"},children:"Loading..."}),(0,E.jsx)("div",{style:{flex:1,overflow:"auto",padding:"8px 14px"},children:(0,E.jsx)(Zd,{endpoints:Vn,healthById:r,onEdit:Fn,onDelete:pi,onRefreshHealth:R,selectedIds:A,onToggleSelect:O})}),(0,E.jsxs)("div",{className:"cp-pagination",children:[(0,E.jsxs)("div",{className:"cp-page-info",children:[Vn.length," / ",Ve.length]}),(0,E.jsxs)("div",{className:"cp-page-controls",children:[(0,E.jsx)("button",{className:"btn",onClick:()=>T(N=>Math.max(1,N-1)),disabled:b<=1,children:"Prev"}),(0,E.jsxs)("span",{className:"cp-page-number",children:[b," / ",Le]}),(0,E.jsx)("button",{className:"btn",onClick:()=>T(N=>Math.min(Le,N+1)),disabled:b>=Le,children:"Next"})]})]})]})]}),(0,E.jsxs)("nav",{className:"cp-mobile-tab-bar",children:[(0,E.jsxs)("button",{className:`cp-mobile-tab${Nt==="workers"?" active":""}`,onClick:()=>{Bt("workers"),zt("list")},children:[(0,E.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,E.jsx)("rect",{x:"2",y:"3",width:"20",height:"14",rx:"2"}),(0,E.jsx)("path",{d:"M8 21h8M12 17v4"})]}),(0,E.jsx)("span",{children:"Workers"})]}),(0,E.jsxs)("button",{className:`cp-mobile-tab${Nt==="broadcast"?" active":""}`,onClick:()=>{Bt("broadcast"),zt("list")},children:[(0,E.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:(0,E.jsx)("path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07A19.5 19.5 0 0 1 4.69 12a19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 3.62 1h3a2 2 0 0 1 2 1.72c.127.96.361 1.903.7 2.81a2 2 0 0 1-.45 2.11L7.91 8.69a16 16 0 0 0 6 6l.96-.96a2 2 0 0 1 2.11-.45c.907.339 1.85.573 2.81.7A2 2 0 0 1 22 16.92z"})}),(0,E.jsx)("span",{children:"Broadcast"}),A.size>0&&(0,E.jsx)("span",{className:"cp-mobile-tab-badge",children:A.size})]}),(0,E.jsxs)("button",{className:`cp-mobile-tab${Nt==="endpoints"?" active":""}`,onClick:()=>{Bt("endpoints"),zt("list")},children:[(0,E.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,E.jsx)("circle",{cx:"12",cy:"12",r:"3"}),(0,E.jsx)("path",{d:"M19.07 4.93a10 10 0 0 1 0 14.14M4.93 4.93a10 10 0 0 0 0 14.14"})]}),(0,E.jsx)("span",{children:"Endpoints"})]})]}),U&&(0,E.jsx)("div",{className:"cp-drawer-backdrop",onClick:()=>S(!1)}),(0,E.jsxs)("div",{className:`cp-drawer ${U?"open":""}`,children:[(0,E.jsxs)("div",{className:"cp-drawer-header",children:[(0,E.jsx)("h2",{children:"Endpoints"}),(0,E.jsxs)("div",{style:{display:"flex",gap:8,flexWrap:"wrap"},children:[(0,E.jsx)("button",{className:"btn",onClick:()=>S(!1),children:"Close"}),(0,E.jsx)("button",{className:"btn",onClick:()=>K(!0),children:"Batch add"}),(0,E.jsx)("button",{className:"btn",onClick:()=>G(!0),children:"Edit JSON"}),(0,E.jsx)("button",{className:"btn primary",onClick:()=>Fn(null),children:"Add"})]})]}),(0,E.jsxs)("div",{className:"cp-drawer-toolbar",children:[(0,E.jsx)("input",{className:"cp-input",placeholder:"Search...",value:f,onChange:N=>d(N.target.value)}),(0,E.jsxs)("select",{className:"cp-select",value:p,onChange:N=>g(N.target.value),children:[(0,E.jsx)("option",{value:"all",children:"All"}),(0,E.jsx)("option",{value:"healthy",children:"Healthy"}),(0,E.jsx)("option",{value:"unhealthy",children:"Unhealthy"})]}),(0,E.jsx)("button",{className:"btn",onClick:()=>void Ee(),children:"Refresh"})]}),s&&(0,E.jsx)("div",{className:"cp-error",children:s}),o&&(0,E.jsx)("div",{className:"cp-loading",children:"Loading..."}),(0,E.jsx)("div",{className:"cp-drawer-content",children:(0,E.jsx)(Zd,{endpoints:Vn,healthById:r,onEdit:Fn,onDelete:pi,onRefreshHealth:R,selectedIds:A,onToggleSelect:O})}),(0,E.jsxs)("div",{className:"cp-pagination",children:[(0,E.jsxs)("div",{className:"cp-page-info",children:[Vn.length," / ",Ve.length]}),(0,E.jsxs)("div",{className:"cp-page-controls",children:[(0,E.jsx)("button",{className:"btn",onClick:()=>T(N=>Math.max(1,N-1)),disabled:b<=1,children:"Prev"}),(0,E.jsxs)("span",{className:"cp-page-number",children:[b," / ",Le]}),(0,E.jsx)("button",{className:"btn",onClick:()=>T(N=>Math.min(Le,N+1)),disabled:b>=Le,children:"Next"})]})]})]}),(0,E.jsx)(j0,{open:m,endpoint:y,onClose:()=>h(!1),onSave:Ll}),(0,E.jsx)(V0,{open:nt,onClose:()=>K(!1),onSubmit:V}),(0,E.jsx)(Q0,{open:Y,onClose:()=>G(!1),onLoad:Q,onSave:it}),fi&&(0,E.jsx)(K0,{open:!!fi,onClose:()=>Vt(null),state:fi,onSendPrompt:Rn,onForceCancel:Ye,onForceRefresh:Wt,onRetry:un,onOpenDiff:_}),D&&(0,E.jsx)(Ir,{title:D.title,oldText:D.oldText,newText:D.newText,onClose:()=>_(null)})]})};var yt=I(tt(),1);function JC(t){return t?t.split("|").map(e=>e.trim()).filter(e=>e.length>0):[]}function WC(t){let e=[],n=/(^|\s)@([^\s]+)/g,i;for(;(i=n.exec(t))!==null;){let r=(i[2]??"").replace(/[),.;:!?]+$/g,"");r.length>0&&e.push(r)}return Array.from(new Set(e))}function $C(t){return t.kind==="tool"}function t2(t){return t.kind==="message"}var e2=({config:t})=>{let{connection:e,auth:n,availableCommands:i,planEntries:l,feed:r,tools:a,connect:o,sendPrompt:u,suggestPaths:s,completeSlashCommand:c,authenticate:f,statusText:d,permissionReq:p,resolvePermission:g,inputReq:b,resolveInput:T,isBusy:m,cancel:h}=q0({cwd:t.cwd??"",wsPath:t.wsPath??"/ws",yolo:!!t.yolo}),[y,k]=(0,bt.useState)(!1),A=(0,bt.useRef)(null);bt.default.useEffect(()=>(A.current&&clearTimeout(A.current),m?(k(!1),A.current=setTimeout(()=>{k(!0)},500)):k(!1),()=>{A.current&&clearTimeout(A.current)}),[m,r,a]);let[w,D]=(0,bt.useState)(null),_=(0,bt.useRef)(null),[U,S]=(0,bt.useState)("");B0(_,[U]);let[nt,K]=(0,bt.useState)([]),Y=C=>{C.preventDefault();let q=C.dataTransfer;if(q.files&&q.files.length>0){let Q=Array.from(q.files).map(it=>({id:`file-${Date.now()}-${Math.random().toString(36).slice(2)}`,type:"file",label:it.name,uri:it.name}));K(it=>[...it,...Q]);return}let V=q.getData("text");if(V){let Q=/^https?:\/\//.test(V);K(it=>[...it,{id:`ref-${Date.now()}-${Math.random().toString(36).slice(2)}`,type:Q?"link":"default",label:V.length>30?V.slice(0,30)+"...":V,uri:V}])}},G=C=>{K(q=>q.filter(V=>V.id!==C))},[W,gt]=(0,bt.useState)(!1),[vt,Vt]=(0,bt.useState)(0),[xe,v]=(0,bt.useState)(!1),[Nt,Bt]=(0,bt.useState)(0),[x,zt]=(0,bt.useState)([]),H=(0,bt.useRef)(0),F=(0,bt.useMemo)(()=>{let C=U.trimStart();if(!C.startsWith("/"))return[];let q=C.slice(1),V=/\s$/.test(q),Q=q.split(/\s+/).filter(xt=>xt.length>0),it=Q,ue="";if(!V&&Q.length>0&&(ue=Q[Q.length-1]??"",it=Q.slice(0,-1)),it.length===0){let xt=ue;return(i??[]).filter($t=>$t&&$t.name&&$t.name.startsWith(xt)).slice(0,10)}if(it.length===1){let xt=it[0]??"",$t=(i??[]).find(N=>N.name===xt),se=JC($t?.input?.hint??null);if(se.length===0)return[];let Te=ue;return se.filter(N=>N.startsWith(Te)).slice(0,10).map(N=>({name:`${xt} ${N}`,description:$t?.description??""}))}return[]},[i,U]),[j,L]=(0,bt.useState)(!1),[$,dt]=(0,bt.useState)(0),[Tt,Ft]=(0,bt.useState)([]),[Ye,Wt]=(0,bt.useState)(null),un=(0,bt.useRef)(null),Rn=(0,bt.useRef)(0),fi=(C,q)=>{let V=C.slice(0,q),Q=V.lastIndexOf("@");if(Q<0||Q>0&&!/\s/.test(V[Q-1]??""))return null;let it=V.slice(Q+1);return/\s/.test(it)?null:{start:Q,end:q,query:it}},Gt=j&&Tt.length>0,Ee=xe&&x.length>0&&!Gt,Ve=W&&F.length>0&&!Gt&&!Ee;bt.default.useEffect(()=>{let C=U.trimStart();if(!C.startsWith("/")){v(!1),zt(Te=>Te.length===0?Te:[]),Bt(0);return}let q=C.slice(1),V=/\s$/.test(q),Q=q.split(/\s+/).filter(Te=>Te.length>0);if(Q.length<2){v(!1),zt(Te=>Te.length===0?Te:[]),Bt(0);return}let it=Q.slice(2),ue=it.length===0&&V,xt=it.length===1&&!V;if(!ue&&!xt){v(!1),zt(Te=>Te.length===0?Te:[]),Bt(0);return}let $t=++H.current,se=setTimeout(()=>{(async()=>{let Te=await c(C,10);if($t!==H.current)return;let N=V?it:it.slice(0,-1),pt=[...Q.slice(0,2),...N].join(" ").trim(),St=Te.map(Qt=>({name:`${pt} ${Qt}`.trim(),description:""}));zt(St),Bt(0),v(St.length>0)})()},120);return()=>clearTimeout(se)},[c,U]),bt.default.useEffect(()=>{if(!j||Ye===null)return;let C=++Rn.current,q=setTimeout(()=>{(async()=>{let V=await s(Ye,10);C===Rn.current&&(Ft(V),dt(0))})()},120);return()=>clearTimeout(q)},[Ye,j,s]);let Le=C=>{let q=F[C];if(!q)return;let V=U.match(/^\s*/)?.[0]??"";S(`${V}/${q.name} `),gt(!1),Vt(0),setTimeout(()=>_.current?.focus(),0)},Vn=C=>{let q=x[C];if(!q)return;let V=U.match(/^\s*/)?.[0]??"";S(`${V}/${q.name} `),v(!1),Bt(0),setTimeout(()=>_.current?.focus(),0)},Fn=C=>{let q=Tt[C],V=un.current;if(!q||!V)return;let Q=U.slice(0,V.start),it=U.slice(V.end),ue=`@${q} `,xt=`${Q}${ue}${it}`;S(xt),L(!1),Ft([]),dt(0),Wt(null),un.current=null,setTimeout(()=>{let $t=_.current;if(!$t)return;$t.focus();let se=Q.length+ue.length;$t.setSelectionRange(se,se)},0)},Ll=async()=>{let C=U.trim();if(!C&&nt.length===0)return;let q=[],Q=C||(nt.length>0?"Attached references.":"");if(nt.length>0){let it=nt.map(xt=>`[${xt.label}](${xt.uri})`).join(" ");nt.some(xt=>xt.type!=="file")&&(Q=`${Q}
|
|
59
59
|
|
|
60
|
-
References: ${it}`.trim())}S(""),K([]),
|
|
60
|
+
References: ${it}`.trim())}S(""),K([]),gt(!1),Vt(0),L(!1),Ft([]),dt(0),Wt(null),un.current=null,q.push({type:"text",text:Q});for(let it of WC(Q))q.push({type:"resource_link",uri:`file://${it}`,name:it});for(let it of nt)it.type==="file"&&q.push({type:"resource_link",uri:`file://${it.uri}`,name:it.label||it.uri});await u({displayText:Q,prompt:q})},pi=(0,bt.useRef)(null),R=(0,bt.useRef)(null),O=(0,bt.useRef)(!0),P=()=>{pi.current&&pi.current.scrollIntoView({behavior:"auto",block:"end"})},rt=(C,q=100)=>{let{scrollTop:V,scrollHeight:Q,clientHeight:it}=C;return Q-V-it<q};return bt.default.useEffect(()=>{let C=R.current;if(!C)return;let q=()=>{O.current=rt(C)};return C.addEventListener("scroll",q,{passive:!0}),()=>C.removeEventListener("scroll",q)},[]),bt.default.useLayoutEffect(()=>{O.current&&P()},[r,a]),bt.default.useEffect(()=>{if(e!=="disconnected")return;let C=setTimeout(()=>{o()},3e3);return()=>clearTimeout(C)},[e,o]),(0,yt.jsxs)("div",{className:"app",children:[(0,yt.jsxs)("div",{className:"main",children:[(0,yt.jsxs)("div",{className:"content",ref:R,children:[r.map(C=>{if(t2(C)){let q=C.message;return(0,yt.jsx)(As,{message:q},q.id)}if($C(C)){let q=a.find(V=>V.toolCallId===C.toolCallId);return q?(0,yt.jsx)(Rs,{tool:q,onOpenDiff:V=>D(V)},`tool_${C.toolCallId}`):null}return null}),y&&(0,yt.jsx)("div",{className:"planning-indicator",children:l.find(C=>C.status==="in_progress")?.content||l.find(C=>C.status==="pending")?.content||"Planning next moves\u2026"}),(0,yt.jsx)("div",{ref:pi,style:{height:20}})]}),(0,yt.jsx)("div",{className:"composer",children:(0,yt.jsxs)("div",{className:"composer-inner",children:[(0,yt.jsxs)("div",{className:"input-wrap",onDragOver:C=>C.preventDefault(),onDrop:Y,children:[nt.length>0&&(0,yt.jsx)("div",{className:"composer-references",children:nt.map(C=>(0,yt.jsxs)("div",{className:`ref-chip ${C.type}`,children:[(0,yt.jsx)("span",{className:"ref-label",children:C.label}),(0,yt.jsx)("button",{className:"ref-remove",onClick:()=>G(C.id),children:"\xD7"})]},C.id))}),Gt?(0,yt.jsx)(N0,{items:Tt,activeIndex:$,onPick:Fn,onHover:C=>dt(C)}):null,Ee?(0,yt.jsx)(Gd,{items:x,activeIndex:Nt,onPick:Vn,onHover:C=>Bt(C)}):null,Ve?(0,yt.jsx)(Gd,{items:F,activeIndex:vt,onPick:Le,onHover:C=>Vt(C)}):null,(0,yt.jsx)(Zi,{textareaRef:_,value:U,placeholder:"Type a message\u2026 (use / for commands, @ for paths)",onChange:C=>{let q=C.target.value;S(q),gt(!0);let V=C.target.selectionStart??q.length,Q=fi(q,V);un.current=Q,Wt(Q?Q.query:null),L(!!Q),Q||(Ft([]),dt(0))},onKeyDown:C=>{if(Gt&&(C.key==="ArrowDown"||C.key==="ArrowUp")){C.preventDefault();let q=C.key==="ArrowDown"?1:-1,V=Tt.length;V>0&&dt(Q=>(Q+q+V)%V);return}if(Gt&&(C.key==="Tab"||C.key==="Enter"&&!C.shiftKey)){C.preventDefault(),Fn($);return}if(Ee&&(C.key==="ArrowDown"||C.key==="ArrowUp")){C.preventDefault();let q=C.key==="ArrowDown"?1:-1,V=x.length;V>0&&Bt(Q=>(Q+q+V)%V);return}if(Ee&&(C.key==="Tab"||C.key==="Enter"&&!C.shiftKey)){C.preventDefault(),Vn(Nt);return}if(Ve&&(C.key==="ArrowDown"||C.key==="ArrowUp")){C.preventDefault();let q=C.key==="ArrowDown"?1:-1,V=F.length;V>0&&Vt(Q=>(Q+q+V)%V);return}if(Ve&&C.key==="Tab"){C.preventDefault(),Le(vt);return}if(Ve&&C.key==="Enter"&&!C.shiftKey){C.preventDefault(),Le(vt);return}if(C.key==="Escape"){Gt?(L(!1),Ft([]),dt(0),Wt(null),un.current=null):Ve?(gt(!1),Vt(0)):Ee?(v(!1),zt([]),Bt(0)):m&&h();return}C.key==="Enter"&&!C.shiftKey&&(C.preventDefault(),Ll())},isBusy:m,onSubmit:()=>void Ll(),onCancel:h})]}),(0,yt.jsxs)("div",{className:"composer-footer",children:[(0,yt.jsxs)("div",{className:"workspace-info",title:t.cwd,children:["Workspace: ",t.cwd||"(unknown)"]}),(0,yt.jsxs)("div",{className:"composer-footer-right",children:[(0,yt.jsx)("div",{className:"hint",children:"Enter to send \xB7 Shift+Enter for newline \xB7 \u2191/\u2193 to pick command"}),(0,yt.jsxs)("div",{className:"status-bar",onClick:()=>void o(),children:[e==="disconnected"&&(0,yt.jsx)("span",{className:"status-text",children:d||"Disconnected"}),(0,yt.jsx)("div",{className:`status-dot ${e}`,title:d||e})]})]})]})]})})]}),w?(0,yt.jsx)(Ir,{title:w.title,oldText:w.oldText,newText:w.newText,onClose:()=>D(null)}):null,p?(0,yt.jsx)(D0,{req:p,onSelect:C=>{if(C.outcome==="cancelled"){g({outcome:{outcome:"cancelled"}});return}g({outcome:{outcome:"selected",optionId:C.optionId},...C.meta?{_meta:C.meta}:{}})}}):null,b?(0,yt.jsx)(_0,{params:b,onDone:C=>{T(C)}}):null,n.open?(0,yt.jsx)(O0,{methods:n.methods,onPick:C=>void f(C),onClose:()=>{console.warn("Auth dialog closed by user")}}):null]})},J0=()=>{let t=Ob();return Lb(t)==="control-plane"?(0,yt.jsx)(P0,{config:t}):(0,yt.jsx)(e2,{config:t})};var Jd=I(tt(),1);var tx=document.getElementById("app");if(!tx)throw new Error("Missing #app container");(0,$0.createRoot)(tx).render((0,Jd.jsx)(W0.default.StrictMode,{children:(0,Jd.jsx)(J0,{})}));
|
|
61
61
|
/**
|
|
62
62
|
* @license
|
|
63
63
|
* Copyright 2025 Codely
|