@saga-ai/cli 2.12.1 → 2.13.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.
@@ -0,0 +1,198 @@
1
+ function xk(e,n){for(var r=0;r<n.length;r++){const o=n[r];if(typeof o!="string"&&!Array.isArray(o)){for(const l in o)if(l!=="default"&&!(l in e)){const a=Object.getOwnPropertyDescriptor(o,l);a&&Object.defineProperty(e,l,a.get?a:{enumerable:!0,get:()=>o[l]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))o(l);new MutationObserver(l=>{for(const a of l)if(a.type==="childList")for(const u of a.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&o(u)}).observe(document,{childList:!0,subtree:!0});function r(l){const a={};return l.integrity&&(a.integrity=l.integrity),l.referrerPolicy&&(a.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?a.credentials="include":l.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function o(l){if(l.ep)return;l.ep=!0;const a=r(l);fetch(l.href,a)}})();function ws(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Cu={exports:{}},ao={},bu={exports:{}},Pe={};/**
2
+ * @license React
3
+ * react.production.min.js
4
+ *
5
+ * Copyright (c) Facebook, Inc. and its affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */var vh;function wk(){if(vh)return Pe;vh=1;var e=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),u=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),m=Symbol.iterator;function v(j){return j===null||typeof j!="object"?null:(j=m&&j[m]||j["@@iterator"],typeof j=="function"?j:null)}var x={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},k=Object.assign,C={};function E(j,V,T){this.props=j,this.context=V,this.refs=C,this.updater=T||x}E.prototype.isReactComponent={},E.prototype.setState=function(j,V){if(typeof j!="object"&&typeof j!="function"&&j!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,j,V,"setState")},E.prototype.forceUpdate=function(j){this.updater.enqueueForceUpdate(this,j,"forceUpdate")};function I(){}I.prototype=E.prototype;function O(j,V,T){this.props=j,this.context=V,this.refs=C,this.updater=T||x}var N=O.prototype=new I;N.constructor=O,k(N,E.prototype),N.isPureReactComponent=!0;var $=Array.isArray,Y=Object.prototype.hasOwnProperty,L={current:null},Q={key:!0,ref:!0,__self:!0,__source:!0};function W(j,V,T){var le,Ee={},ge=null,we=null;if(V!=null)for(le in V.ref!==void 0&&(we=V.ref),V.key!==void 0&&(ge=""+V.key),V)Y.call(V,le)&&!Q.hasOwnProperty(le)&&(Ee[le]=V[le]);var Ce=arguments.length-2;if(Ce===1)Ee.children=T;else if(1<Ce){for(var Re=Array(Ce),Fe=0;Fe<Ce;Fe++)Re[Fe]=arguments[Fe+2];Ee.children=Re}if(j&&j.defaultProps)for(le in Ce=j.defaultProps,Ce)Ee[le]===void 0&&(Ee[le]=Ce[le]);return{$$typeof:e,type:j,key:ge,ref:we,props:Ee,_owner:L.current}}function fe(j,V){return{$$typeof:e,type:j.type,key:V,ref:j.ref,props:j.props,_owner:j._owner}}function z(j){return typeof j=="object"&&j!==null&&j.$$typeof===e}function ne(j){var V={"=":"=0",":":"=2"};return"$"+j.replace(/[=:]/g,function(T){return V[T]})}var te=/\/+/g;function me(j,V){return typeof j=="object"&&j!==null&&j.key!=null?ne(""+j.key):V.toString(36)}function H(j,V,T,le,Ee){var ge=typeof j;(ge==="undefined"||ge==="boolean")&&(j=null);var we=!1;if(j===null)we=!0;else switch(ge){case"string":case"number":we=!0;break;case"object":switch(j.$$typeof){case e:case n:we=!0}}if(we)return we=j,Ee=Ee(we),j=le===""?"."+me(we,0):le,$(Ee)?(T="",j!=null&&(T=j.replace(te,"$&/")+"/"),H(Ee,V,T,"",function(Fe){return Fe})):Ee!=null&&(z(Ee)&&(Ee=fe(Ee,T+(!Ee.key||we&&we.key===Ee.key?"":(""+Ee.key).replace(te,"$&/")+"/")+j)),V.push(Ee)),1;if(we=0,le=le===""?".":le+":",$(j))for(var Ce=0;Ce<j.length;Ce++){ge=j[Ce];var Re=le+me(ge,Ce);we+=H(ge,V,T,Re,Ee)}else if(Re=v(j),typeof Re=="function")for(j=Re.call(j),Ce=0;!(ge=j.next()).done;)ge=ge.value,Re=le+me(ge,Ce++),we+=H(ge,V,T,Re,Ee);else if(ge==="object")throw V=String(j),Error("Objects are not valid as a React child (found: "+(V==="[object Object]"?"object with keys {"+Object.keys(j).join(", ")+"}":V)+"). If you meant to render a collection of children, use an array instead.");return we}function q(j,V,T){if(j==null)return j;var le=[],Ee=0;return H(j,le,"","",function(ge){return V.call(T,ge,Ee++)}),le}function re(j){if(j._status===-1){var V=j._result;V=V(),V.then(function(T){(j._status===0||j._status===-1)&&(j._status=1,j._result=T)},function(T){(j._status===0||j._status===-1)&&(j._status=2,j._result=T)}),j._status===-1&&(j._status=0,j._result=V)}if(j._status===1)return j._result.default;throw j._result}var he={current:null},B={transition:null},oe={ReactCurrentDispatcher:he,ReactCurrentBatchConfig:B,ReactCurrentOwner:L};function _(){throw Error("act(...) is not supported in production builds of React.")}return Pe.Children={map:q,forEach:function(j,V,T){q(j,function(){V.apply(this,arguments)},T)},count:function(j){var V=0;return q(j,function(){V++}),V},toArray:function(j){return q(j,function(V){return V})||[]},only:function(j){if(!z(j))throw Error("React.Children.only expected to receive a single React element child.");return j}},Pe.Component=E,Pe.Fragment=r,Pe.Profiler=l,Pe.PureComponent=O,Pe.StrictMode=o,Pe.Suspense=d,Pe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=oe,Pe.act=_,Pe.cloneElement=function(j,V,T){if(j==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+j+".");var le=k({},j.props),Ee=j.key,ge=j.ref,we=j._owner;if(V!=null){if(V.ref!==void 0&&(ge=V.ref,we=L.current),V.key!==void 0&&(Ee=""+V.key),j.type&&j.type.defaultProps)var Ce=j.type.defaultProps;for(Re in V)Y.call(V,Re)&&!Q.hasOwnProperty(Re)&&(le[Re]=V[Re]===void 0&&Ce!==void 0?Ce[Re]:V[Re])}var Re=arguments.length-2;if(Re===1)le.children=T;else if(1<Re){Ce=Array(Re);for(var Fe=0;Fe<Re;Fe++)Ce[Fe]=arguments[Fe+2];le.children=Ce}return{$$typeof:e,type:j.type,key:Ee,ref:ge,props:le,_owner:we}},Pe.createContext=function(j){return j={$$typeof:u,_currentValue:j,_currentValue2:j,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},j.Provider={$$typeof:a,_context:j},j.Consumer=j},Pe.createElement=W,Pe.createFactory=function(j){var V=W.bind(null,j);return V.type=j,V},Pe.createRef=function(){return{current:null}},Pe.forwardRef=function(j){return{$$typeof:f,render:j}},Pe.isValidElement=z,Pe.lazy=function(j){return{$$typeof:g,_payload:{_status:-1,_result:j},_init:re}},Pe.memo=function(j,V){return{$$typeof:p,type:j,compare:V===void 0?null:V}},Pe.startTransition=function(j){var V=B.transition;B.transition={};try{j()}finally{B.transition=V}},Pe.unstable_act=_,Pe.useCallback=function(j,V){return he.current.useCallback(j,V)},Pe.useContext=function(j){return he.current.useContext(j)},Pe.useDebugValue=function(){},Pe.useDeferredValue=function(j){return he.current.useDeferredValue(j)},Pe.useEffect=function(j,V){return he.current.useEffect(j,V)},Pe.useId=function(){return he.current.useId()},Pe.useImperativeHandle=function(j,V,T){return he.current.useImperativeHandle(j,V,T)},Pe.useInsertionEffect=function(j,V){return he.current.useInsertionEffect(j,V)},Pe.useLayoutEffect=function(j,V){return he.current.useLayoutEffect(j,V)},Pe.useMemo=function(j,V){return he.current.useMemo(j,V)},Pe.useReducer=function(j,V,T){return he.current.useReducer(j,V,T)},Pe.useRef=function(j){return he.current.useRef(j)},Pe.useState=function(j){return he.current.useState(j)},Pe.useSyncExternalStore=function(j,V,T){return he.current.useSyncExternalStore(j,V,T)},Pe.useTransition=function(){return he.current.useTransition()},Pe.version="18.3.1",Pe}var xh;function Co(){return xh||(xh=1,bu.exports=wk()),bu.exports}/**
10
+ * @license React
11
+ * react-jsx-runtime.production.min.js
12
+ *
13
+ * Copyright (c) Facebook, Inc. and its affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */var wh;function kk(){if(wh)return ao;wh=1;var e=Co(),n=Symbol.for("react.element"),r=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,l=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function u(f,d,p){var g,m={},v=null,x=null;p!==void 0&&(v=""+p),d.key!==void 0&&(v=""+d.key),d.ref!==void 0&&(x=d.ref);for(g in d)o.call(d,g)&&!a.hasOwnProperty(g)&&(m[g]=d[g]);if(f&&f.defaultProps)for(g in d=f.defaultProps,d)m[g]===void 0&&(m[g]=d[g]);return{$$typeof:n,type:f,key:v,ref:x,props:m,_owner:l.current}}return ao.Fragment=r,ao.jsx=u,ao.jsxs=u,ao}var kh;function Sk(){return kh||(kh=1,Cu.exports=kk()),Cu.exports}var S=Sk(),b=Co();const wn=ws(b),ks=xk({__proto__:null,default:wn},[b]);var Wl={},_u={exports:{}},bt={},Tu={exports:{}},Pu={};/**
18
+ * @license React
19
+ * scheduler.production.min.js
20
+ *
21
+ * Copyright (c) Facebook, Inc. and its affiliates.
22
+ *
23
+ * This source code is licensed under the MIT license found in the
24
+ * LICENSE file in the root directory of this source tree.
25
+ */var Sh;function Ek(){return Sh||(Sh=1,(function(e){function n(B,oe){var _=B.length;B.push(oe);e:for(;0<_;){var j=_-1>>>1,V=B[j];if(0<l(V,oe))B[j]=oe,B[_]=V,_=j;else break e}}function r(B){return B.length===0?null:B[0]}function o(B){if(B.length===0)return null;var oe=B[0],_=B.pop();if(_!==oe){B[0]=_;e:for(var j=0,V=B.length,T=V>>>1;j<T;){var le=2*(j+1)-1,Ee=B[le],ge=le+1,we=B[ge];if(0>l(Ee,_))ge<V&&0>l(we,Ee)?(B[j]=we,B[ge]=_,j=ge):(B[j]=Ee,B[le]=_,j=le);else if(ge<V&&0>l(we,_))B[j]=we,B[ge]=_,j=ge;else break e}}return oe}function l(B,oe){var _=B.sortIndex-oe.sortIndex;return _!==0?_:B.id-oe.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var u=Date,f=u.now();e.unstable_now=function(){return u.now()-f}}var d=[],p=[],g=1,m=null,v=3,x=!1,k=!1,C=!1,E=typeof setTimeout=="function"?setTimeout:null,I=typeof clearTimeout=="function"?clearTimeout:null,O=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function N(B){for(var oe=r(p);oe!==null;){if(oe.callback===null)o(p);else if(oe.startTime<=B)o(p),oe.sortIndex=oe.expirationTime,n(d,oe);else break;oe=r(p)}}function $(B){if(C=!1,N(B),!k)if(r(d)!==null)k=!0,re(Y);else{var oe=r(p);oe!==null&&he($,oe.startTime-B)}}function Y(B,oe){k=!1,C&&(C=!1,I(W),W=-1),x=!0;var _=v;try{for(N(oe),m=r(d);m!==null&&(!(m.expirationTime>oe)||B&&!ne());){var j=m.callback;if(typeof j=="function"){m.callback=null,v=m.priorityLevel;var V=j(m.expirationTime<=oe);oe=e.unstable_now(),typeof V=="function"?m.callback=V:m===r(d)&&o(d),N(oe)}else o(d);m=r(d)}if(m!==null)var T=!0;else{var le=r(p);le!==null&&he($,le.startTime-oe),T=!1}return T}finally{m=null,v=_,x=!1}}var L=!1,Q=null,W=-1,fe=5,z=-1;function ne(){return!(e.unstable_now()-z<fe)}function te(){if(Q!==null){var B=e.unstable_now();z=B;var oe=!0;try{oe=Q(!0,B)}finally{oe?me():(L=!1,Q=null)}}else L=!1}var me;if(typeof O=="function")me=function(){O(te)};else if(typeof MessageChannel<"u"){var H=new MessageChannel,q=H.port2;H.port1.onmessage=te,me=function(){q.postMessage(null)}}else me=function(){E(te,0)};function re(B){Q=B,L||(L=!0,me())}function he(B,oe){W=E(function(){B(e.unstable_now())},oe)}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(B){B.callback=null},e.unstable_continueExecution=function(){k||x||(k=!0,re(Y))},e.unstable_forceFrameRate=function(B){0>B||125<B?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):fe=0<B?Math.floor(1e3/B):5},e.unstable_getCurrentPriorityLevel=function(){return v},e.unstable_getFirstCallbackNode=function(){return r(d)},e.unstable_next=function(B){switch(v){case 1:case 2:case 3:var oe=3;break;default:oe=v}var _=v;v=oe;try{return B()}finally{v=_}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(B,oe){switch(B){case 1:case 2:case 3:case 4:case 5:break;default:B=3}var _=v;v=B;try{return oe()}finally{v=_}},e.unstable_scheduleCallback=function(B,oe,_){var j=e.unstable_now();switch(typeof _=="object"&&_!==null?(_=_.delay,_=typeof _=="number"&&0<_?j+_:j):_=j,B){case 1:var V=-1;break;case 2:V=250;break;case 5:V=1073741823;break;case 4:V=1e4;break;default:V=5e3}return V=_+V,B={id:g++,callback:oe,priorityLevel:B,startTime:_,expirationTime:V,sortIndex:-1},_>j?(B.sortIndex=_,n(p,B),r(d)===null&&B===r(p)&&(C?(I(W),W=-1):C=!0,he($,_-j))):(B.sortIndex=V,n(d,B),k||x||(k=!0,re(Y))),B},e.unstable_shouldYield=ne,e.unstable_wrapCallback=function(B){var oe=v;return function(){var _=v;v=oe;try{return B.apply(this,arguments)}finally{v=_}}}})(Pu)),Pu}var Eh;function Ck(){return Eh||(Eh=1,Tu.exports=Ek()),Tu.exports}/**
26
+ * @license React
27
+ * react-dom.production.min.js
28
+ *
29
+ * Copyright (c) Facebook, Inc. and its affiliates.
30
+ *
31
+ * This source code is licensed under the MIT license found in the
32
+ * LICENSE file in the root directory of this source tree.
33
+ */var Ch;function bk(){if(Ch)return bt;Ch=1;var e=Co(),n=Ck();function r(t){for(var i="https://reactjs.org/docs/error-decoder.html?invariant="+t,s=1;s<arguments.length;s++)i+="&args[]="+encodeURIComponent(arguments[s]);return"Minified React error #"+t+"; visit "+i+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var o=new Set,l={};function a(t,i){u(t,i),u(t+"Capture",i)}function u(t,i){for(l[t]=i,t=0;t<i.length;t++)o.add(i[t])}var f=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),d=Object.prototype.hasOwnProperty,p=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,g={},m={};function v(t){return d.call(m,t)?!0:d.call(g,t)?!1:p.test(t)?m[t]=!0:(g[t]=!0,!1)}function x(t,i,s,c){if(s!==null&&s.type===0)return!1;switch(typeof i){case"function":case"symbol":return!0;case"boolean":return c?!1:s!==null?!s.acceptsBooleans:(t=t.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-");default:return!1}}function k(t,i,s,c){if(i===null||typeof i>"u"||x(t,i,s,c))return!0;if(c)return!1;if(s!==null)switch(s.type){case 3:return!i;case 4:return i===!1;case 5:return isNaN(i);case 6:return isNaN(i)||1>i}return!1}function C(t,i,s,c,h,y,w){this.acceptsBooleans=i===2||i===3||i===4,this.attributeName=c,this.attributeNamespace=h,this.mustUseProperty=s,this.propertyName=t,this.type=i,this.sanitizeURL=y,this.removeEmptyString=w}var E={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){E[t]=new C(t,0,!1,t,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var i=t[0];E[i]=new C(i,1,!1,t[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(t){E[t]=new C(t,2,!1,t.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){E[t]=new C(t,2,!1,t,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(t){E[t]=new C(t,3,!1,t.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(t){E[t]=new C(t,3,!0,t,null,!1,!1)}),["capture","download"].forEach(function(t){E[t]=new C(t,4,!1,t,null,!1,!1)}),["cols","rows","size","span"].forEach(function(t){E[t]=new C(t,6,!1,t,null,!1,!1)}),["rowSpan","start"].forEach(function(t){E[t]=new C(t,5,!1,t.toLowerCase(),null,!1,!1)});var I=/[\-:]([a-z])/g;function O(t){return t[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(t){var i=t.replace(I,O);E[i]=new C(i,1,!1,t,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var i=t.replace(I,O);E[i]=new C(i,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(t){var i=t.replace(I,O);E[i]=new C(i,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(t){E[t]=new C(t,1,!1,t.toLowerCase(),null,!1,!1)}),E.xlinkHref=new C("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(t){E[t]=new C(t,1,!1,t.toLowerCase(),null,!0,!0)});function N(t,i,s,c){var h=E.hasOwnProperty(i)?E[i]:null;(h!==null?h.type!==0:c||!(2<i.length)||i[0]!=="o"&&i[0]!=="O"||i[1]!=="n"&&i[1]!=="N")&&(k(i,s,h,c)&&(s=null),c||h===null?v(i)&&(s===null?t.removeAttribute(i):t.setAttribute(i,""+s)):h.mustUseProperty?t[h.propertyName]=s===null?h.type===3?!1:"":s:(i=h.attributeName,c=h.attributeNamespace,s===null?t.removeAttribute(i):(h=h.type,s=h===3||h===4&&s===!0?"":""+s,c?t.setAttributeNS(c,i,s):t.setAttribute(i,s))))}var $=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Y=Symbol.for("react.element"),L=Symbol.for("react.portal"),Q=Symbol.for("react.fragment"),W=Symbol.for("react.strict_mode"),fe=Symbol.for("react.profiler"),z=Symbol.for("react.provider"),ne=Symbol.for("react.context"),te=Symbol.for("react.forward_ref"),me=Symbol.for("react.suspense"),H=Symbol.for("react.suspense_list"),q=Symbol.for("react.memo"),re=Symbol.for("react.lazy"),he=Symbol.for("react.offscreen"),B=Symbol.iterator;function oe(t){return t===null||typeof t!="object"?null:(t=B&&t[B]||t["@@iterator"],typeof t=="function"?t:null)}var _=Object.assign,j;function V(t){if(j===void 0)try{throw Error()}catch(s){var i=s.stack.trim().match(/\n( *(at )?)/);j=i&&i[1]||""}return`
34
+ `+j+t}var T=!1;function le(t,i){if(!t||T)return"";T=!0;var s=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(i)if(i=function(){throw Error()},Object.defineProperty(i.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(i,[])}catch(F){var c=F}Reflect.construct(t,[],i)}else{try{i.call()}catch(F){c=F}t.call(i.prototype)}else{try{throw Error()}catch(F){c=F}t()}}catch(F){if(F&&c&&typeof F.stack=="string"){for(var h=F.stack.split(`
35
+ `),y=c.stack.split(`
36
+ `),w=h.length-1,P=y.length-1;1<=w&&0<=P&&h[w]!==y[P];)P--;for(;1<=w&&0<=P;w--,P--)if(h[w]!==y[P]){if(w!==1||P!==1)do if(w--,P--,0>P||h[w]!==y[P]){var R=`
37
+ `+h[w].replace(" at new "," at ");return t.displayName&&R.includes("<anonymous>")&&(R=R.replace("<anonymous>",t.displayName)),R}while(1<=w&&0<=P);break}}}finally{T=!1,Error.prepareStackTrace=s}return(t=t?t.displayName||t.name:"")?V(t):""}function Ee(t){switch(t.tag){case 5:return V(t.type);case 16:return V("Lazy");case 13:return V("Suspense");case 19:return V("SuspenseList");case 0:case 2:case 15:return t=le(t.type,!1),t;case 11:return t=le(t.type.render,!1),t;case 1:return t=le(t.type,!0),t;default:return""}}function ge(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case Q:return"Fragment";case L:return"Portal";case fe:return"Profiler";case W:return"StrictMode";case me:return"Suspense";case H:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case ne:return(t.displayName||"Context")+".Consumer";case z:return(t._context.displayName||"Context")+".Provider";case te:var i=t.render;return t=t.displayName,t||(t=i.displayName||i.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case q:return i=t.displayName||null,i!==null?i:ge(t.type)||"Memo";case re:i=t._payload,t=t._init;try{return ge(t(i))}catch{}}return null}function we(t){var i=t.type;switch(t.tag){case 24:return"Cache";case 9:return(i.displayName||"Context")+".Consumer";case 10:return(i._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=i.render,t=t.displayName||t.name||"",i.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return i;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ge(i);case 8:return i===W?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof i=="function")return i.displayName||i.name||null;if(typeof i=="string")return i}return null}function Ce(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Re(t){var i=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(i==="checkbox"||i==="radio")}function Fe(t){var i=Re(t)?"checked":"value",s=Object.getOwnPropertyDescriptor(t.constructor.prototype,i),c=""+t[i];if(!t.hasOwnProperty(i)&&typeof s<"u"&&typeof s.get=="function"&&typeof s.set=="function"){var h=s.get,y=s.set;return Object.defineProperty(t,i,{configurable:!0,get:function(){return h.call(this)},set:function(w){c=""+w,y.call(this,w)}}),Object.defineProperty(t,i,{enumerable:s.enumerable}),{getValue:function(){return c},setValue:function(w){c=""+w},stopTracking:function(){t._valueTracker=null,delete t[i]}}}}function It(t){t._valueTracker||(t._valueTracker=Fe(t))}function un(t){if(!t)return!1;var i=t._valueTracker;if(!i)return!0;var s=i.getValue(),c="";return t&&(c=Re(t)?t.checked?"true":"false":t.value),t=c,t!==s?(i.setValue(t),!0):!1}function Ir(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}function Si(t,i){var s=i.checked;return _({},i,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:s??t._wrapperState.initialChecked})}function Ei(t,i){var s=i.defaultValue==null?"":i.defaultValue,c=i.checked!=null?i.checked:i.defaultChecked;s=Ce(i.value!=null?i.value:s),t._wrapperState={initialChecked:c,initialValue:s,controlled:i.type==="checkbox"||i.type==="radio"?i.checked!=null:i.value!=null}}function Ci(t,i){i=i.checked,i!=null&&N(t,"checked",i,!1)}function Rr(t,i){Ci(t,i);var s=Ce(i.value),c=i.type;if(s!=null)c==="number"?(s===0&&t.value===""||t.value!=s)&&(t.value=""+s):t.value!==""+s&&(t.value=""+s);else if(c==="submit"||c==="reset"){t.removeAttribute("value");return}i.hasOwnProperty("value")?Nr(t,i.type,s):i.hasOwnProperty("defaultValue")&&Nr(t,i.type,Ce(i.defaultValue)),i.checked==null&&i.defaultChecked!=null&&(t.defaultChecked=!!i.defaultChecked)}function jo(t,i,s){if(i.hasOwnProperty("value")||i.hasOwnProperty("defaultValue")){var c=i.type;if(!(c!=="submit"&&c!=="reset"||i.value!==void 0&&i.value!==null))return;i=""+t._wrapperState.initialValue,s||i===t.value||(t.value=i),t.defaultValue=i}s=t.name,s!==""&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,s!==""&&(t.name=s)}function Nr(t,i,s){(i!=="number"||Ir(t.ownerDocument)!==t)&&(s==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+s&&(t.defaultValue=""+s))}var Tn=Array.isArray;function Pn(t,i,s,c){if(t=t.options,i){i={};for(var h=0;h<s.length;h++)i["$"+s[h]]=!0;for(s=0;s<t.length;s++)h=i.hasOwnProperty("$"+t[s].value),t[s].selected!==h&&(t[s].selected=h),h&&c&&(t[s].defaultSelected=!0)}else{for(s=""+Ce(s),i=null,h=0;h<t.length;h++){if(t[h].value===s){t[h].selected=!0,c&&(t[h].defaultSelected=!0);return}i!==null||t[h].disabled||(i=t[h])}i!==null&&(i.selected=!0)}}function bi(t,i){if(i.dangerouslySetInnerHTML!=null)throw Error(r(91));return _({},i,{value:void 0,defaultValue:void 0,children:""+t._wrapperState.initialValue})}function Oo(t,i){var s=i.value;if(s==null){if(s=i.children,i=i.defaultValue,s!=null){if(i!=null)throw Error(r(92));if(Tn(s)){if(1<s.length)throw Error(r(93));s=s[0]}i=s}i==null&&(i=""),s=i}t._wrapperState={initialValue:Ce(s)}}function Lo(t,i){var s=Ce(i.value),c=Ce(i.defaultValue);s!=null&&(s=""+s,s!==t.value&&(t.value=s),i.defaultValue==null&&t.defaultValue!==s&&(t.defaultValue=s)),c!=null&&(t.defaultValue=""+c)}function Do(t){var i=t.textContent;i===t._wrapperState.initialValue&&i!==""&&i!==null&&(t.value=i)}function U(t){switch(t){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function ee(t,i){return t==null||t==="http://www.w3.org/1999/xhtml"?U(i):t==="http://www.w3.org/2000/svg"&&i==="foreignObject"?"http://www.w3.org/1999/xhtml":t}var ke,Te=(function(t){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(i,s,c,h){MSApp.execUnsafeLocalFunction(function(){return t(i,s,c,h)})}:t})(function(t,i){if(t.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in t)t.innerHTML=i;else{for(ke=ke||document.createElement("div"),ke.innerHTML="<svg>"+i.valueOf().toString()+"</svg>",i=ke.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;i.firstChild;)t.appendChild(i.firstChild)}});function Ae(t,i){if(i){var s=t.firstChild;if(s&&s===t.lastChild&&s.nodeType===3){s.nodeValue=i;return}}t.textContent=i}var ot={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},cn=["Webkit","ms","Moz","O"];Object.keys(ot).forEach(function(t){cn.forEach(function(i){i=i+t.charAt(0).toUpperCase()+t.substring(1),ot[i]=ot[t]})});function zt(t,i,s){return i==null||typeof i=="boolean"||i===""?"":s||typeof i!="number"||i===0||ot.hasOwnProperty(t)&&ot[t]?(""+i).trim():i+"px"}function In(t,i){t=t.style;for(var s in i)if(i.hasOwnProperty(s)){var c=s.indexOf("--")===0,h=zt(s,i[s],c);s==="float"&&(s="cssFloat"),c?t.setProperty(s,h):t[s]=h}}var lr=_({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function lt(t,i){if(i){if(lr[t]&&(i.children!=null||i.dangerouslySetInnerHTML!=null))throw Error(r(137,t));if(i.dangerouslySetInnerHTML!=null){if(i.children!=null)throw Error(r(60));if(typeof i.dangerouslySetInnerHTML!="object"||!("__html"in i.dangerouslySetInnerHTML))throw Error(r(61))}if(i.style!=null&&typeof i.style!="object")throw Error(r(62))}}function Zt(t,i){if(t.indexOf("-")===-1)return typeof i.is=="string";switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Rt=null;function Fs(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Bs=null,Ar=null,jr=null;function Lf(t){if(t=Gi(t)){if(typeof Bs!="function")throw Error(r(280));var i=t.stateNode;i&&(i=ol(i),Bs(t.stateNode,t.type,i))}}function Df(t){Ar?jr?jr.push(t):jr=[t]:Ar=t}function zf(){if(Ar){var t=Ar,i=jr;if(jr=Ar=null,Lf(t),i)for(t=0;t<i.length;t++)Lf(i[t])}}function Mf(t,i){return t(i)}function Ff(){}var $s=!1;function Bf(t,i,s){if($s)return t(i,s);$s=!0;try{return Mf(t,i,s)}finally{$s=!1,(Ar!==null||jr!==null)&&(Ff(),zf())}}function _i(t,i){var s=t.stateNode;if(s===null)return null;var c=ol(s);if(c===null)return null;s=c[i];e:switch(i){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(c=!c.disabled)||(t=t.type,c=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!c;break e;default:t=!1}if(t)return null;if(s&&typeof s!="function")throw Error(r(231,i,typeof s));return s}var Us=!1;if(f)try{var Ti={};Object.defineProperty(Ti,"passive",{get:function(){Us=!0}}),window.addEventListener("test",Ti,Ti),window.removeEventListener("test",Ti,Ti)}catch{Us=!1}function bx(t,i,s,c,h,y,w,P,R){var F=Array.prototype.slice.call(arguments,3);try{i.apply(s,F)}catch(K){this.onError(K)}}var Pi=!1,zo=null,Mo=!1,Vs=null,_x={onError:function(t){Pi=!0,zo=t}};function Tx(t,i,s,c,h,y,w,P,R){Pi=!1,zo=null,bx.apply(_x,arguments)}function Px(t,i,s,c,h,y,w,P,R){if(Tx.apply(this,arguments),Pi){if(Pi){var F=zo;Pi=!1,zo=null}else throw Error(r(198));Mo||(Mo=!0,Vs=F)}}function sr(t){var i=t,s=t;if(t.alternate)for(;i.return;)i=i.return;else{t=i;do i=t,(i.flags&4098)!==0&&(s=i.return),t=i.return;while(t)}return i.tag===3?s:null}function $f(t){if(t.tag===13){var i=t.memoizedState;if(i===null&&(t=t.alternate,t!==null&&(i=t.memoizedState)),i!==null)return i.dehydrated}return null}function Uf(t){if(sr(t)!==t)throw Error(r(188))}function Ix(t){var i=t.alternate;if(!i){if(i=sr(t),i===null)throw Error(r(188));return i!==t?null:t}for(var s=t,c=i;;){var h=s.return;if(h===null)break;var y=h.alternate;if(y===null){if(c=h.return,c!==null){s=c;continue}break}if(h.child===y.child){for(y=h.child;y;){if(y===s)return Uf(h),t;if(y===c)return Uf(h),i;y=y.sibling}throw Error(r(188))}if(s.return!==c.return)s=h,c=y;else{for(var w=!1,P=h.child;P;){if(P===s){w=!0,s=h,c=y;break}if(P===c){w=!0,c=h,s=y;break}P=P.sibling}if(!w){for(P=y.child;P;){if(P===s){w=!0,s=y,c=h;break}if(P===c){w=!0,c=y,s=h;break}P=P.sibling}if(!w)throw Error(r(189))}}if(s.alternate!==c)throw Error(r(190))}if(s.tag!==3)throw Error(r(188));return s.stateNode.current===s?t:i}function Vf(t){return t=Ix(t),t!==null?Wf(t):null}function Wf(t){if(t.tag===5||t.tag===6)return t;for(t=t.child;t!==null;){var i=Wf(t);if(i!==null)return i;t=t.sibling}return null}var Hf=n.unstable_scheduleCallback,qf=n.unstable_cancelCallback,Rx=n.unstable_shouldYield,Nx=n.unstable_requestPaint,Ge=n.unstable_now,Ax=n.unstable_getCurrentPriorityLevel,Ws=n.unstable_ImmediatePriority,Gf=n.unstable_UserBlockingPriority,Fo=n.unstable_NormalPriority,jx=n.unstable_LowPriority,Kf=n.unstable_IdlePriority,Bo=null,en=null;function Ox(t){if(en&&typeof en.onCommitFiberRoot=="function")try{en.onCommitFiberRoot(Bo,t,void 0,(t.current.flags&128)===128)}catch{}}var Ht=Math.clz32?Math.clz32:zx,Lx=Math.log,Dx=Math.LN2;function zx(t){return t>>>=0,t===0?32:31-(Lx(t)/Dx|0)|0}var $o=64,Uo=4194304;function Ii(t){switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64: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&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return t&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return t}}function Vo(t,i){var s=t.pendingLanes;if(s===0)return 0;var c=0,h=t.suspendedLanes,y=t.pingedLanes,w=s&268435455;if(w!==0){var P=w&~h;P!==0?c=Ii(P):(y&=w,y!==0&&(c=Ii(y)))}else w=s&~h,w!==0?c=Ii(w):y!==0&&(c=Ii(y));if(c===0)return 0;if(i!==0&&i!==c&&(i&h)===0&&(h=c&-c,y=i&-i,h>=y||h===16&&(y&4194240)!==0))return i;if((c&4)!==0&&(c|=s&16),i=t.entangledLanes,i!==0)for(t=t.entanglements,i&=c;0<i;)s=31-Ht(i),h=1<<s,c|=t[s],i&=~h;return c}function Mx(t,i){switch(t){case 1:case 2:case 4:return i+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return i+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Fx(t,i){for(var s=t.suspendedLanes,c=t.pingedLanes,h=t.expirationTimes,y=t.pendingLanes;0<y;){var w=31-Ht(y),P=1<<w,R=h[w];R===-1?((P&s)===0||(P&c)!==0)&&(h[w]=Mx(P,i)):R<=i&&(t.expiredLanes|=P),y&=~P}}function Hs(t){return t=t.pendingLanes&-1073741825,t!==0?t:t&1073741824?1073741824:0}function Yf(){var t=$o;return $o<<=1,($o&4194240)===0&&($o=64),t}function qs(t){for(var i=[],s=0;31>s;s++)i.push(t);return i}function Ri(t,i,s){t.pendingLanes|=i,i!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,i=31-Ht(i),t[i]=s}function Bx(t,i){var s=t.pendingLanes&~i;t.pendingLanes=i,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=i,t.mutableReadLanes&=i,t.entangledLanes&=i,i=t.entanglements;var c=t.eventTimes;for(t=t.expirationTimes;0<s;){var h=31-Ht(s),y=1<<h;i[h]=0,c[h]=-1,t[h]=-1,s&=~y}}function Gs(t,i){var s=t.entangledLanes|=i;for(t=t.entanglements;s;){var c=31-Ht(s),h=1<<c;h&i|t[c]&i&&(t[c]|=i),s&=~h}}var Le=0;function Qf(t){return t&=-t,1<t?4<t?(t&268435455)!==0?16:536870912:4:1}var Xf,Ks,Jf,Zf,ed,Ys=!1,Wo=[],Rn=null,Nn=null,An=null,Ni=new Map,Ai=new Map,jn=[],$x="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function td(t,i){switch(t){case"focusin":case"focusout":Rn=null;break;case"dragenter":case"dragleave":Nn=null;break;case"mouseover":case"mouseout":An=null;break;case"pointerover":case"pointerout":Ni.delete(i.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ai.delete(i.pointerId)}}function ji(t,i,s,c,h,y){return t===null||t.nativeEvent!==y?(t={blockedOn:i,domEventName:s,eventSystemFlags:c,nativeEvent:y,targetContainers:[h]},i!==null&&(i=Gi(i),i!==null&&Ks(i)),t):(t.eventSystemFlags|=c,i=t.targetContainers,h!==null&&i.indexOf(h)===-1&&i.push(h),t)}function Ux(t,i,s,c,h){switch(i){case"focusin":return Rn=ji(Rn,t,i,s,c,h),!0;case"dragenter":return Nn=ji(Nn,t,i,s,c,h),!0;case"mouseover":return An=ji(An,t,i,s,c,h),!0;case"pointerover":var y=h.pointerId;return Ni.set(y,ji(Ni.get(y)||null,t,i,s,c,h)),!0;case"gotpointercapture":return y=h.pointerId,Ai.set(y,ji(Ai.get(y)||null,t,i,s,c,h)),!0}return!1}function nd(t){var i=ar(t.target);if(i!==null){var s=sr(i);if(s!==null){if(i=s.tag,i===13){if(i=$f(s),i!==null){t.blockedOn=i,ed(t.priority,function(){Jf(s)});return}}else if(i===3&&s.stateNode.current.memoizedState.isDehydrated){t.blockedOn=s.tag===3?s.stateNode.containerInfo:null;return}}}t.blockedOn=null}function Ho(t){if(t.blockedOn!==null)return!1;for(var i=t.targetContainers;0<i.length;){var s=Xs(t.domEventName,t.eventSystemFlags,i[0],t.nativeEvent);if(s===null){s=t.nativeEvent;var c=new s.constructor(s.type,s);Rt=c,s.target.dispatchEvent(c),Rt=null}else return i=Gi(s),i!==null&&Ks(i),t.blockedOn=s,!1;i.shift()}return!0}function rd(t,i,s){Ho(t)&&s.delete(i)}function Vx(){Ys=!1,Rn!==null&&Ho(Rn)&&(Rn=null),Nn!==null&&Ho(Nn)&&(Nn=null),An!==null&&Ho(An)&&(An=null),Ni.forEach(rd),Ai.forEach(rd)}function Oi(t,i){t.blockedOn===i&&(t.blockedOn=null,Ys||(Ys=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,Vx)))}function Li(t){function i(h){return Oi(h,t)}if(0<Wo.length){Oi(Wo[0],t);for(var s=1;s<Wo.length;s++){var c=Wo[s];c.blockedOn===t&&(c.blockedOn=null)}}for(Rn!==null&&Oi(Rn,t),Nn!==null&&Oi(Nn,t),An!==null&&Oi(An,t),Ni.forEach(i),Ai.forEach(i),s=0;s<jn.length;s++)c=jn[s],c.blockedOn===t&&(c.blockedOn=null);for(;0<jn.length&&(s=jn[0],s.blockedOn===null);)nd(s),s.blockedOn===null&&jn.shift()}var Or=$.ReactCurrentBatchConfig,qo=!0;function Wx(t,i,s,c){var h=Le,y=Or.transition;Or.transition=null;try{Le=1,Qs(t,i,s,c)}finally{Le=h,Or.transition=y}}function Hx(t,i,s,c){var h=Le,y=Or.transition;Or.transition=null;try{Le=4,Qs(t,i,s,c)}finally{Le=h,Or.transition=y}}function Qs(t,i,s,c){if(qo){var h=Xs(t,i,s,c);if(h===null)ha(t,i,c,Go,s),td(t,c);else if(Ux(h,t,i,s,c))c.stopPropagation();else if(td(t,c),i&4&&-1<$x.indexOf(t)){for(;h!==null;){var y=Gi(h);if(y!==null&&Xf(y),y=Xs(t,i,s,c),y===null&&ha(t,i,c,Go,s),y===h)break;h=y}h!==null&&c.stopPropagation()}else ha(t,i,c,null,s)}}var Go=null;function Xs(t,i,s,c){if(Go=null,t=Fs(c),t=ar(t),t!==null)if(i=sr(t),i===null)t=null;else if(s=i.tag,s===13){if(t=$f(i),t!==null)return t;t=null}else if(s===3){if(i.stateNode.current.memoizedState.isDehydrated)return i.tag===3?i.stateNode.containerInfo:null;t=null}else i!==t&&(t=null);return Go=t,null}function id(t){switch(t){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Ax()){case Ws:return 1;case Gf:return 4;case Fo:case jx:return 16;case Kf:return 536870912;default:return 16}default:return 16}}var On=null,Js=null,Ko=null;function od(){if(Ko)return Ko;var t,i=Js,s=i.length,c,h="value"in On?On.value:On.textContent,y=h.length;for(t=0;t<s&&i[t]===h[t];t++);var w=s-t;for(c=1;c<=w&&i[s-c]===h[y-c];c++);return Ko=h.slice(t,1<c?1-c:void 0)}function Yo(t){var i=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&i===13&&(t=13)):t=i,t===10&&(t=13),32<=t||t===13?t:0}function Qo(){return!0}function ld(){return!1}function Nt(t){function i(s,c,h,y,w){this._reactName=s,this._targetInst=h,this.type=c,this.nativeEvent=y,this.target=w,this.currentTarget=null;for(var P in t)t.hasOwnProperty(P)&&(s=t[P],this[P]=s?s(y):y[P]);return this.isDefaultPrevented=(y.defaultPrevented!=null?y.defaultPrevented:y.returnValue===!1)?Qo:ld,this.isPropagationStopped=ld,this}return _(i.prototype,{preventDefault:function(){this.defaultPrevented=!0;var s=this.nativeEvent;s&&(s.preventDefault?s.preventDefault():typeof s.returnValue!="unknown"&&(s.returnValue=!1),this.isDefaultPrevented=Qo)},stopPropagation:function(){var s=this.nativeEvent;s&&(s.stopPropagation?s.stopPropagation():typeof s.cancelBubble!="unknown"&&(s.cancelBubble=!0),this.isPropagationStopped=Qo)},persist:function(){},isPersistent:Qo}),i}var Lr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Zs=Nt(Lr),Di=_({},Lr,{view:0,detail:0}),qx=Nt(Di),ea,ta,zi,Xo=_({},Di,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ra,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==zi&&(zi&&t.type==="mousemove"?(ea=t.screenX-zi.screenX,ta=t.screenY-zi.screenY):ta=ea=0,zi=t),ea)},movementY:function(t){return"movementY"in t?t.movementY:ta}}),sd=Nt(Xo),Gx=_({},Xo,{dataTransfer:0}),Kx=Nt(Gx),Yx=_({},Di,{relatedTarget:0}),na=Nt(Yx),Qx=_({},Lr,{animationName:0,elapsedTime:0,pseudoElement:0}),Xx=Nt(Qx),Jx=_({},Lr,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),Zx=Nt(Jx),ew=_({},Lr,{data:0}),ad=Nt(ew),tw={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},nw={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"},rw={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function iw(t){var i=this.nativeEvent;return i.getModifierState?i.getModifierState(t):(t=rw[t])?!!i[t]:!1}function ra(){return iw}var ow=_({},Di,{key:function(t){if(t.key){var i=tw[t.key]||t.key;if(i!=="Unidentified")return i}return t.type==="keypress"?(t=Yo(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?nw[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ra,charCode:function(t){return t.type==="keypress"?Yo(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Yo(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),lw=Nt(ow),sw=_({},Xo,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ud=Nt(sw),aw=_({},Di,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ra}),uw=Nt(aw),cw=_({},Lr,{propertyName:0,elapsedTime:0,pseudoElement:0}),fw=Nt(cw),dw=_({},Xo,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),pw=Nt(dw),hw=[9,13,27,32],ia=f&&"CompositionEvent"in window,Mi=null;f&&"documentMode"in document&&(Mi=document.documentMode);var mw=f&&"TextEvent"in window&&!Mi,cd=f&&(!ia||Mi&&8<Mi&&11>=Mi),fd=" ",dd=!1;function pd(t,i){switch(t){case"keyup":return hw.indexOf(i.keyCode)!==-1;case"keydown":return i.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function hd(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Dr=!1;function gw(t,i){switch(t){case"compositionend":return hd(i);case"keypress":return i.which!==32?null:(dd=!0,fd);case"textInput":return t=i.data,t===fd&&dd?null:t;default:return null}}function yw(t,i){if(Dr)return t==="compositionend"||!ia&&pd(t,i)?(t=od(),Ko=Js=On=null,Dr=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(i.ctrlKey||i.altKey||i.metaKey)||i.ctrlKey&&i.altKey){if(i.char&&1<i.char.length)return i.char;if(i.which)return String.fromCharCode(i.which)}return null;case"compositionend":return cd&&i.locale!=="ko"?null:i.data;default:return null}}var vw={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 md(t){var i=t&&t.nodeName&&t.nodeName.toLowerCase();return i==="input"?!!vw[t.type]:i==="textarea"}function gd(t,i,s,c){Df(c),i=nl(i,"onChange"),0<i.length&&(s=new Zs("onChange","change",null,s,c),t.push({event:s,listeners:i}))}var Fi=null,Bi=null;function xw(t){Od(t,0)}function Jo(t){var i=$r(t);if(un(i))return t}function ww(t,i){if(t==="change")return i}var yd=!1;if(f){var oa;if(f){var la="oninput"in document;if(!la){var vd=document.createElement("div");vd.setAttribute("oninput","return;"),la=typeof vd.oninput=="function"}oa=la}else oa=!1;yd=oa&&(!document.documentMode||9<document.documentMode)}function xd(){Fi&&(Fi.detachEvent("onpropertychange",wd),Bi=Fi=null)}function wd(t){if(t.propertyName==="value"&&Jo(Bi)){var i=[];gd(i,Bi,t,Fs(t)),Bf(xw,i)}}function kw(t,i,s){t==="focusin"?(xd(),Fi=i,Bi=s,Fi.attachEvent("onpropertychange",wd)):t==="focusout"&&xd()}function Sw(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Jo(Bi)}function Ew(t,i){if(t==="click")return Jo(i)}function Cw(t,i){if(t==="input"||t==="change")return Jo(i)}function bw(t,i){return t===i&&(t!==0||1/t===1/i)||t!==t&&i!==i}var qt=typeof Object.is=="function"?Object.is:bw;function $i(t,i){if(qt(t,i))return!0;if(typeof t!="object"||t===null||typeof i!="object"||i===null)return!1;var s=Object.keys(t),c=Object.keys(i);if(s.length!==c.length)return!1;for(c=0;c<s.length;c++){var h=s[c];if(!d.call(i,h)||!qt(t[h],i[h]))return!1}return!0}function kd(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Sd(t,i){var s=kd(t);t=0;for(var c;s;){if(s.nodeType===3){if(c=t+s.textContent.length,t<=i&&c>=i)return{node:s,offset:i-t};t=c}e:{for(;s;){if(s.nextSibling){s=s.nextSibling;break e}s=s.parentNode}s=void 0}s=kd(s)}}function Ed(t,i){return t&&i?t===i?!0:t&&t.nodeType===3?!1:i&&i.nodeType===3?Ed(t,i.parentNode):"contains"in t?t.contains(i):t.compareDocumentPosition?!!(t.compareDocumentPosition(i)&16):!1:!1}function Cd(){for(var t=window,i=Ir();i instanceof t.HTMLIFrameElement;){try{var s=typeof i.contentWindow.location.href=="string"}catch{s=!1}if(s)t=i.contentWindow;else break;i=Ir(t.document)}return i}function sa(t){var i=t&&t.nodeName&&t.nodeName.toLowerCase();return i&&(i==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||i==="textarea"||t.contentEditable==="true")}function _w(t){var i=Cd(),s=t.focusedElem,c=t.selectionRange;if(i!==s&&s&&s.ownerDocument&&Ed(s.ownerDocument.documentElement,s)){if(c!==null&&sa(s)){if(i=c.start,t=c.end,t===void 0&&(t=i),"selectionStart"in s)s.selectionStart=i,s.selectionEnd=Math.min(t,s.value.length);else if(t=(i=s.ownerDocument||document)&&i.defaultView||window,t.getSelection){t=t.getSelection();var h=s.textContent.length,y=Math.min(c.start,h);c=c.end===void 0?y:Math.min(c.end,h),!t.extend&&y>c&&(h=c,c=y,y=h),h=Sd(s,y);var w=Sd(s,c);h&&w&&(t.rangeCount!==1||t.anchorNode!==h.node||t.anchorOffset!==h.offset||t.focusNode!==w.node||t.focusOffset!==w.offset)&&(i=i.createRange(),i.setStart(h.node,h.offset),t.removeAllRanges(),y>c?(t.addRange(i),t.extend(w.node,w.offset)):(i.setEnd(w.node,w.offset),t.addRange(i)))}}for(i=[],t=s;t=t.parentNode;)t.nodeType===1&&i.push({element:t,left:t.scrollLeft,top:t.scrollTop});for(typeof s.focus=="function"&&s.focus(),s=0;s<i.length;s++)t=i[s],t.element.scrollLeft=t.left,t.element.scrollTop=t.top}}var Tw=f&&"documentMode"in document&&11>=document.documentMode,zr=null,aa=null,Ui=null,ua=!1;function bd(t,i,s){var c=s.window===s?s.document:s.nodeType===9?s:s.ownerDocument;ua||zr==null||zr!==Ir(c)||(c=zr,"selectionStart"in c&&sa(c)?c={start:c.selectionStart,end:c.selectionEnd}:(c=(c.ownerDocument&&c.ownerDocument.defaultView||window).getSelection(),c={anchorNode:c.anchorNode,anchorOffset:c.anchorOffset,focusNode:c.focusNode,focusOffset:c.focusOffset}),Ui&&$i(Ui,c)||(Ui=c,c=nl(aa,"onSelect"),0<c.length&&(i=new Zs("onSelect","select",null,i,s),t.push({event:i,listeners:c}),i.target=zr)))}function Zo(t,i){var s={};return s[t.toLowerCase()]=i.toLowerCase(),s["Webkit"+t]="webkit"+i,s["Moz"+t]="moz"+i,s}var Mr={animationend:Zo("Animation","AnimationEnd"),animationiteration:Zo("Animation","AnimationIteration"),animationstart:Zo("Animation","AnimationStart"),transitionend:Zo("Transition","TransitionEnd")},ca={},_d={};f&&(_d=document.createElement("div").style,"AnimationEvent"in window||(delete Mr.animationend.animation,delete Mr.animationiteration.animation,delete Mr.animationstart.animation),"TransitionEvent"in window||delete Mr.transitionend.transition);function el(t){if(ca[t])return ca[t];if(!Mr[t])return t;var i=Mr[t],s;for(s in i)if(i.hasOwnProperty(s)&&s in _d)return ca[t]=i[s];return t}var Td=el("animationend"),Pd=el("animationiteration"),Id=el("animationstart"),Rd=el("transitionend"),Nd=new Map,Ad="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Ln(t,i){Nd.set(t,i),a(i,[t])}for(var fa=0;fa<Ad.length;fa++){var da=Ad[fa],Pw=da.toLowerCase(),Iw=da[0].toUpperCase()+da.slice(1);Ln(Pw,"on"+Iw)}Ln(Td,"onAnimationEnd"),Ln(Pd,"onAnimationIteration"),Ln(Id,"onAnimationStart"),Ln("dblclick","onDoubleClick"),Ln("focusin","onFocus"),Ln("focusout","onBlur"),Ln(Rd,"onTransitionEnd"),u("onMouseEnter",["mouseout","mouseover"]),u("onMouseLeave",["mouseout","mouseover"]),u("onPointerEnter",["pointerout","pointerover"]),u("onPointerLeave",["pointerout","pointerover"]),a("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),a("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),a("onBeforeInput",["compositionend","keypress","textInput","paste"]),a("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),a("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),a("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Vi="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(" "),Rw=new Set("cancel close invalid load scroll toggle".split(" ").concat(Vi));function jd(t,i,s){var c=t.type||"unknown-event";t.currentTarget=s,Px(c,i,void 0,t),t.currentTarget=null}function Od(t,i){i=(i&4)!==0;for(var s=0;s<t.length;s++){var c=t[s],h=c.event;c=c.listeners;e:{var y=void 0;if(i)for(var w=c.length-1;0<=w;w--){var P=c[w],R=P.instance,F=P.currentTarget;if(P=P.listener,R!==y&&h.isPropagationStopped())break e;jd(h,P,F),y=R}else for(w=0;w<c.length;w++){if(P=c[w],R=P.instance,F=P.currentTarget,P=P.listener,R!==y&&h.isPropagationStopped())break e;jd(h,P,F),y=R}}}if(Mo)throw t=Vs,Mo=!1,Vs=null,t}function Be(t,i){var s=i[wa];s===void 0&&(s=i[wa]=new Set);var c=t+"__bubble";s.has(c)||(Ld(i,t,2,!1),s.add(c))}function pa(t,i,s){var c=0;i&&(c|=4),Ld(s,t,c,i)}var tl="_reactListening"+Math.random().toString(36).slice(2);function Wi(t){if(!t[tl]){t[tl]=!0,o.forEach(function(s){s!=="selectionchange"&&(Rw.has(s)||pa(s,!1,t),pa(s,!0,t))});var i=t.nodeType===9?t:t.ownerDocument;i===null||i[tl]||(i[tl]=!0,pa("selectionchange",!1,i))}}function Ld(t,i,s,c){switch(id(i)){case 1:var h=Wx;break;case 4:h=Hx;break;default:h=Qs}s=h.bind(null,i,s,t),h=void 0,!Us||i!=="touchstart"&&i!=="touchmove"&&i!=="wheel"||(h=!0),c?h!==void 0?t.addEventListener(i,s,{capture:!0,passive:h}):t.addEventListener(i,s,!0):h!==void 0?t.addEventListener(i,s,{passive:h}):t.addEventListener(i,s,!1)}function ha(t,i,s,c,h){var y=c;if((i&1)===0&&(i&2)===0&&c!==null)e:for(;;){if(c===null)return;var w=c.tag;if(w===3||w===4){var P=c.stateNode.containerInfo;if(P===h||P.nodeType===8&&P.parentNode===h)break;if(w===4)for(w=c.return;w!==null;){var R=w.tag;if((R===3||R===4)&&(R=w.stateNode.containerInfo,R===h||R.nodeType===8&&R.parentNode===h))return;w=w.return}for(;P!==null;){if(w=ar(P),w===null)return;if(R=w.tag,R===5||R===6){c=y=w;continue e}P=P.parentNode}}c=c.return}Bf(function(){var F=y,K=Fs(s),X=[];e:{var G=Nd.get(t);if(G!==void 0){var ie=Zs,ae=t;switch(t){case"keypress":if(Yo(s)===0)break e;case"keydown":case"keyup":ie=lw;break;case"focusin":ae="focus",ie=na;break;case"focusout":ae="blur",ie=na;break;case"beforeblur":case"afterblur":ie=na;break;case"click":if(s.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ie=sd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ie=Kx;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ie=uw;break;case Td:case Pd:case Id:ie=Xx;break;case Rd:ie=fw;break;case"scroll":ie=qx;break;case"wheel":ie=pw;break;case"copy":case"cut":case"paste":ie=Zx;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ie=ud}var de=(i&4)!==0,Ke=!de&&t==="scroll",D=de?G!==null?G+"Capture":null:G;de=[];for(var A=F,M;A!==null;){M=A;var Z=M.stateNode;if(M.tag===5&&Z!==null&&(M=Z,D!==null&&(Z=_i(A,D),Z!=null&&de.push(Hi(A,Z,M)))),Ke)break;A=A.return}0<de.length&&(G=new ie(G,ae,null,s,K),X.push({event:G,listeners:de}))}}if((i&7)===0){e:{if(G=t==="mouseover"||t==="pointerover",ie=t==="mouseout"||t==="pointerout",G&&s!==Rt&&(ae=s.relatedTarget||s.fromElement)&&(ar(ae)||ae[fn]))break e;if((ie||G)&&(G=K.window===K?K:(G=K.ownerDocument)?G.defaultView||G.parentWindow:window,ie?(ae=s.relatedTarget||s.toElement,ie=F,ae=ae?ar(ae):null,ae!==null&&(Ke=sr(ae),ae!==Ke||ae.tag!==5&&ae.tag!==6)&&(ae=null)):(ie=null,ae=F),ie!==ae)){if(de=sd,Z="onMouseLeave",D="onMouseEnter",A="mouse",(t==="pointerout"||t==="pointerover")&&(de=ud,Z="onPointerLeave",D="onPointerEnter",A="pointer"),Ke=ie==null?G:$r(ie),M=ae==null?G:$r(ae),G=new de(Z,A+"leave",ie,s,K),G.target=Ke,G.relatedTarget=M,Z=null,ar(K)===F&&(de=new de(D,A+"enter",ae,s,K),de.target=M,de.relatedTarget=Ke,Z=de),Ke=Z,ie&&ae)t:{for(de=ie,D=ae,A=0,M=de;M;M=Fr(M))A++;for(M=0,Z=D;Z;Z=Fr(Z))M++;for(;0<A-M;)de=Fr(de),A--;for(;0<M-A;)D=Fr(D),M--;for(;A--;){if(de===D||D!==null&&de===D.alternate)break t;de=Fr(de),D=Fr(D)}de=null}else de=null;ie!==null&&Dd(X,G,ie,de,!1),ae!==null&&Ke!==null&&Dd(X,Ke,ae,de,!0)}}e:{if(G=F?$r(F):window,ie=G.nodeName&&G.nodeName.toLowerCase(),ie==="select"||ie==="input"&&G.type==="file")var pe=ww;else if(md(G))if(yd)pe=Cw;else{pe=Sw;var ye=kw}else(ie=G.nodeName)&&ie.toLowerCase()==="input"&&(G.type==="checkbox"||G.type==="radio")&&(pe=Ew);if(pe&&(pe=pe(t,F))){gd(X,pe,s,K);break e}ye&&ye(t,G,F),t==="focusout"&&(ye=G._wrapperState)&&ye.controlled&&G.type==="number"&&Nr(G,"number",G.value)}switch(ye=F?$r(F):window,t){case"focusin":(md(ye)||ye.contentEditable==="true")&&(zr=ye,aa=F,Ui=null);break;case"focusout":Ui=aa=zr=null;break;case"mousedown":ua=!0;break;case"contextmenu":case"mouseup":case"dragend":ua=!1,bd(X,s,K);break;case"selectionchange":if(Tw)break;case"keydown":case"keyup":bd(X,s,K)}var ve;if(ia)e:{switch(t){case"compositionstart":var Se="onCompositionStart";break e;case"compositionend":Se="onCompositionEnd";break e;case"compositionupdate":Se="onCompositionUpdate";break e}Se=void 0}else Dr?pd(t,s)&&(Se="onCompositionEnd"):t==="keydown"&&s.keyCode===229&&(Se="onCompositionStart");Se&&(cd&&s.locale!=="ko"&&(Dr||Se!=="onCompositionStart"?Se==="onCompositionEnd"&&Dr&&(ve=od()):(On=K,Js="value"in On?On.value:On.textContent,Dr=!0)),ye=nl(F,Se),0<ye.length&&(Se=new ad(Se,t,null,s,K),X.push({event:Se,listeners:ye}),ve?Se.data=ve:(ve=hd(s),ve!==null&&(Se.data=ve)))),(ve=mw?gw(t,s):yw(t,s))&&(F=nl(F,"onBeforeInput"),0<F.length&&(K=new ad("onBeforeInput","beforeinput",null,s,K),X.push({event:K,listeners:F}),K.data=ve))}Od(X,i)})}function Hi(t,i,s){return{instance:t,listener:i,currentTarget:s}}function nl(t,i){for(var s=i+"Capture",c=[];t!==null;){var h=t,y=h.stateNode;h.tag===5&&y!==null&&(h=y,y=_i(t,s),y!=null&&c.unshift(Hi(t,y,h)),y=_i(t,i),y!=null&&c.push(Hi(t,y,h))),t=t.return}return c}function Fr(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5);return t||null}function Dd(t,i,s,c,h){for(var y=i._reactName,w=[];s!==null&&s!==c;){var P=s,R=P.alternate,F=P.stateNode;if(R!==null&&R===c)break;P.tag===5&&F!==null&&(P=F,h?(R=_i(s,y),R!=null&&w.unshift(Hi(s,R,P))):h||(R=_i(s,y),R!=null&&w.push(Hi(s,R,P)))),s=s.return}w.length!==0&&t.push({event:i,listeners:w})}var Nw=/\r\n?/g,Aw=/\u0000|\uFFFD/g;function zd(t){return(typeof t=="string"?t:""+t).replace(Nw,`
38
+ `).replace(Aw,"")}function rl(t,i,s){if(i=zd(i),zd(t)!==i&&s)throw Error(r(425))}function il(){}var ma=null,ga=null;function ya(t,i){return t==="textarea"||t==="noscript"||typeof i.children=="string"||typeof i.children=="number"||typeof i.dangerouslySetInnerHTML=="object"&&i.dangerouslySetInnerHTML!==null&&i.dangerouslySetInnerHTML.__html!=null}var va=typeof setTimeout=="function"?setTimeout:void 0,jw=typeof clearTimeout=="function"?clearTimeout:void 0,Md=typeof Promise=="function"?Promise:void 0,Ow=typeof queueMicrotask=="function"?queueMicrotask:typeof Md<"u"?function(t){return Md.resolve(null).then(t).catch(Lw)}:va;function Lw(t){setTimeout(function(){throw t})}function xa(t,i){var s=i,c=0;do{var h=s.nextSibling;if(t.removeChild(s),h&&h.nodeType===8)if(s=h.data,s==="/$"){if(c===0){t.removeChild(h),Li(i);return}c--}else s!=="$"&&s!=="$?"&&s!=="$!"||c++;s=h}while(s);Li(i)}function Dn(t){for(;t!=null;t=t.nextSibling){var i=t.nodeType;if(i===1||i===3)break;if(i===8){if(i=t.data,i==="$"||i==="$!"||i==="$?")break;if(i==="/$")return null}}return t}function Fd(t){t=t.previousSibling;for(var i=0;t;){if(t.nodeType===8){var s=t.data;if(s==="$"||s==="$!"||s==="$?"){if(i===0)return t;i--}else s==="/$"&&i++}t=t.previousSibling}return null}var Br=Math.random().toString(36).slice(2),tn="__reactFiber$"+Br,qi="__reactProps$"+Br,fn="__reactContainer$"+Br,wa="__reactEvents$"+Br,Dw="__reactListeners$"+Br,zw="__reactHandles$"+Br;function ar(t){var i=t[tn];if(i)return i;for(var s=t.parentNode;s;){if(i=s[fn]||s[tn]){if(s=i.alternate,i.child!==null||s!==null&&s.child!==null)for(t=Fd(t);t!==null;){if(s=t[tn])return s;t=Fd(t)}return i}t=s,s=t.parentNode}return null}function Gi(t){return t=t[tn]||t[fn],!t||t.tag!==5&&t.tag!==6&&t.tag!==13&&t.tag!==3?null:t}function $r(t){if(t.tag===5||t.tag===6)return t.stateNode;throw Error(r(33))}function ol(t){return t[qi]||null}var ka=[],Ur=-1;function zn(t){return{current:t}}function $e(t){0>Ur||(t.current=ka[Ur],ka[Ur]=null,Ur--)}function ze(t,i){Ur++,ka[Ur]=t.current,t.current=i}var Mn={},ct=zn(Mn),wt=zn(!1),ur=Mn;function Vr(t,i){var s=t.type.contextTypes;if(!s)return Mn;var c=t.stateNode;if(c&&c.__reactInternalMemoizedUnmaskedChildContext===i)return c.__reactInternalMemoizedMaskedChildContext;var h={},y;for(y in s)h[y]=i[y];return c&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=i,t.__reactInternalMemoizedMaskedChildContext=h),h}function kt(t){return t=t.childContextTypes,t!=null}function ll(){$e(wt),$e(ct)}function Bd(t,i,s){if(ct.current!==Mn)throw Error(r(168));ze(ct,i),ze(wt,s)}function $d(t,i,s){var c=t.stateNode;if(i=i.childContextTypes,typeof c.getChildContext!="function")return s;c=c.getChildContext();for(var h in c)if(!(h in i))throw Error(r(108,we(t)||"Unknown",h));return _({},s,c)}function sl(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||Mn,ur=ct.current,ze(ct,t),ze(wt,wt.current),!0}function Ud(t,i,s){var c=t.stateNode;if(!c)throw Error(r(169));s?(t=$d(t,i,ur),c.__reactInternalMemoizedMergedChildContext=t,$e(wt),$e(ct),ze(ct,t)):$e(wt),ze(wt,s)}var dn=null,al=!1,Sa=!1;function Vd(t){dn===null?dn=[t]:dn.push(t)}function Mw(t){al=!0,Vd(t)}function Fn(){if(!Sa&&dn!==null){Sa=!0;var t=0,i=Le;try{var s=dn;for(Le=1;t<s.length;t++){var c=s[t];do c=c(!0);while(c!==null)}dn=null,al=!1}catch(h){throw dn!==null&&(dn=dn.slice(t+1)),Hf(Ws,Fn),h}finally{Le=i,Sa=!1}}return null}var Wr=[],Hr=0,ul=null,cl=0,Mt=[],Ft=0,cr=null,pn=1,hn="";function fr(t,i){Wr[Hr++]=cl,Wr[Hr++]=ul,ul=t,cl=i}function Wd(t,i,s){Mt[Ft++]=pn,Mt[Ft++]=hn,Mt[Ft++]=cr,cr=t;var c=pn;t=hn;var h=32-Ht(c)-1;c&=~(1<<h),s+=1;var y=32-Ht(i)+h;if(30<y){var w=h-h%5;y=(c&(1<<w)-1).toString(32),c>>=w,h-=w,pn=1<<32-Ht(i)+h|s<<h|c,hn=y+t}else pn=1<<y|s<<h|c,hn=t}function Ea(t){t.return!==null&&(fr(t,1),Wd(t,1,0))}function Ca(t){for(;t===ul;)ul=Wr[--Hr],Wr[Hr]=null,cl=Wr[--Hr],Wr[Hr]=null;for(;t===cr;)cr=Mt[--Ft],Mt[Ft]=null,hn=Mt[--Ft],Mt[Ft]=null,pn=Mt[--Ft],Mt[Ft]=null}var At=null,jt=null,Ue=!1,Gt=null;function Hd(t,i){var s=Vt(5,null,null,0);s.elementType="DELETED",s.stateNode=i,s.return=t,i=t.deletions,i===null?(t.deletions=[s],t.flags|=16):i.push(s)}function qd(t,i){switch(t.tag){case 5:var s=t.type;return i=i.nodeType!==1||s.toLowerCase()!==i.nodeName.toLowerCase()?null:i,i!==null?(t.stateNode=i,At=t,jt=Dn(i.firstChild),!0):!1;case 6:return i=t.pendingProps===""||i.nodeType!==3?null:i,i!==null?(t.stateNode=i,At=t,jt=null,!0):!1;case 13:return i=i.nodeType!==8?null:i,i!==null?(s=cr!==null?{id:pn,overflow:hn}:null,t.memoizedState={dehydrated:i,treeContext:s,retryLane:1073741824},s=Vt(18,null,null,0),s.stateNode=i,s.return=t,t.child=s,At=t,jt=null,!0):!1;default:return!1}}function ba(t){return(t.mode&1)!==0&&(t.flags&128)===0}function _a(t){if(Ue){var i=jt;if(i){var s=i;if(!qd(t,i)){if(ba(t))throw Error(r(418));i=Dn(s.nextSibling);var c=At;i&&qd(t,i)?Hd(c,s):(t.flags=t.flags&-4097|2,Ue=!1,At=t)}}else{if(ba(t))throw Error(r(418));t.flags=t.flags&-4097|2,Ue=!1,At=t}}}function Gd(t){for(t=t.return;t!==null&&t.tag!==5&&t.tag!==3&&t.tag!==13;)t=t.return;At=t}function fl(t){if(t!==At)return!1;if(!Ue)return Gd(t),Ue=!0,!1;var i;if((i=t.tag!==3)&&!(i=t.tag!==5)&&(i=t.type,i=i!=="head"&&i!=="body"&&!ya(t.type,t.memoizedProps)),i&&(i=jt)){if(ba(t))throw Kd(),Error(r(418));for(;i;)Hd(t,i),i=Dn(i.nextSibling)}if(Gd(t),t.tag===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(317));e:{for(t=t.nextSibling,i=0;t;){if(t.nodeType===8){var s=t.data;if(s==="/$"){if(i===0){jt=Dn(t.nextSibling);break e}i--}else s!=="$"&&s!=="$!"&&s!=="$?"||i++}t=t.nextSibling}jt=null}}else jt=At?Dn(t.stateNode.nextSibling):null;return!0}function Kd(){for(var t=jt;t;)t=Dn(t.nextSibling)}function qr(){jt=At=null,Ue=!1}function Ta(t){Gt===null?Gt=[t]:Gt.push(t)}var Fw=$.ReactCurrentBatchConfig;function Ki(t,i,s){if(t=s.ref,t!==null&&typeof t!="function"&&typeof t!="object"){if(s._owner){if(s=s._owner,s){if(s.tag!==1)throw Error(r(309));var c=s.stateNode}if(!c)throw Error(r(147,t));var h=c,y=""+t;return i!==null&&i.ref!==null&&typeof i.ref=="function"&&i.ref._stringRef===y?i.ref:(i=function(w){var P=h.refs;w===null?delete P[y]:P[y]=w},i._stringRef=y,i)}if(typeof t!="string")throw Error(r(284));if(!s._owner)throw Error(r(290,t))}return t}function dl(t,i){throw t=Object.prototype.toString.call(i),Error(r(31,t==="[object Object]"?"object with keys {"+Object.keys(i).join(", ")+"}":t))}function Yd(t){var i=t._init;return i(t._payload)}function Qd(t){function i(D,A){if(t){var M=D.deletions;M===null?(D.deletions=[A],D.flags|=16):M.push(A)}}function s(D,A){if(!t)return null;for(;A!==null;)i(D,A),A=A.sibling;return null}function c(D,A){for(D=new Map;A!==null;)A.key!==null?D.set(A.key,A):D.set(A.index,A),A=A.sibling;return D}function h(D,A){return D=Gn(D,A),D.index=0,D.sibling=null,D}function y(D,A,M){return D.index=M,t?(M=D.alternate,M!==null?(M=M.index,M<A?(D.flags|=2,A):M):(D.flags|=2,A)):(D.flags|=1048576,A)}function w(D){return t&&D.alternate===null&&(D.flags|=2),D}function P(D,A,M,Z){return A===null||A.tag!==6?(A=vu(M,D.mode,Z),A.return=D,A):(A=h(A,M),A.return=D,A)}function R(D,A,M,Z){var pe=M.type;return pe===Q?K(D,A,M.props.children,Z,M.key):A!==null&&(A.elementType===pe||typeof pe=="object"&&pe!==null&&pe.$$typeof===re&&Yd(pe)===A.type)?(Z=h(A,M.props),Z.ref=Ki(D,A,M),Z.return=D,Z):(Z=Dl(M.type,M.key,M.props,null,D.mode,Z),Z.ref=Ki(D,A,M),Z.return=D,Z)}function F(D,A,M,Z){return A===null||A.tag!==4||A.stateNode.containerInfo!==M.containerInfo||A.stateNode.implementation!==M.implementation?(A=xu(M,D.mode,Z),A.return=D,A):(A=h(A,M.children||[]),A.return=D,A)}function K(D,A,M,Z,pe){return A===null||A.tag!==7?(A=xr(M,D.mode,Z,pe),A.return=D,A):(A=h(A,M),A.return=D,A)}function X(D,A,M){if(typeof A=="string"&&A!==""||typeof A=="number")return A=vu(""+A,D.mode,M),A.return=D,A;if(typeof A=="object"&&A!==null){switch(A.$$typeof){case Y:return M=Dl(A.type,A.key,A.props,null,D.mode,M),M.ref=Ki(D,null,A),M.return=D,M;case L:return A=xu(A,D.mode,M),A.return=D,A;case re:var Z=A._init;return X(D,Z(A._payload),M)}if(Tn(A)||oe(A))return A=xr(A,D.mode,M,null),A.return=D,A;dl(D,A)}return null}function G(D,A,M,Z){var pe=A!==null?A.key:null;if(typeof M=="string"&&M!==""||typeof M=="number")return pe!==null?null:P(D,A,""+M,Z);if(typeof M=="object"&&M!==null){switch(M.$$typeof){case Y:return M.key===pe?R(D,A,M,Z):null;case L:return M.key===pe?F(D,A,M,Z):null;case re:return pe=M._init,G(D,A,pe(M._payload),Z)}if(Tn(M)||oe(M))return pe!==null?null:K(D,A,M,Z,null);dl(D,M)}return null}function ie(D,A,M,Z,pe){if(typeof Z=="string"&&Z!==""||typeof Z=="number")return D=D.get(M)||null,P(A,D,""+Z,pe);if(typeof Z=="object"&&Z!==null){switch(Z.$$typeof){case Y:return D=D.get(Z.key===null?M:Z.key)||null,R(A,D,Z,pe);case L:return D=D.get(Z.key===null?M:Z.key)||null,F(A,D,Z,pe);case re:var ye=Z._init;return ie(D,A,M,ye(Z._payload),pe)}if(Tn(Z)||oe(Z))return D=D.get(M)||null,K(A,D,Z,pe,null);dl(A,Z)}return null}function ae(D,A,M,Z){for(var pe=null,ye=null,ve=A,Se=A=0,it=null;ve!==null&&Se<M.length;Se++){ve.index>Se?(it=ve,ve=null):it=ve.sibling;var Oe=G(D,ve,M[Se],Z);if(Oe===null){ve===null&&(ve=it);break}t&&ve&&Oe.alternate===null&&i(D,ve),A=y(Oe,A,Se),ye===null?pe=Oe:ye.sibling=Oe,ye=Oe,ve=it}if(Se===M.length)return s(D,ve),Ue&&fr(D,Se),pe;if(ve===null){for(;Se<M.length;Se++)ve=X(D,M[Se],Z),ve!==null&&(A=y(ve,A,Se),ye===null?pe=ve:ye.sibling=ve,ye=ve);return Ue&&fr(D,Se),pe}for(ve=c(D,ve);Se<M.length;Se++)it=ie(ve,D,Se,M[Se],Z),it!==null&&(t&&it.alternate!==null&&ve.delete(it.key===null?Se:it.key),A=y(it,A,Se),ye===null?pe=it:ye.sibling=it,ye=it);return t&&ve.forEach(function(Kn){return i(D,Kn)}),Ue&&fr(D,Se),pe}function de(D,A,M,Z){var pe=oe(M);if(typeof pe!="function")throw Error(r(150));if(M=pe.call(M),M==null)throw Error(r(151));for(var ye=pe=null,ve=A,Se=A=0,it=null,Oe=M.next();ve!==null&&!Oe.done;Se++,Oe=M.next()){ve.index>Se?(it=ve,ve=null):it=ve.sibling;var Kn=G(D,ve,Oe.value,Z);if(Kn===null){ve===null&&(ve=it);break}t&&ve&&Kn.alternate===null&&i(D,ve),A=y(Kn,A,Se),ye===null?pe=Kn:ye.sibling=Kn,ye=Kn,ve=it}if(Oe.done)return s(D,ve),Ue&&fr(D,Se),pe;if(ve===null){for(;!Oe.done;Se++,Oe=M.next())Oe=X(D,Oe.value,Z),Oe!==null&&(A=y(Oe,A,Se),ye===null?pe=Oe:ye.sibling=Oe,ye=Oe);return Ue&&fr(D,Se),pe}for(ve=c(D,ve);!Oe.done;Se++,Oe=M.next())Oe=ie(ve,D,Se,Oe.value,Z),Oe!==null&&(t&&Oe.alternate!==null&&ve.delete(Oe.key===null?Se:Oe.key),A=y(Oe,A,Se),ye===null?pe=Oe:ye.sibling=Oe,ye=Oe);return t&&ve.forEach(function(vk){return i(D,vk)}),Ue&&fr(D,Se),pe}function Ke(D,A,M,Z){if(typeof M=="object"&&M!==null&&M.type===Q&&M.key===null&&(M=M.props.children),typeof M=="object"&&M!==null){switch(M.$$typeof){case Y:e:{for(var pe=M.key,ye=A;ye!==null;){if(ye.key===pe){if(pe=M.type,pe===Q){if(ye.tag===7){s(D,ye.sibling),A=h(ye,M.props.children),A.return=D,D=A;break e}}else if(ye.elementType===pe||typeof pe=="object"&&pe!==null&&pe.$$typeof===re&&Yd(pe)===ye.type){s(D,ye.sibling),A=h(ye,M.props),A.ref=Ki(D,ye,M),A.return=D,D=A;break e}s(D,ye);break}else i(D,ye);ye=ye.sibling}M.type===Q?(A=xr(M.props.children,D.mode,Z,M.key),A.return=D,D=A):(Z=Dl(M.type,M.key,M.props,null,D.mode,Z),Z.ref=Ki(D,A,M),Z.return=D,D=Z)}return w(D);case L:e:{for(ye=M.key;A!==null;){if(A.key===ye)if(A.tag===4&&A.stateNode.containerInfo===M.containerInfo&&A.stateNode.implementation===M.implementation){s(D,A.sibling),A=h(A,M.children||[]),A.return=D,D=A;break e}else{s(D,A);break}else i(D,A);A=A.sibling}A=xu(M,D.mode,Z),A.return=D,D=A}return w(D);case re:return ye=M._init,Ke(D,A,ye(M._payload),Z)}if(Tn(M))return ae(D,A,M,Z);if(oe(M))return de(D,A,M,Z);dl(D,M)}return typeof M=="string"&&M!==""||typeof M=="number"?(M=""+M,A!==null&&A.tag===6?(s(D,A.sibling),A=h(A,M),A.return=D,D=A):(s(D,A),A=vu(M,D.mode,Z),A.return=D,D=A),w(D)):s(D,A)}return Ke}var Gr=Qd(!0),Xd=Qd(!1),pl=zn(null),hl=null,Kr=null,Pa=null;function Ia(){Pa=Kr=hl=null}function Ra(t){var i=pl.current;$e(pl),t._currentValue=i}function Na(t,i,s){for(;t!==null;){var c=t.alternate;if((t.childLanes&i)!==i?(t.childLanes|=i,c!==null&&(c.childLanes|=i)):c!==null&&(c.childLanes&i)!==i&&(c.childLanes|=i),t===s)break;t=t.return}}function Yr(t,i){hl=t,Pa=Kr=null,t=t.dependencies,t!==null&&t.firstContext!==null&&((t.lanes&i)!==0&&(St=!0),t.firstContext=null)}function Bt(t){var i=t._currentValue;if(Pa!==t)if(t={context:t,memoizedValue:i,next:null},Kr===null){if(hl===null)throw Error(r(308));Kr=t,hl.dependencies={lanes:0,firstContext:t}}else Kr=Kr.next=t;return i}var dr=null;function Aa(t){dr===null?dr=[t]:dr.push(t)}function Jd(t,i,s,c){var h=i.interleaved;return h===null?(s.next=s,Aa(i)):(s.next=h.next,h.next=s),i.interleaved=s,mn(t,c)}function mn(t,i){t.lanes|=i;var s=t.alternate;for(s!==null&&(s.lanes|=i),s=t,t=t.return;t!==null;)t.childLanes|=i,s=t.alternate,s!==null&&(s.childLanes|=i),s=t,t=t.return;return s.tag===3?s.stateNode:null}var Bn=!1;function ja(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Zd(t,i){t=t.updateQueue,i.updateQueue===t&&(i.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,effects:t.effects})}function gn(t,i){return{eventTime:t,lane:i,tag:0,payload:null,callback:null,next:null}}function $n(t,i,s){var c=t.updateQueue;if(c===null)return null;if(c=c.shared,(je&2)!==0){var h=c.pending;return h===null?i.next=i:(i.next=h.next,h.next=i),c.pending=i,mn(t,s)}return h=c.interleaved,h===null?(i.next=i,Aa(c)):(i.next=h.next,h.next=i),c.interleaved=i,mn(t,s)}function ml(t,i,s){if(i=i.updateQueue,i!==null&&(i=i.shared,(s&4194240)!==0)){var c=i.lanes;c&=t.pendingLanes,s|=c,i.lanes=s,Gs(t,s)}}function ep(t,i){var s=t.updateQueue,c=t.alternate;if(c!==null&&(c=c.updateQueue,s===c)){var h=null,y=null;if(s=s.firstBaseUpdate,s!==null){do{var w={eventTime:s.eventTime,lane:s.lane,tag:s.tag,payload:s.payload,callback:s.callback,next:null};y===null?h=y=w:y=y.next=w,s=s.next}while(s!==null);y===null?h=y=i:y=y.next=i}else h=y=i;s={baseState:c.baseState,firstBaseUpdate:h,lastBaseUpdate:y,shared:c.shared,effects:c.effects},t.updateQueue=s;return}t=s.lastBaseUpdate,t===null?s.firstBaseUpdate=i:t.next=i,s.lastBaseUpdate=i}function gl(t,i,s,c){var h=t.updateQueue;Bn=!1;var y=h.firstBaseUpdate,w=h.lastBaseUpdate,P=h.shared.pending;if(P!==null){h.shared.pending=null;var R=P,F=R.next;R.next=null,w===null?y=F:w.next=F,w=R;var K=t.alternate;K!==null&&(K=K.updateQueue,P=K.lastBaseUpdate,P!==w&&(P===null?K.firstBaseUpdate=F:P.next=F,K.lastBaseUpdate=R))}if(y!==null){var X=h.baseState;w=0,K=F=R=null,P=y;do{var G=P.lane,ie=P.eventTime;if((c&G)===G){K!==null&&(K=K.next={eventTime:ie,lane:0,tag:P.tag,payload:P.payload,callback:P.callback,next:null});e:{var ae=t,de=P;switch(G=i,ie=s,de.tag){case 1:if(ae=de.payload,typeof ae=="function"){X=ae.call(ie,X,G);break e}X=ae;break e;case 3:ae.flags=ae.flags&-65537|128;case 0:if(ae=de.payload,G=typeof ae=="function"?ae.call(ie,X,G):ae,G==null)break e;X=_({},X,G);break e;case 2:Bn=!0}}P.callback!==null&&P.lane!==0&&(t.flags|=64,G=h.effects,G===null?h.effects=[P]:G.push(P))}else ie={eventTime:ie,lane:G,tag:P.tag,payload:P.payload,callback:P.callback,next:null},K===null?(F=K=ie,R=X):K=K.next=ie,w|=G;if(P=P.next,P===null){if(P=h.shared.pending,P===null)break;G=P,P=G.next,G.next=null,h.lastBaseUpdate=G,h.shared.pending=null}}while(!0);if(K===null&&(R=X),h.baseState=R,h.firstBaseUpdate=F,h.lastBaseUpdate=K,i=h.shared.interleaved,i!==null){h=i;do w|=h.lane,h=h.next;while(h!==i)}else y===null&&(h.shared.lanes=0);mr|=w,t.lanes=w,t.memoizedState=X}}function tp(t,i,s){if(t=i.effects,i.effects=null,t!==null)for(i=0;i<t.length;i++){var c=t[i],h=c.callback;if(h!==null){if(c.callback=null,c=s,typeof h!="function")throw Error(r(191,h));h.call(c)}}}var Yi={},nn=zn(Yi),Qi=zn(Yi),Xi=zn(Yi);function pr(t){if(t===Yi)throw Error(r(174));return t}function Oa(t,i){switch(ze(Xi,i),ze(Qi,t),ze(nn,Yi),t=i.nodeType,t){case 9:case 11:i=(i=i.documentElement)?i.namespaceURI:ee(null,"");break;default:t=t===8?i.parentNode:i,i=t.namespaceURI||null,t=t.tagName,i=ee(i,t)}$e(nn),ze(nn,i)}function Qr(){$e(nn),$e(Qi),$e(Xi)}function np(t){pr(Xi.current);var i=pr(nn.current),s=ee(i,t.type);i!==s&&(ze(Qi,t),ze(nn,s))}function La(t){Qi.current===t&&($e(nn),$e(Qi))}var Ve=zn(0);function yl(t){for(var i=t;i!==null;){if(i.tag===13){var s=i.memoizedState;if(s!==null&&(s=s.dehydrated,s===null||s.data==="$?"||s.data==="$!"))return i}else if(i.tag===19&&i.memoizedProps.revealOrder!==void 0){if((i.flags&128)!==0)return i}else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===t)break;for(;i.sibling===null;){if(i.return===null||i.return===t)return null;i=i.return}i.sibling.return=i.return,i=i.sibling}return null}var Da=[];function za(){for(var t=0;t<Da.length;t++)Da[t]._workInProgressVersionPrimary=null;Da.length=0}var vl=$.ReactCurrentDispatcher,Ma=$.ReactCurrentBatchConfig,hr=0,We=null,Je=null,nt=null,xl=!1,Ji=!1,Zi=0,Bw=0;function ft(){throw Error(r(321))}function Fa(t,i){if(i===null)return!1;for(var s=0;s<i.length&&s<t.length;s++)if(!qt(t[s],i[s]))return!1;return!0}function Ba(t,i,s,c,h,y){if(hr=y,We=i,i.memoizedState=null,i.updateQueue=null,i.lanes=0,vl.current=t===null||t.memoizedState===null?Ww:Hw,t=s(c,h),Ji){y=0;do{if(Ji=!1,Zi=0,25<=y)throw Error(r(301));y+=1,nt=Je=null,i.updateQueue=null,vl.current=qw,t=s(c,h)}while(Ji)}if(vl.current=Sl,i=Je!==null&&Je.next!==null,hr=0,nt=Je=We=null,xl=!1,i)throw Error(r(300));return t}function $a(){var t=Zi!==0;return Zi=0,t}function rn(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return nt===null?We.memoizedState=nt=t:nt=nt.next=t,nt}function $t(){if(Je===null){var t=We.alternate;t=t!==null?t.memoizedState:null}else t=Je.next;var i=nt===null?We.memoizedState:nt.next;if(i!==null)nt=i,Je=t;else{if(t===null)throw Error(r(310));Je=t,t={memoizedState:Je.memoizedState,baseState:Je.baseState,baseQueue:Je.baseQueue,queue:Je.queue,next:null},nt===null?We.memoizedState=nt=t:nt=nt.next=t}return nt}function eo(t,i){return typeof i=="function"?i(t):i}function Ua(t){var i=$t(),s=i.queue;if(s===null)throw Error(r(311));s.lastRenderedReducer=t;var c=Je,h=c.baseQueue,y=s.pending;if(y!==null){if(h!==null){var w=h.next;h.next=y.next,y.next=w}c.baseQueue=h=y,s.pending=null}if(h!==null){y=h.next,c=c.baseState;var P=w=null,R=null,F=y;do{var K=F.lane;if((hr&K)===K)R!==null&&(R=R.next={lane:0,action:F.action,hasEagerState:F.hasEagerState,eagerState:F.eagerState,next:null}),c=F.hasEagerState?F.eagerState:t(c,F.action);else{var X={lane:K,action:F.action,hasEagerState:F.hasEagerState,eagerState:F.eagerState,next:null};R===null?(P=R=X,w=c):R=R.next=X,We.lanes|=K,mr|=K}F=F.next}while(F!==null&&F!==y);R===null?w=c:R.next=P,qt(c,i.memoizedState)||(St=!0),i.memoizedState=c,i.baseState=w,i.baseQueue=R,s.lastRenderedState=c}if(t=s.interleaved,t!==null){h=t;do y=h.lane,We.lanes|=y,mr|=y,h=h.next;while(h!==t)}else h===null&&(s.lanes=0);return[i.memoizedState,s.dispatch]}function Va(t){var i=$t(),s=i.queue;if(s===null)throw Error(r(311));s.lastRenderedReducer=t;var c=s.dispatch,h=s.pending,y=i.memoizedState;if(h!==null){s.pending=null;var w=h=h.next;do y=t(y,w.action),w=w.next;while(w!==h);qt(y,i.memoizedState)||(St=!0),i.memoizedState=y,i.baseQueue===null&&(i.baseState=y),s.lastRenderedState=y}return[y,c]}function rp(){}function ip(t,i){var s=We,c=$t(),h=i(),y=!qt(c.memoizedState,h);if(y&&(c.memoizedState=h,St=!0),c=c.queue,Wa(sp.bind(null,s,c,t),[t]),c.getSnapshot!==i||y||nt!==null&&nt.memoizedState.tag&1){if(s.flags|=2048,to(9,lp.bind(null,s,c,h,i),void 0,null),rt===null)throw Error(r(349));(hr&30)!==0||op(s,i,h)}return h}function op(t,i,s){t.flags|=16384,t={getSnapshot:i,value:s},i=We.updateQueue,i===null?(i={lastEffect:null,stores:null},We.updateQueue=i,i.stores=[t]):(s=i.stores,s===null?i.stores=[t]:s.push(t))}function lp(t,i,s,c){i.value=s,i.getSnapshot=c,ap(i)&&up(t)}function sp(t,i,s){return s(function(){ap(i)&&up(t)})}function ap(t){var i=t.getSnapshot;t=t.value;try{var s=i();return!qt(t,s)}catch{return!0}}function up(t){var i=mn(t,1);i!==null&&Xt(i,t,1,-1)}function cp(t){var i=rn();return typeof t=="function"&&(t=t()),i.memoizedState=i.baseState=t,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:eo,lastRenderedState:t},i.queue=t,t=t.dispatch=Vw.bind(null,We,t),[i.memoizedState,t]}function to(t,i,s,c){return t={tag:t,create:i,destroy:s,deps:c,next:null},i=We.updateQueue,i===null?(i={lastEffect:null,stores:null},We.updateQueue=i,i.lastEffect=t.next=t):(s=i.lastEffect,s===null?i.lastEffect=t.next=t:(c=s.next,s.next=t,t.next=c,i.lastEffect=t)),t}function fp(){return $t().memoizedState}function wl(t,i,s,c){var h=rn();We.flags|=t,h.memoizedState=to(1|i,s,void 0,c===void 0?null:c)}function kl(t,i,s,c){var h=$t();c=c===void 0?null:c;var y=void 0;if(Je!==null){var w=Je.memoizedState;if(y=w.destroy,c!==null&&Fa(c,w.deps)){h.memoizedState=to(i,s,y,c);return}}We.flags|=t,h.memoizedState=to(1|i,s,y,c)}function dp(t,i){return wl(8390656,8,t,i)}function Wa(t,i){return kl(2048,8,t,i)}function pp(t,i){return kl(4,2,t,i)}function hp(t,i){return kl(4,4,t,i)}function mp(t,i){if(typeof i=="function")return t=t(),i(t),function(){i(null)};if(i!=null)return t=t(),i.current=t,function(){i.current=null}}function gp(t,i,s){return s=s!=null?s.concat([t]):null,kl(4,4,mp.bind(null,i,t),s)}function Ha(){}function yp(t,i){var s=$t();i=i===void 0?null:i;var c=s.memoizedState;return c!==null&&i!==null&&Fa(i,c[1])?c[0]:(s.memoizedState=[t,i],t)}function vp(t,i){var s=$t();i=i===void 0?null:i;var c=s.memoizedState;return c!==null&&i!==null&&Fa(i,c[1])?c[0]:(t=t(),s.memoizedState=[t,i],t)}function xp(t,i,s){return(hr&21)===0?(t.baseState&&(t.baseState=!1,St=!0),t.memoizedState=s):(qt(s,i)||(s=Yf(),We.lanes|=s,mr|=s,t.baseState=!0),i)}function $w(t,i){var s=Le;Le=s!==0&&4>s?s:4,t(!0);var c=Ma.transition;Ma.transition={};try{t(!1),i()}finally{Le=s,Ma.transition=c}}function wp(){return $t().memoizedState}function Uw(t,i,s){var c=Hn(t);if(s={lane:c,action:s,hasEagerState:!1,eagerState:null,next:null},kp(t))Sp(i,s);else if(s=Jd(t,i,s,c),s!==null){var h=vt();Xt(s,t,c,h),Ep(s,i,c)}}function Vw(t,i,s){var c=Hn(t),h={lane:c,action:s,hasEagerState:!1,eagerState:null,next:null};if(kp(t))Sp(i,h);else{var y=t.alternate;if(t.lanes===0&&(y===null||y.lanes===0)&&(y=i.lastRenderedReducer,y!==null))try{var w=i.lastRenderedState,P=y(w,s);if(h.hasEagerState=!0,h.eagerState=P,qt(P,w)){var R=i.interleaved;R===null?(h.next=h,Aa(i)):(h.next=R.next,R.next=h),i.interleaved=h;return}}catch{}finally{}s=Jd(t,i,h,c),s!==null&&(h=vt(),Xt(s,t,c,h),Ep(s,i,c))}}function kp(t){var i=t.alternate;return t===We||i!==null&&i===We}function Sp(t,i){Ji=xl=!0;var s=t.pending;s===null?i.next=i:(i.next=s.next,s.next=i),t.pending=i}function Ep(t,i,s){if((s&4194240)!==0){var c=i.lanes;c&=t.pendingLanes,s|=c,i.lanes=s,Gs(t,s)}}var Sl={readContext:Bt,useCallback:ft,useContext:ft,useEffect:ft,useImperativeHandle:ft,useInsertionEffect:ft,useLayoutEffect:ft,useMemo:ft,useReducer:ft,useRef:ft,useState:ft,useDebugValue:ft,useDeferredValue:ft,useTransition:ft,useMutableSource:ft,useSyncExternalStore:ft,useId:ft,unstable_isNewReconciler:!1},Ww={readContext:Bt,useCallback:function(t,i){return rn().memoizedState=[t,i===void 0?null:i],t},useContext:Bt,useEffect:dp,useImperativeHandle:function(t,i,s){return s=s!=null?s.concat([t]):null,wl(4194308,4,mp.bind(null,i,t),s)},useLayoutEffect:function(t,i){return wl(4194308,4,t,i)},useInsertionEffect:function(t,i){return wl(4,2,t,i)},useMemo:function(t,i){var s=rn();return i=i===void 0?null:i,t=t(),s.memoizedState=[t,i],t},useReducer:function(t,i,s){var c=rn();return i=s!==void 0?s(i):i,c.memoizedState=c.baseState=i,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:i},c.queue=t,t=t.dispatch=Uw.bind(null,We,t),[c.memoizedState,t]},useRef:function(t){var i=rn();return t={current:t},i.memoizedState=t},useState:cp,useDebugValue:Ha,useDeferredValue:function(t){return rn().memoizedState=t},useTransition:function(){var t=cp(!1),i=t[0];return t=$w.bind(null,t[1]),rn().memoizedState=t,[i,t]},useMutableSource:function(){},useSyncExternalStore:function(t,i,s){var c=We,h=rn();if(Ue){if(s===void 0)throw Error(r(407));s=s()}else{if(s=i(),rt===null)throw Error(r(349));(hr&30)!==0||op(c,i,s)}h.memoizedState=s;var y={value:s,getSnapshot:i};return h.queue=y,dp(sp.bind(null,c,y,t),[t]),c.flags|=2048,to(9,lp.bind(null,c,y,s,i),void 0,null),s},useId:function(){var t=rn(),i=rt.identifierPrefix;if(Ue){var s=hn,c=pn;s=(c&~(1<<32-Ht(c)-1)).toString(32)+s,i=":"+i+"R"+s,s=Zi++,0<s&&(i+="H"+s.toString(32)),i+=":"}else s=Bw++,i=":"+i+"r"+s.toString(32)+":";return t.memoizedState=i},unstable_isNewReconciler:!1},Hw={readContext:Bt,useCallback:yp,useContext:Bt,useEffect:Wa,useImperativeHandle:gp,useInsertionEffect:pp,useLayoutEffect:hp,useMemo:vp,useReducer:Ua,useRef:fp,useState:function(){return Ua(eo)},useDebugValue:Ha,useDeferredValue:function(t){var i=$t();return xp(i,Je.memoizedState,t)},useTransition:function(){var t=Ua(eo)[0],i=$t().memoizedState;return[t,i]},useMutableSource:rp,useSyncExternalStore:ip,useId:wp,unstable_isNewReconciler:!1},qw={readContext:Bt,useCallback:yp,useContext:Bt,useEffect:Wa,useImperativeHandle:gp,useInsertionEffect:pp,useLayoutEffect:hp,useMemo:vp,useReducer:Va,useRef:fp,useState:function(){return Va(eo)},useDebugValue:Ha,useDeferredValue:function(t){var i=$t();return Je===null?i.memoizedState=t:xp(i,Je.memoizedState,t)},useTransition:function(){var t=Va(eo)[0],i=$t().memoizedState;return[t,i]},useMutableSource:rp,useSyncExternalStore:ip,useId:wp,unstable_isNewReconciler:!1};function Kt(t,i){if(t&&t.defaultProps){i=_({},i),t=t.defaultProps;for(var s in t)i[s]===void 0&&(i[s]=t[s]);return i}return i}function qa(t,i,s,c){i=t.memoizedState,s=s(c,i),s=s==null?i:_({},i,s),t.memoizedState=s,t.lanes===0&&(t.updateQueue.baseState=s)}var El={isMounted:function(t){return(t=t._reactInternals)?sr(t)===t:!1},enqueueSetState:function(t,i,s){t=t._reactInternals;var c=vt(),h=Hn(t),y=gn(c,h);y.payload=i,s!=null&&(y.callback=s),i=$n(t,y,h),i!==null&&(Xt(i,t,h,c),ml(i,t,h))},enqueueReplaceState:function(t,i,s){t=t._reactInternals;var c=vt(),h=Hn(t),y=gn(c,h);y.tag=1,y.payload=i,s!=null&&(y.callback=s),i=$n(t,y,h),i!==null&&(Xt(i,t,h,c),ml(i,t,h))},enqueueForceUpdate:function(t,i){t=t._reactInternals;var s=vt(),c=Hn(t),h=gn(s,c);h.tag=2,i!=null&&(h.callback=i),i=$n(t,h,c),i!==null&&(Xt(i,t,c,s),ml(i,t,c))}};function Cp(t,i,s,c,h,y,w){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(c,y,w):i.prototype&&i.prototype.isPureReactComponent?!$i(s,c)||!$i(h,y):!0}function bp(t,i,s){var c=!1,h=Mn,y=i.contextType;return typeof y=="object"&&y!==null?y=Bt(y):(h=kt(i)?ur:ct.current,c=i.contextTypes,y=(c=c!=null)?Vr(t,h):Mn),i=new i(s,y),t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=El,t.stateNode=i,i._reactInternals=t,c&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=h,t.__reactInternalMemoizedMaskedChildContext=y),i}function _p(t,i,s,c){t=i.state,typeof i.componentWillReceiveProps=="function"&&i.componentWillReceiveProps(s,c),typeof i.UNSAFE_componentWillReceiveProps=="function"&&i.UNSAFE_componentWillReceiveProps(s,c),i.state!==t&&El.enqueueReplaceState(i,i.state,null)}function Ga(t,i,s,c){var h=t.stateNode;h.props=s,h.state=t.memoizedState,h.refs={},ja(t);var y=i.contextType;typeof y=="object"&&y!==null?h.context=Bt(y):(y=kt(i)?ur:ct.current,h.context=Vr(t,y)),h.state=t.memoizedState,y=i.getDerivedStateFromProps,typeof y=="function"&&(qa(t,i,y,s),h.state=t.memoizedState),typeof i.getDerivedStateFromProps=="function"||typeof h.getSnapshotBeforeUpdate=="function"||typeof h.UNSAFE_componentWillMount!="function"&&typeof h.componentWillMount!="function"||(i=h.state,typeof h.componentWillMount=="function"&&h.componentWillMount(),typeof h.UNSAFE_componentWillMount=="function"&&h.UNSAFE_componentWillMount(),i!==h.state&&El.enqueueReplaceState(h,h.state,null),gl(t,s,h,c),h.state=t.memoizedState),typeof h.componentDidMount=="function"&&(t.flags|=4194308)}function Xr(t,i){try{var s="",c=i;do s+=Ee(c),c=c.return;while(c);var h=s}catch(y){h=`
39
+ Error generating stack: `+y.message+`
40
+ `+y.stack}return{value:t,source:i,stack:h,digest:null}}function Ka(t,i,s){return{value:t,source:null,stack:s??null,digest:i??null}}function Ya(t,i){try{console.error(i.value)}catch(s){setTimeout(function(){throw s})}}var Gw=typeof WeakMap=="function"?WeakMap:Map;function Tp(t,i,s){s=gn(-1,s),s.tag=3,s.payload={element:null};var c=i.value;return s.callback=function(){Rl||(Rl=!0,cu=c),Ya(t,i)},s}function Pp(t,i,s){s=gn(-1,s),s.tag=3;var c=t.type.getDerivedStateFromError;if(typeof c=="function"){var h=i.value;s.payload=function(){return c(h)},s.callback=function(){Ya(t,i)}}var y=t.stateNode;return y!==null&&typeof y.componentDidCatch=="function"&&(s.callback=function(){Ya(t,i),typeof c!="function"&&(Vn===null?Vn=new Set([this]):Vn.add(this));var w=i.stack;this.componentDidCatch(i.value,{componentStack:w!==null?w:""})}),s}function Ip(t,i,s){var c=t.pingCache;if(c===null){c=t.pingCache=new Gw;var h=new Set;c.set(i,h)}else h=c.get(i),h===void 0&&(h=new Set,c.set(i,h));h.has(s)||(h.add(s),t=sk.bind(null,t,i,s),i.then(t,t))}function Rp(t){do{var i;if((i=t.tag===13)&&(i=t.memoizedState,i=i!==null?i.dehydrated!==null:!0),i)return t;t=t.return}while(t!==null);return null}function Np(t,i,s,c,h){return(t.mode&1)===0?(t===i?t.flags|=65536:(t.flags|=128,s.flags|=131072,s.flags&=-52805,s.tag===1&&(s.alternate===null?s.tag=17:(i=gn(-1,1),i.tag=2,$n(s,i,1))),s.lanes|=1),t):(t.flags|=65536,t.lanes=h,t)}var Kw=$.ReactCurrentOwner,St=!1;function yt(t,i,s,c){i.child=t===null?Xd(i,null,s,c):Gr(i,t.child,s,c)}function Ap(t,i,s,c,h){s=s.render;var y=i.ref;return Yr(i,h),c=Ba(t,i,s,c,y,h),s=$a(),t!==null&&!St?(i.updateQueue=t.updateQueue,i.flags&=-2053,t.lanes&=~h,yn(t,i,h)):(Ue&&s&&Ea(i),i.flags|=1,yt(t,i,c,h),i.child)}function jp(t,i,s,c,h){if(t===null){var y=s.type;return typeof y=="function"&&!yu(y)&&y.defaultProps===void 0&&s.compare===null&&s.defaultProps===void 0?(i.tag=15,i.type=y,Op(t,i,y,c,h)):(t=Dl(s.type,null,c,i,i.mode,h),t.ref=i.ref,t.return=i,i.child=t)}if(y=t.child,(t.lanes&h)===0){var w=y.memoizedProps;if(s=s.compare,s=s!==null?s:$i,s(w,c)&&t.ref===i.ref)return yn(t,i,h)}return i.flags|=1,t=Gn(y,c),t.ref=i.ref,t.return=i,i.child=t}function Op(t,i,s,c,h){if(t!==null){var y=t.memoizedProps;if($i(y,c)&&t.ref===i.ref)if(St=!1,i.pendingProps=c=y,(t.lanes&h)!==0)(t.flags&131072)!==0&&(St=!0);else return i.lanes=t.lanes,yn(t,i,h)}return Qa(t,i,s,c,h)}function Lp(t,i,s){var c=i.pendingProps,h=c.children,y=t!==null?t.memoizedState:null;if(c.mode==="hidden")if((i.mode&1)===0)i.memoizedState={baseLanes:0,cachePool:null,transitions:null},ze(Zr,Ot),Ot|=s;else{if((s&1073741824)===0)return t=y!==null?y.baseLanes|s:s,i.lanes=i.childLanes=1073741824,i.memoizedState={baseLanes:t,cachePool:null,transitions:null},i.updateQueue=null,ze(Zr,Ot),Ot|=t,null;i.memoizedState={baseLanes:0,cachePool:null,transitions:null},c=y!==null?y.baseLanes:s,ze(Zr,Ot),Ot|=c}else y!==null?(c=y.baseLanes|s,i.memoizedState=null):c=s,ze(Zr,Ot),Ot|=c;return yt(t,i,h,s),i.child}function Dp(t,i){var s=i.ref;(t===null&&s!==null||t!==null&&t.ref!==s)&&(i.flags|=512,i.flags|=2097152)}function Qa(t,i,s,c,h){var y=kt(s)?ur:ct.current;return y=Vr(i,y),Yr(i,h),s=Ba(t,i,s,c,y,h),c=$a(),t!==null&&!St?(i.updateQueue=t.updateQueue,i.flags&=-2053,t.lanes&=~h,yn(t,i,h)):(Ue&&c&&Ea(i),i.flags|=1,yt(t,i,s,h),i.child)}function zp(t,i,s,c,h){if(kt(s)){var y=!0;sl(i)}else y=!1;if(Yr(i,h),i.stateNode===null)bl(t,i),bp(i,s,c),Ga(i,s,c,h),c=!0;else if(t===null){var w=i.stateNode,P=i.memoizedProps;w.props=P;var R=w.context,F=s.contextType;typeof F=="object"&&F!==null?F=Bt(F):(F=kt(s)?ur:ct.current,F=Vr(i,F));var K=s.getDerivedStateFromProps,X=typeof K=="function"||typeof w.getSnapshotBeforeUpdate=="function";X||typeof w.UNSAFE_componentWillReceiveProps!="function"&&typeof w.componentWillReceiveProps!="function"||(P!==c||R!==F)&&_p(i,w,c,F),Bn=!1;var G=i.memoizedState;w.state=G,gl(i,c,w,h),R=i.memoizedState,P!==c||G!==R||wt.current||Bn?(typeof K=="function"&&(qa(i,s,K,c),R=i.memoizedState),(P=Bn||Cp(i,s,P,c,G,R,F))?(X||typeof w.UNSAFE_componentWillMount!="function"&&typeof w.componentWillMount!="function"||(typeof w.componentWillMount=="function"&&w.componentWillMount(),typeof w.UNSAFE_componentWillMount=="function"&&w.UNSAFE_componentWillMount()),typeof w.componentDidMount=="function"&&(i.flags|=4194308)):(typeof w.componentDidMount=="function"&&(i.flags|=4194308),i.memoizedProps=c,i.memoizedState=R),w.props=c,w.state=R,w.context=F,c=P):(typeof w.componentDidMount=="function"&&(i.flags|=4194308),c=!1)}else{w=i.stateNode,Zd(t,i),P=i.memoizedProps,F=i.type===i.elementType?P:Kt(i.type,P),w.props=F,X=i.pendingProps,G=w.context,R=s.contextType,typeof R=="object"&&R!==null?R=Bt(R):(R=kt(s)?ur:ct.current,R=Vr(i,R));var ie=s.getDerivedStateFromProps;(K=typeof ie=="function"||typeof w.getSnapshotBeforeUpdate=="function")||typeof w.UNSAFE_componentWillReceiveProps!="function"&&typeof w.componentWillReceiveProps!="function"||(P!==X||G!==R)&&_p(i,w,c,R),Bn=!1,G=i.memoizedState,w.state=G,gl(i,c,w,h);var ae=i.memoizedState;P!==X||G!==ae||wt.current||Bn?(typeof ie=="function"&&(qa(i,s,ie,c),ae=i.memoizedState),(F=Bn||Cp(i,s,F,c,G,ae,R)||!1)?(K||typeof w.UNSAFE_componentWillUpdate!="function"&&typeof w.componentWillUpdate!="function"||(typeof w.componentWillUpdate=="function"&&w.componentWillUpdate(c,ae,R),typeof w.UNSAFE_componentWillUpdate=="function"&&w.UNSAFE_componentWillUpdate(c,ae,R)),typeof w.componentDidUpdate=="function"&&(i.flags|=4),typeof w.getSnapshotBeforeUpdate=="function"&&(i.flags|=1024)):(typeof w.componentDidUpdate!="function"||P===t.memoizedProps&&G===t.memoizedState||(i.flags|=4),typeof w.getSnapshotBeforeUpdate!="function"||P===t.memoizedProps&&G===t.memoizedState||(i.flags|=1024),i.memoizedProps=c,i.memoizedState=ae),w.props=c,w.state=ae,w.context=R,c=F):(typeof w.componentDidUpdate!="function"||P===t.memoizedProps&&G===t.memoizedState||(i.flags|=4),typeof w.getSnapshotBeforeUpdate!="function"||P===t.memoizedProps&&G===t.memoizedState||(i.flags|=1024),c=!1)}return Xa(t,i,s,c,y,h)}function Xa(t,i,s,c,h,y){Dp(t,i);var w=(i.flags&128)!==0;if(!c&&!w)return h&&Ud(i,s,!1),yn(t,i,y);c=i.stateNode,Kw.current=i;var P=w&&typeof s.getDerivedStateFromError!="function"?null:c.render();return i.flags|=1,t!==null&&w?(i.child=Gr(i,t.child,null,y),i.child=Gr(i,null,P,y)):yt(t,i,P,y),i.memoizedState=c.state,h&&Ud(i,s,!0),i.child}function Mp(t){var i=t.stateNode;i.pendingContext?Bd(t,i.pendingContext,i.pendingContext!==i.context):i.context&&Bd(t,i.context,!1),Oa(t,i.containerInfo)}function Fp(t,i,s,c,h){return qr(),Ta(h),i.flags|=256,yt(t,i,s,c),i.child}var Ja={dehydrated:null,treeContext:null,retryLane:0};function Za(t){return{baseLanes:t,cachePool:null,transitions:null}}function Bp(t,i,s){var c=i.pendingProps,h=Ve.current,y=!1,w=(i.flags&128)!==0,P;if((P=w)||(P=t!==null&&t.memoizedState===null?!1:(h&2)!==0),P?(y=!0,i.flags&=-129):(t===null||t.memoizedState!==null)&&(h|=1),ze(Ve,h&1),t===null)return _a(i),t=i.memoizedState,t!==null&&(t=t.dehydrated,t!==null)?((i.mode&1)===0?i.lanes=1:t.data==="$!"?i.lanes=8:i.lanes=1073741824,null):(w=c.children,t=c.fallback,y?(c=i.mode,y=i.child,w={mode:"hidden",children:w},(c&1)===0&&y!==null?(y.childLanes=0,y.pendingProps=w):y=zl(w,c,0,null),t=xr(t,c,s,null),y.return=i,t.return=i,y.sibling=t,i.child=y,i.child.memoizedState=Za(s),i.memoizedState=Ja,t):eu(i,w));if(h=t.memoizedState,h!==null&&(P=h.dehydrated,P!==null))return Yw(t,i,w,c,P,h,s);if(y){y=c.fallback,w=i.mode,h=t.child,P=h.sibling;var R={mode:"hidden",children:c.children};return(w&1)===0&&i.child!==h?(c=i.child,c.childLanes=0,c.pendingProps=R,i.deletions=null):(c=Gn(h,R),c.subtreeFlags=h.subtreeFlags&14680064),P!==null?y=Gn(P,y):(y=xr(y,w,s,null),y.flags|=2),y.return=i,c.return=i,c.sibling=y,i.child=c,c=y,y=i.child,w=t.child.memoizedState,w=w===null?Za(s):{baseLanes:w.baseLanes|s,cachePool:null,transitions:w.transitions},y.memoizedState=w,y.childLanes=t.childLanes&~s,i.memoizedState=Ja,c}return y=t.child,t=y.sibling,c=Gn(y,{mode:"visible",children:c.children}),(i.mode&1)===0&&(c.lanes=s),c.return=i,c.sibling=null,t!==null&&(s=i.deletions,s===null?(i.deletions=[t],i.flags|=16):s.push(t)),i.child=c,i.memoizedState=null,c}function eu(t,i){return i=zl({mode:"visible",children:i},t.mode,0,null),i.return=t,t.child=i}function Cl(t,i,s,c){return c!==null&&Ta(c),Gr(i,t.child,null,s),t=eu(i,i.pendingProps.children),t.flags|=2,i.memoizedState=null,t}function Yw(t,i,s,c,h,y,w){if(s)return i.flags&256?(i.flags&=-257,c=Ka(Error(r(422))),Cl(t,i,w,c)):i.memoizedState!==null?(i.child=t.child,i.flags|=128,null):(y=c.fallback,h=i.mode,c=zl({mode:"visible",children:c.children},h,0,null),y=xr(y,h,w,null),y.flags|=2,c.return=i,y.return=i,c.sibling=y,i.child=c,(i.mode&1)!==0&&Gr(i,t.child,null,w),i.child.memoizedState=Za(w),i.memoizedState=Ja,y);if((i.mode&1)===0)return Cl(t,i,w,null);if(h.data==="$!"){if(c=h.nextSibling&&h.nextSibling.dataset,c)var P=c.dgst;return c=P,y=Error(r(419)),c=Ka(y,c,void 0),Cl(t,i,w,c)}if(P=(w&t.childLanes)!==0,St||P){if(c=rt,c!==null){switch(w&-w){case 4:h=2;break;case 16:h=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:h=32;break;case 536870912:h=268435456;break;default:h=0}h=(h&(c.suspendedLanes|w))!==0?0:h,h!==0&&h!==y.retryLane&&(y.retryLane=h,mn(t,h),Xt(c,t,h,-1))}return gu(),c=Ka(Error(r(421))),Cl(t,i,w,c)}return h.data==="$?"?(i.flags|=128,i.child=t.child,i=ak.bind(null,t),h._reactRetry=i,null):(t=y.treeContext,jt=Dn(h.nextSibling),At=i,Ue=!0,Gt=null,t!==null&&(Mt[Ft++]=pn,Mt[Ft++]=hn,Mt[Ft++]=cr,pn=t.id,hn=t.overflow,cr=i),i=eu(i,c.children),i.flags|=4096,i)}function $p(t,i,s){t.lanes|=i;var c=t.alternate;c!==null&&(c.lanes|=i),Na(t.return,i,s)}function tu(t,i,s,c,h){var y=t.memoizedState;y===null?t.memoizedState={isBackwards:i,rendering:null,renderingStartTime:0,last:c,tail:s,tailMode:h}:(y.isBackwards=i,y.rendering=null,y.renderingStartTime=0,y.last=c,y.tail=s,y.tailMode=h)}function Up(t,i,s){var c=i.pendingProps,h=c.revealOrder,y=c.tail;if(yt(t,i,c.children,s),c=Ve.current,(c&2)!==0)c=c&1|2,i.flags|=128;else{if(t!==null&&(t.flags&128)!==0)e:for(t=i.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&$p(t,s,i);else if(t.tag===19)$p(t,s,i);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===i)break e;for(;t.sibling===null;){if(t.return===null||t.return===i)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}c&=1}if(ze(Ve,c),(i.mode&1)===0)i.memoizedState=null;else switch(h){case"forwards":for(s=i.child,h=null;s!==null;)t=s.alternate,t!==null&&yl(t)===null&&(h=s),s=s.sibling;s=h,s===null?(h=i.child,i.child=null):(h=s.sibling,s.sibling=null),tu(i,!1,h,s,y);break;case"backwards":for(s=null,h=i.child,i.child=null;h!==null;){if(t=h.alternate,t!==null&&yl(t)===null){i.child=h;break}t=h.sibling,h.sibling=s,s=h,h=t}tu(i,!0,s,null,y);break;case"together":tu(i,!1,null,null,void 0);break;default:i.memoizedState=null}return i.child}function bl(t,i){(i.mode&1)===0&&t!==null&&(t.alternate=null,i.alternate=null,i.flags|=2)}function yn(t,i,s){if(t!==null&&(i.dependencies=t.dependencies),mr|=i.lanes,(s&i.childLanes)===0)return null;if(t!==null&&i.child!==t.child)throw Error(r(153));if(i.child!==null){for(t=i.child,s=Gn(t,t.pendingProps),i.child=s,s.return=i;t.sibling!==null;)t=t.sibling,s=s.sibling=Gn(t,t.pendingProps),s.return=i;s.sibling=null}return i.child}function Qw(t,i,s){switch(i.tag){case 3:Mp(i),qr();break;case 5:np(i);break;case 1:kt(i.type)&&sl(i);break;case 4:Oa(i,i.stateNode.containerInfo);break;case 10:var c=i.type._context,h=i.memoizedProps.value;ze(pl,c._currentValue),c._currentValue=h;break;case 13:if(c=i.memoizedState,c!==null)return c.dehydrated!==null?(ze(Ve,Ve.current&1),i.flags|=128,null):(s&i.child.childLanes)!==0?Bp(t,i,s):(ze(Ve,Ve.current&1),t=yn(t,i,s),t!==null?t.sibling:null);ze(Ve,Ve.current&1);break;case 19:if(c=(s&i.childLanes)!==0,(t.flags&128)!==0){if(c)return Up(t,i,s);i.flags|=128}if(h=i.memoizedState,h!==null&&(h.rendering=null,h.tail=null,h.lastEffect=null),ze(Ve,Ve.current),c)break;return null;case 22:case 23:return i.lanes=0,Lp(t,i,s)}return yn(t,i,s)}var Vp,nu,Wp,Hp;Vp=function(t,i){for(var s=i.child;s!==null;){if(s.tag===5||s.tag===6)t.appendChild(s.stateNode);else if(s.tag!==4&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===i)break;for(;s.sibling===null;){if(s.return===null||s.return===i)return;s=s.return}s.sibling.return=s.return,s=s.sibling}},nu=function(){},Wp=function(t,i,s,c){var h=t.memoizedProps;if(h!==c){t=i.stateNode,pr(nn.current);var y=null;switch(s){case"input":h=Si(t,h),c=Si(t,c),y=[];break;case"select":h=_({},h,{value:void 0}),c=_({},c,{value:void 0}),y=[];break;case"textarea":h=bi(t,h),c=bi(t,c),y=[];break;default:typeof h.onClick!="function"&&typeof c.onClick=="function"&&(t.onclick=il)}lt(s,c);var w;s=null;for(F in h)if(!c.hasOwnProperty(F)&&h.hasOwnProperty(F)&&h[F]!=null)if(F==="style"){var P=h[F];for(w in P)P.hasOwnProperty(w)&&(s||(s={}),s[w]="")}else F!=="dangerouslySetInnerHTML"&&F!=="children"&&F!=="suppressContentEditableWarning"&&F!=="suppressHydrationWarning"&&F!=="autoFocus"&&(l.hasOwnProperty(F)?y||(y=[]):(y=y||[]).push(F,null));for(F in c){var R=c[F];if(P=h!=null?h[F]:void 0,c.hasOwnProperty(F)&&R!==P&&(R!=null||P!=null))if(F==="style")if(P){for(w in P)!P.hasOwnProperty(w)||R&&R.hasOwnProperty(w)||(s||(s={}),s[w]="");for(w in R)R.hasOwnProperty(w)&&P[w]!==R[w]&&(s||(s={}),s[w]=R[w])}else s||(y||(y=[]),y.push(F,s)),s=R;else F==="dangerouslySetInnerHTML"?(R=R?R.__html:void 0,P=P?P.__html:void 0,R!=null&&P!==R&&(y=y||[]).push(F,R)):F==="children"?typeof R!="string"&&typeof R!="number"||(y=y||[]).push(F,""+R):F!=="suppressContentEditableWarning"&&F!=="suppressHydrationWarning"&&(l.hasOwnProperty(F)?(R!=null&&F==="onScroll"&&Be("scroll",t),y||P===R||(y=[])):(y=y||[]).push(F,R))}s&&(y=y||[]).push("style",s);var F=y;(i.updateQueue=F)&&(i.flags|=4)}},Hp=function(t,i,s,c){s!==c&&(i.flags|=4)};function no(t,i){if(!Ue)switch(t.tailMode){case"hidden":i=t.tail;for(var s=null;i!==null;)i.alternate!==null&&(s=i),i=i.sibling;s===null?t.tail=null:s.sibling=null;break;case"collapsed":s=t.tail;for(var c=null;s!==null;)s.alternate!==null&&(c=s),s=s.sibling;c===null?i||t.tail===null?t.tail=null:t.tail.sibling=null:c.sibling=null}}function dt(t){var i=t.alternate!==null&&t.alternate.child===t.child,s=0,c=0;if(i)for(var h=t.child;h!==null;)s|=h.lanes|h.childLanes,c|=h.subtreeFlags&14680064,c|=h.flags&14680064,h.return=t,h=h.sibling;else for(h=t.child;h!==null;)s|=h.lanes|h.childLanes,c|=h.subtreeFlags,c|=h.flags,h.return=t,h=h.sibling;return t.subtreeFlags|=c,t.childLanes=s,i}function Xw(t,i,s){var c=i.pendingProps;switch(Ca(i),i.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return dt(i),null;case 1:return kt(i.type)&&ll(),dt(i),null;case 3:return c=i.stateNode,Qr(),$e(wt),$e(ct),za(),c.pendingContext&&(c.context=c.pendingContext,c.pendingContext=null),(t===null||t.child===null)&&(fl(i)?i.flags|=4:t===null||t.memoizedState.isDehydrated&&(i.flags&256)===0||(i.flags|=1024,Gt!==null&&(pu(Gt),Gt=null))),nu(t,i),dt(i),null;case 5:La(i);var h=pr(Xi.current);if(s=i.type,t!==null&&i.stateNode!=null)Wp(t,i,s,c,h),t.ref!==i.ref&&(i.flags|=512,i.flags|=2097152);else{if(!c){if(i.stateNode===null)throw Error(r(166));return dt(i),null}if(t=pr(nn.current),fl(i)){c=i.stateNode,s=i.type;var y=i.memoizedProps;switch(c[tn]=i,c[qi]=y,t=(i.mode&1)!==0,s){case"dialog":Be("cancel",c),Be("close",c);break;case"iframe":case"object":case"embed":Be("load",c);break;case"video":case"audio":for(h=0;h<Vi.length;h++)Be(Vi[h],c);break;case"source":Be("error",c);break;case"img":case"image":case"link":Be("error",c),Be("load",c);break;case"details":Be("toggle",c);break;case"input":Ei(c,y),Be("invalid",c);break;case"select":c._wrapperState={wasMultiple:!!y.multiple},Be("invalid",c);break;case"textarea":Oo(c,y),Be("invalid",c)}lt(s,y),h=null;for(var w in y)if(y.hasOwnProperty(w)){var P=y[w];w==="children"?typeof P=="string"?c.textContent!==P&&(y.suppressHydrationWarning!==!0&&rl(c.textContent,P,t),h=["children",P]):typeof P=="number"&&c.textContent!==""+P&&(y.suppressHydrationWarning!==!0&&rl(c.textContent,P,t),h=["children",""+P]):l.hasOwnProperty(w)&&P!=null&&w==="onScroll"&&Be("scroll",c)}switch(s){case"input":It(c),jo(c,y,!0);break;case"textarea":It(c),Do(c);break;case"select":case"option":break;default:typeof y.onClick=="function"&&(c.onclick=il)}c=h,i.updateQueue=c,c!==null&&(i.flags|=4)}else{w=h.nodeType===9?h:h.ownerDocument,t==="http://www.w3.org/1999/xhtml"&&(t=U(s)),t==="http://www.w3.org/1999/xhtml"?s==="script"?(t=w.createElement("div"),t.innerHTML="<script><\/script>",t=t.removeChild(t.firstChild)):typeof c.is=="string"?t=w.createElement(s,{is:c.is}):(t=w.createElement(s),s==="select"&&(w=t,c.multiple?w.multiple=!0:c.size&&(w.size=c.size))):t=w.createElementNS(t,s),t[tn]=i,t[qi]=c,Vp(t,i,!1,!1),i.stateNode=t;e:{switch(w=Zt(s,c),s){case"dialog":Be("cancel",t),Be("close",t),h=c;break;case"iframe":case"object":case"embed":Be("load",t),h=c;break;case"video":case"audio":for(h=0;h<Vi.length;h++)Be(Vi[h],t);h=c;break;case"source":Be("error",t),h=c;break;case"img":case"image":case"link":Be("error",t),Be("load",t),h=c;break;case"details":Be("toggle",t),h=c;break;case"input":Ei(t,c),h=Si(t,c),Be("invalid",t);break;case"option":h=c;break;case"select":t._wrapperState={wasMultiple:!!c.multiple},h=_({},c,{value:void 0}),Be("invalid",t);break;case"textarea":Oo(t,c),h=bi(t,c),Be("invalid",t);break;default:h=c}lt(s,h),P=h;for(y in P)if(P.hasOwnProperty(y)){var R=P[y];y==="style"?In(t,R):y==="dangerouslySetInnerHTML"?(R=R?R.__html:void 0,R!=null&&Te(t,R)):y==="children"?typeof R=="string"?(s!=="textarea"||R!=="")&&Ae(t,R):typeof R=="number"&&Ae(t,""+R):y!=="suppressContentEditableWarning"&&y!=="suppressHydrationWarning"&&y!=="autoFocus"&&(l.hasOwnProperty(y)?R!=null&&y==="onScroll"&&Be("scroll",t):R!=null&&N(t,y,R,w))}switch(s){case"input":It(t),jo(t,c,!1);break;case"textarea":It(t),Do(t);break;case"option":c.value!=null&&t.setAttribute("value",""+Ce(c.value));break;case"select":t.multiple=!!c.multiple,y=c.value,y!=null?Pn(t,!!c.multiple,y,!1):c.defaultValue!=null&&Pn(t,!!c.multiple,c.defaultValue,!0);break;default:typeof h.onClick=="function"&&(t.onclick=il)}switch(s){case"button":case"input":case"select":case"textarea":c=!!c.autoFocus;break e;case"img":c=!0;break e;default:c=!1}}c&&(i.flags|=4)}i.ref!==null&&(i.flags|=512,i.flags|=2097152)}return dt(i),null;case 6:if(t&&i.stateNode!=null)Hp(t,i,t.memoizedProps,c);else{if(typeof c!="string"&&i.stateNode===null)throw Error(r(166));if(s=pr(Xi.current),pr(nn.current),fl(i)){if(c=i.stateNode,s=i.memoizedProps,c[tn]=i,(y=c.nodeValue!==s)&&(t=At,t!==null))switch(t.tag){case 3:rl(c.nodeValue,s,(t.mode&1)!==0);break;case 5:t.memoizedProps.suppressHydrationWarning!==!0&&rl(c.nodeValue,s,(t.mode&1)!==0)}y&&(i.flags|=4)}else c=(s.nodeType===9?s:s.ownerDocument).createTextNode(c),c[tn]=i,i.stateNode=c}return dt(i),null;case 13:if($e(Ve),c=i.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(Ue&&jt!==null&&(i.mode&1)!==0&&(i.flags&128)===0)Kd(),qr(),i.flags|=98560,y=!1;else if(y=fl(i),c!==null&&c.dehydrated!==null){if(t===null){if(!y)throw Error(r(318));if(y=i.memoizedState,y=y!==null?y.dehydrated:null,!y)throw Error(r(317));y[tn]=i}else qr(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;dt(i),y=!1}else Gt!==null&&(pu(Gt),Gt=null),y=!0;if(!y)return i.flags&65536?i:null}return(i.flags&128)!==0?(i.lanes=s,i):(c=c!==null,c!==(t!==null&&t.memoizedState!==null)&&c&&(i.child.flags|=8192,(i.mode&1)!==0&&(t===null||(Ve.current&1)!==0?Ze===0&&(Ze=3):gu())),i.updateQueue!==null&&(i.flags|=4),dt(i),null);case 4:return Qr(),nu(t,i),t===null&&Wi(i.stateNode.containerInfo),dt(i),null;case 10:return Ra(i.type._context),dt(i),null;case 17:return kt(i.type)&&ll(),dt(i),null;case 19:if($e(Ve),y=i.memoizedState,y===null)return dt(i),null;if(c=(i.flags&128)!==0,w=y.rendering,w===null)if(c)no(y,!1);else{if(Ze!==0||t!==null&&(t.flags&128)!==0)for(t=i.child;t!==null;){if(w=yl(t),w!==null){for(i.flags|=128,no(y,!1),c=w.updateQueue,c!==null&&(i.updateQueue=c,i.flags|=4),i.subtreeFlags=0,c=s,s=i.child;s!==null;)y=s,t=c,y.flags&=14680066,w=y.alternate,w===null?(y.childLanes=0,y.lanes=t,y.child=null,y.subtreeFlags=0,y.memoizedProps=null,y.memoizedState=null,y.updateQueue=null,y.dependencies=null,y.stateNode=null):(y.childLanes=w.childLanes,y.lanes=w.lanes,y.child=w.child,y.subtreeFlags=0,y.deletions=null,y.memoizedProps=w.memoizedProps,y.memoizedState=w.memoizedState,y.updateQueue=w.updateQueue,y.type=w.type,t=w.dependencies,y.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),s=s.sibling;return ze(Ve,Ve.current&1|2),i.child}t=t.sibling}y.tail!==null&&Ge()>ei&&(i.flags|=128,c=!0,no(y,!1),i.lanes=4194304)}else{if(!c)if(t=yl(w),t!==null){if(i.flags|=128,c=!0,s=t.updateQueue,s!==null&&(i.updateQueue=s,i.flags|=4),no(y,!0),y.tail===null&&y.tailMode==="hidden"&&!w.alternate&&!Ue)return dt(i),null}else 2*Ge()-y.renderingStartTime>ei&&s!==1073741824&&(i.flags|=128,c=!0,no(y,!1),i.lanes=4194304);y.isBackwards?(w.sibling=i.child,i.child=w):(s=y.last,s!==null?s.sibling=w:i.child=w,y.last=w)}return y.tail!==null?(i=y.tail,y.rendering=i,y.tail=i.sibling,y.renderingStartTime=Ge(),i.sibling=null,s=Ve.current,ze(Ve,c?s&1|2:s&1),i):(dt(i),null);case 22:case 23:return mu(),c=i.memoizedState!==null,t!==null&&t.memoizedState!==null!==c&&(i.flags|=8192),c&&(i.mode&1)!==0?(Ot&1073741824)!==0&&(dt(i),i.subtreeFlags&6&&(i.flags|=8192)):dt(i),null;case 24:return null;case 25:return null}throw Error(r(156,i.tag))}function Jw(t,i){switch(Ca(i),i.tag){case 1:return kt(i.type)&&ll(),t=i.flags,t&65536?(i.flags=t&-65537|128,i):null;case 3:return Qr(),$e(wt),$e(ct),za(),t=i.flags,(t&65536)!==0&&(t&128)===0?(i.flags=t&-65537|128,i):null;case 5:return La(i),null;case 13:if($e(Ve),t=i.memoizedState,t!==null&&t.dehydrated!==null){if(i.alternate===null)throw Error(r(340));qr()}return t=i.flags,t&65536?(i.flags=t&-65537|128,i):null;case 19:return $e(Ve),null;case 4:return Qr(),null;case 10:return Ra(i.type._context),null;case 22:case 23:return mu(),null;case 24:return null;default:return null}}var _l=!1,pt=!1,Zw=typeof WeakSet=="function"?WeakSet:Set,se=null;function Jr(t,i){var s=t.ref;if(s!==null)if(typeof s=="function")try{s(null)}catch(c){qe(t,i,c)}else s.current=null}function ru(t,i,s){try{s()}catch(c){qe(t,i,c)}}var qp=!1;function ek(t,i){if(ma=qo,t=Cd(),sa(t)){if("selectionStart"in t)var s={start:t.selectionStart,end:t.selectionEnd};else e:{s=(s=t.ownerDocument)&&s.defaultView||window;var c=s.getSelection&&s.getSelection();if(c&&c.rangeCount!==0){s=c.anchorNode;var h=c.anchorOffset,y=c.focusNode;c=c.focusOffset;try{s.nodeType,y.nodeType}catch{s=null;break e}var w=0,P=-1,R=-1,F=0,K=0,X=t,G=null;t:for(;;){for(var ie;X!==s||h!==0&&X.nodeType!==3||(P=w+h),X!==y||c!==0&&X.nodeType!==3||(R=w+c),X.nodeType===3&&(w+=X.nodeValue.length),(ie=X.firstChild)!==null;)G=X,X=ie;for(;;){if(X===t)break t;if(G===s&&++F===h&&(P=w),G===y&&++K===c&&(R=w),(ie=X.nextSibling)!==null)break;X=G,G=X.parentNode}X=ie}s=P===-1||R===-1?null:{start:P,end:R}}else s=null}s=s||{start:0,end:0}}else s=null;for(ga={focusedElem:t,selectionRange:s},qo=!1,se=i;se!==null;)if(i=se,t=i.child,(i.subtreeFlags&1028)!==0&&t!==null)t.return=i,se=t;else for(;se!==null;){i=se;try{var ae=i.alternate;if((i.flags&1024)!==0)switch(i.tag){case 0:case 11:case 15:break;case 1:if(ae!==null){var de=ae.memoizedProps,Ke=ae.memoizedState,D=i.stateNode,A=D.getSnapshotBeforeUpdate(i.elementType===i.type?de:Kt(i.type,de),Ke);D.__reactInternalSnapshotBeforeUpdate=A}break;case 3:var M=i.stateNode.containerInfo;M.nodeType===1?M.textContent="":M.nodeType===9&&M.documentElement&&M.removeChild(M.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(r(163))}}catch(Z){qe(i,i.return,Z)}if(t=i.sibling,t!==null){t.return=i.return,se=t;break}se=i.return}return ae=qp,qp=!1,ae}function ro(t,i,s){var c=i.updateQueue;if(c=c!==null?c.lastEffect:null,c!==null){var h=c=c.next;do{if((h.tag&t)===t){var y=h.destroy;h.destroy=void 0,y!==void 0&&ru(i,s,y)}h=h.next}while(h!==c)}}function Tl(t,i){if(i=i.updateQueue,i=i!==null?i.lastEffect:null,i!==null){var s=i=i.next;do{if((s.tag&t)===t){var c=s.create;s.destroy=c()}s=s.next}while(s!==i)}}function iu(t){var i=t.ref;if(i!==null){var s=t.stateNode;switch(t.tag){case 5:t=s;break;default:t=s}typeof i=="function"?i(t):i.current=t}}function Gp(t){var i=t.alternate;i!==null&&(t.alternate=null,Gp(i)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(i=t.stateNode,i!==null&&(delete i[tn],delete i[qi],delete i[wa],delete i[Dw],delete i[zw])),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function Kp(t){return t.tag===5||t.tag===3||t.tag===4}function Yp(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||Kp(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function ou(t,i,s){var c=t.tag;if(c===5||c===6)t=t.stateNode,i?s.nodeType===8?s.parentNode.insertBefore(t,i):s.insertBefore(t,i):(s.nodeType===8?(i=s.parentNode,i.insertBefore(t,s)):(i=s,i.appendChild(t)),s=s._reactRootContainer,s!=null||i.onclick!==null||(i.onclick=il));else if(c!==4&&(t=t.child,t!==null))for(ou(t,i,s),t=t.sibling;t!==null;)ou(t,i,s),t=t.sibling}function lu(t,i,s){var c=t.tag;if(c===5||c===6)t=t.stateNode,i?s.insertBefore(t,i):s.appendChild(t);else if(c!==4&&(t=t.child,t!==null))for(lu(t,i,s),t=t.sibling;t!==null;)lu(t,i,s),t=t.sibling}var st=null,Yt=!1;function Un(t,i,s){for(s=s.child;s!==null;)Qp(t,i,s),s=s.sibling}function Qp(t,i,s){if(en&&typeof en.onCommitFiberUnmount=="function")try{en.onCommitFiberUnmount(Bo,s)}catch{}switch(s.tag){case 5:pt||Jr(s,i);case 6:var c=st,h=Yt;st=null,Un(t,i,s),st=c,Yt=h,st!==null&&(Yt?(t=st,s=s.stateNode,t.nodeType===8?t.parentNode.removeChild(s):t.removeChild(s)):st.removeChild(s.stateNode));break;case 18:st!==null&&(Yt?(t=st,s=s.stateNode,t.nodeType===8?xa(t.parentNode,s):t.nodeType===1&&xa(t,s),Li(t)):xa(st,s.stateNode));break;case 4:c=st,h=Yt,st=s.stateNode.containerInfo,Yt=!0,Un(t,i,s),st=c,Yt=h;break;case 0:case 11:case 14:case 15:if(!pt&&(c=s.updateQueue,c!==null&&(c=c.lastEffect,c!==null))){h=c=c.next;do{var y=h,w=y.destroy;y=y.tag,w!==void 0&&((y&2)!==0||(y&4)!==0)&&ru(s,i,w),h=h.next}while(h!==c)}Un(t,i,s);break;case 1:if(!pt&&(Jr(s,i),c=s.stateNode,typeof c.componentWillUnmount=="function"))try{c.props=s.memoizedProps,c.state=s.memoizedState,c.componentWillUnmount()}catch(P){qe(s,i,P)}Un(t,i,s);break;case 21:Un(t,i,s);break;case 22:s.mode&1?(pt=(c=pt)||s.memoizedState!==null,Un(t,i,s),pt=c):Un(t,i,s);break;default:Un(t,i,s)}}function Xp(t){var i=t.updateQueue;if(i!==null){t.updateQueue=null;var s=t.stateNode;s===null&&(s=t.stateNode=new Zw),i.forEach(function(c){var h=uk.bind(null,t,c);s.has(c)||(s.add(c),c.then(h,h))})}}function Qt(t,i){var s=i.deletions;if(s!==null)for(var c=0;c<s.length;c++){var h=s[c];try{var y=t,w=i,P=w;e:for(;P!==null;){switch(P.tag){case 5:st=P.stateNode,Yt=!1;break e;case 3:st=P.stateNode.containerInfo,Yt=!0;break e;case 4:st=P.stateNode.containerInfo,Yt=!0;break e}P=P.return}if(st===null)throw Error(r(160));Qp(y,w,h),st=null,Yt=!1;var R=h.alternate;R!==null&&(R.return=null),h.return=null}catch(F){qe(h,i,F)}}if(i.subtreeFlags&12854)for(i=i.child;i!==null;)Jp(i,t),i=i.sibling}function Jp(t,i){var s=t.alternate,c=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:if(Qt(i,t),on(t),c&4){try{ro(3,t,t.return),Tl(3,t)}catch(de){qe(t,t.return,de)}try{ro(5,t,t.return)}catch(de){qe(t,t.return,de)}}break;case 1:Qt(i,t),on(t),c&512&&s!==null&&Jr(s,s.return);break;case 5:if(Qt(i,t),on(t),c&512&&s!==null&&Jr(s,s.return),t.flags&32){var h=t.stateNode;try{Ae(h,"")}catch(de){qe(t,t.return,de)}}if(c&4&&(h=t.stateNode,h!=null)){var y=t.memoizedProps,w=s!==null?s.memoizedProps:y,P=t.type,R=t.updateQueue;if(t.updateQueue=null,R!==null)try{P==="input"&&y.type==="radio"&&y.name!=null&&Ci(h,y),Zt(P,w);var F=Zt(P,y);for(w=0;w<R.length;w+=2){var K=R[w],X=R[w+1];K==="style"?In(h,X):K==="dangerouslySetInnerHTML"?Te(h,X):K==="children"?Ae(h,X):N(h,K,X,F)}switch(P){case"input":Rr(h,y);break;case"textarea":Lo(h,y);break;case"select":var G=h._wrapperState.wasMultiple;h._wrapperState.wasMultiple=!!y.multiple;var ie=y.value;ie!=null?Pn(h,!!y.multiple,ie,!1):G!==!!y.multiple&&(y.defaultValue!=null?Pn(h,!!y.multiple,y.defaultValue,!0):Pn(h,!!y.multiple,y.multiple?[]:"",!1))}h[qi]=y}catch(de){qe(t,t.return,de)}}break;case 6:if(Qt(i,t),on(t),c&4){if(t.stateNode===null)throw Error(r(162));h=t.stateNode,y=t.memoizedProps;try{h.nodeValue=y}catch(de){qe(t,t.return,de)}}break;case 3:if(Qt(i,t),on(t),c&4&&s!==null&&s.memoizedState.isDehydrated)try{Li(i.containerInfo)}catch(de){qe(t,t.return,de)}break;case 4:Qt(i,t),on(t);break;case 13:Qt(i,t),on(t),h=t.child,h.flags&8192&&(y=h.memoizedState!==null,h.stateNode.isHidden=y,!y||h.alternate!==null&&h.alternate.memoizedState!==null||(uu=Ge())),c&4&&Xp(t);break;case 22:if(K=s!==null&&s.memoizedState!==null,t.mode&1?(pt=(F=pt)||K,Qt(i,t),pt=F):Qt(i,t),on(t),c&8192){if(F=t.memoizedState!==null,(t.stateNode.isHidden=F)&&!K&&(t.mode&1)!==0)for(se=t,K=t.child;K!==null;){for(X=se=K;se!==null;){switch(G=se,ie=G.child,G.tag){case 0:case 11:case 14:case 15:ro(4,G,G.return);break;case 1:Jr(G,G.return);var ae=G.stateNode;if(typeof ae.componentWillUnmount=="function"){c=G,s=G.return;try{i=c,ae.props=i.memoizedProps,ae.state=i.memoizedState,ae.componentWillUnmount()}catch(de){qe(c,s,de)}}break;case 5:Jr(G,G.return);break;case 22:if(G.memoizedState!==null){th(X);continue}}ie!==null?(ie.return=G,se=ie):th(X)}K=K.sibling}e:for(K=null,X=t;;){if(X.tag===5){if(K===null){K=X;try{h=X.stateNode,F?(y=h.style,typeof y.setProperty=="function"?y.setProperty("display","none","important"):y.display="none"):(P=X.stateNode,R=X.memoizedProps.style,w=R!=null&&R.hasOwnProperty("display")?R.display:null,P.style.display=zt("display",w))}catch(de){qe(t,t.return,de)}}}else if(X.tag===6){if(K===null)try{X.stateNode.nodeValue=F?"":X.memoizedProps}catch(de){qe(t,t.return,de)}}else if((X.tag!==22&&X.tag!==23||X.memoizedState===null||X===t)&&X.child!==null){X.child.return=X,X=X.child;continue}if(X===t)break e;for(;X.sibling===null;){if(X.return===null||X.return===t)break e;K===X&&(K=null),X=X.return}K===X&&(K=null),X.sibling.return=X.return,X=X.sibling}}break;case 19:Qt(i,t),on(t),c&4&&Xp(t);break;case 21:break;default:Qt(i,t),on(t)}}function on(t){var i=t.flags;if(i&2){try{e:{for(var s=t.return;s!==null;){if(Kp(s)){var c=s;break e}s=s.return}throw Error(r(160))}switch(c.tag){case 5:var h=c.stateNode;c.flags&32&&(Ae(h,""),c.flags&=-33);var y=Yp(t);lu(t,y,h);break;case 3:case 4:var w=c.stateNode.containerInfo,P=Yp(t);ou(t,P,w);break;default:throw Error(r(161))}}catch(R){qe(t,t.return,R)}t.flags&=-3}i&4096&&(t.flags&=-4097)}function tk(t,i,s){se=t,Zp(t)}function Zp(t,i,s){for(var c=(t.mode&1)!==0;se!==null;){var h=se,y=h.child;if(h.tag===22&&c){var w=h.memoizedState!==null||_l;if(!w){var P=h.alternate,R=P!==null&&P.memoizedState!==null||pt;P=_l;var F=pt;if(_l=w,(pt=R)&&!F)for(se=h;se!==null;)w=se,R=w.child,w.tag===22&&w.memoizedState!==null?nh(h):R!==null?(R.return=w,se=R):nh(h);for(;y!==null;)se=y,Zp(y),y=y.sibling;se=h,_l=P,pt=F}eh(t)}else(h.subtreeFlags&8772)!==0&&y!==null?(y.return=h,se=y):eh(t)}}function eh(t){for(;se!==null;){var i=se;if((i.flags&8772)!==0){var s=i.alternate;try{if((i.flags&8772)!==0)switch(i.tag){case 0:case 11:case 15:pt||Tl(5,i);break;case 1:var c=i.stateNode;if(i.flags&4&&!pt)if(s===null)c.componentDidMount();else{var h=i.elementType===i.type?s.memoizedProps:Kt(i.type,s.memoizedProps);c.componentDidUpdate(h,s.memoizedState,c.__reactInternalSnapshotBeforeUpdate)}var y=i.updateQueue;y!==null&&tp(i,y,c);break;case 3:var w=i.updateQueue;if(w!==null){if(s=null,i.child!==null)switch(i.child.tag){case 5:s=i.child.stateNode;break;case 1:s=i.child.stateNode}tp(i,w,s)}break;case 5:var P=i.stateNode;if(s===null&&i.flags&4){s=P;var R=i.memoizedProps;switch(i.type){case"button":case"input":case"select":case"textarea":R.autoFocus&&s.focus();break;case"img":R.src&&(s.src=R.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(i.memoizedState===null){var F=i.alternate;if(F!==null){var K=F.memoizedState;if(K!==null){var X=K.dehydrated;X!==null&&Li(X)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(r(163))}pt||i.flags&512&&iu(i)}catch(G){qe(i,i.return,G)}}if(i===t){se=null;break}if(s=i.sibling,s!==null){s.return=i.return,se=s;break}se=i.return}}function th(t){for(;se!==null;){var i=se;if(i===t){se=null;break}var s=i.sibling;if(s!==null){s.return=i.return,se=s;break}se=i.return}}function nh(t){for(;se!==null;){var i=se;try{switch(i.tag){case 0:case 11:case 15:var s=i.return;try{Tl(4,i)}catch(R){qe(i,s,R)}break;case 1:var c=i.stateNode;if(typeof c.componentDidMount=="function"){var h=i.return;try{c.componentDidMount()}catch(R){qe(i,h,R)}}var y=i.return;try{iu(i)}catch(R){qe(i,y,R)}break;case 5:var w=i.return;try{iu(i)}catch(R){qe(i,w,R)}}}catch(R){qe(i,i.return,R)}if(i===t){se=null;break}var P=i.sibling;if(P!==null){P.return=i.return,se=P;break}se=i.return}}var nk=Math.ceil,Pl=$.ReactCurrentDispatcher,su=$.ReactCurrentOwner,Ut=$.ReactCurrentBatchConfig,je=0,rt=null,Ye=null,at=0,Ot=0,Zr=zn(0),Ze=0,io=null,mr=0,Il=0,au=0,oo=null,Et=null,uu=0,ei=1/0,vn=null,Rl=!1,cu=null,Vn=null,Nl=!1,Wn=null,Al=0,lo=0,fu=null,jl=-1,Ol=0;function vt(){return(je&6)!==0?Ge():jl!==-1?jl:jl=Ge()}function Hn(t){return(t.mode&1)===0?1:(je&2)!==0&&at!==0?at&-at:Fw.transition!==null?(Ol===0&&(Ol=Yf()),Ol):(t=Le,t!==0||(t=window.event,t=t===void 0?16:id(t.type)),t)}function Xt(t,i,s,c){if(50<lo)throw lo=0,fu=null,Error(r(185));Ri(t,s,c),((je&2)===0||t!==rt)&&(t===rt&&((je&2)===0&&(Il|=s),Ze===4&&qn(t,at)),Ct(t,c),s===1&&je===0&&(i.mode&1)===0&&(ei=Ge()+500,al&&Fn()))}function Ct(t,i){var s=t.callbackNode;Fx(t,i);var c=Vo(t,t===rt?at:0);if(c===0)s!==null&&qf(s),t.callbackNode=null,t.callbackPriority=0;else if(i=c&-c,t.callbackPriority!==i){if(s!=null&&qf(s),i===1)t.tag===0?Mw(ih.bind(null,t)):Vd(ih.bind(null,t)),Ow(function(){(je&6)===0&&Fn()}),s=null;else{switch(Qf(c)){case 1:s=Ws;break;case 4:s=Gf;break;case 16:s=Fo;break;case 536870912:s=Kf;break;default:s=Fo}s=dh(s,rh.bind(null,t))}t.callbackPriority=i,t.callbackNode=s}}function rh(t,i){if(jl=-1,Ol=0,(je&6)!==0)throw Error(r(327));var s=t.callbackNode;if(ti()&&t.callbackNode!==s)return null;var c=Vo(t,t===rt?at:0);if(c===0)return null;if((c&30)!==0||(c&t.expiredLanes)!==0||i)i=Ll(t,c);else{i=c;var h=je;je|=2;var y=lh();(rt!==t||at!==i)&&(vn=null,ei=Ge()+500,yr(t,i));do try{ok();break}catch(P){oh(t,P)}while(!0);Ia(),Pl.current=y,je=h,Ye!==null?i=0:(rt=null,at=0,i=Ze)}if(i!==0){if(i===2&&(h=Hs(t),h!==0&&(c=h,i=du(t,h))),i===1)throw s=io,yr(t,0),qn(t,c),Ct(t,Ge()),s;if(i===6)qn(t,c);else{if(h=t.current.alternate,(c&30)===0&&!rk(h)&&(i=Ll(t,c),i===2&&(y=Hs(t),y!==0&&(c=y,i=du(t,y))),i===1))throw s=io,yr(t,0),qn(t,c),Ct(t,Ge()),s;switch(t.finishedWork=h,t.finishedLanes=c,i){case 0:case 1:throw Error(r(345));case 2:vr(t,Et,vn);break;case 3:if(qn(t,c),(c&130023424)===c&&(i=uu+500-Ge(),10<i)){if(Vo(t,0)!==0)break;if(h=t.suspendedLanes,(h&c)!==c){vt(),t.pingedLanes|=t.suspendedLanes&h;break}t.timeoutHandle=va(vr.bind(null,t,Et,vn),i);break}vr(t,Et,vn);break;case 4:if(qn(t,c),(c&4194240)===c)break;for(i=t.eventTimes,h=-1;0<c;){var w=31-Ht(c);y=1<<w,w=i[w],w>h&&(h=w),c&=~y}if(c=h,c=Ge()-c,c=(120>c?120:480>c?480:1080>c?1080:1920>c?1920:3e3>c?3e3:4320>c?4320:1960*nk(c/1960))-c,10<c){t.timeoutHandle=va(vr.bind(null,t,Et,vn),c);break}vr(t,Et,vn);break;case 5:vr(t,Et,vn);break;default:throw Error(r(329))}}}return Ct(t,Ge()),t.callbackNode===s?rh.bind(null,t):null}function du(t,i){var s=oo;return t.current.memoizedState.isDehydrated&&(yr(t,i).flags|=256),t=Ll(t,i),t!==2&&(i=Et,Et=s,i!==null&&pu(i)),t}function pu(t){Et===null?Et=t:Et.push.apply(Et,t)}function rk(t){for(var i=t;;){if(i.flags&16384){var s=i.updateQueue;if(s!==null&&(s=s.stores,s!==null))for(var c=0;c<s.length;c++){var h=s[c],y=h.getSnapshot;h=h.value;try{if(!qt(y(),h))return!1}catch{return!1}}}if(s=i.child,i.subtreeFlags&16384&&s!==null)s.return=i,i=s;else{if(i===t)break;for(;i.sibling===null;){if(i.return===null||i.return===t)return!0;i=i.return}i.sibling.return=i.return,i=i.sibling}}return!0}function qn(t,i){for(i&=~au,i&=~Il,t.suspendedLanes|=i,t.pingedLanes&=~i,t=t.expirationTimes;0<i;){var s=31-Ht(i),c=1<<s;t[s]=-1,i&=~c}}function ih(t){if((je&6)!==0)throw Error(r(327));ti();var i=Vo(t,0);if((i&1)===0)return Ct(t,Ge()),null;var s=Ll(t,i);if(t.tag!==0&&s===2){var c=Hs(t);c!==0&&(i=c,s=du(t,c))}if(s===1)throw s=io,yr(t,0),qn(t,i),Ct(t,Ge()),s;if(s===6)throw Error(r(345));return t.finishedWork=t.current.alternate,t.finishedLanes=i,vr(t,Et,vn),Ct(t,Ge()),null}function hu(t,i){var s=je;je|=1;try{return t(i)}finally{je=s,je===0&&(ei=Ge()+500,al&&Fn())}}function gr(t){Wn!==null&&Wn.tag===0&&(je&6)===0&&ti();var i=je;je|=1;var s=Ut.transition,c=Le;try{if(Ut.transition=null,Le=1,t)return t()}finally{Le=c,Ut.transition=s,je=i,(je&6)===0&&Fn()}}function mu(){Ot=Zr.current,$e(Zr)}function yr(t,i){t.finishedWork=null,t.finishedLanes=0;var s=t.timeoutHandle;if(s!==-1&&(t.timeoutHandle=-1,jw(s)),Ye!==null)for(s=Ye.return;s!==null;){var c=s;switch(Ca(c),c.tag){case 1:c=c.type.childContextTypes,c!=null&&ll();break;case 3:Qr(),$e(wt),$e(ct),za();break;case 5:La(c);break;case 4:Qr();break;case 13:$e(Ve);break;case 19:$e(Ve);break;case 10:Ra(c.type._context);break;case 22:case 23:mu()}s=s.return}if(rt=t,Ye=t=Gn(t.current,null),at=Ot=i,Ze=0,io=null,au=Il=mr=0,Et=oo=null,dr!==null){for(i=0;i<dr.length;i++)if(s=dr[i],c=s.interleaved,c!==null){s.interleaved=null;var h=c.next,y=s.pending;if(y!==null){var w=y.next;y.next=h,c.next=w}s.pending=c}dr=null}return t}function oh(t,i){do{var s=Ye;try{if(Ia(),vl.current=Sl,xl){for(var c=We.memoizedState;c!==null;){var h=c.queue;h!==null&&(h.pending=null),c=c.next}xl=!1}if(hr=0,nt=Je=We=null,Ji=!1,Zi=0,su.current=null,s===null||s.return===null){Ze=1,io=i,Ye=null;break}e:{var y=t,w=s.return,P=s,R=i;if(i=at,P.flags|=32768,R!==null&&typeof R=="object"&&typeof R.then=="function"){var F=R,K=P,X=K.tag;if((K.mode&1)===0&&(X===0||X===11||X===15)){var G=K.alternate;G?(K.updateQueue=G.updateQueue,K.memoizedState=G.memoizedState,K.lanes=G.lanes):(K.updateQueue=null,K.memoizedState=null)}var ie=Rp(w);if(ie!==null){ie.flags&=-257,Np(ie,w,P,y,i),ie.mode&1&&Ip(y,F,i),i=ie,R=F;var ae=i.updateQueue;if(ae===null){var de=new Set;de.add(R),i.updateQueue=de}else ae.add(R);break e}else{if((i&1)===0){Ip(y,F,i),gu();break e}R=Error(r(426))}}else if(Ue&&P.mode&1){var Ke=Rp(w);if(Ke!==null){(Ke.flags&65536)===0&&(Ke.flags|=256),Np(Ke,w,P,y,i),Ta(Xr(R,P));break e}}y=R=Xr(R,P),Ze!==4&&(Ze=2),oo===null?oo=[y]:oo.push(y),y=w;do{switch(y.tag){case 3:y.flags|=65536,i&=-i,y.lanes|=i;var D=Tp(y,R,i);ep(y,D);break e;case 1:P=R;var A=y.type,M=y.stateNode;if((y.flags&128)===0&&(typeof A.getDerivedStateFromError=="function"||M!==null&&typeof M.componentDidCatch=="function"&&(Vn===null||!Vn.has(M)))){y.flags|=65536,i&=-i,y.lanes|=i;var Z=Pp(y,P,i);ep(y,Z);break e}}y=y.return}while(y!==null)}ah(s)}catch(pe){i=pe,Ye===s&&s!==null&&(Ye=s=s.return);continue}break}while(!0)}function lh(){var t=Pl.current;return Pl.current=Sl,t===null?Sl:t}function gu(){(Ze===0||Ze===3||Ze===2)&&(Ze=4),rt===null||(mr&268435455)===0&&(Il&268435455)===0||qn(rt,at)}function Ll(t,i){var s=je;je|=2;var c=lh();(rt!==t||at!==i)&&(vn=null,yr(t,i));do try{ik();break}catch(h){oh(t,h)}while(!0);if(Ia(),je=s,Pl.current=c,Ye!==null)throw Error(r(261));return rt=null,at=0,Ze}function ik(){for(;Ye!==null;)sh(Ye)}function ok(){for(;Ye!==null&&!Rx();)sh(Ye)}function sh(t){var i=fh(t.alternate,t,Ot);t.memoizedProps=t.pendingProps,i===null?ah(t):Ye=i,su.current=null}function ah(t){var i=t;do{var s=i.alternate;if(t=i.return,(i.flags&32768)===0){if(s=Xw(s,i,Ot),s!==null){Ye=s;return}}else{if(s=Jw(s,i),s!==null){s.flags&=32767,Ye=s;return}if(t!==null)t.flags|=32768,t.subtreeFlags=0,t.deletions=null;else{Ze=6,Ye=null;return}}if(i=i.sibling,i!==null){Ye=i;return}Ye=i=t}while(i!==null);Ze===0&&(Ze=5)}function vr(t,i,s){var c=Le,h=Ut.transition;try{Ut.transition=null,Le=1,lk(t,i,s,c)}finally{Ut.transition=h,Le=c}return null}function lk(t,i,s,c){do ti();while(Wn!==null);if((je&6)!==0)throw Error(r(327));s=t.finishedWork;var h=t.finishedLanes;if(s===null)return null;if(t.finishedWork=null,t.finishedLanes=0,s===t.current)throw Error(r(177));t.callbackNode=null,t.callbackPriority=0;var y=s.lanes|s.childLanes;if(Bx(t,y),t===rt&&(Ye=rt=null,at=0),(s.subtreeFlags&2064)===0&&(s.flags&2064)===0||Nl||(Nl=!0,dh(Fo,function(){return ti(),null})),y=(s.flags&15990)!==0,(s.subtreeFlags&15990)!==0||y){y=Ut.transition,Ut.transition=null;var w=Le;Le=1;var P=je;je|=4,su.current=null,ek(t,s),Jp(s,t),_w(ga),qo=!!ma,ga=ma=null,t.current=s,tk(s),Nx(),je=P,Le=w,Ut.transition=y}else t.current=s;if(Nl&&(Nl=!1,Wn=t,Al=h),y=t.pendingLanes,y===0&&(Vn=null),Ox(s.stateNode),Ct(t,Ge()),i!==null)for(c=t.onRecoverableError,s=0;s<i.length;s++)h=i[s],c(h.value,{componentStack:h.stack,digest:h.digest});if(Rl)throw Rl=!1,t=cu,cu=null,t;return(Al&1)!==0&&t.tag!==0&&ti(),y=t.pendingLanes,(y&1)!==0?t===fu?lo++:(lo=0,fu=t):lo=0,Fn(),null}function ti(){if(Wn!==null){var t=Qf(Al),i=Ut.transition,s=Le;try{if(Ut.transition=null,Le=16>t?16:t,Wn===null)var c=!1;else{if(t=Wn,Wn=null,Al=0,(je&6)!==0)throw Error(r(331));var h=je;for(je|=4,se=t.current;se!==null;){var y=se,w=y.child;if((se.flags&16)!==0){var P=y.deletions;if(P!==null){for(var R=0;R<P.length;R++){var F=P[R];for(se=F;se!==null;){var K=se;switch(K.tag){case 0:case 11:case 15:ro(8,K,y)}var X=K.child;if(X!==null)X.return=K,se=X;else for(;se!==null;){K=se;var G=K.sibling,ie=K.return;if(Gp(K),K===F){se=null;break}if(G!==null){G.return=ie,se=G;break}se=ie}}}var ae=y.alternate;if(ae!==null){var de=ae.child;if(de!==null){ae.child=null;do{var Ke=de.sibling;de.sibling=null,de=Ke}while(de!==null)}}se=y}}if((y.subtreeFlags&2064)!==0&&w!==null)w.return=y,se=w;else e:for(;se!==null;){if(y=se,(y.flags&2048)!==0)switch(y.tag){case 0:case 11:case 15:ro(9,y,y.return)}var D=y.sibling;if(D!==null){D.return=y.return,se=D;break e}se=y.return}}var A=t.current;for(se=A;se!==null;){w=se;var M=w.child;if((w.subtreeFlags&2064)!==0&&M!==null)M.return=w,se=M;else e:for(w=A;se!==null;){if(P=se,(P.flags&2048)!==0)try{switch(P.tag){case 0:case 11:case 15:Tl(9,P)}}catch(pe){qe(P,P.return,pe)}if(P===w){se=null;break e}var Z=P.sibling;if(Z!==null){Z.return=P.return,se=Z;break e}se=P.return}}if(je=h,Fn(),en&&typeof en.onPostCommitFiberRoot=="function")try{en.onPostCommitFiberRoot(Bo,t)}catch{}c=!0}return c}finally{Le=s,Ut.transition=i}}return!1}function uh(t,i,s){i=Xr(s,i),i=Tp(t,i,1),t=$n(t,i,1),i=vt(),t!==null&&(Ri(t,1,i),Ct(t,i))}function qe(t,i,s){if(t.tag===3)uh(t,t,s);else for(;i!==null;){if(i.tag===3){uh(i,t,s);break}else if(i.tag===1){var c=i.stateNode;if(typeof i.type.getDerivedStateFromError=="function"||typeof c.componentDidCatch=="function"&&(Vn===null||!Vn.has(c))){t=Xr(s,t),t=Pp(i,t,1),i=$n(i,t,1),t=vt(),i!==null&&(Ri(i,1,t),Ct(i,t));break}}i=i.return}}function sk(t,i,s){var c=t.pingCache;c!==null&&c.delete(i),i=vt(),t.pingedLanes|=t.suspendedLanes&s,rt===t&&(at&s)===s&&(Ze===4||Ze===3&&(at&130023424)===at&&500>Ge()-uu?yr(t,0):au|=s),Ct(t,i)}function ch(t,i){i===0&&((t.mode&1)===0?i=1:(i=Uo,Uo<<=1,(Uo&130023424)===0&&(Uo=4194304)));var s=vt();t=mn(t,i),t!==null&&(Ri(t,i,s),Ct(t,s))}function ak(t){var i=t.memoizedState,s=0;i!==null&&(s=i.retryLane),ch(t,s)}function uk(t,i){var s=0;switch(t.tag){case 13:var c=t.stateNode,h=t.memoizedState;h!==null&&(s=h.retryLane);break;case 19:c=t.stateNode;break;default:throw Error(r(314))}c!==null&&c.delete(i),ch(t,s)}var fh;fh=function(t,i,s){if(t!==null)if(t.memoizedProps!==i.pendingProps||wt.current)St=!0;else{if((t.lanes&s)===0&&(i.flags&128)===0)return St=!1,Qw(t,i,s);St=(t.flags&131072)!==0}else St=!1,Ue&&(i.flags&1048576)!==0&&Wd(i,cl,i.index);switch(i.lanes=0,i.tag){case 2:var c=i.type;bl(t,i),t=i.pendingProps;var h=Vr(i,ct.current);Yr(i,s),h=Ba(null,i,c,t,h,s);var y=$a();return i.flags|=1,typeof h=="object"&&h!==null&&typeof h.render=="function"&&h.$$typeof===void 0?(i.tag=1,i.memoizedState=null,i.updateQueue=null,kt(c)?(y=!0,sl(i)):y=!1,i.memoizedState=h.state!==null&&h.state!==void 0?h.state:null,ja(i),h.updater=El,i.stateNode=h,h._reactInternals=i,Ga(i,c,t,s),i=Xa(null,i,c,!0,y,s)):(i.tag=0,Ue&&y&&Ea(i),yt(null,i,h,s),i=i.child),i;case 16:c=i.elementType;e:{switch(bl(t,i),t=i.pendingProps,h=c._init,c=h(c._payload),i.type=c,h=i.tag=fk(c),t=Kt(c,t),h){case 0:i=Qa(null,i,c,t,s);break e;case 1:i=zp(null,i,c,t,s);break e;case 11:i=Ap(null,i,c,t,s);break e;case 14:i=jp(null,i,c,Kt(c.type,t),s);break e}throw Error(r(306,c,""))}return i;case 0:return c=i.type,h=i.pendingProps,h=i.elementType===c?h:Kt(c,h),Qa(t,i,c,h,s);case 1:return c=i.type,h=i.pendingProps,h=i.elementType===c?h:Kt(c,h),zp(t,i,c,h,s);case 3:e:{if(Mp(i),t===null)throw Error(r(387));c=i.pendingProps,y=i.memoizedState,h=y.element,Zd(t,i),gl(i,c,null,s);var w=i.memoizedState;if(c=w.element,y.isDehydrated)if(y={element:c,isDehydrated:!1,cache:w.cache,pendingSuspenseBoundaries:w.pendingSuspenseBoundaries,transitions:w.transitions},i.updateQueue.baseState=y,i.memoizedState=y,i.flags&256){h=Xr(Error(r(423)),i),i=Fp(t,i,c,s,h);break e}else if(c!==h){h=Xr(Error(r(424)),i),i=Fp(t,i,c,s,h);break e}else for(jt=Dn(i.stateNode.containerInfo.firstChild),At=i,Ue=!0,Gt=null,s=Xd(i,null,c,s),i.child=s;s;)s.flags=s.flags&-3|4096,s=s.sibling;else{if(qr(),c===h){i=yn(t,i,s);break e}yt(t,i,c,s)}i=i.child}return i;case 5:return np(i),t===null&&_a(i),c=i.type,h=i.pendingProps,y=t!==null?t.memoizedProps:null,w=h.children,ya(c,h)?w=null:y!==null&&ya(c,y)&&(i.flags|=32),Dp(t,i),yt(t,i,w,s),i.child;case 6:return t===null&&_a(i),null;case 13:return Bp(t,i,s);case 4:return Oa(i,i.stateNode.containerInfo),c=i.pendingProps,t===null?i.child=Gr(i,null,c,s):yt(t,i,c,s),i.child;case 11:return c=i.type,h=i.pendingProps,h=i.elementType===c?h:Kt(c,h),Ap(t,i,c,h,s);case 7:return yt(t,i,i.pendingProps,s),i.child;case 8:return yt(t,i,i.pendingProps.children,s),i.child;case 12:return yt(t,i,i.pendingProps.children,s),i.child;case 10:e:{if(c=i.type._context,h=i.pendingProps,y=i.memoizedProps,w=h.value,ze(pl,c._currentValue),c._currentValue=w,y!==null)if(qt(y.value,w)){if(y.children===h.children&&!wt.current){i=yn(t,i,s);break e}}else for(y=i.child,y!==null&&(y.return=i);y!==null;){var P=y.dependencies;if(P!==null){w=y.child;for(var R=P.firstContext;R!==null;){if(R.context===c){if(y.tag===1){R=gn(-1,s&-s),R.tag=2;var F=y.updateQueue;if(F!==null){F=F.shared;var K=F.pending;K===null?R.next=R:(R.next=K.next,K.next=R),F.pending=R}}y.lanes|=s,R=y.alternate,R!==null&&(R.lanes|=s),Na(y.return,s,i),P.lanes|=s;break}R=R.next}}else if(y.tag===10)w=y.type===i.type?null:y.child;else if(y.tag===18){if(w=y.return,w===null)throw Error(r(341));w.lanes|=s,P=w.alternate,P!==null&&(P.lanes|=s),Na(w,s,i),w=y.sibling}else w=y.child;if(w!==null)w.return=y;else for(w=y;w!==null;){if(w===i){w=null;break}if(y=w.sibling,y!==null){y.return=w.return,w=y;break}w=w.return}y=w}yt(t,i,h.children,s),i=i.child}return i;case 9:return h=i.type,c=i.pendingProps.children,Yr(i,s),h=Bt(h),c=c(h),i.flags|=1,yt(t,i,c,s),i.child;case 14:return c=i.type,h=Kt(c,i.pendingProps),h=Kt(c.type,h),jp(t,i,c,h,s);case 15:return Op(t,i,i.type,i.pendingProps,s);case 17:return c=i.type,h=i.pendingProps,h=i.elementType===c?h:Kt(c,h),bl(t,i),i.tag=1,kt(c)?(t=!0,sl(i)):t=!1,Yr(i,s),bp(i,c,h),Ga(i,c,h,s),Xa(null,i,c,!0,t,s);case 19:return Up(t,i,s);case 22:return Lp(t,i,s)}throw Error(r(156,i.tag))};function dh(t,i){return Hf(t,i)}function ck(t,i,s,c){this.tag=t,this.key=s,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=i,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=c,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Vt(t,i,s,c){return new ck(t,i,s,c)}function yu(t){return t=t.prototype,!(!t||!t.isReactComponent)}function fk(t){if(typeof t=="function")return yu(t)?1:0;if(t!=null){if(t=t.$$typeof,t===te)return 11;if(t===q)return 14}return 2}function Gn(t,i){var s=t.alternate;return s===null?(s=Vt(t.tag,i,t.key,t.mode),s.elementType=t.elementType,s.type=t.type,s.stateNode=t.stateNode,s.alternate=t,t.alternate=s):(s.pendingProps=i,s.type=t.type,s.flags=0,s.subtreeFlags=0,s.deletions=null),s.flags=t.flags&14680064,s.childLanes=t.childLanes,s.lanes=t.lanes,s.child=t.child,s.memoizedProps=t.memoizedProps,s.memoizedState=t.memoizedState,s.updateQueue=t.updateQueue,i=t.dependencies,s.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext},s.sibling=t.sibling,s.index=t.index,s.ref=t.ref,s}function Dl(t,i,s,c,h,y){var w=2;if(c=t,typeof t=="function")yu(t)&&(w=1);else if(typeof t=="string")w=5;else e:switch(t){case Q:return xr(s.children,h,y,i);case W:w=8,h|=8;break;case fe:return t=Vt(12,s,i,h|2),t.elementType=fe,t.lanes=y,t;case me:return t=Vt(13,s,i,h),t.elementType=me,t.lanes=y,t;case H:return t=Vt(19,s,i,h),t.elementType=H,t.lanes=y,t;case he:return zl(s,h,y,i);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case z:w=10;break e;case ne:w=9;break e;case te:w=11;break e;case q:w=14;break e;case re:w=16,c=null;break e}throw Error(r(130,t==null?t:typeof t,""))}return i=Vt(w,s,i,h),i.elementType=t,i.type=c,i.lanes=y,i}function xr(t,i,s,c){return t=Vt(7,t,c,i),t.lanes=s,t}function zl(t,i,s,c){return t=Vt(22,t,c,i),t.elementType=he,t.lanes=s,t.stateNode={isHidden:!1},t}function vu(t,i,s){return t=Vt(6,t,null,i),t.lanes=s,t}function xu(t,i,s){return i=Vt(4,t.children!==null?t.children:[],t.key,i),i.lanes=s,i.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},i}function dk(t,i,s,c,h){this.tag=i,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=qs(0),this.expirationTimes=qs(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=qs(0),this.identifierPrefix=c,this.onRecoverableError=h,this.mutableSourceEagerHydrationData=null}function wu(t,i,s,c,h,y,w,P,R){return t=new dk(t,i,s,P,R),i===1?(i=1,y===!0&&(i|=8)):i=0,y=Vt(3,null,null,i),t.current=y,y.stateNode=t,y.memoizedState={element:c,isDehydrated:s,cache:null,transitions:null,pendingSuspenseBoundaries:null},ja(y),t}function pk(t,i,s){var c=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:L,key:c==null?null:""+c,children:t,containerInfo:i,implementation:s}}function ph(t){if(!t)return Mn;t=t._reactInternals;e:{if(sr(t)!==t||t.tag!==1)throw Error(r(170));var i=t;do{switch(i.tag){case 3:i=i.stateNode.context;break e;case 1:if(kt(i.type)){i=i.stateNode.__reactInternalMemoizedMergedChildContext;break e}}i=i.return}while(i!==null);throw Error(r(171))}if(t.tag===1){var s=t.type;if(kt(s))return $d(t,s,i)}return i}function hh(t,i,s,c,h,y,w,P,R){return t=wu(s,c,!0,t,h,y,w,P,R),t.context=ph(null),s=t.current,c=vt(),h=Hn(s),y=gn(c,h),y.callback=i??null,$n(s,y,h),t.current.lanes=h,Ri(t,h,c),Ct(t,c),t}function Ml(t,i,s,c){var h=i.current,y=vt(),w=Hn(h);return s=ph(s),i.context===null?i.context=s:i.pendingContext=s,i=gn(y,w),i.payload={element:t},c=c===void 0?null:c,c!==null&&(i.callback=c),t=$n(h,i,w),t!==null&&(Xt(t,h,w,y),ml(t,h,w)),w}function Fl(t){if(t=t.current,!t.child)return null;switch(t.child.tag){case 5:return t.child.stateNode;default:return t.child.stateNode}}function mh(t,i){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var s=t.retryLane;t.retryLane=s!==0&&s<i?s:i}}function ku(t,i){mh(t,i),(t=t.alternate)&&mh(t,i)}function hk(){return null}var gh=typeof reportError=="function"?reportError:function(t){console.error(t)};function Su(t){this._internalRoot=t}Bl.prototype.render=Su.prototype.render=function(t){var i=this._internalRoot;if(i===null)throw Error(r(409));Ml(t,i,null,null)},Bl.prototype.unmount=Su.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var i=t.containerInfo;gr(function(){Ml(null,t,null,null)}),i[fn]=null}};function Bl(t){this._internalRoot=t}Bl.prototype.unstable_scheduleHydration=function(t){if(t){var i=Zf();t={blockedOn:null,target:t,priority:i};for(var s=0;s<jn.length&&i!==0&&i<jn[s].priority;s++);jn.splice(s,0,t),s===0&&nd(t)}};function Eu(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function $l(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11&&(t.nodeType!==8||t.nodeValue!==" react-mount-point-unstable "))}function yh(){}function mk(t,i,s,c,h){if(h){if(typeof c=="function"){var y=c;c=function(){var F=Fl(w);y.call(F)}}var w=hh(i,c,t,0,null,!1,!1,"",yh);return t._reactRootContainer=w,t[fn]=w.current,Wi(t.nodeType===8?t.parentNode:t),gr(),w}for(;h=t.lastChild;)t.removeChild(h);if(typeof c=="function"){var P=c;c=function(){var F=Fl(R);P.call(F)}}var R=wu(t,0,!1,null,null,!1,!1,"",yh);return t._reactRootContainer=R,t[fn]=R.current,Wi(t.nodeType===8?t.parentNode:t),gr(function(){Ml(i,R,s,c)}),R}function Ul(t,i,s,c,h){var y=s._reactRootContainer;if(y){var w=y;if(typeof h=="function"){var P=h;h=function(){var R=Fl(w);P.call(R)}}Ml(i,w,t,h)}else w=mk(s,i,t,h,c);return Fl(w)}Xf=function(t){switch(t.tag){case 3:var i=t.stateNode;if(i.current.memoizedState.isDehydrated){var s=Ii(i.pendingLanes);s!==0&&(Gs(i,s|1),Ct(i,Ge()),(je&6)===0&&(ei=Ge()+500,Fn()))}break;case 13:gr(function(){var c=mn(t,1);if(c!==null){var h=vt();Xt(c,t,1,h)}}),ku(t,1)}},Ks=function(t){if(t.tag===13){var i=mn(t,134217728);if(i!==null){var s=vt();Xt(i,t,134217728,s)}ku(t,134217728)}},Jf=function(t){if(t.tag===13){var i=Hn(t),s=mn(t,i);if(s!==null){var c=vt();Xt(s,t,i,c)}ku(t,i)}},Zf=function(){return Le},ed=function(t,i){var s=Le;try{return Le=t,i()}finally{Le=s}},Bs=function(t,i,s){switch(i){case"input":if(Rr(t,s),i=s.name,s.type==="radio"&&i!=null){for(s=t;s.parentNode;)s=s.parentNode;for(s=s.querySelectorAll("input[name="+JSON.stringify(""+i)+'][type="radio"]'),i=0;i<s.length;i++){var c=s[i];if(c!==t&&c.form===t.form){var h=ol(c);if(!h)throw Error(r(90));un(c),Rr(c,h)}}}break;case"textarea":Lo(t,s);break;case"select":i=s.value,i!=null&&Pn(t,!!s.multiple,i,!1)}},Mf=hu,Ff=gr;var gk={usingClientEntryPoint:!1,Events:[Gi,$r,ol,Df,zf,hu]},so={findFiberByHostInstance:ar,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},yk={bundleType:so.bundleType,version:so.version,rendererPackageName:so.rendererPackageName,rendererConfig:so.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:$.ReactCurrentDispatcher,findHostInstanceByFiber:function(t){return t=Vf(t),t===null?null:t.stateNode},findFiberByHostInstance:so.findFiberByHostInstance||hk,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Vl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Vl.isDisabled&&Vl.supportsFiber)try{Bo=Vl.inject(yk),en=Vl}catch{}}return bt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=gk,bt.createPortal=function(t,i){var s=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Eu(i))throw Error(r(200));return pk(t,i,null,s)},bt.createRoot=function(t,i){if(!Eu(t))throw Error(r(299));var s=!1,c="",h=gh;return i!=null&&(i.unstable_strictMode===!0&&(s=!0),i.identifierPrefix!==void 0&&(c=i.identifierPrefix),i.onRecoverableError!==void 0&&(h=i.onRecoverableError)),i=wu(t,1,!1,null,null,s,!1,c,h),t[fn]=i.current,Wi(t.nodeType===8?t.parentNode:t),new Su(i)},bt.findDOMNode=function(t){if(t==null)return null;if(t.nodeType===1)return t;var i=t._reactInternals;if(i===void 0)throw typeof t.render=="function"?Error(r(188)):(t=Object.keys(t).join(","),Error(r(268,t)));return t=Vf(i),t=t===null?null:t.stateNode,t},bt.flushSync=function(t){return gr(t)},bt.hydrate=function(t,i,s){if(!$l(i))throw Error(r(200));return Ul(null,t,i,!0,s)},bt.hydrateRoot=function(t,i,s){if(!Eu(t))throw Error(r(405));var c=s!=null&&s.hydratedSources||null,h=!1,y="",w=gh;if(s!=null&&(s.unstable_strictMode===!0&&(h=!0),s.identifierPrefix!==void 0&&(y=s.identifierPrefix),s.onRecoverableError!==void 0&&(w=s.onRecoverableError)),i=hh(i,null,t,1,s??null,h,!1,y,w),t[fn]=i.current,Wi(t),c)for(t=0;t<c.length;t++)s=c[t],h=s._getVersion,h=h(s._source),i.mutableSourceEagerHydrationData==null?i.mutableSourceEagerHydrationData=[s,h]:i.mutableSourceEagerHydrationData.push(s,h);return new Bl(i)},bt.render=function(t,i,s){if(!$l(i))throw Error(r(200));return Ul(null,t,i,!1,s)},bt.unmountComponentAtNode=function(t){if(!$l(t))throw Error(r(40));return t._reactRootContainer?(gr(function(){Ul(null,null,t,!1,function(){t._reactRootContainer=null,t[fn]=null})}),!0):!1},bt.unstable_batchedUpdates=hu,bt.unstable_renderSubtreeIntoContainer=function(t,i,s,c){if(!$l(s))throw Error(r(200));if(t==null||t._reactInternals===void 0)throw Error(r(38));return Ul(t,i,s,!1,c)},bt.version="18.3.1-next-f1338f8080-20240426",bt}var bh;function og(){if(bh)return _u.exports;bh=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(n){console.error(n)}}return e(),_u.exports=bk(),_u.exports}var _h;function _k(){if(_h)return Wl;_h=1;var e=og();return Wl.createRoot=e.createRoot,Wl.hydrateRoot=e.hydrateRoot,Wl}var Tk=_k(),zc=og();const Pk=ws(zc);/**
41
+ * @remix-run/router v1.23.2
42
+ *
43
+ * Copyright (c) Remix Software Inc.
44
+ *
45
+ * This source code is licensed under the MIT license found in the
46
+ * LICENSE.md file in the root directory of this source tree.
47
+ *
48
+ * @license MIT
49
+ */function wo(){return wo=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},wo.apply(this,arguments)}var Xn;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Xn||(Xn={}));const Th="popstate";function Ik(e){e===void 0&&(e={});function n(o,l){let{pathname:a,search:u,hash:f}=o.location;return cc("",{pathname:a,search:u,hash:f},l.state&&l.state.usr||null,l.state&&l.state.key||"default")}function r(o,l){return typeof l=="string"?l:ls(l)}return Nk(n,r,null,e)}function Xe(e,n){if(e===!1||e===null||typeof e>"u")throw new Error(n)}function Mc(e,n){if(!e){typeof console<"u"&&console.warn(n);try{throw new Error(n)}catch{}}}function Rk(){return Math.random().toString(36).substr(2,8)}function Ph(e,n){return{usr:e.state,key:e.key,idx:n}}function cc(e,n,r,o){return r===void 0&&(r=null),wo({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof n=="string"?gi(n):n,{state:r,key:n&&n.key||o||Rk()})}function ls(e){let{pathname:n="/",search:r="",hash:o=""}=e;return r&&r!=="?"&&(n+=r.charAt(0)==="?"?r:"?"+r),o&&o!=="#"&&(n+=o.charAt(0)==="#"?o:"#"+o),n}function gi(e){let n={};if(e){let r=e.indexOf("#");r>=0&&(n.hash=e.substr(r),e=e.substr(0,r));let o=e.indexOf("?");o>=0&&(n.search=e.substr(o),e=e.substr(0,o)),e&&(n.pathname=e)}return n}function Nk(e,n,r,o){o===void 0&&(o={});let{window:l=document.defaultView,v5Compat:a=!1}=o,u=l.history,f=Xn.Pop,d=null,p=g();p==null&&(p=0,u.replaceState(wo({},u.state,{idx:p}),""));function g(){return(u.state||{idx:null}).idx}function m(){f=Xn.Pop;let E=g(),I=E==null?null:E-p;p=E,d&&d({action:f,location:C.location,delta:I})}function v(E,I){f=Xn.Push;let O=cc(C.location,E,I);p=g()+1;let N=Ph(O,p),$=C.createHref(O);try{u.pushState(N,"",$)}catch(Y){if(Y instanceof DOMException&&Y.name==="DataCloneError")throw Y;l.location.assign($)}a&&d&&d({action:f,location:C.location,delta:1})}function x(E,I){f=Xn.Replace;let O=cc(C.location,E,I);p=g();let N=Ph(O,p),$=C.createHref(O);u.replaceState(N,"",$),a&&d&&d({action:f,location:C.location,delta:0})}function k(E){let I=l.location.origin!=="null"?l.location.origin:l.location.href,O=typeof E=="string"?E:ls(E);return O=O.replace(/ $/,"%20"),Xe(I,"No window.location.(origin|href) available to create URL for href: "+O),new URL(O,I)}let C={get action(){return f},get location(){return e(l,u)},listen(E){if(d)throw new Error("A history only accepts one active listener");return l.addEventListener(Th,m),d=E,()=>{l.removeEventListener(Th,m),d=null}},createHref(E){return n(l,E)},createURL:k,encodeLocation(E){let I=k(E);return{pathname:I.pathname,search:I.search,hash:I.hash}},push:v,replace:x,go(E){return u.go(E)}};return C}var Ih;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Ih||(Ih={}));function Ak(e,n,r){return r===void 0&&(r="/"),jk(e,n,r)}function jk(e,n,r,o){let l=typeof n=="string"?gi(n):n,a=Fc(l.pathname||"/",r);if(a==null)return null;let u=lg(e);Ok(u);let f=null;for(let d=0;f==null&&d<u.length;++d){let p=qk(a);f=Vk(u[d],p)}return f}function lg(e,n,r,o){n===void 0&&(n=[]),r===void 0&&(r=[]),o===void 0&&(o="");let l=(a,u,f)=>{let d={relativePath:f===void 0?a.path||"":f,caseSensitive:a.caseSensitive===!0,childrenIndex:u,route:a};d.relativePath.startsWith("/")&&(Xe(d.relativePath.startsWith(o),'Absolute route path "'+d.relativePath+'" nested under path '+('"'+o+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),d.relativePath=d.relativePath.slice(o.length));let p=Zn([o,d.relativePath]),g=r.concat(d);a.children&&a.children.length>0&&(Xe(a.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+p+'".')),lg(a.children,n,g,p)),!(a.path==null&&!a.index)&&n.push({path:p,score:$k(p,a.index),routesMeta:g})};return e.forEach((a,u)=>{var f;if(a.path===""||!((f=a.path)!=null&&f.includes("?")))l(a,u);else for(let d of sg(a.path))l(a,u,d)}),n}function sg(e){let n=e.split("/");if(n.length===0)return[];let[r,...o]=n,l=r.endsWith("?"),a=r.replace(/\?$/,"");if(o.length===0)return l?[a,""]:[a];let u=sg(o.join("/")),f=[];return f.push(...u.map(d=>d===""?a:[a,d].join("/"))),l&&f.push(...u),f.map(d=>e.startsWith("/")&&d===""?"/":d)}function Ok(e){e.sort((n,r)=>n.score!==r.score?r.score-n.score:Uk(n.routesMeta.map(o=>o.childrenIndex),r.routesMeta.map(o=>o.childrenIndex)))}const Lk=/^:[\w-]+$/,Dk=3,zk=2,Mk=1,Fk=10,Bk=-2,Rh=e=>e==="*";function $k(e,n){let r=e.split("/"),o=r.length;return r.some(Rh)&&(o+=Bk),n&&(o+=zk),r.filter(l=>!Rh(l)).reduce((l,a)=>l+(Lk.test(a)?Dk:a===""?Mk:Fk),o)}function Uk(e,n){return e.length===n.length&&e.slice(0,-1).every((o,l)=>o===n[l])?e[e.length-1]-n[n.length-1]:0}function Vk(e,n,r){let{routesMeta:o}=e,l={},a="/",u=[];for(let f=0;f<o.length;++f){let d=o[f],p=f===o.length-1,g=a==="/"?n:n.slice(a.length)||"/",m=Wk({path:d.relativePath,caseSensitive:d.caseSensitive,end:p},g),v=d.route;if(!m)return null;Object.assign(l,m.params),u.push({params:l,pathname:Zn([a,m.pathname]),pathnameBase:Xk(Zn([a,m.pathnameBase])),route:v}),m.pathnameBase!=="/"&&(a=Zn([a,m.pathnameBase]))}return u}function Wk(e,n){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,o]=Hk(e.path,e.caseSensitive,e.end),l=n.match(r);if(!l)return null;let a=l[0],u=a.replace(/(.)\/+$/,"$1"),f=l.slice(1);return{params:o.reduce((p,g,m)=>{let{paramName:v,isOptional:x}=g;if(v==="*"){let C=f[m]||"";u=a.slice(0,a.length-C.length).replace(/(.)\/+$/,"$1")}const k=f[m];return x&&!k?p[v]=void 0:p[v]=(k||"").replace(/%2F/g,"/"),p},{}),pathname:a,pathnameBase:u,pattern:e}}function Hk(e,n,r){n===void 0&&(n=!1),r===void 0&&(r=!0),Mc(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let o=[],l="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(u,f,d)=>(o.push({paramName:f,isOptional:d!=null}),d?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(o.push({paramName:"*"}),l+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?l+="\\/*$":e!==""&&e!=="/"&&(l+="(?:(?=\\/|$))"),[new RegExp(l,n?void 0:"i"),o]}function qk(e){try{return e.split("/").map(n=>decodeURIComponent(n).replace(/\//g,"%2F")).join("/")}catch(n){return Mc(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+n+").")),e}}function Fc(e,n){if(n==="/")return e;if(!e.toLowerCase().startsWith(n.toLowerCase()))return null;let r=n.endsWith("/")?n.length-1:n.length,o=e.charAt(r);return o&&o!=="/"?null:e.slice(r)||"/"}const Gk=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Kk=e=>Gk.test(e);function Yk(e,n){n===void 0&&(n="/");let{pathname:r,search:o="",hash:l=""}=typeof e=="string"?gi(e):e,a;if(r)if(Kk(r))a=r;else{if(r.includes("//")){let u=r;r=r.replace(/\/\/+/g,"/"),Mc(!1,"Pathnames cannot have embedded double slashes - normalizing "+(u+" -> "+r))}r.startsWith("/")?a=Nh(r.substring(1),"/"):a=Nh(r,n)}else a=n;return{pathname:a,search:Jk(o),hash:Zk(l)}}function Nh(e,n){let r=n.replace(/\/+$/,"").split("/");return e.split("/").forEach(l=>{l===".."?r.length>1&&r.pop():l!=="."&&r.push(l)}),r.length>1?r.join("/"):"/"}function Iu(e,n,r,o){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+n+"` field ["+JSON.stringify(o)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function Qk(e){return e.filter((n,r)=>r===0||n.route.path&&n.route.path.length>0)}function ag(e,n){let r=Qk(e);return n?r.map((o,l)=>l===r.length-1?o.pathname:o.pathnameBase):r.map(o=>o.pathnameBase)}function ug(e,n,r,o){o===void 0&&(o=!1);let l;typeof e=="string"?l=gi(e):(l=wo({},e),Xe(!l.pathname||!l.pathname.includes("?"),Iu("?","pathname","search",l)),Xe(!l.pathname||!l.pathname.includes("#"),Iu("#","pathname","hash",l)),Xe(!l.search||!l.search.includes("#"),Iu("#","search","hash",l)));let a=e===""||l.pathname==="",u=a?"/":l.pathname,f;if(u==null)f=r;else{let m=n.length-1;if(!o&&u.startsWith("..")){let v=u.split("/");for(;v[0]==="..";)v.shift(),m-=1;l.pathname=v.join("/")}f=m>=0?n[m]:"/"}let d=Yk(l,f),p=u&&u!=="/"&&u.endsWith("/"),g=(a||u===".")&&r.endsWith("/");return!d.pathname.endsWith("/")&&(p||g)&&(d.pathname+="/"),d}const Zn=e=>e.join("/").replace(/\/\/+/g,"/"),Xk=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Jk=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Zk=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function e1(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const cg=["post","put","patch","delete"];new Set(cg);const t1=["get",...cg];new Set(t1);/**
50
+ * React Router v6.30.3
51
+ *
52
+ * Copyright (c) Remix Software Inc.
53
+ *
54
+ * This source code is licensed under the MIT license found in the
55
+ * LICENSE.md file in the root directory of this source tree.
56
+ *
57
+ * @license MIT
58
+ */function ko(){return ko=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},ko.apply(this,arguments)}const Bc=b.createContext(null),n1=b.createContext(null),Tr=b.createContext(null),Ss=b.createContext(null),bn=b.createContext({outlet:null,matches:[],isDataRoute:!1}),fg=b.createContext(null);function r1(e,n){let{relative:r}=n===void 0?{}:n;bo()||Xe(!1);let{basename:o,navigator:l}=b.useContext(Tr),{hash:a,pathname:u,search:f}=pg(e,{relative:r}),d=u;return o!=="/"&&(d=u==="/"?o:Zn([o,u])),l.createHref({pathname:d,search:f,hash:a})}function bo(){return b.useContext(Ss)!=null}function Es(){return bo()||Xe(!1),b.useContext(Ss).location}function dg(e){b.useContext(Tr).static||b.useLayoutEffect(e)}function i1(){let{isDataRoute:e}=b.useContext(bn);return e?x1():o1()}function o1(){bo()||Xe(!1);let e=b.useContext(Bc),{basename:n,future:r,navigator:o}=b.useContext(Tr),{matches:l}=b.useContext(bn),{pathname:a}=Es(),u=JSON.stringify(ag(l,r.v7_relativeSplatPath)),f=b.useRef(!1);return dg(()=>{f.current=!0}),b.useCallback(function(p,g){if(g===void 0&&(g={}),!f.current)return;if(typeof p=="number"){o.go(p);return}let m=ug(p,JSON.parse(u),a,g.relative==="path");e==null&&n!=="/"&&(m.pathname=m.pathname==="/"?n:Zn([n,m.pathname])),(g.replace?o.replace:o.push)(m,g.state,g)},[n,o,u,a,e])}const l1=b.createContext(null);function s1(e){let n=b.useContext(bn).outlet;return n&&b.createElement(l1.Provider,{value:e},n)}function $c(){let{matches:e}=b.useContext(bn),n=e[e.length-1];return n?n.params:{}}function pg(e,n){let{relative:r}=n===void 0?{}:n,{future:o}=b.useContext(Tr),{matches:l}=b.useContext(bn),{pathname:a}=Es(),u=JSON.stringify(ag(l,o.v7_relativeSplatPath));return b.useMemo(()=>ug(e,JSON.parse(u),a,r==="path"),[e,u,a,r])}function a1(e,n){return u1(e,n)}function u1(e,n,r,o){bo()||Xe(!1);let{navigator:l}=b.useContext(Tr),{matches:a}=b.useContext(bn),u=a[a.length-1],f=u?u.params:{};u&&u.pathname;let d=u?u.pathnameBase:"/";u&&u.route;let p=Es(),g;if(n){var m;let E=typeof n=="string"?gi(n):n;d==="/"||(m=E.pathname)!=null&&m.startsWith(d)||Xe(!1),g=E}else g=p;let v=g.pathname||"/",x=v;if(d!=="/"){let E=d.replace(/^\//,"").split("/");x="/"+v.replace(/^\//,"").split("/").slice(E.length).join("/")}let k=Ak(e,{pathname:x}),C=h1(k&&k.map(E=>Object.assign({},E,{params:Object.assign({},f,E.params),pathname:Zn([d,l.encodeLocation?l.encodeLocation(E.pathname).pathname:E.pathname]),pathnameBase:E.pathnameBase==="/"?d:Zn([d,l.encodeLocation?l.encodeLocation(E.pathnameBase).pathname:E.pathnameBase])})),a,r,o);return n&&C?b.createElement(Ss.Provider,{value:{location:ko({pathname:"/",search:"",hash:"",state:null,key:"default"},g),navigationType:Xn.Pop}},C):C}function c1(){let e=v1(),n=e1(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,l={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return b.createElement(b.Fragment,null,b.createElement("h2",null,"Unexpected Application Error!"),b.createElement("h3",{style:{fontStyle:"italic"}},n),r?b.createElement("pre",{style:l},r):null,null)}const f1=b.createElement(c1,null);class d1 extends b.Component{constructor(n){super(n),this.state={location:n.location,revalidation:n.revalidation,error:n.error}}static getDerivedStateFromError(n){return{error:n}}static getDerivedStateFromProps(n,r){return r.location!==n.location||r.revalidation!=="idle"&&n.revalidation==="idle"?{error:n.error,location:n.location,revalidation:n.revalidation}:{error:n.error!==void 0?n.error:r.error,location:r.location,revalidation:n.revalidation||r.revalidation}}componentDidCatch(n,r){console.error("React Router caught the following error during render",n,r)}render(){return this.state.error!==void 0?b.createElement(bn.Provider,{value:this.props.routeContext},b.createElement(fg.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function p1(e){let{routeContext:n,match:r,children:o}=e,l=b.useContext(Bc);return l&&l.static&&l.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(l.staticContext._deepestRenderedBoundaryId=r.route.id),b.createElement(bn.Provider,{value:n},o)}function h1(e,n,r,o){var l;if(n===void 0&&(n=[]),r===void 0&&(r=null),o===void 0&&(o=null),e==null){var a;if(!r)return null;if(r.errors)e=r.matches;else if((a=o)!=null&&a.v7_partialHydration&&n.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let u=e,f=(l=r)==null?void 0:l.errors;if(f!=null){let g=u.findIndex(m=>m.route.id&&(f==null?void 0:f[m.route.id])!==void 0);g>=0||Xe(!1),u=u.slice(0,Math.min(u.length,g+1))}let d=!1,p=-1;if(r&&o&&o.v7_partialHydration)for(let g=0;g<u.length;g++){let m=u[g];if((m.route.HydrateFallback||m.route.hydrateFallbackElement)&&(p=g),m.route.id){let{loaderData:v,errors:x}=r,k=m.route.loader&&v[m.route.id]===void 0&&(!x||x[m.route.id]===void 0);if(m.route.lazy||k){d=!0,p>=0?u=u.slice(0,p+1):u=[u[0]];break}}}return u.reduceRight((g,m,v)=>{let x,k=!1,C=null,E=null;r&&(x=f&&m.route.id?f[m.route.id]:void 0,C=m.route.errorElement||f1,d&&(p<0&&v===0?(w1("route-fallback"),k=!0,E=null):p===v&&(k=!0,E=m.route.hydrateFallbackElement||null)));let I=n.concat(u.slice(0,v+1)),O=()=>{let N;return x?N=C:k?N=E:m.route.Component?N=b.createElement(m.route.Component,null):m.route.element?N=m.route.element:N=g,b.createElement(p1,{match:m,routeContext:{outlet:g,matches:I,isDataRoute:r!=null},children:N})};return r&&(m.route.ErrorBoundary||m.route.errorElement||v===0)?b.createElement(d1,{location:r.location,revalidation:r.revalidation,component:C,error:x,children:O(),routeContext:{outlet:null,matches:I,isDataRoute:!0}}):O()},null)}var hg=(function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e})(hg||{}),mg=(function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e})(mg||{});function m1(e){let n=b.useContext(Bc);return n||Xe(!1),n}function g1(e){let n=b.useContext(n1);return n||Xe(!1),n}function y1(e){let n=b.useContext(bn);return n||Xe(!1),n}function gg(e){let n=y1(),r=n.matches[n.matches.length-1];return r.route.id||Xe(!1),r.route.id}function v1(){var e;let n=b.useContext(fg),r=g1(),o=gg();return n!==void 0?n:(e=r.errors)==null?void 0:e[o]}function x1(){let{router:e}=m1(hg.UseNavigateStable),n=gg(mg.UseNavigateStable),r=b.useRef(!1);return dg(()=>{r.current=!0}),b.useCallback(function(l,a){a===void 0&&(a={}),r.current&&(typeof l=="number"?e.navigate(l):e.navigate(l,ko({fromRouteId:n},a)))},[e,n])}const Ah={};function w1(e,n,r){Ah[e]||(Ah[e]=!0)}function k1(e,n){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function S1(e){return s1(e.context)}function fc(e){Xe(!1)}function E1(e){let{basename:n="/",children:r=null,location:o,navigationType:l=Xn.Pop,navigator:a,static:u=!1,future:f}=e;bo()&&Xe(!1);let d=n.replace(/^\/*/,"/"),p=b.useMemo(()=>({basename:d,navigator:a,static:u,future:ko({v7_relativeSplatPath:!1},f)}),[d,f,a,u]);typeof o=="string"&&(o=gi(o));let{pathname:g="/",search:m="",hash:v="",state:x=null,key:k="default"}=o,C=b.useMemo(()=>{let E=Fc(g,d);return E==null?null:{location:{pathname:E,search:m,hash:v,state:x,key:k},navigationType:l}},[d,g,m,v,x,k,l]);return C==null?null:b.createElement(Tr.Provider,{value:p},b.createElement(Ss.Provider,{children:r,value:C}))}function C1(e){let{children:n,location:r}=e;return a1(dc(n),r)}new Promise(()=>{});function dc(e,n){n===void 0&&(n=[]);let r=[];return b.Children.forEach(e,(o,l)=>{if(!b.isValidElement(o))return;let a=[...n,l];if(o.type===b.Fragment){r.push.apply(r,dc(o.props.children,a));return}o.type!==fc&&Xe(!1),!o.props.index||!o.props.children||Xe(!1);let u={id:o.props.id||a.join("-"),caseSensitive:o.props.caseSensitive,element:o.props.element,Component:o.props.Component,index:o.props.index,path:o.props.path,loader:o.props.loader,action:o.props.action,errorElement:o.props.errorElement,ErrorBoundary:o.props.ErrorBoundary,hasErrorBoundary:o.props.ErrorBoundary!=null||o.props.errorElement!=null,shouldRevalidate:o.props.shouldRevalidate,handle:o.props.handle,lazy:o.props.lazy};o.props.children&&(u.children=dc(o.props.children,a)),r.push(u)}),r}/**
59
+ * React Router DOM v6.30.3
60
+ *
61
+ * Copyright (c) Remix Software Inc.
62
+ *
63
+ * This source code is licensed under the MIT license found in the
64
+ * LICENSE.md file in the root directory of this source tree.
65
+ *
66
+ * @license MIT
67
+ */function pc(){return pc=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},pc.apply(this,arguments)}function b1(e,n){if(e==null)return{};var r={},o=Object.keys(e),l,a;for(a=0;a<o.length;a++)l=o[a],!(n.indexOf(l)>=0)&&(r[l]=e[l]);return r}function _1(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function T1(e,n){return e.button===0&&(!n||n==="_self")&&!_1(e)}const P1=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],I1="6";try{window.__reactRouterVersion=I1}catch{}const R1="startTransition",jh=ks[R1];function N1(e){let{basename:n,children:r,future:o,window:l}=e,a=b.useRef();a.current==null&&(a.current=Ik({window:l,v5Compat:!0}));let u=a.current,[f,d]=b.useState({action:u.action,location:u.location}),{v7_startTransition:p}=o||{},g=b.useCallback(m=>{p&&jh?jh(()=>d(m)):d(m)},[d,p]);return b.useLayoutEffect(()=>u.listen(g),[u,g]),b.useEffect(()=>k1(o),[o]),b.createElement(E1,{basename:n,children:r,location:f.location,navigationType:f.action,navigator:u,future:o})}const A1=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",j1=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,er=b.forwardRef(function(n,r){let{onClick:o,relative:l,reloadDocument:a,replace:u,state:f,target:d,to:p,preventScrollReset:g,viewTransition:m}=n,v=b1(n,P1),{basename:x}=b.useContext(Tr),k,C=!1;if(typeof p=="string"&&j1.test(p)&&(k=p,A1))try{let N=new URL(window.location.href),$=p.startsWith("//")?new URL(N.protocol+p):new URL(p),Y=Fc($.pathname,x);$.origin===N.origin&&Y!=null?p=Y+$.search+$.hash:C=!0}catch{}let E=r1(p,{relative:l}),I=O1(p,{replace:u,state:f,target:d,preventScrollReset:g,relative:l,viewTransition:m});function O(N){o&&o(N),N.defaultPrevented||I(N)}return b.createElement("a",pc({},v,{href:k||E,onClick:C||a?o:O,ref:r,target:d}))});var Oh;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Oh||(Oh={}));var Lh;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Lh||(Lh={}));function O1(e,n){let{target:r,replace:o,state:l,preventScrollReset:a,relative:u,viewTransition:f}=n===void 0?{}:n,d=i1(),p=Es(),g=pg(e,{relative:u});return b.useCallback(m=>{if(T1(m,r)){m.preventDefault();let v=o!==void 0?o:ls(p)===ls(g);d(e,{replace:v,state:l,preventScrollReset:a,relative:u,viewTransition:f})}},[p,d,g,o,l,r,e,a,u,f])}/**
68
+ * @license lucide-react v0.563.0 - ISC
69
+ *
70
+ * This source code is licensed under the ISC license.
71
+ * See the LICENSE file in the root directory of this source tree.
72
+ */const yg=(...e)=>e.filter((n,r,o)=>!!n&&n.trim()!==""&&o.indexOf(n)===r).join(" ").trim();/**
73
+ * @license lucide-react v0.563.0 - ISC
74
+ *
75
+ * This source code is licensed under the ISC license.
76
+ * See the LICENSE file in the root directory of this source tree.
77
+ */const L1=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
78
+ * @license lucide-react v0.563.0 - ISC
79
+ *
80
+ * This source code is licensed under the ISC license.
81
+ * See the LICENSE file in the root directory of this source tree.
82
+ */const D1=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(n,r,o)=>o?o.toUpperCase():r.toLowerCase());/**
83
+ * @license lucide-react v0.563.0 - ISC
84
+ *
85
+ * This source code is licensed under the ISC license.
86
+ * See the LICENSE file in the root directory of this source tree.
87
+ */const Dh=e=>{const n=D1(e);return n.charAt(0).toUpperCase()+n.slice(1)};/**
88
+ * @license lucide-react v0.563.0 - ISC
89
+ *
90
+ * This source code is licensed under the ISC license.
91
+ * See the LICENSE file in the root directory of this source tree.
92
+ */var z1={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
93
+ * @license lucide-react v0.563.0 - ISC
94
+ *
95
+ * This source code is licensed under the ISC license.
96
+ * See the LICENSE file in the root directory of this source tree.
97
+ */const M1=e=>{for(const n in e)if(n.startsWith("aria-")||n==="role"||n==="title")return!0;return!1};/**
98
+ * @license lucide-react v0.563.0 - ISC
99
+ *
100
+ * This source code is licensed under the ISC license.
101
+ * See the LICENSE file in the root directory of this source tree.
102
+ */const F1=b.forwardRef(({color:e="currentColor",size:n=24,strokeWidth:r=2,absoluteStrokeWidth:o,className:l="",children:a,iconNode:u,...f},d)=>b.createElement("svg",{ref:d,...z1,width:n,height:n,stroke:e,strokeWidth:o?Number(r)*24/Number(n):r,className:yg("lucide",l),...!a&&!M1(f)&&{"aria-hidden":"true"},...f},[...u.map(([p,g])=>b.createElement(p,g)),...Array.isArray(a)?a:[a]]));/**
103
+ * @license lucide-react v0.563.0 - ISC
104
+ *
105
+ * This source code is licensed under the ISC license.
106
+ * See the LICENSE file in the root directory of this source tree.
107
+ */const ir=(e,n)=>{const r=b.forwardRef(({className:o,...l},a)=>b.createElement(F1,{ref:a,iconNode:n,className:yg(`lucide-${L1(Dh(e))}`,`lucide-${e}`,o),...l}));return r.displayName=Dh(e),r};/**
108
+ * @license lucide-react v0.563.0 - ISC
109
+ *
110
+ * This source code is licensed under the ISC license.
111
+ * See the LICENSE file in the root directory of this source tree.
112
+ */const B1=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],vg=ir("chevron-down",B1);/**
113
+ * @license lucide-react v0.563.0 - ISC
114
+ *
115
+ * This source code is licensed under the ISC license.
116
+ * See the LICENSE file in the root directory of this source tree.
117
+ */const $1=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],xg=ir("chevron-right",$1);/**
118
+ * @license lucide-react v0.563.0 - ISC
119
+ *
120
+ * This source code is licensed under the ISC license.
121
+ * See the LICENSE file in the root directory of this source tree.
122
+ */const U1=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],V1=ir("chevron-up",U1);/**
123
+ * @license lucide-react v0.563.0 - ISC
124
+ *
125
+ * This source code is licensed under the ISC license.
126
+ * See the LICENSE file in the root directory of this source tree.
127
+ */const W1=[["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"}]],wg=ir("circle-alert",W1);/**
128
+ * @license lucide-react v0.563.0 - ISC
129
+ *
130
+ * This source code is licensed under the ISC license.
131
+ * See the LICENSE file in the root directory of this source tree.
132
+ */const H1=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],kg=ir("circle-check-big",H1);/**
133
+ * @license lucide-react v0.563.0 - ISC
134
+ *
135
+ * This source code is licensed under the ISC license.
136
+ * See the LICENSE file in the root directory of this source tree.
137
+ */const q1=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],zh=ir("circle",q1);/**
138
+ * @license lucide-react v0.563.0 - ISC
139
+ *
140
+ * This source code is licensed under the ISC license.
141
+ * See the LICENSE file in the root directory of this source tree.
142
+ */const G1=[["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"}]],Mh=ir("house",G1);/**
143
+ * @license lucide-react v0.563.0 - ISC
144
+ *
145
+ * This source code is licensed under the ISC license.
146
+ * See the LICENSE file in the root directory of this source tree.
147
+ */const K1=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Y1=ir("x",K1);function Q1(){const e=$c(),n=[{label:"Epics",href:"/"}];return e.slug?n.push({label:e.slug}):e.epicSlug&&e.storySlug&&(n.push({label:e.epicSlug,href:`/epic/${e.epicSlug}`}),n.push({label:e.storySlug})),S.jsx("nav",{"aria-label":"Breadcrumb",className:"flex items-center gap-2 text-sm",children:n.map((r,o)=>{const l=o===n.length-1;return S.jsxs("span",{className:"flex items-center gap-2",children:[o>0&&S.jsx(xg,{className:"h-4 w-4 text-text-muted","aria-hidden":!0}),r.href&&!l?S.jsx(er,{to:r.href,className:"text-text-muted hover:text-primary transition-colors",children:o===0?S.jsxs("span",{className:"flex items-center gap-1",children:[S.jsx(Mh,{className:"h-4 w-4"}),r.label]}):r.label}):S.jsx("span",{className:l?"text-text font-medium":"text-text-muted",children:o===0?S.jsxs("span",{className:"flex items-center gap-1",children:[S.jsx(Mh,{className:"h-4 w-4"}),r.label]}):r.label})]},r.label)})})}const X1=1,J1=1e6;let Ru=0;function Z1(){return Ru=(Ru+1)%Number.MAX_SAFE_INTEGER,Ru.toString()}const Nu=new Map,Fh=e=>{if(Nu.has(e))return;const n=setTimeout(()=>{Nu.delete(e),go({type:"REMOVE_TOAST",toastId:e})},J1);Nu.set(e,n)},e0=(e,n)=>{switch(n.type){case"ADD_TOAST":return{...e,toasts:[n.toast,...e.toasts].slice(0,X1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(r=>r.id===n.toast.id?{...r,...n.toast}:r)};case"DISMISS_TOAST":{const{toastId:r}=n;return r?Fh(r):e.toasts.forEach(o=>{Fh(o.id)}),{...e,toasts:e.toasts.map(o=>o.id===r||r===void 0?{...o,open:!1}:o)}}case"REMOVE_TOAST":return n.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(r=>r.id!==n.toastId)}}},es=[];let ts={toasts:[]};function go(e){ts=e0(ts,e),es.forEach(n=>{n(ts)})}function Cs({...e}){const n=Z1(),r=l=>go({type:"UPDATE_TOAST",toast:{...l,id:n}}),o=()=>go({type:"DISMISS_TOAST",toastId:n});return go({type:"ADD_TOAST",toast:{...e,id:n,open:!0,onOpenChange:l=>{l||o()}}}),{id:n,dismiss:o,update:r}}function t0(){const[e,n]=b.useState(ts);return b.useEffect(()=>(es.push(n),()=>{const r=es.indexOf(n);r>-1&&es.splice(r,1)}),[e]),{...e,toast:Cs,dismiss:r=>go({type:"DISMISS_TOAST",toastId:r})}}function He(e,n,{checkForDefaultPrevented:r=!0}={}){return function(l){if(e==null||e(l),r===!1||!l.defaultPrevented)return n==null?void 0:n(l)}}function Bh(e,n){if(typeof e=="function")return e(n);e!=null&&(e.current=n)}function Uc(...e){return n=>{let r=!1;const o=e.map(l=>{const a=Bh(l,n);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let l=0;l<o.length;l++){const a=o[l];typeof a=="function"?a():Bh(e[l],null)}}}}function Cn(...e){return b.useCallback(Uc(...e),e)}function _o(e,n=[]){let r=[];function o(a,u){const f=b.createContext(u),d=r.length;r=[...r,u];const p=m=>{var I;const{scope:v,children:x,...k}=m,C=((I=v==null?void 0:v[e])==null?void 0:I[d])||f,E=b.useMemo(()=>k,Object.values(k));return S.jsx(C.Provider,{value:E,children:x})};p.displayName=a+"Provider";function g(m,v){var C;const x=((C=v==null?void 0:v[e])==null?void 0:C[d])||f,k=b.useContext(x);if(k)return k;if(u!==void 0)return u;throw new Error(`\`${m}\` must be used within \`${a}\``)}return[p,g]}const l=()=>{const a=r.map(u=>b.createContext(u));return function(f){const d=(f==null?void 0:f[e])||a;return b.useMemo(()=>({[`__scope${e}`]:{...f,[e]:d}}),[f,d])}};return l.scopeName=e,[o,n0(l,...n)]}function n0(...e){const n=e[0];if(e.length===1)return n;const r=()=>{const o=e.map(l=>({useScope:l(),scopeName:l.scopeName}));return function(a){const u=o.reduce((f,{useScope:d,scopeName:p})=>{const m=d(a)[`__scope${p}`];return{...f,...m}},{});return b.useMemo(()=>({[`__scope${n.scopeName}`]:u}),[u])}};return r.scopeName=n.scopeName,r}function hc(e){const n=r0(e),r=b.forwardRef((o,l)=>{const{children:a,...u}=o,f=b.Children.toArray(a),d=f.find(o0);if(d){const p=d.props.children,g=f.map(m=>m===d?b.Children.count(p)>1?b.Children.only(null):b.isValidElement(p)?p.props.children:null:m);return S.jsx(n,{...u,ref:l,children:b.isValidElement(p)?b.cloneElement(p,void 0,g):null})}return S.jsx(n,{...u,ref:l,children:a})});return r.displayName=`${e}.Slot`,r}function r0(e){const n=b.forwardRef((r,o)=>{const{children:l,...a}=r;if(b.isValidElement(l)){const u=s0(l),f=l0(a,l.props);return l.type!==b.Fragment&&(f.ref=o?Uc(o,u):u),b.cloneElement(l,f)}return b.Children.count(l)>1?b.Children.only(null):null});return n.displayName=`${e}.SlotClone`,n}var i0=Symbol("radix.slottable");function o0(e){return b.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===i0}function l0(e,n){const r={...n};for(const o in n){const l=e[o],a=n[o];/^on[A-Z]/.test(o)?l&&a?r[o]=(...f)=>{const d=a(...f);return l(...f),d}:l&&(r[o]=l):o==="style"?r[o]={...l,...a}:o==="className"&&(r[o]=[l,a].filter(Boolean).join(" "))}return{...e,...r}}function s0(e){var o,l;let n=(o=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:o.get,r=n&&"isReactWarning"in n&&n.isReactWarning;return r?e.ref:(n=(l=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:l.get,r=n&&"isReactWarning"in n&&n.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function Sg(e){const n=e+"CollectionProvider",[r,o]=_o(n),[l,a]=r(n,{collectionRef:{current:null},itemMap:new Map}),u=C=>{const{scope:E,children:I}=C,O=wn.useRef(null),N=wn.useRef(new Map).current;return S.jsx(l,{scope:E,itemMap:N,collectionRef:O,children:I})};u.displayName=n;const f=e+"CollectionSlot",d=hc(f),p=wn.forwardRef((C,E)=>{const{scope:I,children:O}=C,N=a(f,I),$=Cn(E,N.collectionRef);return S.jsx(d,{ref:$,children:O})});p.displayName=f;const g=e+"CollectionItemSlot",m="data-radix-collection-item",v=hc(g),x=wn.forwardRef((C,E)=>{const{scope:I,children:O,...N}=C,$=wn.useRef(null),Y=Cn(E,$),L=a(g,I);return wn.useEffect(()=>(L.itemMap.set($,{ref:$,...N}),()=>void L.itemMap.delete($))),S.jsx(v,{[m]:"",ref:Y,children:O})});x.displayName=g;function k(C){const E=a(e+"CollectionConsumer",C);return wn.useCallback(()=>{const O=E.collectionRef.current;if(!O)return[];const N=Array.from(O.querySelectorAll(`[${m}]`));return Array.from(E.itemMap.values()).sort((L,Q)=>N.indexOf(L.ref.current)-N.indexOf(Q.ref.current))},[E.collectionRef,E.itemMap])}return[{Provider:u,Slot:p,ItemSlot:x},k,o]}var a0=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],tt=a0.reduce((e,n)=>{const r=hc(`Primitive.${n}`),o=b.forwardRef((l,a)=>{const{asChild:u,...f}=l,d=u?r:n;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),S.jsx(d,{...f,ref:a})});return o.displayName=`Primitive.${n}`,{...e,[n]:o}},{});function Eg(e,n){e&&zc.flushSync(()=>e.dispatchEvent(n))}function tr(e){const n=b.useRef(e);return b.useEffect(()=>{n.current=e}),b.useMemo(()=>(...r)=>{var o;return(o=n.current)==null?void 0:o.call(n,...r)},[])}function u0(e,n=globalThis==null?void 0:globalThis.document){const r=tr(e);b.useEffect(()=>{const o=l=>{l.key==="Escape"&&r(l)};return n.addEventListener("keydown",o,{capture:!0}),()=>n.removeEventListener("keydown",o,{capture:!0})},[r,n])}var c0="DismissableLayer",mc="dismissableLayer.update",f0="dismissableLayer.pointerDownOutside",d0="dismissableLayer.focusOutside",$h,Cg=b.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),bg=b.forwardRef((e,n)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:l,onFocusOutside:a,onInteractOutside:u,onDismiss:f,...d}=e,p=b.useContext(Cg),[g,m]=b.useState(null),v=(g==null?void 0:g.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,x]=b.useState({}),k=Cn(n,Q=>m(Q)),C=Array.from(p.layers),[E]=[...p.layersWithOutsidePointerEventsDisabled].slice(-1),I=C.indexOf(E),O=g?C.indexOf(g):-1,N=p.layersWithOutsidePointerEventsDisabled.size>0,$=O>=I,Y=h0(Q=>{const W=Q.target,fe=[...p.branches].some(z=>z.contains(W));!$||fe||(l==null||l(Q),u==null||u(Q),Q.defaultPrevented||f==null||f())},v),L=m0(Q=>{const W=Q.target;[...p.branches].some(z=>z.contains(W))||(a==null||a(Q),u==null||u(Q),Q.defaultPrevented||f==null||f())},v);return u0(Q=>{O===p.layers.size-1&&(o==null||o(Q),!Q.defaultPrevented&&f&&(Q.preventDefault(),f()))},v),b.useEffect(()=>{if(g)return r&&(p.layersWithOutsidePointerEventsDisabled.size===0&&($h=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),p.layersWithOutsidePointerEventsDisabled.add(g)),p.layers.add(g),Uh(),()=>{r&&p.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=$h)}},[g,v,r,p]),b.useEffect(()=>()=>{g&&(p.layers.delete(g),p.layersWithOutsidePointerEventsDisabled.delete(g),Uh())},[g,p]),b.useEffect(()=>{const Q=()=>x({});return document.addEventListener(mc,Q),()=>document.removeEventListener(mc,Q)},[]),S.jsx(tt.div,{...d,ref:k,style:{pointerEvents:N?$?"auto":"none":void 0,...e.style},onFocusCapture:He(e.onFocusCapture,L.onFocusCapture),onBlurCapture:He(e.onBlurCapture,L.onBlurCapture),onPointerDownCapture:He(e.onPointerDownCapture,Y.onPointerDownCapture)})});bg.displayName=c0;var p0="DismissableLayerBranch",_g=b.forwardRef((e,n)=>{const r=b.useContext(Cg),o=b.useRef(null),l=Cn(n,o);return b.useEffect(()=>{const a=o.current;if(a)return r.branches.add(a),()=>{r.branches.delete(a)}},[r.branches]),S.jsx(tt.div,{...e,ref:l})});_g.displayName=p0;function h0(e,n=globalThis==null?void 0:globalThis.document){const r=tr(e),o=b.useRef(!1),l=b.useRef(()=>{});return b.useEffect(()=>{const a=f=>{if(f.target&&!o.current){let d=function(){Tg(f0,r,p,{discrete:!0})};const p={originalEvent:f};f.pointerType==="touch"?(n.removeEventListener("click",l.current),l.current=d,n.addEventListener("click",l.current,{once:!0})):d()}else n.removeEventListener("click",l.current);o.current=!1},u=window.setTimeout(()=>{n.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(u),n.removeEventListener("pointerdown",a),n.removeEventListener("click",l.current)}},[n,r]),{onPointerDownCapture:()=>o.current=!0}}function m0(e,n=globalThis==null?void 0:globalThis.document){const r=tr(e),o=b.useRef(!1);return b.useEffect(()=>{const l=a=>{a.target&&!o.current&&Tg(d0,r,{originalEvent:a},{discrete:!1})};return n.addEventListener("focusin",l),()=>n.removeEventListener("focusin",l)},[n,r]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}function Uh(){const e=new CustomEvent(mc);document.dispatchEvent(e)}function Tg(e,n,r,{discrete:o}){const l=r.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});n&&l.addEventListener(e,n,{once:!0}),o?Eg(l,a):l.dispatchEvent(a)}var g0=bg,y0=_g,Cr=globalThis!=null&&globalThis.document?b.useLayoutEffect:()=>{},v0="Portal",Pg=b.forwardRef((e,n)=>{var f;const{container:r,...o}=e,[l,a]=b.useState(!1);Cr(()=>a(!0),[]);const u=r||l&&((f=globalThis==null?void 0:globalThis.document)==null?void 0:f.body);return u?Pk.createPortal(S.jsx(tt.div,{...o,ref:n}),u):null});Pg.displayName=v0;function x0(e,n){return b.useReducer((r,o)=>n[r][o]??r,e)}var bs=e=>{const{present:n,children:r}=e,o=w0(n),l=typeof r=="function"?r({present:o.isPresent}):b.Children.only(r),a=Cn(o.ref,k0(l));return typeof r=="function"||o.isPresent?b.cloneElement(l,{ref:a}):null};bs.displayName="Presence";function w0(e){const[n,r]=b.useState(),o=b.useRef(null),l=b.useRef(e),a=b.useRef("none"),u=e?"mounted":"unmounted",[f,d]=x0(u,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return b.useEffect(()=>{const p=Hl(o.current);a.current=f==="mounted"?p:"none"},[f]),Cr(()=>{const p=o.current,g=l.current;if(g!==e){const v=a.current,x=Hl(p);e?d("MOUNT"):x==="none"||(p==null?void 0:p.display)==="none"?d("UNMOUNT"):d(g&&v!==x?"ANIMATION_OUT":"UNMOUNT"),l.current=e}},[e,d]),Cr(()=>{if(n){let p;const g=n.ownerDocument.defaultView??window,m=x=>{const C=Hl(o.current).includes(CSS.escape(x.animationName));if(x.target===n&&C&&(d("ANIMATION_END"),!l.current)){const E=n.style.animationFillMode;n.style.animationFillMode="forwards",p=g.setTimeout(()=>{n.style.animationFillMode==="forwards"&&(n.style.animationFillMode=E)})}},v=x=>{x.target===n&&(a.current=Hl(o.current))};return n.addEventListener("animationstart",v),n.addEventListener("animationcancel",m),n.addEventListener("animationend",m),()=>{g.clearTimeout(p),n.removeEventListener("animationstart",v),n.removeEventListener("animationcancel",m),n.removeEventListener("animationend",m)}}else d("ANIMATION_END")},[n,d]),{isPresent:["mounted","unmountSuspended"].includes(f),ref:b.useCallback(p=>{o.current=p?getComputedStyle(p):null,r(p)},[])}}function Hl(e){return(e==null?void 0:e.animationName)||"none"}function k0(e){var o,l;let n=(o=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:o.get,r=n&&"isReactWarning"in n&&n.isReactWarning;return r?e.ref:(n=(l=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:l.get,r=n&&"isReactWarning"in n&&n.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var S0=ks[" useInsertionEffect ".trim().toString()]||Cr;function _s({prop:e,defaultProp:n,onChange:r=()=>{},caller:o}){const[l,a,u]=E0({defaultProp:n,onChange:r}),f=e!==void 0,d=f?e:l;{const g=b.useRef(e!==void 0);b.useEffect(()=>{const m=g.current;m!==f&&console.warn(`${o} is changing from ${m?"controlled":"uncontrolled"} to ${f?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),g.current=f},[f,o])}const p=b.useCallback(g=>{var m;if(f){const v=C0(g)?g(e):g;v!==e&&((m=u.current)==null||m.call(u,v))}else a(g)},[f,e,a,u]);return[d,p]}function E0({defaultProp:e,onChange:n}){const[r,o]=b.useState(e),l=b.useRef(r),a=b.useRef(n);return S0(()=>{a.current=n},[n]),b.useEffect(()=>{var u;l.current!==r&&((u=a.current)==null||u.call(a,r),l.current=r)},[r,l]),[r,o,a]}function C0(e){return typeof e=="function"}var b0=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),_0="VisuallyHidden",Vc=b.forwardRef((e,n)=>S.jsx(tt.span,{...e,ref:n,style:{...b0,...e.style}}));Vc.displayName=_0;var Wc="ToastProvider",[Hc,T0,P0]=Sg("Toast"),[Ig]=_o("Toast",[P0]),[I0,Ts]=Ig(Wc),Rg=e=>{const{__scopeToast:n,label:r="Notification",duration:o=5e3,swipeDirection:l="right",swipeThreshold:a=50,children:u}=e,[f,d]=b.useState(null),[p,g]=b.useState(0),m=b.useRef(!1),v=b.useRef(!1);return r.trim()||console.error(`Invalid prop \`label\` supplied to \`${Wc}\`. Expected non-empty \`string\`.`),S.jsx(Hc.Provider,{scope:n,children:S.jsx(I0,{scope:n,label:r,duration:o,swipeDirection:l,swipeThreshold:a,toastCount:p,viewport:f,onViewportChange:d,onToastAdd:b.useCallback(()=>g(x=>x+1),[]),onToastRemove:b.useCallback(()=>g(x=>x-1),[]),isFocusedToastEscapeKeyDownRef:m,isClosePausedRef:v,children:u})})};Rg.displayName=Wc;var Ng="ToastViewport",R0=["F8"],gc="toast.viewportPause",yc="toast.viewportResume",Ag=b.forwardRef((e,n)=>{const{__scopeToast:r,hotkey:o=R0,label:l="Notifications ({hotkey})",...a}=e,u=Ts(Ng,r),f=T0(r),d=b.useRef(null),p=b.useRef(null),g=b.useRef(null),m=b.useRef(null),v=Cn(n,m,u.onViewportChange),x=o.join("+").replace(/Key/g,"").replace(/Digit/g,""),k=u.toastCount>0;b.useEffect(()=>{const E=I=>{var N;o.length!==0&&o.every($=>I[$]||I.code===$)&&((N=m.current)==null||N.focus())};return document.addEventListener("keydown",E),()=>document.removeEventListener("keydown",E)},[o]),b.useEffect(()=>{const E=d.current,I=m.current;if(k&&E&&I){const O=()=>{if(!u.isClosePausedRef.current){const L=new CustomEvent(gc);I.dispatchEvent(L),u.isClosePausedRef.current=!0}},N=()=>{if(u.isClosePausedRef.current){const L=new CustomEvent(yc);I.dispatchEvent(L),u.isClosePausedRef.current=!1}},$=L=>{!E.contains(L.relatedTarget)&&N()},Y=()=>{E.contains(document.activeElement)||N()};return E.addEventListener("focusin",O),E.addEventListener("focusout",$),E.addEventListener("pointermove",O),E.addEventListener("pointerleave",Y),window.addEventListener("blur",O),window.addEventListener("focus",N),()=>{E.removeEventListener("focusin",O),E.removeEventListener("focusout",$),E.removeEventListener("pointermove",O),E.removeEventListener("pointerleave",Y),window.removeEventListener("blur",O),window.removeEventListener("focus",N)}}},[k,u.isClosePausedRef]);const C=b.useCallback(({tabbingDirection:E})=>{const O=f().map(N=>{const $=N.ref.current,Y=[$,...V0($)];return E==="forwards"?Y:Y.reverse()});return(E==="forwards"?O.reverse():O).flat()},[f]);return b.useEffect(()=>{const E=m.current;if(E){const I=O=>{var Y,L,Q;const N=O.altKey||O.ctrlKey||O.metaKey;if(O.key==="Tab"&&!N){const W=document.activeElement,fe=O.shiftKey;if(O.target===E&&fe){(Y=p.current)==null||Y.focus();return}const te=C({tabbingDirection:fe?"backwards":"forwards"}),me=te.findIndex(H=>H===W);Au(te.slice(me+1))?O.preventDefault():fe?(L=p.current)==null||L.focus():(Q=g.current)==null||Q.focus()}};return E.addEventListener("keydown",I),()=>E.removeEventListener("keydown",I)}},[f,C]),S.jsxs(y0,{ref:d,role:"region","aria-label":l.replace("{hotkey}",x),tabIndex:-1,style:{pointerEvents:k?void 0:"none"},children:[k&&S.jsx(vc,{ref:p,onFocusFromOutsideViewport:()=>{const E=C({tabbingDirection:"forwards"});Au(E)}}),S.jsx(Hc.Slot,{scope:r,children:S.jsx(tt.ol,{tabIndex:-1,...a,ref:v})}),k&&S.jsx(vc,{ref:g,onFocusFromOutsideViewport:()=>{const E=C({tabbingDirection:"backwards"});Au(E)}})]})});Ag.displayName=Ng;var jg="ToastFocusProxy",vc=b.forwardRef((e,n)=>{const{__scopeToast:r,onFocusFromOutsideViewport:o,...l}=e,a=Ts(jg,r);return S.jsx(Vc,{tabIndex:0,...l,ref:n,style:{position:"fixed"},onFocus:u=>{var p;const f=u.relatedTarget;!((p=a.viewport)!=null&&p.contains(f))&&o()}})});vc.displayName=jg;var To="Toast",N0="toast.swipeStart",A0="toast.swipeMove",j0="toast.swipeCancel",O0="toast.swipeEnd",Og=b.forwardRef((e,n)=>{const{forceMount:r,open:o,defaultOpen:l,onOpenChange:a,...u}=e,[f,d]=_s({prop:o,defaultProp:l??!0,onChange:a,caller:To});return S.jsx(bs,{present:r||f,children:S.jsx(z0,{open:f,...u,ref:n,onClose:()=>d(!1),onPause:tr(e.onPause),onResume:tr(e.onResume),onSwipeStart:He(e.onSwipeStart,p=>{p.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:He(e.onSwipeMove,p=>{const{x:g,y:m}=p.detail.delta;p.currentTarget.setAttribute("data-swipe","move"),p.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${g}px`),p.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${m}px`)}),onSwipeCancel:He(e.onSwipeCancel,p=>{p.currentTarget.setAttribute("data-swipe","cancel"),p.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),p.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),p.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),p.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:He(e.onSwipeEnd,p=>{const{x:g,y:m}=p.detail.delta;p.currentTarget.setAttribute("data-swipe","end"),p.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),p.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),p.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${g}px`),p.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${m}px`),d(!1)})})})});Og.displayName=To;var[L0,D0]=Ig(To,{onClose(){}}),z0=b.forwardRef((e,n)=>{const{__scopeToast:r,type:o="foreground",duration:l,open:a,onClose:u,onEscapeKeyDown:f,onPause:d,onResume:p,onSwipeStart:g,onSwipeMove:m,onSwipeCancel:v,onSwipeEnd:x,...k}=e,C=Ts(To,r),[E,I]=b.useState(null),O=Cn(n,H=>I(H)),N=b.useRef(null),$=b.useRef(null),Y=l||C.duration,L=b.useRef(0),Q=b.useRef(Y),W=b.useRef(0),{onToastAdd:fe,onToastRemove:z}=C,ne=tr(()=>{var q;(E==null?void 0:E.contains(document.activeElement))&&((q=C.viewport)==null||q.focus()),u()}),te=b.useCallback(H=>{!H||H===1/0||(window.clearTimeout(W.current),L.current=new Date().getTime(),W.current=window.setTimeout(ne,H))},[ne]);b.useEffect(()=>{const H=C.viewport;if(H){const q=()=>{te(Q.current),p==null||p()},re=()=>{const he=new Date().getTime()-L.current;Q.current=Q.current-he,window.clearTimeout(W.current),d==null||d()};return H.addEventListener(gc,re),H.addEventListener(yc,q),()=>{H.removeEventListener(gc,re),H.removeEventListener(yc,q)}}},[C.viewport,Y,d,p,te]),b.useEffect(()=>{a&&!C.isClosePausedRef.current&&te(Y)},[a,Y,C.isClosePausedRef,te]),b.useEffect(()=>(fe(),()=>z()),[fe,z]);const me=b.useMemo(()=>E?$g(E):null,[E]);return C.viewport?S.jsxs(S.Fragment,{children:[me&&S.jsx(M0,{__scopeToast:r,role:"status","aria-live":o==="foreground"?"assertive":"polite",children:me}),S.jsx(L0,{scope:r,onClose:ne,children:zc.createPortal(S.jsx(Hc.ItemSlot,{scope:r,children:S.jsx(g0,{asChild:!0,onEscapeKeyDown:He(f,()=>{C.isFocusedToastEscapeKeyDownRef.current||ne(),C.isFocusedToastEscapeKeyDownRef.current=!1}),children:S.jsx(tt.li,{tabIndex:0,"data-state":a?"open":"closed","data-swipe-direction":C.swipeDirection,...k,ref:O,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:He(e.onKeyDown,H=>{H.key==="Escape"&&(f==null||f(H.nativeEvent),H.nativeEvent.defaultPrevented||(C.isFocusedToastEscapeKeyDownRef.current=!0,ne()))}),onPointerDown:He(e.onPointerDown,H=>{H.button===0&&(N.current={x:H.clientX,y:H.clientY})}),onPointerMove:He(e.onPointerMove,H=>{if(!N.current)return;const q=H.clientX-N.current.x,re=H.clientY-N.current.y,he=!!$.current,B=["left","right"].includes(C.swipeDirection),oe=["left","up"].includes(C.swipeDirection)?Math.min:Math.max,_=B?oe(0,q):0,j=B?0:oe(0,re),V=H.pointerType==="touch"?10:2,T={x:_,y:j},le={originalEvent:H,delta:T};he?($.current=T,ql(A0,m,le,{discrete:!1})):Vh(T,C.swipeDirection,V)?($.current=T,ql(N0,g,le,{discrete:!1}),H.target.setPointerCapture(H.pointerId)):(Math.abs(q)>V||Math.abs(re)>V)&&(N.current=null)}),onPointerUp:He(e.onPointerUp,H=>{const q=$.current,re=H.target;if(re.hasPointerCapture(H.pointerId)&&re.releasePointerCapture(H.pointerId),$.current=null,N.current=null,q){const he=H.currentTarget,B={originalEvent:H,delta:q};Vh(q,C.swipeDirection,C.swipeThreshold)?ql(O0,x,B,{discrete:!0}):ql(j0,v,B,{discrete:!0}),he.addEventListener("click",oe=>oe.preventDefault(),{once:!0})}})})})}),C.viewport)})]}):null}),M0=e=>{const{__scopeToast:n,children:r,...o}=e,l=Ts(To,n),[a,u]=b.useState(!1),[f,d]=b.useState(!1);return $0(()=>u(!0)),b.useEffect(()=>{const p=window.setTimeout(()=>d(!0),1e3);return()=>window.clearTimeout(p)},[]),f?null:S.jsx(Pg,{asChild:!0,children:S.jsx(Vc,{...o,children:a&&S.jsxs(S.Fragment,{children:[l.label," ",r]})})})},F0="ToastTitle",Lg=b.forwardRef((e,n)=>{const{__scopeToast:r,...o}=e;return S.jsx(tt.div,{...o,ref:n})});Lg.displayName=F0;var B0="ToastDescription",Dg=b.forwardRef((e,n)=>{const{__scopeToast:r,...o}=e;return S.jsx(tt.div,{...o,ref:n})});Dg.displayName=B0;var zg="ToastAction",Mg=b.forwardRef((e,n)=>{const{altText:r,...o}=e;return r.trim()?S.jsx(Bg,{altText:r,asChild:!0,children:S.jsx(qc,{...o,ref:n})}):(console.error(`Invalid prop \`altText\` supplied to \`${zg}\`. Expected non-empty \`string\`.`),null)});Mg.displayName=zg;var Fg="ToastClose",qc=b.forwardRef((e,n)=>{const{__scopeToast:r,...o}=e,l=D0(Fg,r);return S.jsx(Bg,{asChild:!0,children:S.jsx(tt.button,{type:"button",...o,ref:n,onClick:He(e.onClick,l.onClose)})})});qc.displayName=Fg;var Bg=b.forwardRef((e,n)=>{const{__scopeToast:r,altText:o,...l}=e;return S.jsx(tt.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":o||void 0,...l,ref:n})});function $g(e){const n=[];return Array.from(e.childNodes).forEach(o=>{if(o.nodeType===o.TEXT_NODE&&o.textContent&&n.push(o.textContent),U0(o)){const l=o.ariaHidden||o.hidden||o.style.display==="none",a=o.dataset.radixToastAnnounceExclude==="";if(!l)if(a){const u=o.dataset.radixToastAnnounceAlt;u&&n.push(u)}else n.push(...$g(o))}}),n}function ql(e,n,r,{discrete:o}){const l=r.originalEvent.currentTarget,a=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:r});n&&l.addEventListener(e,n,{once:!0}),o?Eg(l,a):l.dispatchEvent(a)}var Vh=(e,n,r=0)=>{const o=Math.abs(e.x),l=Math.abs(e.y),a=o>l;return n==="left"||n==="right"?a&&o>r:!a&&l>r};function $0(e=()=>{}){const n=tr(e);Cr(()=>{let r=0,o=0;return r=window.requestAnimationFrame(()=>o=window.requestAnimationFrame(n)),()=>{window.cancelAnimationFrame(r),window.cancelAnimationFrame(o)}},[n])}function U0(e){return e.nodeType===e.ELEMENT_NODE}function V0(e){const n=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const l=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||l?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)n.push(r.currentNode);return n}function Au(e){const n=document.activeElement;return e.some(r=>r===n?!0:(r.focus(),document.activeElement!==n))}var W0=Rg,Ug=Ag,Vg=Og,Wg=Lg,Hg=Dg,qg=Mg,Gg=qc;function Kg(e){var n,r,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var l=e.length;for(n=0;n<l;n++)e[n]&&(r=Kg(e[n]))&&(o&&(o+=" "),o+=r)}else for(r in e)e[r]&&(o&&(o+=" "),o+=r);return o}function Yg(){for(var e,n,r=0,o="",l=arguments.length;r<l;r++)(e=arguments[r])&&(n=Kg(e))&&(o&&(o+=" "),o+=n);return o}const Wh=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Hh=Yg,Qg=(e,n)=>r=>{var o;if((n==null?void 0:n.variants)==null)return Hh(e,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:l,defaultVariants:a}=n,u=Object.keys(l).map(p=>{const g=r==null?void 0:r[p],m=a==null?void 0:a[p];if(g===null)return null;const v=Wh(g)||Wh(m);return l[p][v]}),f=r&&Object.entries(r).reduce((p,g)=>{let[m,v]=g;return v===void 0||(p[m]=v),p},{}),d=n==null||(o=n.compoundVariants)===null||o===void 0?void 0:o.reduce((p,g)=>{let{class:m,className:v,...x}=g;return Object.entries(x).every(k=>{let[C,E]=k;return Array.isArray(E)?E.includes({...a,...f}[C]):{...a,...f}[C]===E})?[...p,m,v]:p},[]);return Hh(e,u,d,r==null?void 0:r.class,r==null?void 0:r.className)},H0=(e,n)=>{const r=new Array(e.length+n.length);for(let o=0;o<e.length;o++)r[o]=e[o];for(let o=0;o<n.length;o++)r[e.length+o]=n[o];return r},q0=(e,n)=>({classGroupId:e,validator:n}),Xg=(e=new Map,n=null,r)=>({nextPart:e,validators:n,classGroupId:r}),ss="-",qh=[],G0="arbitrary..",K0=e=>{const n=Q0(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:u=>{if(u.startsWith("[")&&u.endsWith("]"))return Y0(u);const f=u.split(ss),d=f[0]===""&&f.length>1?1:0;return Jg(f,d,n)},getConflictingClassGroupIds:(u,f)=>{if(f){const d=o[u],p=r[u];return d?p?H0(p,d):d:p||qh}return r[u]||qh}}},Jg=(e,n,r)=>{if(e.length-n===0)return r.classGroupId;const l=e[n],a=r.nextPart.get(l);if(a){const p=Jg(e,n+1,a);if(p)return p}const u=r.validators;if(u===null)return;const f=n===0?e.join(ss):e.slice(n).join(ss),d=u.length;for(let p=0;p<d;p++){const g=u[p];if(g.validator(f))return g.classGroupId}},Y0=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const n=e.slice(1,-1),r=n.indexOf(":"),o=n.slice(0,r);return o?G0+o:void 0})(),Q0=e=>{const{theme:n,classGroups:r}=e;return X0(r,n)},X0=(e,n)=>{const r=Xg();for(const o in e){const l=e[o];Gc(l,r,o,n)}return r},Gc=(e,n,r,o)=>{const l=e.length;for(let a=0;a<l;a++){const u=e[a];J0(u,n,r,o)}},J0=(e,n,r,o)=>{if(typeof e=="string"){Z0(e,n,r);return}if(typeof e=="function"){eS(e,n,r,o);return}tS(e,n,r,o)},Z0=(e,n,r)=>{const o=e===""?n:Zg(n,e);o.classGroupId=r},eS=(e,n,r,o)=>{if(nS(e)){Gc(e(o),n,r,o);return}n.validators===null&&(n.validators=[]),n.validators.push(q0(r,e))},tS=(e,n,r,o)=>{const l=Object.entries(e),a=l.length;for(let u=0;u<a;u++){const[f,d]=l[u];Gc(d,Zg(n,f),r,o)}},Zg=(e,n)=>{let r=e;const o=n.split(ss),l=o.length;for(let a=0;a<l;a++){const u=o[a];let f=r.nextPart.get(u);f||(f=Xg(),r.nextPart.set(u,f)),r=f}return r},nS=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,rS=e=>{if(e<1)return{get:()=>{},set:()=>{}};let n=0,r=Object.create(null),o=Object.create(null);const l=(a,u)=>{r[a]=u,n++,n>e&&(n=0,o=r,r=Object.create(null))};return{get(a){let u=r[a];if(u!==void 0)return u;if((u=o[a])!==void 0)return l(a,u),u},set(a,u){a in r?r[a]=u:l(a,u)}}},xc="!",Gh=":",iS=[],Kh=(e,n,r,o,l)=>({modifiers:e,hasImportantModifier:n,baseClassName:r,maybePostfixModifierPosition:o,isExternal:l}),oS=e=>{const{prefix:n,experimentalParseClassName:r}=e;let o=l=>{const a=[];let u=0,f=0,d=0,p;const g=l.length;for(let C=0;C<g;C++){const E=l[C];if(u===0&&f===0){if(E===Gh){a.push(l.slice(d,C)),d=C+1;continue}if(E==="/"){p=C;continue}}E==="["?u++:E==="]"?u--:E==="("?f++:E===")"&&f--}const m=a.length===0?l:l.slice(d);let v=m,x=!1;m.endsWith(xc)?(v=m.slice(0,-1),x=!0):m.startsWith(xc)&&(v=m.slice(1),x=!0);const k=p&&p>d?p-d:void 0;return Kh(a,x,v,k)};if(n){const l=n+Gh,a=o;o=u=>u.startsWith(l)?a(u.slice(l.length)):Kh(iS,!1,u,void 0,!0)}if(r){const l=o;o=a=>r({className:a,parseClassName:l})}return o},lS=e=>{const n=new Map;return e.orderSensitiveModifiers.forEach((r,o)=>{n.set(r,1e6+o)}),r=>{const o=[];let l=[];for(let a=0;a<r.length;a++){const u=r[a],f=u[0]==="[",d=n.has(u);f||d?(l.length>0&&(l.sort(),o.push(...l),l=[]),o.push(u)):l.push(u)}return l.length>0&&(l.sort(),o.push(...l)),o}},sS=e=>({cache:rS(e.cacheSize),parseClassName:oS(e),sortModifiers:lS(e),...K0(e)}),aS=/\s+/,uS=(e,n)=>{const{parseClassName:r,getClassGroupId:o,getConflictingClassGroupIds:l,sortModifiers:a}=n,u=[],f=e.trim().split(aS);let d="";for(let p=f.length-1;p>=0;p-=1){const g=f[p],{isExternal:m,modifiers:v,hasImportantModifier:x,baseClassName:k,maybePostfixModifierPosition:C}=r(g);if(m){d=g+(d.length>0?" "+d:d);continue}let E=!!C,I=o(E?k.substring(0,C):k);if(!I){if(!E){d=g+(d.length>0?" "+d:d);continue}if(I=o(k),!I){d=g+(d.length>0?" "+d:d);continue}E=!1}const O=v.length===0?"":v.length===1?v[0]:a(v).join(":"),N=x?O+xc:O,$=N+I;if(u.indexOf($)>-1)continue;u.push($);const Y=l(I,E);for(let L=0;L<Y.length;++L){const Q=Y[L];u.push(N+Q)}d=g+(d.length>0?" "+d:d)}return d},cS=(...e)=>{let n=0,r,o,l="";for(;n<e.length;)(r=e[n++])&&(o=ey(r))&&(l&&(l+=" "),l+=o);return l},ey=e=>{if(typeof e=="string")return e;let n,r="";for(let o=0;o<e.length;o++)e[o]&&(n=ey(e[o]))&&(r&&(r+=" "),r+=n);return r},fS=(e,...n)=>{let r,o,l,a;const u=d=>{const p=n.reduce((g,m)=>m(g),e());return r=sS(p),o=r.cache.get,l=r.cache.set,a=f,f(d)},f=d=>{const p=o(d);if(p)return p;const g=uS(d,r);return l(d,g),g};return a=u,(...d)=>a(cS(...d))},dS=[],et=e=>{const n=r=>r[e]||dS;return n.isThemeGetter=!0,n},ty=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,ny=/^\((?:(\w[\w-]*):)?(.+)\)$/i,pS=/^\d+\/\d+$/,hS=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,mS=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,gS=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,yS=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,vS=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ni=e=>pS.test(e),_e=e=>!!e&&!Number.isNaN(Number(e)),Yn=e=>!!e&&Number.isInteger(Number(e)),ju=e=>e.endsWith("%")&&_e(e.slice(0,-1)),xn=e=>hS.test(e),xS=()=>!0,wS=e=>mS.test(e)&&!gS.test(e),ry=()=>!1,kS=e=>yS.test(e),SS=e=>vS.test(e),ES=e=>!ue(e)&&!ce(e),CS=e=>yi(e,ly,ry),ue=e=>ty.test(e),wr=e=>yi(e,sy,wS),Ou=e=>yi(e,IS,_e),Yh=e=>yi(e,iy,ry),bS=e=>yi(e,oy,SS),Gl=e=>yi(e,ay,kS),ce=e=>ny.test(e),uo=e=>vi(e,sy),_S=e=>vi(e,RS),Qh=e=>vi(e,iy),TS=e=>vi(e,ly),PS=e=>vi(e,oy),Kl=e=>vi(e,ay,!0),yi=(e,n,r)=>{const o=ty.exec(e);return o?o[1]?n(o[1]):r(o[2]):!1},vi=(e,n,r=!1)=>{const o=ny.exec(e);return o?o[1]?n(o[1]):r:!1},iy=e=>e==="position"||e==="percentage",oy=e=>e==="image"||e==="url",ly=e=>e==="length"||e==="size"||e==="bg-size",sy=e=>e==="length",IS=e=>e==="number",RS=e=>e==="family-name",ay=e=>e==="shadow",NS=()=>{const e=et("color"),n=et("font"),r=et("text"),o=et("font-weight"),l=et("tracking"),a=et("leading"),u=et("breakpoint"),f=et("container"),d=et("spacing"),p=et("radius"),g=et("shadow"),m=et("inset-shadow"),v=et("text-shadow"),x=et("drop-shadow"),k=et("blur"),C=et("perspective"),E=et("aspect"),I=et("ease"),O=et("animate"),N=()=>["auto","avoid","all","avoid-page","page","left","right","column"],$=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],Y=()=>[...$(),ce,ue],L=()=>["auto","hidden","clip","visible","scroll"],Q=()=>["auto","contain","none"],W=()=>[ce,ue,d],fe=()=>[ni,"full","auto",...W()],z=()=>[Yn,"none","subgrid",ce,ue],ne=()=>["auto",{span:["full",Yn,ce,ue]},Yn,ce,ue],te=()=>[Yn,"auto",ce,ue],me=()=>["auto","min","max","fr",ce,ue],H=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],q=()=>["start","end","center","stretch","center-safe","end-safe"],re=()=>["auto",...W()],he=()=>[ni,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...W()],B=()=>[e,ce,ue],oe=()=>[...$(),Qh,Yh,{position:[ce,ue]}],_=()=>["no-repeat",{repeat:["","x","y","space","round"]}],j=()=>["auto","cover","contain",TS,CS,{size:[ce,ue]}],V=()=>[ju,uo,wr],T=()=>["","none","full",p,ce,ue],le=()=>["",_e,uo,wr],Ee=()=>["solid","dashed","dotted","double"],ge=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],we=()=>[_e,ju,Qh,Yh],Ce=()=>["","none",k,ce,ue],Re=()=>["none",_e,ce,ue],Fe=()=>["none",_e,ce,ue],It=()=>[_e,ce,ue],un=()=>[ni,"full",...W()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[xn],breakpoint:[xn],color:[xS],container:[xn],"drop-shadow":[xn],ease:["in","out","in-out"],font:[ES],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[xn],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[xn],shadow:[xn],spacing:["px",_e],text:[xn],"text-shadow":[xn],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",ni,ue,ce,E]}],container:["container"],columns:[{columns:[_e,ue,ce,f]}],"break-after":[{"break-after":N()}],"break-before":[{"break-before":N()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:Y()}],overflow:[{overflow:L()}],"overflow-x":[{"overflow-x":L()}],"overflow-y":[{"overflow-y":L()}],overscroll:[{overscroll:Q()}],"overscroll-x":[{"overscroll-x":Q()}],"overscroll-y":[{"overscroll-y":Q()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:fe()}],"inset-x":[{"inset-x":fe()}],"inset-y":[{"inset-y":fe()}],start:[{start:fe()}],end:[{end:fe()}],top:[{top:fe()}],right:[{right:fe()}],bottom:[{bottom:fe()}],left:[{left:fe()}],visibility:["visible","invisible","collapse"],z:[{z:[Yn,"auto",ce,ue]}],basis:[{basis:[ni,"full","auto",f,...W()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[_e,ni,"auto","initial","none",ue]}],grow:[{grow:["",_e,ce,ue]}],shrink:[{shrink:["",_e,ce,ue]}],order:[{order:[Yn,"first","last","none",ce,ue]}],"grid-cols":[{"grid-cols":z()}],"col-start-end":[{col:ne()}],"col-start":[{"col-start":te()}],"col-end":[{"col-end":te()}],"grid-rows":[{"grid-rows":z()}],"row-start-end":[{row:ne()}],"row-start":[{"row-start":te()}],"row-end":[{"row-end":te()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":me()}],"auto-rows":[{"auto-rows":me()}],gap:[{gap:W()}],"gap-x":[{"gap-x":W()}],"gap-y":[{"gap-y":W()}],"justify-content":[{justify:[...H(),"normal"]}],"justify-items":[{"justify-items":[...q(),"normal"]}],"justify-self":[{"justify-self":["auto",...q()]}],"align-content":[{content:["normal",...H()]}],"align-items":[{items:[...q(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...q(),{baseline:["","last"]}]}],"place-content":[{"place-content":H()}],"place-items":[{"place-items":[...q(),"baseline"]}],"place-self":[{"place-self":["auto",...q()]}],p:[{p:W()}],px:[{px:W()}],py:[{py:W()}],ps:[{ps:W()}],pe:[{pe:W()}],pt:[{pt:W()}],pr:[{pr:W()}],pb:[{pb:W()}],pl:[{pl:W()}],m:[{m:re()}],mx:[{mx:re()}],my:[{my:re()}],ms:[{ms:re()}],me:[{me:re()}],mt:[{mt:re()}],mr:[{mr:re()}],mb:[{mb:re()}],ml:[{ml:re()}],"space-x":[{"space-x":W()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":W()}],"space-y-reverse":["space-y-reverse"],size:[{size:he()}],w:[{w:[f,"screen",...he()]}],"min-w":[{"min-w":[f,"screen","none",...he()]}],"max-w":[{"max-w":[f,"screen","none","prose",{screen:[u]},...he()]}],h:[{h:["screen","lh",...he()]}],"min-h":[{"min-h":["screen","lh","none",...he()]}],"max-h":[{"max-h":["screen","lh",...he()]}],"font-size":[{text:["base",r,uo,wr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,ce,Ou]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",ju,ue]}],"font-family":[{font:[_S,ue,n]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[l,ce,ue]}],"line-clamp":[{"line-clamp":[_e,"none",ce,Ou]}],leading:[{leading:[a,...W()]}],"list-image":[{"list-image":["none",ce,ue]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ce,ue]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:B()}],"text-color":[{text:B()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Ee(),"wavy"]}],"text-decoration-thickness":[{decoration:[_e,"from-font","auto",ce,wr]}],"text-decoration-color":[{decoration:B()}],"underline-offset":[{"underline-offset":[_e,"auto",ce,ue]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:W()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ce,ue]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ce,ue]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:oe()}],"bg-repeat":[{bg:_()}],"bg-size":[{bg:j()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Yn,ce,ue],radial:["",ce,ue],conic:[Yn,ce,ue]},PS,bS]}],"bg-color":[{bg:B()}],"gradient-from-pos":[{from:V()}],"gradient-via-pos":[{via:V()}],"gradient-to-pos":[{to:V()}],"gradient-from":[{from:B()}],"gradient-via":[{via:B()}],"gradient-to":[{to:B()}],rounded:[{rounded:T()}],"rounded-s":[{"rounded-s":T()}],"rounded-e":[{"rounded-e":T()}],"rounded-t":[{"rounded-t":T()}],"rounded-r":[{"rounded-r":T()}],"rounded-b":[{"rounded-b":T()}],"rounded-l":[{"rounded-l":T()}],"rounded-ss":[{"rounded-ss":T()}],"rounded-se":[{"rounded-se":T()}],"rounded-ee":[{"rounded-ee":T()}],"rounded-es":[{"rounded-es":T()}],"rounded-tl":[{"rounded-tl":T()}],"rounded-tr":[{"rounded-tr":T()}],"rounded-br":[{"rounded-br":T()}],"rounded-bl":[{"rounded-bl":T()}],"border-w":[{border:le()}],"border-w-x":[{"border-x":le()}],"border-w-y":[{"border-y":le()}],"border-w-s":[{"border-s":le()}],"border-w-e":[{"border-e":le()}],"border-w-t":[{"border-t":le()}],"border-w-r":[{"border-r":le()}],"border-w-b":[{"border-b":le()}],"border-w-l":[{"border-l":le()}],"divide-x":[{"divide-x":le()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":le()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Ee(),"hidden","none"]}],"divide-style":[{divide:[...Ee(),"hidden","none"]}],"border-color":[{border:B()}],"border-color-x":[{"border-x":B()}],"border-color-y":[{"border-y":B()}],"border-color-s":[{"border-s":B()}],"border-color-e":[{"border-e":B()}],"border-color-t":[{"border-t":B()}],"border-color-r":[{"border-r":B()}],"border-color-b":[{"border-b":B()}],"border-color-l":[{"border-l":B()}],"divide-color":[{divide:B()}],"outline-style":[{outline:[...Ee(),"none","hidden"]}],"outline-offset":[{"outline-offset":[_e,ce,ue]}],"outline-w":[{outline:["",_e,uo,wr]}],"outline-color":[{outline:B()}],shadow:[{shadow:["","none",g,Kl,Gl]}],"shadow-color":[{shadow:B()}],"inset-shadow":[{"inset-shadow":["none",m,Kl,Gl]}],"inset-shadow-color":[{"inset-shadow":B()}],"ring-w":[{ring:le()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:B()}],"ring-offset-w":[{"ring-offset":[_e,wr]}],"ring-offset-color":[{"ring-offset":B()}],"inset-ring-w":[{"inset-ring":le()}],"inset-ring-color":[{"inset-ring":B()}],"text-shadow":[{"text-shadow":["none",v,Kl,Gl]}],"text-shadow-color":[{"text-shadow":B()}],opacity:[{opacity:[_e,ce,ue]}],"mix-blend":[{"mix-blend":[...ge(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ge()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[_e]}],"mask-image-linear-from-pos":[{"mask-linear-from":we()}],"mask-image-linear-to-pos":[{"mask-linear-to":we()}],"mask-image-linear-from-color":[{"mask-linear-from":B()}],"mask-image-linear-to-color":[{"mask-linear-to":B()}],"mask-image-t-from-pos":[{"mask-t-from":we()}],"mask-image-t-to-pos":[{"mask-t-to":we()}],"mask-image-t-from-color":[{"mask-t-from":B()}],"mask-image-t-to-color":[{"mask-t-to":B()}],"mask-image-r-from-pos":[{"mask-r-from":we()}],"mask-image-r-to-pos":[{"mask-r-to":we()}],"mask-image-r-from-color":[{"mask-r-from":B()}],"mask-image-r-to-color":[{"mask-r-to":B()}],"mask-image-b-from-pos":[{"mask-b-from":we()}],"mask-image-b-to-pos":[{"mask-b-to":we()}],"mask-image-b-from-color":[{"mask-b-from":B()}],"mask-image-b-to-color":[{"mask-b-to":B()}],"mask-image-l-from-pos":[{"mask-l-from":we()}],"mask-image-l-to-pos":[{"mask-l-to":we()}],"mask-image-l-from-color":[{"mask-l-from":B()}],"mask-image-l-to-color":[{"mask-l-to":B()}],"mask-image-x-from-pos":[{"mask-x-from":we()}],"mask-image-x-to-pos":[{"mask-x-to":we()}],"mask-image-x-from-color":[{"mask-x-from":B()}],"mask-image-x-to-color":[{"mask-x-to":B()}],"mask-image-y-from-pos":[{"mask-y-from":we()}],"mask-image-y-to-pos":[{"mask-y-to":we()}],"mask-image-y-from-color":[{"mask-y-from":B()}],"mask-image-y-to-color":[{"mask-y-to":B()}],"mask-image-radial":[{"mask-radial":[ce,ue]}],"mask-image-radial-from-pos":[{"mask-radial-from":we()}],"mask-image-radial-to-pos":[{"mask-radial-to":we()}],"mask-image-radial-from-color":[{"mask-radial-from":B()}],"mask-image-radial-to-color":[{"mask-radial-to":B()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":$()}],"mask-image-conic-pos":[{"mask-conic":[_e]}],"mask-image-conic-from-pos":[{"mask-conic-from":we()}],"mask-image-conic-to-pos":[{"mask-conic-to":we()}],"mask-image-conic-from-color":[{"mask-conic-from":B()}],"mask-image-conic-to-color":[{"mask-conic-to":B()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:oe()}],"mask-repeat":[{mask:_()}],"mask-size":[{mask:j()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ce,ue]}],filter:[{filter:["","none",ce,ue]}],blur:[{blur:Ce()}],brightness:[{brightness:[_e,ce,ue]}],contrast:[{contrast:[_e,ce,ue]}],"drop-shadow":[{"drop-shadow":["","none",x,Kl,Gl]}],"drop-shadow-color":[{"drop-shadow":B()}],grayscale:[{grayscale:["",_e,ce,ue]}],"hue-rotate":[{"hue-rotate":[_e,ce,ue]}],invert:[{invert:["",_e,ce,ue]}],saturate:[{saturate:[_e,ce,ue]}],sepia:[{sepia:["",_e,ce,ue]}],"backdrop-filter":[{"backdrop-filter":["","none",ce,ue]}],"backdrop-blur":[{"backdrop-blur":Ce()}],"backdrop-brightness":[{"backdrop-brightness":[_e,ce,ue]}],"backdrop-contrast":[{"backdrop-contrast":[_e,ce,ue]}],"backdrop-grayscale":[{"backdrop-grayscale":["",_e,ce,ue]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[_e,ce,ue]}],"backdrop-invert":[{"backdrop-invert":["",_e,ce,ue]}],"backdrop-opacity":[{"backdrop-opacity":[_e,ce,ue]}],"backdrop-saturate":[{"backdrop-saturate":[_e,ce,ue]}],"backdrop-sepia":[{"backdrop-sepia":["",_e,ce,ue]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":W()}],"border-spacing-x":[{"border-spacing-x":W()}],"border-spacing-y":[{"border-spacing-y":W()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ce,ue]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[_e,"initial",ce,ue]}],ease:[{ease:["linear","initial",I,ce,ue]}],delay:[{delay:[_e,ce,ue]}],animate:[{animate:["none",O,ce,ue]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[C,ce,ue]}],"perspective-origin":[{"perspective-origin":Y()}],rotate:[{rotate:Re()}],"rotate-x":[{"rotate-x":Re()}],"rotate-y":[{"rotate-y":Re()}],"rotate-z":[{"rotate-z":Re()}],scale:[{scale:Fe()}],"scale-x":[{"scale-x":Fe()}],"scale-y":[{"scale-y":Fe()}],"scale-z":[{"scale-z":Fe()}],"scale-3d":["scale-3d"],skew:[{skew:It()}],"skew-x":[{"skew-x":It()}],"skew-y":[{"skew-y":It()}],transform:[{transform:[ce,ue,"","none","gpu","cpu"]}],"transform-origin":[{origin:Y()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:un()}],"translate-x":[{"translate-x":un()}],"translate-y":[{"translate-y":un()}],"translate-z":[{"translate-z":un()}],"translate-none":["translate-none"],accent:[{accent:B()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:B()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ce,ue]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":W()}],"scroll-mx":[{"scroll-mx":W()}],"scroll-my":[{"scroll-my":W()}],"scroll-ms":[{"scroll-ms":W()}],"scroll-me":[{"scroll-me":W()}],"scroll-mt":[{"scroll-mt":W()}],"scroll-mr":[{"scroll-mr":W()}],"scroll-mb":[{"scroll-mb":W()}],"scroll-ml":[{"scroll-ml":W()}],"scroll-p":[{"scroll-p":W()}],"scroll-px":[{"scroll-px":W()}],"scroll-py":[{"scroll-py":W()}],"scroll-ps":[{"scroll-ps":W()}],"scroll-pe":[{"scroll-pe":W()}],"scroll-pt":[{"scroll-pt":W()}],"scroll-pr":[{"scroll-pr":W()}],"scroll-pb":[{"scroll-pb":W()}],"scroll-pl":[{"scroll-pl":W()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ce,ue]}],fill:[{fill:["none",...B()]}],"stroke-w":[{stroke:[_e,uo,wr,Ou]}],stroke:[{stroke:["none",...B()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},AS=fS(NS);function ut(...e){return AS(Yg(e))}const jS=W0,uy=b.forwardRef(({className:e,...n},r)=>S.jsx(Ug,{ref:r,className:ut("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...n}));uy.displayName=Ug.displayName;const OS=Qg("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),cy=b.forwardRef(({className:e,variant:n,...r},o)=>S.jsx(Vg,{ref:o,className:ut(OS({variant:n}),e),...r}));cy.displayName=Vg.displayName;const fy=b.forwardRef(({className:e,...n},r)=>S.jsx(qg,{ref:r,className:ut("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",e),...n}));fy.displayName=qg.displayName;const dy=b.forwardRef(({className:e,...n},r)=>S.jsx(Gg,{ref:r,className:ut("absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...n,children:S.jsx(Y1,{className:"h-4 w-4"})}));dy.displayName=Gg.displayName;const py=b.forwardRef(({className:e,...n},r)=>S.jsx(Wg,{ref:r,className:ut("text-sm font-semibold",e),...n}));py.displayName=Wg.displayName;const hy=b.forwardRef(({className:e,...n},r)=>S.jsx(Hg,{ref:r,className:ut("text-sm opacity-90",e),...n}));hy.displayName=Hg.displayName;function LS(){const{toasts:e}=t0();return S.jsxs(jS,{children:[e.map(function({id:n,title:r,description:o,action:l,...a}){return S.jsxs(cy,{...a,children:[S.jsxs("div",{className:"grid gap-1",children:[r&&S.jsx(py,{children:r}),o&&S.jsx(hy,{children:o})]}),l,S.jsx(dy,{})]},n)}),S.jsx(uy,{})]})}var DS=b.useLayoutEffect;function zS(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global}function MS(){const e=zS();if(e.__xstate__)return e.__xstate__}const FS=e=>{if(typeof window>"u")return;const n=MS();n&&n.register(e)};class Xh{constructor(n){this._process=n,this._active=!1,this._current=null,this._last=null}start(){this._active=!0,this.flush()}clear(){this._current&&(this._current.next=null,this._last=this._current)}enqueue(n){const r={value:n,next:null};if(this._current){this._last.next=r,this._last=r;return}this._current=r,this._last=r,this._active&&this.flush()}flush(){for(;this._current;){const n=this._current;this._process(n.value),this._current=n.next}this._last=null}}const my=".",BS="",gy="",$S="#",US="*",yy="xstate.init",VS="xstate.error",as="xstate.stop";function WS(e,n){return{type:`xstate.after.${e}.${n}`}}function wc(e,n){return{type:`xstate.done.state.${e}`,output:n}}function HS(e,n){return{type:`xstate.done.actor.${e}`,output:n,actorId:e}}function vy(e,n){return{type:`xstate.error.actor.${e}`,error:n,actorId:e}}function xy(e){return{type:yy,input:e}}function ln(e){setTimeout(()=>{throw e})}const qS=typeof Symbol=="function"&&Symbol.observable||"@@observable";function wy(e,n){const r=Jh(e),o=Jh(n);return typeof o=="string"?typeof r=="string"?o===r:!1:typeof r=="string"?r in o:Object.keys(r).every(l=>l in o?wy(r[l],o[l]):!1)}function Kc(e){if(Sy(e))return e;const n=[];let r="";for(let o=0;o<e.length;o++){switch(e.charCodeAt(o)){case 92:r+=e[o+1],o++;continue;case 46:n.push(r),r="";continue}r+=e[o]}return n.push(r),n}function Jh(e){if(bE(e))return e.value;if(typeof e!="string")return e;const n=Kc(e);return GS(n)}function GS(e){if(e.length===1)return e[0];const n={};let r=n;for(let o=0;o<e.length-1;o++)if(o===e.length-2)r[e[o]]=e[o+1];else{const l=r;r={},l[e[o]]=r}return n}function Zh(e,n){const r={},o=Object.keys(e);for(let l=0;l<o.length;l++){const a=o[l];r[a]=n(e[a],a,e,l)}return r}function ky(e){return Sy(e)?e:[e]}function Jn(e){return e===void 0?[]:ky(e)}function kc(e,n,r,o){return typeof e=="function"?e({context:n,event:r,self:o}):e}function Sy(e){return Array.isArray(e)}function KS(e){return e.type.startsWith("xstate.error.actor")}function li(e){return ky(e).map(n=>typeof n>"u"||typeof n=="string"?{target:n}:n)}function Ey(e){if(!(e===void 0||e===BS))return Jn(e)}function us(e,n,r){var a,u,f;const o=typeof e=="object",l=o?e:void 0;return{next:(a=o?e.next:e)==null?void 0:a.bind(l),error:(u=o?e.error:n)==null?void 0:u.bind(l),complete:(f=o?e.complete:r)==null?void 0:f.bind(l)}}function em(e,n){return`${n}.${e}`}function Yc(e,n){const r=n.match(/^xstate\.invoke\.(\d+)\.(.*)/);if(!r)return e.implementations.actors[n];const[,o,l]=r,u=e.getStateNodeById(l).config.invoke;return(Array.isArray(u)?u[o]:u).src}function YS(e,n){if(n===e||n===US)return!0;if(!n.endsWith(".*"))return!1;const r=n.split("."),o=e.split(".");for(let l=0;l<r.length;l++){const a=r[l],u=o[l];if(a==="*")return l===r.length-1;if(a!==u)return!1}return!0}function tm(e,n){return`${e.sessionId}.${n}`}let QS=0;function XS(e,n){const r=new Map,o=new Map,l=new WeakMap,a=new Set,u={},{clock:f,logger:d}=n,p={schedule:(v,x,k,C,E=Math.random().toString(36).slice(2))=>{const I={source:v,target:x,event:k,delay:C,id:E,startedAt:Date.now()},O=tm(v,E);m._snapshot._scheduledEvents[O]=I;const N=f.setTimeout(()=>{delete u[O],delete m._snapshot._scheduledEvents[O],m._relay(v,x,k)},C);u[O]=N},cancel:(v,x)=>{const k=tm(v,x),C=u[k];delete u[k],delete m._snapshot._scheduledEvents[k],C!==void 0&&f.clearTimeout(C)},cancelAll:v=>{for(const x in m._snapshot._scheduledEvents){const k=m._snapshot._scheduledEvents[x];k.source===v&&p.cancel(v,k.id)}}},g=v=>{if(!a.size)return;const x={...v,rootId:e.sessionId};a.forEach(k=>{var C;return(C=k.next)==null?void 0:C.call(k,x)})},m={_snapshot:{_scheduledEvents:((n==null?void 0:n.snapshot)&&n.snapshot.scheduler)??{}},_bookId:()=>`x:${QS++}`,_register:(v,x)=>(r.set(v,x),v),_unregister:v=>{r.delete(v.sessionId);const x=l.get(v);x!==void 0&&(o.delete(x),l.delete(v))},get:v=>o.get(v),getAll:()=>Object.fromEntries(o.entries()),_set:(v,x)=>{const k=o.get(v);if(k&&k!==x)throw new Error(`Actor with system ID '${v}' already exists.`);o.set(v,x),l.set(x,v)},inspect:v=>{const x=us(v);return a.add(x),{unsubscribe(){a.delete(x)}}},_sendInspectionEvent:g,_relay:(v,x,k)=>{m._sendInspectionEvent({type:"@xstate.event",sourceRef:v,actorRef:x,event:k}),x._send(k)},scheduler:p,getSnapshot:()=>({_scheduledEvents:{...m._snapshot._scheduledEvents}}),start:()=>{const v=m._snapshot._scheduledEvents;m._snapshot._scheduledEvents={};for(const x in v){const{source:k,target:C,event:E,delay:I,id:O}=v[x];p.schedule(k,C,E,I,O)}},_clock:f,_logger:d};return m}let Lu=!1;const Qc=1;let Tt=(function(e){return e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped",e})({});const JS={clock:{setTimeout:(e,n)=>setTimeout(e,n),clearTimeout:e=>clearTimeout(e)},logger:console.log.bind(console),devTools:!1};class ZS{constructor(n,r){this.logic=n,this._snapshot=void 0,this.clock=void 0,this.options=void 0,this.id=void 0,this.mailbox=new Xh(this._process.bind(this)),this.observers=new Set,this.eventListeners=new Map,this.logger=void 0,this._processingStatus=Tt.NotStarted,this._parent=void 0,this._syncSnapshot=void 0,this.ref=void 0,this._actorScope=void 0,this.systemId=void 0,this.sessionId=void 0,this.system=void 0,this._doneEvent=void 0,this.src=void 0,this._deferred=[];const o={...JS,...r},{clock:l,logger:a,parent:u,syncSnapshot:f,id:d,systemId:p,inspect:g}=o;this.system=u?u.system:XS(this,{clock:l,logger:a}),g&&!u&&this.system.inspect(us(g)),this.sessionId=this.system._bookId(),this.id=d??this.sessionId,this.logger=(r==null?void 0:r.logger)??this.system._logger,this.clock=(r==null?void 0:r.clock)??this.system._clock,this._parent=u,this._syncSnapshot=f,this.options=o,this.src=o.src??n,this.ref=this,this._actorScope={self:this,id:this.id,sessionId:this.sessionId,logger:this.logger,defer:m=>{this._deferred.push(m)},system:this.system,stopChild:m=>{if(m._parent!==this)throw new Error(`Cannot stop child actor ${m.id} of ${this.id} because it is not a child`);m._stop()},emit:m=>{const v=this.eventListeners.get(m.type),x=this.eventListeners.get("*");if(!v&&!x)return;const k=[...v?v.values():[],...x?x.values():[]];for(const C of k)try{C(m)}catch(E){ln(E)}},actionExecutor:m=>{const v=()=>{if(this._actorScope.system._sendInspectionEvent({type:"@xstate.action",actorRef:this,action:{type:m.type,params:m.params}}),!m.exec)return;const x=Lu;try{Lu=!0,m.exec(m.info,m.params)}finally{Lu=x}};this._processingStatus===Tt.Running?v():this._deferred.push(v)}},this.send=this.send.bind(this),this.system._sendInspectionEvent({type:"@xstate.actor",actorRef:this}),p&&(this.systemId=p,this.system._set(p,this)),this._initState((r==null?void 0:r.snapshot)??(r==null?void 0:r.state)),p&&this._snapshot.status!=="active"&&this.system._unregister(this)}_initState(n){var r;try{this._snapshot=n?this.logic.restoreSnapshot?this.logic.restoreSnapshot(n,this._actorScope):n:this.logic.getInitialSnapshot(this._actorScope,(r=this.options)==null?void 0:r.input)}catch(o){this._snapshot={status:"error",output:void 0,error:o}}}update(n,r){var l,a;this._snapshot=n;let o;for(;o=this._deferred.shift();)try{o()}catch(u){this._deferred.length=0,this._snapshot={...n,status:"error",error:u}}switch(this._snapshot.status){case"active":for(const u of this.observers)try{(l=u.next)==null||l.call(u,n)}catch(f){ln(f)}break;case"done":for(const u of this.observers)try{(a=u.next)==null||a.call(u,n)}catch(f){ln(f)}this._stopProcedure(),this._complete(),this._doneEvent=HS(this.id,this._snapshot.output),this._parent&&this.system._relay(this,this._parent,this._doneEvent);break;case"error":this._error(this._snapshot.error);break}this.system._sendInspectionEvent({type:"@xstate.snapshot",actorRef:this,event:r,snapshot:n})}subscribe(n,r,o){var a;const l=us(n,r,o);if(this._processingStatus!==Tt.Stopped)this.observers.add(l);else switch(this._snapshot.status){case"done":try{(a=l.complete)==null||a.call(l)}catch(u){ln(u)}break;case"error":{const u=this._snapshot.error;if(!l.error)ln(u);else try{l.error(u)}catch(f){ln(f)}break}}return{unsubscribe:()=>{this.observers.delete(l)}}}on(n,r){let o=this.eventListeners.get(n);o||(o=new Set,this.eventListeners.set(n,o));const l=r.bind(void 0);return o.add(l),{unsubscribe:()=>{o.delete(l)}}}start(){if(this._processingStatus===Tt.Running)return this;this._syncSnapshot&&this.subscribe({next:o=>{o.status==="active"&&this.system._relay(this,this._parent,{type:`xstate.snapshot.${this.id}`,snapshot:o})},error:()=>{}}),this.system._register(this.sessionId,this),this.systemId&&this.system._set(this.systemId,this),this._processingStatus=Tt.Running;const n=xy(this.options.input);switch(this.system._sendInspectionEvent({type:"@xstate.event",sourceRef:this._parent,actorRef:this,event:n}),this._snapshot.status){case"done":return this.update(this._snapshot,n),this;case"error":return this._error(this._snapshot.error),this}if(this._parent||this.system.start(),this.logic.start)try{this.logic.start(this._snapshot,this._actorScope)}catch(o){return this._snapshot={...this._snapshot,status:"error",error:o},this._error(o),this}return this.update(this._snapshot,n),this.options.devTools&&this.attachDevTools(),this.mailbox.start(),this}_process(n){let r,o;try{r=this.logic.transition(this._snapshot,n,this._actorScope)}catch(l){o={err:l}}if(o){const{err:l}=o;this._snapshot={...this._snapshot,status:"error",error:l},this._error(l);return}this.update(r,n),n.type===as&&(this._stopProcedure(),this._complete())}_stop(){return this._processingStatus===Tt.Stopped?this:(this.mailbox.clear(),this._processingStatus===Tt.NotStarted?(this._processingStatus=Tt.Stopped,this):(this.mailbox.enqueue({type:as}),this))}stop(){if(this._parent)throw new Error("A non-root actor cannot be stopped directly.");return this._stop()}_complete(){var n;for(const r of this.observers)try{(n=r.complete)==null||n.call(r)}catch(o){ln(o)}this.observers.clear(),this.eventListeners.clear()}_reportError(n){if(!this.observers.size){this._parent||ln(n),this.eventListeners.clear();return}let r=!1;for(const o of this.observers){const l=o.error;r||(r=!l);try{l==null||l(n)}catch(a){ln(a)}}this.observers.clear(),this.eventListeners.clear(),r&&ln(n)}_error(n){this._stopProcedure(),this._reportError(n),this._parent&&this.system._relay(this,this._parent,vy(this.id,n))}_stopProcedure(){return this._processingStatus!==Tt.Running?this:(this.system.scheduler.cancelAll(this),this.mailbox.clear(),this.mailbox=new Xh(this._process.bind(this)),this._processingStatus=Tt.Stopped,this.system._unregister(this),this)}_send(n){this._processingStatus!==Tt.Stopped&&this.mailbox.enqueue(n)}send(n){this.system._relay(void 0,this,n)}attachDevTools(){const{devTools:n}=this.options;n&&(typeof n=="function"?n:FS)(this)}toJSON(){return{xstate$$type:Qc,id:this.id}}getPersistedSnapshot(n){return this.logic.getPersistedSnapshot(this._snapshot,n)}[qS](){return this}getSnapshot(){return this._snapshot}}function ci(e,...[n]){return new ZS(e,n)}function eE(e,n,r,o,{sendId:l}){const a=typeof l=="function"?l(r,o):l;return[n,{sendId:a},void 0]}function tE(e,n){e.defer(()=>{e.system.scheduler.cancel(e.self,n.sendId)})}function Xc(e){function n(r,o){}return n.type="xstate.cancel",n.sendId=e,n.resolve=eE,n.execute=tE,n}function nE(e,n,r,o,{id:l,systemId:a,src:u,input:f,syncSnapshot:d}){const p=typeof u=="string"?Yc(n.machine,u):u,g=typeof l=="function"?l(r):l;let m,v;return p&&(v=typeof f=="function"?f({context:n.context,event:r.event,self:e.self}):f,m=ci(p,{id:g,src:u,parent:e.self,syncSnapshot:d,systemId:a,input:v})),[br(n,{children:{...n.children,[g]:m}}),{id:l,systemId:a,actorRef:m,src:u,input:v},void 0]}function rE(e,{actorRef:n}){n&&e.defer(()=>{n._processingStatus!==Tt.Stopped&&n.start()})}function Jc(...[e,{id:n,systemId:r,input:o,syncSnapshot:l=!1}={}]){function a(u,f){}return a.type="xstate.spawnChild",a.id=n,a.systemId=r,a.src=e,a.input=o,a.syncSnapshot=l,a.resolve=nE,a.execute=rE,a}function iE(e,n,r,o,{actorRef:l}){const a=typeof l=="function"?l(r,o):l,u=typeof a=="string"?n.children[a]:a;let f=n.children;return u&&(f={...f},delete f[u.id]),[br(n,{children:f}),u,void 0]}function Cy(e,n){const r=n.getSnapshot();if(r&&"children"in r)for(const o of Object.values(r.children))Cy(e,o);e.system._unregister(n)}function oE(e,n){if(n){if(Cy(e,n),n._processingStatus!==Tt.Running){e.stopChild(n);return}e.defer(()=>{e.stopChild(n)})}}function Ps(e){function n(r,o){}return n.type="xstate.stopChild",n.actorRef=e,n.resolve=iE,n.execute=oE,n}function Is(e,n,r,o){const{machine:l}=o,a=typeof e=="function",u=a?e:l.implementations.guards[typeof e=="string"?e:e.type];if(!a&&!u)throw new Error(`Guard '${typeof e=="string"?e:e.type}' is not implemented.'.`);if(typeof u!="function")return Is(u,n,r,o);const f={context:n,event:r},d=a||typeof e=="string"?void 0:"params"in e?typeof e.params=="function"?e.params({context:n,event:r}):e.params:void 0;return"check"in u?u.check(o,f,u):u(f,d)}function Zc(e){return e.type==="atomic"||e.type==="final"}function fi(e){return Object.values(e.states).filter(n=>n.type!=="history")}function Po(e,n){const r=[];if(n===e)return r;let o=e.parent;for(;o&&o!==n;)r.push(o),o=o.parent;return r}function cs(e){const n=new Set(e),r=_y(n);for(const o of n)if(o.type==="compound"&&(!r.get(o)||!r.get(o).length))nm(o).forEach(l=>n.add(l));else if(o.type==="parallel"){for(const l of fi(o))if(l.type!=="history"&&!n.has(l)){const a=nm(l);for(const u of a)n.add(u)}}for(const o of n){let l=o.parent;for(;l;)n.add(l),l=l.parent}return n}function by(e,n){const r=n.get(e);if(!r)return{};if(e.type==="compound"){const l=r[0];if(l){if(Zc(l))return l.key}else return{}}const o={};for(const l of r)o[l.key]=by(l,n);return o}function _y(e){const n=new Map;for(const r of e)n.has(r)||n.set(r,[]),r.parent&&(n.has(r.parent)||n.set(r.parent,[]),n.get(r.parent).push(r));return n}function Ty(e,n){const r=cs(n);return by(e,_y(r))}function ef(e,n){return n.type==="compound"?fi(n).some(r=>r.type==="final"&&e.has(r)):n.type==="parallel"?fi(n).every(r=>ef(e,r)):n.type==="final"}const Rs=e=>e[0]===$S;function lE(e,n){return e.transitions.get(n)||[...e.transitions.keys()].filter(o=>YS(n,o)).sort((o,l)=>l.length-o.length).flatMap(o=>e.transitions.get(o))}function sE(e){const n=e.config.after;if(!n)return[];const r=l=>{const a=WS(l,e.id),u=a.type;return e.entry.push(rf(a,{id:u,delay:l})),e.exit.push(Xc(u)),u};return Object.keys(n).flatMap(l=>{const a=n[l],u=typeof a=="string"?{target:a}:a,f=Number.isNaN(+l)?l:+l,d=r(f);return Jn(u).map(p=>({...p,event:d,delay:f}))}).map(l=>{const{delay:a}=l;return{...Sr(e,l.event,l),delay:a}})}function Sr(e,n,r){const o=Ey(r.target),l=r.reenter??!1,a=cE(e,o),u={...r,actions:Jn(r.actions),guard:r.guard,target:a,source:e,reenter:l,eventType:n,toJSON:()=>({...u,source:`#${e.id}`,target:a?a.map(f=>`#${f.id}`):void 0})};return u}function aE(e){const n=new Map;if(e.config.on)for(const r of Object.keys(e.config.on)){if(r===gy)throw new Error('Null events ("") cannot be specified as a transition key. Use `always: { ... }` instead.');const o=e.config.on[r];n.set(r,li(o).map(l=>Sr(e,r,l)))}if(e.config.onDone){const r=`xstate.done.state.${e.id}`;n.set(r,li(e.config.onDone).map(o=>Sr(e,r,o)))}for(const r of e.invoke){if(r.onDone){const o=`xstate.done.actor.${r.id}`;n.set(o,li(r.onDone).map(l=>Sr(e,o,l)))}if(r.onError){const o=`xstate.error.actor.${r.id}`;n.set(o,li(r.onError).map(l=>Sr(e,o,l)))}if(r.onSnapshot){const o=`xstate.snapshot.${r.id}`;n.set(o,li(r.onSnapshot).map(l=>Sr(e,o,l)))}}for(const r of e.after){let o=n.get(r.eventType);o||(o=[],n.set(r.eventType,o)),o.push(r)}return n}function uE(e,n){const r=typeof n=="string"?e.states[n]:n?e.states[n.target]:void 0;if(!r&&n)throw new Error(`Initial state node "${n}" not found on parent state node #${e.id}`);const o={source:e,actions:!n||typeof n=="string"?[]:Jn(n.actions),eventType:null,reenter:!1,target:r?[r]:[],toJSON:()=>({...o,source:`#${e.id}`,target:r?[`#${r.id}`]:[]})};return o}function cE(e,n){if(n!==void 0)return n.map(r=>{if(typeof r!="string")return r;if(Rs(r))return e.machine.getStateNodeById(r);const o=r[0]===my;if(o&&!e.parent)return fs(e,r.slice(1));const l=o?e.key+r:r;if(e.parent)try{return fs(e.parent,l)}catch(a){throw new Error(`Invalid transition definition for state node '${e.id}':
148
+ ${a.message}`)}else throw new Error(`Invalid target: "${r}" is not a valid target from the root node. Did you mean ".${r}"?`)})}function Py(e){const n=Ey(e.config.target);return n?{target:n.map(r=>typeof r=="string"?fs(e.parent,r):r)}:e.parent.initial}function Er(e){return e.type==="history"}function nm(e){const n=Iy(e);for(const r of n)for(const o of Po(r,e))n.add(o);return n}function Iy(e){const n=new Set;function r(o){if(!n.has(o)){if(n.add(o),o.type==="compound")r(o.initial.target[0]);else if(o.type==="parallel")for(const l of fi(o))r(l)}}return r(e),n}function di(e,n){if(Rs(n))return e.machine.getStateNodeById(n);if(!e.states)throw new Error(`Unable to retrieve child state '${n}' from '${e.id}'; no child states exist.`);const r=e.states[n];if(!r)throw new Error(`Child state '${n}' does not exist on '${e.id}'`);return r}function fs(e,n){if(typeof n=="string"&&Rs(n))try{return e.machine.getStateNodeById(n)}catch{}const r=Kc(n).slice();let o=e;for(;r.length;){const l=r.shift();if(!l.length)break;o=di(o,l)}return o}function ds(e,n){if(typeof n=="string"){const l=e.states[n];if(!l)throw new Error(`State '${n}' does not exist on '${e.id}'`);return[e,l]}const r=Object.keys(n),o=r.map(l=>di(e,l)).filter(Boolean);return[e.machine.root,e].concat(o,r.reduce((l,a)=>{const u=di(e,a);if(!u)return l;const f=ds(u,n[a]);return l.concat(f)},[]))}function fE(e,n,r,o){const a=di(e,n).next(r,o);return!a||!a.length?e.next(r,o):a}function dE(e,n,r,o){const l=Object.keys(n),a=di(e,l[0]),u=tf(a,n[l[0]],r,o);return!u||!u.length?e.next(r,o):u}function pE(e,n,r,o){const l=[];for(const a of Object.keys(n)){const u=n[a];if(!u)continue;const f=di(e,a),d=tf(f,u,r,o);d&&l.push(...d)}return l.length?l:e.next(r,o)}function tf(e,n,r,o){return typeof n=="string"?fE(e,n,r,o):Object.keys(n).length===1?dE(e,n,r,o):pE(e,n,r,o)}function hE(e){return Object.keys(e.states).map(n=>e.states[n]).filter(n=>n.type==="history")}function nr(e,n){let r=e;for(;r.parent&&r.parent!==n;)r=r.parent;return r.parent===n}function mE(e,n){const r=new Set(e),o=new Set(n);for(const l of r)if(o.has(l))return!0;for(const l of o)if(r.has(l))return!0;return!1}function Ry(e,n,r){const o=new Set;for(const l of e){let a=!1;const u=new Set;for(const f of o)if(mE(Sc([l],n,r),Sc([f],n,r)))if(nr(l.source,f.source))u.add(f);else{a=!0;break}if(!a){for(const f of u)o.delete(f);o.add(l)}}return Array.from(o)}function gE(e){const[n,...r]=e;for(const o of Po(n,void 0))if(r.every(l=>nr(l,o)))return o}function nf(e,n){if(!e.target)return[];const r=new Set;for(const o of e.target)if(Er(o))if(n[o.id])for(const l of n[o.id])r.add(l);else for(const l of nf(Py(o),n))r.add(l);else r.add(o);return[...r]}function Ny(e,n){const r=nf(e,n);if(!r)return;if(!e.reenter&&r.every(l=>l===e.source||nr(l,e.source)))return e.source;const o=gE(r.concat(e.source));if(o)return o;if(!e.reenter)return e.source.machine.root}function Sc(e,n,r){var l;const o=new Set;for(const a of e)if((l=a.target)!=null&&l.length){const u=Ny(a,r);a.reenter&&a.source===u&&o.add(u);for(const f of n)nr(f,u)&&o.add(f)}return[...o]}function yE(e,n){if(e.length!==n.size)return!1;for(const r of e)if(!n.has(r))return!1;return!0}function Ec(e,n,r,o,l,a){if(!e.length)return n;const u=new Set(n._nodes);let f=n.historyValue;const d=Ry(e,u,f);let p=n;l||([p,f]=kE(p,o,r,d,u,f,a,r.actionExecutor)),p=pi(p,o,r,d.flatMap(m=>m.actions),a,void 0),p=xE(p,o,r,d,u,a,f,l);const g=[...u];p.status==="done"&&(p=pi(p,o,r,g.sort((m,v)=>v.order-m.order).flatMap(m=>m.exit),a,void 0));try{return f===n.historyValue&&yE(n._nodes,u)?p:br(p,{_nodes:g,historyValue:f})}catch(m){throw m}}function vE(e,n,r,o,l){if(o.output===void 0)return;const a=wc(l.id,l.output!==void 0&&l.parent?kc(l.output,e.context,n,r.self):void 0);return kc(o.output,e.context,a,r.self)}function xE(e,n,r,o,l,a,u,f){let d=e;const p=new Set,g=new Set;wE(o,u,g,p),f&&g.add(e.machine.root);const m=new Set;for(const v of[...p].sort((x,k)=>x.order-k.order)){l.add(v);const x=[];x.push(...v.entry);for(const k of v.invoke)x.push(Jc(k.src,{...k,syncSnapshot:!!k.onSnapshot}));if(g.has(v)){const k=v.initial.actions;x.push(...k)}if(d=pi(d,n,r,x,a,v.invoke.map(k=>k.id)),v.type==="final"){const k=v.parent;let C=(k==null?void 0:k.type)==="parallel"?k:k==null?void 0:k.parent,E=C||v;for((k==null?void 0:k.type)==="compound"&&a.push(wc(k.id,v.output!==void 0?kc(v.output,d.context,n,r.self):void 0));(C==null?void 0:C.type)==="parallel"&&!m.has(C)&&ef(l,C);)m.add(C),a.push(wc(C.id)),E=C,C=C.parent;if(C)continue;d=br(d,{status:"done",output:vE(d,n,r,d.machine.root,E)})}}return d}function wE(e,n,r,o){for(const l of e){const a=Ny(l,n);for(const f of l.target||[])!Er(f)&&(l.source!==f||l.source!==a||l.reenter)&&(o.add(f),r.add(f)),ai(f,n,r,o);const u=nf(l,n);for(const f of u){const d=Po(f,a);(a==null?void 0:a.type)==="parallel"&&d.push(a),Ay(o,n,r,d,!l.source.parent&&l.reenter?void 0:a)}}}function ai(e,n,r,o){var l;if(Er(e))if(n[e.id]){const a=n[e.id];for(const u of a)o.add(u),ai(u,n,r,o);for(const u of a)Du(u,e.parent,o,n,r)}else{const a=Py(e);for(const u of a.target)o.add(u),a===((l=e.parent)==null?void 0:l.initial)&&r.add(e.parent),ai(u,n,r,o);for(const u of a.target)Du(u,e.parent,o,n,r)}else if(e.type==="compound"){const[a]=e.initial.target;Er(a)||(o.add(a),r.add(a)),ai(a,n,r,o),Du(a,e,o,n,r)}else if(e.type==="parallel")for(const a of fi(e).filter(u=>!Er(u)))[...o].some(u=>nr(u,a))||(Er(a)||(o.add(a),r.add(a)),ai(a,n,r,o))}function Ay(e,n,r,o,l){for(const a of o)if((!l||nr(a,l))&&e.add(a),a.type==="parallel")for(const u of fi(a).filter(f=>!Er(f)))[...e].some(f=>nr(f,u))||(e.add(u),ai(u,n,r,e))}function Du(e,n,r,o,l){Ay(r,o,l,Po(e,n))}function kE(e,n,r,o,l,a,u,f){let d=e;const p=Sc(o,l,a);p.sort((m,v)=>v.order-m.order);let g;for(const m of p)for(const v of hE(m)){let x;v.history==="deep"?x=k=>Zc(k)&&nr(k,m):x=k=>k.parent===m,g??(g={...a}),g[v.id]=Array.from(l).filter(x)}for(const m of p)d=pi(d,n,r,[...m.exit,...m.invoke.map(v=>Ps(v.id))],u,void 0),l.delete(m);return[d,g||a]}function SE(e,n){return e.implementations.actions[n]}function jy(e,n,r,o,l,a){const{machine:u}=e;let f=e;for(const d of o){const p=typeof d=="function",g=p?d:SE(u,typeof d=="string"?d:d.type),m={context:f.context,event:n,self:r.self,system:r.system},v=p||typeof d=="string"?void 0:"params"in d?typeof d.params=="function"?d.params({context:f.context,event:n}):d.params:void 0;if(!g||!("resolve"in g)){r.actionExecutor({type:typeof d=="string"?d:typeof d=="object"?d.type:d.name||"(anonymous)",info:m,params:v,exec:g});continue}const x=g,[k,C,E]=x.resolve(r,f,m,v,g,l);f=k,"retryResolve"in x&&(a==null||a.push([x,C])),"execute"in x&&r.actionExecutor({type:x.type,info:m,params:C,exec:x.execute.bind(null,r,C)}),E&&(f=jy(f,n,r,E,l,a))}return f}function pi(e,n,r,o,l,a){const u=a?[]:void 0,f=jy(e,n,r,o,{internalQueue:l,deferredActorIds:a},u);return u==null||u.forEach(([d,p])=>{d.retryResolve(r,f,p)}),f}function zu(e,n,r,o){let l=e;const a=[];function u(p,g,m){r.system._sendInspectionEvent({type:"@xstate.microstep",actorRef:r.self,event:g,snapshot:p,_transitions:m}),a.push(p)}if(n.type===as)return l=br(rm(l,n,r),{status:"stopped"}),u(l,n,[]),{snapshot:l,microstates:a};let f=n;if(f.type!==yy){const p=f,g=KS(p),m=im(p,l);if(g&&!m.length)return l=br(e,{status:"error",error:p.error}),u(l,p,[]),{snapshot:l,microstates:a};l=Ec(m,e,r,f,!1,o),u(l,p,m)}let d=!0;for(;l.status==="active";){let p=d?EE(l,f):[];const g=p.length?l:void 0;if(!p.length){if(!o.length)break;f=o.shift(),p=im(f,l)}l=Ec(p,l,r,f,!1,o),d=l!==g,u(l,f,p)}return l.status!=="active"&&rm(l,f,r),{snapshot:l,microstates:a}}function rm(e,n,r){return pi(e,n,r,Object.values(e.children).map(o=>Ps(o)),[],void 0)}function im(e,n){return n.machine.getTransitionData(n,e)}function EE(e,n){const r=new Set,o=e._nodes.filter(Zc);for(const l of o)e:for(const a of[l].concat(Po(l,void 0)))if(a.always){for(const u of a.always)if(u.guard===void 0||Is(u.guard,e.context,n,e)){r.add(u);break e}}return Ry(Array.from(r),new Set(e._nodes),e.historyValue)}function CE(e,n){const r=cs(ds(e,n));return Ty(e,[...r])}function bE(e){return!!e&&typeof e=="object"&&"machine"in e&&"value"in e}const _E=function(n){return wy(n,this.value)},TE=function(n){return this.tags.has(n)},PE=function(n){const r=this.machine.getTransitionData(this,n);return!!(r!=null&&r.length)&&r.some(o=>o.target!==void 0||o.actions.length)},IE=function(){const{_nodes:n,tags:r,machine:o,getMeta:l,toJSON:a,can:u,hasTag:f,matches:d,...p}=this;return{...p,tags:Array.from(r)}},RE=function(){return this._nodes.reduce((n,r)=>(r.meta!==void 0&&(n[r.id]=r.meta),n),{})};function ns(e,n){return{status:e.status,output:e.output,error:e.error,machine:n,context:e.context,_nodes:e._nodes,value:Ty(n.root,e._nodes),tags:new Set(e._nodes.flatMap(r=>r.tags)),children:e.children,historyValue:e.historyValue||{},matches:_E,hasTag:TE,can:PE,getMeta:RE,toJSON:IE}}function br(e,n={}){return ns({...e,...n},e.machine)}function NE(e){if(typeof e!="object"||e===null)return{};const n={};for(const r in e){const o=e[r];Array.isArray(o)&&(n[r]=o.map(l=>({id:l.id})))}return n}function AE(e,n){const{_nodes:r,tags:o,machine:l,children:a,context:u,can:f,hasTag:d,matches:p,getMeta:g,toJSON:m,...v}=e,x={};for(const C in a){const E=a[C];x[C]={snapshot:E.getPersistedSnapshot(n),src:E.src,systemId:E.systemId,syncSnapshot:E._syncSnapshot}}return{...v,context:Oy(u),children:x,historyValue:NE(v.historyValue)}}function Oy(e){let n;for(const r in e){const o=e[r];if(o&&typeof o=="object")if("sessionId"in o&&"send"in o&&"ref"in o)n??(n=Array.isArray(e)?e.slice():{...e}),n[r]={xstate$$type:Qc,id:o.id};else{const l=Oy(o);l!==o&&(n??(n=Array.isArray(e)?e.slice():{...e}),n[r]=l)}}return n??e}function jE(e,n,r,o,{event:l,id:a,delay:u},{internalQueue:f}){const d=n.machine.implementations.delays;if(typeof l=="string")throw new Error(`Only event objects may be used with raise; use raise({ type: "${l}" }) instead`);const p=typeof l=="function"?l(r,o):l;let g;if(typeof u=="string"){const m=d&&d[u];g=typeof m=="function"?m(r,o):m}else g=typeof u=="function"?u(r,o):u;return typeof g!="number"&&f.push(p),[n,{event:p,id:a,delay:g},void 0]}function OE(e,n){const{event:r,delay:o,id:l}=n;if(typeof o=="number"){e.defer(()=>{const a=e.self;e.system.scheduler.schedule(a,a,r,o,l)});return}}function rf(e,n){function r(o,l){}return r.type="xstate.raise",r.event=e,r.id=n==null?void 0:n.id,r.delay=n==null?void 0:n.delay,r.resolve=jE,r.execute=OE,r}const Mu=new WeakMap;function LE(e){return{config:e,start:(r,o)=>{const{self:l,system:a,emit:u}=o,f={receivers:void 0,dispose:void 0};Mu.set(l,f),f.dispose=e({input:r.input,system:a,self:l,sendBack:d=>{l.getSnapshot().status!=="stopped"&&l._parent&&a._relay(l,l._parent,d)},receive:d=>{f.receivers??(f.receivers=new Set),f.receivers.add(d)},emit:u})},transition:(r,o,l)=>{var u,f,d;const a=Mu.get(l.self);return o.type===as?(r={...r,status:"stopped",error:void 0},Mu.delete(l.self),(u=a.receivers)==null||u.clear(),(f=a.dispose)==null||f.call(a),r):((d=a.receivers)==null||d.forEach(p=>p(o)),r)},getInitialSnapshot:(r,o)=>({status:"active",output:void 0,error:void 0,input:o}),getPersistedSnapshot:r=>r,restoreSnapshot:r=>r}}function DE(e,{machine:n,context:r},o,l){const a=(u,f)=>{if(typeof u=="string"){const d=Yc(n,u);if(!d)throw new Error(`Actor logic '${u}' not implemented in machine '${n.id}'`);const p=ci(d,{id:f==null?void 0:f.id,parent:e.self,syncSnapshot:f==null?void 0:f.syncSnapshot,input:typeof(f==null?void 0:f.input)=="function"?f.input({context:r,event:o,self:e.self}):f==null?void 0:f.input,src:u,systemId:f==null?void 0:f.systemId});return l[p.id]=p,p}else return ci(u,{id:f==null?void 0:f.id,parent:e.self,syncSnapshot:f==null?void 0:f.syncSnapshot,input:f==null?void 0:f.input,src:u,systemId:f==null?void 0:f.systemId})};return(u,f)=>{const d=a(u,f);return l[d.id]=d,e.defer(()=>{d._processingStatus!==Tt.Stopped&&d.start()}),d}}function zE(e,n,r,o,{assignment:l}){if(!n.context)throw new Error("Cannot assign to undefined `context`. Ensure that `context` is defined in the machine config.");const a={},u={context:n.context,event:r.event,spawn:DE(e,n,r.event,a),self:e.self,system:e.system};let f={};if(typeof l=="function")f=l(u,o);else for(const p of Object.keys(l)){const g=l[p];f[p]=typeof g=="function"?g(u,o):g}const d=Object.assign({},n.context,f);return[br(n,{context:d,children:Object.keys(a).length?{...n.children,...a}:n.children}),void 0,void 0]}function ht(e){function n(r,o){}return n.type="xstate.assign",n.assignment=e,n.resolve=zE,n}const om=new WeakMap;function ri(e,n,r){let o=om.get(e);return o?n in o||(o[n]=r()):(o={[n]:r()},om.set(e,o)),o[n]}const ME={},co=e=>typeof e=="string"?{type:e}:typeof e=="function"?"resolve"in e?{type:e.type}:{type:e.name}:e;class ps{constructor(n,r){if(this.config=n,this.key=void 0,this.id=void 0,this.type=void 0,this.path=void 0,this.states=void 0,this.history=void 0,this.entry=void 0,this.exit=void 0,this.parent=void 0,this.machine=void 0,this.meta=void 0,this.output=void 0,this.order=-1,this.description=void 0,this.tags=[],this.transitions=void 0,this.always=void 0,this.parent=r._parent,this.key=r._key,this.machine=r._machine,this.path=this.parent?this.parent.path.concat(this.key):[],this.id=this.config.id||[this.machine.id,...this.path].join(my),this.type=this.config.type||(this.config.states&&Object.keys(this.config.states).length?"compound":this.config.history?"history":"atomic"),this.description=this.config.description,this.order=this.machine.idMap.size,this.machine.idMap.set(this.id,this),this.states=this.config.states?Zh(this.config.states,(o,l)=>new ps(o,{_parent:this,_key:l,_machine:this.machine})):ME,this.type==="compound"&&!this.config.initial)throw new Error(`No initial state specified for compound state node "#${this.id}". Try adding { initial: "${Object.keys(this.states)[0]}" } to the state config.`);this.history=this.config.history===!0?"shallow":this.config.history||!1,this.entry=Jn(this.config.entry).slice(),this.exit=Jn(this.config.exit).slice(),this.meta=this.config.meta,this.output=this.type==="final"||!this.parent?this.config.output:void 0,this.tags=Jn(n.tags).slice()}_initialize(){this.transitions=aE(this),this.config.always&&(this.always=li(this.config.always).map(n=>Sr(this,gy,n))),Object.keys(this.states).forEach(n=>{this.states[n]._initialize()})}get definition(){return{id:this.id,key:this.key,version:this.machine.version,type:this.type,initial:this.initial?{target:this.initial.target,source:this,actions:this.initial.actions.map(co),eventType:null,reenter:!1,toJSON:()=>({target:this.initial.target.map(n=>`#${n.id}`),source:`#${this.id}`,actions:this.initial.actions.map(co),eventType:null})}:void 0,history:this.history,states:Zh(this.states,n=>n.definition),on:this.on,transitions:[...this.transitions.values()].flat().map(n=>({...n,actions:n.actions.map(co)})),entry:this.entry.map(co),exit:this.exit.map(co),meta:this.meta,order:this.order||-1,output:this.output,invoke:this.invoke,description:this.description,tags:this.tags}}toJSON(){return this.definition}get invoke(){return ri(this,"invoke",()=>Jn(this.config.invoke).map((n,r)=>{const{src:o,systemId:l}=n,a=n.id??em(this.id,r),u=typeof o=="string"?o:`xstate.invoke.${em(this.id,r)}`;return{...n,src:u,id:a,systemId:l,toJSON(){const{onDone:f,onError:d,...p}=n;return{...p,type:"xstate.invoke",src:u,id:a}}}}))}get on(){return ri(this,"on",()=>[...this.transitions].flatMap(([r,o])=>o.map(l=>[r,l])).reduce((r,[o,l])=>(r[o]=r[o]||[],r[o].push(l),r),{}))}get after(){return ri(this,"delayedTransitions",()=>sE(this))}get initial(){return ri(this,"initial",()=>uE(this,this.config.initial))}next(n,r){const o=r.type,l=[];let a;const u=ri(this,`candidates-${o}`,()=>lE(this,o));for(const f of u){const{guard:d}=f,p=n.context;let g=!1;try{g=!d||Is(d,p,r,n)}catch(m){const v=typeof d=="string"?d:typeof d=="object"?d.type:void 0;throw new Error(`Unable to evaluate guard ${v?`'${v}' `:""}in transition for event '${o}' in state node '${this.id}':
149
+ ${m.message}`)}if(g){l.push(...f.actions),a=f;break}}return a?[a]:void 0}get events(){return ri(this,"events",()=>{const{states:n}=this,r=new Set(this.ownEvents);if(n)for(const o of Object.keys(n)){const l=n[o];if(l.states)for(const a of l.events)r.add(`${a}`)}return Array.from(r)})}get ownEvents(){const n=Object.keys(Object.fromEntries(this.transitions)),r=new Set(n.filter(o=>this.transitions.get(o).some(l=>!(!l.target&&!l.actions.length&&!l.reenter))));return Array.from(r)}}const FE="#";class of{constructor(n,r){this.config=n,this.version=void 0,this.schemas=void 0,this.implementations=void 0,this.__xstatenode=!0,this.idMap=new Map,this.root=void 0,this.id=void 0,this.states=void 0,this.events=void 0,this.id=n.id||"(machine)",this.implementations={actors:(r==null?void 0:r.actors)??{},actions:(r==null?void 0:r.actions)??{},delays:(r==null?void 0:r.delays)??{},guards:(r==null?void 0:r.guards)??{}},this.version=this.config.version,this.schemas=this.config.schemas,this.transition=this.transition.bind(this),this.getInitialSnapshot=this.getInitialSnapshot.bind(this),this.getPersistedSnapshot=this.getPersistedSnapshot.bind(this),this.restoreSnapshot=this.restoreSnapshot.bind(this),this.start=this.start.bind(this),this.root=new ps(n,{_key:this.id,_machine:this}),this.root._initialize(),this.states=this.root.states,this.events=this.root.events}provide(n){const{actions:r,guards:o,actors:l,delays:a}=this.implementations;return new of(this.config,{actions:{...r,...n.actions},guards:{...o,...n.guards},actors:{...l,...n.actors},delays:{...a,...n.delays}})}resolveState(n){const r=CE(this.root,n.value),o=cs(ds(this.root,r));return ns({_nodes:[...o],context:n.context||{},children:{},status:ef(o,this.root)?"done":n.status||"active",output:n.output,error:n.error,historyValue:n.historyValue},this)}transition(n,r,o){return zu(n,r,o,[]).snapshot}microstep(n,r,o){return zu(n,r,o,[]).microstates}getTransitionData(n,r){return tf(this.root,n.value,n,r)||[]}getPreInitialState(n,r,o){const{context:l}=this.config,a=ns({context:typeof l!="function"&&l?l:{},_nodes:[this.root],children:{},status:"active"},this);return typeof l=="function"?pi(a,r,n,[ht(({spawn:f,event:d,self:p})=>l({spawn:f,input:d.input,self:p}))],o,void 0):a}getInitialSnapshot(n,r){const o=xy(r),l=[],a=this.getPreInitialState(n,o,l),u=Ec([{target:[...Iy(this.root)],source:this.root,reenter:!0,actions:[],eventType:null,toJSON:null}],a,n,o,!0,l),{snapshot:f}=zu(u,o,n,l);return f}start(n){Object.values(n.children).forEach(r=>{r.getSnapshot().status==="active"&&r.start()})}getStateNodeById(n){const r=Kc(n),o=r.slice(1),l=Rs(r[0])?r[0].slice(FE.length):r[0],a=this.idMap.get(l);if(!a)throw new Error(`Child state node '#${l}' does not exist on machine '${this.id}'`);return fs(a,o)}get definition(){return this.root.definition}toJSON(){return this.definition}getPersistedSnapshot(n,r){return AE(n,r)}restoreSnapshot(n,r){const o={},l=n.children;Object.keys(l).forEach(m=>{const v=l[m],x=v.snapshot,k=v.src,C=typeof k=="string"?Yc(this,k):k;if(!C)return;const E=ci(C,{id:m,parent:r.self,syncSnapshot:v.syncSnapshot,snapshot:x,src:k,systemId:v.systemId});o[m]=E});function a(m,v){if(v instanceof ps)return v;try{return m.machine.getStateNodeById(v.id)}catch{}}function u(m,v){if(!v||typeof v!="object")return{};const x={};for(const k in v){const C=v[k];for(const E of C){const I=a(m,E);I&&(x[k]??(x[k]=[]),x[k].push(I))}}return x}const f=u(this.root,n.historyValue),d=ns({...n,children:o,_nodes:Array.from(cs(ds(this.root,n.value))),historyValue:f},this),p=new Set;function g(m,v){if(!p.has(m)){p.add(m);for(const x in m){const k=m[x];if(k&&typeof k=="object"){if("xstate$$type"in k&&k.xstate$$type===Qc){m[x]=v[k.id];continue}g(k,v)}}}}return g(d.context,o),d}}function BE(e,n,r,o,{event:l}){const a=typeof l=="function"?l(r,o):l;return[n,{event:a},void 0]}function $E(e,{event:n}){e.defer(()=>e.emit(n))}function Ly(e){function n(r,o){}return n.type="xstate.emit",n.event=e,n.resolve=BE,n.execute=$E,n}let Cc=(function(e){return e.Parent="#_parent",e.Internal="#_internal",e})({});function UE(e,n,r,o,{to:l,event:a,id:u,delay:f},d){var k;const p=n.machine.implementations.delays;if(typeof a=="string")throw new Error(`Only event objects may be used with sendTo; use sendTo({ type: "${a}" }) instead`);const g=typeof a=="function"?a(r,o):a;let m;if(typeof f=="string"){const C=p&&p[f];m=typeof C=="function"?C(r,o):C}else m=typeof f=="function"?f(r,o):f;const v=typeof l=="function"?l(r,o):l;let x;if(typeof v=="string"){if(v===Cc.Parent?x=e.self._parent:v===Cc.Internal?x=e.self:v.startsWith("#_")?x=n.children[v.slice(2)]:x=(k=d.deferredActorIds)!=null&&k.includes(v)?v:n.children[v],!x)throw new Error(`Unable to send event to actor '${v}' from machine '${n.machine.id}'.`)}else x=v||e.self;return[n,{to:x,targetId:typeof v=="string"?v:void 0,event:g,id:u,delay:m},void 0]}function VE(e,n,r){typeof r.to=="string"&&(r.to=n.children[r.to])}function WE(e,n){e.defer(()=>{const{to:r,event:o,delay:l,id:a}=n;if(typeof l=="number"){e.system.scheduler.schedule(e.self,r,o,l,a);return}e.system._relay(e.self,r,o.type===VS?vy(e.self.id,o.data):o)})}function lf(e,n,r){function o(l,a){}return o.type="xstate.sendTo",o.to=e,o.event=n,o.id=r==null?void 0:r.id,o.delay=r==null?void 0:r.delay,o.resolve=UE,o.retryResolve=VE,o.execute=WE,o}function HE(e,n){return lf(Cc.Parent,e,n)}function qE(e,n,r,o,{collect:l}){const a=[],u=function(d){a.push(d)};return u.assign=(...f)=>{a.push(ht(...f))},u.cancel=(...f)=>{a.push(Xc(...f))},u.raise=(...f)=>{a.push(rf(...f))},u.sendTo=(...f)=>{a.push(lf(...f))},u.sendParent=(...f)=>{a.push(HE(...f))},u.spawnChild=(...f)=>{a.push(Jc(...f))},u.stopChild=(...f)=>{a.push(Ps(...f))},u.emit=(...f)=>{a.push(Ly(...f))},l({context:r.context,event:r.event,enqueue:u,check:f=>Is(f,n.context,r.event,n),self:e.self,system:e.system},o),[n,void 0,a]}function GE(e){function n(r,o){}return n.type="xstate.enqueueActions",n.collect=e,n.resolve=qE,n}function KE(e,n,r,o,{value:l,label:a}){return[n,{value:typeof l=="function"?l(r,o):l,label:a},void 0]}function YE({logger:e},{value:n,label:r}){r?e(r,n):e(n)}function QE(e=({context:r,event:o})=>({context:r,event:o}),n){function r(o,l){}return r.type="xstate.log",r.value=e,r.label=n,r.resolve=KE,r.execute=YE,r}function XE(e,n){return new of(e,n)}function Dy({schemas:e,actors:n,actions:r,guards:o,delays:l}){return{assign:ht,sendTo:lf,raise:rf,log:QE,cancel:Xc,stopChild:Ps,enqueueActions:GE,emit:Ly,spawnChild:Jc,createStateConfig:a=>a,createAction:a=>a,createMachine:a=>XE({...a,schemas:e},{actors:n,actions:r,guards:o,delays:l}),extend:a=>Dy({schemas:e,actors:n,actions:{...r,...a.actions},guards:{...o,...a.guards},delays:{...l,...a.delays}})}}var Fu={exports:{}},Bu={},$u={exports:{}},Uu={};/**
150
+ * @license React
151
+ * use-sync-external-store-shim.production.js
152
+ *
153
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
154
+ *
155
+ * This source code is licensed under the MIT license found in the
156
+ * LICENSE file in the root directory of this source tree.
157
+ */var lm;function JE(){if(lm)return Uu;lm=1;var e=Co();function n(m,v){return m===v&&(m!==0||1/m===1/v)||m!==m&&v!==v}var r=typeof Object.is=="function"?Object.is:n,o=e.useState,l=e.useEffect,a=e.useLayoutEffect,u=e.useDebugValue;function f(m,v){var x=v(),k=o({inst:{value:x,getSnapshot:v}}),C=k[0].inst,E=k[1];return a(function(){C.value=x,C.getSnapshot=v,d(C)&&E({inst:C})},[m,x,v]),l(function(){return d(C)&&E({inst:C}),m(function(){d(C)&&E({inst:C})})},[m]),u(x),x}function d(m){var v=m.getSnapshot;m=m.value;try{var x=v();return!r(m,x)}catch{return!0}}function p(m,v){return v()}var g=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?p:f;return Uu.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:g,Uu}var sm;function zy(){return sm||(sm=1,$u.exports=JE()),$u.exports}/**
158
+ * @license React
159
+ * use-sync-external-store-shim/with-selector.production.js
160
+ *
161
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
162
+ *
163
+ * This source code is licensed under the MIT license found in the
164
+ * LICENSE file in the root directory of this source tree.
165
+ */var am;function ZE(){if(am)return Bu;am=1;var e=Co(),n=zy();function r(p,g){return p===g&&(p!==0||1/p===1/g)||p!==p&&g!==g}var o=typeof Object.is=="function"?Object.is:r,l=n.useSyncExternalStore,a=e.useRef,u=e.useEffect,f=e.useMemo,d=e.useDebugValue;return Bu.useSyncExternalStoreWithSelector=function(p,g,m,v,x){var k=a(null);if(k.current===null){var C={hasValue:!1,value:null};k.current=C}else C=k.current;k=f(function(){function I(L){if(!O){if(O=!0,N=L,L=v(L),x!==void 0&&C.hasValue){var Q=C.value;if(x(Q,L))return $=Q}return $=L}if(Q=$,o(N,L))return Q;var W=v(L);return x!==void 0&&x(Q,W)?(N=L,Q):(N=L,$=W)}var O=!1,N,$,Y=m===void 0?null:m;return[function(){return I(g())},Y===null?void 0:function(){return I(Y())}]},[g,m,v,x]);var E=l(p,k[0],k[1]);return u(function(){C.hasValue=!0,C.value=E},[E]),d(E),E},Bu}var um;function eC(){return um||(um=1,Fu.exports=ZE()),Fu.exports}var tC=eC();zy();const My=(e,n)=>{n(e);const r=e.getSnapshot().children;r&&Object.values(r).forEach(o=>{My(o,n)})};function nC(e){var o,l;const n=[];My(e,a=>{n.push([a,a.getSnapshot()]),a.observers=new Set});const r=(l=(o=e.system).getSnapshot)==null?void 0:l.call(o);e.stop(),e.system._snapshot=r,n.forEach(([a,u])=>{a._processingStatus=0,a._snapshot=u})}function rC(e,...[n]){let[[r,o],l]=b.useState(()=>{const a=ci(e,n);return[e.config,a]});if(e.config!==r){const a=ci(e,{...n,snapshot:o.getPersistedSnapshot({__unsafeAllowInlineActors:!0})});l([e.config,a]),o=a}return DS(()=>{o.logic.implementations=e.implementations}),o}function iC(e,...[n,r]){const o=rC(e,n);return b.useEffect(()=>{if(!r)return;const l=o.subscribe(us(r));return()=>{l.unsubscribe()}},[r]),b.useEffect(()=>(o.start(),()=>{nC(o)}),[o]),o}function oC(e,n){return e===n}function lC(e,n,r=oC){const o=b.useCallback(u=>{if(!e)return()=>{};const{unsubscribe:f}=e.subscribe(u);return f},[e]),l=b.useCallback(()=>e==null?void 0:e.getSnapshot(),[e]);return tC.useSyncExternalStoreWithSelector(o,l,l,n,r)}function sC(e,n){const r=b.createContext(null),o=r.Provider;function l({children:f,logic:d=e,machine:p,options:g}){if(p)throw new Error('The "machine" prop has been deprecated. Please use "logic" instead.');const m=iC(d,{...n,...g});return b.createElement(o,{value:m,children:f})}l.displayName="ActorProvider";function a(){const f=b.useContext(r);if(!f)throw new Error(`You used a hook from "${l.displayName}" but it's not inside a <${l.displayName}> component.`);return f}function u(f,d){const p=a();return lC(p,f,d)}return{Provider:l,useActorRef:a,useSelector:u}}const cm=5,aC=1e3,fm=3e4;function uC(e){return Math.min(aC*Math.pow(2,e),3e4)}const cC=LE(({sendBack:e,input:n,receive:r})=>{let o=null,l=null,a=Date.now();const u=p=>{o&&o.readyState===WebSocket.OPEN&&o.send(JSON.stringify(p))},f=()=>{l&&clearInterval(l),l=setInterval(()=>{o&&o.readyState===WebSocket.OPEN&&(u({type:"ping"}),Date.now()-a>fm*2&&e({type:"WS_ERROR",error:"Heartbeat timeout"}))},fm)},d=()=>{try{o=new WebSocket(n.wsUrl),o.onopen=()=>{a=Date.now(),e({type:"WS_CONNECTED"}),f()},o.onclose=()=>{e({type:"WS_DISCONNECTED"})},o.onerror=()=>{e({type:"WS_ERROR",error:"WebSocket connection error"})},o.onmessage=p=>{try{const g=JSON.parse(p.data);if(g.type==="pong"){a=Date.now();return}g.type==="epics:updated"&&g.data?e({type:"EPICS_UPDATED",epics:g.data}):g.type==="story:updated"&&g.data&&e({type:"STORY_UPDATED",story:g.data})}catch{}}}catch{e({type:"WS_ERROR",error:"Failed to create WebSocket"})}};return r(p=>{p.type==="SUBSCRIBE_STORY"?u({type:"subscribe:story",epicSlug:p.epicSlug,storySlug:p.storySlug}):p.type==="UNSUBSCRIBE_STORY"&&u({type:"unsubscribe:story",epicSlug:p.epicSlug,storySlug:p.storySlug})}),d(),()=>{l&&clearInterval(l),o&&o.close()}}),fC=Dy({actors:{websocket:cC},actions:{setEpics:ht({epics:(e,n)=>n.epics}),setCurrentEpic:ht({currentEpic:(e,n)=>n.epic}),setCurrentStory:ht({currentStory:(e,n)=>n.story}),clearCurrentEpic:ht({currentEpic:()=>null}),clearCurrentStory:ht({currentStory:()=>null}),setError:ht({error:(e,n)=>n.error}),clearError:ht({error:()=>null}),incrementRetryCount:ht({retryCount:({context:e})=>e.retryCount+1}),resetRetryCount:ht({retryCount:()=>0}),updateEpics:ht({epics:(e,n)=>n.epics}),updateStory:ht({currentStory:({context:e},n)=>e.currentStory&&e.currentStory.slug===n.story.slug&&e.currentStory.epicSlug===n.story.epicSlug?n.story:e.currentStory}),addSubscription:ht({subscribedStories:({context:e},n)=>e.subscribedStories.some(o=>o.epicSlug===n.epicSlug&&o.storySlug===n.storySlug)?e.subscribedStories:[...e.subscribedStories,n]}),removeSubscription:ht({subscribedStories:({context:e},n)=>e.subscribedStories.filter(r=>!(r.epicSlug===n.epicSlug&&r.storySlug===n.storySlug))})},guards:{canRetry:({context:e})=>e.retryCount<cm,hasMaxRetries:({context:e})=>e.retryCount>=cm},delays:{backoffDelay:({context:e})=>uC(e.retryCount)}}).createMachine({id:"dashboard",initial:"idle",context:{epics:[],currentEpic:null,currentStory:null,error:null,retryCount:0,wsUrl:"ws://localhost:3847",subscribedStories:[]},states:{idle:{on:{CONNECT:{target:"loading",actions:["clearError","resetRetryCount"]},EPICS_LOADED:{actions:[{type:"setEpics",params:({event:e})=>({epics:e.epics})}]},EPIC_LOADED:{actions:[{type:"setCurrentEpic",params:({event:e})=>({epic:e.epic})}]},STORY_LOADED:{actions:[{type:"setCurrentStory",params:({event:e})=>({story:e.story})}]},CLEAR_EPIC:{actions:["clearCurrentEpic"]},CLEAR_STORY:{actions:["clearCurrentStory"]}}},loading:{entry:["clearError"],invoke:{id:"websocket",src:"websocket",input:({context:e})=>({wsUrl:e.wsUrl})},on:{WS_CONNECTED:{target:"connected",actions:["resetRetryCount"]},WS_ERROR:{target:"error",actions:[{type:"setError",params:({event:e})=>({error:e.error})}]},WS_DISCONNECTED:{target:"reconnecting"}}},connected:{invoke:{id:"websocket",src:"websocket",input:({context:e})=>({wsUrl:e.wsUrl})},on:{DISCONNECT:{target:"idle"},EPICS_LOADED:{actions:[{type:"setEpics",params:({event:e})=>({epics:e.epics})}]},EPIC_LOADED:{actions:[{type:"setCurrentEpic",params:({event:e})=>({epic:e.epic})}]},STORY_LOADED:{actions:[{type:"setCurrentStory",params:({event:e})=>({story:e.story})}]},CLEAR_EPIC:{actions:["clearCurrentEpic"]},CLEAR_STORY:{actions:["clearCurrentStory"]},EPICS_UPDATED:{actions:[{type:"updateEpics",params:({event:e})=>({epics:e.epics})}]},STORY_UPDATED:{actions:[{type:"updateStory",params:({event:e})=>({story:e.story})}]},WS_DISCONNECTED:{target:"reconnecting"},WS_ERROR:{target:"reconnecting",actions:[{type:"setError",params:({event:e})=>({error:e.error})}]},ERROR:{actions:[{type:"setError",params:({event:e})=>({error:e.error})}]},SUBSCRIBE_STORY:{actions:[{type:"addSubscription",params:({event:e})=>({epicSlug:e.epicSlug,storySlug:e.storySlug})}]},UNSUBSCRIBE_STORY:{actions:[{type:"removeSubscription",params:({event:e})=>({epicSlug:e.epicSlug,storySlug:e.storySlug})}]}}},reconnecting:{entry:["incrementRetryCount"],after:{backoffDelay:[{target:"loading",guard:"canRetry"},{target:"error",guard:"hasMaxRetries",actions:[{type:"setError",params:()=>({error:"Maximum reconnection attempts reached"})}]}]},on:{RETRY:{target:"loading",actions:["resetRetryCount"]},DISCONNECT:{target:"idle"}}},error:{on:{RETRY:{target:"loading",actions:["clearError","resetRetryCount"]},DISCONNECT:{target:"idle"},CONNECT:{target:"loading",actions:["clearError","resetRetryCount"]}}}}}),sf=sC(fC),dC=sf.Provider,pC=sf.useActorRef,dm=sf.useSelector;function Ns(){const e=pC(),n=dm(x=>x.value),r=dm(x=>x.context),o=b.useCallback(()=>e.send({type:"CONNECT"}),[e]),l=b.useCallback(()=>e.send({type:"DISCONNECT"}),[e]),a=b.useCallback(()=>e.send({type:"RETRY"}),[e]),u=b.useCallback(x=>e.send({type:"EPICS_LOADED",epics:x}),[e]),f=b.useCallback(x=>e.send({type:"EPIC_LOADED",epic:x}),[e]),d=b.useCallback(x=>e.send({type:"STORY_LOADED",story:x}),[e]),p=b.useCallback(()=>e.send({type:"CLEAR_EPIC"}),[e]),g=b.useCallback(()=>e.send({type:"CLEAR_STORY"}),[e]),m=b.useCallback((x,k)=>e.send({type:"SUBSCRIBE_STORY",epicSlug:x,storySlug:k}),[e]),v=b.useCallback((x,k)=>e.send({type:"UNSUBSCRIBE_STORY",epicSlug:x,storySlug:k}),[e]);return b.useMemo(()=>({state:n,isIdle:n==="idle",isLoading:n==="loading",isConnected:n==="connected",isReconnecting:n==="reconnecting",isError:n==="error",epics:r.epics,currentEpic:r.currentEpic,currentStory:r.currentStory,error:r.error,retryCount:r.retryCount,subscribedStories:r.subscribedStories,connect:o,disconnect:l,retry:a,setEpics:u,setCurrentEpic:f,setCurrentStory:d,clearCurrentEpic:p,clearCurrentStory:g,subscribeToStory:m,unsubscribeFromStory:v,actorRef:e}),[n,r.epics,r.currentEpic,r.currentStory,r.error,r.retryCount,r.subscribedStories,o,l,a,u,f,d,p,g,m,v,e])}const kn=new Set,Fy=1/0,hC=5e3;function mC(e,n){const r=`error-${e}`;if(kn.has(r))return;kn.add(r);const{dismiss:o}=Cs({variant:"destructive",title:e,description:n,duration:Fy,onOpenChange:l=>{l||kn.delete(r)}});return o}function gC(e){const n="reconnecting";if(kn.has(n))return;kn.add(n);const{dismiss:r}=Cs({title:"Reconnecting...",description:`Attempting to reconnect (attempt ${e})`,duration:hC,onOpenChange:o=>{o||kn.delete(n)}});return r}function yC(e,n){const r="connection-error";if(kn.has(r))return;kn.add(r);const{dismiss:o}=Cs({variant:"destructive",title:"Connection Error",description:e,duration:Fy,action:n?wn.createElement(fy,{altText:"Retry connection",onClick:()=>{o(),n()}},"Retry"):void 0,onOpenChange:l=>{l||kn.delete(r)}});return o}function af(e,n){const r=n||`Failed to fetch data from ${e}`;return mC("API Error",r)}function vC(){const{isError:e,isReconnecting:n,error:r,retryCount:o,retry:l}=Ns(),a=b.useRef(!1),u=b.useRef(!1);b.useEffect(()=>{e&&!a.current&&yC(r||"Connection to server failed",l),a.current=e},[e,r,l]),b.useEffect(()=>{n&&!u.current&&gC(o),u.current=n},[n,o])}function xC(){return vC(),S.jsxs("div",{className:"min-h-screen bg-bg",children:[S.jsx("header",{className:"border-b border-border-muted bg-bg-dark",children:S.jsxs("div",{className:"container mx-auto px-4 py-4",children:[S.jsx("div",{className:"flex items-center justify-between",children:S.jsxs("h1",{className:"text-xl font-bold text-text",children:[S.jsx("span",{className:"text-primary",children:"SAGA"})," Dashboard"]})}),S.jsx("div",{className:"mt-2",children:S.jsx(Q1,{})})]})}),S.jsx("main",{className:"container mx-auto px-4 py-6",children:S.jsx(S1,{})}),S.jsx(LS,{})]})}const Sn=b.forwardRef(({className:e,...n},r)=>S.jsx("div",{ref:r,className:ut("rounded-lg border bg-card text-card-foreground shadow-sm",e),...n}));Sn.displayName="Card";const rr=b.forwardRef(({className:e,...n},r)=>S.jsx("div",{ref:r,className:ut("flex flex-col space-y-1.5 p-6",e),...n}));rr.displayName="CardHeader";const hi=b.forwardRef(({className:e,...n},r)=>S.jsx("div",{ref:r,className:ut("text-2xl font-semibold leading-none tracking-tight",e),...n}));hi.displayName="CardTitle";const wC=b.forwardRef(({className:e,...n},r)=>S.jsx("div",{ref:r,className:ut("text-sm text-muted-foreground",e),...n}));wC.displayName="CardDescription";const En=b.forwardRef(({className:e,...n},r)=>S.jsx("div",{ref:r,className:ut("p-6 pt-0",e),...n}));En.displayName="CardContent";const kC=b.forwardRef(({className:e,...n},r)=>S.jsx("div",{ref:r,className:ut("flex items-center p-6 pt-0",e),...n}));kC.displayName="CardFooter";const SC=Qg("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function xi({className:e,variant:n,...r}){return S.jsx("div",{className:ut(SC({variant:n}),e),...r})}function EC(e,n=[]){let r=[];function o(a,u){const f=b.createContext(u);f.displayName=a+"Context";const d=r.length;r=[...r,u];const p=m=>{var I;const{scope:v,children:x,...k}=m,C=((I=v==null?void 0:v[e])==null?void 0:I[d])||f,E=b.useMemo(()=>k,Object.values(k));return S.jsx(C.Provider,{value:E,children:x})};p.displayName=a+"Provider";function g(m,v){var C;const x=((C=v==null?void 0:v[e])==null?void 0:C[d])||f,k=b.useContext(x);if(k)return k;if(u!==void 0)return u;throw new Error(`\`${m}\` must be used within \`${a}\``)}return[p,g]}const l=()=>{const a=r.map(u=>b.createContext(u));return function(f){const d=(f==null?void 0:f[e])||a;return b.useMemo(()=>({[`__scope${e}`]:{...f,[e]:d}}),[f,d])}};return l.scopeName=e,[o,CC(l,...n)]}function CC(...e){const n=e[0];if(e.length===1)return n;const r=()=>{const o=e.map(l=>({useScope:l(),scopeName:l.scopeName}));return function(a){const u=o.reduce((f,{useScope:d,scopeName:p})=>{const m=d(a)[`__scope${p}`];return{...f,...m}},{});return b.useMemo(()=>({[`__scope${n.scopeName}`]:u}),[u])}};return r.scopeName=n.scopeName,r}var bC=Symbol.for("react.lazy"),hs=ks[" use ".trim().toString()];function _C(e){return typeof e=="object"&&e!==null&&"then"in e}function By(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===bC&&"_payload"in e&&_C(e._payload)}function TC(e){const n=PC(e),r=b.forwardRef((o,l)=>{let{children:a,...u}=o;By(a)&&typeof hs=="function"&&(a=hs(a._payload));const f=b.Children.toArray(a),d=f.find(RC);if(d){const p=d.props.children,g=f.map(m=>m===d?b.Children.count(p)>1?b.Children.only(null):b.isValidElement(p)?p.props.children:null:m);return S.jsx(n,{...u,ref:l,children:b.isValidElement(p)?b.cloneElement(p,void 0,g):null})}return S.jsx(n,{...u,ref:l,children:a})});return r.displayName=`${e}.Slot`,r}function PC(e){const n=b.forwardRef((r,o)=>{let{children:l,...a}=r;if(By(l)&&typeof hs=="function"&&(l=hs(l._payload)),b.isValidElement(l)){const u=AC(l),f=NC(a,l.props);return l.type!==b.Fragment&&(f.ref=o?Uc(o,u):u),b.cloneElement(l,f)}return b.Children.count(l)>1?b.Children.only(null):null});return n.displayName=`${e}.SlotClone`,n}var IC=Symbol("radix.slottable");function RC(e){return b.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===IC}function NC(e,n){const r={...n};for(const o in n){const l=e[o],a=n[o];/^on[A-Z]/.test(o)?l&&a?r[o]=(...f)=>{const d=a(...f);return l(...f),d}:l&&(r[o]=l):o==="style"?r[o]={...l,...a}:o==="className"&&(r[o]=[l,a].filter(Boolean).join(" "))}return{...e,...r}}function AC(e){var o,l;let n=(o=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:o.get,r=n&&"isReactWarning"in n&&n.isReactWarning;return r?e.ref:(n=(l=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:l.get,r=n&&"isReactWarning"in n&&n.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var jC=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],$y=jC.reduce((e,n)=>{const r=TC(`Primitive.${n}`),o=b.forwardRef((l,a)=>{const{asChild:u,...f}=l,d=u?r:n;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),S.jsx(d,{...f,ref:a})});return o.displayName=`Primitive.${n}`,{...e,[n]:o}},{}),uf="Progress",cf=100,[OC]=EC(uf),[LC,DC]=OC(uf),Uy=b.forwardRef((e,n)=>{const{__scopeProgress:r,value:o=null,max:l,getValueLabel:a=zC,...u}=e;(l||l===0)&&!pm(l)&&console.error(MC(`${l}`,"Progress"));const f=pm(l)?l:cf;o!==null&&!hm(o,f)&&console.error(FC(`${o}`,"Progress"));const d=hm(o,f)?o:null,p=ms(d)?a(d,f):void 0;return S.jsx(LC,{scope:r,value:d,max:f,children:S.jsx($y.div,{"aria-valuemax":f,"aria-valuemin":0,"aria-valuenow":ms(d)?d:void 0,"aria-valuetext":p,role:"progressbar","data-state":Hy(d,f),"data-value":d??void 0,"data-max":f,...u,ref:n})})});Uy.displayName=uf;var Vy="ProgressIndicator",Wy=b.forwardRef((e,n)=>{const{__scopeProgress:r,...o}=e,l=DC(Vy,r);return S.jsx($y.div,{"data-state":Hy(l.value,l.max),"data-value":l.value??void 0,"data-max":l.max,...o,ref:n})});Wy.displayName=Vy;function zC(e,n){return`${Math.round(e/n*100)}%`}function Hy(e,n){return e==null?"indeterminate":e===n?"complete":"loading"}function ms(e){return typeof e=="number"}function pm(e){return ms(e)&&!isNaN(e)&&e>0}function hm(e,n){return ms(e)&&!isNaN(e)&&e<=n&&e>=0}function MC(e,n){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${n}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${cf}\`.`}function FC(e,n){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${n}\`. The \`value\` prop must be:
166
+ - a positive number
167
+ - less than the value passed to \`max\` (or ${cf} if no \`max\` prop is set)
168
+ - \`null\` or \`undefined\` if the progress is indeterminate.
169
+
170
+ Defaulting to \`null\`.`}var qy=Uy,BC=Wy;const ff=b.forwardRef(({className:e,value:n,...r},o)=>S.jsx(qy,{ref:o,className:ut("relative h-4 w-full overflow-hidden rounded-full bg-secondary",e),...r,children:S.jsx(BC,{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-(n||0)}%)`}})}));ff.displayName=qy.displayName;function Vu(){return S.jsxs(Sn,{className:"animate-pulse","data-testid":"epic-card-skeleton",children:[S.jsx(rr,{children:S.jsx("div",{className:"h-6 w-48 bg-bg-light rounded"})}),S.jsxs(En,{className:"space-y-4",children:[S.jsx("div",{className:"h-4 w-full bg-bg-light rounded"}),S.jsxs("div",{className:"flex gap-2",children:[S.jsx("div",{className:"h-6 w-16 bg-bg-light rounded-full"}),S.jsx("div",{className:"h-6 w-16 bg-bg-light rounded-full"}),S.jsx("div",{className:"h-6 w-16 bg-bg-light rounded-full"})]})]})]})}function Yl({status:e,count:n}){const r={ready:"bg-text-muted/20 text-text-muted",in_progress:"bg-primary/20 text-primary",blocked:"bg-danger/20 text-danger",completed:"bg-success/20 text-success"},o={ready:"Ready",in_progress:"In Progress",blocked:"Blocked",completed:"Completed"};return S.jsxs(xi,{className:r[e],children:[o[e],": ",n]})}function $C({epic:e}){const{storyCounts:n}=e,r=n.total>0?Math.round(n.completed/n.total*100):0;return S.jsx(er,{to:`/epic/${e.slug}`,className:"block",children:S.jsxs(Sn,{className:"hover:border-primary/50 transition-colors cursor-pointer",children:[S.jsx(rr,{children:S.jsx(hi,{className:"text-lg",children:e.title})}),S.jsxs(En,{className:"space-y-4",children:[S.jsxs("div",{className:"space-y-2",children:[S.jsxs("div",{className:"flex justify-between text-sm",children:[S.jsx("span",{className:"text-text-muted",children:"Progress"}),S.jsxs("span",{className:"text-text-muted",children:[n.completed,"/",n.total," stories"]})]}),S.jsx(ff,{value:r})]}),S.jsxs("div",{className:"flex flex-wrap gap-2",children:[n.ready>0&&S.jsx(Yl,{status:"ready",count:n.ready}),n.inProgress>0&&S.jsx(Yl,{status:"in_progress",count:n.inProgress}),n.blocked>0&&S.jsx(Yl,{status:"blocked",count:n.blocked}),n.completed>0&&S.jsx(Yl,{status:"completed",count:n.completed})]})]})]})})}function UC(){const{epics:e,setEpics:n,isLoading:r}=Ns(),[o,l]=b.useState(!1),[a,u]=b.useState(!0);b.useEffect(()=>{(async()=>{try{const m=await fetch("/api/epics");if(m.ok){const v=await m.json();n(v)}}catch(m){const v=m instanceof Error?m.message:"Unknown error";af("/api/epics",v)}finally{u(!1)}})()},[n]);const f=r||a,d=e.filter(g=>o?!0:!g.isArchived),p=e.some(g=>g.isArchived);return S.jsxs("div",{className:"space-y-6",children:[S.jsxs("div",{className:"flex items-center justify-between",children:[S.jsx("h1",{className:"text-2xl font-bold text-text",children:"Epics"}),p&&S.jsxs("label",{className:"flex items-center gap-2 text-sm text-text-muted cursor-pointer",children:[S.jsx("input",{type:"checkbox",checked:o,onChange:g=>l(g.target.checked),className:"rounded border-border"}),"Show archived"]})]}),f?S.jsxs("div",{className:"grid gap-4 md:grid-cols-2 lg:grid-cols-3",children:[S.jsx(Vu,{}),S.jsx(Vu,{}),S.jsx(Vu,{})]}):d.length===0?S.jsxs("div",{className:"text-center py-12",children:[S.jsx("p",{className:"text-text-muted text-lg",children:"No epics found."}),S.jsxs("p",{className:"text-text-muted",children:["Run ",S.jsx("code",{className:"text-primary",children:"/create-epic"})," to get started."]})]}):S.jsx("div",{className:"grid gap-4 md:grid-cols-2 lg:grid-cols-3",children:d.map(g=>S.jsx($C,{epic:g},g.slug))})]})}function VC(e,n){const r={};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const WC=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,HC=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,qC={};function mm(e,n){return(qC.jsx?HC:WC).test(e)}const GC=/[ \t\n\f\r]/g;function KC(e){return typeof e=="object"?e.type==="text"?gm(e.value):!1:gm(e)}function gm(e){return e.replace(GC,"")===""}class Io{constructor(n,r,o){this.normal=r,this.property=n,o&&(this.space=o)}}Io.prototype.normal={};Io.prototype.property={};Io.prototype.space=void 0;function Gy(e,n){const r={},o={};for(const l of e)Object.assign(r,l.property),Object.assign(o,l.normal);return new Io(r,o,n)}function bc(e){return e.toLowerCase()}class Pt{constructor(n,r){this.attribute=r,this.property=n}}Pt.prototype.attribute="";Pt.prototype.booleanish=!1;Pt.prototype.boolean=!1;Pt.prototype.commaOrSpaceSeparated=!1;Pt.prototype.commaSeparated=!1;Pt.prototype.defined=!1;Pt.prototype.mustUseProperty=!1;Pt.prototype.number=!1;Pt.prototype.overloadedBoolean=!1;Pt.prototype.property="";Pt.prototype.spaceSeparated=!1;Pt.prototype.space=void 0;let YC=0;const be=Pr(),Qe=Pr(),_c=Pr(),J=Pr(),Me=Pr(),ui=Pr(),Lt=Pr();function Pr(){return 2**++YC}const Tc=Object.freeze(Object.defineProperty({__proto__:null,boolean:be,booleanish:Qe,commaOrSpaceSeparated:Lt,commaSeparated:ui,number:J,overloadedBoolean:_c,spaceSeparated:Me},Symbol.toStringTag,{value:"Module"})),Wu=Object.keys(Tc);class df extends Pt{constructor(n,r,o,l){let a=-1;if(super(n,r),ym(this,"space",l),typeof o=="number")for(;++a<Wu.length;){const u=Wu[a];ym(this,Wu[a],(o&Tc[u])===Tc[u])}}}df.prototype.defined=!0;function ym(e,n,r){r&&(e[n]=r)}function wi(e){const n={},r={};for(const[o,l]of Object.entries(e.properties)){const a=new df(o,e.transform(e.attributes||{},o),l,e.space);e.mustUseProperty&&e.mustUseProperty.includes(o)&&(a.mustUseProperty=!0),n[o]=a,r[bc(o)]=o,r[bc(a.attribute)]=o}return new Io(n,r,e.space)}const Ky=wi({properties:{ariaActiveDescendant:null,ariaAtomic:Qe,ariaAutoComplete:null,ariaBusy:Qe,ariaChecked:Qe,ariaColCount:J,ariaColIndex:J,ariaColSpan:J,ariaControls:Me,ariaCurrent:null,ariaDescribedBy:Me,ariaDetails:null,ariaDisabled:Qe,ariaDropEffect:Me,ariaErrorMessage:null,ariaExpanded:Qe,ariaFlowTo:Me,ariaGrabbed:Qe,ariaHasPopup:null,ariaHidden:Qe,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Me,ariaLevel:J,ariaLive:null,ariaModal:Qe,ariaMultiLine:Qe,ariaMultiSelectable:Qe,ariaOrientation:null,ariaOwns:Me,ariaPlaceholder:null,ariaPosInSet:J,ariaPressed:Qe,ariaReadOnly:Qe,ariaRelevant:null,ariaRequired:Qe,ariaRoleDescription:Me,ariaRowCount:J,ariaRowIndex:J,ariaRowSpan:J,ariaSelected:Qe,ariaSetSize:J,ariaSort:null,ariaValueMax:J,ariaValueMin:J,ariaValueNow:J,ariaValueText:null,role:null},transform(e,n){return n==="role"?n:"aria-"+n.slice(4).toLowerCase()}});function Yy(e,n){return n in e?e[n]:n}function Qy(e,n){return Yy(e,n.toLowerCase())}const QC=wi({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:ui,acceptCharset:Me,accessKey:Me,action:null,allow:null,allowFullScreen:be,allowPaymentRequest:be,allowUserMedia:be,alt:null,as:null,async:be,autoCapitalize:null,autoComplete:Me,autoFocus:be,autoPlay:be,blocking:Me,capture:null,charSet:null,checked:be,cite:null,className:Me,cols:J,colSpan:null,content:null,contentEditable:Qe,controls:be,controlsList:Me,coords:J|ui,crossOrigin:null,data:null,dateTime:null,decoding:null,default:be,defer:be,dir:null,dirName:null,disabled:be,download:_c,draggable:Qe,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:be,formTarget:null,headers:Me,height:J,hidden:_c,high:J,href:null,hrefLang:null,htmlFor:Me,httpEquiv:Me,id:null,imageSizes:null,imageSrcSet:null,inert:be,inputMode:null,integrity:null,is:null,isMap:be,itemId:null,itemProp:Me,itemRef:Me,itemScope:be,itemType:Me,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:be,low:J,manifest:null,max:null,maxLength:J,media:null,method:null,min:null,minLength:J,multiple:be,muted:be,name:null,nonce:null,noModule:be,noValidate:be,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:be,optimum:J,pattern:null,ping:Me,placeholder:null,playsInline:be,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:be,referrerPolicy:null,rel:Me,required:be,reversed:be,rows:J,rowSpan:J,sandbox:Me,scope:null,scoped:be,seamless:be,selected:be,shadowRootClonable:be,shadowRootDelegatesFocus:be,shadowRootMode:null,shape:null,size:J,sizes:null,slot:null,span:J,spellCheck:Qe,src:null,srcDoc:null,srcLang:null,srcSet:null,start:J,step:null,style:null,tabIndex:J,target:null,title:null,translate:null,type:null,typeMustMatch:be,useMap:null,value:Qe,width:J,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Me,axis:null,background:null,bgColor:null,border:J,borderColor:null,bottomMargin:J,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:be,declare:be,event:null,face:null,frame:null,frameBorder:null,hSpace:J,leftMargin:J,link:null,longDesc:null,lowSrc:null,marginHeight:J,marginWidth:J,noResize:be,noHref:be,noShade:be,noWrap:be,object:null,profile:null,prompt:null,rev:null,rightMargin:J,rules:null,scheme:null,scrolling:Qe,standby:null,summary:null,text:null,topMargin:J,valueType:null,version:null,vAlign:null,vLink:null,vSpace:J,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:be,disableRemotePlayback:be,prefix:null,property:null,results:J,security:null,unselectable:null},space:"html",transform:Qy}),XC=wi({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Lt,accentHeight:J,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:J,amplitude:J,arabicForm:null,ascent:J,attributeName:null,attributeType:null,azimuth:J,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:J,by:null,calcMode:null,capHeight:J,className:Me,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:J,diffuseConstant:J,direction:null,display:null,dur:null,divisor:J,dominantBaseline:null,download:be,dx:null,dy:null,edgeMode:null,editable:null,elevation:J,enableBackground:null,end:null,event:null,exponent:J,externalResourcesRequired:null,fill:null,fillOpacity:J,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:ui,g2:ui,glyphName:ui,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:J,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:J,horizOriginX:J,horizOriginY:J,id:null,ideographic:J,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:J,k:J,k1:J,k2:J,k3:J,k4:J,kernelMatrix:Lt,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:J,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:J,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:J,overlineThickness:J,paintOrder:null,panose1:null,path:null,pathLength:J,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Me,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:J,pointsAtY:J,pointsAtZ:J,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Lt,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Lt,rev:Lt,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Lt,requiredFeatures:Lt,requiredFonts:Lt,requiredFormats:Lt,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:J,specularExponent:J,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:J,strikethroughThickness:J,string:null,stroke:null,strokeDashArray:Lt,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:J,strokeOpacity:J,strokeWidth:null,style:null,surfaceScale:J,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Lt,tabIndex:J,tableValues:null,target:null,targetX:J,targetY:J,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Lt,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:J,underlineThickness:J,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:J,values:null,vAlphabetic:J,vMathematical:J,vectorEffect:null,vHanging:J,vIdeographic:J,version:null,vertAdvY:J,vertOriginX:J,vertOriginY:J,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:J,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Yy}),Xy=wi({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,n){return"xlink:"+n.slice(5).toLowerCase()}}),Jy=wi({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Qy}),Zy=wi({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,n){return"xml:"+n.slice(3).toLowerCase()}}),JC={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"},ZC=/[A-Z]/g,vm=/-[a-z]/g,eb=/^data[-\w.:]+$/i;function tb(e,n){const r=bc(n);let o=n,l=Pt;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&eb.test(n)){if(n.charAt(4)==="-"){const a=n.slice(5).replace(vm,rb);o="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=n.slice(4);if(!vm.test(a)){let u=a.replace(ZC,nb);u.charAt(0)!=="-"&&(u="-"+u),n="data"+u}}l=df}return new l(o,n)}function nb(e){return"-"+e.toLowerCase()}function rb(e){return e.charAt(1).toUpperCase()}const ib=Gy([Ky,QC,Xy,Jy,Zy],"html"),pf=Gy([Ky,XC,Xy,Jy,Zy],"svg");function ob(e){return e.join(" ").trim()}var ii={},Hu,xm;function lb(){if(xm)return Hu;xm=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,o=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,l=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,u=/^[;\s]*/,f=/^\s+|\s+$/g,d=`
171
+ `,p="/",g="*",m="",v="comment",x="declaration";function k(E,I){if(typeof E!="string")throw new TypeError("First argument must be a string");if(!E)return[];I=I||{};var O=1,N=1;function $(H){var q=H.match(n);q&&(O+=q.length);var re=H.lastIndexOf(d);N=~re?H.length-re:N+H.length}function Y(){var H={line:O,column:N};return function(q){return q.position=new L(H),fe(),q}}function L(H){this.start=H,this.end={line:O,column:N},this.source=I.source}L.prototype.content=E;function Q(H){var q=new Error(I.source+":"+O+":"+N+": "+H);if(q.reason=H,q.filename=I.source,q.line=O,q.column=N,q.source=E,!I.silent)throw q}function W(H){var q=H.exec(E);if(q){var re=q[0];return $(re),E=E.slice(re.length),q}}function fe(){W(r)}function z(H){var q;for(H=H||[];q=ne();)q!==!1&&H.push(q);return H}function ne(){var H=Y();if(!(p!=E.charAt(0)||g!=E.charAt(1))){for(var q=2;m!=E.charAt(q)&&(g!=E.charAt(q)||p!=E.charAt(q+1));)++q;if(q+=2,m===E.charAt(q-1))return Q("End of comment missing");var re=E.slice(2,q-2);return N+=2,$(re),E=E.slice(q),N+=2,H({type:v,comment:re})}}function te(){var H=Y(),q=W(o);if(q){if(ne(),!W(l))return Q("property missing ':'");var re=W(a),he=H({type:x,property:C(q[0].replace(e,m)),value:re?C(re[0].replace(e,m)):m});return W(u),he}}function me(){var H=[];z(H);for(var q;q=te();)q!==!1&&(H.push(q),z(H));return H}return fe(),me()}function C(E){return E?E.replace(f,m):m}return Hu=k,Hu}var wm;function sb(){if(wm)return ii;wm=1;var e=ii&&ii.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(ii,"__esModule",{value:!0}),ii.default=r;const n=e(lb());function r(o,l){let a=null;if(!o||typeof o!="string")return a;const u=(0,n.default)(o),f=typeof l=="function";return u.forEach(d=>{if(d.type!=="declaration")return;const{property:p,value:g}=d;f?l(p,g,d):g&&(a=a||{},a[p]=g)}),a}return ii}var fo={},km;function ab(){if(km)return fo;km=1,Object.defineProperty(fo,"__esModule",{value:!0}),fo.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,n=/-([a-z])/g,r=/^[^-]+$/,o=/^-(webkit|moz|ms|o|khtml)-/,l=/^-(ms)-/,a=function(p){return!p||r.test(p)||e.test(p)},u=function(p,g){return g.toUpperCase()},f=function(p,g){return"".concat(g,"-")},d=function(p,g){return g===void 0&&(g={}),a(p)?p:(p=p.toLowerCase(),g.reactCompat?p=p.replace(l,f):p=p.replace(o,f),p.replace(n,u))};return fo.camelCase=d,fo}var po,Sm;function ub(){if(Sm)return po;Sm=1;var e=po&&po.__importDefault||function(l){return l&&l.__esModule?l:{default:l}},n=e(sb()),r=ab();function o(l,a){var u={};return!l||typeof l!="string"||(0,n.default)(l,function(f,d){f&&d&&(u[(0,r.camelCase)(f,a)]=d)}),u}return o.default=o,po=o,po}var cb=ub();const fb=ws(cb),ev=tv("end"),hf=tv("start");function tv(e){return n;function n(r){const o=r&&r.position&&r.position[e]||{};if(typeof o.line=="number"&&o.line>0&&typeof o.column=="number"&&o.column>0)return{line:o.line,column:o.column,offset:typeof o.offset=="number"&&o.offset>-1?o.offset:void 0}}}function db(e){const n=hf(e),r=ev(e);if(n&&r)return{start:n,end:r}}function yo(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Em(e.position):"start"in e||"end"in e?Em(e):"line"in e||"column"in e?Pc(e):""}function Pc(e){return Cm(e&&e.line)+":"+Cm(e&&e.column)}function Em(e){return Pc(e&&e.start)+"-"+Pc(e&&e.end)}function Cm(e){return e&&typeof e=="number"?e:1}class gt extends Error{constructor(n,r,o){super(),typeof r=="string"&&(o=r,r=void 0);let l="",a={},u=!1;if(r&&("line"in r&&"column"in r?a={place:r}:"start"in r&&"end"in r?a={place:r}:"type"in r?a={ancestors:[r],place:r.position}:a={...r}),typeof n=="string"?l=n:!a.cause&&n&&(u=!0,l=n.message,a.cause=n),!a.ruleId&&!a.source&&typeof o=="string"){const d=o.indexOf(":");d===-1?a.ruleId=o:(a.source=o.slice(0,d),a.ruleId=o.slice(d+1))}if(!a.place&&a.ancestors&&a.ancestors){const d=a.ancestors[a.ancestors.length-1];d&&(a.place=d.position)}const f=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=f?f.column:void 0,this.fatal=void 0,this.file="",this.message=l,this.line=f?f.line:void 0,this.name=yo(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=u&&a.cause&&typeof a.cause.stack=="string"?a.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}gt.prototype.file="";gt.prototype.name="";gt.prototype.reason="";gt.prototype.message="";gt.prototype.stack="";gt.prototype.column=void 0;gt.prototype.line=void 0;gt.prototype.ancestors=void 0;gt.prototype.cause=void 0;gt.prototype.fatal=void 0;gt.prototype.place=void 0;gt.prototype.ruleId=void 0;gt.prototype.source=void 0;const mf={}.hasOwnProperty,pb=new Map,hb=/[A-Z]/g,mb=new Set(["table","tbody","thead","tfoot","tr"]),gb=new Set(["td","th"]),nv="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function yb(e,n){if(!n||n.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const r=n.filePath||void 0;let o;if(n.development){if(typeof n.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");o=bb(r,n.jsxDEV)}else{if(typeof n.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof n.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");o=Cb(r,n.jsx,n.jsxs)}const l={Fragment:n.Fragment,ancestors:[],components:n.components||{},create:o,elementAttributeNameCase:n.elementAttributeNameCase||"react",evaluater:n.createEvaluater?n.createEvaluater():void 0,filePath:r,ignoreInvalidStyle:n.ignoreInvalidStyle||!1,passKeys:n.passKeys!==!1,passNode:n.passNode||!1,schema:n.space==="svg"?pf:ib,stylePropertyNameCase:n.stylePropertyNameCase||"dom",tableCellAlignToStyle:n.tableCellAlignToStyle!==!1},a=rv(l,e,void 0);return a&&typeof a!="string"?a:l.create(e,l.Fragment,{children:a||void 0},void 0)}function rv(e,n,r){if(n.type==="element")return vb(e,n,r);if(n.type==="mdxFlowExpression"||n.type==="mdxTextExpression")return xb(e,n);if(n.type==="mdxJsxFlowElement"||n.type==="mdxJsxTextElement")return kb(e,n,r);if(n.type==="mdxjsEsm")return wb(e,n);if(n.type==="root")return Sb(e,n,r);if(n.type==="text")return Eb(e,n)}function vb(e,n,r){const o=e.schema;let l=o;n.tagName.toLowerCase()==="svg"&&o.space==="html"&&(l=pf,e.schema=l),e.ancestors.push(n);const a=ov(e,n.tagName,!1),u=_b(e,n);let f=yf(e,n);return mb.has(n.tagName)&&(f=f.filter(function(d){return typeof d=="string"?!KC(d):!0})),iv(e,u,a,n),gf(u,f),e.ancestors.pop(),e.schema=o,e.create(n,a,u,r)}function xb(e,n){if(n.data&&n.data.estree&&e.evaluater){const o=n.data.estree.body[0];return o.type,e.evaluater.evaluateExpression(o.expression)}So(e,n.position)}function wb(e,n){if(n.data&&n.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(n.data.estree);So(e,n.position)}function kb(e,n,r){const o=e.schema;let l=o;n.name==="svg"&&o.space==="html"&&(l=pf,e.schema=l),e.ancestors.push(n);const a=n.name===null?e.Fragment:ov(e,n.name,!0),u=Tb(e,n),f=yf(e,n);return iv(e,u,a,n),gf(u,f),e.ancestors.pop(),e.schema=o,e.create(n,a,u,r)}function Sb(e,n,r){const o={};return gf(o,yf(e,n)),e.create(n,e.Fragment,o,r)}function Eb(e,n){return n.value}function iv(e,n,r,o){typeof r!="string"&&r!==e.Fragment&&e.passNode&&(n.node=o)}function gf(e,n){if(n.length>0){const r=n.length>1?n:n[0];r&&(e.children=r)}}function Cb(e,n,r){return o;function o(l,a,u,f){const p=Array.isArray(u.children)?r:n;return f?p(a,u,f):p(a,u)}}function bb(e,n){return r;function r(o,l,a,u){const f=Array.isArray(a.children),d=hf(o);return n(l,a,u,f,{columnNumber:d?d.column-1:void 0,fileName:e,lineNumber:d?d.line:void 0},void 0)}}function _b(e,n){const r={};let o,l;for(l in n.properties)if(l!=="children"&&mf.call(n.properties,l)){const a=Pb(e,l,n.properties[l]);if(a){const[u,f]=a;e.tableCellAlignToStyle&&u==="align"&&typeof f=="string"&&gb.has(n.tagName)?o=f:r[u]=f}}if(o){const a=r.style||(r.style={});a[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=o}return r}function Tb(e,n){const r={};for(const o of n.attributes)if(o.type==="mdxJsxExpressionAttribute")if(o.data&&o.data.estree&&e.evaluater){const a=o.data.estree.body[0];a.type;const u=a.expression;u.type;const f=u.properties[0];f.type,Object.assign(r,e.evaluater.evaluateExpression(f.argument))}else So(e,n.position);else{const l=o.name;let a;if(o.value&&typeof o.value=="object")if(o.value.data&&o.value.data.estree&&e.evaluater){const f=o.value.data.estree.body[0];f.type,a=e.evaluater.evaluateExpression(f.expression)}else So(e,n.position);else a=o.value===null?!0:o.value;r[l]=a}return r}function yf(e,n){const r=[];let o=-1;const l=e.passKeys?new Map:pb;for(;++o<n.children.length;){const a=n.children[o];let u;if(e.passKeys){const d=a.type==="element"?a.tagName:a.type==="mdxJsxFlowElement"||a.type==="mdxJsxTextElement"?a.name:void 0;if(d){const p=l.get(d)||0;u=d+"-"+p,l.set(d,p+1)}}const f=rv(e,a,u);f!==void 0&&r.push(f)}return r}function Pb(e,n,r){const o=tb(e.schema,n);if(!(r==null||typeof r=="number"&&Number.isNaN(r))){if(Array.isArray(r)&&(r=o.commaSeparated?VC(r):ob(r)),o.property==="style"){let l=typeof r=="object"?r:Ib(e,String(r));return e.stylePropertyNameCase==="css"&&(l=Rb(l)),["style",l]}return[e.elementAttributeNameCase==="react"&&o.space?JC[o.property]||o.property:o.attribute,r]}}function Ib(e,n){try{return fb(n,{reactCompat:!0})}catch(r){if(e.ignoreInvalidStyle)return{};const o=r,l=new gt("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:o,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw l.file=e.filePath||void 0,l.url=nv+"#cannot-parse-style-attribute",l}}function ov(e,n,r){let o;if(!r)o={type:"Literal",value:n};else if(n.includes(".")){const l=n.split(".");let a=-1,u;for(;++a<l.length;){const f=mm(l[a])?{type:"Identifier",name:l[a]}:{type:"Literal",value:l[a]};u=u?{type:"MemberExpression",object:u,property:f,computed:!!(a&&f.type==="Literal"),optional:!1}:f}o=u}else o=mm(n)&&!/^[a-z]/.test(n)?{type:"Identifier",name:n}:{type:"Literal",value:n};if(o.type==="Literal"){const l=o.value;return mf.call(e.components,l)?e.components[l]:l}if(e.evaluater)return e.evaluater.evaluateExpression(o);So(e)}function So(e,n){const r=new gt("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:n,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=nv+"#cannot-handle-mdx-estrees-without-createevaluater",r}function Rb(e){const n={};let r;for(r in e)mf.call(e,r)&&(n[Nb(r)]=e[r]);return n}function Nb(e){let n=e.replace(hb,Ab);return n.slice(0,3)==="ms-"&&(n="-"+n),n}function Ab(e){return"-"+e.toLowerCase()}const qu={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"]},jb={};function vf(e,n){const r=jb,o=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,l=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return lv(e,o,l)}function lv(e,n,r){if(Ob(e)){if("value"in e)return e.type==="html"&&!r?"":e.value;if(n&&"alt"in e&&e.alt)return e.alt;if("children"in e)return bm(e.children,n,r)}return Array.isArray(e)?bm(e,n,r):""}function bm(e,n,r){const o=[];let l=-1;for(;++l<e.length;)o[l]=lv(e[l],n,r);return o.join("")}function Ob(e){return!!(e&&typeof e=="object")}const _m=document.createElement("i");function xf(e){const n="&"+e+";";_m.innerHTML=n;const r=_m.textContent;return r.charCodeAt(r.length-1)===59&&e!=="semi"||r===n?!1:r}function Dt(e,n,r,o){const l=e.length;let a=0,u;if(n<0?n=-n>l?0:l+n:n=n>l?l:n,r=r>0?r:0,o.length<1e4)u=Array.from(o),u.unshift(n,r),e.splice(...u);else for(r&&e.splice(n,r);a<o.length;)u=o.slice(a,a+1e4),u.unshift(n,0),e.splice(...u),a+=1e4,n+=1e4}function Wt(e,n){return e.length>0?(Dt(e,e.length,0,n),e):n}const Tm={}.hasOwnProperty;function sv(e){const n={};let r=-1;for(;++r<e.length;)Lb(n,e[r]);return n}function Lb(e,n){let r;for(r in n){const l=(Tm.call(e,r)?e[r]:void 0)||(e[r]={}),a=n[r];let u;if(a)for(u in a){Tm.call(l,u)||(l[u]=[]);const f=a[u];Db(l[u],Array.isArray(f)?f:f?[f]:[])}}}function Db(e,n){let r=-1;const o=[];for(;++r<n.length;)(n[r].add==="after"?e:o).push(n[r]);Dt(e,0,0,o)}function av(e,n){const r=Number.parseInt(e,n);return r<9||r===11||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"�":String.fromCodePoint(r)}function Jt(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const xt=or(/[A-Za-z]/),mt=or(/[\dA-Za-z]/),zb=or(/[#-'*+\--9=?A-Z^-~]/);function gs(e){return e!==null&&(e<32||e===127)}const Ic=or(/\d/),Mb=or(/[\dA-Fa-f]/),Fb=or(/[!-/:-@[-`{-~]/);function xe(e){return e!==null&&e<-2}function De(e){return e!==null&&(e<0||e===32)}function Ie(e){return e===-2||e===-1||e===32}const As=or(new RegExp("\\p{P}|\\p{S}","u")),_r=or(/\s/);function or(e){return n;function n(r){return r!==null&&r>-1&&e.test(String.fromCharCode(r))}}function ki(e){const n=[];let r=-1,o=0,l=0;for(;++r<e.length;){const a=e.charCodeAt(r);let u="";if(a===37&&mt(e.charCodeAt(r+1))&&mt(e.charCodeAt(r+2)))l=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(u=String.fromCharCode(a));else if(a>55295&&a<57344){const f=e.charCodeAt(r+1);a<56320&&f>56319&&f<57344?(u=String.fromCharCode(a,f),l=1):u="�"}else u=String.fromCharCode(a);u&&(n.push(e.slice(o,r),encodeURIComponent(u)),o=r+l+1,u=""),l&&(r+=l,l=0)}return n.join("")+e.slice(o)}function Ne(e,n,r,o){const l=o?o-1:Number.POSITIVE_INFINITY;let a=0;return u;function u(d){return Ie(d)?(e.enter(r),f(d)):n(d)}function f(d){return Ie(d)&&a++<l?(e.consume(d),f):(e.exit(r),n(d))}}const Bb={tokenize:$b};function $b(e){const n=e.attempt(this.parser.constructs.contentInitial,o,l);let r;return n;function o(f){if(f===null){e.consume(f);return}return e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),Ne(e,n,"linePrefix")}function l(f){return e.enter("paragraph"),a(f)}function a(f){const d=e.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=d),r=d,u(f)}function u(f){if(f===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(f);return}return xe(f)?(e.consume(f),e.exit("chunkText"),a):(e.consume(f),u)}}const Ub={tokenize:Vb},Pm={tokenize:Wb};function Vb(e){const n=this,r=[];let o=0,l,a,u;return f;function f(N){if(o<r.length){const $=r[o];return n.containerState=$[1],e.attempt($[0].continuation,d,p)(N)}return p(N)}function d(N){if(o++,n.containerState._closeFlow){n.containerState._closeFlow=void 0,l&&O();const $=n.events.length;let Y=$,L;for(;Y--;)if(n.events[Y][0]==="exit"&&n.events[Y][1].type==="chunkFlow"){L=n.events[Y][1].end;break}I(o);let Q=$;for(;Q<n.events.length;)n.events[Q][1].end={...L},Q++;return Dt(n.events,Y+1,0,n.events.slice($)),n.events.length=Q,p(N)}return f(N)}function p(N){if(o===r.length){if(!l)return v(N);if(l.currentConstruct&&l.currentConstruct.concrete)return k(N);n.interrupt=!!(l.currentConstruct&&!l._gfmTableDynamicInterruptHack)}return n.containerState={},e.check(Pm,g,m)(N)}function g(N){return l&&O(),I(o),v(N)}function m(N){return n.parser.lazy[n.now().line]=o!==r.length,u=n.now().offset,k(N)}function v(N){return n.containerState={},e.attempt(Pm,x,k)(N)}function x(N){return o++,r.push([n.currentConstruct,n.containerState]),v(N)}function k(N){if(N===null){l&&O(),I(0),e.consume(N);return}return l=l||n.parser.flow(n.now()),e.enter("chunkFlow",{_tokenizer:l,contentType:"flow",previous:a}),C(N)}function C(N){if(N===null){E(e.exit("chunkFlow"),!0),I(0),e.consume(N);return}return xe(N)?(e.consume(N),E(e.exit("chunkFlow")),o=0,n.interrupt=void 0,f):(e.consume(N),C)}function E(N,$){const Y=n.sliceStream(N);if($&&Y.push(null),N.previous=a,a&&(a.next=N),a=N,l.defineSkip(N.start),l.write(Y),n.parser.lazy[N.start.line]){let L=l.events.length;for(;L--;)if(l.events[L][1].start.offset<u&&(!l.events[L][1].end||l.events[L][1].end.offset>u))return;const Q=n.events.length;let W=Q,fe,z;for(;W--;)if(n.events[W][0]==="exit"&&n.events[W][1].type==="chunkFlow"){if(fe){z=n.events[W][1].end;break}fe=!0}for(I(o),L=Q;L<n.events.length;)n.events[L][1].end={...z},L++;Dt(n.events,W+1,0,n.events.slice(Q)),n.events.length=L}}function I(N){let $=r.length;for(;$-- >N;){const Y=r[$];n.containerState=Y[1],Y[0].exit.call(n,e)}r.length=N}function O(){l.write([null]),a=void 0,l=void 0,n.containerState._closeFlow=void 0}}function Wb(e,n,r){return Ne(e,e.attempt(this.parser.constructs.document,n,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function mi(e){if(e===null||De(e)||_r(e))return 1;if(As(e))return 2}function js(e,n,r){const o=[];let l=-1;for(;++l<e.length;){const a=e[l].resolveAll;a&&!o.includes(a)&&(n=a(n,r),o.push(a))}return n}const Rc={name:"attention",resolveAll:Hb,tokenize:qb};function Hb(e,n){let r=-1,o,l,a,u,f,d,p,g;for(;++r<e.length;)if(e[r][0]==="enter"&&e[r][1].type==="attentionSequence"&&e[r][1]._close){for(o=r;o--;)if(e[o][0]==="exit"&&e[o][1].type==="attentionSequence"&&e[o][1]._open&&n.sliceSerialize(e[o][1]).charCodeAt(0)===n.sliceSerialize(e[r][1]).charCodeAt(0)){if((e[o][1]._close||e[r][1]._open)&&(e[r][1].end.offset-e[r][1].start.offset)%3&&!((e[o][1].end.offset-e[o][1].start.offset+e[r][1].end.offset-e[r][1].start.offset)%3))continue;d=e[o][1].end.offset-e[o][1].start.offset>1&&e[r][1].end.offset-e[r][1].start.offset>1?2:1;const m={...e[o][1].end},v={...e[r][1].start};Im(m,-d),Im(v,d),u={type:d>1?"strongSequence":"emphasisSequence",start:m,end:{...e[o][1].end}},f={type:d>1?"strongSequence":"emphasisSequence",start:{...e[r][1].start},end:v},a={type:d>1?"strongText":"emphasisText",start:{...e[o][1].end},end:{...e[r][1].start}},l={type:d>1?"strong":"emphasis",start:{...u.start},end:{...f.end}},e[o][1].end={...u.start},e[r][1].start={...f.end},p=[],e[o][1].end.offset-e[o][1].start.offset&&(p=Wt(p,[["enter",e[o][1],n],["exit",e[o][1],n]])),p=Wt(p,[["enter",l,n],["enter",u,n],["exit",u,n],["enter",a,n]]),p=Wt(p,js(n.parser.constructs.insideSpan.null,e.slice(o+1,r),n)),p=Wt(p,[["exit",a,n],["enter",f,n],["exit",f,n],["exit",l,n]]),e[r][1].end.offset-e[r][1].start.offset?(g=2,p=Wt(p,[["enter",e[r][1],n],["exit",e[r][1],n]])):g=0,Dt(e,o-1,r-o+3,p),r=o+p.length-g-2;break}}for(r=-1;++r<e.length;)e[r][1].type==="attentionSequence"&&(e[r][1].type="data");return e}function qb(e,n){const r=this.parser.constructs.attentionMarkers.null,o=this.previous,l=mi(o);let a;return u;function u(d){return a=d,e.enter("attentionSequence"),f(d)}function f(d){if(d===a)return e.consume(d),f;const p=e.exit("attentionSequence"),g=mi(d),m=!g||g===2&&l||r.includes(d),v=!l||l===2&&g||r.includes(o);return p._open=!!(a===42?m:m&&(l||!v)),p._close=!!(a===42?v:v&&(g||!m)),n(d)}}function Im(e,n){e.column+=n,e.offset+=n,e._bufferIndex+=n}const Gb={name:"autolink",tokenize:Kb};function Kb(e,n,r){let o=0;return l;function l(x){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(x),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),a}function a(x){return xt(x)?(e.consume(x),u):x===64?r(x):p(x)}function u(x){return x===43||x===45||x===46||mt(x)?(o=1,f(x)):p(x)}function f(x){return x===58?(e.consume(x),o=0,d):(x===43||x===45||x===46||mt(x))&&o++<32?(e.consume(x),f):(o=0,p(x))}function d(x){return x===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(x),e.exit("autolinkMarker"),e.exit("autolink"),n):x===null||x===32||x===60||gs(x)?r(x):(e.consume(x),d)}function p(x){return x===64?(e.consume(x),g):zb(x)?(e.consume(x),p):r(x)}function g(x){return mt(x)?m(x):r(x)}function m(x){return x===46?(e.consume(x),o=0,g):x===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(x),e.exit("autolinkMarker"),e.exit("autolink"),n):v(x)}function v(x){if((x===45||mt(x))&&o++<63){const k=x===45?v:m;return e.consume(x),k}return r(x)}}const Ro={partial:!0,tokenize:Yb};function Yb(e,n,r){return o;function o(a){return Ie(a)?Ne(e,l,"linePrefix")(a):l(a)}function l(a){return a===null||xe(a)?n(a):r(a)}}const uv={continuation:{tokenize:Xb},exit:Jb,name:"blockQuote",tokenize:Qb};function Qb(e,n,r){const o=this;return l;function l(u){if(u===62){const f=o.containerState;return f.open||(e.enter("blockQuote",{_container:!0}),f.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(u),e.exit("blockQuoteMarker"),a}return r(u)}function a(u){return Ie(u)?(e.enter("blockQuotePrefixWhitespace"),e.consume(u),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),n):(e.exit("blockQuotePrefix"),n(u))}}function Xb(e,n,r){const o=this;return l;function l(u){return Ie(u)?Ne(e,a,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(u):a(u)}function a(u){return e.attempt(uv,n,r)(u)}}function Jb(e){e.exit("blockQuote")}const cv={name:"characterEscape",tokenize:Zb};function Zb(e,n,r){return o;function o(a){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(a),e.exit("escapeMarker"),l}function l(a){return Fb(a)?(e.enter("characterEscapeValue"),e.consume(a),e.exit("characterEscapeValue"),e.exit("characterEscape"),n):r(a)}}const fv={name:"characterReference",tokenize:e_};function e_(e,n,r){const o=this;let l=0,a,u;return f;function f(m){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(m),e.exit("characterReferenceMarker"),d}function d(m){return m===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(m),e.exit("characterReferenceMarkerNumeric"),p):(e.enter("characterReferenceValue"),a=31,u=mt,g(m))}function p(m){return m===88||m===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(m),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),a=6,u=Mb,g):(e.enter("characterReferenceValue"),a=7,u=Ic,g(m))}function g(m){if(m===59&&l){const v=e.exit("characterReferenceValue");return u===mt&&!xf(o.sliceSerialize(v))?r(m):(e.enter("characterReferenceMarker"),e.consume(m),e.exit("characterReferenceMarker"),e.exit("characterReference"),n)}return u(m)&&l++<a?(e.consume(m),g):r(m)}}const Rm={partial:!0,tokenize:n_},Nm={concrete:!0,name:"codeFenced",tokenize:t_};function t_(e,n,r){const o=this,l={partial:!0,tokenize:Y};let a=0,u=0,f;return d;function d(L){return p(L)}function p(L){const Q=o.events[o.events.length-1];return a=Q&&Q[1].type==="linePrefix"?Q[2].sliceSerialize(Q[1],!0).length:0,f=L,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),g(L)}function g(L){return L===f?(u++,e.consume(L),g):u<3?r(L):(e.exit("codeFencedFenceSequence"),Ie(L)?Ne(e,m,"whitespace")(L):m(L))}function m(L){return L===null||xe(L)?(e.exit("codeFencedFence"),o.interrupt?n(L):e.check(Rm,C,$)(L)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),v(L))}function v(L){return L===null||xe(L)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),m(L)):Ie(L)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Ne(e,x,"whitespace")(L)):L===96&&L===f?r(L):(e.consume(L),v)}function x(L){return L===null||xe(L)?m(L):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),k(L))}function k(L){return L===null||xe(L)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),m(L)):L===96&&L===f?r(L):(e.consume(L),k)}function C(L){return e.attempt(l,$,E)(L)}function E(L){return e.enter("lineEnding"),e.consume(L),e.exit("lineEnding"),I}function I(L){return a>0&&Ie(L)?Ne(e,O,"linePrefix",a+1)(L):O(L)}function O(L){return L===null||xe(L)?e.check(Rm,C,$)(L):(e.enter("codeFlowValue"),N(L))}function N(L){return L===null||xe(L)?(e.exit("codeFlowValue"),O(L)):(e.consume(L),N)}function $(L){return e.exit("codeFenced"),n(L)}function Y(L,Q,W){let fe=0;return z;function z(q){return L.enter("lineEnding"),L.consume(q),L.exit("lineEnding"),ne}function ne(q){return L.enter("codeFencedFence"),Ie(q)?Ne(L,te,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(q):te(q)}function te(q){return q===f?(L.enter("codeFencedFenceSequence"),me(q)):W(q)}function me(q){return q===f?(fe++,L.consume(q),me):fe>=u?(L.exit("codeFencedFenceSequence"),Ie(q)?Ne(L,H,"whitespace")(q):H(q)):W(q)}function H(q){return q===null||xe(q)?(L.exit("codeFencedFence"),Q(q)):W(q)}}}function n_(e,n,r){const o=this;return l;function l(u){return u===null?r(u):(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),a)}function a(u){return o.parser.lazy[o.now().line]?r(u):n(u)}}const Gu={name:"codeIndented",tokenize:i_},r_={partial:!0,tokenize:o_};function i_(e,n,r){const o=this;return l;function l(p){return e.enter("codeIndented"),Ne(e,a,"linePrefix",5)(p)}function a(p){const g=o.events[o.events.length-1];return g&&g[1].type==="linePrefix"&&g[2].sliceSerialize(g[1],!0).length>=4?u(p):r(p)}function u(p){return p===null?d(p):xe(p)?e.attempt(r_,u,d)(p):(e.enter("codeFlowValue"),f(p))}function f(p){return p===null||xe(p)?(e.exit("codeFlowValue"),u(p)):(e.consume(p),f)}function d(p){return e.exit("codeIndented"),n(p)}}function o_(e,n,r){const o=this;return l;function l(u){return o.parser.lazy[o.now().line]?r(u):xe(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),l):Ne(e,a,"linePrefix",5)(u)}function a(u){const f=o.events[o.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?n(u):xe(u)?l(u):r(u)}}const l_={name:"codeText",previous:a_,resolve:s_,tokenize:u_};function s_(e){let n=e.length-4,r=3,o,l;if((e[r][1].type==="lineEnding"||e[r][1].type==="space")&&(e[n][1].type==="lineEnding"||e[n][1].type==="space")){for(o=r;++o<n;)if(e[o][1].type==="codeTextData"){e[r][1].type="codeTextPadding",e[n][1].type="codeTextPadding",r+=2,n-=2;break}}for(o=r-1,n++;++o<=n;)l===void 0?o!==n&&e[o][1].type!=="lineEnding"&&(l=o):(o===n||e[o][1].type==="lineEnding")&&(e[l][1].type="codeTextData",o!==l+2&&(e[l][1].end=e[o-1][1].end,e.splice(l+2,o-l-2),n-=o-l-2,o=l+2),l=void 0);return e}function a_(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function u_(e,n,r){let o=0,l,a;return u;function u(m){return e.enter("codeText"),e.enter("codeTextSequence"),f(m)}function f(m){return m===96?(e.consume(m),o++,f):(e.exit("codeTextSequence"),d(m))}function d(m){return m===null?r(m):m===32?(e.enter("space"),e.consume(m),e.exit("space"),d):m===96?(a=e.enter("codeTextSequence"),l=0,g(m)):xe(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),d):(e.enter("codeTextData"),p(m))}function p(m){return m===null||m===32||m===96||xe(m)?(e.exit("codeTextData"),d(m)):(e.consume(m),p)}function g(m){return m===96?(e.consume(m),l++,g):l===o?(e.exit("codeTextSequence"),e.exit("codeText"),n(m)):(a.type="codeTextData",p(m))}}class c_{constructor(n){this.left=n?[...n]:[],this.right=[]}get(n){if(n<0||n>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+n+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return n<this.left.length?this.left[n]:this.right[this.right.length-n+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(n,r){const o=r??Number.POSITIVE_INFINITY;return o<this.left.length?this.left.slice(n,o):n>this.left.length?this.right.slice(this.right.length-o+this.left.length,this.right.length-n+this.left.length).reverse():this.left.slice(n).concat(this.right.slice(this.right.length-o+this.left.length).reverse())}splice(n,r,o){const l=r||0;this.setCursor(Math.trunc(n));const a=this.right.splice(this.right.length-l,Number.POSITIVE_INFINITY);return o&&ho(this.left,o),a.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(n){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(n)}pushMany(n){this.setCursor(Number.POSITIVE_INFINITY),ho(this.left,n)}unshift(n){this.setCursor(0),this.right.push(n)}unshiftMany(n){this.setCursor(0),ho(this.right,n.reverse())}setCursor(n){if(!(n===this.left.length||n>this.left.length&&this.right.length===0||n<0&&this.left.length===0))if(n<this.left.length){const r=this.left.splice(n,Number.POSITIVE_INFINITY);ho(this.right,r.reverse())}else{const r=this.right.splice(this.left.length+this.right.length-n,Number.POSITIVE_INFINITY);ho(this.left,r.reverse())}}}function ho(e,n){let r=0;if(n.length<1e4)e.push(...n);else for(;r<n.length;)e.push(...n.slice(r,r+1e4)),r+=1e4}function dv(e){const n={};let r=-1,o,l,a,u,f,d,p;const g=new c_(e);for(;++r<g.length;){for(;r in n;)r=n[r];if(o=g.get(r),r&&o[1].type==="chunkFlow"&&g.get(r-1)[1].type==="listItemPrefix"&&(d=o[1]._tokenizer.events,a=0,a<d.length&&d[a][1].type==="lineEndingBlank"&&(a+=2),a<d.length&&d[a][1].type==="content"))for(;++a<d.length&&d[a][1].type!=="content";)d[a][1].type==="chunkText"&&(d[a][1]._isInFirstContentOfListItem=!0,a++);if(o[0]==="enter")o[1].contentType&&(Object.assign(n,f_(g,r)),r=n[r],p=!0);else if(o[1]._container){for(a=r,l=void 0;a--;)if(u=g.get(a),u[1].type==="lineEnding"||u[1].type==="lineEndingBlank")u[0]==="enter"&&(l&&(g.get(l)[1].type="lineEndingBlank"),u[1].type="lineEnding",l=a);else if(!(u[1].type==="linePrefix"||u[1].type==="listItemIndent"))break;l&&(o[1].end={...g.get(l)[1].start},f=g.slice(l,r),f.unshift(o),g.splice(l,r-l+1,f))}}return Dt(e,0,Number.POSITIVE_INFINITY,g.slice(0)),!p}function f_(e,n){const r=e.get(n)[1],o=e.get(n)[2];let l=n-1;const a=[];let u=r._tokenizer;u||(u=o.parser[r.contentType](r.start),r._contentTypeTextTrailing&&(u._contentTypeTextTrailing=!0));const f=u.events,d=[],p={};let g,m,v=-1,x=r,k=0,C=0;const E=[C];for(;x;){for(;e.get(++l)[1]!==x;);a.push(l),x._tokenizer||(g=o.sliceStream(x),x.next||g.push(null),m&&u.defineSkip(x.start),x._isInFirstContentOfListItem&&(u._gfmTasklistFirstContentOfListItem=!0),u.write(g),x._isInFirstContentOfListItem&&(u._gfmTasklistFirstContentOfListItem=void 0)),m=x,x=x.next}for(x=r;++v<f.length;)f[v][0]==="exit"&&f[v-1][0]==="enter"&&f[v][1].type===f[v-1][1].type&&f[v][1].start.line!==f[v][1].end.line&&(C=v+1,E.push(C),x._tokenizer=void 0,x.previous=void 0,x=x.next);for(u.events=[],x?(x._tokenizer=void 0,x.previous=void 0):E.pop(),v=E.length;v--;){const I=f.slice(E[v],E[v+1]),O=a.pop();d.push([O,O+I.length-1]),e.splice(O,2,I)}for(d.reverse(),v=-1;++v<d.length;)p[k+d[v][0]]=k+d[v][1],k+=d[v][1]-d[v][0]-1;return p}const d_={resolve:h_,tokenize:m_},p_={partial:!0,tokenize:g_};function h_(e){return dv(e),e}function m_(e,n){let r;return o;function o(f){return e.enter("content"),r=e.enter("chunkContent",{contentType:"content"}),l(f)}function l(f){return f===null?a(f):xe(f)?e.check(p_,u,a)(f):(e.consume(f),l)}function a(f){return e.exit("chunkContent"),e.exit("content"),n(f)}function u(f){return e.consume(f),e.exit("chunkContent"),r.next=e.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,l}}function g_(e,n,r){const o=this;return l;function l(u){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),Ne(e,a,"linePrefix")}function a(u){if(u===null||xe(u))return r(u);const f=o.events[o.events.length-1];return!o.parser.constructs.disable.null.includes("codeIndented")&&f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?n(u):e.interrupt(o.parser.constructs.flow,r,n)(u)}}function pv(e,n,r,o,l,a,u,f,d){const p=d||Number.POSITIVE_INFINITY;let g=0;return m;function m(I){return I===60?(e.enter(o),e.enter(l),e.enter(a),e.consume(I),e.exit(a),v):I===null||I===32||I===41||gs(I)?r(I):(e.enter(o),e.enter(u),e.enter(f),e.enter("chunkString",{contentType:"string"}),C(I))}function v(I){return I===62?(e.enter(a),e.consume(I),e.exit(a),e.exit(l),e.exit(o),n):(e.enter(f),e.enter("chunkString",{contentType:"string"}),x(I))}function x(I){return I===62?(e.exit("chunkString"),e.exit(f),v(I)):I===null||I===60||xe(I)?r(I):(e.consume(I),I===92?k:x)}function k(I){return I===60||I===62||I===92?(e.consume(I),x):x(I)}function C(I){return!g&&(I===null||I===41||De(I))?(e.exit("chunkString"),e.exit(f),e.exit(u),e.exit(o),n(I)):g<p&&I===40?(e.consume(I),g++,C):I===41?(e.consume(I),g--,C):I===null||I===32||I===40||gs(I)?r(I):(e.consume(I),I===92?E:C)}function E(I){return I===40||I===41||I===92?(e.consume(I),C):C(I)}}function hv(e,n,r,o,l,a){const u=this;let f=0,d;return p;function p(x){return e.enter(o),e.enter(l),e.consume(x),e.exit(l),e.enter(a),g}function g(x){return f>999||x===null||x===91||x===93&&!d||x===94&&!f&&"_hiddenFootnoteSupport"in u.parser.constructs?r(x):x===93?(e.exit(a),e.enter(l),e.consume(x),e.exit(l),e.exit(o),n):xe(x)?(e.enter("lineEnding"),e.consume(x),e.exit("lineEnding"),g):(e.enter("chunkString",{contentType:"string"}),m(x))}function m(x){return x===null||x===91||x===93||xe(x)||f++>999?(e.exit("chunkString"),g(x)):(e.consume(x),d||(d=!Ie(x)),x===92?v:m)}function v(x){return x===91||x===92||x===93?(e.consume(x),f++,m):m(x)}}function mv(e,n,r,o,l,a){let u;return f;function f(v){return v===34||v===39||v===40?(e.enter(o),e.enter(l),e.consume(v),e.exit(l),u=v===40?41:v,d):r(v)}function d(v){return v===u?(e.enter(l),e.consume(v),e.exit(l),e.exit(o),n):(e.enter(a),p(v))}function p(v){return v===u?(e.exit(a),d(u)):v===null?r(v):xe(v)?(e.enter("lineEnding"),e.consume(v),e.exit("lineEnding"),Ne(e,p,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),g(v))}function g(v){return v===u||v===null||xe(v)?(e.exit("chunkString"),p(v)):(e.consume(v),v===92?m:g)}function m(v){return v===u||v===92?(e.consume(v),g):g(v)}}function vo(e,n){let r;return o;function o(l){return xe(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),r=!0,o):Ie(l)?Ne(e,o,r?"linePrefix":"lineSuffix")(l):n(l)}}const y_={name:"definition",tokenize:x_},v_={partial:!0,tokenize:w_};function x_(e,n,r){const o=this;let l;return a;function a(x){return e.enter("definition"),u(x)}function u(x){return hv.call(o,e,f,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(x)}function f(x){return l=Jt(o.sliceSerialize(o.events[o.events.length-1][1]).slice(1,-1)),x===58?(e.enter("definitionMarker"),e.consume(x),e.exit("definitionMarker"),d):r(x)}function d(x){return De(x)?vo(e,p)(x):p(x)}function p(x){return pv(e,g,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(x)}function g(x){return e.attempt(v_,m,m)(x)}function m(x){return Ie(x)?Ne(e,v,"whitespace")(x):v(x)}function v(x){return x===null||xe(x)?(e.exit("definition"),o.parser.defined.push(l),n(x)):r(x)}}function w_(e,n,r){return o;function o(f){return De(f)?vo(e,l)(f):r(f)}function l(f){return mv(e,a,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(f)}function a(f){return Ie(f)?Ne(e,u,"whitespace")(f):u(f)}function u(f){return f===null||xe(f)?n(f):r(f)}}const k_={name:"hardBreakEscape",tokenize:S_};function S_(e,n,r){return o;function o(a){return e.enter("hardBreakEscape"),e.consume(a),l}function l(a){return xe(a)?(e.exit("hardBreakEscape"),n(a)):r(a)}}const E_={name:"headingAtx",resolve:C_,tokenize:b_};function C_(e,n){let r=e.length-2,o=3,l,a;return e[o][1].type==="whitespace"&&(o+=2),r-2>o&&e[r][1].type==="whitespace"&&(r-=2),e[r][1].type==="atxHeadingSequence"&&(o===r-1||r-4>o&&e[r-2][1].type==="whitespace")&&(r-=o+1===r?2:4),r>o&&(l={type:"atxHeadingText",start:e[o][1].start,end:e[r][1].end},a={type:"chunkText",start:e[o][1].start,end:e[r][1].end,contentType:"text"},Dt(e,o,r-o+1,[["enter",l,n],["enter",a,n],["exit",a,n],["exit",l,n]])),e}function b_(e,n,r){let o=0;return l;function l(g){return e.enter("atxHeading"),a(g)}function a(g){return e.enter("atxHeadingSequence"),u(g)}function u(g){return g===35&&o++<6?(e.consume(g),u):g===null||De(g)?(e.exit("atxHeadingSequence"),f(g)):r(g)}function f(g){return g===35?(e.enter("atxHeadingSequence"),d(g)):g===null||xe(g)?(e.exit("atxHeading"),n(g)):Ie(g)?Ne(e,f,"whitespace")(g):(e.enter("atxHeadingText"),p(g))}function d(g){return g===35?(e.consume(g),d):(e.exit("atxHeadingSequence"),f(g))}function p(g){return g===null||g===35||De(g)?(e.exit("atxHeadingText"),f(g)):(e.consume(g),p)}}const __=["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"],Am=["pre","script","style","textarea"],T_={concrete:!0,name:"htmlFlow",resolveTo:R_,tokenize:N_},P_={partial:!0,tokenize:j_},I_={partial:!0,tokenize:A_};function R_(e){let n=e.length;for(;n--&&!(e[n][0]==="enter"&&e[n][1].type==="htmlFlow"););return n>1&&e[n-2][1].type==="linePrefix"&&(e[n][1].start=e[n-2][1].start,e[n+1][1].start=e[n-2][1].start,e.splice(n-2,2)),e}function N_(e,n,r){const o=this;let l,a,u,f,d;return p;function p(T){return g(T)}function g(T){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(T),m}function m(T){return T===33?(e.consume(T),v):T===47?(e.consume(T),a=!0,C):T===63?(e.consume(T),l=3,o.interrupt?n:_):xt(T)?(e.consume(T),u=String.fromCharCode(T),E):r(T)}function v(T){return T===45?(e.consume(T),l=2,x):T===91?(e.consume(T),l=5,f=0,k):xt(T)?(e.consume(T),l=4,o.interrupt?n:_):r(T)}function x(T){return T===45?(e.consume(T),o.interrupt?n:_):r(T)}function k(T){const le="CDATA[";return T===le.charCodeAt(f++)?(e.consume(T),f===le.length?o.interrupt?n:te:k):r(T)}function C(T){return xt(T)?(e.consume(T),u=String.fromCharCode(T),E):r(T)}function E(T){if(T===null||T===47||T===62||De(T)){const le=T===47,Ee=u.toLowerCase();return!le&&!a&&Am.includes(Ee)?(l=1,o.interrupt?n(T):te(T)):__.includes(u.toLowerCase())?(l=6,le?(e.consume(T),I):o.interrupt?n(T):te(T)):(l=7,o.interrupt&&!o.parser.lazy[o.now().line]?r(T):a?O(T):N(T))}return T===45||mt(T)?(e.consume(T),u+=String.fromCharCode(T),E):r(T)}function I(T){return T===62?(e.consume(T),o.interrupt?n:te):r(T)}function O(T){return Ie(T)?(e.consume(T),O):z(T)}function N(T){return T===47?(e.consume(T),z):T===58||T===95||xt(T)?(e.consume(T),$):Ie(T)?(e.consume(T),N):z(T)}function $(T){return T===45||T===46||T===58||T===95||mt(T)?(e.consume(T),$):Y(T)}function Y(T){return T===61?(e.consume(T),L):Ie(T)?(e.consume(T),Y):N(T)}function L(T){return T===null||T===60||T===61||T===62||T===96?r(T):T===34||T===39?(e.consume(T),d=T,Q):Ie(T)?(e.consume(T),L):W(T)}function Q(T){return T===d?(e.consume(T),d=null,fe):T===null||xe(T)?r(T):(e.consume(T),Q)}function W(T){return T===null||T===34||T===39||T===47||T===60||T===61||T===62||T===96||De(T)?Y(T):(e.consume(T),W)}function fe(T){return T===47||T===62||Ie(T)?N(T):r(T)}function z(T){return T===62?(e.consume(T),ne):r(T)}function ne(T){return T===null||xe(T)?te(T):Ie(T)?(e.consume(T),ne):r(T)}function te(T){return T===45&&l===2?(e.consume(T),re):T===60&&l===1?(e.consume(T),he):T===62&&l===4?(e.consume(T),j):T===63&&l===3?(e.consume(T),_):T===93&&l===5?(e.consume(T),oe):xe(T)&&(l===6||l===7)?(e.exit("htmlFlowData"),e.check(P_,V,me)(T)):T===null||xe(T)?(e.exit("htmlFlowData"),me(T)):(e.consume(T),te)}function me(T){return e.check(I_,H,V)(T)}function H(T){return e.enter("lineEnding"),e.consume(T),e.exit("lineEnding"),q}function q(T){return T===null||xe(T)?me(T):(e.enter("htmlFlowData"),te(T))}function re(T){return T===45?(e.consume(T),_):te(T)}function he(T){return T===47?(e.consume(T),u="",B):te(T)}function B(T){if(T===62){const le=u.toLowerCase();return Am.includes(le)?(e.consume(T),j):te(T)}return xt(T)&&u.length<8?(e.consume(T),u+=String.fromCharCode(T),B):te(T)}function oe(T){return T===93?(e.consume(T),_):te(T)}function _(T){return T===62?(e.consume(T),j):T===45&&l===2?(e.consume(T),_):te(T)}function j(T){return T===null||xe(T)?(e.exit("htmlFlowData"),V(T)):(e.consume(T),j)}function V(T){return e.exit("htmlFlow"),n(T)}}function A_(e,n,r){const o=this;return l;function l(u){return xe(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),a):r(u)}function a(u){return o.parser.lazy[o.now().line]?r(u):n(u)}}function j_(e,n,r){return o;function o(l){return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),e.attempt(Ro,n,r)}}const O_={name:"htmlText",tokenize:L_};function L_(e,n,r){const o=this;let l,a,u;return f;function f(_){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(_),d}function d(_){return _===33?(e.consume(_),p):_===47?(e.consume(_),Y):_===63?(e.consume(_),N):xt(_)?(e.consume(_),W):r(_)}function p(_){return _===45?(e.consume(_),g):_===91?(e.consume(_),a=0,k):xt(_)?(e.consume(_),O):r(_)}function g(_){return _===45?(e.consume(_),x):r(_)}function m(_){return _===null?r(_):_===45?(e.consume(_),v):xe(_)?(u=m,he(_)):(e.consume(_),m)}function v(_){return _===45?(e.consume(_),x):m(_)}function x(_){return _===62?re(_):_===45?v(_):m(_)}function k(_){const j="CDATA[";return _===j.charCodeAt(a++)?(e.consume(_),a===j.length?C:k):r(_)}function C(_){return _===null?r(_):_===93?(e.consume(_),E):xe(_)?(u=C,he(_)):(e.consume(_),C)}function E(_){return _===93?(e.consume(_),I):C(_)}function I(_){return _===62?re(_):_===93?(e.consume(_),I):C(_)}function O(_){return _===null||_===62?re(_):xe(_)?(u=O,he(_)):(e.consume(_),O)}function N(_){return _===null?r(_):_===63?(e.consume(_),$):xe(_)?(u=N,he(_)):(e.consume(_),N)}function $(_){return _===62?re(_):N(_)}function Y(_){return xt(_)?(e.consume(_),L):r(_)}function L(_){return _===45||mt(_)?(e.consume(_),L):Q(_)}function Q(_){return xe(_)?(u=Q,he(_)):Ie(_)?(e.consume(_),Q):re(_)}function W(_){return _===45||mt(_)?(e.consume(_),W):_===47||_===62||De(_)?fe(_):r(_)}function fe(_){return _===47?(e.consume(_),re):_===58||_===95||xt(_)?(e.consume(_),z):xe(_)?(u=fe,he(_)):Ie(_)?(e.consume(_),fe):re(_)}function z(_){return _===45||_===46||_===58||_===95||mt(_)?(e.consume(_),z):ne(_)}function ne(_){return _===61?(e.consume(_),te):xe(_)?(u=ne,he(_)):Ie(_)?(e.consume(_),ne):fe(_)}function te(_){return _===null||_===60||_===61||_===62||_===96?r(_):_===34||_===39?(e.consume(_),l=_,me):xe(_)?(u=te,he(_)):Ie(_)?(e.consume(_),te):(e.consume(_),H)}function me(_){return _===l?(e.consume(_),l=void 0,q):_===null?r(_):xe(_)?(u=me,he(_)):(e.consume(_),me)}function H(_){return _===null||_===34||_===39||_===60||_===61||_===96?r(_):_===47||_===62||De(_)?fe(_):(e.consume(_),H)}function q(_){return _===47||_===62||De(_)?fe(_):r(_)}function re(_){return _===62?(e.consume(_),e.exit("htmlTextData"),e.exit("htmlText"),n):r(_)}function he(_){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(_),e.exit("lineEnding"),B}function B(_){return Ie(_)?Ne(e,oe,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(_):oe(_)}function oe(_){return e.enter("htmlTextData"),u(_)}}const wf={name:"labelEnd",resolveAll:F_,resolveTo:B_,tokenize:$_},D_={tokenize:U_},z_={tokenize:V_},M_={tokenize:W_};function F_(e){let n=-1;const r=[];for(;++n<e.length;){const o=e[n][1];if(r.push(e[n]),o.type==="labelImage"||o.type==="labelLink"||o.type==="labelEnd"){const l=o.type==="labelImage"?4:2;o.type="data",n+=l}}return e.length!==r.length&&Dt(e,0,e.length,r),e}function B_(e,n){let r=e.length,o=0,l,a,u,f;for(;r--;)if(l=e[r][1],a){if(l.type==="link"||l.type==="labelLink"&&l._inactive)break;e[r][0]==="enter"&&l.type==="labelLink"&&(l._inactive=!0)}else if(u){if(e[r][0]==="enter"&&(l.type==="labelImage"||l.type==="labelLink")&&!l._balanced&&(a=r,l.type!=="labelLink")){o=2;break}}else l.type==="labelEnd"&&(u=r);const d={type:e[a][1].type==="labelLink"?"link":"image",start:{...e[a][1].start},end:{...e[e.length-1][1].end}},p={type:"label",start:{...e[a][1].start},end:{...e[u][1].end}},g={type:"labelText",start:{...e[a+o+2][1].end},end:{...e[u-2][1].start}};return f=[["enter",d,n],["enter",p,n]],f=Wt(f,e.slice(a+1,a+o+3)),f=Wt(f,[["enter",g,n]]),f=Wt(f,js(n.parser.constructs.insideSpan.null,e.slice(a+o+4,u-3),n)),f=Wt(f,[["exit",g,n],e[u-2],e[u-1],["exit",p,n]]),f=Wt(f,e.slice(u+1)),f=Wt(f,[["exit",d,n]]),Dt(e,a,e.length,f),e}function $_(e,n,r){const o=this;let l=o.events.length,a,u;for(;l--;)if((o.events[l][1].type==="labelImage"||o.events[l][1].type==="labelLink")&&!o.events[l][1]._balanced){a=o.events[l][1];break}return f;function f(v){return a?a._inactive?m(v):(u=o.parser.defined.includes(Jt(o.sliceSerialize({start:a.end,end:o.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(v),e.exit("labelMarker"),e.exit("labelEnd"),d):r(v)}function d(v){return v===40?e.attempt(D_,g,u?g:m)(v):v===91?e.attempt(z_,g,u?p:m)(v):u?g(v):m(v)}function p(v){return e.attempt(M_,g,m)(v)}function g(v){return n(v)}function m(v){return a._balanced=!0,r(v)}}function U_(e,n,r){return o;function o(m){return e.enter("resource"),e.enter("resourceMarker"),e.consume(m),e.exit("resourceMarker"),l}function l(m){return De(m)?vo(e,a)(m):a(m)}function a(m){return m===41?g(m):pv(e,u,f,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(m)}function u(m){return De(m)?vo(e,d)(m):g(m)}function f(m){return r(m)}function d(m){return m===34||m===39||m===40?mv(e,p,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(m):g(m)}function p(m){return De(m)?vo(e,g)(m):g(m)}function g(m){return m===41?(e.enter("resourceMarker"),e.consume(m),e.exit("resourceMarker"),e.exit("resource"),n):r(m)}}function V_(e,n,r){const o=this;return l;function l(f){return hv.call(o,e,a,u,"reference","referenceMarker","referenceString")(f)}function a(f){return o.parser.defined.includes(Jt(o.sliceSerialize(o.events[o.events.length-1][1]).slice(1,-1)))?n(f):r(f)}function u(f){return r(f)}}function W_(e,n,r){return o;function o(a){return e.enter("reference"),e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),l}function l(a){return a===93?(e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),e.exit("reference"),n):r(a)}}const H_={name:"labelStartImage",resolveAll:wf.resolveAll,tokenize:q_};function q_(e,n,r){const o=this;return l;function l(f){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(f),e.exit("labelImageMarker"),a}function a(f){return f===91?(e.enter("labelMarker"),e.consume(f),e.exit("labelMarker"),e.exit("labelImage"),u):r(f)}function u(f){return f===94&&"_hiddenFootnoteSupport"in o.parser.constructs?r(f):n(f)}}const G_={name:"labelStartLink",resolveAll:wf.resolveAll,tokenize:K_};function K_(e,n,r){const o=this;return l;function l(u){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(u),e.exit("labelMarker"),e.exit("labelLink"),a}function a(u){return u===94&&"_hiddenFootnoteSupport"in o.parser.constructs?r(u):n(u)}}const Ku={name:"lineEnding",tokenize:Y_};function Y_(e,n){return r;function r(o){return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),Ne(e,n,"linePrefix")}}const rs={name:"thematicBreak",tokenize:Q_};function Q_(e,n,r){let o=0,l;return a;function a(p){return e.enter("thematicBreak"),u(p)}function u(p){return l=p,f(p)}function f(p){return p===l?(e.enter("thematicBreakSequence"),d(p)):o>=3&&(p===null||xe(p))?(e.exit("thematicBreak"),n(p)):r(p)}function d(p){return p===l?(e.consume(p),o++,d):(e.exit("thematicBreakSequence"),Ie(p)?Ne(e,f,"whitespace")(p):f(p))}}const _t={continuation:{tokenize:eT},exit:nT,name:"list",tokenize:Z_},X_={partial:!0,tokenize:rT},J_={partial:!0,tokenize:tT};function Z_(e,n,r){const o=this,l=o.events[o.events.length-1];let a=l&&l[1].type==="linePrefix"?l[2].sliceSerialize(l[1],!0).length:0,u=0;return f;function f(x){const k=o.containerState.type||(x===42||x===43||x===45?"listUnordered":"listOrdered");if(k==="listUnordered"?!o.containerState.marker||x===o.containerState.marker:Ic(x)){if(o.containerState.type||(o.containerState.type=k,e.enter(k,{_container:!0})),k==="listUnordered")return e.enter("listItemPrefix"),x===42||x===45?e.check(rs,r,p)(x):p(x);if(!o.interrupt||x===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),d(x)}return r(x)}function d(x){return Ic(x)&&++u<10?(e.consume(x),d):(!o.interrupt||u<2)&&(o.containerState.marker?x===o.containerState.marker:x===41||x===46)?(e.exit("listItemValue"),p(x)):r(x)}function p(x){return e.enter("listItemMarker"),e.consume(x),e.exit("listItemMarker"),o.containerState.marker=o.containerState.marker||x,e.check(Ro,o.interrupt?r:g,e.attempt(X_,v,m))}function g(x){return o.containerState.initialBlankLine=!0,a++,v(x)}function m(x){return Ie(x)?(e.enter("listItemPrefixWhitespace"),e.consume(x),e.exit("listItemPrefixWhitespace"),v):r(x)}function v(x){return o.containerState.size=a+o.sliceSerialize(e.exit("listItemPrefix"),!0).length,n(x)}}function eT(e,n,r){const o=this;return o.containerState._closeFlow=void 0,e.check(Ro,l,a);function l(f){return o.containerState.furtherBlankLines=o.containerState.furtherBlankLines||o.containerState.initialBlankLine,Ne(e,n,"listItemIndent",o.containerState.size+1)(f)}function a(f){return o.containerState.furtherBlankLines||!Ie(f)?(o.containerState.furtherBlankLines=void 0,o.containerState.initialBlankLine=void 0,u(f)):(o.containerState.furtherBlankLines=void 0,o.containerState.initialBlankLine=void 0,e.attempt(J_,n,u)(f))}function u(f){return o.containerState._closeFlow=!0,o.interrupt=void 0,Ne(e,e.attempt(_t,n,r),"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(f)}}function tT(e,n,r){const o=this;return Ne(e,l,"listItemIndent",o.containerState.size+1);function l(a){const u=o.events[o.events.length-1];return u&&u[1].type==="listItemIndent"&&u[2].sliceSerialize(u[1],!0).length===o.containerState.size?n(a):r(a)}}function nT(e){e.exit(this.containerState.type)}function rT(e,n,r){const o=this;return Ne(e,l,"listItemPrefixWhitespace",o.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function l(a){const u=o.events[o.events.length-1];return!Ie(a)&&u&&u[1].type==="listItemPrefixWhitespace"?n(a):r(a)}}const jm={name:"setextUnderline",resolveTo:iT,tokenize:oT};function iT(e,n){let r=e.length,o,l,a;for(;r--;)if(e[r][0]==="enter"){if(e[r][1].type==="content"){o=r;break}e[r][1].type==="paragraph"&&(l=r)}else e[r][1].type==="content"&&e.splice(r,1),!a&&e[r][1].type==="definition"&&(a=r);const u={type:"setextHeading",start:{...e[o][1].start},end:{...e[e.length-1][1].end}};return e[l][1].type="setextHeadingText",a?(e.splice(l,0,["enter",u,n]),e.splice(a+1,0,["exit",e[o][1],n]),e[o][1].end={...e[a][1].end}):e[o][1]=u,e.push(["exit",u,n]),e}function oT(e,n,r){const o=this;let l;return a;function a(p){let g=o.events.length,m;for(;g--;)if(o.events[g][1].type!=="lineEnding"&&o.events[g][1].type!=="linePrefix"&&o.events[g][1].type!=="content"){m=o.events[g][1].type==="paragraph";break}return!o.parser.lazy[o.now().line]&&(o.interrupt||m)?(e.enter("setextHeadingLine"),l=p,u(p)):r(p)}function u(p){return e.enter("setextHeadingLineSequence"),f(p)}function f(p){return p===l?(e.consume(p),f):(e.exit("setextHeadingLineSequence"),Ie(p)?Ne(e,d,"lineSuffix")(p):d(p))}function d(p){return p===null||xe(p)?(e.exit("setextHeadingLine"),n(p)):r(p)}}const lT={tokenize:sT};function sT(e){const n=this,r=e.attempt(Ro,o,e.attempt(this.parser.constructs.flowInitial,l,Ne(e,e.attempt(this.parser.constructs.flow,l,e.attempt(d_,l)),"linePrefix")));return r;function o(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),n.currentConstruct=void 0,r}function l(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),n.currentConstruct=void 0,r}}const aT={resolveAll:yv()},uT=gv("string"),cT=gv("text");function gv(e){return{resolveAll:yv(e==="text"?fT:void 0),tokenize:n};function n(r){const o=this,l=this.parser.constructs[e],a=r.attempt(l,u,f);return u;function u(g){return p(g)?a(g):f(g)}function f(g){if(g===null){r.consume(g);return}return r.enter("data"),r.consume(g),d}function d(g){return p(g)?(r.exit("data"),a(g)):(r.consume(g),d)}function p(g){if(g===null)return!0;const m=l[g];let v=-1;if(m)for(;++v<m.length;){const x=m[v];if(!x.previous||x.previous.call(o,o.previous))return!0}return!1}}}function yv(e){return n;function n(r,o){let l=-1,a;for(;++l<=r.length;)a===void 0?r[l]&&r[l][1].type==="data"&&(a=l,l++):(!r[l]||r[l][1].type!=="data")&&(l!==a+2&&(r[a][1].end=r[l-1][1].end,r.splice(a+2,l-a-2),l=a+2),a=void 0);return e?e(r,o):r}}function fT(e,n){let r=0;for(;++r<=e.length;)if((r===e.length||e[r][1].type==="lineEnding")&&e[r-1][1].type==="data"){const o=e[r-1][1],l=n.sliceStream(o);let a=l.length,u=-1,f=0,d;for(;a--;){const p=l[a];if(typeof p=="string"){for(u=p.length;p.charCodeAt(u-1)===32;)f++,u--;if(u)break;u=-1}else if(p===-2)d=!0,f++;else if(p!==-1){a++;break}}if(n._contentTypeTextTrailing&&r===e.length&&(f=0),f){const p={type:r===e.length||d||f<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:a?u:o.start._bufferIndex+u,_index:o.start._index+a,line:o.end.line,column:o.end.column-f,offset:o.end.offset-f},end:{...o.end}};o.end={...p.start},o.start.offset===o.end.offset?Object.assign(o,p):(e.splice(r,0,["enter",p,n],["exit",p,n]),r+=2)}r++}return e}const dT={42:_t,43:_t,45:_t,48:_t,49:_t,50:_t,51:_t,52:_t,53:_t,54:_t,55:_t,56:_t,57:_t,62:uv},pT={91:y_},hT={[-2]:Gu,[-1]:Gu,32:Gu},mT={35:E_,42:rs,45:[jm,rs],60:T_,61:jm,95:rs,96:Nm,126:Nm},gT={38:fv,92:cv},yT={[-5]:Ku,[-4]:Ku,[-3]:Ku,33:H_,38:fv,42:Rc,60:[Gb,O_],91:G_,92:[k_,cv],93:wf,95:Rc,96:l_},vT={null:[Rc,aT]},xT={null:[42,95]},wT={null:[]},kT=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:xT,contentInitial:pT,disable:wT,document:dT,flow:mT,flowInitial:hT,insideSpan:vT,string:gT,text:yT},Symbol.toStringTag,{value:"Module"}));function ST(e,n,r){let o={_bufferIndex:-1,_index:0,line:r&&r.line||1,column:r&&r.column||1,offset:r&&r.offset||0};const l={},a=[];let u=[],f=[];const d={attempt:Q(Y),check:Q(L),consume:O,enter:N,exit:$,interrupt:Q(L,{interrupt:!0})},p={code:null,containerState:{},defineSkip:C,events:[],now:k,parser:e,previous:null,sliceSerialize:v,sliceStream:x,write:m};let g=n.tokenize.call(p,d);return n.resolveAll&&a.push(n),p;function m(ne){return u=Wt(u,ne),E(),u[u.length-1]!==null?[]:(W(n,0),p.events=js(a,p.events,p),p.events)}function v(ne,te){return CT(x(ne),te)}function x(ne){return ET(u,ne)}function k(){const{_bufferIndex:ne,_index:te,line:me,column:H,offset:q}=o;return{_bufferIndex:ne,_index:te,line:me,column:H,offset:q}}function C(ne){l[ne.line]=ne.column,z()}function E(){let ne;for(;o._index<u.length;){const te=u[o._index];if(typeof te=="string")for(ne=o._index,o._bufferIndex<0&&(o._bufferIndex=0);o._index===ne&&o._bufferIndex<te.length;)I(te.charCodeAt(o._bufferIndex));else I(te)}}function I(ne){g=g(ne)}function O(ne){xe(ne)?(o.line++,o.column=1,o.offset+=ne===-3?2:1,z()):ne!==-1&&(o.column++,o.offset++),o._bufferIndex<0?o._index++:(o._bufferIndex++,o._bufferIndex===u[o._index].length&&(o._bufferIndex=-1,o._index++)),p.previous=ne}function N(ne,te){const me=te||{};return me.type=ne,me.start=k(),p.events.push(["enter",me,p]),f.push(me),me}function $(ne){const te=f.pop();return te.end=k(),p.events.push(["exit",te,p]),te}function Y(ne,te){W(ne,te.from)}function L(ne,te){te.restore()}function Q(ne,te){return me;function me(H,q,re){let he,B,oe,_;return Array.isArray(H)?V(H):"tokenize"in H?V([H]):j(H);function j(ge){return we;function we(Ce){const Re=Ce!==null&&ge[Ce],Fe=Ce!==null&&ge.null,It=[...Array.isArray(Re)?Re:Re?[Re]:[],...Array.isArray(Fe)?Fe:Fe?[Fe]:[]];return V(It)(Ce)}}function V(ge){return he=ge,B=0,ge.length===0?re:T(ge[B])}function T(ge){return we;function we(Ce){return _=fe(),oe=ge,ge.partial||(p.currentConstruct=ge),ge.name&&p.parser.constructs.disable.null.includes(ge.name)?Ee():ge.tokenize.call(te?Object.assign(Object.create(p),te):p,d,le,Ee)(Ce)}}function le(ge){return ne(oe,_),q}function Ee(ge){return _.restore(),++B<he.length?T(he[B]):re}}}function W(ne,te){ne.resolveAll&&!a.includes(ne)&&a.push(ne),ne.resolve&&Dt(p.events,te,p.events.length-te,ne.resolve(p.events.slice(te),p)),ne.resolveTo&&(p.events=ne.resolveTo(p.events,p))}function fe(){const ne=k(),te=p.previous,me=p.currentConstruct,H=p.events.length,q=Array.from(f);return{from:H,restore:re};function re(){o=ne,p.previous=te,p.currentConstruct=me,p.events.length=H,f=q,z()}}function z(){o.line in l&&o.column<2&&(o.column=l[o.line],o.offset+=l[o.line]-1)}}function ET(e,n){const r=n.start._index,o=n.start._bufferIndex,l=n.end._index,a=n.end._bufferIndex;let u;if(r===l)u=[e[r].slice(o,a)];else{if(u=e.slice(r,l),o>-1){const f=u[0];typeof f=="string"?u[0]=f.slice(o):u.shift()}a>0&&u.push(e[l].slice(0,a))}return u}function CT(e,n){let r=-1;const o=[];let l;for(;++r<e.length;){const a=e[r];let u;if(typeof a=="string")u=a;else switch(a){case-5:{u="\r";break}case-4:{u=`
172
+ `;break}case-3:{u=`\r
173
+ `;break}case-2:{u=n?" ":" ";break}case-1:{if(!n&&l)continue;u=" ";break}default:u=String.fromCharCode(a)}l=a===-2,o.push(u)}return o.join("")}function bT(e){const o={constructs:sv([kT,...(e||{}).extensions||[]]),content:l(Bb),defined:[],document:l(Ub),flow:l(lT),lazy:{},string:l(uT),text:l(cT)};return o;function l(a){return u;function u(f){return ST(o,a,f)}}}function _T(e){for(;!dv(e););return e}const Om=/[\0\t\n\r]/g;function TT(){let e=1,n="",r=!0,o;return l;function l(a,u,f){const d=[];let p,g,m,v,x;for(a=n+(typeof a=="string"?a.toString():new TextDecoder(u||void 0).decode(a)),m=0,n="",r&&(a.charCodeAt(0)===65279&&m++,r=void 0);m<a.length;){if(Om.lastIndex=m,p=Om.exec(a),v=p&&p.index!==void 0?p.index:a.length,x=a.charCodeAt(v),!p){n=a.slice(m);break}if(x===10&&m===v&&o)d.push(-3),o=void 0;else switch(o&&(d.push(-5),o=void 0),m<v&&(d.push(a.slice(m,v)),e+=v-m),x){case 0:{d.push(65533),e++;break}case 9:{for(g=Math.ceil(e/4)*4,d.push(-2);e++<g;)d.push(-1);break}case 10:{d.push(-4),e=1;break}default:o=!0,e=1}m=v+1}return f&&(o&&d.push(-5),n&&d.push(n),d.push(null)),d}}const PT=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function IT(e){return e.replace(PT,RT)}function RT(e,n,r){if(n)return n;if(r.charCodeAt(0)===35){const l=r.charCodeAt(1),a=l===120||l===88;return av(r.slice(a?2:1),a?16:10)}return xf(r)||e}const vv={}.hasOwnProperty;function NT(e,n,r){return typeof n!="string"&&(r=n,n=void 0),AT(r)(_T(bT(r).document().write(TT()(e,n,!0))))}function AT(e){const n={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:a(Nr),autolinkProtocol:fe,autolinkEmail:fe,atxHeading:a(Ei),blockQuote:a(Fe),characterEscape:fe,characterReference:fe,codeFenced:a(It),codeFencedFenceInfo:u,codeFencedFenceMeta:u,codeIndented:a(It,u),codeText:a(un,u),codeTextData:fe,data:fe,codeFlowValue:fe,definition:a(Ir),definitionDestinationString:u,definitionLabelString:u,definitionTitleString:u,emphasis:a(Si),hardBreakEscape:a(Ci),hardBreakTrailing:a(Ci),htmlFlow:a(Rr,u),htmlFlowData:fe,htmlText:a(Rr,u),htmlTextData:fe,image:a(jo),label:u,link:a(Nr),listItem:a(Pn),listItemValue:v,listOrdered:a(Tn,m),listUnordered:a(Tn),paragraph:a(bi),reference:T,referenceString:u,resourceDestinationString:u,resourceTitleString:u,setextHeading:a(Ei),strong:a(Oo),thematicBreak:a(Do)},exit:{atxHeading:d(),atxHeadingSequence:Y,autolink:d(),autolinkEmail:Re,autolinkProtocol:Ce,blockQuote:d(),characterEscapeValue:z,characterReferenceMarkerHexadecimal:Ee,characterReferenceMarkerNumeric:Ee,characterReferenceValue:ge,characterReference:we,codeFenced:d(E),codeFencedFence:C,codeFencedFenceInfo:x,codeFencedFenceMeta:k,codeFlowValue:z,codeIndented:d(I),codeText:d(q),codeTextData:z,data:z,definition:d(),definitionDestinationString:$,definitionLabelString:O,definitionTitleString:N,emphasis:d(),hardBreakEscape:d(te),hardBreakTrailing:d(te),htmlFlow:d(me),htmlFlowData:z,htmlText:d(H),htmlTextData:z,image:d(he),label:oe,labelText:B,lineEnding:ne,link:d(re),listItem:d(),listOrdered:d(),listUnordered:d(),paragraph:d(),referenceString:le,resourceDestinationString:_,resourceTitleString:j,resource:V,setextHeading:d(W),setextHeadingLineSequence:Q,setextHeadingText:L,strong:d(),thematicBreak:d()}};xv(n,(e||{}).mdastExtensions||[]);const r={};return o;function o(U){let ee={type:"root",children:[]};const ke={stack:[ee],tokenStack:[],config:n,enter:f,exit:p,buffer:u,resume:g,data:r},Te=[];let Ae=-1;for(;++Ae<U.length;)if(U[Ae][1].type==="listOrdered"||U[Ae][1].type==="listUnordered")if(U[Ae][0]==="enter")Te.push(Ae);else{const ot=Te.pop();Ae=l(U,ot,Ae)}for(Ae=-1;++Ae<U.length;){const ot=n[U[Ae][0]];vv.call(ot,U[Ae][1].type)&&ot[U[Ae][1].type].call(Object.assign({sliceSerialize:U[Ae][2].sliceSerialize},ke),U[Ae][1])}if(ke.tokenStack.length>0){const ot=ke.tokenStack[ke.tokenStack.length-1];(ot[1]||Lm).call(ke,void 0,ot[0])}for(ee.position={start:Qn(U.length>0?U[0][1].start:{line:1,column:1,offset:0}),end:Qn(U.length>0?U[U.length-2][1].end:{line:1,column:1,offset:0})},Ae=-1;++Ae<n.transforms.length;)ee=n.transforms[Ae](ee)||ee;return ee}function l(U,ee,ke){let Te=ee-1,Ae=-1,ot=!1,cn,zt,In,lr;for(;++Te<=ke;){const lt=U[Te];switch(lt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{lt[0]==="enter"?Ae++:Ae--,lr=void 0;break}case"lineEndingBlank":{lt[0]==="enter"&&(cn&&!lr&&!Ae&&!In&&(In=Te),lr=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:lr=void 0}if(!Ae&&lt[0]==="enter"&&lt[1].type==="listItemPrefix"||Ae===-1&&lt[0]==="exit"&&(lt[1].type==="listUnordered"||lt[1].type==="listOrdered")){if(cn){let Zt=Te;for(zt=void 0;Zt--;){const Rt=U[Zt];if(Rt[1].type==="lineEnding"||Rt[1].type==="lineEndingBlank"){if(Rt[0]==="exit")continue;zt&&(U[zt][1].type="lineEndingBlank",ot=!0),Rt[1].type="lineEnding",zt=Zt}else if(!(Rt[1].type==="linePrefix"||Rt[1].type==="blockQuotePrefix"||Rt[1].type==="blockQuotePrefixWhitespace"||Rt[1].type==="blockQuoteMarker"||Rt[1].type==="listItemIndent"))break}In&&(!zt||In<zt)&&(cn._spread=!0),cn.end=Object.assign({},zt?U[zt][1].start:lt[1].end),U.splice(zt||Te,0,["exit",cn,lt[2]]),Te++,ke++}if(lt[1].type==="listItemPrefix"){const Zt={type:"listItem",_spread:!1,start:Object.assign({},lt[1].start),end:void 0};cn=Zt,U.splice(Te,0,["enter",Zt,lt[2]]),Te++,ke++,In=void 0,lr=!0}}}return U[ee][1]._spread=ot,ke}function a(U,ee){return ke;function ke(Te){f.call(this,U(Te),Te),ee&&ee.call(this,Te)}}function u(){this.stack.push({type:"fragment",children:[]})}function f(U,ee,ke){this.stack[this.stack.length-1].children.push(U),this.stack.push(U),this.tokenStack.push([ee,ke||void 0]),U.position={start:Qn(ee.start),end:void 0}}function d(U){return ee;function ee(ke){U&&U.call(this,ke),p.call(this,ke)}}function p(U,ee){const ke=this.stack.pop(),Te=this.tokenStack.pop();if(Te)Te[0].type!==U.type&&(ee?ee.call(this,U,Te[0]):(Te[1]||Lm).call(this,U,Te[0]));else throw new Error("Cannot close `"+U.type+"` ("+yo({start:U.start,end:U.end})+"): it’s not open");ke.position.end=Qn(U.end)}function g(){return vf(this.stack.pop())}function m(){this.data.expectingFirstListItemValue=!0}function v(U){if(this.data.expectingFirstListItemValue){const ee=this.stack[this.stack.length-2];ee.start=Number.parseInt(this.sliceSerialize(U),10),this.data.expectingFirstListItemValue=void 0}}function x(){const U=this.resume(),ee=this.stack[this.stack.length-1];ee.lang=U}function k(){const U=this.resume(),ee=this.stack[this.stack.length-1];ee.meta=U}function C(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function E(){const U=this.resume(),ee=this.stack[this.stack.length-1];ee.value=U.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function I(){const U=this.resume(),ee=this.stack[this.stack.length-1];ee.value=U.replace(/(\r?\n|\r)$/g,"")}function O(U){const ee=this.resume(),ke=this.stack[this.stack.length-1];ke.label=ee,ke.identifier=Jt(this.sliceSerialize(U)).toLowerCase()}function N(){const U=this.resume(),ee=this.stack[this.stack.length-1];ee.title=U}function $(){const U=this.resume(),ee=this.stack[this.stack.length-1];ee.url=U}function Y(U){const ee=this.stack[this.stack.length-1];if(!ee.depth){const ke=this.sliceSerialize(U).length;ee.depth=ke}}function L(){this.data.setextHeadingSlurpLineEnding=!0}function Q(U){const ee=this.stack[this.stack.length-1];ee.depth=this.sliceSerialize(U).codePointAt(0)===61?1:2}function W(){this.data.setextHeadingSlurpLineEnding=void 0}function fe(U){const ke=this.stack[this.stack.length-1].children;let Te=ke[ke.length-1];(!Te||Te.type!=="text")&&(Te=Lo(),Te.position={start:Qn(U.start),end:void 0},ke.push(Te)),this.stack.push(Te)}function z(U){const ee=this.stack.pop();ee.value+=this.sliceSerialize(U),ee.position.end=Qn(U.end)}function ne(U){const ee=this.stack[this.stack.length-1];if(this.data.atHardBreak){const ke=ee.children[ee.children.length-1];ke.position.end=Qn(U.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&n.canContainEols.includes(ee.type)&&(fe.call(this,U),z.call(this,U))}function te(){this.data.atHardBreak=!0}function me(){const U=this.resume(),ee=this.stack[this.stack.length-1];ee.value=U}function H(){const U=this.resume(),ee=this.stack[this.stack.length-1];ee.value=U}function q(){const U=this.resume(),ee=this.stack[this.stack.length-1];ee.value=U}function re(){const U=this.stack[this.stack.length-1];if(this.data.inReference){const ee=this.data.referenceType||"shortcut";U.type+="Reference",U.referenceType=ee,delete U.url,delete U.title}else delete U.identifier,delete U.label;this.data.referenceType=void 0}function he(){const U=this.stack[this.stack.length-1];if(this.data.inReference){const ee=this.data.referenceType||"shortcut";U.type+="Reference",U.referenceType=ee,delete U.url,delete U.title}else delete U.identifier,delete U.label;this.data.referenceType=void 0}function B(U){const ee=this.sliceSerialize(U),ke=this.stack[this.stack.length-2];ke.label=IT(ee),ke.identifier=Jt(ee).toLowerCase()}function oe(){const U=this.stack[this.stack.length-1],ee=this.resume(),ke=this.stack[this.stack.length-1];if(this.data.inReference=!0,ke.type==="link"){const Te=U.children;ke.children=Te}else ke.alt=ee}function _(){const U=this.resume(),ee=this.stack[this.stack.length-1];ee.url=U}function j(){const U=this.resume(),ee=this.stack[this.stack.length-1];ee.title=U}function V(){this.data.inReference=void 0}function T(){this.data.referenceType="collapsed"}function le(U){const ee=this.resume(),ke=this.stack[this.stack.length-1];ke.label=ee,ke.identifier=Jt(this.sliceSerialize(U)).toLowerCase(),this.data.referenceType="full"}function Ee(U){this.data.characterReferenceType=U.type}function ge(U){const ee=this.sliceSerialize(U),ke=this.data.characterReferenceType;let Te;ke?(Te=av(ee,ke==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Te=xf(ee);const Ae=this.stack[this.stack.length-1];Ae.value+=Te}function we(U){const ee=this.stack.pop();ee.position.end=Qn(U.end)}function Ce(U){z.call(this,U);const ee=this.stack[this.stack.length-1];ee.url=this.sliceSerialize(U)}function Re(U){z.call(this,U);const ee=this.stack[this.stack.length-1];ee.url="mailto:"+this.sliceSerialize(U)}function Fe(){return{type:"blockquote",children:[]}}function It(){return{type:"code",lang:null,meta:null,value:""}}function un(){return{type:"inlineCode",value:""}}function Ir(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Si(){return{type:"emphasis",children:[]}}function Ei(){return{type:"heading",depth:0,children:[]}}function Ci(){return{type:"break"}}function Rr(){return{type:"html",value:""}}function jo(){return{type:"image",title:null,url:"",alt:null}}function Nr(){return{type:"link",title:null,url:"",children:[]}}function Tn(U){return{type:"list",ordered:U.type==="listOrdered",start:null,spread:U._spread,children:[]}}function Pn(U){return{type:"listItem",spread:U._spread,checked:null,children:[]}}function bi(){return{type:"paragraph",children:[]}}function Oo(){return{type:"strong",children:[]}}function Lo(){return{type:"text",value:""}}function Do(){return{type:"thematicBreak"}}}function Qn(e){return{line:e.line,column:e.column,offset:e.offset}}function xv(e,n){let r=-1;for(;++r<n.length;){const o=n[r];Array.isArray(o)?xv(e,o):jT(e,o)}}function jT(e,n){let r;for(r in n)if(vv.call(n,r))switch(r){case"canContainEols":{const o=n[r];o&&e[r].push(...o);break}case"transforms":{const o=n[r];o&&e[r].push(...o);break}case"enter":case"exit":{const o=n[r];o&&Object.assign(e[r],o);break}}}function Lm(e,n){throw e?new Error("Cannot close `"+e.type+"` ("+yo({start:e.start,end:e.end})+"): a different token (`"+n.type+"`, "+yo({start:n.start,end:n.end})+") is open"):new Error("Cannot close document, a token (`"+n.type+"`, "+yo({start:n.start,end:n.end})+") is still open")}function OT(e){const n=this;n.parser=r;function r(o){return NT(o,{...n.data("settings"),...e,extensions:n.data("micromarkExtensions")||[],mdastExtensions:n.data("fromMarkdownExtensions")||[]})}}function LT(e,n){const r={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(n),!0)};return e.patch(n,r),e.applyData(n,r)}function DT(e,n){const r={type:"element",tagName:"br",properties:{},children:[]};return e.patch(n,r),[e.applyData(n,r),{type:"text",value:`
174
+ `}]}function zT(e,n){const r=n.value?n.value+`
175
+ `:"",o={},l=n.lang?n.lang.split(/\s+/):[];l.length>0&&(o.className=["language-"+l[0]]);let a={type:"element",tagName:"code",properties:o,children:[{type:"text",value:r}]};return n.meta&&(a.data={meta:n.meta}),e.patch(n,a),a=e.applyData(n,a),a={type:"element",tagName:"pre",properties:{},children:[a]},e.patch(n,a),a}function MT(e,n){const r={type:"element",tagName:"del",properties:{},children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}function FT(e,n){const r={type:"element",tagName:"em",properties:{},children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}function BT(e,n){const r=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",o=String(n.identifier).toUpperCase(),l=ki(o.toLowerCase()),a=e.footnoteOrder.indexOf(o);let u,f=e.footnoteCounts.get(o);f===void 0?(f=0,e.footnoteOrder.push(o),u=e.footnoteOrder.length):u=a+1,f+=1,e.footnoteCounts.set(o,f);const d={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+l,id:r+"fnref-"+l+(f>1?"-"+f:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(u)}]};e.patch(n,d);const p={type:"element",tagName:"sup",properties:{},children:[d]};return e.patch(n,p),e.applyData(n,p)}function $T(e,n){const r={type:"element",tagName:"h"+n.depth,properties:{},children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}function UT(e,n){if(e.options.allowDangerousHtml){const r={type:"raw",value:n.value};return e.patch(n,r),e.applyData(n,r)}}function wv(e,n){const r=n.referenceType;let o="]";if(r==="collapsed"?o+="[]":r==="full"&&(o+="["+(n.label||n.identifier)+"]"),n.type==="imageReference")return[{type:"text",value:"!["+n.alt+o}];const l=e.all(n),a=l[0];a&&a.type==="text"?a.value="["+a.value:l.unshift({type:"text",value:"["});const u=l[l.length-1];return u&&u.type==="text"?u.value+=o:l.push({type:"text",value:o}),l}function VT(e,n){const r=String(n.identifier).toUpperCase(),o=e.definitionById.get(r);if(!o)return wv(e,n);const l={src:ki(o.url||""),alt:n.alt};o.title!==null&&o.title!==void 0&&(l.title=o.title);const a={type:"element",tagName:"img",properties:l,children:[]};return e.patch(n,a),e.applyData(n,a)}function WT(e,n){const r={src:ki(n.url)};n.alt!==null&&n.alt!==void 0&&(r.alt=n.alt),n.title!==null&&n.title!==void 0&&(r.title=n.title);const o={type:"element",tagName:"img",properties:r,children:[]};return e.patch(n,o),e.applyData(n,o)}function HT(e,n){const r={type:"text",value:n.value.replace(/\r?\n|\r/g," ")};e.patch(n,r);const o={type:"element",tagName:"code",properties:{},children:[r]};return e.patch(n,o),e.applyData(n,o)}function qT(e,n){const r=String(n.identifier).toUpperCase(),o=e.definitionById.get(r);if(!o)return wv(e,n);const l={href:ki(o.url||"")};o.title!==null&&o.title!==void 0&&(l.title=o.title);const a={type:"element",tagName:"a",properties:l,children:e.all(n)};return e.patch(n,a),e.applyData(n,a)}function GT(e,n){const r={href:ki(n.url)};n.title!==null&&n.title!==void 0&&(r.title=n.title);const o={type:"element",tagName:"a",properties:r,children:e.all(n)};return e.patch(n,o),e.applyData(n,o)}function KT(e,n,r){const o=e.all(n),l=r?YT(r):kv(n),a={},u=[];if(typeof n.checked=="boolean"){const g=o[0];let m;g&&g.type==="element"&&g.tagName==="p"?m=g:(m={type:"element",tagName:"p",properties:{},children:[]},o.unshift(m)),m.children.length>0&&m.children.unshift({type:"text",value:" "}),m.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:n.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let f=-1;for(;++f<o.length;){const g=o[f];(l||f!==0||g.type!=="element"||g.tagName!=="p")&&u.push({type:"text",value:`
176
+ `}),g.type==="element"&&g.tagName==="p"&&!l?u.push(...g.children):u.push(g)}const d=o[o.length-1];d&&(l||d.type!=="element"||d.tagName!=="p")&&u.push({type:"text",value:`
177
+ `});const p={type:"element",tagName:"li",properties:a,children:u};return e.patch(n,p),e.applyData(n,p)}function YT(e){let n=!1;if(e.type==="list"){n=e.spread||!1;const r=e.children;let o=-1;for(;!n&&++o<r.length;)n=kv(r[o])}return n}function kv(e){const n=e.spread;return n??e.children.length>1}function QT(e,n){const r={},o=e.all(n);let l=-1;for(typeof n.start=="number"&&n.start!==1&&(r.start=n.start);++l<o.length;){const u=o[l];if(u.type==="element"&&u.tagName==="li"&&u.properties&&Array.isArray(u.properties.className)&&u.properties.className.includes("task-list-item")){r.className=["contains-task-list"];break}}const a={type:"element",tagName:n.ordered?"ol":"ul",properties:r,children:e.wrap(o,!0)};return e.patch(n,a),e.applyData(n,a)}function XT(e,n){const r={type:"element",tagName:"p",properties:{},children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}function JT(e,n){const r={type:"root",children:e.wrap(e.all(n))};return e.patch(n,r),e.applyData(n,r)}function ZT(e,n){const r={type:"element",tagName:"strong",properties:{},children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}function eP(e,n){const r=e.all(n),o=r.shift(),l=[];if(o){const u={type:"element",tagName:"thead",properties:{},children:e.wrap([o],!0)};e.patch(n.children[0],u),l.push(u)}if(r.length>0){const u={type:"element",tagName:"tbody",properties:{},children:e.wrap(r,!0)},f=hf(n.children[1]),d=ev(n.children[n.children.length-1]);f&&d&&(u.position={start:f,end:d}),l.push(u)}const a={type:"element",tagName:"table",properties:{},children:e.wrap(l,!0)};return e.patch(n,a),e.applyData(n,a)}function tP(e,n,r){const o=r?r.children:void 0,a=(o?o.indexOf(n):1)===0?"th":"td",u=r&&r.type==="table"?r.align:void 0,f=u?u.length:n.children.length;let d=-1;const p=[];for(;++d<f;){const m=n.children[d],v={},x=u?u[d]:void 0;x&&(v.align=x);let k={type:"element",tagName:a,properties:v,children:[]};m&&(k.children=e.all(m),e.patch(m,k),k=e.applyData(m,k)),p.push(k)}const g={type:"element",tagName:"tr",properties:{},children:e.wrap(p,!0)};return e.patch(n,g),e.applyData(n,g)}function nP(e,n){const r={type:"element",tagName:"td",properties:{},children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}const Dm=9,zm=32;function rP(e){const n=String(e),r=/\r?\n|\r/g;let o=r.exec(n),l=0;const a=[];for(;o;)a.push(Mm(n.slice(l,o.index),l>0,!0),o[0]),l=o.index+o[0].length,o=r.exec(n);return a.push(Mm(n.slice(l),l>0,!1)),a.join("")}function Mm(e,n,r){let o=0,l=e.length;if(n){let a=e.codePointAt(o);for(;a===Dm||a===zm;)o++,a=e.codePointAt(o)}if(r){let a=e.codePointAt(l-1);for(;a===Dm||a===zm;)l--,a=e.codePointAt(l-1)}return l>o?e.slice(o,l):""}function iP(e,n){const r={type:"text",value:rP(String(n.value))};return e.patch(n,r),e.applyData(n,r)}function oP(e,n){const r={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(n,r),e.applyData(n,r)}const lP={blockquote:LT,break:DT,code:zT,delete:MT,emphasis:FT,footnoteReference:BT,heading:$T,html:UT,imageReference:VT,image:WT,inlineCode:HT,linkReference:qT,link:GT,listItem:KT,list:QT,paragraph:XT,root:JT,strong:ZT,table:eP,tableCell:nP,tableRow:tP,text:iP,thematicBreak:oP,toml:Ql,yaml:Ql,definition:Ql,footnoteDefinition:Ql};function Ql(){}const Sv=-1,Os=0,xo=1,ys=2,kf=3,Sf=4,Ef=5,Cf=6,Ev=7,Cv=8,Fm=typeof self=="object"?self:globalThis,sP=(e,n)=>{const r=(l,a)=>(e.set(a,l),l),o=l=>{if(e.has(l))return e.get(l);const[a,u]=n[l];switch(a){case Os:case Sv:return r(u,l);case xo:{const f=r([],l);for(const d of u)f.push(o(d));return f}case ys:{const f=r({},l);for(const[d,p]of u)f[o(d)]=o(p);return f}case kf:return r(new Date(u),l);case Sf:{const{source:f,flags:d}=u;return r(new RegExp(f,d),l)}case Ef:{const f=r(new Map,l);for(const[d,p]of u)f.set(o(d),o(p));return f}case Cf:{const f=r(new Set,l);for(const d of u)f.add(o(d));return f}case Ev:{const{name:f,message:d}=u;return r(new Fm[f](d),l)}case Cv:return r(BigInt(u),l);case"BigInt":return r(Object(BigInt(u)),l);case"ArrayBuffer":return r(new Uint8Array(u).buffer,u);case"DataView":{const{buffer:f}=new Uint8Array(u);return r(new DataView(f),u)}}return r(new Fm[a](u),l)};return o},Bm=e=>sP(new Map,e)(0),oi="",{toString:aP}={},{keys:uP}=Object,mo=e=>{const n=typeof e;if(n!=="object"||!e)return[Os,n];const r=aP.call(e).slice(8,-1);switch(r){case"Array":return[xo,oi];case"Object":return[ys,oi];case"Date":return[kf,oi];case"RegExp":return[Sf,oi];case"Map":return[Ef,oi];case"Set":return[Cf,oi];case"DataView":return[xo,r]}return r.includes("Array")?[xo,r]:r.includes("Error")?[Ev,r]:[ys,r]},Xl=([e,n])=>e===Os&&(n==="function"||n==="symbol"),cP=(e,n,r,o)=>{const l=(u,f)=>{const d=o.push(u)-1;return r.set(f,d),d},a=u=>{if(r.has(u))return r.get(u);let[f,d]=mo(u);switch(f){case Os:{let g=u;switch(d){case"bigint":f=Cv,g=u.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+d);g=null;break;case"undefined":return l([Sv],u)}return l([f,g],u)}case xo:{if(d){let v=u;return d==="DataView"?v=new Uint8Array(u.buffer):d==="ArrayBuffer"&&(v=new Uint8Array(u)),l([d,[...v]],u)}const g=[],m=l([f,g],u);for(const v of u)g.push(a(v));return m}case ys:{if(d)switch(d){case"BigInt":return l([d,u.toString()],u);case"Boolean":case"Number":case"String":return l([d,u.valueOf()],u)}if(n&&"toJSON"in u)return a(u.toJSON());const g=[],m=l([f,g],u);for(const v of uP(u))(e||!Xl(mo(u[v])))&&g.push([a(v),a(u[v])]);return m}case kf:return l([f,u.toISOString()],u);case Sf:{const{source:g,flags:m}=u;return l([f,{source:g,flags:m}],u)}case Ef:{const g=[],m=l([f,g],u);for(const[v,x]of u)(e||!(Xl(mo(v))||Xl(mo(x))))&&g.push([a(v),a(x)]);return m}case Cf:{const g=[],m=l([f,g],u);for(const v of u)(e||!Xl(mo(v)))&&g.push(a(v));return m}}const{message:p}=u;return l([f,{name:d,message:p}],u)};return a},$m=(e,{json:n,lossy:r}={})=>{const o=[];return cP(!(n||r),!!n,new Map,o)(e),o},vs=typeof structuredClone=="function"?(e,n)=>n&&("json"in n||"lossy"in n)?Bm($m(e,n)):structuredClone(e):(e,n)=>Bm($m(e,n));function fP(e,n){const r=[{type:"text",value:"↩"}];return n>1&&r.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(n)}]}),r}function dP(e,n){return"Back to reference "+(e+1)+(n>1?"-"+n:"")}function pP(e){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=e.options.footnoteBackContent||fP,o=e.options.footnoteBackLabel||dP,l=e.options.footnoteLabel||"Footnotes",a=e.options.footnoteLabelTagName||"h2",u=e.options.footnoteLabelProperties||{className:["sr-only"]},f=[];let d=-1;for(;++d<e.footnoteOrder.length;){const p=e.footnoteById.get(e.footnoteOrder[d]);if(!p)continue;const g=e.all(p),m=String(p.identifier).toUpperCase(),v=ki(m.toLowerCase());let x=0;const k=[],C=e.footnoteCounts.get(m);for(;C!==void 0&&++x<=C;){k.length>0&&k.push({type:"text",value:" "});let O=typeof r=="string"?r:r(d,x);typeof O=="string"&&(O={type:"text",value:O}),k.push({type:"element",tagName:"a",properties:{href:"#"+n+"fnref-"+v+(x>1?"-"+x:""),dataFootnoteBackref:"",ariaLabel:typeof o=="string"?o:o(d,x),className:["data-footnote-backref"]},children:Array.isArray(O)?O:[O]})}const E=g[g.length-1];if(E&&E.type==="element"&&E.tagName==="p"){const O=E.children[E.children.length-1];O&&O.type==="text"?O.value+=" ":E.children.push({type:"text",value:" "}),E.children.push(...k)}else g.push(...k);const I={type:"element",tagName:"li",properties:{id:n+"fn-"+v},children:e.wrap(g,!0)};e.patch(p,I),f.push(I)}if(f.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:{...vs(u),id:"footnote-label"},children:[{type:"text",value:l}]},{type:"text",value:`
178
+ `},{type:"element",tagName:"ol",properties:{},children:e.wrap(f,!0)},{type:"text",value:`
179
+ `}]}}const Ls=(function(e){if(e==null)return yP;if(typeof e=="function")return Ds(e);if(typeof e=="object")return Array.isArray(e)?hP(e):mP(e);if(typeof e=="string")return gP(e);throw new Error("Expected function, string, or object as test")});function hP(e){const n=[];let r=-1;for(;++r<e.length;)n[r]=Ls(e[r]);return Ds(o);function o(...l){let a=-1;for(;++a<n.length;)if(n[a].apply(this,l))return!0;return!1}}function mP(e){const n=e;return Ds(r);function r(o){const l=o;let a;for(a in e)if(l[a]!==n[a])return!1;return!0}}function gP(e){return Ds(n);function n(r){return r&&r.type===e}}function Ds(e){return n;function n(r,o,l){return!!(vP(r)&&e.call(this,r,typeof o=="number"?o:void 0,l||void 0))}}function yP(){return!0}function vP(e){return e!==null&&typeof e=="object"&&"type"in e}const bv=[],xP=!0,Nc=!1,wP="skip";function _v(e,n,r,o){let l;typeof n=="function"&&typeof r!="function"?(o=r,r=n):l=n;const a=Ls(l),u=o?-1:1;f(e,void 0,[])();function f(d,p,g){const m=d&&typeof d=="object"?d:{};if(typeof m.type=="string"){const x=typeof m.tagName=="string"?m.tagName:typeof m.name=="string"?m.name:void 0;Object.defineProperty(v,"name",{value:"node ("+(d.type+(x?"<"+x+">":""))+")"})}return v;function v(){let x=bv,k,C,E;if((!n||a(d,p,g[g.length-1]||void 0))&&(x=kP(r(d,g)),x[0]===Nc))return x;if("children"in d&&d.children){const I=d;if(I.children&&x[0]!==wP)for(C=(o?I.children.length:-1)+u,E=g.concat(I);C>-1&&C<I.children.length;){const O=I.children[C];if(k=f(O,C,E)(),k[0]===Nc)return k;C=typeof k[1]=="number"?k[1]:C+u}}return x}}}function kP(e){return Array.isArray(e)?e:typeof e=="number"?[xP,e]:e==null?bv:[e]}function bf(e,n,r,o){let l,a,u;typeof n=="function"&&typeof r!="function"?(a=void 0,u=n,l=r):(a=n,u=r,l=o),_v(e,a,f,l);function f(d,p){const g=p[p.length-1],m=g?g.children.indexOf(d):void 0;return u(d,m,g)}}const Ac={}.hasOwnProperty,SP={};function EP(e,n){const r=n||SP,o=new Map,l=new Map,a=new Map,u={...lP,...r.handlers},f={all:p,applyData:bP,definitionById:o,footnoteById:l,footnoteCounts:a,footnoteOrder:[],handlers:u,one:d,options:r,patch:CP,wrap:TP};return bf(e,function(g){if(g.type==="definition"||g.type==="footnoteDefinition"){const m=g.type==="definition"?o:l,v=String(g.identifier).toUpperCase();m.has(v)||m.set(v,g)}}),f;function d(g,m){const v=g.type,x=f.handlers[v];if(Ac.call(f.handlers,v)&&x)return x(f,g,m);if(f.options.passThrough&&f.options.passThrough.includes(v)){if("children"in g){const{children:C,...E}=g,I=vs(E);return I.children=f.all(g),I}return vs(g)}return(f.options.unknownHandler||_P)(f,g,m)}function p(g){const m=[];if("children"in g){const v=g.children;let x=-1;for(;++x<v.length;){const k=f.one(v[x],g);if(k){if(x&&v[x-1].type==="break"&&(!Array.isArray(k)&&k.type==="text"&&(k.value=Um(k.value)),!Array.isArray(k)&&k.type==="element")){const C=k.children[0];C&&C.type==="text"&&(C.value=Um(C.value))}Array.isArray(k)?m.push(...k):m.push(k)}}}return m}}function CP(e,n){e.position&&(n.position=db(e))}function bP(e,n){let r=n;if(e&&e.data){const o=e.data.hName,l=e.data.hChildren,a=e.data.hProperties;if(typeof o=="string")if(r.type==="element")r.tagName=o;else{const u="children"in r?r.children:[r];r={type:"element",tagName:o,properties:{},children:u}}r.type==="element"&&a&&Object.assign(r.properties,vs(a)),"children"in r&&r.children&&l!==null&&l!==void 0&&(r.children=l)}return r}function _P(e,n){const r=n.data||{},o="value"in n&&!(Ac.call(r,"hProperties")||Ac.call(r,"hChildren"))?{type:"text",value:n.value}:{type:"element",tagName:"div",properties:{},children:e.all(n)};return e.patch(n,o),e.applyData(n,o)}function TP(e,n){const r=[];let o=-1;for(n&&r.push({type:"text",value:`
180
+ `});++o<e.length;)o&&r.push({type:"text",value:`
181
+ `}),r.push(e[o]);return n&&e.length>0&&r.push({type:"text",value:`
182
+ `}),r}function Um(e){let n=0,r=e.charCodeAt(n);for(;r===9||r===32;)n++,r=e.charCodeAt(n);return e.slice(n)}function Vm(e,n){const r=EP(e,n),o=r.one(e,void 0),l=pP(r),a=Array.isArray(o)?{type:"root",children:o}:o||{type:"root",children:[]};return l&&a.children.push({type:"text",value:`
183
+ `},l),a}function PP(e,n){return e&&"run"in e?async function(r,o){const l=Vm(r,{file:o,...n});await e.run(l,o)}:function(r,o){return Vm(r,{file:o,...e||n})}}function Wm(e){if(e)throw e}var Yu,Hm;function IP(){if(Hm)return Yu;Hm=1;var e=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,l=function(p){return typeof Array.isArray=="function"?Array.isArray(p):n.call(p)==="[object Array]"},a=function(p){if(!p||n.call(p)!=="[object Object]")return!1;var g=e.call(p,"constructor"),m=p.constructor&&p.constructor.prototype&&e.call(p.constructor.prototype,"isPrototypeOf");if(p.constructor&&!g&&!m)return!1;var v;for(v in p);return typeof v>"u"||e.call(p,v)},u=function(p,g){r&&g.name==="__proto__"?r(p,g.name,{enumerable:!0,configurable:!0,value:g.newValue,writable:!0}):p[g.name]=g.newValue},f=function(p,g){if(g==="__proto__")if(e.call(p,g)){if(o)return o(p,g).value}else return;return p[g]};return Yu=function d(){var p,g,m,v,x,k,C=arguments[0],E=1,I=arguments.length,O=!1;for(typeof C=="boolean"&&(O=C,C=arguments[1]||{},E=2),(C==null||typeof C!="object"&&typeof C!="function")&&(C={});E<I;++E)if(p=arguments[E],p!=null)for(g in p)m=f(C,g),v=f(p,g),C!==v&&(O&&v&&(a(v)||(x=l(v)))?(x?(x=!1,k=m&&l(m)?m:[]):k=m&&a(m)?m:{},u(C,{name:g,newValue:d(O,k,v)})):typeof v<"u"&&u(C,{name:g,newValue:v}));return C},Yu}var RP=IP();const Qu=ws(RP);function jc(e){if(typeof e!="object"||e===null)return!1;const n=Object.getPrototypeOf(e);return(n===null||n===Object.prototype||Object.getPrototypeOf(n)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function NP(){const e=[],n={run:r,use:o};return n;function r(...l){let a=-1;const u=l.pop();if(typeof u!="function")throw new TypeError("Expected function as last argument, not "+u);f(null,...l);function f(d,...p){const g=e[++a];let m=-1;if(d){u(d);return}for(;++m<l.length;)(p[m]===null||p[m]===void 0)&&(p[m]=l[m]);l=p,g?AP(g,f)(...p):u(null,...p)}}function o(l){if(typeof l!="function")throw new TypeError("Expected `middelware` to be a function, not "+l);return e.push(l),n}}function AP(e,n){let r;return o;function o(...u){const f=e.length>u.length;let d;f&&u.push(l);try{d=e.apply(this,u)}catch(p){const g=p;if(f&&r)throw g;return l(g)}f||(d&&d.then&&typeof d.then=="function"?d.then(a,l):d instanceof Error?l(d):a(d))}function l(u,...f){r||(r=!0,n(u,...f))}function a(u){l(null,u)}}const sn={basename:jP,dirname:OP,extname:LP,join:DP,sep:"/"};function jP(e,n){if(n!==void 0&&typeof n!="string")throw new TypeError('"ext" argument must be a string');No(e);let r=0,o=-1,l=e.length,a;if(n===void 0||n.length===0||n.length>e.length){for(;l--;)if(e.codePointAt(l)===47){if(a){r=l+1;break}}else o<0&&(a=!0,o=l+1);return o<0?"":e.slice(r,o)}if(n===e)return"";let u=-1,f=n.length-1;for(;l--;)if(e.codePointAt(l)===47){if(a){r=l+1;break}}else u<0&&(a=!0,u=l+1),f>-1&&(e.codePointAt(l)===n.codePointAt(f--)?f<0&&(o=l):(f=-1,o=u));return r===o?o=u:o<0&&(o=e.length),e.slice(r,o)}function OP(e){if(No(e),e.length===0)return".";let n=-1,r=e.length,o;for(;--r;)if(e.codePointAt(r)===47){if(o){n=r;break}}else o||(o=!0);return n<0?e.codePointAt(0)===47?"/":".":n===1&&e.codePointAt(0)===47?"//":e.slice(0,n)}function LP(e){No(e);let n=e.length,r=-1,o=0,l=-1,a=0,u;for(;n--;){const f=e.codePointAt(n);if(f===47){if(u){o=n+1;break}continue}r<0&&(u=!0,r=n+1),f===46?l<0?l=n:a!==1&&(a=1):l>-1&&(a=-1)}return l<0||r<0||a===0||a===1&&l===r-1&&l===o+1?"":e.slice(l,r)}function DP(...e){let n=-1,r;for(;++n<e.length;)No(e[n]),e[n]&&(r=r===void 0?e[n]:r+"/"+e[n]);return r===void 0?".":zP(r)}function zP(e){No(e);const n=e.codePointAt(0)===47;let r=MP(e,!n);return r.length===0&&!n&&(r="."),r.length>0&&e.codePointAt(e.length-1)===47&&(r+="/"),n?"/"+r:r}function MP(e,n){let r="",o=0,l=-1,a=0,u=-1,f,d;for(;++u<=e.length;){if(u<e.length)f=e.codePointAt(u);else{if(f===47)break;f=47}if(f===47){if(!(l===u-1||a===1))if(l!==u-1&&a===2){if(r.length<2||o!==2||r.codePointAt(r.length-1)!==46||r.codePointAt(r.length-2)!==46){if(r.length>2){if(d=r.lastIndexOf("/"),d!==r.length-1){d<0?(r="",o=0):(r=r.slice(0,d),o=r.length-1-r.lastIndexOf("/")),l=u,a=0;continue}}else if(r.length>0){r="",o=0,l=u,a=0;continue}}n&&(r=r.length>0?r+"/..":"..",o=2)}else r.length>0?r+="/"+e.slice(l+1,u):r=e.slice(l+1,u),o=u-l-1;l=u,a=0}else f===46&&a>-1?a++:a=-1}return r}function No(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const FP={cwd:BP};function BP(){return"/"}function Oc(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function $P(e){if(typeof e=="string")e=new URL(e);else if(!Oc(e)){const n=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw n.code="ERR_INVALID_ARG_TYPE",n}if(e.protocol!=="file:"){const n=new TypeError("The URL must be of scheme file");throw n.code="ERR_INVALID_URL_SCHEME",n}return UP(e)}function UP(e){if(e.hostname!==""){const o=new TypeError('File URL host must be "localhost" or empty on darwin');throw o.code="ERR_INVALID_FILE_URL_HOST",o}const n=e.pathname;let r=-1;for(;++r<n.length;)if(n.codePointAt(r)===37&&n.codePointAt(r+1)===50){const o=n.codePointAt(r+2);if(o===70||o===102){const l=new TypeError("File URL path must not include encoded / characters");throw l.code="ERR_INVALID_FILE_URL_PATH",l}}return decodeURIComponent(n)}const Xu=["history","path","basename","stem","extname","dirname"];class Tv{constructor(n){let r;n?Oc(n)?r={path:n}:typeof n=="string"||VP(n)?r={value:n}:r=n:r={},this.cwd="cwd"in r?"":FP.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let o=-1;for(;++o<Xu.length;){const a=Xu[o];a in r&&r[a]!==void 0&&r[a]!==null&&(this[a]=a==="history"?[...r[a]]:r[a])}let l;for(l in r)Xu.includes(l)||(this[l]=r[l])}get basename(){return typeof this.path=="string"?sn.basename(this.path):void 0}set basename(n){Zu(n,"basename"),Ju(n,"basename"),this.path=sn.join(this.dirname||"",n)}get dirname(){return typeof this.path=="string"?sn.dirname(this.path):void 0}set dirname(n){qm(this.basename,"dirname"),this.path=sn.join(n||"",this.basename)}get extname(){return typeof this.path=="string"?sn.extname(this.path):void 0}set extname(n){if(Ju(n,"extname"),qm(this.dirname,"extname"),n){if(n.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(n.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=sn.join(this.dirname,this.stem+(n||""))}get path(){return this.history[this.history.length-1]}set path(n){Oc(n)&&(n=$P(n)),Zu(n,"path"),this.path!==n&&this.history.push(n)}get stem(){return typeof this.path=="string"?sn.basename(this.path,this.extname):void 0}set stem(n){Zu(n,"stem"),Ju(n,"stem"),this.path=sn.join(this.dirname||"",n+(this.extname||""))}fail(n,r,o){const l=this.message(n,r,o);throw l.fatal=!0,l}info(n,r,o){const l=this.message(n,r,o);return l.fatal=void 0,l}message(n,r,o){const l=new gt(n,r,o);return this.path&&(l.name=this.path+":"+l.name,l.file=this.path),l.fatal=!1,this.messages.push(l),l}toString(n){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(n||void 0).decode(this.value)}}function Ju(e,n){if(e&&e.includes(sn.sep))throw new Error("`"+n+"` cannot be a path: did not expect `"+sn.sep+"`")}function Zu(e,n){if(!e)throw new Error("`"+n+"` cannot be empty")}function qm(e,n){if(!e)throw new Error("Setting `"+n+"` requires `path` to be set too")}function VP(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const WP=(function(e){const o=this.constructor.prototype,l=o[e],a=function(){return l.apply(a,arguments)};return Object.setPrototypeOf(a,o),a}),HP={}.hasOwnProperty;class _f extends WP{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=NP()}copy(){const n=new _f;let r=-1;for(;++r<this.attachers.length;){const o=this.attachers[r];n.use(...o)}return n.data(Qu(!0,{},this.namespace)),n}data(n,r){return typeof n=="string"?arguments.length===2?(nc("data",this.frozen),this.namespace[n]=r,this):HP.call(this.namespace,n)&&this.namespace[n]||void 0:n?(nc("data",this.frozen),this.namespace=n,this):this.namespace}freeze(){if(this.frozen)return this;const n=this;for(;++this.freezeIndex<this.attachers.length;){const[r,...o]=this.attachers[this.freezeIndex];if(o[0]===!1)continue;o[0]===!0&&(o[0]=void 0);const l=r.call(n,...o);typeof l=="function"&&this.transformers.use(l)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(n){this.freeze();const r=Jl(n),o=this.parser||this.Parser;return ec("parse",o),o(String(r),r)}process(n,r){const o=this;return this.freeze(),ec("process",this.parser||this.Parser),tc("process",this.compiler||this.Compiler),r?l(void 0,r):new Promise(l);function l(a,u){const f=Jl(n),d=o.parse(f);o.run(d,f,function(g,m,v){if(g||!m||!v)return p(g);const x=m,k=o.stringify(x,v);KP(k)?v.value=k:v.result=k,p(g,v)});function p(g,m){g||!m?u(g):a?a(m):r(void 0,m)}}}processSync(n){let r=!1,o;return this.freeze(),ec("processSync",this.parser||this.Parser),tc("processSync",this.compiler||this.Compiler),this.process(n,l),Km("processSync","process",r),o;function l(a,u){r=!0,Wm(a),o=u}}run(n,r,o){Gm(n),this.freeze();const l=this.transformers;return!o&&typeof r=="function"&&(o=r,r=void 0),o?a(void 0,o):new Promise(a);function a(u,f){const d=Jl(r);l.run(n,d,p);function p(g,m,v){const x=m||n;g?f(g):u?u(x):o(void 0,x,v)}}}runSync(n,r){let o=!1,l;return this.run(n,r,a),Km("runSync","run",o),l;function a(u,f){Wm(u),l=f,o=!0}}stringify(n,r){this.freeze();const o=Jl(r),l=this.compiler||this.Compiler;return tc("stringify",l),Gm(n),l(n,o)}use(n,...r){const o=this.attachers,l=this.namespace;if(nc("use",this.frozen),n!=null)if(typeof n=="function")d(n,r);else if(typeof n=="object")Array.isArray(n)?f(n):u(n);else throw new TypeError("Expected usable value, not `"+n+"`");return this;function a(p){if(typeof p=="function")d(p,[]);else if(typeof p=="object")if(Array.isArray(p)){const[g,...m]=p;d(g,m)}else u(p);else throw new TypeError("Expected usable value, not `"+p+"`")}function u(p){if(!("plugins"in p)&&!("settings"in p))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");f(p.plugins),p.settings&&(l.settings=Qu(!0,l.settings,p.settings))}function f(p){let g=-1;if(p!=null)if(Array.isArray(p))for(;++g<p.length;){const m=p[g];a(m)}else throw new TypeError("Expected a list of plugins, not `"+p+"`")}function d(p,g){let m=-1,v=-1;for(;++m<o.length;)if(o[m][0]===p){v=m;break}if(v===-1)o.push([p,...g]);else if(g.length>0){let[x,...k]=g;const C=o[v][1];jc(C)&&jc(x)&&(x=Qu(!0,C,x)),o[v]=[p,x,...k]}}}}const qP=new _f().freeze();function ec(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function tc(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function nc(e,n){if(n)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Gm(e){if(!jc(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Km(e,n,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+n+"` instead")}function Jl(e){return GP(e)?e:new Tv(e)}function GP(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function KP(e){return typeof e=="string"||YP(e)}function YP(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const QP="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Ym=[],Qm={allowDangerousHtml:!0},XP=/^(https?|ircs?|mailto|xmpp)$/i,JP=[{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 ZP(e){const n=eI(e),r=tI(e);return nI(n.runSync(n.parse(r),r),e)}function eI(e){const n=e.rehypePlugins||Ym,r=e.remarkPlugins||Ym,o=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Qm}:Qm;return qP().use(OT).use(r).use(PP,o).use(n)}function tI(e){const n=e.children||"",r=new Tv;return typeof n=="string"&&(r.value=n),r}function nI(e,n){const r=n.allowedElements,o=n.allowElement,l=n.components,a=n.disallowedElements,u=n.skipHtml,f=n.unwrapDisallowed,d=n.urlTransform||rI;for(const g of JP)Object.hasOwn(n,g.from)&&(""+g.from+(g.to?"use `"+g.to+"` instead":"remove it")+QP+g.id,void 0);return bf(e,p),yb(e,{Fragment:S.Fragment,components:l,ignoreInvalidStyle:!0,jsx:S.jsx,jsxs:S.jsxs,passKeys:!0,passNode:!0});function p(g,m,v){if(g.type==="raw"&&v&&typeof m=="number")return u?v.children.splice(m,1):v.children[m]={type:"text",value:g.value},m;if(g.type==="element"){let x;for(x in qu)if(Object.hasOwn(qu,x)&&Object.hasOwn(g.properties,x)){const k=g.properties[x],C=qu[x];(C===null||C.includes(g.tagName))&&(g.properties[x]=d(String(k||""),x,g))}}if(g.type==="element"){let x=r?!r.includes(g.tagName):a?a.includes(g.tagName):!1;if(!x&&o&&typeof m=="number"&&(x=!o(g,m,v)),x&&v&&typeof m=="number")return f&&g.children?v.children.splice(m,1,...g.children):v.children.splice(m,1),m}}}function rI(e){const n=e.indexOf(":"),r=e.indexOf("?"),o=e.indexOf("#"),l=e.indexOf("/");return n===-1||l!==-1&&n>l||r!==-1&&n>r||o!==-1&&n>o||XP.test(e.slice(0,n))?e:""}function Xm(e,n){const r=String(e);if(typeof n!="string")throw new TypeError("Expected character");let o=0,l=r.indexOf(n);for(;l!==-1;)o++,l=r.indexOf(n,l+n.length);return o}function iI(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function oI(e,n,r){const l=Ls((r||{}).ignore||[]),a=lI(n);let u=-1;for(;++u<a.length;)_v(e,"text",f);function f(p,g){let m=-1,v;for(;++m<g.length;){const x=g[m],k=v?v.children:void 0;if(l(x,k?k.indexOf(x):void 0,v))return;v=x}if(v)return d(p,g)}function d(p,g){const m=g[g.length-1],v=a[u][0],x=a[u][1];let k=0;const E=m.children.indexOf(p);let I=!1,O=[];v.lastIndex=0;let N=v.exec(p.value);for(;N;){const $=N.index,Y={index:N.index,input:N.input,stack:[...g,p]};let L=x(...N,Y);if(typeof L=="string"&&(L=L.length>0?{type:"text",value:L}:void 0),L===!1?v.lastIndex=$+1:(k!==$&&O.push({type:"text",value:p.value.slice(k,$)}),Array.isArray(L)?O.push(...L):L&&O.push(L),k=$+N[0].length,I=!0),!v.global)break;N=v.exec(p.value)}return I?(k<p.value.length&&O.push({type:"text",value:p.value.slice(k)}),m.children.splice(E,1,...O)):O=[p],E+O.length}}function lI(e){const n=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const r=!e[0]||Array.isArray(e[0])?e:[e];let o=-1;for(;++o<r.length;){const l=r[o];n.push([sI(l[0]),aI(l[1])])}return n}function sI(e){return typeof e=="string"?new RegExp(iI(e),"g"):e}function aI(e){return typeof e=="function"?e:function(){return e}}const rc="phrasing",ic=["autolink","link","image","label"];function uI(){return{transforms:[gI],enter:{literalAutolink:fI,literalAutolinkEmail:oc,literalAutolinkHttp:oc,literalAutolinkWww:oc},exit:{literalAutolink:mI,literalAutolinkEmail:hI,literalAutolinkHttp:dI,literalAutolinkWww:pI}}}function cI(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:rc,notInConstruct:ic},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:rc,notInConstruct:ic},{character:":",before:"[ps]",after:"\\/",inConstruct:rc,notInConstruct:ic}]}}function fI(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function oc(e){this.config.enter.autolinkProtocol.call(this,e)}function dI(e){this.config.exit.autolinkProtocol.call(this,e)}function pI(e){this.config.exit.data.call(this,e);const n=this.stack[this.stack.length-1];n.type,n.url="http://"+this.sliceSerialize(e)}function hI(e){this.config.exit.autolinkEmail.call(this,e)}function mI(e){this.exit(e)}function gI(e){oI(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,yI],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),vI]],{ignore:["link","linkReference"]})}function yI(e,n,r,o,l){let a="";if(!Pv(l)||(/^w/i.test(n)&&(r=n+r,n="",a="http://"),!xI(r)))return!1;const u=wI(r+o);if(!u[0])return!1;const f={type:"link",title:null,url:a+n+u[0],children:[{type:"text",value:n+u[0]}]};return u[1]?[f,{type:"text",value:u[1]}]:f}function vI(e,n,r,o){return!Pv(o,!0)||/[-\d_]$/.test(r)?!1:{type:"link",title:null,url:"mailto:"+n+"@"+r,children:[{type:"text",value:n+"@"+r}]}}function xI(e){const n=e.split(".");return!(n.length<2||n[n.length-1]&&(/_/.test(n[n.length-1])||!/[a-zA-Z\d]/.test(n[n.length-1]))||n[n.length-2]&&(/_/.test(n[n.length-2])||!/[a-zA-Z\d]/.test(n[n.length-2])))}function wI(e){const n=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!n)return[e,void 0];e=e.slice(0,n.index);let r=n[0],o=r.indexOf(")");const l=Xm(e,"(");let a=Xm(e,")");for(;o!==-1&&l>a;)e+=r.slice(0,o+1),r=r.slice(o+1),o=r.indexOf(")"),a++;return[e,r]}function Pv(e,n){const r=e.input.charCodeAt(e.index-1);return(e.index===0||_r(r)||As(r))&&(!n||r!==47)}Iv.peek=II;function kI(){this.buffer()}function SI(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function EI(){this.buffer()}function CI(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function bI(e){const n=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=Jt(this.sliceSerialize(e)).toLowerCase(),r.label=n}function _I(e){this.exit(e)}function TI(e){const n=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=Jt(this.sliceSerialize(e)).toLowerCase(),r.label=n}function PI(e){this.exit(e)}function II(){return"["}function Iv(e,n,r,o){const l=r.createTracker(o);let a=l.move("[^");const u=r.enter("footnoteReference"),f=r.enter("reference");return a+=l.move(r.safe(r.associationId(e),{after:"]",before:a})),f(),u(),a+=l.move("]"),a}function RI(){return{enter:{gfmFootnoteCallString:kI,gfmFootnoteCall:SI,gfmFootnoteDefinitionLabelString:EI,gfmFootnoteDefinition:CI},exit:{gfmFootnoteCallString:bI,gfmFootnoteCall:_I,gfmFootnoteDefinitionLabelString:TI,gfmFootnoteDefinition:PI}}}function NI(e){let n=!1;return e&&e.firstLineBlank&&(n=!0),{handlers:{footnoteDefinition:r,footnoteReference:Iv},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function r(o,l,a,u){const f=a.createTracker(u);let d=f.move("[^");const p=a.enter("footnoteDefinition"),g=a.enter("label");return d+=f.move(a.safe(a.associationId(o),{before:d,after:"]"})),g(),d+=f.move("]:"),o.children&&o.children.length>0&&(f.shift(4),d+=f.move((n?`
184
+ `:" ")+a.indentLines(a.containerFlow(o,f.current()),n?Rv:AI))),p(),d}}function AI(e,n,r){return n===0?e:Rv(e,n,r)}function Rv(e,n,r){return(r?"":" ")+e}const jI=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];Nv.peek=MI;function OI(){return{canContainEols:["delete"],enter:{strikethrough:DI},exit:{strikethrough:zI}}}function LI(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:jI}],handlers:{delete:Nv}}}function DI(e){this.enter({type:"delete",children:[]},e)}function zI(e){this.exit(e)}function Nv(e,n,r,o){const l=r.createTracker(o),a=r.enter("strikethrough");let u=l.move("~~");return u+=r.containerPhrasing(e,{...l.current(),before:u,after:"~"}),u+=l.move("~~"),a(),u}function MI(){return"~"}function FI(e){return e.length}function BI(e,n){const r=n||{},o=(r.align||[]).concat(),l=r.stringLength||FI,a=[],u=[],f=[],d=[];let p=0,g=-1;for(;++g<e.length;){const C=[],E=[];let I=-1;for(e[g].length>p&&(p=e[g].length);++I<e[g].length;){const O=$I(e[g][I]);if(r.alignDelimiters!==!1){const N=l(O);E[I]=N,(d[I]===void 0||N>d[I])&&(d[I]=N)}C.push(O)}u[g]=C,f[g]=E}let m=-1;if(typeof o=="object"&&"length"in o)for(;++m<p;)a[m]=Jm(o[m]);else{const C=Jm(o);for(;++m<p;)a[m]=C}m=-1;const v=[],x=[];for(;++m<p;){const C=a[m];let E="",I="";C===99?(E=":",I=":"):C===108?E=":":C===114&&(I=":");let O=r.alignDelimiters===!1?1:Math.max(1,d[m]-E.length-I.length);const N=E+"-".repeat(O)+I;r.alignDelimiters!==!1&&(O=E.length+O+I.length,O>d[m]&&(d[m]=O),x[m]=O),v[m]=N}u.splice(1,0,v),f.splice(1,0,x),g=-1;const k=[];for(;++g<u.length;){const C=u[g],E=f[g];m=-1;const I=[];for(;++m<p;){const O=C[m]||"";let N="",$="";if(r.alignDelimiters!==!1){const Y=d[m]-(E[m]||0),L=a[m];L===114?N=" ".repeat(Y):L===99?Y%2?(N=" ".repeat(Y/2+.5),$=" ".repeat(Y/2-.5)):(N=" ".repeat(Y/2),$=N):$=" ".repeat(Y)}r.delimiterStart!==!1&&!m&&I.push("|"),r.padding!==!1&&!(r.alignDelimiters===!1&&O==="")&&(r.delimiterStart!==!1||m)&&I.push(" "),r.alignDelimiters!==!1&&I.push(N),I.push(O),r.alignDelimiters!==!1&&I.push($),r.padding!==!1&&I.push(" "),(r.delimiterEnd!==!1||m!==p-1)&&I.push("|")}k.push(r.delimiterEnd===!1?I.join("").replace(/ +$/,""):I.join(""))}return k.join(`
185
+ `)}function $I(e){return e==null?"":String(e)}function Jm(e){const n=typeof e=="string"?e.codePointAt(0):0;return n===67||n===99?99:n===76||n===108?108:n===82||n===114?114:0}function UI(e,n,r,o){const l=r.enter("blockquote"),a=r.createTracker(o);a.move("> "),a.shift(2);const u=r.indentLines(r.containerFlow(e,a.current()),VI);return l(),u}function VI(e,n,r){return">"+(r?"":" ")+e}function WI(e,n){return Zm(e,n.inConstruct,!0)&&!Zm(e,n.notInConstruct,!1)}function Zm(e,n,r){if(typeof n=="string"&&(n=[n]),!n||n.length===0)return r;let o=-1;for(;++o<n.length;)if(e.includes(n[o]))return!0;return!1}function eg(e,n,r,o){let l=-1;for(;++l<r.unsafe.length;)if(r.unsafe[l].character===`
186
+ `&&WI(r.stack,r.unsafe[l]))return/[ \t]/.test(o.before)?"":" ";return`\\
187
+ `}function HI(e,n){const r=String(e);let o=r.indexOf(n),l=o,a=0,u=0;if(typeof n!="string")throw new TypeError("Expected substring");for(;o!==-1;)o===l?++a>u&&(u=a):a=1,l=o+n.length,o=r.indexOf(n,l);return u}function qI(e,n){return!!(n.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function GI(e){const n=e.options.fence||"`";if(n!=="`"&&n!=="~")throw new Error("Cannot serialize code with `"+n+"` for `options.fence`, expected `` ` `` or `~`");return n}function KI(e,n,r,o){const l=GI(r),a=e.value||"",u=l==="`"?"GraveAccent":"Tilde";if(qI(e,r)){const m=r.enter("codeIndented"),v=r.indentLines(a,YI);return m(),v}const f=r.createTracker(o),d=l.repeat(Math.max(HI(a,l)+1,3)),p=r.enter("codeFenced");let g=f.move(d);if(e.lang){const m=r.enter(`codeFencedLang${u}`);g+=f.move(r.safe(e.lang,{before:g,after:" ",encode:["`"],...f.current()})),m()}if(e.lang&&e.meta){const m=r.enter(`codeFencedMeta${u}`);g+=f.move(" "),g+=f.move(r.safe(e.meta,{before:g,after:`
188
+ `,encode:["`"],...f.current()})),m()}return g+=f.move(`
189
+ `),a&&(g+=f.move(a+`
190
+ `)),g+=f.move(d),p(),g}function YI(e,n,r){return(r?"":" ")+e}function Tf(e){const n=e.options.quote||'"';if(n!=='"'&&n!=="'")throw new Error("Cannot serialize title with `"+n+"` for `options.quote`, expected `\"`, or `'`");return n}function QI(e,n,r,o){const l=Tf(r),a=l==='"'?"Quote":"Apostrophe",u=r.enter("definition");let f=r.enter("label");const d=r.createTracker(o);let p=d.move("[");return p+=d.move(r.safe(r.associationId(e),{before:p,after:"]",...d.current()})),p+=d.move("]: "),f(),!e.url||/[\0- \u007F]/.test(e.url)?(f=r.enter("destinationLiteral"),p+=d.move("<"),p+=d.move(r.safe(e.url,{before:p,after:">",...d.current()})),p+=d.move(">")):(f=r.enter("destinationRaw"),p+=d.move(r.safe(e.url,{before:p,after:e.title?" ":`
191
+ `,...d.current()}))),f(),e.title&&(f=r.enter(`title${a}`),p+=d.move(" "+l),p+=d.move(r.safe(e.title,{before:p,after:l,...d.current()})),p+=d.move(l),f()),u(),p}function XI(e){const n=e.options.emphasis||"*";if(n!=="*"&&n!=="_")throw new Error("Cannot serialize emphasis with `"+n+"` for `options.emphasis`, expected `*`, or `_`");return n}function Eo(e){return"&#x"+e.toString(16).toUpperCase()+";"}function xs(e,n,r){const o=mi(e),l=mi(n);return o===void 0?l===void 0?r==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:l===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:o===1?l===void 0?{inside:!1,outside:!1}:l===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:l===void 0?{inside:!1,outside:!1}:l===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}Av.peek=JI;function Av(e,n,r,o){const l=XI(r),a=r.enter("emphasis"),u=r.createTracker(o),f=u.move(l);let d=u.move(r.containerPhrasing(e,{after:l,before:f,...u.current()}));const p=d.charCodeAt(0),g=xs(o.before.charCodeAt(o.before.length-1),p,l);g.inside&&(d=Eo(p)+d.slice(1));const m=d.charCodeAt(d.length-1),v=xs(o.after.charCodeAt(0),m,l);v.inside&&(d=d.slice(0,-1)+Eo(m));const x=u.move(l);return a(),r.attentionEncodeSurroundingInfo={after:v.outside,before:g.outside},f+d+x}function JI(e,n,r){return r.options.emphasis||"*"}function ZI(e,n){let r=!1;return bf(e,function(o){if("value"in o&&/\r?\n|\r/.test(o.value)||o.type==="break")return r=!0,Nc}),!!((!e.depth||e.depth<3)&&vf(e)&&(n.options.setext||r))}function eR(e,n,r,o){const l=Math.max(Math.min(6,e.depth||1),1),a=r.createTracker(o);if(ZI(e,r)){const g=r.enter("headingSetext"),m=r.enter("phrasing"),v=r.containerPhrasing(e,{...a.current(),before:`
192
+ `,after:`
193
+ `});return m(),g(),v+`
194
+ `+(l===1?"=":"-").repeat(v.length-(Math.max(v.lastIndexOf("\r"),v.lastIndexOf(`
195
+ `))+1))}const u="#".repeat(l),f=r.enter("headingAtx"),d=r.enter("phrasing");a.move(u+" ");let p=r.containerPhrasing(e,{before:"# ",after:`
196
+ `,...a.current()});return/^[\t ]/.test(p)&&(p=Eo(p.charCodeAt(0))+p.slice(1)),p=p?u+" "+p:u,r.options.closeAtx&&(p+=" "+u),d(),f(),p}jv.peek=tR;function jv(e){return e.value||""}function tR(){return"<"}Ov.peek=nR;function Ov(e,n,r,o){const l=Tf(r),a=l==='"'?"Quote":"Apostrophe",u=r.enter("image");let f=r.enter("label");const d=r.createTracker(o);let p=d.move("![");return p+=d.move(r.safe(e.alt,{before:p,after:"]",...d.current()})),p+=d.move("]("),f(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(f=r.enter("destinationLiteral"),p+=d.move("<"),p+=d.move(r.safe(e.url,{before:p,after:">",...d.current()})),p+=d.move(">")):(f=r.enter("destinationRaw"),p+=d.move(r.safe(e.url,{before:p,after:e.title?" ":")",...d.current()}))),f(),e.title&&(f=r.enter(`title${a}`),p+=d.move(" "+l),p+=d.move(r.safe(e.title,{before:p,after:l,...d.current()})),p+=d.move(l),f()),p+=d.move(")"),u(),p}function nR(){return"!"}Lv.peek=rR;function Lv(e,n,r,o){const l=e.referenceType,a=r.enter("imageReference");let u=r.enter("label");const f=r.createTracker(o);let d=f.move("![");const p=r.safe(e.alt,{before:d,after:"]",...f.current()});d+=f.move(p+"]["),u();const g=r.stack;r.stack=[],u=r.enter("reference");const m=r.safe(r.associationId(e),{before:d,after:"]",...f.current()});return u(),r.stack=g,a(),l==="full"||!p||p!==m?d+=f.move(m+"]"):l==="shortcut"?d=d.slice(0,-1):d+=f.move("]"),d}function rR(){return"!"}Dv.peek=iR;function Dv(e,n,r){let o=e.value||"",l="`",a=-1;for(;new RegExp("(^|[^`])"+l+"([^`]|$)").test(o);)l+="`";for(/[^ \r\n]/.test(o)&&(/^[ \r\n]/.test(o)&&/[ \r\n]$/.test(o)||/^`|`$/.test(o))&&(o=" "+o+" ");++a<r.unsafe.length;){const u=r.unsafe[a],f=r.compilePattern(u);let d;if(u.atBreak)for(;d=f.exec(o);){let p=d.index;o.charCodeAt(p)===10&&o.charCodeAt(p-1)===13&&p--,o=o.slice(0,p)+" "+o.slice(d.index+1)}}return l+o+l}function iR(){return"`"}function zv(e,n){const r=vf(e);return!!(!n.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(r===e.url||"mailto:"+r===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}Mv.peek=oR;function Mv(e,n,r,o){const l=Tf(r),a=l==='"'?"Quote":"Apostrophe",u=r.createTracker(o);let f,d;if(zv(e,r)){const g=r.stack;r.stack=[],f=r.enter("autolink");let m=u.move("<");return m+=u.move(r.containerPhrasing(e,{before:m,after:">",...u.current()})),m+=u.move(">"),f(),r.stack=g,m}f=r.enter("link"),d=r.enter("label");let p=u.move("[");return p+=u.move(r.containerPhrasing(e,{before:p,after:"](",...u.current()})),p+=u.move("]("),d(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(d=r.enter("destinationLiteral"),p+=u.move("<"),p+=u.move(r.safe(e.url,{before:p,after:">",...u.current()})),p+=u.move(">")):(d=r.enter("destinationRaw"),p+=u.move(r.safe(e.url,{before:p,after:e.title?" ":")",...u.current()}))),d(),e.title&&(d=r.enter(`title${a}`),p+=u.move(" "+l),p+=u.move(r.safe(e.title,{before:p,after:l,...u.current()})),p+=u.move(l),d()),p+=u.move(")"),f(),p}function oR(e,n,r){return zv(e,r)?"<":"["}Fv.peek=lR;function Fv(e,n,r,o){const l=e.referenceType,a=r.enter("linkReference");let u=r.enter("label");const f=r.createTracker(o);let d=f.move("[");const p=r.containerPhrasing(e,{before:d,after:"]",...f.current()});d+=f.move(p+"]["),u();const g=r.stack;r.stack=[],u=r.enter("reference");const m=r.safe(r.associationId(e),{before:d,after:"]",...f.current()});return u(),r.stack=g,a(),l==="full"||!p||p!==m?d+=f.move(m+"]"):l==="shortcut"?d=d.slice(0,-1):d+=f.move("]"),d}function lR(){return"["}function Pf(e){const n=e.options.bullet||"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bullet`, expected `*`, `+`, or `-`");return n}function sR(e){const n=Pf(e),r=e.options.bulletOther;if(!r)return n==="*"?"-":"*";if(r!=="*"&&r!=="+"&&r!=="-")throw new Error("Cannot serialize items with `"+r+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(r===n)throw new Error("Expected `bullet` (`"+n+"`) and `bulletOther` (`"+r+"`) to be different");return r}function aR(e){const n=e.options.bulletOrdered||".";if(n!=="."&&n!==")")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOrdered`, expected `.` or `)`");return n}function Bv(e){const n=e.options.rule||"*";if(n!=="*"&&n!=="-"&&n!=="_")throw new Error("Cannot serialize rules with `"+n+"` for `options.rule`, expected `*`, `-`, or `_`");return n}function uR(e,n,r,o){const l=r.enter("list"),a=r.bulletCurrent;let u=e.ordered?aR(r):Pf(r);const f=e.ordered?u==="."?")":".":sR(r);let d=n&&r.bulletLastUsed?u===r.bulletLastUsed:!1;if(!e.ordered){const g=e.children?e.children[0]:void 0;if((u==="*"||u==="-")&&g&&(!g.children||!g.children[0])&&r.stack[r.stack.length-1]==="list"&&r.stack[r.stack.length-2]==="listItem"&&r.stack[r.stack.length-3]==="list"&&r.stack[r.stack.length-4]==="listItem"&&r.indexStack[r.indexStack.length-1]===0&&r.indexStack[r.indexStack.length-2]===0&&r.indexStack[r.indexStack.length-3]===0&&(d=!0),Bv(r)===u&&g){let m=-1;for(;++m<e.children.length;){const v=e.children[m];if(v&&v.type==="listItem"&&v.children&&v.children[0]&&v.children[0].type==="thematicBreak"){d=!0;break}}}}d&&(u=f),r.bulletCurrent=u;const p=r.containerFlow(e,o);return r.bulletLastUsed=u,r.bulletCurrent=a,l(),p}function cR(e){const n=e.options.listItemIndent||"one";if(n!=="tab"&&n!=="one"&&n!=="mixed")throw new Error("Cannot serialize items with `"+n+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return n}function fR(e,n,r,o){const l=cR(r);let a=r.bulletCurrent||Pf(r);n&&n.type==="list"&&n.ordered&&(a=(typeof n.start=="number"&&n.start>-1?n.start:1)+(r.options.incrementListMarker===!1?0:n.children.indexOf(e))+a);let u=a.length+1;(l==="tab"||l==="mixed"&&(n&&n.type==="list"&&n.spread||e.spread))&&(u=Math.ceil(u/4)*4);const f=r.createTracker(o);f.move(a+" ".repeat(u-a.length)),f.shift(u);const d=r.enter("listItem"),p=r.indentLines(r.containerFlow(e,f.current()),g);return d(),p;function g(m,v,x){return v?(x?"":" ".repeat(u))+m:(x?a:a+" ".repeat(u-a.length))+m}}function dR(e,n,r,o){const l=r.enter("paragraph"),a=r.enter("phrasing"),u=r.containerPhrasing(e,o);return a(),l(),u}const pR=Ls(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function hR(e,n,r,o){return(e.children.some(function(u){return pR(u)})?r.containerPhrasing:r.containerFlow).call(r,e,o)}function mR(e){const n=e.options.strong||"*";if(n!=="*"&&n!=="_")throw new Error("Cannot serialize strong with `"+n+"` for `options.strong`, expected `*`, or `_`");return n}$v.peek=gR;function $v(e,n,r,o){const l=mR(r),a=r.enter("strong"),u=r.createTracker(o),f=u.move(l+l);let d=u.move(r.containerPhrasing(e,{after:l,before:f,...u.current()}));const p=d.charCodeAt(0),g=xs(o.before.charCodeAt(o.before.length-1),p,l);g.inside&&(d=Eo(p)+d.slice(1));const m=d.charCodeAt(d.length-1),v=xs(o.after.charCodeAt(0),m,l);v.inside&&(d=d.slice(0,-1)+Eo(m));const x=u.move(l+l);return a(),r.attentionEncodeSurroundingInfo={after:v.outside,before:g.outside},f+d+x}function gR(e,n,r){return r.options.strong||"*"}function yR(e,n,r,o){return r.safe(e.value,o)}function vR(e){const n=e.options.ruleRepetition||3;if(n<3)throw new Error("Cannot serialize rules with repetition `"+n+"` for `options.ruleRepetition`, expected `3` or more");return n}function xR(e,n,r){const o=(Bv(r)+(r.options.ruleSpaces?" ":"")).repeat(vR(r));return r.options.ruleSpaces?o.slice(0,-1):o}const Uv={blockquote:UI,break:eg,code:KI,definition:QI,emphasis:Av,hardBreak:eg,heading:eR,html:jv,image:Ov,imageReference:Lv,inlineCode:Dv,link:Mv,linkReference:Fv,list:uR,listItem:fR,paragraph:dR,root:hR,strong:$v,text:yR,thematicBreak:xR};function wR(){return{enter:{table:kR,tableData:tg,tableHeader:tg,tableRow:ER},exit:{codeText:CR,table:SR,tableData:lc,tableHeader:lc,tableRow:lc}}}function kR(e){const n=e._align;this.enter({type:"table",align:n.map(function(r){return r==="none"?null:r}),children:[]},e),this.data.inTable=!0}function SR(e){this.exit(e),this.data.inTable=void 0}function ER(e){this.enter({type:"tableRow",children:[]},e)}function lc(e){this.exit(e)}function tg(e){this.enter({type:"tableCell",children:[]},e)}function CR(e){let n=this.resume();this.data.inTable&&(n=n.replace(/\\([\\|])/g,bR));const r=this.stack[this.stack.length-1];r.type,r.value=n,this.exit(e)}function bR(e,n){return n==="|"?n:e}function _R(e){const n=e||{},r=n.tableCellPadding,o=n.tablePipeAlign,l=n.stringLength,a=r?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
197
+ `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:v,table:u,tableCell:d,tableRow:f}};function u(x,k,C,E){return p(g(x,C,E),x.align)}function f(x,k,C,E){const I=m(x,C,E),O=p([I]);return O.slice(0,O.indexOf(`
198
+ `))}function d(x,k,C,E){const I=C.enter("tableCell"),O=C.enter("phrasing"),N=C.containerPhrasing(x,{...E,before:a,after:a});return O(),I(),N}function p(x,k){return BI(x,{align:k,alignDelimiters:o,padding:r,stringLength:l})}function g(x,k,C){const E=x.children;let I=-1;const O=[],N=k.enter("table");for(;++I<E.length;)O[I]=m(E[I],k,C);return N(),O}function m(x,k,C){const E=x.children;let I=-1;const O=[],N=k.enter("tableRow");for(;++I<E.length;)O[I]=d(E[I],x,k,C);return N(),O}function v(x,k,C){let E=Uv.inlineCode(x,k,C);return C.stack.includes("tableCell")&&(E=E.replace(/\|/g,"\\$&")),E}}function TR(){return{exit:{taskListCheckValueChecked:ng,taskListCheckValueUnchecked:ng,paragraph:IR}}}function PR(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:RR}}}function ng(e){const n=this.stack[this.stack.length-2];n.type,n.checked=e.type==="taskListCheckValueChecked"}function IR(e){const n=this.stack[this.stack.length-2];if(n&&n.type==="listItem"&&typeof n.checked=="boolean"){const r=this.stack[this.stack.length-1];r.type;const o=r.children[0];if(o&&o.type==="text"){const l=n.children;let a=-1,u;for(;++a<l.length;){const f=l[a];if(f.type==="paragraph"){u=f;break}}u===r&&(o.value=o.value.slice(1),o.value.length===0?r.children.shift():r.position&&o.position&&typeof o.position.start.offset=="number"&&(o.position.start.column++,o.position.start.offset++,r.position.start=Object.assign({},o.position.start)))}}this.exit(e)}function RR(e,n,r,o){const l=e.children[0],a=typeof e.checked=="boolean"&&l&&l.type==="paragraph",u="["+(e.checked?"x":" ")+"] ",f=r.createTracker(o);a&&f.move(u);let d=Uv.listItem(e,n,r,{...o,...f.current()});return a&&(d=d.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,p)),d;function p(g){return g+u}}function NR(){return[uI(),RI(),OI(),wR(),TR()]}function AR(e){return{extensions:[cI(),NI(e),LI(),_R(e),PR()]}}const jR={tokenize:FR,partial:!0},Vv={tokenize:BR,partial:!0},Wv={tokenize:$R,partial:!0},Hv={tokenize:UR,partial:!0},OR={tokenize:VR,partial:!0},qv={name:"wwwAutolink",tokenize:zR,previous:Kv},Gv={name:"protocolAutolink",tokenize:MR,previous:Yv},_n={name:"emailAutolink",tokenize:DR,previous:Qv},an={};function LR(){return{text:an}}let kr=48;for(;kr<123;)an[kr]=_n,kr++,kr===58?kr=65:kr===91&&(kr=97);an[43]=_n;an[45]=_n;an[46]=_n;an[95]=_n;an[72]=[_n,Gv];an[104]=[_n,Gv];an[87]=[_n,qv];an[119]=[_n,qv];function DR(e,n,r){const o=this;let l,a;return u;function u(m){return!Lc(m)||!Qv.call(o,o.previous)||If(o.events)?r(m):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),f(m))}function f(m){return Lc(m)?(e.consume(m),f):m===64?(e.consume(m),d):r(m)}function d(m){return m===46?e.check(OR,g,p)(m):m===45||m===95||mt(m)?(a=!0,e.consume(m),d):g(m)}function p(m){return e.consume(m),l=!0,d}function g(m){return a&&l&&xt(o.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),n(m)):r(m)}}function zR(e,n,r){const o=this;return l;function l(u){return u!==87&&u!==119||!Kv.call(o,o.previous)||If(o.events)?r(u):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(jR,e.attempt(Vv,e.attempt(Wv,a),r),r)(u))}function a(u){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),n(u)}}function MR(e,n,r){const o=this;let l="",a=!1;return u;function u(m){return(m===72||m===104)&&Yv.call(o,o.previous)&&!If(o.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),l+=String.fromCodePoint(m),e.consume(m),f):r(m)}function f(m){if(xt(m)&&l.length<5)return l+=String.fromCodePoint(m),e.consume(m),f;if(m===58){const v=l.toLowerCase();if(v==="http"||v==="https")return e.consume(m),d}return r(m)}function d(m){return m===47?(e.consume(m),a?p:(a=!0,d)):r(m)}function p(m){return m===null||gs(m)||De(m)||_r(m)||As(m)?r(m):e.attempt(Vv,e.attempt(Wv,g),r)(m)}function g(m){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),n(m)}}function FR(e,n,r){let o=0;return l;function l(u){return(u===87||u===119)&&o<3?(o++,e.consume(u),l):u===46&&o===3?(e.consume(u),a):r(u)}function a(u){return u===null?r(u):n(u)}}function BR(e,n,r){let o,l,a;return u;function u(p){return p===46||p===95?e.check(Hv,d,f)(p):p===null||De(p)||_r(p)||p!==45&&As(p)?d(p):(a=!0,e.consume(p),u)}function f(p){return p===95?o=!0:(l=o,o=void 0),e.consume(p),u}function d(p){return l||o||!a?r(p):n(p)}}function $R(e,n){let r=0,o=0;return l;function l(u){return u===40?(r++,e.consume(u),l):u===41&&o<r?a(u):u===33||u===34||u===38||u===39||u===41||u===42||u===44||u===46||u===58||u===59||u===60||u===63||u===93||u===95||u===126?e.check(Hv,n,a)(u):u===null||De(u)||_r(u)?n(u):(e.consume(u),l)}function a(u){return u===41&&o++,e.consume(u),l}}function UR(e,n,r){return o;function o(f){return f===33||f===34||f===39||f===41||f===42||f===44||f===46||f===58||f===59||f===63||f===95||f===126?(e.consume(f),o):f===38?(e.consume(f),a):f===93?(e.consume(f),l):f===60||f===null||De(f)||_r(f)?n(f):r(f)}function l(f){return f===null||f===40||f===91||De(f)||_r(f)?n(f):o(f)}function a(f){return xt(f)?u(f):r(f)}function u(f){return f===59?(e.consume(f),o):xt(f)?(e.consume(f),u):r(f)}}function VR(e,n,r){return o;function o(a){return e.consume(a),l}function l(a){return mt(a)?r(a):n(a)}}function Kv(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||De(e)}function Yv(e){return!xt(e)}function Qv(e){return!(e===47||Lc(e))}function Lc(e){return e===43||e===45||e===46||e===95||mt(e)}function If(e){let n=e.length,r=!1;for(;n--;){const o=e[n][1];if((o.type==="labelLink"||o.type==="labelImage")&&!o._balanced){r=!0;break}if(o._gfmAutolinkLiteralWalkedInto){r=!1;break}}return e.length>0&&!r&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),r}const WR={tokenize:JR,partial:!0};function HR(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:YR,continuation:{tokenize:QR},exit:XR}},text:{91:{name:"gfmFootnoteCall",tokenize:KR},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:qR,resolveTo:GR}}}}function qR(e,n,r){const o=this;let l=o.events.length;const a=o.parser.gfmFootnotes||(o.parser.gfmFootnotes=[]);let u;for(;l--;){const d=o.events[l][1];if(d.type==="labelImage"){u=d;break}if(d.type==="gfmFootnoteCall"||d.type==="labelLink"||d.type==="label"||d.type==="image"||d.type==="link")break}return f;function f(d){if(!u||!u._balanced)return r(d);const p=Jt(o.sliceSerialize({start:u.end,end:o.now()}));return p.codePointAt(0)!==94||!a.includes(p.slice(1))?r(d):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),n(d))}}function GR(e,n){let r=e.length;for(;r--;)if(e[r][1].type==="labelImage"&&e[r][0]==="enter"){e[r][1];break}e[r+1][1].type="data",e[r+3][1].type="gfmFootnoteCallLabelMarker";const o={type:"gfmFootnoteCall",start:Object.assign({},e[r+3][1].start),end:Object.assign({},e[e.length-1][1].end)},l={type:"gfmFootnoteCallMarker",start:Object.assign({},e[r+3][1].end),end:Object.assign({},e[r+3][1].end)};l.end.column++,l.end.offset++,l.end._bufferIndex++;const a={type:"gfmFootnoteCallString",start:Object.assign({},l.end),end:Object.assign({},e[e.length-1][1].start)},u={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},f=[e[r+1],e[r+2],["enter",o,n],e[r+3],e[r+4],["enter",l,n],["exit",l,n],["enter",a,n],["enter",u,n],["exit",u,n],["exit",a,n],e[e.length-2],e[e.length-1],["exit",o,n]];return e.splice(r,e.length-r+1,...f),e}function KR(e,n,r){const o=this,l=o.parser.gfmFootnotes||(o.parser.gfmFootnotes=[]);let a=0,u;return f;function f(m){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(m),e.exit("gfmFootnoteCallLabelMarker"),d}function d(m){return m!==94?r(m):(e.enter("gfmFootnoteCallMarker"),e.consume(m),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",p)}function p(m){if(a>999||m===93&&!u||m===null||m===91||De(m))return r(m);if(m===93){e.exit("chunkString");const v=e.exit("gfmFootnoteCallString");return l.includes(Jt(o.sliceSerialize(v)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(m),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),n):r(m)}return De(m)||(u=!0),a++,e.consume(m),m===92?g:p}function g(m){return m===91||m===92||m===93?(e.consume(m),a++,p):p(m)}}function YR(e,n,r){const o=this,l=o.parser.gfmFootnotes||(o.parser.gfmFootnotes=[]);let a,u=0,f;return d;function d(k){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(k),e.exit("gfmFootnoteDefinitionLabelMarker"),p}function p(k){return k===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(k),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",g):r(k)}function g(k){if(u>999||k===93&&!f||k===null||k===91||De(k))return r(k);if(k===93){e.exit("chunkString");const C=e.exit("gfmFootnoteDefinitionLabelString");return a=Jt(o.sliceSerialize(C)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(k),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),v}return De(k)||(f=!0),u++,e.consume(k),k===92?m:g}function m(k){return k===91||k===92||k===93?(e.consume(k),u++,g):g(k)}function v(k){return k===58?(e.enter("definitionMarker"),e.consume(k),e.exit("definitionMarker"),l.includes(a)||l.push(a),Ne(e,x,"gfmFootnoteDefinitionWhitespace")):r(k)}function x(k){return n(k)}}function QR(e,n,r){return e.check(Ro,n,e.attempt(WR,n,r))}function XR(e){e.exit("gfmFootnoteDefinition")}function JR(e,n,r){const o=this;return Ne(e,l,"gfmFootnoteDefinitionIndent",5);function l(a){const u=o.events[o.events.length-1];return u&&u[1].type==="gfmFootnoteDefinitionIndent"&&u[2].sliceSerialize(u[1],!0).length===4?n(a):r(a)}}function ZR(e){let r=(e||{}).singleTilde;const o={name:"strikethrough",tokenize:a,resolveAll:l};return r==null&&(r=!0),{text:{126:o},insideSpan:{null:[o]},attentionMarkers:{null:[126]}};function l(u,f){let d=-1;for(;++d<u.length;)if(u[d][0]==="enter"&&u[d][1].type==="strikethroughSequenceTemporary"&&u[d][1]._close){let p=d;for(;p--;)if(u[p][0]==="exit"&&u[p][1].type==="strikethroughSequenceTemporary"&&u[p][1]._open&&u[d][1].end.offset-u[d][1].start.offset===u[p][1].end.offset-u[p][1].start.offset){u[d][1].type="strikethroughSequence",u[p][1].type="strikethroughSequence";const g={type:"strikethrough",start:Object.assign({},u[p][1].start),end:Object.assign({},u[d][1].end)},m={type:"strikethroughText",start:Object.assign({},u[p][1].end),end:Object.assign({},u[d][1].start)},v=[["enter",g,f],["enter",u[p][1],f],["exit",u[p][1],f],["enter",m,f]],x=f.parser.constructs.insideSpan.null;x&&Dt(v,v.length,0,js(x,u.slice(p+1,d),f)),Dt(v,v.length,0,[["exit",m,f],["enter",u[d][1],f],["exit",u[d][1],f],["exit",g,f]]),Dt(u,p-1,d-p+3,v),d=p+v.length-2;break}}for(d=-1;++d<u.length;)u[d][1].type==="strikethroughSequenceTemporary"&&(u[d][1].type="data");return u}function a(u,f,d){const p=this.previous,g=this.events;let m=0;return v;function v(k){return p===126&&g[g.length-1][1].type!=="characterEscape"?d(k):(u.enter("strikethroughSequenceTemporary"),x(k))}function x(k){const C=mi(p);if(k===126)return m>1?d(k):(u.consume(k),m++,x);if(m<2&&!r)return d(k);const E=u.exit("strikethroughSequenceTemporary"),I=mi(k);return E._open=!I||I===2&&!!C,E._close=!C||C===2&&!!I,f(k)}}}class eN{constructor(){this.map=[]}add(n,r,o){tN(this,n,r,o)}consume(n){if(this.map.sort(function(a,u){return a[0]-u[0]}),this.map.length===0)return;let r=this.map.length;const o=[];for(;r>0;)r-=1,o.push(n.slice(this.map[r][0]+this.map[r][1]),this.map[r][2]),n.length=this.map[r][0];o.push(n.slice()),n.length=0;let l=o.pop();for(;l;){for(const a of l)n.push(a);l=o.pop()}this.map.length=0}}function tN(e,n,r,o){let l=0;if(!(r===0&&o.length===0)){for(;l<e.map.length;){if(e.map[l][0]===n){e.map[l][1]+=r,e.map[l][2].push(...o);return}l+=1}e.map.push([n,r,o])}}function nN(e,n){let r=!1;const o=[];for(;n<e.length;){const l=e[n];if(r){if(l[0]==="enter")l[1].type==="tableContent"&&o.push(e[n+1][1].type==="tableDelimiterMarker"?"left":"none");else if(l[1].type==="tableContent"){if(e[n-1][1].type==="tableDelimiterMarker"){const a=o.length-1;o[a]=o[a]==="left"?"center":"right"}}else if(l[1].type==="tableDelimiterRow")break}else l[0]==="enter"&&l[1].type==="tableDelimiterRow"&&(r=!0);n+=1}return o}function rN(){return{flow:{null:{name:"table",tokenize:iN,resolveAll:oN}}}}function iN(e,n,r){const o=this;let l=0,a=0,u;return f;function f(z){let ne=o.events.length-1;for(;ne>-1;){const H=o.events[ne][1].type;if(H==="lineEnding"||H==="linePrefix")ne--;else break}const te=ne>-1?o.events[ne][1].type:null,me=te==="tableHead"||te==="tableRow"?L:d;return me===L&&o.parser.lazy[o.now().line]?r(z):me(z)}function d(z){return e.enter("tableHead"),e.enter("tableRow"),p(z)}function p(z){return z===124||(u=!0,a+=1),g(z)}function g(z){return z===null?r(z):xe(z)?a>1?(a=0,o.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(z),e.exit("lineEnding"),x):r(z):Ie(z)?Ne(e,g,"whitespace")(z):(a+=1,u&&(u=!1,l+=1),z===124?(e.enter("tableCellDivider"),e.consume(z),e.exit("tableCellDivider"),u=!0,g):(e.enter("data"),m(z)))}function m(z){return z===null||z===124||De(z)?(e.exit("data"),g(z)):(e.consume(z),z===92?v:m)}function v(z){return z===92||z===124?(e.consume(z),m):m(z)}function x(z){return o.interrupt=!1,o.parser.lazy[o.now().line]?r(z):(e.enter("tableDelimiterRow"),u=!1,Ie(z)?Ne(e,k,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(z):k(z))}function k(z){return z===45||z===58?E(z):z===124?(u=!0,e.enter("tableCellDivider"),e.consume(z),e.exit("tableCellDivider"),C):Y(z)}function C(z){return Ie(z)?Ne(e,E,"whitespace")(z):E(z)}function E(z){return z===58?(a+=1,u=!0,e.enter("tableDelimiterMarker"),e.consume(z),e.exit("tableDelimiterMarker"),I):z===45?(a+=1,I(z)):z===null||xe(z)?$(z):Y(z)}function I(z){return z===45?(e.enter("tableDelimiterFiller"),O(z)):Y(z)}function O(z){return z===45?(e.consume(z),O):z===58?(u=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(z),e.exit("tableDelimiterMarker"),N):(e.exit("tableDelimiterFiller"),N(z))}function N(z){return Ie(z)?Ne(e,$,"whitespace")(z):$(z)}function $(z){return z===124?k(z):z===null||xe(z)?!u||l!==a?Y(z):(e.exit("tableDelimiterRow"),e.exit("tableHead"),n(z)):Y(z)}function Y(z){return r(z)}function L(z){return e.enter("tableRow"),Q(z)}function Q(z){return z===124?(e.enter("tableCellDivider"),e.consume(z),e.exit("tableCellDivider"),Q):z===null||xe(z)?(e.exit("tableRow"),n(z)):Ie(z)?Ne(e,Q,"whitespace")(z):(e.enter("data"),W(z))}function W(z){return z===null||z===124||De(z)?(e.exit("data"),Q(z)):(e.consume(z),z===92?fe:W)}function fe(z){return z===92||z===124?(e.consume(z),W):W(z)}}function oN(e,n){let r=-1,o=!0,l=0,a=[0,0,0,0],u=[0,0,0,0],f=!1,d=0,p,g,m;const v=new eN;for(;++r<e.length;){const x=e[r],k=x[1];x[0]==="enter"?k.type==="tableHead"?(f=!1,d!==0&&(rg(v,n,d,p,g),g=void 0,d=0),p={type:"table",start:Object.assign({},k.start),end:Object.assign({},k.end)},v.add(r,0,[["enter",p,n]])):k.type==="tableRow"||k.type==="tableDelimiterRow"?(o=!0,m=void 0,a=[0,0,0,0],u=[0,r+1,0,0],f&&(f=!1,g={type:"tableBody",start:Object.assign({},k.start),end:Object.assign({},k.end)},v.add(r,0,[["enter",g,n]])),l=k.type==="tableDelimiterRow"?2:g?3:1):l&&(k.type==="data"||k.type==="tableDelimiterMarker"||k.type==="tableDelimiterFiller")?(o=!1,u[2]===0&&(a[1]!==0&&(u[0]=u[1],m=Zl(v,n,a,l,void 0,m),a=[0,0,0,0]),u[2]=r)):k.type==="tableCellDivider"&&(o?o=!1:(a[1]!==0&&(u[0]=u[1],m=Zl(v,n,a,l,void 0,m)),a=u,u=[a[1],r,0,0])):k.type==="tableHead"?(f=!0,d=r):k.type==="tableRow"||k.type==="tableDelimiterRow"?(d=r,a[1]!==0?(u[0]=u[1],m=Zl(v,n,a,l,r,m)):u[1]!==0&&(m=Zl(v,n,u,l,r,m)),l=0):l&&(k.type==="data"||k.type==="tableDelimiterMarker"||k.type==="tableDelimiterFiller")&&(u[3]=r)}for(d!==0&&rg(v,n,d,p,g),v.consume(n.events),r=-1;++r<n.events.length;){const x=n.events[r];x[0]==="enter"&&x[1].type==="table"&&(x[1]._align=nN(n.events,r))}return e}function Zl(e,n,r,o,l,a){const u=o===1?"tableHeader":o===2?"tableDelimiter":"tableData",f="tableContent";r[0]!==0&&(a.end=Object.assign({},si(n.events,r[0])),e.add(r[0],0,[["exit",a,n]]));const d=si(n.events,r[1]);if(a={type:u,start:Object.assign({},d),end:Object.assign({},d)},e.add(r[1],0,[["enter",a,n]]),r[2]!==0){const p=si(n.events,r[2]),g=si(n.events,r[3]),m={type:f,start:Object.assign({},p),end:Object.assign({},g)};if(e.add(r[2],0,[["enter",m,n]]),o!==2){const v=n.events[r[2]],x=n.events[r[3]];if(v[1].end=Object.assign({},x[1].end),v[1].type="chunkText",v[1].contentType="text",r[3]>r[2]+1){const k=r[2]+1,C=r[3]-r[2]-1;e.add(k,C,[])}}e.add(r[3]+1,0,[["exit",m,n]])}return l!==void 0&&(a.end=Object.assign({},si(n.events,l)),e.add(l,0,[["exit",a,n]]),a=void 0),a}function rg(e,n,r,o,l){const a=[],u=si(n.events,r);l&&(l.end=Object.assign({},u),a.push(["exit",l,n])),o.end=Object.assign({},u),a.push(["exit",o,n]),e.add(r+1,0,a)}function si(e,n){const r=e[n],o=r[0]==="enter"?"start":"end";return r[1][o]}const lN={name:"tasklistCheck",tokenize:aN};function sN(){return{text:{91:lN}}}function aN(e,n,r){const o=this;return l;function l(d){return o.previous!==null||!o._gfmTasklistFirstContentOfListItem?r(d):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(d),e.exit("taskListCheckMarker"),a)}function a(d){return De(d)?(e.enter("taskListCheckValueUnchecked"),e.consume(d),e.exit("taskListCheckValueUnchecked"),u):d===88||d===120?(e.enter("taskListCheckValueChecked"),e.consume(d),e.exit("taskListCheckValueChecked"),u):r(d)}function u(d){return d===93?(e.enter("taskListCheckMarker"),e.consume(d),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),f):r(d)}function f(d){return xe(d)?n(d):Ie(d)?e.check({tokenize:uN},n,r)(d):r(d)}}function uN(e,n,r){return Ne(e,o,"whitespace");function o(l){return l===null?r(l):n(l)}}function cN(e){return sv([LR(),HR(),ZR(e),rN(),sN()])}const fN={};function dN(e){const n=this,r=e||fN,o=n.data(),l=o.micromarkExtensions||(o.micromarkExtensions=[]),a=o.fromMarkdownExtensions||(o.fromMarkdownExtensions=[]),u=o.toMarkdownExtensions||(o.toMarkdownExtensions=[]);l.push(cN(r)),a.push(NR()),u.push(AR(r))}var pN=ks[" useId ".trim().toString()]||(()=>{}),hN=0;function Rf(e){const[n,r]=b.useState(pN());return Cr(()=>{r(o=>o??String(hN++))},[e]),n?`radix-${n}`:""}var zs="Collapsible",[mN]=_o(zs),[gN,Nf]=mN(zs),Xv=b.forwardRef((e,n)=>{const{__scopeCollapsible:r,open:o,defaultOpen:l,disabled:a,onOpenChange:u,...f}=e,[d,p]=_s({prop:o,defaultProp:l??!1,onChange:u,caller:zs});return S.jsx(gN,{scope:r,disabled:a,contentId:Rf(),open:d,onOpenToggle:b.useCallback(()=>p(g=>!g),[p]),children:S.jsx(tt.div,{"data-state":jf(d),"data-disabled":a?"":void 0,...f,ref:n})})});Xv.displayName=zs;var Jv="CollapsibleTrigger",Zv=b.forwardRef((e,n)=>{const{__scopeCollapsible:r,...o}=e,l=Nf(Jv,r);return S.jsx(tt.button,{type:"button","aria-controls":l.contentId,"aria-expanded":l.open||!1,"data-state":jf(l.open),"data-disabled":l.disabled?"":void 0,disabled:l.disabled,...o,ref:n,onClick:He(e.onClick,l.onOpenToggle)})});Zv.displayName=Jv;var Af="CollapsibleContent",ex=b.forwardRef((e,n)=>{const{forceMount:r,...o}=e,l=Nf(Af,e.__scopeCollapsible);return S.jsx(bs,{present:r||l.open,children:({present:a})=>S.jsx(yN,{...o,ref:n,present:a})})});ex.displayName=Af;var yN=b.forwardRef((e,n)=>{const{__scopeCollapsible:r,present:o,children:l,...a}=e,u=Nf(Af,r),[f,d]=b.useState(o),p=b.useRef(null),g=Cn(n,p),m=b.useRef(0),v=m.current,x=b.useRef(0),k=x.current,C=u.open||f,E=b.useRef(C),I=b.useRef(void 0);return b.useEffect(()=>{const O=requestAnimationFrame(()=>E.current=!1);return()=>cancelAnimationFrame(O)},[]),Cr(()=>{const O=p.current;if(O){I.current=I.current||{transitionDuration:O.style.transitionDuration,animationName:O.style.animationName},O.style.transitionDuration="0s",O.style.animationName="none";const N=O.getBoundingClientRect();m.current=N.height,x.current=N.width,E.current||(O.style.transitionDuration=I.current.transitionDuration,O.style.animationName=I.current.animationName),d(o)}},[u.open,o]),S.jsx(tt.div,{"data-state":jf(u.open),"data-disabled":u.disabled?"":void 0,id:u.contentId,hidden:!C,...a,ref:g,style:{"--radix-collapsible-content-height":v?`${v}px`:void 0,"--radix-collapsible-content-width":k?`${k}px`:void 0,...e.style},children:C&&l})});function jf(e){return e?"open":"closed"}var vN=Xv;const tx=vN,nx=Zv,rx=ex;function xN({content:e}){const[n,r]=b.useState(!0);return!e||e.trim()===""?null:S.jsx(tx,{open:n,onOpenChange:r,"data-testid":"epic-content",children:S.jsxs("div",{className:"border border-border-muted rounded-lg bg-bg-light/30",children:[S.jsx(nx,{asChild:!0,children:S.jsxs("button",{type:"button",className:"w-full flex items-center justify-between p-4 hover:bg-bg-light/50 transition-colors rounded-t-lg",children:[S.jsx("h2",{className:"text-lg font-semibold text-text",children:"Epic Documentation"}),n?S.jsx(V1,{className:"w-5 h-5 text-text-muted"}):S.jsx(vg,{className:"w-5 h-5 text-text-muted"})]})}),S.jsx(rx,{children:S.jsx("div",{className:"px-4 pb-4",children:S.jsx("div",{className:"prose prose-sm prose-invert max-w-none prose-headings:text-text prose-p:text-text-muted prose-strong:text-text prose-code:text-primary prose-code:bg-bg-dark prose-code:px-1 prose-code:py-0.5 prose-code:rounded prose-code:before:content-none prose-code:after:content-none prose-pre:bg-bg-dark prose-pre:border prose-pre:border-border-muted prose-a:text-primary prose-a:no-underline hover:prose-a:underline prose-li:text-text-muted prose-table:border prose-table:border-border-muted prose-th:bg-bg-dark prose-th:px-3 prose-th:py-2 prose-th:text-text prose-td:px-3 prose-td:py-2 prose-td:border-t prose-td:border-border-muted",children:S.jsx(ZP,{remarkPlugins:[dN],children:e})})})})]})})}const ig={blocked:0,in_progress:1,ready:2,completed:3};function wN(){return S.jsxs("div",{className:"animate-pulse space-y-4","data-testid":"epic-header-skeleton",children:[S.jsx("div",{className:"h-8 w-64 bg-bg-light rounded"}),S.jsxs("div",{className:"space-y-2",children:[S.jsxs("div",{className:"flex justify-between",children:[S.jsx("div",{className:"h-4 w-24 bg-bg-light rounded"}),S.jsx("div",{className:"h-4 w-32 bg-bg-light rounded"})]}),S.jsx("div",{className:"h-4 w-full bg-bg-light rounded"})]})]})}function sc(){return S.jsxs(Sn,{className:"animate-pulse","data-testid":"story-card-skeleton",children:[S.jsx(rr,{children:S.jsx("div",{className:"h-5 w-48 bg-bg-light rounded"})}),S.jsxs(En,{className:"space-y-3",children:[S.jsx("div",{className:"h-6 w-24 bg-bg-light rounded-full"}),S.jsx("div",{className:"h-4 w-32 bg-bg-light rounded"})]})]})}function kN({status:e}){const n={ready:"bg-text-muted/20 text-text-muted",in_progress:"bg-primary/20 text-primary",blocked:"bg-danger/20 text-danger",completed:"bg-success/20 text-success"},r={ready:"Ready",in_progress:"In Progress",blocked:"Blocked",completed:"Completed"};return S.jsx(xi,{className:n[e],children:r[e]})}function SN(e){return{completed:e.filter(r=>r.status==="completed").length,total:e.length}}function EN({story:e,epicSlug:n}){const r=SN(e.tasks);return S.jsx(er,{to:`/epic/${n}/story/${e.slug}`,className:"block",children:S.jsxs(Sn,{className:"hover:border-primary/50 transition-colors cursor-pointer",children:[S.jsx(rr,{className:"pb-2",children:S.jsx(hi,{className:"text-base",children:e.title})}),S.jsxs(En,{className:"space-y-3",children:[S.jsx(kN,{status:e.status}),S.jsxs("p",{className:"text-sm text-text-muted",children:[r.completed,"/",r.total," tasks completed"]})]})]})})}function CN(){const{slug:e}=$c(),{currentEpic:n,setCurrentEpic:r,clearCurrentEpic:o,isLoading:l}=Ns(),[a,u]=b.useState(!0),[f,d]=b.useState(!1),[p,g]=b.useState(null);b.useEffect(()=>((async()=>{if(e){u(!0),d(!1),g(null);try{const C=await fetch(`/api/epics/${e}`);if(C.status===404){d(!0);return}if(!C.ok){g("Failed to load epic");return}const E=await C.json();r(E)}catch(C){g("Failed to load epic");const E=C instanceof Error?C.message:"Unknown error";af(`/api/epics/${e}`,E)}finally{u(!1)}}})(),()=>{o()}),[e,r,o]);const m=l||a,v=n&&n.storyCounts.total>0?Math.round(n.storyCounts.completed/n.storyCounts.total*100):0,x=n?[...n.stories].sort((k,C)=>ig[k.status]-ig[C.status]):[];return f?S.jsxs("div",{className:"text-center py-12",children:[S.jsx("h1",{className:"text-2xl font-bold text-text mb-2",children:"Epic not found"}),S.jsxs("p",{className:"text-text-muted mb-4",children:['The epic "',e,'" does not exist.']}),S.jsx(er,{to:"/",className:"text-primary hover:underline",children:"← Back to epic list"})]}):p&&!m?S.jsxs("div",{className:"text-center py-12",children:[S.jsx("h1",{className:"text-2xl font-bold text-danger mb-2",children:"Error"}),S.jsx("p",{className:"text-text-muted mb-4",children:p}),S.jsx(er,{to:"/",className:"text-primary hover:underline",children:"← Back to epic list"})]}):m||!n?S.jsxs("div",{className:"space-y-6",children:[S.jsx(wN,{}),S.jsxs("div",{className:"grid gap-4 md:grid-cols-2 lg:grid-cols-3",children:[S.jsx(sc,{}),S.jsx(sc,{}),S.jsx(sc,{})]})]}):S.jsxs("div",{className:"space-y-6",children:[S.jsxs("div",{className:"space-y-4",children:[S.jsx("h1",{className:"text-2xl font-bold text-text",children:n.title}),S.jsxs("div",{className:"space-y-2",children:[S.jsxs("div",{className:"flex justify-between text-sm",children:[S.jsx("span",{className:"text-text-muted",children:"Progress"}),S.jsxs("span",{className:"text-text-muted",children:[n.storyCounts.completed,"/",n.storyCounts.total," stories completed"]})]}),S.jsx(ff,{value:v})]})]}),S.jsx(xN,{content:n.content}),x.length===0?S.jsxs("div",{className:"text-center py-12",children:[S.jsx("p",{className:"text-text-muted text-lg",children:"No stories in this epic."}),S.jsxs("p",{className:"text-text-muted",children:["Run ",S.jsx("code",{className:"text-primary",children:"/generate-stories"})," to create stories."]})]}):S.jsxs("div",{className:"space-y-4",children:[S.jsx("h2",{className:"text-lg font-semibold text-text",children:"Stories"}),S.jsx("div",{className:"grid gap-4 md:grid-cols-2 lg:grid-cols-3",children:x.map(k=>S.jsx(EN,{story:k,epicSlug:e},k.slug))})]})]})}var bN=b.createContext(void 0);function ix(e){const n=b.useContext(bN);return e||n||"ltr"}var ac="rovingFocusGroup.onEntryFocus",_N={bubbles:!1,cancelable:!0},Ao="RovingFocusGroup",[Dc,ox,TN]=Sg(Ao),[PN,lx]=_o(Ao,[TN]),[IN,RN]=PN(Ao),sx=b.forwardRef((e,n)=>S.jsx(Dc.Provider,{scope:e.__scopeRovingFocusGroup,children:S.jsx(Dc.Slot,{scope:e.__scopeRovingFocusGroup,children:S.jsx(NN,{...e,ref:n})})}));sx.displayName=Ao;var NN=b.forwardRef((e,n)=>{const{__scopeRovingFocusGroup:r,orientation:o,loop:l=!1,dir:a,currentTabStopId:u,defaultCurrentTabStopId:f,onCurrentTabStopIdChange:d,onEntryFocus:p,preventScrollOnEntryFocus:g=!1,...m}=e,v=b.useRef(null),x=Cn(n,v),k=ix(a),[C,E]=_s({prop:u,defaultProp:f??null,onChange:d,caller:Ao}),[I,O]=b.useState(!1),N=tr(p),$=ox(r),Y=b.useRef(!1),[L,Q]=b.useState(0);return b.useEffect(()=>{const W=v.current;if(W)return W.addEventListener(ac,N),()=>W.removeEventListener(ac,N)},[N]),S.jsx(IN,{scope:r,orientation:o,dir:k,loop:l,currentTabStopId:C,onItemFocus:b.useCallback(W=>E(W),[E]),onItemShiftTab:b.useCallback(()=>O(!0),[]),onFocusableItemAdd:b.useCallback(()=>Q(W=>W+1),[]),onFocusableItemRemove:b.useCallback(()=>Q(W=>W-1),[]),children:S.jsx(tt.div,{tabIndex:I||L===0?-1:0,"data-orientation":o,...m,ref:x,style:{outline:"none",...e.style},onMouseDown:He(e.onMouseDown,()=>{Y.current=!0}),onFocus:He(e.onFocus,W=>{const fe=!Y.current;if(W.target===W.currentTarget&&fe&&!I){const z=new CustomEvent(ac,_N);if(W.currentTarget.dispatchEvent(z),!z.defaultPrevented){const ne=$().filter(re=>re.focusable),te=ne.find(re=>re.active),me=ne.find(re=>re.id===C),q=[te,me,...ne].filter(Boolean).map(re=>re.ref.current);cx(q,g)}}Y.current=!1}),onBlur:He(e.onBlur,()=>O(!1))})})}),ax="RovingFocusGroupItem",ux=b.forwardRef((e,n)=>{const{__scopeRovingFocusGroup:r,focusable:o=!0,active:l=!1,tabStopId:a,children:u,...f}=e,d=Rf(),p=a||d,g=RN(ax,r),m=g.currentTabStopId===p,v=ox(r),{onFocusableItemAdd:x,onFocusableItemRemove:k,currentTabStopId:C}=g;return b.useEffect(()=>{if(o)return x(),()=>k()},[o,x,k]),S.jsx(Dc.ItemSlot,{scope:r,id:p,focusable:o,active:l,children:S.jsx(tt.span,{tabIndex:m?0:-1,"data-orientation":g.orientation,...f,ref:n,onMouseDown:He(e.onMouseDown,E=>{o?g.onItemFocus(p):E.preventDefault()}),onFocus:He(e.onFocus,()=>g.onItemFocus(p)),onKeyDown:He(e.onKeyDown,E=>{if(E.key==="Tab"&&E.shiftKey){g.onItemShiftTab();return}if(E.target!==E.currentTarget)return;const I=ON(E,g.orientation,g.dir);if(I!==void 0){if(E.metaKey||E.ctrlKey||E.altKey||E.shiftKey)return;E.preventDefault();let N=v().filter($=>$.focusable).map($=>$.ref.current);if(I==="last")N.reverse();else if(I==="prev"||I==="next"){I==="prev"&&N.reverse();const $=N.indexOf(E.currentTarget);N=g.loop?LN(N,$+1):N.slice($+1)}setTimeout(()=>cx(N))}}),children:typeof u=="function"?u({isCurrentTabStop:m,hasTabStop:C!=null}):u})})});ux.displayName=ax;var AN={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function jN(e,n){return n!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function ON(e,n,r){const o=jN(e.key,r);if(!(n==="vertical"&&["ArrowLeft","ArrowRight"].includes(o))&&!(n==="horizontal"&&["ArrowUp","ArrowDown"].includes(o)))return AN[o]}function cx(e,n=!1){const r=document.activeElement;for(const o of e)if(o===r||(o.focus({preventScroll:n}),document.activeElement!==r))return}function LN(e,n){return e.map((r,o)=>e[(n+o)%e.length])}var DN=sx,zN=ux,Ms="Tabs",[MN]=_o(Ms,[lx]),fx=lx(),[FN,Of]=MN(Ms),dx=b.forwardRef((e,n)=>{const{__scopeTabs:r,value:o,onValueChange:l,defaultValue:a,orientation:u="horizontal",dir:f,activationMode:d="automatic",...p}=e,g=ix(f),[m,v]=_s({prop:o,onChange:l,defaultProp:a??"",caller:Ms});return S.jsx(FN,{scope:r,baseId:Rf(),value:m,onValueChange:v,orientation:u,dir:g,activationMode:d,children:S.jsx(tt.div,{dir:g,"data-orientation":u,...p,ref:n})})});dx.displayName=Ms;var px="TabsList",hx=b.forwardRef((e,n)=>{const{__scopeTabs:r,loop:o=!0,...l}=e,a=Of(px,r),u=fx(r);return S.jsx(DN,{asChild:!0,...u,orientation:a.orientation,dir:a.dir,loop:o,children:S.jsx(tt.div,{role:"tablist","aria-orientation":a.orientation,...l,ref:n})})});hx.displayName=px;var mx="TabsTrigger",gx=b.forwardRef((e,n)=>{const{__scopeTabs:r,value:o,disabled:l=!1,...a}=e,u=Of(mx,r),f=fx(r),d=xx(u.baseId,o),p=wx(u.baseId,o),g=o===u.value;return S.jsx(zN,{asChild:!0,...f,focusable:!l,active:g,children:S.jsx(tt.button,{type:"button",role:"tab","aria-selected":g,"aria-controls":p,"data-state":g?"active":"inactive","data-disabled":l?"":void 0,disabled:l,id:d,...a,ref:n,onMouseDown:He(e.onMouseDown,m=>{!l&&m.button===0&&m.ctrlKey===!1?u.onValueChange(o):m.preventDefault()}),onKeyDown:He(e.onKeyDown,m=>{[" ","Enter"].includes(m.key)&&u.onValueChange(o)}),onFocus:He(e.onFocus,()=>{const m=u.activationMode!=="manual";!g&&!l&&m&&u.onValueChange(o)})})})});gx.displayName=mx;var yx="TabsContent",vx=b.forwardRef((e,n)=>{const{__scopeTabs:r,value:o,forceMount:l,children:a,...u}=e,f=Of(yx,r),d=xx(f.baseId,o),p=wx(f.baseId,o),g=o===f.value,m=b.useRef(g);return b.useEffect(()=>{const v=requestAnimationFrame(()=>m.current=!1);return()=>cancelAnimationFrame(v)},[]),S.jsx(bs,{present:l||g,children:({present:v})=>S.jsx(tt.div,{"data-state":g?"active":"inactive","data-orientation":f.orientation,role:"tabpanel","aria-labelledby":d,hidden:!v,id:p,tabIndex:0,...u,ref:n,style:{...e.style,animationDuration:m.current?"0s":void 0},children:v&&a})})});vx.displayName=yx;function xx(e,n){return`${e}-trigger-${n}`}function wx(e,n){return`${e}-content-${n}`}var BN=dx,kx=hx,Sx=gx,Ex=vx;const $N=BN,Cx=b.forwardRef(({className:e,...n},r)=>S.jsx(kx,{ref:r,className:ut("inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",e),...n}));Cx.displayName=kx.displayName;const is=b.forwardRef(({className:e,...n},r)=>S.jsx(Sx,{ref:r,className:ut("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm",e),...n}));is.displayName=Sx.displayName;const os=b.forwardRef(({className:e,...n},r)=>S.jsx(Ex,{ref:r,className:ut("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...n}));os.displayName=Ex.displayName;function UN(){return S.jsxs("div",{className:"animate-pulse space-y-4","data-testid":"story-header-skeleton",children:[S.jsx("div",{className:"h-8 w-64 bg-bg-light rounded"}),S.jsxs("div",{className:"flex items-center gap-4",children:[S.jsx("div",{className:"h-6 w-24 bg-bg-light rounded-full"}),S.jsx("div",{className:"h-4 w-32 bg-bg-light rounded"})]})]})}function VN(){return S.jsxs("div",{className:"animate-pulse space-y-4","data-testid":"story-content-skeleton",children:[S.jsx("div",{className:"h-6 w-48 bg-bg-light rounded"}),S.jsxs("div",{className:"space-y-2",children:[S.jsx("div",{className:"h-4 w-full bg-bg-light rounded"}),S.jsx("div",{className:"h-4 w-3/4 bg-bg-light rounded"}),S.jsx("div",{className:"h-4 w-5/6 bg-bg-light rounded"})]})]})}function WN({status:e}){const n={ready:"bg-text-muted/20 text-text-muted",in_progress:"bg-primary/20 text-primary",blocked:"bg-danger/20 text-danger",completed:"bg-success/20 text-success"},r={ready:"Ready",in_progress:"In Progress",blocked:"Blocked",completed:"Completed"};return S.jsx(xi,{className:n[e],children:r[e]})}function HN({status:e}){const n={className:"w-5 h-5 pointer-events-none cursor-default"};switch(e){case"completed":return S.jsx(kg,{...n,className:`${n.className} text-success`});case"in_progress":return S.jsx(zh,{...n,className:`${n.className} text-primary fill-primary/20`});case"pending":default:return S.jsx(zh,{...n,className:`${n.className} text-text-muted`})}}function qN({task:e}){return S.jsxs("div",{className:"flex items-center gap-3 py-2 px-3 rounded-md hover:bg-bg-light/50",children:[S.jsx(HN,{status:e.status}),S.jsx("span",{className:e.status==="completed"?"text-text-muted line-through":"text-text",children:e.title}),S.jsx(xi,{className:`ml-auto text-xs ${e.status==="completed"?"bg-success/20 text-success":e.status==="in_progress"?"bg-primary/20 text-primary":"bg-text-muted/20 text-text-muted"}`,children:e.status.replace("_"," ")})]})}function GN(e){switch(e){case"blocker":return{bg:"bg-danger/10",text:"text-danger",border:"border-danger/30"};case"resolution":return{bg:"bg-success/10",text:"text-success",border:"border-success/30"};case"session":default:return{bg:"bg-bg-light",text:"text-text",border:"border-border-muted"}}}function uc({entry:e,defaultOpen:n=!1}){const[r,o]=b.useState(n),l=GN(e.type);return S.jsx(tx,{open:r,onOpenChange:o,children:S.jsxs(Sn,{className:`${l.bg} border ${l.border}`,children:[S.jsx(nx,{asChild:!0,children:S.jsx(rr,{className:"cursor-pointer hover:bg-bg-light/50 transition-colors py-3",children:S.jsxs("div",{className:"flex items-center gap-3",children:[r?S.jsx(vg,{className:"w-4 h-4 text-text-muted"}):S.jsx(xg,{className:"w-4 h-4 text-text-muted"}),S.jsx(xi,{className:`${l.bg} ${l.text} border ${l.border}`,children:e.type}),S.jsx(hi,{className:`text-sm font-medium ${l.text}`,children:e.title}),e.type==="blocker"&&S.jsx(wg,{className:"w-4 h-4 text-danger ml-auto"}),e.timestamp&&S.jsx("span",{className:"text-xs text-text-muted ml-auto",children:e.timestamp})]})})}),S.jsx(rx,{children:S.jsx(En,{className:"pt-0 pb-4",children:S.jsx("div",{className:"prose prose-sm prose-invert max-w-none",children:S.jsx("pre",{className:"whitespace-pre-wrap text-sm text-text-muted font-mono bg-bg-dark p-3 rounded-md overflow-x-auto",children:e.content})})})})]})})}function KN(){const{epicSlug:e,storySlug:n}=$c(),{currentStory:r,setCurrentStory:o,clearCurrentStory:l,isLoading:a,subscribeToStory:u,unsubscribeFromStory:f}=Ns(),[d,p]=b.useState(!0),[g,m]=b.useState(!1),[v,x]=b.useState(null);b.useEffect(()=>((async()=>{if(!(!e||!n)){p(!0),m(!1),x(null);try{const $=await fetch(`/api/stories/${e}/${n}`);if($.status===404){m(!0);return}if(!$.ok){x("Failed to load story");return}const Y=await $.json();o(Y)}catch($){x("Failed to load story");const Y=$ instanceof Error?$.message:"Unknown error";af(`/api/stories/${e}/${n}`,Y)}finally{p(!1)}}})(),e&&n&&u(e,n),()=>{l(),e&&n&&f(e,n)}),[e,n,o,l,u,f]);const k=a||d,C=r?{completed:r.tasks.filter(N=>N.status==="completed").length,total:r.tasks.length}:{completed:0,total:0},E=(r==null?void 0:r.journal.filter(N=>N.type==="blocker"))||[],I=(r==null?void 0:r.journal.filter(N=>N.type==="session"))||[],O=(r==null?void 0:r.journal.filter(N=>N.type==="resolution"))||[];return g?S.jsxs("div",{className:"text-center py-12",children:[S.jsx("h1",{className:"text-2xl font-bold text-text mb-2",children:"Story not found"}),S.jsxs("p",{className:"text-text-muted mb-4",children:['The story "',n,'" does not exist in epic "',e,'".']}),S.jsx(er,{to:`/epic/${e}`,className:"text-primary hover:underline",children:"← Back to epic"})]}):v&&!k?S.jsxs("div",{className:"text-center py-12",children:[S.jsx("h1",{className:"text-2xl font-bold text-danger mb-2",children:"Error"}),S.jsx("p",{className:"text-text-muted mb-4",children:v}),S.jsx(er,{to:`/epic/${e}`,className:"text-primary hover:underline",children:"← Back to epic"})]}):k||!r?S.jsxs("div",{className:"space-y-6",children:[S.jsx(UN,{}),S.jsx(VN,{})]}):S.jsxs("div",{className:"space-y-6",children:[S.jsxs("div",{className:"space-y-4",children:[S.jsxs("div",{className:"flex items-center gap-2 text-sm text-text-muted",children:[S.jsx(er,{to:`/epic/${e}`,className:"hover:text-primary",children:e}),S.jsx("span",{children:"/"}),S.jsx("span",{className:"text-text",children:n})]}),S.jsx("h1",{className:"text-2xl font-bold text-text",children:r.title}),S.jsxs("div",{className:"flex items-center gap-4",children:[S.jsx(WN,{status:r.status}),S.jsxs("span",{className:"text-sm text-text-muted",children:[C.completed,"/",C.total," tasks completed"]})]})]}),S.jsxs($N,{defaultValue:"tasks",className:"w-full",children:[S.jsxs(Cx,{className:"mb-4",children:[S.jsx(is,{value:"tasks",children:"Tasks"}),S.jsx(is,{value:"content",children:"Story Content"}),S.jsxs(is,{value:"journal",children:["Journal",E.length>0&&S.jsx(xi,{className:"ml-2 bg-danger/20 text-danger text-xs",children:E.length})]})]}),S.jsx(os,{value:"tasks",className:"space-y-4",children:S.jsxs(Sn,{children:[S.jsx(rr,{children:S.jsx(hi,{className:"text-lg",children:"Tasks"})}),S.jsx(En,{children:r.tasks.length===0?S.jsx("p",{className:"text-text-muted text-center py-4",children:"No tasks defined for this story."}):S.jsx("div",{className:"divide-y divide-border-muted",children:r.tasks.map(N=>S.jsx(qN,{task:N},N.id))})})]})}),S.jsx(os,{value:"content",className:"space-y-4",children:S.jsxs(Sn,{children:[S.jsx(rr,{children:S.jsx(hi,{className:"text-lg",children:"Story Content"})}),S.jsx(En,{children:r.content?S.jsx("div",{className:"prose prose-sm prose-invert max-w-none",children:S.jsx("pre",{className:"whitespace-pre-wrap text-sm text-text font-mono bg-bg-dark p-4 rounded-md overflow-x-auto",children:r.content})}):S.jsx("p",{className:"text-text-muted text-center py-4",children:"No story content available."})})]})}),S.jsx(os,{value:"journal",className:"space-y-4",children:r.journal.length===0?S.jsx(Sn,{children:S.jsx(En,{className:"py-8",children:S.jsx("p",{className:"text-text-muted text-center",children:"No journal entries yet."})})}):S.jsxs("div",{className:"space-y-4",children:[E.length>0&&S.jsxs("div",{className:"space-y-3",children:[S.jsxs("h3",{className:"text-sm font-semibold text-danger flex items-center gap-2",children:[S.jsx(wg,{className:"w-4 h-4"}),"Blockers (",E.length,")"]}),E.map((N,$)=>S.jsx(uc,{entry:N,defaultOpen:!0},`blocker-${$}`))]}),O.length>0&&S.jsxs("div",{className:"space-y-3",children:[S.jsxs("h3",{className:"text-sm font-semibold text-success flex items-center gap-2",children:[S.jsx(kg,{className:"w-4 h-4"}),"Resolutions (",O.length,")"]}),O.map((N,$)=>S.jsx(uc,{entry:N,defaultOpen:!1},`resolution-${$}`))]}),I.length>0&&S.jsxs("div",{className:"space-y-3",children:[S.jsxs("h3",{className:"text-sm font-semibold text-text flex items-center gap-2",children:["Sessions (",I.length,")"]}),I.map((N,$)=>S.jsx(uc,{entry:N,defaultOpen:!1},`session-${$}`))]})]})})]})]})}const YN=[{path:"/",element:S.jsx(xC,{}),children:[{path:"/",element:S.jsx(UC,{})},{path:"epic/:slug",element:S.jsx(CN,{})},{path:"epic/:epicSlug/story/:storySlug",element:S.jsx(KN,{})}]}];function QN(){return S.jsx(N1,{children:S.jsx(C1,{children:YN.map(e=>{var n;return S.jsx(fc,{path:e.path,element:e.element,children:(n=e.children)==null?void 0:n.map(r=>S.jsx(fc,{path:r.path,element:r.element},r.path))},e.path)})})})}Tk.createRoot(document.getElementById("root")).render(S.jsx(b.StrictMode,{children:S.jsx(dC,{children:S.jsx(QN,{})})}));