symbio 0.4.0 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +20 -0
- package/README.md +12 -3
- package/dist/server/api.js +33 -1
- package/dist/server/docs.js +49 -2
- package/dist/server/guard.js +21 -0
- package/dist/server/images.js +54 -0
- package/dist/server/mcp.js +2 -2
- package/dist/server/prompts.js +50 -0
- package/dist/server/rules.js +191 -0
- package/dist/server/store.js +5 -0
- package/dist/server/team.js +98 -2
- package/dist/server/tools.js +101 -2
- package/dist/server/updates.js +16 -0
- package/dist/server/workspaces.js +14 -0
- package/dist/web/assets/{index-BM4oACfZ.css → index-CtcmbMmw.css} +1 -1
- package/dist/web/assets/index-yZ8d_EGH.js +53 -0
- package/dist/web/index.html +2 -2
- package/package.json +2 -1
- package/dist/web/assets/index-DhB0EhFQ.js +0 -52
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t,t.exports),e=null),t.exports),s=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},c=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},l=(n,r,o)=>(o=n==null?{}:e(i(n)),c(r||!n||!n.__esModule||!a.call(n,`default`)?t(o,`default`,{value:n,enumerable:!0}):o,n));(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var u=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.activity`),p=Symbol.for(`react.view_transition`),m=Symbol.iterator;function h(e){return typeof e!=`object`||!e?null:(e=m&&e[m]||e[`@@iterator`],typeof e==`function`?e:null)}var g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,v={};function y(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||g}y.prototype.isReactComponent={},y.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=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,e,t,`setState`)},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function b(){}b.prototype=y.prototype;function x(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||g}var S=x.prototype=new b;S.constructor=x,_(S,y.prototype),S.isPureReactComponent=!0;var C=Array.isArray;function w(){}var T={H:null,A:null,T:null,S:null},E=Object.prototype.hasOwnProperty;function D(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function O(e,t){return D(e.type,t,e.props)}function ee(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function te(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var ne=/\/+/g;function re(e,t){return typeof e==`object`&&e&&e.key!=null?te(``+e.key):t.toString(36)}function k(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(w,w):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function ie(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`bigint`:case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0;break;case d:return c=e._init,ie(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+re(e,0):a,C(o)?(i=``,c!=null&&(i=c.replace(ne,`$&/`)+`/`),ie(o,r,i,``,function(e){return e})):o!=null&&(ee(o)&&(o=O(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(ne,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(C(e))for(var u=0;u<e.length;u++)a=e[u],s=l+re(a,u),c+=ie(a,r,i,s,o);else if(u=h(e),typeof u==`function`)for(e=u.call(e),u=0;!(a=e.next()).done;)a=a.value,s=l+re(a,u++),c+=ie(a,r,i,s,o);else if(s===`object`){if(typeof e.then==`function`)return ie(k(e),r,i,a,o);throw r=String(e),Error(`Objects are not valid as a React child (found: `+(r===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:r)+`). If you meant to render a collection of children, use an array instead.`)}return c}function A(e,t,n){if(e==null)return e;var r=[],i=0;return ie(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function ae(e){if(e._status===-1){var t=e._result,n=t();n.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t,n.status===void 0&&(n.status=`fulfilled`,n.value=t))},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t,n.status===void 0&&(n.status=`rejected`,n.reason=t))}),e._status===-1&&(e._status=0,e._result=n)}if(e._status===1)return e._result.default;throw e._result}var oe=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)};function se(e){var t=T.T,n={};n.types=t===null?null:t.types,T.T=n;try{var r=e(),i=T.S;i!==null&&i(n,r),typeof r==`object`&&r&&typeof r.then==`function`&&r.then(w,oe)}catch(e){oe(e)}finally{t!==null&&n.types!==null&&(t.types=n.types),T.T=t}}function ce(e){var t=T.T;if(t!==null){var n=t.types;n===null?t.types=[e]:n.indexOf(e)===-1&&n.push(e)}else se(ce.bind(null,e))}var le={map:A,forEach:function(e,t,n){A(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return A(e,function(){t++}),t},toArray:function(e){return A(e,function(e){return e})||[]},only:function(e){if(!ee(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=f,e.Children=le,e.Component=y,e.Fragment=r,e.Profiler=a,e.PureComponent=x,e.StrictMode=i,e.Suspense=l,e.ViewTransition=p,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=T,e.__COMPILER_RUNTIME={__proto__:null,c:function(e){return T.H.useMemoCache(e)}},e.addTransitionType=ce,e.cache=function(e){return function(){return e.apply(null,arguments)}},e.cacheSignal=function(){return null},e.cloneElement=function(e,t,n){if(e==null)throw Error(`The argument must be a React element, but you passed `+e+`.`);var r=_({},e.props),i=e.key;if(t!=null)for(a in t.key!==void 0&&(i=``+t.key),t)!E.call(t,a)||a===`key`||a===`__self`||a===`__source`||a===`ref`&&t.ref===void 0||(r[a]=t[a]);var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){for(var o=Array(a),s=0;s<a;s++)o[s]=arguments[s+2];r.children=o}return D(e.type,i,r)},e.createContext=function(e){return e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:o,_context:e},e},e.createElement=function(e,t,n){var r,i={},a=null;if(t!=null)for(r in t.key!==void 0&&(a=``+t.key),t)E.call(t,r)&&r!==`key`&&r!==`__self`&&r!==`__source`&&(i[r]=t[r]);var o=arguments.length-2;if(o===1)i.children=n;else if(1<o){for(var s=Array(o),c=0;c<o;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(r in o=e.defaultProps,o)i[r]===void 0&&(i[r]=o[r]);return D(e,a,i)},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=ee,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:ae}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=se,e.unstable_useCacheRefresh=function(){return T.H.useCacheRefresh()},e.use=function(e){return T.H.use(e)},e.useActionState=function(e,t,n){return T.H.useActionState(e,t,n)},e.useCallback=function(e,t){return T.H.useCallback(e,t)},e.useContext=function(e){return T.H.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e,t){return T.H.useDeferredValue(e,t)},e.useEffect=function(e,t){return T.H.useEffect(e,t)},e.useEffectEvent=function(e){return T.H.useEffectEvent(e)},e.useId=function(){return T.H.useId()},e.useImperativeHandle=function(e,t,n){return T.H.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return T.H.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return T.H.useLayoutEffect(e,t)},e.useMemo=function(e,t){return T.H.useMemo(e,t)},e.useOptimistic=function(e,t){return T.H.useOptimistic(e,t)},e.useReducer=function(e,t,n){return T.H.useReducer(e,t,n)},e.useRef=function(e){return T.H.useRef(e)},e.useState=function(e){return T.H.useState(e)},e.useSyncExternalStore=function(e,t,n){return T.H.useSyncExternalStore(e,t,n)},e.useTransition=function(){return T.H.useTransition()},e.version=`19.3.1`})),d=o(((e,t)=>{t.exports=u()})),f=o((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m){if(n(c)!==null)m=!0,S||(S=!0,O());else{var t=n(l);t!==null&&ne(x,t.startTime-e)}}}var S=!1,C=-1,w=5,T=-1;function E(){return g?!0:!(e.unstable_now()-T<w)}function D(){if(g=!1,S){var t=e.unstable_now();T=t;var i=!0;try{a:{m=!1,h&&(h=!1,v(C),C=-1),p=!0;var a=f;try{b:{for(b(t),d=n(c);d!==null&&!(d.expirationTime>t&&E());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&ne(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?O():S=!1}}}var O;if(typeof y==`function`)O=function(){y(D)};else if(typeof MessageChannel<`u`){var ee=new MessageChannel,te=ee.port2;ee.port1.onmessage=D,O=function(){te.postMessage(null)}}else O=function(){_(D,0)};function ne(t,n){C=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):w=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_requestPaint=function(){g=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(C),C=-1):h=!0,ne(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,O()))),r},e.unstable_shouldYield=E,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),p=o(((e,t)=>{t.exports=f()})),m=o((e=>{var t=d();function n(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function r(){}var i={d:{f:r,r:function(){throw Error(n(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},a=Symbol.for(`react.portal`),o=Symbol.for(`react.recoverable`),s=Symbol.for(`react.optimistic_key`);function c(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:r==null?null:r===s?s:``+r,children:e,containerInfo:t,implementation:n}}var l=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function u(e,t){if(e===`font`)return``;if(typeof t==`string`)return t===`use-credentials`?t:``}e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,e.browser=function(e){return{$$typeof:o,_reason:e}},e.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(n(299));return c(e,t,null,r)},e.flushSync=function(e){var t=l.T,n=i.p;try{if(l.T=null,i.p=2,e)return e()}finally{l.T=t,i.p=n,i.d.f()}},e.preconnect=function(e,t){typeof e==`string`&&(t?(t=t.crossOrigin,t=typeof t==`string`?t===`use-credentials`?t:``:void 0):t=null,i.d.C(e,t))},e.prefetchDNS=function(e){typeof e==`string`&&i.d.D(e)},e.preinit=function(e,t){if(typeof e==`string`&&t&&typeof t.as==`string`){var n=t.as,r=u(n,t.crossOrigin),a=typeof t.integrity==`string`?t.integrity:void 0,o=typeof t.fetchPriority==`string`?t.fetchPriority:void 0;n===`style`?i.d.S(e,typeof t.precedence==`string`?t.precedence:void 0,{crossOrigin:r,integrity:a,fetchPriority:o}):n===`script`&&i.d.X(e,{crossOrigin:r,integrity:a,fetchPriority:o,nonce:typeof t.nonce==`string`?t.nonce:void 0})}},e.preinitModule=function(e,t){if(typeof e==`string`){if(typeof t==`object`&&t){if(t.as==null||t.as===`script`){var n=u(t.as,t.crossOrigin);i.d.M(e,{crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0})}}else t??i.d.M(e)}},e.preload=function(e,t){if(typeof e==`string`&&typeof t==`object`&&t&&typeof t.as==`string`){var n=t.as,r=u(n,t.crossOrigin);i.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,type:typeof t.type==`string`?t.type:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==`string`?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==`string`?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==`string`?t.imageSizes:void 0,media:typeof t.media==`string`?t.media:void 0})}},e.preloadModule=function(e,t){if(typeof e==`string`){if(t){var n=u(t.as,t.crossOrigin);i.d.m(e,{as:typeof t.as==`string`&&t.as!==`script`?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0})}else i.d.m(e)}},e.requestFormReset=function(e){i.d.r(e)},e.unstable_batchedUpdates=function(e,t){return e(t)},e.useFormState=function(e,t,n){return l.H.useFormState(e,t,n)},e.useFormStatus=function(){return l.H.useHostTransitionStatus()},e.version=`19.3.1`})),h=o(((e,t)=>{function n(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE==`function`)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=m()})),g=o((e=>{var t=p(),n=d(),r=h();function i(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function a(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function o(e){for(var t=e,n=t;n&&!n.alternate;)t=n,t.flags&4098&&(e=t.return),n=t.return;for(;t.return;)t=t.return;return t.tag===3?e:null}function s(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function c(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function l(e){if(o(e)!==e)throw Error(i(188))}function u(e){var t=e.alternate;if(!t){if(t=o(e),t===null)throw Error(i(188));return t===e?e:null}for(var n=e,r=t;;){var a=n.return;if(a===null)break;var s=a.alternate;if(s===null){if(r=a.return,r!==null){n=r;continue}break}if(a.child===s.child){for(s=a.child;s;){if(s===n)return l(a),e;if(s===r)return l(a),t;s=s.sibling}throw Error(i(188))}if(n.return!==r.return)n=a,r=s;else{for(var c=!1,u=a.child;u;){if(u===n){c=!0,n=a,r=s;break}if(u===r){c=!0,r=a,n=s;break}u=u.sibling}if(!c){for(u=s.child;u;){if(u===n){c=!0,n=s,r=a;break}if(u===r){c=!0,r=s,n=a;break}u=u.sibling}if(!c)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(n.tag!==3)throw Error(i(188));return n.stateNode.current===n?e:t}function f(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=f(e),t!==null)return t;e=e.sibling}return null}function m(e,t,n,r,i,a){for(;e!==null;){if((e.tag===5||e.tag===27||e.tag===6)&&n(e,r,i,a)||(e.tag!==22||e.memoizedState===null)&&(t||e.tag!==5&&e.tag!==27)&&m(e.child,t,n,r,i,a))return!0;e=e.sibling}return!1}function g(e){for(e=e.return;e!==null;){if(e.tag===3||e.tag===5||e.tag===27)return e;e=e.return}return null}function _(e){var t=!1;for(e=e.return;e!==null&&(e.tag===4&&(t=!0),e.tag!==3&&e.tag!==5&&e.tag!==27);)e=e.return;return t}function v(e){var t=[null,null],n=g(e);return n===null||y(t,e,n.child,{foundSelf:!1}),t}function y(e,t,n,r){for(;n!==null;){if(n===t)r.foundSelf=!0;else if(n.tag===5||n.tag===27||n.tag===6){if(r.foundSelf)return e[1]=n,!0;e[0]=n}else if((n.tag!==22||n.memoizedState===null)&&y(e,t,n.child,r))return!0;n=n.sibling}return!1}function b(e){switch(e.tag){case 5:case 27:case 6:return e.stateNode;case 3:return e.stateNode.containerInfo;default:throw Error(i(559))}}var x=null,S=null;function C(e,t,n){return e===n||e===t&&(x=e,!0)}function w(e,t,n){return e===n?(S=e,!1):e===t&&(S!==null&&(x=e),!0)}function T(e){if(e===null)return null;do e=e===null?null:e.return;while(e&&e.tag!==5&&e.tag!==27&&e.tag!==3);return e||null}function E(e,t,n){for(var r=0,i=e;i;i=n(i))r++;i=0;for(var a=t;a;a=n(a))i++;for(;0<r-i;)e=n(e),r--;for(;0<i-r;)t=n(t),i--;for(;r--;){if(e===t||t!==null&&e===t.alternate)return e;e=n(e),t=n(t)}return null}var D=Object.assign,O=Symbol.for(`react.element`),ee=Symbol.for(`react.transitional.element`),te=Symbol.for(`react.portal`),ne=Symbol.for(`react.fragment`),re=Symbol.for(`react.strict_mode`),k=Symbol.for(`react.profiler`),ie=Symbol.for(`react.consumer`),A=Symbol.for(`react.context`),ae=Symbol.for(`react.forward_ref`),oe=Symbol.for(`react.suspense`),se=Symbol.for(`react.suspense_list`),ce=Symbol.for(`react.memo`),le=Symbol.for(`react.lazy`),ue=Symbol.for(`react.activity`),de=Symbol.for(`react.legacy_hidden`),fe=Symbol.for(`react.memo_cache_sentinel`),pe=Symbol.for(`react.view_transition`),me=Symbol.for(`react.recoverable`),he=Symbol.iterator;function ge(e){return typeof e!=`object`||!e?null:(e=he&&e[he]||e[`@@iterator`],typeof e==`function`?e:null)}var _e=Symbol.for(`react.client.reference`);function ve(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===_e?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case ne:return`Fragment`;case k:return`Profiler`;case re:return`StrictMode`;case oe:return`Suspense`;case se:return`SuspenseList`;case ue:return`Activity`;case pe:return`ViewTransition`}if(typeof e==`object`)switch(e.$$typeof){case te:return`Portal`;case A:return e.displayName||`Context`;case ie:return(e._context.displayName||`Context`)+`.Consumer`;case ae:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case ce:return t=e.displayName||null,t===null?ve(e.type)||`Memo`:t;case le:t=e._payload,e=e._init;try{return ve(e(t))}catch{}}return null}var ye=Array.isArray,j=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,M=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,be={pending:!1,data:null,method:null,action:null},xe=[],Se=-1;function Ce(e){return{current:e}}function we(e){0>Se||(e.current=xe[Se],xe[Se]=null,Se--)}function Te(e,t){Se++,xe[Se]=e.current,e.current=t}var Ee=Ce(null),De=Ce(null),Oe=Ce(null),ke=Ce(null);function Ae(e,t){switch(Te(Oe,t),Te(De,e),Te(Ee,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?_p(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=_p(t),e=vp(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}we(Ee),Te(Ee,e)}function je(){we(Ee),we(De),we(Oe)}function Me(e){var t=e.memoizedState;t!==null&&(uh._currentValue=t.memoizedState,Te(ke,e)),t=Ee.current;var n=vp(t,e.type);t!==n&&(Te(De,e),Te(Ee,n))}function Ne(e){De.current===e&&(we(Ee),we(De)),ke.current===e&&(we(ke),uh._currentValue=be)}var Pe,Fe;function Ie(e){if(Pe===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);Pe=t&&t[1]||``,Fe=-1<e.stack.indexOf(`
|
|
2
|
-
at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
|
|
3
|
-
`+Pe+e+Fe}var Le=!1;function Re(e,t){if(!e||Le)return``;Le=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}n=!1;try{var i=Object.getOwnPropertyDescriptor(e.prototype,`props`);Object.defineProperty(e.prototype,"props",{configurable:!0,set:function(){throw Error()}}),n=!0,new e}finally{n&&(i===void 0?delete e.prototype.props:Object.defineProperty(e.prototype,"props",i))}}}else{try{throw Error()}catch(e){r=e}(n=e())&&typeof n.catch==`function`&&n.catch(function(){})}}catch(e){if(e&&r&&typeof e.stack==`string`)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName=`DetermineComponentFrameRoot`;var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,`name`);i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:`DetermineComponentFrameRoot`});var a=r.DetermineComponentFrameRoot(),o=a[0],s=a[1];if(o&&s){var c=o.split(`
|
|
4
|
-
`),l=s.split(`
|
|
5
|
-
`);for(i=r=0;r<c.length&&!c[r].includes(`DetermineComponentFrameRoot`);)r++;for(;i<l.length&&!l[i].includes(`DetermineComponentFrameRoot`);)i++;if(r===c.length||i===l.length)for(r=c.length-1,i=l.length-1;1<=r&&0<=i&&c[r]!==l[i];)i--;for(;1<=r&&0<=i;r--,i--)if(c[r]!==l[i]){if(r!==1||i!==1)do if(r--,i--,0>i||c[r]!==l[i]){var u=`
|
|
6
|
-
`+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(`<anonymous>`)&&(u=u.replace(`<anonymous>`,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{Le=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?Ie(n):``}function ze(e,t){switch(e.tag){case 26:case 27:case 5:return Ie(e.type);case 16:return Ie(`Lazy`);case 13:return e.child!==t&&t!==null?Ie(`Suspense Fallback`):Ie(`Suspense`);case 19:return Ie(`SuspenseList`);case 0:case 15:return Re(e.type,!1);case 11:return Re(e.type.render,!1);case 1:return Re(e.type,!0);case 31:return Ie(`Activity`);case 30:return Ie(`ViewTransition`);default:return``}}function Be(e){try{var t=``,n=null;do t+=ze(e,n),n=e,e=e.return;while(e);return t}catch(e){return`
|
|
7
|
-
Error generating stack: `+e.message+`
|
|
8
|
-
`+e.stack}}var Ve=Object.prototype.hasOwnProperty,He=t.unstable_scheduleCallback,Ue=t.unstable_cancelCallback,We=t.unstable_shouldYield,Ge=t.unstable_requestPaint,Ke=t.unstable_now,qe=t.unstable_getCurrentPriorityLevel,Je=t.unstable_ImmediatePriority,Ye=t.unstable_UserBlockingPriority,Xe=t.unstable_NormalPriority,Ze=t.unstable_LowPriority,Qe=t.unstable_IdlePriority,N=t.log,$e=t.unstable_setDisableYieldValue,et=null,tt=null;function nt(e){if(typeof N==`function`&&$e(e),tt&&typeof tt.setStrictMode==`function`)try{tt.setStrictMode(et,e)}catch{}}var P=Math.clz32?Math.clz32:at,rt=Math.log,it=Math.LN2;function at(e){return e>>>=0,e===0?32:31-(rt(e)/it|0)|0}var ot=256,st=262144,ct=4194304;function lt(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&-e;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function ut(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=lt(n))):i=lt(o):i=lt(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=lt(n))):i=lt(o)):i=lt(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function dt(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function ft(e,t){t&8&&(t|=t&32);var n=e.entangledLanes;if(n!==0)for(e=e.entanglements,n&=t;0<n;){var r=31-P(n),i=1<<r;t|=e[r],n&=~i}return t}function pt(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function mt(){var e=ct;return ct<<=1,!(ct&62914560)&&(ct=4194304),e}function ht(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function gt(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function _t(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0<n;){var u=31-P(n),d=1<<u;s[u]=0,c[u]=-1;var f=l[u];if(f!==null)for(l[u]=null,u=0;u<f.length;u++){var p=f[u];p!==null&&(p.lane&=-536870913)}n&=~d}r!==0&&vt(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function vt(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-P(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function yt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-P(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function bt(e,t){var n=t&-t;return n=n&42?1:xt(n),(n&(e.suspendedLanes|t))===0?n:0}function xt(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function St(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function Ct(){var e=M.p;return e===0?(e=window.event,e===void 0?32:Eh(e.type)):e}function wt(e,t){var n=M.p;try{return M.p=e,t()}finally{M.p=n}}var F=Math.random().toString(36).slice(2),Tt=`__reactFiber$`+F,Et=`__reactProps$`+F,Dt=`__reactContainer$`+F,Ot=`__reactEvents$`+F,kt=`__reactListeners$`+F,At=`__reactHandles$`+F,jt=`__reactResources$`+F,Mt=`__reactMarker$`+F,Nt=`__reactLoad$`+F;function Pt(e){delete e[Tt],delete e[Et],delete e[kt],delete e[At]}function Ft(e){var t;if(t=e[Tt])return t;for(var n=e.parentNode;n;){if(t=n[Dt]||n[Tt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=_m(e);e!==null;){if(n=e[Tt])return n;e=_m(e)}return t}e=n,n=e.parentNode}return null}function It(e){if(e=e[Tt]||e[Dt]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Lt(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function Rt(e){var t=e[jt];return t||=e[jt]={hoistableStyles:new Map,hoistableScripts:new Map},t}function zt(e){e[Mt]=!0}function Bt(e){e[Nt]=void 0}var Vt=new Set,Ht={};function Ut(e,t){Wt(e,t),Wt(e+`Capture`,t)}function Wt(e,t){for(Ht[e]=t,e=0;e<t.length;e++)Vt.add(t[e])}var Gt=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]*$`),Kt={},qt={};function Jt(e){return Ve.call(qt,e)?!0:Ve.call(Kt,e)?!1:Gt.test(e)?qt[e]=!0:(Kt[e]=!0,!1)}var I=!1;function Yt(){var e=I;return I=!1,e}function Xt(e,t,n){if(Jt(t)){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:e.removeAttribute(t);return;case`boolean`:var r=t.toLowerCase().slice(0,5);if(r!==`data-`&&r!==`aria-`){e.removeAttribute(t);return}}e.setAttribute(t,n)}}}function Zt(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(t);return}e.setAttribute(t,n)}}function Qt(e,t,n,r){if(r===null)e.removeAttribute(n);else{switch(typeof r){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(n);return}e.setAttributeNS(t,n,r)}}function $t(e){switch(typeof e){case`bigint`:case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function en(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function tn(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&r!==void 0&&typeof r.get==`function`&&typeof r.set==`function`){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){n=``+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=``+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function nn(e){if(!e._valueTracker){var t=en(e)?`checked`:`value`;e._valueTracker=tn(e,t,``+e[t])}}function rn(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=en(e)?e.checked?`true`:`false`:e.value),e=r,e!==n&&(t.setValue(e),!0)}var an=/[\n"\\]/g;function on(e){return e.replace(an,function(e){return`\\`+e.charCodeAt(0).toString(16)+` `})}function sn(e,t,n,r,i,a,o,s){e.name=``,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`?e.type=o:e.removeAttribute(`type`),t==null?o!==`submit`&&o!==`reset`||e.removeAttribute(`value`):o===`number`?(t===0&&e.value===``||e.value!=t)&&(e.value=``+$t(t)):e.value!==``+$t(t)&&(e.value=``+$t(t)),t==null?n==null?r!=null&&e.removeAttribute(`value`):ln(e,$t(n)):o===`number`&&e.value==t?ln(e,$t(e.value)):ln(e,$t(t)),i==null&&a!=null&&(e.defaultChecked=!!a),i!=null&&(e.checked=i&&typeof i!=`function`&&typeof i!=`symbol`),s!=null&&typeof s!=`function`&&typeof s!=`symbol`&&typeof s!=`boolean`?e.name=``+$t(s):e.removeAttribute(`name`)}function cn(e,t,n,r,i,a,o,s){if(a!=null&&typeof a!=`function`&&typeof a!=`symbol`&&typeof a!=`boolean`&&(e.type=a),t!=null||n!=null){if(!(a!==`submit`&&a!==`reset`||t!=null)){nn(e);return}n=n==null?``:``+$t(n),t=t==null?n:``+$t(t),s||t===e.value||(e.value=t),e.defaultValue=t}r??=i,r=typeof r!=`function`&&typeof r!=`symbol`&&!!r,e.checked=s?e.checked:!!r,e.defaultChecked=!!r,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`&&(e.name=o),nn(e)}function ln(e,t){e.defaultValue!==``+t&&(e.defaultValue=``+t)}function un(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t[`$`+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty(`$`+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=``+$t(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function dn(e,t,n){t!=null&&(t=``+$t(t),t!==e.value&&(e.value=t),n==null)?e.defaultValue!==t&&(e.defaultValue=t):e.defaultValue=n==null?``:``+$t(n)}function fn(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(i(92));if(ye(r)){if(1<r.length)throw Error(i(93));r=r[0]}n=r}n??=``,t=n}n=$t(t),e.defaultValue=n,r=e.textContent,r===n&&r!==``&&r!==null&&(e.value=r),nn(e)}function pn(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var mn=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 hn(e,t,n){var r=t.indexOf(`--`)===0;n==null||typeof n==`boolean`||n===``?r?e.setProperty(t,``):t===`float`?e.cssFloat=``:e[t]=``:r?e.setProperty(t,n):typeof n!=`number`||n===0||mn.has(t)?t===`float`?e.cssFloat=n:e[t]=(``+n).trim():e[t]=n+`px`}function gn(e,t,n){if(t!=null&&typeof t!=`object`)throw Error(i(62));if(e=e.style,n!=null){for(var r in n)!n.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf(`--`)===0?e.setProperty(r,``):r===`float`?e.cssFloat=``:e[r]=``,I=!0);for(var a in t)r=t[a],t.hasOwnProperty(a)&&n[a]!==r&&(hn(e,a,r),I=!0)}else for(var o in t)t.hasOwnProperty(o)&&hn(e,o,t[o])}function _n(e){if(e.indexOf(`-`)===-1)return!1;switch(e){case`annotation-xml`:case`color-profile`:case`font-face`:case`font-face-src`:case`font-face-uri`:case`font-face-format`:case`font-face-name`:case`missing-glyph`:return!1;default:return!0}}var vn=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`],[`maskType`,`mask-type`],[`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`]]),yn=/^[\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 bn(e){return yn.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}function xn(){}var Sn=null;function Cn(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var wn=null,Tn=null;function En(e){var t=It(e);if(t&&(e=t.stateNode)){var n=e[Et]||null;a:switch(e=t.stateNode,t.type){case`input`:if(sn(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type===`radio`&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll(`input[name="`+on(``+t)+`"][type="radio"]`),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=r[Et]||null;if(!a)throw Error(i(90));sn(r,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<n.length;t++)r=n[t],r.form===e.form&&rn(r)}break a;case`textarea`:dn(e,n.value,n.defaultValue);break a;case`select`:t=n.value,t!=null&&un(e,!!n.multiple,t,!1)}}}var Dn=!1;function On(e,t,n){if(Dn)return e(t,n);Dn=!0;try{return e(t)}finally{if(Dn=!1,(wn!==null||Tn!==null)&&(Wd(),wn&&(t=wn,e=Tn,Tn=wn=null,En(t),e)))for(t=0;t<e.length;t++)En(e[t])}}function kn(e,t){var n=e.stateNode;if(n===null)return null;var r=n[Et]||null;if(r===null)return null;n=r[t];a:switch(t){case`onClick`:case`onClickCapture`:case`onDoubleClick`:case`onDoubleClickCapture`:case`onMouseDown`:case`onMouseDownCapture`:case`onMouseMove`:case`onMouseMoveCapture`:case`onMouseUp`:case`onMouseUpCapture`:case`onMouseEnter`:(r=!r.disabled)||(e=e.type,r=e!==`button`&&e!==`input`&&e!==`select`&&e!==`textarea`),e=!r;break a;default:e=!1}if(e)return null;if(n&&typeof n!=`function`)throw Error(i(231,t,typeof n));return n}var An=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0,jn=!1;if(An)try{var Mn={};Object.defineProperty(Mn,"passive",{get:function(){jn=!0}}),window.addEventListener(`test`,Mn,Mn),window.removeEventListener(`test`,Mn,Mn)}catch{jn=!1}var Nn=null,Pn=null,Fn=null;function In(){if(Fn)return Fn;var e,t=Pn,n=t.length,r,i=`value`in Nn?Nn.value:Nn.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[a-r];r++);return Fn=i.slice(e,1<r?1-r:void 0)}function Ln(e){var t=e.keyCode;return`charCode`in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Rn(){return!0}function zn(){return!1}function Bn(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented==null?!1===i.returnValue:i.defaultPrevented)?Rn:zn,this.isPropagationStopped=zn,this}return D(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!=`unknown`&&(e.returnValue=!1),this.isDefaultPrevented=Rn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=Rn)},persist:function(){},isPersistent:Rn}),t}var Vn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Hn=Bn(Vn),Un=D({},Vn,{view:0,detail:0}),Wn=Bn(Un),Gn,Kn,qn,Jn=D({},Un,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ar,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return`movementX`in e?e.movementX:(e!==qn&&(qn&&e.type===`mousemove`?(Gn=e.screenX-qn.screenX,Kn=e.screenY-qn.screenY):Kn=Gn=0,qn=e),Gn)},movementY:function(e){return`movementY`in e?e.movementY:Kn}}),Yn=Bn(Jn),Xn=Bn(D({},Jn,{dataTransfer:0})),Zn=Bn(D({},Un,{relatedTarget:0})),Qn=Bn(D({},Vn,{animationName:0,elapsedTime:0,pseudoElement:0})),$n=Bn(D({},Vn,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),er=Bn(D({},Vn,{data:0})),tr={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},nr={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`},rr={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function ir(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=rr[e])?!!t[e]:!1}function ar(){return ir}var or=Bn(D({},Un,{key:function(e){if(e.key){var t=tr[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=Ln(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?nr[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ar,charCode:function(e){return e.type===`keypress`?Ln(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?Ln(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),sr=Bn(D({},Jn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),cr=Bn(D({},Vn,{submitter:0})),lr=Bn(D({},Un,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ar})),ur=Bn(D({},Vn,{propertyName:0,elapsedTime:0,pseudoElement:0})),dr=Bn(D({},Jn,{deltaX:function(e){return`deltaX`in e?e.deltaX:`wheelDeltaX`in e?-e.wheelDeltaX:0},deltaY:function(e){return`deltaY`in e?e.deltaY:`wheelDeltaY`in e?-e.wheelDeltaY:`wheelDelta`in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),fr=Bn(D({},Vn,{newState:0,oldState:0,source:0})),pr=[9,13,27,32],mr=An&&`CompositionEvent`in window,hr=null;An&&`documentMode`in document&&(hr=document.documentMode);var gr=An&&`TextEvent`in window&&!hr,_r=An&&(!mr||hr&&8<hr&&11>=hr),vr=` `,yr=!1;function br(e,t){switch(e){case`keyup`:return pr.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function xr(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var Sr=!1;function Cr(e,t){switch(e){case`compositionend`:return xr(t);case`keypress`:return t.which===32?(yr=!0,vr):null;case`textInput`:return e=t.data,e===vr&&yr?null:e;default:return null}}function wr(e,t){if(Sr)return e===`compositionend`||!mr&&br(e,t)?(e=In(),Fn=Pn=Nn=null,Sr=!1,e):null;switch(e){case`paste`:return null;case`keypress`:if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case`compositionend`:return _r&&t.locale!==`ko`?null:t.data;default:return null}}var Tr={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 Er(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!Tr[e.type]:t===`textarea`}function Dr(e,t,n,r){wn?Tn?Tn.push(r):Tn=[r]:wn=r,t=ep(t,`onChange`),0<t.length&&(n=new Hn(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var Or=null,kr=null;function Ar(e){qf(e,0)}function jr(e){if(rn(Lt(e)))return e}function Mr(e,t){if(e===`change`)return t}var Nr=!1;if(An){var Pr;if(An){var Fr=`oninput`in document;if(!Fr){var Ir=document.createElement(`div`);Ir.setAttribute(`oninput`,`return;`),Fr=typeof Ir.oninput==`function`}Pr=Fr}else Pr=!1;Nr=Pr&&(!document.documentMode||9<document.documentMode)}function Lr(){Or&&(Or.detachEvent(`onpropertychange`,Rr),kr=Or=null)}function Rr(e){if(e.propertyName===`value`&&jr(kr)){var t=[];Dr(t,kr,e,Cn(e)),On(Ar,t)}}function zr(e,t,n){e===`focusin`?(Lr(),Or=t,kr=n,Or.attachEvent(`onpropertychange`,Rr)):e===`focusout`&&Lr()}function Br(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return jr(kr)}function Vr(e,t){if(e===`click`)return jr(t)}function Hr(e,t){if(e===`input`||e===`change`)return jr(t)}function Ur(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var Wr=typeof Object.is==`function`?Object.is:Ur;function Gr(e,t){if(Wr(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!Ve.call(t,i)||!Wr(e[i],t[i]))return!1}return!0}function Kr(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}function qr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Jr(e,t){var n=qr(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=qr(n)}}function Yr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Yr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Xr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Kr(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=Kr(e.document)}return t}function Zr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}var Qr=An&&`documentMode`in document&&11>=document.documentMode,$r=null,ei=null,ti=null,ni=!1;function ri(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ni||$r==null||$r!==Kr(r)||(r=$r,`selectionStart`in r&&Zr(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),ti&&Gr(ti,r)||(ti=r,r=ep(ei,`onSelect`),0<r.length&&(t=new Hn(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=$r)))}function ii(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var ai={animationend:ii(`Animation`,`AnimationEnd`),animationiteration:ii(`Animation`,`AnimationIteration`),animationstart:ii(`Animation`,`AnimationStart`),transitionrun:ii(`Transition`,`TransitionRun`),transitionstart:ii(`Transition`,`TransitionStart`),transitioncancel:ii(`Transition`,`TransitionCancel`),transitionend:ii(`Transition`,`TransitionEnd`)},oi={},si={};An&&(si=document.createElement(`div`).style,`AnimationEvent`in window||(delete ai.animationend.animation,delete ai.animationiteration.animation,delete ai.animationstart.animation),`TransitionEvent`in window||delete ai.transitionend.transition);function ci(e){if(oi[e])return oi[e];if(!ai[e])return e;var t=ai[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in si)return oi[e]=t[n];return e}var li=ci(`animationend`),ui=ci(`animationiteration`),di=ci(`animationstart`),fi=ci(`transitionrun`),pi=ci(`transitionstart`),mi=ci(`transitioncancel`),hi=ci(`transitionend`),gi=new Map,_i=`abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error fullscreenChange fullscreenError 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(` `);_i.push(`scrollEnd`);function vi(e,t){gi.set(e,t),Ut(t,[e])}var yi=0;function bi(e,t){if(e.name!=null&&e.name!==`auto`)return e.name;if(t.autoName!==null)return t.autoName;e=Td.identifierPrefix;var n=yi++;return e=`_`+e+`t_`+n.toString(32)+`_`,t.autoName=e}function xi(e){if(e==null||typeof e==`string`)return e;var t=null,n=Nd;if(n!==null)for(var r=0;r<n.length;r++){var i=e[n[r]];if(i!=null){if(i===`none`)return`none`;t=t==null?i:t+(` `+i)}}return t??e.default}function Si(e,t){return e=xi(e),t=xi(t),t==null?e===`auto`?null:e:t===`auto`?null:t}var Ci=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},wi=[],Ti=0,Ei=0;function Di(){for(var e=Ti,t=Ei=Ti=0;t<e;){var n=wi[t];wi[t++]=null;var r=wi[t];wi[t++]=null;var i=wi[t];wi[t++]=null;var a=wi[t];if(wi[t++]=null,r!==null&&i!==null){var o=r.pending;o===null?i.next=i:(i.next=o.next,o.next=i),r.pending=i}a!==0&&ji(n,i,a)}}function Oi(e,t,n,r){wi[Ti++]=e,wi[Ti++]=t,wi[Ti++]=n,wi[Ti++]=r,Ei|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function ki(e,t,n,r){return Oi(e,t,n,r),Mi(e)}function Ai(e,t){return Oi(e,null,null,t),Mi(e)}function ji(e,t,n){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n);for(var i=!1,a=e.return;a!==null;)a.childLanes|=n,r=a.alternate,r!==null&&(r.childLanes|=n),a.tag===22&&(e=a.stateNode,e===null||e._visibility&1||(i=!0)),e=a,a=a.return;return e.tag===3?(a=e.stateNode,i&&t!==null&&(i=31-P(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function Mi(e){if(50<Pd)throw Pd=0,Fd=null,Error(i(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Ni={};function Pi(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Fi(e,t,n,r){return new Pi(e,t,n,r)}function Ii(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Li(e,t){var n=e.alternate;return n===null?(n=Fi(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&1206910976,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function Ri(e,t){e.flags&=1206910978;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function zi(e,t,n,r,a,o){var s=0;if(r=e,typeof r==`function`)Ii(r)&&(s=1);else if(typeof r==`string`)s=Xm(e,n,Ee.current)?26:e===`html`||e===`head`||e===`body`?27:5;else a:switch(r){case ue:return e=Fi(31,n,t,a),e.elementType=ue,e.lanes=o,e;case ne:return Bi(n.children,a,o,t);case re:s=8,a|=24;break;case k:return e=Fi(12,n,t,a|2),e.elementType=k,e.lanes=o,e;case oe:return e=Fi(13,n,t,a),e.elementType=oe,e.lanes=o,e;case se:return e=Fi(19,n,t,a),e.elementType=se,e.lanes=o,e;case de:case pe:return e=a|32,e=Fi(30,n,t,e),e.elementType=pe,e.lanes=o,e.stateNode={autoName:null,paired:null,clones:null,ref:null},e;default:if(typeof r==`object`&&r)switch(r.$$typeof){case A:s=10;break a;case ie:s=9;break a;case ae:s=11;break a;case ce:s=14;break a;case le:s=16,r=null;break a}s=29,n=Error(i(130,e===null?`null`:typeof e,``)),r=null}return t=Fi(s,n,t,a),t.elementType=e,t.type=r,t.lanes=o,t}function Bi(e,t,n,r){return e=Fi(7,e,r,t),e.lanes=n,e}function Vi(e,t,n){return e=Fi(6,e,null,t),e.lanes=n,e}function Hi(e){var t=Fi(18,null,null,0);return t.stateNode=e,t}function Ui(e,t,n){return t=Fi(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Wi=new WeakMap;function Gi(e,t){if(typeof e==`object`&&e){var n=Wi.get(e);return n===void 0?(t={value:e,source:t,stack:Be(t)},Wi.set(e,t),t):n}return{value:e,source:t,stack:Be(t)}}var Ki=[],qi=0,Ji=null,Yi=0,Xi=[],Zi=0,Qi=null,$i=1,ea=``;function ta(e,t){Ki[qi++]=Yi,Ki[qi++]=Ji,Ji=e,Yi=t}function na(e,t,n){Xi[Zi++]=$i,Xi[Zi++]=ea,Xi[Zi++]=Qi,Qi=e;var r=$i;e=ea;var i=32-P(r)-1;r&=~(1<<i),n+=1;var a=32-P(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,$i=1<<32-P(t)+i|n<<i|r,ea=a+e}else $i=1<<a|n<<i|r,ea=e}function ra(e){e.return!==null&&(ta(e,1),na(e,1,0))}function ia(e){for(;e===Ji;)Ji=Ki[--qi],Ki[qi]=null,Yi=Ki[--qi],Ki[qi]=null;for(;e===Qi;)Qi=Xi[--Zi],Xi[Zi]=null,ea=Xi[--Zi],Xi[Zi]=null,$i=Xi[--Zi],Xi[Zi]=null}function aa(e,t){Xi[Zi++]=$i,Xi[Zi++]=ea,Xi[Zi++]=Qi,$i=t.id,ea=t.overflow,Qi=e}var oa=null,sa=null,L=!1,ca=null,la=!1,ua=Error(i(519));function da(e){throw _a(Gi(Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?`text`:`HTML`,``)),e)),ua}function fa(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[Tt]=e,t[Et]=r,n){case`dialog`:K(`cancel`,t),K(`close`,t);break;case`iframe`:case`object`:case`embed`:K(`load`,t);break;case`video`:case`audio`:for(n=0;n<Gf.length;n++)K(Gf[n],t);break;case`source`:K(`error`,t);break;case`img`:case`image`:case`link`:K(`error`,t),K(`load`,t);break;case`details`:K(`toggle`,t);break;case`input`:K(`invalid`,t),cn(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case`select`:K(`invalid`,t);break;case`textarea`:K(`invalid`,t),fn(t,r.value,r.defaultValue,r.children)}n=r.children,typeof n!=`string`&&typeof n!=`number`&&typeof n!=`bigint`||t.textContent===``+n||!0===r.suppressHydrationWarning||op(t.textContent,n)?(r.popover!=null&&(K(`beforetoggle`,t),K(`toggle`,t)),r.onScroll!=null&&K(`scroll`,t),r.onScrollEnd!=null&&K(`scrollend`,t),r.onClick!=null&&(t.onclick=xn),t=!0):t=!1,t||da(e,!0)}function pa(e){for(oa=e.return;oa;)switch(oa.tag){case 5:case 31:case 13:la=!1;return;case 27:case 3:la=!0;return;default:oa=oa.return}}function ma(e){if(e!==oa)return!1;if(!L)return pa(e),L=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=n===`form`||n===`button`||bp(e.type,e.memoizedProps)),n=!n),n&&sa&&da(e),pa(e),t===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));sa=gm(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));sa=gm(e)}else t===27?(t=sa,kp(e.type)?(e=hm,hm=null,sa=e):sa=t):sa=oa?mm(e.stateNode.nextSibling):null;return!0}function ha(){sa=oa=null,L=!1}function ga(){var e=ca;return e!==null&&(vd===null?vd=e:vd.push.apply(vd,e),ca=null),e}function _a(e){ca===null?ca=[e]:ca.push(e)}var va=Ce(null),ya=null,ba=null;function xa(e,t,n){Te(va,t._currentValue),t._currentValue=n}function Sa(e){e._currentValue=va.current,we(va)}function Ca(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t?r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t):(e.childLanes|=t,r!==null&&(r.childLanes|=t)),e===n)break;e=e.return}}function wa(e,t,n,r){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var o=a.dependencies;if(o!==null){var s=a.child;o=o.firstContext;a:for(;o!==null;){var c=o;o=a;for(var l=0;l<t.length;l++)if(c.context===t[l]){o.lanes|=n,c=o.alternate,c!==null&&(c.lanes|=n),Ca(o.return,n,e),r||(s=null);break a}o=c.next}}else if(a.tag===18){if(s=a.return,s===null)throw Error(i(341));s.lanes|=n,o=s.alternate,o!==null&&(o.lanes|=n),Ca(s,n,e),s=null}else a.tag===13&&a.memoizedState!==null&&a.memoizedState.dehydrated===null?(a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),Ca(a.return,n,e),s=a.child,s=s===null?null:s.sibling):s=a.child;if(s!==null)s.return=a;else for(s=a;s!==null;){if(s===e){s=null;break}if(a=s.sibling,a!==null){a.return=s.return,s=a;break}s=s.return}a=s}}function Ta(e,t,n,r){e=null;for(var a=t,o=!1;a!==null;){if(!o){if(a.flags&524288)o=!0;else if(a.flags&262144)break}if(a.tag===10){var s=a.alternate;if(s===null)throw Error(i(387));if(s=s.memoizedProps,s!==null){var c=a.type;Wr(a.pendingProps.value,s.value)||(e===null?e=[c]:e.push(c))}}else if(a===ke.current){if(s=a.alternate,s===null)throw Error(i(387));s.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e===null?e=[uh]:e.push(uh))}a=a.return}return e!==null&&wa(t,e,n,r),t.flags|=262144,e!==null}function Ea(e){for(e=e.firstContext;e!==null;){if(!Wr(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Da(e){ya=e,ba=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Oa(e){return Aa(ya,e)}function ka(e,t){return ya===null&&Da(e),Aa(e,t)}function Aa(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},ba===null){if(e===null)throw Error(i(308));ba=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else ba=ba.next=t;return n}var ja=typeof AbortController<`u`?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},Ma=t.unstable_scheduleCallback,Na=t.unstable_NormalPriority,Pa={$$typeof:A,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Fa(){return{controller:new ja,data:new Map,refCount:0}}function Ia(e){e.refCount--,e.refCount===0&&Ma(Na,function(){e.controller.abort()})}function La(e,t){if(e.pendingLanes&4194048){var n=e.transitionTypes;for(n===null&&(n=e.transitionTypes=[]),e=0;e<t.length;e++){var r=t[e];n.indexOf(r)===-1&&n.push(r)}}}var Ra=null;function za(e){var t=e.transitionTypes;return e.transitionTypes=null,t}var Ba=null,Va=0,Ha=0,Ua=null;function Wa(e,t){if(Ba===null){var n=Ba=[];Va=0,Ha=Bf(),Ua={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return Va++,t.then(Ga,Ga),t}function Ga(){if(--Va===0&&(Ra=null,Ba!==null)){Ua!==null&&(Ua.status=`fulfilled`);var e=Ba;Ba=null,Ha=0,Ua=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Ka(e,t){var n=[],r={status:`pending`,value:null,reason:null,then:function(e){n.push(e)}};return e.then(function(){r.status=`fulfilled`,r.value=t;for(var e=0;e<n.length;e++)(0,n[e])(t)},function(e){for(r.status=`rejected`,r.reason=e,e=0;e<n.length;e++)(0,n[e])(void 0)}),r}var qa=j.S;j.S=function(e,t){if(bd=Ke(),typeof t==`object`&&t&&typeof t.then==`function`&&Wa(e,t),Ra!==null)for(var n=Ef;n!==null;)La(n,Ra),n=n.next;if(n=e.types,n!==null){for(var r=Ef;r!==null;)La(r,n),r=r.next;if(Ha!==0){r=Ra,r===null&&(r=Ra=[]);for(var i=0;i<n.length;i++){var a=n[i];r.indexOf(a)===-1&&r.push(a)}}}qa!==null&&qa(e,t)};var Ja=Ce(null);function Ya(){var e=Ja.current;return e===null?ad.pooledCache:e}function Xa(e,t){t===null?Te(Ja,Ja.current):Te(Ja,t.pool)}function Za(){var e=Ya();return e===null?null:{parent:Pa._currentValue,pool:e}}var Qa=Error(i(460)),$a=Error(i(474)),eo=Error(i(542)),to={then:function(){}};function no(e){return e=e.status,e===`fulfilled`||e===`rejected`}function ro(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(xn,xn),t=n),t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,so(e),e===void 0&&!(`reason`in t)?Error(i(600)):e;default:if(typeof t.status==`string`)t.then(xn,xn);else{if(e=ad,e!==null&&100<e.shellSuspendCounter)throw Error(i(482));e=t,e.status=`pending`,e.then(function(e){if(t.status===`pending`){var n=t;n.status=`fulfilled`,n.value=e}},function(e){if(t.status===`pending`){var n=t;n.status=`rejected`,n.reason=e}})}switch(t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,so(e),e}throw ao=t,Qa}}function io(e){try{var t=e._init;return t(e._payload)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(ao=e,Qa):e}}var ao=null;function oo(){if(ao===null)throw Error(i(459));var e=ao;return ao=null,e}function so(e){if(e===Qa||e===eo)throw Error(i(483))}var co=null,lo=0;function uo(e){var t=lo;return lo+=1,co===null&&(co=[]),ro(co,e,t)}function fo(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function po(e,t){throw t.$$typeof===O?Error(i(525)):(e=Object.prototype.toString.call(t),Error(i(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e)))}function mo(e){function t(t,n){if(e){var r=t.deletions;r===null?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;r!==null;)t(n,r),r=r.sibling;return null}function r(e){for(var t=new Map;e!==null;)e.key===null?t.set(e.index,e):t.set(e.key,e),e=e.sibling;return t}function a(e,t){return e=Li(e,t),e.index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags|=134217730,n):(r=r.index,r<n?(t.flags|=2,n):r)):(t.flags|=1048576,n)}function s(t){return e&&t.alternate===null&&(t.flags|=134217730),t}function c(e,t,n,r){return t===null||t.tag!==6?(t=Vi(n,e.mode,r),t.return=e,t):(t=a(t,n),t.return=e,t)}function l(e,t,n,r){var i=n.type;return i===ne?(e=d(e,t,n.props.children,r,n.key),fo(e,n),e):t!==null&&(t.elementType===i||typeof i==`object`&&i&&i.$$typeof===le&&io(i)===t.type)?(t=a(t,n.props),fo(t,n),t.return=e,t):(t=zi(n.type,n.key,n.props,null,e.mode,r),fo(t,n),t.return=e,t)}function u(e,t,n,r){return t===null||t.tag!==4||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=Ui(n,e.mode,r),t.return=e,t):(t=a(t,n.children||[]),t.return=e,t)}function d(e,t,n,r,i){return t===null||t.tag!==7?(t=Bi(n,e.mode,r,i),t.return=e,t):(t=a(t,n),t.return=e,t)}function f(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`||typeof t==`bigint`)return t=Vi(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case ee:return n=zi(t.type,t.key,t.props,null,e.mode,n),fo(n,t),n.return=e,n;case te:return t=Ui(t,e.mode,n),t.return=e,t;case le:return t=io(t),f(e,t,n)}if(ye(t)||ge(t))return t=Bi(t,e.mode,n,null),t.return=e,t;if(typeof t.then==`function`)return f(e,uo(t),n);if(t.$$typeof===A)return f(e,ka(e,t),n);po(e,t)}return null}function p(e,t,n,r){var i=t===null?null:t.key;if(typeof n==`string`&&n!==``||typeof n==`number`||typeof n==`bigint`)return i===null?c(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case ee:return n.key===i?l(e,t,n,r):null;case te:return n.key===i?u(e,t,n,r):null;case le:return n=io(n),p(e,t,n,r)}if(ye(n)||ge(n))return i===null?d(e,t,n,r,null):null;if(typeof n.then==`function`)return p(e,t,uo(n),r);if(n.$$typeof===A)return p(e,t,ka(e,n),r);po(e,n)}return null}function m(e,t,n,r,i){if(typeof r==`string`&&r!==``||typeof r==`number`||typeof r==`bigint`)return e=e.get(n)||null,c(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case ee:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case te:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case le:return r=io(r),m(e,t,n,r,i)}if(ye(r)||ge(r))return e=e.get(n)||null,d(t,e,r,i,null);if(typeof r.then==`function`)return m(e,t,n,uo(r),i);if(r.$$typeof===A)return m(e,t,n,ka(t,r),i);po(t,r)}return null}function h(i,a,s,c){for(var l=null,u=null,d=a,h=a=0,g=null;d!==null&&h<s.length;h++){d.index>h?(g=d,d=null):g=d.sibling;var _=p(i,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(i,d),a=o(_,a,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(i,d),L&&ta(i,h),l;if(d===null){for(;h<s.length;h++)d=f(i,s[h],c),d!==null&&(a=o(d,a,h),u===null?l=d:u.sibling=d,u=d);return L&&ta(i,h),l}for(d=r(d);h<s.length;h++)g=m(d,i,h,s[h],c),g!==null&&(e&&(_=g.alternate,_!==null&&d.delete(_.key===null?h:_.key)),a=o(g,a,h),u===null?l=g:u.sibling=g,u=g);return e&&d.forEach(function(e){return t(i,e)}),L&&ta(i,h),l}function g(a,s,c,l){if(c==null)throw Error(i(151));for(var u=null,d=null,h=s,g=s=0,_=null,v=c.next();h!==null&&!v.done;g++,v=c.next()){h.index>g?(_=h,h=null):_=h.sibling;var y=p(a,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(a,h),s=o(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(a,h),L&&ta(a,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(a,v.value,l),v!==null&&(s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return L&&ta(a,g),u}for(h=r(h);!v.done;g++,v=c.next())v=m(h,a,g,v.value,l),v!==null&&(e&&(_=v.alternate,_!==null&&h.delete(_.key===null?g:_.key)),s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(a,e)}),L&&ta(a,g),u}function _(e,r,o,c){if(typeof o==`object`&&o&&o.type===ne&&o.key===null&&o.props.ref===void 0&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case ee:a:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===ne){if(r.tag===7){n(e,r.sibling),c=a(r,o.props.children),fo(c,o),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===le&&io(l)===r.type){n(e,r.sibling),c=a(r,o.props),fo(c,o),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}o.type===ne?(c=Bi(o.props.children,e.mode,c,o.key),fo(c,o),c.return=e,e=c):(c=zi(o.type,o.key,o.props,null,e.mode,c),fo(c,o),c.return=e,e=c)}return s(e);case te:a:{for(l=o.key;r!==null;){if(r.key===l){if(r.tag===4&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),c=a(r,o.children||[]),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}c=Ui(o,e.mode,c),c.return=e,e=c}return s(e);case le:return o=io(o),_(e,r,o,c)}if(ye(o))return h(e,r,o,c);if(ge(o)){if(l=ge(o),typeof l!=`function`)throw Error(i(150));return o=l.call(o),g(e,r,o,c)}if(typeof o.then==`function`)return _(e,r,uo(o),c);if(o.$$typeof===A)return _(e,r,ka(e,o),c);po(e,o)}return typeof o==`string`&&o!==``||typeof o==`number`||typeof o==`bigint`?(o=``+o,r!==null&&r.tag===6?(n(e,r.sibling),c=a(r,o),c.return=e,e=c):(n(e,r),c=Vi(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{lo=0;var i=_(e,t,n,r);return co=null,i}catch(t){if(t===Qa||t===eo)throw t;var a=Fi(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var ho=mo(!0),go=mo(!1),_o=!1;function vo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function yo(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function bo(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function xo(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,V&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=Mi(e),ji(e,null,n),t}return Oi(e,r,t,n),Mi(e)}function So(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,yt(e,n)}}function Co(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n}else e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var wo=!1;function To(){if(wo){var e=Ua;if(e!==null)throw e}}function Eo(e,t,n,r){wo=!1;var i=e.updateQueue;_o=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var f=s.lane&-536870913,p=f!==s.lane;if(p?(U&f)===f:(r&f)===f){f!==0&&f===Ha&&(wo=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var m=e,h=s;f=t;var g=n;switch(h.tag){case 1:if(m=h.payload,typeof m==`function`){d=m.call(g,d,f);break a}d=m;break a;case 3:m.flags=m.flags&-65537|128;case 0:if(m=h.payload,f=typeof m==`function`?m.call(g,d,f):m,f==null)break a;d=D({},d,f);break a;case 2:_o=!0}}f=s.callback,f!==null&&(e.flags|=64,p&&(e.flags|=8192),p=i.callbacks,p===null?i.callbacks=[f]:p.push(f))}else p={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=p,c=d):u=u.next=p,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;p=s,s=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),fd|=o,e.lanes=o,e.memoizedState=d}}function Do(e,t){if(typeof e!=`function`)throw Error(i(191,e));e.call(t)}function Oo(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Do(n[e],t)}var ko=Ce(null),Ao=Ce(0);function jo(e,t){e=ud,Te(Ao,e),Te(ko,t),ud=e|t.baseLanes}function Mo(){Te(Ao,ud),Te(ko,ko.current)}function No(){ud=Ao.current,we(ko),we(Ao)}var Po=Ce(null),R=null;function Fo(e){var t=e.alternate;Te(Bo,Bo.current&1),Te(Po,e),R===null&&(t===null||ko.current!==null||t.memoizedState!==null)&&(R=e)}function Io(e){Te(Bo,Bo.current),Te(Po,e),R===null&&(R=e)}function Lo(e){e.tag===22?(Te(Bo,Bo.current),Te(Po,e),R===null&&(R=e)):Ro()}function Ro(){Te(Bo,Bo.current),Te(Po,Po.current)}function zo(e){we(Po),R===e&&(R=null),we(Bo)}var Bo=Ce(0);function Vo(e,t){Te(Po,Po.current),Te(Bo,t)}function Ho(e){we(Bo),we(Po),R===e&&(R=null)}function Uo(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||dm(n)||fm(n)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==`independent`){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Wo=0,z=null,Go=null,Ko=null,qo=!1,Jo=!1,Yo=!1,Xo=0,Zo=0,Qo=null,$o=0;function es(){throw Error(i(321))}function ts(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Wr(e[n],t[n]))return!1;return!0}function ns(e,t,n,r,i,a){return Wo=a,z=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,j.H=e===null||e.memoizedState===null?yc:bc,Yo=!1,a=n(r,i),Yo=!1,Jo&&(a=is(t,n,r,i)),rs(e),a}function rs(e){j.H=vc;var t=Go!==null&&Go.next!==null;if(Wo=0,Ko=Go=z=null,qo=!1,Zo=0,Qo=null,t)throw Error(i(300));e===null||Lc||(e=e.dependencies,e!==null&&Ea(e)&&(Lc=!0))}function is(e,t,n,r){z=e;var a=0;do{if(Jo&&(Qo=null),Zo=0,Jo=!1,25<=a)throw Error(i(301));if(a+=1,Ko=Go=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}j.H=xc,o=t(n,r)}while(Jo);return o}function as(){var e=j.H,t=e.useState()[0];return t=typeof t.then==`function`?fs(t):t,e=e.useState()[0],(Go===null?null:Go.memoizedState)!==e&&(z.flags|=1024),t}function os(){var e=Xo!==0;return Xo=0,e}function ss(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function cs(e){if(qo){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}qo=!1}Wo=0,Ko=Go=z=null,Jo=!1,Zo=Xo=0,Qo=null}function ls(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ko===null?z.memoizedState=Ko=e:Ko=Ko.next=e,Ko}function us(){if(Go===null){var e=z.alternate;e=e===null?null:e.memoizedState}else e=Go.next;var t=Ko===null?z.memoizedState:Ko.next;if(t!==null)Ko=t,Go=e;else{if(e===null)throw z.alternate===null?Error(i(467)):Error(i(310));Go=e,e={memoizedState:Go.memoizedState,baseState:Go.baseState,baseQueue:Go.baseQueue,queue:Go.queue,next:null},Ko===null?z.memoizedState=Ko=e:Ko=Ko.next=e}return Ko}function ds(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function fs(e){var t=Zo;return Zo+=1,Qo===null&&(Qo=[]),e=ro(Qo,e,t),t=z,(Ko===null?t.memoizedState:Ko.next)===null&&(t=t.alternate,j.H=t===null||t.memoizedState===null?yc:bc),e}function ps(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return fs(e);if(e.$$typeof===me)return;if(e.$$typeof===A)return Oa(e)}throw Error(i(438,String(e)))}function ms(e){var t=null,n=z.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=z.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(e){return e.slice()}),index:0})))}if(t??={data:[],index:0},n===null&&(n=ds(),z.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=fe;return t.index++,n}function hs(e,t){return typeof t==`function`?t(e):t}function gs(e){return _s(us(),Go,e)}function _s(e,t,n){var r=e.queue;if(r===null)throw Error(i(311));r.lastRenderedReducer=n;var a=e.baseQueue,o=r.pending;if(o!==null){if(a!==null){var s=a.next;a.next=o.next,o.next=s}t.baseQueue=a=o,r.pending=null}if(o=e.baseState,a===null)e.memoizedState=o;else{t=a.next;var c=s=null,l=null,u=t,d=!1;do{var f=u.lane&-536870913;if(f===u.lane?(Wo&f)===f:(U&f)===f){var p=u.revertLane;if(p===0)l!==null&&(l=l.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),f===Ha&&(d=!0);else if((Wo&p)===p){u=u.next,p===Ha&&(d=!0);continue}else f={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=f,s=o):l=l.next=f,z.lanes|=p,fd|=p;f=u.action,Yo&&n(o,f),o=u.hasEagerState?u.eagerState:n(o,f)}else p={lane:f,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=p,s=o):l=l.next=p,z.lanes|=f,fd|=f;u=u.next}while(u!==null&&u!==t);if(l===null?s=o:l.next=c,!Wr(o,e.memoizedState)&&(Lc=!0,d&&(n=Ua,n!==null)))throw n;e.memoizedState=o,e.baseState=s,e.baseQueue=l,r.lastRenderedState=o}return a===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function vs(e){var t=us(),n=t.queue;if(n===null)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,o=t.memoizedState;if(a!==null){n.pending=null;var s=a=a.next;do o=e(o,s.action),s=s.next;while(s!==a);Wr(o,t.memoizedState)||(Lc=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function ys(e,t,n){var r=z,a=us(),o=L;if(o){if(n===void 0)throw Error(i(407));n=n()}else n=t();var s=!Wr((Go||a).memoizedState,n);if(s&&(a.memoizedState=n,Lc=!0),a=a.queue,Ws(Ss.bind(null,r,a,e),[e]),e=a.getSnapshot!==t||s||Ko!==null&&!!(Ko.memoizedState.tag&1),zs(e?9:8,{destroy:void 0},xs.bind(null,r,a,n,t),null),e){if(r.flags|=2048,ad===null)throw Error(i(349));o||Wo&127||bs(r,t,n)}return n}function bs(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=z.updateQueue,t===null?(t=ds(),z.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function xs(e,t,n,r){t.value=n,t.getSnapshot=r,Cs(t)&&ws(e)}function Ss(e,t,n){return n(function(){Cs(t)&&ws(e)})}function Cs(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Wr(e,n)}catch{return!0}}function ws(e){var t=Ai(e,2);t!==null&&zd(t,e,2)}function Ts(e){var t=ls();if(typeof e==`function`){var n=e;if(e=n(),Yo){nt(!0);try{n()}finally{nt(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:hs,lastRenderedState:e},t}function Es(e,t,n,r){return e.baseState=n,_s(e,Go,typeof r==`function`?r:hs)}function Ds(e,t,n,r,a){if(hc(e))throw Error(i(485));if(e=t.action,e!==null){var o={payload:a,action:e,next:null,isTransition:!0,status:`pending`,value:null,reason:null,listeners:[],then:function(e){o.listeners.push(e)}};j.T===null?o.isTransition=!1:n(!0),r(o),n=t.pending,n===null?(o.next=t.pending=o,Os(t,o)):(o.next=n.next,t.pending=n.next=o)}}function Os(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=j.T,o={};o.types=a===null?null:a.types,j.T=o;try{var s=n(i,r),c=j.S;c!==null&&c(o,s),ks(e,t,s)}catch(n){js(e,t,n)}finally{a!==null&&o.types!==null&&(a.types=o.types),j.T=a}}else try{a=n(i,r),ks(e,t,a)}catch(n){js(e,t,n)}}function ks(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?n.then(function(n){As(e,t,n)},function(n){return js(e,t,n)}):As(e,t,n)}function As(e,t,n){t.status=`fulfilled`,t.value=n,Ms(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Os(e,n)))}function js(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,Ms(t),t=t.next;while(t!==r)}e.action=null}function Ms(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Ns(e,t){return t}function Ps(e,t){if(L){var n=ad.formState;if(n!==null){a:{var r=z;if(L){if(sa){b:{for(var i=sa,a=la;i.nodeType!==8;)if(!a||(i=mm(i.nextSibling),i===null)){i=null;break b}a=i.data,i=a===`F!`||a===`F`?i:null}if(i){sa=mm(i.nextSibling),r=i.data===`F!`;break a}}da(r)}r=!1}r&&(t=n[0])}}return n=ls(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ns,lastRenderedState:t},n.queue=r,n=fc.bind(null,z,r),r.dispatch=n,r=Ts(!1),a=mc.bind(null,z,!1,r.queue),r=ls(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=Ds.bind(null,z,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function Fs(e){return Is(us(),Go,e)}function Is(e,t,n){if(t=_s(e,t,Ns)[0],e=gs(hs)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=fs(t)}catch(e){throw e===Qa?eo:e}else r=t;t=us();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(z.flags|=2048,zs(9,{destroy:void 0},Ls.bind(null,i,n),null)),[r,a,e]}function Ls(e,t){e.action=t}function Rs(e){var t=us(),n=Go;if(n!==null)return Is(t,n,e);us(),t=t.memoizedState,n=us();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function zs(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=z.updateQueue,t===null&&(t=ds(),z.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Bs(){return us().memoizedState}function Vs(e,t,n,r){var i=ls();z.flags|=e,i.memoizedState=zs(1|t,{destroy:void 0},n,r===void 0?null:r)}function Hs(e,t,n,r){var i=us();r=r===void 0?null:r;var a=i.memoizedState.inst;Go!==null&&r!==null&&ts(r,Go.memoizedState.deps)?i.memoizedState=zs(t,a,n,r):(z.flags|=e,i.memoizedState=zs(1|t,a,n,r))}function Us(e,t){Vs(8390656,8,e,t)}function Ws(e,t){Hs(2048,8,e,t)}function Gs(e){z.flags|=4;var t=z.updateQueue;if(t===null)t=ds(),z.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function Ks(e){var t=us().memoizedState;return Gs({ref:t,nextImpl:e}),function(){if(V&2)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function qs(e,t){return Hs(4,2,e,t)}function Js(e,t){return Hs(4,4,e,t)}function Ys(e,t){if(typeof t==`function`){e=e();var n=t(e);return function(){typeof n==`function`?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Xs(e,t,n){n=n==null?null:n.concat([e]),Hs(4,4,Ys.bind(null,t,e),n)}function Zs(){}function Qs(e,t){var n=us();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&ts(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function $s(e,t){var n=us();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&ts(t,r[1]))return r[0];if(r=e(),Yo){nt(!0);try{e()}finally{nt(!1)}}return n.memoizedState=[r,t],r}function ec(e,t,n){return n===void 0||Wo&1073741824&&!(U&261930)?e.memoizedState=t:(e.memoizedState=n,e=Ld(),z.lanes|=e,fd|=e,n)}function tc(e,t,n,r){return Wr(n,t)?n:ko.current===null?!(Wo&106)||Wo&1073741824&&!(U&261930)?(Lc=!0,e.memoizedState=n):(e=Ld(),z.lanes|=e,fd|=e,t):(e=ec(e,n,r),Wr(e,t)||(Lc=!0),e)}function nc(e,t,n,r,i){var a=M.p;M.p=a!==0&&8>a?a:8;var o=j.T,s={};s.types=o===null?null:o.types,j.T=s,mc(e,!1,t,n);try{var c=i(),l=j.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?pc(e,t,Ka(c,r),Id(e)):pc(e,t,r,Id(e))}catch(n){pc(e,t,{then:function(){},status:`rejected`,reason:n},Id())}finally{M.p=a,o!==null&&s.types!==null&&(o.types=s.types),j.T=o}}function rc(){}function ic(e,t,n,r){if(e.tag!==5)throw Error(i(476));var a=ac(e).queue;nc(e,a,t,be,n===null?rc:function(){return oc(e),n(r)})}function ac(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:be,baseState:be,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:hs,lastRenderedState:be},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:hs,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function oc(e){var t=ac(e);t.next===null&&(t=e.alternate.memoizedState),pc(e,t.next.queue,{},Id())}function sc(){return Oa(uh)}function cc(){return us().memoizedState}function lc(){return us().memoizedState}function uc(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Id();e=bo(n);var r=xo(t,e,n);r!==null&&(zd(r,t,n),So(r,t,n)),t={cache:Fa()},e.payload=t;return}t=t.return}}function dc(e,t,n){var r=Id();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},hc(e)?gc(t,n):(n=ki(e,t,n,r),n!==null&&(zd(n,e,r),_c(n,t,r)))}function fc(e,t,n){pc(e,t,n,Id())}function pc(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(hc(e))gc(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,Wr(s,o))return Oi(e,t,i,0),ad===null&&Di(),!1}catch{}if(n=ki(e,t,i,r),n!==null)return zd(n,e,r),_c(n,t,r),!0}return!1}function mc(e,t,n,r){if(r={lane:2,revertLane:Bf(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},hc(e)){if(t)throw Error(i(479))}else t=ki(e,n,r,2),t!==null&&zd(t,e,2)}function hc(e){var t=e.alternate;return e===z||t!==null&&t===z}function gc(e,t){Jo=qo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function _c(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,yt(e,n)}}var vc={readContext:Oa,use:ps,useCallback:es,useContext:es,useEffect:es,useImperativeHandle:es,useLayoutEffect:es,useInsertionEffect:es,useMemo:es,useReducer:es,useRef:es,useState:es,useDebugValue:es,useDeferredValue:es,useTransition:es,useSyncExternalStore:es,useId:es,useHostTransitionStatus:es,useFormState:es,useActionState:es,useOptimistic:es,useMemoCache:es,useCacheRefresh:es,useEffectEvent:es},yc={readContext:Oa,use:ps,useCallback:function(e,t){return ls().memoizedState=[e,t===void 0?null:t],e},useContext:Oa,useEffect:Us,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),Vs(4194308,4,Ys.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Vs(4194308,4,e,t)},useInsertionEffect:function(e,t){Vs(4,2,e,t)},useMemo:function(e,t){var n=ls();t=t===void 0?null:t;var r=e();if(Yo){nt(!0);try{e()}finally{nt(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=ls();if(n!==void 0){var i=n(t);if(Yo){nt(!0);try{n(t)}finally{nt(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=dc.bind(null,z,e),[r.memoizedState,e]},useRef:function(e){var t=ls();return e={current:e},t.memoizedState=e},useState:function(e){e=Ts(e);var t=e.queue,n=fc.bind(null,z,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Zs,useDeferredValue:function(e,t){return ec(ls(),e,t)},useTransition:function(){var e=Ts(!1);return e=nc.bind(null,z,e.queue,!0,!1),ls().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=z,a=ls();if(L){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),ad===null)throw Error(i(349));U&127||bs(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,Us(Ss.bind(null,r,o,e),[e]),r.flags|=2048,zs(9,{destroy:void 0},xs.bind(null,r,o,n,t),null),n},useId:function(){var e=ls(),t=ad.identifierPrefix;if(L){var n=ea,r=$i;n=(r&~(1<<32-P(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=Xo++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=$o++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t},useHostTransitionStatus:sc,useFormState:Ps,useActionState:Ps,useOptimistic:function(e){var t=ls();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=mc.bind(null,z,!0,n),n.dispatch=t,[e,t]},useMemoCache:ms,useCacheRefresh:function(){return ls().memoizedState=uc.bind(null,z)},useEffectEvent:function(e){var t=ls(),n={impl:e};return t.memoizedState=n,function(){if(V&2)throw Error(i(440));return n.impl.apply(void 0,arguments)}}},bc={readContext:Oa,use:ps,useCallback:Qs,useContext:Oa,useEffect:Ws,useImperativeHandle:Xs,useInsertionEffect:qs,useLayoutEffect:Js,useMemo:$s,useReducer:gs,useRef:Bs,useState:function(){return gs(hs)},useDebugValue:Zs,useDeferredValue:function(e,t){return tc(us(),Go.memoizedState,e,t)},useTransition:function(){var e=gs(hs)[0],t=us().memoizedState;return[typeof e==`boolean`?e:fs(e),t]},useSyncExternalStore:ys,useId:cc,useHostTransitionStatus:sc,useFormState:Fs,useActionState:Fs,useOptimistic:function(e,t){return Es(us(),Go,e,t)},useMemoCache:ms,useCacheRefresh:lc,useEffectEvent:Ks},xc={readContext:Oa,use:ps,useCallback:Qs,useContext:Oa,useEffect:Ws,useImperativeHandle:Xs,useInsertionEffect:qs,useLayoutEffect:Js,useMemo:$s,useReducer:vs,useRef:Bs,useState:function(){return vs(hs)},useDebugValue:Zs,useDeferredValue:function(e,t){var n=us();return Go===null?ec(n,e,t):tc(n,Go.memoizedState,e,t)},useTransition:function(){var e=vs(hs)[0],t=us().memoizedState;return[typeof e==`boolean`?e:fs(e),t]},useSyncExternalStore:ys,useId:cc,useHostTransitionStatus:sc,useFormState:Rs,useActionState:Rs,useOptimistic:function(e,t){var n=us();return Go===null?(n.baseState=e,[e,n.queue.dispatch]):Es(n,Go,e,t)},useMemoCache:ms,useCacheRefresh:lc,useEffectEvent:Ks};function Sc(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:D({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Cc={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Id(),i=bo(r);i.payload=t,n!=null&&(i.callback=n),t=xo(e,i,r),t!==null&&(zd(t,e,r),So(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Id(),i=bo(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=xo(e,i,r),t!==null&&(zd(t,e,r),So(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Id(),r=bo(n);r.tag=2,t!=null&&(r.callback=t),t=xo(e,r,n),t!==null&&(zd(t,e,n),So(t,e,n))}};function wc(e,t,n,r,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate==`function`?e.shouldComponentUpdate(r,a,o):t.prototype&&t.prototype.isPureReactComponent?!Gr(n,r)||!Gr(i,a):!0}function Tc(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps==`function`&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps==`function`&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Cc.enqueueReplaceState(t,t.state,null)}function Ec(e,t){var n=t;if(`ref`in t)for(var r in n={},t)r!==`ref`&&(n[r]=t[r]);if(e=e.defaultProps)for(var i in n===t&&(n=D({},n)),e)n[i]===void 0&&(n[i]=e[i]);return n}function Dc(e){Ci(e)}function Oc(e){console.error(e)}function kc(e){Ci(e)}function Ac(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function jc(e,t,n){try{var r=e.onCaughtError;r(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function Mc(e,t,n){return n=bo(n),n.tag=3,n.payload={element:null},n.callback=function(){Ac(e,t)},n}function Nc(e){return e=bo(e),e.tag=3,e}function Pc(e,t,n,r){var i=n.type.getDerivedStateFromError;if(typeof i==`function`){var a=r.value;e.payload=function(){return i(a)},e.callback=function(){jc(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){jc(t,n,r),typeof i!=`function`&&(Cd===null?Cd=new Set([this]):Cd.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:e===null?``:e})})}function Fc(e,t,n,r,a){if(n.flags|=32768,typeof r==`object`&&r&&typeof r.then==`function`){if(t=n.alternate,t!==null&&Ta(t,n,a,!0),n=Po.current,n!==null){switch(n.tag){case 31:case 13:case 19:return R===null?Zd():n.alternate===null&&dd===0&&(dd=3),n.flags&=-257,n.flags|=65536,n.lanes=a,r===to?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),bf(e,r,a)),!1;case 22:return n.flags|=65536,r===to?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([r]):n.add(r)),bf(e,r,a)),!1}throw Error(i(435,n.tag))}return bf(e,r,a),Zd(),!1}if(L)return t=Po.current,t===null?(r!==ua&&(t=Error(i(423),{cause:r}),_a(Gi(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,r=Gi(r,n),a=Mc(e.stateNode,r,a),Co(e,a),dd!==4&&(dd=2)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,r!==ua&&(e=Error(i(422),{cause:r}),_a(Gi(e,n)))),!1;var o=Error(i(520),{cause:r});if(o=Gi(o,n),_d===null?_d=[o]:_d.push(o),dd!==4&&(dd=2),t===null)return!0;r=Gi(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,e=Mc(n.stateNode,r,e),Co(n,e),!1;case 1:if(t=n.type,o=n.stateNode,!(n.flags&128)&&(typeof t.getDerivedStateFromError==`function`||o!==null&&typeof o.componentDidCatch==`function`&&(Cd===null||!Cd.has(o))))return n.flags|=65536,a&=-a,n.lanes|=a,a=Nc(a),Pc(a,e,n,r),Co(n,a),!1;break;case 22:if(n.memoizedState!==null)return n.flags|=65536,!1}n=n.return}while(n!==null);return!1}var Ic=Error(i(461)),Lc=!1;function Rc(e,t,n,r){t.child=e===null?go(t,null,n,r):ho(t,e.child,n,r)}function zc(e,t,n,r,i){n=n.render;var a=t.ref;if(`ref`in r){var o={};for(var s in r)s!==`ref`&&(o[s]=r[s])}else o=r;return Da(t),r=ns(e,t,n,o,a,i),s=os(),e!==null&&!Lc?(ss(e,t,i),pl(e,t,i)):(L&&s&&ra(t),t.flags|=1,Rc(e,t,r,i),t.child)}function Bc(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!Ii(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,Vc(e,t,a,r,i)):(e=zi(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!ml(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?Gr:n,n(o,r)&&e.ref===t.ref)return pl(e,t,i)}return t.flags|=1,e=Li(a,r),e.ref=t.ref,e.return=t,t.child=e}function Vc(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(Gr(a,r)&&e.ref===t.ref){if(Lc=!1,t.pendingProps=r=a,ml(e,i))e.flags&131072&&(Lc=!0);else return t.lanes=e.lanes,pl(e,t,i)}}return Yc(e,t,n,r,i)}function Hc(e,t,n,r){var i=r.children,a=e===null?null:e.memoizedState;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode===`hidden`){if(t.flags&128){if(a=a===null?n:a.baseLanes|n,e!==null){for(r=t.child=e.child,i=0;r!==null;)i=i|r.lanes|r.childLanes,r=r.sibling;r=i&~a}else r=0,t.child=null;return Wc(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Xa(t,a===null?null:a.cachePool),a===null?Mo():jo(t,a),Lo(t);else return r=t.lanes=536870912,Wc(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&Xa(t,null),Mo(),Ro()):(Xa(t,a.cachePool),jo(t,a),Ro(),t.memoizedState=null);return Rc(e,t,i,n),t.child}function Uc(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Wc(e,t,n,r,i){var a=Ya();return a=a===null?null:{parent:Pa._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&Xa(t,null),Mo(),Lo(t),e!==null&&Ta(e,t,r,!0),t.childLanes=i,null}function Gc(e,t){return t=il({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Kc(e,t,n){return ho(t,e.child,null,n),e=Gc(t,t.pendingProps),e.flags|=2,zo(t),t.memoizedState=null,e}function qc(e,t,n){var r=t.pendingProps,a=!!(t.flags&128);if(t.flags&=-129,e===null){if(L){if(r.mode===`hidden`)return e=Gc(t,r),t.lanes=536870912,e.memoizedState={baseLanes:0,cachePool:null},Uc(null,e);if(Io(t),(e=sa)?(e=um(e,la),e=e!==null&&e.data===`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Qi===null?null:{id:$i,overflow:ea},retryLane:536870912,hydrationErrors:null},n=Hi(e),n.return=t,t.child=n,oa=t,sa=null)):e=null,e===null)throw da(t);return t.lanes=536870912,null}return Gc(t,r)}var o=e.memoizedState;if(o!==null){var s=o.dehydrated;if(Io(t),a){if(t.flags&256)t.flags&=-257,t=Kc(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(i(558))}else if(Lc||Ta(e,t,n,!1),a=(n&e.childLanes)!==0,Lc||a){if(ko.current===null){if(r=ad,r!==null&&(s=bt(r,n),s!==0&&s!==o.retryLane))throw o.retryLane=s,Ai(e,s),zd(r,e,s),Ic;Zd()}t=Kc(e,t,n)}else e=o.treeContext,sa=mm(s.nextSibling),oa=t,L=!0,ca=null,la=!1,e!==null&&aa(t,e),t=Gc(t,r),t.flags|=134221824;return t}return e=Li(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Jc(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!=`function`&&typeof n!=`object`)throw Error(i(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function Yc(e,t,n,r,i){return Da(t),n=ns(e,t,n,r,void 0,i),r=os(),e!==null&&!Lc?(ss(e,t,i),pl(e,t,i)):(L&&r&&ra(t),t.flags|=1,Rc(e,t,n,i),t.child)}function Xc(e,t,n,r,i,a){return Da(t),t.updateQueue=null,n=is(t,r,n,i),rs(e),r=os(),e!==null&&!Lc?(ss(e,t,a),pl(e,t,a)):(L&&r&&ra(t),t.flags|=1,Rc(e,t,n,a),t.child)}function Zc(e,t,n,r,i){if(Da(t),t.stateNode===null){var a=Ni,o=n.contextType;typeof o==`object`&&o&&(a=Oa(o)),a=new n(r,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=Cc,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},vo(t),o=n.contextType,a.context=typeof o==`object`&&o?Oa(o):Ni,a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(Sc(t,n,o,r),a.state=t.memoizedState),typeof n.getDerivedStateFromProps==`function`||typeof a.getSnapshotBeforeUpdate==`function`||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(o=a.state,typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount(),o!==a.state&&Cc.enqueueReplaceState(a,a.state,null),Eo(t,r,a,i),To(),a.state=t.memoizedState),typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!0}else if(e===null){a=t.stateNode;var s=t.memoizedProps,c=Ec(n,s);a.props=c;var l=a.context,u=n.contextType;o=Ni,typeof u==`object`&&u&&(o=Oa(u));var d=n.getDerivedStateFromProps;u=typeof d==`function`||typeof a.getSnapshotBeforeUpdate==`function`,s=t.pendingProps!==s,u||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(s||l!==o)&&Tc(t,a,r,o),_o=!1;var f=t.memoizedState;a.state=f,Eo(t,r,a,i),To(),l=t.memoizedState,s||f!==l||_o?(typeof d==`function`&&(Sc(t,n,d,r),l=t.memoizedState),(c=_o||wc(t,n,c,r,f,l,o))?(u||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount==`function`&&(t.flags|=4194308)):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=o,r=c):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,yo(e,t),o=t.memoizedProps,u=Ec(n,o),a.props=u,d=t.pendingProps,f=a.context,l=n.contextType,c=Ni,typeof l==`object`&&l&&(c=Oa(l)),s=n.getDerivedStateFromProps,(l=typeof s==`function`||typeof a.getSnapshotBeforeUpdate==`function`)||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(o!==d||f!==c)&&Tc(t,a,r,c),_o=!1,f=t.memoizedState,a.state=f,Eo(t,r,a,i),To();var p=t.memoizedState;o!==d||f!==p||_o||e!==null&&e.dependencies!==null&&Ea(e.dependencies)?(typeof s==`function`&&(Sc(t,n,s,r),p=t.memoizedState),(u=_o||wc(t,n,u,r,f,p,c)||e!==null&&e.dependencies!==null&&Ea(e.dependencies))?(l||typeof a.UNSAFE_componentWillUpdate!=`function`&&typeof a.componentWillUpdate!=`function`||(typeof a.componentWillUpdate==`function`&&a.componentWillUpdate(r,p,c),typeof a.UNSAFE_componentWillUpdate==`function`&&a.UNSAFE_componentWillUpdate(r,p,c)),typeof a.componentDidUpdate==`function`&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate==`function`&&(t.flags|=1024)):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=c,r=u):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return a=r,Jc(e,t),r=!!(t.flags&128),a||r?(a=t.stateNode,n=r&&typeof n.getDerivedStateFromError!=`function`?null:a.render(),t.flags|=1,e!==null&&r?(t.child=ho(t,e.child,null,i),t.child=ho(t,null,n,i)):Rc(e,t,n,i),t.memoizedState=a.state,e=t.child):e=pl(e,t,i),e}function Qc(e,t,n,r){return ha(),t.flags|=256,Rc(e,t,n,r),t.child}var $c={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function el(e){return{baseLanes:e,cachePool:Za()}}function tl(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=hd),e}function nl(e,t,n){var r=t.pendingProps,i=!1,a=!!(t.flags&128),o;if((o=a)||(o=e!==null&&e.memoizedState===null?!1:!!(Bo.current&2)),o&&(i=!0,t.flags&=-129),o=!!(t.flags&32),t.flags&=-33,e===null){if(L){if(i?Fo(t):Ro(),(e=sa)?(e=um(e,la),e=e!==null&&e.data!==`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Qi===null?null:{id:$i,overflow:ea},retryLane:536870912,hydrationErrors:null},n=Hi(e),n.return=t,t.child=n,oa=t,sa=null)):e=null,e===null)throw da(t);return t.lanes=fm(e)?32:536870912,null}return a=r.children,r=r.fallback,i?(Ro(),i=t.mode,a=il({mode:`hidden`,children:a},i),r=Bi(r,i,n,null),a.return=t,r.return=t,a.sibling=r,t.child=a,r=t.child,r.memoizedState=el(n),r.childLanes=tl(e,o,n),t.memoizedState=$c,Uc(null,r)):(Fo(t),rl(t,a))}var s=e.memoizedState;if(s!==null){var c=s.dehydrated;if(c!==null)return ol(e,t,a,o,r,c,s,n)}return i?(Ro(),i=r.fallback,a=t.mode,s=e.child,c=s.sibling,r=Li(s,{mode:`hidden`,children:r.children}),r.subtreeFlags=s.subtreeFlags&1206910976,c===null?(i=Bi(i,a,n,null),i.flags|=2):i=Li(c,i),i.return=t,r.return=t,r.sibling=i,t.child=r,Uc(null,r),r=t.child,i=e.child.memoizedState,i===null?i=el(n):(a=i.cachePool,a===null?a=Za():(s=Pa._currentValue,a=a.parent===s?a:{parent:s,pool:s}),i={baseLanes:i.baseLanes|n,cachePool:a}),r.memoizedState=i,r.childLanes=tl(e,o,n),t.memoizedState=$c,Uc(e.child,r)):(Fo(t),n=e.child,e=n.sibling,n=Li(n,{mode:`visible`,children:r.children}),n.return=t,n.sibling=null,e!==null&&(o=t.deletions,o===null?(t.deletions=[e],t.flags|=16):o.push(e)),t.child=n,t.memoizedState=null,n)}function rl(e,t){return t=il({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function il(e,t){return e=Fi(22,e,null,t),e.lanes=0,e}function al(e,t,n){return ho(t,e.child,null,n),e=rl(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function ol(e,t,n,r,a,o,s,c){if(n)return t.flags&256?(Fo(t),t.flags&=-257,al(e,t,c)):t.memoizedState===null?(Ro(),o=a.fallback,s=t.mode,a=il({mode:`visible`,children:a.children},s),o=Bi(o,s,c,null),o.flags|=2,a.return=t,o.return=t,a.sibling=o,t.child=a,ho(t,e.child,null,c),a=t.child,a.memoizedState=el(c),a.childLanes=tl(e,r,c),t.memoizedState=$c,Uc(null,a)):(Ro(),t.child=e.child,t.flags|=128,null);if(Fo(t),fm(o)){if(r=o.nextSibling&&o.nextSibling.dataset,r)var l=r.dgst;return r=l,r!==``&&(a=Error(i(419)),a.stack=``,a.digest=r,_a({value:a,source:null,stack:null})),al(e,t,c)}if(Lc||Ta(e,t,c,!1),r=(c&e.childLanes)!==0,Lc||r){if(ko.current!==null)return al(e,t,c);if(r=ad,r!==null&&(a=bt(r,c),a!==0&&a!==s.retryLane))throw s.retryLane=a,Ai(e,a),zd(r,e,a),Ic;return dm(o)||Zd(),al(e,t,c)}return dm(o)?(t.flags|=192,t.child=e.child,null):(e=s.treeContext,sa=mm(o.nextSibling),oa=t,L=!0,ca=null,la=!1,e!==null&&aa(t,e),t=rl(t,a.children),t.flags|=134221824,t)}function sl(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Ca(e.return,t,n)}function cl(e){for(var t=null;e!==null;){var n=e.alternate;n!==null&&Uo(n)===null&&(t=e),e=e.sibling}return t}function ll(e,t,n,r,i,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,treeForkCount:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i,o.treeForkCount=a)}function ul(e){var t=e.child;for(e.child=null;t!==null;){var n=t.sibling;t.sibling=e.child,e.child=t,t=n}}function dl(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;r=r.children;var o=Bo.current;if(t.flags&128)return Vo(t,o),null;var s=!!(o&2);if(s?(o=o&1|2,t.flags|=128):o&=1,Vo(t,o),i===`backwards`&&e!==null?(ul(e),Rc(e,t,r,n),ul(e)):Rc(e,t,r,n),r=L?Yi:0,!s&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&sl(e,n,t);else if(e.tag===19)sl(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case`backwards`:n=cl(t.child),n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null,ul(t)),ll(t,!0,i,null,a,r);break;case`unstable_legacy-backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Uo(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}ll(t,!0,n,null,a,r);break;case`together`:ll(t,!1,null,null,void 0,r);break;case`independent`:t.memoizedState=null;break;default:n=cl(t.child),n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),ll(t,!1,i,n,a,r)}return t.child}function fl(e,t,n){var r=t.pendingProps;return xa(t,t.type,r.value),Rc(e,t,r.children,n),t.child}function pl(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),fd|=t.lanes,(n&t.childLanes)===0){if(e!==null){if(Ta(e,t,n,!1),(n&t.childLanes)===0)return null}else return null}if(e!==null&&t.child!==e.child)throw Error(i(153));if(t.child!==null){for(e=t.child,n=Li(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Li(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function ml(e,t){return(e.lanes&t)!==0||(e=e.dependencies,!!(e!==null&&Ea(e)))}function hl(e,t,n){switch(t.tag){case 3:Ae(t,t.stateNode.containerInfo),xa(t,Pa,e.memoizedState.cache),ha();break;case 27:case 5:Me(t);break;case 4:Ae(t,t.stateNode.containerInfo);break;case 10:xa(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Io(t),null;break;case 13:var r=t.memoizedState;if(r!==null){if(r.dehydrated!==null)return Fo(t),t.flags|=128,null;r=Ta(e,t,n,!1);var i=t.child.childLanes;return r||(n&i)!==0?nl(e,t,n):(Fo(t),e=pl(e,t,n),e===null?null:e.sibling)}Fo(t);break;case 19:if(t.flags&128)return dl(e,t,n);if(i=!!(e.flags&128),r=(n&t.childLanes)!==0,r||=(Ta(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return dl(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Vo(t,Bo.current),r)break;return null;case 22:return t.lanes=0,Hc(e,t,n,t.pendingProps);case 24:xa(t,Pa,e.memoizedState.cache)}return pl(e,t,n)}function gl(e,t,n){if(e!==null){if(e.memoizedProps!==t.pendingProps)Lc=!0;else{if(!ml(e,n)&&!(t.flags&128))return Lc=!1,hl(e,t,n);Lc=!!(e.flags&131072)}}else Lc=!1,L&&t.flags&1048576&&na(t,Yi,t.index);switch(t.lanes=0,t.tag){case 16:a:{var r=t.pendingProps;if(e=io(t.elementType),t.type=e,typeof e==`function`)Ii(e)?(r=Ec(e,r),t.tag=1,t=Zc(null,t,e,r,n)):(t.tag=0,t=Yc(null,t,e,r,n));else{if(e!=null){var a=e.$$typeof;if(a===ae){t.tag=11,t=zc(null,t,e,r,n);break a}if(a===ce){t.tag=14,t=Bc(null,t,e,r,n);break a}if(a===A){t.tag=10,t.type=e,t=fl(null,t,n);break a}}throw t=ve(e)||e,Error(i(306,t,``))}}return t;case 0:return Yc(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,a=Ec(r,t.pendingProps),Zc(e,t,r,a,n);case 3:a:{if(Ae(t,t.stateNode.containerInfo),e===null)throw Error(i(387));r=t.pendingProps;var o=t.memoizedState;a=o.element,yo(e,t),Eo(t,r,null,n);var s=t.memoizedState;if(r=s.cache,xa(t,Pa,r),r!==o.cache&&wa(t,[Pa],n,!0),To(),r=s.element,o.isDehydrated){if(o={element:r,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=Qc(e,t,r,n);break a}if(r!==a){a=Gi(Error(i(424)),t),_a(a),t=Qc(e,t,r,n);break a}switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName===`HTML`?e.ownerDocument.body:e}for(sa=mm(e.firstChild),oa=t,L=!0,ca=null,la=!0,n=go(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|134221824,n=n.sibling}else{if(ha(),r===a){t=pl(e,t,n);break a}Rc(e,t,r,n)}t=t.child}return t;case 26:return Jc(e,t),e===null?(n=Y(t.type,null,t.pendingProps,null))?t.memoizedState=n:L||(t.stateNode=yp(t.type,t.pendingProps,Oe.current,t)):t.memoizedState=Y(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Me(t),e===null&&L&&(r=t.stateNode=bm(t.type,t.pendingProps,Oe.current),oa=t,la=!0,a=sa,kp(t.type)?(hm=a,sa=mm(r.firstChild)):sa=a),Rc(e,t,t.pendingProps.children,n),Jc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&L&&((a=r=sa)&&(r=cm(r,t.type,t.pendingProps,la),r===null?a=!1:(t.stateNode=r,oa=t,sa=mm(r.firstChild),la=!1,a=!0)),a||da(t)),Me(t),a=t.type,o=t.pendingProps,s=e===null?null:e.memoizedProps,r=o.children,bp(a,o)?r=null:s!==null&&bp(a,s)&&(t.flags|=32),t.memoizedState!==null&&(a=ns(e,t,as,null,null,n),uh._currentValue=a),Jc(e,t),Rc(e,t,r,n),t.child;case 6:return e===null&&L&&((e=n=sa)&&(n=lm(n,t.pendingProps,la),n===null?e=!1:(t.stateNode=n,oa=t,sa=null,e=!0)),e||da(t)),null;case 13:return nl(e,t,n);case 4:return Ae(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=ho(t,null,r,n):Rc(e,t,r,n),t.child;case 11:return zc(e,t,t.type,t.pendingProps,n);case 7:return r=t.pendingProps,Jc(e,t),Rc(e,t,r,n),t.child;case 8:return Rc(e,t,t.pendingProps.children,n),t.child;case 12:return Rc(e,t,t.pendingProps.children,n),t.child;case 10:return fl(e,t,n);case 9:return a=t.type._context,r=t.pendingProps.children,Da(t),a=Oa(a),r=r(a),t.flags|=1,Rc(e,t,r,n),t.child;case 14:return Bc(e,t,t.type,t.pendingProps,n);case 15:return Vc(e,t,t.type,t.pendingProps,n);case 19:return dl(e,t,n);case 31:return qc(e,t,n);case 22:return Hc(e,t,n,t.pendingProps);case 24:return Da(t),r=Oa(Pa),e===null?(a=Ya(),a===null&&(a=ad,o=Fa(),a.pooledCache=o,o.refCount++,o!==null&&(a.pooledCacheLanes|=n),a=o),t.memoizedState={parent:r,cache:a},vo(t),xa(t,Pa,a)):((e.lanes&n)!==0&&(yo(e,t),Eo(t,null,null,n),To()),a=e.memoizedState,o=t.memoizedState,a.parent===r?(r=o.cache,xa(t,Pa,r),r!==a.cache&&wa(t,[Pa],n,!0)):(a={parent:r,cache:r},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),xa(t,Pa,r))),Rc(e,t,t.pendingProps.children,n),t.child;case 30:return t.stateNode===null&&(t.stateNode={autoName:null,paired:null,clones:null,ref:null}),r=t.pendingProps,r.name!=null&&r.name!==`auto`?t.flags|=e===null?18882560:18874368:L&&ra(t),e!==null&&e.memoizedProps.name!==r.name?t.flags|=4194816:Jc(e,t),Rc(e,t,r.children,n),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function _l(e){e.flags|=4}function vl(e,t,n,r,i){var a;if((a=!!(e.mode&32))&&(a=n===null?Zm(t,r):Zm(t,r)&&(r.src!==n.src||r.srcSet!==n.srcSet)),a){if(e.flags|=16777216,(i&335544128)===i){if(e.stateNode.complete)e.flags|=8192;else if(Jd())e.flags|=8192;else throw ao=to,$a}}else e.flags&=-16777217}function yl(e,t){if(t.type!==`stylesheet`||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!Qm(t)){if(Jd())e.flags|=8192;else throw ao=to,$a}}function bl(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:mt(),e.lanes|=t,gd|=t)}function xl(e,t){if(!L)switch(e.tailMode){case`visible`:break;case`collapsed`:for(var n=e.tail,r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null;break;default:for(t=e.tail,n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null}}function Sl(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&1206910976,r|=i.flags&1206910976,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Cl(e,t,n){var r=t.pendingProps;switch(ia(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Sl(t),null;case 1:return Sl(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),Sa(Pa),je(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(ma(t)?_l(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,ga())),Sl(t),null;case 26:var a=t.type,o=t.memoizedState;return e===null?(_l(t),o===null?(Sl(t),vl(t,a,null,r,n)):(Sl(t),yl(t,o))):o?o===e.memoizedState?(Sl(t),t.flags&=-16777217):(_l(t),Sl(t),yl(t,o)):(e=e.memoizedProps,e!==r&&_l(t),Sl(t),vl(t,a,e,r,n)),null;case 27:if(Ne(t),n=Oe.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&_l(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return Sl(t),t.subtreeFlags&=-33554433,null}e=Ee.current,ma(t)?fa(t,e):(e=bm(a,r,n),t.stateNode=e,_l(t))}return Sl(t),t.subtreeFlags&=-33554433,null;case 5:if(Ne(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&_l(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return Sl(t),t.subtreeFlags&=-33554433,null}if(o=Ee.current,ma(t))fa(t,o);else{var s=gp(Oe.current);switch(o){case 1:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case 2:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;default:switch(a){case`svg`:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case`math`:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;case`script`:o=s.createElement(`div`),o.innerHTML=`<script><\/script>`,o=o.removeChild(o.firstChild);break;case`select`:o=typeof r.is==`string`?s.createElement(`select`,{is:r.is}):s.createElement(`select`),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o=typeof r.is==`string`?s.createElement(a,{is:r.is}):s.createElement(a)}}o[Tt]=t,o[Et]=r;a:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)o.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break a;for(;s.sibling===null;){if(s.return===null||s.return===t)break a;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=o;a:switch(lp(o,a,r),a){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&_l(t)}}return Sl(t),t.subtreeFlags&=-33554433,vl(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&_l(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(i(166));if(e=Oe.current,ma(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=oa,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[Tt]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||op(e.nodeValue,n)),e||da(t,!0)}else e=gp(e).createTextNode(r),e[Tt]=t,t.stateNode=e}return Sl(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=ma(t),n!==null){if(e===null){if(!r)throw Error(i(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(557));e[Tt]=t}else ha(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Sl(t),e=!1}else n=ga(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(zo(t),t):(zo(t),null);if(t.flags&128)throw Error(i(558))}return Sl(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=ma(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(i(318));if(a=t.memoizedState,a=a===null?null:a.dehydrated,!a)throw Error(i(317));a[Tt]=t}else ha(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Sl(t),a=!1}else a=ga(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(zo(t),t):(zo(t),null)}return zo(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,a=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(a=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==a&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),bl(t,t.updateQueue),Sl(t),null);case 4:return je(),e===null&&Xf(t.stateNode.containerInfo),t.flags|=67108864,Sl(t),null;case 10:return Sa(t.type),Sl(t),null;case 19:if(Ho(t),r=t.memoizedState,r===null)return Sl(t),null;if(a=!!(t.flags&128),o=r.rendering,o===null){if(a)xl(r,!1);else{if(dd!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=Uo(e),o!==null){for(t.flags|=128,xl(r,!1),e=o.updateQueue,t.updateQueue=e,bl(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Ri(n,e),n=n.sibling;return Vo(t,Bo.current&1|2),L&&ta(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&Ke()>xd&&(t.flags|=128,a=!0,xl(r,!1),t.lanes=4194304)}}else{if(!a){if(e=Uo(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,bl(t,e),xl(r,!0),r.tail===null&&r.tailMode!==`collapsed`&&r.tailMode!==`visible`&&!o.alternate&&!L)return Sl(t),null}else 2*Ke()-r.renderingStartTime>xd&&n!==536870912&&(t.flags|=128,a=!0,xl(r,!1),t.lanes=4194304)}r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e===null?t.child=o:e.sibling=o,r.last=o)}if(r.tail!==null){e=r.tail;a:{for(n=e;n!==null;){if(n.alternate!==null){n=!1;break a}n=n.sibling}n=!0}return r.rendering=e,r.tail=e.sibling,r.renderingStartTime=Ke(),e.sibling=null,o=Bo.current,o=a?o&1|2:o&1,r.tailMode===`visible`||r.tailMode===`collapsed`||!n||L?Vo(t,o):(n=o,Te(Po,t),Te(Bo,n),R===null&&(R=t)),L&&ta(t,r.treeForkCount),e}return Sl(t),null;case 22:case 23:return zo(t),No(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(Sl(t),t.subtreeFlags&6&&(t.flags|=8192)):Sl(t),n=t.updateQueue,n!==null&&bl(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&we(Ja),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Sa(Pa),Sl(t),null;case 25:return null;case 30:return t.flags|=33554432,Sl(t),null}throw Error(i(156,t.tag))}function wl(e,t){switch(ia(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Sa(Pa),je(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Ne(t),null;case 31:if(t.memoizedState!==null){if(zo(t),t.alternate===null)throw Error(i(340));ha()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(zo(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));ha()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ho(t),e=t.flags,e&65536?(t.flags=e&-65537|128,e=t.memoizedState,e!==null&&(e.rendering=null,e.tail=null),t.flags|=4,t):null;case 4:return je(),null;case 10:return Sa(t.type),null;case 22:case 23:return zo(t),No(),e!==null&&we(Ja),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Sa(Pa),null;case 25:return null;default:return null}}function Tl(e,t){switch(ia(t),t.tag){case 3:Sa(Pa),je();break;case 26:case 27:case 5:Ne(t);break;case 4:je();break;case 31:t.memoizedState!==null&&zo(t);break;case 13:zo(t);break;case 19:Ho(t);break;case 10:Sa(t.type);break;case 22:case 23:zo(t),No(),e!==null&&we(Ja);break;case 24:Sa(Pa)}}function El(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){yf(t,t.return,e)}}function Dl(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){yf(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){yf(t,t.return,e)}}function Ol(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Oo(t,n)}catch(t){yf(e,e.return,t)}}}function kl(e,t,n){n.props=Ec(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){yf(e,t,n)}}function Al(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:var i=e.stateNode,a=bi(e.memoizedProps,i);(i.ref===null||i.ref.name!==a)&&(i.ref=J(a)),r=i.ref;break;case 7:if(e.stateNode===null){var o=new Bp(e);m(e.child,!1,rm,o,void 0,void 0),e.stateNode=o}r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){yf(e,t,n)}}function jl(e,t){var n=e.ref,r=e.refCleanup;if(n!==null){if(typeof r==`function`)try{r()}catch(n){yf(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{n(null)}catch(n){yf(e,t,n)}else n.current=null}}function Ml(e,t){if((e.tag===5||e.tag===27||e.tag===6)&&e.alternate===null&&t!==null)for(var n=0;n<t.length;n++)am(e.stateNode,t[n])}function B(e){for(var t=e.return;t!==null&&(Fl(t)&&am(e.stateNode,t.stateNode),!Pl(t));)t=t.return}function Nl(e){for(var t=e.return;t!==null&&(Fl(t)&&om(e.stateNode,t.stateNode),!Pl(t));)t=t.return}function Pl(e){return e.tag===5||e.tag===3||e.tag===27}function Fl(e){return e&&e.tag===7&&e.stateNode!==null}function Il(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{a:switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&r.focus();break a;case`img`:n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){yf(e,e.return,t)}}function Ll(e,t,n){try{var r=e.stateNode;dp(r,e.type,n,t),r[Et]=t}catch(t){yf(e,e.return,t)}}function Rl(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&kp(e.type)||e.tag===4}function zl(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Rl(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&kp(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Bl(e,t,n,r){var i=e.tag;if(i===5||i===6)i=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(i,t):(t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(i),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=xn)),Ml(e,r),I=!0;else if(i!==4&&(i===27&&(Ml(e,r),r=null,kp(e.type)&&(n=e.stateNode,t=null)),e=e.child,e!==null))for(Bl(e,t,n,r),e=e.sibling;e!==null;)Bl(e,t,n,r),e=e.sibling}function Vl(e,t,n,r){var i=e.tag;if(i===5||i===6)i=e.stateNode,t?n.insertBefore(i,t):n.appendChild(i),Ml(e,r),I=!0;else if(i!==4&&(i===27&&(Ml(e,r),r=null,kp(e.type)&&(n=e.stateNode)),e=e.child,e!==null))for(Vl(e,t,n,r),e=e.sibling;e!==null;)Vl(e,t,n,r),e=e.sibling}function Hl(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);lp(t,r,n),t[Tt]=e,t[Et]=n}catch(t){yf(e,e.return,t)}}var Ul=!1,Wl=null;function Gl(e){(e.tag===30||e.subtreeFlags&33554432)&&(Ul=!0)}var Kl=null;function ql(){var e=Kl;return Kl=null,e}var Jl=0;function Yl(e,t,n,r,i){return Jl=0,Xl(e.child,t,n,r,i)}function Xl(e,t,n,r,i){for(var a=!1;e!==null;){if(e.tag===5){var o=e.stateNode;if(r!==null){var s=Fp(o);r.push(s),s.view&&(a=!0)}else a||Fp(o).view&&(a=!0);Ul=!0,Mp(o,Jl===0?t:t+`_`+Jl,n),Jl++}else e.tag===22&&e.memoizedState!==null||e.tag===30&&i||Xl(e.child,t,n,r,i)&&(a=!0);e=e.sibling}return a}function Zl(e,t){for(;e!==null;)e.tag===5?Np(e.stateNode,e.memoizedProps):e.tag===22&&e.memoizedState!==null||e.tag===30&&t||Zl(e.child,t),e=e.sibling}function Ql(e){if(e.subtreeFlags&18874368)for(e=e.child;e!==null;){if((e.tag!==22||e.memoizedState===null)&&(Ql(e),e.tag===30&&e.flags&18874368&&e.stateNode.paired)){var t=e.memoizedProps;if(t.name==null||t.name===`auto`)throw Error(i(544));var n=t.name;t=Si(t.default,t.share),t!==`none`&&(Yl(e,n,t,null,!1)||Zl(e.child,!1))}e=e.sibling}}function $l(e,t){if(e.tag===30){var n=e.stateNode,r=e.memoizedProps,i=bi(r,n),a=Si(r.default,n.paired?r.share:r.enter);a===`none`?Ql(e):Yl(e,i,a,null,!1)?(Ql(e),n.paired||t||Rd(e,r.onEnter)):Zl(e.child,!1)}else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)$l(e,t),e=e.sibling;else Ql(e)}function eu(e){if(Wl!==null&&Wl.size!==0){var t=Wl;if(e.subtreeFlags&18874368)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&e.flags&18874368){var n=e.memoizedProps,r=n.name;if(r!=null&&r!==`auto`){var i=t.get(r);if(i!==void 0){var a=Si(n.default,n.share);if(a!==`none`&&(Yl(e,r,a,null,!1)?(a=e.stateNode,i.paired=a,a.paired=i,Rd(e,n.onShare)):Zl(e.child,!1)),t.delete(r),t.size===0)break}}}eu(e)}e=e.sibling}}}function tu(e){if(e.tag===30){var t=e.memoizedProps,n=bi(t,e.stateNode),r=Wl===null?void 0:Wl.get(n),i=Si(t.default,r===void 0?t.exit:t.share);i!==`none`&&(Yl(e,n,i,null,!1)?r===void 0?Rd(e,t.onExit):(i=e.stateNode,r.paired=i,i.paired=r,Wl.delete(n),Rd(e,t.onShare)):Zl(e.child,!1)),Wl!==null&&eu(e)}else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)tu(e),e=e.sibling;else Wl!==null&&eu(e)}function nu(e){for(e=e.child;e!==null;){if(e.tag===30){var t=e.memoizedProps,n=bi(t,e.stateNode);t=Si(t.default,t.update),e.flags&=-5,t!==`none`&&Yl(e,n,t,e.memoizedState=[],!1)}else e.subtreeFlags&33554432&&nu(e);e=e.sibling}}function ru(e){if(e.subtreeFlags&18874368)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&e.flags&18874368){var t=e.stateNode;t.paired!==null&&(t.paired=null,Zl(e.child,!1))}ru(e)}e=e.sibling}}function iu(e){if(e.tag===30)e.stateNode.paired=null,Zl(e.child,!1),ru(e);else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)iu(e),e=e.sibling;else ru(e)}function au(e){for(e=e.child;e!==null;)e.tag===30?Zl(e.child,!1):e.subtreeFlags&33554432&&au(e),e=e.sibling}function ou(e,t,n,r,i,a,o){for(var s=!1;t!==null;){if(t.tag===5){var c=t.stateNode;if(a!==null&&Jl<a.length){var l=a[Jl],u=Fp(c);(l.view||u.view)&&(s=!0);var d;if(d=!(e.flags&4)){if(u.clip)d=!0;else{d=l.rect;var f=u.rect;d=d.y!==f.y||d.x!==f.x||d.height!==f.height||d.width!==f.width}}d&&(e.flags|=4),u.abs?u=!l.abs:(l=l.rect,u=u.rect,u=l.height!==u.height||l.width!==u.width),u&&(e.flags|=32)}else e.flags|=32;e.flags&4&&Mp(c,Jl===0?n:n+`_`+Jl,i),s&&e.flags&4||(Kl===null&&(Kl=[]),Kl.push(c,Jl===0?r:r+`_`+Jl,t.memoizedProps)),Jl++}else(t.tag!==22||t.memoizedState===null)&&(t.tag===30&&o?e.flags|=t.flags&32:ou(e,t.child,n,r,i,a,o)&&(s=!0));t=t.sibling}return s}function su(e,t){for(e=e.child;e!==null;){if(e.tag===30){var n=e.memoizedProps,r=e.stateNode,i=bi(n,r),a=Si(n.default,n.update);if(t){r=r.clones;var o=r===null?null:r.map(Ip)}else o=e.memoizedState,e.memoizedState=null;r=e;var s=e.child;Jl=0,i=ou(r,s,i,i,a,o,!1),e.flags&4&&i&&(t||Rd(e,n.onUpdate))}else e.subtreeFlags&33554432&&su(e,t);e=e.sibling}}var cu=!1,lu=!1,uu=!1,du=!1,fu=typeof WeakSet==`function`?WeakSet:Set,pu=null,mu=!1,hu=!1,gu=!1,_u=!1;function vu(e,t,n){if(e=e.containerInfo,mp=yh,e=Xr(e),Zr(e)){if(`selectionStart`in e)var r={start:e.selectionStart,end:e.selectionEnd};else a:{r=(r=e.ownerDocument)&&r.defaultView||window;var i=r.getSelection&&r.getSelection();if(i&&i.rangeCount!==0){r=i.anchorNode;var a=i.anchorOffset,o=i.focusNode;i=i.focusOffset;try{r.nodeType,o.nodeType}catch{r=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==r||a!==0&&f.nodeType!==3||(c=s+a),f!==o||i!==0&&f.nodeType!==3||(l=s+i),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===r&&++u===a&&(c=s),p===o&&++d===i&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}r=c===-1||l===-1?null:{start:c,end:l}}else r=null}r||={start:0,end:0}}else r=null;for(hp={focusedElem:e,selectionRange:r},yh=!1,n=(n&335544064)===n,pu=t,t=n?9270:1024;pu!==null;){if(e=pu,n&&(r=e.deletions,r!==null))for(a=0;a<r.length;a++)n&&tu(r[a]);if(e.alternate===null&&e.flags&2)n&&Gl(e),yu(n);else{if(e.tag===22){if(r=e.alternate,e.memoizedState!==null){r!==null&&r.memoizedState===null&&n&&tu(r),yu(n);continue}if(r!==null&&r.memoizedState!==null){n&&Gl(e),yu(n);continue}}r=e.child,(e.subtreeFlags&t)!==0&&r!==null?(r.return=e,pu=r):(n&&nu(e),yu(n))}}Wl=null}function yu(e){for(;pu!==null;){var t=pu,n=e,r=t.alternate,a=t.flags;switch(t.tag){case 0:case 11:case 15:break;case 1:if(a&1024&&r!==null){n=void 0,a=r.memoizedProps,r=r.memoizedState;var o=t.stateNode;try{var s=Ec(t.type,a);n=o.getSnapshotBeforeUpdate(s,r),o.__reactInternalSnapshotBeforeUpdate=n}catch(e){yf(t,t.return,e)}}break;case 3:if(a&1024){if(r=t.stateNode.containerInfo,n=r.nodeType,n===9)sm(r);else if(n===1)switch(r.nodeName){case`HEAD`:case`HTML`:case`BODY`:sm(r);break;default:r.textContent=``}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;case 30:n&&r!==null&&(n=bi(r.memoizedProps,r.stateNode),a=t.memoizedProps,a=Si(a.default,a.update),a!==`none`&&Yl(r,n,a,r.memoizedState=[],!0));break;default:if(a&1024)throw Error(i(163))}if(r=t.sibling,r!==null){r.return=t.return,pu=r;break}pu=t.return}}function bu(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:Bu(e,n),r&4&&El(5,n);break;case 1:if(Bu(e,n),r&4){if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(e){yf(n,n.return,e)}else{var i=Ec(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){yf(n,n.return,e)}}}r&64&&Ol(n),r&512&&Al(n,n.return);break;case 3:if(Bu(e,n),r&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{Oo(e,t)}catch(e){yf(n,n.return,e)}}break;case 27:t===null&&r&4&&Hl(n);case 26:case 5:Bu(e,n),t===null&&r&4&&Il(n),r&512&&Al(n,n.return);break;case 12:Bu(e,n);break;case 31:Bu(e,n),r&4&&ku(e,n);break;case 13:Bu(e,n),r&4&&Au(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=Cf.bind(null,n),pm(e,n))));break;case 22:if(r=n.memoizedState!==null||cu,!r){var a=t!==null&&t.memoizedState!==null||lu;t=cu,i=lu,cu=r,(lu=a)&&!i?(r=2,n.subtreeFlags&8772&&(r|=1),Hu(e,n,r)):Bu(e,n),cu=t,lu=i}break;case 30:Bu(e,n),r&512&&Al(n,n.return);break;case 7:r&512&&Al(n,n.return);default:Bu(e,n)}}function xu(e,t){for(e=e.child;e!==null;)Su(e,t),e=e.sibling}function Su(e,t){switch(e.tag){case 5:case 26:try{var n=e.stateNode;if(t){var r=n.style;typeof r.setProperty==`function`?r.setProperty(`display`,`none`,`important`):r.display=`none`}else{var i=e.stateNode,a=e.memoizedProps.style,o=a!=null&&a.hasOwnProperty(`display`)?a.display:null;i.style.display=o==null||typeof o==`boolean`?``:(``+o).trim()}}catch(t){yf(e,e.return,t)}Cu(e,t);break;case 6:try{e.stateNode.nodeValue=t?``:e.memoizedProps,I=!0}catch(t){yf(e,e.return,t)}break;case 18:try{var s=e.stateNode;t?jp(s,!0):jp(e.stateNode,!1)}catch(t){yf(e,e.return,t)}break;case 22:case 23:e.memoizedState===null&&xu(e,t);break;default:xu(e,t)}}function Cu(e,t){if(e.subtreeFlags&67108864)for(e=e.child;e!==null;){a:{var n=e,r=t;switch(n.tag){case 4:Su(n,r);break a;case 22:n.memoizedState===null&&Cu(n,r);break a;default:Cu(n,r)}}e=e.sibling}}function wu(e){var t=e.alternate;t!==null&&(e.alternate=null,wu(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Pt(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Tu=null,Eu=!1;function Du(e,t,n){for(n=n.child;n!==null;)Ou(e,t,n),n=n.sibling}function Ou(e,t,n){if(tt&&typeof tt.onCommitFiberUnmount==`function`)try{tt.onCommitFiberUnmount(et,n)}catch{}switch(n.tag){case 26:lu||jl(n,t),Du(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&!lu&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:lu||jl(n,t),Nl(n);var r=Tu,i=Eu;kp(n.type)&&(Tu=n.stateNode,Eu=!1),Du(e,t,n),xm(n.stateNode,n.type,n.memoizedProps),Tu=r,Eu=i;break;case 5:lu||jl(n,t),Nl(n);case 6:if(n.tag===6&&Nl(n),r=Tu,i=Eu,Tu=null,Du(e,t,n),Tu=r,Eu=i,Tu!==null){if(Eu)try{(Tu.nodeType===9?Tu.body:Tu.nodeName===`HTML`?Tu.ownerDocument.body:Tu).removeChild(n.stateNode),I=!0}catch(e){yf(n,t,e)}else try{Tu.removeChild(n.stateNode),I=!0}catch(e){yf(n,t,e)}}break;case 18:Tu!==null&&(Eu?(e=Tu,Ap(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),Gh(e)):Ap(Tu,n.stateNode));break;case 4:r=Tu,i=Eu,Tu=n.stateNode.containerInfo,Eu=!0,Du(e,t,n),Tu=r,Eu=i;break;case 0:case 11:case 14:case 15:Dl(2,n,t),lu||Dl(4,n,t),Du(e,t,n);break;case 1:lu||(jl(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`&&kl(n,t,r)),Du(e,t,n);break;case 21:Du(e,t,n);break;case 22:lu=(r=lu)||n.memoizedState!==null,Du(e,t,n),lu=r;break;case 30:jl(n,t),Du(e,t,n);break;case 7:lu||jl(n,t),Du(e,t,n);break;default:Du(e,t,n)}}function ku(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Gh(e)}catch(e){yf(t,t.return,e)}}}function Au(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Gh(e)}catch(e){yf(t,t.return,e)}}function ju(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new fu),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new fu),t;default:throw Error(i(435,e.tag))}}function Mu(e,t){var n=ju(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=wf.bind(null,e,t);t.then(r,r)}})}function Nu(e,t,n){var r=t.deletions;if(r!==null)for(var a=0;a<r.length;a++){var o=r[a],s=e,c=t,l=c;a:for(;l!==null;){switch(l.tag){case 27:if(kp(l.type)){Tu=l.stateNode,Eu=!1;break a}break;case 5:Tu=l.stateNode,Eu=!1;break a;case 3:case 4:Tu=l.stateNode.containerInfo,Eu=!0;break a}l=l.return}if(Tu===null)throw Error(i(160));Ou(s,c,o),Tu=null,Eu=!1,s=o.alternate,s!==null&&(s.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Fu(t,e,n),t=t.sibling}var Pu=null;function Fu(e,t,n){var r=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(a&4&&(r=e.updateQueue,r=r===null?null:r.events,r!==null))for(var o=0;o<r.length;o++){var s=r[o];s.ref.impl=s.nextImpl}Nu(t,e,n),Iu(e),a&4&&(Dl(3,e,e.return),El(3,e),Dl(5,e,e.return));break;case 1:Nu(t,e,n),Iu(e),a&512&&(lu||r===null||jl(r,r.return)),a&64&&cu&&(e=e.updateQueue,e!==null&&(t=e.callbacks,t!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?t:n.concat(t))));break;case 26:if(o=Pu,Nu(t,e,n),Iu(e),a&512&&(lu||r===null||jl(r,r.return)),a&4){if(a=r===null?null:r.memoizedState,n=e.memoizedState,r===null){if(n===null){if(e.stateNode===null){if(cu)e.stateNode=yp(e.type,e.memoizedProps,t.containerInfo,e);else{a:{t=e.type,n=e.memoizedProps,a=o.ownerDocument||o;b:switch(t){case`title`:r=a.getElementsByTagName(`title`)[0],(!r||r[Mt]||r[Tt]||r.namespaceURI===`http://www.w3.org/2000/svg`||r.hasAttribute(`itemprop`))&&(r=a.createElement(t),a.head.insertBefore(r,a.querySelector(`head > title`))),lp(r,t,n),r[Tt]=e,zt(r),t=r;break a;case`link`:if(o=Jm(`link`,`href`,a).get(t+(n.href||``))){for(s=0;s<o.length;s++)if(r=o[s],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)){o.splice(s,1);break b}}r=a.createElement(t),lp(r,t,n),a.head.appendChild(r);break;case`meta`:if(o=Jm(`meta`,`content`,a).get(t+(n.content||``))){for(s=0;s<o.length;s++)if(r=o[s],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)){o.splice(s,1);break b}}r=a.createElement(t),lp(r,t,n),a.head.appendChild(r);break;default:throw Error(i(468,t))}r[Tt]=e,zt(r),t=r}e.stateNode=t}}else cu||Ym(o,e.type,e.stateNode)}else e.stateNode=Um(o,n,e.memoizedProps)}else a===n?n===null&&e.stateNode!==null&&Ll(e,e.memoizedProps,r.memoizedProps):(a===null?(t=r.stateNode,t===null||lu||t.parentNode.removeChild(t)):a.count--,n===null?cu||Ym(o,e.type,e.stateNode):Um(o,n,e.memoizedProps))}break;case 27:Nu(t,e,n),Iu(e),a&512&&(lu||r===null||jl(r,r.return)),r!==null&&a&4&&Ll(e,e.memoizedProps,r.memoizedProps);break;case 5:if(o=uu,uu=!1,Nu(t,e,n),uu=o,Iu(e),a&512&&(lu||r===null||jl(r,r.return)),e.flags&32){t=e.stateNode;try{pn(t,``),I=!0}catch(t){yf(e,e.return,t)}}a&4&&e.stateNode!=null&&(t=e.memoizedProps,Ll(e,t,r===null?t:r.memoizedProps)),a&1024&&(du=!0);break;case 6:if(Nu(t,e,n),Iu(e),a&4){if(e.stateNode===null)throw Error(i(162));t=e.memoizedProps,n=e.stateNode;try{n.nodeValue=t,I=!0}catch(t){yf(e,e.return,t)}}break;case 3:if(I=!1,qm=null,o=Pu,Pu=Tm(t.containerInfo),Nu(t,e,n),Pu=o,Iu(e),a&4&&r!==null&&r.memoizedState.isDehydrated)try{Gh(t.containerInfo)}catch(t){yf(e,e.return,t)}du&&(du=!1,Lu(e)),I=!1;break;case 4:a=uu,uu=cu,r=Yt(),o=Pu,Pu=Tm(e.stateNode.containerInfo),Nu(t,e,n),Iu(e),Pu=o,I&&hu&&(gu=!0),I=r,uu=a;break;case 12:Nu(t,e,n),Iu(e);break;case 31:Nu(t,e,n),Iu(e),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Mu(e,t)));break;case 13:Nu(t,e,n),Iu(e),e.child.flags&8192&&e.memoizedState!==null!=(r!==null&&r.memoizedState!==null)&&(yd=Ke()),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Mu(e,t)));break;case 22:o=e.memoizedState!==null,s=r!==null&&r.memoizedState!==null;var c=cu,l=lu,u=uu;cu=c||o,uu=u||o,lu=l||s,Nu(t,e,n),lu=l,uu=u,cu=c,Iu(e),a&8192&&(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,!o||r===null||s||cu||lu||(t=s||lu,n=cu,r=lu,cu=o||cu,lu=t,Vu(e,2),cu=n,lu=r),!o&&uu||xu(e,o)),a&4&&(t=e.updateQueue,t!==null&&(n=t.retryQueue,n!==null&&(t.retryQueue=null,Mu(e,n))));break;case 19:Nu(t,e,n),Iu(e),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Mu(e,t)));break;case 30:a&512&&(lu||r===null||jl(r,r.return)),a=Yt(),o=hu,s=(n&335544064)===n,c=e.memoizedProps,hu=s&&Si(c.default,c.update)!==`none`,Nu(t,e,n),Iu(e),s&&r!==null&&I&&(e.flags|=4),hu=o,I=a;break;case 21:break;case 7:a&512&&(lu||r===null||jl(r,r.return)),r&&r.stateNode!==null&&(r.stateNode._fragmentFiber=e);default:Nu(t,e,n),Iu(e)}}function Iu(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(Rl(r)){n=r;break}r=r.return}r=null;for(var a=e.return;a!==null;){if(Fl(a)){var o=a.stateNode;r===null?r=[o]:r.push(o)}if(Pl(a))break;a=a.return}var s=r;if(n==null)throw Error(i(160));switch(n.tag){case 27:var c=n.stateNode;Vl(e,zl(e),c,s);break;case 5:var l=n.stateNode;n.flags&32&&(pn(l,``),n.flags&=-33),Vl(e,zl(e),l,s);break;case 3:case 4:var u=n.stateNode.containerInfo;Bl(e,zl(e),u,s);break;default:throw Error(i(161))}}catch(t){yf(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Lu(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Lu(t),t.tag===5&&t.flags&1024&&(t=t.stateNode,yh=!0,t.reset(),yh=!1),e=e.sibling}}function Ru(e,t){if(t.subtreeFlags&9270)for(t=t.child;t!==null;)zu(t,e),t=t.sibling;else su(t,!1)}function zu(e,t){var n=e.alternate;if(n===null)$l(e,!1);else switch(e.tag){case 3:if(_u=mu=!1,ql(),Ru(t,e),!mu&&!gu){if(e=Kl,e!==null)for(var r=0;r<e.length;r+=3){n=e[r];var i=e[r+1];Np(n,e[r+2]),n=n.ownerDocument.documentElement,n!==null&&n.animate({opacity:[0,0],pointerEvents:[`none`,`none`]},{duration:0,fill:`forwards`,pseudoElement:`::view-transition-group(`+i+`)`})}e=t.containerInfo,e=e.nodeType===9?e.documentElement:e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName===``&&(e.style.viewTransitionName=`none`,e.animate({opacity:[0,0],pointerEvents:[`none`,`none`]},{duration:0,fill:`forwards`,pseudoElement:`::view-transition-group(root)`}),e.animate({width:[0,0],height:[0,0]},{duration:0,fill:`forwards`,pseudoElement:`::view-transition`})),_u=!0}Kl=null;break;case 5:Ru(t,e);break;case 4:r=mu,mu=!1,Ru(t,e),mu&&(gu=!0),mu=r;break;case 22:e.memoizedState===null&&(n.memoizedState===null?Ru(t,e):$l(e,!1));break;case 30:r=mu,i=ql(),mu=!1,Ru(t,e),mu&&(e.flags|=4);var a=e.memoizedProps,o=e.stateNode;t=bi(a,o),o=bi(n.memoizedProps,o);var s=Si(a.default,a.update);s===`none`?t=!1:(a=n.memoizedState,n.memoizedState=null,n=e.child,Jl=0,t=ou(e,n,t,o,s,a,!0),Jl!==(a===null?0:a.length)&&(e.flags|=32)),e.flags&4&&t?(Rd(e,e.memoizedProps.onUpdate),Kl=i):i!==null&&(i.push.apply(i,Kl),Kl=i),mu=e.flags&32?!0:r;break;default:Ru(t,e)}}function Bu(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)bu(e,t.alternate,t),t=t.sibling}function Vu(e,t){for(e=e.child;e!==null;){var n=e,r=t;switch(n.tag){case 0:case 11:case 14:case 15:Dl(4,n,n.return),Vu(n,r);break;case 1:jl(n,n.return);var i=n.stateNode;typeof i.componentWillUnmount==`function`&&kl(n,n.return,i),Vu(n,r);break;case 27:r&2&&xm(n.stateNode,n.type,n.memoizedProps);case 5:jl(n,n.return),n.tag!==5&&n.tag!==27||Nl(n),Vu(n,r);break;case 6:Nl(n);break;case 26:jl(n,n.return),i=n.stateNode,n.memoizedState!==null||i===null||lu||i.parentNode.removeChild(i),Vu(n,r);break;case 22:n.memoizedState===null&&Vu(n,r);break;case 30:jl(n,n.return),Vu(n,r);break;case 7:jl(n,n.return);default:Vu(n,r)}e=e.sibling}}function Hu(e,t,n){for(n=t.subtreeFlags&8772?n:n&-2,t=t.child;t!==null;){var r=t.alternate,i=e,a=t,o=a.flags,s=!!(n&1);switch(a.tag){case 0:case 11:case 15:Hu(i,a,n),El(4,a);break;case 1:if(Hu(i,a,n),r=a,i=r.stateNode,typeof i.componentDidMount==`function`)try{i.componentDidMount()}catch(e){yf(r,r.return,e)}if(r=a,i=r.updateQueue,i!==null){var c=r.stateNode;try{var l=i.shared.hiddenCallbacks;if(l!==null)for(i.shared.hiddenCallbacks=null,i=0;i<l.length;i++)Do(l[i],c)}catch(e){yf(r,r.return,e)}}s&&o&64&&Ol(a),Al(a,a.return);break;case 27:n&2&&Hl(a);case 5:a.tag!==5&&a.tag!==27||B(a),Hu(i,a,n),s&&r===null&&o&4&&Il(a),Al(a,a.return);break;case 6:B(a);break;case 26:c=a.stateNode,a.memoizedState!==null||c===null||cu||Ym(Tm(c.ownerDocument),a.type,c),Hu(i,a,n),s&&r===null&&o&4&&Il(a),Al(a,a.return);break;case 12:Hu(i,a,n);break;case 31:Hu(i,a,n),s&&o&4&&ku(i,a);break;case 13:Hu(i,a,n),s&&o&4&&Au(i,a);break;case 22:a.memoizedState===null&&Hu(i,a,n),Al(a,a.return);break;case 30:Hu(i,a,n),Al(a,a.return);break;case 7:Al(a,a.return);default:Hu(i,a,n)}t=t.sibling}}function Uu(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&Ia(n))}function Wu(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Ia(e))}function Gu(e,t,n,r){var i=(n&335544064)===n;if(t.subtreeFlags&(i?10262:10256))for(t=t.child;t!==null;)Ku(e,t,n,r),t=t.sibling;else i&&au(t)}function Ku(e,t,n,r){var i=(n&335544064)===n;i&&t.alternate===null&&t.return!==null&&t.return.alternate!==null&&iu(t);var a=t.flags;switch(t.tag){case 0:case 11:case 15:Gu(e,t,n,r),a&2048&&El(9,t);break;case 1:Gu(e,t,n,r);break;case 3:Gu(e,t,n,r),i&&_u&&(e=e.containerInfo,e=e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,e.style.viewTransitionName===`root`&&(e.style.viewTransitionName=``),e=e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName===`none`&&(e.style.viewTransitionName=``)),a&2048&&(a=null,t.alternate!==null&&(a=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==a&&(t.refCount++,a!=null&&Ia(a)));break;case 12:if(a&2048){Gu(e,t,n,r),a=t.stateNode;try{var o=t.memoizedProps,s=o.id,c=o.onPostCommit;typeof c==`function`&&c(s,t.alternate===null?`mount`:`update`,a.passiveEffectDuration,-0)}catch(e){yf(t,t.return,e)}}else Gu(e,t,n,r);break;case 31:Gu(e,t,n,r);break;case 13:Gu(e,t,n,r);break;case 23:break;case 22:o=t.stateNode,s=t.alternate,t.memoizedState===null?(i&&s!==null&&s.memoizedState!==null&&iu(t),o._visibility&2?Gu(e,t,n,r):(o._visibility|=2,qu(e,t,n,r,!!(t.subtreeFlags&10256)||!1))):(i&&s!==null&&s.memoizedState===null&&iu(s),o._visibility&2?Gu(e,t,n,r):Ju(e,t)),a&2048&&Uu(s,t);break;case 24:Gu(e,t,n,r),a&2048&&Wu(t.alternate,t);break;case 30:i&&(a=t.alternate,a!==null&&(Zl(a.child,!0),Zl(t.child,!0))),Gu(e,t,n,r);break;default:Gu(e,t,n,r)}}function qu(e,t,n,r,i){for(i&&=!!(t.subtreeFlags&10256)||!1,t=t.child;t!==null;){var a=e,o=t,s=n,c=r,l=o.flags;switch(o.tag){case 0:case 11:case 15:qu(a,o,s,c,i),El(8,o);break;case 23:break;case 22:var u=o.stateNode;o.memoizedState===null?(u._visibility|=2,qu(a,o,s,c,i)):u._visibility&2?qu(a,o,s,c,i):Ju(a,o),i&&l&2048&&Uu(o.alternate,o);break;case 24:qu(a,o,s,c,i),i&&l&2048&&Wu(o.alternate,o);break;default:qu(a,o,s,c,i)}t=t.sibling}}function Ju(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,r=t,i=r.flags;switch(r.tag){case 22:Ju(n,r),i&2048&&Uu(r.alternate,r);break;case 24:Ju(n,r),i&2048&&Wu(r.alternate,r);break;default:Ju(n,r)}t=t.sibling}}var Yu=8192;function Xu(e,t,n){if(e.subtreeFlags&Yu)for(e=e.child;e!==null;)Zu(e,t,n),e=e.sibling}function Zu(e,t,n){switch(e.tag){case 26:Xu(e,t,n),e.flags&Yu&&(e.memoizedState===null?(e=e.stateNode,(t&335544128)===t&&eh(n,e)):th(n,Pu,e.memoizedState,e.memoizedProps));break;case 5:Xu(e,t,n),e.flags&Yu&&(e=e.stateNode,(t&335544128)===t&&eh(n,e));break;case 3:case 4:var r=Pu;Pu=Tm(e.stateNode.containerInfo),Xu(e,t,n),Pu=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=Yu,Yu=16777216,Xu(e,t,n),Yu=r):Xu(e,t,n));break;case 30:if((e.flags&Yu)!==0&&(r=e.memoizedProps.name,r!=null&&r!==`auto`)){var i=e.stateNode;i.paired=null,Wl===null&&(Wl=new Map),Wl.set(r,i)}Xu(e,t,n);break;default:Xu(e,t,n)}}function Qu(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function $u(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];pu=r,nd(r,e)}Qu(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)ed(e),e=e.sibling}function ed(e){switch(e.tag){case 0:case 11:case 15:$u(e),e.flags&2048&&Dl(9,e,e.return);break;case 3:$u(e);break;case 12:$u(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,td(e)):$u(e);break;default:$u(e)}}function td(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];pu=r,nd(r,e)}Qu(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Dl(8,t,t.return),td(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,td(t));break;default:td(t)}e=e.sibling}}function nd(e,t){for(;pu!==null;){var n=pu;switch(n.tag){case 0:case 11:case 15:Dl(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var r=n.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:Ia(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,pu=r;else a:for(n=e;pu!==null;){r=pu;var i=r.sibling,a=r.return;if(wu(r),r===n){pu=null;break a}if(i!==null){i.return=a,pu=i;break a}pu=a}}}var rd={getCacheForType:function(e){var t=Oa(Pa),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return Oa(Pa).controller.signal}},id=typeof WeakMap==`function`?WeakMap:Map,V=0,ad=null,H=null,U=0,W=0,od=null,sd=!1,cd=!1,ld=!1,ud=0,dd=0,fd=0,pd=0,md=0,hd=0,gd=0,_d=null,vd=null,G=!1,yd=0,bd=0,xd=1/0,Sd=null,Cd=null,wd=0,Td=null,Ed=null,Dd=0,Od=0,kd=null,Ad=null,jd=null,Md=null,Nd=null,Pd=0,Fd=null;function Id(){return V&2&&U!==0?U&-U:j.T===null?Ct():Bf()}function Ld(){if(hd===0){if(!(U&536870912)||L){var e=st;st<<=1,!(st&3932160)&&(st=262144),hd=e}else hd=536870912}return e=Po.current,e!==null&&(e.flags|=32),hd}function Rd(e,t){if(t!=null){var n=e.stateNode,r=n.ref;r===null&&(r=n.ref=J(bi(e.memoizedProps,n))),Md===null&&(Md=[]),Md.push(t.bind(null,r))}}function zd(e,t,n){(e===ad&&(W===2||W===9)||e.cancelPendingCommit!==null)&&(Kd(e,0),Ud(e,U,hd,!1)),gt(e,n),V&2&&e===ad||(e===ad&&(!(V&2)&&(pd|=n),dd===4&&Ud(e,U,hd,!1)),Mf(e))}function Bd(e,t,n){if(V&6)throw Error(i(327));var r=!n&&!(t&127)&&(t&e.expiredLanes)===0||dt(e,t),a=r?ef(e,t):Qd(e,t,!0),o=r;do{if(a===0){cd&&!r&&Ud(e,t,0,!1);break}if(n=e.current.alternate,o&&!Hd(n))a=Qd(e,t,!1),o=!1;else{if(a===2){if(o=t,e.errorRecoveryDisabledLanes&o)var s=0;else s=e.pendingLanes&-536870913,s=s===0?s&536870912?536870912:0:s;if(s!==0){t=s;a:{var c=e;a=_d;var l=c.current.memoizedState.isDehydrated;if(l&&(Kd(c,s).flags|=256),s=Qd(c,s,!1),s!==2&&s!==6){if(ld&&!l){c.errorRecoveryDisabledLanes|=o,pd|=o,a=4;break a}o=vd,vd=a,o!==null&&(vd===null?vd=o:vd.push.apply(vd,o))}a=s}if(o=!1,a!==2)continue}}if(a===1){Kd(e,0),Ud(e,t,0,!0);break}a:{switch(r=e,o=a,o){case 0:case 1:throw Error(i(345));case 4:if((t&4194048)!==t&&(t&62914560)!==t)break;case 6:Ud(r,t,hd,!sd);break a;case 2:vd=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(a=yd+300-Ke(),10<a)){if(Ud(r,t,hd,!sd),ut(r,0,!0)!==0)break a;Dd=t,r.timeoutHandle=Cp(Vd.bind(null,r,n,vd,Sd,G,t,hd,pd,gd,sd,o,`Throttled`,-0,0),a);break a}Vd(r,n,vd,Sd,G,t,hd,pd,gd,sd,o,null,-0,0)}break}}while(1);Mf(e)}function Vd(e,t,n,r,i,a,o,s,c,l,u,d,f,p){e.timeoutHandle=-1;var m=t.subtreeFlags,h=(a&335544064)===a;d=null,(h||m&8192||(m&16785408)==16785408)&&(d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:xn},Wl=null,Zu(t,a,d),h&&(m=d,h=e.containerInfo,h=(h.nodeType===9?h:h.ownerDocument).__reactViewTransition,h!=null&&(m.count++,m.waitingForViewTransition=!0,m=ah.bind(m),h.finished.then(m,m))),m=(a&62914560)===a?yd-Ke():(a&4194048)===a?bd-Ke():0,m=rh(d,m),m!==null)?(Dd=a,e.cancelPendingCommit=m(cf.bind(null,e,t,a,n,r,i,o,s,c,l,u,d,null,f,p)),Ud(e,a,o,!l)):cf(e,t,a,n,r,i,o,s,c,l,u,d)}function Hd(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!Wr(a(),i))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Ud(e,t,n,r){t=ft(e,t),t&=~md,t&=~pd,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-P(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&vt(e,n,t)}function Wd(){return V&6?!0:(Nf(0,!1),!1)}function Gd(){if(H!==null){if(W===0)var e=H.return;else e=H,ba=ya=null,cs(e),co=null,lo=0,e=H;for(;e!==null;)Tl(e.alternate,e),e=e.return;H=null}}function Kd(e,t){var n=e.timeoutHandle;return n!==-1&&(e.timeoutHandle=-1,wp(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Dd=0,Gd(),ad=e,H=n=Li(e.current,null),U=t,W=0,od=null,sd=!1,cd=dt(e,t),ld=!1,gd=hd=md=pd=fd=dd=0,vd=_d=null,G=!1,ud=ft(e,t),Di(),n}function qd(e,t){z=null,j.H=vc,t===Qa||t===eo?(t=oo(),W=3):t===$a?(t=oo(),W=4):W=t===Ic?8:typeof t==`object`&&t&&typeof t.then==`function`?6:1,od=t,H===null&&(dd=1,Ac(e,Gi(t,e.current)))}function Jd(){var e=Po.current;return e===null?!0:(U&4194048)===U?R===null:(U&62914560)===U||U&536870912?e===R:!1}function Yd(){var e=j.H;return j.H=vc,e===null?vc:e}function Xd(){var e=j.A;return j.A=rd,e}function Zd(){dd=4,sd||(U&4194048)!==U&&Po.current!==null||(cd=!0),!(fd&134217727)&&!(pd&134217727)||ad===null||Ud(ad,U,hd,!1)}function Qd(e,t,n){var r=V;V|=2;var i=Yd(),a=Xd();(ad!==e||U!==t)&&(Sd=null,Kd(e,t)),t=!1;var o=dd;a:do try{if(W!==0&&H!==null){var s=H,c=od;switch(W){case 8:Gd(),o=6;break a;case 3:case 2:case 9:case 6:Po.current===null&&(t=!0);var l=W;if(W=0,od=null,af(e,s,c,l),n&&cd){o=0;break a}break;default:l=W,W=0,od=null,af(e,s,c,l)}}$d(),o=dd;break}catch(t){qd(e,t)}while(1);return t&&e.shellSuspendCounter++,ba=ya=null,V=r,j.H=i,j.A=a,H===null&&(ad=null,U=0,Di()),o}function $d(){for(;H!==null;)nf(H)}function ef(e,t){var n=V;V|=2;var r=Yd(),a=Xd();ad!==e||U!==t?(Sd=null,xd=Ke()+500,Kd(e,t)):cd=dt(e,t);a:do try{if(W!==0&&H!==null){t=H;var o=od;b:switch(W){case 1:W=0,od=null,af(e,t,o,1);break;case 2:case 9:if(no(o)){W=0,od=null,rf(t);break}t=function(){W!==2&&W!==9||ad!==e||(W=7),Mf(e)},o.then(t,t);break a;case 3:W=7;break a;case 4:W=5;break a;case 7:no(o)?(W=0,od=null,rf(t)):(W=0,od=null,af(e,t,o,7));break;case 5:var s=null;switch(H.tag){case 26:s=H.memoizedState;case 5:case 27:var c=H;if(s?Qm(s):c.stateNode.complete){W=0,od=null;var l=c.sibling;if(l!==null)H=l;else{var u=c.return;u===null?H=null:(H=u,of(u))}break b}}W=0,od=null,af(e,t,o,5);break;case 6:W=0,od=null,af(e,t,o,6);break;case 8:Gd(),dd=6;break a;default:throw Error(i(462))}}tf();break}catch(t){qd(e,t)}while(1);return ba=ya=null,j.H=r,j.A=a,V=n,H===null?(ad=null,U=0,Di(),dd):0}function tf(){for(;H!==null&&!We();)nf(H)}function nf(e){var t=gl(e.alternate,e,ud);e.memoizedProps=e.pendingProps,t===null?of(e):H=t}function rf(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Xc(n,t,t.pendingProps,t.type,void 0,U);break;case 11:t=Xc(n,t,t.pendingProps,t.type.render,t.ref,U);break;case 5:cs(t);var r=t;r===oa&&(L?(pa(r),r.tag===5&&r.stateNode!=null&&(sa=r.stateNode)):(pa(r),L=!0));default:Tl(n,t),t=H=Ri(t,ud),t=gl(n,t,ud)}e.memoizedProps=e.pendingProps,t===null?of(e):H=t}function af(e,t,n,r){ba=ya=null,cs(t),co=null,lo=0;var i=t.return;try{if(Fc(e,i,t,n,U)){dd=1,Ac(e,Gi(n,e.current)),H=null;return}}catch(t){if(i!==null)throw H=i,t;dd=1,Ac(e,Gi(n,e.current)),H=null;return}t.flags&32768?(L||r===1?e=!0:cd||U&536870912?e=!1:(sd=e=!0,(r===2||r===9||r===3||r===6)&&(r=Po.current,r!==null&&r.tag===13&&(r.flags|=16384))),sf(t,e)):of(t)}function of(e){var t=e;do{if(t.flags&32768){sf(t,sd);return}e=t.return;var n=Cl(t.alternate,t,ud);if(n!==null){H=n;return}if(t=t.sibling,t!==null){H=t;return}H=t=e}while(t!==null);dd===0&&(dd=5)}function sf(e,t){do{var n=wl(e.alternate,e);if(n!==null){n.flags&=32767,H=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){H=e;return}H=e=n}while(e!==null);dd=6,H=null}function cf(e,t,n,r,a,o,s,c,l,u,d,f){e.cancelPendingCommit=null;do gf();while(wd!==0);if(V&6)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));e===ad&&(H=ad=null,U=0),Ed=t,Td=e,Dd=n,kd=a,Ad=r,lf(e,t,n,s,c,l,f)}}function lf(e,t,n,r,i,a,o){var s=t.lanes|t.childLanes;if(Od=s,s|=Ei,_t(e,n,s,r,i,a),Md=null,(n&335544064)===n?(Nd=za(e),r=10262):(Nd=null,r=10256),(t.subtreeFlags&r)!==0||(t.flags&r)!==0?(e.callbackNode=null,e.callbackPriority=0,Tf(Xe,function(){return _f(),null})):(e.callbackNode=null,e.callbackPriority=0),Ul=!1,r=!!(t.flags&13878),t.subtreeFlags&13878||r){r=j.T,j.T=null,i=M.p,M.p=2,a=V,V|=4;try{vu(e,t,n)}finally{V=a,M.p=i,j.T=r}}wd=1,Ul?jd=zp(o,e.containerInfo,Nd,ff,pf,df,mf,_f,uf,null,null):(ff(),pf(),mf())}function uf(e){if(wd!==0){var t=Td.onRecoverableError;t(e,{componentStack:null})}}function df(){wd===3&&(wd=0,zu(Ed,Td),wd=4)}function ff(){if(wd===1){wd=0;var e=Td,t=Ed,n=Dd,r=!!(t.flags&13878);if(t.subtreeFlags&13878||r){r=j.T,j.T=null;var i=M.p;M.p=2;var a=V;V|=4;try{hu=gu=!1,Fu(t,e,n),n=hp;var o=Xr(e.containerInfo),s=n.focusedElem,c=n.selectionRange;if(o!==s&&s&&s.ownerDocument&&Yr(s.ownerDocument.documentElement,s)){if(c!==null&&Zr(s)){var l=c.start,u=c.end;if(u===void 0&&(u=l),`selectionStart`in s)s.selectionStart=l,s.selectionEnd=Math.min(u,s.value.length);else{var d=s.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var p=f.getSelection(),m=s.textContent.length,h=Math.min(c.start,m),g=c.end===void 0?h:Math.min(c.end,m);!p.extend&&h>g&&(o=g,g=h,h=o);var _=Jr(s,h),v=Jr(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;s<d.length;s++){var b=d[s];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}yh=!!mp,hp=mp=null}finally{V=a,M.p=i,j.T=r}}e.current=t,wd=2}}function pf(){if(wd===2){wd=0;var e=Td,t=Ed,n=!!(t.flags&8772);if(t.subtreeFlags&8772||n){n=j.T,j.T=null;var r=M.p;M.p=2;var i=V;V|=4;try{bu(e,t.alternate,t)}finally{V=i,M.p=r,j.T=n}}wd=3}}function mf(){if(wd===4||wd===3){wd=0;var e=jd;jd=null,Ge();var t=Td,n=Ed,r=Dd,i=Ad,a=(r&335544064)===r?10262:10256;if((n.subtreeFlags&a)!==0||(n.flags&a)!==0?wd=5:(wd=0,Ed=Td=null,hf(t,t.pendingLanes)),a=t.pendingLanes,a===0&&(Cd=null),St(r),n=n.stateNode,tt&&typeof tt.onCommitFiberRoot==`function`)try{tt.onCommitFiberRoot(et,n,void 0,(n.current.flags&128)==128)}catch{}if(i!==null){n=j.T,a=M.p,M.p=2,j.T=null;try{for(var o=t.onRecoverableError,s=0;s<i.length;s++){var c=i[s];o(c.value,{componentStack:c.stack})}}finally{j.T=n,M.p=a}}if(i=Md,o=Nd,Nd=null,i!==null&&(Md=null,o===null&&(o=[]),e!==null))for(c=0;c<i.length;c++)n=(0,i[c])(o),n!==void 0&&e.finished.finally(n);Dd&3&&gf(),Mf(t),a=t.pendingLanes,r&261930&&a&42?t===Fd?Pd++:(Pd=0,Fd=t):(Pd=0,Fd=null),Nf(0,!1)}}function hf(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Ia(t)))}function gf(){return jd!==null&&(jd.skipTransition(),jd=null),ff(),pf(),mf(),_f()}function _f(){if(wd!==5)return!1;var e=Td,t=Od;Od=0;var n=St(Dd),r=j.T,a=M.p;try{M.p=32>n?32:n,j.T=null,n=kd,kd=null;var o=Td,s=Dd;if(wd=0,Ed=Td=null,Dd=0,V&6)throw Error(i(331));var c=V;if(V|=4,ed(o.current),Ku(o,o.current,s,n),V=c,Nf(0,!1),tt&&typeof tt.onPostCommitFiberRoot==`function`)try{tt.onPostCommitFiberRoot(et,o)}catch{}return!0}finally{M.p=a,j.T=r,hf(e,t)}}function vf(e,t,n){t=Gi(n,t),t=Mc(e.stateNode,t,2),e=xo(e,t,2),e!==null&&(gt(e,2),Mf(e))}function yf(e,t,n){if(e.tag===3)vf(e,e,n);else for(;t!==null;){if(t.tag===3){vf(t,e,n);break}if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(Cd===null||!Cd.has(r))){e=Gi(n,e),n=Nc(2),r=xo(t,n,2),r!==null&&(Pc(n,r,t,e),gt(r,2),Mf(r));break}}t=t.return}}function bf(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new id;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(ld=!0,i.add(n),e=xf.bind(null,e,t,n),t.then(e,e))}function xf(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,ad===e&&(U&n)===n&&(dd===4||dd===3&&(U&62914560)===U&&300>Ke()-yd?V&2?md|=n:Kd(e,0):md|=n,gd===U&&(gd=0)),Mf(e)}function Sf(e,t){t===0&&(t=mt()),e=Ai(e,t),e!==null&&(gt(e,t),Mf(e))}function Cf(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Sf(e,n)}function wf(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(i(314))}r!==null&&r.delete(t),Sf(e,n)}function Tf(e,t){return He(e,t)}var Ef=null,Df=null,Of=!1,kf=!1,Af=!1,jf=0;function Mf(e){e!==Df&&e.next===null&&(Df===null?Ef=Df=e:Df=Df.next=e),kf=!0,Of||(Of=!0,zf())}function Nf(e,t){if(!Af&&kf){Af=!0;do for(var n=!1,r=Ef;r!==null;){if(!t){if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-P(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,Rf(r,a))}else a=U,a=ut(r,r===ad?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||dt(r,a)||(n=!0,Rf(r,a))}r=r.next}while(n);Af=!1}}function Pf(){Ff()}function Ff(){kf=Of=!1;var e=0;jf!==0&&Sp()&&(e=jf);for(var t=Ke(),n=null,r=Ef;r!==null;){var i=r.next,a=If(r,t);a===0?(r.next=null,n===null?Ef=i:n.next=i,i===null&&(Df=n)):(n=r,(e!==0||a&3)&&(kf=!0)),r=i}wd!==0&&wd!==5||Nf(e,!1),jf!==0&&(jf=0)}function If(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-P(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=pt(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=ad,n=U,n=ut(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(W===2||W===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&Ue(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||dt(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&Ue(r),St(n)){case 2:case 8:n=Ye;break;case 32:n=Xe;break;case 268435456:n=Qe;break;default:n=Xe}return r=Lf.bind(null,e),n=He(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&Ue(r),e.callbackPriority=2,e.callbackNode=null,2}function Lf(e,t){if(wd!==0&&wd!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(gf()&&e.callbackNode!==n)return null;var r=U;return r=ut(e,e===ad?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(Bd(e,r,t),If(e,Ke()),e.callbackNode!=null&&e.callbackNode===n?Lf.bind(null,e):null)}function Rf(e,t){if(gf())return null;Bd(e,t,!0)}function zf(){Dp(function(){V&6?He(Je,Pf):Ff()})}function Bf(){if(jf===0){var e=Ha;e===0&&(e=ot,ot<<=1,!(ot&261888)&&(ot=256)),jf=e}return jf}function Vf(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:bn(e)}function Hf(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=Vf((i[Et]||null).action),o=r.submitter;o&&(t=(t=o[Et]||null)?Vf(t.formAction):o.getAttribute(`formAction`),t!==null&&(a=t,o=null));var s=new Hn(`action`,`action`,null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(jf!==0){var e=new FormData(i,o);ic(n,{pending:!0,data:e,method:i.method,action:a},null,e)}}else typeof a==`function`&&(s.preventDefault(),e=new FormData(i,o),ic(n,{pending:!0,data:e,method:i.method,action:a},a,e))},currentTarget:i}]})}}for(var Uf=0;Uf<_i.length;Uf++){var Wf=_i[Uf];vi(Wf.toLowerCase(),`on`+(Wf[0].toUpperCase()+Wf.slice(1)))}vi(li,`onAnimationEnd`),vi(ui,`onAnimationIteration`),vi(di,`onAnimationStart`),vi(`dblclick`,`onDoubleClick`),vi(`focusin`,`onFocus`),vi(`focusout`,`onBlur`),vi(fi,`onTransitionRun`),vi(pi,`onTransitionStart`),vi(mi,`onTransitionCancel`),vi(hi,`onTransitionEnd`),Wt(`onMouseEnter`,[`mouseout`,`mouseover`]),Wt(`onMouseLeave`,[`mouseout`,`mouseover`]),Wt(`onPointerEnter`,[`pointerout`,`pointerover`]),Wt(`onPointerLeave`,[`pointerout`,`pointerover`]),Ut(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),Ut(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),Ut(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),Ut(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),Ut(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),Ut(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var Gf=`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(` `),Kf=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(Gf));function qf(e,t){t=!!(t&4);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;a:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){Ci(e)}i.currentTarget=null,a=c}else for(o=0;o<r.length;o++){if(s=r[o],c=s.instance,l=s.currentTarget,s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){Ci(e)}i.currentTarget=null,a=c}}}}function K(e,t){var n=t[Ot];n===void 0&&(n=t[Ot]=new Set);var r=e+`__bubble`;n.has(r)||(Zf(t,e,2,!1),n.add(r))}function Jf(e,t,n){var r=0;t&&(r|=4),Zf(n,e,r,t)}var Yf=`_reactListening`+Math.random().toString(36).slice(2);function Xf(e){if(!e[Yf]){e[Yf]=!0,Vt.forEach(function(t){t!==`selectionchange`&&(Kf.has(t)||Jf(t,!1,e),Jf(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Yf]||(t[Yf]=!0,Jf(`selectionchange`,!1,t))}}function Zf(e,t,n,r){switch(Eh(t)){case 2:var i=bh;break;case 8:i=xh;break;default:i=Sh}n=i.bind(null,t,n,e),i=void 0,!jn||t!==`touchstart`&&t!==`touchmove`&&t!==`wheel`||(i=!0),r?i===void 0?e.addEventListener(t,n,!0):e.addEventListener(t,n,{capture:!0,passive:i}):i===void 0?e.addEventListener(t,n,!1):e.addEventListener(t,n,{passive:i})}function Qf(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)a:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var c=r.stateNode.containerInfo;if(c===i)break;if(s===4)for(s=r.return;s!==null;){var l=s.tag;if((l===3||l===4)&&s.stateNode.containerInfo===i)return;s=s.return}for(;c!==null;){if(s=Ft(c),s===null)return;if(l=s.tag,l===5||l===6||l===26||l===27){r=a=s;continue a}c=c.parentNode}}r=r.return}On(function(){var r=a,i=Cn(n),s=[];a:{var c=gi.get(e);if(c!==void 0){var l=Hn,u=e;switch(e){case`keypress`:if(Ln(n)===0)break a;case`keydown`:case`keyup`:l=or;break;case`focusin`:u=`focus`,l=Zn;break;case`focusout`:u=`blur`,l=Zn;break;case`beforeblur`:case`afterblur`:l=Zn;break;case`click`:if(n.button===2)break a;case`auxclick`:case`dblclick`:case`mousedown`:case`mousemove`:case`mouseup`:case`mouseout`:case`mouseover`:case`contextmenu`:l=Yn;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:l=Xn;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:l=lr;break;case li:case ui:case di:l=Qn;break;case hi:l=ur;break;case`scroll`:case`scrollend`:l=Wn;break;case`wheel`:l=dr;break;case`copy`:case`cut`:case`paste`:l=$n;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:l=sr;break;case`submit`:l=cr;break;case`toggle`:case`beforetoggle`:l=fr}var d=!!(t&4),f=!d&&(e===`scroll`||e===`scrollend`),p=d?c===null?null:c+`Capture`:c;d=[];for(var m=r,h;m!==null;){var g=m;if(h=g.stateNode,g=g.tag,g!==5&&g!==26&&g!==27||h===null||p===null||(g=kn(m,p),g!=null&&d.push($f(m,g,h))),f)break;m=m.return}0<d.length&&(c=new l(c,u,null,n,i),s.push({event:c,listeners:d}))}}if(!(t&7)){a:{if(l=e===`mouseover`||e===`pointerover`,c=e===`mouseout`||e===`pointerout`,l&&n!==Sn&&(u=n.relatedTarget||n.fromElement)&&(Ft(u)||u[Dt]))break a;(c||l)&&(u=i.window===i?i:(l=i.ownerDocument)?l.defaultView||l.parentWindow:window,c?(l=n.relatedTarget||n.toElement,c=r,l=l?Ft(l):null,l!==null&&(f=o(l),d=l.tag,l!==f||d!==5&&d!==27&&d!==6)&&(l=null)):(c=null,l=r),c!==l&&(d=Yn,g=`onMouseLeave`,p=`onMouseEnter`,m=`mouse`,(e===`pointerout`||e===`pointerover`)&&(d=sr,g=`onPointerLeave`,p=`onPointerEnter`,m=`pointer`),f=c==null?u:Lt(c),h=l==null?u:Lt(l),u=new d(g,m+`leave`,c,n,i),u.target=f,u.relatedTarget=h,g=null,Ft(i)===r&&(d=new d(p,m+`enter`,l,n,i),d.target=h,d.relatedTarget=f,g=d),f=g,d=c&&l?E(c,l,tp):null,c!==null&&np(s,u,c,d,!1),l!==null&&f!==null&&np(s,f,l,d,!0)))}a:{if(c=r?Lt(r):window,l=c.nodeName&&c.nodeName.toLowerCase(),l===`select`||l===`input`&&c.type===`file`)var _=Mr;else if(Er(c)){if(Nr)_=Hr;else{_=Br;var v=zr}}else l=c.nodeName,!l||l.toLowerCase()!==`input`||c.type!==`checkbox`&&c.type!==`radio`?r&&_n(r.elementType)&&(_=Mr):_=Vr;if(_&&=_(e,r)){Dr(s,_,n,i);break a}v&&v(e,c,r)}switch(v=r?Lt(r):window,e){case`focusin`:(Er(v)||v.contentEditable===`true`)&&($r=v,ei=r,ti=null);break;case`focusout`:ti=ei=$r=null;break;case`mousedown`:ni=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:ni=!1,ri(s,n,i);break;case`selectionchange`:if(Qr)break;case`keydown`:case`keyup`:ri(s,n,i)}var y;if(mr)b:{switch(e){case`compositionstart`:var b=`onCompositionStart`;break b;case`compositionend`:b=`onCompositionEnd`;break b;case`compositionupdate`:b=`onCompositionUpdate`;break b}b=void 0}else Sr?br(e,n)&&(b=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(b=`onCompositionStart`);b&&(_r&&n.locale!==`ko`&&(Sr||b!==`onCompositionStart`?b===`onCompositionEnd`&&Sr&&(y=In()):(Nn=i,Pn=`value`in Nn?Nn.value:Nn.textContent,Sr=!0)),v=ep(r,b),0<v.length&&(b=new er(b,e,null,n,i),s.push({event:b,listeners:v}),y?b.data=y:(y=xr(n),y!==null&&(b.data=y)))),(y=gr?Cr(e,n):wr(e,n))&&(b=ep(r,`onBeforeInput`),0<b.length&&(v=new er(`onBeforeInput`,`beforeinput`,null,n,i),s.push({event:v,listeners:b}),v.data=y)),Hf(s,e,r,n,i)}qf(s,t)})}function $f(e,t,n){return{instance:e,listener:t,currentTarget:n}}function ep(e,t){for(var n=t+`Capture`,r=[];e!==null;){var i=e,a=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||a===null||(i=kn(e,n),i!=null&&r.unshift($f(e,i,a)),i=kn(e,t),i!=null&&r.push($f(e,i,a))),e.tag===3)return r;e=e.return}return[]}function tp(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function np(e,t,n,r,i){for(var a=t._reactName,o=[];n!==null&&n!==r;){var s=n,c=s.alternate,l=s.stateNode;if(s=s.tag,c!==null&&c===r)break;s!==5&&s!==26&&s!==27||l===null||(c=l,i?(l=kn(n,a),l!=null&&o.unshift($f(n,l,c))):i||(l=kn(n,a),l!=null&&o.push($f(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var rp=/\r\n?/g,ip=/\u0000|\uFFFD/g;function ap(e){return(typeof e==`string`?e:``+e).replace(rp,`
|
|
9
|
-
`).replace(ip,``)}function op(e,t){return t=ap(t),ap(e)===t}function sp(e,t,n,r,a,o){switch(n){case`children`:if(typeof r==`string`)t===`body`||t===`textarea`&&r===``||pn(e,r);else if(typeof r==`number`||typeof r==`bigint`)t!==`body`&&pn(e,``+r);else return;break;case`className`:Zt(e,`class`,r);break;case`tabIndex`:Zt(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:Zt(e,n,r);break;case`style`:gn(e,r,o);return;case`data`:if(t!==`object`){Zt(e,`data`,r);break}case`src`:case`href`:if(r===``&&(t!==`a`||n!==`href`)||r==null||typeof r==`function`||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=bn(r),e.setAttribute(n,r);break;case`action`:case`formAction`:if(typeof r==`function`){e.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}if(typeof o==`function`&&(n===`formAction`?(t!==`input`&&sp(e,t,`name`,a.name,a,null),sp(e,t,`formEncType`,a.formEncType,a,null),sp(e,t,`formMethod`,a.formMethod,a,null),sp(e,t,`formTarget`,a.formTarget,a,null)):(sp(e,t,`encType`,a.encType,a,null),sp(e,t,`method`,a.method,a,null),sp(e,t,`target`,a.target,a,null))),r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=bn(r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=xn);return;case`onScroll`:r!=null&&K(`scroll`,e);return;case`onScrollEnd`:r!=null&&K(`scrollend`,e);return;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));o?.__html!==n&&(e.innerHTML=n)}}break;case`multiple`:e.multiple=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`muted`:e.muted=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:break;case`autoFocus`:break;case`xlinkHref`:if(r==null||typeof r==`function`||typeof r==`boolean`||typeof r==`symbol`){e.removeAttribute(`xlink:href`);break}n=bn(r),e.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`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`inert`:case`allowFullScreen`:case`async`:case`autoPlay`:case`controls`:case`credentialless`: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`:r&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``):e.removeAttribute(n);break;case`capture`:case`download`:!0===r?e.setAttribute(n,``):!1!==r&&r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`cols`:case`rows`:case`size`:case`span`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case`rowSpan`:case`start`:r==null||typeof r==`function`||typeof r==`symbol`||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case`popover`:K(`beforetoggle`,e),K(`toggle`,e),Xt(e,`popover`,r);break;case`xlinkActuate`:Qt(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:Qt(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:Qt(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:Qt(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:Qt(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:Qt(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:Qt(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:Qt(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:Qt(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:Xt(e,`is`,r);break;case`innerText`:case`textContent`:return;default:if(!(2<n.length)||n[0]!==`o`&&n[0]!==`O`||n[1]!==`n`&&n[1]!==`N`)n=vn.get(n)||n,Xt(e,n,r);else return}I=!0}function cp(e,t,n,r,a,o){switch(n){case`style`:gn(e,r,o);return;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));o?.__html!==n&&(e.innerHTML=n)}}break;case`children`:if(typeof r==`string`)pn(e,r);else if(typeof r==`number`||typeof r==`bigint`)pn(e,``+r);else return;break;case`onScroll`:r!=null&&K(`scroll`,e);return;case`onScrollEnd`:r!=null&&K(`scrollend`,e);return;case`onClick`:r!=null&&(e.onclick=xn);return;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:return;case`innerText`:case`textContent`:return;default:if(!Ht.hasOwnProperty(n))a:{if(n[0]===`o`&&n[1]===`n`&&(a=n.endsWith(`Capture`),o=n.slice(2,a?n.length-7:void 0),t=e[Et]||null,t=t==null?null:t[n],typeof t==`function`&&e.removeEventListener(o,t,a),typeof r==`function`)){typeof t!=`function`&&t!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(o,r,a);break a}I=!0,n in e?e[n]=r:!0===r?e.setAttribute(n,``):Xt(e,n,r)}return}I=!0}function lp(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:K(`error`,e),K(`load`,e);var r=!1,a=!1,o;for(o in n)if(n.hasOwnProperty(o)){var s=n[o];if(s!=null)switch(o){case`src`:r=!0;break;case`srcSet`:a=!0;break;case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:sp(e,t,o,s,n,null)}}a&&sp(e,t,`srcSet`,n.srcSet,n,null),r&&sp(e,t,`src`,n.src,n,null);return;case`input`:K(`invalid`,e);var c=o=s=a=null,l=null,u=null;for(r in n)if(n.hasOwnProperty(r)){var d=n[r];if(d!=null)switch(r){case`name`:a=d;break;case`type`:s=d;break;case`checked`:l=d;break;case`defaultChecked`:u=d;break;case`value`:o=d;break;case`defaultValue`:c=d;break;case`children`:case`dangerouslySetInnerHTML`:if(d!=null)throw Error(i(137,t));break;default:sp(e,t,r,d,n,null)}}cn(e,o,c,l,u,s,a,!1);return;case`select`:for(a in K(`invalid`,e),r=s=o=null,n)if(n.hasOwnProperty(a)&&(c=n[a],c!=null))switch(a){case`value`:o=c;break;case`defaultValue`:s=c;break;case`multiple`:r=c;default:sp(e,t,a,c,n,null)}t=o,n=s,e.multiple=!!r,t==null?n!=null&&un(e,!!r,n,!0):un(e,!!r,t,!1);return;case`textarea`:for(s in K(`invalid`,e),o=a=r=null,n)if(n.hasOwnProperty(s)&&(c=n[s],c!=null))switch(s){case`value`:r=c;break;case`defaultValue`:a=c;break;case`children`:o=c;break;case`dangerouslySetInnerHTML`:if(c!=null)throw Error(i(91));break;default:sp(e,t,s,c,n,null)}fn(e,r,a,o);return;case`option`:for(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case`selected`:e.selected=r&&typeof r!=`function`&&typeof r!=`symbol`;break;default:sp(e,t,l,r,n,null)}return;case`dialog`:K(`beforetoggle`,e),K(`toggle`,e),K(`cancel`,e),K(`close`,e);break;case`iframe`:case`object`:K(`load`,e);break;case`video`:case`audio`:for(r=0;r<Gf.length;r++)K(Gf[r],e);break;case`image`:K(`error`,e),K(`load`,e);break;case`details`:K(`toggle`,e);break;case`embed`:case`source`:case`link`:K(`error`,e),K(`load`,e);case`area`:case`base`:case`br`:case`col`:case`hr`:case`keygen`:case`meta`:case`param`:case`track`:case`wbr`:case`menuitem`:for(u in n)if(n.hasOwnProperty(u)&&(r=n[u],r!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:sp(e,t,u,r,n,null)}return;default:if(_n(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&cp(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&sp(e,t,c,r,n,null))}var up={};function dp(e,t,n,r){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`input`:var a=null,o=null,s=null,c=null,l=null,u=null,d=null;for(m in n){var f=n[m];if(n.hasOwnProperty(m)&&f!=null)switch(m){case`checked`:break;case`value`:break;case`defaultValue`:l=f;default:r.hasOwnProperty(m)||sp(e,t,m,null,r,f)}}for(var p in r){var m=r[p];if(f=n[p],r.hasOwnProperty(p)&&(m!=null||f!=null))switch(p){case`type`:m!==f&&(I=!0),o=m;break;case`name`:m!==f&&(I=!0),a=m;break;case`checked`:m!==f&&(I=!0),u=m;break;case`defaultChecked`:m!==f&&(I=!0),d=m;break;case`value`:m!==f&&(I=!0),s=m;break;case`defaultValue`:m!==f&&(I=!0),c=m;break;case`children`:case`dangerouslySetInnerHTML`:if(m!=null)throw Error(i(137,t));break;default:m!==f&&sp(e,t,p,m,r,f)}}sn(e,s,c,l,u,d,o,a);return;case`select`:for(o in m=s=c=p=null,n)if(l=n[o],n.hasOwnProperty(o)&&l!=null)switch(o){case`value`:break;case`multiple`:m=l;default:r.hasOwnProperty(o)||sp(e,t,o,null,r,l)}for(a in r)if(o=r[a],l=n[a],r.hasOwnProperty(a)&&(o!=null||l!=null))switch(a){case`value`:o!==l&&(I=!0),p=o;break;case`defaultValue`:o!==l&&(I=!0),c=o;break;case`multiple`:o!==l&&(I=!0),s=o;default:o!==l&&sp(e,t,a,o,r,l)}t=c,n=s,r=m,p==null?!!r!=!!n&&(t==null?un(e,!!n,n?[]:``,!1):un(e,!!n,t,!0)):un(e,!!n,p,!1);return;case`textarea`:for(c in m=p=null,n)if(a=n[c],n.hasOwnProperty(c)&&a!=null&&!r.hasOwnProperty(c))switch(c){case`value`:break;case`children`:break;default:sp(e,t,c,null,r,a)}for(s in r)if(a=r[s],o=n[s],r.hasOwnProperty(s)&&(a!=null||o!=null))switch(s){case`value`:a!==o&&(I=!0),p=a;break;case`defaultValue`:a!==o&&(I=!0),m=a;break;case`children`:break;case`dangerouslySetInnerHTML`:if(a!=null)throw Error(i(91));break;default:a!==o&&sp(e,t,s,a,r,o)}dn(e,p,m);return;case`option`:for(var h in n)if(p=n[h],n.hasOwnProperty(h)&&p!=null&&!r.hasOwnProperty(h))switch(h){case`selected`:e.selected=!1;break;default:sp(e,t,h,null,r,p)}for(l in r)if(p=r[l],m=n[l],r.hasOwnProperty(l)&&p!==m&&(p!=null||m!=null))switch(l){case`selected`:p!==m&&(I=!0),e.selected=p&&typeof p!=`function`&&typeof p!=`symbol`;break;default:sp(e,t,l,p,r,m)}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 g in n)p=n[g],n.hasOwnProperty(g)&&p!=null&&!r.hasOwnProperty(g)&&sp(e,t,g,null,r,p);for(u in r)if(p=r[u],m=n[u],r.hasOwnProperty(u)&&p!==m&&(p!=null||m!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:if(p!=null)throw Error(i(137,t));break;default:sp(e,t,u,p,r,m)}return;default:if(_n(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&cp(e,t,_,void 0,r,p);for(d in r)p=r[d],m=n[d],!r.hasOwnProperty(d)||p===m||p===void 0&&m===void 0||cp(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&sp(e,t,v,null,r,p);for(f in r)p=r[f],m=n[f],!r.hasOwnProperty(f)||p===m||p==null&&m==null||sp(e,t,f,p,r,m)}function fp(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function pp(){if(typeof performance.getEntriesByType==`function`){for(var e=0,t=0,n=performance.getEntriesByType(`resource`),r=0;r<n.length;r++){var i=n[r],a=i.transferSize,o=i.initiatorType,s=i.duration;if(a&&s&&fp(o)){for(o=0,s=i.responseEnd,r+=1;r<n.length;r++){var c=n[r],l=c.startTime;if(l>s)break;var u=c.transferSize,d=c.initiatorType;u&&fp(d)&&(c=c.responseEnd,o+=u*(c<s?1:(s-l)/(c-l)))}if(--r,t+=8*(a+o)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e==`number`)?e:5}var mp=null,hp=null;function gp(e){return e.nodeType===9?e:e.ownerDocument}function _p(e){switch(e){case`http://www.w3.org/2000/svg`:return 1;case`http://www.w3.org/1998/Math/MathML`:return 2;default:return 0}}function vp(e,t){if(e===0)switch(t){case`svg`:return 1;case`math`:return 2;default:return 0}return e===1&&t===`foreignObject`?0:e}function yp(e,t,n,r){return n=gp(n).createElement(e),n[Tt]=r,n[Et]=t,lp(n,e,t),zt(n),n}function bp(e,t){return e===`textarea`||e===`noscript`||typeof t.children==`string`||typeof t.children==`number`||typeof t.children==`bigint`||typeof t.dangerouslySetInnerHTML==`object`&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var xp=null;function Sp(){var e=window.event;return e&&e.type===`popstate`?e!==xp&&(xp=e,!0):(xp=null,!1)}var Cp=typeof setTimeout==`function`?setTimeout:void 0,wp=typeof clearTimeout==`function`?clearTimeout:void 0,Tp=typeof Promise==`function`?Promise:void 0,Ep=typeof requestAnimationFrame==`function`?requestAnimationFrame:Cp,Dp=typeof queueMicrotask==`function`?queueMicrotask:Tp===void 0?Cp:function(e){return Tp.resolve(null).then(e).catch(Op)};function Op(e){setTimeout(function(){throw e})}function kp(e){return e===`head`}function Ap(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8){if(n=i.data,n===`/$`||n===`/&`){if(r===0){e.removeChild(i),Gh(t);return}r--}else if(n===`$`||n===`$?`||n===`$~`||n===`$!`||n===`&`)r++;else if(n===`html`)Sm(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,Sm(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[Mt]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&Sm(e.ownerDocument.body)}n=i}while(n);Gh(t)}function jp(e,t){var n=e;e=0;do{var r=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display=`none`):(n.style.display=n._stashedDisplay||``,n.getAttribute(`style`)===``&&n.removeAttribute(`style`)):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=``):n.nodeValue=n._stashedText||``),r&&r.nodeType===8){if(n=r.data,n===`/$`){if(e===0)break;e--}else n!==`$`&&n!==`$?`&&n!==`$~`&&n!==`$!`||e++}n=r}while(n)}function Mp(e,t,n){if(t=CSS.escape(t)===t?t:`r-`+btoa(t).replace(/=/g,``),e.style.viewTransitionName=t,n!=null&&(e.style.viewTransitionClass=n),n=getComputedStyle(e),n.display===`inline`){if(t=e.getClientRects(),t.length===1)var r=1;else for(var i=r=0;i<t.length;i++){var a=t[i];0<a.width&&0<a.height&&r++}r===1&&(e=e.style,e.display=t.length===1?`inline-block`:`block`,e.marginTop=`-`+n.paddingTop,e.marginBottom=`-`+n.paddingBottom)}}function Np(e,t){e=e.style,t=t.style;var n=t==null?null:t.hasOwnProperty(`viewTransitionName`)?t.viewTransitionName:t.hasOwnProperty(`view-transition-name`)?t[`view-transition-name`]:null;e.viewTransitionName=n==null||typeof n==`boolean`?``:(``+n).trim(),n=t==null?null:t.hasOwnProperty(`viewTransitionClass`)?t.viewTransitionClass:t.hasOwnProperty(`view-transition-class`)?t[`view-transition-class`]:null,e.viewTransitionClass=n==null||typeof n==`boolean`?``:(``+n).trim(),e.display===`inline-block`&&(t==null?e.display=e.margin=``:(n=t.display,e.display=n==null||typeof n==`boolean`?``:n,n=t.margin,n==null?(n=t.hasOwnProperty(`marginTop`)?t.marginTop:t[`margin-top`],e.marginTop=n==null||typeof n==`boolean`?``:n,t=t.hasOwnProperty(`marginBottom`)?t.marginBottom:t[`margin-bottom`],e.marginBottom=t==null||typeof t==`boolean`?``:t):e.margin=n))}function Pp(e,t,n){return n=n.ownerDocument.defaultView,{rect:e,abs:t.position===`absolute`||t.position===`fixed`,clip:t.clipPath!==`none`||t.overflow!==`visible`||t.filter!==`none`||t.mask!==`none`||t.mask!==`none`||t.borderRadius!==`0px`,view:0<=e.bottom&&0<=e.right&&e.top<=n.innerHeight&&e.left<=n.innerWidth}}function Fp(e){return Pp(e.getBoundingClientRect(),getComputedStyle(e),e)}function Ip(e){var t=e.getBoundingClientRect();t=new DOMRect(t.x+2e4,t.y+2e4,t.width,t.height);var n=getComputedStyle(e);return Pp(t,n,e)}function Lp(e){return e.documentElement.clientHeight}function Rp(e){this.addEventListener(`load`,e),this.addEventListener(`error`,e)}function zp(e,t,n,r,i,a,o,s,c){var l=t.nodeType===9?t:t.ownerDocument;try{var u=l.startViewTransition({update:function(){var t=l.defaultView,n=t.navigation&&t.navigation.transition,o=l.fonts.status;r();var s=[];if(o===`loaded`&&(Lp(l),l.fonts.status===`loading`&&s.push(l.fonts.ready)),o=s.length,e!==null)for(var c=e.suspenseyImages,u=0,d=0;d<c.length;d++){var f=c[d];if(!f.complete){var p=f.getBoundingClientRect();if(0<p.bottom&&0<p.right&&p.top<t.innerHeight&&p.left<t.innerWidth){if(u+=$m(f),u>nh){s.length=o;break}f=new Promise(Rp.bind(f)),s.push(f)}}}if(0<s.length)return t=Promise.race([Promise.all(s),new Promise(function(e){return setTimeout(e,500)})]).then(i,i),(n?Promise.allSettled([n.finished,t]):t).then(a,a);if(i(),n)return n.finished.then(a,a);a()},types:n});l.__reactViewTransition=u;var d=[];return u.ready.then(function(){for(var e=l.documentElement.getAnimations({subtree:!0}),t=0;t<e.length;t++){var n=e[t],r=n.effect,i=r.pseudoElement;if(i!=null&&i.startsWith(`::view-transition`)){d.push(n),n=r.getKeyframes();for(var a=i=void 0,s=!0,c=0;c<n.length;c++){var u=n[c],f=u.width;if(i===void 0)i=f;else if(i!==f){s=!1;break}if(f=u.height,a===void 0)a=f;else if(a!==f){s=!1;break}delete u.width,delete u.height,u.transform===`none`&&delete u.transform}s&&i!==void 0&&a!==void 0&&(r.setKeyframes(n),s=getComputedStyle(r.target,r.pseudoElement),s.width!==i||s.height!==a)&&(s=n[0],s.width=i,s.height=a,s=n[n.length-1],s.width=i,s.height=a,r.setKeyframes(n))}}o()},function(e){l.__reactViewTransition===u&&(l.__reactViewTransition=null);try{if(typeof e==`object`&&e)switch(e.name){case`InvalidStateError`:(e.message===`View transition was skipped because document visibility state is hidden.`||e.message===`Skipping view transition because document visibility state has become hidden.`||e.message===`Skipping view transition because viewport size changed.`||e.message===`Transition was aborted because of invalid state`)&&(e=null)}e!==null&&c(e)}finally{r(),i(),o()}}),u.finished.finally(function(){for(var e=0;e<d.length;e++)d[e].cancel();l.__reactViewTransition===u&&(l.__reactViewTransition=null),s()}),u}catch{return r(),i(),o(),null}}function q(e,t){this._scope=document.documentElement,this._selector=`::view-transition-`+e+`(`+t+`)`}q.prototype.animate=function(e,t){return t=typeof t==`number`?{duration:t}:D({},t),t.pseudoElement=this._selector,this._scope.animate(e,t)},q.prototype.getAnimations=function(){for(var e=this._scope,t=this._selector,n=e.getAnimations({subtree:!0}),r=[],i=0;i<n.length;i++){var a=n[i].effect;a!==null&&a.target===e&&a.pseudoElement===t&&r.push(n[i])}return r},q.prototype.getComputedStyle=function(){return getComputedStyle(this._scope,this._selector)};function J(e){return{name:e,group:new q(`group`,e),imagePair:new q(`image-pair`,e),old:new q(`old`,e),new:new q(`new`,e)}}function Bp(e){this._fragmentFiber=e,this._observers=this._eventListeners=null}Bp.prototype.addEventListener=function(e,t,n){var r=null,i=null;if(!(n!=null&&typeof n!=`boolean`&&(r=n.signal||null,r!==null&&r.aborted))){this._eventListeners===null&&(this._eventListeners=[]);var a=this._eventListeners;if(Gp(a,e,t,n)===-1){var o=this,s=t;n!=null&&typeof n!=`boolean`&&!0===n.once&&(s=function(r){o.removeEventListener(e,t,n),typeof t==`function`?t.call(this,r):t.handleEvent(r)}),r!==null&&(i=o.removeEventListener.bind(o,e,t,n),r.addEventListener(`abort`,i,{once:!0}),i=r.removeEventListener.bind(r,`abort`,i)),r=Up(n),a.push({type:e,listener:t,optionsOrUseCapture:n,attachedListener:s,cleanup:i}),m(this._fragmentFiber.child,!1,Vp,e,s,r)}this._eventListeners=a}};function Vp(e,t,n,r){return b(e).addEventListener(t,n,r),!1}Bp.prototype.removeEventListener=function(e,t,n){var r=this._eventListeners;if(r!==null&&(t=Gp(r,e,t,n),t!==-1)){var i=r[t];n=i.attachedListener;var a=i.cleanup;i=Up(i.optionsOrUseCapture),m(this._fragmentFiber.child,!1,Hp,e,n,i),r.splice(t,1),a!==null&&a()}};function Hp(e,t,n,r){return b(e).removeEventListener(t,n,r),!1}function Up(e){return e!=null&&typeof e!=`boolean`&&(!0===e.once||e.signal instanceof AbortSignal)?{capture:e.capture,passive:e.passive}:e}function Wp(e){return e==null?`c=0`:typeof e==`boolean`?`c=`+(e?`1`:`0`):`c=`+(e.capture?`1`:`0`)}function Gp(e,t,n,r){if(e.length===0)return-1;r=Wp(r);for(var i=0;i<e.length;i++){var a=e[i];if(a.type===t&&a.listener===n&&Wp(a.optionsOrUseCapture)===r)return i}return-1}Bp.prototype.dispatchEvent=function(e){var t=g(this._fragmentFiber);if(t===null)return!0;t=b(t);var n=this._eventListeners;if(n!==null&&0<n.length||!e.bubbles){var r=t.nodeType===9?t.createComment(``):document.createTextNode(``);if(n)for(var i=0;i<n.length;i++){var a=n[i];r.addEventListener(a.type,a.attachedListener,Up(a.optionsOrUseCapture))}if(t.appendChild(r),e=r.dispatchEvent(e),n)for(i=0;i<n.length;i++)a=n[i],r.removeEventListener(a.type,a.attachedListener,Up(a.optionsOrUseCapture));return t.removeChild(r),e}return t.dispatchEvent(e)},Bp.prototype.focus=function(e){m(this._fragmentFiber.child,!0,Kp,e,void 0,void 0)};function Kp(e,t){return e.tag!==6&&(e=b(e),vm(e,t))}Bp.prototype.focusLast=function(e){var t=[];m(this._fragmentFiber.child,!0,qp,t,void 0,void 0);for(var n=t.length-1;0<=n&&!Kp(t[n],e);n--);};function qp(e,t){return t.push(e),!1}Bp.prototype.blur=function(){var e=g(this._fragmentFiber);e!==null&&(e=b(e),e=gp(e).activeElement,e!==null&&m(this._fragmentFiber.child,!1,Jp,e,void 0,void 0))};function Jp(e,t){return e.tag!==6&&(e=b(e),e===t||e.contains(t)?(t.blur(),!0):!1)}Bp.prototype.observeUsing=function(e){this._observers===null&&(this._observers=new Set),this._observers.add(e),m(this._fragmentFiber.child,!1,Yp,e,void 0,void 0)};function Yp(e,t){return e.tag===6||(e=b(e),t.observe(e)),!1}Bp.prototype.unobserveUsing=function(e){var t=this._observers;if(t!==null&&t.has(e)){t.delete(e),m(this._fragmentFiber.child,!1,Xp,e,void 0,void 0);for(var n=t=0;n<Zp.length;n++){var r=Zp[n];r.fragmentInstance===this&&r.observer===e?e.unobserve(r.instance):Zp[t++]=r}Zp.length=t}};function Xp(e,t){return e.tag===6||(e=b(e),t.unobserve(e)),!1}var Zp=[],Qp=!1;function $p(e,t,n){Zp.push({fragmentInstance:e,observer:t,instance:n}),Qp||(Qp=!0,ym(function(){Qp=!1;var e=Zp;Zp=[];for(var t=0;t<e.length;t++){var n=e[t];n.observer.unobserve(n.instance)}}))}Bp.prototype.getClientRects=function(){var e=[];return m(this._fragmentFiber.child,!1,em,e,void 0,void 0),e};function em(e,t){if(e.tag===6){e=e.stateNode;var n=e.ownerDocument.createRange();n.selectNodeContents(e),t.push.apply(t,n.getClientRects())}else e=b(e),t.push.apply(t,e.getClientRects());return!1}Bp.prototype.getRootNode=function(e){var t=g(this._fragmentFiber);return t===null?this:b(t).getRootNode(e)},Bp.prototype.compareDocumentPosition=function(e){var t=g(this._fragmentFiber);if(t===null)return Node.DOCUMENT_POSITION_DISCONNECTED;var n=[];m(this._fragmentFiber.child,!1,qp,n,void 0,void 0);var r=b(t);if(n.length===0){if(n=r,_(this._fragmentFiber)){a:{for(t=this._fragmentFiber.return;t!==null;){if(t.tag===4){t=t.stateNode.containerInfo;break a}if(t.tag===3||t.tag===5||t.tag===27)break;t=t.return}t=null}t!=null&&(n=t)}t=this._fragmentFiber;var i=r=n.compareDocumentPosition(e);return n===e?i=Node.DOCUMENT_POSITION_CONTAINS:r&Node.DOCUMENT_POSITION_CONTAINED_BY&&(n=v(t)[1],n===null?i=Node.DOCUMENT_POSITION_PRECEDING:(e=b(n).compareDocumentPosition(e),i=e===0||e&Node.DOCUMENT_POSITION_FOLLOWING?Node.DOCUMENT_POSITION_FOLLOWING:Node.DOCUMENT_POSITION_PRECEDING)),i|=Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC}t=b(n[0]),i=b(n[n.length-1]);var a=_(this._fragmentFiber)?t.parentElement:r;if(a==null)return Node.DOCUMENT_POSITION_DISCONNECTED;r=a.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY,a=a.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY;var o=t.compareDocumentPosition(e),s=i.compareDocumentPosition(e),c=o&Node.DOCUMENT_POSITION_CONTAINED_BY||s&Node.DOCUMENT_POSITION_CONTAINED_BY;return s=r&&a&&o&Node.DOCUMENT_POSITION_FOLLOWING&&s&Node.DOCUMENT_POSITION_PRECEDING,t=r&&t===e||a&&i===e||c||s?Node.DOCUMENT_POSITION_CONTAINED_BY:!r&&t===e||!a&&i===e?Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:o,t&Node.DOCUMENT_POSITION_DISCONNECTED||t&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC||tm(t,this._fragmentFiber,n[0],n[n.length-1],e)?t:Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC};function tm(e,t,n,r,i){var a=Ft(i);if(e&Node.DOCUMENT_POSITION_CONTAINED_BY){if(n=!!a)a:{for(;a!==null;){if(a.tag===7&&(a===t||a.alternate===t)){n=!0;break a}a=a.return}n=!1}return n}if(e&Node.DOCUMENT_POSITION_CONTAINS){if(a===null)return a=i.ownerDocument,i===a||i===a.documentElement||i===a.body;a:{for(a=t,t=g(t);a!==null;){if(!(a.tag!==5&&a.tag!==3&&a.tag!==27||a!==t&&a.alternate!==t)){a=!0;break a}a=a.return}a=!1}return a}return e&Node.DOCUMENT_POSITION_PRECEDING?((t=!!a)&&!(t=a===n)&&(t=E(n,a,T),t===null?t=!1:(m(t,!0,C,a,n),a=x,x=null,t=a!==null)),t):e&Node.DOCUMENT_POSITION_FOLLOWING?((t=!!a)&&!(t=a===r)&&(t=E(r,a,T),t===null?t=!1:(m(t,!0,w,a,r),a=x,S=x=null,t=a!==null)),t):!1}function nm(e,t){var n=e.ownerDocument.createRange();n.selectNodeContents(e),e=n.getBoundingClientRect(),window.scrollTo(window.scrollX+e.left,t?window.scrollY+e.top:window.scrollY+e.bottom-window.innerHeight)}Bp.prototype.scrollIntoView=function(e){if(typeof e==`object`)throw Error(i(566));var t=[];m(this._fragmentFiber.child,!1,qp,t,void 0,void 0);var n=!1!==e;if(t.length===0){var r=v(this._fragmentFiber);if(r=n?r[1]||r[0]||g(this._fragmentFiber):r[0]||r[1],r===null)return;if(r.tag===6){e=b(r),nm(e,n);return}if(r=b(r),r.nodeType!==9){if(r.nodeType===11){n=`host`in r?r.host:null,n!==null&&n.scrollIntoView(e);return}r.scrollIntoView(e)}}for(r=n?t.length-1:0;r!==(n?-1:t.length);){var a=t[r];a.tag===6?(a=b(a),nm(a,n)):b(a).scrollIntoView(e),r+=n?-1:1}};function rm(e,t){return e=b(e),im(e,t),!1}function im(e,t){e.reactFragments??=new Set,e.reactFragments.add(t)}function am(e,t){var n=t._eventListeners;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];e.addEventListener(i.type,i.attachedListener,Up(i.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(n){for(var r=0,i=0;i<Zp.length;i++){var a=Zp[i];(a.fragmentInstance!==t||a.observer!==n||a.instance!==e)&&(Zp[r++]=a)}Zp.length=r,n.observe(e)}),im(e,t))}function om(e,t){var n=t._eventListeners;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];e.removeEventListener(i.type,i.attachedListener,Up(i.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(n){typeof n.rootMargin==`string`?$p(t,n,e):n.unobserve(e)}),e.reactFragments!=null&&e.reactFragments.delete(t))}function sm(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case`HTML`:case`HEAD`:case`BODY`:sm(n),Pt(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function cm(e,t,n,r){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!==`INPUT`||e.type!==`hidden`))break}else if(!r){if(t===`input`&&e.type===`hidden`){var a=i.name==null?null:``+i.name;if(i.type===`hidden`&&e.getAttribute(`name`)===a)return e}else return e}else if(!e[Mt])switch(t){case`meta`:if(!e.hasAttribute(`itemprop`))break;return e;case`link`:if(a=e.getAttribute(`rel`),a===`stylesheet`&&e.hasAttribute(`data-precedence`)||a!==i.rel||e.getAttribute(`href`)!==(i.href==null||i.href===``?null:i.href)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute(`title`)!==(i.title==null?null:i.title))break;return e;case`style`:if(e.hasAttribute(`data-precedence`))break;return e;case`script`:if(a=e.getAttribute(`src`),(a!==(i.src==null?null:i.src)||e.getAttribute(`type`)!==(i.type==null?null:i.type)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin))&&a&&e.hasAttribute(`async`)&&!e.hasAttribute(`itemprop`))break;return e;default:return e}if(e=mm(e.nextSibling),e===null)break}return null}function lm(e,t,n){if(t===``)return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=mm(e.nextSibling),e===null))return null;return e}function um(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=mm(e.nextSibling),e===null))return null;return e}function dm(e){return e.data===`$?`||e.data===`$~`}function fm(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function pm(e,t){var n=e.ownerDocument;if(e.data===`$~`)e._reactRetry=t;else if(e.data!==`$?`||n.readyState!==`loading`)t();else{var r=function(){t(),n.removeEventListener(`DOMContentLoaded`,r)};n.addEventListener(`DOMContentLoaded`,r),e._reactRetry=r}}function mm(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===`$`||t===`$!`||t===`$?`||t===`$~`||t===`&`||t===`F!`||t===`F`)break;if(t===`/$`||t===`/&`)return null}}return e}var hm=null;function gm(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return mm(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function _m(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`$`||n===`$!`||n===`$?`||n===`$~`||n===`&`){if(t===0)return e;t--}else n!==`/$`&&n!==`/&`||t++}e=e.previousSibling}return null}function vm(e,t){function n(){r=!0}if(e.ownerDocument.activeElement===e)return!0;var r=!1;try{e.ownerDocument.addEventListener(`focus`,n,!0),(e.focus||HTMLElement.prototype.focus).call(e,t)}finally{e.ownerDocument.removeEventListener(`focus`,n,!0)}return r}function ym(e){Ep(function(){Ep(function(t){return e(t)})})}function bm(e,t,n){switch(t=gp(n),e){case`html`:if(e=t.documentElement,!e)throw Error(i(452));return e;case`head`:if(e=t.head,!e)throw Error(i(453));return e;case`body`:if(e=t.body,!e)throw Error(i(454));return e;default:throw Error(i(451))}}function xm(e,t,n){for(var r in n){var i=n[r];n.hasOwnProperty(r)&&i!=null&&sp(e,t,r,null,up,i)}n.dangerouslySetInnerHTML!=null&&(e.textContent=``),e.onclick===xn&&(e.onclick=null),Pt(e)}function Sm(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Pt(e)}var Cm=new Map,wm=new Set;function Tm(e){if(typeof e.getRootNode==`function`){var t=e.getRootNode();if(t.nodeType===9||t.nodeType===11)return t}return e.nodeType===9?e:e.ownerDocument}var Em=M.d;M.d={f:Dm,r:Om,D:jm,C:Mm,L:Nm,m:Pm,X:Im,S:Fm,M:Lm};function Dm(){var e=Em.f(),t=Wd();return e||t}function Om(e){var t=It(e);t!==null&&t.tag===5&&t.type===`form`?oc(t):Em.r(e)}var km=typeof document>`u`?null:document;function Am(e,t,n){var r=km;if(r&&typeof t==`string`&&t){var i=on(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),wm.has(i)||(wm.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),lp(t,`link`,e),zt(t),r.head.appendChild(t)))}}function jm(e){Em.D(e),Am(`dns-prefetch`,e,null)}function Mm(e,t){Em.C(e,t),Am(`preconnect`,e,t)}function Nm(e,t,n){Em.L(e,t,n);var r=km;if(r&&e&&t){var i=`link[rel="preload"][as="`+on(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+on(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+on(n.imageSizes)+`"]`)):i+=`[href="`+on(e)+`"]`;var a=i;switch(t){case`style`:a=Rm(e);break;case`script`:a=Vm(e)}if(!(Cm.has(a)||(e=D({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),Cm.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(zm(a))||t===`script`&&r.querySelector(Hm(a))))){var o=r.createElement(`link`);lp(o,`link`,e),t===`style`&&(o[Nt]=!0,o.onload=o.onerror=function(){Bt(o)}),zt(o),r.head.appendChild(o)}}}function Pm(e,t){Em.m(e,t);var n=km;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+on(r)+`"][href="`+on(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Vm(e)}if(!Cm.has(a)&&(e=D({rel:`modulepreload`,href:e},t),Cm.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Hm(a)))return}r=n.createElement(`link`),lp(r,`link`,e),zt(r),n.head.appendChild(r)}}}function Fm(e,t,n){Em.S(e,t,n);var r=km;if(r&&e){var i=Rt(r).hoistableStyles,a=Rm(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(zm(a)))s.loading=5;else{e=D({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=Cm.get(a))&&Gm(e,n);var c=o=r.createElement(`link`);zt(c),lp(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,Wm(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function Im(e,t){Em.X(e,t);var n=km;if(n&&e){var r=Rt(n).hoistableScripts,i=Vm(e),a=r.get(i);a||(a=n.querySelector(Hm(i)),a||(e=D({src:e,async:!0},t),(t=Cm.get(i))&&Km(e,t),a=n.createElement(`script`),zt(a),lp(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Lm(e,t){Em.M(e,t);var n=km;if(n&&e){var r=Rt(n).hoistableScripts,i=Vm(e),a=r.get(i);a||(a=n.querySelector(Hm(i)),a||(e=D({src:e,async:!0,type:`module`},t),(t=Cm.get(i))&&Km(e,t),a=n.createElement(`script`),zt(a),lp(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Y(e,t,n,r){var a=(a=Oe.current)?Tm(a):null;if(!a)throw Error(i(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(n=Rm(n.href),t=Rt(a).hoistableStyles,r=t.get(n),r||(r={type:`style`,instance:null,count:0,state:null},t.set(n,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=Rm(n.href);var o=Rt(a).hoistableStyles,s=o.get(e);if(s||(a=a.ownerDocument||a,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=a.querySelector(zm(e)))?o._p||(s.instance=o,s.state.loading=5):(o=Cm.get(e),o||(o={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Cm.set(e,o)),Bm(a,e,o,s.state))),t&&r===null)throw Error(i(528,``));return s}if(t&&r!==null)throw Error(i(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(n=Vm(n),t=Rt(a).hoistableScripts,r=t.get(n),r||(r={type:`script`,instance:null,count:0,state:null},t.set(n,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(i(444,e))}}function Rm(e){return`href="`+on(e)+`"`}function zm(e){return`link[rel="stylesheet"][`+e+`]`}function X(e){return D({},e,{"data-precedence":e.precedence,precedence:null})}function Bm(e,t,n,r){if(t=e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)){if(!0!==t[Nt]){r.loading=1;return}}else t=e.createElement(`link`),t[Nt]=!0,t.onload=t.onerror=Bt.bind(null,t),lp(t,`link`,n),zt(t),e.head.appendChild(t);r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2})}function Vm(e){return`[src="`+on(e)+`"]`}function Hm(e){return`script[async]`+e}function Um(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+on(n.href)+`"]`);if(r)return t.instance=r,zt(r),r;var a=D({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),zt(r),lp(r,`style`,a),Wm(r,n.precedence,e),t.instance=r;case`stylesheet`:a=Rm(n.href);var o=e.querySelector(zm(a));if(o)return t.state.loading|=4,t.instance=o,zt(o),o;r=X(n),(a=Cm.get(a))&&Gm(r,a),o=(e.ownerDocument||e).createElement(`link`),zt(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),lp(o,`link`,r),t.state.loading|=4,Wm(o,n.precedence,e),t.instance=o;case`script`:return o=Vm(n.src),(a=e.querySelector(Hm(o)))?(t.instance=a,zt(a),a):(r=n,(a=Cm.get(o))&&(r=D({},n),Km(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),zt(a),lp(a,`link`,r),e.head.appendChild(a),t.instance=a);case`void`:return null;default:throw Error(i(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Wm(r,n.precedence,e));return t.instance}function Wm(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o<r.length;o++){var s=r[o];if(s.dataset.precedence===t)a=s;else if(a!==i)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Gm(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function Km(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}var qm=null;function Jm(e,t,n){if(qm===null){var r=new Map,i=qm=new Map;i.set(n,r)}else i=qm,r=i.get(n),r||(r=new Map,i.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var a=n[i];if(!(a[Mt]||a[Tt]||e===`link`&&a.getAttribute(`rel`)===`stylesheet`)&&a.namespaceURI!==`http://www.w3.org/2000/svg`){var o=a.getAttribute(t)||``;o=e+o;var s=r.get(o);s?s.push(a):r.set(o,[a])}}return r}function Ym(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function Xm(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function Zm(e,t){return e===`img`&&t.src!=null&&t.src!==``&&t.onLoad==null&&t.loading!==`lazy`}function Qm(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function $m(e){return(e.width||100)*(e.height||100)*(typeof devicePixelRatio==`number`?devicePixelRatio:1)*.25}function eh(e,t){typeof t.decode==`function`&&(e.imgCount++,t.complete||(e.imgBytes+=$m(t),e.suspenseyImages.push(t)),e=oh.bind(e),t.decode().then(e,e))}function th(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=Rm(r.href),a=t.querySelector(zm(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=ah.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,zt(a);return}a=t.ownerDocument||t,r=X(r),(i=Cm.get(i))&&Gm(r,i),a=a.createElement(`link`),zt(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),lp(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=ah.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var nh=0;function rh(e,t){return e.stylesheets&&e.count===0&&ch(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&ch(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&nh===0&&(nh=62500*pp());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&ch(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>nh?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function ih(e){if(e.count===0&&(e.imgCount===0||!e.waitingForImages)){if(e.stylesheets)ch(e,e.stylesheets);else if(e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}}}function ah(){this.count--,ih(this)}function oh(){this.imgCount--,ih(this)}var sh=null;function ch(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,sh=new Map,t.forEach(lh,e),sh=null,ah.call(e))}function lh(e,t){if(!(t.state.loading&4)){var n=sh.get(e);if(n)var r=n.get(null);else{n=new Map,sh.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a<i.length;a++){var o=i[a];(o.nodeName===`LINK`||o.getAttribute(`media`)!==`not all`)&&(n.set(o.dataset.precedence,o),r=o)}r&&n.set(null,r)}i=t.instance,o=i.getAttribute(`data-precedence`),a=n.get(o)||r,a===r&&n.set(null,i),n.set(o,i),this.count++,r=ah.bind(this),i.addEventListener(`load`,r),i.addEventListener(`error`,r),a?a.parentNode.insertBefore(i,a.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var uh={$$typeof:A,Provider:null,Consumer:null,_currentValue:be,_currentValue2:be,_threadCount:0};function dh(e,t,n,r,i,a,o,s,c){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=ht(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ht(0),this.hiddenUpdates=ht(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.transitionTypes=null,this.incompleteTransitions=new Map}function fh(e,t,n,r,i,a,o,s,c,l,u,d){return e=new dh(e,t,n,o,c,l,u,d,s),t=1,!0===a&&(t|=24),a=Fi(3,null,null,t),e.current=a,a.stateNode=e,t=Fa(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},vo(a),e}function ph(e){return e?(e=Ni,e):Ni}function mh(e,t,n,r,i,a){i=ph(i),r.context===null?r.context=i:r.pendingContext=i,r=bo(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=xo(e,r,t),n!==null&&(zd(n,e,t),So(n,e,t))}function hh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function gh(e,t){hh(e,t),(e=e.alternate)&&hh(e,t)}function _h(e){if(e.tag===13||e.tag===31){var t=Ai(e,67108864);t!==null&&zd(t,e,67108864),gh(e,67108864)}}function vh(e){if(e.tag===13||e.tag===31){var t=Id();t=xt(t);var n=Ai(e,t);n!==null&&zd(n,e,t),gh(e,t)}}var yh=!0;function bh(e,t,n,r){var i=j.T;j.T=null;var a=M.p;try{M.p=2,Sh(e,t,n,r)}finally{M.p=a,j.T=i}}function xh(e,t,n,r){var i=j.T;j.T=null;var a=M.p;try{M.p=8,Sh(e,t,n,r)}finally{M.p=a,j.T=i}}function Sh(e,t,n,r){if(yh){var i=Ch(r);if(i===null)Qf(e,t,r,wh,n),Fh(e,r);else if(Lh(i,e,t,n,r))r.stopPropagation();else if(Fh(e,r),t&4&&-1<Ph.indexOf(e)){for(;i!==null;){var a=It(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=lt(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-P(o);s.entanglements[1]|=c,o&=~c}Mf(a),!(V&6)&&(xd=Ke()+500,Nf(0,!1))}}break;case 31:case 13:s=Ai(a,2),s!==null&&zd(s,a,2),Wd(),gh(a,2)}if(a=Ch(r),a===null&&Qf(e,t,r,wh,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else Qf(e,t,r,null,n)}}function Ch(e){return e=Cn(e),Th(e)}var wh=null;function Th(e){if(wh=null,e=Ft(e),e!==null){var t=o(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=s(t),e!==null)return e;e=null}else if(n===31){if(e=c(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return wh=e,null}function Eh(e){switch(e){case`beforetoggle`:case`cancel`:case`click`:case`close`:case`contextmenu`:case`copy`:case`cut`:case`auxclick`:case`dblclick`:case`dragend`:case`dragstart`:case`drop`:case`focusin`:case`focusout`:case`input`:case`invalid`:case`keydown`:case`keypress`:case`keyup`:case`mousedown`:case`mouseup`:case`paste`:case`pause`:case`play`:case`pointercancel`:case`pointerdown`:case`pointerup`:case`ratechange`:case`reset`:case`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`fullscreenerror`: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`resize`:case`scroll`:case`touchmove`:case`wheel`:case`mouseenter`:case`mouseleave`:case`pointerenter`:case`pointerleave`:return 8;case`message`:switch(qe()){case Je:return 2;case Ye:return 8;case Xe:case Ze:return 32;case Qe:return 268435456;default:return 32}default:return 32}}var Dh=!1,Oh=null,kh=null,Ah=null,jh=new Map,Mh=new Map,Nh=[],Ph=`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 Fh(e,t){switch(e){case`focusin`:case`focusout`:Oh=null;break;case`dragenter`:case`dragleave`:kh=null;break;case`mouseover`:case`mouseout`:Ah=null;break;case`pointerover`:case`pointerout`:jh.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:Mh.delete(t.pointerId)}}function Ih(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=It(t),t!==null&&_h(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Lh(e,t,n,r,i){switch(t){case`focusin`:return Oh=Ih(Oh,e,t,n,r,i),!0;case`dragenter`:return kh=Ih(kh,e,t,n,r,i),!0;case`mouseover`:return Ah=Ih(Ah,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return jh.set(a,Ih(jh.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,Mh.set(a,Ih(Mh.get(a)||null,e,t,n,r,i)),!0}return!1}function Rh(e){var t=Ft(e.target);if(t!==null){var n=o(t);if(n!==null){if(t=n.tag,t===13){if(t=s(n),t!==null){e.blockedOn=t,wt(e.priority,function(){vh(n)});return}}else if(t===31){if(t=c(n),t!==null){e.blockedOn=t,wt(e.priority,function(){vh(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function zh(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Ch(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Sn=r,n.target.dispatchEvent(r),Sn=null}else return t=It(n),t!==null&&_h(t),e.blockedOn=n,!1;t.shift()}return!0}function Bh(e,t,n){zh(e)&&n.delete(t)}function Vh(){Dh=!1,Oh!==null&&zh(Oh)&&(Oh=null),kh!==null&&zh(kh)&&(kh=null),Ah!==null&&zh(Ah)&&(Ah=null),jh.forEach(Bh),Mh.forEach(Bh)}function Hh(e,n){e.blockedOn===n&&(e.blockedOn=null,Dh||(Dh=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Vh)))}var Uh=null;function Wh(e){Uh!==e&&(Uh=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Uh===e&&(Uh=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],i=e[t+2];if(typeof r!=`function`){if(Th(r||n)===null)continue;break}var a=It(n);a!==null&&(e.splice(t,3),t-=3,ic(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function Gh(e){function t(t){return Hh(t,e)}Oh!==null&&Hh(Oh,e),kh!==null&&Hh(kh,e),Ah!==null&&Hh(Ah,e),jh.forEach(t),Mh.forEach(t);for(var n=0;n<Nh.length;n++){var r=Nh[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Nh.length&&(n=Nh[0],n.blockedOn===null);)Rh(n),n.blockedOn===null&&Nh.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var i=n[r],a=n[r+1],o=i[Et]||null;if(typeof a==`function`)o||Wh(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[Et]||null)s=o.formAction;else if(Th(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),Wh(n)}}}function Kh(){function e(e){e.canIntercept&&e.info===`react-transition`&&e.intercept({handler:function(){return new Promise(function(e){return i=e})},focusReset:`manual`,scroll:`manual`})}function t(){i!==null&&(i(),i=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&e.url!=null&&navigation.navigate(e.url,{state:e.getState(),info:`react-transition`,history:`replace`})}}if(typeof navigation==`object`){var r=!1,i=null;return navigation.addEventListener(`navigate`,e),navigation.addEventListener(`navigatesuccess`,t),navigation.addEventListener(`navigateerror`,t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener(`navigate`,e),navigation.removeEventListener(`navigatesuccess`,t),navigation.removeEventListener(`navigateerror`,t),i!==null&&(i(),i=null)}}}function qh(e){this._internalRoot=e}Jh.prototype.render=qh.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var n=t.current;mh(n,Id(),e,t,null,null)},Jh.prototype.unmount=qh.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;mh(e.current,2,null,e,null,null),Wd(),t[Dt]=null}};function Jh(e){this._internalRoot=e}Jh.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ct();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Nh.length&&t!==0&&t<Nh[n].priority;n++);Nh.splice(n,0,e),n===0&&Rh(e)}};var Yh=n.version;if(Yh!==`19.3.1`)throw Error(i(527,Yh,`19.3.1`));M.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(i(188)):(e=Object.keys(e).join(`,`),Error(i(268,e)));return e=u(t),e=e===null?null:f(e),e=e===null?null:e.stateNode,e};var Xh={bundleType:0,version:`19.3.1`,rendererPackageName:`react-dom`,currentDispatcherRef:j,reconcilerVersion:`19.3.1`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var Zh=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Zh.isDisabled&&Zh.supportsFiber)try{et=Zh.inject(Xh),tt=Zh}catch{}}e.createRoot=function(e,t){if(!a(e))throw Error(i(299));var n=!1,r=``,o=Dc,s=Oc,c=kc;return t!=null&&(!0===t.unstable_strictMode&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=fh(e,1,!1,null,null,n,r,null,o,s,c,Kh),e[Dt]=t.current,Xf(e),new qh(t)}})),_=o(((e,t)=>{function n(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE==`function`)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=g()})),v=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),y=o(((e,t)=>{t.exports=v()})),b=l(d(),1),x=(0,b.createContext)({});function S(e){let t=(0,b.useRef)(null);return t.current===null&&(t.current=e()),t.current}var C=typeof window<`u`?b.useLayoutEffect:b.useEffect,w=(0,b.createContext)(null);function T(e,t){e.indexOf(t)===-1&&e.push(t)}function E(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}var D=(e,t,n)=>n>t?t:n<e?e:n,O={},ee=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),te=e=>typeof e==`object`&&!!e,ne=e=>/^0[^.\s]+$/u.test(e);function re(e){let t;return()=>(t===void 0&&(t=e()),t)}var k=e=>e,ie=(...e)=>e.reduce((e,t)=>n=>t(e(n))),A=(e,t,n)=>{let r=t-e;return r?(n-e)/r:1},ae=class{constructor(){this.subscriptions=[]}add(e){return T(this.subscriptions,e),()=>this.remove(e)}remove(e){E(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r){if(r===1)this.subscriptions[0](e,t,n);else for(let i=0;i<r;i++){let r=this.subscriptions[i];r&&r(e,t,n)}}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}},oe=e=>e*1e3,se=e=>e/1e3,ce=(e,t)=>t?1e3/t*e:0,le=(e,t,n)=>e*(3*(1-e)*((1-e)*t+e*n)+e*e);function ue(e,t,n,r){return e===t&&n===r?k:i=>{let a=0,o=1,s=i;for(let t=0;;t++){s>=a&&s<=o||(s=(a+o)/2);let r=le(s,e,n)-i;if(r*r<1e-28||t===40)break;r>0?o=s:a=s,s-=r*1e-7/(le(s+1e-7,e,n)-i-r)}return le(s,t,r)}}var de=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,fe=e=>t=>1-e(1-t),pe=ue(.33,1.53,.69,.99),me=fe(pe),he=de(me),ge=e=>e>=1?1:(e*=2)<1?.5*me(e):.5*(2-2**(-10*(e-1))),_e=e=>1-Math.sin(Math.acos(e)),ve=fe(_e),ye=de(_e),j=ue(.42,0,1,1),M=ue(0,0,.58,1),be=ue(.42,0,.58,1),xe=e=>Array.isArray(e)&&typeof e[0]!=`number`,Se=e=>Array.isArray(e)&&typeof e[0]==`number`,Ce={linear:k,easeIn:j,easeInOut:be,easeOut:M,circIn:_e,circInOut:ye,circOut:ve,backIn:me,backInOut:he,backOut:pe,anticipate:ge},we=e=>typeof e==`string`,Te=e=>{if(Se(e)){e.length;let[t,n,r,i]=e;return ue(t,n,r,i)}return we(e)?(Ce[e],`${e}`,Ce[e]):e},Ee={delta:0,timestamp:0,isProcessing:!1},De;function Oe(){De=void 0}var ke={now:()=>(De===void 0&&ke.set(Ee.isProcessing||O.useManualTiming?Ee.timestamp:performance.now()),De),set:e=>{De=e,queueMicrotask(Oe)}},Ae=e=>Math.round(e*1e5)/1e5,je=e=>t=>typeof t==`string`&&t.startsWith(e),Me=je(`--`),Ne=je(`var(--`),Pe=e=>Ne(e)?Fe.test(e.split(`/*`)[0].trim()):!1,Fe=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Ie(e){return typeof e==`string`&&e.split(`/*`)[0].includes(`var(--`)}var Le={test:e=>typeof e==`number`,parse:parseFloat,transform:e=>e},Re={...Le,transform:e=>D(0,1,e)},ze={...Le,default:1},Be=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Ve(e){return e==null}var He=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Ue=(e,t)=>n=>!!(typeof n==`string`&&He.test(n)&&n.startsWith(e)||t&&!Ve(n)&&Object.prototype.hasOwnProperty.call(n,t)),We=(e,t,n)=>r=>{if(typeof r!=`string`)return r;let[i,a,o,s]=r.match(Be);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s===void 0?1:parseFloat(s)}},Ge=e=>D(0,255,e),Ke={...Le,transform:e=>Math.round(Ge(e))},qe={test:Ue(`rgb`,`red`),parse:We(`red`,`green`,`blue`),transform:({red:e,green:t,blue:n,alpha:r=1})=>`rgba(`+Ke.transform(e)+`, `+Ke.transform(t)+`, `+Ke.transform(n)+`, `+Ae(Re.transform(r))+`)`};function Je(e){let t=``,n=``,r=``,i=``;return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}var Ye={test:Ue(`#`),parse:Je,transform:qe.transform},Xe=e=>({test:t=>typeof t==`string`&&t.endsWith(e)&&t.split(` `).length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Ze=Xe(`deg`),Qe=Xe(`%`),N=Xe(`px`),$e=Xe(`vh`),et=Xe(`vw`),tt={...Qe,parse:e=>Qe.parse(e)/100,transform:e=>Qe.transform(e*100)},nt={test:Ue(`hsl`,`hue`),parse:We(`hue`,`saturation`,`lightness`),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>`hsla(`+Math.round(e)+`, `+Qe.transform(Ae(t))+`, `+Qe.transform(Ae(n))+`, `+Ae(Re.transform(r))+`)`},P={test:e=>qe.test(e)||Ye.test(e)||nt.test(e),parse:e=>qe.test(e)?qe.parse(e):nt.test(e)?nt.parse(e):Ye.parse(e),transform:e=>typeof e==`string`?e:e.hasOwnProperty(`red`)?qe.transform(e):nt.transform(e),getAnimatableNone:e=>{let t=P.parse(e);return t.alpha=0,P.transform(t)}},rt=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,it=new RegExp(Be.source),at=new RegExp(rt.source,`i`);function ot(e){return isNaN(e)&&typeof e==`string`&&(it.test(e)||at.test(e))}var st=`number`,ct=`color`,lt=`var`,ut=`var(`,dt="${}",ft=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)(?![a-z]*\()/giu;function pt(e){let t=e.toString();return it.test(t)||at.test(t)}function mt(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],a=0;return{values:n,split:t.replace(ft,e=>(P.test(e)?(r.color.push(a),i.push(ct),n.push(P.parse(e))):e.startsWith(ut)?(r.var.push(a),i.push(lt),n.push(e)):(r.number.push(a),i.push(st),n.push(parseFloat(e))),++a,dt)).split(dt),indexes:r,types:i}}function ht(e){return mt(e).values}function gt({split:e,types:t}){let n=e.length;return r=>{let i=``;for(let a=0;a<n;a++)if(i+=e[a],r[a]!==void 0){let e=t[a];i+=e===st?Ae(r[a]):e===ct?P.transform(r[a]):r[a]}return i}}function _t(e){return gt(mt(e))}var vt=e=>typeof e==`number`?0:P.test(e)?P.getAnimatableNone(e):e,yt=(e,t)=>typeof e==`number`?t?.trim().endsWith(`/`)?e:0:vt(e);function bt(e){let t=mt(e);return gt(t)(t.values.map((e,n)=>yt(e,t.split[n])))}var xt={test:ot,parse:ht,createTransformer:_t,getAnimatableNone:bt};function St(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Ct({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,o=0;if(!t)i=a=o=n;else{let r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=St(s,r,e+1/3),a=St(s,r,e),o=St(s,r,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function wt(e,t){return n=>n>0?t:e}var F=(e,t,n)=>e+(t-e)*n,Tt=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},Et=[Ye,qe,nt],Dt=e=>Et.find(t=>t.test(e));function Ot(e){let t=Dt(e);if(!t)return`${e}`,!1;let n=t.parse(e);return t===nt&&(n=Ct(n)),n}var kt=(e,t)=>{let n=Ot(e),r=Ot(t);if(!n||!r)return wt(e,t);let i={...n};return e=>(i.red=Tt(n.red,r.red,e),i.green=Tt(n.green,r.green,e),i.blue=Tt(n.blue,r.blue,e),i.alpha=F(n.alpha,r.alpha,e),qe.transform(i))},At=new Set([`none`,`hidden`]);function jt(e,t){return At.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Mt(e,t){return n=>F(e,t,n)}function Nt(e){return typeof e==`number`?Mt:typeof e==`string`?Pe(e)?wt:P.test(e)?kt:Lt:Array.isArray(e)?Pt:typeof e==`object`?P.test(e)?kt:Ft:wt}function Pt(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>Nt(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function Ft(e,t){let n={...e,...t},r={};for(let i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=Nt(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}function It(e,t){let n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){let a=t.types[i],o=e.indexes[a][r[a]],s=e.values[o]??0;n[i]=s,r[a]++}return n}var Lt=(e,t)=>{let n=xt.createTransformer(t),r=mt(e),i=mt(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?At.has(e)&&!i.values.length||At.has(t)&&!r.values.length?jt(e,t):ie(Pt(It(r,i),i.values),n):(`${e}${t}`,wt(e,t))},Rt=/^(-?(?:\d+(?:\.\d*)?|\.\d+))([a-z%]*)$/iu;function zt(e,t){let n=Rt.exec(e);if(!n)return;let r=Rt.exec(t);if(!r||n[2]!==r[2])return;let i=n[2],a=parseFloat(n[1]),o=parseFloat(r[1]);return e=>Ae(F(a,o,e))+i}function Bt(e,t,n){if(typeof e==`number`&&typeof t==`number`&&typeof n==`number`)return F(e,t,n);if(typeof e==`string`&&typeof t==`string`){let n=zt(e,t);if(n)return n}return Nt(e)(e,t)}var Vt=[`setup`,`read`,`resolveKeyframes`,`preUpdate`,`update`,`preRender`,`render`,`postRender`];function Ht(e){let t=new Set,n=new Set,r=!1,i=!1,a,o=new Set,s={delta:0,timestamp:0,isProcessing:!1};function c(t){o.has(t)&&(n.add(t),e()),(a=t)(s)}let l={schedule:(e,i=!1,s=!1)=>{let c=s&&r,l=c?t:n;return i&&o.add(e),c&&e!==a&&l.delete(e),l.add(e),e},cancel:e=>{n.delete(e),o.delete(e)},process:e=>{if(s=e,r){i=!0;return}r=!0;let o=t;t=n,n=o,t.forEach(c),t.clear(),a=void 0,r=!1,i&&(i=!1,l.process(e))}};return l}var Ut=40;function Wt(e,t,n={delta:0,timestamp:0,isProcessing:!1}){let r=!1,i=!0,a=()=>r=!0,o=Vt.reduce((e,t)=>(e[t]=Ht(a),e),{}),{setup:s,read:c,resolveKeyframes:l,preUpdate:u,update:d,preRender:f,render:p,postRender:m}=o,h=()=>{let a=O.useManualTiming,o=a?n.timestamp:performance.now();r=!1,a||(n.delta=i?1e3/60:Math.max(Math.min(o-n.timestamp,Ut),1)),n.timestamp=o,n.isProcessing=!0,s.process(n),c.process(n),l.process(n),u.process(n),d.process(n),f.process(n),p.process(n),m.process(n),n.isProcessing=!1,r&&t&&(i=!1,e(h))},g=()=>{r=!0,i=!0,n.isProcessing||e(h)};return{schedule:Vt.reduce((e,t)=>{let n=o[t];return e[t]=(e,t=!1,i=!1)=>(r||g(),n.schedule(e,t,i)),e},{}),cancel:e=>{for(let t=0;t<Vt.length;t++)o[Vt[t]].cancel(e)},state:n,steps:o}}var{schedule:Gt,cancel:Kt,steps:qt}=Wt(typeof requestAnimationFrame<`u`?requestAnimationFrame:k,!0,Ee),Jt=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>Gt.update(t,e),stop:()=>Kt(t),now:()=>Ee.isProcessing?Ee.timestamp:ke.now()}},I=(e,t,n=10)=>{let r=``,i=Math.max(Math.round(t/n),2);for(let t=0;t<i;t++)r+=Math.round(e(t/(i-1))*1e4)/1e4+`, `;return`linear(${r.substring(0,r.length-2)})`},Yt=2e4;function Xt(e,t=50,n=Yt,r){let i=0,a=e.next(i);for(r?.push(a.value);!a.done&&i<n;)i+=t,a=e.next(i),r?.push(a.value);return i>=n?1/0:i}function Zt(e,t=100,n){let{keyframes:r,velocity:i}=e,a=r&&r[r.length-1]-r[0],o=n({...e,velocity:i&&a?i*t/a:i,keyframes:[0,t]}),s=Math.min(Xt(o),Yt);return{type:`keyframes`,ease:e=>o.next(s*e).value/t,duration:se(s)}}var Qt={stiffness:100,damping:10,mass:1,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05},$t=e=>e<0?1/Math.max(1+e,Qt.minDamping):Math.max(1-e,Qt.minDamping);function en(e,t){if(!(e>1))return 1;let n=Math.sqrt(e*e-1),r=e-n,i=e+n,a=2*n*Math.exp(-t)*(1+t);return rn(e=>i*Math.exp(-r*e)-r*Math.exp(-i*e)-a,e=>Math.exp(-i*e)-Math.exp(-r*e),t)/t}function tn(e,t){return e*Math.sqrt(1-t*t)}var nn=12;function rn(e,t,n){let r=n;for(let n=1;n<nn;n++)r-=e(r)/t(r);return r}var an=.001;function on({duration:e=Qt.duration,bounce:t=Qt.bounce}){let n,r;Qt.maxDuration;let i=$t(t);e=D(Qt.minDuration,Qt.maxDuration,se(e)),i<1?(n=t=>{let n=t*i,r=n*e,a=tn(t,i),o=Math.exp(-r);return an-n/a*o},r=t=>{let r=t*i*e,a=i*i*t*t*e,o=Math.exp(-r),s=tn(t*t,i);return(-n(t)+an>0?-1:1)*-a*o/s}):(n=t=>-.001+Math.exp(-t*e)*(t*e+1),r=t=>Math.exp(-t*e)*(-t*(e*e)));let a=5/e,o=rn(n,r,a),s=o*en(i,o*e),c=s*s;return{stiffness:c,damping:i*2*Math.sqrt(c),duration:oe(e)}}var sn=(e,t)=>(t?e>=0:e>0)&&e<1/0;function cn(e,t){if(sn(e,t))return e}function ln(e){let t=cn(e.stiffness),n=cn(e.damping,!0),r=cn(e.mass),i={...e,stiffness:t??Qt.stiffness,damping:n??Qt.damping,mass:r??Qt.mass,isResolvedFromDuration:!1,isTimeDefined:(t??n??r)===void 0&&(e.duration!==void 0||e.bounce!==void 0)};if(i.isTimeDefined){if(e.visualDuration){let t=$t(e.bounce||0),n=2*Math.PI/(e.visualDuration*1.2)*en(t,2*Math.PI/1.2);i.stiffness=n*n,i.damping=2*t*Math.sqrt(i.stiffness)}else Object.assign(i,on(i)),i.isResolvedFromDuration=!0;sn(i.stiffness)&&sn(i.damping,!0)||(i.stiffness=Qt.stiffness,i.damping=Qt.damping)}return i}function un(e=Qt.visualDuration,t=Qt.bounce){let n=typeof e==`object`?e:{visualDuration:e,keyframes:[0,1],bounce:t},r=n.keyframes[0],i=n.keyframes[n.keyframes.length-1],a={done:!1,value:r},{stiffness:o,damping:s,mass:c,duration:l,isResolvedFromDuration:u,isTimeDefined:d}=ln({...n}),f=e=>d?0:-se(e),p=s/(2*Math.sqrt(o*c)),m=se(Math.sqrt(o/c)),h=p*m,g={target:i,delta:i-r,velocity:f(n.velocity||0)||0,restSpeed:0,restDelta:0},_=()=>{let e=Math.abs(g.delta)<5;g.restSpeed=n.restSpeed||(e?Qt.restSpeed.granular:Qt.restSpeed.default),g.restDelta=n.restDelta||(e?Qt.restDelta.granular:Qt.restDelta.default)};_();let v,y,b;if(p<1){let e=tn(m,p),t={A:0,sinC:0,cosC:0,t:-1,env:0,sin:0,cos:0};b=()=>{t.A=(g.velocity+h*g.delta)/e,t.sinC=h*t.A+g.delta*e,t.cosC=h*g.delta-t.A*e};let n=n=>{n!==t.t&&(t.t=n,t.env=Math.exp(-h*n),t.sin=Math.sin(e*n),t.cos=Math.cos(e*n))};v=e=>(n(e),g.target-t.env*(t.A*t.sin+g.delta*t.cos)),y=e=>(n(e),t.env*(t.sinC*t.sin+t.cosC*t.cos))}else if(p===1){v=e=>g.target-Math.exp(-m*e)*(g.delta+(g.velocity+m*g.delta)*e);let e={C:0};b=()=>{e.C=g.velocity+m*g.delta},y=t=>Math.exp(-m*t)*(m*e.C*t-g.velocity)}else{let e=m*Math.sqrt(p*p-1),t=h-e,n=h+e,r=d?1/0:300/e,i=(e,t)=>Math.exp(t>r?-e*r-h*(t-r):-e*t),a={S:0,F:0};b=()=>{let t=(g.velocity+h*g.delta)/e;a.S=(g.delta+t)/2,a.F=(g.delta-t)/2},v=e=>g.target-a.S*i(t,e)-a.F*i(n,e),y=e=>t*a.S*i(t,e)+n*a.F*i(n,e)}b();let x=u&&l||null,S={calculatedDuration:x,retarget:(e,t)=>{g.target=e[e.length-1],g.delta=g.target-e[0],g.velocity=f(t),n.restSpeed&&n.restDelta||_(),S.calculatedDuration=x,a.done=!1,b()},velocity:e=>oe(y(e)),next:e=>{let t=v(e);if(u)a.done=e>=l;else{let n=oe(y(e));a.done=Math.abs(n)<=g.restSpeed&&Math.abs(g.target-t)<=g.restDelta}return a.value=a.done?g.target:t,a},toString:()=>{let e=Math.min(Xt(S),Yt),t=I(t=>S.next(e*t).value,e,30);return e+`ms `+t},toTransition:()=>{}};return S}var dn=Object.assign(un,{applyToOptions:e=>{let t=Zt(e,100,un);return e.ease=t.ease,e.duration=oe(t.duration),e.type=`keyframes`,e}});function fn({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:o,min:s,max:c,restDelta:l=.5,restSpeed:u}){let d=e[0],f={done:!1,value:d},p=e=>e<s||e>c,m=e=>s===void 0?c:c===void 0||Math.abs(s-e)<Math.abs(c-e)?s:c,h=n*t,g=d+h,_=o===void 0?g:o(g);_!==g&&(h=_-d);let v=e=>-h*Math.exp(-e/r),y=e=>{let t=v(e);f.done=Math.abs(t)<=l,f.value=f.done?_:_+t},b,x,S=e=>{p(f.value)&&(b=e,x=dn({keyframes:[f.value,m(f.value)],velocity:-v(e)/r*1e3,damping:i,stiffness:a,restDelta:l,restSpeed:u}))};return S(0),{calculatedDuration:null,next:e=>{let t=!1;return!x&&b===void 0&&(t=!0,y(e),S(e)),b!==void 0&&e>=b?x.next(e-b):(!t&&y(e),f)}}}function pn(e,t,n){let r=[],i=n||O.mix||Bt,a=e.length-1;for(let n=0;n<a;n++){let a=i(e[n],e[n+1]);t&&(a=ie(Array.isArray(t)?t[n]||k:t,a)),r.push(a)}return r}function mn(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let a=e.length;if(t.length,a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];let o=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=pn(t,r,i),c=s.length,l=n=>{if(o&&n<e[0])return t[0];let r=0;if(c>1)for(;r<e.length-2&&!(n<e[r+1]);r++);let i=A(e[r],e[r+1],n);return s[r](i)};return n?t=>l(D(e[0],e[a-1],t)):l}function hn(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=A(0,t,r);e.push(F(n,1,i))}}function gn(e){let t=[0];return hn(t,e.length-1),t}function _n(e,t){return e.map(e=>e*t)}function vn(e,t){return e.map(()=>t||be).splice(0,e.length-1)}function yn({duration:e=300,keyframes:t,times:n,ease:r=`easeInOut`}){let i=xe(r)?r.map(Te):Te(r)||be,a={done:!1,value:t[0]};if(t.length===2&&!Array.isArray(i)&&(!n||n.length!==2||n[0]===0&&n[1]===1)){let[n,r]=t,o=n===r?void 0:(O.mix||Bt)(n,r);return{calculatedDuration:e,next:t=>(a.value=o?o(i(e>0?D(0,1,t/e):1)):r,a.done=t>=e,a)}}let o=mn(_n(n&&n.length===t.length?n:gn(t),e),t,{ease:Array.isArray(i)?i:vn(t,i)});return{calculatedDuration:e,next:t=>(a.value=o(t),a.done=t>=e,a)}}var bn=5;function xn(e,t,n){let r=Math.max(t-bn,0);return ce(n-e(r),t-r)}function Sn(e,t,n=0){return t<=0?n:e.velocity?e.velocity(t):xn(t=>e.next(t).value,t,e.next(t).value)}var Cn=e=>e!==null;function wn(e,{repeat:t,repeatType:n=`loop`},r,i=1){let a=e.filter(Cn),o=i<0||t&&n!==`loop`&&t%2==1?0:a.length-1;return!o||r===void 0?a[o]:r}var Tn={decay:fn,inertia:fn,tween:yn,keyframes:yn,spring:dn};function En(e){typeof e.type==`string`&&(e.type=Tn[e.type])}var Dn=40,On=(e,t)=>t-e>Dn&&!O.useManualTiming?t:e;function kn(e,t){return{kind:e,animation:t,timestamp:ke.now(),frameTimestamp:Ee.timestamp,frameIsProcessing:Ee.isProcessing}}function An(e,t,n){let r=globalThis.__MOTION_INSPECT__;if(r)try{r({...kn(`animation-start`,e),options:n?{...t,...n}:t})}catch{}}function jn(e,t){let n=globalThis.__MOTION_INSPECT__;if(n)try{n({...kn(`layout-animation-start`,e),node:t})}catch{}}var Mn=class{constructor(){this.isResolved=!1}get finished(){return this._finished||=this.isResolved?Promise.resolve():new Promise(e=>{this._resolve=e}),this._finished}updateFinished(){this._finished=this._resolve=void 0,this.isResolved=!1}notifyFinished(){this.isResolved=!0,this._resolve?.()}then(e,t){return this.finished.then(e,t)}},Nn=e=>e/100,Pn=e=>Math.round(e*1e4)/1e4,Fn=class extends Mn{constructor(e){super(),this.state=`idle`,this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==ke.now()&&this.tick(ke.now()),this.isStopped=!0,this.state!==`idle`&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause(),An(this,this.options)}initAnimation(){let{options:e}=this;En(e);let{type:t=yn,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:a=0}=e,{keyframes:o}=e,s=t||yn;s!==yn&&typeof o[0]!=`number`&&(this.mixKeyframes=ie(Nn,Bt(o[0],o[1])),o=[0,100]);let c=s(o===e.keyframes?e:{...e,keyframes:o});i===`mirror`&&(this.mirroredGenerator=s({...e,keyframes:[...o].reverse(),velocity:-a})),c.calculatedDuration===null&&(c.calculatedDuration=Xt(c));let{calculatedDuration:l}=c;this.calculatedDuration=l,this.resolvedDuration=l+r,this.totalDuration=this.resolvedDuration*(n+1)-r,this.generator=c}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;this.currentTime=this.holdTime===null?t:this.holdTime}tick(e,t=!1){let{generator:n,totalDuration:r,calculatedDuration:i}=this;if(this.startTime===null)return n.next(0);let{delay:a=0,keyframes:o,type:s,onUpdate:c,finalKeyframe:l}=this.options;this.startTime===this.pendingStartTime&&(this.startTime=On(this.startTime,e)),this.pendingStartTime=void 0,this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-r/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let u=this.currentTime-a*(this.playbackSpeed>=0?1:-1),d=this.playbackSpeed>=0?u<0:u>r;this.currentTime=Math.max(u,0),this.state===`finished`&&this.holdTime===null&&(this.currentTime=r);let f=this.generate(this.currentTime,d),{done:p}=f;!d&&i!==null&&(p=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let m=this.holdTime===null&&(this.state===`finished`||this.state===`running`&&p);return m&&s!==fn&&(f.value=wn(o,this.options,l,this.speed)),c&&c(f.value),m&&this.finish(),f}at(e){return this.holdTime??Pn((e-this.startTime)*this.playbackSpeed)}sampleAt(e,t){let{options:n,totalDuration:r}=this,i=this.at(e)-(n.delay||0);return i>=r&&n.type!==fn?wn(n.keyframes,n,t?void 0:n.finalKeyframe):this.generate(Math.max(i,0),i<0).value}generate(e,t){let{generator:n,totalDuration:r,mixKeyframes:i,mirroredGenerator:a,resolvedDuration:o}=this,{keyframes:s,repeat:c,repeatType:l,repeatDelay:u}=this.options,d=e,f=n;if(c){let t=Math.min(e,r)/o,n=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),i===1&&n--,n=Math.min(n,c+1),n%2&&(l===`reverse`?(i=1-i,u&&(i-=u/o)):l===`mirror`&&(f=a)),d=D(0,1,i)*o}let p;return t?(this.delayState.value=s[0],p=this.delayState):p=f.next(d),i&&!t&&(p.value=i(p.value)),p}then(e,t){return this.finished.then(e,t)}get duration(){return se(this.calculatedDuration)}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+se(e)}get time(){return se(this.currentTime)}set time(e){e=oe(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state=`paused`,this.holdTime=e,this.tick(e))}getGeneratorVelocity(){return Sn(this.generator,this.currentTime,this.options.velocity)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;t&&this.driver&&this.updateTime(ke.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=se(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=Jt,startTime:t}=this.options;this.driver||=e(e=>this.tick(e)),this.options.onPlay?.();let n=this.driver.now();this.state===`finished`?(this.updateFinished(),this.startTime=n):this.holdTime===null?this.startTime||=t??(this.pendingStartTime=n):this.startTime=n-this.holdTime/(this.playbackSpeed||1),this.state===`finished`&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state=`running`,this.driver.start()}pause(){this.state=`paused`,this.updateTime(ke.now()),this.holdTime=this.currentTime}complete(){this.state!==`running`&&this.play(),this.state=`finished`,this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state=`finished`,this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state=`idle`,this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&=(this.driver.stop(),void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type=`keyframes`,this.options.ease=`linear`,this.initAnimation()),this.driver?.stop(),e.observe(this)}},In=new Set([`brightness`,`contrast`,`saturate`,`opacity`]);function Ln(e){let[t,n]=e.slice(0,-1).split(`(`);if(t===`drop-shadow`)return e;let[r]=n.match(Be)||[];if(!r)return e;let i=n.replace(r,``),a=+!!In.has(t);return r!==n&&(a*=100),t+`(`+a+i+`)`}var Rn=/\b([a-z-]*)\(.*?\)/gu,zn={...xt,getAnimatableNone:e=>{let t=e.match(Rn);return t?t.map(Ln).join(` `):e}},Bn={...xt,getAnimatableNone:e=>{let t=xt.parse(e);return xt.createTransformer(e)(t.map(e=>typeof e==`number`?0:typeof e==`object`?{...e,alpha:1}:e))}},Vn={...Le,transform:Math.round},Hn={borderWidth:N,borderTopWidth:N,borderRightWidth:N,borderBottomWidth:N,borderLeftWidth:N,borderRadius:N,borderTopLeftRadius:N,borderTopRightRadius:N,borderBottomRightRadius:N,borderBottomLeftRadius:N,width:N,maxWidth:N,height:N,maxHeight:N,top:N,right:N,bottom:N,left:N,inset:N,insetBlock:N,insetBlockStart:N,insetBlockEnd:N,insetInline:N,insetInlineStart:N,insetInlineEnd:N,padding:N,paddingTop:N,paddingRight:N,paddingBottom:N,paddingLeft:N,paddingBlock:N,paddingBlockStart:N,paddingBlockEnd:N,paddingInline:N,paddingInlineStart:N,paddingInlineEnd:N,margin:N,marginTop:N,marginRight:N,marginBottom:N,marginLeft:N,marginBlock:N,marginBlockStart:N,marginBlockEnd:N,marginInline:N,marginInlineStart:N,marginInlineEnd:N,fontSize:N,backgroundPositionX:N,backgroundPositionY:N,rotate:Ze,pathRotation:Ze,rotateX:Ze,rotateY:Ze,rotateZ:Ze,scale:ze,scaleX:ze,scaleY:ze,scaleZ:ze,skew:Ze,skewX:Ze,skewY:Ze,distance:N,translateX:N,translateY:N,translateZ:N,x:N,y:N,z:N,perspective:N,transformPerspective:N,opacity:Re,originX:tt,originY:tt,originZ:N,zIndex:Vn,fillOpacity:Re,strokeOpacity:Re,numOctaves:Vn},Un={...Hn,color:P,backgroundColor:P,outlineColor:P,fill:P,stroke:P,borderColor:P,borderTopColor:P,borderRightColor:P,borderBottomColor:P,borderLeftColor:P,filter:zn,WebkitFilter:zn,mask:Bn,WebkitMask:Bn},Wn=e=>Un[e],Gn=new Set([zn,Bn]);function Kn(e,t){let n=Wn(e);return Gn.has(n)||(n=xt),n.getAnimatableNone?n.getAnimatableNone(t):void 0}function qn(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}var Jn=e=>e*180/Math.PI,Yn=e=>Zn(Jn(Math.atan2(e[1],e[0]))),Xn={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scaleZ:()=>1,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Yn,rotateZ:Yn,skewX:e=>Jn(Math.atan(e[1])),skewY:e=>Jn(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Zn=e=>(e%=360,e<0&&(e+=360),e),Qn=Yn,$n=e=>Math.hypot(e[0],e[1]),er=e=>Math.hypot(e[4],e[5]),tr={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:$n,scaleY:er,scaleZ:e=>Math.hypot(e[8],e[9],e[10]),scale:e=>($n(e)+er(e))/2,rotateX:e=>Zn(Jn(Math.atan2(e[6],e[5]))),rotateY:e=>Zn(Jn(Math.atan2(-e[2],e[0]))),rotateZ:Qn,rotate:Qn,skewX:e=>Jn(Math.atan(e[4])),skewY:e=>Jn(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function nr(e){return+!!e.includes(`scale`)}function rr(e,t){if(!e||e===`none`)return nr(t);let n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),r,i;if(n)r=tr,i=n;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=Xn,i=t}if(!i)return nr(t);let a=r[t],o=i[1].split(`,`).map(ar);return typeof a==`function`?a(o):o[a]}var ir=(e,t)=>{let{transform:n=`none`}=getComputedStyle(e);return rr(n,t)};function ar(e){return parseFloat(e.trim())}var or=[`transformPerspective`,`x`,`y`,`z`,`translateX`,`translateY`,`translateZ`,`scale`,`scaleX`,`scaleY`,`scaleZ`,`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skew`,`skewX`,`skewY`],sr=new Set([...or,`pathRotation`]),cr=e=>e===Le||e===N,lr=new Set([`x`,`y`,`z`]),ur=or.filter(e=>!lr.has(e));function dr(e){let t=[];return ur.forEach(n=>{let r=e.getValue(n);if(r!==void 0){let e=r.get(),i=+!!n.startsWith(`scale`);if(e===i)return;t.push([n,e]),r.set(i)}}),t}var fr=new Set([`bottom`,`right`]);function pr(e,t,n,r,i,a){let o=parseFloat(e);if(!isNaN(o))return o;let{min:s,max:c}=t()[n],l=c-s;return a===`border-box`?l:l-parseFloat(r)-parseFloat(i)}var mr=({transform:e})=>rr(e,`x`),hr=({transform:e})=>rr(e,`y`),gr={width:({width:e,paddingLeft:t=`0`,paddingRight:n=`0`,boxSizing:r},i)=>pr(e,i,`x`,t,n,r),height:({height:e,paddingTop:t=`0`,paddingBottom:n=`0`,boxSizing:r},i)=>pr(e,i,`y`,t,n,r),top:({top:e})=>parseFloat(e),left:({left:e})=>parseFloat(e),bottom:({top:e},t)=>{let{y:n}=t();return parseFloat(e)+(n.max-n.min)},right:({left:e},t)=>{let{x:n}=t();return parseFloat(e)+(n.max-n.min)},x:mr,y:hr,translateX:mr,translateY:hr},_r=new Set,vr=!1,yr=!1,br=!1;function xr(){if(yr){let e=[],t=new Set,n=new Set;_r.forEach(r=>{r.needsMeasurement&&(e.push(r),t.add(r.element),fr.has(r.name)&&n.add(r.element))});let r=new Map;n.forEach(e=>{let t=dr(e);t.length&&(r.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=r.get(e);t&&t.forEach(([t,n])=>{e.getValue(t)?.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{e.suspendedScrollY!==void 0&&window.scrollTo(0,e.suspendedScrollY)})}yr=!1,vr=!1,_r.forEach(e=>e.complete(br)),_r.clear()}function Sr(){_r.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(yr=!0)})}function Cr(){br=!0,Sr(),xr(),br=!1}function wr(e,t,n){if(typeof e==`string`){if(ee(e)||ne(e))return parseFloat(e);if(!xt.test(e)&&xt.test(n))return Kn(t,n)}return e??void 0}var Tr=class{constructor(e,t,n,r,i,a=!1){this.state=`pending`,this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=i,this.isAsync=a}scheduleResolve(){this.state=`scheduled`,this.isAsync?(_r.add(this),vr||(vr=!0,Gt.read(Sr),Gt.resolveKeyframes(xr))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;if(e[0]===null){let i=r?.get(),a=e[e.length-1];if(i!==void 0)e[0]=i;else if(n&&t){let r=wr(n.readValue(t,a),t,a);r!==void 0&&(e[0]=r)}e[0]===void 0&&(e[0]=a),r&&i===void 0&&r.set(e[0])}qn(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state=`complete`,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),_r.delete(this)}cancel(){this.state===`scheduled`&&(_r.delete(this),this.state=`pending`)}resume(){this.state===`pending`&&this.scheduleResolve()}},Er=e=>e.startsWith(`--`);function Dr(e,t,n){Er(t)?e.style.setProperty(t,n):e.style[t]=n}var Or={};function kr(e,t){let n=re(e);return()=>Or[t]??n()}var Ar=kr(()=>window.ScrollTimeline!==void 0,`scrollTimeline`),jr=kr(()=>{try{document.createElement(`div`).animate({opacity:0},{easing:`linear(0, 1)`})}catch{return!1}return!0},`linearEasing`),Mr=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Nr={linear:`linear`,ease:`ease`,easeIn:`ease-in`,easeOut:`ease-out`,easeInOut:`ease-in-out`,circIn:Mr([0,.65,.55,1]),circOut:Mr([.55,0,1,.45]),backIn:Mr([.31,.01,.66,-.59]),backOut:Mr([.33,1.53,.69,.99])};function Pr(e,t){if(e)return typeof e==`function`?jr()?I(e,t):`ease-out`:Se(e)?Mr(e):Array.isArray(e)?e.map(e=>Pr(e,t)||Nr.easeOut):Nr[e]}function Fr(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:o=`loop`,ease:s=`easeOut`,times:c}={},l=void 0){let u={[t]:n};c&&(u.offset=c);let d=Pr(s,i);Array.isArray(d)&&(u.easing=d);let f={delay:r,duration:i,easing:Array.isArray(d)?`linear`:d,fill:`both`,iterations:a+1,direction:o===`reverse`?`alternate`:`normal`};return l&&(f.pseudoElement=l),e.animate(u,f)}function Ir(e){return typeof e==`function`&&`applyToOptions`in e}function Lr({type:e,...t}){return Ir(e)&&jr()?e.applyToOptions(t):(t.duration??=300,t.ease??=`easeOut`,t)}var Rr=class extends Mn{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;let{element:t,name:n,keyframes:r,pseudoElement:i,allowFlatten:a=!1,finalKeyframe:o,onComplete:s}=e;this.isPseudoElement=!!i,this.allowFlatten=a,this.options=e,e.type;let c=Lr(e);this.animation=Fr(t,n,r,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=wn(r,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(e),Dr(t,n,e),this.animation.cancel()}s?.(),this.notifyFinished()},An(this,e,c)}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state===`finished`&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){this.isStopped||(this.isStopped=!0,this.state!==`idle`&&this.finishedTime===null&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||(this.animation.onfinish=null,this.cancel())))}commitStyles(){let e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){let e=this.animation.effect?.getComputedTiming?.().duration||0;return se(Number(e))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+se(e)}get time(){return se(Number(this.animation.currentTime)||0)}set time(e){let t=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=oe(e),t&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime===null?this.animation.playState:`finished`}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,onAttach:t,observe:n}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:`linear`}),this.animation.onfinish=null,e&&Ar()?(this.animation.timeline=e,t?.(this.animation),k):n(this)}},zr={anticipate:ge,backInOut:he,circInOut:ye};function Br(e){return e in zr}function Vr(e){typeof e.ease==`string`&&Br(e.ease)&&(e.ease=zr[e.ease])}var Hr=class extends Rr{constructor(e){Vr(e),En(e),super(e),e.startTime!==void 0&&e.autoplay!==!1&&(this.startTime=e.startTime),this.options=e}elapsed(){return this.state===`running`?(ke.now()-this.startTime)*this.speed:this.time*1e3}sample(e){if(!this.sampler){let{motionValue:e,onUpdate:t,onComplete:n,onPlay:r,onStop:i,element:a,...o}=this.options;this.sampler=new Fn({...o,autoplay:!1}),this.sampler.stop()}return this.sampler.sample(Math.max(0,e)).value}liveValue(){let{state:e}=this;if(e===`running`||e===`paused`)return this.sample(this.elapsed())}updateMotionValue(e){let{motionValue:t,element:n,name:r}=this.options;if(!t)return;if(e!==void 0){t.set(e);return}let{speed:i}=this,a=this.elapsed(),o=this.state===`running`&&i?D(0,10,a):0,s=this.sample(a);n&&r&&Dr(n,r,s),t.setWithVelocity(this.sample(a-o*Math.sign(i)),s,o/Math.abs(i||1))}},Ur=(e,t)=>t!==`zIndex`&&!!(typeof e==`number`||Array.isArray(e)||typeof e==`string`&&(xt.test(e)||e===`0`)&&!e.startsWith(`url(`));function Wr(e){let t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function Gr(e,t,n,r){let i=e[0];if(i===null)return!1;if(t===`display`||t===`visibility`)return!0;let a=e[e.length-1],o=Ur(i,t),s=Ur(a,t);return!o||!s?(o!==s&&`${t}${i}${a}${o?a:i}`,!1):Wr(e)||(n===`spring`||Ir(n))&&r}function Kr(e){e.duration=0,e.type=`keyframes`}var qr=new Set([`opacity`,`clipPath`,`filter`,`transform`,`backgroundColor`]),Jr=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function Yr(e){for(let t=0;t<e.length;t++)if(typeof e[t]==`string`&&Jr.test(e[t]))return!0;return!1}var Xr=new Set([`color`,`backgroundColor`,`outlineColor`,`fill`,`stroke`,`borderColor`,`borderTopColor`,`borderRightColor`,`borderBottomColor`,`borderLeftColor`]),Zr=()=>!O.useManualTiming&&Object.hasOwnProperty.call(Element.prototype,`animate`);function Qr(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:o,keyframes:s}=e;if(!n||!(qr.has(n)||Xr.has(n)))return!1;let c=t?.owner?.current;if(!(c instanceof HTMLElement)&&!(c instanceof SVGElement))return!1;let{onUpdate:l,transformTemplate:u}=t.owner.getProps();return Zr()&&(qr.has(n)||Xr.has(n)&&Yr(s))&&(n!==`transform`||!u)&&!l&&!r&&i!==`mirror`&&a!==0&&o!==`inertia`}var $r=(e,t)=>t&&typeof e==`number`?t.transform(e):e,ei={x:`translateX`,y:`translateY`,z:`translateZ`,transformPerspective:`perspective`},ti=or.length;function ni(e,t,n){let r=``,i=!0;for(let a=0;a<ti;a++){let o=or[a],s=e[o];if(s===void 0)continue;let c=!0;if(typeof s==`number`)c=s===+!!o.startsWith(`scale`);else{let e=parseFloat(s);c=o.startsWith(`scale`)?e===1:e===0}if(!c||n){let e=$r(s,Hn[o]);if(!c){i=!1;let t=ei[o]||o;r+=`${t}(${e}) `}n&&(t[o]=e)}}let a=e.pathRotation;return a&&(i=!1,r+=`rotate(${$r(a,Hn.pathRotation)}) `),r=r.trim(),n?r=n(t,i?``:r):i&&(r=`none`),r}var ri=new WeakMap,ii=200,ai=.001,oi=.1,si=.001,ci=100,li=e=>/^(linear|ease(In|Out|InOut))$/.test(e),ui=(e,t)=>e-t,di=(e,t,n)=>{let r=[];for(let i=0;i<=n;i++)r.push(F(e,t,i/n));return r},fi=e=>e.motionValue.owner,pi=e=>ri.get(e),mi=(e,t)=>e.latestValues?e.latestValues[t]:e.getValue(t)?.get(),hi=({name:e,motionValue:t})=>e&&or.includes(e)&&t?.owner?.current instanceof HTMLElement&&Zr()&&jr();function gi(e){let t=fi(e),{onUpdate:n,transformTemplate:r}=t.getProps();return!e.isHandoff&&!n&&!e.hasOnUpdate&&!r&&e.type!==`inertia`&&(mi(t,`transform`)||`none`)===`none`&&!mi(t,`pathRotation`)&&!t.projection?.isProjecting()}var _i=class extends Fn{constructor(e){let t=fi(e).current,{driver:n=Jt}=e,r,i=gi(e);e.driver=e=>{let i=n(e);return{js:i,now:i.now,start:(e=!0)=>{let n=pi(t);!n||n.isJS?i.start(e):n.schedule(!1,!e)},stop:()=>{i.stop();let e=pi(t);e&&!e.isFinishing&&e.release(r)}}},super(e),r=this,this.canAccelerate=i;let{stop:a}=this;this.stop=()=>{this.isAccelerated()&&this.sync(),a()}}get group(){return pi(fi(this.options).current)}get js(){return this.driver?.js}get name(){return this.options.name}timing(){let{startTime:e,speed:t,totalDuration:n}=this,{delay:r=0,repeatType:i}=this.options;return this.holdTime===null?n===1/0?[e+r/t,this.resolvedDuration*(i===`loop`?1:2)/t||1]:[e+(r+n)/t,0]:[1/0,0]}isAccelerated(){let{group:e,state:t}=this;return e?.tracks.has(this)&&!e.isJS&&this.canAccelerate&&(t===`running`||t===`paused`)}liveValue(){return this.isAccelerated()?this.sampleAt(ke.now()):void 0}tween(){let{keyframes:e,type:t,ease:n,times:r,repeat:i,delay:a=0}=this.options,o=Se(n)?Mr(n):li(n)&&Nr[n];if(o&&!i&&!r&&e.length===2&&t===yn&&this.holdTime===null){let e=this.startTime+a/this.speed;return[e,e+this.resolvedDuration/this.speed,o]}}boundaries(e,t){let{startTime:n,speed:r,resolvedDuration:i,options:a}=this,{delay:o=0,repeat:s=0,repeatDelay:c=0,repeatType:l,times:u,keyframes:d,type:f}=a,p=(f||yn)===yn?u||gn(d):[0,1],m=n+o/r,h=[];if(this.holdTime!==null||!(i>0))return h;for(let n=Math.max(0,Math.floor((e-m)*r/i));n<=s;n++){let a=m+n*i/r;if(a>t)break;for(let o of p){let s=a+(n%2&&l&&l!==`loop`?1-o:o)*(i-c)/r;s>e&&s<t&&h.push(s)}}return h}numberAt(e){return parseFloat(this.sampleAt(e,!0))}sync(){let e=ke.now();this.options.motionValue.setWithVelocity(this.sampleAt(e-10,!0),this.sampleAt(e,!0),10)}play(){this.isStopped||((this.group||vi(fi(this.options))).tracks.add(this),super.play())}pause(){super.pause(),this.isAccelerated()&&(this.sync(),this.group.schedule(!1))}complete(){super.complete();let{group:e}=this;e&&!e.isJS&&this.canAccelerate&&this.tick(ke.now())}get time(){return this.isAccelerated()?se(D(0,this.totalDuration,this.at(ke.now())-(this.options.delay||0))):super.time}set time(e){super.time=e,this.isAccelerated()&&this.sync()}attachTimeline(e){return this.canAccelerate=!1,this.group?.demote(!0),super.attachTimeline(e)}};function vi(e){let t=e.current,n=new Set,r=new Map,i={},a=[],o=new Map,s=[],c=!1,l=!1,u=!1,d=!1,f=-1/0,p=e=>{for(let t of n)if(t.name===e)return!0},m=(t,n)=>{let o={};for(let s of t===void 0?or:a){let a=r.get(s),c=t===void 0?mi(e,s):a?a.sampleAt(n>t&&!a.timing()[1]?n:t):i[s];c!==void 0&&(o[s]=c)}return o},h=(e,t)=>{let n=``,r=m(e,t);for(let e in r)n+=(ei[e]||e)+`(`+$r(r[e],Hn[e])+`) `;return n||`none`},g=(e=m())=>{t.style.transform=ni(e,{})},_=(e=!0)=>{e&&g(),s.forEach(({animation:e})=>e.cancel()),s=[]},v=(e,t,n=1/0)=>{let r={animation:e,offset:t,end:n};e.startTime=ke.now()+t,n<1/0&&(e.onfinish=()=>{r.isDone=!0,s.some(e=>e.end===1/0)&&(e.cancel(),s=s.filter(e=>e!==r)),O.schedule(!1)}),e.oncancel=()=>s.includes(r)&&O.demote(),s.push(r)},y=(e,t,n)=>{let r=(t,n)=>Math.abs(e(n)-e(t)),i=r(t,n);for(;n-t>.01;){let e=(t+n)/2;r(t,e)>r(e,n)?n=e:t=e}return r(t,n)>i/2?[t,n]:[]},b=(e,t,n,r)=>{let i=Math.min(ii,Math.max(2,Math.ceil((n-t)/10)));if(r.length*4>i)return;let a=di(t,n,i).concat(r).sort(ui),o=e=>A(t,n,e),s,c;for(let t of e){let e=a.map(e=>t.numberAt(e)),[n]=e,r=e.map(e=>e-n),i=r[r.length-1],o=r.some(e=>Math.abs(e)*ai>Math.abs(i))?0:i,l=r.map(e=>o?e/o:e);if(!o){if(l.some(e=>!(Math.abs(e)<=ai)))return}else if(!s)s=l,c=e=>(t.numberAt(e)-n)/o;else if(l.some((e,t)=>!(Math.abs(e-s[t])<=ai)))return}if(!s||s.every((e,t)=>Math.abs(e-o(a[t]))<=ai))return`linear`;let l=[],u=(e,t=c(e))=>l.push(Pn(t)+` `+Pn(o(e)*100)+`%`);return s.forEach((e,t)=>{t&&Math.abs(e-s[t-1])>.2&&y(c,a[t-1],a[t]).forEach(e=>u(e)),u(a[t],e)}),`linear(`+l+`)`},x=(e,t,n,r)=>{let i=[t],a=(t,n)=>e.every(e=>!(Math.abs(e.numberAt((t+n)/2)-(e.numberAt(t)+e.numberAt(n))/2)>(e.name.startsWith(`scale`)?si:oi))),o=(t,n,r)=>{if(n-t<1||a(t,n))i.push(n);else if(r<4)o(t,(t+n)/2,r+1),o((t+n)/2,n,r+1);else{for(let r of e)i.push(...y(e=>r.numberAt(e),t,n));i.push(n)}},s=di(t,n,Math.ceil((n-t)/100));for(let e of r)s.push(e,Math.min(e+.01,n));let c=t;for(let e of s.sort(ui))e>c&&o(c,e,0),c=e;return i.sort(ui)},S=e=>{let t;for(let n of e){let e=n.tween();if(!e||t?.some((t,n)=>n<2?Math.abs(e[n]-t)>1:e[n]!==t))return;t=e}return t},C=(e,n,r,i={fill:`both`},a,o)=>{let s=e.flatMap(e=>e.boundaries(n,r)),c=o||b(e,n,r,s),l=c?[n,r]:x(e,n,r,s),u=l.map(e=>h(e,a)),d={transform:u};return c||(d.offset=l.map(e=>A(n,r,e))),u.every(e=>e===u[0])&&(g(m(n,a)),d=null),t.animate(d,{...i,duration:r-n,easing:c||`linear`})},w=c=>{let l=c,u=0,d=0,f=[],p=[],m=new Set;r.clear(),o=new Map;for(let e of n){r.set(e.name,e);let[t,n]=e.timing(),i=t===1/0;if(o.set(e,[e.at(c),e.speed,i]),i)e.sync();else{if(e.speed<0)return;if(n){if(u){let e=(t-d)/n;if(Math.abs(n-u)>1||Math.abs(e-Math.round(e))*u>1)return}else u=n,d=t;p.push(e)}else m.add(t);f.push(e),l=Math.max(l,t)}}i={},a=or.filter(t=>{if(r.has(t))return!0;let n=i[t]=mi(e,t);return n!==void 0&&parseFloat(n)!==+!!t.startsWith(`scale`)}),_(!1);let h=!u&&S(f);try{if(h&&h[1]>c){let[e,t,n]=h;v(C(f,e,t,void 0,void 0,n),e-c,t-e)}else l>c&&(v(C(f,c,l),0,l-c),m.forEach(e=>e<l-1&&v(t.animate(null,{duration:e-c}),0,e-c)));if(u){let e=d+Math.floor((l-d)/u)*u;v(C(p,e,e+u,{iterations:1/0,iterationStart:(l-e)/u,fill:`forwards`},l),l-c)}}catch{return}return s.length||_(),!0},T=e=>{let t,r=0;for(let i of n){let n=o.get(i);if(!n)return!1;let[a,s,c]=n,l=i.at(e),u=i.timing()[0]===1/0;if(c){if(u&&l===a)continue;return!1}let d=(l-a)/s,f=u?0:i.speed/s;if(t===void 0)t=d,r=f;else if(Math.abs(d-t)>1||f!==r)return!1}if(t===void 0)return!0;if(!s.length)return!1;for(let{offset:e,end:n,isDone:r}of s){let i=t-e;if(n<1/0&&(r?i<n-1:i<0||i>=n))return!1}for(let{animation:n,offset:i,isDone:a}of s){if(a)continue;let o=t-i;r?(n.playbackRate=r,n.startTime=e-o/r):(n.pause(),n.currentTime=o)}return!0},E=()=>!n.size&&(u=!0,pi(t)===O&&ri.delete(t),O.isJS||_(),!0),D=()=>{let t=ke.now();if(O.isJS||(O.isFinishing=!0,n.forEach(n=>{let[r,a]=n.timing();n.state===`running`&&n.speed>0&&!a&&r<=t+1&&(n.complete(),i[n.name]=mi(e,n.name),o.has(n)||(c=!0))}),O.isFinishing=!1),l=!1,u||(n.forEach(({state:e},t)=>{(e===`idle`||e===`finished`)&&n.delete(t)}),E()))return;for(let e of n)if(!e.canAccelerate)return O.demote(!0);O.isJS&&(O.isJS=!1,c=!0,n.forEach(e=>e.js?.stop()));let r=c,a=d;if(c=d=!1,r||!T(t)){if(a){if(t-f<ci)return O.demote();f=t}if(!w(t))return O.demote()}},O={tracks:n,isJS:!1,isFinishing:!1,schedule(e,t){u||(c||=e,d||=!!t,l||(l=!0,Ee.isProcessing?Gt.render(D,!1,!0):queueMicrotask(D)))},release(e){let{state:t}=e;(t===`idle`||t===`finished`)&&n.delete(e),E()||O.schedule(!0)},check(){if(!O.isJS){for(let t in i)if(mi(e,t)!==i[t]&&!p(t))return O.schedule(!0,!0)}},demote(e){O.isJS||u||(n.forEach(t=>{t.isAccelerated()&&t.sync(),e||(t.canAccelerate=!1)}),O.isJS=!0,o=new Map,_(),n.forEach(e=>e.state===`running`&&e.js?.start()))}};return ri.set(t,O),O}var yi=class extends Mn{constructor(e){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=ke.now();let{keyframes:t,name:n,motionValue:r,element:i}=e,a=e;a.autoplay??=!0,a.delay??=0,a.type??=`keyframes`,a.repeat??=0,a.repeatDelay??=0,a.repeatType??=`loop`;let o=i?.KeyframeResolver||Tr;this.keyframeResolver=new o(t,(e,t,n)=>this.onKeyframesResolved(e,t,a,!n),n,r,i),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,n,r){this.keyframeResolver=void 0;let{name:i,type:a,velocity:o,delay:s,isHandoff:c,onUpdate:l}=n;this.resolvedAt=ke.now();let u=!0;Gr(e,i,a,o)||(u=!1,(O.instantAnimations||!s)&&l?.(wn(e,n,t)),e[0]=e[e.length-1],Kr(n),n.repeat=0);let{onComplete:d}=n;n.finalKeyframe=t,n.keyframes=e,n.onComplete=()=>{d?.(),this.notifyFinished()};let f=u&&!c&&Qr(n),p=!f&&hi(n);r&&(f||p||this.resolvedAt!==this.createdAt)&&(n.startTime??=On(this.createdAt,this.resolvedAt));let m;if(f){n.element=n.motionValue?.owner?.current;try{m=new Hr(n)}catch{m=new Fn(n)}}else m=p?new _i(n):new Fn(n);this.pendingTimeline&&=(this.stopTimeline=m.attachTimeline(this.pendingTimeline),void 0),this._animation=m}get finished(){return this._animation?this._animation.finished:super.finished}then(e,t){return this.finished.finally(e).then(()=>{})}liveValue(){return this._animation?.liveValue?.()}get animation(){return this._animation||(this.keyframeResolver?.resume(),Cr()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}};function bi(e,t,n,r=0,i=1){let a=Array.from(e).sort((e,t)=>e.sortNodePosition(t)).indexOf(t),o=e.size,s=(o-1)*r;return typeof n==`function`?n(a,o):i===1?a*r:s-a*r}var xi=30,Si=e=>!isNaN(parseFloat(e)),Ci={current:void 0},wi=class{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=ke.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.notifyChange(),this.dependents))for(let e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=ke.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=Si(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on(`change`,e)}on(e,t){var n;return e===`change`?this.onChangeSubscribe(t):((n=this.events)[e]||(n[e]=new ae)).add(t)}onChangeSubscribe(e){let{events:t}=this;return!t.change&&!this.changeSubscriber?this.changeSubscriber=e:(t.change||(t.change=new ae,t.change.add(this.changeSubscriber),this.changeSubscriber=void 0),t.change.add(e)),()=>{this.changeSubscriber===e?this.changeSubscriber=void 0:t.change?.remove(e),this.stopIfUnobserved()}}stopIfUnobserved(){Gt.read(()=>{!this.changeSubscriber&&!this.events.change?.getSize()&&this.stop()})}clearListeners(){this.changeSubscriber=void 0;for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.notifyChange()}notifyChange(){let{current:e,changeSubscriber:t}=this;t?t(e):this.events.change?.notify(e)}addDependent(e){this.dependents||=new Set,this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){Ci.current&&Ci.current.push(this);let e=this.animation?.liveValue?.();return e===void 0?this.current:e}getCurrent(){return this.current}getPrevious(){return this.prev}getVelocity(){let e=ke.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>xi)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,xi);return ce(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0;let n=!1,r;r=e(()=>{n=!0,this.events.animationComplete?.notify(),this.animation===r&&this.clearAnimation(),t()}),n||(this.animation=r),this.events.animationStart?.notify()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){this.animation=void 0}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function Ti(e,t){return new wi(e,t)}function Ei(e,t){if(e?.inherit&&t){let{inherit:n,...r}=e;return{...t,...r}}return e}function Di(e,t){let n=e?.[t]??e?.default??e;return n===e?n:Ei(n,e)}var Oi={type:`spring`,stiffness:500,damping:25,restSpeed:10},ki=e=>({type:`spring`,stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Ai={type:`keyframes`,duration:.8},ji={type:`keyframes`,ease:[.25,.1,.35,1],duration:.3},Mi=(e,{keyframes:t})=>t.length>2?Ai:sr.has(e)?e.startsWith(`scale`)?ki(t[1]):Oi:ji,Ni=new Set([`when`,`delay`,`delayChildren`,`staggerChildren`,`staggerDirection`,`repeat`,`repeatType`,`repeatDelay`,`from`,`elapsed`]);function Pi(e){for(let t in e)if(!Ni.has(t))return!0;return!1}var Fi=(e,t,n,r={},i,a)=>o=>{let s=Di(r,e)||{},c=s.delay||r.delay||0,{elapsed:l=0}=r;l-=oe(c);let u={keyframes:Array.isArray(n)?n:[null,n],ease:`easeOut`,velocity:t.getVelocity(),...s,delay:-l,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{o(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:a?void 0:i,hasOnUpdate:!!s.onUpdate};Pi(s)||Object.assign(u,Mi(e,u)),u.duration&&=oe(u.duration),u.repeatDelay&&=oe(u.repeatDelay),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(Kr(u),u.delay===0&&(d=!0)),(O.instantAnimations||O.skipAnimations||i?.shouldSkipAnimations||s.skipAnimations)&&(d=!0,Kr(u),u.delay=0),u.allowFlatten=!s.type&&!s.ease,d&&!a&&t.get()!==void 0){let e=wn(u.keyframes,s);if(e!==void 0){Gt.update(()=>{u.onUpdate(e),u.onComplete()});return}}return s.isSync?new Fn(u):new yi(u)},Ii=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Li(e){let t=Ii.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}function Ri(e,t,n=1){`${e}`;let[r,i]=Li(e);if(!r)return;let a=window.getComputedStyle(t).getPropertyValue(r);if(a){let e=a.trim();return ee(e)?parseFloat(e):e}return Pe(i)?Ri(i,t,n+1):i}function zi(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function Bi(e,t,n,r){let i=t=>typeof t==`function`?t(n===void 0?e.custom:n,...zi(r)):t;return t=i(t),typeof t==`string`&&(t=e.variants&&e.variants[t]),i(t)}function Vi(e,t,n){return Bi(e.getProps(),t,n,e)}var Hi=(e,t)=>t===`exit`?e.presenceContext?.custom:void 0,Ui=new Set([`width`,`height`,`top`,`left`,`right`,`bottom`,...or]),Wi=e=>Array.isArray(e);function Gi(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Ti(n))}function Ki(e){return Wi(e)?e[e.length-1]||0:e}function qi(e,t){let{transitionEnd:n={},transition:r={},...i}=Vi(e,t)||{};i={...i,...n};for(let t in i)Gi(e,t,Ki(i[t]))}var Ji=e=>!!(e&&e.getVelocity);function Yi(e){return!!(Ji(e)&&e.add)}function Xi(e,t){let n=e.getValue(`willChange`);if(Yi(n))return n.add(t);if(!n&&O.WillChange){let n=new O.WillChange(`auto`);e.addValue(`willChange`,n),n.add(t)}}var Zi=`data-framer-appear-id`;function Qi(e){return e.props[Zi]}var $i=typeof window<`u`;function ea({protectedKeys:e,needsAnimating:t},n){let r=n in e&&!t[n];return t[n]=!1,r}function ta(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a,transitionEnd:o,...s}=t,c=e.getDefaultTransition();a=a?Ei(a,c):c;let l=a?.reduceMotion,u=a?.skipAnimations;r&&(a=r);let d=[],f=i&&e.animationState?.getState()[i],p=a?.path;p&&(p.animateValues?p.animateValues(t=>e.getValue(t,e.latestValues[t]??0),s,a,n,d):p.animateVisualElement?.(e,s,a,n,d));for(let t in s){let r=e.getValue(t,e.latestValues[t]??null),i=s[t];if(i===void 0||f&&ea(f,t))continue;let o={delay:n,...Di(a||{},t)};u&&(o.skipAnimations=!0);let c=r.get();if(c!==void 0&&!r.isAnimating()&&!Array.isArray(i)&&i===c&&!o.velocity){Gt.update(()=>r.set(i));continue}let p=!1;if($i&&window.MotionHandoffAnimation){let n=Qi(e);if(n){let e=window.MotionHandoffAnimation(n,t,Gt);e!==null&&(o.startTime=e,p=!0)}}Xi(e,t);let m=l??e.shouldReduceMotion;r.start(Fi(t,r,i,m&&Ui.has(t)?{type:!1}:o,e,p));let h=r.animation;h&&d.push(h)}if(o){let t=()=>Gt.update(()=>{o&&qi(e,o)});d.length?Promise.all(d).then(t):t()}return d}function na(e,t,n={}){let r=Vi(e,t,Hi(e,n.type)),i=n.transitionOverride||(r?.transition??(e.getDefaultTransition()||{})),a=()=>Promise.all(r?ta(e,r,n):[]),o=(r=0)=>{let{variantChildren:a}=e,{delayChildren:o=0,staggerChildren:s,staggerDirection:c}=i,l=[];return a?.forEach(e=>{e.notify(`AnimationStart`,t),l.push(na(e,t,{...n,delay:r+(typeof o==`function`?0:o)+bi(a,e,o,s,c)}).then(()=>e.notify(`AnimationComplete`,t)))}),Promise.all(l)},{when:s}=i;return s?s===`beforeChildren`?a().then(()=>o()):o().then(a):Promise.all([a(),o(n.delay)])}function ra(e,t,n={}){return e.notify(`AnimationStart`,t),(Array.isArray(t)?Promise.all(t.map(t=>na(e,t,n))):typeof t==`string`?na(e,t,n):Promise.all(ta(e,Vi(e,t,n.custom),n))).then(()=>{e.notify(`AnimationComplete`,t)})}var ia={test:e=>e===`auto`,parse:e=>e},aa=e=>t=>t.test(e),oa=[Le,N,Qe,Ze,et,$e,ia],sa=e=>oa.find(aa(e));function L(e){return typeof e==`number`?e===0:e===null||e===`none`||e===`0`||ne(e)}var ca=new Set([`auto`,`none`,`0`]);function la(e,t,n){let r=0,i;for(;r<e.length&&!i;){let t=e[r];typeof t==`string`&&!ca.has(t)&&pt(t)&&(i=e[r]),r++}if(i&&n)for(let r of t)e[r]!==i&&(e[r]=Kn(n,i))}var ua=class extends Tr{constructor(e,t,n,r,i){super(e,t,n,r,i,!0)}scheduleResolve(){if(this.canReadNow()&&(this.readKeyframes(),!this.needsMeasurement))return this.complete();super.scheduleResolve()}canReadNow(){let{unresolvedKeyframes:e,element:t,motionValue:n}=this,r=e[0]??n?.get();if(!t?.current||r===void 0)return!1;for(let t=0;t<e.length;t++)if(Ie(t?e[t]:r))return!1;return!0}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if(typeof r==`string`&&(r=r.trim(),Pe(r))){let i=Ri(r,t.current);i!==void 0&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!Ui.has(n)||e.length!==2)return;let[r,i]=e;if(typeof r==`number`&&typeof i==`number`)return;let a=sa(r),o=sa(i);if(Ie(r)!==Ie(i)&&gr[n])this.needsMeasurement=!0;else if(a!==o){if(cr(a)&&cr(o))for(let t=0;t<e.length;t++){let n=e[t];typeof n==`string`&&(e[t]=parseFloat(n))}else gr[n]&&(this.needsMeasurement=!0)}}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)(e[t]===null||L(e[t]))&&n.push(t);n.length&&la(e,n,t)}measure(){let{element:e,name:t}=this;return gr[t](window.getComputedStyle(e.current),()=>e.measureViewportBox())}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;n===`height`&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=this.measure(),t[0]=this.measuredOrigin;let r=t[t.length-1];r!==void 0&&this.motionValue?.jump(r,!1)}measureEndState(){let{element:e,unresolvedKeyframes:t}=this;if(!e||!e.current)return;this.motionValue?.jump(this.measuredOrigin,!1);let n=t.length-1,r=t[n];t[n]=this.measure(),r!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=r),this.removedTransforms?.length&&this.removedTransforms.forEach(([t,n])=>{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}},da=[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomRightRadius`,`borderBottomLeftRadius`];function fa(e){return te(e)&&`offsetHeight`in e&&!(`ownerSVGElement`in e)}function pa(e){return te(e)&&`ownerSVGElement`in e}var ma={};function ha(e){return ma.current?.add(e),e}var ga=e=>ma.current?ma.current.bind(e):e;function _a(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e==`string`){let r=t?t.current:ma.current?.root||document,i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(e=>e!=null)}function va(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}function ya(e,t,n){let{style:r,vars:i,transformOrigin:a}=e,o=!1,s=!1;for(let e in t){let n=t[e];if(sr.has(e))o=!0;else if(Me(e))i[e]=n;else{let t=$r(n,Hn[e]);e.startsWith(`origin`)?(s=!0,a[e]=t):r[e]=t}}if(t.transform||(o||n?r.transform=ni(t,e.transform,n):r.transform&&=`none`),s){let{originX:e=`50%`,originY:t=`50%`,originZ:n=0}=a;r.transformOrigin=`${e} ${t} ${n}`}}var ba={offset:`stroke-dashoffset`,array:`stroke-dasharray`},xa={offset:`strokeDashoffset`,array:`strokeDasharray`};function Sa(e,t,n=1,r=0,i=!0){e.pathLength=1;let a=i?ba:xa;e[a.offset]=`${-r}`,e[a.array]=`${t} ${n}`}var Ca=[`transform`,`opacity`,`clipPath`,`filter`,`offsetDistance`,`offsetPath`,`offsetRotate`,`offsetAnchor`];function wa(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:o=0,...s},c,l,u){if(ya(e,s,l),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:f}=e;for(let e of Ca)d[e]!==void 0&&(f[e]=d[e],delete d[e]);(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??`50% 50%`,delete d.transformOrigin),f.transform&&(f.transformBox=u?.transformBox??`fill-box`,delete d.transformBox),t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),i!==void 0&&Sa(d,i,a,o,!1)}function Ta({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Ea({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Da(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Oa(e){return e===void 0||e===1}function ka({scale:e,scaleX:t,scaleY:n}){return!Oa(e)||!Oa(t)||!Oa(n)}function Aa(e){return ka(e)||ja(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.rotateZ||e.skewX||e.skewY}function ja(e){return Ma(e.x)||Ma(e.y)}function Ma(e){return e&&e!==`0%`}function Na(e,t,n){return n+t*(e-n)}function Pa(e,t,n,r,i){return i!==void 0&&(e=Na(e,i,r)),Na(e,n,r)+t}function Fa(e,t=0,n=1,r,i){e.min=Pa(e.min,t,n,r,i),e.max=Pa(e.max,t,n,r,i)}function Ia(e,{x:t,y:n}){Fa(e.x,t.translate,t.scale,t.originPoint),Fa(e.y,n.translate,n.scale,n.originPoint)}var La=.999999999999,Ra=1.0000000000001;function za(e,t,n,r=!1){let i=n.length;if(!i)return;t.x=t.y=1;let a,o;for(let s=0;s<i;s++){a=n[s],o=a.projectionDelta;let{visualElement:i}=a.options;i&&i.props.style&&i.props.style.display===`contents`||(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&(Ba(e.x,-a.scroll.offset.x),Ba(e.y,-a.scroll.offset.y)),o&&(t.x*=o.x.scale,t.y*=o.y.scale,Ia(e,o)),r&&Aa(a.latestValues)&&Ua(e,a.latestValues,a.layout?.layoutBox))}t.x<Ra&&t.x>La&&(t.x=1),t.y<Ra&&t.y>La&&(t.y=1)}function Ba(e,t){e.min+=t,e.max+=t}function Va(e,t,n,r,i=.5){Fa(e,t,n,F(e.min,e.max,i),r)}function Ha(e,t){return typeof e==`string`?parseFloat(e)/100*(t.max-t.min):e}function Ua(e,t,n){let r=n??e;Va(e.x,Ha(t.x,r.x),t.scaleX,t.scale,t.originX),Va(e.y,Ha(t.y,r.y),t.scaleY,t.scale,t.originY)}function Wa(e,t){return Ta(Da(e.getBoundingClientRect(),t))}function Ga(e,t,n){let r=Wa(e,n),{scroll:i}=t;return i&&(Ba(r.x,i.offset.x),Ba(r.y,i.offset.y)),r}var{schedule:Ka,cancel:qa}=Wt(queueMicrotask,!1);function Ja(e,t,n){let r=Ji(e)?e:Ti(e);return r.start(Fi(``,r,t,n)),r.animation}var Ya={},Xa={value:null,addProjectionMetrics:null};function Za(e,t){let n=ke.now();e=ga(e);let r=({timestamp:i})=>{let a=i-n;a>=t&&(Kt(r),e(a-t))};return Gt.setup(r,!0),ha(()=>Kt(r))}function Qa(e){return pa(e)&&e.tagName===`svg`}function $a(e){return Ji(e)?e.get():e}var eo=e=>typeof e==`number`?e:parseFloat(e),to=da.length,no=[`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skewX`,`skewY`],ro=no.length,io=e=>typeof e==`number`||N.test(e);function ao(e,t,n,r,i,a){i?(e.opacity=F(0,n.opacity??1,so(r)),e.opacityExit=F(t.opacity??1,0,co(r))):a&&(e.opacity=F(t.opacity??1,n.opacity??1,r));for(let i=0;i<to;i++){let a=da[i],o=oo(t,a),s=oo(n,a);(o!==void 0||s!==void 0)&&(o||=0,s||=0,o===0||s===0||io(o)===io(s)?(e[a]=Math.max(F(eo(o),eo(s),r),0),(Qe.test(s)||Qe.test(o))&&(e[a]+=`%`)):e[a]=s)}for(let i=0;i<ro;i++){let a=no[i];(t[a]||n[a])&&(e[a]=F(t[a]||0,n[a]||0,r))}}function oo(e,t){return e[t]===void 0?e.borderRadius:e[t]}var so=lo(0,.5,ve),co=lo(.5,.95,k);function lo(e,t,n){return r=>r<e?0:r>t?1:n(A(e,t,r))}function uo(e,t){e.min=t.min,e.max=t.max}function fo(e,t){uo(e.x,t.x),uo(e.y,t.y)}function po(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}var mo=.9999,ho=1.0001,go=-.01,_o=.01;function vo(e){return e.max-e.min}function yo(e,t,n){return Math.abs(e-t)<=n}function bo(e,t,n,r=.5){e.origin=r,e.originPoint=F(t.min,t.max,e.origin),e.scale=vo(n)/vo(t),e.translate=F(n.min,n.max,e.origin)-e.originPoint,(e.scale>=mo&&e.scale<=ho||isNaN(e.scale))&&(e.scale=1),(e.translate>=go&&e.translate<=_o||isNaN(e.translate))&&(e.translate=0)}function xo(e,t,n,r){bo(e.x,t.x,n.x,r?r.originX:void 0),bo(e.y,t.y,n.y,r?r.originY:void 0)}function So(e,t,n,r=0){e.min=(r?F(n.min,n.max,r):n.min)+t.min,e.max=e.min+vo(t)}function Co(e,t,n,r){So(e.x,t.x,n.x,r?.x),So(e.y,t.y,n.y,r?.y)}function wo(e,t,n,r=0){let i=r?F(n.min,n.max,r):n.min;e.min=t.min-i,e.max=e.min+vo(t)}function To(e,t,n,r){wo(e.x,t.x,n.x,r?.x),wo(e.y,t.y,n.y,r?.y)}function Eo(e,t,n,r,i){return e-=t,e=Na(e,1/n,r),i!==void 0&&(e=Na(e,1/i,r)),e}function Do(e,t=0,n=1,r=.5,i,a=e,o=e){if(Qe.test(t)&&(t=parseFloat(t),t=F(o.min,o.max,t/100)-o.min),typeof t!=`number`)return;let s=F(a.min,a.max,r);e===a&&(s-=t),e.min=Eo(e.min,t,n,s,i),e.max=Eo(e.max,t,n,s,i)}function Oo(e,t,[n,r,i],a,o){Do(e,t[n],t[r],t[i],t.scale,a,o)}var ko=[`x`,`scaleX`,`originX`],Ao=[`y`,`scaleY`,`originY`];function jo(e,t,n,r){Oo(e.x,t,ko,n?n.x:void 0,r?r.x:void 0),Oo(e.y,t,Ao,n?n.y:void 0,r?r.y:void 0)}var Mo=()=>({translate:0,scale:1,origin:0,originPoint:0}),No=()=>({x:Mo(),y:Mo()}),Po=()=>({min:0,max:0}),R=()=>({x:Po(),y:Po()});function Fo(e){return e.translate===0&&e.scale===1}function Io(e){return Fo(e.x)&&Fo(e.y)}function Lo(e,t){return e.min===t.min&&e.max===t.max}function Ro(e,t){return Lo(e.x,t.x)&&Lo(e.y,t.y)}function zo(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Bo(e,t){return zo(e.x,t.x)&&zo(e.y,t.y)}function Vo(e){return vo(e.x)/vo(e.y)}function Ho(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}var Uo=class{constructor(){this.members=[]}add(e){T(this.members,e);for(let t=this.members.length-1;t>=0;t--){let n=this.members[t];if(n===e||n===this.lead||n===this.prevLead)continue;let r=n.instance;r&&r.isConnected!==!1||n.snapshot||(E(this.members,n),n.unmount())}e.scheduleRender()}remove(e){if(E(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){for(let t=this.members.indexOf(e)-1;t>=0;t--){let e=this.members[t];if(e.isPresent!==!1&&e.instance?.isConnected!==!1)return this.promote(e),!0}return!1}promote(e,t){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.updateSnapshot(),e.scheduleRender();let{layoutDependency:r}=n.options,{layoutDependency:i}=e.options;(r===void 0||r!==i)&&(e.resumeFrom=n,t&&(n.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root?.isUpdating&&(e.isLayoutDirty=!0)),e.options.crossfade===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{e.options.onExitComplete?.(),e.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}};function Wo(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var z={correct:(e,t)=>{if(!t.target)return e;if(typeof e==`string`){if(N.test(e))e=parseFloat(e);else return e}return`${Wo(e,t.target.x)}% ${Wo(e,t.target.y)}%`}},Go={borderRadius:Object.assign({},z,{applyTo:da.slice()}),borderTopLeftRadius:z,borderTopRightRadius:z,borderBottomLeftRadius:z,borderBottomRightRadius:z,boxShadow:{correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=xt.parse(e);if(i.length>5)return r;let a=xt.createTransformer(e),o=typeof i[0]==`number`?0:1,s=n.x.scale*t.x,c=n.y.scale*t.y;i[0+o]/=s,i[1+o]/=c;let l=F(s,c,.5);return typeof i[2+o]==`number`&&(i[2+o]/=l),typeof i[3+o]==`number`&&(i[3+o]/=l),a(i)}}};function Ko(e,t,n){let r=``,i=e.x.translate/t.x,a=e.y.translate/t.y,o=n?.z||0;if((i||a||o)&&(r=`translate3d(${i}px, ${a}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:e,rotate:t,pathRotation:i,rotateX:a,rotateY:o,rotateZ:s,skewX:c,skewY:l}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),i&&(r+=`rotate(${i}deg) `),a&&(r+=`rotateX(${a}deg) `),o&&(r+=`rotateY(${o}deg) `),s&&(r+=`rotateZ(${s}deg) `),c&&(r+=`skewX(${c}deg) `),l&&(r+=`skewY(${l}deg) `)}let s=e.x.scale*t.x,c=e.y.scale*t.y;return(s!==1||c!==1)&&(r+=`scale(${s}, ${c})`),r||`none`}function qo(e){return[e(`x`),e(`y`)]}var Jo=(e,t)=>e.depth-t.depth,Yo=class{constructor(){this.children=[],this.isDirty=!1}add(e){T(this.children,e),this.isDirty=!0}remove(e){E(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Jo),this.isDirty=!1,this.children.forEach(e)}},Xo={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Zo={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},Qo=[``,`X`,`Y`,`Z`],$o=1e3,es=0;function ts(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}var ns=({instance:e})=>e&&ri.get(e)?.demote();function rs(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let n=Qi(t);if(window.MotionHasOptimisedAnimation(n,`transform`)){let{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,`transform`,Gt,!(t||r))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&rs(r)}function is({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return Object.assign(Ya,{...Go,...Ya}),class{constructor(e={},n=t?.()){this.id=es++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Xa.value&&(Zo.nodes=Zo.calculatedTargetDeltas=Zo.calculatedProjections=0),this.nodes.forEach(ss),this.nodes.forEach(vs),this.nodes.forEach(ys),this.nodes.forEach(cs),Xa.addProjectionMetrics&&Xa.addProjectionMetrics(Zo)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new Yo)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new ae),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;this.isSVG=pa(t)&&!Qa(t),this.instance=t;let{layoutId:n,layout:r,visualElement:i}=this.options;if(i&&!i.current&&i.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(r||n)&&(this.isLayoutDirty=!0),e){let n,r=0,i=()=>this.root.updateBlockedByResize=!1;Gt.read(()=>{r=window.innerWidth}),e(t,()=>{let e=window.innerWidth;e!==r&&(r=e,this.root.updateBlockedByResize=!0,n&&n(),n=Za(i,250),Xo.hasAnimatedSinceResize&&(Xo.hasAnimatedSinceResize=!1,this.nodes.forEach(_s)))})}n&&this.root.registerSharedNode(n,this),this.addLayoutListener()}addLayoutListener(){let{layoutId:e,layout:t,visualElement:n,animate:r}=this.options;this.instance&&!this.hasLayoutListener&&r!==!1&&n&&(e||t)&&(this.hasLayoutListener=!0,this.addEventListener(`didUpdate`,({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:r,layout:i})=>{if(this.isAnimationBlocked){this.target=void 0,this.relativeTarget=void 0;return}let a=this.options.transition||n.getDefaultTransition()||Ts,{onLayoutAnimationStart:o,onLayoutAnimationComplete:s}=n.getProps(),c=!this.targetLayout||!Bo(this.targetLayout,i),l=!t&&r;if(this.options.layoutRoot||this.resumeFrom||l||t&&(c||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...Di(a,`layout`),onPlay:o,onComplete:s};(n.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,l,t.path)}else t||_s(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=i}))}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),this.hasLayoutListener=!1,Kt(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(bs),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&rs(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;ns(this),this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,ns(t),(typeof t.latestValues.x==`string`||typeof t.latestValues.y==`string`)&&(t.isLayoutDirty=!0),t.updateScroll(`snapshot`),t.options.layoutRoot&&t.willUpdate(!1),t.isAnimationBlocked&&(t.dragSnapshot||=t.measure(),this.dragAncestor=t)}let{layoutId:t,layout:n}=this.options;if(t===void 0&&!n)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,``):void 0,this.updateSnapshot(),e&&this.notifyListeners(`willUpdate`)}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let e=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),e&&this.nodes.forEach(ds),this.nodes.forEach(us);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(fs);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(ms),this.nodes.forEach(hs),this.nodes.forEach(gs),this.nodes.forEach(as),this.nodes.forEach(os)):this.nodes.forEach(fs),this.clearAllSnapshots();let e=ke.now();Ee.delta=D(0,1e3/60,e-Ee.timestamp),Ee.timestamp=e,Ee.isProcessing=!0,qt.update.process(Ee),qt.preRender.process(Ee),qt.render.process(Ee),Ee.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Ka.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(ls),this.sharedNodes.forEach((e,t)=>e.members.length?e.removeLeadSnapshot():this.sharedNodes.delete(t))}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Gt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Gt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),this.snapshot&&!vo(this.snapshot.measuredBox.x)&&!vo(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutCorrected||=R(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners(`measure`,this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify(`LayoutMeasure`,this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e=`measure`){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){let t=r(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!i)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout;e&&ns(this);let t=this.projectionDelta&&!Io(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,``):void 0,a=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||Aa(this.latestValues)||a)&&(i(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){let t=this.measurePageBox(),n=this.removeElementScroll(t);return e&&(n=this.removeTransform(n)),ks(n),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return R();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(js))){let{scroll:e}=this.root;e&&(Ba(t.x,e.offset.x),Ba(t.y,e.offset.y))}return t}removeElementScroll(e){let t=R();if(fo(t,e),this.scroll?.wasRoot)return t;for(let n=0;n<this.path.length;n++){let r=this.path[n],{scroll:i,options:a}=r;r!==this.root&&i&&a.layoutScroll&&(i.wasRoot&&fo(t,e),Ba(t.x,i.offset.x),Ba(t.y,i.offset.y))}return t}applyTransform(e,t=!1,n,r){let i=n||R();fo(i,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];!t&&n.options.layoutScroll&&n.scroll&&n!==n.root&&(Ba(i.x,-n.scroll.offset.x),Ba(i.y,-n.scroll.offset.y)),Aa(n.latestValues)&&Ua(i,n.latestValues,n.layout?.layoutBox)}return!r&&Aa(this.latestValues)&&Ua(i,this.latestValues,this.layout?.layoutBox),i}removeTransform(e){let t=R();fo(t,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];if(!Aa(n.latestValues))continue;let r;n.instance&&(ka(n.latestValues)&&n.updateSnapshot(),r=R(),fo(r,n.measurePageBox())),jo(t,n.latestValues,n.snapshot?.layoutBox,r)}return Aa(this.latestValues)&&jo(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:e.crossfade===void 0||e.crossfade},this.addLayoutListener()}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Ee.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||=t.isProjectionDirty,this.isTransformDirty||=t.isTransformDirty,this.isSharedProjectionDirty||=t.isSharedProjectionDirty;let n=!!this.resumingFrom||this!==t;if(!(e||n&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:r,layoutId:i}=this.options;if(!this.layout||!(r||i))return;this.resolvedRelativeTargetAt=Ee.timestamp;let a=this.getClosestProjectingParent();!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&a&&a.layout?this.createRelativeTarget(a,this.layout.layoutBox,a.layout.layoutBox):this.removeRelativeTarget()),(this.relativeTarget||this.targetDelta)&&(this.target||(this.target=R(),this.targetWithTransforms=R()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Co(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target,!0):fo(this.target,this.layout.layoutBox),Ia(this.target,this.targetDelta)):fo(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&a&&!!a.resumingFrom==!!this.resumingFrom&&!a.options.layoutScroll&&a.target&&this.animationProgress!==1?this.createRelativeTarget(a,this.target,a.target):this.relativeParent=this.relativeTarget=void 0),Xa.value&&Zo.calculatedTargetDeltas++)}getClosestProjectingParent(){if(!(!this.parent||ka(this.parent.latestValues)||ja(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(e,t,n){this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=R(),this.relativeTargetOrigin=R(),To(this.relativeTargetOrigin,t,n,this.options.layoutAnchor||void 0),fo(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let e=this.getLead(),t=!!this.resumingFrom||this!==e,n=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(n=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===Ee.timestamp&&(n=!1),n)return;let{layout:r,layoutId:i}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||i))return;fo(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,o=this.treeScale.y;za(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=R());let{target:s}=e;s?(!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(po(this.prevProjectionDelta.x,this.projectionDelta.x),po(this.prevProjectionDelta.y,this.projectionDelta.y)),xo(this.projectionDelta,this.layoutCorrected,s,this.latestValues),this.treeScale.x===a&&this.treeScale.y===o&&Ho(this.projectionDelta.x,this.prevProjectionDelta.x)&&Ho(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners(`projectionUpdate`,s)),Xa.value&&Zo.calculatedProjections++):this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender())}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.visualElement?.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=No(),this.projectionDelta=No(),this.projectionDeltaWithTransform=No()}setAnimationOrigin(e,t=!1,n){let r=this.snapshot,i=r?r.latestValues:{},a={...this.latestValues},o=No();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let s=R(),c=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),u=!l||l.members.length<=1,d=!(!c||u||this.options.crossfade!==!0||this.path.some(ws));this.animationProgress=0;let f,p=n?.interpolateProjection(e);this.mixTargetDelta=t=>{let n=t/1e3,r=p?.(n);r?(o.x.translate=r.x,o.x.scale=F(e.x.scale,1,n),o.x.origin=e.x.origin,o.x.originPoint=e.x.originPoint,o.y.translate=r.y,o.y.scale=F(e.y.scale,1,n),o.y.origin=e.y.origin,o.y.originPoint=e.y.originPoint):(xs(o.x,e.x,n),xs(o.y,e.y,n)),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(To(s,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),Cs(this.relativeTarget,this.relativeTargetOrigin,s,n),f&&Ro(this.relativeTarget,f)&&(this.isProjectionDirty=!1),f||=R(),fo(f,this.relativeTarget)),c&&(this.animationValues=a,ao(a,i,this.latestValues,n,d,u)),r&&r.rotate!==void 0&&(this.animationValues||=a,this.animationValues.pathRotation=r.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners(`animationStart`),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&=(Kt(this.pendingAnimation),void 0),this.pendingAnimation=Gt.update(()=>{Xo.hasAnimatedSinceResize=!0,this.motionValue||=Ti(0),this.motionValue.jump(0,!1),this.currentAnimation=Ja(this.motionValue,[0,1e3],{...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),jn(this.currentAnimation,this),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners(`animationComplete`)}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta($o),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,layout:n,latestValues:r}=e,{target:i}=e;if(t&&i&&n){if(this!==e&&this.layout&&n&&As(this.options.animationType,this.layout.layoutBox,n.layoutBox)){i=this.target||R();let t=vo(this.layout.layoutBox.x);i.x.min=e.target.x.min,i.x.max=i.x.min+t;let n=vo(this.layout.layoutBox.y);i.y.min=e.target.y.min,i.y.max=i.y.min+n}fo(t,i),Ua(t,r),xo(this.projectionDeltaWithTransform,this.layoutCorrected,t,r)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new Uo),this.sharedNodes.get(e).add(t);let n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return e?e.relegate(this):!1}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;let r={};n.z&&ts(`z`,e,r,this.animationValues);for(let t=0;t<Qo.length;t++)ts(`rotate${Qo[t]}`,e,r,this.animationValues),ts(`skew${Qo[t]}`,e,r,this.animationValues);e.render();for(let t in r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible){e.visibility=`hidden`;return}let n=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,e.visibility=``,e.opacity=``,e.pointerEvents=$a(t?.pointerEvents)||``,e.transform=n?n(this.latestValues,``):`none`;return}let r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target){this.options.layoutId&&(e.opacity=this.latestValues.opacity===void 0?1:this.latestValues.opacity,e.pointerEvents=$a(t?.pointerEvents)||``),this.hasProjected&&!Aa(this.latestValues)&&(e.transform=n?n({},``):`none`,this.hasProjected=!1);return}e.visibility=``;let i=r.animationValues||r.latestValues;this.applyTransformsToTarget();let a=Ko(this.projectionDeltaWithTransform,this.treeScale,i);n&&(a=n(i,a)),e.transform=a;let{x:o,y:s}=this.projectionDelta;e.transformOrigin=`${o.origin*100}% ${s.origin*100}% 0`,e.opacity=r.animationValues?r===this?i.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:i.opacityExit:r===this?i.opacity===void 0?``:i.opacity:i.opacityExit===void 0?0:i.opacityExit;for(let t in Ya){if(i[t]===void 0)continue;let{correct:n,applyTo:o,isCSSVariable:s}=Ya[t],c=a===`none`?i[t]:n(i[t],r);if(o){let t=o.length;for(let n=0;n<t;n++)e[o[n]]=c}else s?this.options.visualElement.renderState.vars[t]=c:e[t]=c}this.options.layoutId&&(e.pointerEvents=r===this?$a(t?.pointerEvents)||``:`none`)}clearSnapshot(){this.resumeFrom=this.snapshot=this.dragSnapshot=this.dragAncestor=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(us),this.root.sharedNodes.clear()}}}function as(e){e.updateLayout(),ps(e)}function os(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners(`didUpdate`)){let{layoutBox:n,measuredBox:r}=e.layout,{animationType:i}=e.options,a=t.source!==e.layout.source;if(i===`size`)qo(e=>{let r=a?t.measuredBox[e]:t.layoutBox[e],i=vo(r);r.min=n[e].min,r.max=r.min+i});else if(i===`x`||i===`y`){let e=i===`x`?`y`:`x`;uo(a?t.measuredBox[e]:t.layoutBox[e],n[e])}else As(i,t.layoutBox,n)&&qo(r=>{let i=a?t.measuredBox[r]:t.layoutBox[r],o=vo(n[r]);i.max=i.min+o,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+o)});let o=No();xo(o,n,t.layoutBox);let s=No();a?xo(s,e.applyTransform(r,!0),t.measuredBox):xo(s,n,t.layoutBox);let c=!Io(o),l=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:i,layout:a}=r;if(i&&a){let o=e.options.layoutAnchor||void 0,s=R();To(s,t.layoutBox,i.layoutBox,o);let c=R();To(c,n,a.layoutBox,o),Bo(s,c)||(l=!0),r.options.layoutRoot&&(e.relativeTarget=c,e.relativeTargetOrigin=s,e.relativeParent=r)}}}e.notifyListeners(`didUpdate`,{layout:n,snapshot:t,delta:s,layoutDelta:o,hasLayoutChanged:c,hasRelativeLayoutChanged:l})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function ss(e){Xa.value&&Zo.nodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty),e.isTransformDirty||=e.parent.isTransformDirty)}function cs(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function ls(e){e.clearSnapshot()}function us(e){e.clearMeasurements()}function ds(e){e.isLayoutDirty=!0,e.updateLayout()}function fs(e){e.isLayoutDirty=!1}function ps(e){let{snapshot:t,dragAncestor:n}=e,r=n?.isAnimationBlocked&&n.layout;if(!t||!r||e.resumeFrom||e.isAnimationBlocked)return;let i=n.dragSnapshot;qo(e=>Ba(t.layoutBox[e],r.layoutBox[e].min-i.layoutBox[e].min))}function ms(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.dragSnapshot||e.layout,e.isLayoutDirty=!0)}function hs(e){e.relativeTarget&&e.relativeParent?.isLayoutDirty&&(e.currentAnimation?e.isLayoutDirty=!0:(e.targetDelta=void 0,e.removeRelativeTarget()))}function gs(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify(`BeforeLayoutMeasure`),e.resetTransform()}function _s(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function vs(e){e.resolveTargetDelta()}function ys(e){e.calcProjection()}function bs(e){e.resetSkewAndRotation()}function xs(e,t,n){e.translate=F(t.translate,0,n),e.scale=F(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Ss(e,t,n,r){e.min=F(t.min,n.min,r),e.max=F(t.max,n.max,r)}function Cs(e,t,n,r){Ss(e.x,t.x,n.x,r),Ss(e.y,t.y,n.y,r)}function ws(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var Ts={duration:.45,ease:[.4,0,.1,1]},Es=e=>typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Ds=Es(`applewebkit/`)&&!Es(`chrome/`)?Math.round:k;function Os(e){e.min=Ds(e.min),e.max=Ds(e.max)}function ks(e){Os(e.x),Os(e.y)}function As(e,t,n){return e===`position`||e===`preserve-aspect`&&!yo(Vo(t),Vo(n),.2)}function js(e){return e!==e.root&&e.scroll?.wasRoot}function Ms(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}var Ns=is({attachResizeListener:(e,t)=>Ms(e,`resize`,t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),Ps={current:void 0},Fs=is({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Ps.current){let e=new Ns({});e.mount(window),e.setOptions({layoutScroll:!0}),Ps.current=e}return Ps.current},resetTransform:(e,t)=>{e.style.transform=t===void 0?`none`:t},checkIsScrollRoot:e=>window.getComputedStyle(e).position===`fixed`}),Is=new WeakMap;function Ls(e){return typeof e==`object`&&!!e&&typeof e.start==`function`}function Rs(e){return typeof e==`string`||Array.isArray(e)}var zs=[`animate`,`whileInView`,`whileFocus`,`whileHover`,`whileTap`,`whileDrag`,`exit`],Bs=[`initial`].concat(zs);function Vs(e){if(Ls(e.animate))return!0;for(let t=0;t<Bs.length;t++)if(Rs(e[Bs[t]]))return!0;return!1}function Hs(e){return!!(Vs(e)||e.variants)}function Us(e,t,n){for(let r in t){let i=t[r],a=n[r];if(Ji(i))e.addValue(r,i);else if(Ji(a))e.addValue(r,Ti(i,{owner:e}));else if(a!==i){if(e.hasValue(r)){let t=e.getValue(r);t.liveStyle===!0?t.jump(i):t.hasAnimated||t.set(i)}else{let t=e.getStaticValue(r);e.addValue(r,Ti(t===void 0?i:t,{owner:e}))}}}for(let r in n)t[r]===void 0&&e.removeValue(r);return t}var Ws={current:null},Gs={current:!1},Ks=typeof window<`u`;function qs(){if(Gs.current=!0,Ks){if(window.matchMedia){let e=window.matchMedia(`(prefers-reduced-motion)`),t=()=>Ws.current=e.matches;e.addEventListener(`change`,t),t()}else Ws.current=!1}}var Js=[`AnimationStart`,`AnimationComplete`,`Update`,`BeforeLayoutMeasure`,`LayoutMeasure`,`LayoutAnimationStart`,`LayoutAnimationComplete`],Ys={};function Xs(e){Ys=e}function Zs(){return Ys}var Qs=class{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,skipAnimations:i,blockInitialAnimation:a,visualState:o},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=Tr,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify(`Update`,this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let e=ke.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,Gt.render(this.render,!1,!0))};let{latestValues:c,renderState:l}=o;this.latestValues=c,this.baseTarget={...c},this.initialValues=t.initial?{...c}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.skipAnimationsConfig=i,this.options=s,this.blockInitialAnimation=!!a,this.isControllingVariants=Vs(t),this.isVariantNode=Hs(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:u,...d}=this.scrapeMotionValuesFromProps(t,{},this);for(let e in d){let t=d[e];c[e]!==void 0&&Ji(t)&&t.set(c[e])}}mount(e){if(this.hasBeenMounted)for(let e in this.initialValues)this.values.get(e)?.jump(this.initialValues[e]),this.latestValues[e]=this.initialValues[e];if(this.current=e,Is.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.isVariantNode&&!this.isControllingVariants){let e=this;do e=e.props.inherit!==!1&&e.parent;while(e&&!e.isVariantNode);if(e){let{variantChildren:t}=e;t.add(this),this.removeFromVariantTree=()=>t.delete(this)}}this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),this.reducedMotionConfig===`never`?this.shouldReduceMotion=!1:this.reducedMotionConfig===`always`?this.shouldReduceMotion=!0:(Gs.current||qs(),this.shouldReduceMotion=Ws.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),Kt(this.notifyUpdate),Kt(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(let e in this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??=new Set,this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),t.accelerate&&qr.has(e)&&this.current instanceof HTMLElement){let{factory:n,keyframes:r,times:i,ease:a,duration:o}=t.accelerate,s=new Rr({element:this.current,name:e,keyframes:r,times:i,ease:a,duration:oe(o)}),c=n(s);this.valueSubscriptions.set(e,()=>{c(),s.cancel()});return}let n=sr.has(e);n&&this.onBindTransform&&this.onBindTransform();let r=t.on(`change`,t=>{this.latestValues[e]=t,this.props.onUpdate&&Gt.preRender(this.notifyUpdate),n&&(this.projection&&(this.projection.isTransformDirty=!0),ri.get(this.current)?.check()),this.scheduleRender()}),i;typeof window<`u`&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{r(),i&&i()})}sortNodePosition(e){return!this.current||!e.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e=`animation`;for(e in Ys){let t=Ys[e];if(!t)continue;let{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):R()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){let{transformTemplate:n,onUpdate:r}=this.props;(e.transformTemplate||n)&&this.scheduleRender(),(e.transformTemplate&&!n||e.onUpdate&&!r)&&ri.get(this.current)?.demote(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<Js.length;t++){let n=Js[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let r=e[`on`+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=Us(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}addValue(e,t){let n=this.values.get(e);if(t!==n){n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t);let r=t.get();r!==void 0&&(this.latestValues[e]=r)}}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return n===void 0&&t!==void 0&&(n=Ti(t??this.getDefaultValue?.(e),{owner:this}),this.addValue(e,n)),n}readValue(e,t){let n=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return n!=null&&(typeof n==`string`&&(ee(n)||ne(n))?n=parseFloat(n):typeof n!=`number`&&!xt.test(n)&&xt.test(t)&&(n=Kn(e,t)),this.setBaseTarget(e,Ji(n)?n.get():n)),Ji(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}on(e,t){return this.events[e]||(this.events[e]=new ae),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){Ka.render(this.render)}},$s=class extends Qs{constructor(){super(...arguments),this.KeyframeResolver=ua}sortInstanceNodePosition(e,t){return e.compareDocumentPosition(t)&2?1:-1}getBaseTargetFromProps(e,t){let n=e.style;return n?n[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;Ji(e)&&(this.childSubscription=e.on(`change`,e=>{this.current&&(this.current.textContent=`${e}`)}))}};function ec(e,{style:t,vars:n},r,i){let a=e.style,o;for(o in t)a[o]=t[o];for(o in i?.applyProjectionStyles(a,r),n)a.setProperty(o,n[o])}function tc(e,{layout:t,layoutId:n}){return sr.has(e)||e.startsWith(`origin`)||(t||n!==void 0)&&(!!Ya[e]||e===`opacity`)}function nc(e,t,n){let r=e.style,i=t?.style,a={};if(!r)return a;for(let t in r)(Ji(r[t])||i&&Ji(i[t])||tc(t,e)||n?.getValue(t)?.liveStyle!==void 0)&&(a[t]=r[t]);return a}function rc(e){return window.getComputedStyle(e)}var ic=class extends $s{constructor(){super(...arguments),this.type=`html`,this.renderInstance=ec}mount(e){e.style,super.mount(e)}readValueFromInstance(e,t){if(sr.has(t))return this.projection?.isProjecting?nr(t):ir(e,t);{let n=rc(e),r=(Me(t)?n.getPropertyValue(t):n[t])||0;return typeof r==`string`?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return Wa(e,t)}build(e,t,n){ya(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return nc(e,t,n)}},ac=e=>e.pointerType===`mouse`?typeof e.button!=`number`||e.button<=0:e.isPrimary!==!1;function oc(e){return{point:{x:e.pageX,y:e.pageY}}}var sc=e=>t=>ac(t)&&e(t,oc(t));function cc(e,t,n,r){return Ms(e,t,sc(n),r)}var lc=new WeakMap,uc,dc=(e,t,n)=>(r,i)=>i&&i[0]?i[0][e+`Size`]:pa(r)&&`getBBox`in r?r.getBBox()[t]:r[n],fc=dc(`inline`,`width`,`offsetWidth`),pc=dc(`block`,`height`,`offsetHeight`);function mc({target:e,borderBoxSize:t}){lc.get(e)?.forEach(n=>{n(e,{get width(){return fc(e,t)},get height(){return pc(e,t)}})})}function hc(e){e.forEach(mc)}function gc(){typeof ResizeObserver<`u`&&(uc=new ResizeObserver(hc))}function _c(e,t){uc||gc();let n=_a(e);return n.forEach(e=>{let n=lc.get(e);n||(n=new Set,lc.set(e,n)),n.add(t),uc?.observe(e)}),()=>{n.forEach(e=>{let n=lc.get(e);n?.delete(t),n?.size||uc?.unobserve(e)})}}var vc=new Set,yc;function bc(){yc=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};vc.forEach(t=>t(e))},window.addEventListener(`resize`,yc)}function xc(e){return vc.add(e),yc||bc(),()=>{vc.delete(e),!vc.size&&typeof yc==`function`&&(window.removeEventListener(`resize`,yc),yc=void 0)}}function Sc(e,t){return ha(typeof e==`function`?xc(e):_c(e,t))}var Cc=(e,t)=>Math.abs(e-t);function wc(e,t){let n=Cc(e.x,t.x),r=Cc(e.y,t.y);return Math.sqrt(n**2+r**2)}var Tc=new Set([`auto`,`scroll`]),Ec=class{constructor(e,t,{transformPagePoint:n,contextWindow:r=window,dragSnapToOrigin:i=!1,distanceThreshold:a=3,element:o}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=e=>{this.handleScroll(e.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.hasPendingMove=!1,this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=Dc(this.lastRawMoveEventInfo,this.transformPagePoint));let e=kc(this.lastMoveEventInfo,this.history),t=this.startEvent!==null,n=wc(e.offset,{x:0,y:0})>=this.distanceThreshold;if(!t&&!n)return;let{point:r}=e;this.history.push({...r,timestamp:ke.now()});let{onStart:i,onMove:a}=this.handlers;t||(i&&i(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),a&&a(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.handleScroll(window),this.lastMoveEvent=e,this.lastRawMoveEventInfo=t,this.lastMoveEventInfo=Dc(t,this.transformPagePoint),this.hasPendingMove=!0,Gt.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.hasPendingMove&&this.updatePoint(),this.end();let{onEnd:n,onSessionEnd:r,resumeAnimation:i}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let a=kc(e.type===`pointercancel`?this.lastMoveEventInfo:Dc(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,a),r&&r(e,a)},!ac(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=a,this.contextWindow=r||window;let s=Dc(oc(e),this.transformPagePoint),{point:c}=s,{timestamp:l}=Ee;this.history=[{...c,timestamp:l}];let{onSessionStart:u}=t;u&&u(e,kc(s,this.history));let d={passive:!0,capture:!0};this.removeListeners=ie(cc(this.contextWindow,`pointermove`,this.handlePointerMove,d),cc(this.contextWindow,`pointerup`,this.handlePointerUp,d),cc(this.contextWindow,`pointercancel`,this.handlePointerUp,d)),o&&this.startScrollTracking(o)}startScrollTracking(e){let t=e.parentElement;for(;t;){let e=getComputedStyle(t);(Tc.has(e.overflowX)||Tc.has(e.overflowY))&&this.scrollPositions.set(t,{x:t.scrollLeft,y:t.scrollTop}),t=t.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener(`scroll`,this.onElementScroll,{capture:!0}),window.addEventListener(`scroll`,this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener(`scroll`,this.onElementScroll,{capture:!0}),window.removeEventListener(`scroll`,this.onWindowScroll)}}handleScroll(e){let t=this.scrollPositions.get(e);if(!t)return;let n=e===window,r=n?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},i={x:r.x-t.x,y:r.y-t.y};(i.x!==0||i.y!==0)&&(n?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=i.x,this.lastMoveEventInfo.point.y+=i.y):this.history.length>0&&(this.history[0].x-=i.x,this.history[0].y-=i.y),this.scrollPositions.set(e,r),Gt.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),Kt(this.updatePoint)}};function Dc(e,t){return t?{point:t(e.point)}:e}function Oc(e,t){return{x:e.x-t.x,y:e.y-t.y}}function kc({point:e},t){return{point:e,delta:Oc(e,jc(t)),offset:Oc(e,Ac(t)),velocity:Mc(t,.1)}}function Ac(e){return e[0]}function jc(e){return e[e.length-1]}function Mc(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=jc(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>oe(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&i.timestamp-r.timestamp>oe(t)*2&&(r=e[1]);let a=se(i.timestamp-r.timestamp);if(a===0)return{x:0,y:0};let o={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}var Nc=new Set([`BUTTON`,`INPUT`,`SELECT`,`TEXTAREA`,`A`]);function Pc(e){return Nc.has(e.tagName)||e.isContentEditable===!0}var Fc=new Set([`INPUT`,`SELECT`,`TEXTAREA`]);function Ic(e){return Fc.has(e.tagName)||e.isContentEditable===!0}var Lc={x:!1,y:!1};function Rc(){return Lc.x||Lc.y}function zc(e){return e===`x`||e===`y`?Lc[e]?null:(Lc[e]=!0,()=>{Lc[e]=!1}):Lc.x||Lc.y?null:(Lc.x=Lc.y=!0,()=>{Lc.x=Lc.y=!1})}function Bc(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?F(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?F(n,e,r.max):Math.min(e,n)),e}function Vc(e,t,n){return{min:t===void 0?void 0:e.min+t,max:n===void 0?void 0:e.max+n-(e.max-e.min)}}function Hc(e,{top:t,left:n,bottom:r,right:i}){return{x:Vc(e.x,n,i),y:Vc(e.y,t,r)}}function Uc(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function Wc(e,t){return{x:Uc(e.x,t.x),y:Uc(e.y,t.y)}}function Gc(e,t){let n=.5,r=vo(e),i=vo(t);return i>r?n=A(t.min,t.max-r,e.min):r>i&&(n=A(e.min,e.max-i,t.min)),D(0,1,n)}function Kc(e,t){let n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}var qc=.35;function Jc(e=qc){return e===!1?e=0:e===!0&&(e=qc),{x:Yc(e,`left`,`right`),y:Yc(e,`top`,`bottom`)}}function Yc(e,t,n){return{min:Xc(e,t),max:Xc(e,n)}}function Xc(e,t){return typeof e==`number`?e:e[t]||0}var Zc=new WeakMap,Qc=class{constructor(e,t=()=>e.getProps()){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=R(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e,this.readProps=t}start(e,{snapToCursor:t=!1,distanceThreshold:n}={}){let{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;let i=e=>{t&&this.snapToCursor(e),this.stopAnimation()},a=(e,t)=>{let{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();if(n&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock=zc(n),!this.openDragLock))return;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),qo(e=>{let t=this.getAxisMotionValue(e).get()||0;if(Pe(t)&&(t=Ri(t,this.visualElement.current)||0),N.test(t))t=parseFloat(t);else if(Qe.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[e];r&&(t=vo(r)*(parseFloat(t)/100))}}this.originPoint[e]=t}),i&&Gt.update(()=>i(e,t),!1,!0),Xi(this.visualElement,`transform`);let{animationState:a}=this.visualElement;a&&a.setActive(`whileDrag`,!0)},o=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:a}=this.getProps();if(!n&&!this.openDragLock)return;let{offset:o}=t;if(r&&this.currentDirection===null){if(this.currentDirection=il(o),this.currentDirection===null)return;i&&i(this.currentDirection)}this.updateAxis(`x`,t.point,o),this.updateAxis(`y`,t.point,o),this.visualElement.render(),a&&Gt.update(()=>a(e,t),!1,!0)},s=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>{let{dragSnapToOrigin:e}=this.getProps();(e||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:l}=this.getProps();this.panSession=new Ec(e,{onSessionStart:i,onStart:a,onMove:o,onSessionEnd:s,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,distanceThreshold:n,contextWindow:this.visualElement.current?.ownerDocument.defaultView,element:this.visualElement.current})}stop(e,t,n){let r=e||this.latestPointerEvent,i=t||this.latestPanInfo,a=this.isDragging;if(this.cancel(),!a||!i||!r)return;let{velocity:o}=i;this.startAnimation(o,n);let{onDragEnd:s}=this.getProps();s&&Gt.postRender(()=>s(r,i))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive(`whileDrag`,!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,t,n){let{drag:r}=this.getProps();if(!n||!rl(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),a=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(a=Bc(a,this.constraints[e],this.elastic[e])),i.set(a)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;$c(e)?this.constraints||=this.resolveRefConstraints():this.constraints=e&&n?Hc(n.layoutBox,e):!1,this.elastic=Jc(t),r!==this.constraints&&!$c(e)&&n&&this.constraints&&!this.hasMutatedConstraints&&qo(e=>{this.constraints!==!1&&this.getAxisMotionValue(e)&&(this.constraints[e]=Kc(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){let{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!$c(e))return!1;let n=el(e),{projection:r}=this.visualElement;if(!r||!r.layout)return!1;r.root&&(r.root.scroll=void 0,r.root.updateScroll());let i=Ga(n,r.root,this.visualElement.getTransformPagePoint()),a=Wc(r.layout.layoutBox,i);if(t){let e=t(Ea(a));this.hasMutatedConstraints=!!e,e&&(a=Ta(e))}return a}startAnimation(e,t){let{drag:n,dragMomentum:r,dragElastic:i,dragTransition:a,dragSnapToOrigin:o,onDragTransitionEnd:s}=this.getProps(),c=this.constraints||{},l=qo(s=>{if(!rl(s,t||n,this.currentDirection))return;let l=c&&c[s]||{};(o===!0||o===s)&&(l={min:0,max:0});let u=i?200:1e6,d=i?40:1e7,f={type:`inertia`,velocity:r?e[s]:0,bounceStiffness:u,bounceDamping:d,timeConstant:750,restDelta:1,restSpeed:10,...a,...l};return this.startAxisValueAnimation(s,f)});return Promise.all(l).then(s)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return Xi(this.visualElement,e),n.start(Fi(e,n,0,t,this.visualElement,!1))}stopAnimation(){qo(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`;return this.readProps()[t]||this.visualElement.getValue(e,this.visualElement.latestValues[e]??0)}snapToCursor({clientX:e,clientY:t}){let{drag:n}=this.getProps(),r={x:e,y:t},i=this.visualElement.getTransformPagePoint()?.(r)||r,a=this.visualElement.measureViewportBox();qo(e=>{if(!rl(e,n,this.currentDirection))return;let t=this.getAxisMotionValue(e),{min:r,max:o}=a[e];t.set((t.get()||0)+i[e]-F(r,o,.5))})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!$c(t)||!n||!this.constraints)return;this.stopAnimation();let r=this.constraints,i={x:0,y:0};qo(e=>{let t=this.getAxisMotionValue(e).get();i[e]=Gc({min:t,max:t},r[e])});let{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},``):`none`,n.root&&n.root.updateScroll(),n.updateLayout(),this.constraints=!1,this.resolveConstraints(),qo(t=>{let n=this.getAxisMotionValue(t);if(!rl(t,e,null)||!n.get())return;let{min:r,max:a}=this.constraints[t];n.set(F(r,a,i[t]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;Zc.set(this.visualElement,this);let e=this.visualElement.current,t=cc(e,`pointerdown`,t=>{let{drag:n,dragListener:r=!0}=this.getProps(),i=t.target,a=i!==e&&Ic(i);n&&r&&!a&&this.start(t)}),n,r=()=>{let{dragConstraints:t}=this.getProps(),r=$c(t)&&el(t);r&&(this.constraints=this.resolveRefConstraints(),n||=nl(e,r,()=>this.scalePositionWithinConstraints()))},{projection:i}=this.visualElement,a=i.addEventListener(`measure`,r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),Gt.read(r);let o=Ms(window,`resize`,()=>this.scalePositionWithinConstraints()),s=i.addEventListener(`didUpdate`,(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(qo(t=>{if(!rl(t,this.getProps().drag,this.currentDirection))return;let n=this.getAxisMotionValue(t);this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate)}),this.visualElement.render())}));return()=>{o(),t(),a(),s&&s(),n&&n()}}getProps(){let e=this.readProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:a=qc,dragMomentum:o=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:a,dragMomentum:o}}};function $c(e){return!!e&&typeof e==`object`&&(`current`in e||`nodeType`in e)}var el=e=>`current`in e?e.current:e;function tl(e){let t=!0;return()=>{t?t=!1:e()}}function nl(e,t,n){let r=Sc(e,tl(n)),i=Sc(t,tl(n));return()=>{r(),i()}}function rl(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function il(e,t=10){let n=null;return Math.abs(e.y)>t?n=`y`:Math.abs(e.x)>t&&(n=`x`),n}function al(e,t){let n=_a(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},ha(()=>r.abort())]}function ol(e){return!(e.pointerType===`touch`||Rc())}function sl(e,t,n={}){t=ga(t);let[r,i,a]=al(e,n);return r.forEach(e=>{let n=!1,r=!1,a,o=()=>{e.removeEventListener(`pointerleave`,u)},s=e=>{a&&=(a(e),void 0),o()},c=e=>{n=!1,window.removeEventListener(`pointerup`,c),window.removeEventListener(`pointercancel`,c),r&&(r=!1,s(e))},l=()=>{n=!0,window.addEventListener(`pointerup`,c,i),window.addEventListener(`pointercancel`,c,i)},u=e=>{e.pointerType!==`touch`&&(n?r=!0:s(e))};e.addEventListener(`pointerenter`,n=>{if(!ol(n))return;r=!1;let o=t(e,n);typeof o==`function`&&(a=o,e.addEventListener(`pointerleave`,u,i))},i),e.addEventListener(`pointerdown`,l,i)}),a}var cl=(e,t)=>t?e===t||cl(e,t.parentElement):!1,ll=new WeakSet;function ul(e){return t=>{t.key===`Enter`&&e(t)}}function dl(e,t){e.dispatchEvent(new PointerEvent(`pointer`+t,{isPrimary:!0,bubbles:!0}))}var fl=(e,t)=>{let n=!1,r=ul(()=>{ll.has(e)||(n=!0,dl(e,`down`))}),i=ul(()=>{n&&(n=!1,dl(e,`up`))});e.addEventListener(`keydown`,r,t),e.addEventListener(`keyup`,i,t),e.addEventListener(`blur`,()=>{e.removeEventListener(`keydown`,r),e.removeEventListener(`keyup`,i),n&&dl(e,`cancel`)},{...t,once:!0})};function pl(e){return ac(e)&&!Rc()}var ml=new WeakSet;function hl(e,t,n={}){t=ga(t);let[r,i,a]=al(e,n),o=e=>{let r=e.currentTarget;if(!pl(e)||ml.has(e))return;ll.add(r),n.stopPropagation&&ml.add(e);let a=t(r,e),o={...i,capture:!0},s=(e,t)=>{window.removeEventListener(`pointerup`,c,o),window.removeEventListener(`pointercancel`,l,o),ll.has(r)&&ll.delete(r),pl(e)&&typeof a==`function`&&a(e,{success:t})},c=e=>{s(e,r===window||r===document||n.useGlobalTarget||cl(r,e.target))},l=e=>{s(e,!1)};window.addEventListener(`pointerup`,c,o),window.addEventListener(`pointercancel`,l,o)};return r.forEach(e=>{(n.useGlobalTarget?window:e).addEventListener(`pointerdown`,o,i),fa(e)&&(e.addEventListener(`focus`,()=>fl(e,i),i),!Pc(e)&&!e.hasAttribute(`tabindex`)&&(e.tabIndex=0))}),a}var gl=class{constructor(e){this.isMounted=!1,this.node=e}update(){}},_l=new Set([`baseFrequency`,`diffuseConstant`,`kernelMatrix`,`kernelUnitLength`,`keySplines`,`keyTimes`,`limitingConeAngle`,`markerHeight`,`markerWidth`,`numOctaves`,`targetX`,`targetY`,`surfaceScale`,`specularConstant`,`specularExponent`,`stdDeviation`,`tableValues`,`viewBox`,`gradientTransform`,`pathLength`,`startOffset`,`textLength`,`lengthAdjust`]),vl=e=>typeof e==`string`&&e.toLowerCase()===`svg`;function yl(e,t,n,r){ec(e,t,void 0,r);for(let n in t.attrs)e.setAttribute(_l.has(n)?n:va(n),t.attrs[n])}function bl(e,t,n){let r=nc(e,t,n);for(let n in e)if(n!==`children`&&(Ji(e[n])||Ji(t[n]))){let t=or.indexOf(n)===-1?n:`attr`+n.charAt(0).toUpperCase()+n.substring(1);r[t]=e[n]}return r}var xl=class extends $s{constructor(){super(...arguments),this.type=`svg`,this.isSVGTag=!1,this.measureInstanceViewportBox=R}getBaseTargetFromProps(e,t){return sr.has(t)?super.getBaseTargetFromProps(e,t)??nr(t):e[t]}getDefaultValue(e){return sr.has(e)?this.latestValues[e]??nr(e):void 0}readValueFromInstance(e,t){if(sr.has(t)){let e=Wn(t);return e&&e.default||0}if(Ca.includes(t)){let n=getComputedStyle(e)[t];if(typeof n==`string`&&n)return n.trim()}return t=_l.has(t)?t:va(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return bl(e,t,n)}build(e,t,n){wa(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){yl(e,t,n,r)}mount(e){this.isSVGTag=vl(e.tagName),super.mount(e)}};function Sl(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}var Cl=[...zs].reverse();function wl(e){let t=t=>Promise.all(t.map(({animation:t,options:n})=>ra(e,t,n))),n=El(),r=!0,i=!1;function a(a){let{props:o,parent:s,manuallyAnimateOnMount:c}=e,l=r||i,u=[],d=new Set,f={},p=1/0,m=e;do m=m.props.inherit!==!1&&m.parent;while(m&&!m.isControllingVariants);if(Cl.forEach((t,r)=>{let i=n[t],h=o[t],g=m&&m.props[t],_=h===void 0?Rs(g)||g===!1?g:void 0:h,v=Rs(_),y=t===a?i.isActive:null;y===!1&&(p=r);let b=v&&h===void 0&&!(l&&c);if(i.protectedKeys={...f},!i.isActive&&y===null||!_&&!i.prevProp||Ls(_)||typeof _==`boolean`)return;if(t===`exit`&&i.isActive&&y!==!0){f={...f,...i.prevResolvedValues};return}let x=Tl(i.prevProp,_),S=x||v&&(y&&!b||r>p),C=!1,w=Array.isArray(_)?_:[_],T={};if(y!==!1)for(let n of w){let{transition:r,transitionEnd:i,...a}=Vi(e,n,Hi(e,t))||{};T={...T,...a,...i}}let{prevResolvedValues:E}=i;for(let t in{...E,...T}){if(t in f)continue;let n=T[t],r=E[t],a=Array.isArray(n)&&Array.isArray(r)?!Sl(n,r)||x:n!==r;if(a&&n==null)d.add(t);else if(a||n!==void 0&&d.has(t)){S=!0,d.delete(t)&&(C=!0),i.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)}else i.protectedKeys[t]=!0}if(i.prevProp=_,i.prevResolvedValues=T,i.isActive&&(f={...f,...T}),S&&(!(b&&x)||C))for(let n of w){let r={type:t};if(typeof n==`string`&&l&&c&&s?.enteringChildren){let t=Vi(s,n)?.transition?.delayChildren;r.delay=bi(s.enteringChildren,e,t)}u.push({animation:n,options:r})}}),d.size){let{initial:t}=o,n={},r=typeof t!=`boolean`&&Vi(e,Array.isArray(t)?t[0]:t,e.presenceContext?.custom);r&&r.transition&&(n.transition=r.transition),d.forEach(i=>{let a=e.getValue(i);a&&(a.liveStyle=!0);let s=r&&!Array.isArray(t)?r[i]:void 0,c=e.getBaseTargetFromProps(o,i);n[i]=(s===void 0?c!==void 0&&!Ji(c)?c:e.initialValues[i]===void 0?e.baseTarget[i]:void 0:s)??null}),u.push({animation:n})}let h=l&&e.blockInitialAnimation||r&&!c&&(o.initial===!1||o.initial===o.animate);return r=i=!1,!h&&u.length?t(u):Promise.resolve()}function o(t,r){if(n[t].isActive===r)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,r)),n[t].isActive=r;let i=a(t);for(let e in n)n[e].protectedKeys={};return i}return{animateChanges:a,setActive:o,setAnimateFunction:n=>{t=n(e)},getState:()=>n,reset:()=>{n=El(),i=!0}}}function Tl(e,t){return typeof t==`string`?t!==e:Array.isArray(t)?!Sl(t,e):!1}function El(){let e={};for(let t of zs)e[t]={isActive:t===`animate`,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}};return e}var Dl=e=>!e.isLayoutDirty&&e.willUpdate(!1);function Ol(){let e=new Set,t=new WeakMap,n=()=>e.forEach(Dl);return{add:r=>{e.add(r),t.set(r,r.addEventListener(`willUpdate`,n))},remove:r=>{e.delete(r);let i=t.get(r);i&&(i(),t.delete(r)),n()},dirty:n}}var kl=(0,b.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:`never`});function Al(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function jl(...e){return t=>{let n=!1,r=e.map(e=>{let r=Al(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():Al(e[t],null)}}}}function Ml(...e){return b.useCallback(jl(...e),e)}var B=y(),Nl=class extends b.Component{getSnapshotBeforeUpdate(e){let t=this.props.getElement();if(fa(t)&&e.isPresent&&!this.props.isPresent&&this.props.pop!==!1){let e=t.offsetParent,n=fa(e)&&e.offsetWidth||0,r=fa(e)&&e.offsetHeight||0,i=getComputedStyle(t),a=this.props.sizeRef.current;a.height=parseFloat(i.height),a.width=parseFloat(i.width),a.top=t.offsetTop,a.left=t.offsetLeft,a.right=n-a.width-a.left,a.bottom=r-a.height-a.top,a.direction=i.direction}return null}componentDidUpdate(){}render(){return this.props.children}};function Pl({children:e,isPresent:t,anchorX:n,anchorY:r,root:i,pop:a,popNode:o}){let s=(0,b.useId)(),c=(0,b.useRef)(null),l=(0,b.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:`ltr`}),{nonce:u}=(0,b.useContext)(kl),d=Ml(c,a===!1?void 0:e.props?.ref??e?.ref),f=()=>c.current||o?.current?.current;return(0,b.useInsertionEffect)(()=>{let{width:e,height:o,top:c,left:d,right:p,bottom:m,direction:h}=l.current,g=f();if(t||a===!1||!g||!e||!o)return;let _=h===`rtl`,v=n===`left`?_?`right: ${p}`:`left: ${d}`:_?`left: ${d}`:`right: ${p}`,y=r===`bottom`?`bottom: ${m}`:`top: ${c}`;g.dataset.motionPopId=s;let b=g.ownerDocument,x=b.createElement(`style`);u&&(x.nonce=u);let S=i??b.head;return S.appendChild(x),x.sheet&&x.sheet.insertRule(`
|
|
10
|
-
[data-motion-pop-id="${s}"] {
|
|
11
|
-
position: absolute !important;
|
|
12
|
-
width: ${e}px !important;
|
|
13
|
-
height: ${o}px !important;
|
|
14
|
-
${v}px !important;
|
|
15
|
-
${y}px !important;
|
|
16
|
-
}
|
|
17
|
-
`),()=>{g.removeAttribute(`data-motion-pop-id`),S.contains(x)&&S.removeChild(x)}},[t]),(0,B.jsx)(Nl,{isPresent:t,getElement:f,sizeRef:l,pop:a,children:a===!1?e:b.cloneElement(e,{ref:d})})}var Fl=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:a,mode:o,anchorX:s,anchorY:c,root:l})=>{let u=S(Il),d=(0,b.useId)(),f=(0,b.useRef)(),p=(0,b.useRef)(n),m=(0,b.useRef)(r);C(()=>{p.current=n,m.current=r});let h=!0,g=(0,b.useMemo)(()=>(h=!1,{id:d,initial:t,isPresent:n,custom:i,onExitComplete:e=>{u.set(e,!0);for(let e of u.values())if(!e)return;r&&r()},register:(e,t)=>(u.set(e,!1),t&&t.parent?.presenceContext?.id!==d&&(f.current=t),()=>{u.delete(e),!p.current&&!u.size&&m.current?.()})}),[n,u,r]);return a&&h&&(g={...g}),(0,b.useMemo)(()=>{u.forEach((e,t)=>u.set(t,!1))},[n]),b.useEffect(()=>{!n&&!u.size&&r&&r()},[n]),e=(0,B.jsx)(Pl,{pop:o===`popLayout`,isPresent:n,anchorX:s,anchorY:c,root:l,popNode:f,children:e}),(0,B.jsx)(w.Provider,{value:g,children:e})};function Il(){return new Map}function Ll(e=!0){let t=(0,b.useContext)(w);if(t===null)return[!0,null];let{isPresent:n,onExitComplete:r,register:i}=t,a=(0,b.useId)();(0,b.useEffect)(()=>{if(e)return i(a)},[e]);let o=(0,b.useCallback)(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,o]:[!0]}var Rl=e=>e.key||``;function zl(e){let t=[];return b.Children.forEach(e,e=>{(0,b.isValidElement)(e)&&t.push(e)}),t}var Bl=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:a=`sync`,propagate:o=!1,anchorX:s=`left`,anchorY:c=`top`,root:l})=>{let[u,d]=Ll(o),f=(0,b.useMemo)(()=>zl(e),[e]),p=o&&!u?[]:f.map(Rl),m=(0,b.useRef)(!0),h=S(()=>new Map),g=(0,b.useRef)(new Set),[_,v]=(0,b.useState)(f),[y,w]=(0,b.useState)(f);C(()=>{o&&!u&&!y.length&&d?.()},[u,o,y.length,d]);let T=(0,b.useRef)();(0,b.useEffect)(()=>()=>{let e=T.current;T.current=void 0,e?.()},[y]),C(()=>{m.current=!1;for(let e=0;e<y.length;e++){let t=Rl(y[e]);p.includes(t)?(h.delete(t),g.current.delete(t)):h.get(t)!==!0&&h.set(t,!1)}},[y,p.length,p.join(`-`)]);let E=[];if(f!==_){let e=[...f],t=0;for(let n of y){let r=p.indexOf(Rl(n));r===-1?(e.splice(t++,0,n),E.push(n)):t=r+E.length+1}return E.every(e=>h.get(Rl(e)))?e=f:a===`wait`&&(e=E),w(zl(e)),v(f),null}let{forceRender:D}=(0,b.useContext)(x);return(0,B.jsx)(B.Fragment,{children:y.map(e=>{let _=Rl(e),b=o&&!u?!1:f===y||p.includes(_);return(0,B.jsx)(Fl,{isPresent:b,initial:!m.current||n?void 0:!1,custom:t,presenceAffectsLayout:i,mode:a,root:l,onExitComplete:b?void 0:()=>{if(g.current.has(_))return;if(h.has(_))g.current.add(_),h.set(_,!0);else return;let e=!0;h.forEach(t=>{t||(e=!1)}),e&&(D?.(),v([]),o&&d?.(),T.current=r)},anchorX:s,anchorY:c,children:e},_)})})},Vl=(0,b.createContext)(null);function Hl(){let e=(0,b.useRef)(!1);return C(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function Ul(){let e=Hl(),[t,n]=(0,b.useState)(0),r=(0,b.useCallback)(()=>{e.current&&n(t+1)},[t]);return[(0,b.useCallback)(()=>Gt.postRender(r),[r]),t]}var Wl=e=>e===!0,Gl=e=>Wl(e===!0)||e===`id`,Kl=({children:e,id:t,inherit:n=!0})=>{let r=(0,b.useContext)(x),i=(0,b.useContext)(Vl),[a,o]=Ul(),s=(0,b.useRef)(null),c=r.id||i;s.current===null&&(Gl(n)&&c&&(t=t?c+`-`+t:c),s.current={id:t,group:Wl(n)&&r.group||Ol()});let l=(0,b.useMemo)(()=>({...s.current,forceRender:a}),[o]);return(0,B.jsx)(x.Provider,{value:l,children:e})},ql=(0,b.createContext)({strict:!1}),Jl={animation:[`animate`,`variants`,`whileHover`,`whileTap`,`exit`,`whileInView`,`whileFocus`,`whileDrag`],exit:[`exit`],drag:[`drag`,`dragControls`],focus:[`whileFocus`],hover:[`whileHover`,`onHoverStart`,`onHoverEnd`],tap:[`whileTap`,`onTap`,`onTapStart`,`onTapCancel`],pan:[`onPan`,`onPanStart`,`onPanSessionStart`,`onPanEnd`],inView:[`whileInView`,`onViewportEnter`,`onViewportLeave`],layout:[`layout`,`layoutId`]},Yl=!1;function Xl(){if(Yl)return;let e={};for(let t in Jl)e[t]={isEnabled:e=>Jl[t].some(t=>!!e[t])};Xs(e),Yl=!0}function Zl(){return Xl(),Zs()}function Ql(e){let t=Zl();for(let n in e)t[n]={...t[n],...e[n]};Xs(t)}var $l=(0,b.createContext)({});function eu(e,t){if(Vs(e)){let{initial:t,animate:n}=e;return{initial:t===!1||Rs(t)?t:void 0,animate:Rs(n)?n:void 0}}return e.inherit===!1?{}:t}function tu(e){let{initial:t,animate:n}=eu(e,(0,b.useContext)($l));return(0,b.useMemo)(()=>({initial:t,animate:n}),[nu(t),nu(n)])}function nu(e){return Array.isArray(e)?e.join(` `):e}var ru=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function iu(e,t,n){for(let r in t)!Ji(t[r])&&!tc(r,n)&&(e[r]=t[r])}function au({transformTemplate:e},t){return(0,b.useMemo)(()=>{let n=ru();return ya(n,t,e),Object.assign({},n.vars,n.style)},[t])}function ou(e,t){let n=e.style||{},r={};return iu(r,n,e),Object.assign(r,au(e,t)),r}function su(e,t){let n={},r=ou(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout=`none`,r.touchAction=e.drag===!0?`none`:`pan-${e.drag===`x`?`y`:`x`}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}var cu=()=>({...ru(),attrs:{}});function lu(e,t,n,r){let i=(0,b.useMemo)(()=>{let n=cu();return wa(n,t,vl(r),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};return iu(t,e.style,e),{...i,style:{...t,...i.style}}}return i}var uu=new Set(`animate.exit.variants.initial.style.values.transition.transformTemplate.custom.inherit.onBeforeLayoutMeasure.onAnimationStart.onAnimationComplete.onUpdate.onDragStart.onDrag.onDragEnd.onMeasureDragConstraints.onDirectionLock.onDragTransitionEnd._dragX._dragY.onHoverStart.onHoverEnd.onViewportEnter.onViewportLeave.globalTapTarget.propagate.ignoreStrict.viewport`.split(`.`));function du(e){return e.startsWith(`while`)||e.startsWith(`drag`)&&e!==`draggable`||e.startsWith(`layout`)||e.startsWith(`onTap`)||e.startsWith(`onPan`)||e.startsWith(`onLayout`)||uu.has(e)}function fu(e,t){return e.startsWith(`on`)?!du(e):t?.(e)??!du(e)}function pu(e,t,n,r){let i={};for(let a in e)a===`values`&&typeof e.values==`object`||Ji(e[a])||(fu(a,r)||n===!0&&du(a)||!t&&!du(a)||e.draggable&&a.startsWith(`onDrag`))&&(i[a]=e[a]);return i}var mu=[`animate`,`circle`,`defs`,`desc`,`ellipse`,`g`,`image`,`line`,`filter`,`marker`,`mask`,`metadata`,`path`,`pattern`,`polygon`,`polyline`,`rect`,`stop`,`switch`,`symbol`,`svg`,`text`,`tspan`,`use`,`view`];function hu(e){return typeof e!=`string`||e.includes(`-`)?!1:!!(mu.indexOf(e)>-1||/[A-Z]/u.test(e))}function gu(e,t,n,{latestValues:r},i,a=!1,o,s){let c=(o??hu(e)?lu:su)(t,r,i,e),l=pu(t,typeof e==`string`,a,s),u=e===b.Fragment?{}:{...l,...c,ref:n},{children:d}=t,f=(0,b.useMemo)(()=>Ji(d)?d.get():d,[d]);return(0,b.createElement)(e,{...u,children:f})}function _u({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:vu(n,r,i,e),renderState:t()}}function vu(e,t,n,r){let i={},a=r(e,{});for(let e in a)i[e]=$a(a[e]);let{initial:o,animate:s}=e,c=Vs(e),l=Hs(e);t&&l&&!c&&e.inherit!==!1&&(o===void 0&&(o=t.initial),s===void 0&&(s=t.animate));let u=n?n.initial===!1:!1;u||=o===!1;let d=u?s:o;if(d&&typeof d!=`boolean`&&!Ls(d)){let t=Array.isArray(d)?d:[d];for(let n=0;n<t.length;n++){let r=Bi(e,t[n]);if(r){let{transitionEnd:e,transition:t,...n}=r;for(let e in n){let t=n[e];if(Array.isArray(t)){let e=u?t.length-1:0;t=t[e]}t!==null&&(i[e]=t)}for(let t in e)i[t]=e[t]}}}return i}var yu=e=>(t,n)=>{let r=(0,b.useContext)($l),i=(0,b.useContext)(w),a=()=>_u(e,t,r,i);return n?a():S(a)},bu=yu({scrapeMotionValuesFromProps:nc,createRenderState:ru}),xu=yu({scrapeMotionValuesFromProps:bl,createRenderState:cu}),Su=Symbol.for(`motionComponentSymbol`);function Cu(e,t,n){let r=(0,b.useRef)(n);(0,b.useInsertionEffect)(()=>{r.current=n});let i=(0,b.useRef)(null);return(0,b.useCallback)(n=>{n&&e.onMount?.(n),t&&(n?t.mount(n):t.unmount());let a=r.current;if(typeof a==`function`){if(n){let e=a(n);typeof e==`function`&&(i.current=e)}else i.current?(i.current(),i.current=null):a(n)}else a&&(a.current=n)},[t])}var wu=(0,b.createContext)({});function Tu(e){return e&&typeof e==`object`&&Object.prototype.hasOwnProperty.call(e,`current`)}function Eu(e,t,n,r,i,a){let{visualElement:o}=(0,b.useContext)($l),s=(0,b.useContext)(ql),c=(0,b.useContext)(w),l=(0,b.useContext)(kl),u=l.reducedMotion,d=l.skipAnimations,f=(0,b.useRef)(null),p=(0,b.useRef)(!1);r||=s.renderer,!f.current&&r&&(f.current=r(e,{visualState:t,parent:o,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:u,skipAnimations:d,isSVG:a}),p.current&&f.current&&(f.current.manuallyAnimateOnMount=!0));let m=f.current,h=(0,b.useContext)(wu);m&&!m.projection&&i&&(m.type===`html`||m.type===`svg`)&&Du(f.current,n,i,h),(0,b.useInsertionEffect)(()=>{m&&m.props!==n&&m.update(n,c)});let g=n[Zi],_=(0,b.useRef)(!!g&&typeof window<`u`&&!window.MotionHandoffIsComplete?.(g)&&window.MotionHasOptimisedAnimation?.(g));return C(()=>{p.current&&m&&(m.animationState?.animateChanges(),m.enteringChildren=void 0)},[]),C(()=>{p.current=!0,m&&(window.MotionIsMounted=!0,m.updateFeatures(),m.scheduleRenderMicrotask(),_.current&&m.animationState&&m.animationState.animateChanges())}),(0,b.useEffect)(()=>{m&&(!_.current&&m.animationState&&m.animationState.animateChanges(),_.current&&=(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(g)}),!1),m.enteringChildren=void 0)}),m}function Du(e,t,n,r){let{layoutId:i,layout:a,drag:o,dragConstraints:s,layoutScroll:c,layoutRoot:l,layoutAnchor:u,layoutCrossfade:d}=t,f=e.projection=new n(e.latestValues,t[`data-framer-portal-id`]?void 0:Ou(e.parent));f.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!o||s&&Tu(s),visualElement:e,animationType:typeof a==`string`?a:`both`,initialPromotionConfig:r,crossfade:d,layoutScroll:c,layoutRoot:l,layoutAnchor:u});let p=f.getStack()?.lead;p&&!f.root.isUpdateBlocked()&&(p.willUpdate(),p.scheduleCheckAfterUnmount())}function Ou(e){if(e)return e.options.allowProjection===!1?Ou(e.parent):e.projection}function ku(e,{forwardMotionProps:t=!1,type:n}={},r,i){r&&Ql(r);let a=n?n===`svg`:hu(e),o=a?xu:bu;function s(n,s){let c,l=Au(n);S(()=>!!Ps.current?.sharedNodes.get(l)?.lead&&n.initial)&&(n={...n,initial:!1});let u={...(0,b.useContext)(kl),...n,layoutId:l},{isStatic:d,isValidProp:f}=u,p=tu(n),m=o(n,d);if(!d&&typeof window<`u`){ju(u,r);let t=Mu(u);c=t.MeasureLayout,p.visualElement=Eu(e,m,u,i,t.ProjectionNode,a)}return(0,B.jsxs)($l.Provider,{value:p,children:[c&&p.visualElement?(0,B.jsx)(c,{visualElement:p.visualElement,...u}):null,gu(e,n,Cu(m,p.visualElement,s),m,d,t,a,f)]})}s.displayName=`motion.${typeof e==`string`?e:`create(${e.displayName??e.name??``})`}`;let c=(0,b.forwardRef)(s);return c[Su]=e,c}function Au({layoutId:e}){let t=(0,b.useContext)(x).id;return t&&e!==void 0?t+`-`+e:e}function ju(e,t){(0,b.useContext)(ql).strict}function Mu(e){let{drag:t,layout:n}=Zl();if(!t&&!n)return{};let r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function Nu(e,t){if(typeof Proxy>`u`)return ku;let n=new Map,r=(n,r)=>ku(n,r,e,t);return new Proxy((e,t)=>r(e,t),{get:(i,a)=>a===`create`?r:(n.has(a)||n.set(a,ku(a,void 0,e,t)),n.get(a))})}var Pu=(e,t)=>t.isSVG??hu(e)?new xl(t):new ic(t,{allowProjection:e!==b.Fragment}),Fu=class extends gl{constructor(e){super(e),e.animationState||=wl(e)}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();Ls(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}},Iu=0,Lu={animation:{Feature:Fu},exit:{Feature:class extends gl{constructor(){super(...arguments),this.id=Iu++}update(){let{presenceContext:e,prevPresenceContext:t,animationState:n}=this.node;if(!e||!n)return;let{isPresent:r,onExitComplete:i}=e,a=t?.isPresent;if(r===a)return;if(r&&a===!1){if(this.exit===!0){let{initial:e}=this.node.getProps();if(e&&!Array.isArray(e)){let{transition:t,transitionEnd:n,...r}=Vi(this.node,e)||{};for(let e in r)this.node.getValue(e)?.jump(r[e])}this.node.blockInitialAnimation=!1,n.reset(),n.animateChanges()}else n.setActive(`exit`,!1);this.exit=void 0;return}let o=this.exit=n.setActive(`exit`,!r);i&&!r&&o.then(()=>{this.exit===o&&(this.exit=!0,i(this.id))})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id,this.node))}unmount(){}}}},Ru=class extends gl{constructor(e){super(e),this.removeGroupControls=k,this.removeListeners=k,this.controls=new Qc(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||k}update(){let{dragControls:e,drag:t}=this.node.getProps(),{dragControls:n,drag:r}=this.node.prevProps||{};e!==n&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls))),r&&!t&&this.controls.stop(void 0,void 0,r)}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}},zu=({current:e})=>e?e.ownerDocument.defaultView:null,Bu=e=>(t,n)=>{e&&Gt.update(()=>e(t,n),!1,!0)},Vu=class extends gl{constructor(){super(...arguments),this.removePointerDownListener=k}onPointerDown(e){this.session=new Ec(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:zu(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:Bu(e),onStart:Bu(t),onMove:Bu(n),onEnd:(e,t)=>{delete this.session,r&&Gt.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=cc(this.node.current,`pointerdown`,e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}},Hu=!1,Uu=({layout:e,layoutDependency:t})=>({layout:e,layoutDependency:t,animationType:typeof e==`string`?e:`both`}),Wu=class extends b.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;i&&(t.group&&t.group.add(i),n&&n.register&&r&&n.register(i),Hu&&i.root.didUpdate(),i.addEventListener(`animationComplete`,()=>{this.safeToRemove()}),i.setOptions({...i.options,...Uu(this.props),onExitComplete:()=>this.safeToRemove()})),Xo.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layout:t,layoutDependency:n,visualElement:r,drag:i,isPresent:a}=this.props,{projection:o}=r;return o&&(o.isPresent=a,(e.layoutDependency!==n||e.layout!==t)&&o.setOptions({...o.options,...Uu(this.props)}),Hu=!0,i||e.layoutDependency!==n||n===void 0||e.isPresent!==a?o.willUpdate():this.safeToRemove(),e.isPresent!==a&&(a?o.promote():o.relegate()||Gt.postRender(()=>{let e=o.getStack();e&&e.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{visualElement:e,layoutAnchor:t}=this.props,{projection:n}=e;n&&(n.options.layoutAnchor=t,n.root.didUpdate(),Ka.postRender(()=>{!n.currentAnimation&&n.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;Hu=!0,r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}};function Gu(e){let[t,n]=Ll(),r=(0,b.useContext)(x);return(0,B.jsx)(Wu,{...e,layoutGroup:r,switchLayoutGroup:(0,b.useContext)(wu),isPresent:t,safeToRemove:n})}var Ku={pan:{Feature:Vu},drag:{Feature:Ru,ProjectionNode:Fs,MeasureLayout:Gu}};function qu(e,t,n){let{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive(`whileHover`,n===`Start`);let i=r[`onHover`+n];i&&Gt.postRender(()=>i(t,oc(t)))}var Ju=class extends gl{mount(){let{current:e}=this.node;e&&(this.unmount=sl(e,(e,t)=>(qu(this.node,t,`Start`),e=>qu(this.node,e,`End`))))}unmount(){}},Yu=class extends gl{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(`:focus-visible`)}catch{e=!0}e&&this.node.animationState&&(this.node.animationState.setActive(`whileFocus`,!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive(`whileFocus`,!1),this.isActive=!1)}mount(){this.unmount=ie(Ms(this.node.current,`focus`,()=>this.onFocus()),Ms(this.node.current,`blur`,()=>this.onBlur()))}unmount(){}};function Xu(e,t,n){let{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive(`whileTap`,n===`Start`);let i=r[`onTap`+(n===`End`?``:n)];i&&Gt.postRender(()=>i(t,oc(t)))}var Zu=class extends gl{mount(){let{current:e}=this.node;if(!e)return;let{globalTapTarget:t,propagate:n}=this.node.props;this.unmount=hl(e,(e,t)=>(Xu(this.node,t,`Start`),(e,{success:t})=>Xu(this.node,e,t?`End`:`Cancel`)),{useGlobalTarget:t,stopPropagation:n?.tap===!1})}unmount(){}},Qu=new WeakMap,$u=new WeakMap,ed=e=>{let t=Qu.get(e.target);t&&t(e)},td=e=>{e.forEach(ed)};function nd({root:e,...t}){let n=e||document;$u.has(n)||$u.set(n,{});let r=$u.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(td,{root:e,...t})),r[i]}function rd(e,t,n){let r=nd(t);return Qu.set(e,n),r.observe(e),()=>{Qu.delete(e),r.unobserve(e)}}var id={some:0,all:1},V=class extends gl{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();let{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r=`some`,once:i}=e,a={root:t?t.current:void 0,rootMargin:n,threshold:typeof r==`number`?r:id[r]},o=e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,i&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive(`whileInView`,t);let{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),a=t?n:r;a&&a(e)};this.stopObserver=rd(this.node.current,a,o)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>`u`)return;let{props:e,prevProps:t}=this.node;[`amount`,`margin`,`root`].some(ad(e,t))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}};function ad({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}var H=Nu(Object.assign({},Lu,{inView:{Feature:V},tap:{Feature:Zu},focus:{Feature:Yu},hover:{Feature:Ju}},Ku,{layout:{ProjectionNode:Fs,MeasureLayout:Gu}}),Pu),U=_(),W=H,od=e=>e?.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase();function sd(e,t,n=[]){if(t==null)throw Error(`[lucide]: iconNode is required when icon name is used`);return{name:od(e),size:24,node:t,...n.length>0?{aliases:n}:{}}}var cd=e=>{let t=``,n=!1;for(let r of e)r===`-`||r===`_`||r<=` `?n=t.length>0:(t.length===0?t+=r.toLowerCase():t+=n?r.toUpperCase():r,n=!1);return t},ld=e=>{let t=cd(e);return t.charAt(0).toUpperCase()+t.slice(1)},ud=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),dd={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":2,"stroke-linecap":`round`,"stroke-linejoin":`round`};function fd(e){return e!=null}function pd(e,t={}){let n=t.attributeNames??{},r=e=>n[e]??e,i=e.size??e.width??dd.width,a=e.size??e.height??dd.height,o=e.aliases?.filter(e=>typeof e==`string`&&e.trim()!==``).map(e=>`lucide-${e}`)??[],s=[...e.name?[`lucide-${e.name}`]:[],...o],c=t.className?.split(` `).filter(Boolean)??[],l=t.includeDefaultClasses===!1?ud(...c):ud(`lucide`,...s,...c),u=t.absoluteStrokeWidth?Number(t.strokeWidth??dd[`stroke-width`])*Number(e.size??e.width??dd.width)/Number(t.size??t.width??dd.width):t.strokeWidth??dd[`stroke-width`];return[`svg`,{...Object.entries(dd).reduce((e,[t,n])=>(e[r(t)]=n,e),{}),...`color`in t&&t.color&&{[r(`stroke`)]:t.color},...`size`in t&&fd(t.size)&&{[r(`width`)]:t.size,[r(`height`)]:t.size},...`width`in t&&fd(t.width)&&{[r(`width`)]:t.width},...`height`in t&&fd(t.height)&&{[r(`height`)]:t.height},[r(`stroke-width`)]:u,...l&&{[r(`class`)]:l},[r(`viewBox`)]:`0 0 ${i} ${a}`,...t.hasA11yProp===!1?{[r(`aria-hidden`)]:`true`}:{},...`attributes`in t&&t.attributes},e.node.map(e=>{let[n,i,a]=e,o=t.nonScalingStroke?{[r(`vector-effect`)]:`non-scaling-stroke`,...i}:i;return a?[n,o,a]:[n,o]})]}function md(e,t={}){return pd(e,{...t,attributeNames:{...t.attributeNames,class:`className`,"stroke-width":`strokeWidth`,"stroke-linecap":`strokeLinecap`,"stroke-linejoin":`strokeLinejoin`,"vector-effect":`vectorEffect`}})}var hd=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},gd=(0,b.createContext)({}),_d=()=>(0,b.useContext)(gd),vd=(0,b.forwardRef)(({color:e,size:t,width:n,height:r,strokeWidth:i,absoluteStrokeWidth:a,nonScalingStroke:o,className:s=``,children:c,iconNode:l=[],icon:u={node:l,aliases:[],size:24},...d},f)=>{let{size:p=24,strokeWidth:m=2,absoluteStrokeWidth:h=!1,nonScalingStroke:g=!1,color:_=`currentColor`,className:v=``}=_d()??{},y=!!c||hd(d),[x,S,C=[]]=md(u,{color:e??_,width:n??t??p,height:r??t??p,strokeWidth:i??m,absoluteStrokeWidth:a??h,nonScalingStroke:o??g,className:ud(v,s),hasA11yProp:y,attributes:d});return(0,b.createElement)(x,{ref:f,...S},[...C.map(([e,t])=>(0,b.createElement)(e,t)),...Array.isArray(c)?c:[c]])});function G(e,t=[],n=[]){let r=typeof e==`string`?sd(e,t,n):e,i=(0,b.forwardRef)(({className:e,...t},n)=>(0,b.createElement)(vd,{ref:n,icon:r,className:e,...t}));return r.name&&(i.displayName=ld(r.name)),i}var yd={name:`arrow-left`,size:24,node:[[`path`,{d:`m12 19-7-7 7-7`,key:`1l729n`}],[`path`,{d:`M19 12H5`,key:`x3x0zl`}]]};yd.node;var bd=G(yd),xd={name:`arrow-right`,size:24,node:[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`m12 5 7 7-7 7`,key:`xquz4c`}]]};xd.node;var Sd=G(xd),Cd={name:`arrow-up`,size:24,node:[[`path`,{d:`m5 12 7-7 7 7`,key:`hav0vg`}],[`path`,{d:`M12 19V5`,key:`x0mq9r`}]]};Cd.node;var wd=G(Cd),Td={name:`book-open`,size:24,node:[[`path`,{d:`M12 5v16`,key:`1f6ucr`}],[`path`,{d:`M20.001 19A2 2 0 0022 17V5a2 2 0 00-1.999-2L16 3.002A5 5 0 0012 5a5 5 0 00-4-2H4a2 2 0 00-2 2v12a2 2 0 001.999 2H8a5 5 0 014 2 5 5 0 014-2z`,key:`1fyvmf`}]]};Td.node;var Ed=G(Td),Dd={name:`bot`,size:24,node:[[`path`,{d:`M12 8V4H8`,key:`hb8ula`}],[`rect`,{width:`16`,height:`12`,x:`4`,y:`8`,rx:`2`,key:`enze0r`}],[`path`,{d:`M2 14h2`,key:`vft8re`}],[`path`,{d:`M20 14h2`,key:`4cs60a`}],[`path`,{d:`M15 13v2`,key:`1xurst`}],[`path`,{d:`M9 13v2`,key:`rq6x2g`}]]};Dd.node;var Od=G(Dd),kd={name:`brain`,size:24,node:[[`path`,{d:`M12 18V5`,key:`adv99a`}],[`path`,{d:`M15 13a4.17 4.17 0 01-3-4 4.17 4.17 0 01-3 4`,key:`5nuw1p`}],[`path`,{d:`M17.707 6.294A3 3 0 1012 5a3 3 0 10-5.707 1.294`,key:`18ldcf`}],[`path`,{d:`M17.996 5.125a4 4 0 012.526 5.77`,key:`1sdu8q`}],[`path`,{d:`M18 18a4 4 0 002-7.465`,key:`7xqqvr`}],[`path`,{d:`M19.967 17.482a4 4 0 11-7.967.517 4 4 0 11-7.967-.517`,key:`t46ysz`}],[`path`,{d:`M6 18a4 4 0 01-2-7.465`,key:`1y2m15`}],[`path`,{d:`M6.004 5.125a4 4 0 00-2.526 5.77`,key:`3cw1ss`}]]};kd.node;var Ad=G(kd),jd={name:`check`,size:24,node:[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]};jd.node;var Md=G(jd),Nd={name:`chevron-down`,size:24,node:[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]};Nd.node;var Pd=G(Nd),Fd={name:`chevron-right`,size:24,node:[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]};Fd.node;var Id=G(Fd),Ld={name:`circle-alert`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`12`,x2:`12`,y1:`8`,y2:`12`,key:`1pkeuh`}],[`line`,{x1:`12`,x2:`12.01`,y1:`16`,y2:`16`,key:`4dfq90`}]],aliases:[`alert-circle`]};Ld.node;var Rd=G(Ld),zd={name:`circle-check`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m16 9-5.5 5.5L8 12`,key:`xofnsj`}]],aliases:[`check-circle-2`]};zd.node;var Bd=G(zd),Vd={name:`circle-dashed`,size:24,node:[[`path`,{d:`M10.1 2.182a10 10 0 0 1 3.8 0`,key:`5ilxe3`}],[`path`,{d:`M13.9 21.818a10 10 0 0 1-3.8 0`,key:`11zvb9`}],[`path`,{d:`M17.609 3.721a10 10 0 0 1 2.69 2.7`,key:`1iw5b2`}],[`path`,{d:`M2.182 13.9a10 10 0 0 1 0-3.8`,key:`c0bmvh`}],[`path`,{d:`M20.279 17.609a10 10 0 0 1-2.7 2.69`,key:`1ruxm7`}],[`path`,{d:`M21.818 10.1a10 10 0 0 1 0 3.8`,key:`qkgqxc`}],[`path`,{d:`M3.721 6.391a10 10 0 0 1 2.7-2.69`,key:`1mcia2`}],[`path`,{d:`M6.391 20.279a10 10 0 0 1-2.69-2.7`,key:`1fvljs`}]]};Vd.node;var Hd=G(Vd),Ud={name:`circle-pause`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`10`,x2:`10`,y1:`15`,y2:`9`,key:`c1nkhi`}],[`line`,{x1:`14`,x2:`14`,y1:`15`,y2:`9`,key:`h65svq`}]],aliases:[`pause-circle`]};Ud.node;var Wd=G(Ud),Gd={name:`circle-stop`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`rect`,{x:`9`,y:`9`,width:`6`,height:`6`,rx:`1`,key:`1ssd4o`}]],aliases:[`stop-circle`]};Gd.node;var Kd=G(Gd),qd={name:`circle`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}]]};qd.node;var Jd=G(qd),Yd={name:`clipboard-list`,size:24,node:[[`rect`,{width:`8`,height:`4`,x:`8`,y:`2`,rx:`1`,ry:`1`,key:`tgr4d6`}],[`path`,{d:`M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2`,key:`116196`}],[`path`,{d:`M12 11h4`,key:`1jrz19`}],[`path`,{d:`M12 16h4`,key:`n85exb`}],[`path`,{d:`M8 11h.01`,key:`1dfujw`}],[`path`,{d:`M8 16h.01`,key:`18s6g9`}]]};Yd.node;var Xd=G(Yd),Zd={name:`coins`,size:24,node:[[`path`,{d:`M13.744 17.736a6 6 0 1 1-7.48-7.48`,key:`bq4yh3`}],[`path`,{d:`M15 6h1v4`,key:`11y1tn`}],[`path`,{d:`m6.134 14.768.866-.5 2 3.464`,key:`17snzx`}],[`circle`,{cx:`16`,cy:`8`,r:`6`,key:`14bfc9`}]]};Zd.node;var Qd=G(Zd),$d={name:`copy`,size:24,node:[[`rect`,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`,key:`17jyea`}],[`path`,{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`,key:`zix9uf`}]]};$d.node;var ef=G($d),tf={name:`crown`,size:24,node:[[`path`,{d:`M11.562 3.266a.5.5 0 0 1 .876 0L15.39 8.87a1 1 0 0 0 1.516.294L21.183 5.5a.5.5 0 0 1 .798.519l-2.834 10.246a1 1 0 0 1-.956.734H5.81a1 1 0 0 1-.957-.734L2.02 6.02a.5.5 0 0 1 .798-.519l4.276 3.664a1 1 0 0 0 1.516-.294z`,key:`1vdc57`}],[`path`,{d:`M5 21h14`,key:`11awu3`}]]};tf.node;var nf=G(tf),rf={name:`ellipsis`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`1`,key:`41hilf`}],[`circle`,{cx:`19`,cy:`12`,r:`1`,key:`1wjl8i`}],[`circle`,{cx:`5`,cy:`12`,r:`1`,key:`1pcz8c`}]],aliases:[`more-horizontal`]};rf.node;var af=G(rf),of={name:`eraser`,size:24,node:[[`path`,{d:`M21 21H8a2 2 0 0 1-1.42-.587l-3.994-3.999a2 2 0 0 1 0-2.828l10-10a2 2 0 0 1 2.829 0l5.999 6a2 2 0 0 1 0 2.828L12.834 21`,key:`g5wo59`}],[`path`,{d:`m5.082 11.09 8.828 8.828`,key:`1wx5vj`}]]};of.node;var sf=G(of),cf={name:`external-link`,size:24,node:[[`path`,{d:`M15 3h6v6`,key:`1q9fwt`}],[`path`,{d:`M10 14 21 3`,key:`gplh6r`}],[`path`,{d:`M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6`,key:`a6xqqp`}]]};cf.node;var lf=G(cf),uf={name:`eye`,size:24,node:[[`path`,{d:`M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0`,key:`1nclc0`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]};uf.node;var df=G(uf),ff={name:`file-text`,size:24,node:[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M10 9H8`,key:`b1mrlr`}],[`path`,{d:`M16 13H8`,key:`t4e002`}],[`path`,{d:`M16 17H8`,key:`z1uh3a`}]]};ff.node;var pf=G(ff),mf={name:`folder-input`,size:24,node:[[`path`,{d:`M2 9V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-1`,key:`fm4g5t`}],[`path`,{d:`M2 13h10`,key:`pgb2dq`}],[`path`,{d:`m9 16 3-3-3-3`,key:`6m91ic`}]]};mf.node;var hf=G(mf),gf={name:`folder-open`,size:24,node:[[`path`,{d:`m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2`,key:`usdka0`}]]};gf.node;var _f=G(gf),vf={name:`folder-plus`,size:24,node:[[`path`,{d:`M12 10v6`,key:`1bos4e`}],[`path`,{d:`M9 13h6`,key:`1uhe8q`}],[`path`,{d:`M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z`,key:`1kt360`}]]};vf.node;var yf=G(vf),bf={name:`folder`,size:24,node:[[`path`,{d:`M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z`,key:`1kt360`}]]};bf.node;var xf=G(bf),Sf={name:`git-branch`,size:24,node:[[`path`,{d:`M15 6a9 9 0 0 0-9 9V3`,key:`1cii5b`}],[`circle`,{cx:`18`,cy:`6`,r:`3`,key:`1h7g24`}],[`circle`,{cx:`6`,cy:`18`,r:`3`,key:`fqmcym`}]]};Sf.node;var Cf=G(Sf),wf={name:`globe`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20`,key:`13o1zl`}],[`path`,{d:`M2 12h20`,key:`9i4pu4`}]]};wf.node;var Tf=G(wf),Ef={name:`hard-drive`,size:24,node:[[`path`,{d:`M10 16h.01`,key:`1bzywj`}],[`path`,{d:`M2.212 11.577a2 2 0 0 0-.212.896V18a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-5.527a2 2 0 0 0-.212-.896L18.55 5.11A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z`,key:`18tbho`}],[`path`,{d:`M21.946 12.013H2.054`,key:`zqlbp7`}],[`path`,{d:`M6 16h.01`,key:`1pmjb7`}]]};Ef.node;var Df=G(Ef),Of={name:`house`,size:24,node:[[`path`,{d:`M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8`,key:`5wwlr5`}],[`path`,{d:`M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z`,key:`r6nss1`}]],aliases:[`home`]};Of.node;var kf=G(Of),Af={name:`info`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 16v-4`,key:`1dtifu`}],[`path`,{d:`M12 8h.01`,key:`e9boi3`}]]};Af.node;var jf=G(Af),Mf={name:`key-round`,size:24,node:[[`path`,{d:`M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z`,key:`1s6t7t`}],[`circle`,{cx:`16.5`,cy:`7.5`,r:`.5`,fill:`currentColor`,key:`w0ekpg`}]]};Mf.node;var Nf=G(Mf),Pf={name:`link-2`,size:24,node:[[`path`,{d:`M9 17H7A5 5 0 0 1 7 7h2`,key:`8i5ue5`}],[`path`,{d:`M15 7h2a5 5 0 1 1 0 10h-2`,key:`1b9ql8`}],[`line`,{x1:`8`,x2:`16`,y1:`12`,y2:`12`,key:`1jonct`}]]};Pf.node;var Ff=G(Pf),If={name:`loader-circle`,size:24,node:[[`path`,{d:`M21 12a9 9 0 1 1-6.219-8.56`,key:`13zald`}]],aliases:[`loader-2`]};If.node;var Lf=G(If),Rf={name:`lock-open`,size:24,node:[[`rect`,{width:`18`,height:`11`,x:`3`,y:`11`,rx:`2`,ry:`2`,key:`1w4ew1`}],[`path`,{d:`M7 11V7a5 5 0 0 1 9.9-1`,key:`1mm8w8`}]],aliases:[`unlock`]};Rf.node;var zf=G(Rf),Bf={name:`lock`,size:24,node:[[`rect`,{width:`18`,height:`11`,x:`3`,y:`11`,rx:`2`,ry:`2`,key:`1w4ew1`}],[`path`,{d:`M7 11V7a5 5 0 0 1 10 0v4`,key:`fwvmzm`}]]};Bf.node;var Vf=G(Bf),Hf={name:`message-circle-question-mark`,size:24,node:[[`path`,{d:`M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719`,key:`1sd12s`}],[`path`,{d:`M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3`,key:`1u773s`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]],aliases:[`message-circle-question`]};Hf.node;var Uf=G(Hf),Wf={name:`message-square`,size:24,node:[[`path`,{d:`M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z`,key:`18887p`}]]};Wf.node;var Gf=G(Wf),Kf={name:`messages-square`,size:24,node:[[`path`,{d:`M16 10a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 14.286V4a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z`,key:`1n2ejm`}],[`path`,{d:`M20 9a2 2 0 0 1 2 2v10.286a.71.71 0 0 1-1.212.502l-2.202-2.202A2 2 0 0 0 17.172 19H10a2 2 0 0 1-2-2v-1`,key:`1qfcsi`}]]};Kf.node;var qf=G(Kf),K={name:`octagon-alert`,size:24,node:[[`path`,{d:`M12 16h.01`,key:`1drbdi`}],[`path`,{d:`M12 8v4`,key:`1got3b`}],[`path`,{d:`M15.312 2a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586l-4.688-4.688A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2z`,key:`1fd625`}]],aliases:[`alert-octagon`]};K.node;var Jf=G(K),Yf={name:`pause`,size:24,node:[[`rect`,{x:`14`,y:`3`,width:`5`,height:`18`,rx:`1`,key:`kaeet6`}],[`rect`,{x:`5`,y:`3`,width:`5`,height:`18`,rx:`1`,key:`1wsw3u`}]]};Yf.node;var Xf=G(Yf),Zf={name:`pencil`,size:24,node:[[`path`,{d:`M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z`,key:`1a8usu`}],[`path`,{d:`m15 5 4 4`,key:`1mk7zo`}]]};Zf.node;var Qf=G(Zf),$f={name:`play`,size:24,node:[[`path`,{d:`M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z`,key:`10ikf1`}]]};$f.node;var ep=G($f),tp={name:`plug`,size:24,node:[[`path`,{d:`M12 22v-5`,key:`1ega77`}],[`path`,{d:`M15 8V2`,key:`18g5xt`}],[`path`,{d:`M17 8a1 1 0 0 1 1 1v4a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1z`,key:`1xoxul`}],[`path`,{d:`M9 8V2`,key:`14iosj`}]]};tp.node;var np=G(tp),rp={name:`plus`,size:24,node:[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`M12 5v14`,key:`s699le`}]]};rp.node;var ip=G(rp),ap={name:`power`,size:24,node:[[`path`,{d:`M12 2v10`,key:`mnfbl`}],[`path`,{d:`M18.4 6.6a9 9 0 1 1-12.77.04`,key:`obofu9`}]]};ap.node;var op=G(ap),sp={name:`refresh-cw`,size:24,node:[[`path`,{d:`M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8`,key:`v9h5vc`}],[`path`,{d:`M21 3v5h-5`,key:`1q7to0`}],[`path`,{d:`M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16`,key:`3uifl3`}],[`path`,{d:`M8 16H3v5`,key:`1cv678`}]]};sp.node;var cp=G(sp),lp={name:`repeat`,size:24,node:[[`path`,{d:`m17 2 4 4-4 4`,key:`nntrym`}],[`path`,{d:`M3 11v-1a4 4 0 0 1 4-4h14`,key:`84bu3i`}],[`path`,{d:`m7 22-4-4 4-4`,key:`1wqhfi`}],[`path`,{d:`M21 13v1a4 4 0 0 1-4 4H3`,key:`1rx37r`}]]};lp.node;var up=G(lp),dp={name:`rotate-ccw`,size:24,node:[[`path`,{d:`M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`,key:`1357e3`}],[`path`,{d:`M3 3v5h5`,key:`1xhq8a`}]]};dp.node;var fp=G(dp),pp={name:`save`,size:24,node:[[`path`,{d:`M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z`,key:`1c8476`}],[`path`,{d:`M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7`,key:`1ydtos`}],[`path`,{d:`M7 3v4a1 1 0 0 0 1 1h7`,key:`t51u73`}]]};pp.node;var mp=G(pp),hp={name:`search`,size:24,node:[[`path`,{d:`m21 21-4.34-4.34`,key:`14j7rj`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}]]};hp.node;var gp=G(hp),_p={name:`server`,size:24,node:[[`rect`,{width:`20`,height:`8`,x:`2`,y:`2`,rx:`2`,ry:`2`,key:`ngkwjq`}],[`rect`,{width:`20`,height:`8`,x:`2`,y:`14`,rx:`2`,ry:`2`,key:`iecqi9`}],[`line`,{x1:`6`,x2:`6.01`,y1:`6`,y2:`6`,key:`16zg32`}],[`line`,{x1:`6`,x2:`6.01`,y1:`18`,y2:`18`,key:`nzw8ys`}]]};_p.node;var vp=G(_p),yp={name:`settings`,size:24,node:[[`path`,{d:`M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915`,key:`1i5ecw`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]};yp.node;var bp=G(yp),xp={name:`settings-2`,size:24,node:[[`path`,{d:`M14 17H5`,key:`gfn3mx`}],[`path`,{d:`M19 7h-9`,key:`6i9tg`}],[`circle`,{cx:`17`,cy:`17`,r:`3`,key:`18b49y`}],[`circle`,{cx:`7`,cy:`7`,r:`3`,key:`dfmy0x`}]]};xp.node;var Sp=G(xp),Cp={name:`shield-check`,size:24,node:[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]};Cp.node;var wp=G(Cp),Tp={name:`shield-question-mark`,size:24,node:[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}],[`path`,{d:`M9.1 9a3 3 0 0 1 5.82 1c0 2-3 3-3 3`,key:`mhlwft`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]],aliases:[`shield-question`]};Tp.node;var Ep=G(Tp),Dp={name:`square-kanban`,size:24,node:[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M8 7v7`,key:`1x2jlm`}],[`path`,{d:`M12 7v4`,key:`xawao1`}],[`path`,{d:`M16 7v9`,key:`1hp2iy`}]],aliases:[`kanban-square`]};Dp.node;var Op=G(Dp),kp={name:`trash`,size:24,node:[[`path`,{d:`M10 11v6`,key:`nco0om`}],[`path`,{d:`M14 11v6`,key:`outv1u`}],[`path`,{d:`M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6`,key:`miytrc`}],[`path`,{d:`M3 6h18`,key:`d0wm0j`}],[`path`,{d:`M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2`,key:`e791ji`}]],aliases:[`trash-2`]};kp.node;var Ap=G(kp),jp={name:`wrench`,size:24,node:[[`path`,{d:`M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z`,key:`1ngwbx`}]]};jp.node;var Mp=G(jp),Np={name:`x`,size:24,node:[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]};Np.node;var Pp=G(Np);function Fp(e){return e<1e3?String(e):e<1e6?`${(e/1e3).toFixed(+(e<1e4))}k`:`${(e/1e6).toFixed(1)}M`}function Ip(e){return e.input+e.output+e.reasoning+e.cacheRead+e.cacheWrite}var Lp=`symbio:token`,Rp=(()=>{let e=new URL(location.href),t=e.searchParams.get(`token`);return t&&(localStorage.setItem(Lp,t),e.searchParams.delete(`token`),history.replaceState(null,``,e.pathname+e.search+e.hash)),localStorage.getItem(Lp)??``})(),zp=`symbio:locked`;async function q(e,t,n){let r=await fetch(`/api${t}`,{method:e,headers:{"x-symbio-token":Rp,...n===void 0?{}:{"content-type":`application/json`}},body:n===void 0?void 0:JSON.stringify(n)}),i=await r.json().catch(()=>({}));if(r.status===401&&i.code===`locked`&&dispatchEvent(new Event(zp)),r.status===401&&i.code===`remote-login`&&(location.href=`/remote-login`),!r.ok)throw Error(i.error??r.statusText);return i}var J={runtime:()=>q(`GET`,`/runtime`),models:()=>q(`GET`,`/models`),projects:()=>q(`GET`,`/projects`),project:e=>q(`GET`,`/projects/${e}`),inspect:e=>q(`GET`,`/inspect?dir=${encodeURIComponent(e)}`),pickFolder:e=>q(`POST`,`/pick-folder`,{initial:e}),listDirs:e=>q(`GET`,`/fs/dirs${e?`?path=${encodeURIComponent(e)}`:``}`),providers:()=>q(`GET`,`/providers`),connectProviderKey:(e,t,n)=>q(`POST`,`/providers/${encodeURIComponent(e)}/key`,{key:t,answer:n}),beginProviderOauth:(e,t,n)=>q(`POST`,`/providers/${encodeURIComponent(e)}/oauth`,{methodID:t,answer:n}),providerOauthStatus:(e,t)=>q(`GET`,`/providers/${encodeURIComponent(e)}/oauth/${encodeURIComponent(t)}`),completeProviderOauth:(e,t,n)=>q(`POST`,`/providers/${encodeURIComponent(e)}/oauth/${encodeURIComponent(t)}/complete`,{code:n}),cancelProviderOauth:(e,t)=>q(`DELETE`,`/providers/${encodeURIComponent(e)}/oauth/${encodeURIComponent(t)}`),removeProviderLogin:e=>q(`DELETE`,`/providers/logins/${encodeURIComponent(e)}`),createProject:e=>q(`POST`,`/projects`,e),permissions:e=>q(`GET`,`/projects/${e}/permissions`),answerPermission:(e,t,n,r)=>q(`POST`,`/projects/${e}/permissions/${t}`,{decision:n,note:r}),approvals:e=>q(`GET`,`/projects/${e}/approvals`),decideApproval:(e,t,n,r)=>q(`POST`,`/projects/${e}/approvals/${t}`,{approved:n,note:r}),docs:e=>q(`GET`,`/projects/${e}/docs`),readDoc:(e,t)=>q(`GET`,`/projects/${e}/docs/file?path=${encodeURIComponent(t)}`),writeDoc:(e,t,n)=>q(`PUT`,`/projects/${e}/docs/file`,{path:t,content:n}),updateProject:(e,t)=>q(`PATCH`,`/projects/${e}`,t),connections:()=>q(`GET`,`/connections`),createConnection:e=>q(`POST`,`/connections`,e),updateConnection:(e,t)=>q(`PATCH`,`/connections/${e}`,t),deleteConnection:e=>q(`DELETE`,`/connections/${e}`),testConnection:e=>q(`POST`,`/connections/${e}/test`),deleteProject:(e,t)=>q(`DELETE`,`/projects/${e}?deleteData=${t}`),start:e=>q(`POST`,`/projects/${e}/start`),history:(e,t)=>q(`GET`,`/projects/${e}/agents/${t}/history`),projectUsage:e=>q(`GET`,`/projects/${e}/usage`),prices:()=>q(`GET`,`/prices`),remote:()=>q(`GET`,`/remote`),startRemote:()=>q(`POST`,`/remote/start`),stopRemote:()=>q(`POST`,`/remote/stop`),housekeeping:e=>q(`GET`,`/projects/${e}/housekeeping`),checkHousekeeping:e=>q(`POST`,`/projects/${e}/housekeeping/check`),cleanHelper:(e,t)=>q(`POST`,`/projects/${e}/agents/${t}/clean`),setPrice:(e,t)=>q(`PUT`,`/prices`,{model:e,price:t}),historyPage:(e,t,n,r,i)=>q(`GET`,`/projects/${e}/agents/${t}/history?limit=${n}${r?`&before=${encodeURIComponent(r)}`:``}${i?`&session=${encodeURIComponent(i)}`:``}`),renewSession:(e,t)=>q(`POST`,`/projects/${e}/agents/${t}/renew`),send:(e,t,n,r=!1)=>q(`POST`,`/projects/${e}/agents/${t}/messages`,{text:n,urgent:r}),interrupt:(e,t)=>q(`POST`,`/projects/${e}/agents/${t}/interrupt`),renameAgent:(e,t,n)=>q(`POST`,`/projects/${e}/agents/${t}/rename`,{name:n}),setAgentModel:(e,t,n)=>q(`POST`,`/projects/${e}/agents/${t}/model`,{model:n}),restartAgent:(e,t)=>q(`POST`,`/projects/${e}/agents/${t}/restart`),moveToProjectFolder:(e,t)=>q(`POST`,`/projects/${e}/agents/${t}/move-to-project-folder`),stopAgent:(e,t)=>q(`POST`,`/projects/${e}/agents/${t}/stop`),forms:(e,t)=>q(`GET`,`/projects/${e}/agents/${t}/forms`),answerForm:(e,t,n,r,i)=>q(`POST`,`/projects/${e}/agents/${t}/forms/${n}`,{answer:r,summary:i}),log:e=>q(`GET`,`/projects/${e}/log`),assets:e=>q(`GET`,`/projects/${e}/assets`),retryModels:e=>q(`POST`,`/projects/${e}/retry-models`),pauseTeam:e=>q(`POST`,`/projects/${e}/pause`),resumeTeam:e=>q(`POST`,`/projects/${e}/resume`),pauseAll:()=>q(`POST`,`/pause-all`),plan:e=>q(`GET`,`/projects/${e}/plan`),decidePlan:(e,t,n)=>q(`POST`,`/projects/${e}/plan/decision`,{approved:t,feedback:n})},Bp=new Set,Vp=!1,Hp=e=>{for(let t of Bp)t(e)};function Up(e){if(Bp.add(e),!Vp){Vp=!0;let e=!1,t=new EventSource(`/api/events?token=${encodeURIComponent(Rp)}`);t.onmessage=t=>{e=!0,t.data&&Hp(JSON.parse(t.data))},t.addEventListener(`ping`,()=>e=!0),setTimeout(()=>{e||(t.close(),Wp())},6e3)}return()=>Bp.delete(e)}async function Wp(){let e=null;for(;;)try{let t=await q(`GET`,e===null?`/events/poll`:`/events/poll?after=${e}`);t.gap&&location.reload(),e=t.seq,t.events.forEach(Hp)}catch{await new Promise(e=>setTimeout(e,3e3))}}function Gp({type:e,small:t}){return(0,B.jsx)(`span`,{className:`conn-icon ${t?`sm`:``}`,children:e===`github`?(0,B.jsx)(Cf,{size:t?12:15}):(0,B.jsx)(vp,{size:t?12:15})})}function Kp({value:e,onChange:t}){let[n,r]=(0,b.useState)(null);if((0,b.useEffect)(()=>{J.connections().then(r).catch(()=>r([]))},[]),!n)return(0,B.jsx)(`div`,{className:`subtle small`,children:`Loading connections…`});if(n.length===0)return(0,B.jsxs)(`div`,{className:`subtle small`,children:[`No connections yet — add GitHub accounts or servers in `,(0,B.jsx)(`a`,{className:`link`,href:`#/settings`,children:`Settings`}),`.`]});let i=t=>e.find(e=>e.id===t),a=n=>t(i(n)?e.filter(e=>e.id!==n):[...e,{id:n,policy:`ask`}]),o=(n,r)=>t(e.map(e=>e.id===n?{...e,policy:r}:e));return(0,B.jsx)(`div`,{children:n.map(e=>{let t=i(e.id);return(0,B.jsxs)(`div`,{className:`pick-row ${t?`on`:``}`,children:[(0,B.jsxs)(`label`,{className:`pick-main`,children:[(0,B.jsx)(`input`,{type:`checkbox`,checked:!!t,onChange:()=>a(e.id)}),(0,B.jsx)(Gp,{type:e.type,small:!0}),(0,B.jsxs)(`span`,{className:`grow ellipsis`,children:[(0,B.jsx)(`span`,{style:{fontWeight:500},children:e.name}),` `,(0,B.jsx)(`span`,{className:`subtle small`,children:e.type===`github`?e.account??`GitHub`:`${e.username}@${e.host}`})]})]}),t&&(0,B.jsxs)(`div`,{className:`seg`,children:[(0,B.jsx)(`button`,{className:t.policy===`ask`?`on`:``,onClick:()=>o(e.id,`ask`),title:`Every action waits for your approval`,children:`Ask me`}),(0,B.jsx)(`button`,{className:t.policy===`allow`?`on`:``,onClick:()=>o(e.id,`allow`),title:`Agents act without asking`,children:`Allowed`})]})]},e.id)})})}var qp={documents:`documents`,spreadsheets:`spreadsheets`,presentations:`presentations`,images:`images`,"audio-video":`audio/video`,code:`code`,data:`data`,archives:`archives`,other:`other`};function Jp(e){return e<1024?`${e} B`:e<1024**2?`${(e/1024).toFixed(1)} KB`:e<1024**3?`${(e/1024**2).toFixed(1)} MB`:`${(e/1024**3).toFixed(2)} GB`}function Yp({inspection:e}){let t=Object.entries(e.kinds).sort((e,t)=>t[1]-e[1]),n=t.reduce((e,[,t])=>e+t,0)||1,r;return r=e.exists?e.empty?`Empty folder — a new project`:`Existing folder · ${e.fileCount}${e.truncated?`+`:``} files · ${Jp(e.totalBytes)}`:`New folder — it will be created`,(0,B.jsxs)(W.div,{className:`folder-summary`,initial:{opacity:0,y:-4},animate:{opacity:1,y:0},children:[(0,B.jsxs)(`div`,{className:`folder-headline`,children:[e.empty||!e.exists?(0,B.jsx)(yf,{size:15}):(0,B.jsx)(_f,{size:15}),(0,B.jsx)(`strong`,{children:r}),e.isGit&&(0,B.jsxs)(`span`,{className:`tag`,children:[(0,B.jsx)(Cf,{}),`git`]}),e.guidance.map(e=>(0,B.jsxs)(`span`,{className:`tag`,children:[(0,B.jsx)(pf,{}),e]},e))]}),t.length>0&&(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(`div`,{className:`kind-bar`,children:t.map(([e,t],r)=>(0,B.jsx)(W.span,{className:`kind-seg k${r%6}`,initial:{width:0},animate:{width:`${t/n*100}%`},transition:{duration:.5,delay:r*.05},title:`${qp[e]??e}: ${t}`},e))}),(0,B.jsx)(`div`,{className:`kind-legend`,children:t.map(([e,t],n)=>(0,B.jsxs)(`span`,{children:[(0,B.jsx)(`i`,{className:`k${n%6}`}),qp[e]??e,` `,t]},e))})]}),e.topLevel.length>0&&(0,B.jsxs)(`div`,{className:`top-level`,title:`Top-level contents`,children:[e.topLevel.slice(0,14).join(` · `),e.topLevel.length>14&&` · …`]})]})}function Xp({start:e,onPick:t,onCancel:n}){let[r,i]=(0,b.useState)(null),[a,o]=(0,b.useState)(null),[s,c]=(0,b.useState)(!1),l=async e=>{c(!0);try{i(await J.listDirs(e)),o(null)}catch(e){o(e.message)}finally{c(!1)}};(0,b.useEffect)(()=>{l(e||void 0).then(()=>{})},[]);let u=(e,t)=>e.endsWith(r.sep)?e+t:e+r.sep+t;return(0,B.jsxs)(`div`,{className:`folder-browser`,children:[(0,B.jsxs)(`div`,{className:`folder-browser-head`,children:[(0,B.jsx)(`button`,{className:`btn ghost icon sm`,title:`Up one level`,disabled:!r?.parent||s,onClick:()=>l(r.parent),children:(0,B.jsx)(wd,{size:14})}),(0,B.jsx)(`code`,{className:`folder-browser-path ellipsis`,title:r?.path,children:r?.path??`…`})]}),(0,B.jsxs)(`div`,{className:`folder-browser-places`,children:[r&&(0,B.jsxs)(`button`,{className:`btn ghost sm`,onClick:()=>l(r.home),children:[(0,B.jsx)(kf,{size:13}),`Home`]}),r?.roots.map(e=>(0,B.jsxs)(`button`,{className:`btn ghost sm`,onClick:()=>l(e),children:[(0,B.jsx)(Df,{size:13}),e]},e))]}),(0,B.jsxs)(`div`,{className:`folder-browser-list`,children:[a&&(0,B.jsx)(`div`,{className:`error`,children:a}),r?.dirs.length===0&&!a&&(0,B.jsx)(`div`,{className:`section-empty`,children:`No folders here.`}),r?.dirs.map(e=>(0,B.jsxs)(`button`,{className:`folder-browser-item`,disabled:s,onClick:()=>l(u(r.path,e)),children:[(0,B.jsx)(xf,{size:14}),(0,B.jsx)(`span`,{className:`ellipsis`,children:e})]},e))]}),(0,B.jsxs)(`div`,{className:`folder-browser-foot`,children:[(0,B.jsx)(`span`,{className:`small subtle`,children:`Open a folder, then choose it. To start somewhere new, choose its parent and add the new folder's name to the path.`}),(0,B.jsx)(`span`,{className:`spacer`}),(0,B.jsx)(`button`,{className:`btn ghost sm`,onClick:n,children:`Cancel`}),(0,B.jsx)(`button`,{className:`btn primary sm`,disabled:!r,onClick:()=>r&&t(r.path),children:`Choose this folder`})]})]})}function Zp(e){let{allowed:t,coordinator:n,onChange:r}=e,[i,a]=(0,b.useState)(null),[o,s]=(0,b.useState)(null),[c,l]=(0,b.useState)(``),[u,d]=(0,b.useState)(!1),[f,p]=(0,b.useState)(!1),[m]=(0,b.useState)(()=>new Set(t));(0,b.useEffect)(()=>{J.models().then(a).catch(e=>s(e.message))},[]);let h=(0,b.useMemo)(()=>{let e=c.toLowerCase(),t=[],n=new Map;for(let r of i??[])u&&!r.free||f&&!r.vision||e&&!r.ref.toLowerCase().includes(e)&&!r.name.toLowerCase().includes(e)||(m.has(r.ref)?t.push(r):(n.has(r.providerID)||n.set(r.providerID,[]),n.get(r.providerID).push(r)));let r=[...n.entries()].sort(([e],[t])=>e.localeCompare(t));return t.length?[[`Selected`,t],...r]:r},[i,c,u,f,m]),g=e=>{if(t.includes(e)){let i=t.filter(t=>t!==e);r(i,n===e?i[0]??``:n)}else r([...t,e],n||e)},_=e=>r(t.includes(e)?t:[...t,e],e);return o?(0,B.jsxs)(`div`,{className:`error`,children:[`Could not load models: `,o]}):i?(0,B.jsxs)(`div`,{className:`model-picker`,children:[(0,B.jsxs)(`div`,{className:`model-picker-head`,children:[(0,B.jsx)(gp,{size:14,className:`subtle`}),(0,B.jsx)(`input`,{placeholder:`Search models…`,value:c,onChange:e=>l(e.target.value)}),(0,B.jsxs)(`label`,{className:`check`,children:[(0,B.jsx)(`input`,{type:`checkbox`,checked:u,onChange:e=>d(e.target.checked)}),` Free`]}),(0,B.jsxs)(`label`,{className:`check`,children:[(0,B.jsx)(`input`,{type:`checkbox`,checked:f,onChange:e=>p(e.target.checked)}),` Vision`]})]}),(0,B.jsx)(`div`,{className:`model-summary`,children:t.length===0?(0,B.jsx)(`span`,{className:`subtle`,children:`Select the models agents may use. Agents switch to the next one if a model fails.`}):(0,B.jsxs)(B.Fragment,{children:[(0,B.jsxs)(`span`,{children:[t.length,` selected ·`]}),(0,B.jsxs)(`span`,{className:`row`,style:{gap:4},children:[(0,B.jsx)(nf,{size:12,style:{color:`var(--amber)`}}),`core runs on `,(0,B.jsx)(`strong`,{style:{color:`var(--text)`},children:n?(e=>i?.find(t=>t.ref===e)?.name??e)(n):`—`})]})]})}),(0,B.jsxs)(`div`,{className:`model-groups`,children:[h.map(([e,r])=>(0,B.jsxs)(`div`,{children:[(0,B.jsx)(`div`,{className:`model-group-title`,children:e}),r.map(e=>{let r=t.includes(e.ref),i=n===e.ref;return(0,B.jsxs)(`div`,{className:`model-row ${r?`on`:``}`,onClick:()=>g(e.ref),children:[(0,B.jsx)(`span`,{className:`check-box`,children:r&&(0,B.jsx)(Md,{size:11,strokeWidth:3})}),(0,B.jsxs)(`span`,{className:`model-name`,title:e.ref,children:[e.name,m.has(e.ref)&&(0,B.jsxs)(`span`,{className:`subtle`,children:[` · `,e.providerID]})]}),e.free&&(0,B.jsx)(`span`,{className:`tag green`,children:`Free`}),(0,B.jsx)(`span`,{className:`subtle`,title:e.vision?`Can read images`:void 0,style:{display:`inline-flex`,width:14,opacity:+!!e.vision},children:(0,B.jsx)(df,{size:13})}),(0,B.jsx)(`button`,{className:`lead-btn ${i?`on`:``}`,title:i?`core runs on this model`:`Run core on this model`,onClick:t=>{t.stopPropagation(),_(e.ref)},children:(0,B.jsx)(nf,{size:14})})]},e.ref)})]},e)),h.length===0&&(0,B.jsx)(`div`,{className:`section-empty`,children:`No models match.`})]})]}):(0,B.jsx)(`div`,{className:`subtle`,children:`Loading models…`})}var Qp=[`#5b5fc7`,`#2f8f6f`,`#a87326`,`#a2508f`,`#3b78cc`,`#3c8c9b`,`#8a5bb5`,`#7c7448`];function $p(e){let t=0;for(let n of e)t=t*31+n.charCodeAt(0)>>>0;return Qp[t%Qp.length]}function em({name:e,status:t,size:n,kind:r=`agent`}){let i=r===`human`?`Y`:r===`system`?`S`:e.slice(0,1);return(0,B.jsxs)(`span`,{className:`avatar ${n??``} ${r===`agent`?``:r}`,style:r===`agent`?{background:$p(e)}:void 0,title:e,children:[i,t&&(0,B.jsx)(`span`,{className:`dot ${t}`})]})}function tm(e){switch(e){case`busy`:return`Working`;case`waiting`:return`Waiting for you`;case`stuck`:return`Recovering`;case`error`:return`Needs attention`;case`stopped`:return`Stopped`;default:return`Idle`}}function nm({size:e=22}){return(0,B.jsxs)(`svg`,{className:`brand-logo`,width:e,height:e,viewBox:`0 0 24 24`,"aria-hidden":`true`,children:[(0,B.jsx)(`circle`,{cx:`9`,cy:`12`,r:`6.5`,fill:`none`,stroke:`#6d6af5`,strokeWidth:`2.2`}),(0,B.jsx)(`circle`,{cx:`15`,cy:`12`,r:`6.5`,fill:`none`,stroke:`#3fb27f`,strokeWidth:`2.2`})]})}function rm(e){(0,b.useEffect)(()=>{let t=t=>t.key===`Escape`&&e();return addEventListener(`keydown`,t),()=>removeEventListener(`keydown`,t)},[e])}function im({title:e,subtitle:t,onClose:n,children:r,footer:i,wide:a,header:o}){return rm(n),(0,B.jsx)(W.div,{className:`backdrop`,initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.12},onMouseDown:e=>e.target===e.currentTarget&&n(),children:(0,B.jsxs)(W.div,{className:`dialog ${a?`wide`:``}`,initial:{opacity:0,y:8,scale:.98},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:8,scale:.98},transition:{duration:.15},onClick:e=>e.stopPropagation(),children:[(0,B.jsxs)(`div`,{className:`dialog-head`,children:[(0,B.jsx)(`h2`,{children:e}),(0,B.jsx)(`button`,{className:`btn ghost icon sm`,onClick:n,"aria-label":`Close`,children:(0,B.jsx)(Pp,{size:15})})]}),t&&(0,B.jsx)(`div`,{className:`dialog-sub`,children:t}),o,(0,B.jsx)(`div`,{className:`dialog-body`,children:r}),i&&(0,B.jsx)(`div`,{className:`dialog-foot`,children:i})]})})}function am({title:e,onClose:t,children:n,actions:r}){return rm(t),(0,B.jsx)(W.div,{className:`drawer-backdrop`,initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},onMouseDown:e=>e.target===e.currentTarget&&t(),children:(0,B.jsxs)(W.aside,{className:`drawer`,initial:{x:40,opacity:0},animate:{x:0,opacity:1},exit:{x:40,opacity:0},transition:{type:`spring`,stiffness:380,damping:34},children:[(0,B.jsxs)(`div`,{className:`drawer-head`,children:[(0,B.jsx)(`h2`,{children:e}),r,(0,B.jsx)(`button`,{className:`btn ghost icon sm`,onClick:t,"aria-label":`Close`,children:(0,B.jsx)(Pp,{size:15})})]}),(0,B.jsx)(`div`,{className:`drawer-body`,children:n})]})})}function om({icon:e,title:t,children:n,action:r}){return(0,B.jsxs)(`div`,{className:`empty`,children:[(0,B.jsx)(`div`,{className:`empty-icon`,children:e}),(0,B.jsx)(`h3`,{children:t}),n&&(0,B.jsx)(`p`,{children:n}),r]})}function sm(e){let t=Math.round((Date.now()-e)/1e3);return t<45?`just now`:t<3600?`${Math.round(t/60)}m ago`:t<86400?`${Math.round(t/3600)}h ago`:new Date(e).toLocaleDateString()}function cm(e){return new Date(e).toLocaleTimeString([],{hour:`2-digit`,minute:`2-digit`})}function lm({project:e,onRemoved:t}){let[n,r]=(0,b.useState)(!1),[i,a]=(0,b.useState)(null),o=(0,b.useRef)(null);(0,b.useEffect)(()=>{if(!n)return;let e=e=>{o.current?.contains(e.target)||r(!1)};return addEventListener(`mousedown`,e),()=>removeEventListener(`mousedown`,e)},[n]);let s=e=>t=>{t.preventDefault(),t.stopPropagation(),r(!1),a(e)};return(0,B.jsxs)(`div`,{className:`menu`,ref:o,onClick:e=>e.preventDefault(),children:[(0,B.jsx)(`button`,{className:`btn ghost icon sm`,title:`Project options`,"aria-label":`Project options`,onClick:e=>{e.preventDefault(),e.stopPropagation(),r(e=>!e)},children:(0,B.jsx)(af,{size:16})}),(0,B.jsx)(Bl,{children:n&&(0,B.jsxs)(W.div,{className:`menu-list`,initial:{opacity:0,y:-4},animate:{opacity:1,y:0},exit:{opacity:0,y:-4},transition:{duration:.1},children:[(0,B.jsxs)(`button`,{onClick:s(`rename`),children:[(0,B.jsx)(Qf,{size:14}),`Rename`]}),(0,B.jsxs)(`button`,{className:`danger`,onClick:s(`remove`),children:[(0,B.jsx)(Ap,{size:14}),`Remove from Symbio…`]})]})}),(0,B.jsxs)(Bl,{children:[i===`rename`&&(0,B.jsx)(um,{project:e,onClose:()=>a(null)}),i===`remove`&&(0,B.jsx)(dm,{project:e,onClose:()=>a(null),onRemoved:t})]})]})}function um({project:e,onClose:t}){let[n,r]=(0,b.useState)(e.name),[i,a]=(0,b.useState)(null),o=n.trim()&&n.trim()!==e.name;async function s(){try{await J.updateProject(e.id,{name:n.trim()}),t()}catch(e){a(e.message)}}return(0,B.jsxs)(im,{title:`Rename project`,onClose:t,footer:(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(`button`,{className:`btn ghost`,onClick:t,children:`Cancel`}),(0,B.jsx)(`button`,{className:`btn primary`,onClick:s,disabled:!o,children:`Rename`})]}),children:[(0,B.jsxs)(`label`,{className:`field`,children:[(0,B.jsx)(`span`,{children:`Name`}),(0,B.jsx)(`input`,{autoFocus:!0,value:n,onChange:e=>r(e.target.value),onKeyDown:e=>e.key===`Enter`&&o&&s()}),(0,B.jsx)(`span`,{className:`hint`,children:`Only the name shown in Symbio changes; the folder stays where it is.`})]}),i&&(0,B.jsx)(`div`,{className:`error`,children:i})]})}function dm({project:e,onClose:t,onRemoved:n}){let[r,i]=(0,b.useState)(!1),[a,o]=(0,b.useState)(!1),[s,c]=(0,b.useState)(null),l=e.agents.filter(e=>e.status===`busy`||e.status===`waiting`).length;async function u(){o(!0);try{await J.deleteProject(e.id,r),t(),n?.()}catch(e){c(e.message),o(!1)}}return(0,B.jsxs)(im,{title:`Remove “${e.name}”?`,onClose:t,footer:(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(`button`,{className:`btn ghost`,onClick:t,children:`Cancel`}),(0,B.jsx)(`button`,{className:`btn danger-solid`,onClick:u,disabled:a,children:a?`Removing…`:`Remove project`})]}),children:[(0,B.jsxs)(`p`,{className:`muted`,children:[`Symbio stops its agents and removes their workspaces. `,(0,B.jsx)(`strong`,{style:{color:`var(--text)`},children:`Your project files are not touched`}),` —`,` `,(0,B.jsx)(`code`,{children:e.directory}),` stays exactly as it is, including its git history and any branches helpers created.`]}),l>0&&(0,B.jsxs)(`div`,{className:`notice`,children:[l,` agent(s) are working right now and will be stopped.`]}),(0,B.jsxs)(`label`,{className:`choice`,children:[(0,B.jsx)(`input`,{type:`checkbox`,checked:r,onChange:e=>i(e.target.checked)}),(0,B.jsxs)(`span`,{className:`choice-body`,children:[(0,B.jsx)(`span`,{className:`choice-title`,children:`Also delete Symbio's data for it`}),(0,B.jsxs)(`span`,{className:`choice-desc`,children:[`The plan, message log and asset register (`,(0,B.jsx)(`code`,{children:`.symbio`}),` folder) and the agents' conversations. Leave unchecked to be able to add the folder again later and continue where you left off.`]})]})]}),s&&(0,B.jsx)(`div`,{className:`error`,children:s})]})}function fm(e){return e.replace(/[\\/]+$/,``).split(/[\\/]/).pop()??``}function pm({runtime:e}){let[t,n]=(0,b.useState)(null),[r,i]=(0,b.useState)(!1);(0,b.useEffect)(()=>{let e=()=>J.projects().then(n).catch(()=>n([]));return e(),Up(t=>{(t.type===`project.updated`||t.type===`agent.status`)&&e()})},[]);let a=e?.state===`running`,[o,s]=(0,b.useState)(!1);return(0,b.useEffect)(()=>{e?.state===`running`&&J.providers().then(e=>s(e.connected.every(e=>e.models===0))).catch(()=>{})},[e?.state]),(0,B.jsxs)(`div`,{className:`page-inner`,children:[(0,B.jsxs)(`div`,{className:`page-head`,children:[(0,B.jsxs)(`div`,{children:[(0,B.jsx)(`h1`,{children:`Projects`}),(0,B.jsx)(`p`,{children:`Each project gets core, an agent that talks the scope through with you and coordinates the work.`})]}),(0,B.jsxs)(`button`,{className:`btn primary`,onClick:()=>i(!0),disabled:!a,children:[(0,B.jsx)(ip,{size:15}),`New project`]})]}),o&&(0,B.jsxs)(`div`,{className:`notice row`,style:{justifyContent:`space-between`,gap:12},children:[(0,B.jsx)(`span`,{children:`No model provider is connected yet, so agents have no models to run on.`}),(0,B.jsx)(`a`,{className:`btn sm`,href:`#/settings`,children:`Connect a provider`})]}),t&&t.length===0&&(0,B.jsx)(`div`,{className:`section`,children:(0,B.jsx)(om,{icon:(0,B.jsx)(yf,{size:20}),title:`No projects yet`,action:(0,B.jsxs)(`button`,{className:`btn primary`,onClick:()=>i(!0),disabled:!a,children:[(0,B.jsx)(ip,{size:15}),`New project`]}),children:`Point Symbio at a folder — empty or existing — and core will take it from there.`})}),t&&t.length>0&&(0,B.jsx)(`div`,{className:`project-list`,children:t.map(e=>(0,B.jsx)(mm,{project:e},e.id))}),(0,B.jsx)(Bl,{children:r&&(0,B.jsx)(gm,{onClose:()=>i(!1)})})]})}function mm({project:e}){let t=e.agents.filter(e=>e.status!==`stopped`),n=t.filter(e=>e.status===`busy`).length,r=t.filter(e=>e.status===`waiting`).length,i=t.filter(e=>e.problem||e.status===`error`).length,a=Math.max(e.createdAt,...e.agents.map(e=>e.lastActivity??0)),o=(0,B.jsx)(`span`,{className:`subtle`,children:t.length?`Idle`:`Not started`});return e.paused?o=(0,B.jsx)(`span`,{className:`tag blue`,children:`Paused`}):i?o=(0,B.jsx)(`span`,{className:`tag red`,children:`Needs attention`}):r?o=(0,B.jsx)(`span`,{className:`tag amber`,children:`Waiting for you`}):n&&(o=(0,B.jsxs)(`span`,{className:`tag green`,children:[n,` working`]})),(0,B.jsxs)(`a`,{className:`project-row`,href:`#/p/${e.id}`,children:[(0,B.jsxs)(`div`,{style:{minWidth:0},children:[(0,B.jsx)(`div`,{className:`project-name`,children:e.name}),(0,B.jsx)(`div`,{className:`project-dir ellipsis`,title:e.directory,children:e.directory})]}),(0,B.jsx)(`div`,{className:`avatar-stack`,title:t.map(e=>e.name).join(`, `),children:t.slice(0,5).map(e=>(0,B.jsx)(em,{name:e.name,size:`sm`},e.id))}),(0,B.jsxs)(`div`,{className:`project-meta`,children:[o,(0,B.jsxs)(`span`,{className:`subtle`,children:[`· `,sm(a)]})]}),(0,B.jsx)(`div`,{onClick:e=>e.preventDefault(),children:(0,B.jsx)(lm,{project:e})})]})}var hm=[`Folder`,`Setup`,`Models`];function gm({onClose:e}){let[t,n]=(0,b.useState)(0),[r,i]=(0,b.useState)(``),[a,o]=(0,b.useState)(!1),[s,c]=(0,b.useState)(``),[l,u]=(0,b.useState)(null),[d,f]=(0,b.useState)(null),[p,m]=(0,b.useState)(!0),[h,g]=(0,b.useState)(`project`),[_,v]=(0,b.useState)([]),[y,x]=(0,b.useState)([]),[S,C]=(0,b.useState)(``),[w,T]=(0,b.useState)(!1),[E,D]=(0,b.useState)(!1),[O,ee]=(0,b.useState)(!1),[te,ne]=(0,b.useState)(!1);(0,b.useEffect)(()=>{J.remote().then(e=>ne(e.active&&e.code===void 0)).catch(()=>{})},[]);let[re,k]=(0,b.useState)(null);(0,b.useEffect)(()=>{let e=s.trim();if(u(null),f(null),!e)return;let t=setTimeout(()=>{J.inspect(e).then(e=>{u(e),a||i(fm(e.directory))}).catch(e=>f(e.message))},400);return()=>clearTimeout(t)},[s]);let ie=l?.existingProject,A=l&&!l.isGit&&l.gitAvailable,ae=[!!(r.trim()&&l&&!ie),!0,!!S][t];async function oe(){if(te)return ee(!0);D(!0),f(null);try{let{path:e}=await J.pickFolder(s.trim()||void 0);e&&c(e)}catch(e){f(e.message)}finally{D(!1)}}async function se(){T(!0),k(null);try{let e=await J.createProject({name:r.trim(),directory:s.trim(),allowedModels:y,coordinatorModel:S,docsLocation:h,initGit:!!A&&p,connections:_});await J.start(e.id),location.hash=`#/p/${e.id}`}catch(e){k(e.message),T(!1)}}return(0,B.jsxs)(im,{title:`New project`,onClose:e,wide:t===2,header:(0,B.jsx)(`div`,{className:`steps`,children:hm.map((e,n)=>(0,B.jsxs)(`span`,{className:`row`,style:{gap:6},children:[n>0&&(0,B.jsx)(`span`,{className:`sep`}),(0,B.jsxs)(`span`,{className:`step ${n===t?`on`:n<t?`done`:``}`,children:[(0,B.jsx)(`span`,{className:`step-num`,children:n+1}),e]})]},e))}),footer:(0,B.jsxs)(B.Fragment,{children:[re&&(0,B.jsx)(`div`,{className:`error grow`,children:re}),t>0&&(0,B.jsxs)(`button`,{className:`btn ghost`,onClick:()=>n(t-1),disabled:w,children:[(0,B.jsx)(bd,{size:14}),`Back`]}),t<hm.length-1?(0,B.jsxs)(`button`,{className:`btn primary`,onClick:()=>n(t+1),disabled:!ae,children:[`Continue`,(0,B.jsx)(Sd,{size:14})]}):(0,B.jsx)(`button`,{className:`btn primary`,onClick:se,disabled:!ae||w,children:w?`Starting core…`:`Create project`})]}),children:[t===0&&(0,B.jsxs)(B.Fragment,{children:[(0,B.jsxs)(`label`,{className:`field`,children:[(0,B.jsx)(`span`,{children:`Folder`}),(0,B.jsxs)(`span`,{className:`input-row`,children:[(0,B.jsx)(`input`,{value:s,onChange:e=>c(e.target.value),placeholder:`C:\\Users\\you\\projects\\my-project`,autoFocus:!0}),(0,B.jsxs)(`button`,{type:`button`,className:`btn`,onClick:oe,disabled:E,children:[(0,B.jsx)(_f,{size:14}),E?`Choosing…`:`Browse…`]})]}),(0,B.jsx)(`span`,{className:`hint`,children:`An empty folder starts a new project; an existing one is studied first. Created if it doesn't exist.`})]}),O&&(0,B.jsx)(Xp,{start:s.trim()||void 0,onCancel:()=>ee(!1),onPick:e=>{c(e),ee(!1)}}),(0,B.jsxs)(`label`,{className:`field`,children:[(0,B.jsx)(`span`,{children:`Name`}),(0,B.jsx)(`input`,{value:r,onChange:e=>{i(e.target.value),o(!0)},placeholder:`My project`})]}),d&&(0,B.jsx)(`div`,{className:`error`,children:d}),ie&&(0,B.jsxs)(`div`,{className:`error`,children:[`This folder already belongs to the project `,(0,B.jsxs)(`a`,{href:`#/p/${ie.id}`,children:[`“`,ie.name,`”`]}),`.`]}),l&&!ie&&(0,B.jsx)(Yp,{inspection:l}),A&&(0,B.jsxs)(`label`,{className:`choice`,children:[(0,B.jsx)(`input`,{type:`checkbox`,checked:p,onChange:e=>m(e.target.checked)}),(0,B.jsxs)(`span`,{className:`choice-body`,children:[(0,B.jsx)(`span`,{className:`choice-title`,children:`Set up version history (git)`}),(0,B.jsxs)(`span`,{className:`choice-desc`,children:[`Lets several agents work in parallel without stepping on each other, and keeps a history you can roll back. Adds a hidden `,(0,B.jsx)(`code`,{children:`.git`}),` folder with a first snapshot.`]})]})]}),l&&!l.isGit&&!l.gitAvailable&&(0,B.jsx)(`div`,{className:`notice`,children:`Git isn't installed, so agents will share the folder directly.`})]}),t===1&&(0,B.jsxs)(B.Fragment,{children:[(0,B.jsxs)(`div`,{className:`field`,children:[(0,B.jsx)(`span`,{children:`Project documentation`}),(0,B.jsxs)(`label`,{className:`choice`,children:[(0,B.jsx)(`input`,{type:`radio`,checked:h===`project`,onChange:()=>g(`project`)}),(0,B.jsxs)(`span`,{className:`choice-body`,children:[(0,B.jsxs)(`span`,{className:`choice-title`,children:[`In the project `,(0,B.jsx)(`span`,{className:`tag accent`,children:`Recommended`})]}),(0,B.jsxs)(`span`,{className:`choice-desc`,children:[(0,B.jsx)(`code`,{children:`AGENTS.md`}),` and a `,(0,B.jsx)(`code`,{children:`docs/`}),` folder — useful to any agent or person working on it.`]})]})]}),(0,B.jsxs)(`label`,{className:`choice`,children:[(0,B.jsx)(`input`,{type:`radio`,checked:h===`private`,onChange:()=>g(`private`)}),(0,B.jsxs)(`span`,{className:`choice-body`,children:[(0,B.jsx)(`span`,{className:`choice-title`,children:`Private`}),(0,B.jsxs)(`span`,{className:`choice-desc`,children:[`Kept in `,(0,B.jsx)(`code`,{children:`.symbio/docs`}),`, outside your files — for folders you don't want AI documentation in.`]})]})]})]}),(0,B.jsxs)(`div`,{className:`field`,children:[(0,B.jsx)(`span`,{children:`Connections`}),(0,B.jsx)(`span`,{className:`hint`,children:`GitHub accounts and servers agents may use. Optional — you can change this later.`}),(0,B.jsx)(Kp,{value:_,onChange:v})]})]}),t===2&&(0,B.jsx)(Zp,{allowed:y,coordinator:S,onChange:(e,t)=>{x(e),C(t)}}),t===0&&!l&&!d&&s.trim()===``&&(0,B.jsxs)(`div`,{className:`row subtle small`,children:[(0,B.jsx)(_f,{size:14}),`Browse for a folder, or paste its full path.`]})]})}var _m=e=>e>=100?`$${Math.round(e)}`:`$${e.toFixed(2)}`;function vm(e){let[t,n]=(0,b.useState)(null),r=(0,b.useRef)(null);return(0,b.useEffect)(()=>{let t=()=>J.projectUsage(e).then(n).catch(()=>{});t();let i=Up(n=>{if(n.type===`project.updated`&&n.projectId===e||n.type===`prices.updated`){if(r.current)return;r.current=setTimeout(()=>{r.current=null,t()},4e3)}});return()=>{i(),r.current&&clearTimeout(r.current)}},[e]),t}function ym({project:e,onOpen:t}){let n=vm(e.id);if(!n||n.tokens===0)return null;let r=n.agents.filter(e=>e.tokens>0).map(e=>`${e.name}: ${Fp(e.tokens)}${e.cost>0?` · ≈ ${_m(e.cost)}`:``}`).join(`
|
|
18
|
-
`);return(0,B.jsxs)(`button`,{className:`usage-line`,onClick:t,title:`${r}\n\nIncludes cache reads. Click for details.`,children:[(0,B.jsx)(Qd,{size:13}),(0,B.jsxs)(`span`,{className:`tnum`,children:[Fp(n.tokens),` tokens`]}),n.cost>0&&(0,B.jsxs)(`span`,{className:`subtle tnum`,children:[`· ≈ `,_m(n.cost)]})]})}function bm({project:e}){let t=vm(e.id);return(0,B.jsxs)(`section`,{className:`section`,id:`usage`,children:[(0,B.jsxs)(`div`,{className:`section-head`,children:[(0,B.jsxs)(`div`,{children:[(0,B.jsx)(`h2`,{children:`Usage`}),(0,B.jsx)(`p`,{children:`Tokens used by every agent of this project, including stopped ones and earlier sessions. The cost is an estimate from the prices in Settings → Model prices.`})]}),t&&t.tokens>0&&(0,B.jsxs)(`div`,{className:`usage-total`,children:[(0,B.jsx)(`strong`,{className:`tnum`,children:t.cost>0?`≈ ${_m(t.cost)}`:`—`}),(0,B.jsxs)(`span`,{className:`subtle small tnum`,children:[Fp(t.tokens),` tokens`]})]})]}),t?t.tokens===0?(0,B.jsx)(`div`,{className:`section-empty`,children:`No usage yet.`}):(0,B.jsxs)(`div`,{style:{padding:`4px 12px 12px`,overflowX:`auto`},children:[(0,B.jsxs)(`table`,{className:`usage-table`,children:[(0,B.jsx)(`thead`,{children:(0,B.jsxs)(`tr`,{children:[(0,B.jsx)(`th`,{children:`Agent`}),(0,B.jsx)(`th`,{children:`Model`}),(0,B.jsx)(`th`,{className:`num`,children:`Input`}),(0,B.jsx)(`th`,{className:`num`,children:`Output`}),(0,B.jsx)(`th`,{className:`num`,children:`Cache read`}),(0,B.jsx)(`th`,{className:`num`,children:`Cache write`}),(0,B.jsx)(`th`,{className:`num`,children:`≈ Cost`})]})}),(0,B.jsx)(`tbody`,{children:t.agents.flatMap(e=>e.byModel.map((t,n)=>(0,B.jsxs)(`tr`,{className:e.status===`stopped`?`muted`:``,children:[(0,B.jsx)(`td`,{children:n===0?`${e.name}${e.status===`stopped`?` (stopped)`:``}${e.sessions>1?` · ${e.sessions} sessions`:``}`:``}),(0,B.jsx)(`td`,{className:`mono small`,children:t.model}),(0,B.jsx)(`td`,{className:`num tnum`,children:Fp(t.usage.input)}),(0,B.jsx)(`td`,{className:`num tnum`,children:Fp(t.usage.output+t.usage.reasoning)}),(0,B.jsx)(`td`,{className:`num tnum`,children:Fp(t.usage.cacheRead)}),(0,B.jsx)(`td`,{className:`num tnum`,children:Fp(t.usage.cacheWrite)}),(0,B.jsx)(`td`,{className:`num tnum`,children:t.cost===null?`no price`:_m(t.cost)})]},`${e.id}-${t.model}`)))}),(0,B.jsx)(`tfoot`,{children:(0,B.jsxs)(`tr`,{children:[(0,B.jsx)(`td`,{colSpan:2,children:`Total`}),(0,B.jsx)(`td`,{className:`num tnum`,children:Fp(t.total.input)}),(0,B.jsx)(`td`,{className:`num tnum`,children:Fp(t.total.output+t.total.reasoning)}),(0,B.jsx)(`td`,{className:`num tnum`,children:Fp(t.total.cacheRead)}),(0,B.jsx)(`td`,{className:`num tnum`,children:Fp(t.total.cacheWrite)}),(0,B.jsx)(`td`,{className:`num tnum`,children:_m(t.cost)})]})})]}),t.unpriced.length>0&&(0,B.jsxs)(`div`,{className:`notice`,style:{marginTop:10},children:[`No price for `,t.unpriced.join(`, `),`, so their tokens aren't in the estimate. Add it in Settings → Model prices.`]})]}):(0,B.jsx)(`div`,{className:`section-empty`,children:`Loading…`})]})}var xm=[{key:`input`,label:`Input`},{key:`output`,label:`Output`},{key:`cacheRead`,label:`Cache read`},{key:`cacheWrite`,label:`Cache write`}];function Sm(){let[e,t]=(0,b.useState)(null),n=()=>J.prices().then(t).catch(()=>{});return(0,b.useEffect)(()=>{n()},[]),(0,B.jsxs)(`section`,{className:`section`,children:[(0,B.jsx)(`div`,{className:`section-head`,children:(0,B.jsxs)(`div`,{children:[(0,B.jsx)(`h2`,{children:`Model prices`}),(0,B.jsx)(`p`,{children:`USD per million tokens, used to estimate what projects cost. Models whose provider doesn't publish prices (like a company Azure deployment) get a suggestion from the same model in OpenCode's catalog: check it against your contract and save.`})]})}),e?(0,B.jsx)(`div`,{className:`section-body`,children:Object.entries(e).sort(([e],[t])=>e.localeCompare(t)).map(([e,t])=>(0,B.jsx)(Cm,{model:e,info:t,onSaved:n},e))}):(0,B.jsx)(`div`,{className:`section-empty`,children:`Loading…`})]})}function Cm({model:e,info:t,onSaved:n}){let r=()=>Object.fromEntries(xm.map(e=>[e.key,t.price?String(t.price[e.key]):``])),[i,a]=(0,b.useState)(r),[o,s]=(0,b.useState)(!1);(0,b.useEffect)(()=>a(r()),[t]);let c={input:Number(i.input),output:Number(i.output),cacheRead:Number(i.cacheRead),cacheWrite:Number(i.cacheWrite)},l=xm.every(e=>i[e.key].trim()!==``&&Number.isFinite(c[e.key])&&c[e.key]>=0),u=xm.some(e=>i[e.key]!==(t.price?String(t.price[e.key]):``)),d=l&&(u||t.source===`suggested`);async function f(t){s(!0);try{await J.setPrice(e,t),n()}catch(e){alert(e.message)}finally{s(!1)}}let p=t.source===`yours`?`Your price`:t.source===`opencode`?`From OpenCode`:t.source===`suggested`?`Suggested from ${t.from} — not saved yet`:`No price`;return(0,B.jsxs)(`div`,{className:`list-row price-row`,children:[(0,B.jsxs)(`div`,{className:`grow`,style:{minWidth:0},children:[(0,B.jsx)(`div`,{className:`list-title mono small ellipsis`,children:e}),(0,B.jsx)(`div`,{className:`list-sub ${t.source===`suggested`||t.source===`none`?`warn`:``}`,children:p})]}),xm.map(e=>(0,B.jsxs)(`label`,{className:`price-field`,children:[(0,B.jsx)(`span`,{children:e.label}),(0,B.jsx)(`input`,{type:`number`,min:0,step:`any`,value:i[e.key],onChange:t=>a({...i,[e.key]:t.target.value})})]},e.key)),(0,B.jsx)(`button`,{className:`btn sm`,onClick:()=>f(c),disabled:!d||o,children:t.source===`suggested`&&!u?`Accept`:`Save`}),t.source===`yours`&&(0,B.jsx)(`button`,{className:`btn ghost sm`,onClick:()=>f(null),disabled:o,title:`Forget your price`,children:`Reset`})]})}function wm(e,t){let n=t||{};return(e[e.length-1]===``?[...e,``]:e).join((n.padRight?` `:``)+`,`+(n.padLeft===!1?``:` `)).trim()}var Tm=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Em=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Dm={};function Om(e,t){return((t||Dm).jsx?Em:Tm).test(e)}var km=/[ \t\n\f\r]/g;function Am(e){return typeof e==`object`?e.type===`text`&&jm(e.value):jm(e)}function jm(e){return e.replace(km,``)===``}var Mm=class{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}};Mm.prototype.normal={},Mm.prototype.property={},Mm.prototype.space=void 0;function Nm(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new Mm(n,r,t)}function Pm(e){return e.toLowerCase()}var Fm=class{constructor(e,t){this.attribute=t,this.property=e}};Fm.prototype.attribute=``,Fm.prototype.booleanish=!1,Fm.prototype.boolean=!1,Fm.prototype.commaOrSpaceSeparated=!1,Fm.prototype.commaSeparated=!1,Fm.prototype.defined=!1,Fm.prototype.mustUseProperty=!1,Fm.prototype.number=!1,Fm.prototype.overloadedBoolean=!1,Fm.prototype.property=``,Fm.prototype.spaceSeparated=!1,Fm.prototype.space=void 0;var Im=s({boolean:()=>Y,booleanish:()=>Rm,commaOrSpaceSeparated:()=>Hm,commaSeparated:()=>Vm,number:()=>X,overloadedBoolean:()=>zm,spaceSeparated:()=>Bm}),Lm=0,Y=Um(),Rm=Um(),zm=Um(),X=Um(),Bm=Um(),Vm=Um(),Hm=Um();function Um(){return 2**++Lm}var Wm=Object.keys(Im),Gm=class extends Fm{constructor(e,t,n,r){let i=-1;if(super(e,t),Km(this,`space`,r),typeof n==`number`)for(;++i<Wm.length;){let e=Wm[i];Km(this,Wm[i],(n&Im[e])===Im[e])}}};Gm.prototype.defined=!0;function Km(e,t,n){n&&(e[t]=n)}function qm(e){let t={},n={};for(let[r,i]of Object.entries(e.properties)){let a=new Gm(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[Pm(r)]=r,n[Pm(a.attribute)]=r}return new Mm(t,n,e.space)}var Jm=qm({properties:{ariaActiveDescendant:null,ariaAtomic:Rm,ariaAutoComplete:null,ariaBusy:Rm,ariaChecked:Rm,ariaColCount:X,ariaColIndex:X,ariaColSpan:X,ariaControls:Bm,ariaCurrent:null,ariaDescribedBy:Bm,ariaDetails:null,ariaDisabled:Rm,ariaDropEffect:Bm,ariaErrorMessage:null,ariaExpanded:Rm,ariaFlowTo:Bm,ariaGrabbed:Rm,ariaHasPopup:null,ariaHidden:Rm,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Bm,ariaLevel:X,ariaLive:null,ariaModal:Rm,ariaMultiLine:Rm,ariaMultiSelectable:Rm,ariaOrientation:null,ariaOwns:Bm,ariaPlaceholder:null,ariaPosInSet:X,ariaPressed:Rm,ariaReadOnly:Rm,ariaRelevant:null,ariaRequired:Rm,ariaRoleDescription:Bm,ariaRowCount:X,ariaRowIndex:X,ariaRowSpan:X,ariaSelected:Rm,ariaSetSize:X,ariaSort:null,ariaValueMax:X,ariaValueMin:X,ariaValueNow:X,ariaValueText:null,role:null},transform(e,t){return t===`role`?t:`aria-`+t.slice(4).toLowerCase()}});function Ym(e,t){return t in e?e[t]:t}function Xm(e,t){return Ym(e,t.toLowerCase())}var Zm=qm({attributes:{acceptcharset:`accept-charset`,classname:`class`,htmlfor:`for`,httpequiv:`http-equiv`},mustUseProperty:[`checked`,`multiple`,`muted`,`selected`],properties:{abbr:null,accept:Vm,acceptCharset:Bm,accessKey:Bm,action:null,allow:null,allowFullScreen:Y,allowPaymentRequest:Y,allowUserMedia:Y,alpha:Y,alt:null,as:null,async:Y,autoCapitalize:null,autoComplete:Bm,autoFocus:Y,autoPlay:Y,blocking:Bm,capture:null,charSet:null,checked:Y,cite:null,className:Bm,closedBy:null,colorSpace:null,cols:X,colSpan:X,command:null,commandFor:null,content:null,contentEditable:Rm,controls:Y,controlsList:Bm,coords:X|Vm,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Y,defer:Y,dir:null,dirName:null,disabled:Y,download:zm,draggable:Rm,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Y,formTarget:null,headers:Bm,height:X,hidden:zm,high:X,href:null,hrefLang:null,htmlFor:Bm,httpEquiv:Bm,id:null,imageSizes:null,imageSrcSet:null,inert:Y,inputMode:null,integrity:null,is:null,isMap:Y,itemId:null,itemProp:Bm,itemRef:Bm,itemScope:Y,itemType:Bm,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Y,low:X,manifest:null,max:null,maxLength:X,media:null,method:null,min:null,minLength:X,multiple:Y,muted:Y,name:null,nonce:null,noModule:Y,noValidate:Y,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:Y,optimum:X,pattern:null,ping:Bm,placeholder:null,playsInline:Y,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Y,referrerPolicy:null,rel:Bm,required:Y,reversed:Y,rows:X,rowSpan:X,sandbox:Bm,scope:null,scoped:Y,seamless:Y,selected:Y,shadowRootClonable:Y,shadowRootCustomElementRegistry:Y,shadowRootDelegatesFocus:Y,shadowRootMode:null,shadowRootSerializable:Y,shape:null,size:X,sizes:null,slot:null,span:X,spellCheck:Rm,src:null,srcDoc:null,srcLang:null,srcSet:null,start:X,step:null,style:null,tabIndex:X,target:null,title:null,translate:null,type:null,typeMustMatch:Y,useMap:null,value:Rm,width:X,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Bm,axis:null,background:null,bgColor:null,border:X,borderColor:null,bottomMargin:X,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Y,declare:Y,event:null,face:null,frame:null,frameBorder:null,hSpace:X,leftMargin:X,link:null,longDesc:null,lowSrc:null,marginHeight:X,marginWidth:X,noResize:Y,noHref:Y,noShade:Y,noWrap:Y,object:null,profile:null,prompt:null,rev:null,rightMargin:X,rules:null,scheme:null,scrolling:Rm,standby:null,summary:null,text:null,topMargin:X,valueType:null,version:null,vAlign:null,vLink:null,vSpace:X,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:Y,disablePictureInPicture:Y,disableRemotePlayback:Y,exportParts:Vm,part:Bm,prefix:null,property:null,results:X,security:null,unselectable:null},space:`html`,transform:Xm}),Qm=qm({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`,maskType:`mask-type`,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:Hm,accentHeight:X,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:X,amplitude:X,arabicForm:null,ascent:X,attributeName:null,attributeType:null,azimuth:X,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:X,by:null,calcMode:null,capHeight:X,className:Bm,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:X,diffuseConstant:X,direction:null,display:null,dur:null,divisor:X,dominantBaseline:null,download:Y,dx:null,dy:null,edgeMode:null,editable:null,elevation:X,enableBackground:null,end:null,event:null,exponent:X,externalResourcesRequired:null,fill:null,fillOpacity:X,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:Vm,g2:Vm,glyphName:Vm,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:X,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:X,horizOriginX:X,horizOriginY:X,id:null,ideographic:X,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:X,k:X,k1:X,k2:X,k3:X,k4:X,kernelMatrix:Hm,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:X,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:X,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:X,overlineThickness:X,paintOrder:null,panose1:null,path:null,pathLength:X,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Bm,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:X,pointsAtY:X,pointsAtZ:X,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Hm,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Hm,rev:Hm,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Hm,requiredFeatures:Hm,requiredFonts:Hm,requiredFormats:Hm,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:X,specularExponent:X,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:X,strikethroughThickness:X,string:null,stroke:null,strokeDashArray:Hm,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:X,strokeOpacity:X,strokeWidth:null,style:null,surfaceScale:X,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Hm,tabIndex:X,tableValues:null,target:null,targetX:X,targetY:X,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Hm,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:X,underlineThickness:X,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:X,values:null,vAlphabetic:X,vMathematical:X,vectorEffect:null,vHanging:X,vIdeographic:X,version:null,vertAdvY:X,vertOriginX:X,vertOriginY:X,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:X,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:`svg`,transform:Ym}),$m=qm({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:`xlink`,transform(e,t){return`xlink:`+t.slice(5).toLowerCase()}}),eh=qm({attributes:{xmlnsxlink:`xmlns:xlink`},properties:{xmlnsXLink:null,xmlns:null},space:`xmlns`,transform:Xm}),th=qm({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:`xml`,transform(e,t){return`xml:`+t.slice(3).toLowerCase()}}),nh={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`},rh=/[A-Z]/g,ih=/-[a-z]/g,ah=/^data[-\w.:]+$/i;function oh(e,t){let n=Pm(t),r=t,i=Fm;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)===`data`&&ah.test(t)){if(t.charAt(4)===`-`){let e=t.slice(5).replace(ih,ch);r=`data`+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!ih.test(e)){let n=e.replace(rh,sh);n.charAt(0)!==`-`&&(n=`-`+n),t=`data`+n}}i=Gm}return new i(r,t)}function sh(e){return`-`+e.toLowerCase()}function ch(e){return e.charAt(1).toUpperCase()}var lh=Nm([Jm,Zm,$m,eh,th],`html`),uh=Nm([Jm,Qm,$m,eh,th],`svg`);function dh(e){return e.join(` `).trim()}var fh=o(((e,t)=>{var n=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,i=/^\s*/,a=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,l=/^\s+|\s+$/g;function u(e,t){if(typeof e!=`string`)throw TypeError(`First argument must be a string`);if(!e)return[];t||={};var l=1,u=1;function f(e){var t=e.match(r);t&&(l+=t.length);var n=e.lastIndexOf(`
|
|
19
|
-
`);u=~n?e.length-n:u+e.length}function p(){var e={line:l,column:u};return function(t){return t.position=new m(e),_(),t}}function m(e){this.start=e,this.end={line:l,column:u},this.source=t.source}m.prototype.content=e;function h(n){var r=Error(t.source+`:`+l+`:`+u+`: `+n);if(r.reason=n,r.filename=t.source,r.line=l,r.column=u,r.source=e,!t.silent)throw r}function g(t){var n=t.exec(e);if(n){var r=n[0];return f(r),e=e.slice(r.length),n}}function _(){g(i)}function v(e){var t;for(e||=[];t=y();)t!==!1&&e.push(t);return e}function y(){var t=p();if(e.charAt(0)==`/`&&e.charAt(1)==`*`){for(var n=2;e.charAt(n)!=``&&(e.charAt(n)!=`*`||e.charAt(n+1)!=`/`);)++n;if(n+=2,e.charAt(n-1)===``)return h(`End of comment missing`);var r=e.slice(2,n-2);return u+=2,f(r),e=e.slice(n),u+=2,t({type:`comment`,comment:r})}}function b(){var e=p(),t=g(a);if(t){if(y(),!g(o))return h(`property missing ':'`);var r=g(s),i=e({type:`declaration`,property:d(t[0].replace(n,``)),value:r?d(r[0].replace(n,``)):``});return g(c),i}}function x(){var e=[];v(e);for(var t;t=b();)t!==!1&&(e.push(t),v(e));return e}return _(),x()}function d(e){return e?e.replace(l,``):``}t.exports=u})),ph=o(((e,t,n)=>{var r=n&&n.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.default=a;var i=r(fh());function a(e,t){let n=null;if(!e||typeof e!=`string`)return n;let r=(0,i.default)(e),a=typeof t==`function`;return r.forEach(e=>{if(e.type!==`declaration`)return;let{property:r,value:i}=e;a?t(r,i,e):i&&(n||={},n[r]=i)}),n}})),mh=o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.camelCase=void 0;var t=/^--[a-zA-Z0-9_-]+$/,n=/-([a-z])/g,r=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,o=function(e){return!e||r.test(e)||t.test(e)},s=function(e,t){return t.toUpperCase()},c=function(e,t){return`${t}-`};e.camelCase=function(e,t){return t===void 0&&(t={}),o(e)?e:(e=e.toLowerCase(),e=t.reactCompat?e.replace(a,c):e.replace(i,c),e.replace(n,s))}})),hh=o(((e,t,n)=>{var r=(n&&n.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(ph()),i=mh();function a(e,t){var n={};return!e||typeof e!=`string`||(0,r.default)(e,function(e,r){e&&r&&(n[(0,i.camelCase)(e,t)]=r)}),n}a.default=a,t.exports=a})),gh=vh(`end`),_h=vh(`start`);function vh(e){return t;function t(t){let n=t&&t.position&&t.position[e]||{};if(typeof n.line==`number`&&n.line>0&&typeof n.column==`number`&&n.column>0)return{line:n.line,column:n.column,offset:typeof n.offset==`number`&&n.offset>-1?n.offset:void 0}}}function yh(e){let t=_h(e),n=gh(e);if(t&&n)return{start:t,end:n}}function bh(e){return!e||typeof e!=`object`?``:`position`in e||`type`in e?Sh(e.position):`start`in e||`end`in e?Sh(e):`line`in e||`column`in e?xh(e):``}function xh(e){return Ch(e&&e.line)+`:`+Ch(e&&e.column)}function Sh(e){return xh(e&&e.start)+`-`+xh(e&&e.end)}function Ch(e){return e&&typeof e==`number`?e:1}var wh=class extends Error{constructor(e,t,n){super(),typeof t==`string`&&(n=t,t=void 0);let r=``,i={},a=!1;if(t&&(i=`line`in t&&`column`in t||`start`in t&&`end`in t?{place:t}:`type`in t?{ancestors:[t],place:t.position}:{...t}),typeof e==`string`?r=e:!i.cause&&e&&(a=!0,r=e.message,i.cause=e),!i.ruleId&&!i.source&&typeof n==`string`){let e=n.indexOf(`:`);e===-1?i.ruleId=n:(i.source=n.slice(0,e),i.ruleId=n.slice(e+1))}if(!i.place&&i.ancestors&&i.ancestors){let e=i.ancestors[i.ancestors.length-1];e&&(i.place=e.position)}let o=i.place&&`start`in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file=``,this.message=r,this.line=o?o.line:void 0,this.name=bh(i.place)||`1:1`,this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=a&&i.cause&&typeof i.cause.stack==`string`?i.cause.stack:``,this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}};wh.prototype.file=``,wh.prototype.name=``,wh.prototype.reason=``,wh.prototype.message=``,wh.prototype.stack=``,wh.prototype.column=void 0,wh.prototype.line=void 0,wh.prototype.ancestors=void 0,wh.prototype.cause=void 0,wh.prototype.fatal=void 0,wh.prototype.place=void 0,wh.prototype.ruleId=void 0,wh.prototype.source=void 0;var Th=l(hh(),1),Eh={}.hasOwnProperty,Dh=new Map,Oh=/[A-Z]/g,kh=new Set([`table`,`tbody`,`thead`,`tfoot`,`tr`]),Ah=new Set([`td`,`th`]),jh=`https://github.com/syntax-tree/hast-util-to-jsx-runtime`;function Mh(e,t){if(!t||t.Fragment===void 0)throw TypeError("Expected `Fragment` in options");let n=t.filePath||void 0,r;if(t.development){if(typeof t.jsxDEV!=`function`)throw TypeError("Expected `jsxDEV` in options when `development: true`");r=Uh(n,t.jsxDEV)}else{if(typeof t.jsx!=`function`)throw TypeError("Expected `jsx` in production options");if(typeof t.jsxs!=`function`)throw TypeError("Expected `jsxs` in production options");r=Hh(n,t.jsx,t.jsxs)}let i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||`react`,evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space===`svg`?uh:lh,stylePropertyNameCase:t.stylePropertyNameCase||`dom`,tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=Nh(i,e,void 0);return a&&typeof a!=`string`?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function Nh(e,t,n){if(t.type===`element`)return Ph(e,t,n);if(t.type===`mdxFlowExpression`||t.type===`mdxTextExpression`)return Fh(e,t);if(t.type===`mdxJsxFlowElement`||t.type===`mdxJsxTextElement`)return Lh(e,t,n);if(t.type===`mdxjsEsm`)return Ih(e,t);if(t.type===`root`)return Rh(e,t,n);if(t.type===`text`)return zh(e,t)}function Ph(e,t,n){let r=e.schema,i=r;t.tagName.toLowerCase()===`svg`&&r.space===`html`&&(i=uh,e.schema=i),e.ancestors.push(t);let a=Yh(e,t.tagName,!1),o=Wh(e,t),s=Kh(e,t);return kh.has(t.tagName)&&(s=s.filter(function(e){return typeof e!=`string`||!Am(e)})),Bh(e,o,a,t),Vh(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function Fh(e,t){if(t.data&&t.data.estree&&e.evaluater){let n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}Xh(e,t.position)}function Ih(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Xh(e,t.position)}function Lh(e,t,n){let r=e.schema,i=r;t.name===`svg`&&r.space===`html`&&(i=uh,e.schema=i),e.ancestors.push(t);let a=t.name===null?e.Fragment:Yh(e,t.name,!0),o=Gh(e,t),s=Kh(e,t);return Bh(e,o,a,t),Vh(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function Rh(e,t,n){let r={};return Vh(r,Kh(e,t)),e.create(t,e.Fragment,r,n)}function zh(e,t){return t.value}function Bh(e,t,n,r){typeof n!=`string`&&n!==e.Fragment&&e.passNode&&(t.node=r)}function Vh(e,t){if(t.length>0){let n=t.length>1?t:t[0];n&&(e.children=n)}}function Hh(e,t,n){return r;function r(e,r,i,a){let o=Array.isArray(i.children)?n:t;return a?o(r,i,a):o(r,i)}}function Uh(e,t){return n;function n(n,r,i,a){let o=Array.isArray(i.children),s=_h(n);return t(r,i,a,o,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}function Wh(e,t){let n={},r,i;for(i in t.properties)if(i!==`children`&&Eh.call(t.properties,i)){let a=qh(e,i,t.properties[i]);if(a){let[i,o]=a;e.tableCellAlignToStyle&&i===`align`&&typeof o==`string`&&Ah.has(t.tagName)?r=o:n[i]=o}}if(r){let t=n.style||={};t[e.stylePropertyNameCase===`css`?`text-align`:`textAlign`]=r}return n}function Gh(e,t){let n={};for(let r of t.attributes)if(r.type===`mdxJsxExpressionAttribute`){if(r.data&&r.data.estree&&e.evaluater){let t=r.data.estree.body[0];t.type;let i=t.expression;i.type;let a=i.properties[0];a.type,Object.assign(n,e.evaluater.evaluateExpression(a.argument))}else Xh(e,t.position)}else{let i=r.name,a;if(r.value&&typeof r.value==`object`){if(r.value.data&&r.value.data.estree&&e.evaluater){let t=r.value.data.estree.body[0];t.type,a=e.evaluater.evaluateExpression(t.expression)}else Xh(e,t.position)}else a=r.value===null||r.value;n[i]=a}return n}function Kh(e,t){let n=[],r=-1,i=e.passKeys?new Map:Dh;for(;++r<t.children.length;){let a=t.children[r],o;if(e.passKeys){let e=a.type===`element`?a.tagName:a.type===`mdxJsxFlowElement`||a.type===`mdxJsxTextElement`?a.name:void 0;if(e){let t=i.get(e)||0;o=e+`-`+t,i.set(e,t+1)}}let s=Nh(e,a,o);s!==void 0&&n.push(s)}return n}function qh(e,t,n){let r=oh(e.schema,t);if(!(n==null||typeof n==`number`&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?wm(n):dh(n)),r.property===`style`){let t=typeof n==`object`?n:Jh(e,String(n));return e.stylePropertyNameCase===`css`&&(t=Zh(t)),[`style`,t]}return[e.elementAttributeNameCase===`react`&&r.space?nh[r.property]||r.property:r.attribute,n]}}function Jh(e,t){try{return(0,Th.default)(t,{reactCompat:!0})}catch(t){if(e.ignoreInvalidStyle)return{};let n=t,r=new wh("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:`style`,source:`hast-util-to-jsx-runtime`});throw r.file=e.filePath||void 0,r.url=jh+`#cannot-parse-style-attribute`,r}}function Yh(e,t,n){let r;if(!n)r={type:`Literal`,value:t};else if(t.includes(`.`)){let e=t.split(`.`),n=-1,i;for(;++n<e.length;){let t=Om(e[n])?{type:`Identifier`,name:e[n]}:{type:`Literal`,value:e[n]};i=i?{type:`MemberExpression`,object:i,property:t,computed:!!(n&&t.type===`Literal`),optional:!1}:t}r=i}else r=Om(t)&&!/^[a-z]/.test(t)?{type:`Identifier`,name:t}:{type:`Literal`,value:t};if(r.type===`Literal`){let t=r.value;return Eh.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);Xh(e)}function Xh(e,t){let n=new wh("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:`mdx-estree`,source:`hast-util-to-jsx-runtime`});throw n.file=e.filePath||void 0,n.url=jh+`#cannot-handle-mdx-estrees-without-createevaluater`,n}function Zh(e){let t={},n;for(n in e)Eh.call(e,n)&&(t[Qh(n)]=e[n]);return t}function Qh(e){let t=e.replace(Oh,$h);return t.slice(0,3)===`ms-`&&(t=`-`+t),t}function $h(e){return`-`+e.toLowerCase()}var eg={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`]},tg={};function ng(e,t){let n=t||tg;return rg(e,typeof n.includeImageAlt!=`boolean`||n.includeImageAlt,typeof n.includeHtml!=`boolean`||n.includeHtml)}function rg(e,t,n){if(ag(e)){if(`value`in e)return e.type===`html`&&!n?``:e.value;if(t&&`alt`in e&&e.alt)return e.alt;if(`children`in e)return ig(e.children,t,n)}return Array.isArray(e)?ig(e,t,n):``}function ig(e,t,n){let r=[],i=-1;for(;++i<e.length;)r[i]=rg(e[i],t,n);return r.join(``)}function ag(e){return!!(e&&typeof e==`object`)}var og=document.createElement(`i`);function sg(e){let t=`&`+e+`;`;og.innerHTML=t;let n=og.textContent;return n.charCodeAt(n.length-1)===59&&e!==`semi`?!1:n!==t&&n}function cg(e,t,n,r){let i=e.length,a=0,o;if(t=t<0?-t>i?0:i+t:t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);a<r.length;)o=r.slice(a,a+1e4),o.unshift(t,0),e.splice(...o),a+=1e4,t+=1e4}function lg(e,t){return e.length>0?(cg(e,e.length,0,t),e):t}var ug={}.hasOwnProperty;function dg(e){let t={},n=-1;for(;++n<e.length;)fg(t,e[n]);return t}function fg(e,t){let n;for(n in t){let r=(ug.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n],a;if(i)for(a in i){ug.call(r,a)||(r[a]=[]);let e=i[a];pg(r[a],Array.isArray(e)?e:e?[e]:[])}}}function pg(e,t){let n=-1,r=[];for(;++n<t.length;)(t[n].add===`after`?e:r).push(t[n]);cg(e,0,0,r)}function mg(e,t){let n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)==65535||(n&65535)==65534||n>1114111?`�`:String.fromCodePoint(n)}function hg(e){return e.replace(/[\t\n\r ]+/g,` `).replace(/^ | $/g,``).toLowerCase().toUpperCase()}var gg=Eg(/[A-Za-z]/),_g=Eg(/[\dA-Za-z]/),vg=Eg(/[#-'*+\--9=?A-Z^-~]/);function yg(e){return e!==null&&(e<32||e===127)}var bg=Eg(/\d/),xg=Eg(/[\dA-Fa-f]/),Sg=Eg(/[!-/:-@[-`{-~]/);function Z(e){return e!==null&&e<-2}function Cg(e){return e!==null&&(e<0||e===32)}function Q(e){return e===-2||e===-1||e===32}var wg=Eg(/\p{P}|\p{S}/u),Tg=Eg(/\s/);function Eg(e){return t;function t(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function Dg(e){let t=[],n=-1,r=0,i=0;for(;++n<e.length;){let a=e.charCodeAt(n),o=``;if(a===37&&_g(e.charCodeAt(n+1))&&_g(e.charCodeAt(n+2)))i=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(o=String.fromCharCode(a));else if(a>55295&&a<57344){let t=e.charCodeAt(n+1);a<56320&&t>56319&&t<57344?(o=String.fromCharCode(a,t),i=1):o=`�`}else o=String.fromCharCode(a);o&&=(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,``),i&&=(n+=i,0)}return t.join(``)+e.slice(r)}function $(e,t,n,r){let i=r?r-1:1/0,a=0;return o;function o(r){return Q(r)?(e.enter(n),s(r)):t(r)}function s(r){return Q(r)&&a++<i?(e.consume(r),s):(e.exit(n),t(r))}}function Og(e,t,n,r,i,a){let o=0;return s;function s(t){return a>0&&Q(t)?(e.enter(r),c(t)):l(t)}function c(t){return Q(t)&&o<a?(e.consume(t),o++,c):(e.exit(r),l(t))}function l(e){return o>=i?t(e):n(e)}}var kg={tokenize:Ag};function Ag(e){let t=e.attempt(this.parser.constructs.contentInitial,r,i),n;return t;function r(n){if(n===null)e.consume(n);else return e.enter(`lineEnding`),e.consume(n),e.exit(`lineEnding`),$(e,t,`linePrefix`)}function i(t){return e.enter(`paragraph`),a(t)}function a(t){let r=e.enter(`chunkText`,{contentType:`text`,previous:n});return n&&(n.next=r),n=r,o(t)}function o(t){if(t===null)e.exit(`chunkText`),e.exit(`paragraph`),e.consume(t);else return Z(t)?(e.consume(t),e.exit(`chunkText`),a):(e.consume(t),o)}}var jg=class{constructor(){this.index=new Map,this.map=[]}add(e,t,n){Mg(this,e,t,n,!1)}addBefore(e,t,n){Mg(this,e,t,n,!0)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),this.map.length===0)return;let t=this.map.length,n=[];for(;t>0;)--t,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(let t of r)e.push(t);r=n.pop()}this.map.length=0,this.index.clear()}};function Mg(e,t,n,r,i){if(n===0&&r.length===0)return;let a=e.index.get(t);if(a){a[1]+=n,i?(r.push(...a[2]),a[2]=r):a[2].push(...r);return}let o=[t,n,r];e.map.push(o),e.index.set(t,o)}var Ng={tokenize:Fg},Pg={tokenize:Ig};function Fg(e){let t=this,n=[],r=0,i,a,o;return s;function s(i){if(r<n.length){let a=n[r];return t.containerState=a[1],e.attempt(a[0].continuation,c,l)(i)}return l(i)}function c(e){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&v();let n=t.events.length,a=n,o;for(;a--;)if(t.events[a][0]===`exit`&&t.events[a][1].type===`chunkFlow`){o=t.events[a][1].end;break}_(r);let s=n;for(;s<t.events.length;)t.events[s][1].end={...o},s++;let c=new jg;return c.add(a+1,0,t.events.slice(n)),c.add(n,s-n,[]),c.consume(t.events),l(e)}return s(e)}function l(a){if(r===n.length){if(!i)return f(a);if(i.currentConstruct&&i.currentConstruct.concrete)return m(a);t.interrupt=!(!i.currentConstruct||i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Pg,u,d)(a)}function u(e){return i&&v(),_(r),f(e)}function d(e){return t.parser.lazy[t.now().line]=r!==n.length,o=t.now().offset,m(e)}function f(n){return t.containerState={},e.attempt(Pg,p,m)(n)}function p(e){return r++,n.push([t.currentConstruct,t.containerState]),f(e)}function m(n){if(n===null)i&&v(),_(0),e.consume(n);else return i||=t.parser.flow(t.now()),e.enter(`chunkFlow`,{_tokenizer:i,contentType:`flow`,previous:a}),h(n)}function h(n){if(n===null)g(e.exit(`chunkFlow`),!0),_(0),e.consume(n);else return Z(n)?(e.consume(n),g(e.exit(`chunkFlow`)),r=0,t.interrupt=void 0,s):(e.consume(n),h)}function g(e,n){let s=t.sliceStream(e);if(n&&s.push(null),e.previous=a,a&&(a.next=e),a=e,i.defineSkip(e.start),i.write(s),t.parser.lazy[e.start.line]){let e=i.events.length;for(;e--;)if(i.events[e][1].start.offset<o&&(!i.events[e][1].end||i.events[e][1].end.offset>o))return;let n=t.events.length,a=n,s,c;for(;a--;)if(t.events[a][0]===`exit`&&t.events[a][1].type===`chunkFlow`){if(s){c=t.events[a][1].end;break}s=!0}for(_(r),e=n;e<t.events.length;)t.events[e][1].end={...c},e++;let l=new jg;l.add(a+1,0,t.events.slice(n)),l.add(n,e-n,[]),l.consume(t.events)}}function _(r){let i=n.length;for(;i-->r;){let r=n[i];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function v(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function Ig(e,t,n){return $(e,e.attempt(this.parser.constructs.document,t,n),`linePrefix`,this.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)}function Lg(e){if(e===null||Cg(e)||Tg(e))return 1;if(wg(e))return 2}function Rg(e,t,n){let r=[],i=-1;for(;++i<e.length;){let a=e[i].resolveAll;a&&!r.includes(a)&&(t=a(t,n),r.push(a))}return t}var zg={name:`attention`,resolveAll:Bg,tokenize:Vg};function Bg(e,t){let n=-1,r;for(;++n<e.length;)if(e[n][0]===`enter`&&e[n][1].type===`attentionSequence`&&e[n][1]._close){let i=n;for(;i--;)if(e[i][0]===`exit`&&e[i][1].type===`attentionSequence`&&e[i][1]._open&&t.sliceSerialize(e[i][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[i][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[i][1].end.offset-e[i][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;let a=e[i][1].end.offset-e[i][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1,o={...e[i][1].end},s={...e[n][1].start};Hg(o,-a),Hg(s,a);let c={type:a>1?`strongSequence`:`emphasisSequence`,start:o,end:{...e[i][1].end}},l={type:a>1?`strongSequence`:`emphasisSequence`,start:{...e[n][1].start},end:s},u={type:a>1?`strongText`:`emphasisText`,start:{...e[i][1].end},end:{...e[n][1].start}},d={type:a>1?`strong`:`emphasis`,start:{...c.start},end:{...l.end}};e[i][1].end={...c.start},e[n][1].start={...l.end},r=[],e[i][1].end.offset-e[i][1].start.offset&&(r=lg(r,[[`enter`,e[i][1],t],[`exit`,e[i][1],t]])),r=lg(r,[[`enter`,d,t],[`enter`,c,t],[`exit`,c,t],[`enter`,u,t]]),r=lg(r,Rg(t.parser.constructs.insideSpan.null,e.slice(i+1,n),t)),r=lg(r,[[`exit`,u,t],[`enter`,l,t],[`exit`,l,t],[`exit`,d,t]]);let f=0;e[n][1].end.offset-e[n][1].start.offset&&(f=2,r=lg(r,[[`enter`,e[n][1],t],[`exit`,e[n][1],t]])),cg(e,i-1,n-i+3,r),n=i+r.length-f-2;break}}for(n=-1;++n<e.length;)e[n][1].type===`attentionSequence`&&(e[n][1].type=`data`);return e}function Vg(e,t){let n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=Lg(r),a;return o;function o(t){return a=t,e.enter(`attentionSequence`),s(t)}function s(o){if(o===a)return e.consume(o),s;let c=e.exit(`attentionSequence`),l=Lg(o),u=!l||l===2&&i||n.includes(o)&&o!==42&&o!==95,d=!i||i===2&&l||n.includes(r)&&r!==42&&r!==95;return c._open=!!(a===42?u:u&&(i||!d)),c._close=!!(a===42?d:d&&(l||!u)),t(o)}}function Hg(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}var Ug={name:`autolink`,tokenize:Wg};function Wg(e,t,n){let r=0;return i;function i(t){return e.enter(`autolink`),e.enter(`autolinkMarker`),e.consume(t),e.exit(`autolinkMarker`),e.enter(`autolinkProtocol`),a}function a(t){return gg(t)?(e.consume(t),o):t===64?n(t):l(t)}function o(e){return e===43||e===45||e===46||_g(e)?(r=1,s(e)):l(e)}function s(t){return t===58?(e.consume(t),r=0,c):(t===43||t===45||t===46||_g(t))&&r++<32?(e.consume(t),s):(r=0,l(t))}function c(r){return r===62?(e.exit(`autolinkProtocol`),e.enter(`autolinkMarker`),e.consume(r),e.exit(`autolinkMarker`),e.exit(`autolink`),t):r===null||r===32||r===60||yg(r)?n(r):(e.consume(r),c)}function l(t){return t===64?(e.consume(t),u):vg(t)?(e.consume(t),l):n(t)}function u(e){return _g(e)?d(e):n(e)}function d(n){return n===46?(e.consume(n),r=0,u):n===62?(e.exit(`autolinkProtocol`).type=`autolinkEmail`,e.enter(`autolinkMarker`),e.consume(n),e.exit(`autolinkMarker`),e.exit(`autolink`),t):f(n)}function f(t){if((t===45||_g(t))&&r++<63){let n=t===45?f:d;return e.consume(t),n}return n(t)}}var Gg={partial:!0,tokenize:Kg};function Kg(e,t,n){return r;function r(t){return Q(t)?$(e,i,`linePrefix`)(t):i(t)}function i(e){return e===null||Z(e)?t(e):n(e)}}var qg={continuation:{tokenize:Yg},exit:Xg,name:`blockQuote`,tokenize:Jg};function Jg(e,t,n){let r=this;return i;function i(t){if(t===62){let n=r.containerState;return n.open||=(e.enter(`blockQuote`,{_container:!0}),!0),e.enter(`blockQuotePrefix`),e.enter(`blockQuoteMarker`),e.consume(t),e.exit(`blockQuoteMarker`),a}return n(t)}function a(n){return Q(n)?(e.enter(`blockQuotePrefixWhitespace`),e.consume(n),e.exit(`blockQuotePrefixWhitespace`),e.exit(`blockQuotePrefix`),t):(e.exit(`blockQuotePrefix`),t(n))}}function Yg(e,t,n){let r=this;return i;function i(t){return Q(t)?$(e,a,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):a(t)}function a(r){return e.attempt(qg,t,n)(r)}}function Xg(e){e.exit(`blockQuote`)}var Zg={name:`characterEscape`,tokenize:Qg};function Qg(e,t,n){return r;function r(t){return e.enter(`characterEscape`),e.enter(`escapeMarker`),e.consume(t),e.exit(`escapeMarker`),i}function i(r){return Sg(r)?(e.enter(`characterEscapeValue`),e.consume(r),e.exit(`characterEscapeValue`),e.exit(`characterEscape`),t):n(r)}}var $g={name:`characterReference`,tokenize:e_};function e_(e,t,n){let r=this,i=0,a,o;return s;function s(t){return e.enter(`characterReference`),e.enter(`characterReferenceMarker`),e.consume(t),e.exit(`characterReferenceMarker`),c}function c(t){return t===35?(e.enter(`characterReferenceMarkerNumeric`),e.consume(t),e.exit(`characterReferenceMarkerNumeric`),l):(e.enter(`characterReferenceValue`),a=31,o=_g,u(t))}function l(t){return t===88||t===120?(e.enter(`characterReferenceMarkerHexadecimal`),e.consume(t),e.exit(`characterReferenceMarkerHexadecimal`),e.enter(`characterReferenceValue`),a=6,o=xg,u):(e.enter(`characterReferenceValue`),a=7,o=bg,u(t))}function u(s){if(s===59&&i){let i=e.exit(`characterReferenceValue`);return o===_g&&!sg(r.sliceSerialize(i))?n(s):(e.enter(`characterReferenceMarker`),e.consume(s),e.exit(`characterReferenceMarker`),e.exit(`characterReference`),t)}return o(s)&&i++<a?(e.consume(s),u):n(s)}}var t_={partial:!0,tokenize:n_};function n_(e,t,n){let r=this;return i;function i(t){return t===null?n(t):(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),a)}function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}var r_={concrete:!0,name:`codeFenced`,tokenize:i_};function i_(e,t,n){let r=this,i={partial:!0,tokenize:x},a=0,o=0,s;return c;function c(e){return l(e)}function l(t){let n=r.events[r.events.length-1];return a=n&&n[1].type===`linePrefix`?n[2].sliceSerialize(n[1],!0).length:0,s=t,e.enter(`codeFenced`),e.enter(`codeFencedFence`),e.enter(`codeFencedFenceSequence`),u(t)}function u(t){return t===s?(o++,e.consume(t),u):o<3?n(t):(e.exit(`codeFencedFenceSequence`),Q(t)?$(e,d,`whitespace`)(t):d(t))}function d(n){return n===null||Z(n)?(e.exit(`codeFencedFence`),r.interrupt?t(n):e.check(t_,h,b)(n)):(e.enter(`codeFencedFenceInfo`),e.enter(`chunkString`,{contentType:`string`}),f(n))}function f(t){return t===null||Z(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceInfo`),d(t)):Q(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceInfo`),$(e,p,`whitespace`)(t)):t===96&&t===s?n(t):(e.consume(t),f)}function p(t){return t===null||Z(t)?d(t):(e.enter(`codeFencedFenceMeta`),e.enter(`chunkString`,{contentType:`string`}),m(t))}function m(t){return t===null||Z(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceMeta`),d(t)):t===96&&t===s?n(t):(e.consume(t),m)}function h(t){return e.attempt(i,b,g)(t)}function g(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),_}function _(t){return a>0&&Q(t)?$(e,v,`linePrefix`,a+1)(t):v(t)}function v(t){return t===null||Z(t)?e.check(t_,h,b)(t):(e.enter(`codeFlowValue`),y(t))}function y(t){return t===null||Z(t)?(e.exit(`codeFlowValue`),v(t)):(e.consume(t),y)}function b(n){return e.exit(`codeFenced`),t(n)}function x(e,t,n){let i=0;return a;function a(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),c}function c(t){return e.enter(`codeFencedFence`),Q(t)?$(e,l,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):l(t)}function l(t){return t===s?(e.enter(`codeFencedFenceSequence`),u(t)):n(t)}function u(t){return t===s?(i++,e.consume(t),u):i>=o?(e.exit(`codeFencedFenceSequence`),Q(t)?$(e,d,`whitespace`)(t):d(t)):n(t)}function d(r){return r===null||Z(r)?(e.exit(`codeFencedFence`),t(r)):n(r)}}}var a_={name:`codeIndented`,tokenize:s_},o_={partial:!0,tokenize:c_};function s_(e,t,n){return r;function r(t){return e.enter(`codeIndented`),Og(e,i,n,`linePrefix`,4,4)(t)}function i(t){return t===null?o(t):Z(t)?e.attempt(o_,i,o)(t):(e.enter(`codeFlowValue`),a(t))}function a(t){return t===null||Z(t)?(e.exit(`codeFlowValue`),i(t)):(e.consume(t),a)}function o(n){return e.exit(`codeIndented`),t(n)}}function c_(e,t,n){let r=this;return i;function i(o){return r.parser.lazy[r.now().line]?n(o):Z(o)?(e.enter(`lineEnding`),e.consume(o),e.exit(`lineEnding`),i):Og(e,t,a,`linePrefix`,4,4)(o)}function a(e){return Z(e)?i(e):n(e)}}var l_={name:`codeText`,previous:d_,resolve:u_,tokenize:f_};function u_(e){let t=e.length-4,n=3,r,i;if((e[n][1].type===`lineEnding`||e[n][1].type===`space`)&&(e[t][1].type===`lineEnding`||e[t][1].type===`space`)){for(r=n;++r<t;)if(e[r][1].type===`codeTextData`){e[n][1].type=`codeTextPadding`,e[t][1].type=`codeTextPadding`,n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!==`lineEnding`&&(i=r):(r===t||e[r][1].type===`lineEnding`)&&(e[i][1].type=`codeTextData`,r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function d_(e){return e!==96||this.events[this.events.length-1][1].type===`characterEscape`}function f_(e,t,n){let r=0,i,a;return o;function o(t){return e.enter(`codeText`),e.enter(`codeTextSequence`),s(t)}function s(t){return t===96?(e.consume(t),r++,s):(e.exit(`codeTextSequence`),c(t))}function c(t){return t===null?n(t):t===32?(e.enter(`space`),e.consume(t),e.exit(`space`),c):t===96?(a=e.enter(`codeTextSequence`),i=0,u(t)):Z(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),c):(e.enter(`codeTextData`),l(t))}function l(t){return t===null||t===32||t===96||Z(t)?(e.exit(`codeTextData`),c(t)):(e.consume(t),l)}function u(n){return n===96?(e.consume(n),i++,u):i===r?(e.exit(`codeTextSequence`),e.exit(`codeText`),t(n)):(a.type=`codeTextData`,l(n))}}var p_=class{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw 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,t){let n=t??1/0;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){let r=t||0;this.setCursor(Math.trunc(e));let i=this.right.splice(this.right.length-r,1/0);return n&&m_(this.left,n),i.reverse()}pop(){return this.setCursor(1/0),this.left.pop()}push(e){this.setCursor(1/0),this.left.push(e)}pushMany(e){this.setCursor(1/0),m_(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),m_(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 t=this.left.splice(e,1/0);m_(this.right,t.reverse())}else{let t=this.right.splice(this.left.length+this.right.length-e,1/0);m_(this.left,t.reverse())}}}};function m_(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function h_(e){let t={},n=-1,r,i,a,o,s,c,l,u=new p_(e);for(;++n<u.length;){for(;n in t;)n=t[n];if(r=u.get(n),n&&r[1].type===`chunkFlow`&&u.get(n-1)[1].type===`listItemPrefix`&&(c=r[1]._tokenizer.events,a=0,a<c.length&&c[a][1].type===`lineEndingBlank`&&(a+=2),a<c.length&&c[a][1].type===`content`))for(;++a<c.length&&c[a][1].type!==`content`;)c[a][1].type===`chunkText`&&(c[a][1]._isInFirstContentOfListItem=!0,a++);if(r[0]===`enter`)r[1].contentType&&(Object.assign(t,g_(u,n)),n=t[n],l=!0);else if(r[1]._container){for(a=n,i=void 0;a--;)if(o=u.get(a),o[1].type===`lineEnding`||o[1].type===`lineEndingBlank`)o[0]===`enter`&&(i&&(u.get(i)[1].type=`lineEndingBlank`),o[1].type=`lineEnding`,i=a);else if(o[1].type!==`linePrefix`&&o[1].type!==`listItemIndent`)break;i&&(r[1].end={...u.get(i)[1].start},s=u.slice(i,n),s.unshift(r),u.splice(i,n-i+1,s))}}return cg(e,0,1/0,u.slice(0)),!l}function g_(e,t){let n=e.get(t)[1],r=e.get(t)[2],i=t-1,a=[],o=n._tokenizer;o||(o=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));let s=o.events,c=[],l={},u,d,f=-1,p=n,m=0,h=0,g=[h];for(;p;){for(;e.get(++i)[1]!==p;);a.push(i),p._tokenizer||(u=r.sliceStream(p),p.next||u.push(null),d&&o.defineSkip(p.start),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(u),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),d=p,p=p.next}for(p=n;++f<s.length;)s[f][0]===`exit`&&s[f-1][0]===`enter`&&s[f][1].type===s[f-1][1].type&&s[f][1].start.line!==s[f][1].end.line&&(h=f+1,g.push(h),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(o.events=[],p?(p._tokenizer=void 0,p.previous=void 0):g.pop(),f=g.length;f--;){let t=s.slice(g[f],g[f+1]),n=a.pop();c.push([n,n+t.length-1]),e.splice(n,2,t)}for(c.reverse(),f=-1;++f<c.length;)l[m+c[f][0]]=m+c[f][1],m+=c[f][1]-c[f][0]-1;return l}var __={resolve:y_,tokenize:b_},v_={partial:!0,tokenize:x_};function y_(e){return h_(e),e}function b_(e,t){let n;return r;function r(t){return e.enter(`content`),n=e.enter(`chunkContent`,{contentType:`content`}),i(t)}function i(t){return t===null?a(t):Z(t)?e.check(v_,o,a)(t):(e.consume(t),i)}function a(n){return e.exit(`chunkContent`),e.exit(`content`),t(n)}function o(t){return e.consume(t),e.exit(`chunkContent`),n.next=e.enter(`chunkContent`,{contentType:`content`,previous:n}),n=n.next,i}}function x_(e,t,n){let r=this;return i;function i(t){return e.exit(`chunkContent`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),$(e,a,`linePrefix`)}function a(i){if(i===null||Z(i))return n(i);let a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes(`codeIndented`)&&a&&a[1].type===`linePrefix`&&a[2].sliceSerialize(a[1],!0).length>=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}}function S_(e,t,n,r,i,a,o,s,c){let l=c||1/0,u=0;return d;function d(t){return t===60?(e.enter(r),e.enter(i),e.enter(a),e.consume(t),e.exit(a),f):t===null||t===32||t===41||yg(t)?n(t):(e.enter(r),e.enter(o),e.enter(s),e.enter(`chunkString`,{contentType:`string`}),h(t))}function f(n){return n===62?(e.enter(a),e.consume(n),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(s),e.enter(`chunkString`,{contentType:`string`}),p(n))}function p(t){return t===62?(e.exit(`chunkString`),e.exit(s),f(t)):t===null||t===60||Z(t)?n(t):(e.consume(t),t===92?m:p)}function m(t){return t===60||t===62||t===92?(e.consume(t),p):p(t)}function h(i){return!u&&(i===null||i===41||Cg(i))?(e.exit(`chunkString`),e.exit(s),e.exit(o),e.exit(r),t(i)):u<l&&i===40?(e.consume(i),u++,h):i===41?(e.consume(i),u--,h):i===null||i===32||i===40||yg(i)?n(i):(e.consume(i),i===92?g:h)}function g(t){return t===40||t===41||t===92?(e.consume(t),h):h(t)}}function C_(e,t,n,r,i,a){let o=this,s=0,c;return l;function l(t){return e.enter(r),e.enter(i),e.consume(t),e.exit(i),e.enter(a),u}function u(l){return s>999||l===null||l===91||l===93&&!c||l===94&&!s&&`_hiddenFootnoteSupport`in o.parser.constructs?n(l):l===93?(e.exit(a),e.enter(i),e.consume(l),e.exit(i),e.exit(r),t):Z(l)?(e.enter(`lineEnding`),e.consume(l),e.exit(`lineEnding`),u):(e.enter(`chunkString`,{contentType:`string`}),d(l))}function d(t){return t===null||t===91||t===93||Z(t)||s++>999?(e.exit(`chunkString`),u(t)):(e.consume(t),c||=!Q(t),t===92?f:d)}function f(t){return t===91||t===92||t===93?(e.consume(t),s++,d):d(t)}}function w_(e,t,n,r,i,a){let o;return s;function s(t){return t===34||t===39||t===40?(e.enter(r),e.enter(i),e.consume(t),e.exit(i),o=t===40?41:t,c):n(t)}function c(n){return n===o?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(a),l(n))}function l(t){return t===o?(e.exit(a),c(o)):t===null?n(t):Z(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),$(e,l,`linePrefix`)):(e.enter(`chunkString`,{contentType:`string`}),u(t))}function u(t){return t===o||t===null||Z(t)?(e.exit(`chunkString`),l(t)):(e.consume(t),t===92?d:u)}function d(t){return t===o||t===92?(e.consume(t),u):u(t)}}function T_(e,t){let n;return r;function r(i){return Z(i)?(e.enter(`lineEnding`),e.consume(i),e.exit(`lineEnding`),n=!0,r):Q(i)?$(e,r,n?`linePrefix`:`lineSuffix`)(i):t(i)}}var E_={name:`definition`,tokenize:O_},D_={partial:!0,tokenize:k_};function O_(e,t,n){let r=this,i;return a;function a(t){return e.enter(`definition`),o(t)}function o(t){return C_.call(r,e,s,n,`definitionLabel`,`definitionLabelMarker`,`definitionLabelString`)(t)}function s(t){return i=hg(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),t===58?(e.enter(`definitionMarker`),e.consume(t),e.exit(`definitionMarker`),c):n(t)}function c(t){return Cg(t)?T_(e,l)(t):l(t)}function l(t){return S_(e,u,n,`definitionDestination`,`definitionDestinationLiteral`,`definitionDestinationLiteralMarker`,`definitionDestinationRaw`,`definitionDestinationString`)(t)}function u(t){return e.attempt(D_,d,d)(t)}function d(t){return Q(t)?$(e,f,`whitespace`)(t):f(t)}function f(a){return a===null||Z(a)?(e.exit(`definition`),r.parser.defined.push(i),t(a)):n(a)}}function k_(e,t,n){return r;function r(t){return Cg(t)?T_(e,i)(t):n(t)}function i(t){return w_(e,a,n,`definitionTitle`,`definitionTitleMarker`,`definitionTitleString`)(t)}function a(t){return Q(t)?$(e,o,`whitespace`)(t):o(t)}function o(e){return e===null||Z(e)?t(e):n(e)}}var A_={name:`hardBreakEscape`,tokenize:j_};function j_(e,t,n){return r;function r(t){return e.enter(`hardBreakEscape`),e.consume(t),i}function i(r){return Z(r)?(e.exit(`hardBreakEscape`),t(r)):n(r)}}var M_={name:`headingAtx`,resolve:N_,tokenize:P_};function N_(e,t){let n=e.length-2,r=3;if(e[r][1].type===`whitespace`&&(r+=2),n-2>r&&e[n][1].type===`whitespace`&&(n-=2),e[n][1].type===`atxHeadingSequence`&&(r===n-1||n-4>r&&e[n-2][1].type===`whitespace`)&&(n-=r+1===n?2:4),n>r){let i={type:`atxHeadingText`,start:e[r][1].start,end:e[n][1].end},a={type:`chunkText`,start:e[r][1].start,end:e[n][1].end,contentType:`text`};cg(e,r,n-r+1,[[`enter`,i,t],[`enter`,a,t],[`exit`,a,t],[`exit`,i,t]])}return e}function P_(e,t,n){let r=0;return i;function i(t){return e.enter(`atxHeading`),a(t)}function a(t){return e.enter(`atxHeadingSequence`),o(t)}function o(t){return t===35&&r++<6?(e.consume(t),o):t===null||Cg(t)?(e.exit(`atxHeadingSequence`),s(t)):n(t)}function s(n){return n===35?(e.enter(`atxHeadingSequence`),c(n)):n===null||Z(n)?(e.exit(`atxHeading`),t(n)):Q(n)?$(e,s,`whitespace`)(n):(e.enter(`atxHeadingText`),l(n))}function c(t){return t===35?(e.consume(t),c):(e.exit(`atxHeadingSequence`),s(t))}function l(t){return t===null||t===35||Cg(t)?(e.exit(`atxHeadingText`),s(t)):(e.consume(t),l)}}var F_=`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`.split(`.`),I_=[`pre`,`script`,`style`,`textarea`],L_={concrete:!0,name:`htmlFlow`,resolveTo:z_,tokenize:B_},R_={partial:!0,tokenize:V_};function z_(e){let t=e.length;for(;t--&&(e[t][0]!==`enter`||e[t][1].type!==`htmlFlow`););return t>1&&e[t-2][1].type===`linePrefix`&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function B_(e,t,n){let r=this,i,a,o,s,c;return l;function l(e){return u(e)}function u(t){return e.enter(`htmlFlow`),e.enter(`htmlFlowData`),e.consume(t),d}function d(s){return s===33?(e.consume(s),f):s===47?(e.consume(s),a=!0,h):s===63?(e.consume(s),i=3,r.interrupt?t:ae):gg(s)?(e.consume(s),o=String.fromCharCode(s),g):n(s)}function f(a){return a===45?(e.consume(a),i=2,p):a===91?(e.consume(a),i=5,s=0,m):gg(a)?(e.consume(a),i=4,r.interrupt?t:ae):n(a)}function p(i){return i===45?(e.consume(i),r.interrupt?t:ae):n(i)}function m(i){return i===`CDATA[`.charCodeAt(s++)?(e.consume(i),s===6?r.interrupt?t:O:m):n(i)}function h(t){return gg(t)?(e.consume(t),o=String.fromCharCode(t),g):n(t)}function g(s){if(s===null||s===47||s===62||Cg(s)){let c=s===47,l=o.toLowerCase();return!c&&!a&&I_.includes(l)?(i=1,r.interrupt?t(s):O(s)):F_.includes(o.toLowerCase())?(i=6,c?(e.consume(s),_):r.interrupt?t(s):O(s)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(s):a?v(s):y(s))}return s===45||_g(s)?(e.consume(s),o+=String.fromCharCode(s),g):n(s)}function _(i){return i===62?(e.consume(i),r.interrupt?t:O):n(i)}function v(t){return Q(t)?(e.consume(t),v):E(t)}function y(t){return t===47?(e.consume(t),E):t===58||t===95||gg(t)?(e.consume(t),b):Q(t)?(e.consume(t),y):E(t)}function b(t){return t===45||t===46||t===58||t===95||_g(t)?(e.consume(t),b):x(t)}function x(t){return t===61?(e.consume(t),S):Q(t)?(e.consume(t),x):y(t)}function S(t){return t===null||t===60||t===61||t===62||t===96?n(t):t===34||t===39?(e.consume(t),c=t,C):Q(t)?(e.consume(t),S):w(t)}function C(t){return t===c?(e.consume(t),c=null,T):t===null||Z(t)?n(t):(e.consume(t),C)}function w(t){return t===null||t===34||t===39||t===47||t===60||t===61||t===62||t===96||Cg(t)?x(t):(e.consume(t),w)}function T(e){return e===47||e===62||Q(e)?y(e):n(e)}function E(t){return t===62?(e.consume(t),D):n(t)}function D(t){return t===null||Z(t)?O(t):Q(t)?(e.consume(t),D):n(t)}function O(t){return t===45&&i===2?(e.consume(t),re):t===60&&i===1?(e.consume(t),k):t===62&&i===4?(e.consume(t),oe):t===63&&i===3?(e.consume(t),ae):t===93&&i===5?(e.consume(t),A):Z(t)&&(i===6||i===7)?(e.exit(`htmlFlowData`),e.check(R_,se,ee)(t)):t===null||Z(t)?(e.exit(`htmlFlowData`),ee(t)):(e.consume(t),O)}function ee(t){return e.check(t_,te,se)(t)}function te(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),ne}function ne(t){return t===null||Z(t)?ee(t):(e.enter(`htmlFlowData`),O(t))}function re(t){return t===45?(e.consume(t),ae):O(t)}function k(t){return t===47?(e.consume(t),o=``,ie):O(t)}function ie(t){if(t===62){let n=o.toLowerCase();return I_.includes(n)?(e.consume(t),oe):O(t)}return gg(t)&&o.length<8?(e.consume(t),o+=String.fromCharCode(t),ie):O(t)}function A(t){return t===93?(e.consume(t),ae):O(t)}function ae(t){return t===62?(e.consume(t),oe):t===45&&i===2?(e.consume(t),ae):O(t)}function oe(t){return t===null||Z(t)?(e.exit(`htmlFlowData`),se(t)):(e.consume(t),oe)}function se(n){return e.exit(`htmlFlow`),t(n)}}function V_(e,t,n){return r;function r(r){return e.enter(`lineEnding`),e.consume(r),e.exit(`lineEnding`),e.attempt(Gg,t,n)}}var H_={name:`htmlText`,tokenize:U_};function U_(e,t,n){let r=this,i,a,o;return s;function s(t){return e.enter(`htmlText`),e.enter(`htmlTextData`),e.consume(t),c}function c(t){return t===33?(e.consume(t),l):t===47?(e.consume(t),x):t===63?(e.consume(t),y):gg(t)?(e.consume(t),w):n(t)}function l(t){return t===45?(e.consume(t),u):t===91?(e.consume(t),a=0,m):gg(t)?(e.consume(t),v):n(t)}function u(t){return t===45?(e.consume(t),p):n(t)}function d(t){return t===null?n(t):t===45?(e.consume(t),f):Z(t)?(o=d,k(t)):(e.consume(t),d)}function f(t){return t===45?(e.consume(t),p):d(t)}function p(e){return e===62?re(e):e===45?f(e):d(e)}function m(t){return t===`CDATA[`.charCodeAt(a++)?(e.consume(t),a===6?h:m):n(t)}function h(t){return t===null?n(t):t===93?(e.consume(t),g):Z(t)?(o=h,k(t)):(e.consume(t),h)}function g(t){return t===93?(e.consume(t),_):h(t)}function _(t){return t===62?re(t):t===93?(e.consume(t),_):h(t)}function v(t){return t===null||t===62?re(t):Z(t)?(o=v,k(t)):(e.consume(t),v)}function y(t){return t===null?n(t):t===63?(e.consume(t),b):Z(t)?(o=y,k(t)):(e.consume(t),y)}function b(e){return e===62?re(e):y(e)}function x(t){return gg(t)?(e.consume(t),S):n(t)}function S(t){return t===45||_g(t)?(e.consume(t),S):C(t)}function C(t){return Z(t)?(o=C,k(t)):Q(t)?(e.consume(t),C):re(t)}function w(t){return t===45||_g(t)?(e.consume(t),w):t===47||t===62||Cg(t)?T(t):n(t)}function T(t){return t===47?(e.consume(t),re):t===58||t===95||gg(t)?(e.consume(t),E):Z(t)?(o=T,k(t)):Q(t)?(e.consume(t),T):re(t)}function E(t){return t===45||t===46||t===58||t===95||_g(t)?(e.consume(t),E):D(t)}function D(t){return t===61?(e.consume(t),O):Z(t)?(o=D,k(t)):Q(t)?(e.consume(t),D):T(t)}function O(t){return t===null||t===60||t===61||t===62||t===96?n(t):t===34||t===39?(e.consume(t),i=t,ee):Z(t)?(o=O,k(t)):Q(t)?(e.consume(t),O):(e.consume(t),te)}function ee(t){return t===i?(e.consume(t),i=void 0,ne):t===null?n(t):Z(t)?(o=ee,k(t)):(e.consume(t),ee)}function te(t){return t===null||t===34||t===39||t===60||t===61||t===96?n(t):t===47||t===62||Cg(t)?T(t):(e.consume(t),te)}function ne(e){return e===47||e===62||Cg(e)?T(e):n(e)}function re(r){return r===62?(e.consume(r),e.exit(`htmlTextData`),e.exit(`htmlText`),t):n(r)}function k(t){return e.exit(`htmlTextData`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),ie}function ie(t){return Q(t)?$(e,A,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):A(t)}function A(t){return e.enter(`htmlTextData`),o(t)}}var W_={name:`labelEnd`,resolveAll:J_,resolveTo:Y_,tokenize:X_},G_={tokenize:Z_},K_={tokenize:Q_},q_={tokenize:$_};function J_(e){let t=-1,n=[];for(;++t<e.length;){let r=e[t][1];if(n.push(e[t]),r.type===`labelImage`||r.type===`labelLink`||r.type===`labelEnd`){let e=r.type===`labelImage`?4:2;r.type=`data`,t+=e}}return e.length!==n.length&&cg(e,0,e.length,n),e}function Y_(e,t){let n=e.length,r=0,i,a,o;for(;n--;){let t=e[n][1];if(i){if(t.type===`link`||t.type===`labelLink`&&t._inactive)break;e[n][0]===`enter`&&t.type===`labelLink`&&(t._inactive=!0)}else if(a){if(e[n][0]===`enter`&&(t.type===`labelImage`||t.type===`labelLink`)&&!t._balanced&&(i=n,t.type!==`labelLink`)){r=2;break}}else t.type===`labelEnd`&&(a=n)}let s={type:e[i][1].type===`labelLink`?`link`:`image`,start:{...e[i][1].start},end:{...e[e.length-1][1].end}},c={type:`label`,start:{...e[i][1].start},end:{...e[a][1].end}},l={type:`labelText`,start:{...e[i+r+2][1].end},end:{...e[a-2][1].start}};return o=[[`enter`,s,t],[`enter`,c,t]],o=lg(o,e.slice(i+1,i+r+3)),o=lg(o,[[`enter`,l,t]]),o=lg(o,Rg(t.parser.constructs.insideSpan.null,e.slice(i+r+4,a-3),t)),o=lg(o,[[`exit`,l,t],e[a-2],e[a-1],[`exit`,c,t]]),o=lg(o,e.slice(a+1)),o=lg(o,[[`exit`,s,t]]),cg(e,i,e.length,o),e}function X_(e,t,n){let r=this,i=r._labelStarts,a,o;if(i){for(;i.length>0&&i[i.length-1]._balanced;)i.pop();a=i[i.length-1]}return s;function s(t){return a?a._inactive?d(t):(o=r.parser.defined.includes(hg(r.sliceSerialize({start:a.end,end:r.now()}))),e.enter(`labelEnd`),e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),e.exit(`labelEnd`),c):n(t)}function c(t){return t===40?e.attempt(G_,u,o?u:d)(t):t===91?e.attempt(K_,u,o?l:d)(t):o?u(t):d(t)}function l(t){return e.attempt(q_,u,d)(t)}function u(e){return i.pop(),t(e)}function d(e){return a._balanced=!0,n(e)}}function Z_(e,t,n){return r;function r(t){return e.enter(`resource`),e.enter(`resourceMarker`),e.consume(t),e.exit(`resourceMarker`),i}function i(t){return Cg(t)?T_(e,a)(t):a(t)}function a(t){return t===41?u(t):S_(e,o,s,`resourceDestination`,`resourceDestinationLiteral`,`resourceDestinationLiteralMarker`,`resourceDestinationRaw`,`resourceDestinationString`,32)(t)}function o(t){return Cg(t)?T_(e,c)(t):u(t)}function s(e){return n(e)}function c(t){return t===34||t===39||t===40?w_(e,l,n,`resourceTitle`,`resourceTitleMarker`,`resourceTitleString`)(t):u(t)}function l(t){return Cg(t)?T_(e,u)(t):u(t)}function u(r){return r===41?(e.enter(`resourceMarker`),e.consume(r),e.exit(`resourceMarker`),e.exit(`resource`),t):n(r)}}function Q_(e,t,n){let r=this;return i;function i(t){return C_.call(r,e,a,o,`reference`,`referenceMarker`,`referenceString`)(t)}function a(e){return r.parser.defined.includes(hg(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function o(e){return n(e)}}function $_(e,t,n){return r;function r(t){return e.enter(`reference`),e.enter(`referenceMarker`),e.consume(t),e.exit(`referenceMarker`),i}function i(r){return r===93?(e.enter(`referenceMarker`),e.consume(r),e.exit(`referenceMarker`),e.exit(`reference`),t):n(r)}}var ev={name:`labelStartImage`,resolveAll:W_.resolveAll,tokenize:tv};function tv(e,t,n){let r=this,i;return a;function a(t){return e.enter(`labelImage`),e.enter(`labelImageMarker`),e.consume(t),e.exit(`labelImageMarker`),o}function o(t){return t===91?(e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),i=e.exit(`labelImage`),s):n(t)}function s(e){return e===94&&`_hiddenFootnoteSupport`in r.parser.constructs?n(e):(r._labelStarts=r._labelStarts||[],r._labelStarts.push(i),t(e))}}var nv={name:`labelStartLink`,resolveAll:W_.resolveAll,tokenize:rv};function rv(e,t,n){let r=this,i;return a;function a(t){return e.enter(`labelLink`),e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),i=e.exit(`labelLink`),o}function o(e){return e===94&&`_hiddenFootnoteSupport`in r.parser.constructs?n(e):(r._labelStarts=r._labelStarts||[],r._labelStarts.push(i),t(e))}}var iv={name:`lineEnding`,tokenize:av};function av(e,t){return n;function n(n){return e.enter(`lineEnding`),e.consume(n),e.exit(`lineEnding`),$(e,t,`linePrefix`)}}var ov={name:`thematicBreak`,tokenize:sv};function sv(e,t,n){let r=0,i;return a;function a(t){return e.enter(`thematicBreak`),o(t)}function o(e){return i=e,s(e)}function s(a){return a===i?(e.enter(`thematicBreakSequence`),c(a)):r>=3&&(a===null||Z(a))?(e.exit(`thematicBreak`),t(a)):n(a)}function c(t){return t===i?(e.consume(t),r++,c):(e.exit(`thematicBreakSequence`),Q(t)?$(e,s,`whitespace`)(t):s(t))}}var cv={continuation:{tokenize:fv},exit:mv,name:`list`,tokenize:dv},lv={partial:!0,tokenize:hv},uv={partial:!0,tokenize:pv};function dv(e,t,n){let r=this,i=r.events[r.events.length-1],a=i&&i[1].type===`linePrefix`?i[2].sliceSerialize(i[1],!0).length:0,o=0;return s;function s(t){let i=r.containerState.type||(t===42||t===43||t===45?`listUnordered`:`listOrdered`);if(i===`listUnordered`?!r.containerState.marker||t===r.containerState.marker:bg(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),i===`listUnordered`)return e.enter(`listItemPrefix`),t===42||t===45?e.check(ov,n,l)(t):l(t);if(!r.interrupt||t===49)return e.enter(`listItemPrefix`),e.enter(`listItemValue`),c(t)}return n(t)}function c(t){return bg(t)&&++o<10?(e.consume(t),c):(!r.interrupt||o<2)&&(r.containerState.marker?t===r.containerState.marker:t===41||t===46)?(e.exit(`listItemValue`),l(t)):n(t)}function l(t){return e.enter(`listItemMarker`),e.consume(t),e.exit(`listItemMarker`),r.containerState.marker=r.containerState.marker||t,e.check(Gg,r.interrupt?n:u,e.attempt(lv,f,d))}function u(e){return r.containerState.initialBlankLine=!0,a++,f(e)}function d(t){return Q(t)?(e.enter(`listItemPrefixWhitespace`),e.consume(t),e.exit(`listItemPrefixWhitespace`),f):n(t)}function f(n){return r.containerState.size=a+r.sliceSerialize(e.exit(`listItemPrefix`),!0).length,t(n)}}function fv(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(Gg,i,a);function i(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,$(e,t,`listItemIndent`,r.containerState.size+1)(n)}function a(n){return r.containerState.furtherBlankLines||!Q(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(uv,t,o)(n))}function o(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,$(e,e.attempt(cv,t,n),`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(i)}}function pv(e,t,n){let r=this;return $(e,i,`listItemIndent`,r.containerState.size+1);function i(e){let i=r.events[r.events.length-1];return i&&i[1].type===`listItemIndent`&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)}}function mv(e){e.exit(this.containerState.type)}function hv(e,t,n){let r=this;return $(e,i,`listItemPrefixWhitespace`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:5);function i(e){let i=r.events[r.events.length-1];return!Q(e)&&i&&i[1].type===`listItemPrefixWhitespace`?t(e):n(e)}}var gv={name:`setextUnderline`,resolveTo:_v,tokenize:vv};function _v(e,t){let n=new jg,r=e.length,i,a,o;for(;r--;)if(e[r][0]===`enter`){if(e[r][1].type===`content`){i=r;break}e[r][1].type===`paragraph`&&(a=r)}else e[r][1].type===`content`&&n.add(r,1,[]),!o&&e[r][1].type===`definition`&&(o=r);let s={type:`setextHeading`,start:{...e[i][1].start},end:{...e[e.length-1][1].end}};return e[a][1].type=`setextHeadingText`,o?(n.add(a,0,[[`enter`,s,t]]),n.add(o+1,0,[[`exit`,e[i][1],t]]),e[i][1].end={...e[o][1].end}):e[i][1]=s,n.add(e.length,0,[[`exit`,s,t]]),n.consume(e),e}function vv(e,t,n){let r=this,i;return a;function a(t){let a=r.events.length,s;for(;a--;)if(r.events[a][1].type!==`lineEnding`&&r.events[a][1].type!==`linePrefix`&&r.events[a][1].type!==`content`){s=r.events[a][1].type===`paragraph`;break}return!r.parser.lazy[r.now().line]&&(r.interrupt||s)?(e.enter(`setextHeadingLine`),i=t,o(t)):n(t)}function o(t){return e.enter(`setextHeadingLineSequence`),s(t)}function s(t){return t===i?(e.consume(t),s):(e.exit(`setextHeadingLineSequence`),Q(t)?$(e,c,`lineSuffix`)(t):c(t))}function c(r){return r===null||Z(r)?(e.exit(`setextHeadingLine`),t(r)):n(r)}}var yv={tokenize:bv};function bv(e){let t=this,n=e.attempt(Gg,r,e.attempt(this.parser.constructs.flowInitial,i,$(e,e.attempt(this.parser.constructs.flow,i,e.attempt(__,i)),`linePrefix`)));return n;function r(r){if(r===null)e.consume(r);else return e.enter(`lineEndingBlank`),e.consume(r),e.exit(`lineEndingBlank`),t.currentConstruct=void 0,n}function i(r){if(r===null)e.consume(r);else return e.enter(`lineEnding`),e.consume(r),e.exit(`lineEnding`),t.currentConstruct=void 0,n}}var xv={resolveAll:Tv()},Sv=wv(`string`),Cv=wv(`text`);function wv(e){return{resolveAll:Tv(e===`text`?Ev:void 0),tokenize:t};function t(t){let n=this,r=this.parser.constructs[e],i=t.attempt(r,a,o);return a;function a(e){return c(e)?i(e):o(e)}function o(e){if(e===null)t.consume(e);else return t.enter(`data`),t.consume(e),s}function s(e){return c(e)?(t.exit(`data`),i(e)):(t.consume(e),s)}function c(e){if(e===null)return!0;let t=r[e],i=-1;if(t)for(;++i<t.length;){let e=t[i];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}function Tv(e){return t;function t(t,n){let r=-1,i;for(;++r<=t.length;)i===void 0?t[r]&&t[r][1].type===`data`&&(i=r,r++):t[r]&&t[r][1].type===`data`||(r!==i+2&&(t[i][1].end=t[r-1][1].end,t.splice(i+2,r-i-2),r=i+2),i=void 0);return e?e(t,n):t}}function Ev(e,t){let n=new jg,r=0;for(;++r<=e.length;)if((r===e.length||e[r][1].type===`lineEnding`)&&e[r-1][1].type===`data`){let i=e[r-1][1],a=t.sliceStream(i),o=a.length,s=-1,c=0,l;for(;o--;){let e=a[o];if(typeof e==`string`){for(s=e.length;e.charCodeAt(s-1)===32;)c++,s--;if(s)break;s=-1}else if(e===-2)l=!0,c++;else if(e!==-1){o++;break}}if(t._contentTypeTextTrailing&&r===e.length&&(c=0),c){let a={type:r===e.length||l||c<2?`lineSuffix`:`hardBreakTrailing`,start:{_bufferIndex:o?s:i.start._bufferIndex+s,_index:i.start._index+o,line:i.end.line,column:i.end.column-c,offset:i.end.offset-c},end:{...i.end}};i.end={...a.start},i.start.offset===i.end.offset?Object.assign(i,a):n.add(r,0,[[`enter`,a,t],[`exit`,a,t]])}r++}return n.consume(e),e}var Dv=s({attentionMarkers:()=>Fv,contentInitial:()=>kv,disable:()=>Iv,document:()=>Ov,flow:()=>jv,flowInitial:()=>Av,insideSpan:()=>Pv,string:()=>Mv,text:()=>Nv}),Ov={42:cv,43:cv,45:cv,48:cv,49:cv,50:cv,51:cv,52:cv,53:cv,54:cv,55:cv,56:cv,57:cv,62:qg},kv={91:E_},Av={[-2]:a_,[-1]:a_,32:a_},jv={35:M_,42:ov,45:[gv,ov],60:L_,61:gv,95:ov,96:r_,126:r_},Mv={38:$g,92:Zg},Nv={[-5]:iv,[-4]:iv,[-3]:iv,33:ev,38:$g,42:zg,60:[Ug,H_],91:nv,92:[A_,Zg],93:W_,95:zg,96:l_},Pv={null:[zg,xv]},Fv={null:[42,95]},Iv={null:[]};function Lv(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0},i={},a=[],o=[],s=[],c={attempt:C(x),check:C(S),consume:v,enter:y,exit:b,interrupt:C(S,{interrupt:!0})},l={code:null,containerState:{},defineSkip:h,events:[],now:m,parser:e,previous:null,sliceSerialize:f,sliceStream:p,write:d},u=t.tokenize.call(l,c);return t.resolveAll&&a.push(t),l;function d(e){return o=lg(o,e),g(),o[o.length-1]===null?(w(t,0),l.events=Rg(a,l.events,l),l.events):[]}function f(e,t){return zv(p(e),t)}function p(e){return Rv(o,e)}function m(){let{_bufferIndex:e,_index:t,line:n,column:i,offset:a}=r;return{_bufferIndex:e,_index:t,line:n,column:i,offset:a}}function h(e){i[e.line]=e.column,E()}function g(){for(;r._index<o.length;){let e=o[r._index];if(typeof e==`string`){let t=r._index;for(r._bufferIndex<0&&(r._bufferIndex=0);r._index===t&&r._bufferIndex<e.length;)_(e.charCodeAt(r._bufferIndex))}else _(e)}}function _(e){u=u(e)}function v(e){Z(e)?(r.line++,r.column=1,r.offset+=e===-3?2:1,E()):e!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),l.previous=e}function y(e,t){let n=t||{};return n.type=e,n.start=m(),l.events.push([`enter`,n,l]),s.push(n),n}function b(e){let t=s.pop();return t.end=m(),l.events.push([`exit`,t,l]),t}function x(e,t){w(e,t.from)}function S(e,t){t.restore()}function C(e,t){return n;function n(n,r,i){let a,o,s,u;return Array.isArray(n)?f(n):`tokenize`in n?f([n]):d(n);function d(e){return t;function t(t){let n=t!==null&&e[t],r=t!==null&&e.null;return f([...Array.isArray(n)?n:n?[n]:[],...Array.isArray(r)?r:r?[r]:[]])(t)}}function f(e){return a=e,o=0,e.length===0?i:p(e[o])}function p(e){return n;function n(n){return u=T(),s=e,e.partial||(l.currentConstruct=e),e.name&&l.parser.constructs.disable.null.includes(e.name)?h(n):e.tokenize.call(t?Object.assign(Object.create(l),t):l,c,m,h)(n)}}function m(t){return e(s,u),r}function h(e){return u.restore(),++o<a.length?p(a[o]):i}}}function w(e,t){e.resolveAll&&!a.includes(e)&&a.push(e),e.resolve&&cg(l.events,t,l.events.length-t,e.resolve(l.events.slice(t),l)),e.resolveTo&&(l.events=e.resolveTo(l.events,l))}function T(){let e=m(),t=l.previous,n=l.currentConstruct,i=l.events.length,a=Array.from(s);return{from:i,restore:o};function o(){r=e,l.previous=t,l.currentConstruct=n,l.events.length=i,s=a,E()}}function E(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function Rv(e,t){let n=t.start._index,r=t.start._bufferIndex,i=t.end._index,a=t.end._bufferIndex,o;if(n===i)o=[e[n].slice(r,a)];else{if(o=e.slice(n,i),r>-1){let e=o[0];typeof e==`string`?o[0]=e.slice(r):o.shift()}a>0&&o.push(e[i].slice(0,a))}return o}function zv(e,t){let n=-1,r=[],i;for(;++n<e.length;){let a=e[n],o;if(typeof a==`string`)o=a;else switch(a){case-5:o=`\r`;break;case-4:o=`
|
|
20
|
-
`;break;case-3:o=`\r
|
|
21
|
-
`;break;case-2:o=t?` `:` `;break;case-1:if(!t&&i)continue;o=` `;break;default:o=String.fromCharCode(a)}i=a===-2,r.push(o)}return r.join(``)}function Bv(e){let t={constructs:dg([Dv,...(e||{}).extensions||[]]),content:n(kg),defined:[],document:n(Ng),flow:n(yv),lazy:{},string:n(Sv),text:n(Cv)};return t;function n(e){return n;function n(n){return Lv(t,e,n)}}}function Vv(e){for(;!h_(e););return e}var Hv=/[\0\t\n\r]/g;function Uv(){let e=1,t=``,n=!0,r;return i;function i(i,a,o){i=t+(typeof i==`string`?i.toString():new TextDecoder(a||void 0).decode(i));let s=[],c=0;for(t=``,n&&=(i.charCodeAt(0)===65279&&c++,void 0);c<i.length;){Hv.lastIndex=c;let n=Hv.exec(i),a=n&&n.index!==void 0?n.index:i.length,o=i.charCodeAt(a);if(!n){t=i.slice(c);break}if(o===10&&c===a&&r)s.push(-3),r=void 0;else switch(r&&=(s.push(-5),void 0),c<a&&(s.push(i.slice(c,a)),e+=a-c),o){case 0:s.push(65533),e++;break;case 9:{let t=Math.ceil(e/4)*4;for(s.push(-2);e++<t;)s.push(-1);break}case 10:s.push(-4),e=1;break;default:r=!0,e=1}c=a+1}return o&&(r&&s.push(-5),t&&s.push(t),s.push(null)),s}}var Wv=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Gv(e){return e.replace(Wv,Kv)}function Kv(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){let e=n.charCodeAt(1),t=e===120||e===88;return mg(n.slice(t?2:1),t?16:10)}return sg(n)||e}var qv={}.hasOwnProperty;function Jv(e,t,n){return t&&typeof t==`object`&&(n=t,t=void 0),Yv(n)(Vv(Bv(n).document().write(Uv()(e,t,!0))))}function Yv(e){let t={afterExit:[],beforeEnter:[],transforms:[],canContainEols:[`emphasis`,`fragment`,`heading`,`paragraph`,`strong`],enter:{autolink:o(Ce),autolinkProtocol:E,autolinkEmail:E,atxHeading:o(M),blockQuote:o(ge),characterEscape:E,characterReference:E,codeFenced:o(_e),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:o(_e,s),codeText:o(ve,s),codeTextData:E,data:E,codeFlowValue:E,definition:o(ye),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:o(j),hardBreakEscape:o(be),hardBreakTrailing:o(be),htmlFlow:o(xe,s),htmlFlowData:E,htmlText:o(xe,s),htmlTextData:E,image:o(Se),label:s,link:o(Ce),listItem:o(Te),listItemValue:p,listOrdered:o(we,f),listUnordered:o(we),paragraph:o(Ee),reference:le,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:o(M),strong:o(De),thematicBreak:o(ke)},exit:{atxHeading:l(),atxHeadingSequence:S,autolink:l(),autolinkEmail:he,autolinkProtocol:me,blockQuote:l(),characterEscapeValue:D,characterReferenceMarkerHexadecimal:de,characterReferenceMarkerNumeric:de,characterReferenceValue:fe,characterReference:pe,codeFenced:l(_),codeFencedFence:g,codeFencedFenceInfo:m,codeFencedFenceMeta:h,codeFlowValue:D,codeIndented:l(v),codeText:l(re),codeTextData:D,data:D,definition:l(),definitionDestinationString:x,definitionLabelString:y,definitionTitleString:b,emphasis:l(),hardBreakEscape:l(ee),hardBreakTrailing:l(ee),htmlFlow:l(te),htmlFlowData:D,htmlText:l(ne),htmlTextData:D,image:l(ie),label:ae,labelText:A,lineEnding:O,link:l(k),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:ue,resourceDestinationString:oe,resourceTitleString:se,resource:ce,setextHeading:l(T),setextHeadingLineSequence:w,setextHeadingText:C,strong:l(),thematicBreak:l()}};Zv(t,(e||{}).mdastExtensions||[]);let n={};return r;function r(e){let r={type:`root`,children:[],position:void 0},o={stack:[r],tokenStack:[],config:t,enter:c,exit:u,buffer:s,resume:d,data:n},l=[],f=[],p=-1;for(;++p<e.length;)f.push(e[p]),(e[p][1].type===`listOrdered`||e[p][1].type===`listUnordered`)&&(e[p][0]===`enter`?l.push(f.length-1):a(f,l.pop()));for(e=f,p=-1;++p<e.length;){let n=t[e[p][0]];e[p][0]===`enter`&&t.beforeEnter.length>0&&i(t.beforeEnter,{...o,sliceSerialize:e[p][2].sliceSerialize},e[p][1]),qv.call(n,e[p][1].type)&&n[e[p][1].type].call({...o,sliceSerialize:e[p][2].sliceSerialize},e[p][1]),e[p][0]===`exit`&&t.afterExit.length>0&&i(t.afterExit,{...o,sliceSerialize:e[p][2].sliceSerialize},e[p][1])}if(o.tokenStack.length>0){let e=o.tokenStack[o.tokenStack.length-1];(e[1]||$v).call(o,void 0,e[0])}for(r.position={start:Xv(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:Xv(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},p=-1;++p<t.transforms.length;)r=t.transforms[p](r)||r;return r}function i(e,t,n){let r=-1;for(;++r<e.length;)e[r].call(t,n)}function a(e,t){let n=e.length-1,r=t-1,i=-1,a=!1,o,s,c,l,u=[];for(;++r<=n;){let t=e[r];switch(t[1].type){case`listUnordered`:case`listOrdered`:case`blockQuote`:t[0]===`enter`?i++:i--,l=void 0;break;case`lineEndingBlank`:t[0]===`enter`&&(o&&!l&&!i&&!c&&(c=r),l=void 0);break;case`linePrefix`:case`listItemValue`:case`listItemMarker`:case`listItemPrefix`:case`listItemPrefixWhitespace`:break;default:l=void 0}if(!i&&t[0]===`enter`&&t[1].type===`listItemPrefix`||i===-1&&t[0]===`exit`&&(t[1].type===`listUnordered`||t[1].type===`listOrdered`)){if(o){let n=r;for(s=void 0;n--;){let t=e[n];if(t[1].type===`lineEnding`||t[1].type===`lineEndingBlank`){if(t[0]===`exit`)continue;s&&(e[s][1].type=`lineEndingBlank`,a=!0),t[1].type=`lineEnding`,s=n}else if(t[1].type!==`linePrefix`&&t[1].type!==`blockQuotePrefix`&&t[1].type!==`blockQuotePrefixWhitespace`&&t[1].type!==`blockQuoteMarker`&&t[1].type!==`listItemIndent`)break}c&&(!s||c<s)&&(o._spread=!0),o.end=Object.assign({},s?e[s][1].start:t[1].end),u.push({at:s||r,event:[`exit`,o,t[2]]})}if(t[1].type===`listItemPrefix`){let e={type:`listItem`,_spread:!1,start:Object.assign({},t[1].start),end:void 0};o=e,u.push({at:r,event:[`enter`,e,t[2]]}),c=void 0,l=!0}}}let d=e.splice(t),f=0;for(r=-1;++r<d.length;){for(;f<u.length&&u[f].at===t+r;)e.push(u[f++].event);e.push(d[r])}e[t][1]._spread=a}function o(e,t){return n;function n(n){c.call(this,e(n),n),t&&t.call(this,n)}}function s(){this.stack.push({type:`fragment`,children:[]})}function c(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:Xv(t.start),end:void 0}}function l(e){return t;function t(t){e&&e.call(this,t),u.call(this,t)}}function u(e,t){let n=this.stack.pop(),r=this.tokenStack.pop();if(!r)throw Error("Cannot close `"+e.type+"` ("+bh({start:e.start,end:e.end})+`): it’s not open`);r[0].type!==e.type&&(t?t.call(this,e,r[0]):(r[1]||$v).call(this,e,r[0])),n.position.end=Xv(e.end)}function d(){return ng(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function p(e){if(this.data.expectingFirstListItemValue){let t=this.stack[this.stack.length-2];t.start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0}}function m(){let e=this.resume(),t=this.stack[this.stack.length-1];t.lang=e}function h(){let e=this.resume(),t=this.stack[this.stack.length-1];t.meta=e}function g(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function _(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,``),this.data.flowCodeInside=void 0}function v(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e.replace(/(\r?\n|\r)$/g,``)}function y(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=hg(this.sliceSerialize(e)).toLowerCase()}function b(){let e=this.resume(),t=this.stack[this.stack.length-1];t.title=e}function x(){let e=this.resume(),t=this.stack[this.stack.length-1];t.url=e}function S(e){let t=this.stack[this.stack.length-1];t.depth||=this.sliceSerialize(e).length}function C(){this.data.setextHeadingSlurpLineEnding=!0}function w(e){let t=this.stack[this.stack.length-1];t.depth=this.sliceSerialize(e).codePointAt(0)===61?1:2}function T(){this.data.setextHeadingSlurpLineEnding=void 0}function E(e){let t=this.stack[this.stack.length-1].children,n=t[t.length-1];n&&n.type===`text`||(n=Oe(),n.position={start:Xv(e.start),end:void 0},t.push(n)),this.stack.push(n)}function D(e){let t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=Xv(e.end)}function O(e){let n=this.stack[this.stack.length-1];if(this.data.atHardBreak){let t=n.children[n.children.length-1];t.position.end=Xv(e.end),this.data.atHardBreak=void 0}else!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(E.call(this,e),D.call(this,e))}function ee(){this.data.atHardBreak=!0}function te(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function ne(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function re(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function k(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||`shortcut`;e.type+=`Reference`,e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function ie(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||`shortcut`;e.type+=`Reference`,e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function A(e){let t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=Gv(t),n.identifier=hg(t).toLowerCase()}function ae(){let e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];this.data.inReference=!0,n.type===`link`?n.children=e.children:n.alt=t}function oe(){let e=this.resume(),t=this.stack[this.stack.length-1];t.url=e}function se(){let e=this.resume(),t=this.stack[this.stack.length-1];t.title=e}function ce(){this.data.inReference=void 0}function le(){this.data.referenceType=`collapsed`}function ue(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=hg(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType=`full`}function de(e){this.data.characterReferenceType=e.type}function fe(e){let t=this.sliceSerialize(e),n=this.data.characterReferenceType,r;n?(r=mg(t,n===`characterReferenceMarkerNumeric`?10:16),this.data.characterReferenceType=void 0):r=sg(t);let i=this.stack[this.stack.length-1];i.value+=r}function pe(e){let t=this.stack.pop();t.position.end=Xv(e.end)}function me(e){D.call(this,e);let t=this.stack[this.stack.length-1];t.url=this.sliceSerialize(e)}function he(e){D.call(this,e);let t=this.stack[this.stack.length-1];t.url=`mailto:`+this.sliceSerialize(e)}function ge(){return{type:`blockquote`,children:[],position:void 0}}function _e(){return{type:`code`,lang:null,meta:null,value:``,position:void 0}}function ve(){return{type:`inlineCode`,value:``,position:void 0}}function ye(){return{type:`definition`,identifier:``,label:null,title:null,url:``,position:void 0}}function j(){return{type:`emphasis`,children:[],position:void 0}}function M(){return{type:`heading`,depth:0,children:[],position:void 0}}function be(){return{type:`break`,position:void 0}}function xe(){return{type:`html`,value:``,position:void 0}}function Se(){return{type:`image`,title:null,url:``,alt:null,position:void 0}}function Ce(){return{type:`link`,title:null,url:``,children:[],position:void 0}}function we(e){return{type:`list`,ordered:e.type===`listOrdered`,start:null,spread:e._spread,children:[],position:void 0}}function Te(e){return{type:`listItem`,spread:e._spread,checked:null,children:[],position:void 0}}function Ee(){return{type:`paragraph`,children:[],position:void 0}}function De(){return{type:`strong`,children:[],position:void 0}}function Oe(){return{type:`text`,value:``,position:void 0}}function ke(){return{type:`thematicBreak`,position:void 0}}}function Xv(e){return{line:e.line,column:e.column,offset:e.offset}}function Zv(e,t){let n=-1;for(;++n<t.length;){let r=t[n];Array.isArray(r)?Zv(e,r):Qv(e,r)}}function Qv(e,t){let n;for(n in t)if(qv.call(t,n))switch(n){case`canContainEols`:{let r=t[n];r&&e[n].push(...r);break}case`transforms`:{let r=t[n];r&&e[n].push(...r);break}case`afterExit`:case`beforeEnter`:{let r=t[n];r&&e[n].push(r);break}case`enter`:case`exit`:{let r=t[n];r&&Object.assign(e[n],r);break}}}function $v(e,t){throw Error(e?"Cannot close `"+e.type+"` ("+bh({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+bh({start:t.start,end:t.end})+`) is open`:"Cannot close document, a token (`"+t.type+"`, "+bh({start:t.start,end:t.end})+`) is still open`)}function ey(e){let t=this;t.parser=n;function n(n){return Jv(n,{...t.data(`settings`),...e,extensions:t.data(`micromarkExtensions`)||[],mdastExtensions:t.data(`fromMarkdownExtensions`)||[]})}}function ty(e,t){let n={type:`element`,tagName:`blockquote`,properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function ny(e,t){let n={type:`element`,tagName:`br`,properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:`text`,value:`
|
|
22
|
-
`}]}function ry(e,t){let n=t.value?t.value+`
|
|
23
|
-
`:``,r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=[`language-`+i[0]]);let a={type:`element`,tagName:`code`,properties:r,children:[{type:`text`,value:n}]};return t.meta&&(a.data={meta:t.meta}),e.patch(t,a),a=e.applyData(t,a),a={type:`element`,tagName:`pre`,properties:{},children:[a]},e.patch(t,a),a}function iy(e,t){let n={type:`element`,tagName:`del`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function ay(e,t){let n={type:`element`,tagName:`em`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function oy(e,t){let n=typeof e.options.clobberPrefix==`string`?e.options.clobberPrefix:`user-content-`,r=String(t.identifier).toUpperCase(),i=Dg(r.toLowerCase()),a=e.footnoteOrder.indexOf(r),o,s=e.footnoteCounts.get(r);s===void 0?(s=0,e.footnoteOrder.push(r),o=e.footnoteOrder.length):o=a+1,s+=1,e.footnoteCounts.set(r,s);let c={type:`element`,tagName:`a`,properties:{href:`#`+n+`fn-`+i,id:n+`fnref-`+i+(s>1?`-`+s:``),dataFootnoteRef:!0,ariaDescribedBy:[`footnote-label`]},children:[{type:`text`,value:String(o)}]};e.patch(t,c);let l={type:`element`,tagName:`sup`,properties:{},children:[c]};return e.patch(t,l),e.applyData(t,l)}function sy(e,t){let n={type:`element`,tagName:`h`+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function cy(e,t){if(e.options.allowDangerousHtml){let n={type:`raw`,value:t.value};return e.patch(t,n),e.applyData(t,n)}}function ly(e,t){let n=t.referenceType,r=`]`;if(n===`collapsed`?r+=`[]`:n===`full`&&(r+=`[`+(t.label||t.identifier)+`]`),t.type===`imageReference`)return[{type:`text`,value:`![`+t.alt+r}];let i=e.all(t),a=i[0];a&&a.type===`text`?a.value=`[`+a.value:i.unshift({type:`text`,value:`[`});let o=i[i.length-1];return o&&o.type===`text`?o.value+=r:i.push({type:`text`,value:r}),i}function uy(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return ly(e,t);let i={src:Dg(r.url||``),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);let a={type:`element`,tagName:`img`,properties:i,children:[]};return e.patch(t,a),e.applyData(t,a)}function dy(e,t){let n={src:Dg(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);let r={type:`element`,tagName:`img`,properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function fy(e,t){let n={type:`text`,value:t.value.replace(/\r?\n|\r/g,` `)};e.patch(t,n);let r={type:`element`,tagName:`code`,properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function py(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return ly(e,t);let i={href:Dg(r.url||``)};r.title!==null&&r.title!==void 0&&(i.title=r.title);let a={type:`element`,tagName:`a`,properties:i,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function my(e,t){let n={href:Dg(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);let r={type:`element`,tagName:`a`,properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function hy(e,t,n){let r=e.all(t),i=n?gy(n):_y(t),a={},o=[];if(typeof t.checked==`boolean`){let e=r[0],n;e&&e.type===`element`&&e.tagName===`p`?n=e:(n={type:`element`,tagName:`p`,properties:{},children:[]},r.unshift(n)),n.children.length>0&&n.children.unshift({type:`text`,value:` `}),n.children.unshift({type:`element`,tagName:`input`,properties:{type:`checkbox`,checked:t.checked,disabled:!0},children:[]}),a.className=[`task-list-item`]}let s=-1;for(;++s<r.length;){let e=r[s];(i||s!==0||e.type!==`element`||e.tagName!==`p`)&&o.push({type:`text`,value:`
|
|
24
|
-
`}),e.type===`element`&&e.tagName===`p`&&!i?o.push(...e.children):o.push(e)}let c=r[r.length-1];c&&(i||c.type!==`element`||c.tagName!==`p`)&&o.push({type:`text`,value:`
|
|
25
|
-
`});let l={type:`element`,tagName:`li`,properties:a,children:o};return e.patch(t,l),e.applyData(t,l)}function gy(e){let t=!1;if(e.type===`list`){t=e.spread||!1;let n=e.children,r=-1;for(;!t&&++r<n.length;)t=_y(n[r])}return t}function _y(e){return e.spread??e.children.length>1}function vy(e,t){let n={},r=e.all(t),i=-1;for(typeof t.start==`number`&&t.start!==1&&(n.start=t.start);++i<r.length;){let e=r[i];if(e.type===`element`&&e.tagName===`li`&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes(`task-list-item`)){n.className=[`contains-task-list`];break}}let a={type:`element`,tagName:t.ordered?`ol`:`ul`,properties:n,children:e.wrap(r,!0)};return e.patch(t,a),e.applyData(t,a)}function yy(e,t){let n={type:`element`,tagName:`p`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function by(e,t){let n={type:`root`,children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function xy(e,t){let n={type:`element`,tagName:`strong`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Sy(e,t){let n=e.all(t),r=n.shift(),i=[];if(r){let n={type:`element`,tagName:`thead`,properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],n),i.push(n)}if(n.length>0){let r={type:`element`,tagName:`tbody`,properties:{},children:e.wrap(n,!0)},a=_h(t.children[1]),o=gh(t.children[t.children.length-1]);a&&o&&(r.position={start:a,end:o}),i.push(r)}let a={type:`element`,tagName:`table`,properties:{},children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)}function Cy(e,t,n){let r=n?n.children:void 0,i=(r?r.indexOf(t):1)===0?`th`:`td`,a=n&&n.type===`table`?n.align:void 0,o=a?a.length:t.children.length,s=-1,c=[];for(;++s<o;){let n=t.children[s],r={},o=a?a[s]:void 0;o&&(r.align=o);let l={type:`element`,tagName:i,properties:r,children:[]};n&&(l.children=e.all(n),e.patch(n,l),l=e.applyData(n,l)),c.push(l)}let l={type:`element`,tagName:`tr`,properties:{},children:e.wrap(c,!0)};return e.patch(t,l),e.applyData(t,l)}function wy(e,t){let n={type:`element`,tagName:`td`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}var Ty=9,Ey=32;function Dy(e){let t=String(e),n=/\r?\n|\r/g,r=n.exec(t),i=0,a=[];for(;r;)a.push(Oy(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return a.push(Oy(t.slice(i),i>0,!1)),a.join(``)}function Oy(e,t,n){let r=0,i=e.length;if(t){let t=e.codePointAt(r);for(;t===Ty||t===Ey;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(i-1);for(;t===Ty||t===Ey;)i--,t=e.codePointAt(i-1)}return i>r?e.slice(r,i):``}function ky(e,t){let n={type:`text`,value:Dy(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function Ay(e,t){let n={type:`element`,tagName:`hr`,properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}var jy={blockquote:ty,break:ny,code:ry,delete:iy,emphasis:ay,footnoteReference:oy,heading:sy,html:cy,imageReference:uy,image:dy,inlineCode:fy,linkReference:py,link:my,listItem:hy,list:vy,paragraph:yy,root:by,strong:xy,table:Sy,tableCell:wy,tableRow:Cy,text:ky,thematicBreak:Ay,toml:My,yaml:My,definition:My,footnoteDefinition:My};function My(){}var{defineProperty:Ny}=Object,Py=typeof self==`object`?self:globalThis,Fy=(e,t)=>{switch(e){case`Function`:case`SharedWorker`:case`Worker`:case`eval`:case`setInterval`:case`setTimeout`:throw TypeError(`unable to deserialize `+e)}return new Py[e](t)},Iy=(e,t)=>{let n=(t,n)=>(e.set(n,t),t),r=i=>{if(e.has(i))return e.get(i);let[a,o]=t[i];switch(a){case 0:case-1:return n(o,i);case 1:{let e=n([],i);for(let t of o)e.push(r(t));return e}case 2:{let e=n({},i);for(let[t,n]of o){let i=r(t),a=r(n);i===`__proto__`?Ny(e,i,{value:a,configurable:!0,enumerable:!0,writable:!0}):e[i]=a}return e}case 3:return n(new Date(o),i);case 4:{let{source:e,flags:t}=o;return n(new RegExp(e,t),i)}case 5:{let e=n(new Map,i);for(let[t,n]of o)e.set(r(t),r(n));return e}case 6:{let e=n(new Set,i);for(let t of o)e.add(r(t));return e}case 7:{let{name:e,message:t}=o;return n(typeof Py[e]==`function`?Fy(e,t):Error(t),i)}case 8:return n(BigInt(o),i);case`BigInt`:return n(Object(BigInt(o)),i);case`ArrayBuffer`:return n(new Uint8Array(o).buffer,o);case`DataView`:{let{buffer:e}=new Uint8Array(o);return n(new DataView(e),o)}case`-0`:return-0}return n(Fy(a,o),i)};return r},Ly=e=>Iy(new Map,e)(0),Ry=``,{toString:zy}={},{keys:By,is:Vy}=Object,Hy=e=>{let t=typeof e;if(t!==`object`||!e)return[0,t];let n=zy.call(e).slice(8,-1);switch(n){case`Array`:return[1,Ry];case`Object`:return[2,Ry];case`Date`:return[3,Ry];case`RegExp`:return[4,Ry];case`Map`:return[5,Ry];case`Set`:return[6,Ry];case`DataView`:return[1,n]}return n.includes(`Array`)?[1,n]:e instanceof Error?[7,e.name||`Error`]:[2,n]},Uy=([e,t])=>e===0&&(t===`function`||t===`symbol`),Wy=(e,t,n,r)=>{let i=(e,t)=>{let i=r.push(e)-1;return n.set(t,i),i},a=o=>{if(n.has(o))return n.get(o);let[s,c]=Hy(o);switch(s){case 0:{let t=o;switch(c){case`bigint`:s=8,t=o.toString();break;case`number`:if(!o&&Vy(o,-0))return r.push([`-0`])-1;break;case`function`:case`symbol`:if(e)throw TypeError(`unable to serialize `+c);t=null;break;case`undefined`:return i([-1],o)}return i([s,t],o)}case 1:{if(c){let e=o;return c===`DataView`?e=new Uint8Array(o.buffer):c===`ArrayBuffer`&&(e=new Uint8Array(o)),i([c,[...e]],o)}let e=[],t=i([s,e],o);for(let t of o)e.push(a(t));return t}case 2:{if(c)switch(c){case`BigInt`:return i([c,o.toString()],o);case`Boolean`:case`Number`:case`String`:return i([c,o.valueOf()],o)}if(t&&`toJSON`in o)return a(o.toJSON());let n=[],r=i([s,n],o);for(let t of By(o))(e||!Uy(Hy(o[t])))&&n.push([a(t),a(o[t])]);return r}case 3:return i([s,isNaN(o.getTime())?Ry:o.toISOString()],o);case 4:{let{source:e,flags:t}=o;return i([s,{source:e,flags:t}],o)}case 5:{let t=[],n=i([s,t],o);for(let[n,r]of o)(e||!(Uy(Hy(n))||Uy(Hy(r))))&&t.push([a(n),a(r)]);return n}case 6:{let t=[],n=i([s,t],o);for(let n of o)(e||!Uy(Hy(n)))&&t.push(a(n));return n}}let{message:l}=o;return i([s,{name:c,message:l}],o)};return a},Gy=(e,{json:t,lossy:n}={})=>{let r=[];return Wy(!(t||n),!!t,new Map,r)(e),r},Ky=typeof structuredClone==`function`?(e,t)=>t&&(`json`in t||`lossy`in t)?Ly(Gy(e,t)):structuredClone(e):(e,t)=>Ly(Gy(e,t));function qy(e,t){let n=[{type:`text`,value:`↩`}];return t>1&&n.push({type:`element`,tagName:`sup`,properties:{},children:[{type:`text`,value:String(t)}]}),n}function Jy(e,t){return`Back to reference `+(e+1)+(t>1?`-`+t:``)}function Yy(e){let t=typeof e.options.clobberPrefix==`string`?e.options.clobberPrefix:`user-content-`,n=e.options.footnoteBackContent||qy,r=e.options.footnoteBackLabel||Jy,i=e.options.footnoteLabel||`Footnotes`,a=e.options.footnoteLabelTagName||`h2`,o=e.options.footnoteLabelProperties||{className:[`sr-only`]},s=[],c=-1;for(;++c<e.footnoteOrder.length;){let i=e.footnoteById.get(e.footnoteOrder[c]);if(!i)continue;let a=e.all(i),o=String(i.identifier).toUpperCase(),l=Dg(o.toLowerCase()),u=0,d=[],f=e.footnoteCounts.get(o);for(;f!==void 0&&++u<=f;){d.length>0&&d.push({type:`text`,value:` `});let e=typeof n==`string`?n:n(c,u);typeof e==`string`&&(e={type:`text`,value:e}),d.push({type:`element`,tagName:`a`,properties:{href:`#`+t+`fnref-`+l+(u>1?`-`+u:``),dataFootnoteBackref:``,ariaLabel:typeof r==`string`?r:r(c,u),className:[`data-footnote-backref`]},children:Array.isArray(e)?e:[e]})}let p=a[a.length-1];if(p&&p.type===`element`&&p.tagName===`p`){let e=p.children[p.children.length-1];e&&e.type===`text`?e.value+=` `:p.children.push({type:`text`,value:` `}),p.children.push(...d)}else a.push(...d);let m={type:`element`,tagName:`li`,properties:{id:t+`fn-`+l},children:e.wrap(a,!0)};e.patch(i,m),s.push(m)}if(s.length!==0)return{type:`element`,tagName:`section`,properties:{dataFootnotes:!0,className:[`footnotes`]},children:[{type:`element`,tagName:a,properties:{...Ky(o),id:`footnote-label`},children:[{type:`text`,value:i}]},{type:`text`,value:`
|
|
26
|
-
`},{type:`element`,tagName:`ol`,properties:{},children:e.wrap(s,!0)},{type:`text`,value:`
|
|
27
|
-
`}]}}var Xy=(function(e){if(e==null)return tb;if(typeof e==`function`)return eb(e);if(typeof e==`object`)return Array.isArray(e)?Zy(e):Qy(e);if(typeof e==`string`)return $y(e);throw Error(`Expected function, string, or object as test`)});function Zy(e){let t=[],n=-1;for(;++n<e.length;)t[n]=Xy(e[n]);return eb(r);function r(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1}}function Qy(e){let t=e;return eb(n);function n(n){let r=n,i;for(i in e)if(r[i]!==t[i])return!1;return!0}}function $y(e){return eb(t);function t(t){return t&&t.type===e}}function eb(e){return t;function t(t,n,r){return!!(nb(t)&&e.call(this,t,typeof n==`number`?n:void 0,r||void 0))}}function tb(){return!0}function nb(e){return typeof e==`object`&&!!e&&`type`in e}function rb(e){return e}var ib=[];function ab(e,t,n,r){let i;typeof t==`function`&&typeof n!=`function`?(r=n,n=t):i=t;let a=Xy(i),o=r?-1:1;s(e,void 0,[])();function s(e,i,c){let l=e&&typeof e==`object`?e:{};if(typeof l.type==`string`){let t=typeof l.tagName==`string`?l.tagName:typeof l.name==`string`?l.name:void 0;Object.defineProperty(u,"name",{value:`node (`+rb(e.type+(t?`<`+t+`>`:``))+`)`})}return u;function u(){let l=ib,u,d,f;if((!t||a(e,i,c[c.length-1]||void 0))&&(l=ob(n(e,c)),l[0]===!1))return l;if(`children`in e&&e.children){let t=e;if(t.children&&l[0]!==`skip`)for(d=(r?t.children.length:-1)+o,f=c.concat(t);d>-1&&d<t.children.length;){let e=t.children[d];if(u=s(e,d,f)(),u[0]===!1)return u;d=typeof u[1]==`number`?u[1]:d+o}}return l}}}function ob(e){return Array.isArray(e)?e:typeof e==`number`?[!0,e]:e==null?ib:[e]}function sb(e,t,n,r){let i,a,o;typeof t==`function`&&typeof n!=`function`?(a=void 0,o=t,i=n):(a=t,o=n,i=r),ab(e,a,s,i);function s(e,t){let n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return o(e,r,n)}}var cb={}.hasOwnProperty,lb={};function ub(e,t){let n=t||lb,r=new Map,i=new Map,a={all:s,applyData:fb,definitionById:r,footnoteById:i,footnoteCounts:new Map,footnoteOrder:[],handlers:{...jy,...n.handlers},one:o,options:n,patch:db,wrap:mb};return sb(e,function(e){if(e.type===`definition`||e.type===`footnoteDefinition`){let t=e.type===`definition`?r:i,n=String(e.identifier).toUpperCase();t.has(n)||t.set(n,e)}}),a;function o(e,t){let n=e.type,r=a.handlers[n];if(cb.call(a.handlers,n)&&r)return r(a,e,t);if(a.options.passThrough&&a.options.passThrough.includes(n)){if(`children`in e){let{children:t,...n}=e,r=Ky(n);return r.children=a.all(e),r}return Ky(e)}return(a.options.unknownHandler||pb)(a,e,t)}function s(e){let t=[];if(`children`in e){let n=e.children,r=-1;for(;++r<n.length;){let i=a.one(n[r],e);if(i){if(r&&n[r-1].type===`break`&&(!Array.isArray(i)&&i.type===`text`&&(i.value=hb(i.value)),!Array.isArray(i)&&i.type===`element`)){let e=i.children[0];e&&e.type===`text`&&(e.value=hb(e.value))}Array.isArray(i)?t.push(...i):t.push(i)}}}return t}}function db(e,t){e.position&&(t.position=yh(e))}function fb(e,t){let n=t;if(e&&e.data){let t=e.data.hName,r=e.data.hChildren,i=e.data.hProperties;typeof t==`string`&&(n.type===`element`?n.tagName=t:n={type:`element`,tagName:t,properties:{},children:`children`in n?n.children:[n]}),n.type===`element`&&i&&Object.assign(n.properties,Ky(i)),`children`in n&&n.children&&r!=null&&(n.children=r)}return n}function pb(e,t){let n=t.data||{},r=`value`in t&&!(cb.call(n,`hProperties`)||cb.call(n,`hChildren`))?{type:`text`,value:t.value}:{type:`element`,tagName:`div`,properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function mb(e,t){let n=[],r=-1;for(t&&n.push({type:`text`,value:`
|
|
28
|
-
`});++r<e.length;)r&&n.push({type:`text`,value:`
|
|
29
|
-
`}),n.push(e[r]);return t&&e.length>0&&n.push({type:`text`,value:`
|
|
30
|
-
`}),n}function hb(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function gb(e,t){let n=ub(e,t),r=n.one(e,void 0),i=Yy(n),a=Array.isArray(r)?{type:`root`,children:r}:r||{type:`root`,children:[]};return i&&(`children`in a,a.children.push({type:`text`,value:`
|
|
31
|
-
`},i)),a}function _b(e,t){return e&&`run`in e?async function(n,r){let i=gb(n,{file:r,...t});await e.run(i,r)}:function(n,r){return gb(n,{file:r,...e||t})}}function vb(e){if(e)throw e}var yb=o(((e,t)=>{var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString,i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=function(e){return typeof Array.isArray==`function`?Array.isArray(e):r.call(e)===`[object Array]`},s=function(e){if(!e||r.call(e)!==`[object Object]`)return!1;var t=n.call(e,`constructor`),i=e.constructor&&e.constructor.prototype&&n.call(e.constructor.prototype,`isPrototypeOf`);if(e.constructor&&!t&&!i)return!1;for(var a in e);return a===void 0||n.call(e,a)},c=function(e,t){i&&t.name===`__proto__`?i(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,t){if(t===`__proto__`){if(!n.call(e,t))return;if(a)return a(e,t).value}return e[t]};t.exports=function e(){var t,n,r,i,a,u,d=arguments[0],f=1,p=arguments.length,m=!1;for(typeof d==`boolean`&&(m=d,d=arguments[1]||{},f=2),(d==null||typeof d!=`object`&&typeof d!=`function`)&&(d={});f<p;++f)if(t=arguments[f],t!=null)for(n in t)r=l(d,n),i=l(t,n),d!==i&&(m&&i&&(s(i)||(a=o(i)))?(a?(a=!1,u=r&&o(r)?r:[]):u=r&&s(r)?r:{},c(d,{name:n,newValue:e(m,u,i)})):i!==void 0&&c(d,{name:n,newValue:i}));return d}}));function bb(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function xb(){let e=[],t={run:n,use:r};return t;function n(...t){let n=-1,r=t.pop();if(typeof r!=`function`)throw TypeError(`Expected function as last argument, not `+r);i(null,...t);function i(a,...o){let s=e[++n],c=-1;if(a)r(a);else{for(;++c<t.length;)(o[c]===null||o[c]===void 0)&&(o[c]=t[c]);t=o,s?Sb(s,i)(...o):r(null,...o)}}}function r(n){if(typeof n!=`function`)throw TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}}function Sb(e,t){let n;return r;function r(...t){let r=e.length>t.length,o;r&&t.push(i);try{o=e.apply(this,t)}catch(e){let t=e;if(r&&n)throw t;return i(t)}r||(o&&o.then&&typeof o.then==`function`?o.then(a,i):o instanceof Error?i(o):a(o))}function i(e,...r){n||(n=!0,t(e,...r))}function a(e){i(null,e)}}var Cb={basename:wb,dirname:Tb,extname:Eb,join:Db,sep:`/`};function wb(e,t){if(t!==void 0&&typeof t!=`string`)throw TypeError(`"ext" argument must be a string`);Ab(e);let n=0,r=-1,i=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else r<0&&(a=!0,r=i+1);return r<0?``:e.slice(n,r)}if(t===e)return``;let o=-1,s=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else o<0&&(a=!0,o=i+1),s>-1&&(e.codePointAt(i)===t.codePointAt(s--)?s<0&&(r=i):(s=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function Tb(e){if(Ab(e),e.length===0)return`.`;let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||=!0;return t<0?e.codePointAt(0)===47?`/`:`.`:t===1&&e.codePointAt(0)===47?`//`:e.slice(0,t)}function Eb(e){Ab(e);let t=e.length,n=-1,r=0,i=-1,a=0,o;for(;t--;){let s=e.codePointAt(t);if(s===47){if(o){r=t+1;break}}else n<0&&(o=!0,n=t+1),s===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||n<0||a===0||a===1&&i===n-1&&i===r+1?``:e.slice(i,n)}function Db(...e){let t=-1,n;for(;++t<e.length;)Ab(e[t]),e[t]&&(n=n===void 0?e[t]:n+`/`+e[t]);return n===void 0?`.`:Ob(n)}function Ob(e){Ab(e);let t=e.codePointAt(0)===47,n=kb(e,!t);return n.length===0&&!t&&(n=`.`),n.length>0&&e.codePointAt(e.length-1)===47&&(n+=`/`),t?`/`+n:n}function kb(e,t){let n=``,r=0,i=-1,a=0,o=-1,s,c;for(;++o<=e.length;){if(o<e.length)s=e.codePointAt(o);else if(s===47)break;else s=47;if(s===47){if(i!==o-1&&a!==1){if(i!==o-1&&a===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(c=n.lastIndexOf(`/`),c!==n.length-1){c<0?(n=``,r=0):(n=n.slice(0,c),r=n.length-1-n.lastIndexOf(`/`)),i=o,a=0;continue}}else if(n.length>0){n=``,r=0,i=o,a=0;continue}}t&&(n=n.length>0?n+`/..`:`..`,r=2)}else n.length>0?n+=`/`+e.slice(i+1,o):n=e.slice(i+1,o),r=o-i-1}i=o,a=0}else s===46&&a>-1?a++:a=-1}return n}function Ab(e){if(typeof e!=`string`)throw TypeError(`Path must be a string. Received `+JSON.stringify(e))}var jb={cwd:Mb};function Mb(){return`/`}function Nb(e){return!!(typeof e==`object`&&e&&`href`in e&&e.href&&`protocol`in e&&e.protocol&&e.auth===void 0)}function Pb(e){if(typeof e==`string`)e=new URL(e);else if(!Nb(e)){let t=TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code=`ERR_INVALID_ARG_TYPE`,t}if(e.protocol!==`file:`){let e=TypeError(`The URL must be of scheme file`);throw e.code=`ERR_INVALID_URL_SCHEME`,e}return Fb(e)}function Fb(e){if(e.hostname!==``){let e=TypeError(`File URL host must be "localhost" or empty on darwin`);throw e.code=`ERR_INVALID_FILE_URL_HOST`,e}let t=e.pathname,n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){let e=t.codePointAt(n+2);if(e===70||e===102){let e=TypeError(`File URL path must not include encoded / characters`);throw e.code=`ERR_INVALID_FILE_URL_PATH`,e}}return decodeURIComponent(t)}var Ib=[`history`,`path`,`basename`,`stem`,`extname`,`dirname`],Lb=class{constructor(e){let t;t=e?Nb(e)?{path:e}:typeof e==`string`||Vb(e)?{value:e}:e:{},this.cwd=`cwd`in t?``:jb.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n=-1;for(;++n<Ib.length;){let e=Ib[n];e in t&&t[e]!==void 0&&t[e]!==null&&(this[e]=e===`history`?[...t[e]]:t[e])}let r;for(r in t)Ib.includes(r)||(this[r]=t[r])}get basename(){return typeof this.path==`string`?Cb.basename(this.path):void 0}set basename(e){zb(e,`basename`),Rb(e,`basename`),this.path=Cb.join(this.dirname||``,e)}get dirname(){return typeof this.path==`string`?Cb.dirname(this.path):void 0}set dirname(e){Bb(this.basename,`dirname`),this.path=Cb.join(e||``,this.basename)}get extname(){return typeof this.path==`string`?Cb.extname(this.path):void 0}set extname(e){if(Rb(e,`extname`),Bb(this.dirname,`extname`),e){if(e.codePointAt(0)!==46)throw Error("`extname` must start with `.`");if(e.includes(`.`,1))throw Error("`extname` cannot contain multiple dots")}this.path=Cb.join(this.dirname,this.stem+(e||``))}get path(){return this.history[this.history.length-1]}set path(e){Nb(e)&&(e=Pb(e)),zb(e,`path`),this.path!==e&&this.history.push(e)}get stem(){return typeof this.path==`string`?Cb.basename(this.path,this.extname):void 0}set stem(e){zb(e,`stem`),Rb(e,`stem`),this.path=Cb.join(this.dirname||``,e+(this.extname||``))}fail(e,t,n){let r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){let r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){let r=new wh(e,t,n);return this.path&&(r.name=this.path+`:`+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){return this.value===void 0?``:typeof this.value==`string`?this.value:new TextDecoder(e||void 0).decode(this.value)}};function Rb(e,t){if(e&&e.includes(Cb.sep))throw Error("`"+t+"` cannot be a path: did not expect `"+Cb.sep+"`")}function zb(e,t){if(!e)throw Error("`"+t+"` cannot be empty")}function Bb(e,t){if(!e)throw Error("Setting `"+t+"` requires `path` to be set too")}function Vb(e){return!!(e&&typeof e==`object`&&`byteLength`in e&&`byteOffset`in e)}var Hb=(function(e){let t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r}),Ub=l(yb(),1),Wb={}.hasOwnProperty,Gb=new class e extends Hb{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=xb()}copy(){let t=new e,n=-1;for(;++n<this.attachers.length;){let e=this.attachers[n];t.use(...e)}return t.data((0,Ub.default)(!0,{},this.namespace)),t}data(e,t){return typeof e==`string`?arguments.length===2?(Jb(`data`,this.frozen),this.namespace[e]=t,this):Wb.call(this.namespace,e)&&this.namespace[e]||void 0:e?(Jb(`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[t,...n]=this.attachers[this.freezeIndex];if(n[0]===!1)continue;n[0]===!0&&(n[0]=void 0);let r=t.call(e,...n);typeof r==`function`&&this.transformers.use(r)}return this.frozen=!0,this.freezeIndex=1/0,this}parse(e){this.freeze();let t=Zb(e),n=this.parser||this.Parser;return Kb(`parse`,n),n(String(t),t)}process(e,t){let n=this;return this.freeze(),Kb(`process`,this.parser||this.Parser),qb(`process`,this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,i){let a=Zb(e),o=n.parse(a);n.run(o,a,function(e,t,r){if(e||!t||!r)return s(e);let i=t,a=n.stringify(i,r);$b(a)?r.value=a:r.result=a,s(e,r)});function s(e,n){e||!n?i(e):r?r(n):t(void 0,n)}}}processSync(e){let t=!1,n;return this.freeze(),Kb(`processSync`,this.parser||this.Parser),qb(`processSync`,this.compiler||this.Compiler),this.process(e,r),Xb(`processSync`,`process`,t),n;function r(e,r){t=!0,vb(e),n=r}}run(e,t,n){Yb(e),this.freeze();let r=this.transformers;return!n&&typeof t==`function`&&(n=t,t=void 0),n?i(void 0,n):new Promise(i);function i(i,a){let o=Zb(t);r.run(e,o,s);function s(t,r,o){let s=r||e;t?a(t):i?i(s):n(void 0,s,o)}}}runSync(e,t){let n=!1,r;return this.run(e,t,i),Xb(`runSync`,`run`,n),r;function i(e,t){vb(e),r=t,n=!0}}stringify(e,t){this.freeze();let n=Zb(t),r=this.compiler||this.Compiler;return qb(`stringify`,r),Yb(e),r(e,n)}use(e,...t){let n=this.attachers,r=this.namespace;if(Jb(`use`,this.frozen),e!=null){if(typeof e==`function`)s(e,t);else if(typeof e==`object`)Array.isArray(e)?o(e):a(e);else throw TypeError("Expected usable value, not `"+e+"`")}return this;function i(e){if(typeof e==`function`)s(e,[]);else if(typeof e==`object`){if(Array.isArray(e)){let[t,...n]=e;s(t,n)}else a(e)}else throw TypeError("Expected usable value, not `"+e+"`")}function a(e){if(!(`plugins`in e)&&!(`settings`in e))throw 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(e.plugins),e.settings&&(r.settings=(0,Ub.default)(!0,r.settings,e.settings))}function o(e){let t=-1;if(e!=null){if(Array.isArray(e))for(;++t<e.length;){let n=e[t];i(n)}else throw TypeError("Expected a list of plugins, not `"+e+"`")}}function s(e,t){let r=-1,i=-1;for(;++r<n.length;)if(n[r][0]===e){i=r;break}if(i===-1)n.push([e,...t]);else if(t.length>0){let[r,...a]=t,o=n[i][1];bb(o)&&bb(r)&&(r=(0,Ub.default)(!0,o,r)),n[i]=[e,r,...a]}}}}().freeze();function Kb(e,t){if(typeof t!=`function`)throw TypeError("Cannot `"+e+"` without `parser`")}function qb(e,t){if(typeof t!=`function`)throw TypeError("Cannot `"+e+"` without `compiler`")}function Jb(e,t){if(t)throw Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Yb(e){if(!bb(e)||typeof e.type!=`string`)throw TypeError("Expected node, got `"+e+"`")}function Xb(e,t,n){if(!n)throw Error("`"+e+"` finished async. Use `"+t+"` instead")}function Zb(e){return Qb(e)?e:new Lb(e)}function Qb(e){return!!(e&&typeof e==`object`&&`message`in e&&`messages`in e)}function $b(e){return typeof e==`string`||ex(e)}function ex(e){return!!(e&&typeof e==`object`&&`byteLength`in e&&`byteOffset`in e)}var tx=[],nx={allowDangerousHtml:!0},rx=/^(https?|ircs?|mailto|xmpp)$/i,ix=[{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 ax(e){let t=ox(e),n=sx(e);return cx(t.runSync(t.parse(n),n),e)}function ox(e){let t=e.rehypePlugins||tx,n=e.remarkPlugins||tx,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...nx}:nx;return Gb().use(ey).use(n).use(_b,r).use(t)}function sx(e){let t=e.children||``,n=new Lb;return typeof t==`string`?n.value=t:``+t,n}function cx(e,t){let n=t.allowedElements,r=t.allowElement,i=t.components,a=t.disallowedElements,o=t.skipHtml,s=t.unwrapDisallowed,c=t.urlTransform||lx;for(let e of ix)Object.hasOwn(t,e.from)&&``+e.from+(e.to?"use `"+e.to+"` instead":`remove it`)+e.id;return sb(e,l),Mh(e,{Fragment:B.Fragment,components:i,ignoreInvalidStyle:!0,jsx:B.jsx,jsxs:B.jsxs,passKeys:!0,passNode:!0});function l(e,t,i){if(e.type===`raw`&&i&&typeof t==`number`)return o?i.children.splice(t,1):i.children[t]={type:`text`,value:e.value},t;if(e.type===`element`){let t;for(t in eg)if(Object.hasOwn(eg,t)&&Object.hasOwn(e.properties,t)){let n=e.properties[t],r=eg[t];(r===null||r.includes(e.tagName))&&(e.properties[t]=c(String(n||``),t,e))}}if(e.type===`element`){let o=n?!n.includes(e.tagName):a?a.includes(e.tagName):!1;if(!o&&r&&typeof t==`number`&&(o=!r(e,t,i)),o&&i&&typeof t==`number`)return s&&e.children?i.children.splice(t,1,...e.children):i.children.splice(t,1),t}}}function lx(e){let t=e.indexOf(`:`),n=e.indexOf(`?`),r=e.indexOf(`#`),i=e.indexOf(`/`);return t===-1||i!==-1&&t>i||n!==-1&&t>n||r!==-1&&t>r||rx.test(e.slice(0,t))?e:``}function ux(e,t){let n=String(e);if(typeof t!=`string`)throw TypeError(`Expected character`);let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}function dx(e){if(typeof e!=`string`)throw TypeError(`Expected a string`);return e.replace(/[|\\{}()[\]^$+*?.]/g,`\\$&`).replace(/-/g,`\\x2d`)}function fx(e,t,n){let r=Xy((n||{}).ignore||[]),i=px(t),a=-1;for(;++a<i.length;)ab(e,`text`,o);function o(e,t){let n=-1,i;for(;++n<t.length;){let e=t[n],a=i?i.children:void 0;if(r(e,a?a.indexOf(e):void 0,i))return;i=e}if(i)return s(e,t)}function s(e,t){let n=t[t.length-1],r=i[a][0],o=i[a][1],s=0,c=n.children.indexOf(e),l=!1,u=[];r.lastIndex=0;let d=r.exec(e.value);for(;d;){let n=d.index,i={index:d.index,input:d.input,stack:[...t,e]},a=o(...d,i);if(typeof a==`string`&&(a=a.length>0?{type:`text`,value:a}:void 0),a===!1)r.lastIndex=n+1;else{if(s!==n&&f({type:`text`,value:e.value.slice(s,n)}),Array.isArray(a))for(let e of a)f(e);else a&&f(a);s=n+d[0].length,l=!0}if(!r.global)break;d=r.exec(e.value)}return l?(s<e.value.length&&f({type:`text`,value:e.value.slice(s)}),n.children.splice(c,1,...u)):u=[e],c+u.length;function f(e){let t=u[u.length-1];t&&t.type===`text`&&e.type===`text`?t.value+=e.value:u.push(e)}}}function px(e){if(!Array.isArray(e))throw TypeError(`Expected find and replace tuple or list of tuples`);let t=[],n=!e[0]||Array.isArray(e[0])?e:[e],r=-1;for(;++r<n.length;){let e=n[r];t.push([mx(e[0]),hx(e[1])])}return t}function mx(e){return typeof e==`string`?new RegExp(dx(e),`g`):e}function hx(e){return typeof e==`function`?e:function(){return e}}var gx=`phrasing`,_x=[`autolink`,`link`,`image`,`label`];function vx(){return{transforms:[Ex],enter:{literalAutolink:bx,literalAutolinkEmail:xx,literalAutolinkHttp:xx,literalAutolinkWww:xx},exit:{literalAutolink:Tx,literalAutolinkEmail:wx,literalAutolinkHttp:Sx,literalAutolinkWww:Cx}}}function yx(){return{unsafe:[{character:`@`,before:`[+\\-.\\w]`,after:`[\\-.\\w]`,inConstruct:gx,notInConstruct:_x},{character:`.`,before:`[Ww]`,after:`[\\-.\\w]`,inConstruct:gx,notInConstruct:_x},{character:`:`,before:`[ps]`,after:`\\/`,inConstruct:gx,notInConstruct:_x}]}}function bx(e){this.enter({type:`link`,title:null,url:``,children:[]},e)}function xx(e){this.config.enter.autolinkProtocol.call(this,e)}function Sx(e){this.config.exit.autolinkProtocol.call(this,e)}function Cx(e){this.config.exit.data.call(this,e);let t=this.stack[this.stack.length-1];t.type,t.url=`http://`+this.sliceSerialize(e)}function wx(e){this.config.exit.autolinkEmail.call(this,e)}function Tx(e){this.exit(e)}function Ex(e){fx(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,Dx],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,Ox]],{ignore:[`link`,`linkReference`]})}function Dx(e,t,n,r,i){let a=``;if(!jx(i)||(/^w/i.test(t)&&(n=t+n,t=``,a=`http://`),!kx(n)))return!1;let o=Ax(n+r);if(!o[0])return!1;let s={type:`link`,title:null,url:a+t+o[0],children:[{type:`text`,value:t+o[0]}]};return o[1]?[s,{type:`text`,value:o[1]}]:s}function Ox(e,t,n,r){return!jx(r,!0)||/[-\d_]$/.test(n)?!1:{type:`link`,title:null,url:`mailto:`+t+`@`+n,children:[{type:`text`,value:t+`@`+n}]}}function kx(e){let t=e.split(`.`);return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function Ax(e){let t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(`)`),i=ux(e,`(`),a=ux(e,`)`);for(;r!==-1&&i>a;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(`)`),a++;return[e,n]}function jx(e,t){let n=e.input.charCodeAt(e.index-1);return(e.index===0||Tg(n)||wg(n))&&(!t||n!==47)}Vx.peek=Bx;function Mx(){this.buffer()}function Nx(e){this.enter({type:`footnoteReference`,identifier:``,label:``},e)}function Px(){this.buffer()}function Fx(e){this.enter({type:`footnoteDefinition`,identifier:``,label:``,children:[]},e)}function Ix(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=hg(this.sliceSerialize(e)).toLowerCase(),n.label=t}function Lx(e){this.exit(e)}function Rx(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=hg(this.sliceSerialize(e)).toLowerCase(),n.label=t}function zx(e){this.exit(e)}function Bx(){return`[`}function Vx(e,t,n,r){let i=n.createTracker(r),a=i.move(`[^`),o=n.enter(`footnoteReference`),s=n.enter(`reference`);return a+=i.move(n.safe(n.associationId(e),{after:`]`,before:a})),s(),o(),a+=i.move(`]`),a}function Hx(){return{enter:{gfmFootnoteCallString:Mx,gfmFootnoteCall:Nx,gfmFootnoteDefinitionLabelString:Px,gfmFootnoteDefinition:Fx},exit:{gfmFootnoteCallString:Ix,gfmFootnoteCall:Lx,gfmFootnoteDefinitionLabelString:Rx,gfmFootnoteDefinition:zx}}}function Ux(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:Vx},unsafe:[{character:`[`,inConstruct:[`label`,`phrasing`,`reference`]}]};function n(e,n,r,i){let a=r.createTracker(i),o=a.move(`[^`),s=r.enter(`footnoteDefinition`),c=r.enter(`label`);return o+=a.move(r.safe(r.associationId(e),{before:o,after:`]`})),c(),o+=a.move(`]:`),e.children&&e.children.length>0&&(a.shift(4),o+=a.move((t?`
|
|
32
|
-
`:` `)+r.indentLines(r.containerFlow(e,a.current()),t?Gx:Wx))),s(),o}}function Wx(e,t,n){return t===0?e:Gx(e,t,n)}function Gx(e,t,n){return(n?``:` `)+e}var Kx=[`autolink`,`destinationLiteral`,`destinationRaw`,`reference`,`titleQuote`,`titleApostrophe`];Zx.attention=Qx,Zx.peek=$x;function qx(){return{canContainEols:[`delete`],enter:{strikethrough:Yx},exit:{strikethrough:Xx}}}function Jx(){return{handlers:{delete:Zx},unsafe:[{character:`~`,inConstruct:`phrasing`,notInConstruct:Kx}]}}function Yx(e){this.enter({type:`delete`,children:[],position:void 0},e)}function Xx(e){this.exit(e)}function Zx(e,t,n,r){let i=n.createTracker(r),a=n.stack.includes(`strikethrough`)?`~`:`~~`,o=n.enter(`strikethrough`),s=i.move(a);return s+=n.containerPhrasing(e,{...i.current(),before:s,after:`~`}),s+=i.move(a),o(),s}function Qx(){return{construct:`strikethrough`,markers:[`~`],sizes:[2,1]}}function $x(){return`~`}function eS(e){return e.length}function tS(e,t){let n=t||{},r=(n.align||[]).concat(),i=n.stringLength||eS,a=[],o=[],s=[],c=[],l=0,u=-1;for(;++u<e.length;){let t=[],r=[],a=-1;for(e[u].length>l&&(l=e[u].length);++a<e[u].length;){let o=nS(e[u][a]);if(n.alignDelimiters!==!1){let e=i(o);r[a]=e,(c[a]===void 0||e>c[a])&&(c[a]=e)}t.push(o)}o[u]=t,s[u]=r}let d=-1;if(typeof r==`object`&&`length`in r)for(;++d<l;)a[d]=rS(r[d]);else{let e=rS(r);for(;++d<l;)a[d]=e}d=-1;let f=[],p=[];for(;++d<l;){let e=a[d],t=``,r=``;e===99?(t=`:`,r=`:`):e===108?t=`:`:e===114&&(r=`:`);let i=n.alignDelimiters===!1?1:Math.max(1,c[d]-t.length-r.length),o=t+`-`.repeat(i)+r;n.alignDelimiters!==!1&&(i=t.length+i+r.length,i>c[d]&&(c[d]=i),p[d]=i),f[d]=o}o.splice(1,0,f),s.splice(1,0,p),u=-1;let m=[];for(;++u<o.length;){let e=o[u],t=s[u];d=-1;let r=[];for(;++d<l;){let i=e[d]||``,o=``,s=``;if(n.alignDelimiters!==!1){let e=c[d]-(t[d]||0),n=a[d];n===114?o=` `.repeat(e):n===99?e%2?(o=` `.repeat(e/2+.5),s=` `.repeat(e/2-.5)):(o=` `.repeat(e/2),s=o):s=` `.repeat(e)}n.delimiterStart!==!1&&!d&&r.push(`|`),n.padding===!1||n.alignDelimiters===!1&&i===``||n.delimiterStart===!1&&!d||r.push(` `),n.alignDelimiters!==!1&&r.push(o),r.push(i),n.alignDelimiters!==!1&&r.push(s),n.padding!==!1&&r.push(` `),(n.delimiterEnd!==!1||d!==l-1)&&r.push(`|`)}m.push(n.delimiterEnd===!1?r.join(``).replace(/ +$/,``):r.join(``))}return m.join(`
|
|
33
|
-
`)}function nS(e){return e==null?``:String(e)}function rS(e){let t=typeof e==`string`?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}var iS=Xy([`break`,`delete`,`emphasis`,`footnote`,`footnoteReference`,`image`,`imageReference`,`inlineCode`,`inlineMath`,`link`,`linkReference`,`mdxJsxTextElement`,`mdxTextExpression`,`strong`,`text`,`textDirective`]);function aS(e,t,n,r){let i=n.enter(`blockquote`),a=n.createTracker(r);a.move(`> `),a.shift(2);let o=n.indentLines(n.containerFlow(e,a.current()),oS);return i(),o}function oS(e,t,n){return`>`+(n?``:` `)+e}function sS(e,t){return cS(e,t.inConstruct,!0)&&!cS(e,t.notInConstruct,!1)}function cS(e,t,n){if(typeof t==`string`&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function lS(e,t,n,r){let i=-1;for(;++i<n.unsafe.length;){let e=n.unsafe[i];if(e.character===`
|
|
34
|
-
`&&!e.before&&!e.after&&sS(n.stack,e))return/[\t ]/.test(r.before)?``:` `}return`\\
|
|
35
|
-
`}function uS(e,t){let n=String(e),r=n.indexOf(t),i=r,a=0,o=0;if(typeof t!=`string`)throw TypeError(`Expected substring`);for(;r!==-1;)r===i?++a>o&&(o=a):a=1,i=r+t.length,r=n.indexOf(t,i);return o}function dS(e,t){return!(t.options.fences!==!1||!e.value||e.lang||!/[^\n\r ]/.test(e.value)||/^[\t ]*(?:[\n\r]|$)|(?:^|[\n\r])[\t ]*$/.test(e.value))}function fS(e){let t=e.options.fence||"`";if(t!=="`"&&t!==`~`)throw Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function pS(e,t,n,r){let i=fS(n),a=e.value||``;if(dS(e,n)){let e=n.enter(`codeIndented`),t=n.indentLines(a,mS);return e(),t}let o=n.createTracker(r),s=i.repeat(Math.max(uS(a,i)+1,3)),c=n.enter(`codeFenced`),l=i==="`"?`GraveAccent`:`Tilde`,u=o.move(s);if(e.lang){let t=n.enter(`codeFencedLang${l}`);u+=o.move(n.safe(e.lang,{before:u,after:` `,encode:["`"],...o.current()})),t()}if(e.lang&&e.meta){let t=n.enter(`codeFencedMeta${l}`);u+=o.move(` `),u+=o.move(n.safe(e.meta,{before:u,after:`
|
|
36
|
-
`,encode:["`"],...o.current()})),t()}return u+=o.move(`
|
|
37
|
-
`),a&&(u+=o.move(a+`
|
|
38
|
-
`)),u+=o.move(s),c(),u}function mS(e,t,n){return(n?``:` `)+e}function hS(e){let t=e.options.quote||`"`;if(t!==`"`&&t!==`'`)throw Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function gS(e,t,n,r){let i=hS(n),a=i===`"`?`Quote`:`Apostrophe`,o=n.enter(`definition`),s=n.enter(`label`),c=n.createTracker(r),l=c.move(`[`);return l+=c.move(n.safe(n.associationId(e),{before:l,after:`]`,...c.current()})),l+=c.move(`]: `),s(),!e.url||/[\0- \u007F]/.test(e.url)?(s=n.enter(`destinationLiteral`),l+=c.move(`<`),l+=c.move(n.safe(e.url,{before:l,after:`>`,...c.current()})),l+=c.move(`>`)):(s=n.enter(`destinationRaw`),l+=c.move(n.safe(e.url,{before:l,after:e.title?` `:`
|
|
39
|
-
`,...c.current()}))),s(),e.title&&(s=n.enter(`title${a}`),l+=c.move(` `+i),l+=c.move(n.safe(e.title,{before:l,after:i,...c.current()})),l+=c.move(i),s()),o(),l}function _S(e){let t=e.options.emphasis||`*`;if(t!==`*`&&t!==`_`)throw Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}vS.attention=yS,vS.peek=bS;function vS(e,t,n,r){let i=n.enter(`phrasing`),a=n.containerPhrasing({type:`root`,children:[e]},r);return i(),a}function yS(e,t){return{construct:`emphasis`,markers:_S(t)===`*`?[`*`,`_`]:[`_`,`*`],sizes:[1]}}function bS(e,t,n){return n.options.emphasis||`*`}function xS(e){return`&#x`+e.toString(16).toUpperCase()+`;`}function SS(e,t){let n=!1;return sb(e,function(e){if(`value`in e&&/\r?\n|\r/.test(e.value)||e.type===`break`)return n=!0,!1}),!!((!e.depth||e.depth<3)&&ng(e)&&(t.options.setext||n))}function CS(e,t,n,r){let i=Math.max(Math.min(6,e.depth||1),1),a=n.createTracker(r);if(SS(e,n)){let t=n.enter(`headingSetext`),r=n.enter(`phrasing`),o=n.containerPhrasing(e,{...a.current(),before:`
|
|
40
|
-
`,after:`
|
|
41
|
-
`});return r(),t(),o+`
|
|
42
|
-
`+(i===1?`=`:`-`).repeat(o.length-(Math.max(o.lastIndexOf(`\r`),o.lastIndexOf(`
|
|
43
|
-
`))+1))}let o=`#`.repeat(i),s=n.enter(`headingAtx`),c=n.enter(`phrasing`);a.move(o+` `);let l=n.containerPhrasing(e,{before:`# `,after:`
|
|
44
|
-
`,...a.current()}),u=l.charCodeAt(0);return(u===9||u===32)&&(l=xS(u)+l.slice(1)),l=l?o+` `+l:o,n.options.closeAtx&&(l+=` `+o),c(),s(),l}wS.peek=TS;function wS(e){return e.value||``}function TS(){return`<`}ES.peek=DS;function ES(e,t,n,r){let i=hS(n),a=i===`"`?`Quote`:`Apostrophe`,o=n.enter(`image`),s=n.enter(`label`),c=n.createTracker(r),l=c.move(`![`);return l+=c.move(n.safe(e.alt,{before:l,after:`]`,...c.current()})),l+=c.move(`](`),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter(`destinationLiteral`),l+=c.move(`<`),l+=c.move(n.safe(e.url,{before:l,after:`>`,...c.current()})),l+=c.move(`>`)):(s=n.enter(`destinationRaw`),l+=c.move(n.safe(e.url,{before:l,after:e.title?` `:`)`,...c.current()}))),s(),e.title&&(s=n.enter(`title${a}`),l+=c.move(` `+i),l+=c.move(n.safe(e.title,{before:l,after:i,...c.current()})),l+=c.move(i),s()),l+=c.move(`)`),o(),l}function DS(){return`!`}OS.peek=kS;function OS(e,t,n,r){let i=e.referenceType,a=n.enter(`imageReference`),o=n.enter(`label`),s=n.createTracker(r),c=s.move(`![`),l=n.safe(e.alt,{before:c,after:`]`,...s.current()});c+=s.move(l+`][`),o();let u=n.stack;n.stack=u.filter(function(e){return e!==`phrasing`}),o=n.enter(`reference`);let d=n.safe(n.associationId(e),{before:c,after:`]`,...s.current()});return o(),n.stack=u,a(),i===`full`||!l||l!==d?c+=s.move(d+`]`):i===`shortcut`?c=c.slice(0,-1):c+=s.move(`]`),c}function kS(){return`!`}AS.peek=jS;function AS(e,t,n){let r=e.value||``,i="`",a=-1;for(;RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^\n\r ]/.test(r)&&(/^[\n\r ]/.test(r)&&/[\n\r ]$/.test(r)||/^`|`$/.test(r))&&(r=` `+r+` `);++a<n.unsafe.length;){let e=n.unsafe[a],t=n.compilePattern(e);if(!e.atBreak)continue;let i;for(;i=t.exec(r);){let e=i.index;r.charCodeAt(e)===10&&r.charCodeAt(e-1)===13&&e--,r=r.slice(0,e)+` `+r.slice(i.index+1)}}return i+r+i}function jS(){return"`"}function MS(e,t){let n=ng(e);return!(t.options.resourceLink||!e.url||e.title||!e.children||e.children.length!==1||e.children[0].type!==`text`||n!==e.url&&`mailto:`+n!==e.url||!/^[a-z][+\-.a-z]+:/i.test(e.url)||/[\0- <>\u007F]/.test(e.url))}NS.peek=PS;function NS(e,t,n,r){let i=hS(n),a=i===`"`?`Quote`:`Apostrophe`,o=n.createTracker(r);if(MS(e,n)){let t=n.stack;n.stack=t.filter(function(e){return e!==`phrasing`});let r=n.enter(`autolink`),i=o.move(`<`);return i+=o.move(n.containerPhrasing(e,{before:i,after:`>`,...o.current()})),i+=o.move(`>`),r(),n.stack=t,i}let s=n.enter(`link`),c=n.enter(`label`),l=o.move(`[`);return l+=o.move(n.containerPhrasing(e,{before:l,after:`](`,...o.current()})),l+=o.move(`](`),c(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(c=n.enter(`destinationLiteral`),l+=o.move(`<`),l+=o.move(n.safe(e.url,{before:l,after:`>`,...o.current()})),l+=o.move(`>`)):(c=n.enter(`destinationRaw`),l+=o.move(n.safe(e.url,{before:l,after:e.title?` `:`)`,...o.current()}))),c(),e.title&&(c=n.enter(`title${a}`),l+=o.move(` `+i),l+=o.move(n.safe(e.title,{before:l,after:i,...o.current()})),l+=o.move(i),c()),l+=o.move(`)`),s(),l}function PS(e,t,n){return MS(e,n)?`<`:`[`}FS.peek=IS;function FS(e,t,n,r){let i=e.referenceType,a=n.enter(`linkReference`),o=n.enter(`label`),s=n.createTracker(r),c=s.move(`[`),l=n.containerPhrasing(e,{before:c,after:`]`,...s.current()});c+=s.move(l+`][`),o();let u=n.stack;n.stack=u.filter(function(e){return e!==`phrasing`}),o=n.enter(`reference`);let d=n.safe(n.associationId(e),{before:c,after:`]`,...s.current()});return o(),n.stack=u,a(),i===`full`||!l||l!==d?c+=s.move(d+`]`):i===`shortcut`?c=c.slice(0,-1):c+=s.move(`]`),c}function IS(){return`[`}function LS(e){let t=e.options.bullet||`*`;if(t!==`*`&&t!==`+`&&t!==`-`)throw Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function RS(e){let t=LS(e),n=e.options.bulletOther;if(!n)return t===`*`?`-`:`*`;if(n!==`*`&&n!==`+`&&n!==`-`)throw Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function zS(e){let t=e.options.bulletOrdered||`.`;if(t!==`.`&&t!==`)`)throw Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function BS(e){let t=e.options.rule||`*`;if(t!==`*`&&t!==`-`&&t!==`_`)throw Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function VS(e,t,n,r){let i=n.enter(`list`),a=n.bulletCurrent,o=e.ordered?zS(n):LS(n),s=e.ordered?o===`.`?`)`:`.`:RS(n),c=t&&n.bulletLastUsed?o===n.bulletLastUsed:!1;if(!e.ordered){let t=e.children?e.children[0]:void 0;if(o!==`*`&&o!==`-`||!t||t.children&&t.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||(c=!0),BS(n)===o&&t){let t=-1;for(;++t<e.children.length;){let n=e.children[t];if(n&&n.type===`listItem`&&n.children&&n.children[0]&&n.children[0].type===`thematicBreak`){c=!0;break}}}}c&&(o=s),n.bulletCurrent=o;let l=n.containerFlow(e,r);return n.bulletLastUsed=o,n.bulletCurrent=a,i(),l}function HS(e){let t=e.options.listItemIndent||`one`;if(t!==`tab`&&t!==`one`&&t!==`mixed`)throw Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function US(e,t,n,r){let i=HS(n),a=n.bulletCurrent||LS(n);t&&t.type===`list`&&t.ordered&&(a=(typeof t.start==`number`&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+a);let o=a.length+1;(i===`tab`||i===`mixed`&&(t&&t.type===`list`&&t.spread||e.spread))&&(o=Math.ceil(o/4)*4);let s=n.createTracker(r);s.move(a+` `.repeat(o-a.length)),s.shift(o);let c=n.enter(`listItem`),l=n.indentLines(n.containerFlow(e,s.current()),u);return c(),l;function u(e,t,n){return t?(n?``:` `.repeat(o))+e:(n?a:a+` `.repeat(o-a.length))+e}}function WS(e,t,n,r){let i=n.enter(`paragraph`),a=n.enter(`phrasing`),o=n.containerPhrasing(e,r);return a(),i(),o}function GS(e,t,n,r){if(!e.children.some(function(e){return iS(e)}))return n.containerFlow(e,r);let i=n.enter(`phrasing`),a=n.containerPhrasing(e,r);return i(),a}function KS(e){let t=e.options.strong||`*`;if(t!==`*`&&t!==`_`)throw Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}qS.attention=JS,qS.peek=YS;function qS(e,t,n,r){let i=n.enter(`phrasing`),a=n.containerPhrasing({type:`root`,children:[e]},r);return i(),a}function JS(e,t){return{construct:`strong`,markers:KS(t)===`*`?[`*`,`_`]:[`_`,`*`],sizes:[2]}}function YS(e,t,n){return n.options.strong||`*`}function XS(e,t,n,r){let i=t?t.children:[],a=i.indexOf(e);return n.safe(e.value,{...r,afterNode:i[a+1],beforeNode:i[a-1]})}function ZS(e){let t=e.options.ruleRepetition||3;if(t<3)throw Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function QS(e,t,n){let r=(BS(n)+(n.options.ruleSpaces?` `:``)).repeat(ZS(n));return n.options.ruleSpaces?r.slice(0,-1):r}var $S={blockquote:aS,break:lS,code:pS,definition:gS,emphasis:vS,hardBreak:lS,heading:CS,html:wS,image:ES,imageReference:OS,inlineCode:AS,link:NS,linkReference:FS,list:VS,listItem:US,paragraph:WS,root:GS,strong:qS,text:XS,thematicBreak:QS};function eC(){return{enter:{table:tC,tableData:aC,tableHeader:aC,tableRow:rC},exit:{codeText:oC,table:nC,tableData:iC,tableHeader:iC,tableRow:iC}}}function tC(e){let t=e._align;this.enter({type:`table`,align:t.map(function(e){return e===`none`?null:e}),children:[]},e),this.data.inTable=!0}function nC(e){this.exit(e),this.data.inTable=void 0}function rC(e){this.enter({type:`tableRow`,children:[]},e)}function iC(e){this.exit(e)}function aC(e){this.enter({type:`tableCell`,children:[]},e)}function oC(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,sC));let n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function sC(e,t){return t===`|`?t:e}function cC(e){let t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,a=n?` `:`|`;return{unsafe:[{character:`\r`,inConstruct:`tableCell`},{character:`
|
|
45
|
-
`,inConstruct:`tableCell`},{atBreak:!0,character:`|`,after:`[ :-]`},{character:`|`,inConstruct:`tableCell`},{atBreak:!0,character:`:`,after:`-`},{atBreak:!0,character:`-`,after:`[:|-]`}],handlers:{inlineCode:f,table:o,tableCell:c,tableRow:s}};function o(e,t,n,r){return l(u(e,n,r),e.align)}function s(e,t,n,r){let i=l([d(e,n,r)]);return i.slice(0,i.indexOf(`
|
|
46
|
-
`))}function c(e,t,n,r){let i=n.enter(`tableCell`),o=n.enter(`phrasing`),s=n.containerPhrasing(e,{...r,before:a,after:a});return o(),i(),s}function l(e,t){return tS(e,{align:t,alignDelimiters:r,padding:n,stringLength:i})}function u(e,t,n){let r=e.children,i=-1,a=[],o=t.enter(`table`);for(;++i<r.length;)a[i]=d(r[i],t,n);return o(),a}function d(e,t,n){let r=e.children,i=-1,a=[],o=t.enter(`tableRow`);for(;++i<r.length;)a[i]=c(r[i],e,t,n);return o(),a}function f(e,t,n){let r=$S.inlineCode(e,t,n);return n.stack.includes(`tableCell`)&&(r=r.replace(/\|/g,`\\$&`)),r}}function lC(){return{exit:{taskListCheckValueChecked:dC,taskListCheckValueUnchecked:dC,paragraph:fC}}}function uC(){return{unsafe:[{atBreak:!0,character:`-`,after:`[:|-]`}],handlers:{listItem:pC}}}function dC(e){let t=this.stack[this.stack.length-2];t.type,t.checked=e.type===`taskListCheckValueChecked`}function fC(e){let t=this.stack[this.stack.length-2];if(t&&t.type===`listItem`&&typeof t.checked==`boolean`){let e=this.stack[this.stack.length-1];e.type;let n=e.children[0];if(n&&n.type===`text`){let r=t.children,i=-1,a;for(;++i<r.length;){let e=r[i];if(e.type===`paragraph`){a=e;break}}a===e&&(n.value=n.value.slice(1),n.value.length===0?e.children.shift():e.position&&n.position&&typeof n.position.start.offset==`number`&&(n.position.start.column++,n.position.start.offset++,e.position.start=Object.assign({},n.position.start)))}}this.exit(e)}function pC(e,t,n,r){let i=e.children[0],a=typeof e.checked==`boolean`&&i&&i.type===`paragraph`,o=`[`+(e.checked?`x`:` `)+`] `,s=n.createTracker(r);a&&s.move(o);let c=$S.listItem(e,t,n,{...r,...s.current()});return a&&(c=c.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,l)),c;function l(e){return e+o}}function mC(){return[vx(),Hx(),qx(),eC(),lC()]}function hC(e){return{extensions:[yx(),Ux(e),Jx(),cC(e),uC()]}}var gC={tokenize:AC,partial:!0},_C={tokenize:jC,partial:!0},vC={tokenize:MC,partial:!0},yC={tokenize:NC,partial:!0},bC={tokenize:PC,partial:!0},xC={name:`wwwAutolink`,tokenize:OC,previous:FC},SC={name:`protocolAutolink`,tokenize:kC,previous:IC},CC={name:`emailAutolink`,tokenize:DC,previous:LC},wC={};function TC(){return{text:wC}}for(var EC=48;EC<123;)wC[EC]=CC,EC++,EC===58?EC=65:EC===91&&(EC=97);wC[43]=CC,wC[45]=CC,wC[46]=CC,wC[95]=CC,wC[72]=[CC,SC],wC[104]=[CC,SC],wC[87]=[CC,xC],wC[119]=[CC,xC];function DC(e,t,n){let r=this,i,a;return o;function o(t){return!RC(t)||!LC.call(r,r.previous)||zC(r.events)?n(t):(e.enter(`literalAutolink`),e.enter(`literalAutolinkEmail`),s(t))}function s(t){return RC(t)?(e.consume(t),s):t===64?(e.consume(t),c):n(t)}function c(t){return t===46?e.check(bC,u,l)(t):t===45||t===95||_g(t)?(a=!0,e.consume(t),c):u(t)}function l(t){return e.consume(t),i=!0,c}function u(o){return a&&i&&gg(r.previous)?(e.exit(`literalAutolinkEmail`),e.exit(`literalAutolink`),t(o)):n(o)}}function OC(e,t,n){let r=this;return i;function i(t){return t!==87&&t!==119||!FC.call(r,r.previous)||zC(r.events)?n(t):(e.enter(`literalAutolink`),e.enter(`literalAutolinkWww`),e.check(gC,e.attempt(_C,e.attempt(vC,a),n),n)(t))}function a(n){return e.exit(`literalAutolinkWww`),e.exit(`literalAutolink`),t(n)}}function kC(e,t,n){let r=this,i=``,a=!1;return o;function o(t){return(t===72||t===104)&&IC.call(r,r.previous)&&!zC(r.events)?(e.enter(`literalAutolink`),e.enter(`literalAutolinkHttp`),i+=String.fromCodePoint(t),e.consume(t),s):n(t)}function s(t){if(gg(t)&&i.length<5)return i+=String.fromCodePoint(t),e.consume(t),s;if(t===58){let n=i.toLowerCase();if(n===`http`||n===`https`)return e.consume(t),c}return n(t)}function c(t){return t===47?(e.consume(t),a?l:(a=!0,c)):n(t)}function l(t){return t===null||yg(t)||Cg(t)||Tg(t)||wg(t)?n(t):e.attempt(_C,e.attempt(vC,u),n)(t)}function u(n){return e.exit(`literalAutolinkHttp`),e.exit(`literalAutolink`),t(n)}}function AC(e,t,n){let r=0;return i;function i(t){return(t===87||t===119)&&r<3?(r++,e.consume(t),i):t===46&&r===3?(e.consume(t),a):n(t)}function a(e){return e===null?n(e):t(e)}}function jC(e,t,n){let r,i,a;return o;function o(t){return t===46||t===95?e.check(yC,c,s)(t):t===null||Cg(t)||Tg(t)||t!==45&&wg(t)?c(t):(a=!0,e.consume(t),o)}function s(t){return t===95?r=!0:(i=r,r=void 0),e.consume(t),o}function c(e){return i||r||!a?n(e):t(e)}}function MC(e,t){let n=0,r=0;return i;function i(o){return o===40?(n++,e.consume(o),i):o===41&&r<n?a(o):o===33||o===34||o===38||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===60||o===63||o===93||o===95||o===126?e.check(yC,t,a)(o):o===null||Cg(o)||Tg(o)?t(o):(e.consume(o),i)}function a(t){return t===41&&r++,e.consume(t),i}}function NC(e,t,n){return r;function r(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?(e.consume(o),r):o===38?(e.consume(o),a):o===93?(e.consume(o),i):o===60||o===null||Cg(o)||Tg(o)?t(o):n(o)}function i(e){return e===null||e===40||e===91||Cg(e)||Tg(e)?t(e):r(e)}function a(e){return gg(e)?o(e):n(e)}function o(t){return t===59?(e.consume(t),r):gg(t)?(e.consume(t),o):n(t)}}function PC(e,t,n){return r;function r(t){return e.consume(t),i}function i(e){return _g(e)?n(e):t(e)}}function FC(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||Cg(e)}function IC(e){return!gg(e)}function LC(e){return!(e===47||RC(e))}function RC(e){return e===43||e===45||e===46||e===95||_g(e)}function zC(e){let t=e.length,n=!1;for(;t--;){let r=e[t][1];if((r.type===`labelLink`||r.type===`labelImage`)&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}var BC={tokenize:JC,partial:!0};function VC(){return{document:{91:{name:`gfmFootnoteDefinition`,tokenize:GC,continuation:{tokenize:KC},exit:qC}},text:{91:{name:`gfmFootnoteCall`,tokenize:WC},93:{name:`gfmPotentialFootnoteCall`,add:`after`,tokenize:HC,resolveTo:UC}}}}function HC(e,t,n){let r=this,i=r.events.length,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),o;for(;i--;){let e=r.events[i][1];if(e.type===`labelImage`){o=e;break}if(e.type===`gfmFootnoteCall`||e.type===`labelLink`||e.type===`label`||e.type===`image`||e.type===`link`)break}return s;function s(i){if(!o||!o._balanced)return n(i);let s=hg(r.sliceSerialize({start:o.end,end:r.now()}));return s.codePointAt(0)!==94||!a.includes(s.slice(1))?n(i):(e.enter(`gfmFootnoteCallLabelMarker`),e.consume(i),e.exit(`gfmFootnoteCallLabelMarker`),t(i))}}function UC(e,t){let n=e.length;for(;n--;)if(e[n][1].type===`labelImage`&&e[n][0]===`enter`){e[n][1];break}e[n+1][1].type=`data`,e[n+3][1].type=`gfmFootnoteCallLabelMarker`;let r={type:`gfmFootnoteCall`,start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:`gfmFootnoteCallMarker`,start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;let a={type:`gfmFootnoteCallString`,start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},o={type:`chunkString`,contentType:`string`,start:Object.assign({},a.start),end:Object.assign({},a.end)},s=[e[n+1],e[n+2],[`enter`,r,t],e[n+3],e[n+4],[`enter`,i,t],[`exit`,i,t],[`enter`,a,t],[`enter`,o,t],[`exit`,o,t],[`exit`,a,t],e[e.length-2],e[e.length-1],[`exit`,r,t]];return e.splice(n,e.length-n+1,...s),e}function WC(e,t,n){let r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),a=0,o;return s;function s(t){return e.enter(`gfmFootnoteCall`),e.enter(`gfmFootnoteCallLabelMarker`),e.consume(t),e.exit(`gfmFootnoteCallLabelMarker`),c}function c(t){return t===94?(e.enter(`gfmFootnoteCallMarker`),e.consume(t),e.exit(`gfmFootnoteCallMarker`),e.enter(`gfmFootnoteCallString`),e.enter(`chunkString`).contentType=`string`,l):n(t)}function l(s){if(a>999||s===93&&!o||s===null||s===91||Cg(s))return n(s);if(s===93){e.exit(`chunkString`);let a=e.exit(`gfmFootnoteCallString`);return i.includes(hg(r.sliceSerialize(a)))?(e.enter(`gfmFootnoteCallLabelMarker`),e.consume(s),e.exit(`gfmFootnoteCallLabelMarker`),e.exit(`gfmFootnoteCall`),t):n(s)}return Cg(s)||(o=!0),a++,e.consume(s),s===92?u:l}function u(t){return t===91||t===92||t===93?(e.consume(t),a++,l):l(t)}}function GC(e,t,n){let r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),a,o=0,s;return c;function c(t){return e.enter(`gfmFootnoteDefinition`)._container=!0,e.enter(`gfmFootnoteDefinitionLabel`),e.enter(`gfmFootnoteDefinitionLabelMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionLabelMarker`),l}function l(t){return t===94?(e.enter(`gfmFootnoteDefinitionMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionMarker`),e.enter(`gfmFootnoteDefinitionLabelString`),e.enter(`chunkString`).contentType=`string`,u):n(t)}function u(t){if(o>999||t===93&&!s||t===null||t===91||Cg(t))return n(t);if(t===93){e.exit(`chunkString`);let n=e.exit(`gfmFootnoteDefinitionLabelString`);return a=hg(r.sliceSerialize(n)),e.enter(`gfmFootnoteDefinitionLabelMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionLabelMarker`),e.exit(`gfmFootnoteDefinitionLabel`),f}return Cg(t)||(s=!0),o++,e.consume(t),t===92?d:u}function d(t){return t===91||t===92||t===93?(e.consume(t),o++,u):u(t)}function f(t){return t===58?(e.enter(`definitionMarker`),e.consume(t),e.exit(`definitionMarker`),i.includes(a)||i.push(a),$(e,p,`gfmFootnoteDefinitionWhitespace`)):n(t)}function p(e){return t(e)}}function KC(e,t,n){return e.check(Gg,t,e.attempt(BC,t,n))}function qC(e){e.exit(`gfmFootnoteDefinition`)}function JC(e,t,n){let r=this;return $(e,i,`gfmFootnoteDefinitionIndent`,5);function i(e){let i=r.events[r.events.length-1];return i&&i[1].type===`gfmFootnoteDefinitionIndent`&&i[2].sliceSerialize(i[1],!0).length===4?t(e):n(e)}}function YC(e){let t=(e||{}).singleTilde,n={name:`strikethrough`,tokenize:i,resolveAll:r};return t??=!0,{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}};function r(e,t){let n=-1;for(;++n<e.length;)if(e[n][0]===`enter`&&e[n][1].type===`strikethroughSequenceTemporary`&&e[n][1]._close){let r=n;for(;r--;)if(e[r][0]===`exit`&&e[r][1].type===`strikethroughSequenceTemporary`&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset===e[r][1].end.offset-e[r][1].start.offset){e[n][1].type=`strikethroughSequence`,e[r][1].type=`strikethroughSequence`;let i={type:`strikethrough`,start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},a={type:`strikethroughText`,start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},o=[[`enter`,i,t],[`enter`,e[r][1],t],[`exit`,e[r][1],t],[`enter`,a,t]],s=t.parser.constructs.insideSpan.null;s&&cg(o,o.length,0,Rg(s,e.slice(r+1,n),t)),cg(o,o.length,0,[[`exit`,a,t],[`enter`,e[n][1],t],[`exit`,e[n][1],t],[`exit`,i,t]]),cg(e,r-1,n-r+3,o),n=r+o.length-2;break}}for(n=-1;++n<e.length;)e[n][1].type===`strikethroughSequenceTemporary`&&(e[n][1].type=`data`);return e}function i(e,n,r){let i=this.previous,a=this.events,o=0;return s;function s(t){return i===126&&a[a.length-1][1].type!==`characterEscape`?r(t):(e.enter(`strikethroughSequenceTemporary`),c(t))}function c(a){let s=Lg(i);if(a===126)return o>1?r(a):(e.consume(a),o++,c);if(o<2&&!t)return r(a);let l=e.exit(`strikethroughSequenceTemporary`),u=Lg(a);return l._open=!u||u===2&&!!s,l._close=!s||s===2&&!!u,n(a)}}}var XC=class{constructor(){this.map=[],this.index=new Map}add(e,t,n){ZC(this,e,t,n)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),this.map.length===0)return;let t=this.map.length,n=[];for(;t>0;)--t,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(let t of r)e.push(t);r=n.pop()}this.map.length=0,this.index.clear()}};function ZC(e,t,n,r){if(n===0&&r.length===0)return;let i=e.index.get(t);if(i){i[1]+=n,i[2].push(...r);return}let a=[t,n,r];e.map.push(a),e.index.set(t,a)}function QC(e,t){let n=!1,r=[];for(;t<e.length;){let i=e[t];if(n){if(i[0]===`enter`)i[1].type===`tableContent`&&r.push(e[t+1][1].type===`tableDelimiterMarker`?`left`:`none`);else if(i[1].type===`tableContent`){if(e[t-1][1].type===`tableDelimiterMarker`){let e=r.length-1;r[e]=r[e]===`left`?`center`:`right`}}else if(i[1].type===`tableDelimiterRow`)break}else i[0]===`enter`&&i[1].type===`tableDelimiterRow`&&(n=!0);t+=1}return r}function $C(){return{flow:{null:{name:`table`,tokenize:ew,resolveAll:tw}}}}function ew(e,t,n){let r=this,i=0,a=0,o;return s;function s(e){let t=r.events.length-1;for(;t>-1;){let{type:e}=r.events[t][1];if(e===`lineEnding`||e===`linePrefix`)t--;else break}let i=t>-1?r.events[t][1].type:null,a=i===`tableHead`||i===`tableRow`?S:c;return a===S&&r.parser.lazy[r.now().line]?n(e):a(e)}function c(t){return e.enter(`tableHead`),e.enter(`tableRow`),l(t)}function l(e){return e===124||(o=!0,a+=1),u(e)}function u(t){return t===null?n(t):Z(t)?a>1?(a=0,r.interrupt=!0,e.exit(`tableRow`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),p):n(t):Q(t)?$(e,u,`whitespace`)(t):(a+=1,o&&(o=!1,i+=1),t===124?(e.enter(`tableCellDivider`),e.consume(t),e.exit(`tableCellDivider`),o=!0,u):(e.enter(`data`),d(t)))}function d(t){return t===null||t===124||Cg(t)?(e.exit(`data`),u(t)):(e.consume(t),t===92?f:d)}function f(t){return t===92||t===124?(e.consume(t),d):d(t)}function p(t){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(t):(e.enter(`tableDelimiterRow`),o=!1,Q(t)?$(e,m,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):m(t))}function m(t){return t===45||t===58?g(t):t===124?(o=!0,e.enter(`tableCellDivider`),e.consume(t),e.exit(`tableCellDivider`),h):x(t)}function h(t){return Q(t)?$(e,g,`whitespace`)(t):g(t)}function g(t){return t===58?(a+=1,o=!0,e.enter(`tableDelimiterMarker`),e.consume(t),e.exit(`tableDelimiterMarker`),_):t===45?(a+=1,_(t)):t===null||Z(t)?b(t):x(t)}function _(t){return t===45?(e.enter(`tableDelimiterFiller`),v(t)):x(t)}function v(t){return t===45?(e.consume(t),v):t===58?(o=!0,e.exit(`tableDelimiterFiller`),e.enter(`tableDelimiterMarker`),e.consume(t),e.exit(`tableDelimiterMarker`),y):(e.exit(`tableDelimiterFiller`),y(t))}function y(t){return Q(t)?$(e,b,`whitespace`)(t):b(t)}function b(n){return n===124?m(n):n===null||Z(n)?!o||i!==a?x(n):(e.exit(`tableDelimiterRow`),e.exit(`tableHead`),t(n)):x(n)}function x(e){return n(e)}function S(t){return e.enter(`tableRow`),C(t)}function C(n){return n===124?(e.enter(`tableCellDivider`),e.consume(n),e.exit(`tableCellDivider`),C):n===null||Z(n)?(e.exit(`tableRow`),t(n)):Q(n)?$(e,C,`whitespace`)(n):(e.enter(`data`),w(n))}function w(t){return t===null||t===124||Cg(t)?(e.exit(`data`),C(t)):(e.consume(t),t===92?T:w)}function T(t){return t===92||t===124?(e.consume(t),w):w(t)}}function tw(e,t){let n=-1,r=!0,i=0,a=[0,0,0,0],o=[0,0,0,0],s=!1,c=0,l,u,d,f=new XC;for(;++n<e.length;){let p=e[n],m=p[1];p[0]===`enter`?m.type===`tableHead`?(s=!1,c!==0&&(rw(f,t,c,l,u),u=void 0,c=0),l={type:`table`,start:Object.assign({},m.start),end:Object.assign({},m.end)},f.add(n,0,[[`enter`,l,t]])):m.type===`tableRow`||m.type===`tableDelimiterRow`?(r=!0,d=void 0,a=[0,0,0,0],o=[0,n+1,0,0],s&&(s=!1,u={type:`tableBody`,start:Object.assign({},m.start),end:Object.assign({},m.end)},f.add(n,0,[[`enter`,u,t]])),i=m.type===`tableDelimiterRow`?2:u?3:1):i&&(m.type===`data`||m.type===`tableDelimiterMarker`||m.type===`tableDelimiterFiller`)?(r=!1,o[2]===0&&(a[1]!==0&&(o[0]=o[1],d=nw(f,t,a,i,void 0,d),a=[0,0,0,0]),o[2]=n)):m.type===`tableCellDivider`&&(r?r=!1:(a[1]!==0&&(o[0]=o[1],d=nw(f,t,a,i,void 0,d)),a=o,o=[a[1],n,0,0])):m.type===`tableHead`?(s=!0,c=n):m.type===`tableRow`||m.type===`tableDelimiterRow`?(c=n,a[1]===0?o[1]!==0&&(d=nw(f,t,o,i,n,d)):(o[0]=o[1],d=nw(f,t,a,i,n,d)),i=0):i&&(m.type===`data`||m.type===`tableDelimiterMarker`||m.type===`tableDelimiterFiller`)&&(o[3]=n)}for(c!==0&&rw(f,t,c,l,u),f.consume(t.events),n=-1;++n<t.events.length;){let e=t.events[n];e[0]===`enter`&&e[1].type===`table`&&(e[1]._align=QC(t.events,n))}return e}function nw(e,t,n,r,i,a){let o=r===1?`tableHeader`:r===2?`tableDelimiter`:`tableData`;n[0]!==0&&(a.end=Object.assign({},iw(t.events,n[0])),e.add(n[0],0,[[`exit`,a,t]]));let s=iw(t.events,n[1]);if(a={type:o,start:Object.assign({},s),end:Object.assign({},s)},e.add(n[1],0,[[`enter`,a,t]]),n[2]!==0){let i=iw(t.events,n[2]),a=iw(t.events,n[3]),o={type:`tableContent`,start:Object.assign({},i),end:Object.assign({},a)};if(e.add(n[2],0,[[`enter`,o,t]]),r!==2){let r=t.events[n[2]],i=t.events[n[3]];if(r[1].end=Object.assign({},i[1].end),r[1].type=`chunkText`,r[1].contentType=`text`,n[3]>n[2]+1){let t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[[`exit`,o,t]])}return i!==void 0&&(a.end=Object.assign({},iw(t.events,i)),e.add(i,0,[[`exit`,a,t]]),a=void 0),a}function rw(e,t,n,r,i){let a=[],o=iw(t.events,n);i&&(i.end=Object.assign({},o),a.push([`exit`,i,t])),r.end=Object.assign({},o),a.push([`exit`,r,t]),e.add(n+1,0,a)}function iw(e,t){let n=e[t],r=n[0]===`enter`?`start`:`end`;return n[1][r]}var aw={name:`tasklistCheck`,tokenize:sw};function ow(){return{text:{91:aw}}}function sw(e,t,n){let r=this;return i;function i(t){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(t):(e.enter(`taskListCheck`),e.enter(`taskListCheckMarker`),e.consume(t),e.exit(`taskListCheckMarker`),a)}function a(t){return Cg(t)?(e.enter(`taskListCheckValueUnchecked`),e.consume(t),e.exit(`taskListCheckValueUnchecked`),o):t===88||t===120?(e.enter(`taskListCheckValueChecked`),e.consume(t),e.exit(`taskListCheckValueChecked`),o):n(t)}function o(t){return t===93?(e.enter(`taskListCheckMarker`),e.consume(t),e.exit(`taskListCheckMarker`),e.exit(`taskListCheck`),s):n(t)}function s(r){return Z(r)?t(r):Q(r)?e.check({tokenize:cw},t,n)(r):n(r)}}function cw(e,t,n){return $(e,r,`whitespace`);function r(e){return e===null?n(e):t(e)}}function lw(e){return dg([TC(),VC(),YC(e),$C(),ow()])}var uw={};function dw(e){let t=this,n=e||uw,r=t.data(),i=r.micromarkExtensions||=[],a=r.fromMarkdownExtensions||=[],o=r.toMarkdownExtensions||=[];i.push(lw(n)),a.push(mC()),o.push(hC(n))}var fw=e=>e.type===`multiselect`||e.type===`array`,pw=e=>e.type===`number`||e.type===`integer`,mw=(e,t)=>(e.when??[]).every(e=>e.op===`eq`?t[e.key]===e.value:e.op!==`neq`||t[e.key]!==e.value);function hw({project:e,agent:t}){let[n,r]=(0,b.useState)([]);return(0,b.useEffect)(()=>{if(t.status!==`waiting`){r([]);return}let n=!0,i=()=>J.forms(e.id,t.id).then(e=>n&&r(e)).catch(()=>{});i();let a=setInterval(i,3e3);return()=>{n=!1,clearInterval(a)}},[e.id,t.id,t.status]),(0,B.jsx)(B.Fragment,{children:n.map(n=>(0,B.jsx)(gw,{form:n,project:e,agent:t,onDone:()=>r(e=>e.filter(e=>e.id!==n.id))},n.id))})}function gw({form:e,project:t,agent:n,onDone:r}){let[i,a]=(0,b.useState)(()=>Object.fromEntries(e.fields.map(e=>[e.key,e.default??(fw(e)?[]:e.type!==`boolean`&&``)]))),o=e.fields.filter(e=>!e.hidden&&mw(e,i)),[s,c]=(0,b.useState)({}),[l,u]=(0,b.useState)(!1),[d,f]=(0,b.useState)(null),p=(0,b.useRef)(null);(0,b.useEffect)(()=>{p.current?.scrollIntoView({behavior:`smooth`,block:`nearest`})},[]);let m=(e,t)=>a(n=>({...n,[e]:t})),h=o.some(e=>e.required&&_w(i[e.key])&&!s[e.key]);async function g(){u(!0),f(null);let a={},c=[];for(let e of o){if(e.type===`external`)continue;let t=i[e.key];if(s[e.key]?.trim()&&(t=fw(e)?[...t??[],s[e.key].trim()]:s[e.key].trim()),pw(e)&&typeof t==`string`&&t!==``&&(t=Number(t)),_w(t)&&!e.required)continue;a[e.key]=t;let n=t=>e.options?.find(e=>e.value===t)?.label??String(t);c.push(`${e.title??e.key}: ${Array.isArray(t)?t.map(n).join(`, `):n(t)}`)}try{await J.answerForm(t.id,n.id,e.id,a,c.join(`
|
|
47
|
-
`)),r()}catch(e){f(e.message),u(!1)}}return(0,B.jsxs)(W.div,{ref:p,className:`form-card`,initial:{opacity:0,y:6},animate:{opacity:1,y:0},children:[(0,B.jsxs)(`div`,{className:`form-card-head`,children:[(0,B.jsx)(Uf,{size:15}),n.name,` needs your answer`,e.title?` — ${e.title}`:``]}),(0,B.jsxs)(`div`,{className:`form-card-body`,children:[o.map(e=>{let t=e.options??e.items?.options;return(0,B.jsxs)(`div`,{className:`form-field`,children:[e.title&&(0,B.jsx)(`div`,{className:`form-field-title`,children:e.title}),e.description&&(0,B.jsx)(`div`,{className:`form-field-desc`,children:e.description}),e.type===`external`&&e.url?(0,B.jsx)(`a`,{className:`btn sm`,href:e.url,target:`_blank`,rel:`noopener noreferrer`,children:`Open link`}):t?(0,B.jsxs)(`div`,{className:`form-options`,children:[t.map(t=>{let n=fw(e),r=i[e.key],a=n?r.includes(t.value):r===t.value,o=n&&!a&&e.maxItems!==void 0&&r.length>=e.maxItems;return(0,B.jsxs)(`button`,{className:`form-option ${a?`on`:``}`,disabled:o,title:o?`Choose up to ${e.maxItems}`:void 0,onClick:()=>{if(n){let n=r;m(e.key,a?n.filter(e=>e!==t.value):[...n,t.value])}else m(e.key,t.value);n||c(t=>({...t,[e.key]:``}))},children:[(0,B.jsx)(`strong`,{style:{fontWeight:500},children:t.label}),t.description&&(0,B.jsx)(`span`,{children:t.description})]},t.value)}),e.custom!==!1&&(0,B.jsx)(`input`,{placeholder:`Or type your own answer…`,value:s[e.key]??``,onChange:t=>{c(n=>({...n,[e.key]:t.target.value})),fw(e)||m(e.key,``)}})]}):e.type===`boolean`?(0,B.jsx)(`div`,{className:`form-options`,children:[!0,!1].map(t=>(0,B.jsx)(`button`,{className:`form-option ${i[e.key]===t?`on`:``}`,onClick:()=>m(e.key,t),children:(0,B.jsx)(`strong`,{children:t?`Yes`:`No`})},String(t)))}):(0,B.jsx)(`textarea`,{rows:2,placeholder:e.placeholder??`Your answer…`,value:String(i[e.key]??``),onChange:t=>m(e.key,t.target.value)})]},e.key)}),d&&(0,B.jsx)(`div`,{className:`error`,children:d}),(0,B.jsx)(`div`,{className:`row`,style:{justifyContent:`flex-end`},children:(0,B.jsx)(`button`,{className:`btn primary`,onClick:g,disabled:l||h,children:l?`Sending…`:`Send answer`})})]})]})}function _w(e){return e==null||e===``||Array.isArray(e)&&e.length===0}function vw(e,t,n){let r=n.assistantMessageID??``,i=e=>`${r}:${e}:${n.ordinal??0}`,a=(t,n)=>e.map(e=>e.key===t?n(e):e),o=t=>e.some(e=>e.key===t.key)?e:[...e,t];switch(t){case`session.text.started`:return o({kind:`text`,key:i(`text`),text:``});case`session.text.delta`:{let e=i(`text`);return o({kind:`text`,key:e,text:``}).map(t=>t.key===e?{...t,text:t.text+(n.delta??``)}:t)}case`session.text.ended`:return a(i(`text`),e=>({...e,text:n.text??e.text}));case`session.reasoning.started`:return o({kind:`reasoning`,key:i(`reasoning`),text:``});case`session.reasoning.delta`:{let e=i(`reasoning`);return o({kind:`reasoning`,key:e,text:``}).map(t=>t.key===e?{...t,text:t.text+(n.delta??``)}:t)}case`session.tool.input.started`:return o({kind:`tool`,key:n.id,name:n.name??`tool`,status:`running`});case`session.tool.called`:return a(n.id,e=>({...e,input:n.input}));case`session.tool.success`:return a(n.id,e=>({...e,status:`done`,output:yw(n.content)}));case`session.tool.failed`:case`session.tool.error`:return a(n.id,e=>({...e,status:`failed`,output:n.error?.message??yw(n.content)}));default:return e}}function yw(e){return Array.isArray(e)?e.map(e=>e?.type===`text`?e.text:``).join(``).trim():typeof e==`string`?e:void 0}var bw=/^Symbio( watchdog)?:\s*/,xw=/^\[from: ([^\]·]+?) · ([\w-]+)\]\n?/,Sw={request:`Request`,info:`Update`,blocking:`Blocking`,urgent:`Urgent`,"asset-request":`Asset request`,"asset-granted":`Asset granted`,"asset-denied":`Asset denied`,"asset-released":`Asset released`,"task-review":`Ready for review`,"task-blocked":`Blocked`},Cw={"asset-granted":`green`,"task-review":`amber`,"asset-denied":`red`,blocking:`red`,urgent:`red`,"task-blocked":`red`,request:`accent`,"asset-request":`accent`};function ww({project:e,agent:t}){let[n,r]=(0,b.useState)(!1),[i,a]=(0,b.useState)(t.name),[o,s]=(0,b.useState)(!1);async function c(){let n=i.trim();if(!n||n===t.name)return r(!1);s(!0);try{await J.renameAgent(e.id,t.id,n),r(!1)}catch(e){alert(e.message)}finally{s(!1)}}return n?(0,B.jsx)(`input`,{className:`title-input`,autoFocus:!0,value:i,disabled:o,onChange:e=>a(e.target.value),onBlur:()=>void c(),onKeyDown:e=>{e.key===`Enter`&&c(),e.key===`Escape`&&(a(t.name),r(!1))}}):(0,B.jsxs)(`div`,{className:`title row`,style:{gap:6},children:[t.name,t.role!==`coordinator`&&(0,B.jsx)(`button`,{className:`btn ghost icon xs`,title:`Rename`,onClick:()=>{a(t.name),r(!0)},children:(0,B.jsx)(Qf,{size:12})})]})}var Tw=40,Ew=120;function Dw(e,t,n){let r=t.messages;if(!e?.length||!r.length)return{messages:r,hasOlder:t.hasMore};let i=new Set(r.map(e=>e.id));if(t.hasMore&&!e.some(e=>e.id===r[0].id))return{messages:r,hasOlder:!0};let a=r[0].time?.created??0,o=e.filter(e=>!i.has(e.id)&&(e.time?.created??0)<a);return{messages:[...o,...r],hasOlder:o.length?n:t.hasMore}}function Ow({project:e,agent:t}){let[n,r]=(0,b.useState)(null),[i,a]=(0,b.useState)(!1),[o,s]=(0,b.useState)(!1),c=(0,b.useRef)({messages:null,hasOlder:!1}),l=(0,b.useRef)(null),[u,d]=(0,b.useState)([]),[f,p]=(0,b.useState)(null),[m,h]=(0,b.useState)(null),[g,_]=(0,b.useState)(``),[v,y]=(0,b.useState)(!1),[x,S]=(0,b.useState)(!1),[C,w]=(0,b.useState)(!1),[T,E]=(0,b.useState)(!1),[D,O]=(0,b.useState)(null),ee=(0,b.useRef)(null),te=(0,b.useRef)(!0),ne=(e,t)=>{c.current={messages:e,hasOlder:t},r(e),a(t)},re=(0,b.useCallback)(()=>J.historyPage(e.id,t.id,Tw,void 0,D??void 0).then(e=>{let t=c.current,{messages:n,hasOlder:r}=Dw(t.messages,e,t.hasOlder);te.current&&n.length>Ew&&(n=n.slice(-80),r=!0),ne(n,r)}).catch(e=>p(e.message)),[e.id,t.id,D]),k=(0,b.useCallback)(async()=>{let{messages:n,hasOlder:r}=c.current;if(r&&n?.length&&!o){s(!0);try{let r=await J.historyPage(e.id,t.id,Tw,n[0].id,D??void 0);l.current=ee.current?.scrollHeight??null,ne([...r.messages,...n],r.hasMore)}catch(e){p(e.message)}finally{s(!1)}}},[e.id,t.id,o,D]);(0,b.useLayoutEffect)(()=>{let e=ee.current;e&&l.current!==null&&(e.scrollTop+=e.scrollHeight-l.current,l.current=null)},[n]),(0,b.useEffect)(()=>{if(c.current={messages:null,hasOlder:!1},r(null),a(!1),d([]),te.current=!0,re(),!D)return Up(e=>{if(e.type!==`agent.stream`||e.agentId!==t.id)return;let{type:n,data:r}=e.event;/retr/i.test(n)?h(Fw(r)):((n===`session.text.delta`||n===`session.tool.called`)&&h(null),n===`session.execution.started`?(p(null),re()):n.startsWith(`session.execution.`)?(h(null),n===`session.execution.failed`&&p(r.error?.message??`The agent's turn failed.`),re().then(()=>d([]))):d(e=>vw(e,n,r)))})},[t.id,t.sessionId,D,re]),(0,b.useEffect)(()=>{let e=ee.current;e&&te.current&&(e.scrollTop=e.scrollHeight)},[n,u,f]);async function ie(){let n=g.trim();if(n){y(!0),_(``),te.current=!0;try{await J.send(e.id,t.id,n),re()}catch(e){p(e.message),_(n)}finally{y(!1)}}}let A=t.status===`busy`||t.status===`stuck`;return(0,B.jsxs)(`div`,{className:`chat`,children:[(0,B.jsxs)(`div`,{className:`chat-head`,children:[(0,B.jsx)(em,{name:t.name,status:t.status,size:`lg`}),(0,B.jsxs)(`div`,{className:`grow`,children:[(0,B.jsx)(ww,{project:e,agent:t}),(0,B.jsxs)(`div`,{className:`sub ellipsis`,children:[tm(t.status),` ·`,` `,t.status===`stopped`?t.model:(0,B.jsx)(`select`,{className:`inline-select`,value:t.model,title:`Model ${t.name} runs on — applies from its next turn`,onChange:n=>J.setAgentModel(e.id,t.id,n.target.value).catch(e=>alert(e.message)),children:[...new Set([t.model,...e.allowedModels])].map(t=>(0,B.jsx)(`option`,{value:t,disabled:!e.allowedModels.includes(t),children:t},t))}),t.branch?(0,B.jsxs)(B.Fragment,{children:[` · `,(0,B.jsx)(Cf,{size:11,style:{verticalAlign:-1}}),` `,t.branch]}):t.role!==`coordinator`&&(0,B.jsxs)(`span`,{title:`Works in the project folder itself: ${e.directory}`,children:[` · `,(0,B.jsx)(xf,{size:11,style:{verticalAlign:-1}}),` project folder`]}),(t.previousSessions?.length??0)>0&&(0,B.jsxs)(B.Fragment,{children:[` · `,(0,B.jsxs)(`select`,{className:`inline-select`,value:D??``,title:`Earlier sessions stay readable after the agent got a fresh one`,onChange:e=>O(e.target.value||null),children:[(0,B.jsx)(`option`,{value:``,children:`current session`}),[...t.previousSessions].reverse().map((e,n)=>(0,B.jsxs)(`option`,{value:e.sessionId,children:[`earlier session `,t.previousSessions.length-n,` (until `,new Date(e.endedAt).toLocaleString(),`)`]},e.sessionId))]})]})]})]}),t.status!==`stopped`&&(0,B.jsxs)(`button`,{className:`btn ghost sm`,disabled:C||A||t.status===`waiting`,title:A?`Available when the agent is idle`:`Continue in a fresh session: lighter and cheaper; a handoff note carries the essentials over`,onClick:()=>{confirm(`Give ${t.name} a fresh session? It keeps its name, folder, tasks and assets, and starts from a handoff note. The current conversation stays readable.`)&&(w(!0),O(null),J.renewSession(e.id,t.id).catch(e=>alert(e.message)).finally(()=>w(!1)))},children:[(0,B.jsx)(cp,{size:14}),C?`Renewing…`:`New session`]}),t.role!==`coordinator`&&t.branch&&t.status!==`stopped`&&(0,B.jsxs)(`button`,{className:`btn ghost sm`,disabled:T||A||t.status===`waiting`,title:A?`Available when the agent is idle`:`Work in the project folder itself instead of its own copy: what it writes is there at once, nothing to merge`,onClick:()=>{confirm(`Move ${t.name} into the project folder? Its own copy (branch ${t.branch}) is removed, so its work must be merged first. It continues in a fresh session with a handoff note; the current conversation stays readable.`)&&(E(!0),O(null),J.moveToProjectFolder(e.id,t.id).catch(e=>alert(e.message)).finally(()=>E(!1)))},children:[(0,B.jsx)(hf,{size:14}),T?`Moving…`:`Move to project folder`]}),t.role!==`coordinator`&&t.status!==`stopped`&&(0,B.jsxs)(`button`,{className:`btn ghost sm`,onClick:()=>{confirm(`Stop ${t.name}? Any assets it holds are released; unmerged work is kept.`)&&J.stopAgent(e.id,t.id).catch(e=>alert(e.message))},children:[(0,B.jsx)(Kd,{size:14}),`Stop agent`]}),t.role!==`coordinator`&&t.status===`stopped`&&(0,B.jsxs)(`button`,{className:`btn sm`,disabled:x,onClick:()=>{S(!0),J.restartAgent(e.id,t.id).catch(e=>alert(e.message)).finally(()=>S(!1))},children:[(0,B.jsx)(fp,{size:14}),x?`Restarting…`:`Restart agent`]})]}),(0,B.jsx)(`div`,{className:`chat-scroll`,ref:ee,onScroll:e=>{let t=e.currentTarget;te.current=t.scrollHeight-t.scrollTop-t.clientHeight<80,t.scrollTop<300&&k()},children:(0,B.jsxs)(`div`,{className:`chat-col`,children:[n===null&&(0,B.jsx)(`div`,{className:`subtle center`,children:`Loading conversation…`}),i&&(0,B.jsx)(`button`,{className:`btn ghost sm load-older`,onClick:()=>void k(),disabled:o,children:o?`Loading earlier messages…`:`Load earlier messages`}),n?.length===0&&u.length===0&&(0,B.jsxs)(`div`,{className:`chat-empty`,children:[(0,B.jsx)(`h2`,{children:`Let's talk about the project`}),(0,B.jsx)(`p`,{children:`Tell core what you want to build. It will ask questions, agree on the scope with you, and then plan the work.`})]}),(0,B.jsxs)(Bl,{initial:!1,children:[n?.map(e=>(0,B.jsx)(kw,{message:e},e.id)),u.length>0&&(0,B.jsx)(W.div,{className:`msg-assistant`,initial:{opacity:0},animate:{opacity:1},children:u.map(e=>(0,B.jsx)(jw,{block:e},e.key))},`live`)]}),A&&u.length===0&&(0,B.jsx)(Lw,{stuck:t.status===`stuck`,retry:m??Iw(n)}),(0,B.jsx)(hw,{project:e,agent:t}),f&&!Pw(n)&&(0,B.jsxs)(`div`,{className:`msg-failure`,children:[(0,B.jsx)(Rd,{size:14}),f]})]})}),D?(0,B.jsx)(`div`,{className:`composer-wrap`,children:(0,B.jsxs)(`div`,{className:`session-note`,children:[`You're reading an earlier session of `,t.name,` (read-only).`,(0,B.jsx)(`button`,{className:`btn sm`,onClick:()=>O(null),children:`Back to the current session`})]})}):(0,B.jsx)(`div`,{className:`composer-wrap`,children:(0,B.jsxs)(`div`,{className:`composer`,children:[(0,B.jsx)(`textarea`,{value:g,placeholder:A?`${t.name} is working — your message will be queued`:`Message ${t.name}…`,onChange:e=>_(e.target.value),onKeyDown:e=>{e.key===`Enter`&&!e.shiftKey&&(e.preventDefault(),ie())},rows:Math.min(10,Math.max(1,g.split(`
|
|
48
|
-
`).length))}),(0,B.jsxs)(`div`,{className:`composer-bar`,children:[(0,B.jsxs)(`span`,{className:`composer-hint`,children:[(0,B.jsx)(`span`,{className:`kbd`,children:`Enter`}),` to send · `,(0,B.jsx)(`span`,{className:`kbd`,children:`Shift`}),`+`,(0,B.jsx)(`span`,{className:`kbd`,children:`Enter`}),` for a new line`]}),(0,B.jsx)(`span`,{className:`spacer`}),A&&(0,B.jsxs)(`button`,{className:`btn ghost sm`,onClick:()=>J.interrupt(e.id,t.id),title:`Interrupt the current turn`,children:[(0,B.jsx)(Kd,{size:14}),`Stop`]}),(0,B.jsx)(`button`,{className:`btn primary icon sm`,onClick:ie,disabled:!g.trim()||v,title:`Send`,"aria-label":`Send`,children:(0,B.jsx)(wd,{size:15})})]})]})})]})}function kw({message:e}){let t={initial:{opacity:0,y:4},animate:{opacity:1,y:0},transition:{duration:.15}};if(e.type===`user`||e.type===`synthetic`){let n=e.text??``,r=n.match(xw);if(r&&r[1]!==`human`){let e=r[2];return(0,B.jsxs)(W.div,{className:`msg-agent`,...t,children:[(0,B.jsxs)(`div`,{className:`msg-agent-head`,children:[(0,B.jsx)(em,{name:r[1],size:`sm`}),(0,B.jsx)(`strong`,{children:r[1]}),(0,B.jsx)(`span`,{className:`tag ${Cw[e]??``}`,children:Sw[e]??e})]}),(0,B.jsx)(`div`,{className:`msg-agent-body md`,children:(0,B.jsx)(ax,{remarkPlugins:[dw],children:n.slice(r[0].length)})})]})}return r?(0,B.jsx)(W.div,{className:`msg-user`,...t,children:n.slice(r[0].length)}):bw.test(n)?(0,B.jsx)(W.div,{className:`msg-note`,...t,children:(0,B.jsxs)(`span`,{children:[(0,B.jsx)(jf,{size:12,style:{verticalAlign:-2,marginRight:6}}),n.replace(bw,``)]})}):(0,B.jsx)(W.div,{className:`msg-user`,...t,children:n})}if(e.type===`assistant`){let n=e.content??[];return n.length===0&&!e.error?null:(0,B.jsxs)(W.div,{className:`msg-assistant`,...t,children:[n.map((e,t)=>(0,B.jsx)(jw,{block:Aw(e,t)},t)),e.error&&(0,B.jsxs)(`div`,{className:`msg-failure`,children:[(0,B.jsx)(Rd,{size:14}),e.error.message??String(e.error)]})]})}return e.type===`model-switched`?(0,B.jsx)(W.div,{className:`msg-note`,...t,children:(0,B.jsxs)(`span`,{children:[(0,B.jsx)(up,{size:12,style:{verticalAlign:-2,marginRight:6}}),`Switched to `,e.model?.providerID,`/`,e.model?.id]})}):null}function Aw(e,t){if(e.type===`text`)return{kind:`text`,key:String(t),text:e.text??``};if(e.type===`reasoning`)return{kind:`reasoning`,key:String(t),text:e.text??``};let n=e.state??{},r=n.status??e.status;return{kind:`tool`,key:String(t),name:e.name??e.type,input:n.input??e.input,status:r===`error`||r===`failed`?`failed`:r===`running`||r===`pending`?`running`:`done`,output:yw(n.content)||n.error?.message||void 0}}function jw({block:e}){return e.kind===`text`?(0,B.jsx)(`div`,{className:`md`,children:(0,B.jsx)(ax,{remarkPlugins:[dw],children:e.text})}):e.kind===`reasoning`?e.text.trim()?(0,B.jsxs)(`details`,{className:`reasoning`,children:[(0,B.jsxs)(`summary`,{children:[(0,B.jsx)(Ad,{size:13}),`Thinking`]}),(0,B.jsx)(`div`,{className:`reasoning-body`,children:e.text})]}):null:(0,B.jsx)(Mw,{block:e})}function Mw({block:e}){let t=Nw(e.input);return(0,B.jsxs)(`details`,{className:`tool`,children:[(0,B.jsxs)(`summary`,{children:[(0,B.jsx)(`span`,{className:`tool-state ${e.status}`,children:e.status===`running`?(0,B.jsx)(Lf,{size:13,className:`spin`}):e.status===`failed`?(0,B.jsx)(Pp,{size:13}):(0,B.jsx)(Md,{size:13})}),(0,B.jsx)(Mp,{size:12,className:`subtle`}),(0,B.jsx)(`span`,{className:`tool-name`,children:e.name}),t&&(0,B.jsx)(`span`,{className:`tool-arg`,children:t})]}),e.input!==void 0&&(0,B.jsx)(`pre`,{className:`tool-io`,children:JSON.stringify(e.input,null,2)}),e.output&&(0,B.jsx)(`pre`,{className:`tool-io out`,children:e.output.slice(0,4e3)})]})}function Nw(e){if(!e||typeof e!=`object`)return null;let t=e;if(typeof t.code==`string`){let e=[...new Set([...t.code.matchAll(/tools\.([\w$]+)\.([\w$]+)/g)].map(e=>`${e[1]}.${e[2]}`))];return e.length?e.join(`, `):t.code.split(`
|
|
49
|
-
`).find(e=>e.trim()&&!e.trim().startsWith(`//`))?.trim().slice(0,120)??null}let n=t.command??t.filePath??t.path??t.pattern??t.url??t.query;return typeof n==`string`?n.slice(0,120):null}function Pw(e){let t=e?.findLast(e=>e.type===`assistant`||e.type===`user`);return t?.type===`assistant`&&!!t.error}function Fw(e){let t=e?.retry??e,n=t?.error?.message??t?.message??`provider error`;return`Provider not responding — retrying${t?.attempt?` (attempt ${t.attempt})`:``}: ${n}`}function Iw(e){let t=e?.[e.length-1];return t?.type===`assistant`&&t.retry&&!t.content?.length?Fw(t):null}function Lw({stuck:e,retry:t}){return(0,B.jsxs)(`div`,{className:`thinking ${t?`retrying`:``}`,children:[(0,B.jsxs)(`span`,{className:`typing`,children:[(0,B.jsx)(`i`,{}),(0,B.jsx)(`i`,{}),(0,B.jsx)(`i`,{})]}),e?`Looked stuck — recovering…`:t??`Working…`]})}function Rw({project:e}){let[t,n]=(0,b.useState)(null),[r,i]=(0,b.useState)(``),[a,o]=(0,b.useState)(null),[s,c]=(0,b.useState)(null),[l,u]=(0,b.useState)(!1),[d,f]=(0,b.useState)(``),[p,m]=(0,b.useState)(!1),[h,g]=(0,b.useState)(null),_=(0,b.useRef)(!1);_.current=l;let v=(0,b.useCallback)(()=>J.docs(e.id).then(e=>{n(e.files),i(e.root)}).catch(e=>g(e.message)),[e.id]),y=(0,b.useCallback)(t=>J.readDoc(e.id,t).then(e=>c(e.content)).catch(e=>g(e.message)),[e.id]);(0,b.useEffect)(()=>{v();let t,n=Up(n=>{n.type===`agent.stream`&&n.projectId===e.id&&(n.event.type===`session.tool.success`||n.event.type.startsWith(`session.execution.`))&&(clearTimeout(t),t=setTimeout(()=>void v(),800))});return()=>{clearTimeout(t),n()}},[e.id,v]),(0,b.useEffect)(()=>{if(!t?.length)return;let e=a&&t.some(e=>e.path===a)?a:t[0].path;e===a?_.current||y(e):o(e)},[t]),(0,b.useEffect)(()=>{a&&(u(!1),c(null),y(a))},[a,y]);async function x(){if(a){m(!0);try{await J.writeDoc(e.id,a,d),c(d),u(!1),v()}catch(e){g(e.message)}finally{m(!1)}}}return t&&t.length===0?(0,B.jsxs)(om,{icon:(0,B.jsx)(Ed,{size:20}),title:`No documentation yet`,children:[`core writes it as it learns the project — `,e.docsLocation===`private`?`privately in .symbio/docs`:`in AGENTS.md and docs/`,`.`]}):(0,B.jsxs)(`div`,{className:`docs`,children:[(0,B.jsxs)(`nav`,{className:`docs-list`,children:[(0,B.jsx)(`div`,{className:`side-group-title`,title:r,children:e.docsLocation===`private`?`Private docs`:`Project docs`}),t?.map(e=>(0,B.jsxs)(`button`,{className:`docs-item ${a===e.path?`active`:``}`,onClick:()=>o(e.path),title:e.path,children:[(0,B.jsx)(pf,{size:14}),(0,B.jsx)(`span`,{className:`grow`,children:e.path}),(0,B.jsx)(`span`,{className:`docs-item-time`,children:sm(e.modified)})]},e.path))]}),(0,B.jsxs)(`section`,{className:`docs-view`,children:[h&&(0,B.jsx)(`div`,{className:`error`,children:h}),a&&(0,B.jsxs)(`div`,{className:`docs-toolbar`,children:[(0,B.jsx)(`code`,{children:a}),(0,B.jsx)(`div`,{className:`spacer`}),l?(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(`button`,{className:`btn ghost sm`,onClick:()=>u(!1),children:`Cancel`}),(0,B.jsxs)(`button`,{className:`btn primary sm`,onClick:x,disabled:p,children:[(0,B.jsx)(mp,{size:13}),p?`Saving…`:`Save`]})]}):(0,B.jsxs)(`button`,{className:`btn sm`,onClick:()=>{f(s??``),u(!0)},disabled:s===null,children:[(0,B.jsx)(Qf,{size:13}),`Edit`]})]}),(0,B.jsx)(Bl,{mode:`wait`,children:(0,B.jsx)(W.div,{className:`docs-body`,initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.12},children:l?(0,B.jsx)(`textarea`,{className:`docs-editor`,value:d,onChange:e=>f(e.target.value),spellCheck:!0}):s===null?(0,B.jsx)(`div`,{className:`muted`,children:`Loading…`}):(0,B.jsx)(`div`,{className:`md`,children:(0,B.jsx)(ax,{remarkPlugins:[dw],children:s})})},`${a}:${l}`)})]})]})}var zw={chat:{label:`Chat`},info:{label:`Update`},request:{label:`Request`,tone:`accent`},blocking:{label:`Blocking`,tone:`red`},urgent:{label:`Urgent`,tone:`red`},"needs-human":{label:`Question for you`,tone:`amber`},form:{label:`Question for you`,tone:`amber`},alert:{label:`Needs your action`,tone:`red`},approval:{label:`Approval requested`,tone:`amber`},permission:{label:`Permission request`,tone:`amber`},remote:{label:`Connection action`,tone:`blue`},system:{label:`Symbio`},"asset-request":{label:`Asset request`,tone:`accent`},"asset-granted":{label:`Asset granted`,tone:`green`},"asset-denied":{label:`Asset denied`,tone:`red`},"asset-released":{label:`Asset released`},plan:{label:`Plan proposed`,tone:`amber`},"task-review":{label:`Ready for review`,tone:`amber`},"task-blocked":{label:`Task blocked`,tone:`red`}};function Bw(e){return e.filter(t=>(t.kind===`needs-human`||t.kind===`form`)&&t.from!==`symbio`&&!e.some(e=>e.from===`human`&&e.to===t.from&&e.time>t.time))}function Vw(e){let[t,n]=(0,b.useState)(null);return(0,b.useEffect)(()=>(J.log(e).then(n).catch(()=>n([])),Up(t=>{t.type===`message`&&t.projectId===e&&n(e=>e&&!e.some(e=>e.id===t.message.id)?[...e,t.message]:e)})),[e]),t}function Hw({project:e,log:t,onOpenAgent:n}){let[r,i]=(0,b.useState)(!0),a=(0,b.useRef)(null),o=t=>t===`human`?`You`:t===`symbio`?`Symbio`:e.agents.find(e=>e.id===t)?.name??t,s=(t??[]).filter(e=>!(r&&e.kind===`chat`)),c=new Set(Bw(t??[]).map(e=>e.id));return(0,b.useEffect)(()=>{let e=a.current;e&&(e.scrollTop=e.scrollHeight)},[s.length]),(0,B.jsxs)(`div`,{className:`chat`,children:[(0,B.jsxs)(`div`,{className:`timeline-toolbar`,children:[(0,B.jsx)(`span`,{children:`Everything agents say to each other and to you, and what Symbio tells them.`}),(0,B.jsx)(`span`,{className:`spacer`}),(0,B.jsxs)(`label`,{className:`check`,children:[(0,B.jsx)(`input`,{type:`checkbox`,checked:r,onChange:e=>i(e.target.checked)}),` Hide your direct chats`]})]}),(0,B.jsxs)(`div`,{className:`timeline`,ref:a,children:[t&&s.length===0&&(0,B.jsx)(om,{icon:(0,B.jsx)(qf,{size:20}),title:`No team messages yet`,children:`Requests, handoffs and questions between agents show up here as they happen.`}),(0,B.jsx)(`div`,{className:`timeline-inner`,children:s.map(t=>{let r=zw[t.kind]??{label:t.kind},i=t.kind===`system`||t.kind===`chat`,a=o(t.from);return(0,B.jsxs)(`div`,{className:`event ${i?`quiet`:``} ${c.has(t.id)?`open`:``}`,children:[(0,B.jsx)(em,{name:a,kind:t.from===`human`?`human`:t.from===`symbio`?`system`:`agent`}),(0,B.jsxs)(`div`,{style:{minWidth:0},children:[(0,B.jsxs)(`div`,{className:`event-head`,children:[(0,B.jsx)(`strong`,{children:a}),(0,B.jsx)(`span`,{className:`subtle`,children:`→`}),(0,B.jsx)(`span`,{children:o(t.to)}),(0,B.jsx)(`span`,{className:`tag ${r.tone??``}`,children:r.label}),(0,B.jsx)(`span`,{className:`when`,children:cm(t.time)})]}),(0,B.jsx)(`div`,{className:`event-body md`,children:(0,B.jsx)(ax,{remarkPlugins:[dw],children:t.text})}),c.has(t.id)&&t.kind===`needs-human`&&(0,B.jsx)(Uw,{project:e,agentId:t.from}),c.has(t.id)&&t.kind===`form`&&n&&(0,B.jsxs)(`button`,{className:`btn primary sm`,style:{marginTop:8},onClick:()=>n(t.from),children:[`Answer in `,a,`'s chat`]})]})]},t.id)})})]})]})}function Uw({project:e,agentId:t}){let[n,r]=(0,b.useState)(``),[i,a]=(0,b.useState)(!1),[o,s]=(0,b.useState)(null);async function c(){if(n.trim()){a(!0);try{await J.send(e.id,t,n.trim()),r(``)}catch(e){s(e.message)}finally{a(!1)}}}return(0,B.jsxs)(`div`,{className:`reply`,children:[(0,B.jsx)(`textarea`,{value:n,rows:2,placeholder:`Write your answer…`,onChange:e=>r(e.target.value),onKeyDown:e=>{e.key===`Enter`&&!e.shiftKey&&(e.preventDefault(),c())}}),(0,B.jsx)(`button`,{className:`btn primary sm`,onClick:c,disabled:!n.trim()||i,children:`Reply`}),o&&(0,B.jsx)(`div`,{className:`error`,children:o})]})}function Ww(e,t,n){let[r,i]=(0,b.useState)([]),[a,o]=(0,b.useState)([]),s=e?.id;(0,b.useEffect)(()=>{if(!s)return;let e=()=>{J.approvals(s).then(e=>i(e.filter(e=>e.status===`pending`))).catch(()=>{}),J.permissions(s).then(o).catch(()=>{})};return e(),Up(t=>{t.type===`approvals.updated`&&t.projectId===s&&e()})},[s]);let c=Bw(t??[]),l=e?.agents.filter(e=>e.problem&&e.status!==`stopped`).length??0,u=+(n?.status===`proposed`);return{approvals:r,permissions:a,questions:c,count:r.length+a.length+c.length+l+u}}function Gw({project:e,plan:t,data:n,onClose:r,onOpenAgent:i,onOpenTab:a}){let o=e.agents.filter(e=>e.problem&&e.status!==`stopped`),s=t=>e.agents.find(e=>e.id===t)?.name??t;return(0,B.jsxs)(am,{title:`Needs you`,onClose:r,children:[n.count===0&&(0,B.jsx)(`div`,{className:`inbox-empty`,children:`Nothing is waiting for you.`}),(0,B.jsxs)(Bl,{initial:!1,children:[o.length>0&&(0,B.jsxs)(Kw,{icon:(0,B.jsx)(Rd,{size:14,style:{color:`var(--red)`}}),kind:`Agents stuck`,children:[(0,B.jsxs)(`div`,{className:`small`,children:[(0,B.jsx)(`strong`,{children:o.map(e=>e.name).join(`, `)}),` can't continue — every allowed model failed.`]}),(0,B.jsx)(`div`,{className:`inbox-reason`,children:o[0].problem}),(0,B.jsxs)(`div`,{className:`inbox-actions`,children:[(0,B.jsx)(`button`,{className:`btn primary sm`,onClick:()=>a(`settings`),children:`Add a model`}),(0,B.jsx)(`button`,{className:`btn sm`,onClick:()=>J.retryModels(e.id).catch(e=>alert(e.message)),children:`Retry now`})]})]},`stuck`),t?.status===`proposed`&&(0,B.jsxs)(Kw,{icon:(0,B.jsx)(Xd,{size:14}),kind:`Plan to review`,children:[(0,B.jsxs)(`div`,{className:`small`,children:[`core proposed a plan with `,(0,B.jsxs)(`strong`,{children:[t.tasks.length,` tasks`]}),`. Nothing starts until you approve it.`]}),(0,B.jsx)(`div`,{className:`inbox-actions`,children:(0,B.jsx)(`button`,{className:`btn primary sm`,onClick:()=>a(`plan`),children:`Review plan`})})]},`plan`),n.approvals.map(t=>(0,B.jsx)(qw,{project:e,approval:t},t.id)),n.permissions.map(t=>(0,B.jsx)(Jw,{project:e,request:t},t.id)),n.questions.map(t=>t.kind===`form`?(0,B.jsxs)(Kw,{icon:(0,B.jsx)(Uf,{size:14}),kind:`Question`,agent:s(t.from),time:t.time,children:[(0,B.jsxs)(`div`,{className:`small`,children:[s(t.from),` is asking you a multiple-choice question.`]}),(0,B.jsx)(`div`,{className:`inbox-actions`,children:(0,B.jsx)(`button`,{className:`btn primary sm`,onClick:()=>i(t.from),children:`Answer in chat`})})]},t.id):(0,B.jsx)(Yw,{project:e,question:t,agentName:s(t.from)},t.id))]})]})}function Kw({icon:e,kind:t,agent:n,time:r,children:i}){return(0,B.jsxs)(W.div,{className:`inbox-item`,layout:!0,initial:{opacity:0,y:6},animate:{opacity:1,y:0},exit:{opacity:0,height:0,padding:0,margin:0},children:[(0,B.jsxs)(`div`,{className:`inbox-item-head`,children:[n?(0,B.jsx)(em,{name:n,size:`sm`}):e,(0,B.jsx)(`span`,{className:`inbox-kind`,children:t}),n&&(0,B.jsxs)(`span`,{className:`small`,children:[`· `,n]}),r&&(0,B.jsx)(`span`,{className:`when`,children:sm(r)})]}),i]})}function qw({project:e,approval:t}){let[n,r]=(0,b.useState)(``),[i,a]=(0,b.useState)(!1);async function o(r){a(!0),await J.decideApproval(e.id,t.id,r,n.trim()||void 0).catch(e=>alert(e.message))}let s=t.action.kind===`github_api`&&t.action.body!==void 0?JSON.stringify(t.action.body,null,2):null;return(0,B.jsxs)(Kw,{icon:(0,B.jsx)(np,{size:14}),kind:`Use ${t.connectionName}`,agent:t.agentName,time:t.createdAt,children:[(0,B.jsxs)(`div`,{className:`small`,children:[`Wants to `,t.summary]}),typeof t.action.command==`string`&&(0,B.jsx)(`pre`,{className:`command`,children:t.action.command}),s&&(0,B.jsx)(`pre`,{className:`command`,children:s}),(0,B.jsxs)(`div`,{className:`inbox-reason`,children:[`Why: `,t.reason]}),(0,B.jsx)(`input`,{placeholder:`Note for the agent (optional)`,value:n,onChange:e=>r(e.target.value)}),(0,B.jsxs)(`div`,{className:`inbox-actions`,children:[(0,B.jsx)(`button`,{className:`btn primary sm`,onClick:()=>o(!0),disabled:i,children:`Approve`}),(0,B.jsx)(`button`,{className:`btn danger sm`,onClick:()=>o(!1),disabled:i,children:`Deny`})]})]})}function Jw({project:e,request:t}){let[n,r]=(0,b.useState)(``),[i,a]=(0,b.useState)(!1);async function o(r){a(!0),await J.answerPermission(e.id,t.id,r,n.trim()||void 0).catch(e=>alert(e.message))}let s=t.action===`shell`?`run a command`:t.action===`read`?`read a file`:t.action===`edit`?`change a file`:t.action;return(0,B.jsxs)(Kw,{icon:(0,B.jsx)(Ep,{size:14}),kind:`Permission`,agent:t.agentName,time:t.time,children:[(0,B.jsxs)(`div`,{className:`small`,children:[`Wants to `,s,`:`]}),(0,B.jsx)(`pre`,{className:`command`,children:t.resources.join(`
|
|
50
|
-
`)}),(0,B.jsx)(`input`,{placeholder:`Note for the agent (optional)`,value:n,onChange:e=>r(e.target.value)}),(0,B.jsxs)(`div`,{className:`inbox-actions`,children:[(0,B.jsx)(`button`,{className:`btn primary sm`,onClick:()=>o(`once`),disabled:i,children:`Allow once`}),t.save.length>0&&(0,B.jsxs)(`button`,{className:`btn sm`,onClick:()=>o(`always`),disabled:i,title:`Remembered for this project`,children:[(0,B.jsx)(Nf,{size:13}),`Always allow `,(0,B.jsx)(`code`,{children:t.save.join(`, `)})]}),(0,B.jsx)(`button`,{className:`btn danger sm`,onClick:()=>o(`reject`),disabled:i,children:`Deny`})]})]})}function Yw({project:e,question:t,agentName:n}){let[r,i]=(0,b.useState)(``),[a,o]=(0,b.useState)(!1);async function s(){r.trim()&&(o(!0),await J.send(e.id,t.from,r.trim()).catch(e=>alert(e.message)),o(!1),i(``))}return(0,B.jsxs)(Kw,{icon:(0,B.jsx)(Uf,{size:14}),kind:`Question`,agent:n,time:t.time,children:[(0,B.jsx)(`div`,{className:`md small`,children:(0,B.jsx)(ax,{remarkPlugins:[dw],children:t.text})}),(0,B.jsx)(`textarea`,{rows:2,placeholder:`Answer ${n}…`,value:r,onChange:e=>i(e.target.value),onKeyDown:e=>{e.key===`Enter`&&!e.shiftKey&&(e.preventDefault(),s())}}),(0,B.jsx)(`div`,{className:`inbox-actions`,children:(0,B.jsx)(`button`,{className:`btn primary sm`,onClick:s,disabled:!r.trim()||a,children:`Send answer`})})]})}var Xw=[{status:`todo`,title:`To do`,icon:(0,B.jsx)(Jd,{size:14})},{status:`in-progress`,title:`In progress`,icon:(0,B.jsx)(Hd,{size:14})},{status:`blocked`,title:`Blocked`,icon:(0,B.jsx)(Jf,{size:14})},{status:`review`,title:`Review`,icon:(0,B.jsx)(df,{size:14})},{status:`done`,title:`Done`,icon:(0,B.jsx)(Bd,{size:14})}];function Zw({project:e,plan:t}){let[n,r]=(0,b.useState)(null);if(!t)return null;if(t.status===`none`)return(0,B.jsx)(om,{icon:(0,B.jsx)(Xd,{size:20}),title:`No plan yet`,children:`core proposes a plan once you've agreed on the scope. It shows up here for your approval, then turns into a live board.`});let i=new Map(e.agents.map(e=>[e.id,e])),a=t.tasks.filter(e=>e.status===`done`).length,o=t.tasks.length?a/t.tasks.length:0,s=e=>t.tasks.find(t=>t.id===e)?.status===`done`,c=t.tasks.find(e=>e.id===n);return(0,B.jsxs)(`div`,{className:`kanban`,children:[(0,B.jsxs)(`div`,{className:`kanban-head`,children:[(0,B.jsxs)(`div`,{className:`kanban-goal`,children:[(0,B.jsx)(`div`,{className:`kanban-goal-text`,children:t.goal}),(0,B.jsxs)(`div`,{className:`kanban-goal-meta`,children:[(0,B.jsx)(Qw,{status:t.status}),(0,B.jsxs)(`span`,{children:[`Revision `,t.revision]})]})]}),(0,B.jsxs)(`div`,{className:`progress`,title:`${a} of ${t.tasks.length} tasks done`,children:[(0,B.jsxs)(`span`,{className:`tnum`,children:[a,`/`,t.tasks.length]}),(0,B.jsx)(`div`,{className:`progress-track`,children:(0,B.jsx)(W.div,{className:`progress-fill`,animate:{width:`${o*100}%`},transition:{type:`spring`,stiffness:80,damping:18}})})]})]}),(0,B.jsx)(Bl,{children:t.status===`proposed`&&(0,B.jsx)(tT,{project:e,plan:t})}),t.status===`changes-requested`&&(0,B.jsx)(`div`,{className:`plan-banner`,children:(0,B.jsxs)(`span`,{className:`small muted`,children:[`You asked for changes`,t.feedback?`: “${t.feedback}”`:``,`. Waiting for core's revised plan…`]})}),(0,B.jsx)(Kl,{children:(0,B.jsx)(`div`,{className:`columns`,children:Xw.map(e=>{let n=t.tasks.filter(t=>t.status===e.status);return(0,B.jsxs)(`div`,{className:`column col-${e.status}`,children:[(0,B.jsxs)(`div`,{className:`column-head`,children:[e.icon,e.title,(0,B.jsx)(`span`,{className:`column-count`,children:n.length})]}),(0,B.jsxs)(`div`,{className:`column-body`,children:[(0,B.jsx)(Bl,{children:n.map(e=>(0,B.jsx)($w,{task:e,agent:e.assignee?i.get(e.assignee):void 0,waitingOn:e.dependsOn.filter(e=>!s(e)),onOpen:()=>r(e.id)},e.id))}),n.length===0&&(0,B.jsx)(`div`,{className:`column-empty`,children:`—`})]})]},e.status)})})}),(0,B.jsx)(Bl,{children:c&&(0,B.jsx)(eT,{task:c,agent:c.assignee?i.get(c.assignee):void 0,onClose:()=>r(null)})})]})}function Qw({status:e}){return e===`proposed`?(0,B.jsx)(`span`,{className:`tag amber`,children:`Awaiting your approval`}):e===`changes-requested`?(0,B.jsx)(`span`,{className:`tag blue`,children:`Changes requested`}):e===`approved`?(0,B.jsx)(`span`,{className:`tag green`,children:`Approved`}):null}function $w({task:e,agent:t,waitingOn:n,onOpen:r}){return(0,B.jsxs)(W.button,{layout:!0,layoutId:e.id,className:`task-card ts-${e.status}`,onClick:r,initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{type:`spring`,stiffness:300,damping:30},children:[(0,B.jsxs)(`div`,{className:`task-top`,children:[(0,B.jsx)(`span`,{className:`task-id`,children:e.id}),n.length>0&&e.status===`todo`&&(0,B.jsxs)(`span`,{className:`row`,style:{gap:3},title:`Waiting on these tasks`,children:[(0,B.jsx)(Ff,{size:11}),`after `,n.join(`, `)]})]}),(0,B.jsx)(`div`,{className:`task-title`,children:e.title}),e.assets.length>0&&(0,B.jsx)(`div`,{className:`task-meta`,children:e.assets.map(e=>(0,B.jsxs)(`span`,{className:`tag`,title:`Shared asset`,children:[(0,B.jsx)(Vf,{}),e]},e))}),(0,B.jsxs)(`div`,{className:`task-bottom`,children:[t?(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(em,{name:t.name,size:`sm`,status:t.status===`busy`?`busy`:void 0}),(0,B.jsx)(`span`,{className:`ellipsis`,children:t.name})]}):(0,B.jsx)(`span`,{className:`subtle`,children:`Unassigned`}),e.notes.length>0&&(0,B.jsxs)(`span`,{className:`subtle`,title:e.notes[e.notes.length-1].text,children:[(0,B.jsx)(Gf,{size:11}),e.notes.length]})]})]})}function eT({task:e,agent:t,onClose:n}){let r=Xw.find(t=>t.status===e.status);return(0,B.jsxs)(am,{title:`${e.id} · ${e.title}`,onClose:n,children:[(0,B.jsxs)(`dl`,{className:`task-detail-meta`,children:[(0,B.jsx)(`dt`,{children:`Status`}),(0,B.jsxs)(`dd`,{children:[r?.icon,r?.title]}),(0,B.jsx)(`dt`,{children:`Assignee`}),(0,B.jsx)(`dd`,{children:t?(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(em,{name:t.name,size:`sm`}),t.name]}):(0,B.jsx)(`span`,{className:`subtle`,children:`Unassigned`})}),e.dependsOn.length>0&&(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(`dt`,{children:`Depends on`}),(0,B.jsx)(`dd`,{children:e.dependsOn.join(`, `)})]}),e.assets.length>0&&(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(`dt`,{children:`Shared assets`}),(0,B.jsx)(`dd`,{children:e.assets.map(e=>(0,B.jsxs)(`span`,{className:`tag`,children:[(0,B.jsx)(Vf,{}),e]},e))})]})]}),(0,B.jsx)(`div`,{className:`md`,children:(0,B.jsx)(ax,{remarkPlugins:[dw],children:e.description||`_No description._`})}),e.notes.length>0&&(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(`h3`,{children:`History`}),(0,B.jsx)(`div`,{className:`history`,children:e.notes.map((e,t)=>(0,B.jsxs)(`div`,{className:`history-item`,children:[(0,B.jsx)(`span`,{className:`when`,children:cm(e.time)}),(0,B.jsxs)(`span`,{className:`what`,children:[(0,B.jsx)(`strong`,{children:e.by}),` `,e.text]})]},t))})]})]})}function tT({project:e,plan:t}){let[n,r]=(0,b.useState)(!1),[i,a]=(0,b.useState)(``),[o,s]=(0,b.useState)(!1),[c,l]=(0,b.useState)(null);async function u(t){s(!0),l(null);try{await J.decidePlan(e.id,t,i.trim()||void 0)}catch(e){l(e.message),s(!1)}}return(0,B.jsxs)(W.div,{className:`plan-banner`,initial:{opacity:0,y:-4},animate:{opacity:1,y:0},exit:{opacity:0},children:[(0,B.jsxs)(`div`,{className:`plan-banner-row`,children:[(0,B.jsx)(Xd,{size:16,style:{color:`var(--amber)`}}),(0,B.jsxs)(`div`,{className:`grow`,children:[(0,B.jsxs)(`strong`,{children:[`core proposed this plan (`,t.tasks.length,` tasks).`]}),` `,(0,B.jsx)(`span`,{className:`muted`,children:`Nothing starts until you approve it.`})]}),!n&&(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(`button`,{className:`btn sm`,onClick:()=>r(!0),disabled:o,children:`Request changes`}),(0,B.jsx)(`button`,{className:`btn primary sm`,onClick:()=>u(!0),disabled:o,children:`Approve plan`})]})]}),n&&(0,B.jsxs)(`div`,{className:`plan-banner-row`,children:[(0,B.jsx)(`textarea`,{autoFocus:!0,rows:2,placeholder:`What should change? e.g. “split T2 in two”, “use one helper only”…`,value:i,onChange:e=>a(e.target.value)}),(0,B.jsx)(`button`,{className:`btn ghost sm`,onClick:()=>r(!1),disabled:o,children:`Cancel`}),(0,B.jsx)(`button`,{className:`btn primary sm`,onClick:()=>u(!1),disabled:o||!i.trim(),children:`Send`})]}),c&&(0,B.jsx)(`div`,{className:`error`,children:c})]})}var nT=e=>e>=1024**3?`${(e/1024**3).toFixed(1)} GB`:`${Math.round(e/1024**2)} MB`;function rT({project:e}){let[t,n]=(0,b.useState)(null),[r,i]=(0,b.useState)(!1),[a,o]=(0,b.useState)(null),[s,c]=(0,b.useState)(null);(0,b.useEffect)(()=>{J.housekeeping(e.id).then(n).catch(e=>c(e.message))},[e.id]);async function l(){i(!0);try{n(await J.checkHousekeeping(e.id)),c(null)}catch(e){c(e.message)}finally{i(!1)}}async function u(t){o(t);try{await J.cleanHelper(e.id,t),n(await J.housekeeping(e.id))}catch(e){alert(e.message)}finally{o(null)}}let d=t?.folders.reduce((e,t)=>e+t.buildBytes,0)??0;return(0,B.jsxs)(`section`,{className:`section`,children:[(0,B.jsxs)(`div`,{className:`section-head`,children:[(0,B.jsxs)(`div`,{children:[(0,B.jsx)(`h2`,{children:`Storage & backups`}),(0,B.jsxs)(`p`,{children:[`Symbio backs up its state every day (the last 7 days, in `,(0,B.jsx)(`code`,{children:`~/.symbio/backups`}),`) and checks once a day for work that exists only on this computer and for build outputs piling up in helpers' folders. When it finds either, you and core are told.`]})]}),(0,B.jsxs)(`button`,{className:`btn sm`,onClick:l,disabled:r,children:[(0,B.jsx)(cp,{size:13,className:r?`spin`:void 0}),r?`Checking…`:`Check now`]})]}),s&&(0,B.jsx)(`div`,{style:{padding:12},children:(0,B.jsx)(`div`,{className:`error`,children:s})}),t?(0,B.jsxs)(`div`,{className:`stack`,style:{padding:16,gap:16},children:[(0,B.jsxs)(`div`,{className:`field`,children:[(0,B.jsx)(`span`,{children:`Last backup`}),(0,B.jsx)(`div`,{className:`small`,children:t.lastBackup??`Not yet: the first one runs a few minutes after Symbio starts.`})]}),(0,B.jsxs)(`div`,{className:`field`,children:[(0,B.jsx)(`span`,{children:`Work only on this computer`}),t.remote?t.unpushed.length===0?(0,B.jsxs)(`div`,{className:`small`,children:[`Everything is on the remote (`,t.remote,`).`]}):(0,B.jsx)(`div`,{className:`list-compact`,children:t.unpushed.map(e=>(0,B.jsxs)(`div`,{className:`small`,children:[(0,B.jsx)(`code`,{children:e.branch}),` — `,e.commits,` commit`,e.commits===1?``:`s`,` not on `,t.remote,(0,B.jsxs)(`span`,{className:`subtle`,children:[` · latest: `,e.latest]})]},e.branch))}):(0,B.jsx)(`div`,{className:`small subtle`,children:`This project has no git remote, so there's nowhere to push to.`})]}),(0,B.jsxs)(`div`,{className:`field`,children:[(0,B.jsxs)(`span`,{children:[`Helpers' folders`,d>0?` · ${nT(d)} of build outputs`:``]}),t.folders.length===0?(0,B.jsx)(`div`,{className:`small subtle`,children:`No helper folders.`}):(0,B.jsxs)(`table`,{className:`usage-table`,children:[(0,B.jsx)(`thead`,{children:(0,B.jsxs)(`tr`,{children:[(0,B.jsx)(`th`,{children:`Helper`}),(0,B.jsx)(`th`,{className:`num`,children:`Folder`}),(0,B.jsx)(`th`,{className:`num`,children:`Build outputs`}),(0,B.jsx)(`th`,{})]})}),(0,B.jsx)(`tbody`,{children:t.folders.map(e=>(0,B.jsxs)(`tr`,{children:[(0,B.jsxs)(`td`,{children:[e.name,` `,(0,B.jsxs)(`span`,{className:`subtle`,children:[`(`,e.status,`)`]})]}),(0,B.jsx)(`td`,{className:`num tnum`,children:nT(e.bytes)}),(0,B.jsx)(`td`,{className:`num tnum`,children:e.buildBytes>0?nT(e.buildBytes):`—`}),(0,B.jsx)(`td`,{className:`num`,children:e.buildBytes>0&&(0,B.jsxs)(`button`,{className:`btn ghost sm`,disabled:a!==null||e.status===`busy`||e.status===`waiting`,title:e.status===`busy`||e.status===`waiting`?`Available when the helper is idle`:`Delete git-ignored build folders (bin, obj, node_modules…); work is never touched`,onClick:()=>u(e.agentId),children:[(0,B.jsx)(sf,{size:13}),a===e.agentId?`Cleaning…`:`Clean`]})})]},e.agentId))})]})]}),(0,B.jsxs)(`div`,{className:`small subtle`,children:[`Checked `,new Date(t.checkedAt).toLocaleString(),`.`]})]}):!s&&(0,B.jsx)(`div`,{className:`section-empty`,children:`Checking… (measuring folders can take a moment)`})]})}function iT({project:e,onChanged:t}){let[n,r]=(0,b.useState)(!1);return(0,B.jsxs)(`div`,{className:`settings-scroll`,children:[(0,B.jsxs)(`div`,{className:`settings-inner`,children:[(0,B.jsx)(oT,{project:e,onChanged:t}),(0,B.jsx)(lT,{project:e,onChanged:t}),(0,B.jsx)(uT,{project:e,onChanged:t}),(0,B.jsx)(cT,{project:e,onChanged:t}),(0,B.jsx)(bm,{project:e}),(0,B.jsx)(rT,{project:e}),(0,B.jsx)(dT,{project:e,onChanged:t}),(0,B.jsx)(`section`,{className:`section danger-zone`,children:(0,B.jsxs)(`div`,{className:`section-head`,children:[(0,B.jsxs)(`div`,{children:[(0,B.jsx)(`h2`,{children:`Remove project`}),(0,B.jsx)(`p`,{children:`Stops the agents and removes their workspaces. Your files are never touched.`})]}),(0,B.jsxs)(`button`,{className:`btn danger`,onClick:()=>r(!0),children:[(0,B.jsx)(Ap,{size:14}),`Remove…`]})]})})]}),(0,B.jsx)(Bl,{children:n&&(0,B.jsx)(dm,{project:e,onClose:()=>r(!1),onRemoved:()=>location.hash=`#/`})})]})}function aT({dirty:e,saving:t,onSave:n,onReset:r}){return e?(0,B.jsxs)(`div`,{className:`row`,style:{justifyContent:`flex-end`,padding:`10px 12px 4px`},children:[(0,B.jsx)(`button`,{className:`btn ghost sm`,onClick:r,disabled:t,children:`Discard`}),(0,B.jsx)(`button`,{className:`btn primary sm`,onClick:n,disabled:t,children:t?`Saving…`:`Save changes`})]}):null}function oT({project:e,onChanged:t}){let[n,r]=(0,b.useState)(e.name),[i,a]=(0,b.useState)(!1),o=n.trim()!==e.name&&!!n.trim();async function s(){a(!0);try{t(await J.updateProject(e.id,{name:n.trim()}))}catch(e){alert(e.message)}finally{a(!1)}}return(0,B.jsxs)(`section`,{className:`section`,children:[(0,B.jsx)(`div`,{className:`section-head`,children:(0,B.jsx)(`div`,{children:(0,B.jsx)(`h2`,{children:`General`})})}),(0,B.jsxs)(`div`,{className:`stack`,style:{padding:16,gap:14},children:[(0,B.jsxs)(`label`,{className:`field`,children:[(0,B.jsx)(`span`,{children:`Name`}),(0,B.jsx)(`input`,{value:n,onChange:e=>r(e.target.value)})]}),(0,B.jsxs)(`div`,{className:`field`,children:[(0,B.jsx)(`span`,{children:`Folder`}),(0,B.jsx)(`code`,{className:`muted`,children:e.directory})]}),(0,B.jsxs)(`div`,{className:`field`,children:[(0,B.jsx)(`span`,{children:`Documentation`}),(0,B.jsx)(`div`,{className:`muted small`,children:e.docsLocation===`private`?(0,B.jsxs)(B.Fragment,{children:[`Private — kept in `,(0,B.jsx)(`code`,{children:`.symbio/docs`}),` and handed to agents by Symbio.`]}):(0,B.jsxs)(B.Fragment,{children:[`In the project — `,(0,B.jsx)(`code`,{children:`AGENTS.md`}),` and `,(0,B.jsx)(`code`,{children:`docs/`}),`.`]})})]})]}),(0,B.jsx)(aT,{dirty:o,saving:i,onSave:s,onReset:()=>r(e.name)})]})}var sT=20;function cT({project:e,onChanged:t}){let n=e.messageLimit??sT,r=e.renewSessions??`manual`,[i,a]=(0,b.useState)(String(n)),[o,s]=(0,b.useState)(r),c=e.helperWorkspace??`own`,[l,u]=(0,b.useState)(c),[d,f]=(0,b.useState)(!1),p=Number(i),m=i.trim()!==``&&Number.isInteger(p)&&p>=0&&p<=1e3,h=m&&(p!==n||o!==r||l!==c);async function g(){f(!0);try{t(await J.updateProject(e.id,{messageLimit:p,renewSessions:o,helperWorkspace:l}))}catch(e){alert(e.message)}finally{f(!1)}}return(0,B.jsxs)(`section`,{className:`section`,children:[(0,B.jsx)(`div`,{className:`section-head`,children:(0,B.jsxs)(`div`,{children:[(0,B.jsx)(`h2`,{children:`Team`}),(0,B.jsx)(`p`,{children:`How the agents of this project work together.`})]})}),(0,B.jsxs)(`div`,{className:`stack`,style:{padding:16,gap:14},children:[(0,B.jsxs)(`div`,{className:`field`,children:[(0,B.jsx)(`span`,{children:`Where new helpers work`}),(0,B.jsxs)(`div`,{className:`seg`,children:[(0,B.jsx)(`button`,{className:l===`own`?`on`:``,onClick:()=>u(`own`),children:`Their own copy`}),(0,B.jsx)(`button`,{className:l===`shared`?`on`:``,onClick:()=>u(`shared`),children:`The project folder`})]}),(0,B.jsxs)(`span`,{className:`hint`,children:[l===`own`?`Each helper gets its own copy of the project on its own branch, and core merges finished work. Best when helpers change the same files in parallel.`:`Helpers work in the project folder itself: what one writes, the next sees at once, with nothing to merge. Best for step-by-step work where each step uses the previous one's files.`,` `,`core can still choose per helper. Existing helpers stay where they are; move one from its chat. Only applies to git projects: without git, helpers always share the folder.`]})]}),(0,B.jsxs)(`div`,{className:`field`,children:[(0,B.jsx)(`span`,{children:`Fresh sessions for helpers`}),(0,B.jsxs)(`div`,{className:`seg`,children:[(0,B.jsx)(`button`,{className:o===`manual`?`on`:``,onClick:()=>s(`manual`),children:`When I ask`}),(0,B.jsx)(`button`,{className:o===`after-task`?`on`:``,onClick:()=>s(`after-task`),children:`After each finished task`})]}),(0,B.jsx)(`span`,{className:`hint`,children:`Long conversations get slow and costly, since every step re-reads them. A fresh session keeps the helper's name, folder, tasks and assets and starts from a handoff note; the old conversation stays readable. "When I ask": use New session in the agent's chat.`})]}),(0,B.jsxs)(`label`,{className:`field`,children:[(0,B.jsx)(`span`,{children:`Messages two agents may exchange in 30 minutes`}),(0,B.jsx)(`input`,{type:`number`,min:0,max:1e3,value:i,onChange:e=>a(e.target.value),style:{maxWidth:140}}),(0,B.jsx)(`span`,{className:`hint`,children:m&&p===0?`No limit: agents can message each other freely.`:`Guards against two agents going back and forth without progress; task assignments, shared-asset requests and review reports don't count. When two agents reach it, further messages between them wait until older ones are 30 minutes old, and you're told. 0 removes the limit. Default ${sT}.`})]})]}),(0,B.jsx)(aT,{dirty:h,saving:d,onSave:g,onReset:()=>{a(String(n)),s(r),u(c)}})]})}function lT({project:e,onChanged:t}){let[n,r]=(0,b.useState)(e.connections),[i,a]=(0,b.useState)(!1),o=JSON.stringify(n)!==JSON.stringify(e.connections);async function s(){a(!0);try{t(await J.updateProject(e.id,{connections:n}))}catch(e){alert(e.message)}finally{a(!1)}}return(0,B.jsxs)(`section`,{className:`section`,children:[(0,B.jsx)(`div`,{className:`section-head`,children:(0,B.jsxs)(`div`,{children:[(0,B.jsx)(`h2`,{children:`Connections`}),(0,B.jsxs)(`p`,{children:[`GitHub accounts and servers this project's agents may use. They act through Symbio and never see the credentials. With`,` `,(0,B.jsx)(`strong`,{children:`Ask me`}),`, every push, deploy or remote command waits for your approval.`]})]})}),(0,B.jsx)(`div`,{style:{padding:12},children:(0,B.jsx)(Kp,{value:n,onChange:r})}),(0,B.jsx)(aT,{dirty:o,saving:i,onSave:s,onReset:()=>r(e.connections)})]})}function uT({project:e,onChanged:t}){let[n,r]=(0,b.useState)(e.allowedModels),[i,a]=(0,b.useState)(e.coordinatorModel),[o,s]=(0,b.useState)(!1),c=i!==e.coordinatorModel||JSON.stringify(n)!==JSON.stringify(e.allowedModels);async function l(){s(!0);try{t(await J.updateProject(e.id,{allowedModels:n,coordinatorModel:i}))}catch(e){alert(e.message)}finally{s(!1)}}return(0,B.jsxs)(`section`,{className:`section`,children:[(0,B.jsx)(`div`,{className:`section-head`,children:(0,B.jsxs)(`div`,{children:[(0,B.jsx)(`h2`,{children:`Models`}),(0,B.jsx)(`p`,{children:`Agents may use any selected model and switch to the next one when a model fails. Adding a model also resumes agents that got stuck.`})]})}),(0,B.jsx)(`div`,{style:{padding:12},children:(0,B.jsx)(Zp,{allowed:n,coordinator:i,onChange:(e,t)=>{r(e),a(t)}})}),(0,B.jsx)(aT,{dirty:c&&n.length>0&&!!i,saving:o,onSave:l,onReset:()=>{r(e.allowedModels),a(e.coordinatorModel)}})]})}function dT({project:e,onChanged:t}){async function n(n,r){try{t(await J.updateProject(e.id,{allowedPatterns:e.allowedPatterns.filter(e=>e.action!==n||e.pattern!==r)}))}catch(e){alert(e.message)}}return(0,B.jsxs)(`section`,{className:`section`,children:[(0,B.jsx)(`div`,{className:`section-head`,children:(0,B.jsxs)(`div`,{children:[(0,B.jsx)(`h2`,{children:`Always allowed`}),(0,B.jsx)(`p`,{children:`Permission requests you answered with “Always allow”. Matching requests are approved automatically.`})]})}),e.allowedPatterns.length===0?(0,B.jsx)(`div`,{className:`section-empty`,children:`Nothing yet.`}):(0,B.jsx)(`div`,{className:`section-body`,children:e.allowedPatterns.map(e=>(0,B.jsxs)(`div`,{className:`list-row`,children:[(0,B.jsx)(`span`,{className:`tag`,children:e.action}),(0,B.jsx)(`code`,{className:`grow`,children:e.pattern}),(0,B.jsxs)(`button`,{className:`btn ghost sm`,onClick:()=>n(e.action,e.pattern),title:`Ask me again for these`,children:[(0,B.jsx)(Pp,{size:13}),`Revoke`]})]},`${e.action}:${e.pattern}`))})]})}function fT({projectId:e}){let[t,n]=(0,b.useState)(null),[r,i]=(0,b.useState)([]),[a,o]=(0,b.useState)(null),[s,c]=(0,b.useState)(null),[l,u]=(0,b.useState)(null),[d,f]=(0,b.useState)(!1),[p,m]=(0,b.useState)(`chat`),[h,g]=(0,b.useState)(!1),[_,v]=(0,b.useState)(!1),y=Vw(e),x=Ww(t,y,a);if((0,b.useEffect)(()=>{let t=()=>J.project(e).then(e=>{n(e),c(null)}).catch(e=>c(e.message)),r=()=>J.assets(e).then(i).catch(()=>{}),a=()=>J.plan(e).then(o).catch(()=>{});return t(),r(),a(),Up(i=>{i.type===`project.updated`&&i.projectId===e&&t(),i.type===`assets.updated`&&i.projectId===e&&r(),i.type===`plan.updated`&&i.projectId===e&&a(),i.type===`agent.status`&&i.projectId===e&&n(e=>e&&{...e,agents:e.agents.map(e=>e.id===i.agentId?{...e,status:i.status}:e)})})},[e]),s)return(0,B.jsx)(`div`,{className:`page-inner`,children:(0,B.jsx)(`div`,{className:`error`,children:s})});if(!t)return null;let S=t.agents.find(e=>e.id===l)??t.agents.find(e=>e.role===`coordinator`),C=t.agents.filter(e=>e.status!==`stopped`),w=t.agents.filter(e=>e.status===`stopped`),T=C.filter(e=>e.problem),E=e=>e===null?`core`:t.agents.find(t=>t.id===e)?.name??`?`,D=a?.tasks.filter(e=>e.status===`done`).length??0,O=e=>{u(e.id),m(`chat`)};async function ee(){f(!0);try{n((await J.start(t.id)).project)}catch(e){c(e.message)}finally{f(!1)}}let te=[{id:`chat`,label:S&&S.role!==`coordinator`?`Chat · ${S.name}`:`Chat`,icon:(0,B.jsx)(Gf,{size:14})},{id:`plan`,label:`Plan`,icon:(0,B.jsx)(Op,{size:14}),extra:a?.status===`proposed`?(0,B.jsxs)(W.span,{className:`tab-alert`,initial:{scale:0},animate:{scale:1},title:`A plan is waiting for your approval`,children:[(0,B.jsx)(`span`,{className:`tab-alert-dot`}),`Review`]}):a&&a.status!==`none`&&a.tasks.length>0?(0,B.jsxs)(`span`,{className:`count`,children:[D,`/`,a.tasks.length]}):null},{id:`messages`,label:`Messages`,icon:(0,B.jsx)(qf,{size:14})},{id:`docs`,label:`Docs`,icon:(0,B.jsx)(Ed,{size:14})},{id:`settings`,label:`Settings`,icon:(0,B.jsx)(Sp,{size:14})}];return(0,B.jsxs)(`div`,{className:`project-view`,children:[(0,B.jsxs)(`aside`,{className:`side`,children:[(0,B.jsxs)(`div`,{className:`side-scroll`,children:[(0,B.jsxs)(`div`,{children:[(0,B.jsxs)(`div`,{className:`side-group-title`,children:[`Team`,(0,B.jsx)(`span`,{className:`tnum`,children:C.length})]}),(0,B.jsx)(Bl,{initial:!1,children:C.map(e=>(0,B.jsx)(pT,{agent:e,active:p===`chat`&&S?.id===e.id,onClick:()=>O(e)},e.id))}),t.agents.length===0&&(0,B.jsx)(`div`,{style:{padding:`4px 8px`},children:(0,B.jsx)(`button`,{className:`btn primary block`,onClick:ee,disabled:d,children:d?`Starting…`:`Start core`})}),w.length>0&&(0,B.jsxs)(B.Fragment,{children:[(0,B.jsxs)(`button`,{className:`stopped-toggle`,onClick:()=>v(e=>!e),children:[_?(0,B.jsx)(Pd,{size:13}):(0,B.jsx)(Id,{size:13}),w.length,` stopped`]}),_&&w.map(e=>(0,B.jsx)(pT,{agent:e,active:p===`chat`&&S?.id===e.id,onClick:()=>O(e)},e.id))]})]}),(0,B.jsxs)(`div`,{children:[(0,B.jsx)(`div`,{className:`side-group-title`,children:`Shared assets`}),r.length===0?(0,B.jsx)(`div`,{className:`subtle small`,style:{padding:`0 8px`},children:`None declared yet.`}):r.map(e=>(0,B.jsxs)(`div`,{className:`asset-row ${e.holder?`held`:``}`,title:e.description,children:[e.holder?(0,B.jsx)(Vf,{size:13}):(0,B.jsx)(zf,{size:13}),(0,B.jsxs)(`div`,{className:`grow`,children:[(0,B.jsx)(`div`,{className:`asset-name ellipsis`,children:e.name}),(0,B.jsxs)(`div`,{className:`asset-sub`,children:[e.holder?`Held by ${E(e.holder)}`:`Free`,e.queue.length>0&&` · ${e.queue.length} waiting`]})]})]},e.name))]})]}),(0,B.jsxs)(`div`,{className:`side-foot`,children:[(0,B.jsx)(ym,{project:t,onOpen:()=>{m(`settings`),setTimeout(()=>document.getElementById(`usage`)?.scrollIntoView({behavior:`smooth`,block:`start`}),150)}}),t.agents.length>0&&(0,B.jsxs)(`button`,{className:`btn sm block`,onClick:()=>(t.paused?J.resumeTeam(t.id):J.pauseTeam(t.id)).then(n).catch(e=>alert(e.message)),title:t.paused?`Deliver held messages and let agents continue`:`Interrupt working agents and hold their messages`,children:[t.paused?(0,B.jsx)(ep,{size:13}):(0,B.jsx)(Xf,{size:13}),t.paused?`Resume team`:`Pause team`]})]})]}),(0,B.jsxs)(`section`,{className:`main`,children:[(0,B.jsxs)(`div`,{className:`main-head`,children:[(0,B.jsx)(`div`,{className:`tabs`,children:te.map(e=>(0,B.jsxs)(`button`,{className:`tab ${p===e.id?`active`:``}`,onClick:()=>m(e.id),children:[e.icon,e.label,e.extra,p===e.id&&(0,B.jsx)(W.span,{layoutId:`tab-underline`,className:`tab-underline`,transition:{duration:.15}})]},e.id))}),(0,B.jsxs)(`div`,{className:`main-actions`,children:[x.count>0&&(0,B.jsxs)(W.button,{className:`needs-you`,onClick:()=>g(!0),initial:{scale:.9,opacity:0},animate:{scale:1,opacity:1},children:[`Needs you`,(0,B.jsx)(`span`,{className:`count`,children:x.count})]}),(0,B.jsx)(lm,{project:t,onRemoved:()=>location.hash=`#/`})]})]}),t.paused&&(0,B.jsxs)(`div`,{className:`banner blue`,children:[(0,B.jsx)(Xf,{size:15}),(0,B.jsxs)(`div`,{className:`grow`,children:[(0,B.jsx)(`strong`,{children:`The team is paused.`}),` `,(0,B.jsx)(`span`,{className:`muted`,children:t.heldMessages?.length?`${t.heldMessages.length} message(s) between agents will be delivered when you resume.`:`Agents won't start anything on their own; you can still talk to them.`})]}),(0,B.jsxs)(`button`,{className:`btn sm`,onClick:()=>J.resumeTeam(t.id).then(n).catch(e=>alert(e.message)),children:[(0,B.jsx)(ep,{size:13}),`Resume`]})]}),T.length>0&&(0,B.jsxs)(`div`,{className:`banner red`,children:[(0,B.jsx)(Rd,{size:15}),(0,B.jsxs)(`div`,{className:`grow ellipsis`,title:T[0].problem??``,children:[(0,B.jsxs)(`strong`,{children:[T.map(e=>e.name).join(`, `),` can't continue`]}),` `,(0,B.jsx)(`span`,{className:`muted`,children:`— every allowed model failed.`})]}),(0,B.jsx)(`button`,{className:`btn sm`,onClick:()=>J.retryModels(t.id).catch(e=>alert(e.message)),children:`Retry now`}),(0,B.jsx)(`button`,{className:`btn primary sm`,onClick:()=>m(`settings`),children:`Add a model`})]}),(0,B.jsx)(`div`,{className:`main-body`,children:p===`docs`?(0,B.jsx)(Rw,{project:t}):p===`plan`?(0,B.jsx)(Zw,{project:t,plan:a}):p===`messages`?(0,B.jsx)(Hw,{project:t,log:y,onOpenAgent:e=>{u(e),m(`chat`)}}):p===`settings`?(0,B.jsx)(iT,{project:t,onChanged:n},t.id):S?(0,B.jsx)(Ow,{project:t,agent:S},S.id):(0,B.jsx)(om,{icon:(0,B.jsx)(Gf,{size:20}),title:`Start the conversation`,children:`Start core to begin discussing the project.`})})]}),(0,B.jsx)(Bl,{children:h&&(0,B.jsx)(Gw,{project:t,plan:a,data:x,onClose:()=>g(!1),onOpenAgent:e=>{u(e),m(`chat`),g(!1)},onOpenTab:e=>{m(e),g(!1)}})})]})}function pT({agent:e,active:t,onClick:n}){let r=e.problem?`Needs attention`:e.status===`idle`?e.purpose??(e.role===`coordinator`?`Coordinates the team`:`Idle`):tm(e.status),i=e.problem?`problem`:e.status===`busy`?`working`:e.status===`waiting`?`waiting`:``;return(0,B.jsxs)(W.button,{layout:!0,initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:`agent-row ${t?`active`:``}`,onClick:n,title:[e.purpose,e.model,e.usage&&`${Fp(Ip(e.usage))} tokens`].filter(Boolean).join(`
|
|
51
|
-
`),children:[(0,B.jsx)(em,{name:e.name,status:e.problem?`error`:e.status}),(0,B.jsxs)(`span`,{className:`grow`,children:[(0,B.jsxs)(`span`,{className:`agent-name`,children:[e.name,e.role===`coordinator`&&(0,B.jsx)(`span`,{className:`tag accent`,children:`lead`})]}),(0,B.jsx)(`span`,{className:`agent-sub ellipsis ${i}`,style:{display:`block`},children:r})]})]})}function mT(){let[e,t]=(0,b.useState)(null),[n,r]=(0,b.useState)([]),[i,a]=(0,b.useState)(null),[o,s]=(0,b.useState)(!1),[c,l]=(0,b.useState)(null),u=()=>J.providers().then(e=>{t(e.connected),r(e.catalog),a(null)}).catch(e=>a(e.message));return(0,b.useEffect)(()=>{u()},[]),(0,B.jsxs)(`section`,{className:`section`,children:[(0,B.jsxs)(`div`,{className:`section-head`,children:[(0,B.jsxs)(`div`,{children:[(0,B.jsx)(`h2`,{children:`Model providers`}),(0,B.jsx)(`p`,{children:`The AI services OpenCode is signed in to. Every model you can pick for a project comes from one of these; remove the ones you don't use to keep that list short. Keys are handed to OpenCode and not kept by Symbio.`})]}),(0,B.jsxs)(`button`,{className:`btn sm`,onClick:()=>s(!0),disabled:!n.length,children:[(0,B.jsx)(ip,{size:13}),`Add provider`]})]}),i&&(0,B.jsx)(`div`,{style:{padding:12},children:(0,B.jsx)(`div`,{className:`error`,children:i})}),!e&&!i&&(0,B.jsx)(`div`,{className:`section-empty`,children:`Loading providers…`}),e&&(0,B.jsx)(`div`,{className:`section-body`,children:e.map(e=>(0,B.jsxs)(`div`,{className:`list-row`,children:[(0,B.jsx)(`span`,{className:`conn-icon`,children:(0,B.jsx)(Od,{size:16})}),(0,B.jsxs)(`div`,{className:`grow`,children:[(0,B.jsx)(`div`,{className:`list-title`,children:e.name}),(0,B.jsxs)(`div`,{className:`list-sub ellipsis`,children:[e.models,` model`,e.models===1?``:`s`,` · `,hT(e),e.usedBy.length>0&&` · used by ${e.usedBy.join(`, `)}`]})]}),e.logins.length>0?(0,B.jsx)(`button`,{className:`btn ghost icon sm`,onClick:()=>l(e),title:`Remove`,children:(0,B.jsx)(Ap,{size:13})}):(0,B.jsx)(`span`,{className:`subtle small`,title:gT(e),children:`Can't remove here`})]},e.id))}),(0,B.jsxs)(Bl,{children:[o&&(0,B.jsx)(vT,{catalog:n,connected:new Set(e?.map(e=>e.id)),onClose:()=>s(!1),onAdded:()=>{s(!1),u()}}),c&&(0,B.jsx)(_T,{provider:c,onClose:()=>l(null),onRemoved:()=>{l(null),u()}})]})]})}function hT(e){return e.source===`login`?e.logins.map(e=>e.label).join(`, `):e.source===`config`?`from your OpenCode config file`:e.source===`environment`?`from an environment variable`:`built in`}function gT(e){return e.source===`config`?`Defined in OpenCode's config file (opencode.jsonc). Remove it there.`:e.source===`environment`?`Comes from an environment variable on this computer. Remove the variable to disconnect it.`:`This provider is built into OpenCode.`}function _T({provider:e,onClose:t,onRemoved:n}){let[r,i]=(0,b.useState)(!1),[a,o]=(0,b.useState)(null);async function s(){i(!0);try{for(let t of e.logins)await J.removeProviderLogin(t.id);n()}catch(e){o(e.message),i(!1)}}return(0,B.jsxs)(im,{title:`Remove ${e.name}?`,onClose:t,footer:(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(`button`,{className:`btn ghost`,onClick:t,children:`Cancel`}),(0,B.jsx)(`button`,{className:`btn danger-solid`,onClick:s,disabled:r,children:r?`Removing…`:`Remove`})]}),children:[(0,B.jsxs)(`p`,{children:[`OpenCode signs out of `,e.name,` and deletes its saved login (`,e.logins.map(e=>e.label).join(`, `),`). Its`,` `,e.models,` models leave the model list. To use it again, add it back with its key or sign-in.`]}),e.usedBy.length>0&&(0,B.jsxs)(`div`,{className:`notice`,children:[`Selected in `,e.usedBy.join(`, `),`. Agents there switch to the project's other models; if it has none left, they stop and ask for one.`]}),a&&(0,B.jsx)(`div`,{className:`error`,children:a})]})}function vT({catalog:e,connected:t,onClose:n,onAdded:r}){let[i,a]=(0,b.useState)(``),[o,s]=(0,b.useState)(null),c=(0,b.useMemo)(()=>{let t=i.trim().toLowerCase();return e.filter(e=>!t||e.name.toLowerCase().includes(t)||e.id.includes(t))},[e,i]);return o?(0,B.jsx)(xT,{entry:o,onBack:()=>s(null),onClose:n,onAdded:r}):(0,B.jsx)(im,{title:`Add a model provider`,subtitle:`Pick the service you have an account or API key for.`,onClose:n,children:(0,B.jsxs)(`div`,{className:`model-picker`,children:[(0,B.jsxs)(`div`,{className:`model-picker-head`,children:[(0,B.jsx)(gp,{size:14,className:`subtle`}),(0,B.jsx)(`input`,{autoFocus:!0,placeholder:`Search ${e.length} providers…`,value:i,onChange:e=>a(e.target.value)})]}),(0,B.jsxs)(`div`,{className:`model-groups`,style:{maxHeight:360},children:[c.map(e=>(0,B.jsxs)(`div`,{className:`model-row`,onClick:()=>s(e),children:[(0,B.jsx)(`span`,{className:`model-name`,children:e.name}),t.has(e.id)&&(0,B.jsx)(`span`,{className:`tag green`,children:`Connected`}),(0,B.jsx)(`span`,{className:`subtle small`,children:e.methods.map(e=>e.type===`key`?`API key`:`Sign-in`).filter(yT).join(` · `)})]},e.id)),c.length===0&&(0,B.jsx)(`div`,{className:`section-empty`,children:`No provider matches.`})]})]})})}var yT=(e,t,n)=>n.indexOf(e)===t;function bT(e,t){return e.filter(e=>!e.hidden&&(e.when??[]).every(e=>e.op===`eq`?t[e.key]===e.value:t[e.key]!==e.value))}function xT({entry:e,onBack:t,onClose:n,onAdded:r}){let[i,a]=(0,b.useState)(0),o=e.methods[i],[s,c]=(0,b.useState)({}),[l,u]=(0,b.useState)(``),[d,f]=(0,b.useState)(null),[p,m]=(0,b.useState)(``),[h,g]=(0,b.useState)(!1),[_,v]=(0,b.useState)(null),y=(0,b.useRef)(null);(0,b.useEffect)(()=>{let e={};for(let t of o.form)t.default===void 0?t.options?.length&&(e[t.key]=t.options[0].value):e[t.key]=t.default;c(e),v(null)},[i]),(0,b.useEffect)(()=>{if(y.current=d,!d||d.mode!==`auto`)return;let t=setInterval(async()=>{let n=await J.providerOauthStatus(e.id,d.attemptID).catch(()=>null);n&&n.status!==`pending`&&(clearInterval(t),y.current=null,n.status===`complete`?r():(f(null),v(n.status===`expired`?`The sign-in expired. Try again.`:n.message||`The sign-in failed.`)))},2e3);return()=>clearInterval(t)},[d]),(0,b.useEffect)(()=>()=>void(y.current&&J.cancelProviderOauth(e.id,y.current.attemptID).catch(()=>{})),[]);let x=bT(o.form,s),S=()=>{let e={},t=new Set([...x.map(e=>e.key),...o.form.filter(e=>e.hidden).map(e=>e.key)]);for(let[n,r]of Object.entries(s))t.has(n)&&r.trim()&&(e[n]=r.trim());return e},C=x.some(e=>e.required&&!s[e.key]?.trim())||o.type===`key`&&!l.trim(),w=x.find(e=>e.pattern&&s[e.key]&&!new RegExp(e.pattern).test(s[e.key]));async function T(){g(!0),v(null);try{if(o.type===`key`)await J.connectProviderKey(e.id,l,S()),r();else if(d)await J.completeProviderOauth(e.id,d.attemptID,p),y.current=null,r();else{let t=await J.beginProviderOauth(e.id,o.id,S());f(t),window.open(t.url,`_blank`,`noopener`)}}catch(e){v(e.message)}finally{g(!1)}}let E=o.type===`key`?h?`Connecting…`:`Connect`:d?h?`Finishing…`:`Finish`:h?`Starting…`:`Sign in`;return(0,B.jsxs)(im,{title:`Connect ${e.name}`,onClose:n,footer:(0,B.jsxs)(B.Fragment,{children:[(0,B.jsxs)(`button`,{className:`btn ghost`,onClick:t,disabled:h,children:[(0,B.jsx)(bd,{size:14}),`Back`]}),!(d&&d.mode===`auto`)&&(0,B.jsx)(`button`,{className:`btn primary`,onClick:T,disabled:h||(d?!p.trim():C||!!w),children:E})]}),children:[d?(0,B.jsxs)(B.Fragment,{children:[(0,B.jsxs)(`p`,{children:[`Finish signing in to `,e.name,` in your browser. If it didn't open, use this link:`,` `,(0,B.jsxs)(`a`,{href:d.url,target:`_blank`,rel:`noopener noreferrer`,children:[d.url,` `,(0,B.jsx)(lf,{size:12})]})]}),d.instructions&&(0,B.jsx)(`div`,{className:`notice`,children:d.instructions}),d.mode===`code`?(0,B.jsxs)(`label`,{className:`field`,children:[(0,B.jsx)(`span`,{children:`Code`}),(0,B.jsx)(`input`,{autoFocus:!0,value:p,onChange:e=>m(e.target.value),placeholder:`Paste the code shown after signing in`})]}):(0,B.jsxs)(`div`,{className:`row subtle small`,children:[(0,B.jsx)(Lf,{size:13,className:`spin`}),` Waiting for the sign-in to finish…`]})]}):(0,B.jsxs)(B.Fragment,{children:[e.methods.length>1&&(0,B.jsxs)(`div`,{className:`field`,children:[(0,B.jsx)(`span`,{children:`How to connect`}),(0,B.jsx)(`div`,{className:`seg`,children:e.methods.map((e,t)=>(0,B.jsx)(`button`,{className:t===i?`on`:``,onClick:()=>a(t),children:e.label},t))})]}),x.map(e=>(0,B.jsxs)(`label`,{className:`field`,children:[(0,B.jsx)(`span`,{children:e.title}),e.options?(0,B.jsx)(`select`,{value:s[e.key]??``,onChange:t=>c({...s,[e.key]:t.target.value}),children:e.options.map(e=>(0,B.jsxs)(`option`,{value:e.value,children:[e.label,e.description?` — ${e.description}`:``]},e.value))}):(0,B.jsx)(`input`,{value:s[e.key]??``,onChange:t=>c({...s,[e.key]:t.target.value}),placeholder:e.placeholder}),e.description&&(0,B.jsx)(`span`,{className:`hint`,children:e.description}),w===e&&(0,B.jsx)(`span`,{className:`hint`,style:{color:`var(--red)`},children:`This doesn't look right.`})]},e.key)),o.type===`key`?(0,B.jsxs)(`label`,{className:`field`,children:[(0,B.jsx)(`span`,{children:`API key`}),(0,B.jsx)(`input`,{type:`password`,autoFocus:x.length===0,value:l,onChange:e=>u(e.target.value)})]}):(0,B.jsxs)(`p`,{className:`subtle`,children:[`You'll sign in on `,e.name,`'s website, then come back here.`]}),e.other.length>0&&(0,B.jsxs)(`p`,{className:`subtle small`,children:[`Also possible outside Symbio: `,e.other.join(`; `),`.`]})]}),_&&(0,B.jsx)(`div`,{className:`error`,children:_})]})}function ST(){let[e,t]=(0,b.useState)(null),n=()=>J.remote().then(t).catch(()=>{});return(0,b.useEffect)(()=>(n(),Up(e=>{e.type===`remote.updated`&&n()})),[]),[e,n]}var CT=e=>`${e.slice(0,4)}-${e.slice(4)}`;function wT(){let[e]=ST(),[t,n]=(0,b.useState)(!1);if(!e?.active)return null;let r=e.code!==void 0;async function i(){confirm(r?`Turn remote access off? Remote sessions end and the link stops working.`:`Turn remote access off? This page stops working right away.`)&&(n(!0),await J.stopRemote().catch(e=>alert(e.message)),n(!1))}return(0,B.jsxs)(`div`,{className:`remote-banner`,children:[(0,B.jsx)(Tf,{size:14}),(0,B.jsxs)(`span`,{children:[(0,B.jsx)(`strong`,{children:`Remote access is on.`}),` `,r?(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(`a`,{href:e.url,target:`_blank`,rel:`noreferrer`,children:e.url}),e.code&&(0,B.jsxs)(B.Fragment,{children:[` · code `,(0,B.jsx)(`code`,{className:`remote-code`,children:CT(e.code)})]}),` · `,e.sessions,` remote session`,e.sessions===1?``:`s`]}):`You're using Symbio through a temporary link.`]}),(0,B.jsx)(`span`,{className:`spacer`}),(0,B.jsxs)(`button`,{className:`btn sm`,onClick:i,disabled:t,children:[(0,B.jsx)(op,{size:13}),t?`Turning off…`:`Turn off`]})]})}function TT(){let[e,t]=ST(),[n,r]=(0,b.useState)(!1),[i,a]=(0,b.useState)(null),o=e?.code!==void 0;async function s(){r(!0),a(null);try{e?.active?await J.stopRemote():await J.startRemote(),t()}catch(e){a(e.message)}finally{r(!1)}}return(0,B.jsxs)(`section`,{className:`section`,children:[(0,B.jsxs)(`div`,{className:`section-head`,children:[(0,B.jsxs)(`div`,{children:[(0,B.jsx)(`h2`,{children:`Remote access`}),(0,B.jsxs)(`p`,{children:[`Opens a temporary Cloudflare link to this Symbio so you can use it from another device. Visitors need the access code; after 10 wrong codes the link is shut down. Whoever gets in controls your agents, which run commands on this computer: share the link and code only with yourself, and turn it off when you're done. Also available as `,(0,B.jsx)(`code`,{children:`sym remote`}),`.`]})]}),o&&(0,B.jsxs)(`button`,{className:`btn sm ${e?.active?``:`primary`}`,onClick:s,disabled:n||!e,children:[(0,B.jsx)(op,{size:13}),n?e?.active?`Turning off…`:`Opening…`:e?.active?`Turn off`:`Turn on`]})]}),(0,B.jsxs)(`div`,{className:`stack`,style:{padding:16,gap:10},children:[i&&(0,B.jsx)(`div`,{className:`error`,children:i}),e?.active?(0,B.jsxs)(B.Fragment,{children:[(0,B.jsxs)(`div`,{className:`field`,children:[(0,B.jsx)(`span`,{children:`Link`}),(0,B.jsxs)(`div`,{className:`row`,style:{gap:8},children:[(0,B.jsx)(`a`,{href:e.url,target:`_blank`,rel:`noreferrer`,className:`mono small`,children:e.url}),(0,B.jsx)(`button`,{className:`btn ghost icon xs`,title:`Copy`,onClick:()=>navigator.clipboard.writeText(e.url),children:(0,B.jsx)(ef,{size:12})})]})]}),e.code&&(0,B.jsxs)(`div`,{className:`field`,children:[(0,B.jsx)(`span`,{children:`Access code`}),(0,B.jsx)(`code`,{className:`remote-code big`,children:CT(e.code)})]}),(0,B.jsxs)(`div`,{className:`small subtle`,children:[`On since `,new Date(e.startedAt).toLocaleString(),` · `,e.sessions,` remote session`,e.sessions===1?``:`s`,`. A new link and code are made each time.`]})]}):(0,B.jsxs)(`div`,{className:`small subtle`,children:[`Off.`,e?.lastStop?` Last turned off ${new Date(e.lastStop.at).toLocaleString()}: ${e.lastStop.reason}.`:``,n&&` Opening the link (the first time, cloudflared is downloaded first)…`]})]})]})}function ET(){let e=sessionStorage.getItem(`symbio:previous-page`);location.hash=e&&!e.startsWith(`#/settings`)?e:`#/`}function DT(){let[e,t]=(0,b.useState)(null),[n,r]=(0,b.useState)(null),[i,a]=(0,b.useState)(null),[o,s]=(0,b.useState)(null),c=()=>J.connections().then(t).catch(e=>s(e.message));(0,b.useEffect)(()=>{c()},[]);async function l(e){a(e);try{await J.testConnection(e),await c()}finally{a(null)}}async function u(e){confirm(`Delete the connection “${e.name}”? Its stored credentials are deleted too. Projects using it lose access.`)&&(await J.deleteConnection(e.id).catch(e=>alert(e.message)),await c())}return(0,B.jsxs)(`div`,{className:`page-inner`,children:[(0,B.jsxs)(`div`,{children:[(0,B.jsxs)(`button`,{className:`back`,onClick:ET,children:[(0,B.jsx)(bd,{size:14}),`Back`]}),(0,B.jsx)(`div`,{className:`page-head`,children:(0,B.jsxs)(`div`,{children:[(0,B.jsx)(`h1`,{children:`Settings`}),(0,B.jsx)(`p`,{children:`Set these once — every project can use them.`})]})})]}),(0,B.jsxs)(`section`,{className:`section`,children:[(0,B.jsxs)(`div`,{className:`section-head`,children:[(0,B.jsxs)(`div`,{children:[(0,B.jsx)(`h2`,{children:`Connections`}),(0,B.jsx)(`p`,{children:`GitHub accounts and servers agents can use to push and deploy. Credentials are encrypted on this computer, tied to your Windows login, and never shown to agents — they ask Symbio to act, and Symbio uses the credentials itself.`})]}),(0,B.jsxs)(`div`,{className:`row`,children:[(0,B.jsxs)(`button`,{className:`btn sm`,onClick:()=>r(`new-github`),children:[(0,B.jsx)(ip,{size:13}),`GitHub`]}),(0,B.jsxs)(`button`,{className:`btn sm`,onClick:()=>r(`new-server`),children:[(0,B.jsx)(ip,{size:13}),`Server`]})]})]}),o&&(0,B.jsx)(`div`,{style:{padding:12},children:(0,B.jsx)(`div`,{className:`error`,children:o})}),e?.length===0&&(0,B.jsx)(om,{icon:(0,B.jsx)(np,{size:20}),title:`No connections yet`,children:`Add a GitHub account or a server (SSH) so agents can push code or deploy for you.`}),e&&e.length>0&&(0,B.jsx)(`div`,{className:`section-body`,children:e.map(e=>(0,B.jsxs)(`div`,{className:`list-row`,children:[(0,B.jsx)(Gp,{type:e.type}),(0,B.jsxs)(`div`,{className:`grow`,children:[(0,B.jsx)(`div`,{className:`list-title`,children:e.name}),(0,B.jsx)(`div`,{className:`list-sub ellipsis`,children:e.type===`github`?e.account?`GitHub · ${e.account}`:`GitHub · not tested yet`:`${e.username}@${e.host}${e.port===22?``:`:${e.port}`} · ${e.auth===`password`?`password`:e.keyPath?`key file ${e.keyPath}`:`stored key`}`}),e.lastTest&&(0,B.jsxs)(`div`,{className:`conn-test ${e.lastTest.ok?`ok`:`bad`}`,children:[e.lastTest.ok?(0,B.jsx)(Md,{size:12}):(0,B.jsx)(Pp,{size:12}),e.lastTest.message]})]}),(0,B.jsxs)(`button`,{className:`btn sm`,onClick:()=>l(e.id),disabled:i===e.id,children:[(0,B.jsx)(wp,{size:13}),i===e.id?`Testing…`:`Test`]}),(0,B.jsx)(`button`,{className:`btn ghost icon sm`,onClick:()=>r(e),title:`Edit`,children:(0,B.jsx)(Qf,{size:13})}),(0,B.jsx)(`button`,{className:`btn ghost icon sm`,onClick:()=>u(e),title:`Delete`,children:(0,B.jsx)(Ap,{size:13})})]},e.id))})]}),(0,B.jsx)(mT,{}),(0,B.jsx)(Sm,{}),(0,B.jsx)(TT,{}),(0,B.jsx)(Bl,{children:n&&(0,B.jsx)(OT,{existing:typeof n==`string`?null:n,type:typeof n==`string`?n===`new-github`?`github`:`server`:n.type,onClose:()=>r(null),onSaved:async e=>{r(null),await c(),l(e)}})})]})}function OT({existing:e,type:t,onClose:n,onSaved:r}){let i=e?.type===`server`?e:null,[a,o]=(0,b.useState)(e?.name??``),[s,c]=(0,b.useState)(``),[l,u]=(0,b.useState)(i?.host??``),[d,f]=(0,b.useState)(String(i?.port??22)),[p,m]=(0,b.useState)(i?.username??``),[h,g]=(0,b.useState)(i?.auth??`key`),[_,v]=(0,b.useState)(i?.keyPath?`file`:i?`paste`:`file`),[y,x]=(0,b.useState)(i?.keyPath??`~/.ssh/id_ed25519`),[S,C]=(0,b.useState)(``),[w,T]=(0,b.useState)(``),[E,D]=(0,b.useState)(``),[O,ee]=(0,b.useState)(!1),[te,ne]=(0,b.useState)(null),re=t=>!!e?.secrets?.[t],k=e=>re(e)?`Saved — leave empty to keep`:``;async function ie(){ee(!0),ne(null);let n=t===`github`?{type:t,name:a,token:s}:{type:t,name:a,host:l,port:Number(d)||22,username:p,auth:h,keyPath:h===`key`&&_===`file`?y:null,privateKey:h===`key`&&_===`paste`?S:void 0,passphrase:h===`key`?w:void 0,password:h===`password`?E:void 0};try{r((e?await J.updateConnection(e.id,n):await J.createConnection(n)).id)}catch(e){ne(e.message),ee(!1)}}return(0,B.jsxs)(im,{title:`${e?`Edit`:`New`} ${t===`github`?`GitHub connection`:`server connection`}`,onClose:n,footer:(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(`button`,{className:`btn ghost`,onClick:n,children:`Cancel`}),(0,B.jsx)(`button`,{className:`btn primary`,onClick:ie,disabled:O||!a.trim(),children:O?`Saving…`:`Save and test`})]}),children:[(0,B.jsxs)(`label`,{className:`field`,children:[(0,B.jsx)(`span`,{children:`Name`}),(0,B.jsx)(`input`,{autoFocus:!0,value:a,onChange:e=>o(e.target.value),placeholder:t===`github`?`My GitHub`:`My VPS`})]}),t===`github`?(0,B.jsxs)(`label`,{className:`field`,children:[(0,B.jsx)(`span`,{children:`Personal access token`}),(0,B.jsx)(`input`,{type:`password`,value:s,onChange:e=>c(e.target.value),placeholder:k(`token`)||`github_pat_… or ghp_…`}),(0,B.jsx)(`span`,{className:`hint`,children:`GitHub → Settings → Developer settings → Personal access tokens. A fine-grained token limited to the repositories agents should work on is safest; give it Contents (read & write), Pull requests and Issues as needed.`})]}):(0,B.jsxs)(B.Fragment,{children:[(0,B.jsxs)(`div`,{className:`field-row`,children:[(0,B.jsxs)(`label`,{className:`field`,style:{flex:3},children:[(0,B.jsx)(`span`,{children:`Host`}),(0,B.jsx)(`input`,{value:l,onChange:e=>u(e.target.value),placeholder:`203.0.113.10 or vps.example.com`})]}),(0,B.jsxs)(`label`,{className:`field`,style:{flex:1},children:[(0,B.jsx)(`span`,{children:`Port`}),(0,B.jsx)(`input`,{value:d,onChange:e=>f(e.target.value)})]})]}),(0,B.jsxs)(`label`,{className:`field`,children:[(0,B.jsx)(`span`,{children:`User`}),(0,B.jsx)(`input`,{value:p,onChange:e=>m(e.target.value),placeholder:`deploy`})]}),(0,B.jsxs)(`div`,{className:`field`,children:[(0,B.jsx)(`span`,{children:`Authentication`}),(0,B.jsxs)(`div`,{className:`seg`,children:[(0,B.jsx)(`button`,{className:h===`key`?`on`:``,onClick:()=>g(`key`),children:`SSH key`}),(0,B.jsx)(`button`,{className:h===`password`?`on`:``,onClick:()=>g(`password`),children:`Password`})]})]}),h===`key`?(0,B.jsxs)(B.Fragment,{children:[(0,B.jsxs)(`div`,{className:`seg`,children:[(0,B.jsx)(`button`,{className:_===`file`?`on`:``,onClick:()=>v(`file`),children:`Key file on this computer`}),(0,B.jsx)(`button`,{className:_===`paste`?`on`:``,onClick:()=>v(`paste`),children:`Paste the key`})]}),_===`file`?(0,B.jsxs)(`label`,{className:`field`,children:[(0,B.jsx)(`span`,{children:`Key file`}),(0,B.jsx)(`input`,{value:y,onChange:e=>x(e.target.value),placeholder:`~/.ssh/id_ed25519`})]}):(0,B.jsxs)(`label`,{className:`field`,children:[(0,B.jsx)(`span`,{children:`Private key`}),(0,B.jsx)(`textarea`,{rows:5,className:`mono`,value:S,onChange:e=>C(e.target.value),placeholder:k(`privateKey`)||`-----BEGIN OPENSSH PRIVATE KEY-----`}),(0,B.jsx)(`span`,{className:`hint`,children:`Stored encrypted.`})]}),(0,B.jsxs)(`label`,{className:`field`,children:[(0,B.jsx)(`span`,{children:`Passphrase (if the key has one)`}),(0,B.jsx)(`input`,{type:`password`,value:w,onChange:e=>T(e.target.value),placeholder:k(`passphrase`)})]})]}):(0,B.jsxs)(`label`,{className:`field`,children:[(0,B.jsx)(`span`,{children:`Password`}),(0,B.jsx)(`input`,{type:`password`,value:E,onChange:e=>D(e.target.value),placeholder:k(`password`)})]})]}),te&&(0,B.jsx)(`div`,{className:`error`,children:te})]})}function kT(){let[e,t]=(0,b.useState)(location.hash);(0,b.useEffect)(()=>{let e=e=>{let n=new URL(e.oldURL).hash||`#/`;n!==location.hash&&sessionStorage.setItem(`symbio:previous-page`,n),t(location.hash)};return addEventListener(`hashchange`,e),()=>removeEventListener(`hashchange`,e)},[]);let n=e.match(/^#\/p\/([\w-]+)/);return n?{page:`project`,id:n[1]}:e.startsWith(`#/settings`)?{page:`settings`}:{page:`home`}}function AT(){let e=kT(),[t,n]=(0,b.useState)(null),[r,i]=(0,b.useState)(null);(0,b.useEffect)(()=>{J.runtime().then(n).catch(()=>{});let e=setInterval(()=>J.runtime().then(n).catch(()=>{}),3e4),t=Up(e=>{e.type===`runtime`&&n(t=>({...e,memoryMB:e.memoryMB??t?.memoryMB??null}))});return()=>{clearInterval(e),t()}},[]),(0,b.useEffect)(()=>{if(e.page!==`project`)return i(null);let t=e.id,n=()=>J.project(t).then(e=>i(e.name)).catch(()=>i(null));return n(),Up(e=>{e.type===`project.updated`&&e.projectId===t&&n()})},[e.page===`project`?e.id:null]);let[a,o]=(0,b.useState)(!1);(0,b.useEffect)(()=>{let e=()=>o(!0);return addEventListener(zp,e),()=>removeEventListener(zp,e)},[]);async function s(){if(!confirm(`Pause every project that has agents working? You can resume each project from its page.`))return;let{paused:e}=await J.pauseAll();alert(e.length?`Paused: ${e.join(`, `)}`:`No agents were working.`)}return a?(0,B.jsx)(`div`,{className:`locked`,children:(0,B.jsxs)(om,{icon:(0,B.jsx)(Nf,{size:20}),title:`Open Symbio from its link`,children:[`This page doesn't have Symbio's key, so it can't show your projects. Use the link Symbio printed when it started, or start it again (`,(0,B.jsx)(`code`,{children:`sym`}),` or `,(0,B.jsx)(`code`,{children:`npm start`}),`): it opens the right link for you.`]})}):(0,B.jsxs)(`div`,{className:`app`,children:[(0,B.jsxs)(`header`,{className:`topbar`,children:[(0,B.jsxs)(`a`,{className:`brand`,href:`#/`,children:[(0,B.jsx)(nm,{}),`Symbio`]}),(0,B.jsxs)(`nav`,{className:`crumbs`,children:[(0,B.jsx)(Id,{size:14}),e.page===`settings`?(0,B.jsx)(`span`,{className:`current`,children:`Settings`}):e.page===`project`?(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(`a`,{href:`#/`,children:`Projects`}),(0,B.jsx)(Id,{size:14}),(0,B.jsx)(`span`,{className:`current ellipsis`,children:r??`…`})]}):(0,B.jsx)(`span`,{className:`current`,children:`Projects`})]}),(0,B.jsxs)(`div`,{className:`topbar-actions`,children:[(0,B.jsxs)(`button`,{className:`btn ghost sm`,onClick:s,title:`Pause every project that has agents working`,children:[(0,B.jsx)(Wd,{size:15}),`Pause all`]}),(0,B.jsxs)(`a`,{className:`btn ghost sm ${e.page===`settings`?`active`:``}`,href:`#/settings`,title:`Settings`,children:[(0,B.jsx)(bp,{size:15}),`Settings`]}),(0,B.jsx)(jT,{runtime:t})]})]}),(0,B.jsx)(wT,{}),(0,B.jsx)(Bl,{mode:`wait`,children:(0,B.jsx)(W.main,{className:`page`,initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.12},children:e.page===`project`?(0,B.jsx)(fT,{projectId:e.id}):e.page===`settings`?(0,B.jsx)(DT,{}):(0,B.jsx)(pm,{runtime:t})},e.page===`project`?e.id:e.page)})]})}function jT({runtime:e}){if(!e)return(0,B.jsx)(`span`,{className:`runtime`,children:`Connecting…`});let t=e.memoryMB?e.memoryMB>=1024?`${(e.memoryMB/1024).toFixed(1)} GB`:`${e.memoryMB} MB`:null,n=e.state===`running`?`OpenCode ${e.version??``}`:e.state===`starting`?`Starting OpenCode…`:e.state===`crashed`?`OpenCode restarting`:`OpenCode stopped`;return(0,B.jsxs)(`span`,{className:`runtime`,title:[e.error,t&&`Memory: ${t}`].filter(Boolean).join(`
|
|
52
|
-
`)||void 0,children:[(0,B.jsx)(`span`,{className:`dot ${e.state}`}),n,t&&e.state===`running`&&(0,B.jsx)(`span`,{className:`subtle tnum`,children:t})]})}(0,U.createRoot)(document.getElementById(`root`)).render((0,B.jsx)(b.StrictMode,{children:(0,B.jsx)(AT,{})}));
|