@ccjr1120/memory-one 0.1.3 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +50 -53
- package/dist/server.js +107 -2
- package/dist/server.js.map +1 -1
- package/package.json +1 -1
- package/public/assets/{highlighted-body-KPVGNVTW-BpWplPka.js → highlighted-body-KPVGNVTW-CkO7YzEE.js} +1 -1
- package/public/assets/index-CaRRawNp.js +190 -0
- package/public/assets/index-MS5JA52f.css +1 -0
- package/public/index.html +2 -2
- package/public/assets/index-CkQQQDOY.js +0 -190
- package/public/assets/index-DUFjREc6.css +0 -1
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
var FE=e=>{throw TypeError(e)};var qE=(e,t,n)=>t.has(e)||FE("Cannot "+n);var an=(e,t,n)=>(qE(e,t,"read from private field"),n?n.call(e):t.get(e)),VE=(e,t,n)=>t.has(e)?FE("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),Rm=(e,t,n,i)=>(qE(e,t,"write to private field"),i?i.call(e,n):t.set(e,n),n);function Ww(e,t){for(var n=0;n<t.length;n++){const i=t[n];if(typeof i!="string"&&!Array.isArray(i)){for(const s in i)if(s!=="default"&&!(s in e)){const l=Object.getOwnPropertyDescriptor(i,s);l&&Object.defineProperty(e,s,l.get?l:{enumerable:!0,get:()=>i[s]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))i(s);new MutationObserver(s=>{for(const l of s)if(l.type==="childList")for(const o of l.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&i(o)}).observe(document,{childList:!0,subtree:!0});function n(s){const l={};return s.integrity&&(l.integrity=s.integrity),s.referrerPolicy&&(l.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?l.credentials="include":s.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function i(s){if(s.ep)return;s.ep=!0;const l=n(s);fetch(s.href,l)}})();function N0(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Om={exports:{}},pu={};var YE;function Zw(){if(YE)return pu;YE=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(i,s,l){var o=null;if(l!==void 0&&(o=""+l),s.key!==void 0&&(o=""+s.key),"key"in s){l={};for(var c in s)c!=="key"&&(l[c]=s[c])}else l=s;return s=l.ref,{$$typeof:e,type:i,key:o,ref:s!==void 0?s:null,props:l}}return pu.Fragment=t,pu.jsx=n,pu.jsxs=n,pu}var $E;function Jw(){return $E||($E=1,Om.exports=Zw()),Om.exports}var T=Jw(),Lm={exports:{}},Pe={};var GE;function eN(){if(GE)return Pe;GE=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),l=Symbol.for("react.consumer"),o=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),p=Symbol.for("react.activity"),E=Symbol.iterator;function y(U){return U===null||typeof U!="object"?null:(U=E&&U[E]||U["@@iterator"],typeof U=="function"?U:null)}var v={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},S=Object.assign,A={};function k(U,X,I){this.props=U,this.context=X,this.refs=A,this.updater=I||v}k.prototype.isReactComponent={},k.prototype.setState=function(U,X){if(typeof U!="object"&&typeof U!="function"&&U!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,U,X,"setState")},k.prototype.forceUpdate=function(U){this.updater.enqueueForceUpdate(this,U,"forceUpdate")};function N(){}N.prototype=k.prototype;function w(U,X,I){this.props=U,this.context=X,this.refs=A,this.updater=I||v}var D=w.prototype=new N;D.constructor=w,S(D,k.prototype),D.isPureReactComponent=!0;var z=Array.isArray;function L(){}var P={H:null,A:null,T:null,S:null},H=Object.prototype.hasOwnProperty;function K(U,X,I){var ge=I.ref;return{$$typeof:e,type:U,key:X,ref:ge!==void 0?ge:null,props:I}}function j(U,X){return K(U.type,X,U.props)}function $(U){return typeof U=="object"&&U!==null&&U.$$typeof===e}function Z(U){var X={"=":"=0",":":"=2"};return"$"+U.replace(/[=:]/g,function(I){return X[I]})}var le=/\/+/g;function ue(U,X){return typeof U=="object"&&U!==null&&U.key!=null?Z(""+U.key):X.toString(36)}function re(U){switch(U.status){case"fulfilled":return U.value;case"rejected":throw U.reason;default:switch(typeof U.status=="string"?U.then(L,L):(U.status="pending",U.then(function(X){U.status==="pending"&&(U.status="fulfilled",U.value=X)},function(X){U.status==="pending"&&(U.status="rejected",U.reason=X)})),U.status){case"fulfilled":return U.value;case"rejected":throw U.reason}}throw U}function V(U,X,I,ge,ye){var he=typeof U;(he==="undefined"||he==="boolean")&&(U=null);var Ae=!1;if(U===null)Ae=!0;else switch(he){case"bigint":case"string":case"number":Ae=!0;break;case"object":switch(U.$$typeof){case e:case t:Ae=!0;break;case m:return Ae=U._init,V(Ae(U._payload),X,I,ge,ye)}}if(Ae)return ye=ye(U),Ae=ge===""?"."+ue(U,0):ge,z(ye)?(I="",Ae!=null&&(I=Ae.replace(le,"$&/")+"/"),V(ye,X,I,"",function(je){return je})):ye!=null&&($(ye)&&(ye=j(ye,I+(ye.key==null||U&&U.key===ye.key?"":(""+ye.key).replace(le,"$&/")+"/")+Ae)),X.push(ye)),1;Ae=0;var Te=ge===""?".":ge+":";if(z(U))for(var xe=0;xe<U.length;xe++)ge=U[xe],he=Te+ue(ge,xe),Ae+=V(ge,X,I,he,ye);else if(xe=y(U),typeof xe=="function")for(U=xe.call(U),xe=0;!(ge=U.next()).done;)ge=ge.value,he=Te+ue(ge,xe++),Ae+=V(ge,X,I,he,ye);else if(he==="object"){if(typeof U.then=="function")return V(re(U),X,I,ge,ye);throw X=String(U),Error("Objects are not valid as a React child (found: "+(X==="[object Object]"?"object with keys {"+Object.keys(U).join(", ")+"}":X)+"). If you meant to render a collection of children, use an array instead.")}return Ae}function Q(U,X,I){if(U==null)return U;var ge=[],ye=0;return V(U,ge,"","",function(he){return X.call(I,he,ye++)}),ge}function ae(U){if(U._status===-1){var X=U._result;X=X(),X.then(function(I){(U._status===0||U._status===-1)&&(U._status=1,U._result=I)},function(I){(U._status===0||U._status===-1)&&(U._status=2,U._result=I)}),U._status===-1&&(U._status=0,U._result=X)}if(U._status===1)return U._result.default;throw U._result}var Ee=typeof reportError=="function"?reportError:function(U){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var X=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof U=="object"&&U!==null&&typeof U.message=="string"?String(U.message):String(U),error:U});if(!window.dispatchEvent(X))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",U);return}console.error(U)},R={map:Q,forEach:function(U,X,I){Q(U,function(){X.apply(this,arguments)},I)},count:function(U){var X=0;return Q(U,function(){X++}),X},toArray:function(U){return Q(U,function(X){return X})||[]},only:function(U){if(!$(U))throw Error("React.Children.only expected to receive a single React element child.");return U}};return Pe.Activity=p,Pe.Children=R,Pe.Component=k,Pe.Fragment=n,Pe.Profiler=s,Pe.PureComponent=w,Pe.StrictMode=i,Pe.Suspense=d,Pe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=P,Pe.__COMPILER_RUNTIME={__proto__:null,c:function(U){return P.H.useMemoCache(U)}},Pe.cache=function(U){return function(){return U.apply(null,arguments)}},Pe.cacheSignal=function(){return null},Pe.cloneElement=function(U,X,I){if(U==null)throw Error("The argument must be a React element, but you passed "+U+".");var ge=S({},U.props),ye=U.key;if(X!=null)for(he in X.key!==void 0&&(ye=""+X.key),X)!H.call(X,he)||he==="key"||he==="__self"||he==="__source"||he==="ref"&&X.ref===void 0||(ge[he]=X[he]);var he=arguments.length-2;if(he===1)ge.children=I;else if(1<he){for(var Ae=Array(he),Te=0;Te<he;Te++)Ae[Te]=arguments[Te+2];ge.children=Ae}return K(U.type,ye,ge)},Pe.createContext=function(U){return U={$$typeof:o,_currentValue:U,_currentValue2:U,_threadCount:0,Provider:null,Consumer:null},U.Provider=U,U.Consumer={$$typeof:l,_context:U},U},Pe.createElement=function(U,X,I){var ge,ye={},he=null;if(X!=null)for(ge in X.key!==void 0&&(he=""+X.key),X)H.call(X,ge)&&ge!=="key"&&ge!=="__self"&&ge!=="__source"&&(ye[ge]=X[ge]);var Ae=arguments.length-2;if(Ae===1)ye.children=I;else if(1<Ae){for(var Te=Array(Ae),xe=0;xe<Ae;xe++)Te[xe]=arguments[xe+2];ye.children=Te}if(U&&U.defaultProps)for(ge in Ae=U.defaultProps,Ae)ye[ge]===void 0&&(ye[ge]=Ae[ge]);return K(U,he,ye)},Pe.createRef=function(){return{current:null}},Pe.forwardRef=function(U){return{$$typeof:c,render:U}},Pe.isValidElement=$,Pe.lazy=function(U){return{$$typeof:m,_payload:{_status:-1,_result:U},_init:ae}},Pe.memo=function(U,X){return{$$typeof:h,type:U,compare:X===void 0?null:X}},Pe.startTransition=function(U){var X=P.T,I={};P.T=I;try{var ge=U(),ye=P.S;ye!==null&&ye(I,ge),typeof ge=="object"&&ge!==null&&typeof ge.then=="function"&&ge.then(L,Ee)}catch(he){Ee(he)}finally{X!==null&&I.types!==null&&(X.types=I.types),P.T=X}},Pe.unstable_useCacheRefresh=function(){return P.H.useCacheRefresh()},Pe.use=function(U){return P.H.use(U)},Pe.useActionState=function(U,X,I){return P.H.useActionState(U,X,I)},Pe.useCallback=function(U,X){return P.H.useCallback(U,X)},Pe.useContext=function(U){return P.H.useContext(U)},Pe.useDebugValue=function(){},Pe.useDeferredValue=function(U,X){return P.H.useDeferredValue(U,X)},Pe.useEffect=function(U,X){return P.H.useEffect(U,X)},Pe.useEffectEvent=function(U){return P.H.useEffectEvent(U)},Pe.useId=function(){return P.H.useId()},Pe.useImperativeHandle=function(U,X,I){return P.H.useImperativeHandle(U,X,I)},Pe.useInsertionEffect=function(U,X){return P.H.useInsertionEffect(U,X)},Pe.useLayoutEffect=function(U,X){return P.H.useLayoutEffect(U,X)},Pe.useMemo=function(U,X){return P.H.useMemo(U,X)},Pe.useOptimistic=function(U,X){return P.H.useOptimistic(U,X)},Pe.useReducer=function(U,X,I){return P.H.useReducer(U,X,I)},Pe.useRef=function(U){return P.H.useRef(U)},Pe.useState=function(U){return P.H.useState(U)},Pe.useSyncExternalStore=function(U,X,I){return P.H.useSyncExternalStore(U,X,I)},Pe.useTransition=function(){return P.H.useTransition()},Pe.version="19.2.8",Pe}var KE;function eo(){return KE||(KE=1,Lm.exports=eN()),Lm.exports}var C=eo();const ml=N0(C),to=Ww({__proto__:null,default:ml},[C]);var Dm={exports:{}},gu={},Im={exports:{}},Mm={};var XE;function tN(){return XE||(XE=1,(function(e){function t(V,Q){var ae=V.length;V.push(Q);e:for(;0<ae;){var Ee=ae-1>>>1,R=V[Ee];if(0<s(R,Q))V[Ee]=Q,V[ae]=R,ae=Ee;else break e}}function n(V){return V.length===0?null:V[0]}function i(V){if(V.length===0)return null;var Q=V[0],ae=V.pop();if(ae!==Q){V[0]=ae;e:for(var Ee=0,R=V.length,U=R>>>1;Ee<U;){var X=2*(Ee+1)-1,I=V[X],ge=X+1,ye=V[ge];if(0>s(I,ae))ge<R&&0>s(ye,I)?(V[Ee]=ye,V[ge]=ae,Ee=ge):(V[Ee]=I,V[X]=ae,Ee=X);else if(ge<R&&0>s(ye,ae))V[Ee]=ye,V[ge]=ae,Ee=ge;else break e}}return Q}function s(V,Q){var ae=V.sortIndex-Q.sortIndex;return ae!==0?ae:V.id-Q.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var o=Date,c=o.now();e.unstable_now=function(){return o.now()-c}}var d=[],h=[],m=1,p=null,E=3,y=!1,v=!1,S=!1,A=!1,k=typeof setTimeout=="function"?setTimeout:null,N=typeof clearTimeout=="function"?clearTimeout:null,w=typeof setImmediate<"u"?setImmediate:null;function D(V){for(var Q=n(h);Q!==null;){if(Q.callback===null)i(h);else if(Q.startTime<=V)i(h),Q.sortIndex=Q.expirationTime,t(d,Q);else break;Q=n(h)}}function z(V){if(S=!1,D(V),!v)if(n(d)!==null)v=!0,L||(L=!0,Z());else{var Q=n(h);Q!==null&&re(z,Q.startTime-V)}}var L=!1,P=-1,H=5,K=-1;function j(){return A?!0:!(e.unstable_now()-K<H)}function $(){if(A=!1,L){var V=e.unstable_now();K=V;var Q=!0;try{e:{v=!1,S&&(S=!1,N(P),P=-1),y=!0;var ae=E;try{t:{for(D(V),p=n(d);p!==null&&!(p.expirationTime>V&&j());){var Ee=p.callback;if(typeof Ee=="function"){p.callback=null,E=p.priorityLevel;var R=Ee(p.expirationTime<=V);if(V=e.unstable_now(),typeof R=="function"){p.callback=R,D(V),Q=!0;break t}p===n(d)&&i(d),D(V)}else i(d);p=n(d)}if(p!==null)Q=!0;else{var U=n(h);U!==null&&re(z,U.startTime-V),Q=!1}}break e}finally{p=null,E=ae,y=!1}Q=void 0}}finally{Q?Z():L=!1}}}var Z;if(typeof w=="function")Z=function(){w($)};else if(typeof MessageChannel<"u"){var le=new MessageChannel,ue=le.port2;le.port1.onmessage=$,Z=function(){ue.postMessage(null)}}else Z=function(){k($,0)};function re(V,Q){P=k(function(){V(e.unstable_now())},Q)}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(V){V.callback=null},e.unstable_forceFrameRate=function(V){0>V||125<V?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):H=0<V?Math.floor(1e3/V):5},e.unstable_getCurrentPriorityLevel=function(){return E},e.unstable_next=function(V){switch(E){case 1:case 2:case 3:var Q=3;break;default:Q=E}var ae=E;E=Q;try{return V()}finally{E=ae}},e.unstable_requestPaint=function(){A=!0},e.unstable_runWithPriority=function(V,Q){switch(V){case 1:case 2:case 3:case 4:case 5:break;default:V=3}var ae=E;E=V;try{return Q()}finally{E=ae}},e.unstable_scheduleCallback=function(V,Q,ae){var Ee=e.unstable_now();switch(typeof ae=="object"&&ae!==null?(ae=ae.delay,ae=typeof ae=="number"&&0<ae?Ee+ae:Ee):ae=Ee,V){case 1:var R=-1;break;case 2:R=250;break;case 5:R=1073741823;break;case 4:R=1e4;break;default:R=5e3}return R=ae+R,V={id:m++,callback:Q,priorityLevel:V,startTime:ae,expirationTime:R,sortIndex:-1},ae>Ee?(V.sortIndex=ae,t(h,V),n(d)===null&&V===n(h)&&(S?(N(P),P=-1):S=!0,re(z,ae-Ee))):(V.sortIndex=R,t(d,V),v||y||(v=!0,L||(L=!0,Z()))),V},e.unstable_shouldYield=j,e.unstable_wrapCallback=function(V){var Q=E;return function(){var ae=E;E=Q;try{return V.apply(this,arguments)}finally{E=ae}}}})(Mm)),Mm}var QE;function nN(){return QE||(QE=1,Im.exports=tN()),Im.exports}var Pm={exports:{}},sn={};var WE;function rN(){if(WE)return sn;WE=1;var e=eo();function t(d){var h="https://react.dev/errors/"+d;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var m=2;m<arguments.length;m++)h+="&args[]="+encodeURIComponent(arguments[m])}return"Minified React error #"+d+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var i={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},s=Symbol.for("react.portal");function l(d,h,m){var p=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:s,key:p==null?null:""+p,children:d,containerInfo:h,implementation:m}}var o=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function c(d,h){if(d==="font")return"";if(typeof h=="string")return h==="use-credentials"?h:""}return sn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,sn.createPortal=function(d,h){var m=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)throw Error(t(299));return l(d,h,null,m)},sn.flushSync=function(d){var h=o.T,m=i.p;try{if(o.T=null,i.p=2,d)return d()}finally{o.T=h,i.p=m,i.d.f()}},sn.preconnect=function(d,h){typeof d=="string"&&(h?(h=h.crossOrigin,h=typeof h=="string"?h==="use-credentials"?h:"":void 0):h=null,i.d.C(d,h))},sn.prefetchDNS=function(d){typeof d=="string"&&i.d.D(d)},sn.preinit=function(d,h){if(typeof d=="string"&&h&&typeof h.as=="string"){var m=h.as,p=c(m,h.crossOrigin),E=typeof h.integrity=="string"?h.integrity:void 0,y=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;m==="style"?i.d.S(d,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:p,integrity:E,fetchPriority:y}):m==="script"&&i.d.X(d,{crossOrigin:p,integrity:E,fetchPriority:y,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},sn.preinitModule=function(d,h){if(typeof d=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var m=c(h.as,h.crossOrigin);i.d.M(d,{crossOrigin:m,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0})}}else h==null&&i.d.M(d)},sn.preload=function(d,h){if(typeof d=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var m=h.as,p=c(m,h.crossOrigin);i.d.L(d,m,{crossOrigin:p,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0,type:typeof h.type=="string"?h.type:void 0,fetchPriority:typeof h.fetchPriority=="string"?h.fetchPriority:void 0,referrerPolicy:typeof h.referrerPolicy=="string"?h.referrerPolicy:void 0,imageSrcSet:typeof h.imageSrcSet=="string"?h.imageSrcSet:void 0,imageSizes:typeof h.imageSizes=="string"?h.imageSizes:void 0,media:typeof h.media=="string"?h.media:void 0})}},sn.preloadModule=function(d,h){if(typeof d=="string")if(h){var m=c(h.as,h.crossOrigin);i.d.m(d,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:m,integrity:typeof h.integrity=="string"?h.integrity:void 0})}else i.d.m(d)},sn.requestFormReset=function(d){i.d.r(d)},sn.unstable_batchedUpdates=function(d,h){return d(h)},sn.useFormState=function(d,h,m){return o.H.useFormState(d,h,m)},sn.useFormStatus=function(){return o.H.useHostTransitionStatus()},sn.version="19.2.8",sn}var ZE;function rv(){if(ZE)return Pm.exports;ZE=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(t){console.error(t)}}return e(),Pm.exports=rN(),Pm.exports}var JE;function iN(){if(JE)return gu;JE=1;var e=nN(),t=eo(),n=rv();function i(r){var a="https://react.dev/errors/"+r;if(1<arguments.length){a+="?args[]="+encodeURIComponent(arguments[1]);for(var u=2;u<arguments.length;u++)a+="&args[]="+encodeURIComponent(arguments[u])}return"Minified React error #"+r+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11)}function l(r){var a=r,u=r;if(r.alternate)for(;a.return;)a=a.return;else{r=a;do a=r,(a.flags&4098)!==0&&(u=a.return),r=a.return;while(r)}return a.tag===3?u:null}function o(r){if(r.tag===13){var a=r.memoizedState;if(a===null&&(r=r.alternate,r!==null&&(a=r.memoizedState)),a!==null)return a.dehydrated}return null}function c(r){if(r.tag===31){var a=r.memoizedState;if(a===null&&(r=r.alternate,r!==null&&(a=r.memoizedState)),a!==null)return a.dehydrated}return null}function d(r){if(l(r)!==r)throw Error(i(188))}function h(r){var a=r.alternate;if(!a){if(a=l(r),a===null)throw Error(i(188));return a!==r?null:r}for(var u=r,f=a;;){var g=u.return;if(g===null)break;var b=g.alternate;if(b===null){if(f=g.return,f!==null){u=f;continue}break}if(g.child===b.child){for(b=g.child;b;){if(b===u)return d(g),r;if(b===f)return d(g),a;b=b.sibling}throw Error(i(188))}if(u.return!==f.return)u=g,f=b;else{for(var _=!1,O=g.child;O;){if(O===u){_=!0,u=g,f=b;break}if(O===f){_=!0,f=g,u=b;break}O=O.sibling}if(!_){for(O=b.child;O;){if(O===u){_=!0,u=b,f=g;break}if(O===f){_=!0,f=b,u=g;break}O=O.sibling}if(!_)throw Error(i(189))}}if(u.alternate!==f)throw Error(i(190))}if(u.tag!==3)throw Error(i(188));return u.stateNode.current===u?r:a}function m(r){var a=r.tag;if(a===5||a===26||a===27||a===6)return r;for(r=r.child;r!==null;){if(a=m(r),a!==null)return a;r=r.sibling}return null}var p=Object.assign,E=Symbol.for("react.element"),y=Symbol.for("react.transitional.element"),v=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),A=Symbol.for("react.strict_mode"),k=Symbol.for("react.profiler"),N=Symbol.for("react.consumer"),w=Symbol.for("react.context"),D=Symbol.for("react.forward_ref"),z=Symbol.for("react.suspense"),L=Symbol.for("react.suspense_list"),P=Symbol.for("react.memo"),H=Symbol.for("react.lazy"),K=Symbol.for("react.activity"),j=Symbol.for("react.memo_cache_sentinel"),$=Symbol.iterator;function Z(r){return r===null||typeof r!="object"?null:(r=$&&r[$]||r["@@iterator"],typeof r=="function"?r:null)}var le=Symbol.for("react.client.reference");function ue(r){if(r==null)return null;if(typeof r=="function")return r.$$typeof===le?null:r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case S:return"Fragment";case k:return"Profiler";case A:return"StrictMode";case z:return"Suspense";case L:return"SuspenseList";case K:return"Activity"}if(typeof r=="object")switch(r.$$typeof){case v:return"Portal";case w:return r.displayName||"Context";case N:return(r._context.displayName||"Context")+".Consumer";case D:var a=r.render;return r=r.displayName,r||(r=a.displayName||a.name||"",r=r!==""?"ForwardRef("+r+")":"ForwardRef"),r;case P:return a=r.displayName||null,a!==null?a:ue(r.type)||"Memo";case H:a=r._payload,r=r._init;try{return ue(r(a))}catch{}}return null}var re=Array.isArray,V=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ae={pending:!1,data:null,method:null,action:null},Ee=[],R=-1;function U(r){return{current:r}}function X(r){0>R||(r.current=Ee[R],Ee[R]=null,R--)}function I(r,a){R++,Ee[R]=r.current,r.current=a}var ge=U(null),ye=U(null),he=U(null),Ae=U(null);function Te(r,a){switch(I(he,a),I(ye,r),I(ge,null),a.nodeType){case 9:case 11:r=(r=a.documentElement)&&(r=r.namespaceURI)?fE(r):0;break;default:if(r=a.tagName,a=a.namespaceURI)a=fE(a),r=dE(a,r);else switch(r){case"svg":r=1;break;case"math":r=2;break;default:r=0}}X(ge),I(ge,r)}function xe(){X(ge),X(ye),X(he)}function je(r){r.memoizedState!==null&&I(Ae,r);var a=ge.current,u=dE(a,r.type);a!==u&&(I(ye,r),I(ge,u))}function Ne(r){ye.current===r&&(X(ge),X(ye)),Ae.current===r&&(X(Ae),fu._currentValue=ae)}var Me,Ve;function rt(r){if(Me===void 0)try{throw Error()}catch(u){var a=u.stack.trim().match(/\n( *(at )?)/);Me=a&&a[1]||"",Ve=-1<u.stack.indexOf(`
|
|
2
|
+
at`)?" (<anonymous>)":-1<u.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
3
|
+
`+Me+r+Ve}var ut=!1;function Et(r,a){if(!r||ut)return"";ut=!0;var u=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var f={DetermineComponentFrameRoot:function(){try{if(a){var fe=function(){throw Error()};if(Object.defineProperty(fe.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(fe,[])}catch(ie){var ne=ie}Reflect.construct(r,[],fe)}else{try{fe.call()}catch(ie){ne=ie}r.call(fe.prototype)}}else{try{throw Error()}catch(ie){ne=ie}(fe=r())&&typeof fe.catch=="function"&&fe.catch(function(){})}}catch(ie){if(ie&&ne&&typeof ie.stack=="string")return[ie.stack,ne.stack]}return[null,null]}};f.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var g=Object.getOwnPropertyDescriptor(f.DetermineComponentFrameRoot,"name");g&&g.configurable&&Object.defineProperty(f.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var b=f.DetermineComponentFrameRoot(),_=b[0],O=b[1];if(_&&O){var q=_.split(`
|
|
4
|
+
`),te=O.split(`
|
|
5
|
+
`);for(g=f=0;f<q.length&&!q[f].includes("DetermineComponentFrameRoot");)f++;for(;g<te.length&&!te[g].includes("DetermineComponentFrameRoot");)g++;if(f===q.length||g===te.length)for(f=q.length-1,g=te.length-1;1<=f&&0<=g&&q[f]!==te[g];)g--;for(;1<=f&&0<=g;f--,g--)if(q[f]!==te[g]){if(f!==1||g!==1)do if(f--,g--,0>g||q[f]!==te[g]){var oe=`
|
|
6
|
+
`+q[f].replace(" at new "," at ");return r.displayName&&oe.includes("<anonymous>")&&(oe=oe.replace("<anonymous>",r.displayName)),oe}while(1<=f&&0<=g);break}}}finally{ut=!1,Error.prepareStackTrace=u}return(u=r?r.displayName||r.name:"")?rt(u):""}function Vt(r,a){switch(r.tag){case 26:case 27:case 5:return rt(r.type);case 16:return rt("Lazy");case 13:return r.child!==a&&a!==null?rt("Suspense Fallback"):rt("Suspense");case 19:return rt("SuspenseList");case 0:case 15:return Et(r.type,!1);case 11:return Et(r.type.render,!1);case 1:return Et(r.type,!0);case 31:return rt("Activity");default:return""}}function Ut(r){try{var a="",u=null;do a+=Vt(r,u),u=r,r=r.return;while(r);return a}catch(f){return`
|
|
7
|
+
Error generating stack: `+f.message+`
|
|
8
|
+
`+f.stack}}var En=Object.prototype.hasOwnProperty,ke=e.unstable_scheduleCallback,Ue=e.unstable_cancelCallback,At=e.unstable_shouldYield,Je=e.unstable_requestPaint,Qe=e.unstable_now,cn=e.unstable_getCurrentPriorityLevel,Y=e.unstable_ImmediatePriority,de=e.unstable_UserBlockingPriority,we=e.unstable_NormalPriority,De=e.unstable_LowPriority,We=e.unstable_IdlePriority,Dn=e.log,Mr=e.unstable_setDisableYieldValue,fn=null,zt=null;function xn(r){if(typeof Dn=="function"&&Mr(r),zt&&typeof zt.setStrictMode=="function")try{zt.setStrictMode(fn,r)}catch{}}var pt=Math.clz32?Math.clz32:BA,pi=Math.log,ar=Math.LN2;function BA(r){return r>>>=0,r===0?32:31-(pi(r)/ar|0)|0}var bo=256,yo=262144,Eo=4194304;function oa(r){var a=r&42;if(a!==0)return a;switch(r&-r){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return r&261888;case 262144:case 524288:case 1048576:case 2097152:return r&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return r&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return r}}function xo(r,a,u){var f=r.pendingLanes;if(f===0)return 0;var g=0,b=r.suspendedLanes,_=r.pingedLanes;r=r.warmLanes;var O=f&134217727;return O!==0?(f=O&~b,f!==0?g=oa(f):(_&=O,_!==0?g=oa(_):u||(u=O&~r,u!==0&&(g=oa(u))))):(O=f&~b,O!==0?g=oa(O):_!==0?g=oa(_):u||(u=f&~r,u!==0&&(g=oa(u)))),g===0?0:a!==0&&a!==g&&(a&b)===0&&(b=g&-g,u=a&-a,b>=u||b===32&&(u&4194048)!==0)?a:g}function _l(r,a){return(r.pendingLanes&~(r.suspendedLanes&~r.pingedLanes)&a)===0}function jA(r,a){switch(r){case 1:case 2:case 4:case 8:case 64:return a+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return a+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function $g(){var r=Eo;return Eo<<=1,(Eo&62914560)===0&&(Eo=4194304),r}function yd(r){for(var a=[],u=0;31>u;u++)a.push(r);return a}function Cl(r,a){r.pendingLanes|=a,a!==268435456&&(r.suspendedLanes=0,r.pingedLanes=0,r.warmLanes=0)}function HA(r,a,u,f,g,b){var _=r.pendingLanes;r.pendingLanes=u,r.suspendedLanes=0,r.pingedLanes=0,r.warmLanes=0,r.expiredLanes&=u,r.entangledLanes&=u,r.errorRecoveryDisabledLanes&=u,r.shellSuspendCounter=0;var O=r.entanglements,q=r.expirationTimes,te=r.hiddenUpdates;for(u=_&~u;0<u;){var oe=31-pt(u),fe=1<<oe;O[oe]=0,q[oe]=-1;var ne=te[oe];if(ne!==null)for(te[oe]=null,oe=0;oe<ne.length;oe++){var ie=ne[oe];ie!==null&&(ie.lane&=-536870913)}u&=~fe}f!==0&&Gg(r,f,0),b!==0&&g===0&&r.tag!==0&&(r.suspendedLanes|=b&~(_&~a))}function Gg(r,a,u){r.pendingLanes|=a,r.suspendedLanes&=~a;var f=31-pt(a);r.entangledLanes|=a,r.entanglements[f]=r.entanglements[f]|1073741824|u&261930}function Kg(r,a){var u=r.entangledLanes|=a;for(r=r.entanglements;u;){var f=31-pt(u),g=1<<f;g&a|r[f]&a&&(r[f]|=a),u&=~g}}function Xg(r,a){var u=a&-a;return u=(u&42)!==0?1:Ed(u),(u&(r.suspendedLanes|a))!==0?0:u}function Ed(r){switch(r){case 2:r=1;break;case 8:r=4;break;case 32:r=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:r=128;break;case 268435456:r=134217728;break;default:r=0}return r}function xd(r){return r&=-r,2<r?8<r?(r&134217727)!==0?32:268435456:8:2}function Qg(){var r=Q.p;return r!==0?r:(r=window.event,r===void 0?32:ME(r.type))}function Wg(r,a){var u=Q.p;try{return Q.p=r,a()}finally{Q.p=u}}var gi=Math.random().toString(36).slice(2),Zt="__reactFiber$"+gi,Tn="__reactProps$"+gi,as="__reactContainer$"+gi,Td="__reactEvents$"+gi,UA="__reactListeners$"+gi,zA="__reactHandles$"+gi,Zg="__reactResources$"+gi,Al="__reactMarker$"+gi;function vd(r){delete r[Zt],delete r[Tn],delete r[Td],delete r[UA],delete r[zA]}function ss(r){var a=r[Zt];if(a)return a;for(var u=r.parentNode;u;){if(a=u[as]||u[Zt]){if(u=a.alternate,a.child!==null||u!==null&&u.child!==null)for(r=EE(r);r!==null;){if(u=r[Zt])return u;r=EE(r)}return a}r=u,u=r.parentNode}return null}function ls(r){if(r=r[Zt]||r[as]){var a=r.tag;if(a===5||a===6||a===13||a===31||a===26||a===27||a===3)return r}return null}function kl(r){var a=r.tag;if(a===5||a===26||a===27||a===6)return r.stateNode;throw Error(i(33))}function us(r){var a=r[Zg];return a||(a=r[Zg]={hoistableStyles:new Map,hoistableScripts:new Map}),a}function Yt(r){r[Al]=!0}var Jg=new Set,e1={};function ca(r,a){os(r,a),os(r+"Capture",a)}function os(r,a){for(e1[r]=a,r=0;r<a.length;r++)Jg.add(a[r])}var FA=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),t1={},n1={};function qA(r){return En.call(n1,r)?!0:En.call(t1,r)?!1:FA.test(r)?n1[r]=!0:(t1[r]=!0,!1)}function To(r,a,u){if(qA(a))if(u===null)r.removeAttribute(a);else{switch(typeof u){case"undefined":case"function":case"symbol":r.removeAttribute(a);return;case"boolean":var f=a.toLowerCase().slice(0,5);if(f!=="data-"&&f!=="aria-"){r.removeAttribute(a);return}}r.setAttribute(a,""+u)}}function vo(r,a,u){if(u===null)r.removeAttribute(a);else{switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":r.removeAttribute(a);return}r.setAttribute(a,""+u)}}function Pr(r,a,u,f){if(f===null)r.removeAttribute(u);else{switch(typeof f){case"undefined":case"function":case"symbol":case"boolean":r.removeAttribute(u);return}r.setAttributeNS(a,u,""+f)}}function Yn(r){switch(typeof r){case"bigint":case"boolean":case"number":case"string":case"undefined":return r;case"object":return r;default:return""}}function r1(r){var a=r.type;return(r=r.nodeName)&&r.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function VA(r,a,u){var f=Object.getOwnPropertyDescriptor(r.constructor.prototype,a);if(!r.hasOwnProperty(a)&&typeof f<"u"&&typeof f.get=="function"&&typeof f.set=="function"){var g=f.get,b=f.set;return Object.defineProperty(r,a,{configurable:!0,get:function(){return g.call(this)},set:function(_){u=""+_,b.call(this,_)}}),Object.defineProperty(r,a,{enumerable:f.enumerable}),{getValue:function(){return u},setValue:function(_){u=""+_},stopTracking:function(){r._valueTracker=null,delete r[a]}}}}function Sd(r){if(!r._valueTracker){var a=r1(r)?"checked":"value";r._valueTracker=VA(r,a,""+r[a])}}function i1(r){if(!r)return!1;var a=r._valueTracker;if(!a)return!0;var u=a.getValue(),f="";return r&&(f=r1(r)?r.checked?"true":"false":r.value),r=f,r!==u?(a.setValue(r),!0):!1}function So(r){if(r=r||(typeof document<"u"?document:void 0),typeof r>"u")return null;try{return r.activeElement||r.body}catch{return r.body}}var YA=/[\n"\\]/g;function $n(r){return r.replace(YA,function(a){return"\\"+a.charCodeAt(0).toString(16)+" "})}function _d(r,a,u,f,g,b,_,O){r.name="",_!=null&&typeof _!="function"&&typeof _!="symbol"&&typeof _!="boolean"?r.type=_:r.removeAttribute("type"),a!=null?_==="number"?(a===0&&r.value===""||r.value!=a)&&(r.value=""+Yn(a)):r.value!==""+Yn(a)&&(r.value=""+Yn(a)):_!=="submit"&&_!=="reset"||r.removeAttribute("value"),a!=null?Cd(r,_,Yn(a)):u!=null?Cd(r,_,Yn(u)):f!=null&&r.removeAttribute("value"),g==null&&b!=null&&(r.defaultChecked=!!b),g!=null&&(r.checked=g&&typeof g!="function"&&typeof g!="symbol"),O!=null&&typeof O!="function"&&typeof O!="symbol"&&typeof O!="boolean"?r.name=""+Yn(O):r.removeAttribute("name")}function a1(r,a,u,f,g,b,_,O){if(b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"&&(r.type=b),a!=null||u!=null){if(!(b!=="submit"&&b!=="reset"||a!=null)){Sd(r);return}u=u!=null?""+Yn(u):"",a=a!=null?""+Yn(a):u,O||a===r.value||(r.value=a),r.defaultValue=a}f=f??g,f=typeof f!="function"&&typeof f!="symbol"&&!!f,r.checked=O?r.checked:!!f,r.defaultChecked=!!f,_!=null&&typeof _!="function"&&typeof _!="symbol"&&typeof _!="boolean"&&(r.name=_),Sd(r)}function Cd(r,a,u){a==="number"&&So(r.ownerDocument)===r||r.defaultValue===""+u||(r.defaultValue=""+u)}function cs(r,a,u,f){if(r=r.options,a){a={};for(var g=0;g<u.length;g++)a["$"+u[g]]=!0;for(u=0;u<r.length;u++)g=a.hasOwnProperty("$"+r[u].value),r[u].selected!==g&&(r[u].selected=g),g&&f&&(r[u].defaultSelected=!0)}else{for(u=""+Yn(u),a=null,g=0;g<r.length;g++){if(r[g].value===u){r[g].selected=!0,f&&(r[g].defaultSelected=!0);return}a!==null||r[g].disabled||(a=r[g])}a!==null&&(a.selected=!0)}}function s1(r,a,u){if(a!=null&&(a=""+Yn(a),a!==r.value&&(r.value=a),u==null)){r.defaultValue!==a&&(r.defaultValue=a);return}r.defaultValue=u!=null?""+Yn(u):""}function l1(r,a,u,f){if(a==null){if(f!=null){if(u!=null)throw Error(i(92));if(re(f)){if(1<f.length)throw Error(i(93));f=f[0]}u=f}u==null&&(u=""),a=u}u=Yn(a),r.defaultValue=u,f=r.textContent,f===u&&f!==""&&f!==null&&(r.value=f),Sd(r)}function fs(r,a){if(a){var u=r.firstChild;if(u&&u===r.lastChild&&u.nodeType===3){u.nodeValue=a;return}}r.textContent=a}var $A=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function u1(r,a,u){var f=a.indexOf("--")===0;u==null||typeof u=="boolean"||u===""?f?r.setProperty(a,""):a==="float"?r.cssFloat="":r[a]="":f?r.setProperty(a,u):typeof u!="number"||u===0||$A.has(a)?a==="float"?r.cssFloat=u:r[a]=(""+u).trim():r[a]=u+"px"}function o1(r,a,u){if(a!=null&&typeof a!="object")throw Error(i(62));if(r=r.style,u!=null){for(var f in u)!u.hasOwnProperty(f)||a!=null&&a.hasOwnProperty(f)||(f.indexOf("--")===0?r.setProperty(f,""):f==="float"?r.cssFloat="":r[f]="");for(var g in a)f=a[g],a.hasOwnProperty(g)&&u[g]!==f&&u1(r,g,f)}else for(var b in a)a.hasOwnProperty(b)&&u1(r,b,a[b])}function Ad(r){if(r.indexOf("-")===-1)return!1;switch(r){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 GA=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),KA=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function _o(r){return KA.test(""+r)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":r}function Br(){}var kd=null;function wd(r){return r=r.target||r.srcElement||window,r.correspondingUseElement&&(r=r.correspondingUseElement),r.nodeType===3?r.parentNode:r}var ds=null,hs=null;function c1(r){var a=ls(r);if(a&&(r=a.stateNode)){var u=r[Tn]||null;e:switch(r=a.stateNode,a.type){case"input":if(_d(r,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name),a=u.name,u.type==="radio"&&a!=null){for(u=r;u.parentNode;)u=u.parentNode;for(u=u.querySelectorAll('input[name="'+$n(""+a)+'"][type="radio"]'),a=0;a<u.length;a++){var f=u[a];if(f!==r&&f.form===r.form){var g=f[Tn]||null;if(!g)throw Error(i(90));_d(f,g.value,g.defaultValue,g.defaultValue,g.checked,g.defaultChecked,g.type,g.name)}}for(a=0;a<u.length;a++)f=u[a],f.form===r.form&&i1(f)}break e;case"textarea":s1(r,u.value,u.defaultValue);break e;case"select":a=u.value,a!=null&&cs(r,!!u.multiple,a,!1)}}}var Nd=!1;function f1(r,a,u){if(Nd)return r(a,u);Nd=!0;try{var f=r(a);return f}finally{if(Nd=!1,(ds!==null||hs!==null)&&(fc(),ds&&(a=ds,r=hs,hs=ds=null,c1(a),r)))for(a=0;a<r.length;a++)c1(r[a])}}function wl(r,a){var u=r.stateNode;if(u===null)return null;var f=u[Tn]||null;if(f===null)return null;u=f[a];e:switch(a){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(f=!f.disabled)||(r=r.type,f=!(r==="button"||r==="input"||r==="select"||r==="textarea")),r=!f;break e;default:r=!1}if(r)return null;if(u&&typeof u!="function")throw Error(i(231,a,typeof u));return u}var jr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Rd=!1;if(jr)try{var Nl={};Object.defineProperty(Nl,"passive",{get:function(){Rd=!0}}),window.addEventListener("test",Nl,Nl),window.removeEventListener("test",Nl,Nl)}catch{Rd=!1}var bi=null,Od=null,Co=null;function d1(){if(Co)return Co;var r,a=Od,u=a.length,f,g="value"in bi?bi.value:bi.textContent,b=g.length;for(r=0;r<u&&a[r]===g[r];r++);var _=u-r;for(f=1;f<=_&&a[u-f]===g[b-f];f++);return Co=g.slice(r,1<f?1-f:void 0)}function Ao(r){var a=r.keyCode;return"charCode"in r?(r=r.charCode,r===0&&a===13&&(r=13)):r=a,r===10&&(r=13),32<=r||r===13?r:0}function ko(){return!0}function h1(){return!1}function vn(r){function a(u,f,g,b,_){this._reactName=u,this._targetInst=g,this.type=f,this.nativeEvent=b,this.target=_,this.currentTarget=null;for(var O in r)r.hasOwnProperty(O)&&(u=r[O],this[O]=u?u(b):b[O]);return this.isDefaultPrevented=(b.defaultPrevented!=null?b.defaultPrevented:b.returnValue===!1)?ko:h1,this.isPropagationStopped=h1,this}return p(a.prototype,{preventDefault:function(){this.defaultPrevented=!0;var u=this.nativeEvent;u&&(u.preventDefault?u.preventDefault():typeof u.returnValue!="unknown"&&(u.returnValue=!1),this.isDefaultPrevented=ko)},stopPropagation:function(){var u=this.nativeEvent;u&&(u.stopPropagation?u.stopPropagation():typeof u.cancelBubble!="unknown"&&(u.cancelBubble=!0),this.isPropagationStopped=ko)},persist:function(){},isPersistent:ko}),a}var fa={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(r){return r.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},wo=vn(fa),Rl=p({},fa,{view:0,detail:0}),XA=vn(Rl),Ld,Dd,Ol,No=p({},Rl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Md,button:0,buttons:0,relatedTarget:function(r){return r.relatedTarget===void 0?r.fromElement===r.srcElement?r.toElement:r.fromElement:r.relatedTarget},movementX:function(r){return"movementX"in r?r.movementX:(r!==Ol&&(Ol&&r.type==="mousemove"?(Ld=r.screenX-Ol.screenX,Dd=r.screenY-Ol.screenY):Dd=Ld=0,Ol=r),Ld)},movementY:function(r){return"movementY"in r?r.movementY:Dd}}),m1=vn(No),QA=p({},No,{dataTransfer:0}),WA=vn(QA),ZA=p({},Rl,{relatedTarget:0}),Id=vn(ZA),JA=p({},fa,{animationName:0,elapsedTime:0,pseudoElement:0}),ek=vn(JA),tk=p({},fa,{clipboardData:function(r){return"clipboardData"in r?r.clipboardData:window.clipboardData}}),nk=vn(tk),rk=p({},fa,{data:0}),p1=vn(rk),ik={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ak={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"},sk={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function lk(r){var a=this.nativeEvent;return a.getModifierState?a.getModifierState(r):(r=sk[r])?!!a[r]:!1}function Md(){return lk}var uk=p({},Rl,{key:function(r){if(r.key){var a=ik[r.key]||r.key;if(a!=="Unidentified")return a}return r.type==="keypress"?(r=Ao(r),r===13?"Enter":String.fromCharCode(r)):r.type==="keydown"||r.type==="keyup"?ak[r.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Md,charCode:function(r){return r.type==="keypress"?Ao(r):0},keyCode:function(r){return r.type==="keydown"||r.type==="keyup"?r.keyCode:0},which:function(r){return r.type==="keypress"?Ao(r):r.type==="keydown"||r.type==="keyup"?r.keyCode:0}}),ok=vn(uk),ck=p({},No,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),g1=vn(ck),fk=p({},Rl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Md}),dk=vn(fk),hk=p({},fa,{propertyName:0,elapsedTime:0,pseudoElement:0}),mk=vn(hk),pk=p({},No,{deltaX:function(r){return"deltaX"in r?r.deltaX:"wheelDeltaX"in r?-r.wheelDeltaX:0},deltaY:function(r){return"deltaY"in r?r.deltaY:"wheelDeltaY"in r?-r.wheelDeltaY:"wheelDelta"in r?-r.wheelDelta:0},deltaZ:0,deltaMode:0}),gk=vn(pk),bk=p({},fa,{newState:0,oldState:0}),yk=vn(bk),Ek=[9,13,27,32],Pd=jr&&"CompositionEvent"in window,Ll=null;jr&&"documentMode"in document&&(Ll=document.documentMode);var xk=jr&&"TextEvent"in window&&!Ll,b1=jr&&(!Pd||Ll&&8<Ll&&11>=Ll),y1=" ",E1=!1;function x1(r,a){switch(r){case"keyup":return Ek.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function T1(r){return r=r.detail,typeof r=="object"&&"data"in r?r.data:null}var ms=!1;function Tk(r,a){switch(r){case"compositionend":return T1(a);case"keypress":return a.which!==32?null:(E1=!0,y1);case"textInput":return r=a.data,r===y1&&E1?null:r;default:return null}}function vk(r,a){if(ms)return r==="compositionend"||!Pd&&x1(r,a)?(r=d1(),Co=Od=bi=null,ms=!1,r):null;switch(r){case"paste":return null;case"keypress":if(!(a.ctrlKey||a.altKey||a.metaKey)||a.ctrlKey&&a.altKey){if(a.char&&1<a.char.length)return a.char;if(a.which)return String.fromCharCode(a.which)}return null;case"compositionend":return b1&&a.locale!=="ko"?null:a.data;default:return null}}var Sk={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 v1(r){var a=r&&r.nodeName&&r.nodeName.toLowerCase();return a==="input"?!!Sk[r.type]:a==="textarea"}function S1(r,a,u,f){ds?hs?hs.push(f):hs=[f]:ds=f,a=yc(a,"onChange"),0<a.length&&(u=new wo("onChange","change",null,u,f),r.push({event:u,listeners:a}))}var Dl=null,Il=null;function _k(r){aE(r,0)}function Ro(r){var a=kl(r);if(i1(a))return r}function _1(r,a){if(r==="change")return a}var C1=!1;if(jr){var Bd;if(jr){var jd="oninput"in document;if(!jd){var A1=document.createElement("div");A1.setAttribute("oninput","return;"),jd=typeof A1.oninput=="function"}Bd=jd}else Bd=!1;C1=Bd&&(!document.documentMode||9<document.documentMode)}function k1(){Dl&&(Dl.detachEvent("onpropertychange",w1),Il=Dl=null)}function w1(r){if(r.propertyName==="value"&&Ro(Il)){var a=[];S1(a,Il,r,wd(r)),f1(_k,a)}}function Ck(r,a,u){r==="focusin"?(k1(),Dl=a,Il=u,Dl.attachEvent("onpropertychange",w1)):r==="focusout"&&k1()}function Ak(r){if(r==="selectionchange"||r==="keyup"||r==="keydown")return Ro(Il)}function kk(r,a){if(r==="click")return Ro(a)}function wk(r,a){if(r==="input"||r==="change")return Ro(a)}function Nk(r,a){return r===a&&(r!==0||1/r===1/a)||r!==r&&a!==a}var In=typeof Object.is=="function"?Object.is:Nk;function Ml(r,a){if(In(r,a))return!0;if(typeof r!="object"||r===null||typeof a!="object"||a===null)return!1;var u=Object.keys(r),f=Object.keys(a);if(u.length!==f.length)return!1;for(f=0;f<u.length;f++){var g=u[f];if(!En.call(a,g)||!In(r[g],a[g]))return!1}return!0}function N1(r){for(;r&&r.firstChild;)r=r.firstChild;return r}function R1(r,a){var u=N1(r);r=0;for(var f;u;){if(u.nodeType===3){if(f=r+u.textContent.length,r<=a&&f>=a)return{node:u,offset:a-r};r=f}e:{for(;u;){if(u.nextSibling){u=u.nextSibling;break e}u=u.parentNode}u=void 0}u=N1(u)}}function O1(r,a){return r&&a?r===a?!0:r&&r.nodeType===3?!1:a&&a.nodeType===3?O1(r,a.parentNode):"contains"in r?r.contains(a):r.compareDocumentPosition?!!(r.compareDocumentPosition(a)&16):!1:!1}function L1(r){r=r!=null&&r.ownerDocument!=null&&r.ownerDocument.defaultView!=null?r.ownerDocument.defaultView:window;for(var a=So(r.document);a instanceof r.HTMLIFrameElement;){try{var u=typeof a.contentWindow.location.href=="string"}catch{u=!1}if(u)r=a.contentWindow;else break;a=So(r.document)}return a}function Hd(r){var a=r&&r.nodeName&&r.nodeName.toLowerCase();return a&&(a==="input"&&(r.type==="text"||r.type==="search"||r.type==="tel"||r.type==="url"||r.type==="password")||a==="textarea"||r.contentEditable==="true")}var Rk=jr&&"documentMode"in document&&11>=document.documentMode,ps=null,Ud=null,Pl=null,zd=!1;function D1(r,a,u){var f=u.window===u?u.document:u.nodeType===9?u:u.ownerDocument;zd||ps==null||ps!==So(f)||(f=ps,"selectionStart"in f&&Hd(f)?f={start:f.selectionStart,end:f.selectionEnd}:(f=(f.ownerDocument&&f.ownerDocument.defaultView||window).getSelection(),f={anchorNode:f.anchorNode,anchorOffset:f.anchorOffset,focusNode:f.focusNode,focusOffset:f.focusOffset}),Pl&&Ml(Pl,f)||(Pl=f,f=yc(Ud,"onSelect"),0<f.length&&(a=new wo("onSelect","select",null,a,u),r.push({event:a,listeners:f}),a.target=ps)))}function da(r,a){var u={};return u[r.toLowerCase()]=a.toLowerCase(),u["Webkit"+r]="webkit"+a,u["Moz"+r]="moz"+a,u}var gs={animationend:da("Animation","AnimationEnd"),animationiteration:da("Animation","AnimationIteration"),animationstart:da("Animation","AnimationStart"),transitionrun:da("Transition","TransitionRun"),transitionstart:da("Transition","TransitionStart"),transitioncancel:da("Transition","TransitionCancel"),transitionend:da("Transition","TransitionEnd")},Fd={},I1={};jr&&(I1=document.createElement("div").style,"AnimationEvent"in window||(delete gs.animationend.animation,delete gs.animationiteration.animation,delete gs.animationstart.animation),"TransitionEvent"in window||delete gs.transitionend.transition);function ha(r){if(Fd[r])return Fd[r];if(!gs[r])return r;var a=gs[r],u;for(u in a)if(a.hasOwnProperty(u)&&u in I1)return Fd[r]=a[u];return r}var M1=ha("animationend"),P1=ha("animationiteration"),B1=ha("animationstart"),Ok=ha("transitionrun"),Lk=ha("transitionstart"),Dk=ha("transitioncancel"),j1=ha("transitionend"),H1=new Map,qd="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");qd.push("scrollEnd");function sr(r,a){H1.set(r,a),ca(a,[r])}var Oo=typeof reportError=="function"?reportError:function(r){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var a=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof r=="object"&&r!==null&&typeof r.message=="string"?String(r.message):String(r),error:r});if(!window.dispatchEvent(a))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",r);return}console.error(r)},Gn=[],bs=0,Vd=0;function Lo(){for(var r=bs,a=Vd=bs=0;a<r;){var u=Gn[a];Gn[a++]=null;var f=Gn[a];Gn[a++]=null;var g=Gn[a];Gn[a++]=null;var b=Gn[a];if(Gn[a++]=null,f!==null&&g!==null){var _=f.pending;_===null?g.next=g:(g.next=_.next,_.next=g),f.pending=g}b!==0&&U1(u,g,b)}}function Do(r,a,u,f){Gn[bs++]=r,Gn[bs++]=a,Gn[bs++]=u,Gn[bs++]=f,Vd|=f,r.lanes|=f,r=r.alternate,r!==null&&(r.lanes|=f)}function Yd(r,a,u,f){return Do(r,a,u,f),Io(r)}function ma(r,a){return Do(r,null,null,a),Io(r)}function U1(r,a,u){r.lanes|=u;var f=r.alternate;f!==null&&(f.lanes|=u);for(var g=!1,b=r.return;b!==null;)b.childLanes|=u,f=b.alternate,f!==null&&(f.childLanes|=u),b.tag===22&&(r=b.stateNode,r===null||r._visibility&1||(g=!0)),r=b,b=b.return;return r.tag===3?(b=r.stateNode,g&&a!==null&&(g=31-pt(u),r=b.hiddenUpdates,f=r[g],f===null?r[g]=[a]:f.push(a),a.lane=u|536870912),b):null}function Io(r){if(50<iu)throw iu=0,em=null,Error(i(185));for(var a=r.return;a!==null;)r=a,a=r.return;return r.tag===3?r.stateNode:null}var ys={};function Ik(r,a,u,f){this.tag=r,this.key=u,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=a,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=f,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Mn(r,a,u,f){return new Ik(r,a,u,f)}function $d(r){return r=r.prototype,!(!r||!r.isReactComponent)}function Hr(r,a){var u=r.alternate;return u===null?(u=Mn(r.tag,a,r.key,r.mode),u.elementType=r.elementType,u.type=r.type,u.stateNode=r.stateNode,u.alternate=r,r.alternate=u):(u.pendingProps=a,u.type=r.type,u.flags=0,u.subtreeFlags=0,u.deletions=null),u.flags=r.flags&65011712,u.childLanes=r.childLanes,u.lanes=r.lanes,u.child=r.child,u.memoizedProps=r.memoizedProps,u.memoizedState=r.memoizedState,u.updateQueue=r.updateQueue,a=r.dependencies,u.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},u.sibling=r.sibling,u.index=r.index,u.ref=r.ref,u.refCleanup=r.refCleanup,u}function z1(r,a){r.flags&=65011714;var u=r.alternate;return u===null?(r.childLanes=0,r.lanes=a,r.child=null,r.subtreeFlags=0,r.memoizedProps=null,r.memoizedState=null,r.updateQueue=null,r.dependencies=null,r.stateNode=null):(r.childLanes=u.childLanes,r.lanes=u.lanes,r.child=u.child,r.subtreeFlags=0,r.deletions=null,r.memoizedProps=u.memoizedProps,r.memoizedState=u.memoizedState,r.updateQueue=u.updateQueue,r.type=u.type,a=u.dependencies,r.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext}),r}function Mo(r,a,u,f,g,b){var _=0;if(f=r,typeof r=="function")$d(r)&&(_=1);else if(typeof r=="string")_=Hw(r,u,ge.current)?26:r==="html"||r==="head"||r==="body"?27:5;else e:switch(r){case K:return r=Mn(31,u,a,g),r.elementType=K,r.lanes=b,r;case S:return pa(u.children,g,b,a);case A:_=8,g|=24;break;case k:return r=Mn(12,u,a,g|2),r.elementType=k,r.lanes=b,r;case z:return r=Mn(13,u,a,g),r.elementType=z,r.lanes=b,r;case L:return r=Mn(19,u,a,g),r.elementType=L,r.lanes=b,r;default:if(typeof r=="object"&&r!==null)switch(r.$$typeof){case w:_=10;break e;case N:_=9;break e;case D:_=11;break e;case P:_=14;break e;case H:_=16,f=null;break e}_=29,u=Error(i(130,r===null?"null":typeof r,"")),f=null}return a=Mn(_,u,a,g),a.elementType=r,a.type=f,a.lanes=b,a}function pa(r,a,u,f){return r=Mn(7,r,f,a),r.lanes=u,r}function Gd(r,a,u){return r=Mn(6,r,null,a),r.lanes=u,r}function F1(r){var a=Mn(18,null,null,0);return a.stateNode=r,a}function Kd(r,a,u){return a=Mn(4,r.children!==null?r.children:[],r.key,a),a.lanes=u,a.stateNode={containerInfo:r.containerInfo,pendingChildren:null,implementation:r.implementation},a}var q1=new WeakMap;function Kn(r,a){if(typeof r=="object"&&r!==null){var u=q1.get(r);return u!==void 0?u:(a={value:r,source:a,stack:Ut(a)},q1.set(r,a),a)}return{value:r,source:a,stack:Ut(a)}}var Es=[],xs=0,Po=null,Bl=0,Xn=[],Qn=0,yi=null,br=1,yr="";function Ur(r,a){Es[xs++]=Bl,Es[xs++]=Po,Po=r,Bl=a}function V1(r,a,u){Xn[Qn++]=br,Xn[Qn++]=yr,Xn[Qn++]=yi,yi=r;var f=br;r=yr;var g=32-pt(f)-1;f&=~(1<<g),u+=1;var b=32-pt(a)+g;if(30<b){var _=g-g%5;b=(f&(1<<_)-1).toString(32),f>>=_,g-=_,br=1<<32-pt(a)+g|u<<g|f,yr=b+r}else br=1<<b|u<<g|f,yr=r}function Xd(r){r.return!==null&&(Ur(r,1),V1(r,1,0))}function Qd(r){for(;r===Po;)Po=Es[--xs],Es[xs]=null,Bl=Es[--xs],Es[xs]=null;for(;r===yi;)yi=Xn[--Qn],Xn[Qn]=null,yr=Xn[--Qn],Xn[Qn]=null,br=Xn[--Qn],Xn[Qn]=null}function Y1(r,a){Xn[Qn++]=br,Xn[Qn++]=yr,Xn[Qn++]=yi,br=a.id,yr=a.overflow,yi=r}var Jt=null,xt=null,Ze=!1,Ei=null,Wn=!1,Wd=Error(i(519));function xi(r){var a=Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw jl(Kn(a,r)),Wd}function $1(r){var a=r.stateNode,u=r.type,f=r.memoizedProps;switch(a[Zt]=r,a[Tn]=f,u){case"dialog":$e("cancel",a),$e("close",a);break;case"iframe":case"object":case"embed":$e("load",a);break;case"video":case"audio":for(u=0;u<su.length;u++)$e(su[u],a);break;case"source":$e("error",a);break;case"img":case"image":case"link":$e("error",a),$e("load",a);break;case"details":$e("toggle",a);break;case"input":$e("invalid",a),a1(a,f.value,f.defaultValue,f.checked,f.defaultChecked,f.type,f.name,!0);break;case"select":$e("invalid",a);break;case"textarea":$e("invalid",a),l1(a,f.value,f.defaultValue,f.children)}u=f.children,typeof u!="string"&&typeof u!="number"&&typeof u!="bigint"||a.textContent===""+u||f.suppressHydrationWarning===!0||oE(a.textContent,u)?(f.popover!=null&&($e("beforetoggle",a),$e("toggle",a)),f.onScroll!=null&&$e("scroll",a),f.onScrollEnd!=null&&$e("scrollend",a),f.onClick!=null&&(a.onclick=Br),a=!0):a=!1,a||xi(r,!0)}function G1(r){for(Jt=r.return;Jt;)switch(Jt.tag){case 5:case 31:case 13:Wn=!1;return;case 27:case 3:Wn=!0;return;default:Jt=Jt.return}}function Ts(r){if(r!==Jt)return!1;if(!Ze)return G1(r),Ze=!0,!1;var a=r.tag,u;if((u=a!==3&&a!==27)&&((u=a===5)&&(u=r.type,u=!(u!=="form"&&u!=="button")||pm(r.type,r.memoizedProps)),u=!u),u&&xt&&xi(r),G1(r),a===13){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(i(317));xt=yE(r)}else if(a===31){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(i(317));xt=yE(r)}else a===27?(a=xt,Ii(r.type)?(r=xm,xm=null,xt=r):xt=a):xt=Jt?Jn(r.stateNode.nextSibling):null;return!0}function ga(){xt=Jt=null,Ze=!1}function Zd(){var r=Ei;return r!==null&&(An===null?An=r:An.push.apply(An,r),Ei=null),r}function jl(r){Ei===null?Ei=[r]:Ei.push(r)}var Jd=U(null),ba=null,zr=null;function Ti(r,a,u){I(Jd,a._currentValue),a._currentValue=u}function Fr(r){r._currentValue=Jd.current,X(Jd)}function eh(r,a,u){for(;r!==null;){var f=r.alternate;if((r.childLanes&a)!==a?(r.childLanes|=a,f!==null&&(f.childLanes|=a)):f!==null&&(f.childLanes&a)!==a&&(f.childLanes|=a),r===u)break;r=r.return}}function th(r,a,u,f){var g=r.child;for(g!==null&&(g.return=r);g!==null;){var b=g.dependencies;if(b!==null){var _=g.child;b=b.firstContext;e:for(;b!==null;){var O=b;b=g;for(var q=0;q<a.length;q++)if(O.context===a[q]){b.lanes|=u,O=b.alternate,O!==null&&(O.lanes|=u),eh(b.return,u,r),f||(_=null);break e}b=O.next}}else if(g.tag===18){if(_=g.return,_===null)throw Error(i(341));_.lanes|=u,b=_.alternate,b!==null&&(b.lanes|=u),eh(_,u,r),_=null}else _=g.child;if(_!==null)_.return=g;else for(_=g;_!==null;){if(_===r){_=null;break}if(g=_.sibling,g!==null){g.return=_.return,_=g;break}_=_.return}g=_}}function vs(r,a,u,f){r=null;for(var g=a,b=!1;g!==null;){if(!b){if((g.flags&524288)!==0)b=!0;else if((g.flags&262144)!==0)break}if(g.tag===10){var _=g.alternate;if(_===null)throw Error(i(387));if(_=_.memoizedProps,_!==null){var O=g.type;In(g.pendingProps.value,_.value)||(r!==null?r.push(O):r=[O])}}else if(g===Ae.current){if(_=g.alternate,_===null)throw Error(i(387));_.memoizedState.memoizedState!==g.memoizedState.memoizedState&&(r!==null?r.push(fu):r=[fu])}g=g.return}r!==null&&th(a,r,u,f),a.flags|=262144}function Bo(r){for(r=r.firstContext;r!==null;){if(!In(r.context._currentValue,r.memoizedValue))return!0;r=r.next}return!1}function ya(r){ba=r,zr=null,r=r.dependencies,r!==null&&(r.firstContext=null)}function en(r){return K1(ba,r)}function jo(r,a){return ba===null&&ya(r),K1(r,a)}function K1(r,a){var u=a._currentValue;if(a={context:a,memoizedValue:u,next:null},zr===null){if(r===null)throw Error(i(308));zr=a,r.dependencies={lanes:0,firstContext:a},r.flags|=524288}else zr=zr.next=a;return u}var Mk=typeof AbortController<"u"?AbortController:function(){var r=[],a=this.signal={aborted:!1,addEventListener:function(u,f){r.push(f)}};this.abort=function(){a.aborted=!0,r.forEach(function(u){return u()})}},Pk=e.unstable_scheduleCallback,Bk=e.unstable_NormalPriority,It={$$typeof:w,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function nh(){return{controller:new Mk,data:new Map,refCount:0}}function Hl(r){r.refCount--,r.refCount===0&&Pk(Bk,function(){r.controller.abort()})}var Ul=null,rh=0,Ss=0,_s=null;function jk(r,a){if(Ul===null){var u=Ul=[];rh=0,Ss=sm(),_s={status:"pending",value:void 0,then:function(f){u.push(f)}}}return rh++,a.then(X1,X1),a}function X1(){if(--rh===0&&Ul!==null){_s!==null&&(_s.status="fulfilled");var r=Ul;Ul=null,Ss=0,_s=null;for(var a=0;a<r.length;a++)(0,r[a])()}}function Hk(r,a){var u=[],f={status:"pending",value:null,reason:null,then:function(g){u.push(g)}};return r.then(function(){f.status="fulfilled",f.value=a;for(var g=0;g<u.length;g++)(0,u[g])(a)},function(g){for(f.status="rejected",f.reason=g,g=0;g<u.length;g++)(0,u[g])(void 0)}),f}var Q1=V.S;V.S=function(r,a){Dy=Qe(),typeof a=="object"&&a!==null&&typeof a.then=="function"&&jk(r,a),Q1!==null&&Q1(r,a)};var Ea=U(null);function ih(){var r=Ea.current;return r!==null?r:gt.pooledCache}function Ho(r,a){a===null?I(Ea,Ea.current):I(Ea,a.pool)}function W1(){var r=ih();return r===null?null:{parent:It._currentValue,pool:r}}var Cs=Error(i(460)),ah=Error(i(474)),Uo=Error(i(542)),zo={then:function(){}};function Z1(r){return r=r.status,r==="fulfilled"||r==="rejected"}function J1(r,a,u){switch(u=r[u],u===void 0?r.push(a):u!==a&&(a.then(Br,Br),a=u),a.status){case"fulfilled":return a.value;case"rejected":throw r=a.reason,tb(r),r;default:if(typeof a.status=="string")a.then(Br,Br);else{if(r=gt,r!==null&&100<r.shellSuspendCounter)throw Error(i(482));r=a,r.status="pending",r.then(function(f){if(a.status==="pending"){var g=a;g.status="fulfilled",g.value=f}},function(f){if(a.status==="pending"){var g=a;g.status="rejected",g.reason=f}})}switch(a.status){case"fulfilled":return a.value;case"rejected":throw r=a.reason,tb(r),r}throw Ta=a,Cs}}function xa(r){try{var a=r._init;return a(r._payload)}catch(u){throw u!==null&&typeof u=="object"&&typeof u.then=="function"?(Ta=u,Cs):u}}var Ta=null;function eb(){if(Ta===null)throw Error(i(459));var r=Ta;return Ta=null,r}function tb(r){if(r===Cs||r===Uo)throw Error(i(483))}var As=null,zl=0;function Fo(r){var a=zl;return zl+=1,As===null&&(As=[]),J1(As,r,a)}function Fl(r,a){a=a.props.ref,r.ref=a!==void 0?a:null}function qo(r,a){throw a.$$typeof===E?Error(i(525)):(r=Object.prototype.toString.call(a),Error(i(31,r==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":r)))}function nb(r){function a(W,G){if(r){var ee=W.deletions;ee===null?(W.deletions=[G],W.flags|=16):ee.push(G)}}function u(W,G){if(!r)return null;for(;G!==null;)a(W,G),G=G.sibling;return null}function f(W){for(var G=new Map;W!==null;)W.key!==null?G.set(W.key,W):G.set(W.index,W),W=W.sibling;return G}function g(W,G){return W=Hr(W,G),W.index=0,W.sibling=null,W}function b(W,G,ee){return W.index=ee,r?(ee=W.alternate,ee!==null?(ee=ee.index,ee<G?(W.flags|=67108866,G):ee):(W.flags|=67108866,G)):(W.flags|=1048576,G)}function _(W){return r&&W.alternate===null&&(W.flags|=67108866),W}function O(W,G,ee,ce){return G===null||G.tag!==6?(G=Gd(ee,W.mode,ce),G.return=W,G):(G=g(G,ee),G.return=W,G)}function q(W,G,ee,ce){var Re=ee.type;return Re===S?oe(W,G,ee.props.children,ce,ee.key):G!==null&&(G.elementType===Re||typeof Re=="object"&&Re!==null&&Re.$$typeof===H&&xa(Re)===G.type)?(G=g(G,ee.props),Fl(G,ee),G.return=W,G):(G=Mo(ee.type,ee.key,ee.props,null,W.mode,ce),Fl(G,ee),G.return=W,G)}function te(W,G,ee,ce){return G===null||G.tag!==4||G.stateNode.containerInfo!==ee.containerInfo||G.stateNode.implementation!==ee.implementation?(G=Kd(ee,W.mode,ce),G.return=W,G):(G=g(G,ee.children||[]),G.return=W,G)}function oe(W,G,ee,ce,Re){return G===null||G.tag!==7?(G=pa(ee,W.mode,ce,Re),G.return=W,G):(G=g(G,ee),G.return=W,G)}function fe(W,G,ee){if(typeof G=="string"&&G!==""||typeof G=="number"||typeof G=="bigint")return G=Gd(""+G,W.mode,ee),G.return=W,G;if(typeof G=="object"&&G!==null){switch(G.$$typeof){case y:return ee=Mo(G.type,G.key,G.props,null,W.mode,ee),Fl(ee,G),ee.return=W,ee;case v:return G=Kd(G,W.mode,ee),G.return=W,G;case H:return G=xa(G),fe(W,G,ee)}if(re(G)||Z(G))return G=pa(G,W.mode,ee,null),G.return=W,G;if(typeof G.then=="function")return fe(W,Fo(G),ee);if(G.$$typeof===w)return fe(W,jo(W,G),ee);qo(W,G)}return null}function ne(W,G,ee,ce){var Re=G!==null?G.key:null;if(typeof ee=="string"&&ee!==""||typeof ee=="number"||typeof ee=="bigint")return Re!==null?null:O(W,G,""+ee,ce);if(typeof ee=="object"&&ee!==null){switch(ee.$$typeof){case y:return ee.key===Re?q(W,G,ee,ce):null;case v:return ee.key===Re?te(W,G,ee,ce):null;case H:return ee=xa(ee),ne(W,G,ee,ce)}if(re(ee)||Z(ee))return Re!==null?null:oe(W,G,ee,ce,null);if(typeof ee.then=="function")return ne(W,G,Fo(ee),ce);if(ee.$$typeof===w)return ne(W,G,jo(W,ee),ce);qo(W,ee)}return null}function ie(W,G,ee,ce,Re){if(typeof ce=="string"&&ce!==""||typeof ce=="number"||typeof ce=="bigint")return W=W.get(ee)||null,O(G,W,""+ce,Re);if(typeof ce=="object"&&ce!==null){switch(ce.$$typeof){case y:return W=W.get(ce.key===null?ee:ce.key)||null,q(G,W,ce,Re);case v:return W=W.get(ce.key===null?ee:ce.key)||null,te(G,W,ce,Re);case H:return ce=xa(ce),ie(W,G,ee,ce,Re)}if(re(ce)||Z(ce))return W=W.get(ee)||null,oe(G,W,ce,Re,null);if(typeof ce.then=="function")return ie(W,G,ee,Fo(ce),Re);if(ce.$$typeof===w)return ie(W,G,ee,jo(G,ce),Re);qo(G,ce)}return null}function _e(W,G,ee,ce){for(var Re=null,it=null,Ce=G,He=G=0,Xe=null;Ce!==null&&He<ee.length;He++){Ce.index>He?(Xe=Ce,Ce=null):Xe=Ce.sibling;var at=ne(W,Ce,ee[He],ce);if(at===null){Ce===null&&(Ce=Xe);break}r&&Ce&&at.alternate===null&&a(W,Ce),G=b(at,G,He),it===null?Re=at:it.sibling=at,it=at,Ce=Xe}if(He===ee.length)return u(W,Ce),Ze&&Ur(W,He),Re;if(Ce===null){for(;He<ee.length;He++)Ce=fe(W,ee[He],ce),Ce!==null&&(G=b(Ce,G,He),it===null?Re=Ce:it.sibling=Ce,it=Ce);return Ze&&Ur(W,He),Re}for(Ce=f(Ce);He<ee.length;He++)Xe=ie(Ce,W,He,ee[He],ce),Xe!==null&&(r&&Xe.alternate!==null&&Ce.delete(Xe.key===null?He:Xe.key),G=b(Xe,G,He),it===null?Re=Xe:it.sibling=Xe,it=Xe);return r&&Ce.forEach(function(Hi){return a(W,Hi)}),Ze&&Ur(W,He),Re}function Le(W,G,ee,ce){if(ee==null)throw Error(i(151));for(var Re=null,it=null,Ce=G,He=G=0,Xe=null,at=ee.next();Ce!==null&&!at.done;He++,at=ee.next()){Ce.index>He?(Xe=Ce,Ce=null):Xe=Ce.sibling;var Hi=ne(W,Ce,at.value,ce);if(Hi===null){Ce===null&&(Ce=Xe);break}r&&Ce&&Hi.alternate===null&&a(W,Ce),G=b(Hi,G,He),it===null?Re=Hi:it.sibling=Hi,it=Hi,Ce=Xe}if(at.done)return u(W,Ce),Ze&&Ur(W,He),Re;if(Ce===null){for(;!at.done;He++,at=ee.next())at=fe(W,at.value,ce),at!==null&&(G=b(at,G,He),it===null?Re=at:it.sibling=at,it=at);return Ze&&Ur(W,He),Re}for(Ce=f(Ce);!at.done;He++,at=ee.next())at=ie(Ce,W,He,at.value,ce),at!==null&&(r&&at.alternate!==null&&Ce.delete(at.key===null?He:at.key),G=b(at,G,He),it===null?Re=at:it.sibling=at,it=at);return r&&Ce.forEach(function(Qw){return a(W,Qw)}),Ze&&Ur(W,He),Re}function ht(W,G,ee,ce){if(typeof ee=="object"&&ee!==null&&ee.type===S&&ee.key===null&&(ee=ee.props.children),typeof ee=="object"&&ee!==null){switch(ee.$$typeof){case y:e:{for(var Re=ee.key;G!==null;){if(G.key===Re){if(Re=ee.type,Re===S){if(G.tag===7){u(W,G.sibling),ce=g(G,ee.props.children),ce.return=W,W=ce;break e}}else if(G.elementType===Re||typeof Re=="object"&&Re!==null&&Re.$$typeof===H&&xa(Re)===G.type){u(W,G.sibling),ce=g(G,ee.props),Fl(ce,ee),ce.return=W,W=ce;break e}u(W,G);break}else a(W,G);G=G.sibling}ee.type===S?(ce=pa(ee.props.children,W.mode,ce,ee.key),ce.return=W,W=ce):(ce=Mo(ee.type,ee.key,ee.props,null,W.mode,ce),Fl(ce,ee),ce.return=W,W=ce)}return _(W);case v:e:{for(Re=ee.key;G!==null;){if(G.key===Re)if(G.tag===4&&G.stateNode.containerInfo===ee.containerInfo&&G.stateNode.implementation===ee.implementation){u(W,G.sibling),ce=g(G,ee.children||[]),ce.return=W,W=ce;break e}else{u(W,G);break}else a(W,G);G=G.sibling}ce=Kd(ee,W.mode,ce),ce.return=W,W=ce}return _(W);case H:return ee=xa(ee),ht(W,G,ee,ce)}if(re(ee))return _e(W,G,ee,ce);if(Z(ee)){if(Re=Z(ee),typeof Re!="function")throw Error(i(150));return ee=Re.call(ee),Le(W,G,ee,ce)}if(typeof ee.then=="function")return ht(W,G,Fo(ee),ce);if(ee.$$typeof===w)return ht(W,G,jo(W,ee),ce);qo(W,ee)}return typeof ee=="string"&&ee!==""||typeof ee=="number"||typeof ee=="bigint"?(ee=""+ee,G!==null&&G.tag===6?(u(W,G.sibling),ce=g(G,ee),ce.return=W,W=ce):(u(W,G),ce=Gd(ee,W.mode,ce),ce.return=W,W=ce),_(W)):u(W,G)}return function(W,G,ee,ce){try{zl=0;var Re=ht(W,G,ee,ce);return As=null,Re}catch(Ce){if(Ce===Cs||Ce===Uo)throw Ce;var it=Mn(29,Ce,null,W.mode);return it.lanes=ce,it.return=W,it}}}var va=nb(!0),rb=nb(!1),vi=!1;function sh(r){r.updateQueue={baseState:r.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function lh(r,a){r=r.updateQueue,a.updateQueue===r&&(a.updateQueue={baseState:r.baseState,firstBaseUpdate:r.firstBaseUpdate,lastBaseUpdate:r.lastBaseUpdate,shared:r.shared,callbacks:null})}function Si(r){return{lane:r,tag:0,payload:null,callback:null,next:null}}function _i(r,a,u){var f=r.updateQueue;if(f===null)return null;if(f=f.shared,(st&2)!==0){var g=f.pending;return g===null?a.next=a:(a.next=g.next,g.next=a),f.pending=a,a=Io(r),U1(r,null,u),a}return Do(r,f,a,u),Io(r)}function ql(r,a,u){if(a=a.updateQueue,a!==null&&(a=a.shared,(u&4194048)!==0)){var f=a.lanes;f&=r.pendingLanes,u|=f,a.lanes=u,Kg(r,u)}}function uh(r,a){var u=r.updateQueue,f=r.alternate;if(f!==null&&(f=f.updateQueue,u===f)){var g=null,b=null;if(u=u.firstBaseUpdate,u!==null){do{var _={lane:u.lane,tag:u.tag,payload:u.payload,callback:null,next:null};b===null?g=b=_:b=b.next=_,u=u.next}while(u!==null);b===null?g=b=a:b=b.next=a}else g=b=a;u={baseState:f.baseState,firstBaseUpdate:g,lastBaseUpdate:b,shared:f.shared,callbacks:f.callbacks},r.updateQueue=u;return}r=u.lastBaseUpdate,r===null?u.firstBaseUpdate=a:r.next=a,u.lastBaseUpdate=a}var oh=!1;function Vl(){if(oh){var r=_s;if(r!==null)throw r}}function Yl(r,a,u,f){oh=!1;var g=r.updateQueue;vi=!1;var b=g.firstBaseUpdate,_=g.lastBaseUpdate,O=g.shared.pending;if(O!==null){g.shared.pending=null;var q=O,te=q.next;q.next=null,_===null?b=te:_.next=te,_=q;var oe=r.alternate;oe!==null&&(oe=oe.updateQueue,O=oe.lastBaseUpdate,O!==_&&(O===null?oe.firstBaseUpdate=te:O.next=te,oe.lastBaseUpdate=q))}if(b!==null){var fe=g.baseState;_=0,oe=te=q=null,O=b;do{var ne=O.lane&-536870913,ie=ne!==O.lane;if(ie?(Ke&ne)===ne:(f&ne)===ne){ne!==0&&ne===Ss&&(oh=!0),oe!==null&&(oe=oe.next={lane:0,tag:O.tag,payload:O.payload,callback:null,next:null});e:{var _e=r,Le=O;ne=a;var ht=u;switch(Le.tag){case 1:if(_e=Le.payload,typeof _e=="function"){fe=_e.call(ht,fe,ne);break e}fe=_e;break e;case 3:_e.flags=_e.flags&-65537|128;case 0:if(_e=Le.payload,ne=typeof _e=="function"?_e.call(ht,fe,ne):_e,ne==null)break e;fe=p({},fe,ne);break e;case 2:vi=!0}}ne=O.callback,ne!==null&&(r.flags|=64,ie&&(r.flags|=8192),ie=g.callbacks,ie===null?g.callbacks=[ne]:ie.push(ne))}else ie={lane:ne,tag:O.tag,payload:O.payload,callback:O.callback,next:null},oe===null?(te=oe=ie,q=fe):oe=oe.next=ie,_|=ne;if(O=O.next,O===null){if(O=g.shared.pending,O===null)break;ie=O,O=ie.next,ie.next=null,g.lastBaseUpdate=ie,g.shared.pending=null}}while(!0);oe===null&&(q=fe),g.baseState=q,g.firstBaseUpdate=te,g.lastBaseUpdate=oe,b===null&&(g.shared.lanes=0),Ni|=_,r.lanes=_,r.memoizedState=fe}}function ib(r,a){if(typeof r!="function")throw Error(i(191,r));r.call(a)}function ab(r,a){var u=r.callbacks;if(u!==null)for(r.callbacks=null,r=0;r<u.length;r++)ib(u[r],a)}var ks=U(null),Vo=U(0);function sb(r,a){r=Wr,I(Vo,r),I(ks,a),Wr=r|a.baseLanes}function ch(){I(Vo,Wr),I(ks,ks.current)}function fh(){Wr=Vo.current,X(ks),X(Vo)}var Pn=U(null),Zn=null;function Ci(r){var a=r.alternate;I(Nt,Nt.current&1),I(Pn,r),Zn===null&&(a===null||ks.current!==null||a.memoizedState!==null)&&(Zn=r)}function dh(r){I(Nt,Nt.current),I(Pn,r),Zn===null&&(Zn=r)}function lb(r){r.tag===22?(I(Nt,Nt.current),I(Pn,r),Zn===null&&(Zn=r)):Ai()}function Ai(){I(Nt,Nt.current),I(Pn,Pn.current)}function Bn(r){X(Pn),Zn===r&&(Zn=null),X(Nt)}var Nt=U(0);function Yo(r){for(var a=r;a!==null;){if(a.tag===13){var u=a.memoizedState;if(u!==null&&(u=u.dehydrated,u===null||ym(u)||Em(u)))return a}else if(a.tag===19&&(a.memoizedProps.revealOrder==="forwards"||a.memoizedProps.revealOrder==="backwards"||a.memoizedProps.revealOrder==="unstable_legacy-backwards"||a.memoizedProps.revealOrder==="together")){if((a.flags&128)!==0)return a}else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===r)break;for(;a.sibling===null;){if(a.return===null||a.return===r)return null;a=a.return}a.sibling.return=a.return,a=a.sibling}return null}var qr=0,Be=null,ft=null,Mt=null,$o=!1,ws=!1,Sa=!1,Go=0,$l=0,Ns=null,Uk=0;function kt(){throw Error(i(321))}function hh(r,a){if(a===null)return!1;for(var u=0;u<a.length&&u<r.length;u++)if(!In(r[u],a[u]))return!1;return!0}function mh(r,a,u,f,g,b){return qr=b,Be=a,a.memoizedState=null,a.updateQueue=null,a.lanes=0,V.H=r===null||r.memoizedState===null?Vb:Nh,Sa=!1,b=u(f,g),Sa=!1,ws&&(b=ob(a,u,f,g)),ub(r),b}function ub(r){V.H=Xl;var a=ft!==null&&ft.next!==null;if(qr=0,Mt=ft=Be=null,$o=!1,$l=0,Ns=null,a)throw Error(i(300));r===null||Pt||(r=r.dependencies,r!==null&&Bo(r)&&(Pt=!0))}function ob(r,a,u,f){Be=r;var g=0;do{if(ws&&(Ns=null),$l=0,ws=!1,25<=g)throw Error(i(301));if(g+=1,Mt=ft=null,r.updateQueue!=null){var b=r.updateQueue;b.lastEffect=null,b.events=null,b.stores=null,b.memoCache!=null&&(b.memoCache.index=0)}V.H=Yb,b=a(u,f)}while(ws);return b}function zk(){var r=V.H,a=r.useState()[0];return a=typeof a.then=="function"?Gl(a):a,r=r.useState()[0],(ft!==null?ft.memoizedState:null)!==r&&(Be.flags|=1024),a}function ph(){var r=Go!==0;return Go=0,r}function gh(r,a,u){a.updateQueue=r.updateQueue,a.flags&=-2053,r.lanes&=~u}function bh(r){if($o){for(r=r.memoizedState;r!==null;){var a=r.queue;a!==null&&(a.pending=null),r=r.next}$o=!1}qr=0,Mt=ft=Be=null,ws=!1,$l=Go=0,Ns=null}function dn(){var r={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Mt===null?Be.memoizedState=Mt=r:Mt=Mt.next=r,Mt}function Rt(){if(ft===null){var r=Be.alternate;r=r!==null?r.memoizedState:null}else r=ft.next;var a=Mt===null?Be.memoizedState:Mt.next;if(a!==null)Mt=a,ft=r;else{if(r===null)throw Be.alternate===null?Error(i(467)):Error(i(310));ft=r,r={memoizedState:ft.memoizedState,baseState:ft.baseState,baseQueue:ft.baseQueue,queue:ft.queue,next:null},Mt===null?Be.memoizedState=Mt=r:Mt=Mt.next=r}return Mt}function Ko(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Gl(r){var a=$l;return $l+=1,Ns===null&&(Ns=[]),r=J1(Ns,r,a),a=Be,(Mt===null?a.memoizedState:Mt.next)===null&&(a=a.alternate,V.H=a===null||a.memoizedState===null?Vb:Nh),r}function Xo(r){if(r!==null&&typeof r=="object"){if(typeof r.then=="function")return Gl(r);if(r.$$typeof===w)return en(r)}throw Error(i(438,String(r)))}function yh(r){var a=null,u=Be.updateQueue;if(u!==null&&(a=u.memoCache),a==null){var f=Be.alternate;f!==null&&(f=f.updateQueue,f!==null&&(f=f.memoCache,f!=null&&(a={data:f.data.map(function(g){return g.slice()}),index:0})))}if(a==null&&(a={data:[],index:0}),u===null&&(u=Ko(),Be.updateQueue=u),u.memoCache=a,u=a.data[a.index],u===void 0)for(u=a.data[a.index]=Array(r),f=0;f<r;f++)u[f]=j;return a.index++,u}function Vr(r,a){return typeof a=="function"?a(r):a}function Qo(r){var a=Rt();return Eh(a,ft,r)}function Eh(r,a,u){var f=r.queue;if(f===null)throw Error(i(311));f.lastRenderedReducer=u;var g=r.baseQueue,b=f.pending;if(b!==null){if(g!==null){var _=g.next;g.next=b.next,b.next=_}a.baseQueue=g=b,f.pending=null}if(b=r.baseState,g===null)r.memoizedState=b;else{a=g.next;var O=_=null,q=null,te=a,oe=!1;do{var fe=te.lane&-536870913;if(fe!==te.lane?(Ke&fe)===fe:(qr&fe)===fe){var ne=te.revertLane;if(ne===0)q!==null&&(q=q.next={lane:0,revertLane:0,gesture:null,action:te.action,hasEagerState:te.hasEagerState,eagerState:te.eagerState,next:null}),fe===Ss&&(oe=!0);else if((qr&ne)===ne){te=te.next,ne===Ss&&(oe=!0);continue}else fe={lane:0,revertLane:te.revertLane,gesture:null,action:te.action,hasEagerState:te.hasEagerState,eagerState:te.eagerState,next:null},q===null?(O=q=fe,_=b):q=q.next=fe,Be.lanes|=ne,Ni|=ne;fe=te.action,Sa&&u(b,fe),b=te.hasEagerState?te.eagerState:u(b,fe)}else ne={lane:fe,revertLane:te.revertLane,gesture:te.gesture,action:te.action,hasEagerState:te.hasEagerState,eagerState:te.eagerState,next:null},q===null?(O=q=ne,_=b):q=q.next=ne,Be.lanes|=fe,Ni|=fe;te=te.next}while(te!==null&&te!==a);if(q===null?_=b:q.next=O,!In(b,r.memoizedState)&&(Pt=!0,oe&&(u=_s,u!==null)))throw u;r.memoizedState=b,r.baseState=_,r.baseQueue=q,f.lastRenderedState=b}return g===null&&(f.lanes=0),[r.memoizedState,f.dispatch]}function xh(r){var a=Rt(),u=a.queue;if(u===null)throw Error(i(311));u.lastRenderedReducer=r;var f=u.dispatch,g=u.pending,b=a.memoizedState;if(g!==null){u.pending=null;var _=g=g.next;do b=r(b,_.action),_=_.next;while(_!==g);In(b,a.memoizedState)||(Pt=!0),a.memoizedState=b,a.baseQueue===null&&(a.baseState=b),u.lastRenderedState=b}return[b,f]}function cb(r,a,u){var f=Be,g=Rt(),b=Ze;if(b){if(u===void 0)throw Error(i(407));u=u()}else u=a();var _=!In((ft||g).memoizedState,u);if(_&&(g.memoizedState=u,Pt=!0),g=g.queue,Sh(hb.bind(null,f,g,r),[r]),g.getSnapshot!==a||_||Mt!==null&&Mt.memoizedState.tag&1){if(f.flags|=2048,Rs(9,{destroy:void 0},db.bind(null,f,g,u,a),null),gt===null)throw Error(i(349));b||(qr&127)!==0||fb(f,a,u)}return u}function fb(r,a,u){r.flags|=16384,r={getSnapshot:a,value:u},a=Be.updateQueue,a===null?(a=Ko(),Be.updateQueue=a,a.stores=[r]):(u=a.stores,u===null?a.stores=[r]:u.push(r))}function db(r,a,u,f){a.value=u,a.getSnapshot=f,mb(a)&&pb(r)}function hb(r,a,u){return u(function(){mb(a)&&pb(r)})}function mb(r){var a=r.getSnapshot;r=r.value;try{var u=a();return!In(r,u)}catch{return!0}}function pb(r){var a=ma(r,2);a!==null&&kn(a,r,2)}function Th(r){var a=dn();if(typeof r=="function"){var u=r;if(r=u(),Sa){xn(!0);try{u()}finally{xn(!1)}}}return a.memoizedState=a.baseState=r,a.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Vr,lastRenderedState:r},a}function gb(r,a,u,f){return r.baseState=u,Eh(r,ft,typeof f=="function"?f:Vr)}function Fk(r,a,u,f,g){if(Jo(r))throw Error(i(485));if(r=a.action,r!==null){var b={payload:g,action:r,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(_){b.listeners.push(_)}};V.T!==null?u(!0):b.isTransition=!1,f(b),u=a.pending,u===null?(b.next=a.pending=b,bb(a,b)):(b.next=u.next,a.pending=u.next=b)}}function bb(r,a){var u=a.action,f=a.payload,g=r.state;if(a.isTransition){var b=V.T,_={};V.T=_;try{var O=u(g,f),q=V.S;q!==null&&q(_,O),yb(r,a,O)}catch(te){vh(r,a,te)}finally{b!==null&&_.types!==null&&(b.types=_.types),V.T=b}}else try{b=u(g,f),yb(r,a,b)}catch(te){vh(r,a,te)}}function yb(r,a,u){u!==null&&typeof u=="object"&&typeof u.then=="function"?u.then(function(f){Eb(r,a,f)},function(f){return vh(r,a,f)}):Eb(r,a,u)}function Eb(r,a,u){a.status="fulfilled",a.value=u,xb(a),r.state=u,a=r.pending,a!==null&&(u=a.next,u===a?r.pending=null:(u=u.next,a.next=u,bb(r,u)))}function vh(r,a,u){var f=r.pending;if(r.pending=null,f!==null){f=f.next;do a.status="rejected",a.reason=u,xb(a),a=a.next;while(a!==f)}r.action=null}function xb(r){r=r.listeners;for(var a=0;a<r.length;a++)(0,r[a])()}function Tb(r,a){return a}function vb(r,a){if(Ze){var u=gt.formState;if(u!==null){e:{var f=Be;if(Ze){if(xt){t:{for(var g=xt,b=Wn;g.nodeType!==8;){if(!b){g=null;break t}if(g=Jn(g.nextSibling),g===null){g=null;break t}}b=g.data,g=b==="F!"||b==="F"?g:null}if(g){xt=Jn(g.nextSibling),f=g.data==="F!";break e}}xi(f)}f=!1}f&&(a=u[0])}}return u=dn(),u.memoizedState=u.baseState=a,f={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Tb,lastRenderedState:a},u.queue=f,u=zb.bind(null,Be,f),f.dispatch=u,f=Th(!1),b=wh.bind(null,Be,!1,f.queue),f=dn(),g={state:a,dispatch:null,action:r,pending:null},f.queue=g,u=Fk.bind(null,Be,g,b,u),g.dispatch=u,f.memoizedState=r,[a,u,!1]}function Sb(r){var a=Rt();return _b(a,ft,r)}function _b(r,a,u){if(a=Eh(r,a,Tb)[0],r=Qo(Vr)[0],typeof a=="object"&&a!==null&&typeof a.then=="function")try{var f=Gl(a)}catch(_){throw _===Cs?Uo:_}else f=a;a=Rt();var g=a.queue,b=g.dispatch;return u!==a.memoizedState&&(Be.flags|=2048,Rs(9,{destroy:void 0},qk.bind(null,g,u),null)),[f,b,r]}function qk(r,a){r.action=a}function Cb(r){var a=Rt(),u=ft;if(u!==null)return _b(a,u,r);Rt(),a=a.memoizedState,u=Rt();var f=u.queue.dispatch;return u.memoizedState=r,[a,f,!1]}function Rs(r,a,u,f){return r={tag:r,create:u,deps:f,inst:a,next:null},a=Be.updateQueue,a===null&&(a=Ko(),Be.updateQueue=a),u=a.lastEffect,u===null?a.lastEffect=r.next=r:(f=u.next,u.next=r,r.next=f,a.lastEffect=r),r}function Ab(){return Rt().memoizedState}function Wo(r,a,u,f){var g=dn();Be.flags|=r,g.memoizedState=Rs(1|a,{destroy:void 0},u,f===void 0?null:f)}function Zo(r,a,u,f){var g=Rt();f=f===void 0?null:f;var b=g.memoizedState.inst;ft!==null&&f!==null&&hh(f,ft.memoizedState.deps)?g.memoizedState=Rs(a,b,u,f):(Be.flags|=r,g.memoizedState=Rs(1|a,b,u,f))}function kb(r,a){Wo(8390656,8,r,a)}function Sh(r,a){Zo(2048,8,r,a)}function Vk(r){Be.flags|=4;var a=Be.updateQueue;if(a===null)a=Ko(),Be.updateQueue=a,a.events=[r];else{var u=a.events;u===null?a.events=[r]:u.push(r)}}function wb(r){var a=Rt().memoizedState;return Vk({ref:a,nextImpl:r}),function(){if((st&2)!==0)throw Error(i(440));return a.impl.apply(void 0,arguments)}}function Nb(r,a){return Zo(4,2,r,a)}function Rb(r,a){return Zo(4,4,r,a)}function Ob(r,a){if(typeof a=="function"){r=r();var u=a(r);return function(){typeof u=="function"?u():a(null)}}if(a!=null)return r=r(),a.current=r,function(){a.current=null}}function Lb(r,a,u){u=u!=null?u.concat([r]):null,Zo(4,4,Ob.bind(null,a,r),u)}function _h(){}function Db(r,a){var u=Rt();a=a===void 0?null:a;var f=u.memoizedState;return a!==null&&hh(a,f[1])?f[0]:(u.memoizedState=[r,a],r)}function Ib(r,a){var u=Rt();a=a===void 0?null:a;var f=u.memoizedState;if(a!==null&&hh(a,f[1]))return f[0];if(f=r(),Sa){xn(!0);try{r()}finally{xn(!1)}}return u.memoizedState=[f,a],f}function Ch(r,a,u){return u===void 0||(qr&1073741824)!==0&&(Ke&261930)===0?r.memoizedState=a:(r.memoizedState=u,r=My(),Be.lanes|=r,Ni|=r,u)}function Mb(r,a,u,f){return In(u,a)?u:ks.current!==null?(r=Ch(r,u,f),In(r,a)||(Pt=!0),r):(qr&42)===0||(qr&1073741824)!==0&&(Ke&261930)===0?(Pt=!0,r.memoizedState=u):(r=My(),Be.lanes|=r,Ni|=r,a)}function Pb(r,a,u,f,g){var b=Q.p;Q.p=b!==0&&8>b?b:8;var _=V.T,O={};V.T=O,wh(r,!1,a,u);try{var q=g(),te=V.S;if(te!==null&&te(O,q),q!==null&&typeof q=="object"&&typeof q.then=="function"){var oe=Hk(q,f);Kl(r,a,oe,Un(r))}else Kl(r,a,f,Un(r))}catch(fe){Kl(r,a,{then:function(){},status:"rejected",reason:fe},Un())}finally{Q.p=b,_!==null&&O.types!==null&&(_.types=O.types),V.T=_}}function Yk(){}function Ah(r,a,u,f){if(r.tag!==5)throw Error(i(476));var g=Bb(r).queue;Pb(r,g,a,ae,u===null?Yk:function(){return jb(r),u(f)})}function Bb(r){var a=r.memoizedState;if(a!==null)return a;a={memoizedState:ae,baseState:ae,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Vr,lastRenderedState:ae},next:null};var u={};return a.next={memoizedState:u,baseState:u,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Vr,lastRenderedState:u},next:null},r.memoizedState=a,r=r.alternate,r!==null&&(r.memoizedState=a),a}function jb(r){var a=Bb(r);a.next===null&&(a=r.alternate.memoizedState),Kl(r,a.next.queue,{},Un())}function kh(){return en(fu)}function Hb(){return Rt().memoizedState}function Ub(){return Rt().memoizedState}function $k(r){for(var a=r.return;a!==null;){switch(a.tag){case 24:case 3:var u=Un();r=Si(u);var f=_i(a,r,u);f!==null&&(kn(f,a,u),ql(f,a,u)),a={cache:nh()},r.payload=a;return}a=a.return}}function Gk(r,a,u){var f=Un();u={lane:f,revertLane:0,gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null},Jo(r)?Fb(a,u):(u=Yd(r,a,u,f),u!==null&&(kn(u,r,f),qb(u,a,f)))}function zb(r,a,u){var f=Un();Kl(r,a,u,f)}function Kl(r,a,u,f){var g={lane:f,revertLane:0,gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null};if(Jo(r))Fb(a,g);else{var b=r.alternate;if(r.lanes===0&&(b===null||b.lanes===0)&&(b=a.lastRenderedReducer,b!==null))try{var _=a.lastRenderedState,O=b(_,u);if(g.hasEagerState=!0,g.eagerState=O,In(O,_))return Do(r,a,g,0),gt===null&&Lo(),!1}catch{}if(u=Yd(r,a,g,f),u!==null)return kn(u,r,f),qb(u,a,f),!0}return!1}function wh(r,a,u,f){if(f={lane:2,revertLane:sm(),gesture:null,action:f,hasEagerState:!1,eagerState:null,next:null},Jo(r)){if(a)throw Error(i(479))}else a=Yd(r,u,f,2),a!==null&&kn(a,r,2)}function Jo(r){var a=r.alternate;return r===Be||a!==null&&a===Be}function Fb(r,a){ws=$o=!0;var u=r.pending;u===null?a.next=a:(a.next=u.next,u.next=a),r.pending=a}function qb(r,a,u){if((u&4194048)!==0){var f=a.lanes;f&=r.pendingLanes,u|=f,a.lanes=u,Kg(r,u)}}var Xl={readContext:en,use:Xo,useCallback:kt,useContext:kt,useEffect:kt,useImperativeHandle:kt,useLayoutEffect:kt,useInsertionEffect:kt,useMemo:kt,useReducer:kt,useRef:kt,useState:kt,useDebugValue:kt,useDeferredValue:kt,useTransition:kt,useSyncExternalStore:kt,useId:kt,useHostTransitionStatus:kt,useFormState:kt,useActionState:kt,useOptimistic:kt,useMemoCache:kt,useCacheRefresh:kt};Xl.useEffectEvent=kt;var Vb={readContext:en,use:Xo,useCallback:function(r,a){return dn().memoizedState=[r,a===void 0?null:a],r},useContext:en,useEffect:kb,useImperativeHandle:function(r,a,u){u=u!=null?u.concat([r]):null,Wo(4194308,4,Ob.bind(null,a,r),u)},useLayoutEffect:function(r,a){return Wo(4194308,4,r,a)},useInsertionEffect:function(r,a){Wo(4,2,r,a)},useMemo:function(r,a){var u=dn();a=a===void 0?null:a;var f=r();if(Sa){xn(!0);try{r()}finally{xn(!1)}}return u.memoizedState=[f,a],f},useReducer:function(r,a,u){var f=dn();if(u!==void 0){var g=u(a);if(Sa){xn(!0);try{u(a)}finally{xn(!1)}}}else g=a;return f.memoizedState=f.baseState=g,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:r,lastRenderedState:g},f.queue=r,r=r.dispatch=Gk.bind(null,Be,r),[f.memoizedState,r]},useRef:function(r){var a=dn();return r={current:r},a.memoizedState=r},useState:function(r){r=Th(r);var a=r.queue,u=zb.bind(null,Be,a);return a.dispatch=u,[r.memoizedState,u]},useDebugValue:_h,useDeferredValue:function(r,a){var u=dn();return Ch(u,r,a)},useTransition:function(){var r=Th(!1);return r=Pb.bind(null,Be,r.queue,!0,!1),dn().memoizedState=r,[!1,r]},useSyncExternalStore:function(r,a,u){var f=Be,g=dn();if(Ze){if(u===void 0)throw Error(i(407));u=u()}else{if(u=a(),gt===null)throw Error(i(349));(Ke&127)!==0||fb(f,a,u)}g.memoizedState=u;var b={value:u,getSnapshot:a};return g.queue=b,kb(hb.bind(null,f,b,r),[r]),f.flags|=2048,Rs(9,{destroy:void 0},db.bind(null,f,b,u,a),null),u},useId:function(){var r=dn(),a=gt.identifierPrefix;if(Ze){var u=yr,f=br;u=(f&~(1<<32-pt(f)-1)).toString(32)+u,a="_"+a+"R_"+u,u=Go++,0<u&&(a+="H"+u.toString(32)),a+="_"}else u=Uk++,a="_"+a+"r_"+u.toString(32)+"_";return r.memoizedState=a},useHostTransitionStatus:kh,useFormState:vb,useActionState:vb,useOptimistic:function(r){var a=dn();a.memoizedState=a.baseState=r;var u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return a.queue=u,a=wh.bind(null,Be,!0,u),u.dispatch=a,[r,a]},useMemoCache:yh,useCacheRefresh:function(){return dn().memoizedState=$k.bind(null,Be)},useEffectEvent:function(r){var a=dn(),u={impl:r};return a.memoizedState=u,function(){if((st&2)!==0)throw Error(i(440));return u.impl.apply(void 0,arguments)}}},Nh={readContext:en,use:Xo,useCallback:Db,useContext:en,useEffect:Sh,useImperativeHandle:Lb,useInsertionEffect:Nb,useLayoutEffect:Rb,useMemo:Ib,useReducer:Qo,useRef:Ab,useState:function(){return Qo(Vr)},useDebugValue:_h,useDeferredValue:function(r,a){var u=Rt();return Mb(u,ft.memoizedState,r,a)},useTransition:function(){var r=Qo(Vr)[0],a=Rt().memoizedState;return[typeof r=="boolean"?r:Gl(r),a]},useSyncExternalStore:cb,useId:Hb,useHostTransitionStatus:kh,useFormState:Sb,useActionState:Sb,useOptimistic:function(r,a){var u=Rt();return gb(u,ft,r,a)},useMemoCache:yh,useCacheRefresh:Ub};Nh.useEffectEvent=wb;var Yb={readContext:en,use:Xo,useCallback:Db,useContext:en,useEffect:Sh,useImperativeHandle:Lb,useInsertionEffect:Nb,useLayoutEffect:Rb,useMemo:Ib,useReducer:xh,useRef:Ab,useState:function(){return xh(Vr)},useDebugValue:_h,useDeferredValue:function(r,a){var u=Rt();return ft===null?Ch(u,r,a):Mb(u,ft.memoizedState,r,a)},useTransition:function(){var r=xh(Vr)[0],a=Rt().memoizedState;return[typeof r=="boolean"?r:Gl(r),a]},useSyncExternalStore:cb,useId:Hb,useHostTransitionStatus:kh,useFormState:Cb,useActionState:Cb,useOptimistic:function(r,a){var u=Rt();return ft!==null?gb(u,ft,r,a):(u.baseState=r,[r,u.queue.dispatch])},useMemoCache:yh,useCacheRefresh:Ub};Yb.useEffectEvent=wb;function Rh(r,a,u,f){a=r.memoizedState,u=u(f,a),u=u==null?a:p({},a,u),r.memoizedState=u,r.lanes===0&&(r.updateQueue.baseState=u)}var Oh={enqueueSetState:function(r,a,u){r=r._reactInternals;var f=Un(),g=Si(f);g.payload=a,u!=null&&(g.callback=u),a=_i(r,g,f),a!==null&&(kn(a,r,f),ql(a,r,f))},enqueueReplaceState:function(r,a,u){r=r._reactInternals;var f=Un(),g=Si(f);g.tag=1,g.payload=a,u!=null&&(g.callback=u),a=_i(r,g,f),a!==null&&(kn(a,r,f),ql(a,r,f))},enqueueForceUpdate:function(r,a){r=r._reactInternals;var u=Un(),f=Si(u);f.tag=2,a!=null&&(f.callback=a),a=_i(r,f,u),a!==null&&(kn(a,r,u),ql(a,r,u))}};function $b(r,a,u,f,g,b,_){return r=r.stateNode,typeof r.shouldComponentUpdate=="function"?r.shouldComponentUpdate(f,b,_):a.prototype&&a.prototype.isPureReactComponent?!Ml(u,f)||!Ml(g,b):!0}function Gb(r,a,u,f){r=a.state,typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(u,f),typeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(u,f),a.state!==r&&Oh.enqueueReplaceState(a,a.state,null)}function _a(r,a){var u=a;if("ref"in a){u={};for(var f in a)f!=="ref"&&(u[f]=a[f])}if(r=r.defaultProps){u===a&&(u=p({},u));for(var g in r)u[g]===void 0&&(u[g]=r[g])}return u}function Kb(r){Oo(r)}function Xb(r){console.error(r)}function Qb(r){Oo(r)}function ec(r,a){try{var u=r.onUncaughtError;u(a.value,{componentStack:a.stack})}catch(f){setTimeout(function(){throw f})}}function Wb(r,a,u){try{var f=r.onCaughtError;f(u.value,{componentStack:u.stack,errorBoundary:a.tag===1?a.stateNode:null})}catch(g){setTimeout(function(){throw g})}}function Lh(r,a,u){return u=Si(u),u.tag=3,u.payload={element:null},u.callback=function(){ec(r,a)},u}function Zb(r){return r=Si(r),r.tag=3,r}function Jb(r,a,u,f){var g=u.type.getDerivedStateFromError;if(typeof g=="function"){var b=f.value;r.payload=function(){return g(b)},r.callback=function(){Wb(a,u,f)}}var _=u.stateNode;_!==null&&typeof _.componentDidCatch=="function"&&(r.callback=function(){Wb(a,u,f),typeof g!="function"&&(Ri===null?Ri=new Set([this]):Ri.add(this));var O=f.stack;this.componentDidCatch(f.value,{componentStack:O!==null?O:""})})}function Kk(r,a,u,f,g){if(u.flags|=32768,f!==null&&typeof f=="object"&&typeof f.then=="function"){if(a=u.alternate,a!==null&&vs(a,u,g,!0),u=Pn.current,u!==null){switch(u.tag){case 31:case 13:return Zn===null?dc():u.alternate===null&&wt===0&&(wt=3),u.flags&=-257,u.flags|=65536,u.lanes=g,f===zo?u.flags|=16384:(a=u.updateQueue,a===null?u.updateQueue=new Set([f]):a.add(f),rm(r,f,g)),!1;case 22:return u.flags|=65536,f===zo?u.flags|=16384:(a=u.updateQueue,a===null?(a={transitions:null,markerInstances:null,retryQueue:new Set([f])},u.updateQueue=a):(u=a.retryQueue,u===null?a.retryQueue=new Set([f]):u.add(f)),rm(r,f,g)),!1}throw Error(i(435,u.tag))}return rm(r,f,g),dc(),!1}if(Ze)return a=Pn.current,a!==null?((a.flags&65536)===0&&(a.flags|=256),a.flags|=65536,a.lanes=g,f!==Wd&&(r=Error(i(422),{cause:f}),jl(Kn(r,u)))):(f!==Wd&&(a=Error(i(423),{cause:f}),jl(Kn(a,u))),r=r.current.alternate,r.flags|=65536,g&=-g,r.lanes|=g,f=Kn(f,u),g=Lh(r.stateNode,f,g),uh(r,g),wt!==4&&(wt=2)),!1;var b=Error(i(520),{cause:f});if(b=Kn(b,u),ru===null?ru=[b]:ru.push(b),wt!==4&&(wt=2),a===null)return!0;f=Kn(f,u),u=a;do{switch(u.tag){case 3:return u.flags|=65536,r=g&-g,u.lanes|=r,r=Lh(u.stateNode,f,r),uh(u,r),!1;case 1:if(a=u.type,b=u.stateNode,(u.flags&128)===0&&(typeof a.getDerivedStateFromError=="function"||b!==null&&typeof b.componentDidCatch=="function"&&(Ri===null||!Ri.has(b))))return u.flags|=65536,g&=-g,u.lanes|=g,g=Zb(g),Jb(g,r,u,f),uh(u,g),!1}u=u.return}while(u!==null);return!1}var Dh=Error(i(461)),Pt=!1;function tn(r,a,u,f){a.child=r===null?rb(a,null,u,f):va(a,r.child,u,f)}function ey(r,a,u,f,g){u=u.render;var b=a.ref;if("ref"in f){var _={};for(var O in f)O!=="ref"&&(_[O]=f[O])}else _=f;return ya(a),f=mh(r,a,u,_,b,g),O=ph(),r!==null&&!Pt?(gh(r,a,g),Yr(r,a,g)):(Ze&&O&&Xd(a),a.flags|=1,tn(r,a,f,g),a.child)}function ty(r,a,u,f,g){if(r===null){var b=u.type;return typeof b=="function"&&!$d(b)&&b.defaultProps===void 0&&u.compare===null?(a.tag=15,a.type=b,ny(r,a,b,f,g)):(r=Mo(u.type,null,f,a,a.mode,g),r.ref=a.ref,r.return=a,a.child=r)}if(b=r.child,!zh(r,g)){var _=b.memoizedProps;if(u=u.compare,u=u!==null?u:Ml,u(_,f)&&r.ref===a.ref)return Yr(r,a,g)}return a.flags|=1,r=Hr(b,f),r.ref=a.ref,r.return=a,a.child=r}function ny(r,a,u,f,g){if(r!==null){var b=r.memoizedProps;if(Ml(b,f)&&r.ref===a.ref)if(Pt=!1,a.pendingProps=f=b,zh(r,g))(r.flags&131072)!==0&&(Pt=!0);else return a.lanes=r.lanes,Yr(r,a,g)}return Ih(r,a,u,f,g)}function ry(r,a,u,f){var g=f.children,b=r!==null?r.memoizedState:null;if(r===null&&a.stateNode===null&&(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),f.mode==="hidden"){if((a.flags&128)!==0){if(b=b!==null?b.baseLanes|u:u,r!==null){for(f=a.child=r.child,g=0;f!==null;)g=g|f.lanes|f.childLanes,f=f.sibling;f=g&~b}else f=0,a.child=null;return iy(r,a,b,u,f)}if((u&536870912)!==0)a.memoizedState={baseLanes:0,cachePool:null},r!==null&&Ho(a,b!==null?b.cachePool:null),b!==null?sb(a,b):ch(),lb(a);else return f=a.lanes=536870912,iy(r,a,b!==null?b.baseLanes|u:u,u,f)}else b!==null?(Ho(a,b.cachePool),sb(a,b),Ai(),a.memoizedState=null):(r!==null&&Ho(a,null),ch(),Ai());return tn(r,a,g,u),a.child}function Ql(r,a){return r!==null&&r.tag===22||a.stateNode!==null||(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.sibling}function iy(r,a,u,f,g){var b=ih();return b=b===null?null:{parent:It._currentValue,pool:b},a.memoizedState={baseLanes:u,cachePool:b},r!==null&&Ho(a,null),ch(),lb(a),r!==null&&vs(r,a,f,!0),a.childLanes=g,null}function tc(r,a){return a=rc({mode:a.mode,children:a.children},r.mode),a.ref=r.ref,r.child=a,a.return=r,a}function ay(r,a,u){return va(a,r.child,null,u),r=tc(a,a.pendingProps),r.flags|=2,Bn(a),a.memoizedState=null,r}function Xk(r,a,u){var f=a.pendingProps,g=(a.flags&128)!==0;if(a.flags&=-129,r===null){if(Ze){if(f.mode==="hidden")return r=tc(a,f),a.lanes=536870912,Ql(null,r);if(dh(a),(r=xt)?(r=bE(r,Wn),r=r!==null&&r.data==="&"?r:null,r!==null&&(a.memoizedState={dehydrated:r,treeContext:yi!==null?{id:br,overflow:yr}:null,retryLane:536870912,hydrationErrors:null},u=F1(r),u.return=a,a.child=u,Jt=a,xt=null)):r=null,r===null)throw xi(a);return a.lanes=536870912,null}return tc(a,f)}var b=r.memoizedState;if(b!==null){var _=b.dehydrated;if(dh(a),g)if(a.flags&256)a.flags&=-257,a=ay(r,a,u);else if(a.memoizedState!==null)a.child=r.child,a.flags|=128,a=null;else throw Error(i(558));else if(Pt||vs(r,a,u,!1),g=(u&r.childLanes)!==0,Pt||g){if(f=gt,f!==null&&(_=Xg(f,u),_!==0&&_!==b.retryLane))throw b.retryLane=_,ma(r,_),kn(f,r,_),Dh;dc(),a=ay(r,a,u)}else r=b.treeContext,xt=Jn(_.nextSibling),Jt=a,Ze=!0,Ei=null,Wn=!1,r!==null&&Y1(a,r),a=tc(a,f),a.flags|=4096;return a}return r=Hr(r.child,{mode:f.mode,children:f.children}),r.ref=a.ref,a.child=r,r.return=a,r}function nc(r,a){var u=a.ref;if(u===null)r!==null&&r.ref!==null&&(a.flags|=4194816);else{if(typeof u!="function"&&typeof u!="object")throw Error(i(284));(r===null||r.ref!==u)&&(a.flags|=4194816)}}function Ih(r,a,u,f,g){return ya(a),u=mh(r,a,u,f,void 0,g),f=ph(),r!==null&&!Pt?(gh(r,a,g),Yr(r,a,g)):(Ze&&f&&Xd(a),a.flags|=1,tn(r,a,u,g),a.child)}function sy(r,a,u,f,g,b){return ya(a),a.updateQueue=null,u=ob(a,f,u,g),ub(r),f=ph(),r!==null&&!Pt?(gh(r,a,b),Yr(r,a,b)):(Ze&&f&&Xd(a),a.flags|=1,tn(r,a,u,b),a.child)}function ly(r,a,u,f,g){if(ya(a),a.stateNode===null){var b=ys,_=u.contextType;typeof _=="object"&&_!==null&&(b=en(_)),b=new u(f,b),a.memoizedState=b.state!==null&&b.state!==void 0?b.state:null,b.updater=Oh,a.stateNode=b,b._reactInternals=a,b=a.stateNode,b.props=f,b.state=a.memoizedState,b.refs={},sh(a),_=u.contextType,b.context=typeof _=="object"&&_!==null?en(_):ys,b.state=a.memoizedState,_=u.getDerivedStateFromProps,typeof _=="function"&&(Rh(a,u,_,f),b.state=a.memoizedState),typeof u.getDerivedStateFromProps=="function"||typeof b.getSnapshotBeforeUpdate=="function"||typeof b.UNSAFE_componentWillMount!="function"&&typeof b.componentWillMount!="function"||(_=b.state,typeof b.componentWillMount=="function"&&b.componentWillMount(),typeof b.UNSAFE_componentWillMount=="function"&&b.UNSAFE_componentWillMount(),_!==b.state&&Oh.enqueueReplaceState(b,b.state,null),Yl(a,f,b,g),Vl(),b.state=a.memoizedState),typeof b.componentDidMount=="function"&&(a.flags|=4194308),f=!0}else if(r===null){b=a.stateNode;var O=a.memoizedProps,q=_a(u,O);b.props=q;var te=b.context,oe=u.contextType;_=ys,typeof oe=="object"&&oe!==null&&(_=en(oe));var fe=u.getDerivedStateFromProps;oe=typeof fe=="function"||typeof b.getSnapshotBeforeUpdate=="function",O=a.pendingProps!==O,oe||typeof b.UNSAFE_componentWillReceiveProps!="function"&&typeof b.componentWillReceiveProps!="function"||(O||te!==_)&&Gb(a,b,f,_),vi=!1;var ne=a.memoizedState;b.state=ne,Yl(a,f,b,g),Vl(),te=a.memoizedState,O||ne!==te||vi?(typeof fe=="function"&&(Rh(a,u,fe,f),te=a.memoizedState),(q=vi||$b(a,u,q,f,ne,te,_))?(oe||typeof b.UNSAFE_componentWillMount!="function"&&typeof b.componentWillMount!="function"||(typeof b.componentWillMount=="function"&&b.componentWillMount(),typeof b.UNSAFE_componentWillMount=="function"&&b.UNSAFE_componentWillMount()),typeof b.componentDidMount=="function"&&(a.flags|=4194308)):(typeof b.componentDidMount=="function"&&(a.flags|=4194308),a.memoizedProps=f,a.memoizedState=te),b.props=f,b.state=te,b.context=_,f=q):(typeof b.componentDidMount=="function"&&(a.flags|=4194308),f=!1)}else{b=a.stateNode,lh(r,a),_=a.memoizedProps,oe=_a(u,_),b.props=oe,fe=a.pendingProps,ne=b.context,te=u.contextType,q=ys,typeof te=="object"&&te!==null&&(q=en(te)),O=u.getDerivedStateFromProps,(te=typeof O=="function"||typeof b.getSnapshotBeforeUpdate=="function")||typeof b.UNSAFE_componentWillReceiveProps!="function"&&typeof b.componentWillReceiveProps!="function"||(_!==fe||ne!==q)&&Gb(a,b,f,q),vi=!1,ne=a.memoizedState,b.state=ne,Yl(a,f,b,g),Vl();var ie=a.memoizedState;_!==fe||ne!==ie||vi||r!==null&&r.dependencies!==null&&Bo(r.dependencies)?(typeof O=="function"&&(Rh(a,u,O,f),ie=a.memoizedState),(oe=vi||$b(a,u,oe,f,ne,ie,q)||r!==null&&r.dependencies!==null&&Bo(r.dependencies))?(te||typeof b.UNSAFE_componentWillUpdate!="function"&&typeof b.componentWillUpdate!="function"||(typeof b.componentWillUpdate=="function"&&b.componentWillUpdate(f,ie,q),typeof b.UNSAFE_componentWillUpdate=="function"&&b.UNSAFE_componentWillUpdate(f,ie,q)),typeof b.componentDidUpdate=="function"&&(a.flags|=4),typeof b.getSnapshotBeforeUpdate=="function"&&(a.flags|=1024)):(typeof b.componentDidUpdate!="function"||_===r.memoizedProps&&ne===r.memoizedState||(a.flags|=4),typeof b.getSnapshotBeforeUpdate!="function"||_===r.memoizedProps&&ne===r.memoizedState||(a.flags|=1024),a.memoizedProps=f,a.memoizedState=ie),b.props=f,b.state=ie,b.context=q,f=oe):(typeof b.componentDidUpdate!="function"||_===r.memoizedProps&&ne===r.memoizedState||(a.flags|=4),typeof b.getSnapshotBeforeUpdate!="function"||_===r.memoizedProps&&ne===r.memoizedState||(a.flags|=1024),f=!1)}return b=f,nc(r,a),f=(a.flags&128)!==0,b||f?(b=a.stateNode,u=f&&typeof u.getDerivedStateFromError!="function"?null:b.render(),a.flags|=1,r!==null&&f?(a.child=va(a,r.child,null,g),a.child=va(a,null,u,g)):tn(r,a,u,g),a.memoizedState=b.state,r=a.child):r=Yr(r,a,g),r}function uy(r,a,u,f){return ga(),a.flags|=256,tn(r,a,u,f),a.child}var Mh={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Ph(r){return{baseLanes:r,cachePool:W1()}}function Bh(r,a,u){return r=r!==null?r.childLanes&~u:0,a&&(r|=Hn),r}function oy(r,a,u){var f=a.pendingProps,g=!1,b=(a.flags&128)!==0,_;if((_=b)||(_=r!==null&&r.memoizedState===null?!1:(Nt.current&2)!==0),_&&(g=!0,a.flags&=-129),_=(a.flags&32)!==0,a.flags&=-33,r===null){if(Ze){if(g?Ci(a):Ai(),(r=xt)?(r=bE(r,Wn),r=r!==null&&r.data!=="&"?r:null,r!==null&&(a.memoizedState={dehydrated:r,treeContext:yi!==null?{id:br,overflow:yr}:null,retryLane:536870912,hydrationErrors:null},u=F1(r),u.return=a,a.child=u,Jt=a,xt=null)):r=null,r===null)throw xi(a);return Em(r)?a.lanes=32:a.lanes=536870912,null}var O=f.children;return f=f.fallback,g?(Ai(),g=a.mode,O=rc({mode:"hidden",children:O},g),f=pa(f,g,u,null),O.return=a,f.return=a,O.sibling=f,a.child=O,f=a.child,f.memoizedState=Ph(u),f.childLanes=Bh(r,_,u),a.memoizedState=Mh,Ql(null,f)):(Ci(a),jh(a,O))}var q=r.memoizedState;if(q!==null&&(O=q.dehydrated,O!==null)){if(b)a.flags&256?(Ci(a),a.flags&=-257,a=Hh(r,a,u)):a.memoizedState!==null?(Ai(),a.child=r.child,a.flags|=128,a=null):(Ai(),O=f.fallback,g=a.mode,f=rc({mode:"visible",children:f.children},g),O=pa(O,g,u,null),O.flags|=2,f.return=a,O.return=a,f.sibling=O,a.child=f,va(a,r.child,null,u),f=a.child,f.memoizedState=Ph(u),f.childLanes=Bh(r,_,u),a.memoizedState=Mh,a=Ql(null,f));else if(Ci(a),Em(O)){if(_=O.nextSibling&&O.nextSibling.dataset,_)var te=_.dgst;_=te,f=Error(i(419)),f.stack="",f.digest=_,jl({value:f,source:null,stack:null}),a=Hh(r,a,u)}else if(Pt||vs(r,a,u,!1),_=(u&r.childLanes)!==0,Pt||_){if(_=gt,_!==null&&(f=Xg(_,u),f!==0&&f!==q.retryLane))throw q.retryLane=f,ma(r,f),kn(_,r,f),Dh;ym(O)||dc(),a=Hh(r,a,u)}else ym(O)?(a.flags|=192,a.child=r.child,a=null):(r=q.treeContext,xt=Jn(O.nextSibling),Jt=a,Ze=!0,Ei=null,Wn=!1,r!==null&&Y1(a,r),a=jh(a,f.children),a.flags|=4096);return a}return g?(Ai(),O=f.fallback,g=a.mode,q=r.child,te=q.sibling,f=Hr(q,{mode:"hidden",children:f.children}),f.subtreeFlags=q.subtreeFlags&65011712,te!==null?O=Hr(te,O):(O=pa(O,g,u,null),O.flags|=2),O.return=a,f.return=a,f.sibling=O,a.child=f,Ql(null,f),f=a.child,O=r.child.memoizedState,O===null?O=Ph(u):(g=O.cachePool,g!==null?(q=It._currentValue,g=g.parent!==q?{parent:q,pool:q}:g):g=W1(),O={baseLanes:O.baseLanes|u,cachePool:g}),f.memoizedState=O,f.childLanes=Bh(r,_,u),a.memoizedState=Mh,Ql(r.child,f)):(Ci(a),u=r.child,r=u.sibling,u=Hr(u,{mode:"visible",children:f.children}),u.return=a,u.sibling=null,r!==null&&(_=a.deletions,_===null?(a.deletions=[r],a.flags|=16):_.push(r)),a.child=u,a.memoizedState=null,u)}function jh(r,a){return a=rc({mode:"visible",children:a},r.mode),a.return=r,r.child=a}function rc(r,a){return r=Mn(22,r,null,a),r.lanes=0,r}function Hh(r,a,u){return va(a,r.child,null,u),r=jh(a,a.pendingProps.children),r.flags|=2,a.memoizedState=null,r}function cy(r,a,u){r.lanes|=a;var f=r.alternate;f!==null&&(f.lanes|=a),eh(r.return,a,u)}function Uh(r,a,u,f,g,b){var _=r.memoizedState;_===null?r.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:f,tail:u,tailMode:g,treeForkCount:b}:(_.isBackwards=a,_.rendering=null,_.renderingStartTime=0,_.last=f,_.tail=u,_.tailMode=g,_.treeForkCount=b)}function fy(r,a,u){var f=a.pendingProps,g=f.revealOrder,b=f.tail;f=f.children;var _=Nt.current,O=(_&2)!==0;if(O?(_=_&1|2,a.flags|=128):_&=1,I(Nt,_),tn(r,a,f,u),f=Ze?Bl:0,!O&&r!==null&&(r.flags&128)!==0)e:for(r=a.child;r!==null;){if(r.tag===13)r.memoizedState!==null&&cy(r,u,a);else if(r.tag===19)cy(r,u,a);else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===a)break e;for(;r.sibling===null;){if(r.return===null||r.return===a)break e;r=r.return}r.sibling.return=r.return,r=r.sibling}switch(g){case"forwards":for(u=a.child,g=null;u!==null;)r=u.alternate,r!==null&&Yo(r)===null&&(g=u),u=u.sibling;u=g,u===null?(g=a.child,a.child=null):(g=u.sibling,u.sibling=null),Uh(a,!1,g,u,b,f);break;case"backwards":case"unstable_legacy-backwards":for(u=null,g=a.child,a.child=null;g!==null;){if(r=g.alternate,r!==null&&Yo(r)===null){a.child=g;break}r=g.sibling,g.sibling=u,u=g,g=r}Uh(a,!0,u,null,b,f);break;case"together":Uh(a,!1,null,null,void 0,f);break;default:a.memoizedState=null}return a.child}function Yr(r,a,u){if(r!==null&&(a.dependencies=r.dependencies),Ni|=a.lanes,(u&a.childLanes)===0)if(r!==null){if(vs(r,a,u,!1),(u&a.childLanes)===0)return null}else return null;if(r!==null&&a.child!==r.child)throw Error(i(153));if(a.child!==null){for(r=a.child,u=Hr(r,r.pendingProps),a.child=u,u.return=a;r.sibling!==null;)r=r.sibling,u=u.sibling=Hr(r,r.pendingProps),u.return=a;u.sibling=null}return a.child}function zh(r,a){return(r.lanes&a)!==0?!0:(r=r.dependencies,!!(r!==null&&Bo(r)))}function Qk(r,a,u){switch(a.tag){case 3:Te(a,a.stateNode.containerInfo),Ti(a,It,r.memoizedState.cache),ga();break;case 27:case 5:je(a);break;case 4:Te(a,a.stateNode.containerInfo);break;case 10:Ti(a,a.type,a.memoizedProps.value);break;case 31:if(a.memoizedState!==null)return a.flags|=128,dh(a),null;break;case 13:var f=a.memoizedState;if(f!==null)return f.dehydrated!==null?(Ci(a),a.flags|=128,null):(u&a.child.childLanes)!==0?oy(r,a,u):(Ci(a),r=Yr(r,a,u),r!==null?r.sibling:null);Ci(a);break;case 19:var g=(r.flags&128)!==0;if(f=(u&a.childLanes)!==0,f||(vs(r,a,u,!1),f=(u&a.childLanes)!==0),g){if(f)return fy(r,a,u);a.flags|=128}if(g=a.memoizedState,g!==null&&(g.rendering=null,g.tail=null,g.lastEffect=null),I(Nt,Nt.current),f)break;return null;case 22:return a.lanes=0,ry(r,a,u,a.pendingProps);case 24:Ti(a,It,r.memoizedState.cache)}return Yr(r,a,u)}function dy(r,a,u){if(r!==null)if(r.memoizedProps!==a.pendingProps)Pt=!0;else{if(!zh(r,u)&&(a.flags&128)===0)return Pt=!1,Qk(r,a,u);Pt=(r.flags&131072)!==0}else Pt=!1,Ze&&(a.flags&1048576)!==0&&V1(a,Bl,a.index);switch(a.lanes=0,a.tag){case 16:e:{var f=a.pendingProps;if(r=xa(a.elementType),a.type=r,typeof r=="function")$d(r)?(f=_a(r,f),a.tag=1,a=ly(null,a,r,f,u)):(a.tag=0,a=Ih(null,a,r,f,u));else{if(r!=null){var g=r.$$typeof;if(g===D){a.tag=11,a=ey(null,a,r,f,u);break e}else if(g===P){a.tag=14,a=ty(null,a,r,f,u);break e}}throw a=ue(r)||r,Error(i(306,a,""))}}return a;case 0:return Ih(r,a,a.type,a.pendingProps,u);case 1:return f=a.type,g=_a(f,a.pendingProps),ly(r,a,f,g,u);case 3:e:{if(Te(a,a.stateNode.containerInfo),r===null)throw Error(i(387));f=a.pendingProps;var b=a.memoizedState;g=b.element,lh(r,a),Yl(a,f,null,u);var _=a.memoizedState;if(f=_.cache,Ti(a,It,f),f!==b.cache&&th(a,[It],u,!0),Vl(),f=_.element,b.isDehydrated)if(b={element:f,isDehydrated:!1,cache:_.cache},a.updateQueue.baseState=b,a.memoizedState=b,a.flags&256){a=uy(r,a,f,u);break e}else if(f!==g){g=Kn(Error(i(424)),a),jl(g),a=uy(r,a,f,u);break e}else for(r=a.stateNode.containerInfo,r.nodeType===9?r=r.body:r=r.nodeName==="HTML"?r.ownerDocument.body:r,xt=Jn(r.firstChild),Jt=a,Ze=!0,Ei=null,Wn=!0,u=rb(a,null,f,u),a.child=u;u;)u.flags=u.flags&-3|4096,u=u.sibling;else{if(ga(),f===g){a=Yr(r,a,u);break e}tn(r,a,f,u)}a=a.child}return a;case 26:return nc(r,a),r===null?(u=SE(a.type,null,a.pendingProps,null))?a.memoizedState=u:Ze||(u=a.type,r=a.pendingProps,f=Ec(he.current).createElement(u),f[Zt]=a,f[Tn]=r,nn(f,u,r),Yt(f),a.stateNode=f):a.memoizedState=SE(a.type,r.memoizedProps,a.pendingProps,r.memoizedState),null;case 27:return je(a),r===null&&Ze&&(f=a.stateNode=xE(a.type,a.pendingProps,he.current),Jt=a,Wn=!0,g=xt,Ii(a.type)?(xm=g,xt=Jn(f.firstChild)):xt=g),tn(r,a,a.pendingProps.children,u),nc(r,a),r===null&&(a.flags|=4194304),a.child;case 5:return r===null&&Ze&&((g=f=xt)&&(f=Aw(f,a.type,a.pendingProps,Wn),f!==null?(a.stateNode=f,Jt=a,xt=Jn(f.firstChild),Wn=!1,g=!0):g=!1),g||xi(a)),je(a),g=a.type,b=a.pendingProps,_=r!==null?r.memoizedProps:null,f=b.children,pm(g,b)?f=null:_!==null&&pm(g,_)&&(a.flags|=32),a.memoizedState!==null&&(g=mh(r,a,zk,null,null,u),fu._currentValue=g),nc(r,a),tn(r,a,f,u),a.child;case 6:return r===null&&Ze&&((r=u=xt)&&(u=kw(u,a.pendingProps,Wn),u!==null?(a.stateNode=u,Jt=a,xt=null,r=!0):r=!1),r||xi(a)),null;case 13:return oy(r,a,u);case 4:return Te(a,a.stateNode.containerInfo),f=a.pendingProps,r===null?a.child=va(a,null,f,u):tn(r,a,f,u),a.child;case 11:return ey(r,a,a.type,a.pendingProps,u);case 7:return tn(r,a,a.pendingProps,u),a.child;case 8:return tn(r,a,a.pendingProps.children,u),a.child;case 12:return tn(r,a,a.pendingProps.children,u),a.child;case 10:return f=a.pendingProps,Ti(a,a.type,f.value),tn(r,a,f.children,u),a.child;case 9:return g=a.type._context,f=a.pendingProps.children,ya(a),g=en(g),f=f(g),a.flags|=1,tn(r,a,f,u),a.child;case 14:return ty(r,a,a.type,a.pendingProps,u);case 15:return ny(r,a,a.type,a.pendingProps,u);case 19:return fy(r,a,u);case 31:return Xk(r,a,u);case 22:return ry(r,a,u,a.pendingProps);case 24:return ya(a),f=en(It),r===null?(g=ih(),g===null&&(g=gt,b=nh(),g.pooledCache=b,b.refCount++,b!==null&&(g.pooledCacheLanes|=u),g=b),a.memoizedState={parent:f,cache:g},sh(a),Ti(a,It,g)):((r.lanes&u)!==0&&(lh(r,a),Yl(a,null,null,u),Vl()),g=r.memoizedState,b=a.memoizedState,g.parent!==f?(g={parent:f,cache:f},a.memoizedState=g,a.lanes===0&&(a.memoizedState=a.updateQueue.baseState=g),Ti(a,It,f)):(f=b.cache,Ti(a,It,f),f!==g.cache&&th(a,[It],u,!0))),tn(r,a,a.pendingProps.children,u),a.child;case 29:throw a.pendingProps}throw Error(i(156,a.tag))}function $r(r){r.flags|=4}function Fh(r,a,u,f,g){if((a=(r.mode&32)!==0)&&(a=!1),a){if(r.flags|=16777216,(g&335544128)===g)if(r.stateNode.complete)r.flags|=8192;else if(Hy())r.flags|=8192;else throw Ta=zo,ah}else r.flags&=-16777217}function hy(r,a){if(a.type!=="stylesheet"||(a.state.loading&4)!==0)r.flags&=-16777217;else if(r.flags|=16777216,!wE(a))if(Hy())r.flags|=8192;else throw Ta=zo,ah}function ic(r,a){a!==null&&(r.flags|=4),r.flags&16384&&(a=r.tag!==22?$g():536870912,r.lanes|=a,Is|=a)}function Wl(r,a){if(!Ze)switch(r.tailMode){case"hidden":a=r.tail;for(var u=null;a!==null;)a.alternate!==null&&(u=a),a=a.sibling;u===null?r.tail=null:u.sibling=null;break;case"collapsed":u=r.tail;for(var f=null;u!==null;)u.alternate!==null&&(f=u),u=u.sibling;f===null?a||r.tail===null?r.tail=null:r.tail.sibling=null:f.sibling=null}}function Tt(r){var a=r.alternate!==null&&r.alternate.child===r.child,u=0,f=0;if(a)for(var g=r.child;g!==null;)u|=g.lanes|g.childLanes,f|=g.subtreeFlags&65011712,f|=g.flags&65011712,g.return=r,g=g.sibling;else for(g=r.child;g!==null;)u|=g.lanes|g.childLanes,f|=g.subtreeFlags,f|=g.flags,g.return=r,g=g.sibling;return r.subtreeFlags|=f,r.childLanes=u,a}function Wk(r,a,u){var f=a.pendingProps;switch(Qd(a),a.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Tt(a),null;case 1:return Tt(a),null;case 3:return u=a.stateNode,f=null,r!==null&&(f=r.memoizedState.cache),a.memoizedState.cache!==f&&(a.flags|=2048),Fr(It),xe(),u.pendingContext&&(u.context=u.pendingContext,u.pendingContext=null),(r===null||r.child===null)&&(Ts(a)?$r(a):r===null||r.memoizedState.isDehydrated&&(a.flags&256)===0||(a.flags|=1024,Zd())),Tt(a),null;case 26:var g=a.type,b=a.memoizedState;return r===null?($r(a),b!==null?(Tt(a),hy(a,b)):(Tt(a),Fh(a,g,null,f,u))):b?b!==r.memoizedState?($r(a),Tt(a),hy(a,b)):(Tt(a),a.flags&=-16777217):(r=r.memoizedProps,r!==f&&$r(a),Tt(a),Fh(a,g,r,f,u)),null;case 27:if(Ne(a),u=he.current,g=a.type,r!==null&&a.stateNode!=null)r.memoizedProps!==f&&$r(a);else{if(!f){if(a.stateNode===null)throw Error(i(166));return Tt(a),null}r=ge.current,Ts(a)?$1(a):(r=xE(g,f,u),a.stateNode=r,$r(a))}return Tt(a),null;case 5:if(Ne(a),g=a.type,r!==null&&a.stateNode!=null)r.memoizedProps!==f&&$r(a);else{if(!f){if(a.stateNode===null)throw Error(i(166));return Tt(a),null}if(b=ge.current,Ts(a))$1(a);else{var _=Ec(he.current);switch(b){case 1:b=_.createElementNS("http://www.w3.org/2000/svg",g);break;case 2:b=_.createElementNS("http://www.w3.org/1998/Math/MathML",g);break;default:switch(g){case"svg":b=_.createElementNS("http://www.w3.org/2000/svg",g);break;case"math":b=_.createElementNS("http://www.w3.org/1998/Math/MathML",g);break;case"script":b=_.createElement("div"),b.innerHTML="<script><\/script>",b=b.removeChild(b.firstChild);break;case"select":b=typeof f.is=="string"?_.createElement("select",{is:f.is}):_.createElement("select"),f.multiple?b.multiple=!0:f.size&&(b.size=f.size);break;default:b=typeof f.is=="string"?_.createElement(g,{is:f.is}):_.createElement(g)}}b[Zt]=a,b[Tn]=f;e:for(_=a.child;_!==null;){if(_.tag===5||_.tag===6)b.appendChild(_.stateNode);else if(_.tag!==4&&_.tag!==27&&_.child!==null){_.child.return=_,_=_.child;continue}if(_===a)break e;for(;_.sibling===null;){if(_.return===null||_.return===a)break e;_=_.return}_.sibling.return=_.return,_=_.sibling}a.stateNode=b;e:switch(nn(b,g,f),g){case"button":case"input":case"select":case"textarea":f=!!f.autoFocus;break e;case"img":f=!0;break e;default:f=!1}f&&$r(a)}}return Tt(a),Fh(a,a.type,r===null?null:r.memoizedProps,a.pendingProps,u),null;case 6:if(r&&a.stateNode!=null)r.memoizedProps!==f&&$r(a);else{if(typeof f!="string"&&a.stateNode===null)throw Error(i(166));if(r=he.current,Ts(a)){if(r=a.stateNode,u=a.memoizedProps,f=null,g=Jt,g!==null)switch(g.tag){case 27:case 5:f=g.memoizedProps}r[Zt]=a,r=!!(r.nodeValue===u||f!==null&&f.suppressHydrationWarning===!0||oE(r.nodeValue,u)),r||xi(a,!0)}else r=Ec(r).createTextNode(f),r[Zt]=a,a.stateNode=r}return Tt(a),null;case 31:if(u=a.memoizedState,r===null||r.memoizedState!==null){if(f=Ts(a),u!==null){if(r===null){if(!f)throw Error(i(318));if(r=a.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(i(557));r[Zt]=a}else ga(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;Tt(a),r=!1}else u=Zd(),r!==null&&r.memoizedState!==null&&(r.memoizedState.hydrationErrors=u),r=!0;if(!r)return a.flags&256?(Bn(a),a):(Bn(a),null);if((a.flags&128)!==0)throw Error(i(558))}return Tt(a),null;case 13:if(f=a.memoizedState,r===null||r.memoizedState!==null&&r.memoizedState.dehydrated!==null){if(g=Ts(a),f!==null&&f.dehydrated!==null){if(r===null){if(!g)throw Error(i(318));if(g=a.memoizedState,g=g!==null?g.dehydrated:null,!g)throw Error(i(317));g[Zt]=a}else ga(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;Tt(a),g=!1}else g=Zd(),r!==null&&r.memoizedState!==null&&(r.memoizedState.hydrationErrors=g),g=!0;if(!g)return a.flags&256?(Bn(a),a):(Bn(a),null)}return Bn(a),(a.flags&128)!==0?(a.lanes=u,a):(u=f!==null,r=r!==null&&r.memoizedState!==null,u&&(f=a.child,g=null,f.alternate!==null&&f.alternate.memoizedState!==null&&f.alternate.memoizedState.cachePool!==null&&(g=f.alternate.memoizedState.cachePool.pool),b=null,f.memoizedState!==null&&f.memoizedState.cachePool!==null&&(b=f.memoizedState.cachePool.pool),b!==g&&(f.flags|=2048)),u!==r&&u&&(a.child.flags|=8192),ic(a,a.updateQueue),Tt(a),null);case 4:return xe(),r===null&&cm(a.stateNode.containerInfo),Tt(a),null;case 10:return Fr(a.type),Tt(a),null;case 19:if(X(Nt),f=a.memoizedState,f===null)return Tt(a),null;if(g=(a.flags&128)!==0,b=f.rendering,b===null)if(g)Wl(f,!1);else{if(wt!==0||r!==null&&(r.flags&128)!==0)for(r=a.child;r!==null;){if(b=Yo(r),b!==null){for(a.flags|=128,Wl(f,!1),r=b.updateQueue,a.updateQueue=r,ic(a,r),a.subtreeFlags=0,r=u,u=a.child;u!==null;)z1(u,r),u=u.sibling;return I(Nt,Nt.current&1|2),Ze&&Ur(a,f.treeForkCount),a.child}r=r.sibling}f.tail!==null&&Qe()>oc&&(a.flags|=128,g=!0,Wl(f,!1),a.lanes=4194304)}else{if(!g)if(r=Yo(b),r!==null){if(a.flags|=128,g=!0,r=r.updateQueue,a.updateQueue=r,ic(a,r),Wl(f,!0),f.tail===null&&f.tailMode==="hidden"&&!b.alternate&&!Ze)return Tt(a),null}else 2*Qe()-f.renderingStartTime>oc&&u!==536870912&&(a.flags|=128,g=!0,Wl(f,!1),a.lanes=4194304);f.isBackwards?(b.sibling=a.child,a.child=b):(r=f.last,r!==null?r.sibling=b:a.child=b,f.last=b)}return f.tail!==null?(r=f.tail,f.rendering=r,f.tail=r.sibling,f.renderingStartTime=Qe(),r.sibling=null,u=Nt.current,I(Nt,g?u&1|2:u&1),Ze&&Ur(a,f.treeForkCount),r):(Tt(a),null);case 22:case 23:return Bn(a),fh(),f=a.memoizedState!==null,r!==null?r.memoizedState!==null!==f&&(a.flags|=8192):f&&(a.flags|=8192),f?(u&536870912)!==0&&(a.flags&128)===0&&(Tt(a),a.subtreeFlags&6&&(a.flags|=8192)):Tt(a),u=a.updateQueue,u!==null&&ic(a,u.retryQueue),u=null,r!==null&&r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(u=r.memoizedState.cachePool.pool),f=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(f=a.memoizedState.cachePool.pool),f!==u&&(a.flags|=2048),r!==null&&X(Ea),null;case 24:return u=null,r!==null&&(u=r.memoizedState.cache),a.memoizedState.cache!==u&&(a.flags|=2048),Fr(It),Tt(a),null;case 25:return null;case 30:return null}throw Error(i(156,a.tag))}function Zk(r,a){switch(Qd(a),a.tag){case 1:return r=a.flags,r&65536?(a.flags=r&-65537|128,a):null;case 3:return Fr(It),xe(),r=a.flags,(r&65536)!==0&&(r&128)===0?(a.flags=r&-65537|128,a):null;case 26:case 27:case 5:return Ne(a),null;case 31:if(a.memoizedState!==null){if(Bn(a),a.alternate===null)throw Error(i(340));ga()}return r=a.flags,r&65536?(a.flags=r&-65537|128,a):null;case 13:if(Bn(a),r=a.memoizedState,r!==null&&r.dehydrated!==null){if(a.alternate===null)throw Error(i(340));ga()}return r=a.flags,r&65536?(a.flags=r&-65537|128,a):null;case 19:return X(Nt),null;case 4:return xe(),null;case 10:return Fr(a.type),null;case 22:case 23:return Bn(a),fh(),r!==null&&X(Ea),r=a.flags,r&65536?(a.flags=r&-65537|128,a):null;case 24:return Fr(It),null;case 25:return null;default:return null}}function my(r,a){switch(Qd(a),a.tag){case 3:Fr(It),xe();break;case 26:case 27:case 5:Ne(a);break;case 4:xe();break;case 31:a.memoizedState!==null&&Bn(a);break;case 13:Bn(a);break;case 19:X(Nt);break;case 10:Fr(a.type);break;case 22:case 23:Bn(a),fh(),r!==null&&X(Ea);break;case 24:Fr(It)}}function Zl(r,a){try{var u=a.updateQueue,f=u!==null?u.lastEffect:null;if(f!==null){var g=f.next;u=g;do{if((u.tag&r)===r){f=void 0;var b=u.create,_=u.inst;f=b(),_.destroy=f}u=u.next}while(u!==g)}}catch(O){ct(a,a.return,O)}}function ki(r,a,u){try{var f=a.updateQueue,g=f!==null?f.lastEffect:null;if(g!==null){var b=g.next;f=b;do{if((f.tag&r)===r){var _=f.inst,O=_.destroy;if(O!==void 0){_.destroy=void 0,g=a;var q=u,te=O;try{te()}catch(oe){ct(g,q,oe)}}}f=f.next}while(f!==b)}}catch(oe){ct(a,a.return,oe)}}function py(r){var a=r.updateQueue;if(a!==null){var u=r.stateNode;try{ab(a,u)}catch(f){ct(r,r.return,f)}}}function gy(r,a,u){u.props=_a(r.type,r.memoizedProps),u.state=r.memoizedState;try{u.componentWillUnmount()}catch(f){ct(r,a,f)}}function Jl(r,a){try{var u=r.ref;if(u!==null){switch(r.tag){case 26:case 27:case 5:var f=r.stateNode;break;case 30:f=r.stateNode;break;default:f=r.stateNode}typeof u=="function"?r.refCleanup=u(f):u.current=f}}catch(g){ct(r,a,g)}}function Er(r,a){var u=r.ref,f=r.refCleanup;if(u!==null)if(typeof f=="function")try{f()}catch(g){ct(r,a,g)}finally{r.refCleanup=null,r=r.alternate,r!=null&&(r.refCleanup=null)}else if(typeof u=="function")try{u(null)}catch(g){ct(r,a,g)}else u.current=null}function by(r){var a=r.type,u=r.memoizedProps,f=r.stateNode;try{e:switch(a){case"button":case"input":case"select":case"textarea":u.autoFocus&&f.focus();break e;case"img":u.src?f.src=u.src:u.srcSet&&(f.srcset=u.srcSet)}}catch(g){ct(r,r.return,g)}}function qh(r,a,u){try{var f=r.stateNode;xw(f,r.type,u,a),f[Tn]=a}catch(g){ct(r,r.return,g)}}function yy(r){return r.tag===5||r.tag===3||r.tag===26||r.tag===27&&Ii(r.type)||r.tag===4}function Vh(r){e:for(;;){for(;r.sibling===null;){if(r.return===null||yy(r.return))return null;r=r.return}for(r.sibling.return=r.return,r=r.sibling;r.tag!==5&&r.tag!==6&&r.tag!==18;){if(r.tag===27&&Ii(r.type)||r.flags&2||r.child===null||r.tag===4)continue e;r.child.return=r,r=r.child}if(!(r.flags&2))return r.stateNode}}function Yh(r,a,u){var f=r.tag;if(f===5||f===6)r=r.stateNode,a?(u.nodeType===9?u.body:u.nodeName==="HTML"?u.ownerDocument.body:u).insertBefore(r,a):(a=u.nodeType===9?u.body:u.nodeName==="HTML"?u.ownerDocument.body:u,a.appendChild(r),u=u._reactRootContainer,u!=null||a.onclick!==null||(a.onclick=Br));else if(f!==4&&(f===27&&Ii(r.type)&&(u=r.stateNode,a=null),r=r.child,r!==null))for(Yh(r,a,u),r=r.sibling;r!==null;)Yh(r,a,u),r=r.sibling}function ac(r,a,u){var f=r.tag;if(f===5||f===6)r=r.stateNode,a?u.insertBefore(r,a):u.appendChild(r);else if(f!==4&&(f===27&&Ii(r.type)&&(u=r.stateNode),r=r.child,r!==null))for(ac(r,a,u),r=r.sibling;r!==null;)ac(r,a,u),r=r.sibling}function Ey(r){var a=r.stateNode,u=r.memoizedProps;try{for(var f=r.type,g=a.attributes;g.length;)a.removeAttributeNode(g[0]);nn(a,f,u),a[Zt]=r,a[Tn]=u}catch(b){ct(r,r.return,b)}}var Gr=!1,Bt=!1,$h=!1,xy=typeof WeakSet=="function"?WeakSet:Set,$t=null;function Jk(r,a){if(r=r.containerInfo,hm=Ac,r=L1(r),Hd(r)){if("selectionStart"in r)var u={start:r.selectionStart,end:r.selectionEnd};else e:{u=(u=r.ownerDocument)&&u.defaultView||window;var f=u.getSelection&&u.getSelection();if(f&&f.rangeCount!==0){u=f.anchorNode;var g=f.anchorOffset,b=f.focusNode;f=f.focusOffset;try{u.nodeType,b.nodeType}catch{u=null;break e}var _=0,O=-1,q=-1,te=0,oe=0,fe=r,ne=null;t:for(;;){for(var ie;fe!==u||g!==0&&fe.nodeType!==3||(O=_+g),fe!==b||f!==0&&fe.nodeType!==3||(q=_+f),fe.nodeType===3&&(_+=fe.nodeValue.length),(ie=fe.firstChild)!==null;)ne=fe,fe=ie;for(;;){if(fe===r)break t;if(ne===u&&++te===g&&(O=_),ne===b&&++oe===f&&(q=_),(ie=fe.nextSibling)!==null)break;fe=ne,ne=fe.parentNode}fe=ie}u=O===-1||q===-1?null:{start:O,end:q}}else u=null}u=u||{start:0,end:0}}else u=null;for(mm={focusedElem:r,selectionRange:u},Ac=!1,$t=a;$t!==null;)if(a=$t,r=a.child,(a.subtreeFlags&1028)!==0&&r!==null)r.return=a,$t=r;else for(;$t!==null;){switch(a=$t,b=a.alternate,r=a.flags,a.tag){case 0:if((r&4)!==0&&(r=a.updateQueue,r=r!==null?r.events:null,r!==null))for(u=0;u<r.length;u++)g=r[u],g.ref.impl=g.nextImpl;break;case 11:case 15:break;case 1:if((r&1024)!==0&&b!==null){r=void 0,u=a,g=b.memoizedProps,b=b.memoizedState,f=u.stateNode;try{var _e=_a(u.type,g);r=f.getSnapshotBeforeUpdate(_e,b),f.__reactInternalSnapshotBeforeUpdate=r}catch(Le){ct(u,u.return,Le)}}break;case 3:if((r&1024)!==0){if(r=a.stateNode.containerInfo,u=r.nodeType,u===9)bm(r);else if(u===1)switch(r.nodeName){case"HEAD":case"HTML":case"BODY":bm(r);break;default:r.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((r&1024)!==0)throw Error(i(163))}if(r=a.sibling,r!==null){r.return=a.return,$t=r;break}$t=a.return}}function Ty(r,a,u){var f=u.flags;switch(u.tag){case 0:case 11:case 15:Xr(r,u),f&4&&Zl(5,u);break;case 1:if(Xr(r,u),f&4)if(r=u.stateNode,a===null)try{r.componentDidMount()}catch(_){ct(u,u.return,_)}else{var g=_a(u.type,a.memoizedProps);a=a.memoizedState;try{r.componentDidUpdate(g,a,r.__reactInternalSnapshotBeforeUpdate)}catch(_){ct(u,u.return,_)}}f&64&&py(u),f&512&&Jl(u,u.return);break;case 3:if(Xr(r,u),f&64&&(r=u.updateQueue,r!==null)){if(a=null,u.child!==null)switch(u.child.tag){case 27:case 5:a=u.child.stateNode;break;case 1:a=u.child.stateNode}try{ab(r,a)}catch(_){ct(u,u.return,_)}}break;case 27:a===null&&f&4&&Ey(u);case 26:case 5:Xr(r,u),a===null&&f&4&&by(u),f&512&&Jl(u,u.return);break;case 12:Xr(r,u);break;case 31:Xr(r,u),f&4&&_y(r,u);break;case 13:Xr(r,u),f&4&&Cy(r,u),f&64&&(r=u.memoizedState,r!==null&&(r=r.dehydrated,r!==null&&(u=uw.bind(null,u),ww(r,u))));break;case 22:if(f=u.memoizedState!==null||Gr,!f){a=a!==null&&a.memoizedState!==null||Bt,g=Gr;var b=Bt;Gr=f,(Bt=a)&&!b?Qr(r,u,(u.subtreeFlags&8772)!==0):Xr(r,u),Gr=g,Bt=b}break;case 30:break;default:Xr(r,u)}}function vy(r){var a=r.alternate;a!==null&&(r.alternate=null,vy(a)),r.child=null,r.deletions=null,r.sibling=null,r.tag===5&&(a=r.stateNode,a!==null&&vd(a)),r.stateNode=null,r.return=null,r.dependencies=null,r.memoizedProps=null,r.memoizedState=null,r.pendingProps=null,r.stateNode=null,r.updateQueue=null}var St=null,Sn=!1;function Kr(r,a,u){for(u=u.child;u!==null;)Sy(r,a,u),u=u.sibling}function Sy(r,a,u){if(zt&&typeof zt.onCommitFiberUnmount=="function")try{zt.onCommitFiberUnmount(fn,u)}catch{}switch(u.tag){case 26:Bt||Er(u,a),Kr(r,a,u),u.memoizedState?u.memoizedState.count--:u.stateNode&&(u=u.stateNode,u.parentNode.removeChild(u));break;case 27:Bt||Er(u,a);var f=St,g=Sn;Ii(u.type)&&(St=u.stateNode,Sn=!1),Kr(r,a,u),uu(u.stateNode),St=f,Sn=g;break;case 5:Bt||Er(u,a);case 6:if(f=St,g=Sn,St=null,Kr(r,a,u),St=f,Sn=g,St!==null)if(Sn)try{(St.nodeType===9?St.body:St.nodeName==="HTML"?St.ownerDocument.body:St).removeChild(u.stateNode)}catch(b){ct(u,a,b)}else try{St.removeChild(u.stateNode)}catch(b){ct(u,a,b)}break;case 18:St!==null&&(Sn?(r=St,pE(r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r,u.stateNode),Fs(r)):pE(St,u.stateNode));break;case 4:f=St,g=Sn,St=u.stateNode.containerInfo,Sn=!0,Kr(r,a,u),St=f,Sn=g;break;case 0:case 11:case 14:case 15:ki(2,u,a),Bt||ki(4,u,a),Kr(r,a,u);break;case 1:Bt||(Er(u,a),f=u.stateNode,typeof f.componentWillUnmount=="function"&&gy(u,a,f)),Kr(r,a,u);break;case 21:Kr(r,a,u);break;case 22:Bt=(f=Bt)||u.memoizedState!==null,Kr(r,a,u),Bt=f;break;default:Kr(r,a,u)}}function _y(r,a){if(a.memoizedState===null&&(r=a.alternate,r!==null&&(r=r.memoizedState,r!==null))){r=r.dehydrated;try{Fs(r)}catch(u){ct(a,a.return,u)}}}function Cy(r,a){if(a.memoizedState===null&&(r=a.alternate,r!==null&&(r=r.memoizedState,r!==null&&(r=r.dehydrated,r!==null))))try{Fs(r)}catch(u){ct(a,a.return,u)}}function ew(r){switch(r.tag){case 31:case 13:case 19:var a=r.stateNode;return a===null&&(a=r.stateNode=new xy),a;case 22:return r=r.stateNode,a=r._retryCache,a===null&&(a=r._retryCache=new xy),a;default:throw Error(i(435,r.tag))}}function sc(r,a){var u=ew(r);a.forEach(function(f){if(!u.has(f)){u.add(f);var g=ow.bind(null,r,f);f.then(g,g)}})}function _n(r,a){var u=a.deletions;if(u!==null)for(var f=0;f<u.length;f++){var g=u[f],b=r,_=a,O=_;e:for(;O!==null;){switch(O.tag){case 27:if(Ii(O.type)){St=O.stateNode,Sn=!1;break e}break;case 5:St=O.stateNode,Sn=!1;break e;case 3:case 4:St=O.stateNode.containerInfo,Sn=!0;break e}O=O.return}if(St===null)throw Error(i(160));Sy(b,_,g),St=null,Sn=!1,b=g.alternate,b!==null&&(b.return=null),g.return=null}if(a.subtreeFlags&13886)for(a=a.child;a!==null;)Ay(a,r),a=a.sibling}var lr=null;function Ay(r,a){var u=r.alternate,f=r.flags;switch(r.tag){case 0:case 11:case 14:case 15:_n(a,r),Cn(r),f&4&&(ki(3,r,r.return),Zl(3,r),ki(5,r,r.return));break;case 1:_n(a,r),Cn(r),f&512&&(Bt||u===null||Er(u,u.return)),f&64&&Gr&&(r=r.updateQueue,r!==null&&(f=r.callbacks,f!==null&&(u=r.shared.hiddenCallbacks,r.shared.hiddenCallbacks=u===null?f:u.concat(f))));break;case 26:var g=lr;if(_n(a,r),Cn(r),f&512&&(Bt||u===null||Er(u,u.return)),f&4){var b=u!==null?u.memoizedState:null;if(f=r.memoizedState,u===null)if(f===null)if(r.stateNode===null){e:{f=r.type,u=r.memoizedProps,g=g.ownerDocument||g;t:switch(f){case"title":b=g.getElementsByTagName("title")[0],(!b||b[Al]||b[Zt]||b.namespaceURI==="http://www.w3.org/2000/svg"||b.hasAttribute("itemprop"))&&(b=g.createElement(f),g.head.insertBefore(b,g.querySelector("head > title"))),nn(b,f,u),b[Zt]=r,Yt(b),f=b;break e;case"link":var _=AE("link","href",g).get(f+(u.href||""));if(_){for(var O=0;O<_.length;O++)if(b=_[O],b.getAttribute("href")===(u.href==null||u.href===""?null:u.href)&&b.getAttribute("rel")===(u.rel==null?null:u.rel)&&b.getAttribute("title")===(u.title==null?null:u.title)&&b.getAttribute("crossorigin")===(u.crossOrigin==null?null:u.crossOrigin)){_.splice(O,1);break t}}b=g.createElement(f),nn(b,f,u),g.head.appendChild(b);break;case"meta":if(_=AE("meta","content",g).get(f+(u.content||""))){for(O=0;O<_.length;O++)if(b=_[O],b.getAttribute("content")===(u.content==null?null:""+u.content)&&b.getAttribute("name")===(u.name==null?null:u.name)&&b.getAttribute("property")===(u.property==null?null:u.property)&&b.getAttribute("http-equiv")===(u.httpEquiv==null?null:u.httpEquiv)&&b.getAttribute("charset")===(u.charSet==null?null:u.charSet)){_.splice(O,1);break t}}b=g.createElement(f),nn(b,f,u),g.head.appendChild(b);break;default:throw Error(i(468,f))}b[Zt]=r,Yt(b),f=b}r.stateNode=f}else kE(g,r.type,r.stateNode);else r.stateNode=CE(g,f,r.memoizedProps);else b!==f?(b===null?u.stateNode!==null&&(u=u.stateNode,u.parentNode.removeChild(u)):b.count--,f===null?kE(g,r.type,r.stateNode):CE(g,f,r.memoizedProps)):f===null&&r.stateNode!==null&&qh(r,r.memoizedProps,u.memoizedProps)}break;case 27:_n(a,r),Cn(r),f&512&&(Bt||u===null||Er(u,u.return)),u!==null&&f&4&&qh(r,r.memoizedProps,u.memoizedProps);break;case 5:if(_n(a,r),Cn(r),f&512&&(Bt||u===null||Er(u,u.return)),r.flags&32){g=r.stateNode;try{fs(g,"")}catch(_e){ct(r,r.return,_e)}}f&4&&r.stateNode!=null&&(g=r.memoizedProps,qh(r,g,u!==null?u.memoizedProps:g)),f&1024&&($h=!0);break;case 6:if(_n(a,r),Cn(r),f&4){if(r.stateNode===null)throw Error(i(162));f=r.memoizedProps,u=r.stateNode;try{u.nodeValue=f}catch(_e){ct(r,r.return,_e)}}break;case 3:if(vc=null,g=lr,lr=xc(a.containerInfo),_n(a,r),lr=g,Cn(r),f&4&&u!==null&&u.memoizedState.isDehydrated)try{Fs(a.containerInfo)}catch(_e){ct(r,r.return,_e)}$h&&($h=!1,ky(r));break;case 4:f=lr,lr=xc(r.stateNode.containerInfo),_n(a,r),Cn(r),lr=f;break;case 12:_n(a,r),Cn(r);break;case 31:_n(a,r),Cn(r),f&4&&(f=r.updateQueue,f!==null&&(r.updateQueue=null,sc(r,f)));break;case 13:_n(a,r),Cn(r),r.child.flags&8192&&r.memoizedState!==null!=(u!==null&&u.memoizedState!==null)&&(uc=Qe()),f&4&&(f=r.updateQueue,f!==null&&(r.updateQueue=null,sc(r,f)));break;case 22:g=r.memoizedState!==null;var q=u!==null&&u.memoizedState!==null,te=Gr,oe=Bt;if(Gr=te||g,Bt=oe||q,_n(a,r),Bt=oe,Gr=te,Cn(r),f&8192)e:for(a=r.stateNode,a._visibility=g?a._visibility&-2:a._visibility|1,g&&(u===null||q||Gr||Bt||Ca(r)),u=null,a=r;;){if(a.tag===5||a.tag===26){if(u===null){q=u=a;try{if(b=q.stateNode,g)_=b.style,typeof _.setProperty=="function"?_.setProperty("display","none","important"):_.display="none";else{O=q.stateNode;var fe=q.memoizedProps.style,ne=fe!=null&&fe.hasOwnProperty("display")?fe.display:null;O.style.display=ne==null||typeof ne=="boolean"?"":(""+ne).trim()}}catch(_e){ct(q,q.return,_e)}}}else if(a.tag===6){if(u===null){q=a;try{q.stateNode.nodeValue=g?"":q.memoizedProps}catch(_e){ct(q,q.return,_e)}}}else if(a.tag===18){if(u===null){q=a;try{var ie=q.stateNode;g?gE(ie,!0):gE(q.stateNode,!1)}catch(_e){ct(q,q.return,_e)}}}else if((a.tag!==22&&a.tag!==23||a.memoizedState===null||a===r)&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===r)break e;for(;a.sibling===null;){if(a.return===null||a.return===r)break e;u===a&&(u=null),a=a.return}u===a&&(u=null),a.sibling.return=a.return,a=a.sibling}f&4&&(f=r.updateQueue,f!==null&&(u=f.retryQueue,u!==null&&(f.retryQueue=null,sc(r,u))));break;case 19:_n(a,r),Cn(r),f&4&&(f=r.updateQueue,f!==null&&(r.updateQueue=null,sc(r,f)));break;case 30:break;case 21:break;default:_n(a,r),Cn(r)}}function Cn(r){var a=r.flags;if(a&2){try{for(var u,f=r.return;f!==null;){if(yy(f)){u=f;break}f=f.return}if(u==null)throw Error(i(160));switch(u.tag){case 27:var g=u.stateNode,b=Vh(r);ac(r,b,g);break;case 5:var _=u.stateNode;u.flags&32&&(fs(_,""),u.flags&=-33);var O=Vh(r);ac(r,O,_);break;case 3:case 4:var q=u.stateNode.containerInfo,te=Vh(r);Yh(r,te,q);break;default:throw Error(i(161))}}catch(oe){ct(r,r.return,oe)}r.flags&=-3}a&4096&&(r.flags&=-4097)}function ky(r){if(r.subtreeFlags&1024)for(r=r.child;r!==null;){var a=r;ky(a),a.tag===5&&a.flags&1024&&a.stateNode.reset(),r=r.sibling}}function Xr(r,a){if(a.subtreeFlags&8772)for(a=a.child;a!==null;)Ty(r,a.alternate,a),a=a.sibling}function Ca(r){for(r=r.child;r!==null;){var a=r;switch(a.tag){case 0:case 11:case 14:case 15:ki(4,a,a.return),Ca(a);break;case 1:Er(a,a.return);var u=a.stateNode;typeof u.componentWillUnmount=="function"&&gy(a,a.return,u),Ca(a);break;case 27:uu(a.stateNode);case 26:case 5:Er(a,a.return),Ca(a);break;case 22:a.memoizedState===null&&Ca(a);break;case 30:Ca(a);break;default:Ca(a)}r=r.sibling}}function Qr(r,a,u){for(u=u&&(a.subtreeFlags&8772)!==0,a=a.child;a!==null;){var f=a.alternate,g=r,b=a,_=b.flags;switch(b.tag){case 0:case 11:case 15:Qr(g,b,u),Zl(4,b);break;case 1:if(Qr(g,b,u),f=b,g=f.stateNode,typeof g.componentDidMount=="function")try{g.componentDidMount()}catch(te){ct(f,f.return,te)}if(f=b,g=f.updateQueue,g!==null){var O=f.stateNode;try{var q=g.shared.hiddenCallbacks;if(q!==null)for(g.shared.hiddenCallbacks=null,g=0;g<q.length;g++)ib(q[g],O)}catch(te){ct(f,f.return,te)}}u&&_&64&&py(b),Jl(b,b.return);break;case 27:Ey(b);case 26:case 5:Qr(g,b,u),u&&f===null&&_&4&&by(b),Jl(b,b.return);break;case 12:Qr(g,b,u);break;case 31:Qr(g,b,u),u&&_&4&&_y(g,b);break;case 13:Qr(g,b,u),u&&_&4&&Cy(g,b);break;case 22:b.memoizedState===null&&Qr(g,b,u),Jl(b,b.return);break;case 30:break;default:Qr(g,b,u)}a=a.sibling}}function Gh(r,a){var u=null;r!==null&&r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(u=r.memoizedState.cachePool.pool),r=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(r=a.memoizedState.cachePool.pool),r!==u&&(r!=null&&r.refCount++,u!=null&&Hl(u))}function Kh(r,a){r=null,a.alternate!==null&&(r=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==r&&(a.refCount++,r!=null&&Hl(r))}function ur(r,a,u,f){if(a.subtreeFlags&10256)for(a=a.child;a!==null;)wy(r,a,u,f),a=a.sibling}function wy(r,a,u,f){var g=a.flags;switch(a.tag){case 0:case 11:case 15:ur(r,a,u,f),g&2048&&Zl(9,a);break;case 1:ur(r,a,u,f);break;case 3:ur(r,a,u,f),g&2048&&(r=null,a.alternate!==null&&(r=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==r&&(a.refCount++,r!=null&&Hl(r)));break;case 12:if(g&2048){ur(r,a,u,f),r=a.stateNode;try{var b=a.memoizedProps,_=b.id,O=b.onPostCommit;typeof O=="function"&&O(_,a.alternate===null?"mount":"update",r.passiveEffectDuration,-0)}catch(q){ct(a,a.return,q)}}else ur(r,a,u,f);break;case 31:ur(r,a,u,f);break;case 13:ur(r,a,u,f);break;case 23:break;case 22:b=a.stateNode,_=a.alternate,a.memoizedState!==null?b._visibility&2?ur(r,a,u,f):eu(r,a):b._visibility&2?ur(r,a,u,f):(b._visibility|=2,Os(r,a,u,f,(a.subtreeFlags&10256)!==0||!1)),g&2048&&Gh(_,a);break;case 24:ur(r,a,u,f),g&2048&&Kh(a.alternate,a);break;default:ur(r,a,u,f)}}function Os(r,a,u,f,g){for(g=g&&((a.subtreeFlags&10256)!==0||!1),a=a.child;a!==null;){var b=r,_=a,O=u,q=f,te=_.flags;switch(_.tag){case 0:case 11:case 15:Os(b,_,O,q,g),Zl(8,_);break;case 23:break;case 22:var oe=_.stateNode;_.memoizedState!==null?oe._visibility&2?Os(b,_,O,q,g):eu(b,_):(oe._visibility|=2,Os(b,_,O,q,g)),g&&te&2048&&Gh(_.alternate,_);break;case 24:Os(b,_,O,q,g),g&&te&2048&&Kh(_.alternate,_);break;default:Os(b,_,O,q,g)}a=a.sibling}}function eu(r,a){if(a.subtreeFlags&10256)for(a=a.child;a!==null;){var u=r,f=a,g=f.flags;switch(f.tag){case 22:eu(u,f),g&2048&&Gh(f.alternate,f);break;case 24:eu(u,f),g&2048&&Kh(f.alternate,f);break;default:eu(u,f)}a=a.sibling}}var tu=8192;function Ls(r,a,u){if(r.subtreeFlags&tu)for(r=r.child;r!==null;)Ny(r,a,u),r=r.sibling}function Ny(r,a,u){switch(r.tag){case 26:Ls(r,a,u),r.flags&tu&&r.memoizedState!==null&&Uw(u,lr,r.memoizedState,r.memoizedProps);break;case 5:Ls(r,a,u);break;case 3:case 4:var f=lr;lr=xc(r.stateNode.containerInfo),Ls(r,a,u),lr=f;break;case 22:r.memoizedState===null&&(f=r.alternate,f!==null&&f.memoizedState!==null?(f=tu,tu=16777216,Ls(r,a,u),tu=f):Ls(r,a,u));break;default:Ls(r,a,u)}}function Ry(r){var a=r.alternate;if(a!==null&&(r=a.child,r!==null)){a.child=null;do a=r.sibling,r.sibling=null,r=a;while(r!==null)}}function nu(r){var a=r.deletions;if((r.flags&16)!==0){if(a!==null)for(var u=0;u<a.length;u++){var f=a[u];$t=f,Ly(f,r)}Ry(r)}if(r.subtreeFlags&10256)for(r=r.child;r!==null;)Oy(r),r=r.sibling}function Oy(r){switch(r.tag){case 0:case 11:case 15:nu(r),r.flags&2048&&ki(9,r,r.return);break;case 3:nu(r);break;case 12:nu(r);break;case 22:var a=r.stateNode;r.memoizedState!==null&&a._visibility&2&&(r.return===null||r.return.tag!==13)?(a._visibility&=-3,lc(r)):nu(r);break;default:nu(r)}}function lc(r){var a=r.deletions;if((r.flags&16)!==0){if(a!==null)for(var u=0;u<a.length;u++){var f=a[u];$t=f,Ly(f,r)}Ry(r)}for(r=r.child;r!==null;){switch(a=r,a.tag){case 0:case 11:case 15:ki(8,a,a.return),lc(a);break;case 22:u=a.stateNode,u._visibility&2&&(u._visibility&=-3,lc(a));break;default:lc(a)}r=r.sibling}}function Ly(r,a){for(;$t!==null;){var u=$t;switch(u.tag){case 0:case 11:case 15:ki(8,u,a);break;case 23:case 22:if(u.memoizedState!==null&&u.memoizedState.cachePool!==null){var f=u.memoizedState.cachePool.pool;f!=null&&f.refCount++}break;case 24:Hl(u.memoizedState.cache)}if(f=u.child,f!==null)f.return=u,$t=f;else e:for(u=r;$t!==null;){f=$t;var g=f.sibling,b=f.return;if(vy(f),f===u){$t=null;break e}if(g!==null){g.return=b,$t=g;break e}$t=b}}}var tw={getCacheForType:function(r){var a=en(It),u=a.data.get(r);return u===void 0&&(u=r(),a.data.set(r,u)),u},cacheSignal:function(){return en(It).controller.signal}},nw=typeof WeakMap=="function"?WeakMap:Map,st=0,gt=null,Ye=null,Ke=0,ot=0,jn=null,wi=!1,Ds=!1,Xh=!1,Wr=0,wt=0,Ni=0,Aa=0,Qh=0,Hn=0,Is=0,ru=null,An=null,Wh=!1,uc=0,Dy=0,oc=1/0,cc=null,Ri=null,Ft=0,Oi=null,Ms=null,Zr=0,Zh=0,Jh=null,Iy=null,iu=0,em=null;function Un(){return(st&2)!==0&&Ke!==0?Ke&-Ke:V.T!==null?sm():Qg()}function My(){if(Hn===0)if((Ke&536870912)===0||Ze){var r=yo;yo<<=1,(yo&3932160)===0&&(yo=262144),Hn=r}else Hn=536870912;return r=Pn.current,r!==null&&(r.flags|=32),Hn}function kn(r,a,u){(r===gt&&(ot===2||ot===9)||r.cancelPendingCommit!==null)&&(Ps(r,0),Li(r,Ke,Hn,!1)),Cl(r,u),((st&2)===0||r!==gt)&&(r===gt&&((st&2)===0&&(Aa|=u),wt===4&&Li(r,Ke,Hn,!1)),xr(r))}function Py(r,a,u){if((st&6)!==0)throw Error(i(327));var f=!u&&(a&127)===0&&(a&r.expiredLanes)===0||_l(r,a),g=f?aw(r,a):nm(r,a,!0),b=f;do{if(g===0){Ds&&!f&&Li(r,a,0,!1);break}else{if(u=r.current.alternate,b&&!rw(u)){g=nm(r,a,!1),b=!1;continue}if(g===2){if(b=a,r.errorRecoveryDisabledLanes&b)var _=0;else _=r.pendingLanes&-536870913,_=_!==0?_:_&536870912?536870912:0;if(_!==0){a=_;e:{var O=r;g=ru;var q=O.current.memoizedState.isDehydrated;if(q&&(Ps(O,_).flags|=256),_=nm(O,_,!1),_!==2){if(Xh&&!q){O.errorRecoveryDisabledLanes|=b,Aa|=b,g=4;break e}b=An,An=g,b!==null&&(An===null?An=b:An.push.apply(An,b))}g=_}if(b=!1,g!==2)continue}}if(g===1){Ps(r,0),Li(r,a,0,!0);break}e:{switch(f=r,b=g,b){case 0:case 1:throw Error(i(345));case 4:if((a&4194048)!==a)break;case 6:Li(f,a,Hn,!wi);break e;case 2:An=null;break;case 3:case 5:break;default:throw Error(i(329))}if((a&62914560)===a&&(g=uc+300-Qe(),10<g)){if(Li(f,a,Hn,!wi),xo(f,0,!0)!==0)break e;Zr=a,f.timeoutHandle=hE(By.bind(null,f,u,An,cc,Wh,a,Hn,Aa,Is,wi,b,"Throttled",-0,0),g);break e}By(f,u,An,cc,Wh,a,Hn,Aa,Is,wi,b,null,-0,0)}}break}while(!0);xr(r)}function By(r,a,u,f,g,b,_,O,q,te,oe,fe,ne,ie){if(r.timeoutHandle=-1,fe=a.subtreeFlags,fe&8192||(fe&16785408)===16785408){fe={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Br},Ny(a,b,fe);var _e=(b&62914560)===b?uc-Qe():(b&4194048)===b?Dy-Qe():0;if(_e=zw(fe,_e),_e!==null){Zr=b,r.cancelPendingCommit=_e(Yy.bind(null,r,a,b,u,f,g,_,O,q,oe,fe,null,ne,ie)),Li(r,b,_,!te);return}}Yy(r,a,b,u,f,g,_,O,q)}function rw(r){for(var a=r;;){var u=a.tag;if((u===0||u===11||u===15)&&a.flags&16384&&(u=a.updateQueue,u!==null&&(u=u.stores,u!==null)))for(var f=0;f<u.length;f++){var g=u[f],b=g.getSnapshot;g=g.value;try{if(!In(b(),g))return!1}catch{return!1}}if(u=a.child,a.subtreeFlags&16384&&u!==null)u.return=a,a=u;else{if(a===r)break;for(;a.sibling===null;){if(a.return===null||a.return===r)return!0;a=a.return}a.sibling.return=a.return,a=a.sibling}}return!0}function Li(r,a,u,f){a&=~Qh,a&=~Aa,r.suspendedLanes|=a,r.pingedLanes&=~a,f&&(r.warmLanes|=a),f=r.expirationTimes;for(var g=a;0<g;){var b=31-pt(g),_=1<<b;f[b]=-1,g&=~_}u!==0&&Gg(r,u,a)}function fc(){return(st&6)===0?(au(0),!1):!0}function tm(){if(Ye!==null){if(ot===0)var r=Ye.return;else r=Ye,zr=ba=null,bh(r),As=null,zl=0,r=Ye;for(;r!==null;)my(r.alternate,r),r=r.return;Ye=null}}function Ps(r,a){var u=r.timeoutHandle;u!==-1&&(r.timeoutHandle=-1,Sw(u)),u=r.cancelPendingCommit,u!==null&&(r.cancelPendingCommit=null,u()),Zr=0,tm(),gt=r,Ye=u=Hr(r.current,null),Ke=a,ot=0,jn=null,wi=!1,Ds=_l(r,a),Xh=!1,Is=Hn=Qh=Aa=Ni=wt=0,An=ru=null,Wh=!1,(a&8)!==0&&(a|=a&32);var f=r.entangledLanes;if(f!==0)for(r=r.entanglements,f&=a;0<f;){var g=31-pt(f),b=1<<g;a|=r[g],f&=~b}return Wr=a,Lo(),u}function jy(r,a){Be=null,V.H=Xl,a===Cs||a===Uo?(a=eb(),ot=3):a===ah?(a=eb(),ot=4):ot=a===Dh?8:a!==null&&typeof a=="object"&&typeof a.then=="function"?6:1,jn=a,Ye===null&&(wt=1,ec(r,Kn(a,r.current)))}function Hy(){var r=Pn.current;return r===null?!0:(Ke&4194048)===Ke?Zn===null:(Ke&62914560)===Ke||(Ke&536870912)!==0?r===Zn:!1}function Uy(){var r=V.H;return V.H=Xl,r===null?Xl:r}function zy(){var r=V.A;return V.A=tw,r}function dc(){wt=4,wi||(Ke&4194048)!==Ke&&Pn.current!==null||(Ds=!0),(Ni&134217727)===0&&(Aa&134217727)===0||gt===null||Li(gt,Ke,Hn,!1)}function nm(r,a,u){var f=st;st|=2;var g=Uy(),b=zy();(gt!==r||Ke!==a)&&(cc=null,Ps(r,a)),a=!1;var _=wt;e:do try{if(ot!==0&&Ye!==null){var O=Ye,q=jn;switch(ot){case 8:tm(),_=6;break e;case 3:case 2:case 9:case 6:Pn.current===null&&(a=!0);var te=ot;if(ot=0,jn=null,Bs(r,O,q,te),u&&Ds){_=0;break e}break;default:te=ot,ot=0,jn=null,Bs(r,O,q,te)}}iw(),_=wt;break}catch(oe){jy(r,oe)}while(!0);return a&&r.shellSuspendCounter++,zr=ba=null,st=f,V.H=g,V.A=b,Ye===null&&(gt=null,Ke=0,Lo()),_}function iw(){for(;Ye!==null;)Fy(Ye)}function aw(r,a){var u=st;st|=2;var f=Uy(),g=zy();gt!==r||Ke!==a?(cc=null,oc=Qe()+500,Ps(r,a)):Ds=_l(r,a);e:do try{if(ot!==0&&Ye!==null){a=Ye;var b=jn;t:switch(ot){case 1:ot=0,jn=null,Bs(r,a,b,1);break;case 2:case 9:if(Z1(b)){ot=0,jn=null,qy(a);break}a=function(){ot!==2&&ot!==9||gt!==r||(ot=7),xr(r)},b.then(a,a);break e;case 3:ot=7;break e;case 4:ot=5;break e;case 7:Z1(b)?(ot=0,jn=null,qy(a)):(ot=0,jn=null,Bs(r,a,b,7));break;case 5:var _=null;switch(Ye.tag){case 26:_=Ye.memoizedState;case 5:case 27:var O=Ye;if(_?wE(_):O.stateNode.complete){ot=0,jn=null;var q=O.sibling;if(q!==null)Ye=q;else{var te=O.return;te!==null?(Ye=te,hc(te)):Ye=null}break t}}ot=0,jn=null,Bs(r,a,b,5);break;case 6:ot=0,jn=null,Bs(r,a,b,6);break;case 8:tm(),wt=6;break e;default:throw Error(i(462))}}sw();break}catch(oe){jy(r,oe)}while(!0);return zr=ba=null,V.H=f,V.A=g,st=u,Ye!==null?0:(gt=null,Ke=0,Lo(),wt)}function sw(){for(;Ye!==null&&!At();)Fy(Ye)}function Fy(r){var a=dy(r.alternate,r,Wr);r.memoizedProps=r.pendingProps,a===null?hc(r):Ye=a}function qy(r){var a=r,u=a.alternate;switch(a.tag){case 15:case 0:a=sy(u,a,a.pendingProps,a.type,void 0,Ke);break;case 11:a=sy(u,a,a.pendingProps,a.type.render,a.ref,Ke);break;case 5:bh(a);default:my(u,a),a=Ye=z1(a,Wr),a=dy(u,a,Wr)}r.memoizedProps=r.pendingProps,a===null?hc(r):Ye=a}function Bs(r,a,u,f){zr=ba=null,bh(a),As=null,zl=0;var g=a.return;try{if(Kk(r,g,a,u,Ke)){wt=1,ec(r,Kn(u,r.current)),Ye=null;return}}catch(b){if(g!==null)throw Ye=g,b;wt=1,ec(r,Kn(u,r.current)),Ye=null;return}a.flags&32768?(Ze||f===1?r=!0:Ds||(Ke&536870912)!==0?r=!1:(wi=r=!0,(f===2||f===9||f===3||f===6)&&(f=Pn.current,f!==null&&f.tag===13&&(f.flags|=16384))),Vy(a,r)):hc(a)}function hc(r){var a=r;do{if((a.flags&32768)!==0){Vy(a,wi);return}r=a.return;var u=Wk(a.alternate,a,Wr);if(u!==null){Ye=u;return}if(a=a.sibling,a!==null){Ye=a;return}Ye=a=r}while(a!==null);wt===0&&(wt=5)}function Vy(r,a){do{var u=Zk(r.alternate,r);if(u!==null){u.flags&=32767,Ye=u;return}if(u=r.return,u!==null&&(u.flags|=32768,u.subtreeFlags=0,u.deletions=null),!a&&(r=r.sibling,r!==null)){Ye=r;return}Ye=r=u}while(r!==null);wt=6,Ye=null}function Yy(r,a,u,f,g,b,_,O,q){r.cancelPendingCommit=null;do mc();while(Ft!==0);if((st&6)!==0)throw Error(i(327));if(a!==null){if(a===r.current)throw Error(i(177));if(b=a.lanes|a.childLanes,b|=Vd,HA(r,u,b,_,O,q),r===gt&&(Ye=gt=null,Ke=0),Ms=a,Oi=r,Zr=u,Zh=b,Jh=g,Iy=f,(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?(r.callbackNode=null,r.callbackPriority=0,cw(we,function(){return Qy(),null})):(r.callbackNode=null,r.callbackPriority=0),f=(a.flags&13878)!==0,(a.subtreeFlags&13878)!==0||f){f=V.T,V.T=null,g=Q.p,Q.p=2,_=st,st|=4;try{Jk(r,a,u)}finally{st=_,Q.p=g,V.T=f}}Ft=1,$y(),Gy(),Ky()}}function $y(){if(Ft===1){Ft=0;var r=Oi,a=Ms,u=(a.flags&13878)!==0;if((a.subtreeFlags&13878)!==0||u){u=V.T,V.T=null;var f=Q.p;Q.p=2;var g=st;st|=4;try{Ay(a,r);var b=mm,_=L1(r.containerInfo),O=b.focusedElem,q=b.selectionRange;if(_!==O&&O&&O.ownerDocument&&O1(O.ownerDocument.documentElement,O)){if(q!==null&&Hd(O)){var te=q.start,oe=q.end;if(oe===void 0&&(oe=te),"selectionStart"in O)O.selectionStart=te,O.selectionEnd=Math.min(oe,O.value.length);else{var fe=O.ownerDocument||document,ne=fe&&fe.defaultView||window;if(ne.getSelection){var ie=ne.getSelection(),_e=O.textContent.length,Le=Math.min(q.start,_e),ht=q.end===void 0?Le:Math.min(q.end,_e);!ie.extend&&Le>ht&&(_=ht,ht=Le,Le=_);var W=R1(O,Le),G=R1(O,ht);if(W&&G&&(ie.rangeCount!==1||ie.anchorNode!==W.node||ie.anchorOffset!==W.offset||ie.focusNode!==G.node||ie.focusOffset!==G.offset)){var ee=fe.createRange();ee.setStart(W.node,W.offset),ie.removeAllRanges(),Le>ht?(ie.addRange(ee),ie.extend(G.node,G.offset)):(ee.setEnd(G.node,G.offset),ie.addRange(ee))}}}}for(fe=[],ie=O;ie=ie.parentNode;)ie.nodeType===1&&fe.push({element:ie,left:ie.scrollLeft,top:ie.scrollTop});for(typeof O.focus=="function"&&O.focus(),O=0;O<fe.length;O++){var ce=fe[O];ce.element.scrollLeft=ce.left,ce.element.scrollTop=ce.top}}Ac=!!hm,mm=hm=null}finally{st=g,Q.p=f,V.T=u}}r.current=a,Ft=2}}function Gy(){if(Ft===2){Ft=0;var r=Oi,a=Ms,u=(a.flags&8772)!==0;if((a.subtreeFlags&8772)!==0||u){u=V.T,V.T=null;var f=Q.p;Q.p=2;var g=st;st|=4;try{Ty(r,a.alternate,a)}finally{st=g,Q.p=f,V.T=u}}Ft=3}}function Ky(){if(Ft===4||Ft===3){Ft=0,Je();var r=Oi,a=Ms,u=Zr,f=Iy;(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?Ft=5:(Ft=0,Ms=Oi=null,Xy(r,r.pendingLanes));var g=r.pendingLanes;if(g===0&&(Ri=null),xd(u),a=a.stateNode,zt&&typeof zt.onCommitFiberRoot=="function")try{zt.onCommitFiberRoot(fn,a,void 0,(a.current.flags&128)===128)}catch{}if(f!==null){a=V.T,g=Q.p,Q.p=2,V.T=null;try{for(var b=r.onRecoverableError,_=0;_<f.length;_++){var O=f[_];b(O.value,{componentStack:O.stack})}}finally{V.T=a,Q.p=g}}(Zr&3)!==0&&mc(),xr(r),g=r.pendingLanes,(u&261930)!==0&&(g&42)!==0?r===em?iu++:(iu=0,em=r):iu=0,au(0)}}function Xy(r,a){(r.pooledCacheLanes&=a)===0&&(a=r.pooledCache,a!=null&&(r.pooledCache=null,Hl(a)))}function mc(){return $y(),Gy(),Ky(),Qy()}function Qy(){if(Ft!==5)return!1;var r=Oi,a=Zh;Zh=0;var u=xd(Zr),f=V.T,g=Q.p;try{Q.p=32>u?32:u,V.T=null,u=Jh,Jh=null;var b=Oi,_=Zr;if(Ft=0,Ms=Oi=null,Zr=0,(st&6)!==0)throw Error(i(331));var O=st;if(st|=4,Oy(b.current),wy(b,b.current,_,u),st=O,au(0,!1),zt&&typeof zt.onPostCommitFiberRoot=="function")try{zt.onPostCommitFiberRoot(fn,b)}catch{}return!0}finally{Q.p=g,V.T=f,Xy(r,a)}}function Wy(r,a,u){a=Kn(u,a),a=Lh(r.stateNode,a,2),r=_i(r,a,2),r!==null&&(Cl(r,2),xr(r))}function ct(r,a,u){if(r.tag===3)Wy(r,r,u);else for(;a!==null;){if(a.tag===3){Wy(a,r,u);break}else if(a.tag===1){var f=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof f.componentDidCatch=="function"&&(Ri===null||!Ri.has(f))){r=Kn(u,r),u=Zb(2),f=_i(a,u,2),f!==null&&(Jb(u,f,a,r),Cl(f,2),xr(f));break}}a=a.return}}function rm(r,a,u){var f=r.pingCache;if(f===null){f=r.pingCache=new nw;var g=new Set;f.set(a,g)}else g=f.get(a),g===void 0&&(g=new Set,f.set(a,g));g.has(u)||(Xh=!0,g.add(u),r=lw.bind(null,r,a,u),a.then(r,r))}function lw(r,a,u){var f=r.pingCache;f!==null&&f.delete(a),r.pingedLanes|=r.suspendedLanes&u,r.warmLanes&=~u,gt===r&&(Ke&u)===u&&(wt===4||wt===3&&(Ke&62914560)===Ke&&300>Qe()-uc?(st&2)===0&&Ps(r,0):Qh|=u,Is===Ke&&(Is=0)),xr(r)}function Zy(r,a){a===0&&(a=$g()),r=ma(r,a),r!==null&&(Cl(r,a),xr(r))}function uw(r){var a=r.memoizedState,u=0;a!==null&&(u=a.retryLane),Zy(r,u)}function ow(r,a){var u=0;switch(r.tag){case 31:case 13:var f=r.stateNode,g=r.memoizedState;g!==null&&(u=g.retryLane);break;case 19:f=r.stateNode;break;case 22:f=r.stateNode._retryCache;break;default:throw Error(i(314))}f!==null&&f.delete(a),Zy(r,u)}function cw(r,a){return ke(r,a)}var pc=null,js=null,im=!1,gc=!1,am=!1,Di=0;function xr(r){r!==js&&r.next===null&&(js===null?pc=js=r:js=js.next=r),gc=!0,im||(im=!0,dw())}function au(r,a){if(!am&&gc){am=!0;do for(var u=!1,f=pc;f!==null;){if(r!==0){var g=f.pendingLanes;if(g===0)var b=0;else{var _=f.suspendedLanes,O=f.pingedLanes;b=(1<<31-pt(42|r)+1)-1,b&=g&~(_&~O),b=b&201326741?b&201326741|1:b?b|2:0}b!==0&&(u=!0,nE(f,b))}else b=Ke,b=xo(f,f===gt?b:0,f.cancelPendingCommit!==null||f.timeoutHandle!==-1),(b&3)===0||_l(f,b)||(u=!0,nE(f,b));f=f.next}while(u);am=!1}}function fw(){Jy()}function Jy(){gc=im=!1;var r=0;Di!==0&&vw()&&(r=Di);for(var a=Qe(),u=null,f=pc;f!==null;){var g=f.next,b=eE(f,a);b===0?(f.next=null,u===null?pc=g:u.next=g,g===null&&(js=u)):(u=f,(r!==0||(b&3)!==0)&&(gc=!0)),f=g}Ft!==0&&Ft!==5||au(r),Di!==0&&(Di=0)}function eE(r,a){for(var u=r.suspendedLanes,f=r.pingedLanes,g=r.expirationTimes,b=r.pendingLanes&-62914561;0<b;){var _=31-pt(b),O=1<<_,q=g[_];q===-1?((O&u)===0||(O&f)!==0)&&(g[_]=jA(O,a)):q<=a&&(r.expiredLanes|=O),b&=~O}if(a=gt,u=Ke,u=xo(r,r===a?u:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),f=r.callbackNode,u===0||r===a&&(ot===2||ot===9)||r.cancelPendingCommit!==null)return f!==null&&f!==null&&Ue(f),r.callbackNode=null,r.callbackPriority=0;if((u&3)===0||_l(r,u)){if(a=u&-u,a===r.callbackPriority)return a;switch(f!==null&&Ue(f),xd(u)){case 2:case 8:u=de;break;case 32:u=we;break;case 268435456:u=We;break;default:u=we}return f=tE.bind(null,r),u=ke(u,f),r.callbackPriority=a,r.callbackNode=u,a}return f!==null&&f!==null&&Ue(f),r.callbackPriority=2,r.callbackNode=null,2}function tE(r,a){if(Ft!==0&&Ft!==5)return r.callbackNode=null,r.callbackPriority=0,null;var u=r.callbackNode;if(mc()&&r.callbackNode!==u)return null;var f=Ke;return f=xo(r,r===gt?f:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),f===0?null:(Py(r,f,a),eE(r,Qe()),r.callbackNode!=null&&r.callbackNode===u?tE.bind(null,r):null)}function nE(r,a){if(mc())return null;Py(r,a,!0)}function dw(){_w(function(){(st&6)!==0?ke(Y,fw):Jy()})}function sm(){if(Di===0){var r=Ss;r===0&&(r=bo,bo<<=1,(bo&261888)===0&&(bo=256)),Di=r}return Di}function rE(r){return r==null||typeof r=="symbol"||typeof r=="boolean"?null:typeof r=="function"?r:_o(""+r)}function iE(r,a){var u=a.ownerDocument.createElement("input");return u.name=a.name,u.value=a.value,r.id&&u.setAttribute("form",r.id),a.parentNode.insertBefore(u,a),r=new FormData(r),u.parentNode.removeChild(u),r}function hw(r,a,u,f,g){if(a==="submit"&&u&&u.stateNode===g){var b=rE((g[Tn]||null).action),_=f.submitter;_&&(a=(a=_[Tn]||null)?rE(a.formAction):_.getAttribute("formAction"),a!==null&&(b=a,_=null));var O=new wo("action","action",null,f,g);r.push({event:O,listeners:[{instance:null,listener:function(){if(f.defaultPrevented){if(Di!==0){var q=_?iE(g,_):new FormData(g);Ah(u,{pending:!0,data:q,method:g.method,action:b},null,q)}}else typeof b=="function"&&(O.preventDefault(),q=_?iE(g,_):new FormData(g),Ah(u,{pending:!0,data:q,method:g.method,action:b},b,q))},currentTarget:g}]})}}for(var lm=0;lm<qd.length;lm++){var um=qd[lm],mw=um.toLowerCase(),pw=um[0].toUpperCase()+um.slice(1);sr(mw,"on"+pw)}sr(M1,"onAnimationEnd"),sr(P1,"onAnimationIteration"),sr(B1,"onAnimationStart"),sr("dblclick","onDoubleClick"),sr("focusin","onFocus"),sr("focusout","onBlur"),sr(Ok,"onTransitionRun"),sr(Lk,"onTransitionStart"),sr(Dk,"onTransitionCancel"),sr(j1,"onTransitionEnd"),os("onMouseEnter",["mouseout","mouseover"]),os("onMouseLeave",["mouseout","mouseover"]),os("onPointerEnter",["pointerout","pointerover"]),os("onPointerLeave",["pointerout","pointerover"]),ca("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ca("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ca("onBeforeInput",["compositionend","keypress","textInput","paste"]),ca("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ca("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ca("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var su="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(" "),gw=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(su));function aE(r,a){a=(a&4)!==0;for(var u=0;u<r.length;u++){var f=r[u],g=f.event;f=f.listeners;e:{var b=void 0;if(a)for(var _=f.length-1;0<=_;_--){var O=f[_],q=O.instance,te=O.currentTarget;if(O=O.listener,q!==b&&g.isPropagationStopped())break e;b=O,g.currentTarget=te;try{b(g)}catch(oe){Oo(oe)}g.currentTarget=null,b=q}else for(_=0;_<f.length;_++){if(O=f[_],q=O.instance,te=O.currentTarget,O=O.listener,q!==b&&g.isPropagationStopped())break e;b=O,g.currentTarget=te;try{b(g)}catch(oe){Oo(oe)}g.currentTarget=null,b=q}}}}function $e(r,a){var u=a[Td];u===void 0&&(u=a[Td]=new Set);var f=r+"__bubble";u.has(f)||(sE(a,r,2,!1),u.add(f))}function om(r,a,u){var f=0;a&&(f|=4),sE(u,r,f,a)}var bc="_reactListening"+Math.random().toString(36).slice(2);function cm(r){if(!r[bc]){r[bc]=!0,Jg.forEach(function(u){u!=="selectionchange"&&(gw.has(u)||om(u,!1,r),om(u,!0,r))});var a=r.nodeType===9?r:r.ownerDocument;a===null||a[bc]||(a[bc]=!0,om("selectionchange",!1,a))}}function sE(r,a,u,f){switch(ME(a)){case 2:var g=Vw;break;case 8:g=Yw;break;default:g=Cm}u=g.bind(null,a,u,r),g=void 0,!Rd||a!=="touchstart"&&a!=="touchmove"&&a!=="wheel"||(g=!0),f?g!==void 0?r.addEventListener(a,u,{capture:!0,passive:g}):r.addEventListener(a,u,!0):g!==void 0?r.addEventListener(a,u,{passive:g}):r.addEventListener(a,u,!1)}function fm(r,a,u,f,g){var b=f;if((a&1)===0&&(a&2)===0&&f!==null)e:for(;;){if(f===null)return;var _=f.tag;if(_===3||_===4){var O=f.stateNode.containerInfo;if(O===g)break;if(_===4)for(_=f.return;_!==null;){var q=_.tag;if((q===3||q===4)&&_.stateNode.containerInfo===g)return;_=_.return}for(;O!==null;){if(_=ss(O),_===null)return;if(q=_.tag,q===5||q===6||q===26||q===27){f=b=_;continue e}O=O.parentNode}}f=f.return}f1(function(){var te=b,oe=wd(u),fe=[];e:{var ne=H1.get(r);if(ne!==void 0){var ie=wo,_e=r;switch(r){case"keypress":if(Ao(u)===0)break e;case"keydown":case"keyup":ie=ok;break;case"focusin":_e="focus",ie=Id;break;case"focusout":_e="blur",ie=Id;break;case"beforeblur":case"afterblur":ie=Id;break;case"click":if(u.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ie=m1;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ie=WA;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ie=dk;break;case M1:case P1:case B1:ie=ek;break;case j1:ie=mk;break;case"scroll":case"scrollend":ie=XA;break;case"wheel":ie=gk;break;case"copy":case"cut":case"paste":ie=nk;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ie=g1;break;case"toggle":case"beforetoggle":ie=yk}var Le=(a&4)!==0,ht=!Le&&(r==="scroll"||r==="scrollend"),W=Le?ne!==null?ne+"Capture":null:ne;Le=[];for(var G=te,ee;G!==null;){var ce=G;if(ee=ce.stateNode,ce=ce.tag,ce!==5&&ce!==26&&ce!==27||ee===null||W===null||(ce=wl(G,W),ce!=null&&Le.push(lu(G,ce,ee))),ht)break;G=G.return}0<Le.length&&(ne=new ie(ne,_e,null,u,oe),fe.push({event:ne,listeners:Le}))}}if((a&7)===0){e:{if(ne=r==="mouseover"||r==="pointerover",ie=r==="mouseout"||r==="pointerout",ne&&u!==kd&&(_e=u.relatedTarget||u.fromElement)&&(ss(_e)||_e[as]))break e;if((ie||ne)&&(ne=oe.window===oe?oe:(ne=oe.ownerDocument)?ne.defaultView||ne.parentWindow:window,ie?(_e=u.relatedTarget||u.toElement,ie=te,_e=_e?ss(_e):null,_e!==null&&(ht=l(_e),Le=_e.tag,_e!==ht||Le!==5&&Le!==27&&Le!==6)&&(_e=null)):(ie=null,_e=te),ie!==_e)){if(Le=m1,ce="onMouseLeave",W="onMouseEnter",G="mouse",(r==="pointerout"||r==="pointerover")&&(Le=g1,ce="onPointerLeave",W="onPointerEnter",G="pointer"),ht=ie==null?ne:kl(ie),ee=_e==null?ne:kl(_e),ne=new Le(ce,G+"leave",ie,u,oe),ne.target=ht,ne.relatedTarget=ee,ce=null,ss(oe)===te&&(Le=new Le(W,G+"enter",_e,u,oe),Le.target=ee,Le.relatedTarget=ht,ce=Le),ht=ce,ie&&_e)t:{for(Le=bw,W=ie,G=_e,ee=0,ce=W;ce;ce=Le(ce))ee++;ce=0;for(var Re=G;Re;Re=Le(Re))ce++;for(;0<ee-ce;)W=Le(W),ee--;for(;0<ce-ee;)G=Le(G),ce--;for(;ee--;){if(W===G||G!==null&&W===G.alternate){Le=W;break t}W=Le(W),G=Le(G)}Le=null}else Le=null;ie!==null&&lE(fe,ne,ie,Le,!1),_e!==null&&ht!==null&&lE(fe,ht,_e,Le,!0)}}e:{if(ne=te?kl(te):window,ie=ne.nodeName&&ne.nodeName.toLowerCase(),ie==="select"||ie==="input"&&ne.type==="file")var it=_1;else if(v1(ne))if(C1)it=wk;else{it=Ak;var Ce=Ck}else ie=ne.nodeName,!ie||ie.toLowerCase()!=="input"||ne.type!=="checkbox"&&ne.type!=="radio"?te&&Ad(te.elementType)&&(it=_1):it=kk;if(it&&(it=it(r,te))){S1(fe,it,u,oe);break e}Ce&&Ce(r,ne,te),r==="focusout"&&te&&ne.type==="number"&&te.memoizedProps.value!=null&&Cd(ne,"number",ne.value)}switch(Ce=te?kl(te):window,r){case"focusin":(v1(Ce)||Ce.contentEditable==="true")&&(ps=Ce,Ud=te,Pl=null);break;case"focusout":Pl=Ud=ps=null;break;case"mousedown":zd=!0;break;case"contextmenu":case"mouseup":case"dragend":zd=!1,D1(fe,u,oe);break;case"selectionchange":if(Rk)break;case"keydown":case"keyup":D1(fe,u,oe)}var He;if(Pd)e:{switch(r){case"compositionstart":var Xe="onCompositionStart";break e;case"compositionend":Xe="onCompositionEnd";break e;case"compositionupdate":Xe="onCompositionUpdate";break e}Xe=void 0}else ms?x1(r,u)&&(Xe="onCompositionEnd"):r==="keydown"&&u.keyCode===229&&(Xe="onCompositionStart");Xe&&(b1&&u.locale!=="ko"&&(ms||Xe!=="onCompositionStart"?Xe==="onCompositionEnd"&&ms&&(He=d1()):(bi=oe,Od="value"in bi?bi.value:bi.textContent,ms=!0)),Ce=yc(te,Xe),0<Ce.length&&(Xe=new p1(Xe,r,null,u,oe),fe.push({event:Xe,listeners:Ce}),He?Xe.data=He:(He=T1(u),He!==null&&(Xe.data=He)))),(He=xk?Tk(r,u):vk(r,u))&&(Xe=yc(te,"onBeforeInput"),0<Xe.length&&(Ce=new p1("onBeforeInput","beforeinput",null,u,oe),fe.push({event:Ce,listeners:Xe}),Ce.data=He)),hw(fe,r,te,u,oe)}aE(fe,a)})}function lu(r,a,u){return{instance:r,listener:a,currentTarget:u}}function yc(r,a){for(var u=a+"Capture",f=[];r!==null;){var g=r,b=g.stateNode;if(g=g.tag,g!==5&&g!==26&&g!==27||b===null||(g=wl(r,u),g!=null&&f.unshift(lu(r,g,b)),g=wl(r,a),g!=null&&f.push(lu(r,g,b))),r.tag===3)return f;r=r.return}return[]}function bw(r){if(r===null)return null;do r=r.return;while(r&&r.tag!==5&&r.tag!==27);return r||null}function lE(r,a,u,f,g){for(var b=a._reactName,_=[];u!==null&&u!==f;){var O=u,q=O.alternate,te=O.stateNode;if(O=O.tag,q!==null&&q===f)break;O!==5&&O!==26&&O!==27||te===null||(q=te,g?(te=wl(u,b),te!=null&&_.unshift(lu(u,te,q))):g||(te=wl(u,b),te!=null&&_.push(lu(u,te,q)))),u=u.return}_.length!==0&&r.push({event:a,listeners:_})}var yw=/\r\n?/g,Ew=/\u0000|\uFFFD/g;function uE(r){return(typeof r=="string"?r:""+r).replace(yw,`
|
|
9
|
+
`).replace(Ew,"")}function oE(r,a){return a=uE(a),uE(r)===a}function dt(r,a,u,f,g,b){switch(u){case"children":typeof f=="string"?a==="body"||a==="textarea"&&f===""||fs(r,f):(typeof f=="number"||typeof f=="bigint")&&a!=="body"&&fs(r,""+f);break;case"className":vo(r,"class",f);break;case"tabIndex":vo(r,"tabindex",f);break;case"dir":case"role":case"viewBox":case"width":case"height":vo(r,u,f);break;case"style":o1(r,f,b);break;case"data":if(a!=="object"){vo(r,"data",f);break}case"src":case"href":if(f===""&&(a!=="a"||u!=="href")){r.removeAttribute(u);break}if(f==null||typeof f=="function"||typeof f=="symbol"||typeof f=="boolean"){r.removeAttribute(u);break}f=_o(""+f),r.setAttribute(u,f);break;case"action":case"formAction":if(typeof f=="function"){r.setAttribute(u,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof b=="function"&&(u==="formAction"?(a!=="input"&&dt(r,a,"name",g.name,g,null),dt(r,a,"formEncType",g.formEncType,g,null),dt(r,a,"formMethod",g.formMethod,g,null),dt(r,a,"formTarget",g.formTarget,g,null)):(dt(r,a,"encType",g.encType,g,null),dt(r,a,"method",g.method,g,null),dt(r,a,"target",g.target,g,null)));if(f==null||typeof f=="symbol"||typeof f=="boolean"){r.removeAttribute(u);break}f=_o(""+f),r.setAttribute(u,f);break;case"onClick":f!=null&&(r.onclick=Br);break;case"onScroll":f!=null&&$e("scroll",r);break;case"onScrollEnd":f!=null&&$e("scrollend",r);break;case"dangerouslySetInnerHTML":if(f!=null){if(typeof f!="object"||!("__html"in f))throw Error(i(61));if(u=f.__html,u!=null){if(g.children!=null)throw Error(i(60));r.innerHTML=u}}break;case"multiple":r.multiple=f&&typeof f!="function"&&typeof f!="symbol";break;case"muted":r.muted=f&&typeof f!="function"&&typeof f!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(f==null||typeof f=="function"||typeof f=="boolean"||typeof f=="symbol"){r.removeAttribute("xlink:href");break}u=_o(""+f),r.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",u);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":f!=null&&typeof f!="function"&&typeof f!="symbol"?r.setAttribute(u,""+f):r.removeAttribute(u);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":f&&typeof f!="function"&&typeof f!="symbol"?r.setAttribute(u,""):r.removeAttribute(u);break;case"capture":case"download":f===!0?r.setAttribute(u,""):f!==!1&&f!=null&&typeof f!="function"&&typeof f!="symbol"?r.setAttribute(u,f):r.removeAttribute(u);break;case"cols":case"rows":case"size":case"span":f!=null&&typeof f!="function"&&typeof f!="symbol"&&!isNaN(f)&&1<=f?r.setAttribute(u,f):r.removeAttribute(u);break;case"rowSpan":case"start":f==null||typeof f=="function"||typeof f=="symbol"||isNaN(f)?r.removeAttribute(u):r.setAttribute(u,f);break;case"popover":$e("beforetoggle",r),$e("toggle",r),To(r,"popover",f);break;case"xlinkActuate":Pr(r,"http://www.w3.org/1999/xlink","xlink:actuate",f);break;case"xlinkArcrole":Pr(r,"http://www.w3.org/1999/xlink","xlink:arcrole",f);break;case"xlinkRole":Pr(r,"http://www.w3.org/1999/xlink","xlink:role",f);break;case"xlinkShow":Pr(r,"http://www.w3.org/1999/xlink","xlink:show",f);break;case"xlinkTitle":Pr(r,"http://www.w3.org/1999/xlink","xlink:title",f);break;case"xlinkType":Pr(r,"http://www.w3.org/1999/xlink","xlink:type",f);break;case"xmlBase":Pr(r,"http://www.w3.org/XML/1998/namespace","xml:base",f);break;case"xmlLang":Pr(r,"http://www.w3.org/XML/1998/namespace","xml:lang",f);break;case"xmlSpace":Pr(r,"http://www.w3.org/XML/1998/namespace","xml:space",f);break;case"is":To(r,"is",f);break;case"innerText":case"textContent":break;default:(!(2<u.length)||u[0]!=="o"&&u[0]!=="O"||u[1]!=="n"&&u[1]!=="N")&&(u=GA.get(u)||u,To(r,u,f))}}function dm(r,a,u,f,g,b){switch(u){case"style":o1(r,f,b);break;case"dangerouslySetInnerHTML":if(f!=null){if(typeof f!="object"||!("__html"in f))throw Error(i(61));if(u=f.__html,u!=null){if(g.children!=null)throw Error(i(60));r.innerHTML=u}}break;case"children":typeof f=="string"?fs(r,f):(typeof f=="number"||typeof f=="bigint")&&fs(r,""+f);break;case"onScroll":f!=null&&$e("scroll",r);break;case"onScrollEnd":f!=null&&$e("scrollend",r);break;case"onClick":f!=null&&(r.onclick=Br);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!e1.hasOwnProperty(u))e:{if(u[0]==="o"&&u[1]==="n"&&(g=u.endsWith("Capture"),a=u.slice(2,g?u.length-7:void 0),b=r[Tn]||null,b=b!=null?b[u]:null,typeof b=="function"&&r.removeEventListener(a,b,g),typeof f=="function")){typeof b!="function"&&b!==null&&(u in r?r[u]=null:r.hasAttribute(u)&&r.removeAttribute(u)),r.addEventListener(a,f,g);break e}u in r?r[u]=f:f===!0?r.setAttribute(u,""):To(r,u,f)}}}function nn(r,a,u){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":$e("error",r),$e("load",r);var f=!1,g=!1,b;for(b in u)if(u.hasOwnProperty(b)){var _=u[b];if(_!=null)switch(b){case"src":f=!0;break;case"srcSet":g=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i(137,a));default:dt(r,a,b,_,u,null)}}g&&dt(r,a,"srcSet",u.srcSet,u,null),f&&dt(r,a,"src",u.src,u,null);return;case"input":$e("invalid",r);var O=b=_=g=null,q=null,te=null;for(f in u)if(u.hasOwnProperty(f)){var oe=u[f];if(oe!=null)switch(f){case"name":g=oe;break;case"type":_=oe;break;case"checked":q=oe;break;case"defaultChecked":te=oe;break;case"value":b=oe;break;case"defaultValue":O=oe;break;case"children":case"dangerouslySetInnerHTML":if(oe!=null)throw Error(i(137,a));break;default:dt(r,a,f,oe,u,null)}}a1(r,b,O,q,te,_,g,!1);return;case"select":$e("invalid",r),f=_=b=null;for(g in u)if(u.hasOwnProperty(g)&&(O=u[g],O!=null))switch(g){case"value":b=O;break;case"defaultValue":_=O;break;case"multiple":f=O;default:dt(r,a,g,O,u,null)}a=b,u=_,r.multiple=!!f,a!=null?cs(r,!!f,a,!1):u!=null&&cs(r,!!f,u,!0);return;case"textarea":$e("invalid",r),b=g=f=null;for(_ in u)if(u.hasOwnProperty(_)&&(O=u[_],O!=null))switch(_){case"value":f=O;break;case"defaultValue":g=O;break;case"children":b=O;break;case"dangerouslySetInnerHTML":if(O!=null)throw Error(i(91));break;default:dt(r,a,_,O,u,null)}l1(r,f,g,b);return;case"option":for(q in u)u.hasOwnProperty(q)&&(f=u[q],f!=null)&&(q==="selected"?r.selected=f&&typeof f!="function"&&typeof f!="symbol":dt(r,a,q,f,u,null));return;case"dialog":$e("beforetoggle",r),$e("toggle",r),$e("cancel",r),$e("close",r);break;case"iframe":case"object":$e("load",r);break;case"video":case"audio":for(f=0;f<su.length;f++)$e(su[f],r);break;case"image":$e("error",r),$e("load",r);break;case"details":$e("toggle",r);break;case"embed":case"source":case"link":$e("error",r),$e("load",r);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(te in u)if(u.hasOwnProperty(te)&&(f=u[te],f!=null))switch(te){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,a));default:dt(r,a,te,f,u,null)}return;default:if(Ad(a)){for(oe in u)u.hasOwnProperty(oe)&&(f=u[oe],f!==void 0&&dm(r,a,oe,f,u,void 0));return}}for(O in u)u.hasOwnProperty(O)&&(f=u[O],f!=null&&dt(r,a,O,f,u,null))}function xw(r,a,u,f){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var g=null,b=null,_=null,O=null,q=null,te=null,oe=null;for(ie in u){var fe=u[ie];if(u.hasOwnProperty(ie)&&fe!=null)switch(ie){case"checked":break;case"value":break;case"defaultValue":q=fe;default:f.hasOwnProperty(ie)||dt(r,a,ie,null,f,fe)}}for(var ne in f){var ie=f[ne];if(fe=u[ne],f.hasOwnProperty(ne)&&(ie!=null||fe!=null))switch(ne){case"type":b=ie;break;case"name":g=ie;break;case"checked":te=ie;break;case"defaultChecked":oe=ie;break;case"value":_=ie;break;case"defaultValue":O=ie;break;case"children":case"dangerouslySetInnerHTML":if(ie!=null)throw Error(i(137,a));break;default:ie!==fe&&dt(r,a,ne,ie,f,fe)}}_d(r,_,O,q,te,oe,b,g);return;case"select":ie=_=O=ne=null;for(b in u)if(q=u[b],u.hasOwnProperty(b)&&q!=null)switch(b){case"value":break;case"multiple":ie=q;default:f.hasOwnProperty(b)||dt(r,a,b,null,f,q)}for(g in f)if(b=f[g],q=u[g],f.hasOwnProperty(g)&&(b!=null||q!=null))switch(g){case"value":ne=b;break;case"defaultValue":O=b;break;case"multiple":_=b;default:b!==q&&dt(r,a,g,b,f,q)}a=O,u=_,f=ie,ne!=null?cs(r,!!u,ne,!1):!!f!=!!u&&(a!=null?cs(r,!!u,a,!0):cs(r,!!u,u?[]:"",!1));return;case"textarea":ie=ne=null;for(O in u)if(g=u[O],u.hasOwnProperty(O)&&g!=null&&!f.hasOwnProperty(O))switch(O){case"value":break;case"children":break;default:dt(r,a,O,null,f,g)}for(_ in f)if(g=f[_],b=u[_],f.hasOwnProperty(_)&&(g!=null||b!=null))switch(_){case"value":ne=g;break;case"defaultValue":ie=g;break;case"children":break;case"dangerouslySetInnerHTML":if(g!=null)throw Error(i(91));break;default:g!==b&&dt(r,a,_,g,f,b)}s1(r,ne,ie);return;case"option":for(var _e in u)ne=u[_e],u.hasOwnProperty(_e)&&ne!=null&&!f.hasOwnProperty(_e)&&(_e==="selected"?r.selected=!1:dt(r,a,_e,null,f,ne));for(q in f)ne=f[q],ie=u[q],f.hasOwnProperty(q)&&ne!==ie&&(ne!=null||ie!=null)&&(q==="selected"?r.selected=ne&&typeof ne!="function"&&typeof ne!="symbol":dt(r,a,q,ne,f,ie));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Le in u)ne=u[Le],u.hasOwnProperty(Le)&&ne!=null&&!f.hasOwnProperty(Le)&&dt(r,a,Le,null,f,ne);for(te in f)if(ne=f[te],ie=u[te],f.hasOwnProperty(te)&&ne!==ie&&(ne!=null||ie!=null))switch(te){case"children":case"dangerouslySetInnerHTML":if(ne!=null)throw Error(i(137,a));break;default:dt(r,a,te,ne,f,ie)}return;default:if(Ad(a)){for(var ht in u)ne=u[ht],u.hasOwnProperty(ht)&&ne!==void 0&&!f.hasOwnProperty(ht)&&dm(r,a,ht,void 0,f,ne);for(oe in f)ne=f[oe],ie=u[oe],!f.hasOwnProperty(oe)||ne===ie||ne===void 0&&ie===void 0||dm(r,a,oe,ne,f,ie);return}}for(var W in u)ne=u[W],u.hasOwnProperty(W)&&ne!=null&&!f.hasOwnProperty(W)&&dt(r,a,W,null,f,ne);for(fe in f)ne=f[fe],ie=u[fe],!f.hasOwnProperty(fe)||ne===ie||ne==null&&ie==null||dt(r,a,fe,ne,f,ie)}function cE(r){switch(r){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Tw(){if(typeof performance.getEntriesByType=="function"){for(var r=0,a=0,u=performance.getEntriesByType("resource"),f=0;f<u.length;f++){var g=u[f],b=g.transferSize,_=g.initiatorType,O=g.duration;if(b&&O&&cE(_)){for(_=0,O=g.responseEnd,f+=1;f<u.length;f++){var q=u[f],te=q.startTime;if(te>O)break;var oe=q.transferSize,fe=q.initiatorType;oe&&cE(fe)&&(q=q.responseEnd,_+=oe*(q<O?1:(O-te)/(q-te)))}if(--f,a+=8*(b+_)/(g.duration/1e3),r++,10<r)break}}if(0<r)return a/r/1e6}return navigator.connection&&(r=navigator.connection.downlink,typeof r=="number")?r:5}var hm=null,mm=null;function Ec(r){return r.nodeType===9?r:r.ownerDocument}function fE(r){switch(r){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function dE(r,a){if(r===0)switch(a){case"svg":return 1;case"math":return 2;default:return 0}return r===1&&a==="foreignObject"?0:r}function pm(r,a){return r==="textarea"||r==="noscript"||typeof a.children=="string"||typeof a.children=="number"||typeof a.children=="bigint"||typeof a.dangerouslySetInnerHTML=="object"&&a.dangerouslySetInnerHTML!==null&&a.dangerouslySetInnerHTML.__html!=null}var gm=null;function vw(){var r=window.event;return r&&r.type==="popstate"?r===gm?!1:(gm=r,!0):(gm=null,!1)}var hE=typeof setTimeout=="function"?setTimeout:void 0,Sw=typeof clearTimeout=="function"?clearTimeout:void 0,mE=typeof Promise=="function"?Promise:void 0,_w=typeof queueMicrotask=="function"?queueMicrotask:typeof mE<"u"?function(r){return mE.resolve(null).then(r).catch(Cw)}:hE;function Cw(r){setTimeout(function(){throw r})}function Ii(r){return r==="head"}function pE(r,a){var u=a,f=0;do{var g=u.nextSibling;if(r.removeChild(u),g&&g.nodeType===8)if(u=g.data,u==="/$"||u==="/&"){if(f===0){r.removeChild(g),Fs(a);return}f--}else if(u==="$"||u==="$?"||u==="$~"||u==="$!"||u==="&")f++;else if(u==="html")uu(r.ownerDocument.documentElement);else if(u==="head"){u=r.ownerDocument.head,uu(u);for(var b=u.firstChild;b;){var _=b.nextSibling,O=b.nodeName;b[Al]||O==="SCRIPT"||O==="STYLE"||O==="LINK"&&b.rel.toLowerCase()==="stylesheet"||u.removeChild(b),b=_}}else u==="body"&&uu(r.ownerDocument.body);u=g}while(u);Fs(a)}function gE(r,a){var u=r;r=0;do{var f=u.nextSibling;if(u.nodeType===1?a?(u._stashedDisplay=u.style.display,u.style.display="none"):(u.style.display=u._stashedDisplay||"",u.getAttribute("style")===""&&u.removeAttribute("style")):u.nodeType===3&&(a?(u._stashedText=u.nodeValue,u.nodeValue=""):u.nodeValue=u._stashedText||""),f&&f.nodeType===8)if(u=f.data,u==="/$"){if(r===0)break;r--}else u!=="$"&&u!=="$?"&&u!=="$~"&&u!=="$!"||r++;u=f}while(u)}function bm(r){var a=r.firstChild;for(a&&a.nodeType===10&&(a=a.nextSibling);a;){var u=a;switch(a=a.nextSibling,u.nodeName){case"HTML":case"HEAD":case"BODY":bm(u),vd(u);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(u.rel.toLowerCase()==="stylesheet")continue}r.removeChild(u)}}function Aw(r,a,u,f){for(;r.nodeType===1;){var g=u;if(r.nodeName.toLowerCase()!==a.toLowerCase()){if(!f&&(r.nodeName!=="INPUT"||r.type!=="hidden"))break}else if(f){if(!r[Al])switch(a){case"meta":if(!r.hasAttribute("itemprop"))break;return r;case"link":if(b=r.getAttribute("rel"),b==="stylesheet"&&r.hasAttribute("data-precedence"))break;if(b!==g.rel||r.getAttribute("href")!==(g.href==null||g.href===""?null:g.href)||r.getAttribute("crossorigin")!==(g.crossOrigin==null?null:g.crossOrigin)||r.getAttribute("title")!==(g.title==null?null:g.title))break;return r;case"style":if(r.hasAttribute("data-precedence"))break;return r;case"script":if(b=r.getAttribute("src"),(b!==(g.src==null?null:g.src)||r.getAttribute("type")!==(g.type==null?null:g.type)||r.getAttribute("crossorigin")!==(g.crossOrigin==null?null:g.crossOrigin))&&b&&r.hasAttribute("async")&&!r.hasAttribute("itemprop"))break;return r;default:return r}}else if(a==="input"&&r.type==="hidden"){var b=g.name==null?null:""+g.name;if(g.type==="hidden"&&r.getAttribute("name")===b)return r}else return r;if(r=Jn(r.nextSibling),r===null)break}return null}function kw(r,a,u){if(a==="")return null;for(;r.nodeType!==3;)if((r.nodeType!==1||r.nodeName!=="INPUT"||r.type!=="hidden")&&!u||(r=Jn(r.nextSibling),r===null))return null;return r}function bE(r,a){for(;r.nodeType!==8;)if((r.nodeType!==1||r.nodeName!=="INPUT"||r.type!=="hidden")&&!a||(r=Jn(r.nextSibling),r===null))return null;return r}function ym(r){return r.data==="$?"||r.data==="$~"}function Em(r){return r.data==="$!"||r.data==="$?"&&r.ownerDocument.readyState!=="loading"}function ww(r,a){var u=r.ownerDocument;if(r.data==="$~")r._reactRetry=a;else if(r.data!=="$?"||u.readyState!=="loading")a();else{var f=function(){a(),u.removeEventListener("DOMContentLoaded",f)};u.addEventListener("DOMContentLoaded",f),r._reactRetry=f}}function Jn(r){for(;r!=null;r=r.nextSibling){var a=r.nodeType;if(a===1||a===3)break;if(a===8){if(a=r.data,a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"||a==="F!"||a==="F")break;if(a==="/$"||a==="/&")return null}}return r}var xm=null;function yE(r){r=r.nextSibling;for(var a=0;r;){if(r.nodeType===8){var u=r.data;if(u==="/$"||u==="/&"){if(a===0)return Jn(r.nextSibling);a--}else u!=="$"&&u!=="$!"&&u!=="$?"&&u!=="$~"&&u!=="&"||a++}r=r.nextSibling}return null}function EE(r){r=r.previousSibling;for(var a=0;r;){if(r.nodeType===8){var u=r.data;if(u==="$"||u==="$!"||u==="$?"||u==="$~"||u==="&"){if(a===0)return r;a--}else u!=="/$"&&u!=="/&"||a++}r=r.previousSibling}return null}function xE(r,a,u){switch(a=Ec(u),r){case"html":if(r=a.documentElement,!r)throw Error(i(452));return r;case"head":if(r=a.head,!r)throw Error(i(453));return r;case"body":if(r=a.body,!r)throw Error(i(454));return r;default:throw Error(i(451))}}function uu(r){for(var a=r.attributes;a.length;)r.removeAttributeNode(a[0]);vd(r)}var er=new Map,TE=new Set;function xc(r){return typeof r.getRootNode=="function"?r.getRootNode():r.nodeType===9?r:r.ownerDocument}var Jr=Q.d;Q.d={f:Nw,r:Rw,D:Ow,C:Lw,L:Dw,m:Iw,X:Pw,S:Mw,M:Bw};function Nw(){var r=Jr.f(),a=fc();return r||a}function Rw(r){var a=ls(r);a!==null&&a.tag===5&&a.type==="form"?jb(a):Jr.r(r)}var Hs=typeof document>"u"?null:document;function vE(r,a,u){var f=Hs;if(f&&typeof a=="string"&&a){var g=$n(a);g='link[rel="'+r+'"][href="'+g+'"]',typeof u=="string"&&(g+='[crossorigin="'+u+'"]'),TE.has(g)||(TE.add(g),r={rel:r,crossOrigin:u,href:a},f.querySelector(g)===null&&(a=f.createElement("link"),nn(a,"link",r),Yt(a),f.head.appendChild(a)))}}function Ow(r){Jr.D(r),vE("dns-prefetch",r,null)}function Lw(r,a){Jr.C(r,a),vE("preconnect",r,a)}function Dw(r,a,u){Jr.L(r,a,u);var f=Hs;if(f&&r&&a){var g='link[rel="preload"][as="'+$n(a)+'"]';a==="image"&&u&&u.imageSrcSet?(g+='[imagesrcset="'+$n(u.imageSrcSet)+'"]',typeof u.imageSizes=="string"&&(g+='[imagesizes="'+$n(u.imageSizes)+'"]')):g+='[href="'+$n(r)+'"]';var b=g;switch(a){case"style":b=Us(r);break;case"script":b=zs(r)}er.has(b)||(r=p({rel:"preload",href:a==="image"&&u&&u.imageSrcSet?void 0:r,as:a},u),er.set(b,r),f.querySelector(g)!==null||a==="style"&&f.querySelector(ou(b))||a==="script"&&f.querySelector(cu(b))||(a=f.createElement("link"),nn(a,"link",r),Yt(a),f.head.appendChild(a)))}}function Iw(r,a){Jr.m(r,a);var u=Hs;if(u&&r){var f=a&&typeof a.as=="string"?a.as:"script",g='link[rel="modulepreload"][as="'+$n(f)+'"][href="'+$n(r)+'"]',b=g;switch(f){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":b=zs(r)}if(!er.has(b)&&(r=p({rel:"modulepreload",href:r},a),er.set(b,r),u.querySelector(g)===null)){switch(f){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(u.querySelector(cu(b)))return}f=u.createElement("link"),nn(f,"link",r),Yt(f),u.head.appendChild(f)}}}function Mw(r,a,u){Jr.S(r,a,u);var f=Hs;if(f&&r){var g=us(f).hoistableStyles,b=Us(r);a=a||"default";var _=g.get(b);if(!_){var O={loading:0,preload:null};if(_=f.querySelector(ou(b)))O.loading=5;else{r=p({rel:"stylesheet",href:r,"data-precedence":a},u),(u=er.get(b))&&Tm(r,u);var q=_=f.createElement("link");Yt(q),nn(q,"link",r),q._p=new Promise(function(te,oe){q.onload=te,q.onerror=oe}),q.addEventListener("load",function(){O.loading|=1}),q.addEventListener("error",function(){O.loading|=2}),O.loading|=4,Tc(_,a,f)}_={type:"stylesheet",instance:_,count:1,state:O},g.set(b,_)}}}function Pw(r,a){Jr.X(r,a);var u=Hs;if(u&&r){var f=us(u).hoistableScripts,g=zs(r),b=f.get(g);b||(b=u.querySelector(cu(g)),b||(r=p({src:r,async:!0},a),(a=er.get(g))&&vm(r,a),b=u.createElement("script"),Yt(b),nn(b,"link",r),u.head.appendChild(b)),b={type:"script",instance:b,count:1,state:null},f.set(g,b))}}function Bw(r,a){Jr.M(r,a);var u=Hs;if(u&&r){var f=us(u).hoistableScripts,g=zs(r),b=f.get(g);b||(b=u.querySelector(cu(g)),b||(r=p({src:r,async:!0,type:"module"},a),(a=er.get(g))&&vm(r,a),b=u.createElement("script"),Yt(b),nn(b,"link",r),u.head.appendChild(b)),b={type:"script",instance:b,count:1,state:null},f.set(g,b))}}function SE(r,a,u,f){var g=(g=he.current)?xc(g):null;if(!g)throw Error(i(446));switch(r){case"meta":case"title":return null;case"style":return typeof u.precedence=="string"&&typeof u.href=="string"?(a=Us(u.href),u=us(g).hoistableStyles,f=u.get(a),f||(f={type:"style",instance:null,count:0,state:null},u.set(a,f)),f):{type:"void",instance:null,count:0,state:null};case"link":if(u.rel==="stylesheet"&&typeof u.href=="string"&&typeof u.precedence=="string"){r=Us(u.href);var b=us(g).hoistableStyles,_=b.get(r);if(_||(g=g.ownerDocument||g,_={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},b.set(r,_),(b=g.querySelector(ou(r)))&&!b._p&&(_.instance=b,_.state.loading=5),er.has(r)||(u={rel:"preload",as:"style",href:u.href,crossOrigin:u.crossOrigin,integrity:u.integrity,media:u.media,hrefLang:u.hrefLang,referrerPolicy:u.referrerPolicy},er.set(r,u),b||jw(g,r,u,_.state))),a&&f===null)throw Error(i(528,""));return _}if(a&&f!==null)throw Error(i(529,""));return null;case"script":return a=u.async,u=u.src,typeof u=="string"&&a&&typeof a!="function"&&typeof a!="symbol"?(a=zs(u),u=us(g).hoistableScripts,f=u.get(a),f||(f={type:"script",instance:null,count:0,state:null},u.set(a,f)),f):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,r))}}function Us(r){return'href="'+$n(r)+'"'}function ou(r){return'link[rel="stylesheet"]['+r+"]"}function _E(r){return p({},r,{"data-precedence":r.precedence,precedence:null})}function jw(r,a,u,f){r.querySelector('link[rel="preload"][as="style"]['+a+"]")?f.loading=1:(a=r.createElement("link"),f.preload=a,a.addEventListener("load",function(){return f.loading|=1}),a.addEventListener("error",function(){return f.loading|=2}),nn(a,"link",u),Yt(a),r.head.appendChild(a))}function zs(r){return'[src="'+$n(r)+'"]'}function cu(r){return"script[async]"+r}function CE(r,a,u){if(a.count++,a.instance===null)switch(a.type){case"style":var f=r.querySelector('style[data-href~="'+$n(u.href)+'"]');if(f)return a.instance=f,Yt(f),f;var g=p({},u,{"data-href":u.href,"data-precedence":u.precedence,href:null,precedence:null});return f=(r.ownerDocument||r).createElement("style"),Yt(f),nn(f,"style",g),Tc(f,u.precedence,r),a.instance=f;case"stylesheet":g=Us(u.href);var b=r.querySelector(ou(g));if(b)return a.state.loading|=4,a.instance=b,Yt(b),b;f=_E(u),(g=er.get(g))&&Tm(f,g),b=(r.ownerDocument||r).createElement("link"),Yt(b);var _=b;return _._p=new Promise(function(O,q){_.onload=O,_.onerror=q}),nn(b,"link",f),a.state.loading|=4,Tc(b,u.precedence,r),a.instance=b;case"script":return b=zs(u.src),(g=r.querySelector(cu(b)))?(a.instance=g,Yt(g),g):(f=u,(g=er.get(b))&&(f=p({},u),vm(f,g)),r=r.ownerDocument||r,g=r.createElement("script"),Yt(g),nn(g,"link",f),r.head.appendChild(g),a.instance=g);case"void":return null;default:throw Error(i(443,a.type))}else a.type==="stylesheet"&&(a.state.loading&4)===0&&(f=a.instance,a.state.loading|=4,Tc(f,u.precedence,r));return a.instance}function Tc(r,a,u){for(var f=u.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),g=f.length?f[f.length-1]:null,b=g,_=0;_<f.length;_++){var O=f[_];if(O.dataset.precedence===a)b=O;else if(b!==g)break}b?b.parentNode.insertBefore(r,b.nextSibling):(a=u.nodeType===9?u.head:u,a.insertBefore(r,a.firstChild))}function Tm(r,a){r.crossOrigin==null&&(r.crossOrigin=a.crossOrigin),r.referrerPolicy==null&&(r.referrerPolicy=a.referrerPolicy),r.title==null&&(r.title=a.title)}function vm(r,a){r.crossOrigin==null&&(r.crossOrigin=a.crossOrigin),r.referrerPolicy==null&&(r.referrerPolicy=a.referrerPolicy),r.integrity==null&&(r.integrity=a.integrity)}var vc=null;function AE(r,a,u){if(vc===null){var f=new Map,g=vc=new Map;g.set(u,f)}else g=vc,f=g.get(u),f||(f=new Map,g.set(u,f));if(f.has(r))return f;for(f.set(r,null),u=u.getElementsByTagName(r),g=0;g<u.length;g++){var b=u[g];if(!(b[Al]||b[Zt]||r==="link"&&b.getAttribute("rel")==="stylesheet")&&b.namespaceURI!=="http://www.w3.org/2000/svg"){var _=b.getAttribute(a)||"";_=r+_;var O=f.get(_);O?O.push(b):f.set(_,[b])}}return f}function kE(r,a,u){r=r.ownerDocument||r,r.head.insertBefore(u,a==="title"?r.querySelector("head > title"):null)}function Hw(r,a,u){if(u===1||a.itemProp!=null)return!1;switch(r){case"meta":case"title":return!0;case"style":if(typeof a.precedence!="string"||typeof a.href!="string"||a.href==="")break;return!0;case"link":if(typeof a.rel!="string"||typeof a.href!="string"||a.href===""||a.onLoad||a.onError)break;return a.rel==="stylesheet"?(r=a.disabled,typeof a.precedence=="string"&&r==null):!0;case"script":if(a.async&&typeof a.async!="function"&&typeof a.async!="symbol"&&!a.onLoad&&!a.onError&&a.src&&typeof a.src=="string")return!0}return!1}function wE(r){return!(r.type==="stylesheet"&&(r.state.loading&3)===0)}function Uw(r,a,u,f){if(u.type==="stylesheet"&&(typeof f.media!="string"||matchMedia(f.media).matches!==!1)&&(u.state.loading&4)===0){if(u.instance===null){var g=Us(f.href),b=a.querySelector(ou(g));if(b){a=b._p,a!==null&&typeof a=="object"&&typeof a.then=="function"&&(r.count++,r=Sc.bind(r),a.then(r,r)),u.state.loading|=4,u.instance=b,Yt(b);return}b=a.ownerDocument||a,f=_E(f),(g=er.get(g))&&Tm(f,g),b=b.createElement("link"),Yt(b);var _=b;_._p=new Promise(function(O,q){_.onload=O,_.onerror=q}),nn(b,"link",f),u.instance=b}r.stylesheets===null&&(r.stylesheets=new Map),r.stylesheets.set(u,a),(a=u.state.preload)&&(u.state.loading&3)===0&&(r.count++,u=Sc.bind(r),a.addEventListener("load",u),a.addEventListener("error",u))}}var Sm=0;function zw(r,a){return r.stylesheets&&r.count===0&&Cc(r,r.stylesheets),0<r.count||0<r.imgCount?function(u){var f=setTimeout(function(){if(r.stylesheets&&Cc(r,r.stylesheets),r.unsuspend){var b=r.unsuspend;r.unsuspend=null,b()}},6e4+a);0<r.imgBytes&&Sm===0&&(Sm=62500*Tw());var g=setTimeout(function(){if(r.waitingForImages=!1,r.count===0&&(r.stylesheets&&Cc(r,r.stylesheets),r.unsuspend)){var b=r.unsuspend;r.unsuspend=null,b()}},(r.imgBytes>Sm?50:800)+a);return r.unsuspend=u,function(){r.unsuspend=null,clearTimeout(f),clearTimeout(g)}}:null}function Sc(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Cc(this,this.stylesheets);else if(this.unsuspend){var r=this.unsuspend;this.unsuspend=null,r()}}}var _c=null;function Cc(r,a){r.stylesheets=null,r.unsuspend!==null&&(r.count++,_c=new Map,a.forEach(Fw,r),_c=null,Sc.call(r))}function Fw(r,a){if(!(a.state.loading&4)){var u=_c.get(r);if(u)var f=u.get(null);else{u=new Map,_c.set(r,u);for(var g=r.querySelectorAll("link[data-precedence],style[data-precedence]"),b=0;b<g.length;b++){var _=g[b];(_.nodeName==="LINK"||_.getAttribute("media")!=="not all")&&(u.set(_.dataset.precedence,_),f=_)}f&&u.set(null,f)}g=a.instance,_=g.getAttribute("data-precedence"),b=u.get(_)||f,b===f&&u.set(null,g),u.set(_,g),this.count++,f=Sc.bind(this),g.addEventListener("load",f),g.addEventListener("error",f),b?b.parentNode.insertBefore(g,b.nextSibling):(r=r.nodeType===9?r.head:r,r.insertBefore(g,r.firstChild)),a.state.loading|=4}}var fu={$$typeof:w,Provider:null,Consumer:null,_currentValue:ae,_currentValue2:ae,_threadCount:0};function qw(r,a,u,f,g,b,_,O,q){this.tag=1,this.containerInfo=r,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=yd(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=yd(0),this.hiddenUpdates=yd(null),this.identifierPrefix=f,this.onUncaughtError=g,this.onCaughtError=b,this.onRecoverableError=_,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=q,this.incompleteTransitions=new Map}function NE(r,a,u,f,g,b,_,O,q,te,oe,fe){return r=new qw(r,a,u,_,q,te,oe,fe,O),a=1,b===!0&&(a|=24),b=Mn(3,null,null,a),r.current=b,b.stateNode=r,a=nh(),a.refCount++,r.pooledCache=a,a.refCount++,b.memoizedState={element:f,isDehydrated:u,cache:a},sh(b),r}function RE(r){return r?(r=ys,r):ys}function OE(r,a,u,f,g,b){g=RE(g),f.context===null?f.context=g:f.pendingContext=g,f=Si(a),f.payload={element:u},b=b===void 0?null:b,b!==null&&(f.callback=b),u=_i(r,f,a),u!==null&&(kn(u,r,a),ql(u,r,a))}function LE(r,a){if(r=r.memoizedState,r!==null&&r.dehydrated!==null){var u=r.retryLane;r.retryLane=u!==0&&u<a?u:a}}function _m(r,a){LE(r,a),(r=r.alternate)&&LE(r,a)}function DE(r){if(r.tag===13||r.tag===31){var a=ma(r,67108864);a!==null&&kn(a,r,67108864),_m(r,67108864)}}function IE(r){if(r.tag===13||r.tag===31){var a=Un();a=Ed(a);var u=ma(r,a);u!==null&&kn(u,r,a),_m(r,a)}}var Ac=!0;function Vw(r,a,u,f){var g=V.T;V.T=null;var b=Q.p;try{Q.p=2,Cm(r,a,u,f)}finally{Q.p=b,V.T=g}}function Yw(r,a,u,f){var g=V.T;V.T=null;var b=Q.p;try{Q.p=8,Cm(r,a,u,f)}finally{Q.p=b,V.T=g}}function Cm(r,a,u,f){if(Ac){var g=Am(f);if(g===null)fm(r,a,f,kc,u),PE(r,f);else if(Gw(g,r,a,u,f))f.stopPropagation();else if(PE(r,f),a&4&&-1<$w.indexOf(r)){for(;g!==null;){var b=ls(g);if(b!==null)switch(b.tag){case 3:if(b=b.stateNode,b.current.memoizedState.isDehydrated){var _=oa(b.pendingLanes);if(_!==0){var O=b;for(O.pendingLanes|=2,O.entangledLanes|=2;_;){var q=1<<31-pt(_);O.entanglements[1]|=q,_&=~q}xr(b),(st&6)===0&&(oc=Qe()+500,au(0))}}break;case 31:case 13:O=ma(b,2),O!==null&&kn(O,b,2),fc(),_m(b,2)}if(b=Am(f),b===null&&fm(r,a,f,kc,u),b===g)break;g=b}g!==null&&f.stopPropagation()}else fm(r,a,f,null,u)}}function Am(r){return r=wd(r),km(r)}var kc=null;function km(r){if(kc=null,r=ss(r),r!==null){var a=l(r);if(a===null)r=null;else{var u=a.tag;if(u===13){if(r=o(a),r!==null)return r;r=null}else if(u===31){if(r=c(a),r!==null)return r;r=null}else if(u===3){if(a.stateNode.current.memoizedState.isDehydrated)return a.tag===3?a.stateNode.containerInfo:null;r=null}else a!==r&&(r=null)}}return kc=r,null}function ME(r){switch(r){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(cn()){case Y:return 2;case de:return 8;case we:case De:return 32;case We:return 268435456;default:return 32}default:return 32}}var wm=!1,Mi=null,Pi=null,Bi=null,du=new Map,hu=new Map,ji=[],$w="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function PE(r,a){switch(r){case"focusin":case"focusout":Mi=null;break;case"dragenter":case"dragleave":Pi=null;break;case"mouseover":case"mouseout":Bi=null;break;case"pointerover":case"pointerout":du.delete(a.pointerId);break;case"gotpointercapture":case"lostpointercapture":hu.delete(a.pointerId)}}function mu(r,a,u,f,g,b){return r===null||r.nativeEvent!==b?(r={blockedOn:a,domEventName:u,eventSystemFlags:f,nativeEvent:b,targetContainers:[g]},a!==null&&(a=ls(a),a!==null&&DE(a)),r):(r.eventSystemFlags|=f,a=r.targetContainers,g!==null&&a.indexOf(g)===-1&&a.push(g),r)}function Gw(r,a,u,f,g){switch(a){case"focusin":return Mi=mu(Mi,r,a,u,f,g),!0;case"dragenter":return Pi=mu(Pi,r,a,u,f,g),!0;case"mouseover":return Bi=mu(Bi,r,a,u,f,g),!0;case"pointerover":var b=g.pointerId;return du.set(b,mu(du.get(b)||null,r,a,u,f,g)),!0;case"gotpointercapture":return b=g.pointerId,hu.set(b,mu(hu.get(b)||null,r,a,u,f,g)),!0}return!1}function BE(r){var a=ss(r.target);if(a!==null){var u=l(a);if(u!==null){if(a=u.tag,a===13){if(a=o(u),a!==null){r.blockedOn=a,Wg(r.priority,function(){IE(u)});return}}else if(a===31){if(a=c(u),a!==null){r.blockedOn=a,Wg(r.priority,function(){IE(u)});return}}else if(a===3&&u.stateNode.current.memoizedState.isDehydrated){r.blockedOn=u.tag===3?u.stateNode.containerInfo:null;return}}}r.blockedOn=null}function wc(r){if(r.blockedOn!==null)return!1;for(var a=r.targetContainers;0<a.length;){var u=Am(r.nativeEvent);if(u===null){u=r.nativeEvent;var f=new u.constructor(u.type,u);kd=f,u.target.dispatchEvent(f),kd=null}else return a=ls(u),a!==null&&DE(a),r.blockedOn=u,!1;a.shift()}return!0}function jE(r,a,u){wc(r)&&u.delete(a)}function Kw(){wm=!1,Mi!==null&&wc(Mi)&&(Mi=null),Pi!==null&&wc(Pi)&&(Pi=null),Bi!==null&&wc(Bi)&&(Bi=null),du.forEach(jE),hu.forEach(jE)}function Nc(r,a){r.blockedOn===a&&(r.blockedOn=null,wm||(wm=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,Kw)))}var Rc=null;function HE(r){Rc!==r&&(Rc=r,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Rc===r&&(Rc=null);for(var a=0;a<r.length;a+=3){var u=r[a],f=r[a+1],g=r[a+2];if(typeof f!="function"){if(km(f||u)===null)continue;break}var b=ls(u);b!==null&&(r.splice(a,3),a-=3,Ah(b,{pending:!0,data:g,method:u.method,action:f},f,g))}}))}function Fs(r){function a(q){return Nc(q,r)}Mi!==null&&Nc(Mi,r),Pi!==null&&Nc(Pi,r),Bi!==null&&Nc(Bi,r),du.forEach(a),hu.forEach(a);for(var u=0;u<ji.length;u++){var f=ji[u];f.blockedOn===r&&(f.blockedOn=null)}for(;0<ji.length&&(u=ji[0],u.blockedOn===null);)BE(u),u.blockedOn===null&&ji.shift();if(u=(r.ownerDocument||r).$$reactFormReplay,u!=null)for(f=0;f<u.length;f+=3){var g=u[f],b=u[f+1],_=g[Tn]||null;if(typeof b=="function")_||HE(u);else if(_){var O=null;if(b&&b.hasAttribute("formAction")){if(g=b,_=b[Tn]||null)O=_.formAction;else if(km(g)!==null)continue}else O=_.action;typeof O=="function"?u[f+1]=O:(u.splice(f,3),f-=3),HE(u)}}}function UE(){function r(b){b.canIntercept&&b.info==="react-transition"&&b.intercept({handler:function(){return new Promise(function(_){return g=_})},focusReset:"manual",scroll:"manual"})}function a(){g!==null&&(g(),g=null),f||setTimeout(u,20)}function u(){if(!f&&!navigation.transition){var b=navigation.currentEntry;b&&b.url!=null&&navigation.navigate(b.url,{state:b.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var f=!1,g=null;return navigation.addEventListener("navigate",r),navigation.addEventListener("navigatesuccess",a),navigation.addEventListener("navigateerror",a),setTimeout(u,100),function(){f=!0,navigation.removeEventListener("navigate",r),navigation.removeEventListener("navigatesuccess",a),navigation.removeEventListener("navigateerror",a),g!==null&&(g(),g=null)}}}function Nm(r){this._internalRoot=r}Oc.prototype.render=Nm.prototype.render=function(r){var a=this._internalRoot;if(a===null)throw Error(i(409));var u=a.current,f=Un();OE(u,f,r,a,null,null)},Oc.prototype.unmount=Nm.prototype.unmount=function(){var r=this._internalRoot;if(r!==null){this._internalRoot=null;var a=r.containerInfo;OE(r.current,2,null,r,null,null),fc(),a[as]=null}};function Oc(r){this._internalRoot=r}Oc.prototype.unstable_scheduleHydration=function(r){if(r){var a=Qg();r={blockedOn:null,target:r,priority:a};for(var u=0;u<ji.length&&a!==0&&a<ji[u].priority;u++);ji.splice(u,0,r),u===0&&BE(r)}};var zE=t.version;if(zE!=="19.2.8")throw Error(i(527,zE,"19.2.8"));Q.findDOMNode=function(r){var a=r._reactInternals;if(a===void 0)throw typeof r.render=="function"?Error(i(188)):(r=Object.keys(r).join(","),Error(i(268,r)));return r=h(a),r=r!==null?m(r):null,r=r===null?null:r.stateNode,r};var Xw={bundleType:0,version:"19.2.8",rendererPackageName:"react-dom",currentDispatcherRef:V,reconcilerVersion:"19.2.8"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Lc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Lc.isDisabled&&Lc.supportsFiber)try{fn=Lc.inject(Xw),zt=Lc}catch{}}return gu.createRoot=function(r,a){if(!s(r))throw Error(i(299));var u=!1,f="",g=Kb,b=Xb,_=Qb;return a!=null&&(a.unstable_strictMode===!0&&(u=!0),a.identifierPrefix!==void 0&&(f=a.identifierPrefix),a.onUncaughtError!==void 0&&(g=a.onUncaughtError),a.onCaughtError!==void 0&&(b=a.onCaughtError),a.onRecoverableError!==void 0&&(_=a.onRecoverableError)),a=NE(r,1,!1,null,null,u,f,null,g,b,_,UE),r[as]=a.current,cm(r),new Nm(a)},gu.hydrateRoot=function(r,a,u){if(!s(r))throw Error(i(299));var f=!1,g="",b=Kb,_=Xb,O=Qb,q=null;return u!=null&&(u.unstable_strictMode===!0&&(f=!0),u.identifierPrefix!==void 0&&(g=u.identifierPrefix),u.onUncaughtError!==void 0&&(b=u.onUncaughtError),u.onCaughtError!==void 0&&(_=u.onCaughtError),u.onRecoverableError!==void 0&&(O=u.onRecoverableError),u.formState!==void 0&&(q=u.formState)),a=NE(r,1,!0,a,u??null,f,g,q,b,_,O,UE),a.context=RE(null),u=a.current,f=Un(),f=Ed(f),g=Si(f),g.callback=null,_i(u,g,f),u=f,a.current.lanes=u,Cl(a,u),xr(a),r[as]=a.current,cm(r),new Oc(a)},gu.version="19.2.8",gu}var ex;function aN(){if(ex)return Dm.exports;ex=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(t){console.error(t)}}return e(),Dm.exports=iN(),Dm.exports}var sN=aN();const lN=!1;var iv=C.useLayoutEffect;function uN(e,t,n){C.useEffect(()=>{if(!e.current||n||typeof IntersectionObserver!="function")return()=>t();const i=new IntersectionObserver(s=>{t(s.pop())},{rootMargin:"100px"});return i.observe(e.current),()=>{i.disconnect(),t()}},[t,n,e])}function oN(e){const t=C.useRef(null);return C.useImperativeHandle(e,()=>t.current,[]),t}function qu(e){return e[e.length-1]}function ul(e,t){return typeof e=="function"?e(t):e}const av=Object.prototype.hasOwnProperty,cN=Object.prototype.propertyIsEnumerable;function sv(e){for(const t in e)if(av.call(e,t))return!0;return!1}const fN=()=>Object.create(null),ka=(e,t)=>Ma(e,t,fN);function Ma(e,t,n=()=>({}),i=0){if(e===t)return e;if(i>500)return t;const s=t,l=rx(e)&&rx(s);if(!l&&!(yf(e)&&yf(s)))return s;const o=l?e:tx(e);if(!o)return s;const c=l?s:tx(s);if(!c)return s;const d=o.length,h=c.length,m=l?new Array(h):n();let p=0;for(let E=0;E<h;E++){const y=l?E:c[E],v=e[y],S=s[y];if(v===S){m[y]=v,(l?E<d:av.call(e,y))&&p++;continue}if(v===null||S===null||typeof v!="object"||typeof S!="object"){m[y]=S;continue}const A=Ma(v,S,n,i+1);m[y]=A,A===v&&p++}return d===h&&p===d?e:m}function tx(e){const t=Object.keys(e);if(t.length!==Object.getOwnPropertyNames(e).length)return!1;const n=Object.getOwnPropertySymbols(e);if(n.length===0)return t;for(const i of n){if(!cN.call(e,i))return!1;t.push(i)}return t}function yf(e){if(!nx(e))return!1;const t=e.constructor;if(typeof t>"u")return!0;const n=t.prototype;return!(!nx(n)||!n.hasOwnProperty("isPrototypeOf"))}function nx(e){return Object.prototype.toString.call(e)==="[object Object]"}function rx(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Qi(e,t,n){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(let i=0,s=e.length;i<s;i++)if(!Qi(e[i],t[i],n))return!1;return!0}if(yf(e)&&yf(t)){const i=n?.ignoreUndefined??!0;if(n?.partial){for(const o in t)if((!i||t[o]!==void 0)&&!Qi(e[o],t[o],n))return!1;return!0}let s=0;if(!i)s=Object.keys(e).length;else for(const o in e)e[o]!==void 0&&s++;let l=0;for(const o in t)if((!i||t[o]!==void 0)&&(l++,l>s||!Qi(e[o],t[o],n)))return!1;return s===l}return!1}const dN=/[\x00-\x1f\x7f"<>`{}]/g;function hN(e){return e.replace(dN,t=>"%"+t.charCodeAt(0).toString(16).toUpperCase().padStart(2,"0"))}function ix(e){let t;try{t=decodeURI(e)}catch{t=e.replaceAll(/%[0-9A-F]{2}/gi,n=>{try{return decodeURI(n)}catch{return n}})}return hN(t)}const mN=["http:","https:","mailto:","tel:"];function Ef(e,t){if(!e)return!1;try{const n=new URL(e);return!t.has(n.protocol)}catch{return!1}}function bu(e){if(!e)return{path:e,handledProtocolRelativeURL:!1};if(!/[%\\\x00-\x1f\x7f]/.test(e)&&!e.startsWith("//"))return{path:e,handledProtocolRelativeURL:!1};const t=/%25|%5C/gi;let n=0,i="",s;for(;(s=t.exec(e))!==null;)i+=ix(e.slice(n,s.index))+s[0],n=t.lastIndex;i=i+ix(n?e.slice(n):e);let l=!1;return i.startsWith("//")&&(l=!0,i="/"+i.replace(/^\/+/,"")),{path:i,handledProtocolRelativeURL:l}}function pN(e){return/\s|[^\u0000-\u007F]/.test(e)?e.replace(/\s|[^\u0000-\u007F]/gu,encodeURIComponent):e}function gN(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function R0(){throw new Error("Invariant failed")}function xf(e){const t=new Map;let n,i;const s=l=>{l.next&&(l.prev?(l.prev.next=l.next,l.next.prev=l.prev,l.next=void 0,i&&(i.next=l,l.prev=i)):(l.next.prev=void 0,n=l.next,l.next=void 0,i&&(l.prev=i,i.next=l)),i=l)};return{get(l){const o=t.get(l);if(o)return s(o),o.value},set(l,o){if(t.size>=e&&n){const d=n;t.delete(d.key),d.next&&(n=d.next,d.next.prev=void 0),d===i&&(i=void 0)}const c=t.get(l);if(c)c.value=o,s(c);else{const d={key:l,value:o,prev:i};i&&(i.next=d),i=d,n||(n=d),t.set(l,d)}},clear(){t.clear(),n=void 0,i=void 0}}}const Ki=4,lv=5;function uv(e,t,n=new Uint16Array(6)){const i=e.indexOf("/",t),s=i===-1?e.length:i,l=e.substring(t,s);if(!l||!l.includes("$"))return n[0]=0,n[1]=t,n[2]=t,n[3]=s,n[4]=s,n[5]=s,n;if(l==="$"){const d=e.length;return n[0]=2,n[1]=t,n[2]=t,n[3]=d,n[4]=d,n[5]=d,n}if(l.charCodeAt(0)===36)return n[0]=1,n[1]=t,n[2]=t+1,n[3]=s,n[4]=s,n[5]=s,n;const o=l.indexOf("{");let c;if(o!==-1&&o+1<l.length&&(c=l.indexOf("}",o))!==-1){const d=l.charCodeAt(o+1);if(d===45){if(o+2<l.length&&l.charCodeAt(o+2)===36){const h=o+3,m=c;if(h<m)return n[0]=3,n[1]=t+o,n[2]=t+h,n[3]=t+m,n[4]=t+c+1,n[5]=s,n}}else if(d===36){const h=o+1,m=o+2;return m===c?(n[0]=2,n[1]=t+o,n[2]=t+h,n[3]=t+m,n[4]=t+c+1,n[5]=e.length,n):(n[0]=1,n[1]=t+o,n[2]=t+m,n[3]=t+c,n[4]=t+c+1,n[5]=s,n)}}return n[0]=0,n[1]=t,n[2]=t,n[3]=s,n[4]=s,n[5]=s,n}function Ff(e,t,n,i,s,l,o,c){c?.(n);let d=i;{const h=n.fullPath??n.from,m=n.options,p=h.length,E=m?.caseSensitive??e,y=m?.params?.parse??m?.parseParams;for(;d<p;){const S=uv(h,d,t);let A;const k=d,N=S[5];d=N+1,l++;const w=S[0];switch(w){case 0:{const D=h.substring(S[2],S[3]);let z=D,L;E?L=s.static??=new Map:(z=D.toLowerCase(),L=s.staticInsensitive??=new Map);const P=L.get(z);if(P)A=P;else{const H=nl(h);H.parent=s,H.depth=l,A=H,L.set(z,H)}break}case 1:case 3:case 2:{let D=h.substring(k,S[1]),z=h.substring(S[4],N);const L=E&&!!(D||z);E||(D=D.toLowerCase(),z=z.toLowerCase());const P=w===1?s.dynamic:w===3?s.optional:s.wildcard,H=w!==2&&!y&&P?.find(K=>!K.parse&&K.caseSensitive===L&&K.prefix===D&&K.suffix===z);if(H)A=H;else{const K=bN(w,h,L,D,z);A=K,K.parent=s,K.depth=l;let j;w===1?j=s.dynamic??=[]:w===3?j=s.optional??=[]:j=s.wildcard??=[],j.push(K),j.length===2&&o?.push(j)}break}}s=A}if(y&&n.children&&!n.isRoot&&n.id&&n.id.charCodeAt(n.id.lastIndexOf("/")+1)===95){const S=nl(h);S.kind=lv,S.parent=s,l++,S.depth=l,s.pathless??=[],s.pathless.push(S),s=S}const v=(n.path||!n.children)&&!n.isRoot;if(v&&h.endsWith("/")){const S=nl(h);S.kind=Ki,S.parent=s,l++,S.depth=l,s.index=S,s=S}s.parse=y??null,s.priority=m?.params?.priority??0,v&&!s.route&&(s.route=n,s.fullPath=h)}if(n.children)for(const h of n.children)Ff(e,t,h,d,s,l,o,c)}function ov(e,t){if(e.parse&&!t.parse)return-1;if(!e.parse&&t.parse)return 1;if(e.parse&&t.parse&&(e.priority||t.priority))return t.priority-e.priority;if(e.prefix&&t.prefix&&e.prefix!==t.prefix){if(e.prefix.startsWith(t.prefix))return-1;if(t.prefix.startsWith(e.prefix))return 1}if(e.suffix&&t.suffix&&e.suffix!==t.suffix){if(e.suffix.endsWith(t.suffix))return-1;if(t.suffix.endsWith(e.suffix))return 1}return e.prefix&&!t.prefix?-1:!e.prefix&&t.prefix?1:e.suffix&&!t.suffix?-1:!e.suffix&&t.suffix?1:e.caseSensitive&&!t.caseSensitive?-1:!e.caseSensitive&&t.caseSensitive?1:0}function nl(e){return{kind:0,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:e,parent:null,parse:null,priority:0}}function bN(e,t,n,i,s){return{kind:e,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:t,parent:null,parse:null,priority:0,caseSensitive:n,prefix:i,suffix:s}}function yN(e,t){const n=nl("/"),i=new Uint16Array(6),s=[];for(const l of e)Ff(!1,i,l,1,n,0,s);for(const l of s)l.sort(ov);t.masksTree=n,t.flatCache=xf(1e3)}function EN(e,t){e||="/";const n=t.flatCache.get(e);if(n!==void 0)return n;const i=O0(e,t.masksTree);return t.flatCache.set(e,i),i}function xN(e,t,n,i,s){e||="/",i||="/";const l=t?`case\0${e}`:e;let o=s.singleCache.get(l);return o||(o=nl("/"),Ff(t,new Uint16Array(6),{from:e},1,o,0),s.singleCache.set(l,o)),O0(i,o,n)}function TN(e,t,n=!1){const i=n?e:`nofuzz\0${e}`,s=t.matchCache.get(i);if(s!==void 0)return s;e||="/";let l;try{l=O0(e,t.segmentTree,n)}catch(o){if(o instanceof URIError)l=null;else throw o}return l&&(l.branch=fv(l.route)),t.matchCache.set(i,l),l}function vN(e){return e==="/"?e:e.replace(/\/{1,}$/,"")}function SN(e,t=!1,n){const i=nl(e.fullPath),s=new Uint16Array(6),l=[],o={},c={};let d=0;Ff(t,s,e,1,i,0,l,h=>{if(n?.(h,d),h.id in o&&R0(),o[h.id]=h,d!==0&&h.path){const m=vN(h.fullPath);(!c[m]||h.fullPath.endsWith("/"))&&(c[m]=h)}d++});for(const h of l)h.sort(ov);return{processedTree:{segmentTree:i,singleCache:xf(1e3),matchCache:xf(1e3),flatCache:null,masksTree:null},routesById:o,routesByPath:c}}function O0(e,t,n=!1){const i=e.split("/"),s=CN(e,i,t,n);if(!s)return null;const[l]=cv(e,i,s);return{route:s.node.route,rawParams:l}}function cv(e,t,n){const i=_N(n.node);let s=null;const l=Object.create(null);let o=n.extract?.part??0,c=n.extract?.node??0,d=n.extract?.path??0,h=n.extract?.segment??0;for(;c<i.length;o++,c++,d++,h++){const m=i[c];if(m.kind===Ki)break;if(m.kind===lv){h--,o--,d--;continue}const p=t[o],E=d;if(p&&(d+=p.length),m.kind===1){s??=n.node.fullPath.split("/");const y=s[h],v=m.prefix.length;if(y.charCodeAt(v)===123){const S=m.suffix.length,A=y.substring(v+2,y.length-S-1),k=p.substring(v,p.length-S);l[A]=decodeURIComponent(k)}else{const S=y.substring(1);l[S]=decodeURIComponent(p)}}else if(m.kind===3){if(n.skipped&1<<c){o--,d=E-1;continue}s??=n.node.fullPath.split("/");const y=s[h],v=m.prefix.length,S=m.suffix.length,A=y.substring(v+3,y.length-S-1),k=m.suffix||m.prefix?p.substring(v,p.length-S):p;k&&(l[A]=decodeURIComponent(k))}else if(m.kind===2){const y=m,v=e.substring(E+y.prefix.length,e.length-y.suffix.length),S=decodeURIComponent(v);l["*"]=S,l._splat=S;break}}return n.rawParams&&Object.assign(l,n.rawParams),[l,{part:o,node:c,path:d,segment:h}]}function fv(e){const t=[e];for(;e.parentRoute;)e=e.parentRoute,t.push(e);return t.reverse(),t}function _N(e){const t=Array(e.depth+1);do t[e.depth]=e,e=e.parent;while(e);return t}function CN(e,t,n,i){if(e==="/"&&n.index)return{node:n.index,skipped:0};const s=!qu(t),l=s&&e!=="/",o=t.length-(s?1:0),c=[{node:n,index:1,skipped:0,statics:0,dynamics:0,optionals:0}];let d=null,h=null;for(;c.length;){const m=c.pop(),{node:p,index:E,skipped:y,statics:v,dynamics:S,optionals:A}=m;let{extract:k,rawParams:N}=m;if(p.kind===2&&p.route&&!Ic(h,m))continue;if(p.parse){if(!ax(e,t,m))continue;N=m.rawParams,k=m.extract}i&&p.route&&p.kind!==Ki&&Ic(d,m)&&(d=m);const w=E===o;if(w&&(p.route&&(!l||p.kind===Ki||p.kind===2)&&Ic(h,m)&&(h=m),!p.optional&&!p.wildcard&&!p.index&&!p.pathless))continue;const D=w?void 0:t[E];let z;if(w&&p.index){const L={node:p.index,index:E,skipped:y,statics:v,dynamics:S,optionals:A,extract:k,rawParams:N};let P=!0;if(p.index.parse&&(ax(e,t,L)||(P=!1)),P){if(!S&&!A&&!y&&AN(v,o))return L;Ic(h,L)&&(h=L)}}if(p.wildcard)for(let L=p.wildcard.length-1;L>=0;L--){const P=p.wildcard[L],{prefix:H,suffix:K}=P;if(!(H&&(w||!(P.caseSensitive?D:z??=D.toLowerCase()).startsWith(H)))){if(K){if(w)continue;const j=t.slice(E).join("/"),$=j.slice(-K.length);if((P.caseSensitive?$:$.toLowerCase())!==K||j.length-K.length<H.length)continue}c.push({node:P,index:o,skipped:y,statics:v,dynamics:S,optionals:A,extract:k,rawParams:N})}}if(p.optional){const L=y|1<<p.depth+1;for(let P=p.optional.length-1;P>=0;P--){const H=p.optional[P];c.push({node:H,index:E,skipped:L,statics:v,dynamics:S,optionals:A,extract:k,rawParams:N})}if(!w)for(let P=p.optional.length-1;P>=0;P--){const H=p.optional[P],{prefix:K,suffix:j}=H;if(K||j){const $=H.caseSensitive?D:z??=D.toLowerCase();if(K&&!$.startsWith(K)||j&&$.indexOf(j,$.length-j.length)<K.length)continue}c.push({node:H,index:E+1,skipped:y,statics:v,dynamics:S,optionals:A+Dc(o,E),extract:k,rawParams:N})}}if(!w&&p.dynamic&&D)for(let L=p.dynamic.length-1;L>=0;L--){const P=p.dynamic[L],{prefix:H,suffix:K}=P;if(H||K){const j=P.caseSensitive?D:z??=D.toLowerCase();if(H&&!j.startsWith(H)||K&&j.indexOf(K,j.length-K.length)<H.length)continue}c.push({node:P,index:E+1,skipped:y,statics:v,dynamics:S+Dc(o,E),optionals:A,extract:k,rawParams:N})}if(!w&&p.staticInsensitive){const L=p.staticInsensitive.get(z??=D.toLowerCase());L&&c.push({node:L,index:E+1,skipped:y,statics:v+Dc(o,E),dynamics:S,optionals:A,extract:k,rawParams:N})}if(!w&&p.static){const L=p.static.get(D);L&&c.push({node:L,index:E+1,skipped:y,statics:v+Dc(o,E),dynamics:S,optionals:A,extract:k,rawParams:N})}if(p.pathless)for(let L=p.pathless.length-1;L>=0;L--){const P=p.pathless[L];c.push({node:P,index:E,skipped:y,statics:v,dynamics:S,optionals:A,extract:k,rawParams:N})}}if(h)return h;if(i&&d){let m=d.index;for(let E=0;E<d.index;E++)m+=t[E].length;const p=m===e.length?"/":e.slice(m);return d.rawParams??=Object.create(null),d.rawParams["**"]=decodeURIComponent(p),d}return null}function Dc(e,t){return 2**(e-t-1)}function AN(e,t){return e===2**(t-1)-1}function ax(e,t,n){let i,s;try{[i,s]=cv(e,t,n)}catch{return null}if(n.rawParams=i,n.extract=s,!n.node.parse)return!0;try{if(n.node.parse(i)===!1)return null}catch{}return!0}function Ic(e,t){return e?t.statics>e.statics||t.statics===e.statics&&(t.dynamics>e.dynamics||t.dynamics===e.dynamics&&(t.optionals>e.optionals||t.optionals===e.optionals&&((t.node.kind===Ki)>(e.node.kind===Ki)||t.node.kind===Ki==(e.node.kind===Ki)&&t.node.depth>e.node.depth))):!0}function rf(e){return af(e.filter(t=>t!==void 0).join("/"))}function af(e){return e.replace(/\/{2,}/g,"/")}function dv(e){return e==="/"?e:e.replace(/^\/{1,}/,"")}function ri(e){const t=e.length;return t>1&&e[t-1]==="/"?e.replace(/\/{1,}$/,""):e}function hv(e){return ri(dv(e))}function Tf(e,t){return e?.endsWith("/")&&e!=="/"&&e!==`${t}/`?e.slice(0,-1):e}function kN(e,t,n){return Tf(e,n)===Tf(t,n)}function wN({base:e,to:t,trailingSlash:n="never",cache:i}){if(t.includes("//")&&(t=af(t)),t.startsWith("/"))return t.length===1||n==="preserve"?t:n==="always"?t.endsWith("/")?t:`${t}/`:t.endsWith("/")?t.slice(0,-1):t;const s=t===".";let l;if(i){l=s?e:e+"\0"+t;const h=i.get(l);if(h)return h}let o;if(s)o=e.split("/");else{for(e.includes("//")&&(e=af(e)),o=e.split("/");o.length>1&&qu(o)==="";)o.pop();const h=t.split("/");for(let m=0,p=h.length;m<p;m++){const E=h[m];E===""?m?m===p-1&&o.push(E):o=[E]:E===".."?o.length>1?o.pop():o=[""]:E==="."||o.push(E)}}o.length>1&&(qu(o)===""?n==="never"&&o.pop():n==="always"&&o.push(""));const c=o.join("/"),d=(s?af(c):c)||"/";return l&&i&&i.set(l,d),d}function NN(e){const t=new Map(e.map(s=>[encodeURIComponent(s),s])),n=Array.from(t.keys()).map(s=>s.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join("|"),i=new RegExp(n,"g");return s=>s.replace(i,l=>t.get(l)??l)}function Bm(e,t,n){const i=t[e];return typeof i!="string"?i:e==="_splat"?/^[a-zA-Z0-9\-._~!/]*$/.test(i)?i:i.split("/").map(s=>lx(s,n)).join("/"):lx(i,n)}function sx({path:e,params:t,decoder:n,...i}){let s=!1;const l=Object.create(null);if(!e||e==="/")return{interpolatedPath:"/",usedParams:l,isMissingParams:s};if(!e.includes("$"))return{interpolatedPath:e,usedParams:l,isMissingParams:s};const o=e.length;let c=0,d,h="";for(;c<o;){const m=c;d=uv(e,m,d);const p=d[5];if(c=p+1,m===p)continue;const E=d[0];if(E===0){h+="/"+e.substring(m,p);continue}if(E===2){const y=t._splat;l._splat=y,l["*"]=y;const v=e.substring(m,d[1]),S=e.substring(d[4],p);if(!y){s=!0,(v||S)&&(h+="/"+v+S);continue}const A=Bm("_splat",t,n);h+="/"+v+A+S;continue}if(E===1){const y=e.substring(d[2],d[3]);!s&&!(y in t)&&(s=!0),l[y]=t[y];const v=e.substring(m,d[1]),S=e.substring(d[4],p),A=Bm(y,t,n)??"undefined";h+="/"+v+A+S;continue}if(E===3){const y=e.substring(d[2],d[3]),v=t[y];if(v==null)continue;l[y]=v;const S=e.substring(m,d[1]),A=e.substring(d[4],p),k=Bm(y,t,n)??"";h+="/"+S+k+A;continue}}return e.endsWith("/")&&(h+="/"),{usedParams:l,interpolatedPath:h||"/",isMissingParams:s}}function lx(e,t){const n=encodeURIComponent(e);return t?.(n)??n}function ol(e){return e?.isNotFound===!0}function RN(){try{return sessionStorage}catch{return}}const ON="tsr-scroll-restoration-v1_3",mv=RN();function LN(){try{return JSON.parse(mv?.getItem("tsr-scroll-restoration-v1_3")||"{}")}catch{return{}}}function DN(){try{mv?.setItem(ON,JSON.stringify(Qs))}catch{}}const Qs=LN(),ux="data-scroll-restoration-id",IN=e=>e.state.__TSR_key||e.href;function MN(e){const t=e.getAttribute(ux);if(t)return`[${ux}="${t}"]`;let n="",i=e,s;for(;s=i.parentNode;){let l=1,o=i;for(;o=o.previousElementSibling;)l++;const c=`${i.localName}:nth-child(${l})`;n=n?`${c} > ${n}`:c,i=s}return n}let Mc=!1;const sf="window";function Np(e){try{return typeof e=="function"?e():document.querySelector(e)}catch{}}function ox(e){const t=new Set;for(const n of e){if(n===sf)continue;const i=Np(n);i&&t.add(i)}return t}function PN(e,t){const n=e.options.scrollRestoration,i=e._scroll;n&&(i.restoring=!0);const s=e.options.getScrollRestorationKey||IN,l=new Set,o=c=>{const d=Qs[c]||={};for(const h of l)h===document?d[sf]={scrollX,scrollY}:h.isConnected&&(d[MN(h)]={scrollX:h.scrollLeft,scrollY:h.scrollTop})};n&&!i.restoration&&(i.restoration=!0,Mc=!1,history.scrollRestoration="manual",document.addEventListener("scroll",c=>{Mc||l.add(c.target)},!0),e.subscribe("onBeforeLoad",c=>{c.fromLocation&&o(s(c.fromLocation)),l.clear()}),addEventListener("pagehide",()=>{o(s(e.stores.resolvedLocation.get()??e.stores.location.get())),DN()})),!i.reset&&(i.reset=!0,e.subscribe("onRendered",c=>{const d=e.options.scrollRestorationBehavior,h=e.options.scrollToTopSelectors,m=i.next,p=i.hash;let E;if(l.clear(),i.next=!0,i.hash=!1,typeof e.options.scrollRestoration=="function"&&!e.options.scrollRestoration({location:e.latestLocation}))return;const y=s(c.toLocation),v=c.fromLocation&&s(c.fromLocation);if(i.restoring&&v&&v!==y){const S=Qs[v];if(S){let A=Qs[y];for(const k in S){if(k===sf){if(m)continue}else{const N=Np(k);if(!N||m&&h&&(E??=ox(h),E.has(N)))continue}A||(A=Qs[y]={}),A[k]??=S[k]}}}Mc=!0;try{const S=c.toLocation.hash,A=c.toLocation.state.__hashScrollIntoViewOptions??!0;let k=!1;if(m){!S&&h&&(E??=ox(h));const N=S&&A&&p,w=i.restoring?Qs[y]:void 0;if(w)for(const D in w){const{scrollX:z,scrollY:L}=w[D];if(D===sf){if(N)continue;scrollTo({top:L,left:z,behavior:d}),k=!0}else{const P=Np(D);P&&(P.scrollLeft=z,P.scrollTop=L,E?.delete(P))}}if(!S){const D={top:0,left:0,behavior:d};if(k||scrollTo(D),E)for(const z of E)z.scrollTo(D)}}!k&&S&&A&&document.getElementById(S)?.scrollIntoView(A)}finally{Mc=!1}}))}function BN(e,t=String){const n=new URLSearchParams;for(const i in e){const s=e[i];s!==void 0&&n.set(i,t(s))}return n.toString()}function jm(e){return e?e==="false"?!1:e==="true"?!0:+e*0===0&&+e+""===e?+e:e:""}function jN(e){const t=new URLSearchParams(e),n=Object.create(null);for(const[i,s]of t.entries()){const l=n[i];l==null?n[i]=jm(s):Array.isArray(l)?l.push(jm(s)):n[i]=[l,jm(s)]}return n}const HN=/^(?:\s|["[{\d-]|fa|nu|tr)/,UN=FN(JSON.parse),zN=qN(JSON.stringify,JSON.parse);function FN(e){return t=>{t[0]==="?"&&(t=t.substring(1));const n=jN(t);for(const i in n){const s=n[i];if(typeof s=="string")try{n[i]=e(s)}catch{}}return n}}function qN(e,t){const n=t===JSON.parse;function i(s){if(s&&typeof s=="object")try{return e(s)}catch{}else if(t&&typeof s=="string"){if(n&&!HN.test(s))return s;try{return t(s),e(s)}catch{}}return s}return s=>{const l=BN(s,i);return l?`?${l}`:""}}const rl="__root__";function VN(e){if(e.statusCode=e.statusCode||e.code||307,!e.reloadDocument&&typeof e.href=="string")try{new URL(e.href),e.reloadDocument=!0}catch{}const t=new Headers(e.headers);e.href&&t.get("Location")===null&&t.set("Location",e.href);const n=new Response(null,{status:e.statusCode,headers:t});if(n.options=e,e.throw)throw n;return n}function pv(e){return e instanceof Response&&!!e.options}function YN(e){return{input:({url:t})=>{for(const n of e)t=Rp(n,t);return t},output:({url:t})=>{for(let n=e.length-1;n>=0;n--)t=gv(e[n],t);return t}}}function $N(e){const t=hv(e.basepath),n=`/${t}`,i=e.caseSensitive?n:n.toLowerCase(),s=`${i}/`;return{input:({url:l})=>{const o=e.caseSensitive?l.pathname:l.pathname.toLowerCase();return o===i?l.pathname="/":o.startsWith(s)&&(l.pathname=l.pathname.slice(n.length)),l},output:({url:l})=>(l.pathname=rf(["/",t,l.pathname]),l)}}function Rp(e,t){const n=e?.input?.({url:t});if(n){if(typeof n=="string")return new URL(n);if(n instanceof URL)return n}return t}function gv(e,t){const n=e?.output?.({url:t});if(n){if(typeof n=="string")return new URL(n);if(n instanceof URL)return n}return t}function GN(e,t){const{createMutableStore:n,createReadonlyStore:i,batch:s}=t,l=new Map,o=n("idle"),c=n(e),d=n(void 0),h=n([]),m=i(()=>h.get().map(S=>l.get(S).get())),p=i(()=>({status:o.get(),isLoading:o.get()==="pending",matches:m.get(),location:c.get(),resolvedLocation:d.get()}));function E(S){let A=l.get(S);return A||(A=n(void 0),l.set(S,A)),A}const y={status:o,location:c,resolvedLocation:d,ids:h,matches:m,byRoute:l,__store:p,getMatchStore:E,setMatches:v};function v(S){const A=h.get(),k=S.map(N=>N.routeId);s(()=>{gN(A,k)||h.set(k);for(const N of A)k.includes(N)||l.get(N).set(()=>{});for(const N of S){const w=E(N.routeId);w.get()!==N&&w.set(N)}})}return y}var Wi="__TSR_index",cx="popstate",fx="beforeunload";function KN(e){let t=e.getLocation();const n=new Set,i=o=>{t=e.getLocation(),n.forEach(c=>c({location:t,action:o}))},s=o=>{e.notifyOnIndexChange??!0?i(o):t=e.getLocation()},l=async({task:o,navigateOpts:c,...d})=>{if(c?.ignoreBlocker??!1){o();return}const h=e.getBlockers?.()??[],m=d.type==="PUSH"||d.type==="REPLACE";if(typeof document<"u"&&h.length&&m)for(const p of h){const E=vf(d.path,d.state);if(await p.blockerFn({currentLocation:t,nextLocation:E,action:d.type})){e.onBlocked?.();return}}o()};return{get location(){return t},get length(){return e.getLength()},subscribers:n,subscribe:o=>(n.add(o),()=>{n.delete(o)}),push:(o,c,d)=>{const h=t.state[Wi];c=dx(h+1,c),l({task:()=>{e.pushState(o,c),i({type:"PUSH"})},navigateOpts:d,type:"PUSH",path:o,state:c})},replace:(o,c,d)=>{const h=t.state[Wi];c=dx(h,c),l({task:()=>{e.replaceState(o,c),i({type:"REPLACE"})},navigateOpts:d,type:"REPLACE",path:o,state:c})},go:(o,c)=>{l({task:()=>{e.go(o),s({type:"GO",index:o})},navigateOpts:c,type:"GO"})},back:o=>{l({task:()=>{e.back(o?.ignoreBlocker??!1),s({type:"BACK"})},navigateOpts:o,type:"BACK"})},forward:o=>{l({task:()=>{e.forward(o?.ignoreBlocker??!1),s({type:"FORWARD"})},navigateOpts:o,type:"FORWARD"})},canGoBack:()=>t.state[Wi]!==0,createHref:o=>e.createHref(o),block:o=>{if(!e.setBlockers)return()=>{};const c=e.getBlockers?.()??[];return e.setBlockers([...c,o]),()=>{const d=e.getBlockers?.()??[];e.setBlockers?.(d.filter(h=>h!==o))}},flush:()=>e.flush?.(),destroy:()=>e.destroy?.(),notify:i}}function dx(e,t){t||(t={});const n=L0();return{...t,key:n,__TSR_key:n,[Wi]:e}}function XN(e){const t=typeof document<"u"?window:void 0,n=t.history.pushState,i=t.history.replaceState;let s=[];const l=()=>s,o=P=>s=P,c=(P=>P),d=(()=>vf(`${t.location.pathname}${t.location.search}${t.location.hash}`,t.history.state));if(!t.history.state?.__TSR_key&&!t.history.state?.key){const P=L0();t.history.replaceState({[Wi]:0,key:P,__TSR_key:P},"")}let h=d(),m,p=!1,E=!1,y=!1,v=!1;const S=()=>h;let A;const k=()=>{A&&(L._ignoreSubscribers=!0,(A[2]?t.history.pushState:t.history.replaceState)(A[1],"",A[0]),L._ignoreSubscribers=!1,A=void 0,m=void 0)},N=(P,H,K)=>{const j=c(H),$=!!A;$||(m=h),h=vf(H,K),A=[j,K,A?.[2]||P],$||queueMicrotask(()=>k())},w=P=>{h=d(),L.notify({type:P})},D=async()=>{if(E){E=!1;return}const P=d(),H=P.state[Wi]-h.state[Wi],K=H===1,j=H===-1,$=!K&&!j||p;p=!1;const Z=$?"GO":j?"BACK":"FORWARD",le=$?{type:"GO",index:H}:{type:j?"BACK":"FORWARD"};if(y)y=!1;else{const ue=l();if(typeof document<"u"&&ue.length){for(const re of ue)if(await re.blockerFn({currentLocation:h,nextLocation:P,action:Z})){E=!0,t.history.go(1),L.notify(le);return}}}h=d(),L.notify(le)},z=P=>{if(v){v=!1;return}let H=!1;const K=l();if(typeof document<"u"&&K.length)for(const j of K){const $=j.enableBeforeUnload??!0;if($===!0){H=!0;break}if(typeof $=="function"&&$()===!0){H=!0;break}}if(H)return P.preventDefault(),P.returnValue=""},L=KN({getLocation:S,getLength:()=>t.history.length,pushState:(P,H)=>N(!0,P,H),replaceState:(P,H)=>N(!1,P,H),back:P=>(P&&(y=!0),v=!0,t.history.back()),forward:P=>{P&&(y=!0),v=!0,t.history.forward()},go:P=>{p=!0,t.history.go(P)},createHref:P=>c(P),flush:k,destroy:()=>{t.history.pushState=n,t.history.replaceState=i,t.removeEventListener(fx,z,{capture:!0}),t.removeEventListener(cx,D)},onBlocked:()=>{m&&h!==m&&(h=m)},getBlockers:l,setBlockers:o,notifyOnIndexChange:!1});return t.addEventListener(fx,z,{capture:!0}),t.addEventListener(cx,D),t.history.pushState=function(...P){const H=n.apply(t.history,P);return L._ignoreSubscribers||w("PUSH"),H},t.history.replaceState=function(...P){const H=i.apply(t.history,P);return L._ignoreSubscribers||w("REPLACE"),H},L}function QN(e){let t=e.replace(/[\x00-\x1f\x7f]/g,"");return t.startsWith("//")&&(t="/"+t.replace(/^\/+/,"")),t}function vf(e,t){const n=QN(e),i=n.indexOf("#"),s=n.indexOf("?"),l=L0();return{href:n,pathname:n.substring(0,i>0?s>0?Math.min(i,s):i:s>0?s:n.length),hash:i>-1?n.substring(i):"",search:s>-1?n.slice(s,i===-1?void 0:i):"",state:t||{[Wi]:0,key:l,__TSR_key:l}}}function L0(){return(Math.random()+1).toString(36).substring(7)}function hx(e){return e.options.loader||e.options.beforeLoad||e.lazyFn||e.options.component?.preload||e.options.pendingComponent?.preload}function qf(e,t){return{fromLocation:t,toLocation:e,pathChanged:t?.pathname!==e.pathname,hrefChanged:t?.href!==e.href,hashChanged:t?.hash!==e.hash}}function mx({key:e,__TSR_key:t,__TSR_index:n,__hashScrollIntoViewOptions:i,...s}){return s}function WN(e,t,n,i){for(const s of t){if(i&&e._tx!==i)return;n.some(l=>l.routeId===s.routeId)||e.routesById[s.routeId].options.onLeave?.(s)}for(const s of n){if(i&&e._tx!==i)return;e.routesById[s.routeId].options[t.some(l=>l.routeId===s.routeId)?"onStay":"onEnter"]?.(s)}}var ZN=class{constructor(e,t){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this._scroll={next:!0},this.subscribers=new Set,this._cache=new Map,this._committed=[],this.routeBranchCache=new WeakMap,this.lightweightCache=new WeakMap,this.startTransition=async n=>(n(),!1),this.update=n=>{const i=this.options,s=this.basepath??i?.basepath??"/",l=this.basepath===void 0,o=i?.rewrite;if(this.options={...i,...n},this.isServer=this.options.isServer??lN??typeof document>"u",this.protocolAllowlist=new Set(this.options.protocolAllowlist),this.options.pathParamsAllowedCharacters&&(this.pathParamsDecoder=NN(this.options.pathParamsAllowedCharacters)),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.history=XN()),this.origin=this.options.origin,this.origin||(window?.origin&&window.origin!=="null"?this.origin=window.origin:this.origin="http://localhost"),this.history&&this.updateLatestLocation(),this.options.routeTree!==this.routeTree){this.routeTree=this.options.routeTree;let h;this.resolvePathCache=xf(1e3),h=this.buildRouteTree(),this.setRoutes(h)}if(!this.stores&&this.latestLocation){const h=this.getStoreConfig(this);this.batch=h.batch,this.stores=GN(this.latestLocation,h),PN(this)}const c=this.options.basepath??"/",d=this.options.rewrite;if(l||s!==c||o!==d){this.basepath=c;const h=[],m=hv(c);m&&m!=="/"&&h.push($N({basepath:c})),d&&h.push(d),this.rewrite=h.length===0?void 0:h.length===1?h[0]:YN(h),this.history&&this.updateLatestLocation(),this.stores&&this.stores.location.set(this.latestLocation)}},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{const n=SN(this.routeTree,this.options.caseSensitive,(i,s)=>{i.init({originalIndex:s})});return this.options.routeMasks&&yN(this.options.routeMasks,n.processedTree),n},this.subscribe=(n,i)=>{const s={eventType:n,fn:i};return this.subscribers.add(s),()=>{this.subscribers.delete(s)}},this.emit=n=>{for(const i of this.subscribers)if(i.eventType===n.type)try{i.fn(n)}catch(s){console.error(s)}},this.parseLocation=(n,i)=>{const s=({pathname:d,search:h,hash:m,href:p,state:E})=>{if(!this.rewrite&&!/[ \x00-\x1f\x7f\u0080-\uffff]/.test(d)){const k=this.options.parseSearch(h),N=this.options.stringifySearch(k);return{href:d+N+m,publicHref:d+N+m,pathname:bu(d).path,external:!1,searchStr:N,search:ka(i?.search,k),hash:bu(m.slice(1)).path,state:Ma(i?.state,E)}}const y=new URL(p,this.origin),v=Rp(this.rewrite,y),S=this.options.parseSearch(v.search),A=this.options.stringifySearch(S);return v.search=A,{href:v.href.replace(v.origin,""),publicHref:p,pathname:bu(v.pathname).path,external:!!this.rewrite&&v.origin!==this.origin,searchStr:A,search:ka(i?.search,S),hash:bu(v.hash.slice(1)).path,state:Ma(i?.state,E)}},l=s(n),{__tempLocation:o,__tempKey:c}=l.state;if(o&&(!c||c===this.tempLocationKey)){const d=s(o);return d.state.key=l.state.key,d.state.__TSR_key=l.state.__TSR_key,delete d.state.__tempLocation,{...d,maskedLocation:l}}return l},this.resolvePathWithBase=(n,i)=>wN({base:n,to:i,trailingSlash:this.options.trailingSlash,cache:this.resolvePathCache}),this.matchRoutes=(n,i,s)=>typeof n=="string"?this.matchRoutesInternal({pathname:n,search:i},s):this.matchRoutesInternal(n,i),this.getMatchedRoutes=n=>{const i=Object.create(null),s=TN(ri(n),this.processedTree,!0);return s&&Object.assign(i,s.rawParams),[s?.branch||[this.routesById.__root__],i,s?.route]},this.buildLocation=n=>{const i=(l={})=>{if(l.href){const K=vf(l.href,{});l={...l,to:Rp(this.rewrite,new URL(K.pathname,this.origin)).pathname,search:this.options.parseSearch(K.search),hash:K.hash.slice(1)}}const o=l._fromLocation||this._pendingLocation||this.latestLocation,c=this.matchRoutesLightweight(o);l.from;const d=l.unsafeRelative==="path"?o.pathname:l.from??c[1],h=c[2],m=c[3],p=this.resolvePathWithBase(d,l.to?`${l.to}`:".");let E=px(l.params,m);const y=this.routesByPath[ri(p)];let v;if(y)v=this.getRouteBranch(y);else if(p.includes("$"))v=[];else{const[K,j,$]=this.getMatchedRoutes(p);v=K,this.options.notFoundRoute&&(!$||$.path!=="/"&&j["**"])&&(v=[...v,this.options.notFoundRoute])}if(v.length&&sv(E))for(const K of v){const j=K.options.params?.stringify??K.options.stringifyParams;if(j){E===m&&(E=Object.assign(Object.create(null),E));try{Object.assign(E,j(E))}catch{}}}const S=n.leaveParams?p:bu(sx({path:p,params:E,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath).path;let A=h;if(n._includeValidateSearch&&this.options.search?.strict){const K={};v.forEach(j=>{if(j.options.validateSearch)try{Object.assign(K,lf(j.options.validateSearch,{...K,...A}))}catch{}}),A=K}A=e6(A,l,v,n._includeValidateSearch),A=ka(h,A);const k=this.options.stringifySearch(A),N=l.hash===!0?o.hash:l.hash?ul(l.hash,o.hash):void 0,w=N?`#${N}`:"";let D=l.state===!0?o.state:l.state?ul(l.state,o.state):{};l.state&&(D=Ma(o.state,D));const z=`${S}${k}${w}`;let L,P,H=!1;if(this.rewrite){const K=new URL(z,this.origin),j=gv(this.rewrite,K);L=K.href.replace(K.origin,""),j.origin!==this.origin?(P=j.href,H=!0):P=j.pathname+j.search+j.hash}else L=pN(z),P=L;return{publicHref:P,href:L,pathname:S,search:A,searchStr:k,state:D,hash:N??"",external:H,unmaskOnReload:l.unmaskOnReload}},s=i(n);if(n.mask)s.maskedLocation=i({from:n.from,...n.mask});else if(this.options.routeMasks){const l=EN(s.pathname,this.processedTree);if(l){const o=Object.assign(Object.create(null),l.rawParams),{from:c,params:d,...h}=l.route,m=px(d,o);s.maskedLocation=i({from:n.from,...h,params:m})}}return s},this.commitLocation=async({viewTransition:n,ignoreBlocker:i,...s})=>{let l;const o=ri(this.latestLocation.href)===ri(s.href)&&Qi(mx(s.state),mx(this.latestLocation.state)),c=this._commitPromise;let d;const h=new Promise(m=>{d=m});if(h.resolve=()=>{d(),c?.resolve()},this._commitPromise=h,o)this.load();else{let{maskedLocation:m,hashScrollIntoView:p,...E}=s;m&&(E={...m,state:{...m.state,__tempKey:void 0,__tempLocation:{...E,search:E.searchStr,state:{...E.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(E.unmaskOnReload??this.options.unmaskOnReload??!1)&&(E.state.__tempKey=this.tempLocationKey)),E.state.__hashScrollIntoViewOptions=p??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=n,l=s.replace?"REPLACE":"PUSH",this.history[l==="REPLACE"?"replace":"push"](E.publicHref,E.state,{ignoreBlocker:i}),this.history.subscribers.size||this.load({action:{type:l}})}return this._scroll.next=s.resetScroll??!0,this._commitPromise},this.buildAndCommitLocation=({replace:n,resetScroll:i,hashScrollIntoView:s,viewTransition:l,ignoreBlocker:o,...c}={})=>{const d=this.buildLocation({...c,_includeValidateSearch:!0});this._pendingLocation=d;const h=this.commitLocation({...d,viewTransition:l,replace:n,resetScroll:i,hashScrollIntoView:s,ignoreBlocker:o});return queueMicrotask(()=>{this._pendingLocation===d&&(this._pendingLocation=void 0)}),h},this.navigate=async({to:n,reloadDocument:i,href:s,publicHref:l,...o})=>{let c=!1;if(s)try{new URL(`${s}`),c=!0}catch{}if(c&&!i&&(i=!0),i){if(n!==void 0||!s){const h=this.buildLocation({to:n,...o});s=s??h.publicHref,l=l??h.publicHref}const d=!c&&l?l:s;if(Ef(d,this.protocolAllowlist))return;if(!o.ignoreBlocker){const h=this.history.getBlockers?.()??[];for(const m of h)if(m?.blockerFn&&await m.blockerFn({currentLocation:this.latestLocation,nextLocation:this.latestLocation,action:"PUSH"}))return}o.replace?window.location.replace(d):window.location.href=d;return}return this.buildAndCommitLocation({...o,href:s,to:n,_isNavigate:!0})},this.load=async n=>{this.updateLatestLocation(),n?.action&&(this._scroll.hash=n.action.type==="PUSH"||n.action.type==="REPLACE"),await o6(this,n)},this.startViewTransition=n=>{const i=this.shouldViewTransition??this.options.defaultViewTransition;if(this.shouldViewTransition=void 0,i&&typeof document.startViewTransition=="function"){let s;if(typeof i=="object"&&window.CSS?.supports?.("selector(:active-view-transition-type(a))")){const l=this.latestLocation,o=this.stores.resolvedLocation.get(),c=typeof i.types=="function"?i.types(qf(l,o)):i.types;if(c===!1)return n();s={update:n,types:c}}else s=n;return document.startViewTransition(s).updateCallbackDone}return n()},this.invalidate=n=>{const i=this._committed,s=n?.filter,l=this._preloads,o=new Set([...i,...this._cache.values(),...[...l?.values()??[]].flat(),...this._tx?.[3]??[]].filter(h=>!s||s(h)).map(h=>h.id)),c=[];for(const[h,m]of l??[])m.some(p=>o.has(p.id))&&(l.delete(h),c.push(h));const d=h=>{if(o.has(h.id)){const m=this.routesById[h.routeId],p={...h,invalid:!0,...(n?.forcePending||h.status==="error"||h.status==="notFound")&&hx(m)?{status:"pending",error:void 0}:void 0};return h._flight=void 0,p}return h};this._committed=i.map(d);for(const[h,m]of this._cache)o.has(h)&&(m.invalid=!0,n?.forcePending&&(m.status="pending"));for(const h of o)this._flights?.delete(h);for(const h of c)h.abort();return this.shouldViewTransition=!1,this.load({sync:n?.sync})},this.resolveRedirect=n=>{const i=n.headers.get("Location");if(n.options.href){if(i)try{const s=new URL(i);if(this.origin&&s.origin===this.origin){const l=s.pathname+s.search+s.hash;n.options.href=l,n.headers.set("Location",l)}}catch{}}else{const s=this.buildLocation(n.options).publicHref||"/";n.options.href=s,n.headers.set("Location",s)}if(n.options.href&&Ef(n.options.href,this.protocolAllowlist))throw new Error("Redirect blocked: unsafe protocol");return n.headers.get("Location")||n.headers.set("Location",n.options.href),n},this.clearCache=n=>{const i=this._cache,s=this._preloads,l=n?.filter,o=[],c=[];for(const[h,m]of i)(!l||l(m))&&(c.push(h),o.push(m));const d=[];for(const[h,m]of s??[])(!l||m.some(l))&&(d.push(h),o.push(...m));for(const h of c)i.delete(h);for(const h of d)s.delete(h);for(const h of o){const m=h._flight;h._flight=void 0,m&&!--m[2]&&(this._flights?.get(h.id)===m&&this._flights.delete(h.id),d.push(m[1]))}for(const h of d)h.abort()},this.loadRouteChunk=il,this.preloadRoute=n=>c6(this,n),this.matchRoute=(n,i)=>{const s={...n,to:n.to?this.resolvePathWithBase(n.from||"",n.to):void 0,params:n.params||{},leaveParams:!0},l=this.buildLocation(s),o=this.stores.status.get()==="pending";if(i?.pending&&!o)return!1;const c=i?.pending??!o?this.latestLocation:this.stores.resolvedLocation.get()||this.stores.location.get(),d=xN(l.pathname,i?.caseSensitive??!1,i?.fuzzy??!1,c.pathname,this.processedTree);return!d||n.params&&!Qi(d.rawParams,n.params,{partial:!0})?!1:i?.includeSearch??!0?Qi(c.search,l.search,{partial:!0})?d.rawParams:!1:d.rawParams},this.getStoreConfig=t,this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...e,caseSensitive:e.caseSensitive??!1,notFoundMode:e.notFoundMode??"fuzzy",stringifySearch:e.stringifySearch??zN,parseSearch:e.parseSearch??UN,protocolAllowlist:e.protocolAllowlist??mN}),self.__TSR_ROUTER__=this}isShell(){return!!this.options.isShell}get state(){return this.stores.__store.get()}setRoutes({routesById:e,routesByPath:t,processedTree:n}){this.routesById=e,this.routesByPath=t,this.processedTree=n;const i=this.options.notFoundRoute;i&&(i.init({originalIndex:99999999999}),this.routesById[i.id]=i)}getRouteBranch(e){let t=this.routeBranchCache.get(e);return t||(t=fv(e),this.routeBranchCache.set(e,t)),t}matchRoutesInternal(e,t){const[n,i,s]=this.getMatchedRoutes(e.pathname);let l=n,o=!1;(s?s.path!=="/"&&i["**"]:ri(e.pathname))&&(this.options.notFoundRoute?l=[...l,this.options.notFoundRoute]:o=!0);const c=o?t6(this.options.notFoundMode,l):void 0,d=new Array(l.length),h=this._committed,m=(E,y)=>{const v=h[y];return v?.routeId===E.id?v:E===this.options.notFoundRoute?h.find(S=>S.routeId===E.id):void 0};let p;for(let E=0;E<l.length;E++){const y=l[E],v=d[E-1];let S,A,k;{const le=v?.search??e.search,ue=v?._strictSearch??void 0;try{const re=lf(y.options.validateSearch,{...le})??void 0;S={...le,...re},A={...ue,...re}}catch(re){let V=re;if(re instanceof Sf||(V=new Sf(re.message,{cause:re})),t?.throwOnError)throw V;S=le,A={},k=V}}let N="",w="";try{N=y.options.loaderDeps?.({search:S})??"",w=N&&JSON.stringify(N)||""}catch(le){if(t?.throwOnError)throw le;k??=le}const{interpolatedPath:D,usedParams:z}=sx({path:y.fullPath,params:i,decoder:this.pathParamsDecoder,server:this.isServer}),L=y.id+D+w,P=m(y,E),H=this._cache.get(L)??(P?.id===L?P:void 0);p=H?._strictParams??Object.assign(z,p);let K;if(!H)try{gx(y,p)}catch(le){if(ol(le)||pv(le)?K=le:K=new JN(le.message,{cause:le}),t?.throwOnError)throw K}const j=P?"stay":"enter";let $;if(H)$={...H,cause:j,search:ka(P?P.search:H.search,S),_strictSearch:A,searchError:k};else{const le=hx(y)?"pending":"success";$={id:L,ssr:y.options.ssr,index:E,routeId:y.id,params:P?.params??p,_strictParams:p,pathname:D,updatedAt:Date.now(),search:P?ka(P.search,S):S,_strictSearch:A,searchError:k,status:le,isFetching:!1,error:void 0,paramsError:K,context:{},abortController:t?._controller??new AbortController,cause:j,loaderDeps:P?Ma(P.loaderDeps,N):N,invalid:!1,preload:!1,staticData:y.options.staticData||{},fullPath:y.fullPath}}const Z=c===y.id;$._notFound&&!Z&&($.error=void 0),$._notFound=Z,d[E]=$}for(let E=0;E<d.length;E++){const y=d[E];y.params=y.cause==="stay"?ka(y.params,p):p,t?._controller&&(y.context={})}return d}matchRoutesLightweight(e){const t=qu(this.stores.ids.get()),n=t?this.stores.byRoute.get(t).get():void 0,i=n?.id,s=this.lightweightCache.get(e);if(s&&s[0]===i)return s[1];const[l,o]=this.getMatchedRoutes(e.pathname),c=qu(l),d={...e.search};for(const E of l)try{Object.assign(d,lf(E.options.validateSearch,d))}catch{}const h=n&&n.routeId===c.id&&n.pathname===e.pathname;let m;if(h)m=n.params;else{const E=Object.assign(Object.create(null),o);for(const y of l)try{gx(y,E)}catch{}m=E}const p=[l,c.fullPath,d,m];return this.lightweightCache.set(e,[i,p]),p}},Sf=class extends Error{},JN=class extends Error{};function lf(e,t){if(e==null)return{};if("~standard"in e){const n=e["~standard"].validate(t);if(n instanceof Promise)throw new Sf("Async validation not supported");if(n.issues)throw new Sf(JSON.stringify(n.issues,void 0,2),{cause:n});return n.value}return"parse"in e?e.parse(t):typeof e=="function"?e(t):{}}function e6(e,t,n,i){const s=[];for(const o of n){const c=o.options;if("search"in c)c.search?.middlewares&&s.push(...c.search.middlewares);else if(c.preSearchFilters||c.postSearchFilters){const h=({search:m,next:p})=>{const E=p(c.preSearchFilters?c.preSearchFilters.reduce((y,v)=>v(y),m):m);return c.postSearchFilters?c.postSearchFilters.reduce((y,v)=>v(y),E):E};s.push(h)}const d=c.validateSearch;if(i&&d){const h=({search:m,next:p,meta:E})=>{const y=p(m);try{const v=lf(d,y);if(E&&v)for(const S in v)S in y||(E.defaulted||=new Map).set(S,v[S]);return{...y,...v}}catch{}return y};s.push(h)}}const l=(o,c,d)=>{if(o>=s.length){if(!t.search)return{};if(t.search===!0)return c;const m=ul(t.search,c);return d&&(d.explicit=m),m}const h=(m,p)=>{if(p){const E=d||{};return{search:l(o+1,m,E),meta:E}}return l(o+1,m,d)};return s[o]({search:c,next:h,meta:d})};return l(0,e)}function t6(e,t){if(e!=="root"){let n;for(let i=t.length-1;i>=0;i--){const s=t[i];if(s.options.notFoundComponent)return s.id;n||=s.children&&s.id}if(n)return n}return rl}function px(e,t){if(e===!1||e===null)return Object.create(null);if((e??!0)===!0)return t;const n=Object.assign(Object.create(null),t);return Object.assign(n,ul(e,n))}function gx(e,t){const n=e.options.params?.parse??e.options.parseParams;n&&Object.assign(t,n(t))}function Op(e,t){return e.options[t]?.preload?.()}function n6(e,t){const n=Op(e,"component");let i=Op(e,"pendingComponent");return t&&(i?i=i.then(t):t()),n&&i?Promise.all([n,i]).then(()=>{}):n??i}function il(e,t,n){const i=()=>t===!1?void 0:t?Op(e,t):n6(e,n),s=e._lazy;if(s)return s===!0?i():s.then(i);if(!e.lazyFn)return i();const l=e.lazyFn().then(o=>{{const{id:c,...d}=o.options;Object.assign(e.options,d),e._lazy=!0}},o=>{throw e._lazy=void 0,o});return e._lazy=l,l.then(i)}function D0(e){const t=e.findIndex(n=>n.status!=="success"||n._notFound)+1;return t&&t<e.length?e.slice(0,t):e}const wr=0,si=1,Vf=2,qn=3,Ji=[4];function Vu(e){return typeof e[0]=="number"}function Xa(e,t){return t.aborted?Promise.race([Promise.reject(t),e]):new Promise((n,i)=>{const s=()=>i(t);t.addEventListener("abort",s,{once:!0}),Promise.resolve(e).then(n,i).finally(()=>t.removeEventListener("abort",s))})}function Qa(e,t){return e.routesById[t.routeId]}function Yu(e,t,n){return pv(e)?[qn,e]:ol(e)?(e.routeId||=n,[Vf,e]):t?(typeof e?.then=="function"&&(e=new Error("A Promise was thrown",{cause:e})),[si,e]):[wr,e]}function I0(e,t){let n=Yu(t,!0,e.id);if(n[0]!==si)return n;try{e.options.onError?.(n[1])}catch(i){n=Yu(i,!0,e.id)}return n}function Lu(e,t,n,i,s){return s[0].signal.aborted?Ji:B0(e,t,n,I0(n,i),s)}async function r6(e,t,n,i,s,l){const[o,c]=t,d=n[0].signal,h=!!n[3];for(let m=n[6]??0;m<i;m++){const p=c[m],E=Qa(e,p);p.abortController=n[0];const y=c[m-1]?.context??e.options.context??{},v={params:p.params,location:o,navigate:N=>e.navigate({...N,_fromLocation:o}),buildLocation:e.buildLocation,cause:h?"preload":p.cause,abortController:n[0],preload:h,matches:c,routeId:E.id};try{const N=p._ctx||=E.options.context?E.options.context({...v,deps:p.loaderDeps,context:y})||{}:void 0;p.context={...y,...N}}catch(N){return ai(e,p),[m,Lu(e,t,E,N,n)]}if(d.aborted)return[m,Ji];const S=p.paramsError??p.searchError;if(S!==void 0)return ai(e,p),[m,Lu(e,t,E,S,n)];const A=E.options.beforeLoad;if(!A)continue;const k=p.status;m>=l&&(p.status="pending",n[7]?.());try{$u(e,p,"beforeLoad",n[0]);const N=await Xa(A({...v,search:p.search,context:p.context,...e.options.additionalContext}),d);if(d.aborted)return[m,Ji];const w=B0(e,t,E,Yu(N,!1,E.id),n);if(w[0]!==wr)return ai(e,p),[m,w];p.context={...p.context,...N}}catch(N){return ai(e,p),[m,Lu(e,t,E,N,n)]}finally{p.status=k,$u(e,p,!1,n[0])}}s()}function M0(e,t,n){if(!(!n||--n[2])){if(e._flights?.get(t.id)===n){const i=e._tx;if(i&&!i[0].signal.aborted&&!i[3].includes(t)&&i[3].some(s=>s.id===t.id)&&i[3].some(s=>s.isFetching==="beforeLoad"))return;e._flights.delete(t.id)}return n[1]}}function ai(e,t){const n=t._flight;t._flight=void 0,M0(e,t,n)?.abort()}function Rn(e,t,n,i){const s=[];for(const l of t)if(!n?.includes(l)){const o=l._flight;if(l._flight=void 0,i&&o?.[2]===1&&e._flights?.get(l.id)===o&&n?.some(c=>c.id===l.id))o[2]=0;else{const c=M0(e,l,o);c&&s.push(c)}}for(const l of s)l.abort()}function P0(e){for(const t of e){const n=t._flight;n&&n[2]++}}function $u(e,t,n,i){if(t.isFetching=n,i&&e._tx?.[0]!==i)return;const s=e.stores.byRoute.get(t.routeId),l=s?.get();l?.id===t.id&&s.set({...l,isFetching:n})}function bv(e,t,n,i,s,l,o){const c=t[0];return{params:n.params,location:c,navigate:d=>e.navigate({...d,_fromLocation:c}),cause:o?"preload":n.cause,abortController:s,preload:o,deps:n.loaderDeps,parentMatchPromise:l,context:n.context,route:i,...e.options.additionalContext}}async function bx(e,t,n,i,s,l,o){const c=o[0],d=c.signal;if(d.aborted)return Ji;if(!s)return[wr,void 0];let h=n._flight;$u(e,n,"loader",c);try{if(!h){const m=new AbortController;h=[Promise.resolve().then(()=>s(bv(e,t,n,i,m,l,!!o[3]))).then(p=>Yu(p,!1,i.id),p=>Yu(p,!0,i.id)).then(p=>(p[0]!==wr&&e._flights?.get(n.id)===h&&(e._flights.delete(n.id),h[2]||m.abort()),p[0]===si&&h[2]?I0(i,p[1]):p)),m,1],(e._flights??=new Map).set(n.id,h)}return n._flight=h,n.abortController=h[1],B0(e,t,i,await Xa(h[0],d),o)}catch(m){if(m!==d||!d.aborted)throw m;return ai(e,n),Ji}finally{$u(e,n,!1,c)}}function yx(e,t,n){t[0]!==qn&&(e.status="success",e.error=void 0,t[0]===wr?(e.loaderData=t[1],e.invalid=!1,e.updatedAt=Date.now(),e.preload=n):e.invalid=!0)}function i6(e,t,n){const i=e._cache.get(t.id);if(i!==n||e._committed.some(l=>l.id===t.id&&l._flight===t._flight))return;const s={...t,_notFound:void 0,context:{}};s._flight&&s._flight[2]++,e._cache.set(t.id,s),i&&ai(e,i)}function Ex(e,t){return t[0]===si||t[0]===Vf?{...e,status:t[0]===si?"error":"notFound",error:t[1],_flight:void 0}:e}function a6(e,t,n,i,s,l,o){const c=t[1][n],d=Qa(e,c),h=!!l[3],m=e._cache.get(c.id);let p,E=!1,y;try{if(c.status==="success"&&(p=d.options.shouldReload,typeof p=="function"&&(p=p(bv(e,t,c,d,l[0],s,h))),l[0].signal.aborted&&(y=Ji)),!y)if(c.status!=="success")E=!0;else{const Z=h||c.preload?d.options.preloadStaleTime??e.options.defaultPreloadStaleTime??3e4:d.options.staleTime??e.options.defaultStaleTime??0;E=!!(c.invalid||p||p===void 0&&Date.now()-c.updatedAt>=Z&&(l[5]||c.cause==="enter"||l[2].some(le=>le.routeId===c.routeId&&le.id!==c.id)))}}catch(Z){c.invalid=!0,ai(e,c),y=Lu(e,t,d,Z,l)}const v=d.options.loader,S=typeof v=="function",A=S?v:v?.handler,k=!h||d.options.preload!==!1;let N=k&&v?e._flights?.get(c.id):void 0;N===c._flight||y?N=void 0:N&&!E&&!h&&p===void 0?E=!0:E||(N=void 0);const w=!!(v&&E&&c.status==="success"&&!h&&!l[4]&&((S?void 0:v.staleReloadMode)??e.options.defaultStaleReloadMode)!=="blocking"),D=E&&k,z=D&&!w&&(c.status!=="success"||!!v),L=n>=o?l[7]:void 0,P=d.lazyFn&&d._lazy!==!0?L:void 0;if(D&&!v&&(c.invalid=!1,c.updatedAt=Date.now()),N&&N[2]++,z){const Z=c._flight;c._flight=N,M0(e,c,Z)?.abort(),n>=o&&(c.status="pending"),L?.()}D||(c.isFetching=!1);const H=(y?Promise.resolve(y):z?bx(e,t,c,d,A,s,l):Promise.resolve([wr,c.loaderData])).then(Z=>(z&&(yx(c,Z,h),Z[0]===wr&&(v&&!l[0].signal.aborted&&i6(e,c,m),n>=o&&(c.status="pending"))),Z)),K=Xa(Promise.resolve().then(()=>il(d,void 0,P)),l[0].signal).then(()=>{},Z=>t[1].some((le,ue)=>ue<=n&&(le.status==="error"||le.status==="notFound"||le._notFound))?void 0:[n,Lu(e,t,d,Z,l)]).then(Z=>H.then(le=>(z&&!Z&&le[0]===wr&&c.status==="pending"&&!l[0].signal.aborted&&(c.status="success",L?.()),Z)));if(i.push([n,H,K]),!w)return H.then(Z=>Ex(c,Z));const j={...c,status:"pending",preload:!1,_flight:N};c.invalid=!1,c.isFetching="loader";const $=bx(e,t,j,d,A,s,l).then(Z=>(c.isFetching=!1,yx(j,Z,!1),Z));return(t[2]??=[]).push([n,$,K,j]),$.then(Z=>Ex(j,Z))}async function Lp(e,t,n,i,s=0){const l=n?.[1][1];let o=l?.routeId?t.findIndex(c=>c.routeId===l.routeId):n?.[0]??t.length-1;o<0&&(o=0);for(let c=o;c>=0;c--){const d=Qa(e,t[c]);try{const h=il(d,!1);h&&await Xa(h,i)}catch(h){if(h===i&&i.aborted)throw h}if(d.options.notFoundComponent)return c}return l?.routeId?o:s}function Ha(e,t){t[2]&&(Rn(e,t[2].map(n=>n[3])),t[2]=void 0)}async function xx(e,t,n,i){let s;try{await Promise.all(e.map(l=>l[1].then(async o=>{const c=l[0];if(!(i&&c>=await i)){if(o[0]>=qn)throw[c,o];!s&&o[0]!==wr&&(s=[c,o],await Promise.all((n??[]).map(d=>{if(!(d[0]<=c))return d[1].then(h=>{if(h[0]===qn)throw[d[0],h]})})))}})))}catch(l){return l}return t??s}function B0(e,t,n,i,s,l){for(;i[0]===qn;){const o=i[1],c=o.options;if(c.reloadDocument?s[3]:s[1]>=20)return i;try{return c.href&&c.reloadDocument?(e.resolveRedirect(o),i):[qn,o,e.buildLocation({...c,_fromLocation:t[0],_includeValidateSearch:!0})]}catch(d){i=l?[si,d]:I0(n,d),l=!0}}return i}async function yv(e,t,n,i,s,l){const o=t[1];let c=await s,d=!1;const h=o.findIndex(y=>y._notFound),m=y=>y[1][0]===Vf?Lp(e,o,y,i.signal):y[0];let p=h<0?o.length:h;if((c?.[1][0]??0)>=qn)p=0;else if(c){p=c[2]??=await m(c);for(const y of n){if(y[0]>=p)break;const v=await y[1];if(v[0]!==wr&&v[0]<qn&&!("loaderData"in o[y[0]])){c=[y[0],v],p=c[2]=await m(c);break}}}for(const y of n){if(y[0]>=p)break;const v=await y[2];if(v){c=v;break}}if((c?.[1][0]??0)>=qn){const y=c[1];if(y[0]!==qn||y[1].options.reloadDocument||y[2])return Ha(e,t),y;d=!0,c=[0,[si,new Error("Too many redirects")]]}const E=c?c[2]??await m(c):h;if(E>=0){const y=c?.[1],v=y?.[0],S=o[E],A=y?.[1],k=()=>{y&&(S._notFound=void 0,v===si?S.status="error":(A.routeId=S.routeId,S.routeId===e.routeTree.id?(S.status="success",S._notFound=!0):S.status="notFound"),S.error=A,S.isFetching=!1)};k(),y||l?.();const N=Qa(e,S);try{await Xa(y?Promise.resolve().then(()=>il(N,v===si?"errorComponent":"notFoundComponent")):Promise.all([il(N),il(N,"notFoundComponent")]),i.signal)}catch(w){if(w===i.signal&&i.signal.aborted)return Ha(e,t),Ji}y?d&&(i.abort(),await Promise.all([...n.map(w=>w[1]),...n.map(w=>w[2]),...(t[2]??[]).map(w=>w[1])]),Ha(e,t),Rn(e,o),k()):S.status="success"}return t}async function Ev(e,t,n,i=0,s=t[1].length){const l=t[1];for(let o=i;o<s;o++){const c=l[o],d=Qa(e,c).options;if(d.head||d.scripts)try{const h={ssr:e.options.ssr,matches:l,match:c,params:c.params,loaderData:c.loaderData},[m,p]=await Xa(Promise.all([d.head?.(h),d.scripts?.(h)]),n);c.meta=m?.meta,c.links=m?.links,c.headScripts=m?.scripts,c.styles=m?.styles,c.scripts=p}catch(h){if(h===n&&n.aborted)break;console.error(h)}if(c.status!=="success"||c._notFound)break}return t}async function xv(e,t,n,i){const s=[t,n],l=i[0].signal;let o;try{const c=e.stores.matches.get();let d=n.findIndex(k=>k._notFound);if(e.options.notFoundMode!=="root"&&d>=0){const k=await Lp(e,n,void 0,l,d);n[d]._notFound=void 0,n[k]._notFound=!0,d=k}let h=d<0?n.length:d+1,m=0;for(;m<h&&m!==d;){const k=n[m],N=i[2][m],w=c[m];if(N?.id!==k.id||N.status!=="success"||N._notFound||k.preload||w?.id!==k.id||w.status!=="success"||w._notFound)break;m++}const p=[],E=i[6]??0;let y=E?Promise.resolve(n[E-1]):void 0;const v=()=>{for(let k=E;k<h&&!l.aborted;k++)y=a6(e,s,k,p,y,i,m)},S=await r6(e,s,i,h,v,m);if(S){if(i[4]=!0,h=S[0],S[1][0]===Vf){const k=await Lp(e,n,S,l);S[2]=k,h=Math.min(h,k+1)}else S[1][0]>=qn&&(h=0);v()}if(!l.aborted&&!i[3]){const k=[];for(const[N,w]of e._flights??[])w[2]||(e._flights.delete(N),k.push(w[1]));for(const N of k)N.abort()}const A=yv(e,s,p,i[0],xx(p,S,s[2]),i[7]);s[2]?.length&&(s[3]=xx(s[2],void 0,void 0,A.then(k=>Vu(k)?0:D0(n).length,()=>0))),o=await A}catch(c){if(Ha(e,s),c===l&&l.aborted)return Ji;throw c}return Vu(o)?o:Ev(e,o,l,i[6]===n.length?i[6]:0)}function Dp(e,t){if(e._tx!==t)return;const n=t[3],i=e.stores.matches.get();let s=e._pending;for(let l=0;l<n.length;l++){const o=n[l],c=o.status==="success"&&!o._notFound,d=i[l]?.id===o.id&&i[l]?.status==="pending";if(c&&!d)continue;const h=Qa(e,o),m=c||o.invalid?0:h.options.pendingMs??e.options.defaultPendingMs,p=h.options.pendingComponent??e.options.defaultPendingComponent;if(!p||typeof m!="number"||m===1/0){s&&(s[0]=t,s[2]=0,s[4]=!0);return}const E=h.options.pendingMinMs??e.options.defaultPendingMinMs??0;let y=!1;if(s?.[1]===o.id?(y=s[0]!==t,s[0]=t):(clearTimeout(s?.[3]),e._pending=s=void 0),s||(e._pending=s=[t,o.id,d?Date.now()+E:t[4]+m,void 0,d||void 0,p]),s[4]&&!y&&s[5]===p)return;if(s[5]=p,!s[4]){clearTimeout(s[3]);const A=s[2]-Date.now();if(A>0){s[3]=setTimeout(()=>Dp(e,t),A);return}s[2]=0}const v=n.map(A=>({...A,_flight:void 0}));v[l].status="pending";const S=s[4]=e.startTransition(()=>e.stores.setMatches(v),v).then(A=>(A&&e._pending===s&&s[4]===S&&!s[2]&&(s[2]=Date.now()+E),A));return}}function yu(e,t){const n=e._pending;(e._tx===t||!e._tx?.[3].some(i=>i.id===n?.[1]))&&(clearTimeout(n?.[3]),e._pending=void 0)}async function Tx(e,t){const n=e._pending;if(!n)return;clearTimeout(n[3]);const i=n[2]-Date.now();if(!n[4]||i<=0||!D0(t[3]).some(l=>l.id===n[1]))return;let s;try{await Xa(new Promise(l=>{s=setTimeout(l,i)}),t[0].signal)}catch{}clearTimeout(s)}function Tv(e,t){e._committed=t,e.stores.setMatches(t)}function s6(e,t,n,i){const s=e._committed,l=e._cache;for(const d of n)d.preload=!1,i&&(d._assetEnd=void 0);const o=D0(n).length,c=new Map;{const d=Date.now();for(const h of[...s,...l.values()]){if(h.status!=="success"||n.some((p,E)=>p.id===h.id&&(E<o||p.status==="success")))continue;const m=Qa(e,h);!m.options.loader||d-h.updatedAt>=(h.preload?m.options.preloadGcTime??e.options.defaultPreloadGcTime??3e5:m.options.gcTime??e.options.defaultGcTime??3e5)||c.set(h.id,l.get(h.id)===h?h:{...h,_flight:void 0,isFetching:!1,context:{}})}}t[3]=[],e._cache=c,Tv(e,n),Rn(e,[...l.values(),...s],[...n,...c.values()]),WN(e,s,n,t)}async function Pc(e,t){let n=e._tx;for(;n&&n!==t;){if(await n[5],e._tx===n)return;n=e._tx}}function vv(e,t,n){const i=n[1].options,s=n[2];if(!s)return e.navigate({...i,replace:!0,ignoreBlocker:!0});if(i.reloadDocument)return e.navigate({href:s.publicHref,reloadDocument:!0,replace:!0,ignoreBlocker:!0});s._redirects=t[1]+1,e._pendingLocation=s;const l=e.commitLocation({...s,viewTransition:i.viewTransition,replace:!0,resetScroll:i.resetScroll,hashScrollIntoView:i.hashScrollIntoView,ignoreBlocker:!0});return queueMicrotask(()=>{e._pendingLocation===s&&(e._pendingLocation=void 0)}),l}async function l6(e,t,n,i,s){const l=n.map(d=>({...d}));P0(l);for(const d of i)ai(e,l[d[0]]),l[d[0]]=d[3];const o=[t[2],l];let c;try{c=await yv(e,o,i,t[0],s)}catch(d){throw Rn(e,l),d}if(Vu(c)){Rn(e,l),c[0]===qn&&e._tx===t&&e._committed===n&&await vv(e,t,c);return}if(await Ev(e,c,t[0].signal),e._tx!==t||e._committed!==n){Rn(e,l);return}for(const d of l){const h=e._cache.get(d.id);h?._flight&&h._flight===d._flight&&(e._cache.delete(d.id),ai(e,h))}Tv(e,l),Rn(e,n,l)}async function u6(e,t,n,i,s,l){const o=await xv(e,t[2],t[3],[t[0],t[1],e._committed,void 0,s,n,l,i]);if(Vu(o)){const p=o[0]===qn&&e._tx===t;if((!p||o[1].options.reloadDocument)&&yu(e,t),Rn(e,t[3]),t[3]=[],!p)return;if(e._tx!==t){yu(e,t);return}await vv(e,t,o);return}const c=o[1];if(e._tx===t&&await Tx(e,t),e._tx!==t){yu(e,t),Rn(e,c),Ha(e,o);return}const d=t[2],h=qf(d,e.stores.resolvedLocation.get()),m=o[2];await e.startViewTransition(async()=>{if(e._tx===t&&await Tx(e,t),e._tx!==t){yu(e,t),Rn(e,c),Ha(e,o);return}const p=()=>{yu(e,t),s6(e,t,c,l),e._tx===t&&(e.emit({type:"onLoad",...h}),e._tx===t&&e.emit({type:"onBeforeRouteMount",...h}))},E=await e.startTransition(p,c);if(e._tx!==t){Ha(e,o);return}m?.length&&l6(e,t,c,m,o[3]).catch(console.error),e.batch(()=>{e.stores.resolvedLocation.set(d),e.stores.status.set("idle"),e._tx===t&&e.emit({type:"onResolved",...h}),E&&e._tx===t&&e.emit({type:"onRendered",...h})}),e._tx===t&&(e._commitPromise?.resolve(),e._commitPromise=void 0)})}async function o6(e,t){const n=e._tx,i=e.stores.resolvedLocation.get(),s=i??e.stores.location.get(),l=e.latestLocation,o=e._pendingLocation,c=o?.href===l.href?o._redirects??0:0,d=e._handoff,h=d?.[0](),m=new AbortController,p=e._preflight;if(e._preflight=m,h||d?.[1](),p?.abort(),!m.signal.aborted){const D=qf(l,i);e.emit({type:"onBeforeNavigate",...D}),m.signal.aborted||e.emit({type:"onBeforeLoad",...D})}if(m.signal.aborted){await Pc(e,n);return}const E=s.href===l.href;let y=m;const v=e.matchRoutes(l,{_controller:m});P0(v);const S=h?d[1](v):void 0;if(S?y=h:h?.abort(),m.signal.aborted){Rn(e,v),await Pc(e,n);return}e._preflight=void 0;let A;const k=()=>u6(e,w,E,()=>Dp(e,w),t?.sync,S),N=t?.sync?new Promise(D=>A=D):Promise.resolve().then(k).then(),w=[y,c,l,v,Date.now(),N];if(e._tx=w,n){for(const D of e.stores.matches.get()){if(e._tx!==w)break;D.isFetching&&$u(e,D,!1)}n[0].abort(),Rn(e,n[3],w[3],!0)}if(e._tx!==w){Rn(e,w[3]),w[3]=[],A?.(),await Pc(e,w);return}e.batch(()=>{e.stores.status.set("pending"),e.stores.location.set(l)}),(S||!e._committed.length&&v[0]?.status!=="success"&&!v.some(D=>D._notFound))&&Dp(e,w),A?.(k()),await N,await Pc(e,w)}async function c6(e,t){let n=e.buildLocation(t);for(let i=0;;i++){const s=e._committed,l=new AbortController;let o,c,d;try{try{o=e.matchRoutes(n,{_controller:l}),P0(o),c=(e._preloads??=new Map).set(l,o),d=await xv(e,n,o,[l,i,s,!0])}finally{c&&(c=c.delete(l),Rn(e,o)),l.abort()}if(!Vu(d))return d[1];if(!c||d.length<3)return;n=d[2]}catch(h){ol(h)||console.error(h);return}}}const f6="Error preloading route! ☝️";var Sv=class{get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}constructor(e){if(this.init=t=>{this.originalIndex=t.originalIndex;const n=this.options,i=!n?.path&&!n?.id;this.parentRoute=this.options.getParentRoute?.(),i?this._path=rl:this.parentRoute||R0();let s=i?rl:n?.path;s&&s!=="/"&&(s=dv(s));const l=n?.id||s;let o=i?rl:rf([this.parentRoute.id==="__root__"?"":this.parentRoute.id,l]);s==="__root__"&&(s="/"),o!=="__root__"&&(o=rf(["/",o]));const c=o==="__root__"?"/":rf([this.parentRoute.fullPath,s]);this._path=s,this._id=o,this._fullPath=c,this._to=ri(c)},this.addChildren=t=>this._addFileChildren(t),this._addFileChildren=t=>(Array.isArray(t)&&(this.children=t),typeof t=="object"&&t!==null&&(this.children=Object.values(t)),this),this._addFileTypes=()=>this,this.updateLoader=t=>(Object.assign(this.options,t),this),this.update=t=>(Object.assign(this.options,t),this),this.lazy=t=>(this.lazyFn=t,this),this.redirect=t=>VN({from:this.fullPath,...t}),this.options=e||{},this.isRoot=!e?.getParentRoute,e?.id&&e?.path)throw new Error("Route cannot have both an 'id' and a 'path' option.")}},d6=class extends Sv{constructor(e){super(e)}},j0=class extends C.Component{constructor(...e){super(...e),this.state={error:null},this.reset=()=>{this.setState({error:null})}}static getDerivedStateFromProps(e,t){const n=e.getResetKey();return t.error&&t.resetKey!==n?{resetKey:n,error:null}:{resetKey:n}}static getDerivedStateFromError(e){return{error:e}}componentDidCatch(e,t){this.props.onCatch?.(e,t)}render(){const e=this.state.error;return e?C.createElement(this.props.errorComponent??h6,{error:e,reset:this.reset}):this.props.children}};function h6({error:e}){const[t,n]=C.useState(!1);return T.jsxs("div",{style:{padding:".5rem",maxWidth:"100%"},children:[T.jsxs("div",{style:{display:"flex",alignItems:"center",gap:".5rem"},children:[T.jsx("strong",{style:{fontSize:"1rem"},children:"Something went wrong!"}),T.jsx("button",{style:{appearance:"none",fontSize:".6em",border:"1px solid currentColor",padding:".1rem .2rem",fontWeight:"bold",borderRadius:".25rem"},onClick:()=>n(i=>!i),children:t?"Hide Error":"Show Error"})]}),T.jsx("div",{style:{height:".25rem"}}),t?T.jsx("div",{children:T.jsx("pre",{style:{fontSize:".7em",border:"1px solid red",borderRadius:".25rem",padding:".3rem",color:"red",overflow:"auto"},children:e.message?T.jsx("code",{children:e.message}):null})}):null]})}function m6({children:e,fallback:t=null}){return T.jsx(ml.Fragment,{children:_v()?e:t})}function _v(){return ml.useSyncExternalStore(p6,()=>!0,()=>!1)}function p6(){return()=>{}}var Cv=C.createContext(null);function hr(e){return C.useContext(Cv)}var Yf=C.createContext(void 0),g6=C.createContext(void 0),Ct=(e=>(e[e.None=0]="None",e[e.Mutable=1]="Mutable",e[e.Watching=2]="Watching",e[e.RecursedCheck=4]="RecursedCheck",e[e.Recursed=8]="Recursed",e[e.Dirty=16]="Dirty",e[e.Pending=32]="Pending",e))(Ct||{});function b6({update:e,notify:t,unwatched:n}){return{link:i,unlink:s,propagate:l,checkDirty:o,shallowPropagate:c};function i(h,m,p){const E=m.depsTail;if(E!==void 0&&E.dep===h)return;const y=E!==void 0?E.nextDep:m.deps;if(y!==void 0&&y.dep===h){y.version=p,m.depsTail=y;return}const v=h.subsTail;if(v!==void 0&&v.version===p&&v.sub===m)return;const S=m.depsTail=h.subsTail={version:p,dep:h,sub:m,prevDep:E,nextDep:y,prevSub:v,nextSub:void 0};y!==void 0&&(y.prevDep=S),E!==void 0?E.nextDep=S:m.deps=S,v!==void 0?v.nextSub=S:h.subs=S}function s(h,m=h.sub){const p=h.dep,E=h.prevDep,y=h.nextDep,v=h.nextSub,S=h.prevSub;return y!==void 0?y.prevDep=E:m.depsTail=E,E!==void 0?E.nextDep=y:m.deps=y,v!==void 0?v.prevSub=S:p.subsTail=S,S!==void 0?S.nextSub=v:(p.subs=v)===void 0&&n(p),y}function l(h){let m=h.nextSub,p;e:do{const E=h.sub;let y=E.flags;if(y&60?y&12?y&4?!(y&48)&&d(h,E)?(E.flags=y|40,y&=1):y=0:E.flags=y&-9|32:y=0:E.flags=y|32,y&2&&t(E),y&1){const v=E.subs;if(v!==void 0){const S=(h=v).nextSub;S!==void 0&&(p={value:m,prev:p},m=S);continue}}if((h=m)!==void 0){m=h.nextSub;continue}for(;p!==void 0;)if(h=p.value,p=p.prev,h!==void 0){m=h.nextSub;continue e}break}while(!0)}function o(h,m){let p,E=0,y=!1;e:do{const v=h.dep,S=v.flags;if(m.flags&16)y=!0;else if((S&17)===17){if(e(v)){const A=v.subs;A.nextSub!==void 0&&c(A),y=!0}}else if((S&33)===33){(h.nextSub!==void 0||h.prevSub!==void 0)&&(p={value:h,prev:p}),h=v.deps,m=v,++E;continue}if(!y){const A=h.nextDep;if(A!==void 0){h=A;continue}}for(;E--;){const A=m.subs,k=A.nextSub!==void 0;if(k?(h=p.value,p=p.prev):h=A,y){if(e(m)){k&&c(A),m=h.sub;continue}y=!1}else m.flags&=-33;m=h.sub;const N=h.nextDep;if(N!==void 0){h=N;continue e}}return y}while(!0)}function c(h){do{const m=h.sub,p=m.flags;(p&48)===32&&(m.flags=p|16,(p&6)===2&&t(m))}while((h=h.nextSub)!==void 0)}function d(h,m){let p=m.depsTail;for(;p!==void 0;){if(p===h)return!0;p=p.prevDep}return!1}}function y6(e,t,n){const i=typeof e=="object",s=i?e:void 0;return{next:(i?e.next:e)?.bind(s),error:(i?e.error:t)?.bind(s),complete:(i?e.complete:n)?.bind(s)}}const Ip=[];let uf=0;const{link:vx,unlink:E6,propagate:x6,checkDirty:Av,shallowPropagate:Sx}=b6({update(e){return e._update()},notify(e){Ip[Mp++]=e,e.flags&=~Ct.Watching},unwatched(e){e.depsTail!==void 0&&(e.depsTail=void 0,e.flags=Ct.Mutable|Ct.Dirty,_f(e))}});let Bc=0,Mp=0,_r,Pp=0;function T6(e){try{++Pp,e()}finally{--Pp||kv()}}function _f(e){const t=e.depsTail;let n=t!==void 0?t.nextDep:e.deps;for(;n!==void 0;)n=E6(n,e)}function kv(){if(!(Pp>0)){for(;Bc<Mp;){const e=Ip[Bc];Ip[Bc++]=void 0,e.notify()}Bc=0,Mp=0}}function _x(e,t){const n=typeof e=="function",i=e,s={_snapshot:n?void 0:e,subs:void 0,subsTail:void 0,deps:void 0,depsTail:void 0,flags:n?Ct.None:Ct.Mutable,get(){return _r!==void 0&&vx(s,_r,uf),s._snapshot},subscribe(l){const o=y6(l),c={current:!1},d=v6(()=>{s.get(),c.current?o.next?.(s._snapshot):c.current=!0});return{unsubscribe:()=>{d.stop()}}},_update(l){const o=_r,c=t?.compare??Object.is;if(n)_r=s,++uf,s.depsTail=void 0;else if(l===void 0)return!1;n&&(s.flags=Ct.Mutable|Ct.RecursedCheck);try{const d=s._snapshot,h=typeof l=="function"?l(d):l===void 0&&n?i(d):l;return d===void 0||!c(d,h)?(s._snapshot=h,!0):!1}finally{_r=o,n&&(s.flags&=~Ct.RecursedCheck),_f(s)}}};return n?(s.flags=Ct.Mutable|Ct.Dirty,s.get=function(){const l=s.flags;if(l&Ct.Dirty||l&Ct.Pending&&Av(s.deps,s)){if(s._update()){const o=s.subs;o!==void 0&&Sx(o)}}else l&Ct.Pending&&(s.flags=l&~Ct.Pending);return _r!==void 0&&vx(s,_r,uf),s._snapshot}):s.set=function(l){if(s._update(l)){const o=s.subs;o!==void 0&&(x6(o),Sx(o),kv())}},s}function v6(e){const t=()=>{const i=_r;_r=n,++uf,n.depsTail=void 0,n.flags=Ct.Watching|Ct.RecursedCheck;try{return e()}finally{_r=i,n.flags&=~Ct.RecursedCheck,_f(n)}},n={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:Ct.Watching|Ct.RecursedCheck,notify(){const i=this.flags;i&Ct.Dirty||i&Ct.Pending&&Av(this.deps,this)?t():this.flags=Ct.Watching},stop(){this.flags=Ct.None,this.depsTail=void 0,_f(this)}};return t(),n}var Hm={exports:{}},Um={},zm={exports:{}},Fm={};var Cx;function S6(){if(Cx)return Fm;Cx=1;var e=eo();function t(p,E){return p===E&&(p!==0||1/p===1/E)||p!==p&&E!==E}var n=typeof Object.is=="function"?Object.is:t,i=e.useState,s=e.useEffect,l=e.useLayoutEffect,o=e.useDebugValue;function c(p,E){var y=E(),v=i({inst:{value:y,getSnapshot:E}}),S=v[0].inst,A=v[1];return l(function(){S.value=y,S.getSnapshot=E,d(S)&&A({inst:S})},[p,y,E]),s(function(){return d(S)&&A({inst:S}),p(function(){d(S)&&A({inst:S})})},[p]),o(y),y}function d(p){var E=p.getSnapshot;p=p.value;try{var y=E();return!n(p,y)}catch{return!0}}function h(p,E){return E()}var m=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?h:c;return Fm.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:m,Fm}var Ax;function _6(){return Ax||(Ax=1,zm.exports=S6()),zm.exports}var kx;function C6(){if(kx)return Um;kx=1;var e=eo(),t=_6();function n(h,m){return h===m&&(h!==0||1/h===1/m)||h!==h&&m!==m}var i=typeof Object.is=="function"?Object.is:n,s=t.useSyncExternalStore,l=e.useRef,o=e.useEffect,c=e.useMemo,d=e.useDebugValue;return Um.useSyncExternalStoreWithSelector=function(h,m,p,E,y){var v=l(null);if(v.current===null){var S={hasValue:!1,value:null};v.current=S}else S=v.current;v=c(function(){function k(L){if(!N){if(N=!0,w=L,L=E(L),y!==void 0&&S.hasValue){var P=S.value;if(y(P,L))return D=P}return D=L}if(P=D,i(w,L))return P;var H=E(L);return y!==void 0&&y(P,H)?(w=L,P):(w=L,D=H)}var N=!1,w,D,z=p===void 0?null:p;return[function(){return k(m())},z===null?void 0:function(){return k(z())}]},[m,p,E,y]);var A=s(h,v[0],v[1]);return o(function(){S.hasValue=!0,S.value=A},[A]),d(A),A},Um}var wx;function A6(){return wx||(wx=1,Hm.exports=C6()),Hm.exports}var k6=A6();function w6(e,t){return e===t}function oi(e,t,n=w6){const i=C.useCallback(o=>{if(!e)return()=>{};const{unsubscribe:c}=e.subscribe(o);return c},[e]),s=C.useCallback(()=>e?.get(),[e]);return k6.useSyncExternalStoreWithSelector(i,s,s,t,n)}var Nx={};function wv(e,t){const n=C.useRef();return i=>{const s=e?.select?e.select(i):i;return e?.structuralSharing??t.options.defaultStructuralSharing?n.current=Ma(n.current,s):s}}function Wa(e){const t=hr(),n=C.useContext(e.from?g6:Yf),i=e.from??n,s=t.stores.getMatchStore(i),l=wv(e,t),o=oi(s,c=>c?l(c):Nx);if(o!==Nx)return o;(e.shouldThrow??!0)&&R0()}function Nv(e){return Wa({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function Rv(e){const{select:t,...n}=e;return Wa({...n,select:i=>t?t(i.loaderDeps):i.loaderDeps})}function Ov(e){return Wa({from:e.from,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,strict:e.strict,select:t=>{const n=e.strict===!1?t.params:t._strictParams;return e.select?e.select(n):n}})}function Lv(e){return Wa({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.search):t.search})}function H0(e){const t=hr();return C.useCallback(n=>t.navigate({...n,from:n.from??e?.from}),[e?.from,t])}function Dv(e){return Wa({...e,select:t=>e.select?e.select(t.context):t.context})}function qm(e){const t=C.useRef(e);return Qi(t.current,e,{ignoreUndefined:!1})||(t.current=e),t.current}function N6(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]}function R6(e,t,n){if(e?.external)return Ef(e.href,n)?void 0:e.href;if(!B6(t)&&!(typeof t!="string"||t.indexOf(":")===-1))try{return new URL(t),Ef(t,n)?void 0:t}catch{}}function O6(e,t,n,i,s,l){if(l)return!1;if(n?.exact){if(!kN(e.pathname,t.pathname,i))return!1}else{const o=Tf(e.pathname,i),c=Tf(t.pathname,i);if(!(o.startsWith(c)&&(o.length===c.length||o[c.length]==="/")))return!1}return(n?.includeSearch??!0)&&!Qi(e.search,t.search,{partial:!n?.exact,ignoreUndefined:!n?.explicitUndefined})?!1:n?.includeHash?s&&e.hash===t.hash:!0}function L6(e,t){const n=hr(),i=oN(t),{activeProps:s,inactiveProps:l,activeOptions:o,to:c,preload:d,preloadDelay:h,preloadIntentProximity:m,hashScrollIntoView:p,replace:E,startTransition:y,resetScroll:v,viewTransition:S,children:A,target:k,disabled:N,style:w,className:D,onClick:z,onBlur:L,onFocus:P,onMouseEnter:H,onMouseLeave:K,onTouchStart:j,ignoreBlocker:$,params:Z,search:le,hash:ue,state:re,mask:V,reloadDocument:Q,unsafeRelative:ae,from:Ee,_fromLocation:R,...U}=e,X=_v(),I=qm(e.search),ge=qm(e.params),ye=qm(o),he=C.useMemo(()=>e,[n,e.from,e._fromLocation,e.hash,e.to,I,ge,e.state,e.mask,e.unsafeRelative]),Ae=C.useCallback(Je=>{const Qe=n.buildLocation({_fromLocation:Je,...he}),cn=P6(Qe.maskedLocation?Qe.maskedLocation.publicHref:Qe.publicHref,Qe.maskedLocation?Qe.maskedLocation.external:Qe.external,n.history,N),Y=R6(cn,c,n.protocolAllowlist);return[cn?.href,Y,O6(Je,Qe,ye,n.basepath,X,Y!==void 0)]},[ye,N,X,he,n,c]),[Te,xe,je]=oi(n.stores.location,Ae,N6),Ne=je?ul(s,{})??D6:Vm,Me=je?Vm:ul(l,{})??Vm,Ve=[D,Ne.className,Me.className].filter(Boolean).join(" "),rt=(w||Ne.style||Me.style)&&{...w,...Ne.style,...Me.style},ut=C.useRef(!1),Et=e.reloadDocument||xe||N?!1:d??n.options.defaultPreload,Vt=h??n.options.defaultPreloadDelay??0,Ut=C.useCallback(()=>{n.preloadRoute(he).catch(Je=>{console.warn(Je),console.warn(f6)})},[n,he]),En=C.useCallback(Je=>{if(!Je){Ym(i);return}if(!(Je.isIntersecting??Et==="intent")){Je.isIntersecting===!1&&Ym(i);return}if(!Vt){Ut();return}Du.has(i)||Du.set(i,setTimeout(()=>{Du.delete(i),Ut()},Vt))},[Ut,i,Et,Vt]);uN(i,En,Et!=="viewport"),C.useEffect(()=>{ut.current||Et==="render"&&(Ut(),ut.current=!0)},[Ut,Et]);const ke=Je=>{const Qe=Je.currentTarget.getAttribute("target"),cn=k!==void 0?k:Qe;!N&&!(Je.metaKey||Je.altKey||Je.ctrlKey||Je.shiftKey)&&!Je.defaultPrevented&&(!cn||cn==="_self")&&Je.button===0&&(Je.preventDefault(),n.navigate({...he,replace:E,resetScroll:v,hashScrollIntoView:p,startTransition:y,viewTransition:S,ignoreBlocker:$}))};if(xe)return{...U,ref:i,href:xe,...A&&{children:A},...k&&{target:k},...N&&{disabled:N},...w&&{style:w},...D&&{className:D},...z&&{onClick:z},...L&&{onBlur:L},...P&&{onFocus:P},...H&&{onMouseEnter:H},...K&&{onMouseLeave:K},...j&&{onTouchStart:j}};const Ue=()=>{Et==="intent"&&Ut()},At=()=>{Et==="intent"&&Ym(i)};return{...U,...Ne,...Me,href:Te,ref:i,onClick:qs([z,ke]),onBlur:qs([L,At]),onFocus:qs([P,En]),onMouseEnter:qs([H,En]),onMouseLeave:qs([K,At]),onTouchStart:qs([j,Ue]),disabled:!!N,target:k,...rt&&{style:rt},...Ve&&{className:Ve},...N&&I6,...je&&M6}}var Vm={},D6={className:"active"},I6={role:"link","aria-disabled":!0},M6={"data-status":"active","aria-current":"page"},Du=new WeakMap,Ym=e=>{clearTimeout(Du.get(e)),Du.delete(e)},qs=e=>t=>{for(const n of e)if(n){if(t.defaultPrevented)return;n(t)}};function P6(e,t,n,i){if(!i)return t?{href:e,external:!0}:{href:n.createHref(e)||"/",external:!1}}function B6(e){if(typeof e!="string")return!1;const t=e.charCodeAt(0);return t===47?e.charCodeAt(1)!==47:t===46}var Iv=C.forwardRef((e,t)=>{const{_asChild:n,...i}=e,{type:s,...l}=L6(i,t),o=typeof i.children=="function"?i.children({isActive:l["data-status"]==="active"}):i.children;if(!n){const{disabled:c,...d}=l;return C.createElement("a",d,o)}return C.createElement(n,l,o)}),j6=class extends Sv{constructor(e){super(e),this.useMatch=t=>Wa({select:t?.select,from:this.id,structuralSharing:t?.structuralSharing}),this.useRouteContext=t=>Dv({...t,from:this.id}),this.useSearch=t=>Lv({select:t?.select,structuralSharing:t?.structuralSharing,from:this.id}),this.useParams=t=>Ov({select:t?.select,structuralSharing:t?.structuralSharing,from:this.id}),this.useLoaderDeps=t=>Rv({...t,from:this.id}),this.useLoaderData=t=>Nv({...t,from:this.id}),this.useNavigate=()=>H0({from:this.fullPath}),this.Link=ml.forwardRef((t,n)=>T.jsx(Iv,{ref:n,from:this.fullPath,...t}))}};function Ui(e){return new j6(e)}var H6=class extends d6{constructor(e){super(e),this.useMatch=t=>Wa({select:t?.select,from:this.id,structuralSharing:t?.structuralSharing}),this.useRouteContext=t=>Dv({...t,from:this.id}),this.useSearch=t=>Lv({select:t?.select,structuralSharing:t?.structuralSharing,from:this.id}),this.useParams=t=>Ov({select:t?.select,structuralSharing:t?.structuralSharing,from:this.id}),this.useLoaderDeps=t=>Rv({...t,from:this.id}),this.useLoaderData=t=>Nv({...t,from:this.id}),this.useNavigate=()=>H0({from:this.fullPath}),this.Link=ml.forwardRef((t,n)=>T.jsx(Iv,{ref:n,from:this.fullPath,...t}))}};function U6(e){return new H6(e)}function z6(e){const t=hr(),n=`not-found-${oi(t.stores.location,i=>i.pathname)}-${oi(t.stores.status,i=>i)}`;return T.jsx(j0,{getResetKey:()=>n,onCatch:(i,s)=>{if(ol(i))e.onCatch?.(i,s);else throw i},errorComponent:({error:i})=>{if(ol(i))return e.fallback?.(i);throw i},children:e.children})}function F6(){return T.jsx("p",{children:"Not Found"})}function Ws(e){return T.jsx(T.Fragment,{children:e.children})}function Mv(e,t,n){return t.options.notFoundComponent?T.jsx(t.options.notFoundComponent,{...n}):e.options.defaultNotFoundComponent?T.jsx(e.options.defaultNotFoundComponent,{...n}):T.jsx(F6,{})}function $f(e,t){const n=t?.options.pendingComponent??e.options.defaultPendingComponent;return n?T.jsx(n,{}):null}var q6=(e,t)=>e[0]===t[0]&&e[1]===t[1],Pv=(e,t,n)=>!t.isRoot||t.options.shellComponent||t.options.wrapInSuspense||n===!1||n==="data-only"||!e.ssr,Bv=C.memo(function({routeId:t}){const n=hr();return T.jsx(V6,{router:n,match:oi(n.stores.getMatchStore(t),i=>i)})});function V6({router:e,match:t}){const n=e.routesById[t.routeId],i=$f(e,n),s=n.options.errorComponent??e.options.defaultErrorComponent,l=n.options.onCatch??e.options.defaultOnCatch,o=n.isRoot?n.options.notFoundComponent??e.options.notFoundRoute?.options.component:n.options.notFoundComponent,c=t.ssr===!1||t.ssr==="data-only",d=Pv(e,n,t.ssr)&&(n.options.wrapInSuspense??i??(n.options.errorComponent?.preload||c))?C.Suspense:Ws,h=s?j0:Ws,m=o?z6:Ws;return T.jsxs(n.isRoot?n.options.shellComponent??Ws:Ws,{children:[T.jsx(Yf.Provider,{value:t.routeId,children:T.jsx(d,{fallback:i,children:T.jsx(h,{getResetKey:()=>t,errorComponent:s,onCatch:(p,E)=>{if(ol(p))throw p.routeId??=t.routeId,p;l?.(p,E)},children:T.jsx(m,{fallback:p=>{if(p.routeId??=t.routeId,p.routeId!==t.routeId)throw p;return C.createElement(o,p)},children:c?T.jsx(m6,{fallback:i,children:T.jsx(Rx,{match:t})}):T.jsx(Rx,{match:t})})})})}),null]})}var Rx=C.memo(function({match:t}){const n=hr(),i=t.routeId,s=n.routesById[i],l=C.useMemo(()=>{const c=(s.options.remountDeps??n.options.defaultRemountDeps)?.({routeId:i,loaderDeps:t.loaderDeps,params:t._strictParams,search:t._strictSearch});return c?JSON.stringify(c):void 0},[i,t.loaderDeps,t._strictParams,t._strictSearch,s.options.remountDeps,n.options.defaultRemountDeps]),o=C.useMemo(()=>{const c=s.options.component??n.options.defaultComponent;return c?T.jsx(c,{},l):T.jsx(jv,{})},[l,s.options.component,n.options.defaultComponent]);if(t.status==="pending"){if(n.ssr&&!Pv(n,s,t.ssr))return o;if(n._tx)throw n._tx[5];return $f(n,s)}if(t.status==="notFound")return Mv(n,s,t.error);if(t.status==="error")throw t.error;return o}),jv=C.memo(function(){const t=hr(),n=C.useContext(Yf);let i,s,l;{const c=t.stores.getMatchStore(n);[i,s]=oi(c,d=>[!!d._notFound,d.error],q6),l=oi(t.stores.ids,d=>d[d.indexOf(n)+1])}if(i)return Mv(t,t.routesById[n],s);if(!l)return null;const o=T.jsx(Bv,{routeId:l});return n===rl?T.jsx(C.Suspense,{fallback:$f(t),children:o}):o});function Hv(e,t){const n=e[1];e.length=0,n?.(t)}function Y6({t:e}){const t=hr(),n=t._rendered??=[];return t.startTransition=(i,s)=>new Promise(l=>{Hv(n,!1),n.push(s,l),e(t),C.startTransition(i)}),iv(()=>{const i=t.history.subscribe(t.load);t.updateLatestLocation();const s=t.latestLocation,l=t.buildLocation({to:s.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});if(ri(s.publicHref)!==ri(l.publicHref))return t.commitLocation({...l,replace:!0,ignoreBlocker:!0}),i;const o=t.stores.resolvedLocation.get();return o?.href===s.href&&o.state.__TSR_key===s.state.__TSR_key?n.push(t.stores.matches.get(),c=>{c&&t.emit({type:"onRendered",...qf(o,o)})}):t._tx||t.load({sync:!0}).catch(console.error),i},[t,t.history]),null}function $6(){const e=hr(),t=e.routesById[rl],n=$f(e,t),i=e.ssr?Ws:C.Suspense,s=T.jsxs(T.Fragment,{children:[T.jsx(Y6,{t:C.useState()[1]}),T.jsx(i,{fallback:n,children:T.jsx(G6,{})})]});return e.options.InnerWrap?T.jsx(e.options.InnerWrap,{children:s}):s}function G6(){const e=hr(),t=e._rendered,n=oi(e.stores.matches,o=>t[0]??o),i=n[0],s=i?.routeId;iv(()=>{t[0]===n&&Hv(t,!0)},[t,n]);const l=s?T.jsx(Bv,{routeId:s}):null;return T.jsx(Yf.Provider,{value:s,children:e.options.disableGlobalCatchBoundary?l:T.jsx(j0,{getResetKey:()=>i,onCatch:void 0,children:l})})}var K6=e=>({createMutableStore:_x,createReadonlyStore:_x,batch:T6}),X6=e=>new Q6(e),Q6=class extends ZN{constructor(e){super(e,K6)}};function W6({router:e,children:t,...n}){sv(n)&&e.update({...e.options,...n,context:{...e.options.context,...n.context}});const i=T.jsx(Cv.Provider,{value:e,children:t});return e.options.Wrap?T.jsx(e.options.Wrap,{children:i}):i}function Z6({router:e,...t}){return T.jsx(W6,{router:e,...t,children:T.jsx($6,{})})}function J6(e){const t=hr({warn:e?.router===void 0}),n=e?.router||t;return oi(n.stores.__store,wv(e,n))}const eR=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Uv=(...e)=>e.filter((t,n,i)=>!!t&&t.trim()!==""&&i.indexOf(t)===n).join(" ").trim();var tR={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"};const nR=C.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:i,className:s="",children:l,iconNode:o,...c},d)=>C.createElement("svg",{ref:d,...tR,width:t,height:t,stroke:e,strokeWidth:i?Number(n)*24/Number(t):n,className:Uv("lucide",s),...c},[...o.map(([h,m])=>C.createElement(h,m)),...Array.isArray(l)?l:[l]]));const lt=(e,t)=>{const n=C.forwardRef(({className:i,...s},l)=>C.createElement(nR,{ref:l,iconNode:t,className:Uv(`lucide-${eR(e)}`,i),...s}));return n.displayName=`${e}`,n};const Ox=lt("Activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]);const rR=lt("Archive",[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"M10 12h4",key:"a56b0p"}]]);const zv=lt("ArrowUpRight",[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]);const iR=lt("BookOpen",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]]);const aR=lt("Brain",[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z",key:"ep3f8r"}],["path",{d:"M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4",key:"1p4c4q"}],["path",{d:"M17.599 6.5a3 3 0 0 0 .399-1.375",key:"tmeiqw"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M19.938 10.5a4 4 0 0 1 .585.396",key:"1qfode"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M19.967 17.484A4 4 0 0 1 18 18",key:"159ez6"}]]);const el=lt("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);const Bp=lt("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);const sR=lt("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);const lR=lt("CircleAlert",[["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"}]]);const uR=lt("Clock3",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16.5 12",key:"1aq6pp"}]]);const oR=lt("Command",[["path",{d:"M15 6v12a3 3 0 1 0 3-3H6a3 3 0 1 0 3 3V6a3 3 0 1 0-3 3h12a3 3 0 1 0-3-3",key:"11bfej"}]]);const $m=lt("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);const U0=lt("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]]);const cR=lt("FileCog",[["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"m3.2 12.9-.9-.4",key:"1i3dj5"}],["path",{d:"m3.2 15.1-.9.4",key:"1fvgj0"}],["path",{d:"M4.677 21.5a2 2 0 0 0 1.313.5H18a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v2.5",key:"1yo3oz"}],["path",{d:"m4.9 11.2-.4-.9",key:"otmhb9"}],["path",{d:"m4.9 16.8-.4.9",key:"1b8z07"}],["path",{d:"m7.5 10.3-.4.9",key:"11k65u"}],["path",{d:"m7.5 17.7-.4-.9",key:"431x55"}],["path",{d:"m9.7 12.5-.9.4",key:"87sjan"}],["path",{d:"m9.7 15.5-.9-.4",key:"khqm91"}],["circle",{cx:"6",cy:"14",r:"3",key:"a1xfv6"}]]);const Lx=lt("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);const fR=lt("Filter",[["polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3",key:"1yg77f"}]]);const jc=lt("KeyRound",[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]]);const Fv=lt("Layers",[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]]);const Gm=lt("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);const dR=lt("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);const qv=lt("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);const hR=lt("Pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]);const mR=lt("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);const pR=lt("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);const of=lt("Server",[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]]);const gR=lt("Settings2",[["path",{d:"M20 7h-9",key:"3s1dr2"}],["path",{d:"M14 17H5",key:"gfn3mx"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]]);const Dx=lt("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]]);const Vv=lt("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);const Yv=lt("Tag",[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]]);const Cf=lt("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);var ra=rv(),bR=Object.defineProperty,yR=(e,t)=>bR(e,"name",{value:t,configurable:!0});function jp(e,[t,n]){return Math.min(n,Math.max(t,e))}yR(jp,"clamp");var ER=Object.defineProperty,pl=(e,t)=>ER(e,"name",{value:t,configurable:!0}),$v=!!(typeof window<"u"&&window.document&&window.document.createElement);function Ot(e,t,{checkForDefaultPrevented:n=!0}={}){return pl(function(s){if(e?.(s),n===!1||!s||!s.defaultPrevented)return t?.(s)},"handleEvent")}pl(Ot,"composeEventHandlers");function xR(e){if(!$v)throw new Error("Cannot access window outside of the DOM");return e?.ownerDocument?.defaultView??window}pl(xR,"getOwnerWindow");function Hp(e){if(!$v)throw new Error("Cannot access document outside of the DOM");return e?.ownerDocument??document}pl(Hp,"getOwnerDocument");function Gv(e,t=!1){const{activeElement:n}=Hp(e);if(!n?.nodeName)return null;if(Kv(n)&&n.contentDocument)return Gv(n.contentDocument.body,t);if(t){const i=n.getAttribute("aria-activedescendant");if(i){const s=Hp(n).getElementById(i);if(s)return s}}return n}pl(Gv,"getActiveElement");function Kv(e){return e.tagName==="IFRAME"}pl(Kv,"isFrame");var TR=Object.defineProperty,ir=(e,t)=>TR(e,"name",{value:t,configurable:!0});function vR(e,t){const n=C.createContext(t);n.displayName=e+"Context";const i=ir(l=>{const{children:o,...c}=l,d=C.useMemo(()=>c,Object.values(c));return T.jsx(n.Provider,{value:d,children:o})},"Provider");i.displayName=e+"Provider";function s(l,o={}){const{optional:c=!1}=o,d=C.useContext(n);if(d)return d;if(t!==void 0)return t;if(!c)throw new Error(`\`${l}\` must be used within \`${e}\``)}return ir(s,"useContext"),[i,s]}ir(vR,"createContext");function no(e,t=[]){let n=[];function i(l,o){const c=C.createContext(o);c.displayName=l+"Context";const d=n.length;n=[...n,o];const h=ir(p=>{const{scope:E,children:y,...v}=p,S=E?.[e]?.[d]||c,A=C.useMemo(()=>v,Object.values(v));return T.jsx(S.Provider,{value:A,children:y})},"Provider");h.displayName=l+"Provider";function m(p,E,y={}){const{optional:v=!1}=y,S=E?.[e]?.[d]||c,A=C.useContext(S);if(A)return A;if(o!==void 0)return o;if(!v)throw new Error(`\`${p}\` must be used within \`${l}\``)}return ir(m,"useContext"),[h,m]}ir(i,"createContext");const s=ir(()=>{const l=n.map(o=>C.createContext(o));return ir(function(c){const d=c?.[e]||l;return C.useMemo(()=>({[`__scope${e}`]:{...c,[e]:d}}),[c,d])},"useScope")},"createScope");return s.scopeName=e,[i,Xv(s,...t)]}ir(no,"createContextScope");function Xv(...e){const t=e[0];if(e.length===1)return t;const n=ir(()=>{const i=e.map(s=>({useScope:s(),scopeName:s.scopeName}));return ir(function(l){const o=i.reduce((c,{useScope:d,scopeName:h})=>{const p=d(l)[`__scope${h}`];return{...c,...p}},{});return C.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])},"useComposedScopes")},"createScope");return n.scopeName=t.scopeName,n}ir(Xv,"composeContextScopes");var SR=Object.defineProperty,z0=(e,t)=>SR(e,"name",{value:t,configurable:!0});function Up(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}z0(Up,"setRef");function Qv(...e){return t=>{let n=!1;const i=e.map(s=>{const l=Up(s,t);return!n&&typeof l=="function"&&(n=!0),l});if(n)return()=>{for(let s=0;s<i.length;s++){const l=i[s];typeof l=="function"?l():Up(e[s],null)}}}}z0(Qv,"composeRefs");function Dt(...e){return C.useCallback(Qv(...e),e)}z0(Dt,"useComposedRefs");var _R=Object.defineProperty,mr=(e,t)=>_R(e,"name",{value:t,configurable:!0});function Fa(e){const t=C.forwardRef((n,i)=>{let{children:s,...l}=n,o=null,c=!1;const d=[];zp(s)&&typeof Hc=="function"&&(s=Hc(s._payload)),C.Children.forEach(s,E=>{if(eS(E)){c=!0;const y=E;let v="child"in y.props?y.props.child:y.props.children;zp(v)&&typeof Hc=="function"&&(v=Hc(v._payload)),o=AR(y,v),d.push(o?.props?.children)}else d.push(E)}),o?o=C.cloneElement(o,void 0,d):!c&&C.Children.count(s)===1&&C.isValidElement(s)&&(o=s);const h=o?Jv(o):void 0,m=Dt(i,h);if(!o){if(s||s===0)throw new Error(c?NR(e):wR(e));return s}const p=Zv(l,o.props??{});return o.type!==C.Fragment&&(p.ref=i?m:h),C.cloneElement(o,p)});return t.displayName=`${e}.Slot`,t}mr(Fa,"createSlot");var Wv=Symbol.for("radix.slottable");function CR(e){const t=mr(n=>"child"in n?n.children(n.child):n.children,"Slottable");return t.displayName=`${e}.Slottable`,t.__radixId=Wv,t}mr(CR,"createSlottable");var AR=mr((e,t)=>{if("child"in e.props){const n=e.props.child;return C.isValidElement(n)?C.cloneElement(n,void 0,e.props.children(n.props.children)):null}return C.isValidElement(t)?t:null},"getSlottableElementFromSlottable");function Zv(e,t){const n={...t};for(const i in t){const s=e[i],l=t[i];/^on[A-Z]/.test(i)?s&&l?n[i]=(...c)=>{const d=l(...c);return s(...c),d}:s&&(n[i]=s):i==="style"?n[i]={...s,...l}:i==="className"&&(n[i]=[s,l].filter(Boolean).join(" "))}return{...e,...n}}mr(Zv,"mergeProps");function Jv(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}mr(Jv,"getElementRef");function eS(e){return C.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Wv}mr(eS,"isSlottable");var kR=Symbol.for("react.lazy");function zp(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===kR&&"_payload"in e&&tS(e._payload)}mr(zp,"isLazyComponent");function tS(e){return typeof e=="object"&&e!==null&&"then"in e}mr(tS,"isPromiseLike");var wR=mr(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,"createSlotError"),NR=mr(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,"createSlottableError"),Hc=to[" use ".trim().toString()],RR=Object.defineProperty,Xt=(e,t)=>RR(e,"name",{value:t,configurable:!0});function nS(e){const t=e+"CollectionProvider",[n,i]=no(t),[s,l]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=Xt(S=>{const{scope:A,children:k}=S,N=C.useRef(null),w=C.useRef(new Map).current;return T.jsx(s,{scope:A,itemMap:w,collectionRef:N,children:k})},"CollectionProvider");o.displayName=t;const c=e+"CollectionSlot",d=Fa(c),h=C.forwardRef((S,A)=>{const{scope:k,children:N}=S,w=l(c,k),D=Dt(A,w.collectionRef);return T.jsx(d,{ref:D,children:N})});h.displayName=c;const m=e+"CollectionItemSlot",p="data-radix-collection-item",E=Fa(m),y=C.forwardRef((S,A)=>{const{scope:k,children:N,...w}=S,D=C.useRef(null),z=Dt(A,D),L=l(m,k);return C.useEffect(()=>(L.itemMap.set(D,{ref:D,...w}),()=>{L.itemMap.delete(D)})),T.jsx(E,{[p]:"",ref:z,children:N})});y.displayName=m;function v(S){const A=l(e+"CollectionConsumer",S);return C.useCallback(()=>{const N=A.collectionRef.current;if(!N)return[];const w=Array.from(N.querySelectorAll(`[${p}]`));return Array.from(A.itemMap.values()).sort((L,P)=>w.indexOf(L.ref.current)-w.indexOf(P.ref.current))},[A.collectionRef,A.itemMap])}return Xt(v,"useCollection"),[{Provider:o,Slot:h,ItemSlot:y},v,i]}Xt(nS,"createCollection");var Ix=new WeakMap,jt,Fn,Km=(Fn=class extends Map{constructor(n){super(n);VE(this,jt);Rm(this,jt,[...super.keys()]),Ix.set(this,!0)}set(n,i){return Ix.get(this)&&(this.has(n)?an(this,jt)[an(this,jt).indexOf(n)]=n:an(this,jt).push(n)),super.set(n,i),this}insert(n,i,s){const l=this.has(i),o=an(this,jt).length,c=F0(n);let d=c>=0?c:o+c;const h=d<0||d>=o?-1:d;if(h===this.size||l&&h===this.size-1||h===-1)return this.set(i,s),this;const m=this.size+(l?0:1);c<0&&d++;const p=[...an(this,jt)];let E,y=!1;for(let v=d;v<m;v++)if(d===v){let S=p[v];p[v]===i&&(S=p[v+1]),l&&this.delete(i),E=this.get(S),this.set(i,s)}else{!y&&p[v-1]===i&&(y=!0);const S=p[y?v:v-1],A=E;E=this.get(S),this.delete(S),this.set(S,A)}return this}with(n,i,s){const l=new Fn(this);return l.insert(n,i,s),l}before(n){const i=an(this,jt).indexOf(n)-1;if(!(i<0))return this.entryAt(i)}setBefore(n,i,s){const l=an(this,jt).indexOf(n);return l===-1?this:this.insert(l,i,s)}after(n){let i=an(this,jt).indexOf(n);if(i=i===-1||i===this.size-1?-1:i+1,i!==-1)return this.entryAt(i)}setAfter(n,i,s){const l=an(this,jt).indexOf(n);return l===-1?this:this.insert(l+1,i,s)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return Rm(this,jt,[]),super.clear()}delete(n){const i=super.delete(n);return i&&an(this,jt).splice(an(this,jt).indexOf(n),1),i}deleteAt(n){const i=this.keyAt(n);return i!==void 0?this.delete(i):!1}at(n){const i=cf(an(this,jt),n);if(i!==void 0)return this.get(i)}entryAt(n){const i=cf(an(this,jt),n);if(i!==void 0)return[i,this.get(i)]}indexOf(n){return an(this,jt).indexOf(n)}keyAt(n){return cf(an(this,jt),n)}from(n,i){const s=this.indexOf(n);if(s===-1)return;let l=s+i;return l<0&&(l=0),l>=this.size&&(l=this.size-1),this.at(l)}keyFrom(n,i){const s=this.indexOf(n);if(s===-1)return;let l=s+i;return l<0&&(l=0),l>=this.size&&(l=this.size-1),this.keyAt(l)}find(n,i){let s=0;for(const l of this){if(Reflect.apply(n,i,[l,s,this]))return l;s++}}findIndex(n,i){let s=0;for(const l of this){if(Reflect.apply(n,i,[l,s,this]))return s;s++}return-1}filter(n,i){const s=[];let l=0;for(const o of this)Reflect.apply(n,i,[o,l,this])&&s.push(o),l++;return new Fn(s)}map(n,i){const s=[];let l=0;for(const o of this)s.push([o[0],Reflect.apply(n,i,[o,l,this])]),l++;return new Fn(s)}reduce(...n){const[i,s]=n;let l=0,o=s??this.at(0);for(const c of this)l===0&&n.length===1?o=c:o=Reflect.apply(i,this,[o,c,l,this]),l++;return o}reduceRight(...n){const[i,s]=n;let l=s??this.at(-1);for(let o=this.size-1;o>=0;o--){const c=this.at(o);o===this.size-1&&n.length===1?l=c:l=Reflect.apply(i,this,[l,c,o,this])}return l}toSorted(n){const i=[...this.entries()].sort(n);return new Fn(i)}toReversed(){const n=new Fn;for(let i=this.size-1;i>=0;i--){const s=this.keyAt(i),l=this.get(s);n.set(s,l)}return n}toSpliced(...n){const i=[...this.entries()];return i.splice(...n),new Fn(i)}slice(n,i){const s=new Fn;let l=this.size-1;if(n===void 0)return s;n<0&&(n=n+this.size),i!==void 0&&i>0&&(l=i-1);for(let o=n;o<=l;o++){const c=this.keyAt(o),d=this.get(c);s.set(c,d)}return s}every(n,i){let s=0;for(const l of this){if(!Reflect.apply(n,i,[l,s,this]))return!1;s++}return!0}some(n,i){let s=0;for(const l of this){if(Reflect.apply(n,i,[l,s,this]))return!0;s++}return!1}},jt=new WeakMap,Xt(Fn,"OrderedDict"),Fn);function cf(e,t){if("at"in Array.prototype)return Array.prototype.at.call(e,t);const n=rS(e,t);return n===-1?void 0:e[n]}Xt(cf,"at");function rS(e,t){const n=e.length,i=F0(t),s=i>=0?i:n+i;return s<0||s>=n?-1:s}Xt(rS,"toSafeIndex");function F0(e){return e!==e||e===0?0:Math.trunc(e)}Xt(F0,"toSafeInteger");function OR(e){const t=e+"CollectionProvider",[n,i]=no(t),[s,l]=n(t,{collectionElement:null,collectionRef:{current:null},collectionRefObject:{current:null},itemMap:new Km,setItemMap:Xt(()=>{},"setItemMap")}),o=Xt(({state:w,...D})=>w?T.jsx(d,{...D,state:w}):T.jsx(c,{...D}),"CollectionProvider");o.displayName=t;const c=Xt(w=>{const D=A();return T.jsx(d,{...w,state:D})},"CollectionInit");c.displayName=t+"Init";const d=Xt(w=>{const{scope:D,children:z,state:L}=w,P=C.useRef(null),[H,K]=C.useState(null),j=Dt(P,K),[$,Z]=L;return C.useEffect(()=>{if(!H)return;const le=sS(()=>{});return le.observe(H,{childList:!0,subtree:!0}),()=>{le.disconnect()}},[H]),T.jsx(s,{scope:D,itemMap:$,setItemMap:Z,collectionRef:j,collectionRefObject:P,collectionElement:H,children:z})},"CollectionProviderImpl");d.displayName=t+"Impl";const h=e+"CollectionSlot",m=Fa(h),p=C.forwardRef((w,D)=>{const{scope:z,children:L}=w,P=l(h,z),H=Dt(D,P.collectionRef);return T.jsx(m,{ref:H,children:L})});p.displayName=h;const E=e+"CollectionItemSlot",y="data-radix-collection-item",v=Fa(E),S=C.forwardRef((w,D)=>{const{scope:z,children:L,...P}=w,H=C.useRef(null),[K,j]=C.useState(null),$=Dt(D,H,j),Z=l(E,z),{setItemMap:le}=Z,ue=C.useRef(P);iS(ue.current,P)||(ue.current=P);const re=ue.current;return C.useEffect(()=>{const V=re;return le(Q=>K?Q.has(K)?Q.set(K,{...V,element:K}).toSorted(Fp):(Q.set(K,{...V,element:K}),Q.toSorted(Fp)):Q),()=>{le(Q=>!K||!Q.has(K)?Q:(Q.delete(K),new Km(Q)))}},[K,re,le]),T.jsx(v,{[y]:"",ref:$,children:L})});S.displayName=E;function A(){return C.useState(new Km)}Xt(A,"useInitCollection");function k(w){const{itemMap:D}=l(e+"CollectionConsumer",w);return D}return Xt(k,"useCollection"),[{Provider:o,Slot:p,ItemSlot:S},{createCollectionScope:i,useCollection:k,useInitCollection:A}]}Xt(OR,"createCollection");function iS(e,t){if(e===t)return!0;if(typeof e!="object"||typeof t!="object"||e==null||t==null)return!1;const n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;for(const s of n)if(!Object.prototype.hasOwnProperty.call(t,s)||e[s]!==t[s])return!1;return!0}Xt(iS,"shallowEqual");function aS(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}Xt(aS,"isElementPreceding");function Fp(e,t){return!e[1].element||!t[1].element?0:aS(e[1].element,t[1].element)?-1:1}Xt(Fp,"sortByDocumentPosition");function sS(e){return new MutationObserver(n=>{for(const i of n)if(i.type==="childList"){e();return}})}Xt(sS,"getChildListObserver");var LR=Object.defineProperty,DR=(e,t)=>LR(e,"name",{value:t,configurable:!0}),IR=C.createContext(void 0);function lS(e){const t=C.useContext(IR);return e||t||"ltr"}DR(lS,"useDirection");var MR=Object.defineProperty,PR=(e,t)=>MR(e,"name",{value:t,configurable:!0}),BR=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],yn=BR.reduce((e,t)=>{const n=Fa(`Primitive.${t}`),i=C.forwardRef((s,l)=>{const{asChild:o,...c}=s,d=o?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),T.jsx(d,{...c,ref:l})});return i.displayName=`Primitive.${t}`,{...e,[t]:i}},{});function uS(e,t){e&&ra.flushSync(()=>e.dispatchEvent(t))}PR(uS,"dispatchDiscreteCustomEvent");var jR=Object.defineProperty,HR=(e,t)=>jR(e,"name",{value:t,configurable:!0});function Nr(e){const t=C.useRef(e);return C.useEffect(()=>{t.current=e}),C.useMemo(()=>((...n)=>t.current?.(...n)),[])}HR(Nr,"useCallbackRef");var UR=Object.defineProperty,Kt=(e,t)=>UR(e,"name",{value:t,configurable:!0}),qp="dismissableLayer.update",zR="dismissableLayer.pointerDownOutside",FR="dismissableLayer.focusOutside",Mx,oS=C.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),qR=C.forwardRef(Kt(function(t,n){const{disableOutsidePointerEvents:i=!1,deferPointerDownOutside:s=!1,onEscapeKeyDown:l,onPointerDownOutside:o,onFocusOutside:c,onInteractOutside:d,onDismiss:h,...m}=t,p=C.useContext(oS),[E,y]=C.useState(null),v=E?.ownerDocument??globalThis?.document,[,S]=C.useState({}),A=Dt(n,y),k=Array.from(p.layers),[N]=[...p.layersWithOutsidePointerEventsDisabled].slice(-1),w=N?k.indexOf(N):-1,D=E?k.indexOf(E):-1,z=p.layersWithOutsidePointerEventsDisabled.size>0,L=D>=w,P=C.useRef(!1),H=cS(Z=>{o?.(Z),d?.(Z),Z.defaultPrevented||h?.()},{ownerDocument:v,deferPointerDownOutside:s,isDeferredPointerDownOutsideRef:P,dismissableSurfaces:p.dismissableSurfaces,shouldHandlePointerDownOutside:C.useCallback(Z=>{if(!(Z instanceof Node))return!1;const le=[...p.branches].some(ue=>ue.contains(Z));return L&&!le},[p.branches,L])}),K=fS(Z=>{if(s&&P.current)return;const le=Z.target;[...p.branches].some(re=>re.contains(le))||(c?.(Z),d?.(Z),Z.defaultPrevented||h?.())},v),j=E?D===k.length-1:!1,$=Nr(Z=>{Z.key==="Escape"&&(l?.(Z),!Z.defaultPrevented&&h&&(Z.preventDefault(),h()))});return C.useEffect(()=>{if(j)return v.addEventListener("keydown",$,{capture:!0}),()=>v.removeEventListener("keydown",$,{capture:!0})},[v,j,$]),C.useEffect(()=>{if(E)return i&&(p.layersWithOutsidePointerEventsDisabled.size===0&&(Mx=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),p.layersWithOutsidePointerEventsDisabled.add(E)),p.layers.add(E),Vp(),()=>{i&&(p.layersWithOutsidePointerEventsDisabled.delete(E),p.layersWithOutsidePointerEventsDisabled.size===0&&(v.body.style.pointerEvents=Mx))}},[E,v,i,p]),C.useEffect(()=>()=>{E&&(p.layers.delete(E),p.layersWithOutsidePointerEventsDisabled.delete(E),Vp())},[E,p]),C.useEffect(()=>{const Z=Kt(()=>S({}),"handleUpdate");return document.addEventListener(qp,Z),()=>document.removeEventListener(qp,Z)},[]),T.jsx(yn.div,{...m,ref:A,style:{pointerEvents:z?L?"auto":"none":void 0,...t.style},onFocusCapture:Ot(t.onFocusCapture,K.onFocusCapture),onBlurCapture:Ot(t.onBlurCapture,K.onBlurCapture),onPointerDownCapture:Ot(t.onPointerDownCapture,H.onPointerDownCapture)})},"DismissableLayer"));function VR(){const e=C.useContext(oS),[t,n]=C.useState(null);return C.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),n}Kt(VR,"useDismissableLayerSurface");var YR=Kt(()=>!0,"IS_TRUE");function cS(e,t){const{ownerDocument:n=globalThis?.document,deferPointerDownOutside:i=!1,isDeferredPointerDownOutsideRef:s,dismissableSurfaces:l,shouldHandlePointerDownOutside:o=YR}=t,c=Nr(e),d=C.useRef(!1),h=C.useRef(!1),m=C.useRef(new Map),p=C.useRef(()=>{});return C.useEffect(()=>{function E(){h.current=!1,s.current=!1,m.current.clear()}Kt(E,"resetOutsideInteraction");function y(){return Array.from(m.current.values()).some(Boolean)}Kt(y,"isOutsideInteractionIntercepted");function v(w){if(!h.current)return;const D=w.target;D instanceof Node&&[...l].some(L=>L.contains(D))||m.current.set(w.type,!0),w.type==="click"&&window.setTimeout(()=>{h.current&&p.current()},0)}Kt(v,"handleInteractionCapture");function S(w){h.current&&m.current.set(w.type,!1)}Kt(S,"handleInteractionBubble");const A=Kt(w=>{if(w.target&&!d.current){let D=function(){n.removeEventListener("click",p.current);const L=y();E(),L||q0(zR,c,z,{discrete:!0})};if(Kt(D,"handleAndDispatchPointerDownOutsideEvent"),!o(w.target)){n.removeEventListener("click",p.current),E(),d.current=!1;return}const z={originalEvent:w};h.current=!0,s.current=i&&w.button===0,m.current.clear(),!i||w.button!==0?D():(n.removeEventListener("click",p.current),p.current=D,n.addEventListener("click",p.current,{once:!0}))}else n.removeEventListener("click",p.current),E();d.current=!1},"handlePointerDown"),k=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(const w of k)n.addEventListener(w,v,!0),n.addEventListener(w,S);const N=window.setTimeout(()=>{n.addEventListener("pointerdown",A)},0);return()=>{window.clearTimeout(N),n.removeEventListener("pointerdown",A),n.removeEventListener("click",p.current);for(const w of k)n.removeEventListener(w,v,!0),n.removeEventListener(w,S)}},[n,c,i,s,l,o]),{onPointerDownCapture:Kt(()=>d.current=!0,"onPointerDownCapture")}}Kt(cS,"usePointerDownOutside");function fS(e,t=globalThis?.document){const n=Nr(e),i=C.useRef(!1);return C.useEffect(()=>{const s=Kt(l=>{l.target&&!i.current&&q0(FR,n,{originalEvent:l},{discrete:!1})},"handleFocus");return t.addEventListener("focusin",s),()=>t.removeEventListener("focusin",s)},[t,n]),{onFocusCapture:Kt(()=>i.current=!0,"onFocusCapture"),onBlurCapture:Kt(()=>i.current=!1,"onBlurCapture")}}Kt(fS,"useFocusOutside");function Vp(){const e=new CustomEvent(qp);document.dispatchEvent(e)}Kt(Vp,"dispatchUpdate");function q0(e,t,n,{discrete:i}){const s=n.originalEvent.target,l=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&s.addEventListener(e,t,{once:!0}),i?uS(s,l):s.dispatchEvent(l)}Kt(q0,"handleAndDispatchCustomEvent");var $R=Object.defineProperty,V0=(e,t)=>$R(e,"name",{value:t,configurable:!0}),Uc=0,Vs=null;function GR(e){return Y0(),e.children}V0(GR,"FocusGuards");function Y0(){C.useEffect(()=>{Vs||(Vs={start:Yp(),end:Yp()});const{start:e,end:t}=Vs;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement("afterbegin",e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement("beforeend",t),Uc++,()=>{Uc===1&&(Vs?.start.remove(),Vs?.end.remove(),Vs=null),Uc=Math.max(0,Uc-1)}},[])}V0(Y0,"useFocusGuards");function Yp(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}V0(Yp,"createFocusGuard");var KR=Object.defineProperty,pn=(e,t)=>KR(e,"name",{value:t,configurable:!0}),Xm="focusScope.autoFocusOnMount",Qm="focusScope.autoFocusOnUnmount",Px={bubbles:!1,cancelable:!0},XR=C.forwardRef(pn(function(t,n){const{loop:i=!1,trapped:s=!1,onMountAutoFocus:l,onUnmountAutoFocus:o,...c}=t,[d,h]=C.useState(null),m=Nr(l),p=Nr(o),E=C.useRef(null),y=Dt(n,h),v=C.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;C.useEffect(()=>{if(s){let A=function(D){if(v.paused||!d)return;const z=D.target;d.contains(z)?E.current=z:ni(E.current,{select:!0})},k=function(D){if(v.paused||!d)return;const z=D.relatedTarget;z!==null&&(d.contains(z)||ni(E.current,{select:!0}))},N=function(D){if(document.activeElement===document.body)for(const L of D)L.removedNodes.length>0&&ni(d)};pn(A,"handleFocusIn"),pn(k,"handleFocusOut"),pn(N,"handleMutations"),document.addEventListener("focusin",A),document.addEventListener("focusout",k);const w=new MutationObserver(N);return d&&w.observe(d,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",A),document.removeEventListener("focusout",k),w.disconnect()}}},[s,d,v.paused]),C.useEffect(()=>{if(d){Bx.add(v);const A=document.activeElement;if(!d.contains(A)){const N=new CustomEvent(Xm,Px);d.addEventListener(Xm,m),d.dispatchEvent(N),N.defaultPrevented||(dS(bS($0(d)),{select:!0}),document.activeElement===A&&ni(d))}return()=>{d.removeEventListener(Xm,m),setTimeout(()=>{const N=new CustomEvent(Qm,Px);d.addEventListener(Qm,p),d.dispatchEvent(N),N.defaultPrevented||ni(A??document.body,{select:!0}),d.removeEventListener(Qm,p),Bx.remove(v)},0)}}},[d,m,p,v]);const S=C.useCallback(A=>{if(!i&&!s||v.paused)return;const k=A.key==="Tab"&&!A.altKey&&!A.ctrlKey&&!A.metaKey,N=document.activeElement;if(k&&N){const w=A.currentTarget,[D,z]=hS(w);D&&z?!A.shiftKey&&N===z?(A.preventDefault(),i&&ni(D,{select:!0})):A.shiftKey&&N===D&&(A.preventDefault(),i&&ni(z,{select:!0})):N===w&&A.preventDefault()}},[i,s,v.paused]);return T.jsx(yn.div,{tabIndex:-1,...c,ref:y,onKeyDown:S})},"FocusScope"));function dS(e,{select:t=!1}={}){const n=document.activeElement;for(const i of e)if(ni(i,{select:t}),document.activeElement!==n)return}pn(dS,"focusFirst");function hS(e){const t=$0(e),n=$p(t,e),i=$p(t.reverse(),e);return[n,i]}pn(hS,"getTabbableEdges");function $0(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:pn(i=>{const s=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||s?NodeFilter.FILTER_SKIP:i.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},"acceptNode")});for(;n.nextNode();)t.push(n.currentNode);return t}pn($0,"getTabbableCandidates");function $p(e,t){const n=typeof t.checkVisibility=="function"&&t.checkVisibility({checkVisibilityCSS:!0});for(const i of e)if(!(n?!i.checkVisibility({checkVisibilityCSS:!0}):mS(i,{upTo:t})))return i}pn($p,"findVisible");function mS(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}pn(mS,"isHidden");function pS(e){return e instanceof HTMLInputElement&&"select"in e}pn(pS,"isSelectableInput");function ni(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&pS(e)&&t&&e.select()}}pn(ni,"focus");var Bx=gS();function gS(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=Gp(e,t),e.unshift(t)},remove(t){e=Gp(e,t),e[0]?.resume()}}}pn(gS,"createFocusScopesStack");function Gp(e,t){const n=[...e],i=n.indexOf(t);return i!==-1&&n.splice(i,1),n}pn(Gp,"arrayRemove");function bS(e){return e.filter(t=>t.tagName!=="A")}pn(bS,"removeLinks");var Wt=globalThis?.document?C.useLayoutEffect:()=>{},QR=Object.defineProperty,WR=(e,t)=>QR(e,"name",{value:t,configurable:!0}),ZR=to[" useId ".trim().toString()]||(()=>{}),JR=0;function G0(e){const[t,n]=C.useState(ZR());return Wt(()=>{e||n(i=>i??String(JR++))},[e]),e||(t?`radix-${t}`:"")}WR(G0,"useId");const e4=["top","right","bottom","left"],ea=Math.min,li=Math.max,Af=Math.round,zc=Math.floor,ui=e=>({x:e,y:e}),t4={left:"right",right:"left",bottom:"top",top:"bottom"};function yS(e,t,n){return li(e,ea(t,n))}function ci(e,t){return typeof e=="function"?e(t):e}function ta(e){return e.split("-")[0]}function gl(e){return e.split("-")[1]}function K0(e){return e==="x"?"y":"x"}function X0(e){return e==="y"?"height":"width"}function kr(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function Q0(e){return K0(kr(e))}function n4(e,t,n){n===void 0&&(n=!1);const i=gl(e),s=Q0(e),l=X0(s);let o=s==="x"?i===(n?"end":"start")?"right":"left":i==="start"?"bottom":"top";return t.reference[l]>t.floating[l]&&(o=kf(o)),[o,kf(o)]}function r4(e){const t=kf(e);return[Kp(e),t,Kp(t)]}function Kp(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const jx=["left","right"],Hx=["right","left"],i4=["top","bottom"],a4=["bottom","top"];function s4(e,t,n){switch(e){case"top":case"bottom":return n?t?Hx:jx:t?jx:Hx;case"left":case"right":return t?i4:a4;default:return[]}}function l4(e,t,n,i){const s=gl(e);let l=s4(ta(e),n==="start",i);return s&&(l=l.map(o=>o+"-"+s),t&&(l=l.concat(l.map(Kp)))),l}function kf(e){const t=ta(e);return t4[t]+e.slice(t.length)}function u4(e){var t,n,i,s;return{top:(t=e.top)!=null?t:0,right:(n=e.right)!=null?n:0,bottom:(i=e.bottom)!=null?i:0,left:(s=e.left)!=null?s:0}}function ES(e){return typeof e!="number"?u4(e):{top:e,right:e,bottom:e,left:e}}function wf(e){const{x:t,y:n,width:i,height:s}=e;return{width:i,height:s,top:n,left:t,right:t+i,bottom:n+s,x:t,y:n}}function Ux(e,t,n){let{reference:i,floating:s}=e;const l=kr(t),o=Q0(t),c=X0(o),d=ta(t),h=l==="y",m=i.x+i.width/2-s.width/2,p=i.y+i.height/2-s.height/2,E=i[c]/2-s[c]/2;let y;switch(d){case"top":y={x:m,y:i.y-s.height};break;case"bottom":y={x:m,y:i.y+i.height};break;case"right":y={x:i.x+i.width,y:p};break;case"left":y={x:i.x-s.width,y:p};break;default:y={x:i.x,y:i.y}}const v=gl(t);return v&&(y[o]+=E*(v==="end"?1:-1)*(n&&h?-1:1)),y}async function o4(e,t){var n;t===void 0&&(t={});const{x:i,y:s,platform:l,rects:o,elements:c,strategy:d}=e,{boundary:h="clippingAncestors",rootBoundary:m="viewport",elementContext:p="floating",altBoundary:E=!1,padding:y=0}=ci(t,e),v=ES(y),A=c[E?p==="floating"?"reference":"floating":p],k=wf(await l.getClippingRect({element:(n=await(l.isElement==null?void 0:l.isElement(A)))==null||n?A:A.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(c.floating)),boundary:h,rootBoundary:m,strategy:d})),N=p==="floating"?{x:i,y:s,width:o.floating.width,height:o.floating.height}:o.reference,w=await(l.getOffsetParent==null?void 0:l.getOffsetParent(c.floating)),D=await(l.isElement==null?void 0:l.isElement(w))&&await(l.getScale==null?void 0:l.getScale(w))||{x:1,y:1},z=wf(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:N,offsetParent:w,strategy:d}):N);return{top:(k.top-z.top+v.top)/D.y,bottom:(z.bottom-k.bottom+v.bottom)/D.y,left:(k.left-z.left+v.left)/D.x,right:(z.right-k.right+v.right)/D.x}}const c4=50,f4=async(e,t,n)=>{const{placement:i="bottom",strategy:s="absolute",middleware:l=[],platform:o}=n,c=o.detectOverflow?o:{...o,detectOverflow:o4},d=await(o.isRTL==null?void 0:o.isRTL(t));let h=await o.getElementRects({reference:e,floating:t,strategy:s}),{x:m,y:p}=Ux(h,i,d),E=i,y=0;const v={};for(let S=0;S<l.length;S++){const A=l[S];if(!A)continue;const{name:k,fn:N}=A,{x:w,y:D,data:z,reset:L}=await N({x:m,y:p,initialPlacement:i,placement:E,strategy:s,middlewareData:v,rects:h,platform:c,elements:{reference:e,floating:t}});m=w??m,p=D??p,v[k]={...v[k],...z},L&&y<c4&&(y++,typeof L=="object"&&(L.placement&&(E=L.placement),L.rects&&(h=L.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:s}):L.rects),{x:m,y:p}=Ux(h,E,d)),S=-1)}return{x:m,y:p,placement:E,strategy:s,middlewareData:v}},d4=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:i,placement:s,rects:l,platform:o,elements:c,middlewareData:d}=t,{element:h,padding:m=0}=ci(e,t)||{};if(h==null)return{};const p=ES(m),E={x:n,y:i},y=Q0(s),v=X0(y),S=await o.getDimensions(h),A=y==="y",k=A?"top":"left",N=A?"bottom":"right",w=A?"clientHeight":"clientWidth",D=l.reference[v]+l.reference[y]-E[y]-l.floating[v],z=E[y]-l.reference[y],L=await(o.getOffsetParent==null?void 0:o.getOffsetParent(h));let P=L?L[w]:0;(!P||!await(o.isElement==null?void 0:o.isElement(L)))&&(P=c.floating[w]||l.floating[v]);const H=D/2-z/2,K=P/2-S[v]/2-1,j=ea(p[k],K),$=ea(p[N],K),Z=P-S[v]-$,le=P/2-S[v]/2+H,ue=yS(j,le,Z),re=!d.arrow&&gl(s)!=null&&le!==ue&&l.reference[v]/2-(le<j?j:$)-S[v]/2<0,V=re?le<j?le-j:le-Z:0;return{[y]:E[y]+V,data:{[y]:ue,centerOffset:le-ue-V,...re&&{alignmentOffset:V}},reset:re}}}),h4=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,i;const{placement:s,middlewareData:l,rects:o,initialPlacement:c,platform:d,elements:h}=t,{mainAxis:m=!0,crossAxis:p=!0,fallbackPlacements:E,fallbackStrategy:y="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:S=!0,...A}=ci(e,t);if((n=l.arrow)!=null&&n.alignmentOffset)return{};const k=ta(s),N=kr(c),w=ta(c)===c,D=await(d.isRTL==null?void 0:d.isRTL(h.floating)),z=E||(w||!S?[kf(c)]:r4(c)),L=v!=="none";!E&&L&&z.push(...l4(c,S,v,D));const P=[c,...z],H=await d.detectOverflow(t,A),K=[];let j=((i=l.flip)==null?void 0:i.overflows)||[];if(m&&K.push(H[k]),p){const ue=n4(s,o,D);K.push(H[ue[0]],H[ue[1]])}if(j=[...j,{placement:s,overflows:K}],!K.every(ue=>ue<=0)){var $,Z;const ue=((($=l.flip)==null?void 0:$.index)||0)+1,re=P[ue];if(re&&(!(p==="alignment"?N!==kr(re):!1)||j.every(ae=>kr(ae.placement)===N?ae.overflows[0]>0:!0)))return{data:{index:ue,overflows:j},reset:{placement:re}};let V=(Z=j.filter(Q=>Q.overflows[0]<=0).sort((Q,ae)=>Q.overflows[1]-ae.overflows[1])[0])==null?void 0:Z.placement;if(!V)switch(y){case"bestFit":{var le;const Q=(le=j.filter(ae=>{if(L){const Ee=kr(ae.placement);return Ee===N||Ee==="y"}return!0}).map(ae=>[ae.placement,ae.overflows.filter(Ee=>Ee>0).reduce((Ee,R)=>Ee+R,0)]).sort((ae,Ee)=>ae[1]-Ee[1])[0])==null?void 0:le[0];Q&&(V=Q);break}case"initialPlacement":V=c;break}if(s!==V)return{reset:{placement:V}}}return{}}}};function zx(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Fx(e){return e4.some(t=>e[t]>=0)}const m4=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:i}=t,{strategy:s="referenceHidden",...l}=ci(e,t);switch(s){case"referenceHidden":{const o=await i.detectOverflow(t,{...l,elementContext:"reference"}),c=zx(o,n.reference);return{data:{referenceHiddenOffsets:c,referenceHidden:Fx(c)}}}case"escaped":{const o=await i.detectOverflow(t,{...l,altBoundary:!0}),c=zx(o,n.floating);return{data:{escapedOffsets:c,escaped:Fx(c)}}}default:return{}}}}},xS=new Set(["left","top"]);async function p4(e,t){const{placement:n,platform:i,elements:s}=e,l=await(i.isRTL==null?void 0:i.isRTL(s.floating)),o=ta(n),c=gl(n),d=kr(n)==="y",h=xS.has(o)?-1:1,m=l&&d?-1:1,p=ci(t,e);let{mainAxis:E,crossAxis:y,alignmentAxis:v}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return c&&typeof v=="number"&&(y=c==="end"?v*-1:v),d?{x:y*m,y:E*h}:{x:E*h,y:y*m}}const g4=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,i;const{x:s,y:l,placement:o,middlewareData:c}=t,d=await p4(t,e);return o===((n=c.offset)==null?void 0:n.placement)&&(i=c.arrow)!=null&&i.alignmentOffset?{}:{x:s+d.x,y:l+d.y,data:{...d,placement:o}}}}},b4=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:i,placement:s,platform:l}=t,{mainAxis:o=!0,crossAxis:c=!1,limiter:d={fn:N=>{let{x:w,y:D}=N;return{x:w,y:D}}},...h}=ci(e,t),m={x:n,y:i},p=await l.detectOverflow(t,h),E=kr(s),y=K0(E);let v=m[y],S=m[E];const A=(N,w)=>yS(w+p[N==="y"?"top":"left"],w,w-p[N==="y"?"bottom":"right"]);o&&(v=A(y,v)),c&&(S=A(E,S));const k=d.fn({...t,[y]:v,[E]:S});return{...k,data:{x:k.x-n,y:k.y-i,enabled:{[y]:o,[E]:c}}}}}},y4=function(e){return e===void 0&&(e={}),{options:e,fn(t){var n,i;const{x:s,y:l,placement:o,rects:c,middlewareData:d}=t,{offset:h=0,mainAxis:m=!0,crossAxis:p=!0}=ci(e,t),E={x:s,y:l},y=kr(o),v=K0(y);let S=E[v],A=E[y];const k=ci(h,t),N=typeof k=="number"?{mainAxis:k,crossAxis:0}:{mainAxis:(n=k.mainAxis)!=null?n:0,crossAxis:(i=k.crossAxis)!=null?i:0};if(m){const z=v==="y"?"height":"width",L=c.reference[v]-c.floating[z]+N.mainAxis,P=c.reference[v]+c.reference[z]-N.mainAxis;S<L?S=L:S>P&&(S=P)}if(p){var w,D;const z=v==="y"?"width":"height",L=xS.has(ta(o)),P=c.reference[y]-c.floating[z]+(L&&((w=d.offset)==null?void 0:w[y])||0)+(L?0:N.crossAxis),H=c.reference[y]+c.reference[z]+(L?0:((D=d.offset)==null?void 0:D[y])||0)-(L?N.crossAxis:0);A<P?A=P:A>H&&(A=H)}return{[v]:S,[y]:A}}}},E4=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:i,platform:s,elements:l}=t,{apply:o=()=>{},...c}=ci(e,t),d=await s.detectOverflow(t,c),h=ta(n),m=gl(n),p=kr(n)==="y",{width:E,height:y}=i.floating;let v,S;h==="top"||h==="bottom"?(v=h,S=m===(await(s.isRTL==null?void 0:s.isRTL(l.floating))?"start":"end")?"left":"right"):(S=h,v=m==="end"?"top":"bottom");const A=y-d.top-d.bottom,k=E-d.left-d.right,N=ea(y-d[v],A),w=ea(E-d[S],k),D=t.middlewareData.shift,z=!D;let L=N,P=w;D!=null&&D.enabled.x&&(P=k),D!=null&&D.enabled.y&&(L=A),z&&!m&&(p?P=E-2*li(d.left,d.right):L=y-2*li(d.top,d.bottom)),await o({...t,availableWidth:P,availableHeight:L});const H=await s.getDimensions(l.floating);return E!==H.width||y!==H.height?{reset:{rects:!0}}:{}}}};function Gf(){return typeof window<"u"}function bl(e){return TS(e)?(e.nodeName||"").toLowerCase():"#document"}function On(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function hi(e){var t;return(t=(TS(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function TS(e){return Gf()?e instanceof Node||e instanceof On(e).Node:!1}function Rr(e){return Gf()?e instanceof Element||e instanceof On(e).Element:!1}function ia(e){return Gf()?e instanceof HTMLElement||e instanceof On(e).HTMLElement:!1}function qx(e){return!Gf()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof On(e).ShadowRoot}function Kf(e){const{overflow:t,overflowX:n,overflowY:i,display:s}=Or(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+n)&&s!=="inline"&&s!=="contents"}function x4(e){return/^(table|td|th)$/.test(bl(e))}function Xf(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const T4=/transform|translate|scale|rotate|perspective|filter/,v4=/paint|layout|strict|content/,wa=e=>!!e&&e!=="none";let Wm;function W0(e){const t=Rr(e)?Or(e):e;return wa(t.transform)||wa(t.translate)||wa(t.scale)||wa(t.rotate)||wa(t.perspective)||!Z0()&&(wa(t.backdropFilter)||wa(t.filter))||T4.test(t.willChange||"")||v4.test(t.contain||"")}function S4(e){let t=qa(e);for(;ia(t)&&!Gu(t);){if(W0(t))return t;if(Xf(t))return null;t=qa(t)}return null}function Z0(){return Wm==null&&(Wm=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Wm}function Gu(e){return/^(html|body|#document)$/.test(bl(e))}function Or(e){return On(e).getComputedStyle(e)}function Qf(e){return Rr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function qa(e){if(bl(e)==="html")return e;const t=e.assignedSlot||e.parentNode||qx(e)&&e.host||hi(e);return qx(t)?t.host:t}function vS(e){const t=qa(e);return Gu(t)?(e.ownerDocument||e).body:ia(t)&&Kf(t)?t:vS(t)}function Ku(e,t,n){var i;t===void 0&&(t=[]),n===void 0&&(n=!0);const s=vS(e),l=s===((i=e.ownerDocument)==null?void 0:i.body),o=On(s);if(l){const c=Xp(o);return t.concat(o,o.visualViewport||[],Kf(s)?s:[],c&&n?Ku(c):[])}else return t.concat(s,Ku(s,[],n))}function Xp(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function SS(e){const t=Or(e);let n=parseFloat(t.width)||0,i=parseFloat(t.height)||0;const s=ia(e),l=s?e.offsetWidth:n,o=s?e.offsetHeight:i,c=Af(n)!==l||Af(i)!==o;return c&&(n=l,i=o),{width:n,height:i,$:c}}function J0(e){return Rr(e)?e:e.contextElement}function al(e){const t=J0(e);if(!ia(t))return ui(1);const n=t.getBoundingClientRect(),{width:i,height:s,$:l}=SS(t);let o=(l?Af(n.width):n.width)/i,c=(l?Af(n.height):n.height)/s;return(!o||!Number.isFinite(o))&&(o=1),(!c||!Number.isFinite(c))&&(c=1),{x:o,y:c}}const _4=ui(0);function _S(e){const t=On(e);return!Z0()||!t.visualViewport?_4:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function C4(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===On(e)}function Va(e,t,n,i){t===void 0&&(t=!1),n===void 0&&(n=!1);const s=e.getBoundingClientRect(),l=J0(e);let o=ui(1);t&&(i?Rr(i)&&(o=al(i)):o=al(e));const c=C4(l,n,i)?_S(l):ui(0);let d=(s.left+c.x)/o.x,h=(s.top+c.y)/o.y,m=s.width/o.x,p=s.height/o.y;if(l&&i){const E=On(l),y=Rr(i)?On(i):i;let v=E,S=Xp(v);for(;S&&y!==v;){const A=al(S),k=S.getBoundingClientRect(),N=Or(S),w=k.left+(S.clientLeft+parseFloat(N.paddingLeft))*A.x,D=k.top+(S.clientTop+parseFloat(N.paddingTop))*A.y;d*=A.x,h*=A.y,m*=A.x,p*=A.y,d+=w,h+=D,v=On(S),S=Xp(v)}}return wf({width:m,height:p,x:d,y:h})}function Wf(e,t){const n=Qf(e).scrollLeft;return t?t.left+n:Va(hi(e)).left+n}function CS(e,t){const n=e.getBoundingClientRect(),i=n.left+t.scrollLeft-Wf(e,n),s=n.top+t.scrollTop;return{x:i,y:s}}function A4(e){let{elements:t,rect:n,offsetParent:i,strategy:s}=e;const l=s==="fixed",o=hi(i),c=t?Xf(t.floating):!1;if(i===o||c&&l)return n;let d={scrollLeft:0,scrollTop:0},h=ui(1);const m=ui(0),p=ia(i);if((p||!l)&&((bl(i)!=="body"||Kf(o))&&(d=Qf(i)),p)){const y=Va(i);h=al(i),m.x=y.x+i.clientLeft,m.y=y.y+i.clientTop}const E=o&&!p&&!l?CS(o,d):ui(0);return{width:n.width*h.x,height:n.height*h.y,x:n.x*h.x-d.scrollLeft*h.x+m.x+E.x,y:n.y*h.y-d.scrollTop*h.y+m.y+E.y}}function k4(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function w4(e){const t=Qf(e),n=e.ownerDocument.body,i=li(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),s=li(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let l=-t.scrollLeft+Wf(e);const o=-t.scrollTop;return Or(n).direction==="rtl"&&(l+=li(e.clientWidth,n.clientWidth)-i),{width:i,height:s,x:l,y:o}}const N4=25;function R4(e,t,n){n===void 0&&(n="viewport");const i=n==="layoutViewport",s=On(e),l=hi(e),o=s.visualViewport;let c=l.clientWidth,d=l.clientHeight,h=0,m=0;if(o){const E=!Z0()||t==="fixed";i?E||(h=-o.offsetLeft,m=-o.offsetTop):(c=o.width,d=o.height,E&&(h=o.offsetLeft,m=o.offsetTop))}if(Wf(l)<=0){const E=l.ownerDocument,y=E.body,v=getComputedStyle(y),S=E.compatMode==="CSS1Compat"&&parseFloat(v.marginLeft)+parseFloat(v.marginRight)||0,A=Math.abs(l.clientWidth-y.clientWidth-S),k=getComputedStyle(l).scrollbarGutter==="stable both-edges"?A/2:A;k<=N4&&(c-=k)}return{width:c,height:d,x:h,y:m}}function O4(e,t){const n=Va(e,!0,t==="fixed"),i=n.top+e.clientTop,s=n.left+e.clientLeft,l=al(e),o=e.clientWidth*l.x,c=e.clientHeight*l.y,d=s*l.x,h=i*l.y;return{width:o,height:c,x:d,y:h}}function Vx(e,t,n){let i;if(t==="viewport"||t==="layoutViewport")i=R4(e,n,t);else if(t==="document")i=w4(hi(e));else if(Rr(t))i=O4(t,n);else{const s=_S(e);i={x:t.x-s.x,y:t.y-s.y,width:t.width,height:t.height}}return wf(i)}function L4(e,t){const n=t.get(e);if(n)return n;let i=Ku(e,[],!1).filter(c=>Rr(c)&&bl(c)!=="body"),s=null;const l=Or(e).position==="fixed";let o=l?qa(e):e;for(;Rr(o)&&!Gu(o);){const c=Or(o),d=W0(o),h=s?s.position:l?"fixed":"";!d&&(h==="fixed"||h==="absolute"&&c.position==="static")?i=i.filter(p=>p!==o):s=c,o=qa(o)}return t.set(e,i),i}function D4(e){let{element:t,boundary:n,rootBoundary:i,strategy:s}=e;const o=[...n==="clippingAncestors"?Xf(t)?[]:L4(t,this._c):[].concat(n),i],c=Vx(t,o[0],s);let d=c.top,h=c.right,m=c.bottom,p=c.left;for(let E=1;E<o.length;E++){const y=Vx(t,o[E],s);d=li(y.top,d),h=ea(y.right,h),m=ea(y.bottom,m),p=li(y.left,p)}return{width:h-p,height:m-d,x:p,y:d}}function I4(e){const{width:t,height:n}=SS(e);return{width:t,height:n}}function M4(e,t,n){const i=ia(t),s=hi(t),l=n==="fixed",o=Va(e,!0,l,t);let c={scrollLeft:0,scrollTop:0};const d=ui(0);if((i||!l)&&((bl(t)!=="body"||Kf(s))&&(c=Qf(t)),i)){const E=Va(t,!0,l,t);d.x=E.x+t.clientLeft,d.y=E.y+t.clientTop}!i&&s&&(d.x=Wf(s));const h=s&&!i&&!l?CS(s,c):ui(0),m=o.left+c.scrollLeft-d.x-h.x,p=o.top+c.scrollTop-d.y-h.y;return{x:m,y:p,width:o.width,height:o.height}}function Zm(e){return Or(e).position==="static"}function Yx(e,t){if(!ia(e)||Or(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return hi(e)===n&&(n=n.ownerDocument.body),n}function AS(e,t){const n=On(e);if(Xf(e))return n;if(!ia(e)){let s=qa(e);for(;s&&!Gu(s);){if(Rr(s)&&!Zm(s))return s;s=qa(s)}return n}let i=Yx(e,t);for(;i&&x4(i)&&Zm(i);)i=Yx(i,t);return i&&Gu(i)&&Zm(i)&&!W0(i)?n:i||S4(e)||n}const P4=async function(e){const t=this.getOffsetParent||AS,n=this.getDimensions,i=await n(e.floating);return{reference:M4(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function B4(e){return Or(e).direction==="rtl"}const j4={convertOffsetParentRelativeRectToViewportRelativeRect:A4,getDocumentElement:hi,getClippingRect:D4,getOffsetParent:AS,getElementRects:P4,getClientRects:k4,getDimensions:I4,getScale:al,isElement:Rr,isRTL:B4};function kS(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function H4(e,t,n){let i=null,s;const l=hi(e);function o(){var m;clearTimeout(s),(m=i)==null||m.disconnect(),i=null}function c(m,p){m===void 0&&(m=!1),p===void 0&&(p=1),o();const E=e.getBoundingClientRect(),{left:y,top:v,width:S,height:A}=E;if(m||t(),!S||!A)return;const k=zc(v),N=zc(l.clientWidth-(y+S)),w=zc(l.clientHeight-(v+A)),D=zc(y),L={rootMargin:-k+"px "+-N+"px "+-w+"px "+-D+"px",threshold:li(0,ea(1,p))||1};let P=!0;function H(K){const j=K[0].intersectionRatio;if(!kS(E,e.getBoundingClientRect()))return c();if(j!==p){if(!P)return c();j?c(!1,j):s=setTimeout(()=>{c(!1,1e-7)},1e3)}P=!1}try{i=new IntersectionObserver(H,{...L,root:l.ownerDocument})}catch{i=new IntersectionObserver(H,L)}i.observe(e)}const d=On(e),h=()=>c(n);return d.addEventListener("resize",h),c(!0),()=>{d.removeEventListener("resize",h),o()}}function U4(e,t,n,i){i===void 0&&(i={});const{ancestorScroll:s=!0,ancestorResize:l=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:d=!1}=i,h=J0(e),m=s||l?[...h?Ku(h):[],...t?Ku(t):[]]:[];m.forEach(k=>{s&&k.addEventListener("scroll",n),l&&k.addEventListener("resize",n)});const p=h&&c?H4(h,n,l):null;let E=-1,y=null;o&&(y=new ResizeObserver(k=>{let[N]=k;N&&N.target===h&&y&&t&&(y.unobserve(t),cancelAnimationFrame(E),E=requestAnimationFrame(()=>{var w;(w=y)==null||w.observe(t)})),n()}),h&&!d&&y.observe(h),t&&y.observe(t));let v,S=d?Va(e):null;d&&A();function A(){const k=Va(e);S&&!kS(S,k)&&n(),S=k,v=requestAnimationFrame(A)}return n(),()=>{var k;m.forEach(N=>{s&&N.removeEventListener("scroll",n),l&&N.removeEventListener("resize",n)}),p?.(),(k=y)==null||k.disconnect(),y=null,d&&cancelAnimationFrame(v)}}const z4=g4,F4=b4,q4=h4,V4=E4,Y4=m4,$x=d4,$4=y4,G4=(e,t,n)=>{const i=new Map,s=n??{},l={...j4,...s.platform,_c:i};return f4(e,t,{...s,platform:l})};var K4=typeof document<"u",X4=function(){},ff=K4?C.useLayoutEffect:X4;function Nf(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,i,s;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(i=n;i--!==0;)if(!Nf(e[i],t[i]))return!1;return!0}if(s=Object.keys(e),n=s.length,n!==Object.keys(t).length)return!1;for(i=n;i--!==0;)if(!{}.hasOwnProperty.call(t,s[i]))return!1;for(i=n;i--!==0;){const l=s[i];if(!(l==="_owner"&&e.$$typeof)&&!Nf(e[l],t[l]))return!1}return!0}return e!==e&&t!==t}function wS(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Gx(e,t){const n=wS(e);return Math.round(t*n)/n}function Jm(e){const t=C.useRef(e);return ff(()=>{t.current=e}),t}function Q4(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:i=[],platform:s,elements:{reference:l,floating:o}={},transform:c=!0,whileElementsMounted:d,open:h}=e,[m,p]=C.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[E,y]=C.useState(i);Nf(E,i)||y(i);const[v,S]=C.useState(null),[A,k]=C.useState(null),N=C.useCallback(ae=>{ae!==L.current&&(L.current=ae,S(ae))},[]),w=C.useCallback(ae=>{ae!==P.current&&(P.current=ae,k(ae))},[]),D=l||v,z=o||A,L=C.useRef(null),P=C.useRef(null),H=C.useRef(m),K=d!=null,j=Jm(d),$=Jm(s),Z=Jm(h),le=C.useCallback(()=>{if(!L.current||!P.current)return;const ae={placement:t,strategy:n,middleware:E};$.current&&(ae.platform=$.current),G4(L.current,P.current,ae).then(Ee=>{const R={...Ee,isPositioned:Z.current!==!1};ue.current&&!Nf(H.current,R)&&(H.current=R,ra.flushSync(()=>{p(R)}))})},[E,t,n,$,Z]);ff(()=>{h===!1&&H.current.isPositioned&&(H.current.isPositioned=!1,p(ae=>({...ae,isPositioned:!1})))},[h]);const ue=C.useRef(!1);ff(()=>(ue.current=!0,()=>{ue.current=!1}),[]),ff(()=>{if(D&&(L.current=D),z&&(P.current=z),D&&z){if(j.current)return j.current(D,z,le);le()}},[D,z,le,j,K]);const re=C.useMemo(()=>({reference:L,floating:P,setReference:N,setFloating:w}),[N,w]),V=C.useMemo(()=>({reference:D,floating:z}),[D,z]),Q=C.useMemo(()=>{const ae={position:n,left:0,top:0};if(!V.floating)return ae;const Ee=Gx(V.floating,m.x),R=Gx(V.floating,m.y);return c?{...ae,transform:"translate("+Ee+"px, "+R+"px)",...wS(V.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:Ee,top:R}},[n,c,V.floating,m.x,m.y]);return C.useMemo(()=>({...m,update:le,refs:re,elements:V,floatingStyles:Q}),[m,le,re,V,Q])}const W4=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:i,padding:s}=typeof e=="function"?e(n):e;return i&&t(i)?i.current!=null?$x({element:i.current,padding:s}).fn(n):{}:i?$x({element:i,padding:s}).fn(n):{}}}},Z4=(e,t)=>{const n=z4(e);return{name:n.name,fn:n.fn,options:[e,t]}},J4=(e,t)=>{const n=F4(e);return{name:n.name,fn:n.fn,options:[e,t]}},eO=(e,t)=>({fn:$4(e).fn,options:[e,t]}),tO=(e,t)=>{const n=q4(e);return{name:n.name,fn:n.fn,options:[e,t]}},nO=(e,t)=>{const n=V4(e);return{name:n.name,fn:n.fn,options:[e,t]}},rO=(e,t)=>{const n=Y4(e);return{name:n.name,fn:n.fn,options:[e,t]}},iO=(e,t)=>{const n=W4(e);return{name:n.name,fn:n.fn,options:[e,t]}};var aO=Object.defineProperty,sO=(e,t)=>aO(e,"name",{value:t,configurable:!0});function NS(e){const[t,n]=C.useState(void 0);return Wt(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const i=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const l=s[0];let o,c;if("borderBoxSize"in l){const d=l.borderBoxSize,h=Array.isArray(d)?d[0]:d;o=h.inlineSize,c=h.blockSize}else o=e.offsetWidth,c=e.offsetHeight;n({width:o,height:c})});return i.observe(e,{box:"border-box"}),()=>i.unobserve(e)}else n(void 0)},[e]),t}sO(NS,"useSize");var lO=Object.defineProperty,Zi=(e,t)=>lO(e,"name",{value:t,configurable:!0}),RS="Popper",[OS,LS]=no(RS),[uO,DS]=OS(RS),oO=Zi(e=>{const{__scopePopper:t,children:n}=e,[i,s]=C.useState(null),[l,o]=C.useState(void 0);return T.jsx(uO,{scope:t,anchor:i,onAnchorChange:s,placementState:l,setPlacementState:o,children:n})},"Popper"),cO="PopperAnchor",fO=C.forwardRef(Zi(function(t,n){const{__scopePopper:i,virtualRef:s,...l}=t,o=DS(cO,i),c=C.useRef(null),d=o.onAnchorChange,h=C.useCallback(S=>{c.current=S,S&&d(S)},[d]),m=Dt(n,h),p=C.useRef(null);C.useEffect(()=>{if(!s)return;const S=p.current;p.current=s.current,S!==p.current&&d(p.current)});const E=o.placementState&&Zf(o.placementState),y=E?.[0],v=E?.[1];return s?null:T.jsx(yn.div,{"data-radix-popper-side":y,"data-radix-popper-align":v,...l,ref:m})},"PopperAnchor")),IS="PopperContent",[dO,$q]=OS(IS),hO=C.forwardRef(Zi(function(t,n){const{__scopePopper:i,side:s="bottom",sideOffset:l=0,align:o="center",alignOffset:c=0,arrowPadding:d=0,avoidCollisions:h=!0,collisionBoundary:m=[],collisionPadding:p=0,sticky:E="partial",hideWhenDetached:y=!1,updatePositionStrategy:v="optimized",onPlaced:S,...A}=t,k=DS(IS,i),[N,w]=C.useState(null),D=Dt(n,w),[z,L]=C.useState(null),P=NS(z),H=P?.width??0,K=P?.height??0,j=s+(o!=="center"?"-"+o:""),$=typeof p=="number"?p:{top:0,right:0,bottom:0,left:0,...p},Z=Array.isArray(m)?m:[m],le=Z.length>0,ue={padding:$,boundary:Z.filter(MS),altBoundary:le},{refs:re,floatingStyles:V,placement:Q,isPositioned:ae,middlewareData:Ee}=Q4({strategy:"fixed",placement:j,whileElementsMounted:Zi((...xe)=>U4(...xe,{animationFrame:v==="always"}),"whileElementsMounted"),elements:{reference:k.anchor},middleware:[Z4({mainAxis:l+K,alignmentAxis:c}),h&&J4({mainAxis:!0,crossAxis:!1,limiter:E==="partial"?eO():void 0,...ue}),h&&tO({...ue}),nO({...ue,apply:Zi(({elements:xe,rects:je,availableWidth:Ne,availableHeight:Me})=>{const{width:Ve,height:rt}=je.reference,ut=xe.floating.style;ut.setProperty("--radix-popper-available-width",`${Ne}px`),ut.setProperty("--radix-popper-available-height",`${Me}px`),ut.setProperty("--radix-popper-anchor-width",`${Ve}px`),ut.setProperty("--radix-popper-anchor-height",`${rt}px`)},"apply")}),z&&iO({element:z,padding:d}),mO({arrowWidth:H,arrowHeight:K}),y&&rO({strategy:"referenceHidden",...ue,boundary:le?ue.boundary:void 0})]}),R=k.setPlacementState;Wt(()=>(R(Q),()=>{R(void 0)}),[Q,R]);const[U,X]=Zf(Q),I=Nr(S);Wt(()=>{ae&&I?.()},[ae,I]);const ge=Ee.arrow?.x,ye=Ee.arrow?.y,he=Ee.arrow?.centerOffset!==0,[Ae,Te]=C.useState();return Wt(()=>{N&&Te(window.getComputedStyle(N).zIndex)},[N]),T.jsx("div",{ref:re.setFloating,"data-radix-popper-content-wrapper":"",style:{...V,transform:ae?V.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Ae,"--radix-popper-transform-origin":[Ee.transformOrigin?.x,Ee.transformOrigin?.y].join(" "),...Ee.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:T.jsx(dO,{scope:i,placedSide:U,placedAlign:X,onArrowChange:L,arrowX:ge,arrowY:ye,shouldHideArrow:he,children:T.jsx(yn.div,{"data-side":U,"data-align":X,...A,ref:D,style:{...A.style,animation:ae?A.style?.animation:"none"}})})})},"PopperContent"));function MS(e){return e!==null}Zi(MS,"isNotNull");var mO=Zi(e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:i,middlewareData:s}=t,o=s.arrow?.centerOffset!==0,c=o?0:e.arrowWidth,d=o?0:e.arrowHeight,[h,m]=Zf(n),p={start:"0%",center:"50%",end:"100%"}[m],E=(s.arrow?.x??0)+c/2,y=(s.arrow?.y??0)+d/2;let v="",S="";return h==="bottom"?(v=o?p:`${E}px`,S=`${-d}px`):h==="top"?(v=o?p:`${E}px`,S=`${i.floating.height+d}px`):h==="right"?(v=`${-d}px`,S=o?p:`${y}px`):h==="left"&&(v=`${i.floating.width+d}px`,S=o?p:`${y}px`),{data:{x:v,y:S}}}}),"transformOrigin");function Zf(e){const[t,n="center"]=e.split("-");return[t,n]}Zi(Zf,"getSideAndAlignFromPlacement");var pO=oO,gO=fO,bO=hO,yO=Object.defineProperty,EO=(e,t)=>yO(e,"name",{value:t,configurable:!0}),xO=C.forwardRef(EO(function(t,n){const{container:i,...s}=t,[l,o]=C.useState(!1);Wt(()=>o(!0),[]);const c=i||l&&globalThis?.document?.body;return c?ra.createPortal(T.jsx(yn.div,{...s,ref:n}),c):null},"Portal")),TO=Object.defineProperty,fi=(e,t)=>TO(e,"name",{value:t,configurable:!0});function PS(e,t){return C.useReducer((n,i)=>t[n][i]??n,e)}fi(PS,"useStateMachine");var vO=fi(e=>{const{present:t,children:n}=e,i=BS(t),s=typeof n=="function"?n({present:i.isPresent}):C.Children.only(n),l=jS(i.ref,HS(s));return typeof n=="function"||i.isPresent?C.cloneElement(s,{ref:l}):null},"Presence");function BS(e){const[t,n]=C.useState(),i=C.useRef(null),s=C.useRef(e),l=C.useRef("none"),o=C.useRef(void 0),c=e?"mounted":"unmounted",[d,h]=PS(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return C.useEffect(()=>{d==="mounted"?(l.current=o.current??Zs(i.current),o.current=void 0):l.current="none"},[d]),Wt(()=>{const m=i.current,p=s.current;if(p!==e){const y=l.current,v=Zs(m);e?(o.current=v,h("MOUNT")):v==="none"||m?.display==="none"?h("UNMOUNT"):h(p&&y!==v?"ANIMATION_OUT":"UNMOUNT"),s.current=e}},[e,h]),Wt(()=>{if(t){let m;const p=t.ownerDocument.defaultView??window,E=fi(v=>{const A=Zs(i.current).includes(CSS.escape(v.animationName));if(v.target===t&&A&&(h("ANIMATION_END"),!s.current)){const k=t.style.animationFillMode;t.style.animationFillMode="forwards",m=p.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=k)})}},"handleAnimationEnd"),y=fi(v=>{v.target===t&&(l.current=Zs(i.current))},"handleAnimationStart");return t.addEventListener("animationstart",y),t.addEventListener("animationcancel",E),t.addEventListener("animationend",E),()=>{p.clearTimeout(m),t.removeEventListener("animationstart",y),t.removeEventListener("animationcancel",E),t.removeEventListener("animationend",E)}}else h("ANIMATION_END")},[t,h]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:C.useCallback(m=>{if(m){const p=getComputedStyle(m);i.current=p,o.current=Zs(p)}else i.current=null;n(m)},[])}}fi(BS,"usePresence");function Qp(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}fi(Qp,"setRef");function jS(...e){const t=C.useRef(e);return t.current=e,C.useCallback(n=>{const i=t.current;let s=!1;const l=i.map(o=>{const c=Qp(o,n);return!s&&typeof c=="function"&&(s=!0),c});if(s)return()=>{for(let o=0;o<l.length;o++){const c=l[o];typeof c=="function"?c():Qp(i[o],null)}}},[])}fi(jS,"useStableComposedRefs");function Zs(e){return e?.animationName||"none"}fi(Zs,"getAnimationName");function HS(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}fi(HS,"getElementRef");var SO=Object.defineProperty,_O=(e,t)=>SO(e,"name",{value:t,configurable:!0}),Kx=to[" useEffectEvent ".trim().toString()],Xx=to[" useInsertionEffect ".trim().toString()];function US(e){if(typeof Kx=="function")return Kx(e);const t=C.useRef(()=>{throw new Error("Cannot call an event handler while rendering.")});return typeof Xx=="function"?Xx(()=>{t.current=e}):Wt(()=>{t.current=e}),C.useMemo(()=>((...n)=>t.current?.(...n)),[])}_O(US,"useEffectEvent");var CO=Object.defineProperty,ro=(e,t)=>CO(e,"name",{value:t,configurable:!0}),AO=to[" useInsertionEffect ".trim().toString()]||Wt;function Wp({prop:e,defaultProp:t,onChange:n=ro(()=>{},"onChange"),caller:i}){const[s,l,o]=zS({defaultProp:t,onChange:n}),c=e!==void 0,d=c?e:s,h=C.useCallback(m=>{if(c){const p=FS(m)?m(e):m;p!==e&&o.current?.(p)}else l(m)},[c,e,l,o]);return[d,h]}ro(Wp,"useControllableState");function zS({defaultProp:e,onChange:t}){const[n,i]=C.useState(e),s=C.useRef(n),l=C.useRef(t);return AO(()=>{l.current=t},[t]),C.useEffect(()=>{s.current!==n&&(l.current?.(n),s.current=n)},[n,s]),[n,i,l]}ro(zS,"useUncontrolledState");function FS(e){return typeof e=="function"}ro(FS,"isFunction");var Qx=Symbol("RADIX:SYNC_STATE");function kO(e,t,n,i){const{prop:s,defaultProp:l,onChange:o,caller:c}=t,d=s!==void 0,h=US(o),m=[{...n,state:l}];i&&m.push(i);const[p,E]=C.useReducer((A,k)=>{if(k.type===Qx)return{...A,state:k.state};const N=e(A,k);return d&&!Object.is(N.state,A.state)&&h(N.state),N},...m),y=p.state,v=C.useRef(y);C.useEffect(()=>{v.current!==y&&(v.current=y,d||h(y))},[y,v,d]);const S=C.useMemo(()=>s!==void 0?{...p,state:s}:p,[p,s]);return C.useEffect(()=>{d&&!Object.is(s,p.state)&&E({type:Qx,state:s})},[s,p.state,d]),[S,E]}ro(kO,"useControllableStateReducer");var wO=Object.defineProperty,NO=(e,t)=>wO(e,"name",{value:t,configurable:!0});function qS(e){const t=C.useRef({value:e,previous:e});return C.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}NO(qS,"usePrevious");var RO=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"}),OO=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Ys=new WeakMap,Fc=new WeakMap,qc={},ep=0,VS=function(e){return e&&(e.host||VS(e.parentNode))},LO=function(e,t){return t.map(function(n){if(e.contains(n))return n;var i=VS(n);return i&&e.contains(i)?i:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},DO=function(e,t,n,i){var s=LO(t,Array.isArray(e)?e:[e]);qc[n]||(qc[n]=new WeakMap);var l=qc[n],o=[],c=new Set,d=new Set(s),h=function(p){!p||c.has(p)||(c.add(p),h(p.parentNode))};s.forEach(h);var m=function(p){!p||d.has(p)||Array.prototype.forEach.call(p.children,function(E){if(c.has(E))m(E);else try{var y=E.getAttribute(i),v=y!==null&&y!=="false",S=(Ys.get(E)||0)+1,A=(l.get(E)||0)+1;Ys.set(E,S),l.set(E,A),o.push(E),S===1&&v&&Fc.set(E,!0),A===1&&E.setAttribute(n,"true"),v||E.setAttribute(i,"true")}catch(k){console.error("aria-hidden: cannot operate on ",E,k)}})};return m(t),c.clear(),ep++,function(){o.forEach(function(p){var E=Ys.get(p)-1,y=l.get(p)-1;Ys.set(p,E),l.set(p,y),E||(Fc.has(p)||p.removeAttribute(i),Fc.delete(p)),y||p.removeAttribute(n)}),ep--,ep||(Ys=new WeakMap,Ys=new WeakMap,Fc=new WeakMap,qc={})}},IO=function(e,t,n){n===void 0&&(n="data-aria-hidden");var i=Array.from(Array.isArray(e)?e:[e]),s=OO(e);return s?(i.push.apply(i,Array.from(s.querySelectorAll("[aria-live], script"))),DO(i,s,n,"aria-hidden")):function(){return null}},Ar=function(){return Ar=Object.assign||function(t){for(var n,i=1,s=arguments.length;i<s;i++){n=arguments[i];for(var l in n)Object.prototype.hasOwnProperty.call(n,l)&&(t[l]=n[l])}return t},Ar.apply(this,arguments)};function YS(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,i=Object.getOwnPropertySymbols(e);s<i.length;s++)t.indexOf(i[s])<0&&Object.prototype.propertyIsEnumerable.call(e,i[s])&&(n[i[s]]=e[i[s]]);return n}function MO(e,t,n){if(n||arguments.length===2)for(var i=0,s=t.length,l;i<s;i++)(l||!(i in t))&&(l||(l=Array.prototype.slice.call(t,0,i)),l[i]=t[i]);return e.concat(l||Array.prototype.slice.call(t))}var df="right-scroll-bar-position",hf="width-before-scroll-bar",PO="with-scroll-bars-hidden",BO="--removed-body-scroll-bar-size";function tp(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function jO(e,t){var n=C.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(i){var s=n.value;s!==i&&(n.value=i,n.callback(i,s))}}}})[0];return n.callback=t,n.facade}var HO=typeof window<"u"?C.useLayoutEffect:C.useEffect,Wx=new WeakMap;function UO(e,t){var n=jO(null,function(i){return e.forEach(function(s){return tp(s,i)})});return HO(function(){var i=Wx.get(n);if(i){var s=new Set(i),l=new Set(e),o=n.current;s.forEach(function(c){l.has(c)||tp(c,null)}),l.forEach(function(c){s.has(c)||tp(c,o)})}Wx.set(n,e)},[e]),n}function zO(e){return e}function FO(e,t){t===void 0&&(t=zO);var n=[],i=!1,s={read:function(){if(i)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(l){var o=t(l,i);return n.push(o),function(){n=n.filter(function(c){return c!==o})}},assignSyncMedium:function(l){for(i=!0;n.length;){var o=n;n=[],o.forEach(l)}n={push:function(c){return l(c)},filter:function(){return n}}},assignMedium:function(l){i=!0;var o=[];if(n.length){var c=n;n=[],c.forEach(l),o=n}var d=function(){var m=o;o=[],m.forEach(l)},h=function(){return Promise.resolve().then(d)};h(),n={push:function(m){o.push(m),h()},filter:function(m){return o=o.filter(m),n}}}};return s}function qO(e){e===void 0&&(e={});var t=FO(null);return t.options=Ar({async:!0,ssr:!1},e),t}var $S=function(e){var t=e.sideCar,n=YS(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var i=t.read();if(!i)throw new Error("Sidecar medium not found");return C.createElement(i,Ar({},n))};$S.isSideCarExport=!0;function VO(e,t){return e.useMedium(t),$S}var GS=qO(),np=function(){},Jf=C.forwardRef(function(e,t){var n=C.useRef(null),i=C.useState({onScrollCapture:np,onWheelCapture:np,onTouchMoveCapture:np}),s=i[0],l=i[1],o=e.forwardProps,c=e.children,d=e.className,h=e.removeScrollBar,m=e.enabled,p=e.shards,E=e.sideCar,y=e.noRelative,v=e.noIsolation,S=e.inert,A=e.allowPinchZoom,k=e.as,N=k===void 0?"div":k,w=e.gapMode,D=YS(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),z=E,L=UO([n,t]),P=Ar(Ar({},D),s);return C.createElement(C.Fragment,null,m&&C.createElement(z,{sideCar:GS,removeScrollBar:h,shards:p,noRelative:y,noIsolation:v,inert:S,setCallbacks:l,allowPinchZoom:!!A,lockRef:n,gapMode:w}),o?C.cloneElement(C.Children.only(c),Ar(Ar({},P),{ref:L})):C.createElement(N,Ar({},P,{className:d,ref:L}),c))});Jf.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Jf.classNames={fullWidth:hf,zeroRight:df};var YO=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function $O(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=YO();return t&&e.setAttribute("nonce",t),e}function GO(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function KO(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var XO=function(){var e=0,t=null;return{add:function(n){e==0&&(t=$O())&&(GO(t,n),KO(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},QO=function(){var e=XO();return function(t,n){C.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},KS=function(){var e=QO(),t=function(n){var i=n.styles,s=n.dynamic;return e(i,s),null};return t},WO={left:0,top:0,right:0,gap:0},rp=function(e){return parseInt(e||"",10)||0},ZO=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],i=t[e==="padding"?"paddingTop":"marginTop"],s=t[e==="padding"?"paddingRight":"marginRight"];return[rp(n),rp(i),rp(s)]},JO=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return WO;var t=ZO(e),n=document.documentElement.clientWidth,i=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,i-n+t[2]-t[0])}},e5=KS(),sl="data-scroll-locked",t5=function(e,t,n,i){var s=e.left,l=e.top,o=e.right,c=e.gap;return n===void 0&&(n="margin"),`
|
|
10
|
+
.`.concat(PO,` {
|
|
11
|
+
overflow: hidden `).concat(i,`;
|
|
12
|
+
padding-right: `).concat(c,"px ").concat(i,`;
|
|
13
|
+
}
|
|
14
|
+
body[`).concat(sl,`] {
|
|
15
|
+
overflow: hidden `).concat(i,`;
|
|
16
|
+
overscroll-behavior: contain;
|
|
17
|
+
`).concat([t&&"position: relative ".concat(i,";"),n==="margin"&&`
|
|
18
|
+
padding-left: `.concat(s,`px;
|
|
19
|
+
padding-top: `).concat(l,`px;
|
|
20
|
+
padding-right: `).concat(o,`px;
|
|
21
|
+
margin-left:0;
|
|
22
|
+
margin-top:0;
|
|
23
|
+
margin-right: `).concat(c,"px ").concat(i,`;
|
|
24
|
+
`),n==="padding"&&"padding-right: ".concat(c,"px ").concat(i,";")].filter(Boolean).join(""),`
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.`).concat(df,` {
|
|
28
|
+
right: `).concat(c,"px ").concat(i,`;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.`).concat(hf,` {
|
|
32
|
+
margin-right: `).concat(c,"px ").concat(i,`;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.`).concat(df," .").concat(df,` {
|
|
36
|
+
right: 0 `).concat(i,`;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.`).concat(hf," .").concat(hf,` {
|
|
40
|
+
margin-right: 0 `).concat(i,`;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
body[`).concat(sl,`] {
|
|
44
|
+
`).concat(BO,": ").concat(c,`px;
|
|
45
|
+
}
|
|
46
|
+
`)},Zx=function(){var e=parseInt(document.body.getAttribute(sl)||"0",10);return isFinite(e)?e:0},n5=function(){C.useEffect(function(){return document.body.setAttribute(sl,(Zx()+1).toString()),function(){var e=Zx()-1;e<=0?document.body.removeAttribute(sl):document.body.setAttribute(sl,e.toString())}},[])},r5=function(e){var t=e.noRelative,n=e.noImportant,i=e.gapMode,s=i===void 0?"margin":i;n5();var l=C.useMemo(function(){return JO(s)},[s]);return C.createElement(e5,{styles:t5(l,!t,s,n?"":"!important")})},Zp=!1;if(typeof window<"u")try{var Vc=Object.defineProperty({},"passive",{get:function(){return Zp=!0,!0}});window.addEventListener("test",Vc,Vc),window.removeEventListener("test",Vc,Vc)}catch{Zp=!1}var $s=Zp?{passive:!1}:!1,i5=function(e){return e.tagName==="TEXTAREA"},XS=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!i5(e)&&n[t]==="visible")},a5=function(e){return XS(e,"overflowY")},s5=function(e){return XS(e,"overflowX")},Jx=function(e,t){var n=t.ownerDocument,i=t;do{typeof ShadowRoot<"u"&&i instanceof ShadowRoot&&(i=i.host);var s=QS(e,i);if(s){var l=WS(e,i),o=l[1],c=l[2];if(o>c)return!0}i=i.parentNode}while(i&&i!==n.body);return!1},l5=function(e){var t=e.scrollTop,n=e.scrollHeight,i=e.clientHeight;return[t,n,i]},u5=function(e){var t=e.scrollLeft,n=e.scrollWidth,i=e.clientWidth;return[t,n,i]},QS=function(e,t){return e==="v"?a5(t):s5(t)},WS=function(e,t){return e==="v"?l5(t):u5(t)},o5=function(e,t){return e==="h"&&t==="rtl"?-1:1},c5=function(e,t,n,i,s){var l=o5(e,window.getComputedStyle(t).direction),o=l*i,c=n.target,d=t.contains(c),h=!1,m=o>0,p=0,E=0;do{if(!c)break;var y=WS(e,c),v=y[0],S=y[1],A=y[2],k=S-A-l*v;(v||k)&&QS(e,c)&&(p+=k,E+=v);var N=c.parentNode;c=N&&N.nodeType===Node.DOCUMENT_FRAGMENT_NODE?N.host:N}while(!d&&c!==document.body||d&&(t.contains(c)||t===c));return(m&&Math.abs(p)<1||!m&&Math.abs(E)<1)&&(h=!0),h},Yc=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},eT=function(e){return[e.deltaX,e.deltaY]},tT=function(e){return e&&"current"in e?e.current:e},f5=function(e,t){return e[0]===t[0]&&e[1]===t[1]},d5=function(e){return`
|
|
47
|
+
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
48
|
+
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
49
|
+
`)},h5=0,Gs=[];function m5(e){var t=C.useRef([]),n=C.useRef([0,0]),i=C.useRef(),s=C.useState(h5++)[0],l=C.useState(KS)[0],o=C.useRef(e);C.useEffect(function(){o.current=e},[e]),C.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(s));var S=MO([e.lockRef.current],(e.shards||[]).map(tT),!0).filter(Boolean);return S.forEach(function(A){return A.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),S.forEach(function(A){return A.classList.remove("allow-interactivity-".concat(s))})}}},[e.inert,e.lockRef.current,e.shards]);var c=C.useCallback(function(S,A){if("touches"in S&&S.touches.length===2||S.type==="wheel"&&S.ctrlKey)return!o.current.allowPinchZoom;var k=Yc(S),N=n.current,w="deltaX"in S?S.deltaX:N[0]-k[0],D="deltaY"in S?S.deltaY:N[1]-k[1],z,L=S.target,P=Math.abs(w)>Math.abs(D)?"h":"v";if("touches"in S&&P==="h"&&L.type==="range")return!1;var H=window.getSelection(),K=H&&H.anchorNode,j=K?K===L||K.contains(L):!1;if(j)return!1;var $=Jx(P,L);if(!$)return!0;if($?z=P:(z=P==="v"?"h":"v",$=Jx(P,L)),!$)return!1;if(!i.current&&"changedTouches"in S&&(w||D)&&(i.current=z),!z)return!0;var Z=i.current||z;return c5(Z,A,S,Z==="h"?w:D)},[]),d=C.useCallback(function(S){var A=S;if(!(!Gs.length||Gs[Gs.length-1]!==l)){var k="deltaY"in A?eT(A):Yc(A),N=t.current.filter(function(z){return z.name===A.type&&(z.target===A.target||A.target===z.shadowParent)&&f5(z.delta,k)})[0];if(N&&N.should){A.cancelable&&A.preventDefault();return}if(!N){var w=(o.current.shards||[]).map(tT).filter(Boolean).filter(function(z){return z.contains(A.target)}),D=w.length>0?c(A,w[0]):!o.current.noIsolation;D&&A.cancelable&&A.preventDefault()}}},[]),h=C.useCallback(function(S,A,k,N){var w={name:S,delta:A,target:k,should:N,shadowParent:p5(k)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(D){return D!==w})},1)},[]),m=C.useCallback(function(S){n.current=Yc(S),i.current=void 0},[]),p=C.useCallback(function(S){h(S.type,eT(S),S.target,c(S,e.lockRef.current))},[]),E=C.useCallback(function(S){h(S.type,Yc(S),S.target,c(S,e.lockRef.current))},[]);C.useEffect(function(){return Gs.push(l),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:E}),document.addEventListener("wheel",d,$s),document.addEventListener("touchmove",d,$s),document.addEventListener("touchstart",m,$s),function(){Gs=Gs.filter(function(S){return S!==l}),document.removeEventListener("wheel",d,$s),document.removeEventListener("touchmove",d,$s),document.removeEventListener("touchstart",m,$s)}},[]);var y=e.removeScrollBar,v=e.inert;return C.createElement(C.Fragment,null,v?C.createElement(l,{styles:d5(s)}):null,y?C.createElement(r5,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function p5(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const g5=VO(GS,m5);var ZS=C.forwardRef(function(e,t){return C.createElement(Jf,Ar({},e,{ref:t,sideCar:g5}))});ZS.classNames=Jf.classNames;var b5=Object.defineProperty,nt=(e,t)=>b5(e,"name",{value:t,configurable:!0}),y5=[" ","Enter","ArrowUp","ArrowDown"],E5=[" ","Enter"],cl="Select",[ed,td,x5]=nS(cl),[Za,Gq]=no(cl,[x5,LS]),eg=LS(),[T5,aa]=Za(cl),[v5,S5]=Za(cl);function JS(e){const{__scopeSelect:t,children:n,open:i,defaultOpen:s,onOpenChange:l,value:o,defaultValue:c,onValueChange:d,dir:h,name:m,autoComplete:p,disabled:E,required:y,form:v,internal_do_not_use_render:S}=e,A=eg(t),[k,N]=C.useState(null),[w,D]=C.useState(null),[z,L]=C.useState(!1),P=lS(h),[H,K]=Wp({prop:i,defaultProp:s??!1,onChange:l,caller:cl}),[j,$]=Wp({prop:o,defaultProp:c,onChange:d,caller:cl}),Z=C.useRef(null),le=C.useRef(j);C.useEffect(()=>{const X=v?k?.ownerDocument.getElementById(v):k?.form;if(X instanceof HTMLFormElement){const I=nt(()=>$(le.current),"reset");return X.addEventListener("reset",I),()=>X.removeEventListener("reset",I)}},[v,k,$]);const ue=k?!!v||!!k.closest("form"):!0,[re,V]=C.useState(new Set),Q=G0(),ae=Array.from(re).map(X=>X.props.value).join(";"),Ee=C.useCallback(X=>{V(I=>new Set(I).add(X))},[]),R=C.useCallback(X=>{V(I=>{const ge=new Set(I);return ge.delete(X),ge})},[]),U={required:y,trigger:k,onTriggerChange:N,valueNode:w,onValueNodeChange:D,valueNodeHasChildren:z,onValueNodeHasChildrenChange:L,contentId:Q,value:j,onValueChange:$,open:H,onOpenChange:K,dir:P,triggerPointerDownPosRef:Z,disabled:E,name:m,autoComplete:p,form:v,nativeOptions:re,nativeSelectKey:ae,isFormControl:ue};return T.jsx(pO,{...A,children:T.jsx(T5,{scope:t,...U,children:T.jsx(ed.Provider,{scope:t,children:T.jsx(v5,{scope:t,onNativeOptionAdd:Ee,onNativeOptionRemove:R,children:r_(S)?S(U):n})})})})}nt(JS,"SelectProvider");var _5=nt(e=>{const{__scopeSelect:t,children:n,...i}=e;return T.jsx(JS,{__scopeSelect:t,...i,internal_do_not_use_render:({isFormControl:s})=>T.jsxs(T.Fragment,{children:[n,s?T.jsx(Q5,{__scopeSelect:t}):null]})})},"Select"),C5="SelectTrigger",A5=C.forwardRef(nt(function(t,n){const{__scopeSelect:i,disabled:s=!1,...l}=t,o=eg(i),c=aa(C5,i),d=c.disabled||s,h=Dt(n,c.onTriggerChange),m=td(i),p=C.useRef("touch"),[E,y,v]=ng(A=>{const k=m().filter(D=>!D.disabled),N=k.find(D=>D.value===c.value),w=rg(k,A,N);w!==void 0&&c.onValueChange(w.value)}),S=nt(A=>{d||(c.onOpenChange(!0),v()),A&&(c.triggerPointerDownPosRef.current={x:Math.round(A.pageX),y:Math.round(A.pageY)})},"handleOpen");return T.jsx(gO,{asChild:!0,...o,children:T.jsx(yn.button,{type:"button",role:"combobox","aria-controls":c.open?c.contentId:void 0,"aria-expanded":c.open,"aria-required":c.required,"aria-autocomplete":"none",dir:c.dir,"data-state":c.open?"open":"closed",disabled:d,"data-disabled":d?"":void 0,"data-placeholder":io(c.value)?"":void 0,...l,ref:h,onClick:Ot(l.onClick,A=>{A.currentTarget.focus(),p.current!=="mouse"&&S(A)}),onPointerDown:Ot(l.onPointerDown,A=>{p.current=A.pointerType;const k=A.target;k.hasPointerCapture(A.pointerId)&&k.releasePointerCapture(A.pointerId),A.button===0&&A.ctrlKey===!1&&A.pointerType==="mouse"&&(S(A),A.preventDefault())}),onKeyDown:Ot(l.onKeyDown,A=>{const k=E.current!=="";!(A.ctrlKey||A.altKey||A.metaKey)&&A.key.length===1&&y(A.key),!(k&&A.key===" ")&&y5.includes(A.key)&&(S(),A.preventDefault())})})})},"SelectTrigger")),k5="SelectValue",w5=C.forwardRef(nt(function(t,n){const{__scopeSelect:i,className:s,style:l,children:o,placeholder:c="",...d}=t,h=aa(k5,i),{onValueNodeHasChildrenChange:m}=h,p=o!==void 0,E=Dt(n,h.onValueNodeChange);Wt(()=>{m(p)},[m,p]);const y=io(h.value);return T.jsx(yn.span,{...d,asChild:y?!1:d.asChild,ref:E,style:{pointerEvents:"none"},children:T.jsx(C.Fragment,{children:y?c:o},y?"placeholder":"value")})},"SelectValue")),N5=C.forwardRef(nt(function(t,n){const{__scopeSelect:i,children:s,...l}=t;return T.jsx(yn.span,{"aria-hidden":!0,...l,ref:n,children:s||"▼"})},"SelectIcon")),R5="SelectPortal",[O5,L5]=Za(R5,{forceMount:void 0}),D5=nt(e=>{const{__scopeSelect:t,forceMount:n,...i}=e;return T.jsx(O5,{scope:e.__scopeSelect,forceMount:n,children:T.jsx(xO,{asChild:!0,...i})})},"SelectPortal"),Ya="SelectContent",I5=C.forwardRef(nt(function(t,n){const i=L5(Ya,t.__scopeSelect),{forceMount:s=i.forceMount,...l}=t,o=aa(Ya,t.__scopeSelect),[c,d]=C.useState();return Wt(()=>{d(new DocumentFragment)},[]),T.jsx(vO,{present:s||o.open,children:({present:h})=>h?T.jsx(B5,{...l,ref:n}):T.jsx(M5,{...l,fragment:c})})},"SelectContent")),M5=C.forwardRef(nt(function(t,n){const{__scopeSelect:i,children:s,fragment:l}=t;return l?ra.createPortal(T.jsx(e_,{scope:i,children:T.jsx(ed.Slot,{scope:i,children:T.jsx("div",{ref:n,children:s})})}),l):null},"SelectContentFragment")),or=10,[e_,Ja]=Za(Ya),P5=Fa("SelectContent.RemoveScroll"),B5=C.forwardRef(nt(function(t,n){const{__scopeSelect:i}=t,{position:s="item-aligned",onCloseAutoFocus:l,onEscapeKeyDown:o,onPointerDownOutside:c,side:d,sideOffset:h,align:m,alignOffset:p,arrowPadding:E,collisionBoundary:y,collisionPadding:v,sticky:S,hideWhenDetached:A,avoidCollisions:k,...N}=t,w=aa(Ya,i),[D,z]=C.useState(null),[L,P]=C.useState(null),H=Dt(n,z),[K,j]=C.useState(null),[$,Z]=C.useState(null),le=td(i),[ue,re]=C.useState(!1),V=C.useRef(!1);C.useEffect(()=>{if(D)return IO(D)},[D]),Y0();const Q=C.useCallback(Te=>{const[xe,...je]=le().map(Ve=>Ve.ref.current),[Ne]=je.slice(-1),Me=document.activeElement;for(const Ve of Te)if(Ve===Me||(Ve?.scrollIntoView({block:"nearest"}),Ve===xe&&L&&(L.scrollTop=0),Ve===Ne&&L&&(L.scrollTop=L.scrollHeight),Ve?.focus(),document.activeElement!==Me))return},[le,L]),ae=C.useCallback(()=>Q([K,D]),[Q,K,D]);C.useEffect(()=>{ue&&ae()},[ue,ae]);const{onOpenChange:Ee,triggerPointerDownPosRef:R}=w;C.useEffect(()=>{if(D){let Te={x:0,y:0};const xe=nt(Ne=>{Te={x:Math.abs(Math.round(Ne.pageX)-(R.current?.x??0)),y:Math.abs(Math.round(Ne.pageY)-(R.current?.y??0))}},"handlePointerMove"),je=nt(Ne=>{Te.x<=10&&Te.y<=10?Ne.preventDefault():Ne.composedPath().includes(D)||Ee(!1),document.removeEventListener("pointermove",xe),R.current=null},"handlePointerUp");return R.current!==null&&(document.addEventListener("pointermove",xe),document.addEventListener("pointerup",je,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",xe),document.removeEventListener("pointerup",je,{capture:!0})}}},[D,Ee,R]),C.useEffect(()=>{const Te=nt(()=>Ee(!1),"close");return window.addEventListener("blur",Te),window.addEventListener("resize",Te),()=>{window.removeEventListener("blur",Te),window.removeEventListener("resize",Te)}},[Ee]);const[U,X]=ng(Te=>{const xe=le().filter(Me=>!Me.disabled),je=xe.find(Me=>Me.ref.current===document.activeElement),Ne=rg(xe,Te,je);Ne&&setTimeout(()=>Ne.ref.current?.focus())}),I=C.useCallback((Te,xe,je)=>{const Ne=!V.current&&!je;(w.value!==void 0&&w.value===xe||Ne)&&(j(Te),Ne&&(V.current=!0))},[w.value]),ge=C.useCallback(()=>D?.focus(),[D]),ye=C.useCallback((Te,xe,je)=>{const Ne=!V.current&&!je;(w.value!==void 0&&w.value===xe||Ne)&&Z(Te)},[w.value]),he=s==="popper"?nT:j5,Ae=he===nT?{side:d,sideOffset:h,align:m,alignOffset:p,arrowPadding:E,collisionBoundary:y,collisionPadding:v,sticky:S,hideWhenDetached:A,avoidCollisions:k}:{};return T.jsx(e_,{scope:i,content:D,viewport:L,onViewportChange:P,itemRefCallback:I,selectedItem:K,onItemLeave:ge,itemTextRefCallback:ye,focusSelectedItem:ae,selectedItemText:$,position:s,isPositioned:ue,searchRef:U,children:T.jsx(ZS,{as:P5,allowPinchZoom:!0,children:T.jsx(XR,{asChild:!0,trapped:w.open,onMountAutoFocus:Te=>{Te.preventDefault()},onUnmountAutoFocus:Ot(l,Te=>{w.trigger?.focus({preventScroll:!0}),Te.preventDefault()}),children:T.jsx(qR,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:o,onPointerDownOutside:c,onFocusOutside:Te=>Te.preventDefault(),onDismiss:()=>w.onOpenChange(!1),children:T.jsx(he,{role:"listbox",id:w.contentId,"data-state":w.open?"open":"closed",dir:w.dir,onContextMenu:Te=>Te.preventDefault(),...N,...Ae,onPlaced:()=>re(!0),ref:H,style:{display:"flex",flexDirection:"column",outline:"none",...N.style},onKeyDown:Ot(N.onKeyDown,Te=>{const xe=Te.ctrlKey||Te.altKey||Te.metaKey;if(Te.key==="Tab"&&Te.preventDefault(),!xe&&Te.key.length===1&&X(Te.key),["ArrowUp","ArrowDown","Home","End"].includes(Te.key)){let Ne=le().filter(Me=>!Me.disabled).map(Me=>Me.ref.current);if(["ArrowUp","End"].includes(Te.key)&&(Ne=Ne.slice().reverse()),["ArrowUp","ArrowDown"].includes(Te.key)){const Me=Te.target,Ve=Ne.indexOf(Me);Ne=Ne.slice(Ve+1)}setTimeout(()=>Q(Ne)),Te.preventDefault()}})})})})})})},"SelectContentImpl")),j5=C.forwardRef(nt(function(t,n){const{__scopeSelect:i,onPlaced:s,...l}=t,o=aa(Ya,i),c=Ja(Ya,i),[d,h]=C.useState(null),[m,p]=C.useState(null),E=Dt(n,p),y=td(i),v=C.useRef(!1),S=C.useRef(!0),{viewport:A,selectedItem:k,selectedItemText:N,focusSelectedItem:w}=c,D=C.useCallback(()=>{if(o.trigger&&o.valueNode&&d&&m&&A&&k&&N){const H=o.trigger.getBoundingClientRect(),K=m.getBoundingClientRect(),j=o.valueNode.getBoundingClientRect(),$=N.getBoundingClientRect();if(o.dir!=="rtl"){const Me=$.left-K.left,Ve=j.left-Me,rt=H.left-Ve,ut=H.width+rt,Et=Math.max(ut,K.width),Vt=window.innerWidth-or,Ut=jp(Ve,[or,Math.max(or,Vt-Et)]);d.style.minWidth=ut+"px",d.style.left=Ut+"px"}else{const Me=K.right-$.right,Ve=window.innerWidth-j.right-Me,rt=window.innerWidth-H.right-Ve,ut=H.width+rt,Et=Math.max(ut,K.width),Vt=window.innerWidth-or,Ut=jp(Ve,[or,Math.max(or,Vt-Et)]);d.style.minWidth=ut+"px",d.style.right=Ut+"px"}const Z=y(),le=window.innerHeight-or*2,ue=A.scrollHeight,re=window.getComputedStyle(m),V=parseInt(re.borderTopWidth,10),Q=parseInt(re.paddingTop,10),ae=parseInt(re.borderBottomWidth,10),Ee=parseInt(re.paddingBottom,10),R=V+Q+ue+Ee+ae,U=Math.min(k.offsetHeight*5,R),X=window.getComputedStyle(A),I=parseInt(X.paddingTop,10),ge=parseInt(X.paddingBottom,10),ye=H.top+H.height/2-or,he=le-ye,Ae=k.offsetHeight/2,Te=k.offsetTop+Ae,xe=V+Q+Te,je=R-xe;if(xe<=ye){const Me=Z.length>0&&k===Z[Z.length-1].ref.current;d.style.bottom="0px";const Ve=m.clientHeight-A.offsetTop-A.offsetHeight,rt=Math.max(he,Ae+(Me?ge:0)+Ve+ae),ut=xe+rt;d.style.height=ut+"px"}else{const Me=Z.length>0&&k===Z[0].ref.current;d.style.top="0px";const rt=Math.max(ye,V+A.offsetTop+(Me?I:0)+Ae)+je;d.style.height=rt+"px",A.scrollTop=xe-ye+A.offsetTop}d.style.margin=`${or}px 0`,d.style.minHeight=U+"px",d.style.maxHeight=le+"px",s?.(),requestAnimationFrame(()=>v.current=!0)}},[y,o.trigger,o.valueNode,d,m,A,k,N,o.dir,s]);Wt(()=>D(),[D]);const[z,L]=C.useState();Wt(()=>{m&&L(window.getComputedStyle(m).zIndex)},[m]);const P=C.useCallback(H=>{H&&S.current===!0&&(D(),w?.(),S.current=!1)},[D,w]);return T.jsx(H5,{scope:i,contentWrapper:d,shouldExpandOnScrollRef:v,onScrollButtonChange:P,children:T.jsx("div",{ref:h,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:z},children:T.jsx(yn.div,{...l,ref:E,style:{boxSizing:"border-box",maxHeight:"100%",...l.style}})})})},"SelectItemAlignedPosition")),nT=C.forwardRef(nt(function(t,n){const{__scopeSelect:i,align:s="start",collisionPadding:l=or,...o}=t,c=eg(i);return T.jsx(bO,{...c,...o,ref:n,align:s,collisionPadding:l,style:{boxSizing:"border-box",...o.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})},"SelectPopperPosition")),[H5,tg]=Za(Ya,{}),rT="SelectViewport",U5=C.forwardRef(nt(function(t,n){const{__scopeSelect:i,nonce:s,...l}=t,o=Ja(rT,i),c=tg(rT,i),d=Dt(n,o.onViewportChange),h=C.useRef(0);return T.jsxs(T.Fragment,{children:[T.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:s}),T.jsx(ed.Slot,{scope:i,children:T.jsx(yn.div,{"data-radix-select-viewport":"",role:"presentation",...l,ref:d,style:{position:"relative",flex:1,overflow:"hidden auto",...l.style},onScroll:Ot(l.onScroll,m=>{const p=m.currentTarget,{contentWrapper:E,shouldExpandOnScrollRef:y}=c;if(y?.current&&E){const v=Math.abs(h.current-p.scrollTop);if(v>0){const S=window.innerHeight-or*2,A=parseFloat(E.style.minHeight),k=parseFloat(E.style.height),N=Math.max(A,k);if(N<S){const w=N+v,D=Math.min(S,w),z=w-D;E.style.height=D+"px",E.style.bottom==="0px"&&(p.scrollTop=z>0?z:0,E.style.justifyContent="flex-end")}}}h.current=p.scrollTop})})})]})},"SelectViewport")),z5="SelectGroup",[Kq,Xq]=Za(z5),Jp="SelectItem",[F5,t_]=Za(Jp),q5=C.forwardRef(nt(function(t,n){const{__scopeSelect:i,value:s,disabled:l=!1,textValue:o,...c}=t,d=aa(Jp,i),h=Ja(Jp,i),m=d.value===s,[p,E]=C.useState(o??""),[y,v]=C.useState(!1),S=Nr(D=>h.itemRefCallback?.(D,s,l)),A=Dt(n,S),k=G0(),N=C.useRef("touch"),w=nt(()=>{l||(d.onValueChange(s),d.onOpenChange(!1))},"handleSelect");return T.jsx(F5,{scope:i,value:s,disabled:l,textId:k,isSelected:m,onItemTextChange:C.useCallback(D=>{E(z=>z||(D?.textContent??"").trim())},[]),children:T.jsx(ed.ItemSlot,{scope:i,value:s,disabled:l,textValue:p,children:T.jsx(yn.div,{role:"option","aria-labelledby":k,"data-highlighted":y?"":void 0,"aria-selected":m&&y,"data-state":m?"checked":"unchecked","aria-disabled":l||void 0,"data-disabled":l?"":void 0,tabIndex:l?void 0:-1,...c,ref:A,onFocus:Ot(c.onFocus,()=>v(!0)),onBlur:Ot(c.onBlur,()=>v(!1)),onClick:Ot(c.onClick,()=>{N.current!=="mouse"&&w()}),onPointerUp:Ot(c.onPointerUp,()=>{N.current==="mouse"&&w()}),onPointerDown:Ot(c.onPointerDown,D=>{N.current=D.pointerType}),onPointerMove:Ot(c.onPointerMove,D=>{N.current=D.pointerType,l?h.onItemLeave?.():N.current==="mouse"&&D.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Ot(c.onPointerLeave,D=>{D.currentTarget===document.activeElement&&h.onItemLeave?.()}),onKeyDown:Ot(c.onKeyDown,D=>{l||D.target!==D.currentTarget||h.searchRef?.current!==""&&D.key===" "||(E5.includes(D.key)&&w(),D.key===" "&&D.preventDefault())})})})})},"SelectItem")),$c="SelectItemText",V5=C.forwardRef(nt(function(t,n){const{__scopeSelect:i,className:s,style:l,...o}=t,c=aa($c,i),d=Ja($c,i),h=t_($c,i),m=S5($c,i),[p,E]=C.useState(null),y=Nr(w=>d.itemTextRefCallback?.(w,h.value,h.disabled)),v=Dt(n,E,h.onItemTextChange,y),S=p?.textContent,A=C.useMemo(()=>T.jsx("option",{value:h.value,disabled:h.disabled,children:S},h.value),[h.disabled,h.value,S]),{onNativeOptionAdd:k,onNativeOptionRemove:N}=m;return Wt(()=>(k(A),()=>N(A)),[k,N,A]),T.jsxs(T.Fragment,{children:[T.jsx(yn.span,{id:h.textId,...o,ref:v}),h.isSelected&&c.valueNode&&!c.valueNodeHasChildren&&!io(c.value)?ra.createPortal(o.children,c.valueNode):null]})},"SelectItemText")),Y5="SelectItemIndicator",$5=C.forwardRef(nt(function(t,n){const{__scopeSelect:i,...s}=t;return t_(Y5,i).isSelected?T.jsx(yn.span,{"aria-hidden":!0,...s,ref:n}):null},"SelectItemIndicator")),iT="SelectScrollUpButton",G5=C.forwardRef(nt(function(t,n){const i=Ja(iT,t.__scopeSelect),s=tg(iT,t.__scopeSelect),[l,o]=C.useState(!1),c=Dt(n,s.onScrollButtonChange);return Wt(()=>{if(i.viewport&&i.isPositioned){let d=function(){const m=h.scrollTop>0;o(m)};nt(d,"handleScroll");const h=i.viewport;return d(),h.addEventListener("scroll",d),()=>h.removeEventListener("scroll",d)}},[i.viewport,i.isPositioned]),l?T.jsx(n_,{...t,ref:c,onAutoScroll:()=>{const{viewport:d,selectedItem:h}=i;d&&h&&(d.scrollTop=d.scrollTop-h.offsetHeight)}}):null},"SelectScrollUpButton")),aT="SelectScrollDownButton",K5=C.forwardRef(nt(function(t,n){const i=Ja(aT,t.__scopeSelect),s=tg(aT,t.__scopeSelect),[l,o]=C.useState(!1),c=Dt(n,s.onScrollButtonChange);return Wt(()=>{if(i.viewport&&i.isPositioned){let d=function(){const m=h.scrollHeight-h.clientHeight,p=Math.ceil(h.scrollTop)<m;o(p)};nt(d,"handleScroll");const h=i.viewport;return d(),h.addEventListener("scroll",d),()=>h.removeEventListener("scroll",d)}},[i.viewport,i.isPositioned]),l?T.jsx(n_,{...t,ref:c,onAutoScroll:()=>{const{viewport:d,selectedItem:h}=i;d&&h&&(d.scrollTop=d.scrollTop+h.offsetHeight)}}):null},"SelectScrollDownButton")),n_=C.forwardRef(nt(function(t,n){const{__scopeSelect:i,onAutoScroll:s,...l}=t,o=Ja("SelectScrollButton",i),c=C.useRef(null),d=td(i),h=C.useCallback(()=>{c.current!==null&&(window.clearInterval(c.current),c.current=null)},[]);return C.useEffect(()=>()=>h(),[h]),Wt(()=>{d().find(p=>p.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[d]),T.jsx(yn.div,{"aria-hidden":!0,...l,ref:n,style:{flexShrink:0,...l.style},onPointerDown:Ot(l.onPointerDown,()=>{c.current===null&&(c.current=window.setInterval(s,50))}),onPointerMove:Ot(l.onPointerMove,()=>{o.onItemLeave?.(),c.current===null&&(c.current=window.setInterval(s,50))}),onPointerLeave:Ot(l.onPointerLeave,()=>{h()})})},"SelectScrollButtonImpl")),X5="SelectBubbleInput",Q5=C.forwardRef(nt(function({__scopeSelect:t,...n},i){const s=aa(X5,t),{value:l,onValueChange:o,required:c,disabled:d,name:h,autoComplete:m,form:p}=s,{nativeOptions:E,nativeSelectKey:y}=s,v=C.useRef(null),S=Dt(i,v),A=l??"",k=qS(A),N=Array.from(E).some(w=>(w.props.value??"")==="");return C.useEffect(()=>{const w=v.current;if(!w)return;const D=window.HTMLSelectElement.prototype,L=Object.getOwnPropertyDescriptor(D,"value").set;if(k!==A&&L){const P=new Event("change",{bubbles:!0});L.call(w,A),w.dispatchEvent(P)}},[k,A]),T.jsxs(yn.select,{"aria-hidden":!0,required:c,tabIndex:-1,name:h,autoComplete:m,disabled:d,form:p,onChange:w=>o(w.target.value),...n,style:{...RO,...n.style},ref:S,defaultValue:A,children:[io(l)&&!N?T.jsx("option",{value:""}):null,Array.from(E)]},y)},"SelectBubbleInput"));function r_(e){return typeof e=="function"}nt(r_,"isFunction");function io(e){return e===""||e===void 0}nt(io,"shouldShowPlaceholder");function ng(e){const t=Nr(e),n=C.useRef(""),i=C.useRef(0),s=C.useCallback(o=>{const c=n.current+o;t(c),nt((function d(h){n.current=h,window.clearTimeout(i.current),h!==""&&(i.current=window.setTimeout(()=>d(""),1e3))}),"updateSearch")(c)},[t]),l=C.useCallback(()=>{n.current="",window.clearTimeout(i.current)},[]);return C.useEffect(()=>()=>window.clearTimeout(i.current),[]),[n,s,l]}nt(ng,"useTypeaheadSearch");function rg(e,t,n){const s=t.length>1&&Array.from(t).every(h=>h===t[0])?t[0]:t,l=n?e.indexOf(n):-1;let o=i_(e,Math.max(l,0));s.length===1&&(o=o.filter(h=>h!==n));const d=o.find(h=>h.textValue.toLowerCase().startsWith(s.toLowerCase()));return d!==n?d:void 0}nt(rg,"findNextItem");function i_(e,t){return e.map((n,i)=>e[(t+i)%e.length])}nt(i_,"wrapArray");function e0({value:e,onValueChange:t,options:n,ariaLabel:i,className:s="",placeholder:l,disabled:o,required:c}){return T.jsxs(_5,{value:e,onValueChange:t,required:c,children:[T.jsxs(A5,{className:`ui-select-trigger ${s}`,"aria-label":i,disabled:o,children:[T.jsx(w5,{placeholder:l}),T.jsx(N5,{className:"ui-select-chevron",children:T.jsx(Bp,{size:14})})]}),T.jsx(D5,{children:T.jsxs(I5,{className:"ui-select-content",position:"popper",sideOffset:5,children:[T.jsx(G5,{className:"ui-select-scroll",children:T.jsx(sR,{size:14})}),T.jsx(U5,{className:"ui-select-viewport",children:n.map(d=>T.jsxs(q5,{className:"ui-select-item",value:d.value,children:[T.jsx(V5,{children:d.label}),T.jsx($5,{className:"ui-select-check",children:T.jsx(el,{size:14})})]},d.value))}),T.jsx(K5,{className:"ui-select-scroll",children:T.jsx(Bp,{size:14})})]})})]})}const W5="modulepreload",Z5=function(e){return"/"+e},sT={},a_=function(t,n,i){let s=Promise.resolve();if(n&&n.length>0){let d=function(h){return Promise.all(h.map(m=>Promise.resolve(m).then(p=>({status:"fulfilled",value:p}),p=>({status:"rejected",reason:p}))))};document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),c=o?.nonce||o?.getAttribute("nonce");s=d(n.map(h=>{if(h=Z5(h),h in sT)return;sT[h]=!0;const m=h.endsWith(".css"),p=m?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${h}"]${p}`))return;const E=document.createElement("link");if(E.rel=m?"stylesheet":W5,m||(E.as="script"),E.crossOrigin="",E.href=h,c&&E.setAttribute("nonce",c),document.head.appendChild(E),m)return new Promise((y,v)=>{E.addEventListener("load",y),E.addEventListener("error",()=>v(new Error(`Unable to preload CSS for ${h}`)))})}))}function l(o){const c=new Event("vite:preloadError",{cancelable:!0});if(c.payload=o,window.dispatchEvent(c),!c.defaultPrevented)throw o}return s.then(o=>{for(const c of o||[])c.status==="rejected"&&l(c.reason);return t().catch(l)})},nd=(function(e){if(e==null)return nL;if(typeof e=="function")return rd(e);if(typeof e=="object")return Array.isArray(e)?J5(e):eL(e);if(typeof e=="string")return tL(e);throw new Error("Expected function, string, or object as test")});function J5(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=nd(e[n]);return rd(i);function i(...s){let l=-1;for(;++l<t.length;)if(t[l].apply(this,s))return!0;return!1}}function eL(e){const t=e;return rd(n);function n(i){const s=i;let l;for(l in e)if(s[l]!==t[l])return!1;return!0}}function tL(e){return rd(t);function t(n){return n&&n.type===e}}function rd(e){return t;function t(n,i,s){return!!(rL(n)&&e.call(this,n,typeof i=="number"?i:void 0,s||void 0))}}function nL(){return!0}function rL(e){return e!==null&&typeof e=="object"&&"type"in e}const s_=[],wu=!0,t0=!1,Pa="skip";function id(e,t,n,i){let s;typeof t=="function"&&typeof n!="function"?(i=n,n=t):s=t;const l=nd(s),o=i?-1:1;c(e,void 0,[])();function c(d,h,m){const p=d&&typeof d=="object"?d:{};if(typeof p.type=="string"){const y=typeof p.tagName=="string"?p.tagName:typeof p.name=="string"?p.name:void 0;Object.defineProperty(E,"name",{value:"node ("+(d.type+(y?"<"+y+">":""))+")"})}return E;function E(){let y=s_,v,S,A;if((!t||l(d,h,m[m.length-1]||void 0))&&(y=iL(n(d,m)),y[0]===t0))return y;if("children"in d&&d.children){const k=d;if(k.children&&y[0]!==Pa)for(S=(i?k.children.length:-1)+o,A=m.concat(k);S>-1&&S<k.children.length;){const N=k.children[S];if(v=c(N,S,A)(),v[0]===t0)return v;S=typeof v[1]=="number"?v[1]:S+o}}return y}}}function iL(e){return Array.isArray(e)?e:typeof e=="number"?[wu,e]:e==null?s_:[e]}function dr(e,t,n,i){let s,l,o;typeof t=="function"&&typeof n!="function"?(l=void 0,o=t,s=n):(l=t,o=n,s=i),id(e,l,c,s);function c(d,h){const m=h[h.length-1],p=m?m.children.indexOf(d):void 0;return o(d,p,m)}}const fl={indicator:"indicator",textOnly:"text-only",remove:"remove"};function aL({defaultOrigin:e="",allowedLinkPrefixes:t=[],allowedImagePrefixes:n=[],allowDataImages:i=!1,allowedProtocols:s=[],blockedImageClass:l="inline-block bg-gray-200 dark:bg-gray-700 text-gray-600 dark:text-gray-400 px-3 py-1 rounded text-sm",blockedLinkClass:o="text-gray-500",linkBlockPolicy:c=fl.indicator,imageBlockPolicy:d=fl.indicator}){const h=t.length&&!t.every(p=>p==="*"),m=n.length&&!n.every(p=>p==="*");if(!e&&(h||m))throw new Error("defaultOrigin is required when allowedLinkPrefixes or allowedImagePrefixes are provided");return p=>{const E=fL(e,t,n,i,s,l,o,c,d);l_(p),dr(p,E)}}function lT(e,t){if(typeof e!="string")return null;try{return new URL(e)}catch{if(t)try{return new URL(e,t)}catch{return null}if(e.startsWith("/")||e.startsWith("./")||e.startsWith("../"))try{return new URL(e,"http://example.com")}catch{return null}return null}}function sL(e){return typeof e!="string"?!1:e.startsWith("/")||e.startsWith("./")||e.startsWith("../")}const lL=new Set(["https:","http:","irc:","ircs:","mailto:","xmpp:","blob:"]),uL=new Set(["javascript:","data:","file:","vbscript:"]);function uT(e,t,n,i=!1,s=!1,l=[]){if(!e)return null;if(typeof e=="string"&&e.startsWith("#")&&!s)try{if(new URL(e,"http://example.com").hash===e)return e}catch{}if(typeof e=="string"&&e.startsWith("data:"))return s&&i&&e.startsWith("data:image/")?e:null;if(typeof e=="string"&&e.startsWith("blob:")){try{if(new URL(e).protocol==="blob:"&&e.length>5){const m=e.substring(5);if(m&&m.length>0&&m!=="invalid")return e}}catch{return null}return null}const o=lT(e,n);if(!o||uL.has(o.protocol)||!(lL.has(o.protocol)||l.includes(o.protocol)||l.includes("*")))return null;if(o.protocol==="mailto:"||!o.protocol.match(/^https?:$/))return o.href;const d=sL(e);return o&&t.some(h=>{const m=lT(h,n);return!m||m.origin!==o.origin?!1:o.href.startsWith(m.href)})?d?o.pathname+o.search+o.hash:o.href:t.includes("*")?o.protocol!=="https:"&&o.protocol!=="http:"?null:d?o.pathname+o.search+o.hash:o.href:null}function l_(e){if("children"in e&&Array.isArray(e.children)){e.children=e.children.filter(t=>t!=null);for(const t of e.children)l_(t)}}const ip=Symbol("node-seen");function oL(e,t,n){return t===fl.remove?{type:"remove"}:t===fl.textOnly?{type:"replace",element:{type:"element",tagName:"span",properties:{},children:[...e.children]}}:{type:"replace",element:{type:"element",tagName:"span",properties:{title:"Blocked URL: "+String(e.properties.href),class:n},children:[...e.children,{type:"text",value:" [blocked]"}]}}}function cL(e,t,n){if(t===fl.remove)return{type:"remove"};if(t===fl.textOnly){const i=String(e.properties.alt||"");return i?{type:"replace",element:{type:"element",tagName:"span",properties:{},children:[{type:"text",value:i}]}}:{type:"remove"}}return{type:"replace",element:{type:"element",tagName:"span",properties:{class:n},children:[{type:"text",value:"[Image blocked: "+String(e.properties.alt||"No description")+"]"}]}}}const fL=(e,t,n,i,s,l,o,c,d)=>{const h=(m,p,E)=>{if(m.type!=="element"||m[ip])return wu;if(m.tagName==="a"){const y=uT(m.properties.href,t,e,!1,!1,s);if(y===null){if(m[ip]=!0,dr(m,h),E&&typeof p=="number"){const v=oL(m,c,o);if(v.type==="remove")return E.children.splice(p,1),[Pa,p];E.children[p]=v.element}return Pa}else return m.properties.href=y,m.properties.target="_blank",m.properties.rel="noopener noreferrer",wu}if(m.tagName==="img"){const y=uT(m.properties.src,n,e,i,!0,s);if(y===null){if(m[ip]=!0,dr(m,h),E&&typeof p=="number"){const v=cL(m,d,l);if(v.type==="remove")return E.children.splice(p,1),[Pa,p];E.children[p]=v.element}return Pa}else return m.properties.src=y,wu}return wu};return h},u_=-1,ad=0,Iu=1,Rf=2,ig=3,ag=4,sg=5,lg=6,o_=7,c_=8,{defineProperty:dL}=Object,f_=typeof self=="object"?self:globalThis,oT=(e,t)=>{switch(e){case"Function":case"SharedWorker":case"Worker":case"eval":case"setInterval":case"setTimeout":throw new TypeError("unable to deserialize "+e)}return new f_[e](t)},hL=(e,t)=>{const n=(s,l)=>(e.set(l,s),s),i=s=>{if(e.has(s))return e.get(s);const[l,o]=t[s];switch(l){case ad:case u_:return n(o,s);case Iu:{const c=n([],s);for(const d of o)c.push(i(d));return c}case Rf:{const c=n({},s);for(const[d,h]of o){const m=i(d),p=i(h);m==="__proto__"?dL(c,m,{value:p,configurable:!0,enumerable:!0,writable:!0}):c[m]=p}return c}case ig:return n(new Date(o),s);case ag:{const{source:c,flags:d}=o;return n(new RegExp(c,d),s)}case sg:{const c=n(new Map,s);for(const[d,h]of o)c.set(i(d),i(h));return c}case lg:{const c=n(new Set,s);for(const d of o)c.add(i(d));return c}case o_:{const{name:c,message:d}=o;return n(typeof f_[c]=="function"?oT(c,d):new Error(d),s)}case c_:return n(BigInt(o),s);case"BigInt":return n(Object(BigInt(o)),s);case"ArrayBuffer":return n(new Uint8Array(o).buffer,o);case"DataView":{const{buffer:c}=new Uint8Array(o);return n(new DataView(c),o)}case"-0":return-0}return n(oT(l,o),s)};return i},cT=e=>hL(new Map,e)(0),La="",{toString:mL}={},{keys:pL,is:gL}=Object,Eu=e=>{const t=typeof e;if(t!=="object"||!e)return[ad,t];const n=mL.call(e).slice(8,-1);switch(n){case"Array":return[Iu,La];case"Object":return[Rf,La];case"Date":return[ig,La];case"RegExp":return[ag,La];case"Map":return[sg,La];case"Set":return[lg,La];case"DataView":return[Iu,n]}return n.includes("Array")?[Iu,n]:e instanceof Error?[o_,e.name||"Error"]:[Rf,n]},Gc=([e,t])=>e===ad&&(t==="function"||t==="symbol"),bL=(e,t,n,i)=>{const s=(o,c)=>{const d=i.push(o)-1;return n.set(c,d),d},l=o=>{if(n.has(o))return n.get(o);let[c,d]=Eu(o);switch(c){case ad:{let m=o;switch(d){case"bigint":c=c_,m=o.toString();break;case"number":if(!o&&gL(o,-0))return i.push(["-0"])-1;break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+d);m=null;break;case"undefined":return s([u_],o)}return s([c,m],o)}case Iu:{if(d){let E=o;return d==="DataView"?E=new Uint8Array(o.buffer):d==="ArrayBuffer"&&(E=new Uint8Array(o)),s([d,[...E]],o)}const m=[],p=s([c,m],o);for(const E of o)m.push(l(E));return p}case Rf:{if(d)switch(d){case"BigInt":return s([d,o.toString()],o);case"Boolean":case"Number":case"String":return s([d,o.valueOf()],o)}if(t&&"toJSON"in o)return l(o.toJSON());const m=[],p=s([c,m],o);for(const E of pL(o))(e||!Gc(Eu(o[E])))&&m.push([l(E),l(o[E])]);return p}case ig:return s([c,isNaN(o.getTime())?La:o.toISOString()],o);case ag:{const{source:m,flags:p}=o;return s([c,{source:m,flags:p}],o)}case sg:{const m=[],p=s([c,m],o);for(const[E,y]of o)(e||!(Gc(Eu(E))||Gc(Eu(y))))&&m.push([l(E),l(y)]);return p}case lg:{const m=[],p=s([c,m],o);for(const E of o)(e||!Gc(Eu(E)))&&m.push(l(E));return p}}const{message:h}=o;return s([c,{name:d,message:h}],o)};return l},fT=(e,{json:t,lossy:n}={})=>{const i=[];return bL(!(t||n),!!t,new Map,i)(e),i},$a=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?cT(fT(e,t)):structuredClone(e):(e,t)=>cT(fT(e,t));class ao{constructor(t,n,i){this.normal=n,this.property=t,i&&(this.space=i)}}ao.prototype.normal={};ao.prototype.property={};ao.prototype.space=void 0;function d_(e,t){const n={},i={};for(const s of e)Object.assign(n,s.property),Object.assign(i,s.normal);return new ao(n,i,t)}function Xu(e){return e.toLowerCase()}class Ln{constructor(t,n){this.attribute=n,this.property=t}}Ln.prototype.attribute="";Ln.prototype.booleanish=!1;Ln.prototype.boolean=!1;Ln.prototype.commaOrSpaceSeparated=!1;Ln.prototype.commaSeparated=!1;Ln.prototype.defined=!1;Ln.prototype.mustUseProperty=!1;Ln.prototype.number=!1;Ln.prototype.overloadedBoolean=!1;Ln.prototype.property="";Ln.prototype.spaceSeparated=!1;Ln.prototype.space=void 0;let yL=0;const Ie=es(),Ht=es(),n0=es(),be=es(),bt=es(),Ua=es(),zn=es();function es(){return 2**++yL}const r0=Object.freeze(Object.defineProperty({__proto__:null,boolean:Ie,booleanish:Ht,commaOrSpaceSeparated:zn,commaSeparated:Ua,number:be,overloadedBoolean:n0,spaceSeparated:bt},Symbol.toStringTag,{value:"Module"})),ap=Object.keys(r0);class ug extends Ln{constructor(t,n,i,s){let l=-1;if(super(t,n),dT(this,"space",s),typeof i=="number")for(;++l<ap.length;){const o=ap[l];dT(this,ap[l],(i&r0[o])===r0[o])}}}ug.prototype.defined=!0;function dT(e,t,n){n&&(e[t]=n)}function yl(e){const t={},n={};for(const[i,s]of Object.entries(e.properties)){const l=new ug(i,e.transform(e.attributes||{},i),s,e.space);e.mustUseProperty&&e.mustUseProperty.includes(i)&&(l.mustUseProperty=!0),t[i]=l,n[Xu(i)]=i,n[Xu(l.attribute)]=i}return new ao(t,n,e.space)}const h_=yl({properties:{ariaActiveDescendant:null,ariaAtomic:Ht,ariaAutoComplete:null,ariaBusy:Ht,ariaChecked:Ht,ariaColCount:be,ariaColIndex:be,ariaColSpan:be,ariaControls:bt,ariaCurrent:null,ariaDescribedBy:bt,ariaDetails:null,ariaDisabled:Ht,ariaDropEffect:bt,ariaErrorMessage:null,ariaExpanded:Ht,ariaFlowTo:bt,ariaGrabbed:Ht,ariaHasPopup:null,ariaHidden:Ht,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:bt,ariaLevel:be,ariaLive:null,ariaModal:Ht,ariaMultiLine:Ht,ariaMultiSelectable:Ht,ariaOrientation:null,ariaOwns:bt,ariaPlaceholder:null,ariaPosInSet:be,ariaPressed:Ht,ariaReadOnly:Ht,ariaRelevant:null,ariaRequired:Ht,ariaRoleDescription:bt,ariaRowCount:be,ariaRowIndex:be,ariaRowSpan:be,ariaSelected:Ht,ariaSetSize:be,ariaSort:null,ariaValueMax:be,ariaValueMin:be,ariaValueNow:be,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function m_(e,t){return t in e?e[t]:t}function p_(e,t){return m_(e,t.toLowerCase())}const EL=yl({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ua,acceptCharset:bt,accessKey:bt,action:null,allow:null,allowFullScreen:Ie,allowPaymentRequest:Ie,allowUserMedia:Ie,alpha:Ie,alt:null,as:null,async:Ie,autoCapitalize:null,autoComplete:bt,autoFocus:Ie,autoPlay:Ie,blocking:bt,capture:null,charSet:null,checked:Ie,cite:null,className:bt,closedBy:null,colorSpace:null,cols:be,colSpan:be,command:null,commandFor:null,content:null,contentEditable:Ht,controls:Ie,controlsList:bt,coords:be|Ua,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Ie,defer:Ie,dir:null,dirName:null,disabled:Ie,download:n0,draggable:Ht,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Ie,formTarget:null,headers:bt,height:be,hidden:n0,high:be,href:null,hrefLang:null,htmlFor:bt,httpEquiv:bt,id:null,imageSizes:null,imageSrcSet:null,inert:Ie,inputMode:null,integrity:null,is:null,isMap:Ie,itemId:null,itemProp:bt,itemRef:bt,itemScope:Ie,itemType:bt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Ie,low:be,manifest:null,max:null,maxLength:be,media:null,method:null,min:null,minLength:be,multiple:Ie,muted:Ie,name:null,nonce:null,noModule:Ie,noValidate:Ie,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:Ie,optimum:be,pattern:null,ping:bt,placeholder:null,playsInline:Ie,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Ie,referrerPolicy:null,rel:bt,required:Ie,reversed:Ie,rows:be,rowSpan:be,sandbox:bt,scope:null,scoped:Ie,seamless:Ie,selected:Ie,shadowRootClonable:Ie,shadowRootCustomElementRegistry:Ie,shadowRootDelegatesFocus:Ie,shadowRootMode:null,shadowRootSerializable:Ie,shape:null,size:be,sizes:null,slot:null,span:be,spellCheck:Ht,src:null,srcDoc:null,srcLang:null,srcSet:null,start:be,step:null,style:null,tabIndex:be,target:null,title:null,translate:null,type:null,typeMustMatch:Ie,useMap:null,value:Ht,width:be,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:bt,axis:null,background:null,bgColor:null,border:be,borderColor:null,bottomMargin:be,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Ie,declare:Ie,event:null,face:null,frame:null,frameBorder:null,hSpace:be,leftMargin:be,link:null,longDesc:null,lowSrc:null,marginHeight:be,marginWidth:be,noResize:Ie,noHref:Ie,noShade:Ie,noWrap:Ie,object:null,profile:null,prompt:null,rev:null,rightMargin:be,rules:null,scheme:null,scrolling:Ht,standby:null,summary:null,text:null,topMargin:be,valueType:null,version:null,vAlign:null,vLink:null,vSpace:be,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:Ie,disablePictureInPicture:Ie,disableRemotePlayback:Ie,exportParts:Ua,part:bt,prefix:null,property:null,results:be,security:null,unselectable:null},space:"html",transform:p_}),xL=yl({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",maskType:"mask-type",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:zn,accentHeight:be,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:be,amplitude:be,arabicForm:null,ascent:be,attributeName:null,attributeType:null,azimuth:be,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:be,by:null,calcMode:null,capHeight:be,className:bt,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:be,diffuseConstant:be,direction:null,display:null,dur:null,divisor:be,dominantBaseline:null,download:Ie,dx:null,dy:null,edgeMode:null,editable:null,elevation:be,enableBackground:null,end:null,event:null,exponent:be,externalResourcesRequired:null,fill:null,fillOpacity:be,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:Ua,g2:Ua,glyphName:Ua,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:be,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:be,horizOriginX:be,horizOriginY:be,id:null,ideographic:be,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:be,k:be,k1:be,k2:be,k3:be,k4:be,kernelMatrix:zn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:be,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:be,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:be,overlineThickness:be,paintOrder:null,panose1:null,path:null,pathLength:be,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:bt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:be,pointsAtY:be,pointsAtZ:be,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:zn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:zn,rev:zn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:zn,requiredFeatures:zn,requiredFonts:zn,requiredFormats:zn,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:be,specularExponent:be,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:be,strikethroughThickness:be,string:null,stroke:null,strokeDashArray:zn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:be,strokeOpacity:be,strokeWidth:null,style:null,surfaceScale:be,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:zn,tabIndex:be,tableValues:null,target:null,targetX:be,targetY:be,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:zn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:be,underlineThickness:be,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:be,values:null,vAlphabetic:be,vMathematical:be,vectorEffect:null,vHanging:be,vIdeographic:be,version:null,vertAdvY:be,vertOriginX:be,vertOriginY:be,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:be,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:m_}),g_=yl({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),b_=yl({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:p_}),y_=yl({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),TL={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"},vL=/[A-Z]/g,hT=/-[a-z]/g,SL=/^data[-\w.:]+$/i;function sd(e,t){const n=Xu(t);let i=t,s=Ln;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&SL.test(t)){if(t.charAt(4)==="-"){const l=t.slice(5).replace(hT,CL);i="data"+l.charAt(0).toUpperCase()+l.slice(1)}else{const l=t.slice(4);if(!hT.test(l)){let o=l.replace(vL,_L);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}s=ug}return new s(i,t)}function _L(e){return"-"+e.toLowerCase()}function CL(e){return e.charAt(1).toUpperCase()}const so=d_([h_,EL,g_,b_,y_],"html"),sa=d_([h_,xL,g_,b_,y_],"svg");function mT(e){const t=[],n=String(e||"");let i=n.indexOf(","),s=0,l=!1;for(;!l;){i===-1&&(i=n.length,l=!0);const o=n.slice(s,i).trim();(o||!l)&&t.push(o),s=i+1,i=n.indexOf(",",s)}return t}function E_(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const pT=/[#.]/g;function AL(e,t){const n=e||"",i={};let s=0,l,o;for(;s<n.length;){pT.lastIndex=s;const c=pT.exec(n),d=n.slice(s,c?c.index:n.length);d&&(l?l==="#"?i.id=d:Array.isArray(i.className)?i.className.push(d):i.className=[d]:o=d,s+=d.length),c&&(l=c[0],s++)}return{type:"element",tagName:o||t||"div",properties:i,children:[]}}function gT(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function x_(e){return e.join(" ").trim()}function T_(e,t,n){const i=n?RL(n):void 0;function s(l,o,...c){let d;if(l==null){d={type:"root",children:[]};const h=o;c.unshift(h)}else{d=AL(l,t);const h=d.tagName.toLowerCase(),m=i?i.get(h):void 0;if(d.tagName=m||h,kL(o))c.unshift(o);else for(const[p,E]of Object.entries(o))wL(e,d.properties,p,E)}for(const h of c)i0(d.children,h);return d.type==="element"&&d.tagName==="template"&&(d.content={type:"root",children:d.children},d.children=[]),d}return s}function kL(e){if(e===null||typeof e!="object"||Array.isArray(e))return!0;if(typeof e.type!="string")return!1;const t=e,n=Object.keys(e);for(const i of n){const s=t[i];if(s&&typeof s=="object"){if(!Array.isArray(s))return!0;const l=s;for(const o of l)if(typeof o!="number"&&typeof o!="string")return!0}}return!!("children"in e&&Array.isArray(e.children))}function wL(e,t,n,i){const s=sd(e,n);let l;if(i!=null){if(typeof i=="number"){if(Number.isNaN(i))return;l=i}else typeof i=="boolean"?l=i:typeof i=="string"?s.spaceSeparated?l=gT(i):s.commaSeparated?l=mT(i):s.commaOrSpaceSeparated?l=gT(mT(i).join(" ")):l=bT(s,s.property,i):Array.isArray(i)?l=[...i]:l=s.property==="style"?NL(i):String(i);if(Array.isArray(l)){const o=[];for(const c of l)o.push(bT(s,s.property,c));l=o}s.property==="className"&&Array.isArray(t.className)&&(l=t.className.concat(l)),t[s.property]=l}}function i0(e,t){if(t!=null)if(typeof t=="number"||typeof t=="string")e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(const n of t)i0(e,n);else if(typeof t=="object"&&"type"in t)t.type==="root"?i0(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function bT(e,t,n){if(typeof n=="string"){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===""||Xu(n)===Xu(t)))return!0}return n}function NL(e){const t=[];for(const[n,i]of Object.entries(e))t.push([n,i].join(": "));return t.join("; ")}function RL(e){const t=new Map;for(const n of e)t.set(n.toLowerCase(),n);return t}const OL=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"],LL=T_(so,"div"),DL=T_(sa,"g",OL);function IL(e){const t=String(e),n=[];return{toOffset:s,toPoint:i};function i(l){if(typeof l=="number"&&l>-1&&l<=t.length){let o=0;for(;;){let c=n[o];if(c===void 0){const d=yT(t,n[o-1]);c=d===-1?t.length+1:d+1,n[o]=c}if(c>l)return{line:o+1,column:l-(o>0?n[o-1]:0)+1,offset:l};o++}}}function s(l){if(l&&typeof l.line=="number"&&typeof l.column=="number"&&!Number.isNaN(l.line)&&!Number.isNaN(l.column)){for(;n.length<l.line;){const c=n[n.length-1],d=yT(t,c),h=d===-1?t.length+1:d+1;if(c===h)break;n.push(h)}const o=(l.line>1?n[l.line-2]:0)+l.column-1;if(o<n[l.line-1])return o}}}function yT(e,t){const n=e.indexOf("\r",t),i=e.indexOf(`
|
|
50
|
+
`,t);return i===-1?n:n===-1||n+1===i?i:n<i?n:i}const Ba={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},v_={}.hasOwnProperty,ML=Object.prototype;function PL(e,t){const n=t||{};return og({file:n.file||void 0,location:!1,schema:n.space==="svg"?sa:so,verbose:n.verbose||!1},e)}function og(e,t){let n;switch(t.nodeName){case"#comment":{const i=t;return n={type:"comment",value:i.data},mf(e,i,n),n}case"#document":case"#document-fragment":{const i=t,s="mode"in i?i.mode==="quirks"||i.mode==="limited-quirks":!1;if(n={type:"root",children:S_(e,t.childNodes),data:{quirksMode:s}},e.file&&e.location){const l=String(e.file),o=IL(l),c=o.toPoint(0),d=o.toPoint(l.length);n.position={start:c,end:d}}return n}case"#documentType":{const i=t;return n={type:"doctype"},mf(e,i,n),n}case"#text":{const i=t;return n={type:"text",value:i.value},mf(e,i,n),n}default:return n=BL(e,t),n}}function S_(e,t){let n=-1;const i=[];for(;++n<t.length;){const s=og(e,t[n]);i.push(s)}return i}function BL(e,t){const n=e.schema;e.schema=t.namespaceURI===Ba.svg?sa:so;let i=-1;const s={};for(;++i<t.attrs.length;){const c=t.attrs[i],d=(c.prefix?c.prefix+":":"")+c.name;v_.call(ML,d)||(s[d]=c.value)}const o=(e.schema.space==="svg"?DL:LL)(t.tagName,s,S_(e,t.childNodes));if(mf(e,t,o),o.tagName==="template"){const c=t,d=c.sourceCodeLocation,h=d&&d.startTag&&tl(d.startTag),m=d&&d.endTag&&tl(d.endTag),p=og(e,c.content);h&&m&&e.file&&(p.position={start:h.end,end:m.start}),o.content=p}return e.schema=n,o}function mf(e,t,n){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const i=jL(e,n,t.sourceCodeLocation);i&&(e.location=!0,n.position=i)}}function jL(e,t,n){const i=tl(n);if(t.type==="element"){const s=t.children[t.children.length-1];if(i&&!n.endTag&&s&&s.position&&s.position.end&&(i.end=Object.assign({},s.position.end)),e.verbose){const l={};let o;if(n.attrs)for(o in n.attrs)v_.call(n.attrs,o)&&(l[sd(e.schema,o).property]=tl(n.attrs[o]));n.startTag;const c=tl(n.startTag),d=n.endTag?tl(n.endTag):void 0,h={opening:c};d&&(h.closing=d),h.properties=l,t.data={position:h}}}return i}function tl(e){const t=ET({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=ET({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:void 0}function ET(e){return e.line&&e.column?e:void 0}const xT={}.hasOwnProperty;function __(e,t){const n=t||{};function i(s,...l){let o=i.invalid;const c=i.handlers;if(s&&xT.call(s,e)){const d=String(s[e]);o=xT.call(c,d)?c[d]:i.unknown}if(o)return o.call(this,s,...l)}return i.handlers=n.handlers||{},i.invalid=n.invalid,i.unknown=n.unknown,i}const HL={},UL={}.hasOwnProperty,C_=__("type",{handlers:{root:FL,element:GL,text:YL,comment:$L,doctype:VL}});function zL(e,t){const i=(t||HL).space;return C_(e,i==="svg"?sa:so)}function FL(e,t){const n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=cg(e.children,n,t),El(e,n),n}function qL(e,t){const n={nodeName:"#document-fragment",childNodes:[]};return n.childNodes=cg(e.children,n,t),El(e,n),n}function VL(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return El(e,t),t}function YL(e){const t={nodeName:"#text",value:e.value,parentNode:null};return El(e,t),t}function $L(e){const t={nodeName:"#comment",data:e.value,parentNode:null};return El(e,t),t}function GL(e,t){const n=t;let i=n;e.type==="element"&&e.tagName.toLowerCase()==="svg"&&n.space==="html"&&(i=sa);const s=[];let l;if(e.properties){for(l in e.properties)if(l!=="children"&&UL.call(e.properties,l)){const d=KL(i,l,e.properties[l]);d&&s.push(d)}}const o=i.space,c={nodeName:e.tagName,tagName:e.tagName,attrs:s,namespaceURI:Ba[o],childNodes:[],parentNode:null};return c.childNodes=cg(e.children,c,i),El(e,c),e.tagName==="template"&&e.content&&(c.content=qL(e.content,i)),c}function KL(e,t,n){const i=sd(e,t);if(n===!1||n===null||n===void 0||typeof n=="number"&&Number.isNaN(n)||!n&&i.boolean)return;Array.isArray(n)&&(n=i.commaSeparated?E_(n):x_(n));const s={name:i.attribute,value:n===!0?"":String(n)};if(i.space&&i.space!=="html"&&i.space!=="svg"){const l=s.name.indexOf(":");l<0?s.prefix="":(s.name=s.name.slice(l+1),s.prefix=i.attribute.slice(0,l)),s.namespace=Ba[i.space]}return s}function cg(e,t,n){let i=-1;const s=[];if(e)for(;++i<e.length;){const l=C_(e[i],n);l.parentNode=t,s.push(l)}return s}function El(e,t){const n=e.position;n&&n.start&&n.end&&(n.start.offset,n.end.offset,t.sourceCodeLocation={startLine:n.start.line,startCol:n.start.column,startOffset:n.start.offset,endLine:n.end.line,endCol:n.end.column,endOffset:n.end.offset})}const XL=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],QL=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),_t="�";var M;(function(e){e[e.EOF=-1]="EOF",e[e.NULL=0]="NULL",e[e.TABULATION=9]="TABULATION",e[e.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",e[e.LINE_FEED=10]="LINE_FEED",e[e.FORM_FEED=12]="FORM_FEED",e[e.SPACE=32]="SPACE",e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.QUOTATION_MARK=34]="QUOTATION_MARK",e[e.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.SOLIDUS=47]="SOLIDUS",e[e.DIGIT_0=48]="DIGIT_0",e[e.DIGIT_9=57]="DIGIT_9",e[e.SEMICOLON=59]="SEMICOLON",e[e.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",e[e.EQUALS_SIGN=61]="EQUALS_SIGN",e[e.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",e[e.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",e[e.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",e[e.GRAVE_ACCENT=96]="GRAVE_ACCENT",e[e.LATIN_SMALL_A=97]="LATIN_SMALL_A",e[e.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(M||(M={}));const wn={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function A_(e){return e>=55296&&e<=57343}function WL(e){return e>=56320&&e<=57343}function ZL(e,t){return(e-55296)*1024+9216+t}function k_(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function w_(e){return e>=64976&&e<=65007||QL.has(e)}var se;(function(e){e.controlCharacterInInputStream="control-character-in-input-stream",e.noncharacterInInputStream="noncharacter-in-input-stream",e.surrogateInInputStream="surrogate-in-input-stream",e.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",e.endTagWithAttributes="end-tag-with-attributes",e.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",e.unexpectedSolidusInTag="unexpected-solidus-in-tag",e.unexpectedNullCharacter="unexpected-null-character",e.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",e.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",e.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",e.missingEndTagName="missing-end-tag-name",e.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",e.unknownNamedCharacterReference="unknown-named-character-reference",e.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",e.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",e.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",e.eofBeforeTagName="eof-before-tag-name",e.eofInTag="eof-in-tag",e.missingAttributeValue="missing-attribute-value",e.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",e.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",e.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",e.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",e.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",e.missingDoctypePublicIdentifier="missing-doctype-public-identifier",e.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",e.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",e.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",e.cdataInHtmlContent="cdata-in-html-content",e.incorrectlyOpenedComment="incorrectly-opened-comment",e.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",e.eofInDoctype="eof-in-doctype",e.nestedComment="nested-comment",e.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",e.eofInComment="eof-in-comment",e.incorrectlyClosedComment="incorrectly-closed-comment",e.eofInCdata="eof-in-cdata",e.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",e.nullCharacterReference="null-character-reference",e.surrogateCharacterReference="surrogate-character-reference",e.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",e.controlCharacterReference="control-character-reference",e.noncharacterCharacterReference="noncharacter-character-reference",e.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",e.missingDoctypeName="missing-doctype-name",e.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",e.duplicateAttribute="duplicate-attribute",e.nonConformingDoctype="non-conforming-doctype",e.missingDoctype="missing-doctype",e.misplacedDoctype="misplaced-doctype",e.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",e.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",e.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",e.openElementsLeftAfterEof="open-elements-left-after-eof",e.abandonedHeadElementChild="abandoned-head-element-child",e.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",e.nestedNoscriptInHead="nested-noscript-in-head",e.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(se||(se={}));const JL=65536;class eD{constructor(t){this.handler=t,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=JL,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+ +(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(t,n){const{line:i,col:s,offset:l}=this,o=s+n,c=l+n;return{code:t,startLine:i,endLine:i,startCol:o,endCol:o,startOffset:c,endOffset:c}}_err(t){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(t,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(t){if(this.pos!==this.html.length-1){const n=this.html.charCodeAt(this.pos+1);if(WL(n))return this.pos++,this._addGap(),ZL(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,M.EOF;return this._err(se.surrogateInInputStream),t}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(t,n){this.html.length>0?this.html+=t:this.html=t,this.endOfChunkHit=!1,this.lastChunkWritten=n}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(t,n){if(this.pos+t.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(n)return this.html.startsWith(t,this.pos);for(let i=0;i<t.length;i++)if((this.html.charCodeAt(this.pos+i)|32)!==t.charCodeAt(i))return!1;return!0}peek(t){const n=this.pos+t;if(n>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,M.EOF;const i=this.html.charCodeAt(n);return i===M.CARRIAGE_RETURN?M.LINE_FEED:i}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,M.EOF;let t=this.html.charCodeAt(this.pos);return t===M.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,M.LINE_FEED):t===M.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,A_(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===M.LINE_FEED||t===M.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){k_(t)?this._err(se.controlCharacterInInputStream):w_(t)&&this._err(se.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var Fe;(function(e){e[e.CHARACTER=0]="CHARACTER",e[e.NULL_CHARACTER=1]="NULL_CHARACTER",e[e.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",e[e.START_TAG=3]="START_TAG",e[e.END_TAG=4]="END_TAG",e[e.COMMENT=5]="COMMENT",e[e.DOCTYPE=6]="DOCTYPE",e[e.EOF=7]="EOF",e[e.HIBERNATION=8]="HIBERNATION"})(Fe||(Fe={}));function N_(e,t){for(let n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null}const tD=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏઑඡ༉༦ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲϏϢϸontourIntegraìȹoɴ\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲy;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱còJTabcdfgorstרׯؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ߂ߐĀiyޱrc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣসে্ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४ĀnrࢃgleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpwਖਛgȀLRlr৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼અઋp;椅y;䐜Ādl੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑඞcy;䐊cute;䅃ƀaeyહાron;䅇dil;䅅;䐝ƀgswે૰ativeƀMTV૨ediumSpace;怋hiĀcn૦ëeryThiîtedĀGLଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷreak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater;EFGLSTஶஷ扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨setĀ;Eೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂෛ෧ขภยา฿ไlig;䅒cute耻Ó䃓Āiyීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲcr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬืde耻Õ䃕es;樷ml耻Ö䃖erĀBP๋Āar๐๓r;怾acĀek๚;揞et;掴arenthesis;揜ҀacfhilorsງຊຏຒດຝະrtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ檻cedesȀ;EST່້扺qual;檯lantEqual;扼ilde;找me;怳Ādpuct;戏ortionĀ;aȥl;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL憒ar;懥eftArrow;懄eiling;按oǵ\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄቕቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHcቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗ĀeiቻDzኀ\0ኇefore;戴a;䎘ĀcnኘkSpace;쀀 Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtèa;䎖r;愨pf;愤cr;쀀𝒵ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒;Eaeiopᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;eᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;eᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰᝃᝈ០៦ᠹᡐᜍ᥈ᥰot;櫭ĀcrᛶkȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀakoᠦᠵĀcn៲ᠣkƀlst֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ;敛;敘;攘;攔;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģbar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;elƀ;bhᥨᥩᥫ䁜;槅sub;柈ŬᥴlĀ;e怢t»pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭒\0᯽\0ᰌƀcprᦲute;䄇̀;abcdsᦿᧀᧄ᧕᧙戩nd;橄rcup;橉Āau᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r;Ecefms᩠ᩢᩫ᪤᪪旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ\0\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»eóɍǧ\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯delprvw᭠᭬᭷ᮂᮬᯔarrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;pᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰻᰿ᱝᱩᱵᲞᲬᲷᴍᵻᶑᶫᶻ᷆᷍ròar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂᳖᳜᳠mƀ;oș᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄĀDoḆᴴoôĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»ṺƀaeiἒἚls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧\0耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₥₰₴⃰℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽ƀ;qsؾٌlanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqrⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0proør;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼ròòΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonóquigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roøurĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨íistĀ;sடr;쀀𝔫ȀEest⩦⩹⩼ƀ;qs⩭ƀ;qs⩴lanôií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast⭕⭚⭟lleìl;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖchimpqu⮽⯍⯙⬄⯤⯯Ȁ;cerല⯆ഷ⯉uå;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭ååഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñĀ;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;cⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācrir;榿;쀀𝔬ͯ\0\0\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕⶥⶨrò᪀Āirⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔǒr;榷rp;榹;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ\0\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ脀¶;l䂶leìЃɩ\0\0m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳ᤈ⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t⾴ïrel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⋢⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔ABHabcdefhilmnoprstuxけさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstwガクシスゼゾダッデナp;極Ā;fゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ìâヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘rrowĀ;tㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowóarpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓ròaòՑ;怏oustĀ;a㈞掱che»mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì耻䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;qኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫwar;椪lig耻ß䃟㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rëƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproøim»ኬsðኞĀas㚺㚮ðrn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈadempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xôheadĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roðtré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜtré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),nD=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);function rD(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=nD.get(e))!==null&&t!==void 0?t:e}var Qt;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(Qt||(Qt={}));const iD=32;var Xi;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(Xi||(Xi={}));function a0(e){return e>=Qt.ZERO&&e<=Qt.NINE}function aD(e){return e>=Qt.UPPER_A&&e<=Qt.UPPER_F||e>=Qt.LOWER_A&&e<=Qt.LOWER_F}function sD(e){return e>=Qt.UPPER_A&&e<=Qt.UPPER_Z||e>=Qt.LOWER_A&&e<=Qt.LOWER_Z||a0(e)}function lD(e){return e===Qt.EQUALS||sD(e)}var Gt;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(Gt||(Gt={}));var ii;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(ii||(ii={}));class uD{constructor(t,n,i){this.decodeTree=t,this.emitCodePoint=n,this.errors=i,this.state=Gt.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=ii.Strict}startEntity(t){this.decodeMode=t,this.state=Gt.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case Gt.EntityStart:return t.charCodeAt(n)===Qt.NUM?(this.state=Gt.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=Gt.NamedEntity,this.stateNamedEntity(t,n));case Gt.NumericStart:return this.stateNumericStart(t,n);case Gt.NumericDecimal:return this.stateNumericDecimal(t,n);case Gt.NumericHex:return this.stateNumericHex(t,n);case Gt.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|iD)===Qt.LOWER_X?(this.state=Gt.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=Gt.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,i,s){if(n!==i){const l=i-n;this.result=this.result*Math.pow(s,l)+Number.parseInt(t.substr(n,l),s),this.consumed+=l}}stateNumericHex(t,n){const i=n;for(;n<t.length;){const s=t.charCodeAt(n);if(a0(s)||aD(s))n+=1;else return this.addToNumericResult(t,i,n,16),this.emitNumericEntity(s,3)}return this.addToNumericResult(t,i,n,16),-1}stateNumericDecimal(t,n){const i=n;for(;n<t.length;){const s=t.charCodeAt(n);if(a0(s))n+=1;else return this.addToNumericResult(t,i,n,10),this.emitNumericEntity(s,2)}return this.addToNumericResult(t,i,n,10),-1}emitNumericEntity(t,n){var i;if(this.consumed<=n)return(i=this.errors)===null||i===void 0||i.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===Qt.SEMI)this.consumed+=1;else if(this.decodeMode===ii.Strict)return 0;return this.emitCodePoint(rD(this.result),this.consumed),this.errors&&(t!==Qt.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,n){const{decodeTree:i}=this;let s=i[this.treeIndex],l=(s&Xi.VALUE_LENGTH)>>14;for(;n<t.length;n++,this.excess++){const o=t.charCodeAt(n);if(this.treeIndex=oD(i,s,this.treeIndex+Math.max(1,l),o),this.treeIndex<0)return this.result===0||this.decodeMode===ii.Attribute&&(l===0||lD(o))?0:this.emitNotTerminatedNamedEntity();if(s=i[this.treeIndex],l=(s&Xi.VALUE_LENGTH)>>14,l!==0){if(o===Qt.SEMI)return this.emitNamedEntityData(this.treeIndex,l,this.consumed+this.excess);this.decodeMode!==ii.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:i}=this,s=(i[n]&Xi.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,s,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,i){const{decodeTree:s}=this;return this.emitCodePoint(n===1?s[t]&~Xi.VALUE_LENGTH:s[t+1],i),n===3&&this.emitCodePoint(s[t+2],i),i}end(){var t;switch(this.state){case Gt.NamedEntity:return this.result!==0&&(this.decodeMode!==ii.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Gt.NumericDecimal:return this.emitNumericEntity(0,2);case Gt.NumericHex:return this.emitNumericEntity(0,3);case Gt.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Gt.EntityStart:return 0}}}function oD(e,t,n,i){const s=(t&Xi.BRANCH_LENGTH)>>7,l=t&Xi.JUMP_TABLE;if(s===0)return l!==0&&i===l?n:-1;if(l){const d=i-l;return d<0||d>=s?-1:e[n+d]-1}let o=n,c=o+s-1;for(;o<=c;){const d=o+c>>>1,h=e[d];if(h<i)o=d+1;else if(h>i)c=d-1;else return e[d+s]}return-1}var me;(function(e){e.HTML="http://www.w3.org/1999/xhtml",e.MATHML="http://www.w3.org/1998/Math/MathML",e.SVG="http://www.w3.org/2000/svg",e.XLINK="http://www.w3.org/1999/xlink",e.XML="http://www.w3.org/XML/1998/namespace",e.XMLNS="http://www.w3.org/2000/xmlns/"})(me||(me={}));var za;(function(e){e.TYPE="type",e.ACTION="action",e.ENCODING="encoding",e.PROMPT="prompt",e.NAME="name",e.COLOR="color",e.FACE="face",e.SIZE="size"})(za||(za={}));var tr;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(tr||(tr={}));var J;(function(e){e.A="a",e.ADDRESS="address",e.ANNOTATION_XML="annotation-xml",e.APPLET="applet",e.AREA="area",e.ARTICLE="article",e.ASIDE="aside",e.B="b",e.BASE="base",e.BASEFONT="basefont",e.BGSOUND="bgsound",e.BIG="big",e.BLOCKQUOTE="blockquote",e.BODY="body",e.BR="br",e.BUTTON="button",e.CAPTION="caption",e.CENTER="center",e.CODE="code",e.COL="col",e.COLGROUP="colgroup",e.DD="dd",e.DESC="desc",e.DETAILS="details",e.DIALOG="dialog",e.DIR="dir",e.DIV="div",e.DL="dl",e.DT="dt",e.EM="em",e.EMBED="embed",e.FIELDSET="fieldset",e.FIGCAPTION="figcaption",e.FIGURE="figure",e.FONT="font",e.FOOTER="footer",e.FOREIGN_OBJECT="foreignObject",e.FORM="form",e.FRAME="frame",e.FRAMESET="frameset",e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.HEAD="head",e.HEADER="header",e.HGROUP="hgroup",e.HR="hr",e.HTML="html",e.I="i",e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.KEYGEN="keygen",e.LABEL="label",e.LI="li",e.LINK="link",e.LISTING="listing",e.MAIN="main",e.MALIGNMARK="malignmark",e.MARQUEE="marquee",e.MATH="math",e.MENU="menu",e.META="meta",e.MGLYPH="mglyph",e.MI="mi",e.MO="mo",e.MN="mn",e.MS="ms",e.MTEXT="mtext",e.NAV="nav",e.NOBR="nobr",e.NOFRAMES="noframes",e.NOEMBED="noembed",e.NOSCRIPT="noscript",e.OBJECT="object",e.OL="ol",e.OPTGROUP="optgroup",e.OPTION="option",e.P="p",e.PARAM="param",e.PLAINTEXT="plaintext",e.PRE="pre",e.RB="rb",e.RP="rp",e.RT="rt",e.RTC="rtc",e.RUBY="ruby",e.S="s",e.SCRIPT="script",e.SEARCH="search",e.SECTION="section",e.SELECT="select",e.SOURCE="source",e.SMALL="small",e.SPAN="span",e.STRIKE="strike",e.STRONG="strong",e.STYLE="style",e.SUB="sub",e.SUMMARY="summary",e.SUP="sup",e.TABLE="table",e.TBODY="tbody",e.TEMPLATE="template",e.TEXTAREA="textarea",e.TFOOT="tfoot",e.TD="td",e.TH="th",e.THEAD="thead",e.TITLE="title",e.TR="tr",e.TRACK="track",e.TT="tt",e.U="u",e.UL="ul",e.SVG="svg",e.VAR="var",e.WBR="wbr",e.XMP="xmp"})(J||(J={}));var x;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.A=1]="A",e[e.ADDRESS=2]="ADDRESS",e[e.ANNOTATION_XML=3]="ANNOTATION_XML",e[e.APPLET=4]="APPLET",e[e.AREA=5]="AREA",e[e.ARTICLE=6]="ARTICLE",e[e.ASIDE=7]="ASIDE",e[e.B=8]="B",e[e.BASE=9]="BASE",e[e.BASEFONT=10]="BASEFONT",e[e.BGSOUND=11]="BGSOUND",e[e.BIG=12]="BIG",e[e.BLOCKQUOTE=13]="BLOCKQUOTE",e[e.BODY=14]="BODY",e[e.BR=15]="BR",e[e.BUTTON=16]="BUTTON",e[e.CAPTION=17]="CAPTION",e[e.CENTER=18]="CENTER",e[e.CODE=19]="CODE",e[e.COL=20]="COL",e[e.COLGROUP=21]="COLGROUP",e[e.DD=22]="DD",e[e.DESC=23]="DESC",e[e.DETAILS=24]="DETAILS",e[e.DIALOG=25]="DIALOG",e[e.DIR=26]="DIR",e[e.DIV=27]="DIV",e[e.DL=28]="DL",e[e.DT=29]="DT",e[e.EM=30]="EM",e[e.EMBED=31]="EMBED",e[e.FIELDSET=32]="FIELDSET",e[e.FIGCAPTION=33]="FIGCAPTION",e[e.FIGURE=34]="FIGURE",e[e.FONT=35]="FONT",e[e.FOOTER=36]="FOOTER",e[e.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",e[e.FORM=38]="FORM",e[e.FRAME=39]="FRAME",e[e.FRAMESET=40]="FRAMESET",e[e.H1=41]="H1",e[e.H2=42]="H2",e[e.H3=43]="H3",e[e.H4=44]="H4",e[e.H5=45]="H5",e[e.H6=46]="H6",e[e.HEAD=47]="HEAD",e[e.HEADER=48]="HEADER",e[e.HGROUP=49]="HGROUP",e[e.HR=50]="HR",e[e.HTML=51]="HTML",e[e.I=52]="I",e[e.IMG=53]="IMG",e[e.IMAGE=54]="IMAGE",e[e.INPUT=55]="INPUT",e[e.IFRAME=56]="IFRAME",e[e.KEYGEN=57]="KEYGEN",e[e.LABEL=58]="LABEL",e[e.LI=59]="LI",e[e.LINK=60]="LINK",e[e.LISTING=61]="LISTING",e[e.MAIN=62]="MAIN",e[e.MALIGNMARK=63]="MALIGNMARK",e[e.MARQUEE=64]="MARQUEE",e[e.MATH=65]="MATH",e[e.MENU=66]="MENU",e[e.META=67]="META",e[e.MGLYPH=68]="MGLYPH",e[e.MI=69]="MI",e[e.MO=70]="MO",e[e.MN=71]="MN",e[e.MS=72]="MS",e[e.MTEXT=73]="MTEXT",e[e.NAV=74]="NAV",e[e.NOBR=75]="NOBR",e[e.NOFRAMES=76]="NOFRAMES",e[e.NOEMBED=77]="NOEMBED",e[e.NOSCRIPT=78]="NOSCRIPT",e[e.OBJECT=79]="OBJECT",e[e.OL=80]="OL",e[e.OPTGROUP=81]="OPTGROUP",e[e.OPTION=82]="OPTION",e[e.P=83]="P",e[e.PARAM=84]="PARAM",e[e.PLAINTEXT=85]="PLAINTEXT",e[e.PRE=86]="PRE",e[e.RB=87]="RB",e[e.RP=88]="RP",e[e.RT=89]="RT",e[e.RTC=90]="RTC",e[e.RUBY=91]="RUBY",e[e.S=92]="S",e[e.SCRIPT=93]="SCRIPT",e[e.SEARCH=94]="SEARCH",e[e.SECTION=95]="SECTION",e[e.SELECT=96]="SELECT",e[e.SOURCE=97]="SOURCE",e[e.SMALL=98]="SMALL",e[e.SPAN=99]="SPAN",e[e.STRIKE=100]="STRIKE",e[e.STRONG=101]="STRONG",e[e.STYLE=102]="STYLE",e[e.SUB=103]="SUB",e[e.SUMMARY=104]="SUMMARY",e[e.SUP=105]="SUP",e[e.TABLE=106]="TABLE",e[e.TBODY=107]="TBODY",e[e.TEMPLATE=108]="TEMPLATE",e[e.TEXTAREA=109]="TEXTAREA",e[e.TFOOT=110]="TFOOT",e[e.TD=111]="TD",e[e.TH=112]="TH",e[e.THEAD=113]="THEAD",e[e.TITLE=114]="TITLE",e[e.TR=115]="TR",e[e.TRACK=116]="TRACK",e[e.TT=117]="TT",e[e.U=118]="U",e[e.UL=119]="UL",e[e.SVG=120]="SVG",e[e.VAR=121]="VAR",e[e.WBR=122]="WBR",e[e.XMP=123]="XMP"})(x||(x={}));const cD=new Map([[J.A,x.A],[J.ADDRESS,x.ADDRESS],[J.ANNOTATION_XML,x.ANNOTATION_XML],[J.APPLET,x.APPLET],[J.AREA,x.AREA],[J.ARTICLE,x.ARTICLE],[J.ASIDE,x.ASIDE],[J.B,x.B],[J.BASE,x.BASE],[J.BASEFONT,x.BASEFONT],[J.BGSOUND,x.BGSOUND],[J.BIG,x.BIG],[J.BLOCKQUOTE,x.BLOCKQUOTE],[J.BODY,x.BODY],[J.BR,x.BR],[J.BUTTON,x.BUTTON],[J.CAPTION,x.CAPTION],[J.CENTER,x.CENTER],[J.CODE,x.CODE],[J.COL,x.COL],[J.COLGROUP,x.COLGROUP],[J.DD,x.DD],[J.DESC,x.DESC],[J.DETAILS,x.DETAILS],[J.DIALOG,x.DIALOG],[J.DIR,x.DIR],[J.DIV,x.DIV],[J.DL,x.DL],[J.DT,x.DT],[J.EM,x.EM],[J.EMBED,x.EMBED],[J.FIELDSET,x.FIELDSET],[J.FIGCAPTION,x.FIGCAPTION],[J.FIGURE,x.FIGURE],[J.FONT,x.FONT],[J.FOOTER,x.FOOTER],[J.FOREIGN_OBJECT,x.FOREIGN_OBJECT],[J.FORM,x.FORM],[J.FRAME,x.FRAME],[J.FRAMESET,x.FRAMESET],[J.H1,x.H1],[J.H2,x.H2],[J.H3,x.H3],[J.H4,x.H4],[J.H5,x.H5],[J.H6,x.H6],[J.HEAD,x.HEAD],[J.HEADER,x.HEADER],[J.HGROUP,x.HGROUP],[J.HR,x.HR],[J.HTML,x.HTML],[J.I,x.I],[J.IMG,x.IMG],[J.IMAGE,x.IMAGE],[J.INPUT,x.INPUT],[J.IFRAME,x.IFRAME],[J.KEYGEN,x.KEYGEN],[J.LABEL,x.LABEL],[J.LI,x.LI],[J.LINK,x.LINK],[J.LISTING,x.LISTING],[J.MAIN,x.MAIN],[J.MALIGNMARK,x.MALIGNMARK],[J.MARQUEE,x.MARQUEE],[J.MATH,x.MATH],[J.MENU,x.MENU],[J.META,x.META],[J.MGLYPH,x.MGLYPH],[J.MI,x.MI],[J.MO,x.MO],[J.MN,x.MN],[J.MS,x.MS],[J.MTEXT,x.MTEXT],[J.NAV,x.NAV],[J.NOBR,x.NOBR],[J.NOFRAMES,x.NOFRAMES],[J.NOEMBED,x.NOEMBED],[J.NOSCRIPT,x.NOSCRIPT],[J.OBJECT,x.OBJECT],[J.OL,x.OL],[J.OPTGROUP,x.OPTGROUP],[J.OPTION,x.OPTION],[J.P,x.P],[J.PARAM,x.PARAM],[J.PLAINTEXT,x.PLAINTEXT],[J.PRE,x.PRE],[J.RB,x.RB],[J.RP,x.RP],[J.RT,x.RT],[J.RTC,x.RTC],[J.RUBY,x.RUBY],[J.S,x.S],[J.SCRIPT,x.SCRIPT],[J.SEARCH,x.SEARCH],[J.SECTION,x.SECTION],[J.SELECT,x.SELECT],[J.SOURCE,x.SOURCE],[J.SMALL,x.SMALL],[J.SPAN,x.SPAN],[J.STRIKE,x.STRIKE],[J.STRONG,x.STRONG],[J.STYLE,x.STYLE],[J.SUB,x.SUB],[J.SUMMARY,x.SUMMARY],[J.SUP,x.SUP],[J.TABLE,x.TABLE],[J.TBODY,x.TBODY],[J.TEMPLATE,x.TEMPLATE],[J.TEXTAREA,x.TEXTAREA],[J.TFOOT,x.TFOOT],[J.TD,x.TD],[J.TH,x.TH],[J.THEAD,x.THEAD],[J.TITLE,x.TITLE],[J.TR,x.TR],[J.TRACK,x.TRACK],[J.TT,x.TT],[J.U,x.U],[J.UL,x.UL],[J.SVG,x.SVG],[J.VAR,x.VAR],[J.WBR,x.WBR],[J.XMP,x.XMP]]);function xl(e){var t;return(t=cD.get(e))!==null&&t!==void 0?t:x.UNKNOWN}const pe=x,fD={[me.HTML]:new Set([pe.ADDRESS,pe.APPLET,pe.AREA,pe.ARTICLE,pe.ASIDE,pe.BASE,pe.BASEFONT,pe.BGSOUND,pe.BLOCKQUOTE,pe.BODY,pe.BR,pe.BUTTON,pe.CAPTION,pe.CENTER,pe.COL,pe.COLGROUP,pe.DD,pe.DETAILS,pe.DIR,pe.DIV,pe.DL,pe.DT,pe.EMBED,pe.FIELDSET,pe.FIGCAPTION,pe.FIGURE,pe.FOOTER,pe.FORM,pe.FRAME,pe.FRAMESET,pe.H1,pe.H2,pe.H3,pe.H4,pe.H5,pe.H6,pe.HEAD,pe.HEADER,pe.HGROUP,pe.HR,pe.HTML,pe.IFRAME,pe.IMG,pe.INPUT,pe.LI,pe.LINK,pe.LISTING,pe.MAIN,pe.MARQUEE,pe.MENU,pe.META,pe.NAV,pe.NOEMBED,pe.NOFRAMES,pe.NOSCRIPT,pe.OBJECT,pe.OL,pe.P,pe.PARAM,pe.PLAINTEXT,pe.PRE,pe.SCRIPT,pe.SECTION,pe.SELECT,pe.SOURCE,pe.STYLE,pe.SUMMARY,pe.TABLE,pe.TBODY,pe.TD,pe.TEMPLATE,pe.TEXTAREA,pe.TFOOT,pe.TH,pe.THEAD,pe.TITLE,pe.TR,pe.TRACK,pe.UL,pe.WBR,pe.XMP]),[me.MATHML]:new Set([pe.MI,pe.MO,pe.MN,pe.MS,pe.MTEXT,pe.ANNOTATION_XML]),[me.SVG]:new Set([pe.TITLE,pe.FOREIGN_OBJECT,pe.DESC]),[me.XLINK]:new Set,[me.XML]:new Set,[me.XMLNS]:new Set},s0=new Set([pe.H1,pe.H2,pe.H3,pe.H4,pe.H5,pe.H6]);J.STYLE,J.SCRIPT,J.XMP,J.IFRAME,J.NOEMBED,J.NOFRAMES,J.PLAINTEXT;var B;(function(e){e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_TAG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="BOGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMMENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMMENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_END_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"})(B||(B={}));const Lt={DATA:B.DATA,RCDATA:B.RCDATA,RAWTEXT:B.RAWTEXT,SCRIPT_DATA:B.SCRIPT_DATA,PLAINTEXT:B.PLAINTEXT,CDATA_SECTION:B.CDATA_SECTION};function dD(e){return e>=M.DIGIT_0&&e<=M.DIGIT_9}function Nu(e){return e>=M.LATIN_CAPITAL_A&&e<=M.LATIN_CAPITAL_Z}function hD(e){return e>=M.LATIN_SMALL_A&&e<=M.LATIN_SMALL_Z}function Yi(e){return hD(e)||Nu(e)}function TT(e){return Yi(e)||dD(e)}function Kc(e){return e+32}function R_(e){return e===M.SPACE||e===M.LINE_FEED||e===M.TABULATION||e===M.FORM_FEED}function vT(e){return R_(e)||e===M.SOLIDUS||e===M.GREATER_THAN_SIGN}function mD(e){return e===M.NULL?se.nullCharacterReference:e>1114111?se.characterReferenceOutsideUnicodeRange:A_(e)?se.surrogateCharacterReference:w_(e)?se.noncharacterCharacterReference:k_(e)||e===M.CARRIAGE_RETURN?se.controlCharacterReference:null}class pD{constructor(t,n){this.options=t,this.handler=n,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=B.DATA,this.returnState=B.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new eD(n),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new uD(tD,(i,s)=>{this.preprocessor.pos=this.entityStartPos+s-1,this._flushCodePointConsumedAsCharacterReference(i)},n.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(se.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:i=>{this._err(se.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+i)},validateNumericCharacterReference:i=>{const s=mD(i);s&&this._err(s,1)}}:void 0)}_err(t,n=0){var i,s;(s=(i=this.handler).onParseError)===null||s===void 0||s.call(i,this.preprocessor.getError(t,n))}getCurrentLocation(t){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-t,startOffset:this.preprocessor.offset-t,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const t=this._consume();this._ensureHibernation()||this._callState(t)}this.inLoop=!1}}pause(){this.paused=!0}resume(t){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||t?.())}write(t,n,i){this.active=!0,this.preprocessor.write(t,n),this._runParsingLoop(),this.paused||i?.()}insertHtmlAtCurrentPos(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(t){this.consumedAfterSnapshot+=t;for(let n=0;n<t;n++)this.preprocessor.advance()}_consumeSequenceIfMatch(t,n){return this.preprocessor.startsWith(t,n)?(this._advanceBy(t.length-1),!0):!1}_createStartTagToken(){this.currentToken={type:Fe.START_TAG,tagName:"",tagID:x.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:Fe.END_TAG,tagName:"",tagID:x.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(t){this.currentToken={type:Fe.COMMENT,data:"",location:this.getCurrentLocation(t)}}_createDoctypeToken(t){this.currentToken={type:Fe.DOCTYPE,name:t,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(t,n){this.currentCharacterToken={type:t,chars:n,location:this.currentLocation}}_createAttr(t){this.currentAttr={name:t,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var t,n;const i=this.currentToken;if(N_(i,this.currentAttr.name)===null){if(i.attrs.push(this.currentAttr),i.location&&this.currentLocation){const s=(t=(n=i.location).attrs)!==null&&t!==void 0?t:n.attrs=Object.create(null);s[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(se.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(t){this._emitCurrentCharacterToken(t.location),this.currentToken=null,t.location&&(t.location.endLine=this.preprocessor.line,t.location.endCol=this.preprocessor.col+1,t.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const t=this.currentToken;this.prepareToken(t),t.tagID=xl(t.tagName),t.type===Fe.START_TAG?(this.lastStartTagName=t.tagName,this.handler.onStartTag(t)):(t.attrs.length>0&&this._err(se.endTagWithAttributes),t.selfClosing&&this._err(se.endTagWithTrailingSolidus),this.handler.onEndTag(t)),this.preprocessor.dropParsedChunk()}emitCurrentComment(t){this.prepareToken(t),this.handler.onComment(t),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(t){this.prepareToken(t),this.handler.onDoctype(t),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(t){if(this.currentCharacterToken){switch(t&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=t.startLine,this.currentCharacterToken.location.endCol=t.startCol,this.currentCharacterToken.location.endOffset=t.startOffset),this.currentCharacterToken.type){case Fe.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case Fe.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case Fe.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const t=this.getCurrentLocation(0);t&&(t.endLine=t.startLine,t.endCol=t.startCol,t.endOffset=t.startOffset),this._emitCurrentCharacterToken(t),this.handler.onEof({type:Fe.EOF,location:t}),this.active=!1}_appendCharToCurrentCharacterToken(t,n){if(this.currentCharacterToken)if(this.currentCharacterToken.type===t){this.currentCharacterToken.chars+=n;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(t,n)}_emitCodePoint(t){const n=R_(t)?Fe.WHITESPACE_CHARACTER:t===M.NULL?Fe.NULL_CHARACTER:Fe.CHARACTER;this._appendCharToCurrentCharacterToken(n,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(Fe.CHARACTER,t)}_startCharacterReference(){this.returnState=this.state,this.state=B.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?ii.Attribute:ii.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===B.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===B.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===B.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case B.DATA:{this._stateData(t);break}case B.RCDATA:{this._stateRcdata(t);break}case B.RAWTEXT:{this._stateRawtext(t);break}case B.SCRIPT_DATA:{this._stateScriptData(t);break}case B.PLAINTEXT:{this._statePlaintext(t);break}case B.TAG_OPEN:{this._stateTagOpen(t);break}case B.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case B.TAG_NAME:{this._stateTagName(t);break}case B.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case B.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case B.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case B.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case B.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case B.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case B.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case B.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case B.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case B.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case B.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case B.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case B.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case B.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case B.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case B.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case B.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case B.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case B.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case B.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case B.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case B.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case B.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case B.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case B.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case B.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case B.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case B.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case B.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case B.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case B.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case B.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case B.BOGUS_COMMENT:{this._stateBogusComment(t);break}case B.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case B.COMMENT_START:{this._stateCommentStart(t);break}case B.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case B.COMMENT:{this._stateComment(t);break}case B.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case B.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case B.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case B.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case B.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case B.COMMENT_END:{this._stateCommentEnd(t);break}case B.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case B.DOCTYPE:{this._stateDoctype(t);break}case B.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case B.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case B.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case B.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case B.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case B.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case B.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case B.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case B.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case B.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case B.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case B.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case B.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case B.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case B.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case B.CDATA_SECTION:{this._stateCdataSection(t);break}case B.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case B.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case B.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case B.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case M.LESS_THAN_SIGN:{this.state=B.TAG_OPEN;break}case M.AMPERSAND:{this._startCharacterReference();break}case M.NULL:{this._err(se.unexpectedNullCharacter),this._emitCodePoint(t);break}case M.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case M.AMPERSAND:{this._startCharacterReference();break}case M.LESS_THAN_SIGN:{this.state=B.RCDATA_LESS_THAN_SIGN;break}case M.NULL:{this._err(se.unexpectedNullCharacter),this._emitChars(_t);break}case M.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case M.LESS_THAN_SIGN:{this.state=B.RAWTEXT_LESS_THAN_SIGN;break}case M.NULL:{this._err(se.unexpectedNullCharacter),this._emitChars(_t);break}case M.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case M.LESS_THAN_SIGN:{this.state=B.SCRIPT_DATA_LESS_THAN_SIGN;break}case M.NULL:{this._err(se.unexpectedNullCharacter),this._emitChars(_t);break}case M.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case M.NULL:{this._err(se.unexpectedNullCharacter),this._emitChars(_t);break}case M.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(Yi(t))this._createStartTagToken(),this.state=B.TAG_NAME,this._stateTagName(t);else switch(t){case M.EXCLAMATION_MARK:{this.state=B.MARKUP_DECLARATION_OPEN;break}case M.SOLIDUS:{this.state=B.END_TAG_OPEN;break}case M.QUESTION_MARK:{this._err(se.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=B.BOGUS_COMMENT,this._stateBogusComment(t);break}case M.EOF:{this._err(se.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(se.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=B.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(Yi(t))this._createEndTagToken(),this.state=B.TAG_NAME,this._stateTagName(t);else switch(t){case M.GREATER_THAN_SIGN:{this._err(se.missingEndTagName),this.state=B.DATA;break}case M.EOF:{this._err(se.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(se.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=B.BOGUS_COMMENT,this._stateBogusComment(t)}}_stateTagName(t){const n=this.currentToken;switch(t){case M.SPACE:case M.LINE_FEED:case M.TABULATION:case M.FORM_FEED:{this.state=B.BEFORE_ATTRIBUTE_NAME;break}case M.SOLIDUS:{this.state=B.SELF_CLOSING_START_TAG;break}case M.GREATER_THAN_SIGN:{this.state=B.DATA,this.emitCurrentTagToken();break}case M.NULL:{this._err(se.unexpectedNullCharacter),n.tagName+=_t;break}case M.EOF:{this._err(se.eofInTag),this._emitEOFToken();break}default:n.tagName+=String.fromCodePoint(Nu(t)?Kc(t):t)}}_stateRcdataLessThanSign(t){t===M.SOLIDUS?this.state=B.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=B.RCDATA,this._stateRcdata(t))}_stateRcdataEndTagOpen(t){Yi(t)?(this.state=B.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(t)):(this._emitChars("</"),this.state=B.RCDATA,this._stateRcdata(t))}handleSpecialEndTag(t){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();const n=this.currentToken;switch(n.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case M.SPACE:case M.LINE_FEED:case M.TABULATION:case M.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=B.BEFORE_ATTRIBUTE_NAME,!1;case M.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=B.SELF_CLOSING_START_TAG,!1;case M.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=B.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=B.RCDATA,this._stateRcdata(t))}_stateRawtextLessThanSign(t){t===M.SOLIDUS?this.state=B.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=B.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagOpen(t){Yi(t)?(this.state=B.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(t)):(this._emitChars("</"),this.state=B.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=B.RAWTEXT,this._stateRawtext(t))}_stateScriptDataLessThanSign(t){switch(t){case M.SOLIDUS:{this.state=B.SCRIPT_DATA_END_TAG_OPEN;break}case M.EXCLAMATION_MARK:{this.state=B.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=B.SCRIPT_DATA,this._stateScriptData(t)}}_stateScriptDataEndTagOpen(t){Yi(t)?(this.state=B.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(t)):(this._emitChars("</"),this.state=B.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=B.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStart(t){t===M.HYPHEN_MINUS?(this.state=B.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=B.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStartDash(t){t===M.HYPHEN_MINUS?(this.state=B.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=B.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscaped(t){switch(t){case M.HYPHEN_MINUS:{this.state=B.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case M.LESS_THAN_SIGN:{this.state=B.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case M.NULL:{this._err(se.unexpectedNullCharacter),this._emitChars(_t);break}case M.EOF:{this._err(se.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataEscapedDash(t){switch(t){case M.HYPHEN_MINUS:{this.state=B.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case M.LESS_THAN_SIGN:{this.state=B.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case M.NULL:{this._err(se.unexpectedNullCharacter),this.state=B.SCRIPT_DATA_ESCAPED,this._emitChars(_t);break}case M.EOF:{this._err(se.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=B.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedDashDash(t){switch(t){case M.HYPHEN_MINUS:{this._emitChars("-");break}case M.LESS_THAN_SIGN:{this.state=B.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case M.GREATER_THAN_SIGN:{this.state=B.SCRIPT_DATA,this._emitChars(">");break}case M.NULL:{this._err(se.unexpectedNullCharacter),this.state=B.SCRIPT_DATA_ESCAPED,this._emitChars(_t);break}case M.EOF:{this._err(se.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=B.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===M.SOLIDUS?this.state=B.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:Yi(t)?(this._emitChars("<"),this.state=B.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=B.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){Yi(t)?(this.state=B.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("</"),this.state=B.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=B.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscapeStart(t){if(this.preprocessor.startsWith(wn.SCRIPT,!1)&&vT(this.preprocessor.peek(wn.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<wn.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=B.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=B.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscaped(t){switch(t){case M.HYPHEN_MINUS:{this.state=B.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case M.LESS_THAN_SIGN:{this.state=B.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case M.NULL:{this._err(se.unexpectedNullCharacter),this._emitChars(_t);break}case M.EOF:{this._err(se.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDash(t){switch(t){case M.HYPHEN_MINUS:{this.state=B.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case M.LESS_THAN_SIGN:{this.state=B.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case M.NULL:{this._err(se.unexpectedNullCharacter),this.state=B.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(_t);break}case M.EOF:{this._err(se.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=B.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDashDash(t){switch(t){case M.HYPHEN_MINUS:{this._emitChars("-");break}case M.LESS_THAN_SIGN:{this.state=B.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case M.GREATER_THAN_SIGN:{this.state=B.SCRIPT_DATA,this._emitChars(">");break}case M.NULL:{this._err(se.unexpectedNullCharacter),this.state=B.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(_t);break}case M.EOF:{this._err(se.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=B.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===M.SOLIDUS?(this.state=B.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=B.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(wn.SCRIPT,!1)&&vT(this.preprocessor.peek(wn.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<wn.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=B.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=B.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateBeforeAttributeName(t){switch(t){case M.SPACE:case M.LINE_FEED:case M.TABULATION:case M.FORM_FEED:break;case M.SOLIDUS:case M.GREATER_THAN_SIGN:case M.EOF:{this.state=B.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case M.EQUALS_SIGN:{this._err(se.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=B.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=B.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateAttributeName(t){switch(t){case M.SPACE:case M.LINE_FEED:case M.TABULATION:case M.FORM_FEED:case M.SOLIDUS:case M.GREATER_THAN_SIGN:case M.EOF:{this._leaveAttrName(),this.state=B.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case M.EQUALS_SIGN:{this._leaveAttrName(),this.state=B.BEFORE_ATTRIBUTE_VALUE;break}case M.QUOTATION_MARK:case M.APOSTROPHE:case M.LESS_THAN_SIGN:{this._err(se.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(t);break}case M.NULL:{this._err(se.unexpectedNullCharacter),this.currentAttr.name+=_t;break}default:this.currentAttr.name+=String.fromCodePoint(Nu(t)?Kc(t):t)}}_stateAfterAttributeName(t){switch(t){case M.SPACE:case M.LINE_FEED:case M.TABULATION:case M.FORM_FEED:break;case M.SOLIDUS:{this.state=B.SELF_CLOSING_START_TAG;break}case M.EQUALS_SIGN:{this.state=B.BEFORE_ATTRIBUTE_VALUE;break}case M.GREATER_THAN_SIGN:{this.state=B.DATA,this.emitCurrentTagToken();break}case M.EOF:{this._err(se.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=B.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateBeforeAttributeValue(t){switch(t){case M.SPACE:case M.LINE_FEED:case M.TABULATION:case M.FORM_FEED:break;case M.QUOTATION_MARK:{this.state=B.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case M.APOSTROPHE:{this.state=B.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case M.GREATER_THAN_SIGN:{this._err(se.missingAttributeValue),this.state=B.DATA,this.emitCurrentTagToken();break}default:this.state=B.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(t)}}_stateAttributeValueDoubleQuoted(t){switch(t){case M.QUOTATION_MARK:{this.state=B.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case M.AMPERSAND:{this._startCharacterReference();break}case M.NULL:{this._err(se.unexpectedNullCharacter),this.currentAttr.value+=_t;break}case M.EOF:{this._err(se.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueSingleQuoted(t){switch(t){case M.APOSTROPHE:{this.state=B.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case M.AMPERSAND:{this._startCharacterReference();break}case M.NULL:{this._err(se.unexpectedNullCharacter),this.currentAttr.value+=_t;break}case M.EOF:{this._err(se.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueUnquoted(t){switch(t){case M.SPACE:case M.LINE_FEED:case M.TABULATION:case M.FORM_FEED:{this._leaveAttrValue(),this.state=B.BEFORE_ATTRIBUTE_NAME;break}case M.AMPERSAND:{this._startCharacterReference();break}case M.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=B.DATA,this.emitCurrentTagToken();break}case M.NULL:{this._err(se.unexpectedNullCharacter),this.currentAttr.value+=_t;break}case M.QUOTATION_MARK:case M.APOSTROPHE:case M.LESS_THAN_SIGN:case M.EQUALS_SIGN:case M.GRAVE_ACCENT:{this._err(se.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(t);break}case M.EOF:{this._err(se.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAfterAttributeValueQuoted(t){switch(t){case M.SPACE:case M.LINE_FEED:case M.TABULATION:case M.FORM_FEED:{this._leaveAttrValue(),this.state=B.BEFORE_ATTRIBUTE_NAME;break}case M.SOLIDUS:{this._leaveAttrValue(),this.state=B.SELF_CLOSING_START_TAG;break}case M.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=B.DATA,this.emitCurrentTagToken();break}case M.EOF:{this._err(se.eofInTag),this._emitEOFToken();break}default:this._err(se.missingWhitespaceBetweenAttributes),this.state=B.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateSelfClosingStartTag(t){switch(t){case M.GREATER_THAN_SIGN:{const n=this.currentToken;n.selfClosing=!0,this.state=B.DATA,this.emitCurrentTagToken();break}case M.EOF:{this._err(se.eofInTag),this._emitEOFToken();break}default:this._err(se.unexpectedSolidusInTag),this.state=B.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateBogusComment(t){const n=this.currentToken;switch(t){case M.GREATER_THAN_SIGN:{this.state=B.DATA,this.emitCurrentComment(n);break}case M.EOF:{this.emitCurrentComment(n),this._emitEOFToken();break}case M.NULL:{this._err(se.unexpectedNullCharacter),n.data+=_t;break}default:n.data+=String.fromCodePoint(t)}}_stateMarkupDeclarationOpen(t){this._consumeSequenceIfMatch(wn.DASH_DASH,!0)?(this._createCommentToken(wn.DASH_DASH.length+1),this.state=B.COMMENT_START):this._consumeSequenceIfMatch(wn.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(wn.DOCTYPE.length+1),this.state=B.DOCTYPE):this._consumeSequenceIfMatch(wn.CDATA_START,!0)?this.inForeignNode?this.state=B.CDATA_SECTION:(this._err(se.cdataInHtmlContent),this._createCommentToken(wn.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=B.BOGUS_COMMENT):this._ensureHibernation()||(this._err(se.incorrectlyOpenedComment),this._createCommentToken(2),this.state=B.BOGUS_COMMENT,this._stateBogusComment(t))}_stateCommentStart(t){switch(t){case M.HYPHEN_MINUS:{this.state=B.COMMENT_START_DASH;break}case M.GREATER_THAN_SIGN:{this._err(se.abruptClosingOfEmptyComment),this.state=B.DATA;const n=this.currentToken;this.emitCurrentComment(n);break}default:this.state=B.COMMENT,this._stateComment(t)}}_stateCommentStartDash(t){const n=this.currentToken;switch(t){case M.HYPHEN_MINUS:{this.state=B.COMMENT_END;break}case M.GREATER_THAN_SIGN:{this._err(se.abruptClosingOfEmptyComment),this.state=B.DATA,this.emitCurrentComment(n);break}case M.EOF:{this._err(se.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=B.COMMENT,this._stateComment(t)}}_stateComment(t){const n=this.currentToken;switch(t){case M.HYPHEN_MINUS:{this.state=B.COMMENT_END_DASH;break}case M.LESS_THAN_SIGN:{n.data+="<",this.state=B.COMMENT_LESS_THAN_SIGN;break}case M.NULL:{this._err(se.unexpectedNullCharacter),n.data+=_t;break}case M.EOF:{this._err(se.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+=String.fromCodePoint(t)}}_stateCommentLessThanSign(t){const n=this.currentToken;switch(t){case M.EXCLAMATION_MARK:{n.data+="!",this.state=B.COMMENT_LESS_THAN_SIGN_BANG;break}case M.LESS_THAN_SIGN:{n.data+="<";break}default:this.state=B.COMMENT,this._stateComment(t)}}_stateCommentLessThanSignBang(t){t===M.HYPHEN_MINUS?this.state=B.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=B.COMMENT,this._stateComment(t))}_stateCommentLessThanSignBangDash(t){t===M.HYPHEN_MINUS?this.state=B.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=B.COMMENT_END_DASH,this._stateCommentEndDash(t))}_stateCommentLessThanSignBangDashDash(t){t!==M.GREATER_THAN_SIGN&&t!==M.EOF&&this._err(se.nestedComment),this.state=B.COMMENT_END,this._stateCommentEnd(t)}_stateCommentEndDash(t){const n=this.currentToken;switch(t){case M.HYPHEN_MINUS:{this.state=B.COMMENT_END;break}case M.EOF:{this._err(se.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=B.COMMENT,this._stateComment(t)}}_stateCommentEnd(t){const n=this.currentToken;switch(t){case M.GREATER_THAN_SIGN:{this.state=B.DATA,this.emitCurrentComment(n);break}case M.EXCLAMATION_MARK:{this.state=B.COMMENT_END_BANG;break}case M.HYPHEN_MINUS:{n.data+="-";break}case M.EOF:{this._err(se.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--",this.state=B.COMMENT,this._stateComment(t)}}_stateCommentEndBang(t){const n=this.currentToken;switch(t){case M.HYPHEN_MINUS:{n.data+="--!",this.state=B.COMMENT_END_DASH;break}case M.GREATER_THAN_SIGN:{this._err(se.incorrectlyClosedComment),this.state=B.DATA,this.emitCurrentComment(n);break}case M.EOF:{this._err(se.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--!",this.state=B.COMMENT,this._stateComment(t)}}_stateDoctype(t){switch(t){case M.SPACE:case M.LINE_FEED:case M.TABULATION:case M.FORM_FEED:{this.state=B.BEFORE_DOCTYPE_NAME;break}case M.GREATER_THAN_SIGN:{this.state=B.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t);break}case M.EOF:{this._err(se.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(se.missingWhitespaceBeforeDoctypeName),this.state=B.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t)}}_stateBeforeDoctypeName(t){if(Nu(t))this._createDoctypeToken(String.fromCharCode(Kc(t))),this.state=B.DOCTYPE_NAME;else switch(t){case M.SPACE:case M.LINE_FEED:case M.TABULATION:case M.FORM_FEED:break;case M.NULL:{this._err(se.unexpectedNullCharacter),this._createDoctypeToken(_t),this.state=B.DOCTYPE_NAME;break}case M.GREATER_THAN_SIGN:{this._err(se.missingDoctypeName),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=B.DATA;break}case M.EOF:{this._err(se.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(t)),this.state=B.DOCTYPE_NAME}}_stateDoctypeName(t){const n=this.currentToken;switch(t){case M.SPACE:case M.LINE_FEED:case M.TABULATION:case M.FORM_FEED:{this.state=B.AFTER_DOCTYPE_NAME;break}case M.GREATER_THAN_SIGN:{this.state=B.DATA,this.emitCurrentDoctype(n);break}case M.NULL:{this._err(se.unexpectedNullCharacter),n.name+=_t;break}case M.EOF:{this._err(se.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.name+=String.fromCodePoint(Nu(t)?Kc(t):t)}}_stateAfterDoctypeName(t){const n=this.currentToken;switch(t){case M.SPACE:case M.LINE_FEED:case M.TABULATION:case M.FORM_FEED:break;case M.GREATER_THAN_SIGN:{this.state=B.DATA,this.emitCurrentDoctype(n);break}case M.EOF:{this._err(se.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(wn.PUBLIC,!1)?this.state=B.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(wn.SYSTEM,!1)?this.state=B.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(se.invalidCharacterSequenceAfterDoctypeName),n.forceQuirks=!0,this.state=B.BOGUS_DOCTYPE,this._stateBogusDoctype(t))}}_stateAfterDoctypePublicKeyword(t){const n=this.currentToken;switch(t){case M.SPACE:case M.LINE_FEED:case M.TABULATION:case M.FORM_FEED:{this.state=B.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case M.QUOTATION_MARK:{this._err(se.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=B.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case M.APOSTROPHE:{this._err(se.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=B.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case M.GREATER_THAN_SIGN:{this._err(se.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=B.DATA,this.emitCurrentDoctype(n);break}case M.EOF:{this._err(se.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(se.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=B.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case M.SPACE:case M.LINE_FEED:case M.TABULATION:case M.FORM_FEED:break;case M.QUOTATION_MARK:{n.publicId="",this.state=B.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case M.APOSTROPHE:{n.publicId="",this.state=B.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case M.GREATER_THAN_SIGN:{this._err(se.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=B.DATA,this.emitCurrentDoctype(n);break}case M.EOF:{this._err(se.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(se.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=B.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypePublicIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case M.QUOTATION_MARK:{this.state=B.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case M.NULL:{this._err(se.unexpectedNullCharacter),n.publicId+=_t;break}case M.GREATER_THAN_SIGN:{this._err(se.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=B.DATA;break}case M.EOF:{this._err(se.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateDoctypePublicIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case M.APOSTROPHE:{this.state=B.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case M.NULL:{this._err(se.unexpectedNullCharacter),n.publicId+=_t;break}case M.GREATER_THAN_SIGN:{this._err(se.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=B.DATA;break}case M.EOF:{this._err(se.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateAfterDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case M.SPACE:case M.LINE_FEED:case M.TABULATION:case M.FORM_FEED:{this.state=B.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case M.GREATER_THAN_SIGN:{this.state=B.DATA,this.emitCurrentDoctype(n);break}case M.QUOTATION_MARK:{this._err(se.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=B.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case M.APOSTROPHE:{this._err(se.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=B.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case M.EOF:{this._err(se.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(se.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=B.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBetweenDoctypePublicAndSystemIdentifiers(t){const n=this.currentToken;switch(t){case M.SPACE:case M.LINE_FEED:case M.TABULATION:case M.FORM_FEED:break;case M.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=B.DATA;break}case M.QUOTATION_MARK:{n.systemId="",this.state=B.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case M.APOSTROPHE:{n.systemId="",this.state=B.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case M.EOF:{this._err(se.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(se.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=B.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateAfterDoctypeSystemKeyword(t){const n=this.currentToken;switch(t){case M.SPACE:case M.LINE_FEED:case M.TABULATION:case M.FORM_FEED:{this.state=B.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case M.QUOTATION_MARK:{this._err(se.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=B.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case M.APOSTROPHE:{this._err(se.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=B.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case M.GREATER_THAN_SIGN:{this._err(se.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=B.DATA,this.emitCurrentDoctype(n);break}case M.EOF:{this._err(se.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(se.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=B.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case M.SPACE:case M.LINE_FEED:case M.TABULATION:case M.FORM_FEED:break;case M.QUOTATION_MARK:{n.systemId="",this.state=B.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case M.APOSTROPHE:{n.systemId="",this.state=B.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case M.GREATER_THAN_SIGN:{this._err(se.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=B.DATA,this.emitCurrentDoctype(n);break}case M.EOF:{this._err(se.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(se.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=B.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypeSystemIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case M.QUOTATION_MARK:{this.state=B.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case M.NULL:{this._err(se.unexpectedNullCharacter),n.systemId+=_t;break}case M.GREATER_THAN_SIGN:{this._err(se.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=B.DATA;break}case M.EOF:{this._err(se.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateDoctypeSystemIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case M.APOSTROPHE:{this.state=B.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case M.NULL:{this._err(se.unexpectedNullCharacter),n.systemId+=_t;break}case M.GREATER_THAN_SIGN:{this._err(se.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=B.DATA;break}case M.EOF:{this._err(se.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateAfterDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case M.SPACE:case M.LINE_FEED:case M.TABULATION:case M.FORM_FEED:break;case M.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=B.DATA;break}case M.EOF:{this._err(se.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(se.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=B.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBogusDoctype(t){const n=this.currentToken;switch(t){case M.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=B.DATA;break}case M.NULL:{this._err(se.unexpectedNullCharacter);break}case M.EOF:{this.emitCurrentDoctype(n),this._emitEOFToken();break}}}_stateCdataSection(t){switch(t){case M.RIGHT_SQUARE_BRACKET:{this.state=B.CDATA_SECTION_BRACKET;break}case M.EOF:{this._err(se.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateCdataSectionBracket(t){t===M.RIGHT_SQUARE_BRACKET?this.state=B.CDATA_SECTION_END:(this._emitChars("]"),this.state=B.CDATA_SECTION,this._stateCdataSection(t))}_stateCdataSectionEnd(t){switch(t){case M.GREATER_THAN_SIGN:{this.state=B.DATA;break}case M.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=B.CDATA_SECTION,this._stateCdataSection(t)}}_stateCharacterReference(){let t=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(t<0)if(this.preprocessor.lastChunkWritten)t=this.entityDecoder.end();else{this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,this.preprocessor.endOfChunkHit=!0;return}t===0?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(M.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&TT(this.preprocessor.peek(1))?B.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(t){TT(t)?this._flushCodePointConsumedAsCharacterReference(t):(t===M.SEMICOLON&&this._err(se.unknownNamedCharacterReference),this.state=this.returnState,this._callState(t))}}const O_=new Set([x.DD,x.DT,x.LI,x.OPTGROUP,x.OPTION,x.P,x.RB,x.RP,x.RT,x.RTC]),ST=new Set([...O_,x.CAPTION,x.COLGROUP,x.TBODY,x.TD,x.TFOOT,x.TH,x.THEAD,x.TR]),Of=new Set([x.APPLET,x.CAPTION,x.HTML,x.MARQUEE,x.OBJECT,x.TABLE,x.TD,x.TEMPLATE,x.TH]),gD=new Set([...Of,x.OL,x.UL]),bD=new Set([...Of,x.BUTTON]),_T=new Set([x.ANNOTATION_XML,x.MI,x.MN,x.MO,x.MS,x.MTEXT]),CT=new Set([x.DESC,x.FOREIGN_OBJECT,x.TITLE]),yD=new Set([x.TR,x.TEMPLATE,x.HTML]),ED=new Set([x.TBODY,x.TFOOT,x.THEAD,x.TEMPLATE,x.HTML]),xD=new Set([x.TABLE,x.TEMPLATE,x.HTML]),TD=new Set([x.TD,x.TH]);class vD{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(t,n,i){this.treeAdapter=n,this.handler=i,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=x.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===x.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===me.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(t,n){this.stackTop++,this.items[this.stackTop]=t,this.current=t,this.tagIDs[this.stackTop]=n,this.currentTagId=n,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(t,n,!0)}pop(){const t=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!0)}replace(t,n){const i=this._indexOf(t);this.items[i]=n,i===this.stackTop&&(this.current=n)}insertAfter(t,n,i){const s=this._indexOf(t)+1;this.items.splice(s,0,n),this.tagIDs.splice(s,0,i),this.stackTop++,s===this.stackTop&&this._updateCurrentElement(),this.current&&this.currentTagId!==void 0&&this.handler.onItemPush(this.current,this.currentTagId,s===this.stackTop)}popUntilTagNamePopped(t){let n=this.stackTop+1;do n=this.tagIDs.lastIndexOf(t,n-1);while(n>0&&this.treeAdapter.getNamespaceURI(this.items[n])!==me.HTML);this.shortenToLength(Math.max(n,0))}shortenToLength(t){for(;this.stackTop>=t;){const n=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(n,this.stackTop<t)}}popUntilElementPopped(t){const n=this._indexOf(t);this.shortenToLength(Math.max(n,0))}popUntilPopped(t,n){const i=this._indexOfTagNames(t,n);this.shortenToLength(Math.max(i,0))}popUntilNumberedHeaderPopped(){this.popUntilPopped(s0,me.HTML)}popUntilTableCellPopped(){this.popUntilPopped(TD,me.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(t,n){for(let i=this.stackTop;i>=0;i--)if(t.has(this.tagIDs[i])&&this.treeAdapter.getNamespaceURI(this.items[i])===n)return i;return-1}clearBackTo(t,n){const i=this._indexOfTagNames(t,n);this.shortenToLength(i+1)}clearBackToTableContext(){this.clearBackTo(xD,me.HTML)}clearBackToTableBodyContext(){this.clearBackTo(ED,me.HTML)}clearBackToTableRowContext(){this.clearBackTo(yD,me.HTML)}remove(t){const n=this._indexOf(t);n>=0&&(n===this.stackTop?this.pop():(this.items.splice(n,1),this.tagIDs.splice(n,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===x.BODY?this.items[1]:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){const n=this._indexOf(t)-1;return n>=0?this.items[n]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===x.HTML}hasInDynamicScope(t,n){for(let i=this.stackTop;i>=0;i--){const s=this.tagIDs[i];switch(this.treeAdapter.getNamespaceURI(this.items[i])){case me.HTML:{if(s===t)return!0;if(n.has(s))return!1;break}case me.SVG:{if(CT.has(s))return!1;break}case me.MATHML:{if(_T.has(s))return!1;break}}}return!0}hasInScope(t){return this.hasInDynamicScope(t,Of)}hasInListItemScope(t){return this.hasInDynamicScope(t,gD)}hasInButtonScope(t){return this.hasInDynamicScope(t,bD)}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t];switch(this.treeAdapter.getNamespaceURI(this.items[t])){case me.HTML:{if(s0.has(n))return!0;if(Of.has(n))return!1;break}case me.SVG:{if(CT.has(n))return!1;break}case me.MATHML:{if(_T.has(n))return!1;break}}}return!0}hasInTableScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===me.HTML)switch(this.tagIDs[n]){case t:return!0;case x.TABLE:case x.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===me.HTML)switch(this.tagIDs[t]){case x.TBODY:case x.THEAD:case x.TFOOT:return!0;case x.TABLE:case x.HTML:return!1}return!0}hasInSelectScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===me.HTML)switch(this.tagIDs[n]){case t:return!0;case x.OPTION:case x.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;this.currentTagId!==void 0&&O_.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;this.currentTagId!==void 0&&ST.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==void 0&&this.currentTagId!==t&&ST.has(this.currentTagId);)this.pop()}}const sp=3;var Cr;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(Cr||(Cr={}));const AT={type:Cr.Marker};class SD{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,n){const i=[],s=n.length,l=this.treeAdapter.getTagName(t),o=this.treeAdapter.getNamespaceURI(t);for(let c=0;c<this.entries.length;c++){const d=this.entries[c];if(d.type===Cr.Marker)break;const{element:h}=d;if(this.treeAdapter.getTagName(h)===l&&this.treeAdapter.getNamespaceURI(h)===o){const m=this.treeAdapter.getAttrList(h);m.length===s&&i.push({idx:c,attrs:m})}}return i}_ensureNoahArkCondition(t){if(this.entries.length<sp)return;const n=this.treeAdapter.getAttrList(t),i=this._getNoahArkConditionCandidates(t,n);if(i.length<sp)return;const s=new Map(n.map(o=>[o.name,o.value]));let l=0;for(let o=0;o<i.length;o++){const c=i[o];c.attrs.every(d=>s.get(d.name)===d.value)&&(l+=1,l>=sp&&this.entries.splice(c.idx,1))}}insertMarker(){this.entries.unshift(AT)}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.unshift({type:Cr.Element,element:t,token:n})}insertElementAfterBookmark(t,n){const i=this.entries.indexOf(this.bookmark);this.entries.splice(i,0,{type:Cr.Element,element:t,token:n})}removeEntry(t){const n=this.entries.indexOf(t);n!==-1&&this.entries.splice(n,1)}clearToLastMarker(){const t=this.entries.indexOf(AT);t===-1?this.entries.length=0:this.entries.splice(0,t+1)}getElementEntryInScopeWithTagName(t){const n=this.entries.find(i=>i.type===Cr.Marker||this.treeAdapter.getTagName(i.element)===t);return n&&n.type===Cr.Element?n:null}getElementEntry(t){return this.entries.find(n=>n.type===Cr.Element&&n.element===t)}}const $i={createDocument(){return{nodeName:"#document",mode:tr.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(e,t,n){return{nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}},createCommentNode(e){return{nodeName:"#comment",data:e,parentNode:null}},createTextNode(e){return{nodeName:"#text",value:e,parentNode:null}},appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,n){const i=e.childNodes.indexOf(n);e.childNodes.splice(i,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,n,i){const s=e.childNodes.find(l=>l.nodeName==="#documentType");if(s)s.name=t,s.publicId=n,s.systemId=i;else{const l={nodeName:"#documentType",name:t,publicId:n,systemId:i,parentNode:null};$i.appendChild(e,l)}},setDocumentMode(e,t){e.mode=t},getDocumentMode(e){return e.mode},detachNode(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){const n=e.childNodes[e.childNodes.length-1];if($i.isTextNode(n)){n.value+=t;return}}$i.appendChild(e,$i.createTextNode(t))},insertTextBefore(e,t,n){const i=e.childNodes[e.childNodes.indexOf(n)-1];i&&$i.isTextNode(i)?i.value+=t:$i.insertBefore(e,$i.createTextNode(t),n)},adoptAttributes(e,t){const n=new Set(e.attrs.map(i=>i.name));for(let i=0;i<t.length;i++)n.has(t[i].name)||e.attrs.push(t[i])},getFirstChild(e){return e.childNodes[0]},getChildNodes(e){return e.childNodes},getParentNode(e){return e.parentNode},getAttrList(e){return e.attrs},getTagName(e){return e.tagName},getNamespaceURI(e){return e.namespaceURI},getTextNodeContent(e){return e.value},getCommentNodeContent(e){return e.data},getDocumentTypeNodeName(e){return e.name},getDocumentTypeNodePublicId(e){return e.publicId},getDocumentTypeNodeSystemId(e){return e.systemId},isTextNode(e){return e.nodeName==="#text"},isCommentNode(e){return e.nodeName==="#comment"},isDocumentTypeNode(e){return e.nodeName==="#documentType"},isElementNode(e){return Object.prototype.hasOwnProperty.call(e,"tagName")},setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation(e){return e.sourceCodeLocation},updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation={...e.sourceCodeLocation,...t}}},L_="html",_D="about:legacy-compat",CD="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",D_=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],AD=[...D_,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],kD=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),I_=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],wD=[...I_,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function kT(e,t){return t.some(n=>e.startsWith(n))}function ND(e){return e.name===L_&&e.publicId===null&&(e.systemId===null||e.systemId===_D)}function RD(e){if(e.name!==L_)return tr.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===CD)return tr.QUIRKS;let{publicId:n}=e;if(n!==null){if(n=n.toLowerCase(),kD.has(n))return tr.QUIRKS;let i=t===null?AD:D_;if(kT(n,i))return tr.QUIRKS;if(i=t===null?I_:wD,kT(n,i))return tr.LIMITED_QUIRKS}return tr.NO_QUIRKS}const wT={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},OD="definitionurl",LD="definitionURL",DD=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e])),ID=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:me.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:me.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:me.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:me.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:me.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:me.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:me.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:me.XML}],["xml:space",{prefix:"xml",name:"space",namespace:me.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:me.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:me.XMLNS}]]),MD=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),PD=new Set([x.B,x.BIG,x.BLOCKQUOTE,x.BODY,x.BR,x.CENTER,x.CODE,x.DD,x.DIV,x.DL,x.DT,x.EM,x.EMBED,x.H1,x.H2,x.H3,x.H4,x.H5,x.H6,x.HEAD,x.HR,x.I,x.IMG,x.LI,x.LISTING,x.MENU,x.META,x.NOBR,x.OL,x.P,x.PRE,x.RUBY,x.S,x.SMALL,x.SPAN,x.STRONG,x.STRIKE,x.SUB,x.SUP,x.TABLE,x.TT,x.U,x.UL,x.VAR]);function BD(e){const t=e.tagID;return t===x.FONT&&e.attrs.some(({name:i})=>i===za.COLOR||i===za.SIZE||i===za.FACE)||PD.has(t)}function M_(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===OD){e.attrs[t].name=LD;break}}function P_(e){for(let t=0;t<e.attrs.length;t++){const n=DD.get(e.attrs[t].name);n!=null&&(e.attrs[t].name=n)}}function fg(e){for(let t=0;t<e.attrs.length;t++){const n=ID.get(e.attrs[t].name);n&&(e.attrs[t].prefix=n.prefix,e.attrs[t].name=n.name,e.attrs[t].namespace=n.namespace)}}function jD(e){const t=MD.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=xl(e.tagName))}function HD(e,t){return t===me.MATHML&&(e===x.MI||e===x.MO||e===x.MN||e===x.MS||e===x.MTEXT)}function UD(e,t,n){if(t===me.MATHML&&e===x.ANNOTATION_XML){for(let i=0;i<n.length;i++)if(n[i].name===za.ENCODING){const s=n[i].value.toLowerCase();return s===wT.TEXT_HTML||s===wT.APPLICATION_XML}}return t===me.SVG&&(e===x.FOREIGN_OBJECT||e===x.DESC||e===x.TITLE)}function zD(e,t,n,i){return(!i||i===me.HTML)&&UD(e,t,n)||(!i||i===me.MATHML)&&HD(e,t)}const FD="hidden",qD=8,VD=3;var F;(function(e){e[e.INITIAL=0]="INITIAL",e[e.BEFORE_HTML=1]="BEFORE_HTML",e[e.BEFORE_HEAD=2]="BEFORE_HEAD",e[e.IN_HEAD=3]="IN_HEAD",e[e.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",e[e.AFTER_HEAD=5]="AFTER_HEAD",e[e.IN_BODY=6]="IN_BODY",e[e.TEXT=7]="TEXT",e[e.IN_TABLE=8]="IN_TABLE",e[e.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",e[e.IN_CAPTION=10]="IN_CAPTION",e[e.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",e[e.IN_TABLE_BODY=12]="IN_TABLE_BODY",e[e.IN_ROW=13]="IN_ROW",e[e.IN_CELL=14]="IN_CELL",e[e.IN_SELECT=15]="IN_SELECT",e[e.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",e[e.IN_TEMPLATE=17]="IN_TEMPLATE",e[e.AFTER_BODY=18]="AFTER_BODY",e[e.IN_FRAMESET=19]="IN_FRAMESET",e[e.AFTER_FRAMESET=20]="AFTER_FRAMESET",e[e.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",e[e.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET"})(F||(F={}));const YD={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},B_=new Set([x.TABLE,x.TBODY,x.TFOOT,x.THEAD,x.TR]),NT={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:$i,onParseError:null};class RT{constructor(t,n,i=null,s=null){this.fragmentContext=i,this.scriptHandler=s,this.currentToken=null,this.stopped=!1,this.insertionMode=F.INITIAL,this.originalInsertionMode=F.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options={...NT,...t},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=n??this.treeAdapter.createDocument(),this.tokenizer=new pD(this.options,this),this.activeFormattingElements=new SD(this.treeAdapter),this.fragmentContextID=i?xl(this.treeAdapter.getTagName(i)):x.UNKNOWN,this._setContextModes(i??this.document,this.fragmentContextID),this.openElements=new vD(this.document,this.treeAdapter,this)}static parse(t,n){const i=new this(n);return i.tokenizer.write(t,!0),i.document}static getFragmentParser(t,n){const i={...NT,...n};t??(t=i.treeAdapter.createElement(J.TEMPLATE,me.HTML,[]));const s=i.treeAdapter.createElement("documentmock",me.HTML,[]),l=new this(i,s,t);return l.fragmentContextID===x.TEMPLATE&&l.tmplInsertionModeStack.unshift(F.IN_TEMPLATE),l._initTokenizerForFragmentParsing(),l._insertFakeRootElement(),l._resetInsertionMode(),l._findFormInFragmentContext(),l}getFragment(){const t=this.treeAdapter.getFirstChild(this.document),n=this.treeAdapter.createDocumentFragment();return this._adoptNodes(t,n),n}_err(t,n,i){var s;if(!this.onParseError)return;const l=(s=t.location)!==null&&s!==void 0?s:YD,o={code:n,startLine:l.startLine,startCol:l.startCol,startOffset:l.startOffset,endLine:i?l.startLine:l.endLine,endCol:i?l.startCol:l.endCol,endOffset:i?l.startOffset:l.endOffset};this.onParseError(o)}onItemPush(t,n,i){var s,l;(l=(s=this.treeAdapter).onItemPush)===null||l===void 0||l.call(s,t),i&&this.openElements.stackTop>0&&this._setContextModes(t,n)}onItemPop(t,n){var i,s;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(t,this.currentToken),(s=(i=this.treeAdapter).onItemPop)===null||s===void 0||s.call(i,t,this.openElements.current),n){let l,o;this.openElements.stackTop===0&&this.fragmentContext?(l=this.fragmentContext,o=this.fragmentContextID):{current:l,currentTagId:o}=this.openElements,this._setContextModes(l,o)}}_setContextModes(t,n){const i=t===this.document||t&&this.treeAdapter.getNamespaceURI(t)===me.HTML;this.currentNotInHTML=!i,this.tokenizer.inForeignNode=!i&&t!==void 0&&n!==void 0&&!this._isIntegrationPoint(n,t)}_switchToTextParsing(t,n){this._insertElement(t,me.HTML),this.tokenizer.state=n,this.originalInsertionMode=this.insertionMode,this.insertionMode=F.TEXT}switchToPlaintextParsing(){this.insertionMode=F.TEXT,this.originalInsertionMode=F.IN_BODY,this.tokenizer.state=Lt.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let t=this.fragmentContext;for(;t;){if(this.treeAdapter.getTagName(t)===J.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==me.HTML))switch(this.fragmentContextID){case x.TITLE:case x.TEXTAREA:{this.tokenizer.state=Lt.RCDATA;break}case x.STYLE:case x.XMP:case x.IFRAME:case x.NOEMBED:case x.NOFRAMES:case x.NOSCRIPT:{this.tokenizer.state=Lt.RAWTEXT;break}case x.SCRIPT:{this.tokenizer.state=Lt.SCRIPT_DATA;break}case x.PLAINTEXT:{this.tokenizer.state=Lt.PLAINTEXT;break}}}_setDocumentType(t){const n=t.name||"",i=t.publicId||"",s=t.systemId||"";if(this.treeAdapter.setDocumentType(this.document,n,i,s),t.location){const o=this.treeAdapter.getChildNodes(this.document).find(c=>this.treeAdapter.isDocumentTypeNode(c));o&&this.treeAdapter.setNodeSourceCodeLocation(o,t.location)}}_attachElementToTree(t,n){if(this.options.sourceCodeLocationInfo){const i=n&&{...n,startTag:n};this.treeAdapter.setNodeSourceCodeLocation(t,i)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{const i=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(i??this.document,t)}}_appendElement(t,n){const i=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(i,t.location)}_insertElement(t,n){const i=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(i,t.location),this.openElements.push(i,t.tagID)}_insertFakeElement(t,n){const i=this.treeAdapter.createElement(t,me.HTML,[]);this._attachElementToTree(i,null),this.openElements.push(i,n)}_insertTemplate(t){const n=this.treeAdapter.createElement(t.tagName,me.HTML,t.attrs),i=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(n,i),this._attachElementToTree(n,t.location),this.openElements.push(n,t.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(i,null)}_insertFakeRootElement(){const t=this.treeAdapter.createElement(J.HTML,me.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,x.HTML)}_appendCommentNode(t,n){const i=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(n,i),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(i,t.location)}_insertCharacters(t){let n,i;if(this._shouldFosterParentOnInsertion()?({parent:n,beforeElement:i}=this._findFosterParentingLocation(),i?this.treeAdapter.insertTextBefore(n,t.chars,i):this.treeAdapter.insertText(n,t.chars)):(n=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(n,t.chars)),!t.location)return;const s=this.treeAdapter.getChildNodes(n),l=i?s.lastIndexOf(i):s.length,o=s[l-1];if(this.treeAdapter.getNodeSourceCodeLocation(o)){const{endLine:d,endCol:h,endOffset:m}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(o,{endLine:d,endCol:h,endOffset:m})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(o,t.location)}_adoptNodes(t,n){for(let i=this.treeAdapter.getFirstChild(t);i;i=this.treeAdapter.getFirstChild(t))this.treeAdapter.detachNode(i),this.treeAdapter.appendChild(n,i)}_setEndLocation(t,n){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&n.location){const i=n.location,s=this.treeAdapter.getTagName(t),l=n.type===Fe.END_TAG&&s===n.tagName?{endTag:{...i},endLine:i.endLine,endCol:i.endCol,endOffset:i.endOffset}:{endLine:i.startLine,endCol:i.startCol,endOffset:i.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(t,l)}}shouldProcessStartTagTokenInForeignContent(t){if(!this.currentNotInHTML)return!1;let n,i;return this.openElements.stackTop===0&&this.fragmentContext?(n=this.fragmentContext,i=this.fragmentContextID):{current:n,currentTagId:i}=this.openElements,t.tagID===x.SVG&&this.treeAdapter.getTagName(n)===J.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(n)===me.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===x.MGLYPH||t.tagID===x.MALIGNMARK)&&i!==void 0&&!this._isIntegrationPoint(i,n,me.HTML)}_processToken(t){switch(t.type){case Fe.CHARACTER:{this.onCharacter(t);break}case Fe.NULL_CHARACTER:{this.onNullCharacter(t);break}case Fe.COMMENT:{this.onComment(t);break}case Fe.DOCTYPE:{this.onDoctype(t);break}case Fe.START_TAG:{this._processStartTag(t);break}case Fe.END_TAG:{this.onEndTag(t);break}case Fe.EOF:{this.onEof(t);break}case Fe.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,n,i){const s=this.treeAdapter.getNamespaceURI(n),l=this.treeAdapter.getAttrList(n);return zD(t,s,l,i)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const n=this.activeFormattingElements.entries.findIndex(s=>s.type===Cr.Marker||this.openElements.contains(s.element)),i=n===-1?t-1:n-1;for(let s=i;s>=0;s--){const l=this.activeFormattingElements.entries[s];this._insertElement(l.token,this.treeAdapter.getNamespaceURI(l.element)),l.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=F.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(x.P),this.openElements.popUntilTagNamePopped(x.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case x.TR:{this.insertionMode=F.IN_ROW;return}case x.TBODY:case x.THEAD:case x.TFOOT:{this.insertionMode=F.IN_TABLE_BODY;return}case x.CAPTION:{this.insertionMode=F.IN_CAPTION;return}case x.COLGROUP:{this.insertionMode=F.IN_COLUMN_GROUP;return}case x.TABLE:{this.insertionMode=F.IN_TABLE;return}case x.BODY:{this.insertionMode=F.IN_BODY;return}case x.FRAMESET:{this.insertionMode=F.IN_FRAMESET;return}case x.SELECT:{this._resetInsertionModeForSelect(t);return}case x.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case x.HTML:{this.insertionMode=this.headElement?F.AFTER_HEAD:F.BEFORE_HEAD;return}case x.TD:case x.TH:{if(t>0){this.insertionMode=F.IN_CELL;return}break}case x.HEAD:{if(t>0){this.insertionMode=F.IN_HEAD;return}break}}this.insertionMode=F.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let n=t-1;n>0;n--){const i=this.openElements.tagIDs[n];if(i===x.TEMPLATE)break;if(i===x.TABLE){this.insertionMode=F.IN_SELECT_IN_TABLE;return}}this.insertionMode=F.IN_SELECT}_isElementCausesFosterParenting(t){return B_.has(t)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this.openElements.currentTagId!==void 0&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let t=this.openElements.stackTop;t>=0;t--){const n=this.openElements.items[t];switch(this.openElements.tagIDs[t]){case x.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(n)===me.HTML)return{parent:this.treeAdapter.getTemplateContent(n),beforeElement:null};break}case x.TABLE:{const i=this.treeAdapter.getParentNode(n);return i?{parent:i,beforeElement:n}:{parent:this.openElements.items[t-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(t){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertBefore(n.parent,t,n.beforeElement):this.treeAdapter.appendChild(n.parent,t)}_isSpecialElement(t,n){const i=this.treeAdapter.getNamespaceURI(t);return fD[i].has(n)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){TM(this,t);return}switch(this.insertionMode){case F.INITIAL:{xu(this,t);break}case F.BEFORE_HTML:{Mu(this,t);break}case F.BEFORE_HEAD:{Pu(this,t);break}case F.IN_HEAD:{Bu(this,t);break}case F.IN_HEAD_NO_SCRIPT:{ju(this,t);break}case F.AFTER_HEAD:{Hu(this,t);break}case F.IN_BODY:case F.IN_CAPTION:case F.IN_CELL:case F.IN_TEMPLATE:{H_(this,t);break}case F.TEXT:case F.IN_SELECT:case F.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case F.IN_TABLE:case F.IN_TABLE_BODY:case F.IN_ROW:{lp(this,t);break}case F.IN_TABLE_TEXT:{Y_(this,t);break}case F.IN_COLUMN_GROUP:{Lf(this,t);break}case F.AFTER_BODY:{Df(this,t);break}case F.AFTER_AFTER_BODY:{pf(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){xM(this,t);return}switch(this.insertionMode){case F.INITIAL:{xu(this,t);break}case F.BEFORE_HTML:{Mu(this,t);break}case F.BEFORE_HEAD:{Pu(this,t);break}case F.IN_HEAD:{Bu(this,t);break}case F.IN_HEAD_NO_SCRIPT:{ju(this,t);break}case F.AFTER_HEAD:{Hu(this,t);break}case F.TEXT:{this._insertCharacters(t);break}case F.IN_TABLE:case F.IN_TABLE_BODY:case F.IN_ROW:{lp(this,t);break}case F.IN_COLUMN_GROUP:{Lf(this,t);break}case F.AFTER_BODY:{Df(this,t);break}case F.AFTER_AFTER_BODY:{pf(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){l0(this,t);return}switch(this.insertionMode){case F.INITIAL:case F.BEFORE_HTML:case F.BEFORE_HEAD:case F.IN_HEAD:case F.IN_HEAD_NO_SCRIPT:case F.AFTER_HEAD:case F.IN_BODY:case F.IN_TABLE:case F.IN_CAPTION:case F.IN_COLUMN_GROUP:case F.IN_TABLE_BODY:case F.IN_ROW:case F.IN_CELL:case F.IN_SELECT:case F.IN_SELECT_IN_TABLE:case F.IN_TEMPLATE:case F.IN_FRAMESET:case F.AFTER_FRAMESET:{l0(this,t);break}case F.IN_TABLE_TEXT:{Tu(this,t);break}case F.AFTER_BODY:{ZD(this,t);break}case F.AFTER_AFTER_BODY:case F.AFTER_AFTER_FRAMESET:{JD(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case F.INITIAL:{eI(this,t);break}case F.BEFORE_HEAD:case F.IN_HEAD:case F.IN_HEAD_NO_SCRIPT:case F.AFTER_HEAD:{this._err(t,se.misplacedDoctype);break}case F.IN_TABLE_TEXT:{Tu(this,t);break}}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,se.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?vM(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case F.INITIAL:{xu(this,t);break}case F.BEFORE_HTML:{tI(this,t);break}case F.BEFORE_HEAD:{rI(this,t);break}case F.IN_HEAD:{pr(this,t);break}case F.IN_HEAD_NO_SCRIPT:{sI(this,t);break}case F.AFTER_HEAD:{uI(this,t);break}case F.IN_BODY:{un(this,t);break}case F.IN_TABLE:{dl(this,t);break}case F.IN_TABLE_TEXT:{Tu(this,t);break}case F.IN_CAPTION:{iM(this,t);break}case F.IN_COLUMN_GROUP:{mg(this,t);break}case F.IN_TABLE_BODY:{od(this,t);break}case F.IN_ROW:{cd(this,t);break}case F.IN_CELL:{lM(this,t);break}case F.IN_SELECT:{K_(this,t);break}case F.IN_SELECT_IN_TABLE:{oM(this,t);break}case F.IN_TEMPLATE:{fM(this,t);break}case F.AFTER_BODY:{hM(this,t);break}case F.IN_FRAMESET:{mM(this,t);break}case F.AFTER_FRAMESET:{gM(this,t);break}case F.AFTER_AFTER_BODY:{yM(this,t);break}case F.AFTER_AFTER_FRAMESET:{EM(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?SM(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case F.INITIAL:{xu(this,t);break}case F.BEFORE_HTML:{nI(this,t);break}case F.BEFORE_HEAD:{iI(this,t);break}case F.IN_HEAD:{aI(this,t);break}case F.IN_HEAD_NO_SCRIPT:{lI(this,t);break}case F.AFTER_HEAD:{oI(this,t);break}case F.IN_BODY:{ud(this,t);break}case F.TEXT:{KI(this,t);break}case F.IN_TABLE:{Qu(this,t);break}case F.IN_TABLE_TEXT:{Tu(this,t);break}case F.IN_CAPTION:{aM(this,t);break}case F.IN_COLUMN_GROUP:{sM(this,t);break}case F.IN_TABLE_BODY:{u0(this,t);break}case F.IN_ROW:{G_(this,t);break}case F.IN_CELL:{uM(this,t);break}case F.IN_SELECT:{X_(this,t);break}case F.IN_SELECT_IN_TABLE:{cM(this,t);break}case F.IN_TEMPLATE:{dM(this,t);break}case F.AFTER_BODY:{W_(this,t);break}case F.IN_FRAMESET:{pM(this,t);break}case F.AFTER_FRAMESET:{bM(this,t);break}case F.AFTER_AFTER_BODY:{pf(this,t);break}}}onEof(t){switch(this.insertionMode){case F.INITIAL:{xu(this,t);break}case F.BEFORE_HTML:{Mu(this,t);break}case F.BEFORE_HEAD:{Pu(this,t);break}case F.IN_HEAD:{Bu(this,t);break}case F.IN_HEAD_NO_SCRIPT:{ju(this,t);break}case F.AFTER_HEAD:{Hu(this,t);break}case F.IN_BODY:case F.IN_TABLE:case F.IN_CAPTION:case F.IN_COLUMN_GROUP:case F.IN_TABLE_BODY:case F.IN_ROW:case F.IN_CELL:case F.IN_SELECT:case F.IN_SELECT_IN_TABLE:{q_(this,t);break}case F.TEXT:{XI(this,t);break}case F.IN_TABLE_TEXT:{Tu(this,t);break}case F.IN_TEMPLATE:{Q_(this,t);break}case F.AFTER_BODY:case F.IN_FRAMESET:case F.AFTER_FRAMESET:case F.AFTER_AFTER_BODY:case F.AFTER_AFTER_FRAMESET:{hg(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===M.LINE_FEED)){if(t.chars.length===1)return;t.chars=t.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(t);return}switch(this.insertionMode){case F.IN_HEAD:case F.IN_HEAD_NO_SCRIPT:case F.AFTER_HEAD:case F.TEXT:case F.IN_COLUMN_GROUP:case F.IN_SELECT:case F.IN_SELECT_IN_TABLE:case F.IN_FRAMESET:case F.AFTER_FRAMESET:{this._insertCharacters(t);break}case F.IN_BODY:case F.IN_CAPTION:case F.IN_CELL:case F.IN_TEMPLATE:case F.AFTER_BODY:case F.AFTER_AFTER_BODY:case F.AFTER_AFTER_FRAMESET:{j_(this,t);break}case F.IN_TABLE:case F.IN_TABLE_BODY:case F.IN_ROW:{lp(this,t);break}case F.IN_TABLE_TEXT:{V_(this,t);break}}}}function $D(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagID)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):F_(e,t),n}function GD(e,t){let n=null,i=e.openElements.stackTop;for(;i>=0;i--){const s=e.openElements.items[i];if(s===t.element)break;e._isSpecialElement(s,e.openElements.tagIDs[i])&&(n=s)}return n||(e.openElements.shortenToLength(Math.max(i,0)),e.activeFormattingElements.removeEntry(t)),n}function KD(e,t,n){let i=t,s=e.openElements.getCommonAncestor(t);for(let l=0,o=s;o!==n;l++,o=s){s=e.openElements.getCommonAncestor(o);const c=e.activeFormattingElements.getElementEntry(o),d=c&&l>=VD;!c||d?(d&&e.activeFormattingElements.removeEntry(c),e.openElements.remove(o)):(o=XD(e,c),i===t&&(e.activeFormattingElements.bookmark=c),e.treeAdapter.detachNode(i),e.treeAdapter.appendChild(o,i),i=o)}return i}function XD(e,t){const n=e.treeAdapter.getNamespaceURI(t.element),i=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,i),t.element=i,i}function QD(e,t,n){const i=e.treeAdapter.getTagName(t),s=xl(i);if(e._isElementCausesFosterParenting(s))e._fosterParentElement(n);else{const l=e.treeAdapter.getNamespaceURI(t);s===x.TEMPLATE&&l===me.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function WD(e,t,n){const i=e.treeAdapter.getNamespaceURI(n.element),{token:s}=n,l=e.treeAdapter.createElement(s.tagName,i,s.attrs);e._adoptNodes(t,l),e.treeAdapter.appendChild(t,l),e.activeFormattingElements.insertElementAfterBookmark(l,s),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,l,s.tagID)}function dg(e,t){for(let n=0;n<qD;n++){const i=$D(e,t);if(!i)break;const s=GD(e,i);if(!s)break;e.activeFormattingElements.bookmark=i;const l=KD(e,s,i.element),o=e.openElements.getCommonAncestor(i.element);e.treeAdapter.detachNode(l),o&&QD(e,o,l),WD(e,s,i)}}function l0(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function ZD(e,t){e._appendCommentNode(t,e.openElements.items[0])}function JD(e,t){e._appendCommentNode(t,e.document)}function hg(e,t){if(e.stopped=!0,t.location){const n=e.fragmentContext?0:2;for(let i=e.openElements.stackTop;i>=n;i--)e._setEndLocation(e.openElements.items[i],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const i=e.openElements.items[0],s=e.treeAdapter.getNodeSourceCodeLocation(i);if(s&&!s.endTag&&(e._setEndLocation(i,t),e.openElements.stackTop>=1)){const l=e.openElements.items[1],o=e.treeAdapter.getNodeSourceCodeLocation(l);o&&!o.endTag&&e._setEndLocation(l,t)}}}}function eI(e,t){e._setDocumentType(t);const n=t.forceQuirks?tr.QUIRKS:RD(t);ND(t)||e._err(t,se.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=F.BEFORE_HTML}function xu(e,t){e._err(t,se.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,tr.QUIRKS),e.insertionMode=F.BEFORE_HTML,e._processToken(t)}function tI(e,t){t.tagID===x.HTML?(e._insertElement(t,me.HTML),e.insertionMode=F.BEFORE_HEAD):Mu(e,t)}function nI(e,t){const n=t.tagID;(n===x.HTML||n===x.HEAD||n===x.BODY||n===x.BR)&&Mu(e,t)}function Mu(e,t){e._insertFakeRootElement(),e.insertionMode=F.BEFORE_HEAD,e._processToken(t)}function rI(e,t){switch(t.tagID){case x.HTML:{un(e,t);break}case x.HEAD:{e._insertElement(t,me.HTML),e.headElement=e.openElements.current,e.insertionMode=F.IN_HEAD;break}default:Pu(e,t)}}function iI(e,t){const n=t.tagID;n===x.HEAD||n===x.BODY||n===x.HTML||n===x.BR?Pu(e,t):e._err(t,se.endTagWithoutMatchingOpenElement)}function Pu(e,t){e._insertFakeElement(J.HEAD,x.HEAD),e.headElement=e.openElements.current,e.insertionMode=F.IN_HEAD,e._processToken(t)}function pr(e,t){switch(t.tagID){case x.HTML:{un(e,t);break}case x.BASE:case x.BASEFONT:case x.BGSOUND:case x.LINK:case x.META:{e._appendElement(t,me.HTML),t.ackSelfClosing=!0;break}case x.TITLE:{e._switchToTextParsing(t,Lt.RCDATA);break}case x.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,Lt.RAWTEXT):(e._insertElement(t,me.HTML),e.insertionMode=F.IN_HEAD_NO_SCRIPT);break}case x.NOFRAMES:case x.STYLE:{e._switchToTextParsing(t,Lt.RAWTEXT);break}case x.SCRIPT:{e._switchToTextParsing(t,Lt.SCRIPT_DATA);break}case x.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=F.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(F.IN_TEMPLATE);break}case x.HEAD:{e._err(t,se.misplacedStartTagForHeadElement);break}default:Bu(e,t)}}function aI(e,t){switch(t.tagID){case x.HEAD:{e.openElements.pop(),e.insertionMode=F.AFTER_HEAD;break}case x.BODY:case x.BR:case x.HTML:{Bu(e,t);break}case x.TEMPLATE:{ts(e,t);break}default:e._err(t,se.endTagWithoutMatchingOpenElement)}}function ts(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==x.TEMPLATE&&e._err(t,se.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(x.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,se.endTagWithoutMatchingOpenElement)}function Bu(e,t){e.openElements.pop(),e.insertionMode=F.AFTER_HEAD,e._processToken(t)}function sI(e,t){switch(t.tagID){case x.HTML:{un(e,t);break}case x.BASEFONT:case x.BGSOUND:case x.HEAD:case x.LINK:case x.META:case x.NOFRAMES:case x.STYLE:{pr(e,t);break}case x.NOSCRIPT:{e._err(t,se.nestedNoscriptInHead);break}default:ju(e,t)}}function lI(e,t){switch(t.tagID){case x.NOSCRIPT:{e.openElements.pop(),e.insertionMode=F.IN_HEAD;break}case x.BR:{ju(e,t);break}default:e._err(t,se.endTagWithoutMatchingOpenElement)}}function ju(e,t){const n=t.type===Fe.EOF?se.openElementsLeftAfterEof:se.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=F.IN_HEAD,e._processToken(t)}function uI(e,t){switch(t.tagID){case x.HTML:{un(e,t);break}case x.BODY:{e._insertElement(t,me.HTML),e.framesetOk=!1,e.insertionMode=F.IN_BODY;break}case x.FRAMESET:{e._insertElement(t,me.HTML),e.insertionMode=F.IN_FRAMESET;break}case x.BASE:case x.BASEFONT:case x.BGSOUND:case x.LINK:case x.META:case x.NOFRAMES:case x.SCRIPT:case x.STYLE:case x.TEMPLATE:case x.TITLE:{e._err(t,se.abandonedHeadElementChild),e.openElements.push(e.headElement,x.HEAD),pr(e,t),e.openElements.remove(e.headElement);break}case x.HEAD:{e._err(t,se.misplacedStartTagForHeadElement);break}default:Hu(e,t)}}function oI(e,t){switch(t.tagID){case x.BODY:case x.HTML:case x.BR:{Hu(e,t);break}case x.TEMPLATE:{ts(e,t);break}default:e._err(t,se.endTagWithoutMatchingOpenElement)}}function Hu(e,t){e._insertFakeElement(J.BODY,x.BODY),e.insertionMode=F.IN_BODY,ld(e,t)}function ld(e,t){switch(t.type){case Fe.CHARACTER:{H_(e,t);break}case Fe.WHITESPACE_CHARACTER:{j_(e,t);break}case Fe.COMMENT:{l0(e,t);break}case Fe.START_TAG:{un(e,t);break}case Fe.END_TAG:{ud(e,t);break}case Fe.EOF:{q_(e,t);break}}}function j_(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function H_(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function cI(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function fI(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function dI(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,me.HTML),e.insertionMode=F.IN_FRAMESET)}function hI(e,t){e.openElements.hasInButtonScope(x.P)&&e._closePElement(),e._insertElement(t,me.HTML)}function mI(e,t){e.openElements.hasInButtonScope(x.P)&&e._closePElement(),e.openElements.currentTagId!==void 0&&s0.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,me.HTML)}function pI(e,t){e.openElements.hasInButtonScope(x.P)&&e._closePElement(),e._insertElement(t,me.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function gI(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(x.P)&&e._closePElement(),e._insertElement(t,me.HTML),n||(e.formElement=e.openElements.current))}function bI(e,t){e.framesetOk=!1;const n=t.tagID;for(let i=e.openElements.stackTop;i>=0;i--){const s=e.openElements.tagIDs[i];if(n===x.LI&&s===x.LI||(n===x.DD||n===x.DT)&&(s===x.DD||s===x.DT)){e.openElements.generateImpliedEndTagsWithExclusion(s),e.openElements.popUntilTagNamePopped(s);break}if(s!==x.ADDRESS&&s!==x.DIV&&s!==x.P&&e._isSpecialElement(e.openElements.items[i],s))break}e.openElements.hasInButtonScope(x.P)&&e._closePElement(),e._insertElement(t,me.HTML)}function yI(e,t){e.openElements.hasInButtonScope(x.P)&&e._closePElement(),e._insertElement(t,me.HTML),e.tokenizer.state=Lt.PLAINTEXT}function EI(e,t){e.openElements.hasInScope(x.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(x.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,me.HTML),e.framesetOk=!1}function xI(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(J.A);n&&(dg(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,me.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function TI(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,me.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function vI(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(x.NOBR)&&(dg(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,me.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function SI(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,me.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function _I(e,t){e.treeAdapter.getDocumentMode(e.document)!==tr.QUIRKS&&e.openElements.hasInButtonScope(x.P)&&e._closePElement(),e._insertElement(t,me.HTML),e.framesetOk=!1,e.insertionMode=F.IN_TABLE}function U_(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,me.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function z_(e){const t=N_(e,za.TYPE);return t!=null&&t.toLowerCase()===FD}function CI(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,me.HTML),z_(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function AI(e,t){e._appendElement(t,me.HTML),t.ackSelfClosing=!0}function kI(e,t){e.openElements.hasInButtonScope(x.P)&&e._closePElement(),e._appendElement(t,me.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function wI(e,t){t.tagName=J.IMG,t.tagID=x.IMG,U_(e,t)}function NI(e,t){e._insertElement(t,me.HTML),e.skipNextNewLine=!0,e.tokenizer.state=Lt.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=F.TEXT}function RI(e,t){e.openElements.hasInButtonScope(x.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,Lt.RAWTEXT)}function OI(e,t){e.framesetOk=!1,e._switchToTextParsing(t,Lt.RAWTEXT)}function OT(e,t){e._switchToTextParsing(t,Lt.RAWTEXT)}function LI(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,me.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===F.IN_TABLE||e.insertionMode===F.IN_CAPTION||e.insertionMode===F.IN_TABLE_BODY||e.insertionMode===F.IN_ROW||e.insertionMode===F.IN_CELL?F.IN_SELECT_IN_TABLE:F.IN_SELECT}function DI(e,t){e.openElements.currentTagId===x.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,me.HTML)}function II(e,t){e.openElements.hasInScope(x.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,me.HTML)}function MI(e,t){e.openElements.hasInScope(x.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(x.RTC),e._insertElement(t,me.HTML)}function PI(e,t){e._reconstructActiveFormattingElements(),M_(t),fg(t),t.selfClosing?e._appendElement(t,me.MATHML):e._insertElement(t,me.MATHML),t.ackSelfClosing=!0}function BI(e,t){e._reconstructActiveFormattingElements(),P_(t),fg(t),t.selfClosing?e._appendElement(t,me.SVG):e._insertElement(t,me.SVG),t.ackSelfClosing=!0}function LT(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,me.HTML)}function un(e,t){switch(t.tagID){case x.I:case x.S:case x.B:case x.U:case x.EM:case x.TT:case x.BIG:case x.CODE:case x.FONT:case x.SMALL:case x.STRIKE:case x.STRONG:{TI(e,t);break}case x.A:{xI(e,t);break}case x.H1:case x.H2:case x.H3:case x.H4:case x.H5:case x.H6:{mI(e,t);break}case x.P:case x.DL:case x.OL:case x.UL:case x.DIV:case x.DIR:case x.NAV:case x.MAIN:case x.MENU:case x.ASIDE:case x.CENTER:case x.FIGURE:case x.FOOTER:case x.HEADER:case x.HGROUP:case x.DIALOG:case x.DETAILS:case x.ADDRESS:case x.ARTICLE:case x.SEARCH:case x.SECTION:case x.SUMMARY:case x.FIELDSET:case x.BLOCKQUOTE:case x.FIGCAPTION:{hI(e,t);break}case x.LI:case x.DD:case x.DT:{bI(e,t);break}case x.BR:case x.IMG:case x.WBR:case x.AREA:case x.EMBED:case x.KEYGEN:{U_(e,t);break}case x.HR:{kI(e,t);break}case x.RB:case x.RTC:{II(e,t);break}case x.RT:case x.RP:{MI(e,t);break}case x.PRE:case x.LISTING:{pI(e,t);break}case x.XMP:{RI(e,t);break}case x.SVG:{BI(e,t);break}case x.HTML:{cI(e,t);break}case x.BASE:case x.LINK:case x.META:case x.STYLE:case x.TITLE:case x.SCRIPT:case x.BGSOUND:case x.BASEFONT:case x.TEMPLATE:{pr(e,t);break}case x.BODY:{fI(e,t);break}case x.FORM:{gI(e,t);break}case x.NOBR:{vI(e,t);break}case x.MATH:{PI(e,t);break}case x.TABLE:{_I(e,t);break}case x.INPUT:{CI(e,t);break}case x.PARAM:case x.TRACK:case x.SOURCE:{AI(e,t);break}case x.IMAGE:{wI(e,t);break}case x.BUTTON:{EI(e,t);break}case x.APPLET:case x.OBJECT:case x.MARQUEE:{SI(e,t);break}case x.IFRAME:{OI(e,t);break}case x.SELECT:{LI(e,t);break}case x.OPTION:case x.OPTGROUP:{DI(e,t);break}case x.NOEMBED:case x.NOFRAMES:{OT(e,t);break}case x.FRAMESET:{dI(e,t);break}case x.TEXTAREA:{NI(e,t);break}case x.NOSCRIPT:{e.options.scriptingEnabled?OT(e,t):LT(e,t);break}case x.PLAINTEXT:{yI(e,t);break}case x.COL:case x.TH:case x.TD:case x.TR:case x.HEAD:case x.FRAME:case x.TBODY:case x.TFOOT:case x.THEAD:case x.CAPTION:case x.COLGROUP:break;default:LT(e,t)}}function jI(e,t){if(e.openElements.hasInScope(x.BODY)&&(e.insertionMode=F.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}function HI(e,t){e.openElements.hasInScope(x.BODY)&&(e.insertionMode=F.AFTER_BODY,W_(e,t))}function UI(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function zI(e){const t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(x.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(x.FORM):n&&e.openElements.remove(n))}function FI(e){e.openElements.hasInButtonScope(x.P)||e._insertFakeElement(J.P,x.P),e._closePElement()}function qI(e){e.openElements.hasInListItemScope(x.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(x.LI),e.openElements.popUntilTagNamePopped(x.LI))}function VI(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function YI(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function $I(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function GI(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(J.BR,x.BR),e.openElements.pop(),e.framesetOk=!1}function F_(e,t){const n=t.tagName,i=t.tagID;for(let s=e.openElements.stackTop;s>0;s--){const l=e.openElements.items[s],o=e.openElements.tagIDs[s];if(i===o&&(i!==x.UNKNOWN||e.treeAdapter.getTagName(l)===n)){e.openElements.generateImpliedEndTagsWithExclusion(i),e.openElements.stackTop>=s&&e.openElements.shortenToLength(s);break}if(e._isSpecialElement(l,o))break}}function ud(e,t){switch(t.tagID){case x.A:case x.B:case x.I:case x.S:case x.U:case x.EM:case x.TT:case x.BIG:case x.CODE:case x.FONT:case x.NOBR:case x.SMALL:case x.STRIKE:case x.STRONG:{dg(e,t);break}case x.P:{FI(e);break}case x.DL:case x.UL:case x.OL:case x.DIR:case x.DIV:case x.NAV:case x.PRE:case x.MAIN:case x.MENU:case x.ASIDE:case x.BUTTON:case x.CENTER:case x.FIGURE:case x.FOOTER:case x.HEADER:case x.HGROUP:case x.DIALOG:case x.ADDRESS:case x.ARTICLE:case x.DETAILS:case x.SEARCH:case x.SECTION:case x.SUMMARY:case x.LISTING:case x.FIELDSET:case x.BLOCKQUOTE:case x.FIGCAPTION:{UI(e,t);break}case x.LI:{qI(e);break}case x.DD:case x.DT:{VI(e,t);break}case x.H1:case x.H2:case x.H3:case x.H4:case x.H5:case x.H6:{YI(e);break}case x.BR:{GI(e);break}case x.BODY:{jI(e,t);break}case x.HTML:{HI(e,t);break}case x.FORM:{zI(e);break}case x.APPLET:case x.OBJECT:case x.MARQUEE:{$I(e,t);break}case x.TEMPLATE:{ts(e,t);break}default:F_(e,t)}}function q_(e,t){e.tmplInsertionModeStack.length>0?Q_(e,t):hg(e,t)}function KI(e,t){var n;t.tagID===x.SCRIPT&&((n=e.scriptHandler)===null||n===void 0||n.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function XI(e,t){e._err(t,se.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function lp(e,t){if(e.openElements.currentTagId!==void 0&&B_.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=F.IN_TABLE_TEXT,t.type){case Fe.CHARACTER:{Y_(e,t);break}case Fe.WHITESPACE_CHARACTER:{V_(e,t);break}}else lo(e,t)}function QI(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,me.HTML),e.insertionMode=F.IN_CAPTION}function WI(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,me.HTML),e.insertionMode=F.IN_COLUMN_GROUP}function ZI(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(J.COLGROUP,x.COLGROUP),e.insertionMode=F.IN_COLUMN_GROUP,mg(e,t)}function JI(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,me.HTML),e.insertionMode=F.IN_TABLE_BODY}function eM(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(J.TBODY,x.TBODY),e.insertionMode=F.IN_TABLE_BODY,od(e,t)}function tM(e,t){e.openElements.hasInTableScope(x.TABLE)&&(e.openElements.popUntilTagNamePopped(x.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function nM(e,t){z_(t)?e._appendElement(t,me.HTML):lo(e,t),t.ackSelfClosing=!0}function rM(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,me.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function dl(e,t){switch(t.tagID){case x.TD:case x.TH:case x.TR:{eM(e,t);break}case x.STYLE:case x.SCRIPT:case x.TEMPLATE:{pr(e,t);break}case x.COL:{ZI(e,t);break}case x.FORM:{rM(e,t);break}case x.TABLE:{tM(e,t);break}case x.TBODY:case x.TFOOT:case x.THEAD:{JI(e,t);break}case x.INPUT:{nM(e,t);break}case x.CAPTION:{QI(e,t);break}case x.COLGROUP:{WI(e,t);break}default:lo(e,t)}}function Qu(e,t){switch(t.tagID){case x.TABLE:{e.openElements.hasInTableScope(x.TABLE)&&(e.openElements.popUntilTagNamePopped(x.TABLE),e._resetInsertionMode());break}case x.TEMPLATE:{ts(e,t);break}case x.BODY:case x.CAPTION:case x.COL:case x.COLGROUP:case x.HTML:case x.TBODY:case x.TD:case x.TFOOT:case x.TH:case x.THEAD:case x.TR:break;default:lo(e,t)}}function lo(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,ld(e,t),e.fosterParentingEnabled=n}function V_(e,t){e.pendingCharacterTokens.push(t)}function Y_(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function Tu(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)lo(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const $_=new Set([x.CAPTION,x.COL,x.COLGROUP,x.TBODY,x.TD,x.TFOOT,x.TH,x.THEAD,x.TR]);function iM(e,t){const n=t.tagID;$_.has(n)?e.openElements.hasInTableScope(x.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(x.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=F.IN_TABLE,dl(e,t)):un(e,t)}function aM(e,t){const n=t.tagID;switch(n){case x.CAPTION:case x.TABLE:{e.openElements.hasInTableScope(x.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(x.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=F.IN_TABLE,n===x.TABLE&&Qu(e,t));break}case x.BODY:case x.COL:case x.COLGROUP:case x.HTML:case x.TBODY:case x.TD:case x.TFOOT:case x.TH:case x.THEAD:case x.TR:break;default:ud(e,t)}}function mg(e,t){switch(t.tagID){case x.HTML:{un(e,t);break}case x.COL:{e._appendElement(t,me.HTML),t.ackSelfClosing=!0;break}case x.TEMPLATE:{pr(e,t);break}default:Lf(e,t)}}function sM(e,t){switch(t.tagID){case x.COLGROUP:{e.openElements.currentTagId===x.COLGROUP&&(e.openElements.pop(),e.insertionMode=F.IN_TABLE);break}case x.TEMPLATE:{ts(e,t);break}case x.COL:break;default:Lf(e,t)}}function Lf(e,t){e.openElements.currentTagId===x.COLGROUP&&(e.openElements.pop(),e.insertionMode=F.IN_TABLE,e._processToken(t))}function od(e,t){switch(t.tagID){case x.TR:{e.openElements.clearBackToTableBodyContext(),e._insertElement(t,me.HTML),e.insertionMode=F.IN_ROW;break}case x.TH:case x.TD:{e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(J.TR,x.TR),e.insertionMode=F.IN_ROW,cd(e,t);break}case x.CAPTION:case x.COL:case x.COLGROUP:case x.TBODY:case x.TFOOT:case x.THEAD:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=F.IN_TABLE,dl(e,t));break}default:dl(e,t)}}function u0(e,t){const n=t.tagID;switch(t.tagID){case x.TBODY:case x.TFOOT:case x.THEAD:{e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=F.IN_TABLE);break}case x.TABLE:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=F.IN_TABLE,Qu(e,t));break}case x.BODY:case x.CAPTION:case x.COL:case x.COLGROUP:case x.HTML:case x.TD:case x.TH:case x.TR:break;default:Qu(e,t)}}function cd(e,t){switch(t.tagID){case x.TH:case x.TD:{e.openElements.clearBackToTableRowContext(),e._insertElement(t,me.HTML),e.insertionMode=F.IN_CELL,e.activeFormattingElements.insertMarker();break}case x.CAPTION:case x.COL:case x.COLGROUP:case x.TBODY:case x.TFOOT:case x.THEAD:case x.TR:{e.openElements.hasInTableScope(x.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=F.IN_TABLE_BODY,od(e,t));break}default:dl(e,t)}}function G_(e,t){switch(t.tagID){case x.TR:{e.openElements.hasInTableScope(x.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=F.IN_TABLE_BODY);break}case x.TABLE:{e.openElements.hasInTableScope(x.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=F.IN_TABLE_BODY,u0(e,t));break}case x.TBODY:case x.TFOOT:case x.THEAD:{(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(x.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=F.IN_TABLE_BODY,u0(e,t));break}case x.BODY:case x.CAPTION:case x.COL:case x.COLGROUP:case x.HTML:case x.TD:case x.TH:break;default:Qu(e,t)}}function lM(e,t){const n=t.tagID;$_.has(n)?(e.openElements.hasInTableScope(x.TD)||e.openElements.hasInTableScope(x.TH))&&(e._closeTableCell(),cd(e,t)):un(e,t)}function uM(e,t){const n=t.tagID;switch(n){case x.TD:case x.TH:{e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=F.IN_ROW);break}case x.TABLE:case x.TBODY:case x.TFOOT:case x.THEAD:case x.TR:{e.openElements.hasInTableScope(n)&&(e._closeTableCell(),G_(e,t));break}case x.BODY:case x.CAPTION:case x.COL:case x.COLGROUP:case x.HTML:break;default:ud(e,t)}}function K_(e,t){switch(t.tagID){case x.HTML:{un(e,t);break}case x.OPTION:{e.openElements.currentTagId===x.OPTION&&e.openElements.pop(),e._insertElement(t,me.HTML);break}case x.OPTGROUP:{e.openElements.currentTagId===x.OPTION&&e.openElements.pop(),e.openElements.currentTagId===x.OPTGROUP&&e.openElements.pop(),e._insertElement(t,me.HTML);break}case x.HR:{e.openElements.currentTagId===x.OPTION&&e.openElements.pop(),e.openElements.currentTagId===x.OPTGROUP&&e.openElements.pop(),e._appendElement(t,me.HTML),t.ackSelfClosing=!0;break}case x.INPUT:case x.KEYGEN:case x.TEXTAREA:case x.SELECT:{e.openElements.hasInSelectScope(x.SELECT)&&(e.openElements.popUntilTagNamePopped(x.SELECT),e._resetInsertionMode(),t.tagID!==x.SELECT&&e._processStartTag(t));break}case x.SCRIPT:case x.TEMPLATE:{pr(e,t);break}}}function X_(e,t){switch(t.tagID){case x.OPTGROUP:{e.openElements.stackTop>0&&e.openElements.currentTagId===x.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===x.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===x.OPTGROUP&&e.openElements.pop();break}case x.OPTION:{e.openElements.currentTagId===x.OPTION&&e.openElements.pop();break}case x.SELECT:{e.openElements.hasInSelectScope(x.SELECT)&&(e.openElements.popUntilTagNamePopped(x.SELECT),e._resetInsertionMode());break}case x.TEMPLATE:{ts(e,t);break}}}function oM(e,t){const n=t.tagID;n===x.CAPTION||n===x.TABLE||n===x.TBODY||n===x.TFOOT||n===x.THEAD||n===x.TR||n===x.TD||n===x.TH?(e.openElements.popUntilTagNamePopped(x.SELECT),e._resetInsertionMode(),e._processStartTag(t)):K_(e,t)}function cM(e,t){const n=t.tagID;n===x.CAPTION||n===x.TABLE||n===x.TBODY||n===x.TFOOT||n===x.THEAD||n===x.TR||n===x.TD||n===x.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(x.SELECT),e._resetInsertionMode(),e.onEndTag(t)):X_(e,t)}function fM(e,t){switch(t.tagID){case x.BASE:case x.BASEFONT:case x.BGSOUND:case x.LINK:case x.META:case x.NOFRAMES:case x.SCRIPT:case x.STYLE:case x.TEMPLATE:case x.TITLE:{pr(e,t);break}case x.CAPTION:case x.COLGROUP:case x.TBODY:case x.TFOOT:case x.THEAD:{e.tmplInsertionModeStack[0]=F.IN_TABLE,e.insertionMode=F.IN_TABLE,dl(e,t);break}case x.COL:{e.tmplInsertionModeStack[0]=F.IN_COLUMN_GROUP,e.insertionMode=F.IN_COLUMN_GROUP,mg(e,t);break}case x.TR:{e.tmplInsertionModeStack[0]=F.IN_TABLE_BODY,e.insertionMode=F.IN_TABLE_BODY,od(e,t);break}case x.TD:case x.TH:{e.tmplInsertionModeStack[0]=F.IN_ROW,e.insertionMode=F.IN_ROW,cd(e,t);break}default:e.tmplInsertionModeStack[0]=F.IN_BODY,e.insertionMode=F.IN_BODY,un(e,t)}}function dM(e,t){t.tagID===x.TEMPLATE&&ts(e,t)}function Q_(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(x.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):hg(e,t)}function hM(e,t){t.tagID===x.HTML?un(e,t):Df(e,t)}function W_(e,t){var n;if(t.tagID===x.HTML){if(e.fragmentContext||(e.insertionMode=F.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===x.HTML){e._setEndLocation(e.openElements.items[0],t);const i=e.openElements.items[1];i&&!(!((n=e.treeAdapter.getNodeSourceCodeLocation(i))===null||n===void 0)&&n.endTag)&&e._setEndLocation(i,t)}}else Df(e,t)}function Df(e,t){e.insertionMode=F.IN_BODY,ld(e,t)}function mM(e,t){switch(t.tagID){case x.HTML:{un(e,t);break}case x.FRAMESET:{e._insertElement(t,me.HTML);break}case x.FRAME:{e._appendElement(t,me.HTML),t.ackSelfClosing=!0;break}case x.NOFRAMES:{pr(e,t);break}}}function pM(e,t){t.tagID===x.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==x.FRAMESET&&(e.insertionMode=F.AFTER_FRAMESET))}function gM(e,t){switch(t.tagID){case x.HTML:{un(e,t);break}case x.NOFRAMES:{pr(e,t);break}}}function bM(e,t){t.tagID===x.HTML&&(e.insertionMode=F.AFTER_AFTER_FRAMESET)}function yM(e,t){t.tagID===x.HTML?un(e,t):pf(e,t)}function pf(e,t){e.insertionMode=F.IN_BODY,ld(e,t)}function EM(e,t){switch(t.tagID){case x.HTML:{un(e,t);break}case x.NOFRAMES:{pr(e,t);break}}}function xM(e,t){t.chars=_t,e._insertCharacters(t)}function TM(e,t){e._insertCharacters(t),e.framesetOk=!1}function Z_(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==me.HTML&&e.openElements.currentTagId!==void 0&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function vM(e,t){if(BD(t))Z_(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),i=e.treeAdapter.getNamespaceURI(n);i===me.MATHML?M_(t):i===me.SVG&&(jD(t),P_(t)),fg(t),t.selfClosing?e._appendElement(t,i):e._insertElement(t,i),t.ackSelfClosing=!0}}function SM(e,t){if(t.tagID===x.P||t.tagID===x.BR){Z_(e),e._endTagOutsideForeignContent(t);return}for(let n=e.openElements.stackTop;n>0;n--){const i=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(i)===me.HTML){e._endTagOutsideForeignContent(t);break}const s=e.treeAdapter.getTagName(i);if(s.toLowerCase()===t.tagName){t.tagName=s,e.openElements.shortenToLength(n);break}}}J.AREA,J.BASE,J.BASEFONT,J.BGSOUND,J.BR,J.COL,J.EMBED,J.FRAME,J.HR,J.IMG,J.INPUT,J.KEYGEN,J.LINK,J.META,J.PARAM,J.SOURCE,J.TRACK,J.WBR;const fd=J_("end"),Lr=J_("start");function J_(e){return t;function t(n){const i=n&&n.position&&n.position[e]||{};if(typeof i.line=="number"&&i.line>0&&typeof i.column=="number"&&i.column>0)return{line:i.line,column:i.column,offset:typeof i.offset=="number"&&i.offset>-1?i.offset:void 0}}}function e3(e){const t=Lr(e),n=fd(e);if(t&&n)return{start:t,end:n}}const _M=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,CM=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),DT={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function t3(e,t){const n=MM(e),i=__("type",{handlers:{root:AM,element:kM,text:wM,comment:r3,doctype:NM,raw:OM},unknown:LM}),s={parser:n?new RT(DT):RT.getFragmentParser(void 0,DT),handle(c){i(c,s)},stitches:!1,options:t||{}};i(e,s),Tl(s,Lr());const l=n?s.parser.document:s.parser.getFragment(),o=PL(l,{file:s.options.file});return s.stitches&&dr(o,"comment",function(c,d,h){const m=c;if(m.value.stitch&&h&&d!==void 0){const p=h.children;return p[d]=m.value.stitch,d}}),o.type==="root"&&o.children.length===1&&o.children[0].type===e.type?o.children[0]:o}function n3(e,t){let n=-1;if(e)for(;++n<e.length;)t.handle(e[n])}function AM(e,t){n3(e.children,t)}function kM(e,t){DM(e,t),n3(e.children,t),IM(e,t)}function wM(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);const n={type:Fe.CHARACTER,chars:e.value,location:uo(e)};Tl(t,Lr(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function NM(e,t){const n={type:Fe.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:uo(e)};Tl(t,Lr(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function RM(e,t){t.stitches=!0;const n=PM(e);if("children"in e&&"children"in n){const i=t3({type:"root",children:e.children},t.options);n.children=i.children}r3({type:"comment",value:{stitch:n}},t)}function r3(e,t){const n=e.value,i={type:Fe.COMMENT,data:n,location:uo(e)};Tl(t,Lr(e)),t.parser.currentToken=i,t.parser._processToken(t.parser.currentToken)}function OM(e,t){if(t.parser.tokenizer.preprocessor.html="",t.parser.tokenizer.preprocessor.pos=-1,t.parser.tokenizer.preprocessor.lastGapPos=-2,t.parser.tokenizer.preprocessor.gapStack=[],t.parser.tokenizer.preprocessor.skipNextNewLine=!1,t.parser.tokenizer.preprocessor.lastChunkWritten=!1,t.parser.tokenizer.preprocessor.endOfChunkHit=!1,t.parser.tokenizer.preprocessor.isEol=!1,i3(t,Lr(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(_M,"<$1$2"):e.value,!1),t.parser.tokenizer._runParsingLoop(),t.parser.tokenizer.state===72||t.parser.tokenizer.state===78){t.parser.tokenizer.preprocessor.lastChunkWritten=!0;const n=t.parser.tokenizer._consume();t.parser.tokenizer._callState(n)}}function LM(e,t){const n=e;if(t.options.passThrough&&t.options.passThrough.includes(n.type))RM(n,t);else{let i="";throw CM.has(n.type)&&(i=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),new Error("Cannot compile `"+n.type+"` node"+i)}}function Tl(e,t){i3(e,t);const n=e.parser.tokenizer.currentCharacterToken;n&&n.location&&(n.location.endLine=e.parser.tokenizer.preprocessor.line,n.location.endCol=e.parser.tokenizer.preprocessor.col+1,n.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=n,e.parser._processToken(e.parser.currentToken)),e.parser.tokenizer.paused=!1,e.parser.tokenizer.inLoop=!1,e.parser.tokenizer.active=!1,e.parser.tokenizer.returnState=Lt.DATA,e.parser.tokenizer.charRefCode=-1,e.parser.tokenizer.consumedAfterSnapshot=-1,e.parser.tokenizer.currentLocation=null,e.parser.tokenizer.currentCharacterToken=null,e.parser.tokenizer.currentToken=null,e.parser.tokenizer.currentAttr={name:"",value:""}}function i3(e,t){if(t&&t.offset!==void 0){const n={startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=-t.column+1,e.parser.tokenizer.preprocessor.droppedBufferSize=t.offset,e.parser.tokenizer.preprocessor.line=t.line,e.parser.tokenizer.currentLocation=n}}function DM(e,t){const n=e.tagName.toLowerCase();if(t.parser.tokenizer.state===Lt.PLAINTEXT)return;Tl(t,Lr(e));const i=t.parser.openElements.current;let s="namespaceURI"in i?i.namespaceURI:Ba.html;s===Ba.html&&n==="svg"&&(s=Ba.svg);const l=zL({...e,children:[]},{space:s===Ba.svg?"svg":"html"}),o={type:Fe.START_TAG,tagName:n,tagID:xl(n),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in l?l.attrs:[],location:uo(e)};t.parser.currentToken=o,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=n}function IM(e,t){const n=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&XL.includes(n)||t.parser.tokenizer.state===Lt.PLAINTEXT)return;Tl(t,fd(e));const i={type:Fe.END_TAG,tagName:n,tagID:xl(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:uo(e)};t.parser.currentToken=i,t.parser._processToken(t.parser.currentToken),n===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===Lt.RCDATA||t.parser.tokenizer.state===Lt.RAWTEXT||t.parser.tokenizer.state===Lt.SCRIPT_DATA)&&(t.parser.tokenizer.state=Lt.DATA)}function MM(e){const t=e.type==="root"?e.children[0]:e;return!!(t&&(t.type==="doctype"||t.type==="element"&&t.tagName.toLowerCase()==="html"))}function uo(e){const t=Lr(e)||{line:void 0,column:void 0,offset:void 0},n=fd(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:n.line,endCol:n.column,endOffset:n.offset}}function PM(e){return"children"in e?$a({...e,children:[]}):$a(e)}function o0(e){return function(t,n){return t3(t,{...e,file:n})}}const Na=["ariaDescribedBy","ariaLabel","ariaLabelledBy"],Da={ancestors:{tbody:["table"],td:["table"],th:["table"],thead:["table"],tfoot:["table"],tr:["table"]},attributes:{a:[...Na,"dataFootnoteBackref","dataFootnoteRef",["className","data-footnote-backref"],"href"],blockquote:["cite"],code:[["className",/^language-./]],del:["cite"],div:["itemScope","itemType"],dl:[...Na],h2:[["className","sr-only"]],img:[...Na,"longDesc","src"],input:[["disabled",!0],["type","checkbox"]],ins:["cite"],li:[["className","task-list-item"]],ol:[...Na,["className","contains-task-list"]],q:["cite"],section:["dataFootnotes",["className","footnotes"]],source:["srcSet"],summary:[...Na],table:[...Na],ul:[...Na,["className","contains-task-list"]],"*":["abbr","accept","acceptCharset","accessKey","action","align","alt","axis","border","cellPadding","cellSpacing","char","charOff","charSet","checked","clear","colSpan","color","cols","compact","coords","dateTime","dir","encType","frame","hSpace","headers","height","hrefLang","htmlFor","id","isMap","itemProp","label","lang","maxLength","media","method","multiple","name","noHref","noShade","noWrap","open","prompt","readOnly","rev","rowSpan","rows","rules","scope","selected","shape","size","span","start","summary","tabIndex","title","useMap","vAlign","value","width"]},clobber:["ariaDescribedBy","ariaLabelledBy","id","name"],clobberPrefix:"user-content-",protocols:{cite:["http","https"],href:["http","https","irc","ircs","mailto","xmpp"],longDesc:["http","https"],src:["http","https"]},required:{input:{disabled:!0,type:"checkbox"}},strip:["script"],tagNames:["a","b","blockquote","br","code","dd","del","details","div","dl","dt","em","h1","h2","h3","h4","h5","h6","hr","i","img","input","ins","kbd","li","ol","p","picture","pre","q","rp","rt","ruby","s","samp","section","source","span","strike","strong","sub","summary","sup","table","tbody","td","tfoot","th","thead","tr","tt","ul","var"]},Gi={}.hasOwnProperty;function BM(e,t){let n={type:"root",children:[]};const i={schema:t?{...Da,...t}:Da,stack:[]},s=a3(i,e);return s&&(Array.isArray(s)?s.length===1?n=s[0]:n.children=s:n=s),n}function a3(e,t){if(t&&typeof t=="object"){const n=t;switch(typeof n.type=="string"?n.type:""){case"comment":return jM(e,n);case"doctype":return HM(e,n);case"element":return UM(e,n);case"root":return zM(e,n);case"text":return FM(e,n)}}}function jM(e,t){if(e.schema.allowComments){const n=typeof t.value=="string"?t.value:"",i=n.indexOf("-->"),l={type:"comment",value:i<0?n:n.slice(0,i)};return oo(l,t),l}}function HM(e,t){if(e.schema.allowDoctypes){const n={type:"doctype"};return oo(n,t),n}}function UM(e,t){const n=typeof t.tagName=="string"?t.tagName:"";e.stack.push(n);const i=s3(e,t.children),s=qM(e,t.properties);e.stack.pop();let l=!1;if(n&&n!=="*"&&(!e.schema.tagNames||e.schema.tagNames.includes(n))&&(l=!0,e.schema.ancestors&&Gi.call(e.schema.ancestors,n))){const c=e.schema.ancestors[n];let d=-1;for(l=!1;++d<c.length;)e.stack.includes(c[d])&&(l=!0)}if(!l)return e.schema.strip&&!e.schema.strip.includes(n)?i:void 0;const o={type:"element",tagName:n,properties:s,children:i};return oo(o,t),o}function zM(e,t){const i={type:"root",children:s3(e,t.children)};return oo(i,t),i}function FM(e,t){const i={type:"text",value:typeof t.value=="string"?t.value:""};return oo(i,t),i}function s3(e,t){const n=[];if(Array.isArray(t)){const i=t;let s=-1;for(;++s<i.length;){const l=a3(e,i[s]);l&&(Array.isArray(l)?n.push(...l):n.push(l))}}return n}function qM(e,t){const n=e.stack[e.stack.length-1],i=e.schema.attributes,s=e.schema.required,l=i&&Gi.call(i,n)?i[n]:void 0,o=i&&Gi.call(i,"*")?i["*"]:void 0,c=t&&typeof t=="object"?t:{},d={};let h;for(h in c)if(Gi.call(c,h)){const m=c[h];let p=IT(e,MT(l,h),h,m);p==null&&(p=IT(e,MT(o,h),h,m)),p!=null&&(d[h]=p)}if(s&&Gi.call(s,n)){const m=s[n];for(h in m)Gi.call(m,h)&&!Gi.call(d,h)&&(d[h]=m[h])}return d}function IT(e,t,n,i){return t?Array.isArray(i)?VM(e,t,n,i):l3(e,t,n,i):void 0}function VM(e,t,n,i){let s=-1;const l=[];for(;++s<i.length;){const o=l3(e,t,n,i[s]);(typeof o=="number"||typeof o=="string")&&l.push(o)}return l}function l3(e,t,n,i){if(!(typeof i!="boolean"&&typeof i!="number"&&typeof i!="string")&&YM(e,n,i)){if(typeof t=="object"&&t.length>1){let s=!1,l=0;for(;++l<t.length;){const o=t[l];if(o&&typeof o=="object"&&"flags"in o){if(o.test(String(i))){s=!0;break}}else if(o===i){s=!0;break}}if(!s)return}return e.schema.clobber&&e.schema.clobberPrefix&&e.schema.clobber.includes(n)?e.schema.clobberPrefix+i:i}}function YM(e,t,n){const i=e.schema.protocols&&Gi.call(e.schema.protocols,t)?e.schema.protocols[t]:void 0;if(!i||i.length===0)return!0;const s=String(n),l=s.indexOf(":"),o=s.indexOf("?"),c=s.indexOf("#"),d=s.indexOf("/");if(l<0||d>-1&&l>d||o>-1&&l>o||c>-1&&l>c)return!0;let h=-1;for(;++h<i.length;){const m=i[h];if(l===m.length&&s.slice(0,m.length)===m)return!0}return!1}function oo(e,t){const n=e3(t);t.data&&(e.data=$a(t.data)),n&&(e.position=n)}function MT(e,t){let n,i=-1;if(e)for(;++i<e.length;){const s=e[i],l=typeof s=="string"?s:s[0];if(l===t)return s;l==="data*"&&(n=s)}if(t.length>4&&t.slice(0,4).toLowerCase()==="data")return n}function u3(e){return function(t){return BM(t,e)}}function PT(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let i=0,s=n.indexOf(t);for(;s!==-1;)i++,s=n.indexOf(t,s+t.length);return i}const mn=la(/[A-Za-z]/),ln=la(/[\dA-Za-z]/),$M=la(/[#-'*+\--9=?A-Z^-~]/);function If(e){return e!==null&&(e<32||e===127)}const c0=la(/\d/),GM=la(/[\dA-Fa-f]/),KM=la(/[!-/:-@[-`{-~]/);function Oe(e){return e!==null&&e<-2}function yt(e){return e!==null&&(e<0||e===32)}function Ge(e){return e===-2||e===-1||e===32}const dd=la(new RegExp("\\p{P}|\\p{S}","u")),Ga=la(/\s/);function la(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function XM(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function QM(e,t,n){const s=nd((n||{}).ignore||[]),l=WM(t);let o=-1;for(;++o<l.length;)id(e,"text",c);function c(h,m){let p=-1,E;for(;++p<m.length;){const y=m[p],v=E?E.children:void 0;if(s(y,v?v.indexOf(y):void 0,E))return;E=y}if(E)return d(h,m)}function d(h,m){const p=m[m.length-1],E=l[o][0],y=l[o][1];let v=0;const A=p.children.indexOf(h);let k=!1,N=[];E.lastIndex=0;let w=E.exec(h.value);for(;w;){const D=w.index,z={index:w.index,input:w.input,stack:[...m,h]};let L=y(...w,z);if(typeof L=="string"&&(L=L.length>0?{type:"text",value:L}:void 0),L===!1?E.lastIndex=D+1:(v!==D&&N.push({type:"text",value:h.value.slice(v,D)}),Array.isArray(L)?N.push(...L):L&&N.push(L),v=D+w[0].length,k=!0),!E.global)break;w=E.exec(h.value)}return k?(v<h.value.length&&N.push({type:"text",value:h.value.slice(v)}),p.children.splice(A,1,...N)):N=[h],A+N.length}}function WM(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let i=-1;for(;++i<n.length;){const s=n[i];t.push([ZM(s[0]),JM(s[1])])}return t}function ZM(e){return typeof e=="string"?new RegExp(XM(e),"g"):e}function JM(e){return typeof e=="function"?e:function(){return e}}const up="phrasing",op=["autolink","link","image","label"];function e8(){return{transforms:[l8],enter:{literalAutolink:n8,literalAutolinkEmail:cp,literalAutolinkHttp:cp,literalAutolinkWww:cp},exit:{literalAutolink:s8,literalAutolinkEmail:a8,literalAutolinkHttp:r8,literalAutolinkWww:i8}}}function t8(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:up,notInConstruct:op},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:up,notInConstruct:op},{character:":",before:"[ps]",after:"\\/",inConstruct:up,notInConstruct:op}]}}function n8(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function cp(e){this.config.enter.autolinkProtocol.call(this,e)}function r8(e){this.config.exit.autolinkProtocol.call(this,e)}function i8(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function a8(e){this.config.exit.autolinkEmail.call(this,e)}function s8(e){this.exit(e)}function l8(e){QM(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,u8],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),o8]],{ignore:["link","linkReference"]})}function u8(e,t,n,i,s){let l="";if(!o3(s)||(/^w/i.test(t)&&(n=t+n,t="",l="http://"),!c8(n)))return!1;const o=f8(n+i);if(!o[0])return!1;const c={type:"link",title:null,url:l+t+o[0],children:[{type:"text",value:t+o[0]}]};return o[1]?[c,{type:"text",value:o[1]}]:c}function o8(e,t,n,i){return!o3(i,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function c8(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function f8(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],i=n.indexOf(")");const s=PT(e,"(");let l=PT(e,")");for(;i!==-1&&s>l;)e+=n.slice(0,i+1),n=n.slice(i+1),i=n.indexOf(")"),l++;return[e,n]}function o3(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||Ga(n)||dd(n))&&(!t||n!==47)}function fr(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}c3.peek=x8;function d8(){this.buffer()}function h8(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function m8(){this.buffer()}function p8(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function g8(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=fr(this.sliceSerialize(e)).toLowerCase(),n.label=t}function b8(e){this.exit(e)}function y8(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=fr(this.sliceSerialize(e)).toLowerCase(),n.label=t}function E8(e){this.exit(e)}function x8(){return"["}function c3(e,t,n,i){const s=n.createTracker(i);let l=s.move("[^");const o=n.enter("footnoteReference"),c=n.enter("reference");return l+=s.move(n.safe(n.associationId(e),{after:"]",before:l})),c(),o(),l+=s.move("]"),l}function T8(){return{enter:{gfmFootnoteCallString:d8,gfmFootnoteCall:h8,gfmFootnoteDefinitionLabelString:m8,gfmFootnoteDefinition:p8},exit:{gfmFootnoteCallString:g8,gfmFootnoteCall:b8,gfmFootnoteDefinitionLabelString:y8,gfmFootnoteDefinition:E8}}}function v8(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:c3},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(i,s,l,o){const c=l.createTracker(o);let d=c.move("[^");const h=l.enter("footnoteDefinition"),m=l.enter("label");return d+=c.move(l.safe(l.associationId(i),{before:d,after:"]"})),m(),d+=c.move("]:"),i.children&&i.children.length>0&&(c.shift(4),d+=c.move((t?`
|
|
51
|
+
`:" ")+l.indentLines(l.containerFlow(i,c.current()),t?f3:S8))),h(),d}}function S8(e,t,n){return t===0?e:f3(e,t,n)}function f3(e,t,n){return(n?"":" ")+e}const _8=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];d3.peek=N8;function C8(){return{canContainEols:["delete"],enter:{strikethrough:k8},exit:{strikethrough:w8}}}function A8(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:_8}],handlers:{delete:d3}}}function k8(e){this.enter({type:"delete",children:[]},e)}function w8(e){this.exit(e)}function d3(e,t,n,i){const s=n.createTracker(i),l=n.enter("strikethrough");let o=s.move("~~");return o+=n.containerPhrasing(e,{...s.current(),before:o,after:"~"}),o+=s.move("~~"),l(),o}function N8(){return"~"}function R8(e){return e.length}function O8(e,t){const n=t||{},i=(n.align||[]).concat(),s=n.stringLength||R8,l=[],o=[],c=[],d=[];let h=0,m=-1;for(;++m<e.length;){const S=[],A=[];let k=-1;for(e[m].length>h&&(h=e[m].length);++k<e[m].length;){const N=L8(e[m][k]);if(n.alignDelimiters!==!1){const w=s(N);A[k]=w,(d[k]===void 0||w>d[k])&&(d[k]=w)}S.push(N)}o[m]=S,c[m]=A}let p=-1;if(typeof i=="object"&&"length"in i)for(;++p<h;)l[p]=BT(i[p]);else{const S=BT(i);for(;++p<h;)l[p]=S}p=-1;const E=[],y=[];for(;++p<h;){const S=l[p];let A="",k="";S===99?(A=":",k=":"):S===108?A=":":S===114&&(k=":");let N=n.alignDelimiters===!1?1:Math.max(1,d[p]-A.length-k.length);const w=A+"-".repeat(N)+k;n.alignDelimiters!==!1&&(N=A.length+N+k.length,N>d[p]&&(d[p]=N),y[p]=N),E[p]=w}o.splice(1,0,E),c.splice(1,0,y),m=-1;const v=[];for(;++m<o.length;){const S=o[m],A=c[m];p=-1;const k=[];for(;++p<h;){const N=S[p]||"";let w="",D="";if(n.alignDelimiters!==!1){const z=d[p]-(A[p]||0),L=l[p];L===114?w=" ".repeat(z):L===99?z%2?(w=" ".repeat(z/2+.5),D=" ".repeat(z/2-.5)):(w=" ".repeat(z/2),D=w):D=" ".repeat(z)}n.delimiterStart!==!1&&!p&&k.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&N==="")&&(n.delimiterStart!==!1||p)&&k.push(" "),n.alignDelimiters!==!1&&k.push(w),k.push(N),n.alignDelimiters!==!1&&k.push(D),n.padding!==!1&&k.push(" "),(n.delimiterEnd!==!1||p!==h-1)&&k.push("|")}v.push(n.delimiterEnd===!1?k.join("").replace(/ +$/,""):k.join(""))}return v.join(`
|
|
52
|
+
`)}function L8(e){return e==null?"":String(e)}function BT(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function D8(e,t,n,i){const s=n.enter("blockquote"),l=n.createTracker(i);l.move("> "),l.shift(2);const o=n.indentLines(n.containerFlow(e,l.current()),I8);return s(),o}function I8(e,t,n){return">"+(n?"":" ")+e}function M8(e,t){return jT(e,t.inConstruct,!0)&&!jT(e,t.notInConstruct,!1)}function jT(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let i=-1;for(;++i<t.length;)if(e.includes(t[i]))return!0;return!1}function HT(e,t,n,i){let s=-1;for(;++s<n.unsafe.length;)if(n.unsafe[s].character===`
|
|
53
|
+
`&&M8(n.stack,n.unsafe[s]))return/[ \t]/.test(i.before)?"":" ";return`\\
|
|
54
|
+
`}function P8(e,t){const n=String(e);let i=n.indexOf(t),s=i,l=0,o=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;i!==-1;)i===s?++l>o&&(o=l):l=1,s=i+t.length,i=n.indexOf(t,s);return o}function B8(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function j8(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function H8(e,t,n,i){const s=j8(n),l=e.value||"",o=s==="`"?"GraveAccent":"Tilde";if(B8(e,n)){const p=n.enter("codeIndented"),E=n.indentLines(l,U8);return p(),E}const c=n.createTracker(i),d=s.repeat(Math.max(P8(l,s)+1,3)),h=n.enter("codeFenced");let m=c.move(d);if(e.lang){const p=n.enter(`codeFencedLang${o}`);m+=c.move(n.safe(e.lang,{before:m,after:" ",encode:["`"],...c.current()})),p()}if(e.lang&&e.meta){const p=n.enter(`codeFencedMeta${o}`);m+=c.move(" "),m+=c.move(n.safe(e.meta,{before:m,after:`
|
|
55
|
+
`,encode:["`"],...c.current()})),p()}return m+=c.move(`
|
|
56
|
+
`),l&&(m+=c.move(l+`
|
|
57
|
+
`)),m+=c.move(d),h(),m}function U8(e,t,n){return(n?"":" ")+e}function pg(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function z8(e,t,n,i){const s=pg(n),l=s==='"'?"Quote":"Apostrophe",o=n.enter("definition");let c=n.enter("label");const d=n.createTracker(i);let h=d.move("[");return h+=d.move(n.safe(n.associationId(e),{before:h,after:"]",...d.current()})),h+=d.move("]: "),c(),!e.url||/[\0- \u007F]/.test(e.url)?(c=n.enter("destinationLiteral"),h+=d.move("<"),h+=d.move(n.safe(e.url,{before:h,after:">",...d.current()})),h+=d.move(">")):(c=n.enter("destinationRaw"),h+=d.move(n.safe(e.url,{before:h,after:e.title?" ":`
|
|
58
|
+
`,...d.current()}))),c(),e.title&&(c=n.enter(`title${l}`),h+=d.move(" "+s),h+=d.move(n.safe(e.title,{before:h,after:s,...d.current()})),h+=d.move(s),c()),o(),h}function F8(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function Wu(e){return"&#x"+e.toString(16).toUpperCase()+";"}function hl(e){if(e===null||yt(e)||Ga(e))return 1;if(dd(e))return 2}function Mf(e,t,n){const i=hl(e),s=hl(t);return i===void 0?s===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:s===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:i===1?s===void 0?{inside:!1,outside:!1}:s===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:s===void 0?{inside:!1,outside:!1}:s===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}h3.peek=q8;function h3(e,t,n,i){const s=F8(n),l=n.enter("emphasis"),o=n.createTracker(i),c=o.move(s);let d=o.move(n.containerPhrasing(e,{after:s,before:c,...o.current()}));const h=d.charCodeAt(0),m=Mf(i.before.charCodeAt(i.before.length-1),h,s);m.inside&&(d=Wu(h)+d.slice(1));const p=d.charCodeAt(d.length-1),E=Mf(i.after.charCodeAt(0),p,s);E.inside&&(d=d.slice(0,-1)+Wu(p));const y=o.move(s);return l(),n.attentionEncodeSurroundingInfo={after:E.outside,before:m.outside},c+d+y}function q8(e,t,n){return n.options.emphasis||"*"}const V8={};function gg(e,t){const n=V8,i=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,s=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return m3(e,i,s)}function m3(e,t,n){if(Y8(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return UT(e.children,t,n)}return Array.isArray(e)?UT(e,t,n):""}function UT(e,t,n){const i=[];let s=-1;for(;++s<e.length;)i[s]=m3(e[s],t,n);return i.join("")}function Y8(e){return!!(e&&typeof e=="object")}function $8(e,t){let n=!1;return dr(e,function(i){if("value"in i&&/\r?\n|\r/.test(i.value)||i.type==="break")return n=!0,t0}),!!((!e.depth||e.depth<3)&&gg(e)&&(t.options.setext||n))}function G8(e,t,n,i){const s=Math.max(Math.min(6,e.depth||1),1),l=n.createTracker(i);if($8(e,n)){const m=n.enter("headingSetext"),p=n.enter("phrasing"),E=n.containerPhrasing(e,{...l.current(),before:`
|
|
59
|
+
`,after:`
|
|
60
|
+
`});return p(),m(),E+`
|
|
61
|
+
`+(s===1?"=":"-").repeat(E.length-(Math.max(E.lastIndexOf("\r"),E.lastIndexOf(`
|
|
62
|
+
`))+1))}const o="#".repeat(s),c=n.enter("headingAtx"),d=n.enter("phrasing");l.move(o+" ");let h=n.containerPhrasing(e,{before:"# ",after:`
|
|
63
|
+
`,...l.current()});return/^[\t ]/.test(h)&&(h=Wu(h.charCodeAt(0))+h.slice(1)),h=h?o+" "+h:o,n.options.closeAtx&&(h+=" "+o),d(),c(),h}p3.peek=K8;function p3(e){return e.value||""}function K8(){return"<"}g3.peek=X8;function g3(e,t,n,i){const s=pg(n),l=s==='"'?"Quote":"Apostrophe",o=n.enter("image");let c=n.enter("label");const d=n.createTracker(i);let h=d.move("![");return h+=d.move(n.safe(e.alt,{before:h,after:"]",...d.current()})),h+=d.move("]("),c(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(c=n.enter("destinationLiteral"),h+=d.move("<"),h+=d.move(n.safe(e.url,{before:h,after:">",...d.current()})),h+=d.move(">")):(c=n.enter("destinationRaw"),h+=d.move(n.safe(e.url,{before:h,after:e.title?" ":")",...d.current()}))),c(),e.title&&(c=n.enter(`title${l}`),h+=d.move(" "+s),h+=d.move(n.safe(e.title,{before:h,after:s,...d.current()})),h+=d.move(s),c()),h+=d.move(")"),o(),h}function X8(){return"!"}b3.peek=Q8;function b3(e,t,n,i){const s=e.referenceType,l=n.enter("imageReference");let o=n.enter("label");const c=n.createTracker(i);let d=c.move("![");const h=n.safe(e.alt,{before:d,after:"]",...c.current()});d+=c.move(h+"]["),o();const m=n.stack;n.stack=[],o=n.enter("reference");const p=n.safe(n.associationId(e),{before:d,after:"]",...c.current()});return o(),n.stack=m,l(),s==="full"||!h||h!==p?d+=c.move(p+"]"):s==="shortcut"?d=d.slice(0,-1):d+=c.move("]"),d}function Q8(){return"!"}y3.peek=W8;function y3(e,t,n){let i=e.value||"",s="`",l=-1;for(;new RegExp("(^|[^`])"+s+"([^`]|$)").test(i);)s+="`";for(/[^ \r\n]/.test(i)&&(/^[ \r\n]/.test(i)&&/[ \r\n]$/.test(i)||/^`|`$/.test(i))&&(i=" "+i+" ");++l<n.unsafe.length;){const o=n.unsafe[l],c=n.compilePattern(o);let d;if(o.atBreak)for(;d=c.exec(i);){let h=d.index;i.charCodeAt(h)===10&&i.charCodeAt(h-1)===13&&h--,i=i.slice(0,h)+" "+i.slice(d.index+1)}}return s+i+s}function W8(){return"`"}function E3(e,t){const n=gg(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}x3.peek=Z8;function x3(e,t,n,i){const s=pg(n),l=s==='"'?"Quote":"Apostrophe",o=n.createTracker(i);let c,d;if(E3(e,n)){const m=n.stack;n.stack=[],c=n.enter("autolink");let p=o.move("<");return p+=o.move(n.containerPhrasing(e,{before:p,after:">",...o.current()})),p+=o.move(">"),c(),n.stack=m,p}c=n.enter("link"),d=n.enter("label");let h=o.move("[");return h+=o.move(n.containerPhrasing(e,{before:h,after:"](",...o.current()})),h+=o.move("]("),d(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(d=n.enter("destinationLiteral"),h+=o.move("<"),h+=o.move(n.safe(e.url,{before:h,after:">",...o.current()})),h+=o.move(">")):(d=n.enter("destinationRaw"),h+=o.move(n.safe(e.url,{before:h,after:e.title?" ":")",...o.current()}))),d(),e.title&&(d=n.enter(`title${l}`),h+=o.move(" "+s),h+=o.move(n.safe(e.title,{before:h,after:s,...o.current()})),h+=o.move(s),d()),h+=o.move(")"),c(),h}function Z8(e,t,n){return E3(e,n)?"<":"["}T3.peek=J8;function T3(e,t,n,i){const s=e.referenceType,l=n.enter("linkReference");let o=n.enter("label");const c=n.createTracker(i);let d=c.move("[");const h=n.containerPhrasing(e,{before:d,after:"]",...c.current()});d+=c.move(h+"]["),o();const m=n.stack;n.stack=[],o=n.enter("reference");const p=n.safe(n.associationId(e),{before:d,after:"]",...c.current()});return o(),n.stack=m,l(),s==="full"||!h||h!==p?d+=c.move(p+"]"):s==="shortcut"?d=d.slice(0,-1):d+=c.move("]"),d}function J8(){return"["}function bg(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function e9(e){const t=bg(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function t9(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function v3(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function n9(e,t,n,i){const s=n.enter("list"),l=n.bulletCurrent;let o=e.ordered?t9(n):bg(n);const c=e.ordered?o==="."?")":".":e9(n);let d=t&&n.bulletLastUsed?o===n.bulletLastUsed:!1;if(!e.ordered){const m=e.children?e.children[0]:void 0;if((o==="*"||o==="-")&&m&&(!m.children||!m.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(d=!0),v3(n)===o&&m){let p=-1;for(;++p<e.children.length;){const E=e.children[p];if(E&&E.type==="listItem"&&E.children&&E.children[0]&&E.children[0].type==="thematicBreak"){d=!0;break}}}}d&&(o=c),n.bulletCurrent=o;const h=n.containerFlow(e,i);return n.bulletLastUsed=o,n.bulletCurrent=l,s(),h}function r9(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function i9(e,t,n,i){const s=r9(n);let l=n.bulletCurrent||bg(n);t&&t.type==="list"&&t.ordered&&(l=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+l);let o=l.length+1;(s==="tab"||s==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(o=Math.ceil(o/4)*4);const c=n.createTracker(i);c.move(l+" ".repeat(o-l.length)),c.shift(o);const d=n.enter("listItem"),h=n.indentLines(n.containerFlow(e,c.current()),m);return d(),h;function m(p,E,y){return E?(y?"":" ".repeat(o))+p:(y?l:l+" ".repeat(o-l.length))+p}}function a9(e,t,n,i){const s=n.enter("paragraph"),l=n.enter("phrasing"),o=n.containerPhrasing(e,i);return l(),s(),o}const s9=nd(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function l9(e,t,n,i){return(e.children.some(function(o){return s9(o)})?n.containerPhrasing:n.containerFlow).call(n,e,i)}function u9(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}S3.peek=o9;function S3(e,t,n,i){const s=u9(n),l=n.enter("strong"),o=n.createTracker(i),c=o.move(s+s);let d=o.move(n.containerPhrasing(e,{after:s,before:c,...o.current()}));const h=d.charCodeAt(0),m=Mf(i.before.charCodeAt(i.before.length-1),h,s);m.inside&&(d=Wu(h)+d.slice(1));const p=d.charCodeAt(d.length-1),E=Mf(i.after.charCodeAt(0),p,s);E.inside&&(d=d.slice(0,-1)+Wu(p));const y=o.move(s+s);return l(),n.attentionEncodeSurroundingInfo={after:E.outside,before:m.outside},c+d+y}function o9(e,t,n){return n.options.strong||"*"}function c9(e,t,n,i){return n.safe(e.value,i)}function f9(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function d9(e,t,n){const i=(v3(n)+(n.options.ruleSpaces?" ":"")).repeat(f9(n));return n.options.ruleSpaces?i.slice(0,-1):i}const _3={blockquote:D8,break:HT,code:H8,definition:z8,emphasis:h3,hardBreak:HT,heading:G8,html:p3,image:g3,imageReference:b3,inlineCode:y3,link:x3,linkReference:T3,list:n9,listItem:i9,paragraph:a9,root:l9,strong:S3,text:c9,thematicBreak:d9},zT=document.createElement("i");function yg(e){const t="&"+e+";";zT.innerHTML=t;const n=zT.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function C3(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}const h9=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function m9(e){return e.replace(h9,p9)}function p9(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const s=n.charCodeAt(1),l=s===120||s===88;return C3(n.slice(l?2:1),l?16:10)}return yg(n)||e}function g9(){return{enter:{table:b9,tableData:FT,tableHeader:FT,tableRow:E9},exit:{codeText:x9,table:y9,tableData:fp,tableHeader:fp,tableRow:fp}}}function b9(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function y9(e){this.exit(e),this.data.inTable=void 0}function E9(e){this.enter({type:"tableRow",children:[]},e)}function fp(e){this.exit(e)}function FT(e){this.enter({type:"tableCell",children:[]},e)}function x9(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,T9));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function T9(e,t){return t==="|"?t:e}function v9(e){const t=e||{},n=t.tableCellPadding,i=t.tablePipeAlign,s=t.stringLength,l=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
64
|
+
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:E,table:o,tableCell:d,tableRow:c}};function o(y,v,S,A){return h(m(y,S,A),y.align)}function c(y,v,S,A){const k=p(y,S,A),N=h([k]);return N.slice(0,N.indexOf(`
|
|
65
|
+
`))}function d(y,v,S,A){const k=S.enter("tableCell"),N=S.enter("phrasing"),w=S.containerPhrasing(y,{...A,before:l,after:l});return N(),k(),w}function h(y,v){return O8(y,{align:v,alignDelimiters:i,padding:n,stringLength:s})}function m(y,v,S){const A=y.children;let k=-1;const N=[],w=v.enter("table");for(;++k<A.length;)N[k]=p(A[k],v,S);return w(),N}function p(y,v,S){const A=y.children;let k=-1;const N=[],w=v.enter("tableRow");for(;++k<A.length;)N[k]=d(A[k],y,v,S);return w(),N}function E(y,v,S){let A=_3.inlineCode(y,v,S);return S.stack.includes("tableCell")&&(A=A.replace(/\|/g,"\\$&")),A}}function S9(){return{exit:{taskListCheckValueChecked:qT,taskListCheckValueUnchecked:qT,paragraph:C9}}}function _9(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:A9}}}function qT(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function C9(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const i=n.children[0];if(i&&i.type==="text"){const s=t.children;let l=-1,o;for(;++l<s.length;){const c=s[l];if(c.type==="paragraph"){o=c;break}}o===n&&(i.value=i.value.slice(1),i.value.length===0?n.children.shift():n.position&&i.position&&typeof i.position.start.offset=="number"&&(i.position.start.column++,i.position.start.offset++,n.position.start=Object.assign({},i.position.start)))}}this.exit(e)}function A9(e,t,n,i){const s=e.children[0],l=typeof e.checked=="boolean"&&s&&s.type==="paragraph",o="["+(e.checked?"x":" ")+"] ",c=n.createTracker(i);l&&c.move(o);let d=_3.listItem(e,t,n,{...i,...c.current()});return l&&(d=d.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,h)),d;function h(m){return m+o}}function k9(){return[e8(),T8(),C8(),g9(),S9()]}function w9(e){return{extensions:[t8(),v8(e),A8(),v9(e),_9()]}}function Vn(e,t,n,i){const s=e.length;let l=0,o;if(t<0?t=-t>s?0:s+t:t=t>s?s:t,n=n>0?n:0,i.length<1e4)o=Array.from(i),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);l<i.length;)o=i.slice(l,l+1e4),o.unshift(t,0),e.splice(...o),l+=1e4,t+=1e4}function nr(e,t){return e.length>0?(Vn(e,e.length,0,t),e):t}const VT={}.hasOwnProperty;function A3(e){const t={};let n=-1;for(;++n<e.length;)N9(t,e[n]);return t}function N9(e,t){let n;for(n in t){const s=(VT.call(e,n)?e[n]:void 0)||(e[n]={}),l=t[n];let o;if(l)for(o in l){VT.call(s,o)||(s[o]=[]);const c=l[o];R9(s[o],Array.isArray(c)?c:c?[c]:[])}}}function R9(e,t){let n=-1;const i=[];for(;++n<t.length;)(t[n].add==="after"?e:i).push(t[n]);Vn(e,0,0,i)}const O9={tokenize:B9,partial:!0},k3={tokenize:j9,partial:!0},w3={tokenize:H9,partial:!0},N3={tokenize:U9,partial:!0},L9={tokenize:z9,partial:!0},R3={name:"wwwAutolink",tokenize:M9,previous:L3},O3={name:"protocolAutolink",tokenize:P9,previous:D3},mi={name:"emailAutolink",tokenize:I9,previous:I3},Dr={};function D9(){return{text:Dr}}let Ra=48;for(;Ra<123;)Dr[Ra]=mi,Ra++,Ra===58?Ra=65:Ra===91&&(Ra=97);Dr[43]=mi;Dr[45]=mi;Dr[46]=mi;Dr[95]=mi;Dr[72]=[mi,O3];Dr[104]=[mi,O3];Dr[87]=[mi,R3];Dr[119]=[mi,R3];function I9(e,t,n){const i=this;let s,l;return o;function o(p){return!f0(p)||!I3.call(i,i.previous)||Eg(i.events)?n(p):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),c(p))}function c(p){return f0(p)?(e.consume(p),c):p===64?(e.consume(p),d):n(p)}function d(p){return p===46?e.check(L9,m,h)(p):p===45||p===95||ln(p)?(l=!0,e.consume(p),d):m(p)}function h(p){return e.consume(p),s=!0,d}function m(p){return l&&s&&mn(i.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(p)):n(p)}}function M9(e,t,n){const i=this;return s;function s(o){return o!==87&&o!==119||!L3.call(i,i.previous)||Eg(i.events)?n(o):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(O9,e.attempt(k3,e.attempt(w3,l),n),n)(o))}function l(o){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(o)}}function P9(e,t,n){const i=this;let s="",l=!1;return o;function o(p){return(p===72||p===104)&&D3.call(i,i.previous)&&!Eg(i.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),s+=String.fromCodePoint(p),e.consume(p),c):n(p)}function c(p){if(mn(p)&&s.length<5)return s+=String.fromCodePoint(p),e.consume(p),c;if(p===58){const E=s.toLowerCase();if(E==="http"||E==="https")return e.consume(p),d}return n(p)}function d(p){return p===47?(e.consume(p),l?h:(l=!0,d)):n(p)}function h(p){return p===null||If(p)||yt(p)||Ga(p)||dd(p)?n(p):e.attempt(k3,e.attempt(w3,m),n)(p)}function m(p){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(p)}}function B9(e,t,n){let i=0;return s;function s(o){return(o===87||o===119)&&i<3?(i++,e.consume(o),s):o===46&&i===3?(e.consume(o),l):n(o)}function l(o){return o===null?n(o):t(o)}}function j9(e,t,n){let i,s,l;return o;function o(h){return h===46||h===95?e.check(N3,d,c)(h):h===null||yt(h)||Ga(h)||h!==45&&dd(h)?d(h):(l=!0,e.consume(h),o)}function c(h){return h===95?i=!0:(s=i,i=void 0),e.consume(h),o}function d(h){return s||i||!l?n(h):t(h)}}function H9(e,t){let n=0,i=0;return s;function s(o){return o===40?(n++,e.consume(o),s):o===41&&i<n?l(o):o===33||o===34||o===38||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===60||o===63||o===93||o===95||o===126?e.check(N3,t,l)(o):o===null||yt(o)||Ga(o)?t(o):(e.consume(o),s)}function l(o){return o===41&&i++,e.consume(o),s}}function U9(e,t,n){return i;function i(c){return c===33||c===34||c===39||c===41||c===42||c===44||c===46||c===58||c===59||c===63||c===95||c===126?(e.consume(c),i):c===38?(e.consume(c),l):c===93?(e.consume(c),s):c===60||c===null||yt(c)||Ga(c)?t(c):n(c)}function s(c){return c===null||c===40||c===91||yt(c)||Ga(c)?t(c):i(c)}function l(c){return mn(c)?o(c):n(c)}function o(c){return c===59?(e.consume(c),i):mn(c)?(e.consume(c),o):n(c)}}function z9(e,t,n){return i;function i(l){return e.consume(l),s}function s(l){return ln(l)?n(l):t(l)}}function L3(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||yt(e)}function D3(e){return!mn(e)}function I3(e){return!(e===47||f0(e))}function f0(e){return e===43||e===45||e===46||e===95||ln(e)}function Eg(e){let t=e.length,n=!1;for(;t--;){const i=e[t][1];if((i.type==="labelLink"||i.type==="labelImage")&&!i._balanced){n=!0;break}if(i._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}function vl(e){const t=[];let n=-1,i=0,s=0;for(;++n<e.length;){const l=e.charCodeAt(n);let o="";if(l===37&&ln(e.charCodeAt(n+1))&&ln(e.charCodeAt(n+2)))s=2;else if(l<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(l))||(o=String.fromCharCode(l));else if(l>55295&&l<57344){const c=e.charCodeAt(n+1);l<56320&&c>56319&&c<57344?(o=String.fromCharCode(l,c),s=1):o="�"}else o=String.fromCharCode(l);o&&(t.push(e.slice(i,n),encodeURIComponent(o)),i=n+s+1,o=""),s&&(n+=s,s=0)}return t.join("")+e.slice(i)}function hd(e,t,n){const i=[];let s=-1;for(;++s<e.length;){const l=e[s].resolveAll;l&&!i.includes(l)&&(t=l(t,n),i.push(l))}return t}const d0={name:"attention",resolveAll:F9,tokenize:q9};function F9(e,t){let n=-1,i,s,l,o,c,d,h,m;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(i=n;i--;)if(e[i][0]==="exit"&&e[i][1].type==="attentionSequence"&&e[i][1]._open&&t.sliceSerialize(e[i][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[i][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[i][1].end.offset-e[i][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;d=e[i][1].end.offset-e[i][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const p={...e[i][1].end},E={...e[n][1].start};YT(p,-d),YT(E,d),o={type:d>1?"strongSequence":"emphasisSequence",start:p,end:{...e[i][1].end}},c={type:d>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:E},l={type:d>1?"strongText":"emphasisText",start:{...e[i][1].end},end:{...e[n][1].start}},s={type:d>1?"strong":"emphasis",start:{...o.start},end:{...c.end}},e[i][1].end={...o.start},e[n][1].start={...c.end},h=[],e[i][1].end.offset-e[i][1].start.offset&&(h=nr(h,[["enter",e[i][1],t],["exit",e[i][1],t]])),h=nr(h,[["enter",s,t],["enter",o,t],["exit",o,t],["enter",l,t]]),h=nr(h,hd(t.parser.constructs.insideSpan.null,e.slice(i+1,n),t)),h=nr(h,[["exit",l,t],["enter",c,t],["exit",c,t],["exit",s,t]]),e[n][1].end.offset-e[n][1].start.offset?(m=2,h=nr(h,[["enter",e[n][1],t],["exit",e[n][1],t]])):m=0,Vn(e,i-1,n-i+3,h),n=i+h.length-m-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function q9(e,t){const n=this.parser.constructs.attentionMarkers.null,i=this.previous,s=hl(i);let l;return o;function o(d){return l=d,e.enter("attentionSequence"),c(d)}function c(d){if(d===l)return e.consume(d),c;const h=e.exit("attentionSequence"),m=hl(d),p=!m||m===2&&s||n.includes(d),E=!s||s===2&&m||n.includes(i);return h._open=!!(l===42?p:p&&(s||!E)),h._close=!!(l===42?E:E&&(m||!p)),t(d)}}function YT(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const V9={name:"autolink",tokenize:Y9};function Y9(e,t,n){let i=0;return s;function s(y){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(y),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),l}function l(y){return mn(y)?(e.consume(y),o):y===64?n(y):h(y)}function o(y){return y===43||y===45||y===46||ln(y)?(i=1,c(y)):h(y)}function c(y){return y===58?(e.consume(y),i=0,d):(y===43||y===45||y===46||ln(y))&&i++<32?(e.consume(y),c):(i=0,h(y))}function d(y){return y===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(y),e.exit("autolinkMarker"),e.exit("autolink"),t):y===null||y===32||y===60||If(y)?n(y):(e.consume(y),d)}function h(y){return y===64?(e.consume(y),m):$M(y)?(e.consume(y),h):n(y)}function m(y){return ln(y)?p(y):n(y)}function p(y){return y===46?(e.consume(y),i=0,m):y===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(y),e.exit("autolinkMarker"),e.exit("autolink"),t):E(y)}function E(y){if((y===45||ln(y))&&i++<63){const v=y===45?E:p;return e.consume(y),v}return n(y)}}function et(e,t,n,i){const s=i?i-1:Number.POSITIVE_INFINITY;let l=0;return o;function o(d){return Ge(d)?(e.enter(n),c(d)):t(d)}function c(d){return Ge(d)&&l++<s?(e.consume(d),c):(e.exit(n),t(d))}}const co={partial:!0,tokenize:$9};function $9(e,t,n){return i;function i(l){return Ge(l)?et(e,s,"linePrefix")(l):s(l)}function s(l){return l===null||Oe(l)?t(l):n(l)}}const M3={continuation:{tokenize:K9},exit:X9,name:"blockQuote",tokenize:G9};function G9(e,t,n){const i=this;return s;function s(o){if(o===62){const c=i.containerState;return c.open||(e.enter("blockQuote",{_container:!0}),c.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(o),e.exit("blockQuoteMarker"),l}return n(o)}function l(o){return Ge(o)?(e.enter("blockQuotePrefixWhitespace"),e.consume(o),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(o))}}function K9(e,t,n){const i=this;return s;function s(o){return Ge(o)?et(e,l,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):l(o)}function l(o){return e.attempt(M3,t,n)(o)}}function X9(e){e.exit("blockQuote")}const P3={name:"characterEscape",tokenize:Q9};function Q9(e,t,n){return i;function i(l){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(l),e.exit("escapeMarker"),s}function s(l){return KM(l)?(e.enter("characterEscapeValue"),e.consume(l),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(l)}}const B3={name:"characterReference",tokenize:W9};function W9(e,t,n){const i=this;let s=0,l,o;return c;function c(p){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(p),e.exit("characterReferenceMarker"),d}function d(p){return p===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(p),e.exit("characterReferenceMarkerNumeric"),h):(e.enter("characterReferenceValue"),l=31,o=ln,m(p))}function h(p){return p===88||p===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(p),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),l=6,o=GM,m):(e.enter("characterReferenceValue"),l=7,o=c0,m(p))}function m(p){if(p===59&&s){const E=e.exit("characterReferenceValue");return o===ln&&!yg(i.sliceSerialize(E))?n(p):(e.enter("characterReferenceMarker"),e.consume(p),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return o(p)&&s++<l?(e.consume(p),m):n(p)}}const $T={partial:!0,tokenize:J9},GT={concrete:!0,name:"codeFenced",tokenize:Z9};function Z9(e,t,n){const i=this,s={partial:!0,tokenize:z};let l=0,o=0,c;return d;function d(L){return h(L)}function h(L){const P=i.events[i.events.length-1];return l=P&&P[1].type==="linePrefix"?P[2].sliceSerialize(P[1],!0).length:0,c=L,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),m(L)}function m(L){return L===c?(o++,e.consume(L),m):o<3?n(L):(e.exit("codeFencedFenceSequence"),Ge(L)?et(e,p,"whitespace")(L):p(L))}function p(L){return L===null||Oe(L)?(e.exit("codeFencedFence"),i.interrupt?t(L):e.check($T,S,D)(L)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),E(L))}function E(L){return L===null||Oe(L)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),p(L)):Ge(L)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),et(e,y,"whitespace")(L)):L===96&&L===c?n(L):(e.consume(L),E)}function y(L){return L===null||Oe(L)?p(L):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),v(L))}function v(L){return L===null||Oe(L)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),p(L)):L===96&&L===c?n(L):(e.consume(L),v)}function S(L){return e.attempt(s,D,A)(L)}function A(L){return e.enter("lineEnding"),e.consume(L),e.exit("lineEnding"),k}function k(L){return l>0&&Ge(L)?et(e,N,"linePrefix",l+1)(L):N(L)}function N(L){return L===null||Oe(L)?e.check($T,S,D)(L):(e.enter("codeFlowValue"),w(L))}function w(L){return L===null||Oe(L)?(e.exit("codeFlowValue"),N(L)):(e.consume(L),w)}function D(L){return e.exit("codeFenced"),t(L)}function z(L,P,H){let K=0;return j;function j(re){return L.enter("lineEnding"),L.consume(re),L.exit("lineEnding"),$}function $(re){return L.enter("codeFencedFence"),Ge(re)?et(L,Z,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(re):Z(re)}function Z(re){return re===c?(L.enter("codeFencedFenceSequence"),le(re)):H(re)}function le(re){return re===c?(K++,L.consume(re),le):K>=o?(L.exit("codeFencedFenceSequence"),Ge(re)?et(L,ue,"whitespace")(re):ue(re)):H(re)}function ue(re){return re===null||Oe(re)?(L.exit("codeFencedFence"),P(re)):H(re)}}}function J9(e,t,n){const i=this;return s;function s(o){return o===null?n(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),l)}function l(o){return i.parser.lazy[i.now().line]?n(o):t(o)}}const dp={name:"codeIndented",tokenize:tP},eP={partial:!0,tokenize:nP};function tP(e,t,n){const i=this;return s;function s(h){return e.enter("codeIndented"),et(e,l,"linePrefix",5)(h)}function l(h){const m=i.events[i.events.length-1];return m&&m[1].type==="linePrefix"&&m[2].sliceSerialize(m[1],!0).length>=4?o(h):n(h)}function o(h){return h===null?d(h):Oe(h)?e.attempt(eP,o,d)(h):(e.enter("codeFlowValue"),c(h))}function c(h){return h===null||Oe(h)?(e.exit("codeFlowValue"),o(h)):(e.consume(h),c)}function d(h){return e.exit("codeIndented"),t(h)}}function nP(e,t,n){const i=this;return s;function s(o){return i.parser.lazy[i.now().line]?n(o):Oe(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),s):et(e,l,"linePrefix",5)(o)}function l(o){const c=i.events[i.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?t(o):Oe(o)?s(o):n(o)}}const rP={name:"codeText",previous:aP,resolve:iP,tokenize:sP};function iP(e){let t=e.length-4,n=3,i,s;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(i=n;++i<t;)if(e[i][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(i=n-1,t++;++i<=t;)s===void 0?i!==t&&e[i][1].type!=="lineEnding"&&(s=i):(i===t||e[i][1].type==="lineEnding")&&(e[s][1].type="codeTextData",i!==s+2&&(e[s][1].end=e[i-1][1].end,e.splice(s+2,i-s-2),t-=i-s-2,i=s+2),s=void 0);return e}function aP(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function sP(e,t,n){let i=0,s,l;return o;function o(p){return e.enter("codeText"),e.enter("codeTextSequence"),c(p)}function c(p){return p===96?(e.consume(p),i++,c):(e.exit("codeTextSequence"),d(p))}function d(p){return p===null?n(p):p===32?(e.enter("space"),e.consume(p),e.exit("space"),d):p===96?(l=e.enter("codeTextSequence"),s=0,m(p)):Oe(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),d):(e.enter("codeTextData"),h(p))}function h(p){return p===null||p===32||p===96||Oe(p)?(e.exit("codeTextData"),d(p)):(e.consume(p),h)}function m(p){return p===96?(e.consume(p),s++,m):s===i?(e.exit("codeTextSequence"),e.exit("codeText"),t(p)):(l.type="codeTextData",h(p))}}class lP{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const i=n??Number.POSITIVE_INFINITY;return i<this.left.length?this.left.slice(t,i):t>this.left.length?this.right.slice(this.right.length-i+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-i+this.left.length).reverse())}splice(t,n,i){const s=n||0;this.setCursor(Math.trunc(t));const l=this.right.splice(this.right.length-s,Number.POSITIVE_INFINITY);return i&&vu(this.left,i),l.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),vu(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),vu(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);vu(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);vu(this.left,n.reverse())}}}function vu(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function j3(e){const t={};let n=-1,i,s,l,o,c,d,h;const m=new lP(e);for(;++n<m.length;){for(;n in t;)n=t[n];if(i=m.get(n),n&&i[1].type==="chunkFlow"&&m.get(n-1)[1].type==="listItemPrefix"&&(d=i[1]._tokenizer.events,l=0,l<d.length&&d[l][1].type==="lineEndingBlank"&&(l+=2),l<d.length&&d[l][1].type==="content"))for(;++l<d.length&&d[l][1].type!=="content";)d[l][1].type==="chunkText"&&(d[l][1]._isInFirstContentOfListItem=!0,l++);if(i[0]==="enter")i[1].contentType&&(Object.assign(t,uP(m,n)),n=t[n],h=!0);else if(i[1]._container){for(l=n,s=void 0;l--;)if(o=m.get(l),o[1].type==="lineEnding"||o[1].type==="lineEndingBlank")o[0]==="enter"&&(s&&(m.get(s)[1].type="lineEndingBlank"),o[1].type="lineEnding",s=l);else if(!(o[1].type==="linePrefix"||o[1].type==="listItemIndent"))break;s&&(i[1].end={...m.get(s)[1].start},c=m.slice(s,n),c.unshift(i),m.splice(s,n-s+1,c))}}return Vn(e,0,Number.POSITIVE_INFINITY,m.slice(0)),!h}function uP(e,t){const n=e.get(t)[1],i=e.get(t)[2];let s=t-1;const l=[];let o=n._tokenizer;o||(o=i.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));const c=o.events,d=[],h={};let m,p,E=-1,y=n,v=0,S=0;const A=[S];for(;y;){for(;e.get(++s)[1]!==y;);l.push(s),y._tokenizer||(m=i.sliceStream(y),y.next||m.push(null),p&&o.defineSkip(y.start),y._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(m),y._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),p=y,y=y.next}for(y=n;++E<c.length;)c[E][0]==="exit"&&c[E-1][0]==="enter"&&c[E][1].type===c[E-1][1].type&&c[E][1].start.line!==c[E][1].end.line&&(S=E+1,A.push(S),y._tokenizer=void 0,y.previous=void 0,y=y.next);for(o.events=[],y?(y._tokenizer=void 0,y.previous=void 0):A.pop(),E=A.length;E--;){const k=c.slice(A[E],A[E+1]),N=l.pop();d.push([N,N+k.length-1]),e.splice(N,2,k)}for(d.reverse(),E=-1;++E<d.length;)h[v+d[E][0]]=v+d[E][1],v+=d[E][1]-d[E][0]-1;return h}const oP={resolve:fP,tokenize:dP},cP={partial:!0,tokenize:hP};function fP(e){return j3(e),e}function dP(e,t){let n;return i;function i(c){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),s(c)}function s(c){return c===null?l(c):Oe(c)?e.check(cP,o,l)(c):(e.consume(c),s)}function l(c){return e.exit("chunkContent"),e.exit("content"),t(c)}function o(c){return e.consume(c),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,s}}function hP(e,t,n){const i=this;return s;function s(o){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),et(e,l,"linePrefix")}function l(o){if(o===null||Oe(o))return n(o);const c=i.events[i.events.length-1];return!i.parser.constructs.disable.null.includes("codeIndented")&&c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?t(o):e.interrupt(i.parser.constructs.flow,n,t)(o)}}function H3(e,t,n,i,s,l,o,c,d){const h=d||Number.POSITIVE_INFINITY;let m=0;return p;function p(k){return k===60?(e.enter(i),e.enter(s),e.enter(l),e.consume(k),e.exit(l),E):k===null||k===32||k===41||If(k)?n(k):(e.enter(i),e.enter(o),e.enter(c),e.enter("chunkString",{contentType:"string"}),S(k))}function E(k){return k===62?(e.enter(l),e.consume(k),e.exit(l),e.exit(s),e.exit(i),t):(e.enter(c),e.enter("chunkString",{contentType:"string"}),y(k))}function y(k){return k===62?(e.exit("chunkString"),e.exit(c),E(k)):k===null||k===60||Oe(k)?n(k):(e.consume(k),k===92?v:y)}function v(k){return k===60||k===62||k===92?(e.consume(k),y):y(k)}function S(k){return!m&&(k===null||k===41||yt(k))?(e.exit("chunkString"),e.exit(c),e.exit(o),e.exit(i),t(k)):m<h&&k===40?(e.consume(k),m++,S):k===41?(e.consume(k),m--,S):k===null||k===32||k===40||If(k)?n(k):(e.consume(k),k===92?A:S)}function A(k){return k===40||k===41||k===92?(e.consume(k),S):S(k)}}function U3(e,t,n,i,s,l){const o=this;let c=0,d;return h;function h(y){return e.enter(i),e.enter(s),e.consume(y),e.exit(s),e.enter(l),m}function m(y){return c>999||y===null||y===91||y===93&&!d||y===94&&!c&&"_hiddenFootnoteSupport"in o.parser.constructs?n(y):y===93?(e.exit(l),e.enter(s),e.consume(y),e.exit(s),e.exit(i),t):Oe(y)?(e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),m):(e.enter("chunkString",{contentType:"string"}),p(y))}function p(y){return y===null||y===91||y===93||Oe(y)||c++>999?(e.exit("chunkString"),m(y)):(e.consume(y),d||(d=!Ge(y)),y===92?E:p)}function E(y){return y===91||y===92||y===93?(e.consume(y),c++,p):p(y)}}function z3(e,t,n,i,s,l){let o;return c;function c(E){return E===34||E===39||E===40?(e.enter(i),e.enter(s),e.consume(E),e.exit(s),o=E===40?41:E,d):n(E)}function d(E){return E===o?(e.enter(s),e.consume(E),e.exit(s),e.exit(i),t):(e.enter(l),h(E))}function h(E){return E===o?(e.exit(l),d(o)):E===null?n(E):Oe(E)?(e.enter("lineEnding"),e.consume(E),e.exit("lineEnding"),et(e,h,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),m(E))}function m(E){return E===o||E===null||Oe(E)?(e.exit("chunkString"),h(E)):(e.consume(E),E===92?p:m)}function p(E){return E===o||E===92?(e.consume(E),m):m(E)}}function Uu(e,t){let n;return i;function i(s){return Oe(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),n=!0,i):Ge(s)?et(e,i,n?"linePrefix":"lineSuffix")(s):t(s)}}const mP={name:"definition",tokenize:gP},pP={partial:!0,tokenize:bP};function gP(e,t,n){const i=this;let s;return l;function l(y){return e.enter("definition"),o(y)}function o(y){return U3.call(i,e,c,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(y)}function c(y){return s=fr(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),y===58?(e.enter("definitionMarker"),e.consume(y),e.exit("definitionMarker"),d):n(y)}function d(y){return yt(y)?Uu(e,h)(y):h(y)}function h(y){return H3(e,m,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(y)}function m(y){return e.attempt(pP,p,p)(y)}function p(y){return Ge(y)?et(e,E,"whitespace")(y):E(y)}function E(y){return y===null||Oe(y)?(e.exit("definition"),i.parser.defined.push(s),t(y)):n(y)}}function bP(e,t,n){return i;function i(c){return yt(c)?Uu(e,s)(c):n(c)}function s(c){return z3(e,l,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(c)}function l(c){return Ge(c)?et(e,o,"whitespace")(c):o(c)}function o(c){return c===null||Oe(c)?t(c):n(c)}}const yP={name:"hardBreakEscape",tokenize:EP};function EP(e,t,n){return i;function i(l){return e.enter("hardBreakEscape"),e.consume(l),s}function s(l){return Oe(l)?(e.exit("hardBreakEscape"),t(l)):n(l)}}const xP={name:"headingAtx",resolve:TP,tokenize:vP};function TP(e,t){let n=e.length-2,i=3,s,l;return e[i][1].type==="whitespace"&&(i+=2),n-2>i&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(i===n-1||n-4>i&&e[n-2][1].type==="whitespace")&&(n-=i+1===n?2:4),n>i&&(s={type:"atxHeadingText",start:e[i][1].start,end:e[n][1].end},l={type:"chunkText",start:e[i][1].start,end:e[n][1].end,contentType:"text"},Vn(e,i,n-i+1,[["enter",s,t],["enter",l,t],["exit",l,t],["exit",s,t]])),e}function vP(e,t,n){let i=0;return s;function s(m){return e.enter("atxHeading"),l(m)}function l(m){return e.enter("atxHeadingSequence"),o(m)}function o(m){return m===35&&i++<6?(e.consume(m),o):m===null||yt(m)?(e.exit("atxHeadingSequence"),c(m)):n(m)}function c(m){return m===35?(e.enter("atxHeadingSequence"),d(m)):m===null||Oe(m)?(e.exit("atxHeading"),t(m)):Ge(m)?et(e,c,"whitespace")(m):(e.enter("atxHeadingText"),h(m))}function d(m){return m===35?(e.consume(m),d):(e.exit("atxHeadingSequence"),c(m))}function h(m){return m===null||m===35||yt(m)?(e.exit("atxHeadingText"),c(m)):(e.consume(m),h)}}const SP=["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"],KT=["pre","script","style","textarea"],_P={concrete:!0,name:"htmlFlow",resolveTo:kP,tokenize:wP},CP={partial:!0,tokenize:RP},AP={partial:!0,tokenize:NP};function kP(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function wP(e,t,n){const i=this;let s,l,o,c,d;return h;function h(I){return m(I)}function m(I){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(I),p}function p(I){return I===33?(e.consume(I),E):I===47?(e.consume(I),l=!0,S):I===63?(e.consume(I),s=3,i.interrupt?t:R):mn(I)?(e.consume(I),o=String.fromCharCode(I),A):n(I)}function E(I){return I===45?(e.consume(I),s=2,y):I===91?(e.consume(I),s=5,c=0,v):mn(I)?(e.consume(I),s=4,i.interrupt?t:R):n(I)}function y(I){return I===45?(e.consume(I),i.interrupt?t:R):n(I)}function v(I){const ge="CDATA[";return I===ge.charCodeAt(c++)?(e.consume(I),c===ge.length?i.interrupt?t:Z:v):n(I)}function S(I){return mn(I)?(e.consume(I),o=String.fromCharCode(I),A):n(I)}function A(I){if(I===null||I===47||I===62||yt(I)){const ge=I===47,ye=o.toLowerCase();return!ge&&!l&&KT.includes(ye)?(s=1,i.interrupt?t(I):Z(I)):SP.includes(o.toLowerCase())?(s=6,ge?(e.consume(I),k):i.interrupt?t(I):Z(I)):(s=7,i.interrupt&&!i.parser.lazy[i.now().line]?n(I):l?N(I):w(I))}return I===45||ln(I)?(e.consume(I),o+=String.fromCharCode(I),A):n(I)}function k(I){return I===62?(e.consume(I),i.interrupt?t:Z):n(I)}function N(I){return Ge(I)?(e.consume(I),N):j(I)}function w(I){return I===47?(e.consume(I),j):I===58||I===95||mn(I)?(e.consume(I),D):Ge(I)?(e.consume(I),w):j(I)}function D(I){return I===45||I===46||I===58||I===95||ln(I)?(e.consume(I),D):z(I)}function z(I){return I===61?(e.consume(I),L):Ge(I)?(e.consume(I),z):w(I)}function L(I){return I===null||I===60||I===61||I===62||I===96?n(I):I===34||I===39?(e.consume(I),d=I,P):Ge(I)?(e.consume(I),L):H(I)}function P(I){return I===d?(e.consume(I),d=null,K):I===null||Oe(I)?n(I):(e.consume(I),P)}function H(I){return I===null||I===34||I===39||I===47||I===60||I===61||I===62||I===96||yt(I)?z(I):(e.consume(I),H)}function K(I){return I===47||I===62||Ge(I)?w(I):n(I)}function j(I){return I===62?(e.consume(I),$):n(I)}function $(I){return I===null||Oe(I)?Z(I):Ge(I)?(e.consume(I),$):n(I)}function Z(I){return I===45&&s===2?(e.consume(I),V):I===60&&s===1?(e.consume(I),Q):I===62&&s===4?(e.consume(I),U):I===63&&s===3?(e.consume(I),R):I===93&&s===5?(e.consume(I),Ee):Oe(I)&&(s===6||s===7)?(e.exit("htmlFlowData"),e.check(CP,X,le)(I)):I===null||Oe(I)?(e.exit("htmlFlowData"),le(I)):(e.consume(I),Z)}function le(I){return e.check(AP,ue,X)(I)}function ue(I){return e.enter("lineEnding"),e.consume(I),e.exit("lineEnding"),re}function re(I){return I===null||Oe(I)?le(I):(e.enter("htmlFlowData"),Z(I))}function V(I){return I===45?(e.consume(I),R):Z(I)}function Q(I){return I===47?(e.consume(I),o="",ae):Z(I)}function ae(I){if(I===62){const ge=o.toLowerCase();return KT.includes(ge)?(e.consume(I),U):Z(I)}return mn(I)&&o.length<8?(e.consume(I),o+=String.fromCharCode(I),ae):Z(I)}function Ee(I){return I===93?(e.consume(I),R):Z(I)}function R(I){return I===62?(e.consume(I),U):I===45&&s===2?(e.consume(I),R):Z(I)}function U(I){return I===null||Oe(I)?(e.exit("htmlFlowData"),X(I)):(e.consume(I),U)}function X(I){return e.exit("htmlFlow"),t(I)}}function NP(e,t,n){const i=this;return s;function s(o){return Oe(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),l):n(o)}function l(o){return i.parser.lazy[i.now().line]?n(o):t(o)}}function RP(e,t,n){return i;function i(s){return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),e.attempt(co,t,n)}}const OP={name:"htmlText",tokenize:LP};function LP(e,t,n){const i=this;let s,l,o;return c;function c(R){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(R),d}function d(R){return R===33?(e.consume(R),h):R===47?(e.consume(R),z):R===63?(e.consume(R),w):mn(R)?(e.consume(R),H):n(R)}function h(R){return R===45?(e.consume(R),m):R===91?(e.consume(R),l=0,v):mn(R)?(e.consume(R),N):n(R)}function m(R){return R===45?(e.consume(R),y):n(R)}function p(R){return R===null?n(R):R===45?(e.consume(R),E):Oe(R)?(o=p,Q(R)):(e.consume(R),p)}function E(R){return R===45?(e.consume(R),y):p(R)}function y(R){return R===62?V(R):R===45?E(R):p(R)}function v(R){const U="CDATA[";return R===U.charCodeAt(l++)?(e.consume(R),l===U.length?S:v):n(R)}function S(R){return R===null?n(R):R===93?(e.consume(R),A):Oe(R)?(o=S,Q(R)):(e.consume(R),S)}function A(R){return R===93?(e.consume(R),k):S(R)}function k(R){return R===62?V(R):R===93?(e.consume(R),k):S(R)}function N(R){return R===null||R===62?V(R):Oe(R)?(o=N,Q(R)):(e.consume(R),N)}function w(R){return R===null?n(R):R===63?(e.consume(R),D):Oe(R)?(o=w,Q(R)):(e.consume(R),w)}function D(R){return R===62?V(R):w(R)}function z(R){return mn(R)?(e.consume(R),L):n(R)}function L(R){return R===45||ln(R)?(e.consume(R),L):P(R)}function P(R){return Oe(R)?(o=P,Q(R)):Ge(R)?(e.consume(R),P):V(R)}function H(R){return R===45||ln(R)?(e.consume(R),H):R===47||R===62||yt(R)?K(R):n(R)}function K(R){return R===47?(e.consume(R),V):R===58||R===95||mn(R)?(e.consume(R),j):Oe(R)?(o=K,Q(R)):Ge(R)?(e.consume(R),K):V(R)}function j(R){return R===45||R===46||R===58||R===95||ln(R)?(e.consume(R),j):$(R)}function $(R){return R===61?(e.consume(R),Z):Oe(R)?(o=$,Q(R)):Ge(R)?(e.consume(R),$):K(R)}function Z(R){return R===null||R===60||R===61||R===62||R===96?n(R):R===34||R===39?(e.consume(R),s=R,le):Oe(R)?(o=Z,Q(R)):Ge(R)?(e.consume(R),Z):(e.consume(R),ue)}function le(R){return R===s?(e.consume(R),s=void 0,re):R===null?n(R):Oe(R)?(o=le,Q(R)):(e.consume(R),le)}function ue(R){return R===null||R===34||R===39||R===60||R===61||R===96?n(R):R===47||R===62||yt(R)?K(R):(e.consume(R),ue)}function re(R){return R===47||R===62||yt(R)?K(R):n(R)}function V(R){return R===62?(e.consume(R),e.exit("htmlTextData"),e.exit("htmlText"),t):n(R)}function Q(R){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(R),e.exit("lineEnding"),ae}function ae(R){return Ge(R)?et(e,Ee,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(R):Ee(R)}function Ee(R){return e.enter("htmlTextData"),o(R)}}const xg={name:"labelEnd",resolveAll:PP,resolveTo:BP,tokenize:jP},DP={tokenize:HP},IP={tokenize:UP},MP={tokenize:zP};function PP(e){let t=-1;const n=[];for(;++t<e.length;){const i=e[t][1];if(n.push(e[t]),i.type==="labelImage"||i.type==="labelLink"||i.type==="labelEnd"){const s=i.type==="labelImage"?4:2;i.type="data",t+=s}}return e.length!==n.length&&Vn(e,0,e.length,n),e}function BP(e,t){let n=e.length,i=0,s,l,o,c;for(;n--;)if(s=e[n][1],l){if(s.type==="link"||s.type==="labelLink"&&s._inactive)break;e[n][0]==="enter"&&s.type==="labelLink"&&(s._inactive=!0)}else if(o){if(e[n][0]==="enter"&&(s.type==="labelImage"||s.type==="labelLink")&&!s._balanced&&(l=n,s.type!=="labelLink")){i=2;break}}else s.type==="labelEnd"&&(o=n);const d={type:e[l][1].type==="labelLink"?"link":"image",start:{...e[l][1].start},end:{...e[e.length-1][1].end}},h={type:"label",start:{...e[l][1].start},end:{...e[o][1].end}},m={type:"labelText",start:{...e[l+i+2][1].end},end:{...e[o-2][1].start}};return c=[["enter",d,t],["enter",h,t]],c=nr(c,e.slice(l+1,l+i+3)),c=nr(c,[["enter",m,t]]),c=nr(c,hd(t.parser.constructs.insideSpan.null,e.slice(l+i+4,o-3),t)),c=nr(c,[["exit",m,t],e[o-2],e[o-1],["exit",h,t]]),c=nr(c,e.slice(o+1)),c=nr(c,[["exit",d,t]]),Vn(e,l,e.length,c),e}function jP(e,t,n){const i=this;let s=i.events.length,l,o;for(;s--;)if((i.events[s][1].type==="labelImage"||i.events[s][1].type==="labelLink")&&!i.events[s][1]._balanced){l=i.events[s][1];break}return c;function c(E){return l?l._inactive?p(E):(o=i.parser.defined.includes(fr(i.sliceSerialize({start:l.end,end:i.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(E),e.exit("labelMarker"),e.exit("labelEnd"),d):n(E)}function d(E){return E===40?e.attempt(DP,m,o?m:p)(E):E===91?e.attempt(IP,m,o?h:p)(E):o?m(E):p(E)}function h(E){return e.attempt(MP,m,p)(E)}function m(E){return t(E)}function p(E){return l._balanced=!0,n(E)}}function HP(e,t,n){return i;function i(p){return e.enter("resource"),e.enter("resourceMarker"),e.consume(p),e.exit("resourceMarker"),s}function s(p){return yt(p)?Uu(e,l)(p):l(p)}function l(p){return p===41?m(p):H3(e,o,c,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(p)}function o(p){return yt(p)?Uu(e,d)(p):m(p)}function c(p){return n(p)}function d(p){return p===34||p===39||p===40?z3(e,h,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(p):m(p)}function h(p){return yt(p)?Uu(e,m)(p):m(p)}function m(p){return p===41?(e.enter("resourceMarker"),e.consume(p),e.exit("resourceMarker"),e.exit("resource"),t):n(p)}}function UP(e,t,n){const i=this;return s;function s(c){return U3.call(i,e,l,o,"reference","referenceMarker","referenceString")(c)}function l(c){return i.parser.defined.includes(fr(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)))?t(c):n(c)}function o(c){return n(c)}}function zP(e,t,n){return i;function i(l){return e.enter("reference"),e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),s}function s(l){return l===93?(e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),e.exit("reference"),t):n(l)}}const FP={name:"labelStartImage",resolveAll:xg.resolveAll,tokenize:qP};function qP(e,t,n){const i=this;return s;function s(c){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(c),e.exit("labelImageMarker"),l}function l(c){return c===91?(e.enter("labelMarker"),e.consume(c),e.exit("labelMarker"),e.exit("labelImage"),o):n(c)}function o(c){return c===94&&"_hiddenFootnoteSupport"in i.parser.constructs?n(c):t(c)}}const VP={name:"labelStartLink",resolveAll:xg.resolveAll,tokenize:YP};function YP(e,t,n){const i=this;return s;function s(o){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelLink"),l}function l(o){return o===94&&"_hiddenFootnoteSupport"in i.parser.constructs?n(o):t(o)}}const hp={name:"lineEnding",tokenize:$P};function $P(e,t){return n;function n(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),et(e,t,"linePrefix")}}const gf={name:"thematicBreak",tokenize:GP};function GP(e,t,n){let i=0,s;return l;function l(h){return e.enter("thematicBreak"),o(h)}function o(h){return s=h,c(h)}function c(h){return h===s?(e.enter("thematicBreakSequence"),d(h)):i>=3&&(h===null||Oe(h))?(e.exit("thematicBreak"),t(h)):n(h)}function d(h){return h===s?(e.consume(h),i++,d):(e.exit("thematicBreakSequence"),Ge(h)?et(e,c,"whitespace")(h):c(h))}}const Nn={continuation:{tokenize:WP},exit:JP,name:"list",tokenize:QP},KP={partial:!0,tokenize:e7},XP={partial:!0,tokenize:ZP};function QP(e,t,n){const i=this,s=i.events[i.events.length-1];let l=s&&s[1].type==="linePrefix"?s[2].sliceSerialize(s[1],!0).length:0,o=0;return c;function c(y){const v=i.containerState.type||(y===42||y===43||y===45?"listUnordered":"listOrdered");if(v==="listUnordered"?!i.containerState.marker||y===i.containerState.marker:c0(y)){if(i.containerState.type||(i.containerState.type=v,e.enter(v,{_container:!0})),v==="listUnordered")return e.enter("listItemPrefix"),y===42||y===45?e.check(gf,n,h)(y):h(y);if(!i.interrupt||y===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),d(y)}return n(y)}function d(y){return c0(y)&&++o<10?(e.consume(y),d):(!i.interrupt||o<2)&&(i.containerState.marker?y===i.containerState.marker:y===41||y===46)?(e.exit("listItemValue"),h(y)):n(y)}function h(y){return e.enter("listItemMarker"),e.consume(y),e.exit("listItemMarker"),i.containerState.marker=i.containerState.marker||y,e.check(co,i.interrupt?n:m,e.attempt(KP,E,p))}function m(y){return i.containerState.initialBlankLine=!0,l++,E(y)}function p(y){return Ge(y)?(e.enter("listItemPrefixWhitespace"),e.consume(y),e.exit("listItemPrefixWhitespace"),E):n(y)}function E(y){return i.containerState.size=l+i.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(y)}}function WP(e,t,n){const i=this;return i.containerState._closeFlow=void 0,e.check(co,s,l);function s(c){return i.containerState.furtherBlankLines=i.containerState.furtherBlankLines||i.containerState.initialBlankLine,et(e,t,"listItemIndent",i.containerState.size+1)(c)}function l(c){return i.containerState.furtherBlankLines||!Ge(c)?(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,o(c)):(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,e.attempt(XP,t,o)(c))}function o(c){return i.containerState._closeFlow=!0,i.interrupt=void 0,et(e,e.attempt(Nn,t,n),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(c)}}function ZP(e,t,n){const i=this;return et(e,s,"listItemIndent",i.containerState.size+1);function s(l){const o=i.events[i.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===i.containerState.size?t(l):n(l)}}function JP(e){e.exit(this.containerState.type)}function e7(e,t,n){const i=this;return et(e,s,"listItemPrefixWhitespace",i.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function s(l){const o=i.events[i.events.length-1];return!Ge(l)&&o&&o[1].type==="listItemPrefixWhitespace"?t(l):n(l)}}const XT={name:"setextUnderline",resolveTo:t7,tokenize:n7};function t7(e,t){let n=e.length,i,s,l;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){i=n;break}e[n][1].type==="paragraph"&&(s=n)}else e[n][1].type==="content"&&e.splice(n,1),!l&&e[n][1].type==="definition"&&(l=n);const o={type:"setextHeading",start:{...e[i][1].start},end:{...e[e.length-1][1].end}};return e[s][1].type="setextHeadingText",l?(e.splice(s,0,["enter",o,t]),e.splice(l+1,0,["exit",e[i][1],t]),e[i][1].end={...e[l][1].end}):e[i][1]=o,e.push(["exit",o,t]),e}function n7(e,t,n){const i=this;let s;return l;function l(h){let m=i.events.length,p;for(;m--;)if(i.events[m][1].type!=="lineEnding"&&i.events[m][1].type!=="linePrefix"&&i.events[m][1].type!=="content"){p=i.events[m][1].type==="paragraph";break}return!i.parser.lazy[i.now().line]&&(i.interrupt||p)?(e.enter("setextHeadingLine"),s=h,o(h)):n(h)}function o(h){return e.enter("setextHeadingLineSequence"),c(h)}function c(h){return h===s?(e.consume(h),c):(e.exit("setextHeadingLineSequence"),Ge(h)?et(e,d,"lineSuffix")(h):d(h))}function d(h){return h===null||Oe(h)?(e.exit("setextHeadingLine"),t(h)):n(h)}}const r7={tokenize:f7,partial:!0};function i7(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:u7,continuation:{tokenize:o7},exit:c7}},text:{91:{name:"gfmFootnoteCall",tokenize:l7},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:a7,resolveTo:s7}}}}function a7(e,t,n){const i=this;let s=i.events.length;const l=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let o;for(;s--;){const d=i.events[s][1];if(d.type==="labelImage"){o=d;break}if(d.type==="gfmFootnoteCall"||d.type==="labelLink"||d.type==="label"||d.type==="image"||d.type==="link")break}return c;function c(d){if(!o||!o._balanced)return n(d);const h=fr(i.sliceSerialize({start:o.end,end:i.now()}));return h.codePointAt(0)!==94||!l.includes(h.slice(1))?n(d):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),t(d))}}function s7(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const i={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},s={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};s.end.column++,s.end.offset++,s.end._bufferIndex++;const l={type:"gfmFootnoteCallString",start:Object.assign({},s.end),end:Object.assign({},e[e.length-1][1].start)},o={type:"chunkString",contentType:"string",start:Object.assign({},l.start),end:Object.assign({},l.end)},c=[e[n+1],e[n+2],["enter",i,t],e[n+3],e[n+4],["enter",s,t],["exit",s,t],["enter",l,t],["enter",o,t],["exit",o,t],["exit",l,t],e[e.length-2],e[e.length-1],["exit",i,t]];return e.splice(n,e.length-n+1,...c),e}function l7(e,t,n){const i=this,s=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let l=0,o;return c;function c(p){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(p),e.exit("gfmFootnoteCallLabelMarker"),d}function d(p){return p!==94?n(p):(e.enter("gfmFootnoteCallMarker"),e.consume(p),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",h)}function h(p){if(l>999||p===93&&!o||p===null||p===91||yt(p))return n(p);if(p===93){e.exit("chunkString");const E=e.exit("gfmFootnoteCallString");return s.includes(fr(i.sliceSerialize(E)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(p),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(p)}return yt(p)||(o=!0),l++,e.consume(p),p===92?m:h}function m(p){return p===91||p===92||p===93?(e.consume(p),l++,h):h(p)}}function u7(e,t,n){const i=this,s=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let l,o=0,c;return d;function d(v){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(v),e.exit("gfmFootnoteDefinitionLabelMarker"),h}function h(v){return v===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(v),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",m):n(v)}function m(v){if(o>999||v===93&&!c||v===null||v===91||yt(v))return n(v);if(v===93){e.exit("chunkString");const S=e.exit("gfmFootnoteDefinitionLabelString");return l=fr(i.sliceSerialize(S)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(v),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),E}return yt(v)||(c=!0),o++,e.consume(v),v===92?p:m}function p(v){return v===91||v===92||v===93?(e.consume(v),o++,m):m(v)}function E(v){return v===58?(e.enter("definitionMarker"),e.consume(v),e.exit("definitionMarker"),s.includes(l)||s.push(l),et(e,y,"gfmFootnoteDefinitionWhitespace")):n(v)}function y(v){return t(v)}}function o7(e,t,n){return e.check(co,t,e.attempt(r7,t,n))}function c7(e){e.exit("gfmFootnoteDefinition")}function f7(e,t,n){const i=this;return et(e,s,"gfmFootnoteDefinitionIndent",5);function s(l){const o=i.events[i.events.length-1];return o&&o[1].type==="gfmFootnoteDefinitionIndent"&&o[2].sliceSerialize(o[1],!0).length===4?t(l):n(l)}}function d7(e){let n=(e||{}).singleTilde;const i={name:"strikethrough",tokenize:l,resolveAll:s};return n==null&&(n=!0),{text:{126:i},insideSpan:{null:[i]},attentionMarkers:{null:[126]}};function s(o,c){let d=-1;for(;++d<o.length;)if(o[d][0]==="enter"&&o[d][1].type==="strikethroughSequenceTemporary"&&o[d][1]._close){let h=d;for(;h--;)if(o[h][0]==="exit"&&o[h][1].type==="strikethroughSequenceTemporary"&&o[h][1]._open&&o[d][1].end.offset-o[d][1].start.offset===o[h][1].end.offset-o[h][1].start.offset){o[d][1].type="strikethroughSequence",o[h][1].type="strikethroughSequence";const m={type:"strikethrough",start:Object.assign({},o[h][1].start),end:Object.assign({},o[d][1].end)},p={type:"strikethroughText",start:Object.assign({},o[h][1].end),end:Object.assign({},o[d][1].start)},E=[["enter",m,c],["enter",o[h][1],c],["exit",o[h][1],c],["enter",p,c]],y=c.parser.constructs.insideSpan.null;y&&Vn(E,E.length,0,hd(y,o.slice(h+1,d),c)),Vn(E,E.length,0,[["exit",p,c],["enter",o[d][1],c],["exit",o[d][1],c],["exit",m,c]]),Vn(o,h-1,d-h+3,E),d=h+E.length-2;break}}for(d=-1;++d<o.length;)o[d][1].type==="strikethroughSequenceTemporary"&&(o[d][1].type="data");return o}function l(o,c,d){const h=this.previous,m=this.events;let p=0;return E;function E(v){return h===126&&m[m.length-1][1].type!=="characterEscape"?d(v):(o.enter("strikethroughSequenceTemporary"),y(v))}function y(v){const S=hl(h);if(v===126)return p>1?d(v):(o.consume(v),p++,y);if(p<2&&!n)return d(v);const A=o.exit("strikethroughSequenceTemporary"),k=hl(v);return A._open=!k||k===2&&!!S,A._close=!S||S===2&&!!k,c(v)}}}class h7{constructor(){this.map=[]}add(t,n,i){m7(this,t,n,i)}consume(t){if(this.map.sort(function(l,o){return l[0]-o[0]}),this.map.length===0)return;let n=this.map.length;const i=[];for(;n>0;)n-=1,i.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];i.push(t.slice()),t.length=0;let s=i.pop();for(;s;){for(const l of s)t.push(l);s=i.pop()}this.map.length=0}}function m7(e,t,n,i){let s=0;if(!(n===0&&i.length===0)){for(;s<e.map.length;){if(e.map[s][0]===t){e.map[s][1]+=n,e.map[s][2].push(...i);return}s+=1}e.map.push([t,n,i])}}function p7(e,t){let n=!1;const i=[];for(;t<e.length;){const s=e[t];if(n){if(s[0]==="enter")s[1].type==="tableContent"&&i.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(s[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const l=i.length-1;i[l]=i[l]==="left"?"center":"right"}}else if(s[1].type==="tableDelimiterRow")break}else s[0]==="enter"&&s[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return i}function g7(){return{flow:{null:{name:"table",tokenize:b7,resolveAll:y7}}}}function b7(e,t,n){const i=this;let s=0,l=0,o;return c;function c(j){let $=i.events.length-1;for(;$>-1;){const ue=i.events[$][1].type;if(ue==="lineEnding"||ue==="linePrefix")$--;else break}const Z=$>-1?i.events[$][1].type:null,le=Z==="tableHead"||Z==="tableRow"?L:d;return le===L&&i.parser.lazy[i.now().line]?n(j):le(j)}function d(j){return e.enter("tableHead"),e.enter("tableRow"),h(j)}function h(j){return j===124||(o=!0,l+=1),m(j)}function m(j){return j===null?n(j):Oe(j)?l>1?(l=0,i.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(j),e.exit("lineEnding"),y):n(j):Ge(j)?et(e,m,"whitespace")(j):(l+=1,o&&(o=!1,s+=1),j===124?(e.enter("tableCellDivider"),e.consume(j),e.exit("tableCellDivider"),o=!0,m):(e.enter("data"),p(j)))}function p(j){return j===null||j===124||yt(j)?(e.exit("data"),m(j)):(e.consume(j),j===92?E:p)}function E(j){return j===92||j===124?(e.consume(j),p):p(j)}function y(j){return i.interrupt=!1,i.parser.lazy[i.now().line]?n(j):(e.enter("tableDelimiterRow"),o=!1,Ge(j)?et(e,v,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(j):v(j))}function v(j){return j===45||j===58?A(j):j===124?(o=!0,e.enter("tableCellDivider"),e.consume(j),e.exit("tableCellDivider"),S):z(j)}function S(j){return Ge(j)?et(e,A,"whitespace")(j):A(j)}function A(j){return j===58?(l+=1,o=!0,e.enter("tableDelimiterMarker"),e.consume(j),e.exit("tableDelimiterMarker"),k):j===45?(l+=1,k(j)):j===null||Oe(j)?D(j):z(j)}function k(j){return j===45?(e.enter("tableDelimiterFiller"),N(j)):z(j)}function N(j){return j===45?(e.consume(j),N):j===58?(o=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(j),e.exit("tableDelimiterMarker"),w):(e.exit("tableDelimiterFiller"),w(j))}function w(j){return Ge(j)?et(e,D,"whitespace")(j):D(j)}function D(j){return j===124?v(j):j===null||Oe(j)?!o||s!==l?z(j):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(j)):z(j)}function z(j){return n(j)}function L(j){return e.enter("tableRow"),P(j)}function P(j){return j===124?(e.enter("tableCellDivider"),e.consume(j),e.exit("tableCellDivider"),P):j===null||Oe(j)?(e.exit("tableRow"),t(j)):Ge(j)?et(e,P,"whitespace")(j):(e.enter("data"),H(j))}function H(j){return j===null||j===124||yt(j)?(e.exit("data"),P(j)):(e.consume(j),j===92?K:H)}function K(j){return j===92||j===124?(e.consume(j),H):H(j)}}function y7(e,t){let n=-1,i=!0,s=0,l=[0,0,0,0],o=[0,0,0,0],c=!1,d=0,h,m,p;const E=new h7;for(;++n<e.length;){const y=e[n],v=y[1];y[0]==="enter"?v.type==="tableHead"?(c=!1,d!==0&&(QT(E,t,d,h,m),m=void 0,d=0),h={type:"table",start:Object.assign({},v.start),end:Object.assign({},v.end)},E.add(n,0,[["enter",h,t]])):v.type==="tableRow"||v.type==="tableDelimiterRow"?(i=!0,p=void 0,l=[0,0,0,0],o=[0,n+1,0,0],c&&(c=!1,m={type:"tableBody",start:Object.assign({},v.start),end:Object.assign({},v.end)},E.add(n,0,[["enter",m,t]])),s=v.type==="tableDelimiterRow"?2:m?3:1):s&&(v.type==="data"||v.type==="tableDelimiterMarker"||v.type==="tableDelimiterFiller")?(i=!1,o[2]===0&&(l[1]!==0&&(o[0]=o[1],p=Xc(E,t,l,s,void 0,p),l=[0,0,0,0]),o[2]=n)):v.type==="tableCellDivider"&&(i?i=!1:(l[1]!==0&&(o[0]=o[1],p=Xc(E,t,l,s,void 0,p)),l=o,o=[l[1],n,0,0])):v.type==="tableHead"?(c=!0,d=n):v.type==="tableRow"||v.type==="tableDelimiterRow"?(d=n,l[1]!==0?(o[0]=o[1],p=Xc(E,t,l,s,n,p)):o[1]!==0&&(p=Xc(E,t,o,s,n,p)),s=0):s&&(v.type==="data"||v.type==="tableDelimiterMarker"||v.type==="tableDelimiterFiller")&&(o[3]=n)}for(d!==0&&QT(E,t,d,h,m),E.consume(t.events),n=-1;++n<t.events.length;){const y=t.events[n];y[0]==="enter"&&y[1].type==="table"&&(y[1]._align=p7(t.events,n))}return e}function Xc(e,t,n,i,s,l){const o=i===1?"tableHeader":i===2?"tableDelimiter":"tableData",c="tableContent";n[0]!==0&&(l.end=Object.assign({},Js(t.events,n[0])),e.add(n[0],0,[["exit",l,t]]));const d=Js(t.events,n[1]);if(l={type:o,start:Object.assign({},d),end:Object.assign({},d)},e.add(n[1],0,[["enter",l,t]]),n[2]!==0){const h=Js(t.events,n[2]),m=Js(t.events,n[3]),p={type:c,start:Object.assign({},h),end:Object.assign({},m)};if(e.add(n[2],0,[["enter",p,t]]),i!==2){const E=t.events[n[2]],y=t.events[n[3]];if(E[1].end=Object.assign({},y[1].end),E[1].type="chunkText",E[1].contentType="text",n[3]>n[2]+1){const v=n[2]+1,S=n[3]-n[2]-1;e.add(v,S,[])}}e.add(n[3]+1,0,[["exit",p,t]])}return s!==void 0&&(l.end=Object.assign({},Js(t.events,s)),e.add(s,0,[["exit",l,t]]),l=void 0),l}function QT(e,t,n,i,s){const l=[],o=Js(t.events,n);s&&(s.end=Object.assign({},o),l.push(["exit",s,t])),i.end=Object.assign({},o),l.push(["exit",i,t]),e.add(n+1,0,l)}function Js(e,t){const n=e[t],i=n[0]==="enter"?"start":"end";return n[1][i]}const E7={name:"tasklistCheck",tokenize:T7};function x7(){return{text:{91:E7}}}function T7(e,t,n){const i=this;return s;function s(d){return i.previous!==null||!i._gfmTasklistFirstContentOfListItem?n(d):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(d),e.exit("taskListCheckMarker"),l)}function l(d){return yt(d)?(e.enter("taskListCheckValueUnchecked"),e.consume(d),e.exit("taskListCheckValueUnchecked"),o):d===88||d===120?(e.enter("taskListCheckValueChecked"),e.consume(d),e.exit("taskListCheckValueChecked"),o):n(d)}function o(d){return d===93?(e.enter("taskListCheckMarker"),e.consume(d),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),c):n(d)}function c(d){return Oe(d)?t(d):Ge(d)?e.check({tokenize:v7},t,n)(d):n(d)}}function v7(e,t,n){return et(e,i,"whitespace");function i(s){return s===null?n(s):t(s)}}function S7(e){return A3([D9(),i7(),d7(e),g7(),x7()])}const _7={};function C7(e){const t=this,n=e||_7,i=t.data(),s=i.micromarkExtensions||(i.micromarkExtensions=[]),l=i.fromMarkdownExtensions||(i.fromMarkdownExtensions=[]),o=i.toMarkdownExtensions||(i.toMarkdownExtensions=[]);s.push(S7(n)),l.push(k9()),o.push(w9(n))}var A7=Object.defineProperty,k7=Object.defineProperties,w7=Object.getOwnPropertyDescriptors,WT=Object.getOwnPropertySymbols,N7=Object.prototype.hasOwnProperty,R7=Object.prototype.propertyIsEnumerable,ZT=(e,t,n)=>t in e?A7(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,F3=(e,t)=>{for(var n in t||(t={}))N7.call(t,n)&&ZT(e,n,t[n]);if(WT)for(var n of WT(t))R7.call(t,n)&&ZT(e,n,t[n]);return e},q3=(e,t)=>k7(e,w7(t)),O7=e=>{let t=new Uint8Array(e.length+1),n=!1,i=!1,s=0;for(;s<e.length;){if(e[s]==="\\"&&s+1<e.length&&e[s+1]==="`"){let l=n||i?1:0;t[s+1]=l,t[s+2]=l,s+=2;continue}if(e.substring(s,s+3)==="```"){i=!i;let l=n||i?1:0,o=Math.min(s+3,e.length);for(let c=s+1;c<=o;c+=1)t[c]=l;s=o;continue}!i&&e[s]==="`"&&(n=!n),t[s+1]=n||i?1:0,s+=1}return t},JT=null,bn=(e,t)=>{let n=JT;return(n===null||n.text!==e)&&(n={text:e,lookup:O7(e)},JT=n),n.lookup[Math.min(t,e.length)]===1},L7=(e,t)=>{let n=e.substring(t,t+3)==="```",i=t>0&&e.substring(t-1,t+2)==="```",s=t>1&&e.substring(t-2,t+1)==="```";return n||i||s},D7=e=>{let t=0;for(let n=0;n<e.length;n+=1){if(e[n]==="\\"&&n+1<e.length&&e[n+1]==="`"){n+=1;continue}e[n]==="`"&&!L7(e,n)&&(t+=1)}return t},na=(e,t)=>{let n=!1,i=!1,s=-1;for(let l=0;l<e.length;l+=1){if(e[l]==="\\"&&l+1<e.length&&e[l+1]==="`"){l+=1;continue}if(e.substring(l,l+3)==="```"){i=!i,l+=2;continue}if(!i&&e[l]==="`")if(n){if(s<t&&t<l)return!0;n=!1,s=-1}else n=!0,s=l}return!1},I7=/^(\s*(?:[-*+]|\d+[.)]) +)>(=?\s*[$]?\d)/gm,M7=e=>!e||typeof e!="string"||!e.includes(">")?e:e.replace(I7,(t,n,i,s)=>bn(e,s)?t:`${n}\\>${i}`),P7=/(\*\*)([^*]*\*?)$/,B7=/(__)([^_]*?)$/,j7=/(\*\*\*)([^*]*?)$/,H7=/(\*)([^*]*?)$/,U7=/(_)([^_]*?)$/,z7=/(`)([^`]*?)$/,F7=/(~~)([^~]*?)$/,ns=/^[\s_~*`]*$/,V3=/^[\s]*[-*+][\s]+$/,q7=/[\p{L}\p{N}_]/u,V7=/^```[^`\n]*```?$/,Y7=/^\*{4,}$/,$7=/(__)([^_]+)_$/,G7=/(~~)([^~]+)~$/,e2=/~~/g,di=e=>{if(!e)return!1;let t=e.charCodeAt(0);return t>=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122||t===95?!0:q7.test(e)},K7=(e,t)=>{let n=1;for(let i=t-1;i>=0;i-=1)if(e[i]==="]")n+=1;else if(e[i]==="["&&(n-=1,n===0))return i;return-1},Y3=(e,t)=>{let n=1;for(let i=t+1;i<e.length;i+=1)if(e[i]==="[")n+=1;else if(e[i]==="]"&&(n-=1,n===0))return i;return-1},X7=e=>e==="inlineLatex"||e==="blockLatex",Q7=(e,t)=>t==="["&&e==="none"?"blockLatex":t==="]"&&e==="blockLatex"?"none":t==="("&&e==="none"?"inlineLatex":t===")"&&e==="inlineLatex"?"none":null,W7=(e,t)=>t?e==="blockDollar"?"none":"blockDollar":e==="blockDollar"?e:e==="inlineDollar"?"none":"inlineDollar",md=(e,t)=>{let n="none";for(let i=0;i<e.length&&i<t;i+=1){if(e[i]==="\\"&&e[i+1]==="$"){i+=1;continue}if(e[i]==="\\"){let s=Q7(n,e[i+1]);if(s!==null){n=s,i+=1;continue}}if(e[i]==="$"&&!X7(n)){let s=e[i+1]==="$";n=W7(n,s),s&&(i+=1)}}return n!=="none"},Z7=(e,t)=>{for(let n=t;n<e.length;n+=1){if(e[n]===")")return!0;if(e[n]===`
|
|
66
|
+
`)return!1}return!1},$3=(e,t)=>{for(let n=t-1;n>=0;n-=1){if(e[n]===")")return!1;if(e[n]==="(")return n>0&&e[n-1]==="]"?Z7(e,t):!1;if(e[n]===`
|
|
67
|
+
`)return!1}return!1},J7=(e,t)=>{for(let n=t-1;n>=0;n-=1){if(e[n]===">")return!1;if(e[n]==="<"){let i=n+1<e.length?e[n+1]:"";return i>="a"&&i<="z"||i>="A"&&i<="Z"||i==="/"}if(e[n]===`
|
|
68
|
+
`)return!1}return!1},Tg=(e,t,n)=>{let i=0;for(let d=t-1;d>=0;d-=1)if(e[d]===`
|
|
69
|
+
`){i=d+1;break}let s=e.length;for(let d=t;d<e.length;d+=1)if(e[d]===`
|
|
70
|
+
`){s=d;break}let l=e.substring(i,s),o=0,c=!1;for(let d of l)if(d===n)o+=1;else if(d!==" "&&d!==" "){c=!0;break}return o>=3&&!c},G3=e=>e.includes("$")||e.includes("\\(")||e.includes("\\["),eB=(e,t,n,i)=>n==="\\"||G3(e)&&md(e,t)?!0:n!=="*"&&i==="*"?(t<e.length-2?e[t+2]:"")!=="*":n==="*"||(!n||n===" "||n===" "||n===`
|
|
71
|
+
`)&&(!i||i===" "||i===" "||i===`
|
|
72
|
+
`),Pf=e=>e===" "||e===" "||e===`
|
|
73
|
+
`,tB=(e,t)=>!!(e&&t&&di(e)&&di(t)),nB=(e,t,n,i)=>{let s=tB(e,t),l=!!t&&!Pf(t),o=!!e&&!Pf(e);return s&&n%2===0&&!i?{count:!1}:o&&n%2===1||l?{count:!0,inWordAsteriskChain:s}:{count:!1}},K3=e=>{let t=0,n=!1,i=!1,s=e.length;for(let l=0;l<s;l+=1){if(e[l]==="`"&&l+2<s&&e[l+1]==="`"&&e[l+2]==="`"){n=!n,l+=2;continue}if(n)continue;if(e[l]!=="*"){di(e[l])||(i=!1);continue}let o=l>0?e[l-1]:"",c=l<s-1?e[l+1]:"";if(eB(e,l,o,c))continue;let d=nB(o,c,t,i);d.count&&(t+=1,i=d.inWordAsteriskChain)}return t},rB=(e,t,n,i)=>!!(n==="\\"||G3(e)&&md(e,t)||$3(e,t)||J7(e,t)||n==="_"||i==="_"||n&&i&&di(n)&&di(i)),iB=e=>{let t=0,n=!1,i=e.length;for(let s=0;s<i;s+=1){if(e[s]==="`"&&s+2<i&&e[s+1]==="`"&&e[s+2]==="`"){n=!n,s+=2;continue}if(n||e[s]!=="_")continue;let l=s>0?e[s-1]:"",o=s<i-1?e[s+1]:"";rB(e,s,l,o)||(t+=1)}return t},aB=e=>{let t=0,n=0,i=!1;for(let s=0;s<e.length;s+=1){if(e[s]==="`"&&s+2<e.length&&e[s+1]==="`"&&e[s+2]==="`"){n>=3&&(t+=Math.floor(n/3)),n=0,i=!i,s+=2;continue}i||(e[s]==="*"?n+=1:(n>=3&&(t+=Math.floor(n/3)),n=0))}return n>=3&&(t+=Math.floor(n/3)),t},vg=e=>{let t=0,n=!1;for(let i=0;i<e.length;i+=1){if(e[i]==="`"&&i+2<e.length&&e[i+1]==="`"&&e[i+2]==="`"){n=!n,i+=2;continue}n||e[i]==="*"&&i+1<e.length&&e[i+1]==="*"&&(t+=1,i+=1)}return t},t2=e=>{let t=0,n=!1;for(let i=0;i<e.length;i+=1){if(e[i]==="`"&&i+2<e.length&&e[i+1]==="`"&&e[i+2]==="`"){n=!n,i+=2;continue}n||e[i]==="_"&&i+1<e.length&&e[i+1]==="_"&&(t+=1,i+=1)}return t},sB=(e,t,n)=>{if(!t||ns.test(t))return!0;let i=e.substring(0,n).lastIndexOf(`
|
|
74
|
+
`),s=i===-1?0:i+1,l=e.substring(s,n);return V3.test(l)&&t.includes(`
|
|
75
|
+
`)?!0:Tg(e,n,"*")},lB=e=>{let t=e.match(P7);if(!t)return e;let n=t[2],i=e.lastIndexOf(t[1]);return bn(e,i)||na(e,i)||sB(e,n,i)?e:vg(e)%2===1?n.endsWith("*")?`${e}*`:`${e}**`:e},uB=(e,t,n)=>{if(!t||ns.test(t))return!0;let i=e.substring(0,n).lastIndexOf(`
|
|
76
|
+
`),s=i===-1?0:i+1,l=e.substring(s,n);return V3.test(l)&&t.includes(`
|
|
77
|
+
`)?!0:Tg(e,n,"_")},oB=e=>{let t=e.match(B7);if(!t){let s=e.match($7);if(s){let l=e.lastIndexOf(s[1]);if(!(bn(e,l)||na(e,l))&&t2(e)%2===1)return`${e}_`}return e}let n=t[2],i=e.lastIndexOf(t[1]);return bn(e,i)||na(e,i)||uB(e,n,i)?e:t2(e)%2===1?`${e}__`:e},cB=e=>{let t=!1;for(let n=0;n<e.length;n+=1){if(e[n]==="`"&&n+2<e.length&&e[n+1]==="`"&&e[n+2]==="`"){t=!t,n+=2;continue}if(!t&&e[n]==="*"&&e[n-1]!=="*"&&e[n+1]!=="*"&&e[n-1]!=="\\"&&!md(e,n)){let i=n>0?e[n-1]:"",s=n<e.length-1?e[n+1]:"",l=!i||Pf(i),o=!s||Pf(s);if(l&&o||i&&s&&di(i)&&di(s)||o)continue;return n}}return-1},fB=e=>{if(!e.match(H7))return e;let t=cB(e);if(t===-1||bn(e,t)||na(e,t))return e;let n=e.substring(t+1);return!n||ns.test(n)?e:K3(e)%2===1?`${e}*`:e},X3=e=>{let t=!1;for(let n=0;n<e.length;n+=1){if(e[n]==="`"&&n+2<e.length&&e[n+1]==="`"&&e[n+2]==="`"){t=!t,n+=2;continue}if(!t&&e[n]==="_"&&e[n-1]!=="_"&&e[n+1]!=="_"&&e[n-1]!=="\\"&&!md(e,n)&&!$3(e,n)){let i=n>0?e[n-1]:"",s=n<e.length-1?e[n+1]:"";if(i&&s&&di(i)&&di(s))continue;return n}}return-1},dB=e=>{let t=e.length;for(;t>0&&e[t-1]===`
|
|
78
|
+
`;)t-=1;if(t<e.length){let n=e.slice(0,t),i=e.slice(t);return`${n}_${i}`}return`${e}_`},hB=e=>{if(!e.endsWith("**"))return null;let t=e.slice(0,-2);if(vg(t)%2!==1)return null;let n=t.indexOf("**"),i=X3(t);return n!==-1&&i!==-1&&n<i?`${t}_**`:null},mB=e=>{if(!e.match(U7))return e;let t=X3(e);if(t===-1)return e;let n=e.substring(t+1);if(!n||ns.test(n)||bn(e,t)||na(e,t))return e;if(iB(e)%2===1){let i=hB(e);return i!==null?i:dB(e)}return e},pB=e=>{let t=vg(e),n=K3(e);return t%2===0&&n%2===0},gB=(e,t,n)=>!t||ns.test(t)||bn(e,n)||na(e,n)?!0:Tg(e,n,"*"),bB=e=>{if(Y7.test(e))return e;let t=e.match(j7);if(!t)return e;let n=t[2],i=e.lastIndexOf(t[1]);return gB(e,n,i)?e:aB(e)%2===1?pB(e)?e:`${e}***`:e},yB=/<[a-zA-Z/][^>]*$/,EB=e=>{let t=e.match(yB);return!t||t.index===void 0||bn(e,t.index)?e:e.substring(0,t.index).trimEnd()},xB=e=>!e.match(V7)||e.includes(`
|
|
79
|
+
`)?null:e.endsWith("``")&&!e.endsWith("```")?`${e}\``:e,TB=e=>(e.match(/```/g)||[]).length%2===1,vB=e=>{let t=xB(e);if(t!==null)return t;let n=e.match(z7);if(n&&!TB(e)){let i=n[2];if(!i||ns.test(i))return e;if(D7(e)%2===1)return`${e}\``}return e},Q3=(e,t)=>t>=2&&e.substring(t-2,t+1)==="```"||t>=1&&e.substring(t-1,t+2)==="```"||t<=e.length-3&&e.substring(t,t+3)==="```",SB=e=>{let t=0,n=!1;for(let i=0;i<e.length-1;i+=1)e[i]==="`"&&!Q3(e,i)&&(n=!n),!n&&e[i]==="$"&&e[i+1]==="$"&&(t+=1,i+=1);return t},_B=e=>{let t=0,n=!1;for(let i=0;i<e.length;i+=1){if(e[i]==="\\"){i+=1;continue}if(e[i]==="`"&&!Q3(e,i)){n=!n;continue}!n&&e[i]==="$"&&(i+1<e.length&&e[i+1]==="$"?i+=1:t+=1)}return t},CB=e=>{if(e.endsWith("$")&&!e.endsWith("$$"))return`${e}$`;let t=e.indexOf("$$");return t!==-1&&e.indexOf(`
|
|
80
|
+
`,t)!==-1&&!e.endsWith(`
|
|
81
|
+
`)?`${e}
|
|
82
|
+
$$`:`${e}$$`},AB=e=>SB(e)%2===0?e:CB(e),kB=e=>_B(e)%2===1?`${e}$`:e,wB=(e,t,n)=>{if(e.substring(t+2).includes(")"))return null;let i=K7(e,t);if(i===-1||bn(e,i))return null;let s=i>0&&e[i-1]==="!",l=s?i-1:i,o=e.substring(0,l);if(s)return o;let c=e.substring(i+1,t);return n==="text-only"?`${o}${c}`:`${o}[${c}](streamdown:incomplete-link)`},n2=(e,t)=>{for(let n=0;n<t;n++)if(e[n]==="["&&!bn(e,n)){if(n>0&&e[n-1]==="!")continue;let i=Y3(e,n);if(i===-1)return n;if(i+1<e.length&&e[i+1]==="("){let s=e.indexOf(")",i+2);s!==-1&&(n=s)}}return t},NB=(e,t,n)=>{let i=t>0&&e[t-1]==="!",s=i?t-1:t;if(!e.substring(t+1).includes("]")){let l=e.substring(0,s);if(i)return l;if(n==="text-only"){let o=n2(e,t);return e.substring(0,o)+e.substring(o+1)}return`${e}](streamdown:incomplete-link)`}if(Y3(e,t)===-1){let l=e.substring(0,s);if(i)return l;if(n==="text-only"){let o=n2(e,t);return e.substring(0,o)+e.substring(o+1)}return`${e}](streamdown:incomplete-link)`}return null},W3=(e,t="protocol")=>{let n=e.lastIndexOf("](");if(n!==-1&&!bn(e,n)){let i=wB(e,n,t);if(i!==null)return i}for(let i=e.length-1;i>=0;i-=1)if(e[i]==="["&&!bn(e,i)){let s=NB(e,i,t);if(s!==null)return s}return e},RB=/^-{1,2}$/,OB=/^[\s]*-{1,2}[\s]+$/,LB=/^={1,2}$/,DB=/^[\s]*={1,2}[\s]+$/,IB=e=>{if(!e||typeof e!="string")return e;let t=e.lastIndexOf(`
|
|
83
|
+
`);if(t===-1)return e;let n=e.substring(t+1),i=e.substring(0,t),s=n.trim();if(RB.test(s)&&!n.match(OB)){let l=i.split(`
|
|
84
|
+
`).at(-1);if(l&&l.trim().length>0)return`${e}`}if(LB.test(s)&&!n.match(DB)){let l=i.split(`
|
|
85
|
+
`).at(-1);if(l&&l.trim().length>0)return`${e}`}return e},MB=/([\p{L}\p{N}_])~(?!~)(?=[\p{L}\p{N}_])/gu,PB=e=>!e||typeof e!="string"||!e.includes("~")?e:e.replace(MB,(t,n,i)=>{let s=i+n.length;return bn(e,s)?t:`${n}\\~`}),BB=e=>{var t,n;let i=e.match(F7);if(i){let s=i[2];if(!s||ns.test(s))return e;let l=e.lastIndexOf(i[1]);if(bn(e,l)||na(e,l))return e;if(((t=e.match(e2))==null?void 0:t.length)%2===1)return`${e}~~`}else{let s=e.match(G7);if(s){let l=e.lastIndexOf(s[0].slice(0,2));if(bn(e,l)||na(e,l))return e;if(((n=e.match(e2))==null?void 0:n.length)%2===1)return`${e}~`}}return e},mp=e=>e!==!1,jB=e=>e===!0,hn={SINGLE_TILDE:0,COMPARISON_OPERATORS:5,HTML_TAGS:10,SETEXT_HEADINGS:15,LINKS:20,BOLD_ITALIC:30,BOLD:35,ITALIC_DOUBLE_UNDERSCORE:40,ITALIC_SINGLE_ASTERISK:41,ITALIC_SINGLE_UNDERSCORE:42,INLINE_CODE:50,STRIKETHROUGH:60,KATEX:70,INLINE_KATEX:75,DEFAULT:100},HB=[{handler:{name:"singleTilde",handle:PB,priority:hn.SINGLE_TILDE},optionKey:"singleTilde"},{handler:{name:"comparisonOperators",handle:M7,priority:hn.COMPARISON_OPERATORS},optionKey:"comparisonOperators"},{handler:{name:"htmlTags",handle:EB,priority:hn.HTML_TAGS},optionKey:"htmlTags"},{handler:{name:"setextHeadings",handle:IB,priority:hn.SETEXT_HEADINGS},optionKey:"setextHeadings"},{handler:{name:"links",handle:W3,priority:hn.LINKS},optionKey:"links",earlyReturn:e=>e.endsWith("](streamdown:incomplete-link)")},{handler:{name:"boldItalic",handle:bB,priority:hn.BOLD_ITALIC},optionKey:"boldItalic"},{handler:{name:"bold",handle:lB,priority:hn.BOLD},optionKey:"bold"},{handler:{name:"italicDoubleUnderscore",handle:oB,priority:hn.ITALIC_DOUBLE_UNDERSCORE},optionKey:"italic"},{handler:{name:"italicSingleAsterisk",handle:fB,priority:hn.ITALIC_SINGLE_ASTERISK},optionKey:"italic"},{handler:{name:"italicSingleUnderscore",handle:mB,priority:hn.ITALIC_SINGLE_UNDERSCORE},optionKey:"italic"},{handler:{name:"inlineCode",handle:vB,priority:hn.INLINE_CODE},optionKey:"inlineCode"},{handler:{name:"strikethrough",handle:BB,priority:hn.STRIKETHROUGH},optionKey:"strikethrough"},{handler:{name:"katex",handle:AB,priority:hn.KATEX},optionKey:"katex"},{handler:{name:"inlineKatex",handle:kB,priority:hn.INLINE_KATEX},optionKey:"inlineKatex"}],UB=e=>{var t;let n=(t=e?.linkMode)!=null?t:"protocol";return HB.filter(({handler:i,optionKey:s})=>i.name==="links"?mp(e?.links)||mp(e?.images):i.name==="inlineKatex"?jB(e?.inlineKatex):mp(e?.[s])).map(({handler:i,earlyReturn:s})=>i.name==="links"?{handler:q3(F3({},i),{handle:l=>W3(l,n)}),earlyReturn:n==="protocol"?s:void 0}:{handler:i,earlyReturn:s})},zB=(e,t)=>{var n;if(!e||typeof e!="string")return e;let i=e.endsWith(" ")&&!e.endsWith(" ")?e.slice(0,-1):e,s=UB(t),l=((n=t?.handlers)!=null?n:[]).map(c=>{var d;return{handler:q3(F3({},c),{priority:(d=c.priority)!=null?d:hn.DEFAULT}),earlyReturn:void 0}}),o=[...s,...l].sort((c,d)=>{var h,m;return((h=c.handler.priority)!=null?h:0)-((m=d.handler.priority)!=null?m:0)});for(let{handler:c,earlyReturn:d}of o)if(i=c.handle(i),d!=null&&d(i))return i;return i},FB=zB;function Z3(e){var t,n,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(n=Z3(e[t]))&&(i&&(i+=" "),i+=n)}else for(n in e)e[n]&&(i&&(i+=" "),i+=n);return i}function J3(){for(var e,t,n=0,i="",s=arguments.length;n<s;n++)(e=arguments[n])&&(t=Z3(e))&&(i&&(i+=" "),i+=t);return i}const qB=(e,t)=>{const n=new Array(e.length+t.length);for(let i=0;i<e.length;i++)n[i]=e[i];for(let i=0;i<t.length;i++)n[e.length+i]=t[i];return n},VB=(e,t)=>({classGroupId:e,validator:t}),eC=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Bf="-",r2=[],YB="arbitrary..",$B=e=>{const t=KB(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:i}=e;return{getClassGroupId:o=>{if(o.startsWith("[")&&o.endsWith("]"))return GB(o);const c=o.split(Bf),d=c[0]===""&&c.length>1?1:0;return tC(c,d,t)},getConflictingClassGroupIds:(o,c)=>{if(c){const d=i[o],h=n[o];return d?h?qB(h,d):d:h||r2}return n[o]||r2}}},tC=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const s=e[t],l=n.nextPart.get(s);if(l){const h=tC(e,t+1,l);if(h)return h}const o=n.validators;if(o===null)return;const c=t===0?e.join(Bf):e.slice(t).join(Bf),d=o.length;for(let h=0;h<d;h++){const m=o[h];if(m.validator(c))return m.classGroupId}},GB=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),i=t.slice(0,n);return i?YB+i:void 0})(),KB=e=>{const{theme:t,classGroups:n}=e;return XB(n,t)},XB=(e,t)=>{const n=eC();for(const i in e){const s=e[i];Sg(s,n,i,t)}return n},Sg=(e,t,n,i)=>{const s=e.length;for(let l=0;l<s;l++){const o=e[l];QB(o,t,n,i)}},QB=(e,t,n,i)=>{if(typeof e=="string"){WB(e,t,n);return}if(typeof e=="function"){ZB(e,t,n,i);return}JB(e,t,n,i)},WB=(e,t,n)=>{const i=e===""?t:nC(t,e);i.classGroupId=n},ZB=(e,t,n,i)=>{if(ej(e)){Sg(e(i),t,n,i);return}t.validators===null&&(t.validators=[]),t.validators.push(VB(n,e))},JB=(e,t,n,i)=>{const s=Object.entries(e),l=s.length;for(let o=0;o<l;o++){const[c,d]=s[o];Sg(d,nC(t,c),n,i)}},nC=(e,t)=>{let n=e;const i=t.split(Bf),s=i.length;for(let l=0;l<s;l++){const o=i[l];let c=n.nextPart.get(o);c||(c=eC(),n.nextPart.set(o,c)),n=c}return n},ej=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,tj=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),i=Object.create(null);const s=(l,o)=>{n[l]=o,t++,t>e&&(t=0,i=n,n=Object.create(null))};return{get(l){let o=n[l];if(o!==void 0)return o;if((o=i[l])!==void 0)return s(l,o),o},set(l,o){l in n?n[l]=o:s(l,o)}}},h0="!",i2=":",nj=[],a2=(e,t,n,i,s)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:i,isExternal:s}),rj=e=>{const{prefix:t,experimentalParseClassName:n}=e;let i=s=>{const l=[];let o=0,c=0,d=0,h;const m=s.length;for(let S=0;S<m;S++){const A=s[S];if(o===0&&c===0){if(A===i2){l.push(s.slice(d,S)),d=S+1;continue}if(A==="/"){h=S;continue}}A==="["?o++:A==="]"?o--:A==="("?c++:A===")"&&c--}const p=l.length===0?s:s.slice(d);let E=p,y=!1;p.endsWith(h0)?(E=p.slice(0,-1),y=!0):p.startsWith(h0)&&(E=p.slice(1),y=!0);const v=h&&h>d?h-d:void 0;return a2(l,y,E,v)};if(t){const s=t+i2,l=i;i=o=>o.startsWith(s)?l(o.slice(s.length)):a2(nj,!1,o,void 0,!0)}if(n){const s=i;i=l=>n({className:l,parseClassName:s})}return i},ij=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,i)=>{t.set(n,1e6+i)}),n=>{const i=[];let s=[];for(let l=0;l<n.length;l++){const o=n[l],c=o[0]==="[",d=t.has(o);c||d?(s.length>0&&(s.sort(),i.push(...s),s=[]),i.push(o)):s.push(o)}return s.length>0&&(s.sort(),i.push(...s)),i}},aj=e=>({cache:tj(e.cacheSize),parseClassName:rj(e),sortModifiers:ij(e),postfixLookupClassGroupIds:sj(e),...$B(e)}),sj=e=>{const t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let i=0;i<n.length;i++)t[n[i]]=!0;return t},lj=/\s+/,uj=(e,t)=>{const{parseClassName:n,getClassGroupId:i,getConflictingClassGroupIds:s,sortModifiers:l,postfixLookupClassGroupIds:o}=t,c=[],d=e.trim().split(lj);let h="";for(let m=d.length-1;m>=0;m-=1){const p=d[m],{isExternal:E,modifiers:y,hasImportantModifier:v,baseClassName:S,maybePostfixModifierPosition:A}=n(p);if(E){h=p+(h.length>0?" "+h:h);continue}let k=!!A,N;if(k){const P=S.substring(0,A);N=i(P);const H=N&&o[N]?i(S):void 0;H&&H!==N&&(N=H,k=!1)}else N=i(S);if(!N){if(!k){h=p+(h.length>0?" "+h:h);continue}if(N=i(S),!N){h=p+(h.length>0?" "+h:h);continue}k=!1}const w=y.length===0?"":y.length===1?y[0]:l(y).join(":"),D=v?w+h0:w,z=D+N;if(c.indexOf(z)>-1)continue;c.push(z);const L=s(N,k);for(let P=0;P<L.length;++P){const H=L[P];c.push(D+H)}h=p+(h.length>0?" "+h:h)}return h},oj=(...e)=>{let t=0,n,i,s="";for(;t<e.length;)(n=e[t++])&&(i=rC(n))&&(s&&(s+=" "),s+=i);return s},rC=e=>{if(typeof e=="string")return e;let t,n="";for(let i=0;i<e.length;i++)e[i]&&(t=rC(e[i]))&&(n&&(n+=" "),n+=t);return n},cj=(e,...t)=>{let n,i,s,l;const o=d=>{const h=t.reduce((m,p)=>p(m),e());return n=aj(h),i=n.cache.get,s=n.cache.set,l=c,c(d)},c=d=>{const h=i(d);if(h)return h;const m=uj(d,n);return s(d,m),m};return l=o,(...d)=>l(oj(...d))},fj=[],qt=e=>{const t=n=>n[e]||fj;return t.isThemeGetter=!0,t},iC=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,aC=/^\((?:(\w[\w-]*):)?(.+)\)$/i,dj=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,hj=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,mj=/\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$/,pj=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,gj=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,bj=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,zi=e=>dj.test(e),ze=e=>!!e&&!Number.isNaN(Number(e)),Tr=e=>!!e&&Number.isInteger(Number(e)),pp=e=>e.endsWith("%")&&ze(e.slice(0,-1)),ei=e=>hj.test(e),sC=()=>!0,yj=e=>mj.test(e)&&!pj.test(e),_g=()=>!1,Ej=e=>gj.test(e),xj=e=>bj.test(e),Tj=e=>!ve(e)&&!Se(e),vj=e=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),Sj=e=>ua(e,oC,_g),ve=e=>iC.test(e),Oa=e=>ua(e,cC,yj),s2=e=>ua(e,Oj,ze),_j=e=>ua(e,dC,sC),Cj=e=>ua(e,fC,_g),l2=e=>ua(e,lC,_g),Aj=e=>ua(e,uC,xj),Qc=e=>ua(e,hC,Ej),Se=e=>aC.test(e),Su=e=>rs(e,cC),kj=e=>rs(e,fC),u2=e=>rs(e,lC),wj=e=>rs(e,oC),Nj=e=>rs(e,uC),Wc=e=>rs(e,hC,!0),Rj=e=>rs(e,dC,!0),ua=(e,t,n)=>{const i=iC.exec(e);return i?i[1]?t(i[1]):n(i[2]):!1},rs=(e,t,n=!1)=>{const i=aC.exec(e);return i?i[1]?t(i[1]):n:!1},lC=e=>e==="position"||e==="percentage",uC=e=>e==="image"||e==="url",oC=e=>e==="length"||e==="size"||e==="bg-size",cC=e=>e==="length",Oj=e=>e==="number",fC=e=>e==="family-name",dC=e=>e==="number"||e==="weight",hC=e=>e==="shadow",Lj=()=>{const e=qt("color"),t=qt("font"),n=qt("text"),i=qt("font-weight"),s=qt("tracking"),l=qt("leading"),o=qt("breakpoint"),c=qt("container"),d=qt("spacing"),h=qt("radius"),m=qt("shadow"),p=qt("inset-shadow"),E=qt("text-shadow"),y=qt("drop-shadow"),v=qt("blur"),S=qt("perspective"),A=qt("aspect"),k=qt("ease"),N=qt("animate"),w=()=>["auto","avoid","all","avoid-page","page","left","right","column"],D=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],z=()=>[...D(),Se,ve],L=()=>["auto","hidden","clip","visible","scroll"],P=()=>["auto","contain","none"],H=()=>[Se,ve,d],K=()=>[zi,"full","auto",...H()],j=()=>[Tr,"none","subgrid",Se,ve],$=()=>["auto",{span:["full",Tr,Se,ve]},Tr,Se,ve],Z=()=>[Tr,"auto",Se,ve],le=()=>["auto","min","max","fr",Se,ve],ue=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],re=()=>["start","end","center","stretch","center-safe","end-safe"],V=()=>["auto",...H()],Q=()=>[zi,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...H()],ae=()=>[zi,"screen","full","dvw","lvw","svw","min","max","fit",...H()],Ee=()=>[zi,"screen","full","lh","dvh","lvh","svh","min","max","fit",...H()],R=()=>[e,Se,ve],U=()=>[...D(),u2,l2,{position:[Se,ve]}],X=()=>["no-repeat",{repeat:["","x","y","space","round"]}],I=()=>["auto","cover","contain",wj,Sj,{size:[Se,ve]}],ge=()=>[pp,Su,Oa],ye=()=>["","none","full",h,Se,ve],he=()=>["",ze,Su,Oa],Ae=()=>["solid","dashed","dotted","double"],Te=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],xe=()=>[ze,pp,u2,l2],je=()=>["","none",v,Se,ve],Ne=()=>["none",ze,Se,ve],Me=()=>["none",ze,Se,ve],Ve=()=>[ze,Se,ve],rt=()=>[zi,"full",...H()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[ei],breakpoint:[ei],color:[sC],container:[ei],"drop-shadow":[ei],ease:["in","out","in-out"],font:[Tj],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[ei],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[ei],shadow:[ei],spacing:["px",ze],text:[ei],"text-shadow":[ei],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",zi,ve,Se,A]}],container:["container"],"container-type":[{"@container":["","normal","size",Se,ve]}],"container-named":[vj],columns:[{columns:[ze,ve,Se,c]}],"break-after":[{"break-after":w()}],"break-before":[{"break-before":w()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:z()}],overflow:[{overflow:L()}],"overflow-x":[{"overflow-x":L()}],"overflow-y":[{"overflow-y":L()}],overscroll:[{overscroll:P()}],"overscroll-x":[{"overscroll-x":P()}],"overscroll-y":[{"overscroll-y":P()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:K()}],"inset-x":[{"inset-x":K()}],"inset-y":[{"inset-y":K()}],start:[{"inset-s":K(),start:K()}],end:[{"inset-e":K(),end:K()}],"inset-bs":[{"inset-bs":K()}],"inset-be":[{"inset-be":K()}],top:[{top:K()}],right:[{right:K()}],bottom:[{bottom:K()}],left:[{left:K()}],visibility:["visible","invisible","collapse"],z:[{z:[Tr,"auto",Se,ve]}],basis:[{basis:[zi,"full","auto",c,...H()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[ze,zi,"auto","initial","none",ve]}],grow:[{grow:["",ze,Se,ve]}],shrink:[{shrink:["",ze,Se,ve]}],order:[{order:[Tr,"first","last","none",Se,ve]}],"grid-cols":[{"grid-cols":j()}],"col-start-end":[{col:$()}],"col-start":[{"col-start":Z()}],"col-end":[{"col-end":Z()}],"grid-rows":[{"grid-rows":j()}],"row-start-end":[{row:$()}],"row-start":[{"row-start":Z()}],"row-end":[{"row-end":Z()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":le()}],"auto-rows":[{"auto-rows":le()}],gap:[{gap:H()}],"gap-x":[{"gap-x":H()}],"gap-y":[{"gap-y":H()}],"justify-content":[{justify:[...ue(),"normal"]}],"justify-items":[{"justify-items":[...re(),"normal"]}],"justify-self":[{"justify-self":["auto",...re()]}],"align-content":[{content:["normal",...ue()]}],"align-items":[{items:[...re(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...re(),{baseline:["","last"]}]}],"place-content":[{"place-content":ue()}],"place-items":[{"place-items":[...re(),"baseline"]}],"place-self":[{"place-self":["auto",...re()]}],p:[{p:H()}],px:[{px:H()}],py:[{py:H()}],ps:[{ps:H()}],pe:[{pe:H()}],pbs:[{pbs:H()}],pbe:[{pbe:H()}],pt:[{pt:H()}],pr:[{pr:H()}],pb:[{pb:H()}],pl:[{pl:H()}],m:[{m:V()}],mx:[{mx:V()}],my:[{my:V()}],ms:[{ms:V()}],me:[{me:V()}],mbs:[{mbs:V()}],mbe:[{mbe:V()}],mt:[{mt:V()}],mr:[{mr:V()}],mb:[{mb:V()}],ml:[{ml:V()}],"space-x":[{"space-x":H()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":H()}],"space-y-reverse":["space-y-reverse"],size:[{size:Q()}],"inline-size":[{inline:["auto",...ae()]}],"min-inline-size":[{"min-inline":["auto",...ae()]}],"max-inline-size":[{"max-inline":["none",...ae()]}],"block-size":[{block:["auto",...Ee()]}],"min-block-size":[{"min-block":["auto",...Ee()]}],"max-block-size":[{"max-block":["none",...Ee()]}],w:[{w:[c,"screen",...Q()]}],"min-w":[{"min-w":[c,"screen","none",...Q()]}],"max-w":[{"max-w":[c,"screen","none","prose",{screen:[o]},...Q()]}],h:[{h:["screen","lh",...Q()]}],"min-h":[{"min-h":["screen","lh","none",...Q()]}],"max-h":[{"max-h":["screen","lh",...Q()]}],"font-size":[{text:["base",n,Su,Oa]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,Rj,_j]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",pp,ve]}],"font-family":[{font:[kj,Cj,t]}],"font-features":[{"font-features":[ve]}],"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:[s,Se,ve]}],"line-clamp":[{"line-clamp":[ze,"none",Se,s2]}],leading:[{leading:[l,...H()]}],"list-image":[{"list-image":["none",Se,ve]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Se,ve]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:R()}],"text-color":[{text:R()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Ae(),"wavy"]}],"text-decoration-thickness":[{decoration:[ze,"from-font","auto",Se,Oa]}],"text-decoration-color":[{decoration:R()}],"underline-offset":[{"underline-offset":[ze,"auto",Se,ve]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:H()}],"tab-size":[{tab:[Tr,Se,ve]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Se,ve]}],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",Se,ve]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:U()}],"bg-repeat":[{bg:X()}],"bg-size":[{bg:I()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Tr,Se,ve],radial:["",Se,ve],conic:[Tr,Se,ve]},Nj,Aj]}],"bg-color":[{bg:R()}],"gradient-from-pos":[{from:ge()}],"gradient-via-pos":[{via:ge()}],"gradient-to-pos":[{to:ge()}],"gradient-from":[{from:R()}],"gradient-via":[{via:R()}],"gradient-to":[{to:R()}],rounded:[{rounded:ye()}],"rounded-s":[{"rounded-s":ye()}],"rounded-e":[{"rounded-e":ye()}],"rounded-t":[{"rounded-t":ye()}],"rounded-r":[{"rounded-r":ye()}],"rounded-b":[{"rounded-b":ye()}],"rounded-l":[{"rounded-l":ye()}],"rounded-ss":[{"rounded-ss":ye()}],"rounded-se":[{"rounded-se":ye()}],"rounded-ee":[{"rounded-ee":ye()}],"rounded-es":[{"rounded-es":ye()}],"rounded-tl":[{"rounded-tl":ye()}],"rounded-tr":[{"rounded-tr":ye()}],"rounded-br":[{"rounded-br":ye()}],"rounded-bl":[{"rounded-bl":ye()}],"border-w":[{border:he()}],"border-w-x":[{"border-x":he()}],"border-w-y":[{"border-y":he()}],"border-w-s":[{"border-s":he()}],"border-w-e":[{"border-e":he()}],"border-w-bs":[{"border-bs":he()}],"border-w-be":[{"border-be":he()}],"border-w-t":[{"border-t":he()}],"border-w-r":[{"border-r":he()}],"border-w-b":[{"border-b":he()}],"border-w-l":[{"border-l":he()}],"divide-x":[{"divide-x":he()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":he()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Ae(),"hidden","none"]}],"divide-style":[{divide:[...Ae(),"hidden","none"]}],"border-color":[{border:R()}],"border-color-x":[{"border-x":R()}],"border-color-y":[{"border-y":R()}],"border-color-s":[{"border-s":R()}],"border-color-e":[{"border-e":R()}],"border-color-bs":[{"border-bs":R()}],"border-color-be":[{"border-be":R()}],"border-color-t":[{"border-t":R()}],"border-color-r":[{"border-r":R()}],"border-color-b":[{"border-b":R()}],"border-color-l":[{"border-l":R()}],"divide-color":[{divide:R()}],"outline-style":[{outline:[...Ae(),"none","hidden"]}],"outline-offset":[{"outline-offset":[ze,Se,ve]}],"outline-w":[{outline:["",ze,Su,Oa]}],"outline-color":[{outline:R()}],shadow:[{shadow:["","none",m,Wc,Qc]}],"shadow-color":[{shadow:R()}],"inset-shadow":[{"inset-shadow":["none",p,Wc,Qc]}],"inset-shadow-color":[{"inset-shadow":R()}],"ring-w":[{ring:he()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:R()}],"ring-offset-w":[{"ring-offset":[ze,Oa]}],"ring-offset-color":[{"ring-offset":R()}],"inset-ring-w":[{"inset-ring":he()}],"inset-ring-color":[{"inset-ring":R()}],"text-shadow":[{"text-shadow":["none",E,Wc,Qc]}],"text-shadow-color":[{"text-shadow":R()}],opacity:[{opacity:[ze,Se,ve]}],"mix-blend":[{"mix-blend":[...Te(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Te()}],"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":[ze]}],"mask-image-linear-from-pos":[{"mask-linear-from":xe()}],"mask-image-linear-to-pos":[{"mask-linear-to":xe()}],"mask-image-linear-from-color":[{"mask-linear-from":R()}],"mask-image-linear-to-color":[{"mask-linear-to":R()}],"mask-image-t-from-pos":[{"mask-t-from":xe()}],"mask-image-t-to-pos":[{"mask-t-to":xe()}],"mask-image-t-from-color":[{"mask-t-from":R()}],"mask-image-t-to-color":[{"mask-t-to":R()}],"mask-image-r-from-pos":[{"mask-r-from":xe()}],"mask-image-r-to-pos":[{"mask-r-to":xe()}],"mask-image-r-from-color":[{"mask-r-from":R()}],"mask-image-r-to-color":[{"mask-r-to":R()}],"mask-image-b-from-pos":[{"mask-b-from":xe()}],"mask-image-b-to-pos":[{"mask-b-to":xe()}],"mask-image-b-from-color":[{"mask-b-from":R()}],"mask-image-b-to-color":[{"mask-b-to":R()}],"mask-image-l-from-pos":[{"mask-l-from":xe()}],"mask-image-l-to-pos":[{"mask-l-to":xe()}],"mask-image-l-from-color":[{"mask-l-from":R()}],"mask-image-l-to-color":[{"mask-l-to":R()}],"mask-image-x-from-pos":[{"mask-x-from":xe()}],"mask-image-x-to-pos":[{"mask-x-to":xe()}],"mask-image-x-from-color":[{"mask-x-from":R()}],"mask-image-x-to-color":[{"mask-x-to":R()}],"mask-image-y-from-pos":[{"mask-y-from":xe()}],"mask-image-y-to-pos":[{"mask-y-to":xe()}],"mask-image-y-from-color":[{"mask-y-from":R()}],"mask-image-y-to-color":[{"mask-y-to":R()}],"mask-image-radial":[{"mask-radial":[Se,ve]}],"mask-image-radial-from-pos":[{"mask-radial-from":xe()}],"mask-image-radial-to-pos":[{"mask-radial-to":xe()}],"mask-image-radial-from-color":[{"mask-radial-from":R()}],"mask-image-radial-to-color":[{"mask-radial-to":R()}],"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":D()}],"mask-image-conic-pos":[{"mask-conic":[ze]}],"mask-image-conic-from-pos":[{"mask-conic-from":xe()}],"mask-image-conic-to-pos":[{"mask-conic-to":xe()}],"mask-image-conic-from-color":[{"mask-conic-from":R()}],"mask-image-conic-to-color":[{"mask-conic-to":R()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:U()}],"mask-repeat":[{mask:X()}],"mask-size":[{mask:I()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Se,ve]}],filter:[{filter:["","none",Se,ve]}],blur:[{blur:je()}],brightness:[{brightness:[ze,Se,ve]}],contrast:[{contrast:[ze,Se,ve]}],"drop-shadow":[{"drop-shadow":["","none",y,Wc,Qc]}],"drop-shadow-color":[{"drop-shadow":R()}],grayscale:[{grayscale:["",ze,Se,ve]}],"hue-rotate":[{"hue-rotate":[ze,Se,ve]}],invert:[{invert:["",ze,Se,ve]}],saturate:[{saturate:[ze,Se,ve]}],sepia:[{sepia:["",ze,Se,ve]}],"backdrop-filter":[{"backdrop-filter":["","none",Se,ve]}],"backdrop-blur":[{"backdrop-blur":je()}],"backdrop-brightness":[{"backdrop-brightness":[ze,Se,ve]}],"backdrop-contrast":[{"backdrop-contrast":[ze,Se,ve]}],"backdrop-grayscale":[{"backdrop-grayscale":["",ze,Se,ve]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[ze,Se,ve]}],"backdrop-invert":[{"backdrop-invert":["",ze,Se,ve]}],"backdrop-opacity":[{"backdrop-opacity":[ze,Se,ve]}],"backdrop-saturate":[{"backdrop-saturate":[ze,Se,ve]}],"backdrop-sepia":[{"backdrop-sepia":["",ze,Se,ve]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":H()}],"border-spacing-x":[{"border-spacing-x":H()}],"border-spacing-y":[{"border-spacing-y":H()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Se,ve]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[ze,"initial",Se,ve]}],ease:[{ease:["linear","initial",k,Se,ve]}],delay:[{delay:[ze,Se,ve]}],animate:[{animate:["none",N,Se,ve]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[S,Se,ve]}],"perspective-origin":[{"perspective-origin":z()}],rotate:[{rotate:Ne()}],"rotate-x":[{"rotate-x":Ne()}],"rotate-y":[{"rotate-y":Ne()}],"rotate-z":[{"rotate-z":Ne()}],scale:[{scale:Me()}],"scale-x":[{"scale-x":Me()}],"scale-y":[{"scale-y":Me()}],"scale-z":[{"scale-z":Me()}],"scale-3d":["scale-3d"],skew:[{skew:Ve()}],"skew-x":[{"skew-x":Ve()}],"skew-y":[{"skew-y":Ve()}],transform:[{transform:[Se,ve,"","none","gpu","cpu"]}],"transform-origin":[{origin:z()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:rt()}],"translate-x":[{"translate-x":rt()}],"translate-y":[{"translate-y":rt()}],"translate-z":[{"translate-z":rt()}],"translate-none":["translate-none"],zoom:[{zoom:[Tr,Se,ve]}],accent:[{accent:R()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:R()}],"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",Se,ve]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":R()}],"scrollbar-track-color":[{"scrollbar-track":R()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":H()}],"scroll-mx":[{"scroll-mx":H()}],"scroll-my":[{"scroll-my":H()}],"scroll-ms":[{"scroll-ms":H()}],"scroll-me":[{"scroll-me":H()}],"scroll-mbs":[{"scroll-mbs":H()}],"scroll-mbe":[{"scroll-mbe":H()}],"scroll-mt":[{"scroll-mt":H()}],"scroll-mr":[{"scroll-mr":H()}],"scroll-mb":[{"scroll-mb":H()}],"scroll-ml":[{"scroll-ml":H()}],"scroll-p":[{"scroll-p":H()}],"scroll-px":[{"scroll-px":H()}],"scroll-py":[{"scroll-py":H()}],"scroll-ps":[{"scroll-ps":H()}],"scroll-pe":[{"scroll-pe":H()}],"scroll-pbs":[{"scroll-pbs":H()}],"scroll-pbe":[{"scroll-pbe":H()}],"scroll-pt":[{"scroll-pt":H()}],"scroll-pr":[{"scroll-pr":H()}],"scroll-pb":[{"scroll-pb":H()}],"scroll-pl":[{"scroll-pl":H()}],"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",Se,ve]}],fill:[{fill:["none",...R()]}],"stroke-w":[{stroke:[ze,Su,Oa,s2]}],stroke:[{stroke:["none",...R()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},mC=cj(Lj),Dj=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Ij=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Mj={};function o2(e,t){return(Mj.jsx?Ij:Dj).test(e)}const Pj=/[ \t\n\f\r]/g;function Bj(e){return typeof e=="object"?e.type==="text"?c2(e.value):!1:c2(e)}function c2(e){return e.replace(Pj,"")===""}var Ks={},gp,f2;function jj(){if(f2)return gp;f2=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,s=/^:\s*/,l=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,o=/^[;\s]*/,c=/^\s+|\s+$/g,d=`
|
|
86
|
+
`,h="/",m="*",p="",E="comment",y="declaration";function v(A,k){if(typeof A!="string")throw new TypeError("First argument must be a string");if(!A)return[];k=k||{};var N=1,w=1;function D(ue){var re=ue.match(t);re&&(N+=re.length);var V=ue.lastIndexOf(d);w=~V?ue.length-V:w+ue.length}function z(){var ue={line:N,column:w};return function(re){return re.position=new L(ue),K(),re}}function L(ue){this.start=ue,this.end={line:N,column:w},this.source=k.source}L.prototype.content=A;function P(ue){var re=new Error(k.source+":"+N+":"+w+": "+ue);if(re.reason=ue,re.filename=k.source,re.line=N,re.column=w,re.source=A,!k.silent)throw re}function H(ue){var re=ue.exec(A);if(re){var V=re[0];return D(V),A=A.slice(V.length),re}}function K(){H(n)}function j(ue){var re;for(ue=ue||[];re=$();)re!==!1&&ue.push(re);return ue}function $(){var ue=z();if(!(h!=A.charAt(0)||m!=A.charAt(1))){for(var re=2;p!=A.charAt(re)&&(m!=A.charAt(re)||h!=A.charAt(re+1));)++re;if(re+=2,p===A.charAt(re-1))return P("End of comment missing");var V=A.slice(2,re-2);return w+=2,D(V),A=A.slice(re),w+=2,ue({type:E,comment:V})}}function Z(){var ue=z(),re=H(i);if(re){if($(),!H(s))return P("property missing ':'");var V=H(l),Q=ue({type:y,property:S(re[0].replace(e,p)),value:V?S(V[0].replace(e,p)):p});return H(o),Q}}function le(){var ue=[];j(ue);for(var re;re=Z();)re!==!1&&(ue.push(re),j(ue));return ue}return K(),le()}function S(A){return A?A.replace(c,p):p}return gp=v,gp}var d2;function Hj(){if(d2)return Ks;d2=1;var e=Ks&&Ks.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Ks,"__esModule",{value:!0}),Ks.default=n;const t=e(jj());function n(i,s){let l=null;if(!i||typeof i!="string")return l;const o=(0,t.default)(i),c=typeof s=="function";return o.forEach(d=>{if(d.type!=="declaration")return;const{property:h,value:m}=d;c?s(h,m,d):m&&(l=l||{},l[h]=m)}),l}return Ks}var _u={},h2;function Uj(){if(h2)return _u;h2=1,Object.defineProperty(_u,"__esModule",{value:!0}),_u.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,s=/^-(ms)-/,l=function(h){return!h||n.test(h)||e.test(h)},o=function(h,m){return m.toUpperCase()},c=function(h,m){return"".concat(m,"-")},d=function(h,m){return m===void 0&&(m={}),l(h)?h:(h=h.toLowerCase(),m.reactCompat?h=h.replace(s,c):h=h.replace(i,c),h.replace(t,o))};return _u.camelCase=d,_u}var Cu,m2;function zj(){if(m2)return Cu;m2=1;var e=Cu&&Cu.__importDefault||function(s){return s&&s.__esModule?s:{default:s}},t=e(Hj()),n=Uj();function i(s,l){var o={};return!s||typeof s!="string"||(0,t.default)(s,function(c,d){c&&d&&(o[(0,n.camelCase)(c,l)]=d)}),o}return i.default=i,Cu=i,Cu}var Fj=zj();const qj=N0(Fj);function zu(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?p2(e.position):"start"in e||"end"in e?p2(e):"line"in e||"column"in e?m0(e):""}function m0(e){return g2(e&&e.line)+":"+g2(e&&e.column)}function p2(e){return m0(e&&e.start)+"-"+m0(e&&e.end)}function g2(e){return e&&typeof e=="number"?e:1}class on extends Error{constructor(t,n,i){super(),typeof n=="string"&&(i=n,n=void 0);let s="",l={},o=!1;if(n&&("line"in n&&"column"in n?l={place:n}:"start"in n&&"end"in n?l={place:n}:"type"in n?l={ancestors:[n],place:n.position}:l={...n}),typeof t=="string"?s=t:!l.cause&&t&&(o=!0,s=t.message,l.cause=t),!l.ruleId&&!l.source&&typeof i=="string"){const d=i.indexOf(":");d===-1?l.ruleId=i:(l.source=i.slice(0,d),l.ruleId=i.slice(d+1))}if(!l.place&&l.ancestors&&l.ancestors){const d=l.ancestors[l.ancestors.length-1];d&&(l.place=d.position)}const c=l.place&&"start"in l.place?l.place.start:l.place;this.ancestors=l.ancestors||void 0,this.cause=l.cause||void 0,this.column=c?c.column:void 0,this.fatal=void 0,this.file="",this.message=s,this.line=c?c.line:void 0,this.name=zu(l.place)||"1:1",this.place=l.place||void 0,this.reason=this.message,this.ruleId=l.ruleId||void 0,this.source=l.source||void 0,this.stack=o&&l.cause&&typeof l.cause.stack=="string"?l.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}on.prototype.file="";on.prototype.name="";on.prototype.reason="";on.prototype.message="";on.prototype.stack="";on.prototype.column=void 0;on.prototype.line=void 0;on.prototype.ancestors=void 0;on.prototype.cause=void 0;on.prototype.fatal=void 0;on.prototype.place=void 0;on.prototype.ruleId=void 0;on.prototype.source=void 0;const Cg={}.hasOwnProperty,Vj=new Map,Yj=/[A-Z]/g,$j=new Set(["table","tbody","thead","tfoot","tr"]),Gj=new Set(["td","th"]),pC="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Kj(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let i;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");i=nH(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");i=tH(n,t.jsx,t.jsxs)}const s={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:i,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?sa:so,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},l=gC(s,e,void 0);return l&&typeof l!="string"?l:s.create(e,s.Fragment,{children:l||void 0},void 0)}function gC(e,t,n){if(t.type==="element")return Xj(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return Qj(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return Zj(e,t,n);if(t.type==="mdxjsEsm")return Wj(e,t);if(t.type==="root")return Jj(e,t,n);if(t.type==="text")return eH(e,t)}function Xj(e,t,n){const i=e.schema;let s=i;t.tagName.toLowerCase()==="svg"&&i.space==="html"&&(s=sa,e.schema=s),e.ancestors.push(t);const l=yC(e,t.tagName,!1),o=rH(e,t);let c=kg(e,t);return $j.has(t.tagName)&&(c=c.filter(function(d){return typeof d=="string"?!Bj(d):!0})),bC(e,o,l,t),Ag(o,c),e.ancestors.pop(),e.schema=i,e.create(t,l,o,n)}function Qj(e,t){if(t.data&&t.data.estree&&e.evaluater){const i=t.data.estree.body[0];return i.type,e.evaluater.evaluateExpression(i.expression)}Zu(e,t.position)}function Wj(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Zu(e,t.position)}function Zj(e,t,n){const i=e.schema;let s=i;t.name==="svg"&&i.space==="html"&&(s=sa,e.schema=s),e.ancestors.push(t);const l=t.name===null?e.Fragment:yC(e,t.name,!0),o=iH(e,t),c=kg(e,t);return bC(e,o,l,t),Ag(o,c),e.ancestors.pop(),e.schema=i,e.create(t,l,o,n)}function Jj(e,t,n){const i={};return Ag(i,kg(e,t)),e.create(t,e.Fragment,i,n)}function eH(e,t){return t.value}function bC(e,t,n,i){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=i)}function Ag(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function tH(e,t,n){return i;function i(s,l,o,c){const h=Array.isArray(o.children)?n:t;return c?h(l,o,c):h(l,o)}}function nH(e,t){return n;function n(i,s,l,o){const c=Array.isArray(l.children),d=Lr(i);return t(s,l,o,c,{columnNumber:d?d.column-1:void 0,fileName:e,lineNumber:d?d.line:void 0},void 0)}}function rH(e,t){const n={};let i,s;for(s in t.properties)if(s!=="children"&&Cg.call(t.properties,s)){const l=aH(e,s,t.properties[s]);if(l){const[o,c]=l;e.tableCellAlignToStyle&&o==="align"&&typeof c=="string"&&Gj.has(t.tagName)?i=c:n[o]=c}}if(i){const l=n.style||(n.style={});l[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=i}return n}function iH(e,t){const n={};for(const i of t.attributes)if(i.type==="mdxJsxExpressionAttribute")if(i.data&&i.data.estree&&e.evaluater){const l=i.data.estree.body[0];l.type;const o=l.expression;o.type;const c=o.properties[0];c.type,Object.assign(n,e.evaluater.evaluateExpression(c.argument))}else Zu(e,t.position);else{const s=i.name;let l;if(i.value&&typeof i.value=="object")if(i.value.data&&i.value.data.estree&&e.evaluater){const c=i.value.data.estree.body[0];c.type,l=e.evaluater.evaluateExpression(c.expression)}else Zu(e,t.position);else l=i.value===null?!0:i.value;n[s]=l}return n}function kg(e,t){const n=[];let i=-1;const s=e.passKeys?new Map:Vj;for(;++i<t.children.length;){const l=t.children[i];let o;if(e.passKeys){const d=l.type==="element"?l.tagName:l.type==="mdxJsxFlowElement"||l.type==="mdxJsxTextElement"?l.name:void 0;if(d){const h=s.get(d)||0;o=d+"-"+h,s.set(d,h+1)}}const c=gC(e,l,o);c!==void 0&&n.push(c)}return n}function aH(e,t,n){const i=sd(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=i.commaSeparated?E_(n):x_(n)),i.property==="style"){let s=typeof n=="object"?n:sH(e,String(n));return e.stylePropertyNameCase==="css"&&(s=lH(s)),["style",s]}return[e.elementAttributeNameCase==="react"&&i.space?TL[i.property]||i.property:i.attribute,n]}}function sH(e,t){try{return qj(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const i=n,s=new on("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:i,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw s.file=e.filePath||void 0,s.url=pC+"#cannot-parse-style-attribute",s}}function yC(e,t,n){let i;if(!n)i={type:"Literal",value:t};else if(t.includes(".")){const s=t.split(".");let l=-1,o;for(;++l<s.length;){const c=o2(s[l])?{type:"Identifier",name:s[l]}:{type:"Literal",value:s[l]};o=o?{type:"MemberExpression",object:o,property:c,computed:!!(l&&c.type==="Literal"),optional:!1}:c}i=o}else i=o2(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(i.type==="Literal"){const s=i.value;return Cg.call(e.components,s)?e.components[s]:s}if(e.evaluater)return e.evaluater.evaluateExpression(i);Zu(e)}function Zu(e,t){const n=new on("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=pC+"#cannot-handle-mdx-estrees-without-createevaluater",n}function lH(e){const t={};let n;for(n in e)Cg.call(e,n)&&(t[uH(n)]=e[n]);return t}function uH(e){let t=e.replace(Yj,oH);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function oH(e){return"-"+e.toLowerCase()}const bp={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"]},cH={tokenize:fH};function fH(e){const t=e.attempt(this.parser.constructs.contentInitial,i,s);let n;return t;function i(c){if(c===null){e.consume(c);return}return e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),et(e,t,"linePrefix")}function s(c){return e.enter("paragraph"),l(c)}function l(c){const d=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=d),n=d,o(c)}function o(c){if(c===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(c);return}return Oe(c)?(e.consume(c),e.exit("chunkText"),l):(e.consume(c),o)}}const dH={tokenize:hH},b2={tokenize:mH};function hH(e){const t=this,n=[];let i=0,s,l,o;return c;function c(w){if(i<n.length){const D=n[i];return t.containerState=D[1],e.attempt(D[0].continuation,d,h)(w)}return h(w)}function d(w){if(i++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,s&&N();const D=t.events.length;let z=D,L;for(;z--;)if(t.events[z][0]==="exit"&&t.events[z][1].type==="chunkFlow"){L=t.events[z][1].end;break}k(i);let P=D;for(;P<t.events.length;)t.events[P][1].end={...L},P++;return Vn(t.events,z+1,0,t.events.slice(D)),t.events.length=P,h(w)}return c(w)}function h(w){if(i===n.length){if(!s)return E(w);if(s.currentConstruct&&s.currentConstruct.concrete)return v(w);t.interrupt=!!(s.currentConstruct&&!s._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(b2,m,p)(w)}function m(w){return s&&N(),k(i),E(w)}function p(w){return t.parser.lazy[t.now().line]=i!==n.length,o=t.now().offset,v(w)}function E(w){return t.containerState={},e.attempt(b2,y,v)(w)}function y(w){return i++,n.push([t.currentConstruct,t.containerState]),E(w)}function v(w){if(w===null){s&&N(),k(0),e.consume(w);return}return s=s||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:s,contentType:"flow",previous:l}),S(w)}function S(w){if(w===null){A(e.exit("chunkFlow"),!0),k(0),e.consume(w);return}return Oe(w)?(e.consume(w),A(e.exit("chunkFlow")),i=0,t.interrupt=void 0,c):(e.consume(w),S)}function A(w,D){const z=t.sliceStream(w);if(D&&z.push(null),w.previous=l,l&&(l.next=w),l=w,s.defineSkip(w.start),s.write(z),t.parser.lazy[w.start.line]){let L=s.events.length;for(;L--;)if(s.events[L][1].start.offset<o&&(!s.events[L][1].end||s.events[L][1].end.offset>o))return;const P=t.events.length;let H=P,K,j;for(;H--;)if(t.events[H][0]==="exit"&&t.events[H][1].type==="chunkFlow"){if(K){j=t.events[H][1].end;break}K=!0}for(k(i),L=P;L<t.events.length;)t.events[L][1].end={...j},L++;Vn(t.events,H+1,0,t.events.slice(P)),t.events.length=L}}function k(w){let D=n.length;for(;D-- >w;){const z=n[D];t.containerState=z[1],z[0].exit.call(t,e)}n.length=w}function N(){s.write([null]),l=void 0,s=void 0,t.containerState._closeFlow=void 0}}function mH(e,t,n){return et(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}const pH={tokenize:gH};function gH(e){const t=this,n=e.attempt(co,i,e.attempt(this.parser.constructs.flowInitial,s,et(e,e.attempt(this.parser.constructs.flow,s,e.attempt(oP,s)),"linePrefix")));return n;function i(l){if(l===null){e.consume(l);return}return e.enter("lineEndingBlank"),e.consume(l),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function s(l){if(l===null){e.consume(l);return}return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const bH={resolveAll:xC()},yH=EC("string"),EH=EC("text");function EC(e){return{resolveAll:xC(e==="text"?xH:void 0),tokenize:t};function t(n){const i=this,s=this.parser.constructs[e],l=n.attempt(s,o,c);return o;function o(m){return h(m)?l(m):c(m)}function c(m){if(m===null){n.consume(m);return}return n.enter("data"),n.consume(m),d}function d(m){return h(m)?(n.exit("data"),l(m)):(n.consume(m),d)}function h(m){if(m===null)return!0;const p=s[m];let E=-1;if(p)for(;++E<p.length;){const y=p[E];if(!y.previous||y.previous.call(i,i.previous))return!0}return!1}}}function xC(e){return t;function t(n,i){let s=-1,l;for(;++s<=n.length;)l===void 0?n[s]&&n[s][1].type==="data"&&(l=s,s++):(!n[s]||n[s][1].type!=="data")&&(s!==l+2&&(n[l][1].end=n[s-1][1].end,n.splice(l+2,s-l-2),s=l+2),l=void 0);return e?e(n,i):n}}function xH(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const i=e[n-1][1],s=t.sliceStream(i);let l=s.length,o=-1,c=0,d;for(;l--;){const h=s[l];if(typeof h=="string"){for(o=h.length;h.charCodeAt(o-1)===32;)c++,o--;if(o)break;o=-1}else if(h===-2)d=!0,c++;else if(h!==-1){l++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(c=0),c){const h={type:n===e.length||d||c<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:l?o:i.start._bufferIndex+o,_index:i.start._index+l,line:i.end.line,column:i.end.column-c,offset:i.end.offset-c},end:{...i.end}};i.end={...h.start},i.start.offset===i.end.offset?Object.assign(i,h):(e.splice(n,0,["enter",h,t],["exit",h,t]),n+=2)}n++}return e}const TH={42:Nn,43:Nn,45:Nn,48:Nn,49:Nn,50:Nn,51:Nn,52:Nn,53:Nn,54:Nn,55:Nn,56:Nn,57:Nn,62:M3},vH={91:mP},SH={[-2]:dp,[-1]:dp,32:dp},_H={35:xP,42:gf,45:[XT,gf],60:_P,61:XT,95:gf,96:GT,126:GT},CH={38:B3,92:P3},AH={[-5]:hp,[-4]:hp,[-3]:hp,33:FP,38:B3,42:d0,60:[V9,OP],91:VP,92:[yP,P3],93:xg,95:d0,96:rP},kH={null:[d0,bH]},wH={null:[42,95]},NH={null:[]},RH=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:wH,contentInitial:vH,disable:NH,document:TH,flow:_H,flowInitial:SH,insideSpan:kH,string:CH,text:AH},Symbol.toStringTag,{value:"Module"}));function OH(e,t,n){let i={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const s={},l=[];let o=[],c=[];const d={attempt:P(z),check:P(L),consume:N,enter:w,exit:D,interrupt:P(L,{interrupt:!0})},h={code:null,containerState:{},defineSkip:S,events:[],now:v,parser:e,previous:null,sliceSerialize:E,sliceStream:y,write:p};let m=t.tokenize.call(h,d);return t.resolveAll&&l.push(t),h;function p($){return o=nr(o,$),A(),o[o.length-1]!==null?[]:(H(t,0),h.events=hd(l,h.events,h),h.events)}function E($,Z){return DH(y($),Z)}function y($){return LH(o,$)}function v(){const{_bufferIndex:$,_index:Z,line:le,column:ue,offset:re}=i;return{_bufferIndex:$,_index:Z,line:le,column:ue,offset:re}}function S($){s[$.line]=$.column,j()}function A(){let $;for(;i._index<o.length;){const Z=o[i._index];if(typeof Z=="string")for($=i._index,i._bufferIndex<0&&(i._bufferIndex=0);i._index===$&&i._bufferIndex<Z.length;)k(Z.charCodeAt(i._bufferIndex));else k(Z)}}function k($){m=m($)}function N($){Oe($)?(i.line++,i.column=1,i.offset+=$===-3?2:1,j()):$!==-1&&(i.column++,i.offset++),i._bufferIndex<0?i._index++:(i._bufferIndex++,i._bufferIndex===o[i._index].length&&(i._bufferIndex=-1,i._index++)),h.previous=$}function w($,Z){const le=Z||{};return le.type=$,le.start=v(),h.events.push(["enter",le,h]),c.push(le),le}function D($){const Z=c.pop();return Z.end=v(),h.events.push(["exit",Z,h]),Z}function z($,Z){H($,Z.from)}function L($,Z){Z.restore()}function P($,Z){return le;function le(ue,re,V){let Q,ae,Ee,R;return Array.isArray(ue)?X(ue):"tokenize"in ue?X([ue]):U(ue);function U(he){return Ae;function Ae(Te){const xe=Te!==null&&he[Te],je=Te!==null&&he.null,Ne=[...Array.isArray(xe)?xe:xe?[xe]:[],...Array.isArray(je)?je:je?[je]:[]];return X(Ne)(Te)}}function X(he){return Q=he,ae=0,he.length===0?V:I(he[ae])}function I(he){return Ae;function Ae(Te){return R=K(),Ee=he,he.partial||(h.currentConstruct=he),he.name&&h.parser.constructs.disable.null.includes(he.name)?ye():he.tokenize.call(Z?Object.assign(Object.create(h),Z):h,d,ge,ye)(Te)}}function ge(he){return $(Ee,R),re}function ye(he){return R.restore(),++ae<Q.length?I(Q[ae]):V}}}function H($,Z){$.resolveAll&&!l.includes($)&&l.push($),$.resolve&&Vn(h.events,Z,h.events.length-Z,$.resolve(h.events.slice(Z),h)),$.resolveTo&&(h.events=$.resolveTo(h.events,h))}function K(){const $=v(),Z=h.previous,le=h.currentConstruct,ue=h.events.length,re=Array.from(c);return{from:ue,restore:V};function V(){i=$,h.previous=Z,h.currentConstruct=le,h.events.length=ue,c=re,j()}}function j(){i.line in s&&i.column<2&&(i.column=s[i.line],i.offset+=s[i.line]-1)}}function LH(e,t){const n=t.start._index,i=t.start._bufferIndex,s=t.end._index,l=t.end._bufferIndex;let o;if(n===s)o=[e[n].slice(i,l)];else{if(o=e.slice(n,s),i>-1){const c=o[0];typeof c=="string"?o[0]=c.slice(i):o.shift()}l>0&&o.push(e[s].slice(0,l))}return o}function DH(e,t){let n=-1;const i=[];let s;for(;++n<e.length;){const l=e[n];let o;if(typeof l=="string")o=l;else switch(l){case-5:{o="\r";break}case-4:{o=`
|
|
87
|
+
`;break}case-3:{o=`\r
|
|
88
|
+
`;break}case-2:{o=t?" ":" ";break}case-1:{if(!t&&s)continue;o=" ";break}default:o=String.fromCharCode(l)}s=l===-2,i.push(o)}return i.join("")}function IH(e){const i={constructs:A3([RH,...(e||{}).extensions||[]]),content:s(cH),defined:[],document:s(dH),flow:s(pH),lazy:{},string:s(yH),text:s(EH)};return i;function s(l){return o;function o(c){return OH(i,l,c)}}}function MH(e){for(;!j3(e););return e}const y2=/[\0\t\n\r]/g;function PH(){let e=1,t="",n=!0,i;return s;function s(l,o,c){const d=[];let h,m,p,E,y;for(l=t+(typeof l=="string"?l.toString():new TextDecoder(o||void 0).decode(l)),p=0,t="",n&&(l.charCodeAt(0)===65279&&p++,n=void 0);p<l.length;){if(y2.lastIndex=p,h=y2.exec(l),E=h&&h.index!==void 0?h.index:l.length,y=l.charCodeAt(E),!h){t=l.slice(p);break}if(y===10&&p===E&&i)d.push(-3),i=void 0;else switch(i&&(d.push(-5),i=void 0),p<E&&(d.push(l.slice(p,E)),e+=E-p),y){case 0:{d.push(65533),e++;break}case 9:{for(m=Math.ceil(e/4)*4,d.push(-2);e++<m;)d.push(-1);break}case 10:{d.push(-4),e=1;break}default:i=!0,e=1}p=E+1}return c&&(i&&d.push(-5),t&&d.push(t),d.push(null)),d}}const TC={}.hasOwnProperty;function BH(e,t,n){return t&&typeof t=="object"&&(n=t,t=void 0),jH(n)(MH(IH(n).document().write(PH()(e,t,!0))))}function jH(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:l(En),autolinkProtocol:K,autolinkEmail:K,atxHeading:l(ut),blockQuote:l(je),characterEscape:K,characterReference:K,codeFenced:l(Ne),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:l(Ne,o),codeText:l(Me,o),codeTextData:K,data:K,codeFlowValue:K,definition:l(Ve),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:l(rt),hardBreakEscape:l(Et),hardBreakTrailing:l(Et),htmlFlow:l(Vt,o),htmlFlowData:K,htmlText:l(Vt,o),htmlTextData:K,image:l(Ut),label:o,link:l(En),listItem:l(Ue),listItemValue:E,listOrdered:l(ke,p),listUnordered:l(ke),paragraph:l(At),reference:I,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:l(ut),strong:l(Je),thematicBreak:l(cn)},exit:{atxHeading:d(),atxHeadingSequence:z,autolink:d(),autolinkEmail:xe,autolinkProtocol:Te,blockQuote:d(),characterEscapeValue:j,characterReferenceMarkerHexadecimal:ye,characterReferenceMarkerNumeric:ye,characterReferenceValue:he,characterReference:Ae,codeFenced:d(A),codeFencedFence:S,codeFencedFenceInfo:y,codeFencedFenceMeta:v,codeFlowValue:j,codeIndented:d(k),codeText:d(re),codeTextData:j,data:j,definition:d(),definitionDestinationString:D,definitionLabelString:N,definitionTitleString:w,emphasis:d(),hardBreakEscape:d(Z),hardBreakTrailing:d(Z),htmlFlow:d(le),htmlFlowData:j,htmlText:d(ue),htmlTextData:j,image:d(Q),label:Ee,labelText:ae,lineEnding:$,link:d(V),listItem:d(),listOrdered:d(),listUnordered:d(),paragraph:d(),referenceString:ge,resourceDestinationString:R,resourceTitleString:U,resource:X,setextHeading:d(H),setextHeadingLineSequence:P,setextHeadingText:L,strong:d(),thematicBreak:d()}};vC(t,(e||{}).mdastExtensions||[]);const n={};return i;function i(Y){let de={type:"root",children:[]};const we={stack:[de],tokenStack:[],config:t,enter:c,exit:h,buffer:o,resume:m,data:n},De=[];let We=-1;for(;++We<Y.length;)if(Y[We][1].type==="listOrdered"||Y[We][1].type==="listUnordered")if(Y[We][0]==="enter")De.push(We);else{const Dn=De.pop();We=s(Y,Dn,We)}for(We=-1;++We<Y.length;){const Dn=t[Y[We][0]];TC.call(Dn,Y[We][1].type)&&Dn[Y[We][1].type].call(Object.assign({sliceSerialize:Y[We][2].sliceSerialize},we),Y[We][1])}if(we.tokenStack.length>0){const Dn=we.tokenStack[we.tokenStack.length-1];(Dn[1]||E2).call(we,void 0,Dn[0])}for(de.position={start:Fi(Y.length>0?Y[0][1].start:{line:1,column:1,offset:0}),end:Fi(Y.length>0?Y[Y.length-2][1].end:{line:1,column:1,offset:0})},We=-1;++We<t.transforms.length;)de=t.transforms[We](de)||de;return de}function s(Y,de,we){let De=de-1,We=-1,Dn=!1,Mr,fn,zt,xn;for(;++De<=we;){const pt=Y[De];switch(pt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{pt[0]==="enter"?We++:We--,xn=void 0;break}case"lineEndingBlank":{pt[0]==="enter"&&(Mr&&!xn&&!We&&!zt&&(zt=De),xn=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:xn=void 0}if(!We&&pt[0]==="enter"&&pt[1].type==="listItemPrefix"||We===-1&&pt[0]==="exit"&&(pt[1].type==="listUnordered"||pt[1].type==="listOrdered")){if(Mr){let pi=De;for(fn=void 0;pi--;){const ar=Y[pi];if(ar[1].type==="lineEnding"||ar[1].type==="lineEndingBlank"){if(ar[0]==="exit")continue;fn&&(Y[fn][1].type="lineEndingBlank",Dn=!0),ar[1].type="lineEnding",fn=pi}else if(!(ar[1].type==="linePrefix"||ar[1].type==="blockQuotePrefix"||ar[1].type==="blockQuotePrefixWhitespace"||ar[1].type==="blockQuoteMarker"||ar[1].type==="listItemIndent"))break}zt&&(!fn||zt<fn)&&(Mr._spread=!0),Mr.end=Object.assign({},fn?Y[fn][1].start:pt[1].end),Y.splice(fn||De,0,["exit",Mr,pt[2]]),De++,we++}if(pt[1].type==="listItemPrefix"){const pi={type:"listItem",_spread:!1,start:Object.assign({},pt[1].start),end:void 0};Mr=pi,Y.splice(De,0,["enter",pi,pt[2]]),De++,we++,zt=void 0,xn=!0}}}return Y[de][1]._spread=Dn,we}function l(Y,de){return we;function we(De){c.call(this,Y(De),De),de&&de.call(this,De)}}function o(){this.stack.push({type:"fragment",children:[]})}function c(Y,de,we){this.stack[this.stack.length-1].children.push(Y),this.stack.push(Y),this.tokenStack.push([de,we||void 0]),Y.position={start:Fi(de.start),end:void 0}}function d(Y){return de;function de(we){Y&&Y.call(this,we),h.call(this,we)}}function h(Y,de){const we=this.stack.pop(),De=this.tokenStack.pop();if(De)De[0].type!==Y.type&&(de?de.call(this,Y,De[0]):(De[1]||E2).call(this,Y,De[0]));else throw new Error("Cannot close `"+Y.type+"` ("+zu({start:Y.start,end:Y.end})+"): it’s not open");we.position.end=Fi(Y.end)}function m(){return gg(this.stack.pop())}function p(){this.data.expectingFirstListItemValue=!0}function E(Y){if(this.data.expectingFirstListItemValue){const de=this.stack[this.stack.length-2];de.start=Number.parseInt(this.sliceSerialize(Y),10),this.data.expectingFirstListItemValue=void 0}}function y(){const Y=this.resume(),de=this.stack[this.stack.length-1];de.lang=Y}function v(){const Y=this.resume(),de=this.stack[this.stack.length-1];de.meta=Y}function S(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function A(){const Y=this.resume(),de=this.stack[this.stack.length-1];de.value=Y.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function k(){const Y=this.resume(),de=this.stack[this.stack.length-1];de.value=Y.replace(/(\r?\n|\r)$/g,"")}function N(Y){const de=this.resume(),we=this.stack[this.stack.length-1];we.label=de,we.identifier=fr(this.sliceSerialize(Y)).toLowerCase()}function w(){const Y=this.resume(),de=this.stack[this.stack.length-1];de.title=Y}function D(){const Y=this.resume(),de=this.stack[this.stack.length-1];de.url=Y}function z(Y){const de=this.stack[this.stack.length-1];if(!de.depth){const we=this.sliceSerialize(Y).length;de.depth=we}}function L(){this.data.setextHeadingSlurpLineEnding=!0}function P(Y){const de=this.stack[this.stack.length-1];de.depth=this.sliceSerialize(Y).codePointAt(0)===61?1:2}function H(){this.data.setextHeadingSlurpLineEnding=void 0}function K(Y){const we=this.stack[this.stack.length-1].children;let De=we[we.length-1];(!De||De.type!=="text")&&(De=Qe(),De.position={start:Fi(Y.start),end:void 0},we.push(De)),this.stack.push(De)}function j(Y){const de=this.stack.pop();de.value+=this.sliceSerialize(Y),de.position.end=Fi(Y.end)}function $(Y){const de=this.stack[this.stack.length-1];if(this.data.atHardBreak){const we=de.children[de.children.length-1];we.position.end=Fi(Y.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(de.type)&&(K.call(this,Y),j.call(this,Y))}function Z(){this.data.atHardBreak=!0}function le(){const Y=this.resume(),de=this.stack[this.stack.length-1];de.value=Y}function ue(){const Y=this.resume(),de=this.stack[this.stack.length-1];de.value=Y}function re(){const Y=this.resume(),de=this.stack[this.stack.length-1];de.value=Y}function V(){const Y=this.stack[this.stack.length-1];if(this.data.inReference){const de=this.data.referenceType||"shortcut";Y.type+="Reference",Y.referenceType=de,delete Y.url,delete Y.title}else delete Y.identifier,delete Y.label;this.data.referenceType=void 0}function Q(){const Y=this.stack[this.stack.length-1];if(this.data.inReference){const de=this.data.referenceType||"shortcut";Y.type+="Reference",Y.referenceType=de,delete Y.url,delete Y.title}else delete Y.identifier,delete Y.label;this.data.referenceType=void 0}function ae(Y){const de=this.sliceSerialize(Y),we=this.stack[this.stack.length-2];we.label=m9(de),we.identifier=fr(de).toLowerCase()}function Ee(){const Y=this.stack[this.stack.length-1],de=this.resume(),we=this.stack[this.stack.length-1];if(this.data.inReference=!0,we.type==="link"){const De=Y.children;we.children=De}else we.alt=de}function R(){const Y=this.resume(),de=this.stack[this.stack.length-1];de.url=Y}function U(){const Y=this.resume(),de=this.stack[this.stack.length-1];de.title=Y}function X(){this.data.inReference=void 0}function I(){this.data.referenceType="collapsed"}function ge(Y){const de=this.resume(),we=this.stack[this.stack.length-1];we.label=de,we.identifier=fr(this.sliceSerialize(Y)).toLowerCase(),this.data.referenceType="full"}function ye(Y){this.data.characterReferenceType=Y.type}function he(Y){const de=this.sliceSerialize(Y),we=this.data.characterReferenceType;let De;we?(De=C3(de,we==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):De=yg(de);const We=this.stack[this.stack.length-1];We.value+=De}function Ae(Y){const de=this.stack.pop();de.position.end=Fi(Y.end)}function Te(Y){j.call(this,Y);const de=this.stack[this.stack.length-1];de.url=this.sliceSerialize(Y)}function xe(Y){j.call(this,Y);const de=this.stack[this.stack.length-1];de.url="mailto:"+this.sliceSerialize(Y)}function je(){return{type:"blockquote",children:[]}}function Ne(){return{type:"code",lang:null,meta:null,value:""}}function Me(){return{type:"inlineCode",value:""}}function Ve(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function rt(){return{type:"emphasis",children:[]}}function ut(){return{type:"heading",depth:0,children:[]}}function Et(){return{type:"break"}}function Vt(){return{type:"html",value:""}}function Ut(){return{type:"image",title:null,url:"",alt:null}}function En(){return{type:"link",title:null,url:"",children:[]}}function ke(Y){return{type:"list",ordered:Y.type==="listOrdered",start:null,spread:Y._spread,children:[]}}function Ue(Y){return{type:"listItem",spread:Y._spread,checked:null,children:[]}}function At(){return{type:"paragraph",children:[]}}function Je(){return{type:"strong",children:[]}}function Qe(){return{type:"text",value:""}}function cn(){return{type:"thematicBreak"}}}function Fi(e){return{line:e.line,column:e.column,offset:e.offset}}function vC(e,t){let n=-1;for(;++n<t.length;){const i=t[n];Array.isArray(i)?vC(e,i):HH(e,i)}}function HH(e,t){let n;for(n in t)if(TC.call(t,n))switch(n){case"canContainEols":{const i=t[n];i&&e[n].push(...i);break}case"transforms":{const i=t[n];i&&e[n].push(...i);break}case"enter":case"exit":{const i=t[n];i&&Object.assign(e[n],i);break}}}function E2(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+zu({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+zu({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+zu({start:t.start,end:t.end})+") is still open")}function UH(e){const t=this;t.parser=n;function n(i){return BH(i,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function zH(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function FH(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
|
|
89
|
+
`}]}function qH(e,t){const n=t.value?t.value+`
|
|
90
|
+
`:"",i={},s=t.lang?t.lang.split(/\s+/):[];s.length>0&&(i.className=["language-"+s[0]]);let l={type:"element",tagName:"code",properties:i,children:[{type:"text",value:n}]};return t.meta&&(l.data={meta:t.meta}),e.patch(t,l),l=e.applyData(t,l),l={type:"element",tagName:"pre",properties:{},children:[l]},e.patch(t,l),l}function VH(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function YH(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function $H(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",i=String(t.identifier).toUpperCase(),s=vl(i.toLowerCase()),l=e.footnoteOrder.indexOf(i);let o,c=e.footnoteCounts.get(i);c===void 0?(c=0,e.footnoteOrder.push(i),o=e.footnoteOrder.length):o=l+1,c+=1,e.footnoteCounts.set(i,c);const d={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+s,id:n+"fnref-"+s+(c>1?"-"+c:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};e.patch(t,d);const h={type:"element",tagName:"sup",properties:{},children:[d]};return e.patch(t,h),e.applyData(t,h)}function GH(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function KH(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function SC(e,t){const n=t.referenceType;let i="]";if(n==="collapsed"?i+="[]":n==="full"&&(i+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+i}];const s=e.all(t),l=s[0];l&&l.type==="text"?l.value="["+l.value:s.unshift({type:"text",value:"["});const o=s[s.length-1];return o&&o.type==="text"?o.value+=i:s.push({type:"text",value:i}),s}function XH(e,t){const n=String(t.identifier).toUpperCase(),i=e.definitionById.get(n);if(!i)return SC(e,t);const s={src:vl(i.url||""),alt:t.alt};i.title!==null&&i.title!==void 0&&(s.title=i.title);const l={type:"element",tagName:"img",properties:s,children:[]};return e.patch(t,l),e.applyData(t,l)}function QH(e,t){const n={src:vl(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const i={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,i),e.applyData(t,i)}function WH(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const i={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,i),e.applyData(t,i)}function ZH(e,t){const n=String(t.identifier).toUpperCase(),i=e.definitionById.get(n);if(!i)return SC(e,t);const s={href:vl(i.url||"")};i.title!==null&&i.title!==void 0&&(s.title=i.title);const l={type:"element",tagName:"a",properties:s,children:e.all(t)};return e.patch(t,l),e.applyData(t,l)}function JH(e,t){const n={href:vl(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const i={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function eU(e,t,n){const i=e.all(t),s=n?tU(n):_C(t),l={},o=[];if(typeof t.checked=="boolean"){const m=i[0];let p;m&&m.type==="element"&&m.tagName==="p"?p=m:(p={type:"element",tagName:"p",properties:{},children:[]},i.unshift(p)),p.children.length>0&&p.children.unshift({type:"text",value:" "}),p.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),l.className=["task-list-item"]}let c=-1;for(;++c<i.length;){const m=i[c];(s||c!==0||m.type!=="element"||m.tagName!=="p")&&o.push({type:"text",value:`
|
|
91
|
+
`}),m.type==="element"&&m.tagName==="p"&&!s?o.push(...m.children):o.push(m)}const d=i[i.length-1];d&&(s||d.type!=="element"||d.tagName!=="p")&&o.push({type:"text",value:`
|
|
92
|
+
`});const h={type:"element",tagName:"li",properties:l,children:o};return e.patch(t,h),e.applyData(t,h)}function tU(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let i=-1;for(;!t&&++i<n.length;)t=_C(n[i])}return t}function _C(e){const t=e.spread;return t??e.children.length>1}function nU(e,t){const n={},i=e.all(t);let s=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++s<i.length;){const o=i[s];if(o.type==="element"&&o.tagName==="li"&&o.properties&&Array.isArray(o.properties.className)&&o.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const l={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(i,!0)};return e.patch(t,l),e.applyData(t,l)}function rU(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function iU(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function aU(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function sU(e,t){const n=e.all(t),i=n.shift(),s=[];if(i){const o={type:"element",tagName:"thead",properties:{},children:e.wrap([i],!0)};e.patch(t.children[0],o),s.push(o)}if(n.length>0){const o={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},c=Lr(t.children[1]),d=fd(t.children[t.children.length-1]);c&&d&&(o.position={start:c,end:d}),s.push(o)}const l={type:"element",tagName:"table",properties:{},children:e.wrap(s,!0)};return e.patch(t,l),e.applyData(t,l)}function lU(e,t,n){const i=n?n.children:void 0,l=(i?i.indexOf(t):1)===0?"th":"td",o=n&&n.type==="table"?n.align:void 0,c=o?o.length:t.children.length;let d=-1;const h=[];for(;++d<c;){const p=t.children[d],E={},y=o?o[d]:void 0;y&&(E.align=y);let v={type:"element",tagName:l,properties:E,children:[]};p&&(v.children=e.all(p),e.patch(p,v),v=e.applyData(p,v)),h.push(v)}const m={type:"element",tagName:"tr",properties:{},children:e.wrap(h,!0)};return e.patch(t,m),e.applyData(t,m)}function uU(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const x2=9,T2=32;function oU(e){const t=String(e),n=/\r?\n|\r/g;let i=n.exec(t),s=0;const l=[];for(;i;)l.push(v2(t.slice(s,i.index),s>0,!0),i[0]),s=i.index+i[0].length,i=n.exec(t);return l.push(v2(t.slice(s),s>0,!1)),l.join("")}function v2(e,t,n){let i=0,s=e.length;if(t){let l=e.codePointAt(i);for(;l===x2||l===T2;)i++,l=e.codePointAt(i)}if(n){let l=e.codePointAt(s-1);for(;l===x2||l===T2;)s--,l=e.codePointAt(s-1)}return s>i?e.slice(i,s):""}function cU(e,t){const n={type:"text",value:oU(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function fU(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const dU={blockquote:zH,break:FH,code:qH,delete:VH,emphasis:YH,footnoteReference:$H,heading:GH,html:KH,imageReference:XH,image:QH,inlineCode:WH,linkReference:ZH,link:JH,listItem:eU,list:nU,paragraph:rU,root:iU,strong:aU,table:sU,tableCell:uU,tableRow:lU,text:cU,thematicBreak:fU,toml:Zc,yaml:Zc,definition:Zc,footnoteDefinition:Zc};function Zc(){}function hU(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function mU(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function pU(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||hU,i=e.options.footnoteBackLabel||mU,s=e.options.footnoteLabel||"Footnotes",l=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},c=[];let d=-1;for(;++d<e.footnoteOrder.length;){const h=e.footnoteById.get(e.footnoteOrder[d]);if(!h)continue;const m=e.all(h),p=String(h.identifier).toUpperCase(),E=vl(p.toLowerCase());let y=0;const v=[],S=e.footnoteCounts.get(p);for(;S!==void 0&&++y<=S;){v.length>0&&v.push({type:"text",value:" "});let N=typeof n=="string"?n:n(d,y);typeof N=="string"&&(N={type:"text",value:N}),v.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+E+(y>1?"-"+y:""),dataFootnoteBackref:"",ariaLabel:typeof i=="string"?i:i(d,y),className:["data-footnote-backref"]},children:Array.isArray(N)?N:[N]})}const A=m[m.length-1];if(A&&A.type==="element"&&A.tagName==="p"){const N=A.children[A.children.length-1];N&&N.type==="text"?N.value+=" ":A.children.push({type:"text",value:" "}),A.children.push(...v)}else m.push(...v);const k={type:"element",tagName:"li",properties:{id:t+"fn-"+E},children:e.wrap(m,!0)};e.patch(h,k),c.push(k)}if(c.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:l,properties:{...$a(o),id:"footnote-label"},children:[{type:"text",value:s}]},{type:"text",value:`
|
|
93
|
+
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(c,!0)},{type:"text",value:`
|
|
94
|
+
`}]}}const p0={}.hasOwnProperty,gU={};function bU(e,t){const n=t||gU,i=new Map,s=new Map,l=new Map,o={...dU,...n.handlers},c={all:h,applyData:EU,definitionById:i,footnoteById:s,footnoteCounts:l,footnoteOrder:[],handlers:o,one:d,options:n,patch:yU,wrap:TU};return dr(e,function(m){if(m.type==="definition"||m.type==="footnoteDefinition"){const p=m.type==="definition"?i:s,E=String(m.identifier).toUpperCase();p.has(E)||p.set(E,m)}}),c;function d(m,p){const E=m.type,y=c.handlers[E];if(p0.call(c.handlers,E)&&y)return y(c,m,p);if(c.options.passThrough&&c.options.passThrough.includes(E)){if("children"in m){const{children:S,...A}=m,k=$a(A);return k.children=c.all(m),k}return $a(m)}return(c.options.unknownHandler||xU)(c,m,p)}function h(m){const p=[];if("children"in m){const E=m.children;let y=-1;for(;++y<E.length;){const v=c.one(E[y],m);if(v){if(y&&E[y-1].type==="break"&&(!Array.isArray(v)&&v.type==="text"&&(v.value=S2(v.value)),!Array.isArray(v)&&v.type==="element")){const S=v.children[0];S&&S.type==="text"&&(S.value=S2(S.value))}Array.isArray(v)?p.push(...v):p.push(v)}}}return p}}function yU(e,t){e.position&&(t.position=e3(e))}function EU(e,t){let n=t;if(e&&e.data){const i=e.data.hName,s=e.data.hChildren,l=e.data.hProperties;if(typeof i=="string")if(n.type==="element")n.tagName=i;else{const o="children"in n?n.children:[n];n={type:"element",tagName:i,properties:{},children:o}}n.type==="element"&&l&&Object.assign(n.properties,$a(l)),"children"in n&&n.children&&s!==null&&s!==void 0&&(n.children=s)}return n}function xU(e,t){const n=t.data||{},i="value"in t&&!(p0.call(n,"hProperties")||p0.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function TU(e,t){const n=[];let i=-1;for(t&&n.push({type:"text",value:`
|
|
95
|
+
`});++i<e.length;)i&&n.push({type:"text",value:`
|
|
96
|
+
`}),n.push(e[i]);return t&&e.length>0&&n.push({type:"text",value:`
|
|
97
|
+
`}),n}function S2(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function _2(e,t){const n=bU(e,t),i=n.one(e,void 0),s=pU(n),l=Array.isArray(i)?{type:"root",children:i}:i||{type:"root",children:[]};return s&&l.children.push({type:"text",value:`
|
|
98
|
+
`},s),l}function vU(e,t){return e&&"run"in e?async function(n,i){const s=_2(n,{file:i,...t});await e.run(s,i)}:function(n,i){return _2(n,{file:i,...e||t})}}function C2(e){if(e)throw e}var yp,A2;function SU(){if(A2)return yp;A2=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,i=Object.getOwnPropertyDescriptor,s=function(h){return typeof Array.isArray=="function"?Array.isArray(h):t.call(h)==="[object Array]"},l=function(h){if(!h||t.call(h)!=="[object Object]")return!1;var m=e.call(h,"constructor"),p=h.constructor&&h.constructor.prototype&&e.call(h.constructor.prototype,"isPrototypeOf");if(h.constructor&&!m&&!p)return!1;var E;for(E in h);return typeof E>"u"||e.call(h,E)},o=function(h,m){n&&m.name==="__proto__"?n(h,m.name,{enumerable:!0,configurable:!0,value:m.newValue,writable:!0}):h[m.name]=m.newValue},c=function(h,m){if(m==="__proto__")if(e.call(h,m)){if(i)return i(h,m).value}else return;return h[m]};return yp=function d(){var h,m,p,E,y,v,S=arguments[0],A=1,k=arguments.length,N=!1;for(typeof S=="boolean"&&(N=S,S=arguments[1]||{},A=2),(S==null||typeof S!="object"&&typeof S!="function")&&(S={});A<k;++A)if(h=arguments[A],h!=null)for(m in h)p=c(S,m),E=c(h,m),S!==E&&(N&&E&&(l(E)||(y=s(E)))?(y?(y=!1,v=p&&s(p)?p:[]):v=p&&l(p)?p:{},o(S,{name:m,newValue:d(N,v,E)})):typeof E<"u"&&o(S,{name:m,newValue:E}));return S},yp}var _U=SU();const Ep=N0(_U);function g0(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function CU(){const e=[],t={run:n,use:i};return t;function n(...s){let l=-1;const o=s.pop();if(typeof o!="function")throw new TypeError("Expected function as last argument, not "+o);c(null,...s);function c(d,...h){const m=e[++l];let p=-1;if(d){o(d);return}for(;++p<s.length;)(h[p]===null||h[p]===void 0)&&(h[p]=s[p]);s=h,m?AU(m,c)(...h):o(null,...h)}}function i(s){if(typeof s!="function")throw new TypeError("Expected `middelware` to be a function, not "+s);return e.push(s),t}}function AU(e,t){let n;return i;function i(...o){const c=e.length>o.length;let d;c&&o.push(s);try{d=e.apply(this,o)}catch(h){const m=h;if(c&&n)throw m;return s(m)}c||(d&&d.then&&typeof d.then=="function"?d.then(l,s):d instanceof Error?s(d):l(d))}function s(o,...c){n||(n=!0,t(o,...c))}function l(o){s(null,o)}}const Sr={basename:kU,dirname:wU,extname:NU,join:RU,sep:"/"};function kU(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');fo(e);let n=0,i=-1,s=e.length,l;if(t===void 0||t.length===0||t.length>e.length){for(;s--;)if(e.codePointAt(s)===47){if(l){n=s+1;break}}else i<0&&(l=!0,i=s+1);return i<0?"":e.slice(n,i)}if(t===e)return"";let o=-1,c=t.length-1;for(;s--;)if(e.codePointAt(s)===47){if(l){n=s+1;break}}else o<0&&(l=!0,o=s+1),c>-1&&(e.codePointAt(s)===t.codePointAt(c--)?c<0&&(i=s):(c=-1,i=o));return n===i?i=o:i<0&&(i=e.length),e.slice(n,i)}function wU(e){if(fo(e),e.length===0)return".";let t=-1,n=e.length,i;for(;--n;)if(e.codePointAt(n)===47){if(i){t=n;break}}else i||(i=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function NU(e){fo(e);let t=e.length,n=-1,i=0,s=-1,l=0,o;for(;t--;){const c=e.codePointAt(t);if(c===47){if(o){i=t+1;break}continue}n<0&&(o=!0,n=t+1),c===46?s<0?s=t:l!==1&&(l=1):s>-1&&(l=-1)}return s<0||n<0||l===0||l===1&&s===n-1&&s===i+1?"":e.slice(s,n)}function RU(...e){let t=-1,n;for(;++t<e.length;)fo(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":OU(n)}function OU(e){fo(e);const t=e.codePointAt(0)===47;let n=LU(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function LU(e,t){let n="",i=0,s=-1,l=0,o=-1,c,d;for(;++o<=e.length;){if(o<e.length)c=e.codePointAt(o);else{if(c===47)break;c=47}if(c===47){if(!(s===o-1||l===1))if(s!==o-1&&l===2){if(n.length<2||i!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(d=n.lastIndexOf("/"),d!==n.length-1){d<0?(n="",i=0):(n=n.slice(0,d),i=n.length-1-n.lastIndexOf("/")),s=o,l=0;continue}}else if(n.length>0){n="",i=0,s=o,l=0;continue}}t&&(n=n.length>0?n+"/..":"..",i=2)}else n.length>0?n+="/"+e.slice(s+1,o):n=e.slice(s+1,o),i=o-s-1;s=o,l=0}else c===46&&l>-1?l++:l=-1}return n}function fo(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const DU={cwd:IU};function IU(){return"/"}function b0(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function MU(e){if(typeof e=="string")e=new URL(e);else if(!b0(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return PU(e)}function PU(e){if(e.hostname!==""){const i=new TypeError('File URL host must be "localhost" or empty on darwin');throw i.code="ERR_INVALID_FILE_URL_HOST",i}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const i=t.codePointAt(n+2);if(i===70||i===102){const s=new TypeError("File URL path must not include encoded / characters");throw s.code="ERR_INVALID_FILE_URL_PATH",s}}return decodeURIComponent(t)}const xp=["history","path","basename","stem","extname","dirname"];class BU{constructor(t){let n;t?b0(t)?n={path:t}:typeof t=="string"||jU(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":DU.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let i=-1;for(;++i<xp.length;){const l=xp[i];l in n&&n[l]!==void 0&&n[l]!==null&&(this[l]=l==="history"?[...n[l]]:n[l])}let s;for(s in n)xp.includes(s)||(this[s]=n[s])}get basename(){return typeof this.path=="string"?Sr.basename(this.path):void 0}set basename(t){vp(t,"basename"),Tp(t,"basename"),this.path=Sr.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?Sr.dirname(this.path):void 0}set dirname(t){k2(this.basename,"dirname"),this.path=Sr.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?Sr.extname(this.path):void 0}set extname(t){if(Tp(t,"extname"),k2(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Sr.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){b0(t)&&(t=MU(t)),vp(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?Sr.basename(this.path,this.extname):void 0}set stem(t){vp(t,"stem"),Tp(t,"stem"),this.path=Sr.join(this.dirname||"",t+(this.extname||""))}fail(t,n,i){const s=this.message(t,n,i);throw s.fatal=!0,s}info(t,n,i){const s=this.message(t,n,i);return s.fatal=void 0,s}message(t,n,i){const s=new on(t,n,i);return this.path&&(s.name=this.path+":"+s.name,s.file=this.path),s.fatal=!1,this.messages.push(s),s}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function Tp(e,t){if(e&&e.includes(Sr.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Sr.sep+"`")}function vp(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function k2(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function jU(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const HU=(function(e){const i=this.constructor.prototype,s=i[e],l=function(){return s.apply(l,arguments)};return Object.setPrototypeOf(l,i),l}),UU={}.hasOwnProperty;class wg extends HU{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=CU()}copy(){const t=new wg;let n=-1;for(;++n<this.attachers.length;){const i=this.attachers[n];t.use(...i)}return t.data(Ep(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(Cp("data",this.frozen),this.namespace[t]=n,this):UU.call(this.namespace,t)&&this.namespace[t]||void 0:t?(Cp("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...i]=this.attachers[this.freezeIndex];if(i[0]===!1)continue;i[0]===!0&&(i[0]=void 0);const s=n.call(t,...i);typeof s=="function"&&this.transformers.use(s)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=Jc(t),i=this.parser||this.Parser;return Sp("parse",i),i(String(n),n)}process(t,n){const i=this;return this.freeze(),Sp("process",this.parser||this.Parser),_p("process",this.compiler||this.Compiler),n?s(void 0,n):new Promise(s);function s(l,o){const c=Jc(t),d=i.parse(c);i.run(d,c,function(m,p,E){if(m||!p||!E)return h(m);const y=p,v=i.stringify(y,E);qU(v)?E.value=v:E.result=v,h(m,E)});function h(m,p){m||!p?o(m):l?l(p):n(void 0,p)}}}processSync(t){let n=!1,i;return this.freeze(),Sp("processSync",this.parser||this.Parser),_p("processSync",this.compiler||this.Compiler),this.process(t,s),N2("processSync","process",n),i;function s(l,o){n=!0,C2(l),i=o}}run(t,n,i){w2(t),this.freeze();const s=this.transformers;return!i&&typeof n=="function"&&(i=n,n=void 0),i?l(void 0,i):new Promise(l);function l(o,c){const d=Jc(n);s.run(t,d,h);function h(m,p,E){const y=p||t;m?c(m):o?o(y):i(void 0,y,E)}}}runSync(t,n){let i=!1,s;return this.run(t,n,l),N2("runSync","run",i),s;function l(o,c){C2(o),s=c,i=!0}}stringify(t,n){this.freeze();const i=Jc(n),s=this.compiler||this.Compiler;return _p("stringify",s),w2(t),s(t,i)}use(t,...n){const i=this.attachers,s=this.namespace;if(Cp("use",this.frozen),t!=null)if(typeof t=="function")d(t,n);else if(typeof t=="object")Array.isArray(t)?c(t):o(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function l(h){if(typeof h=="function")d(h,[]);else if(typeof h=="object")if(Array.isArray(h)){const[m,...p]=h;d(m,p)}else o(h);else throw new TypeError("Expected usable value, not `"+h+"`")}function o(h){if(!("plugins"in h)&&!("settings"in h))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");c(h.plugins),h.settings&&(s.settings=Ep(!0,s.settings,h.settings))}function c(h){let m=-1;if(h!=null)if(Array.isArray(h))for(;++m<h.length;){const p=h[m];l(p)}else throw new TypeError("Expected a list of plugins, not `"+h+"`")}function d(h,m){let p=-1,E=-1;for(;++p<i.length;)if(i[p][0]===h){E=p;break}if(E===-1)i.push([h,...m]);else if(m.length>0){let[y,...v]=m;const S=i[E][1];g0(S)&&g0(y)&&(y=Ep(!0,S,y)),i[E]=[h,y,...v]}}}}const zU=new wg().freeze();function Sp(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function _p(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Cp(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function w2(e){if(!g0(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function N2(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Jc(e){return FU(e)?e:new BU(e)}function FU(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function qU(e){return typeof e=="string"||VU(e)}function VU(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}function Ng(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var is=Ng();function CC(e){is=e}var Ia={exec:()=>null};function tt(e,t=""){let n=typeof e=="string"?e:e.source,i={replace:(s,l)=>{let o=typeof l=="string"?l:l.source;return o=o.replace(gn.caret,"$1"),n=n.replace(s,o),i},getRegex:()=>new RegExp(n,t)};return i}var YU=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),gn={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i"),blockquoteBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}>`)},$U=/^(?:[ \t]*(?:\n|$))+/,GU=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,KU=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,ho=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,XU=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Rg=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,AC=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,kC=tt(AC).replace(/bull/g,Rg).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),QU=tt(AC).replace(/bull/g,Rg).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),Og=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,WU=/^[^\n]+/,Lg=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,ZU=tt(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Lg).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),JU=tt(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Rg).getRegex(),pd="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|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Dg=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,ez=tt("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",Dg).replace("tag",pd).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),wC=tt(Og).replace("hr",ho).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",pd).getRegex(),tz=tt(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",wC).getRegex(),Ig={blockquote:tz,code:GU,def:ZU,fences:KU,heading:XU,hr:ho,html:ez,lheading:kC,list:JU,newline:$U,paragraph:wC,table:Ia,text:WU},R2=tt("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",ho).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",pd).getRegex(),nz={...Ig,lheading:QU,table:R2,paragraph:tt(Og).replace("hr",ho).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",R2).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",pd).getRegex()},rz={...Ig,html:tt(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Dg).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Ia,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:tt(Og).replace("hr",ho).replace("heading",` *#{1,6} *[^
|
|
99
|
+
]`).replace("lheading",kC).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},iz=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,az=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,NC=/^( {2,}|\\)\n(?!\s*$)/,sz=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Sl=/[\p{P}\p{S}]/u,gd=/[\s\p{P}\p{S}]/u,Mg=/[^\s\p{P}\p{S}]/u,lz=tt(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,gd).getRegex(),RC=/(?!~)[\p{P}\p{S}]/u,uz=/(?!~)[\s\p{P}\p{S}]/u,oz=/(?:[^\s\p{P}\p{S}]|~)/u,cz=tt(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",YU?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),OC=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,fz=tt(OC,"u").replace(/punct/g,Sl).getRegex(),dz=tt(OC,"u").replace(/punct/g,RC).getRegex(),LC="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",hz=tt(LC,"gu").replace(/notPunctSpace/g,Mg).replace(/punctSpace/g,gd).replace(/punct/g,Sl).getRegex(),mz=tt(LC,"gu").replace(/notPunctSpace/g,oz).replace(/punctSpace/g,uz).replace(/punct/g,RC).getRegex(),pz=tt("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Mg).replace(/punctSpace/g,gd).replace(/punct/g,Sl).getRegex(),gz=tt(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,Sl).getRegex(),bz="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",yz=tt(bz,"gu").replace(/notPunctSpace/g,Mg).replace(/punctSpace/g,gd).replace(/punct/g,Sl).getRegex(),Ez=tt(/\\(punct)/,"gu").replace(/punct/g,Sl).getRegex(),xz=tt(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),Tz=tt(Dg).replace("(?:-->|$)","-->").getRegex(),vz=tt("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",Tz).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),jf=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,Sz=tt(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",jf).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),DC=tt(/^!?\[(label)\]\[(ref)\]/).replace("label",jf).replace("ref",Lg).getRegex(),IC=tt(/^!?\[(ref)\](?:\[\])?/).replace("ref",Lg).getRegex(),_z=tt("reflink|nolink(?!\\()","g").replace("reflink",DC).replace("nolink",IC).getRegex(),O2=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Pg={_backpedal:Ia,anyPunctuation:Ez,autolink:xz,blockSkip:cz,br:NC,code:az,del:Ia,delLDelim:Ia,delRDelim:Ia,emStrongLDelim:fz,emStrongRDelimAst:hz,emStrongRDelimUnd:pz,escape:iz,link:Sz,nolink:IC,punctuation:lz,reflink:DC,reflinkSearch:_z,tag:vz,text:sz,url:Ia},Cz={...Pg,link:tt(/^!?\[(label)\]\((.*?)\)/).replace("label",jf).getRegex(),reflink:tt(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",jf).getRegex()},y0={...Pg,emStrongRDelimAst:mz,emStrongLDelim:dz,delLDelim:gz,delRDelim:yz,url:tt(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",O2).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:tt(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",O2).getRegex()},Az={...y0,br:tt(NC).replace("{2,}","*").getRegex(),text:tt(y0.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},ef={normal:Ig,gfm:nz,pedantic:rz},Au={normal:Pg,gfm:y0,breaks:Az,pedantic:Cz},kz={"&":"&","<":"<",">":">",'"':""","'":"'"},L2=e=>kz[e];function vr(e,t){if(t){if(gn.escapeTest.test(e))return e.replace(gn.escapeReplace,L2)}else if(gn.escapeTestNoEncode.test(e))return e.replace(gn.escapeReplaceNoEncode,L2);return e}function D2(e){try{e=encodeURI(e).replace(gn.percentDecode,"%")}catch{return null}return e}function I2(e,t){let n=e.replace(gn.findPipe,(l,o,c)=>{let d=!1,h=o;for(;--h>=0&&c[h]==="\\";)d=!d;return d?"|":" |"}),i=n.split(gn.splitPipe),s=0;if(i[0].trim()||i.shift(),i.length>0&&!i.at(-1)?.trim()&&i.pop(),t)if(i.length>t)i.splice(t);else for(;i.length<t;)i.push("");for(;s<i.length;s++)i[s]=i[s].trim().replace(gn.slashPipe,"|");return i}function ku(e,t,n){let i=e.length;if(i===0)return"";let s=0;for(;s<i&&e.charAt(i-s-1)===t;)s++;return e.slice(0,i-s)}function wz(e,t){if(e.indexOf(t[1])===-1)return-1;let n=0;for(let i=0;i<e.length;i++)if(e[i]==="\\")i++;else if(e[i]===t[0])n++;else if(e[i]===t[1]&&(n--,n<0))return i;return n>0?-2:-1}function Nz(e,t=0){let n=t,i="";for(let s of e)if(s===" "){let l=4-n%4;i+=" ".repeat(l),n+=l}else i+=s,n++;return i}function M2(e,t,n,i,s){let l=t.href,o=t.title||null,c=e[1].replace(s.other.outputLinkReplace,"$1");i.state.inLink=!0;let d={type:e[0].charAt(0)==="!"?"image":"link",raw:n,href:l,title:o,text:c,tokens:i.inlineTokens(c)};return i.state.inLink=!1,d}function Rz(e,t,n){let i=e.match(n.other.indentCodeCompensation);if(i===null)return t;let s=i[1];return t.split(`
|
|
100
|
+
`).map(l=>{let o=l.match(n.other.beginningSpace);if(o===null)return l;let[c]=o;return c.length>=s.length?l.slice(s.length):l}).join(`
|
|
101
|
+
`)}var Hf=class{options;rules;lexer;constructor(e){this.options=e||is}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let n=t[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?n:ku(n,`
|
|
102
|
+
`)}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let n=t[0],i=Rz(n,t[3]||"",this.rules);return{type:"code",raw:n,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:i}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let n=t[2].trim();if(this.rules.other.endingHash.test(n)){let i=ku(n,"#");(this.options.pedantic||!i||this.rules.other.endingSpaceChar.test(i))&&(n=i.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:n,tokens:this.lexer.inline(n)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:ku(t[0],`
|
|
103
|
+
`)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let n=ku(t[0],`
|
|
104
|
+
`).split(`
|
|
105
|
+
`),i="",s="",l=[];for(;n.length>0;){let o=!1,c=[],d;for(d=0;d<n.length;d++)if(this.rules.other.blockquoteStart.test(n[d]))c.push(n[d]),o=!0;else if(!o)c.push(n[d]);else break;n=n.slice(d);let h=c.join(`
|
|
106
|
+
`),m=h.replace(this.rules.other.blockquoteSetextReplace,`
|
|
107
|
+
$1`).replace(this.rules.other.blockquoteSetextReplace2,"");i=i?`${i}
|
|
108
|
+
${h}`:h,s=s?`${s}
|
|
109
|
+
${m}`:m;let p=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(m,l,!0),this.lexer.state.top=p,n.length===0)break;let E=l.at(-1);if(E?.type==="code")break;if(E?.type==="blockquote"){let y=E,v=y.raw+`
|
|
110
|
+
`+n.join(`
|
|
111
|
+
`),S=this.blockquote(v);l[l.length-1]=S,i=i.substring(0,i.length-y.raw.length)+S.raw,s=s.substring(0,s.length-y.text.length)+S.text;break}else if(E?.type==="list"){let y=E,v=y.raw+`
|
|
112
|
+
`+n.join(`
|
|
113
|
+
`),S=this.list(v);l[l.length-1]=S,i=i.substring(0,i.length-E.raw.length)+S.raw,s=s.substring(0,s.length-y.raw.length)+S.raw,n=v.substring(l.at(-1).raw.length).split(`
|
|
114
|
+
`);continue}}return{type:"blockquote",raw:i,tokens:l,text:s}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n=t[1].trim(),i=n.length>1,s={type:"list",raw:"",ordered:i,start:i?+n.slice(0,-1):"",loose:!1,items:[]};n=i?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=i?n:"[*+-]");let l=this.rules.other.listItemRegex(n),o=!1;for(;e;){let d=!1,h="",m="";if(!(t=l.exec(e))||this.rules.block.hr.test(e))break;h=t[0],e=e.substring(h.length);let p=Nz(t[2].split(`
|
|
115
|
+
`,1)[0],t[1].length),E=e.split(`
|
|
116
|
+
`,1)[0],y=!p.trim(),v=0;if(this.options.pedantic?(v=2,m=p.trimStart()):y?v=t[1].length+1:(v=p.search(this.rules.other.nonSpaceChar),v=v>4?1:v,m=p.slice(v),v+=t[1].length),y&&this.rules.other.blankLine.test(E)&&(h+=E+`
|
|
117
|
+
`,e=e.substring(E.length+1),d=!0),!d){let S=this.rules.other.nextBulletRegex(v),A=this.rules.other.hrRegex(v),k=this.rules.other.fencesBeginRegex(v),N=this.rules.other.headingBeginRegex(v),w=this.rules.other.htmlBeginRegex(v),D=this.rules.other.blockquoteBeginRegex(v);for(;e;){let z=e.split(`
|
|
118
|
+
`,1)[0],L;if(E=z,this.options.pedantic?(E=E.replace(this.rules.other.listReplaceNesting," "),L=E):L=E.replace(this.rules.other.tabCharGlobal," "),k.test(E)||N.test(E)||w.test(E)||D.test(E)||S.test(E)||A.test(E))break;if(L.search(this.rules.other.nonSpaceChar)>=v||!E.trim())m+=`
|
|
119
|
+
`+L.slice(v);else{if(y||p.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||k.test(p)||N.test(p)||A.test(p))break;m+=`
|
|
120
|
+
`+E}y=!E.trim(),h+=z+`
|
|
121
|
+
`,e=e.substring(z.length+1),p=L.slice(v)}}s.loose||(o?s.loose=!0:this.rules.other.doubleBlankLine.test(h)&&(o=!0)),s.items.push({type:"list_item",raw:h,task:!!this.options.gfm&&this.rules.other.listIsTask.test(m),loose:!1,text:m,tokens:[]}),s.raw+=h}let c=s.items.at(-1);if(c)c.raw=c.raw.trimEnd(),c.text=c.text.trimEnd();else return;s.raw=s.raw.trimEnd();for(let d of s.items){if(this.lexer.state.top=!1,d.tokens=this.lexer.blockTokens(d.text,[]),d.task){if(d.text=d.text.replace(this.rules.other.listReplaceTask,""),d.tokens[0]?.type==="text"||d.tokens[0]?.type==="paragraph"){d.tokens[0].raw=d.tokens[0].raw.replace(this.rules.other.listReplaceTask,""),d.tokens[0].text=d.tokens[0].text.replace(this.rules.other.listReplaceTask,"");for(let m=this.lexer.inlineQueue.length-1;m>=0;m--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[m].src)){this.lexer.inlineQueue[m].src=this.lexer.inlineQueue[m].src.replace(this.rules.other.listReplaceTask,"");break}}let h=this.rules.other.listTaskCheckbox.exec(d.raw);if(h){let m={type:"checkbox",raw:h[0]+" ",checked:h[0]!=="[ ]"};d.checked=m.checked,s.loose?d.tokens[0]&&["paragraph","text"].includes(d.tokens[0].type)&&"tokens"in d.tokens[0]&&d.tokens[0].tokens?(d.tokens[0].raw=m.raw+d.tokens[0].raw,d.tokens[0].text=m.raw+d.tokens[0].text,d.tokens[0].tokens.unshift(m)):d.tokens.unshift({type:"paragraph",raw:m.raw,text:m.raw,tokens:[m]}):d.tokens.unshift(m)}}if(!s.loose){let h=d.tokens.filter(p=>p.type==="space"),m=h.length>0&&h.some(p=>this.rules.other.anyLine.test(p.raw));s.loose=m}}if(s.loose)for(let d of s.items){d.loose=!0;for(let h of d.tokens)h.type==="text"&&(h.type="paragraph")}return s}}html(e){let t=this.rules.block.html.exec(e);if(t)return{type:"html",block:!0,raw:t[0],pre:t[1]==="pre"||t[1]==="script"||t[1]==="style",text:t[0]}}def(e){let t=this.rules.block.def.exec(e);if(t){let n=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),i=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",s=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:n,raw:t[0],href:i,title:s}}}table(e){let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let n=I2(t[1]),i=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),s=t[3]?.trim()?t[3].replace(this.rules.other.tableRowBlankLine,"").split(`
|
|
122
|
+
`):[],l={type:"table",raw:t[0],header:[],align:[],rows:[]};if(n.length===i.length){for(let o of i)this.rules.other.tableAlignRight.test(o)?l.align.push("right"):this.rules.other.tableAlignCenter.test(o)?l.align.push("center"):this.rules.other.tableAlignLeft.test(o)?l.align.push("left"):l.align.push(null);for(let o=0;o<n.length;o++)l.header.push({text:n[o],tokens:this.lexer.inline(n[o]),header:!0,align:l.align[o]});for(let o of s)l.rows.push(I2(o,l.header.length).map((c,d)=>({text:c,tokens:this.lexer.inline(c),header:!1,align:l.align[d]})));return l}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t){let n=t[1].trim();return{type:"heading",raw:t[0],depth:t[2].charAt(0)==="="?1:2,text:n,tokens:this.lexer.inline(n)}}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let n=t[1].charAt(t[1].length-1)===`
|
|
123
|
+
`?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:n,tokens:this.lexer.inline(n)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let n=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(n)){if(!this.rules.other.endAngleBracket.test(n))return;let l=ku(n.slice(0,-1),"\\");if((n.length-l.length)%2===0)return}else{let l=wz(t[2],"()");if(l===-2)return;if(l>-1){let o=(t[0].indexOf("!")===0?5:4)+t[1].length+l;t[2]=t[2].substring(0,l),t[0]=t[0].substring(0,o).trim(),t[3]=""}}let i=t[2],s="";if(this.options.pedantic){let l=this.rules.other.pedanticHrefTitle.exec(i);l&&(i=l[1],s=l[3])}else s=t[3]?t[3].slice(1,-1):"";return i=i.trim(),this.rules.other.startAngleBracket.test(i)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(n)?i=i.slice(1):i=i.slice(1,-1)),M2(t,{href:i&&i.replace(this.rules.inline.anyPunctuation,"$1"),title:s&&s.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let i=(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," "),s=t[i.toLowerCase()];if(!s){let l=n[0].charAt(0);return{type:"text",raw:l,text:l}}return M2(n,s,n[0],this.lexer,this.rules)}}emStrong(e,t,n=""){let i=this.rules.inline.emStrongLDelim.exec(e);if(!(!i||!i[1]&&!i[2]&&!i[3]&&!i[4]||i[4]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(i[1]||i[3])||!n||this.rules.inline.punctuation.exec(n))){let s=[...i[0]].length-1,l,o,c=s,d=0,h=i[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(h.lastIndex=0,t=t.slice(-1*e.length+s);(i=h.exec(t))!==null;){if(l=i[1]||i[2]||i[3]||i[4]||i[5]||i[6],!l)continue;if(o=[...l].length,i[3]||i[4]){c+=o;continue}else if((i[5]||i[6])&&s%3&&!((s+o)%3)){d+=o;continue}if(c-=o,c>0)continue;o=Math.min(o,o+c+d);let m=[...i[0]][0].length,p=e.slice(0,s+i.index+m+o);if(Math.min(s,o)%2){let y=p.slice(1,-1);return{type:"em",raw:p,text:y,tokens:this.lexer.inlineTokens(y)}}let E=p.slice(2,-2);return{type:"strong",raw:p,text:E,tokens:this.lexer.inlineTokens(E)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let n=t[2].replace(this.rules.other.newLineCharGlobal," "),i=this.rules.other.nonSpaceChar.test(n),s=this.rules.other.startingSpaceChar.test(n)&&this.rules.other.endingSpaceChar.test(n);return i&&s&&(n=n.substring(1,n.length-1)),{type:"codespan",raw:t[0],text:n}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e,t,n=""){let i=this.rules.inline.delLDelim.exec(e);if(i&&(!i[1]||!n||this.rules.inline.punctuation.exec(n))){let s=[...i[0]].length-1,l,o,c=s,d=this.rules.inline.delRDelim;for(d.lastIndex=0,t=t.slice(-1*e.length+s);(i=d.exec(t))!==null;){if(l=i[1]||i[2]||i[3]||i[4]||i[5]||i[6],!l||(o=[...l].length,o!==s))continue;if(i[3]||i[4]){c+=o;continue}if(c-=o,c>0)continue;o=Math.min(o,o+c);let h=[...i[0]][0].length,m=e.slice(0,s+i.index+h+o),p=m.slice(s,-s);return{type:"del",raw:m,text:p,tokens:this.lexer.inlineTokens(p)}}}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let n,i;return t[2]==="@"?(n=t[1],i="mailto:"+n):(n=t[1],i=n),{type:"link",raw:t[0],text:n,href:i,tokens:[{type:"text",raw:n,text:n}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let n,i;if(t[2]==="@")n=t[0],i="mailto:"+n;else{let s;do s=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??"";while(s!==t[0]);n=t[0],t[1]==="www."?i="http://"+t[0]:i=t[0]}return{type:"link",raw:t[0],text:n,href:i,tokens:[{type:"text",raw:n,text:n}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let n=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:n}}}},rr=class E0{tokens;options;state;inlineQueue;tokenizer;constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||is,this.options.tokenizer=this.options.tokenizer||new Hf,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let n={other:gn,block:ef.normal,inline:Au.normal};this.options.pedantic?(n.block=ef.pedantic,n.inline=Au.pedantic):this.options.gfm&&(n.block=ef.gfm,this.options.breaks?n.inline=Au.breaks:n.inline=Au.gfm),this.tokenizer.rules=n}static get rules(){return{block:ef,inline:Au}}static lex(t,n){return new E0(n).lex(t)}static lexInline(t,n){return new E0(n).inlineTokens(t)}lex(t){t=t.replace(gn.carriageReturn,`
|
|
124
|
+
`),this.blockTokens(t,this.tokens);for(let n=0;n<this.inlineQueue.length;n++){let i=this.inlineQueue[n];this.inlineTokens(i.src,i.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,n=[],i=!1){for(this.tokenizer.lexer=this,this.options.pedantic&&(t=t.replace(gn.tabCharGlobal," ").replace(gn.spaceLine,""));t;){let s;if(this.options.extensions?.block?.some(o=>(s=o.call({lexer:this},t,n))?(t=t.substring(s.raw.length),n.push(s),!0):!1))continue;if(s=this.tokenizer.space(t)){t=t.substring(s.raw.length);let o=n.at(-1);s.raw.length===1&&o!==void 0?o.raw+=`
|
|
125
|
+
`:n.push(s);continue}if(s=this.tokenizer.code(t)){t=t.substring(s.raw.length);let o=n.at(-1);o?.type==="paragraph"||o?.type==="text"?(o.raw+=(o.raw.endsWith(`
|
|
126
|
+
`)?"":`
|
|
127
|
+
`)+s.raw,o.text+=`
|
|
128
|
+
`+s.text,this.inlineQueue.at(-1).src=o.text):n.push(s);continue}if(s=this.tokenizer.fences(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.heading(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.hr(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.blockquote(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.list(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.html(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.def(t)){t=t.substring(s.raw.length);let o=n.at(-1);o?.type==="paragraph"||o?.type==="text"?(o.raw+=(o.raw.endsWith(`
|
|
129
|
+
`)?"":`
|
|
130
|
+
`)+s.raw,o.text+=`
|
|
131
|
+
`+s.raw,this.inlineQueue.at(-1).src=o.text):this.tokens.links[s.tag]||(this.tokens.links[s.tag]={href:s.href,title:s.title},n.push(s));continue}if(s=this.tokenizer.table(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.lheading(t)){t=t.substring(s.raw.length),n.push(s);continue}let l=t;if(this.options.extensions?.startBlock){let o=1/0,c=t.slice(1),d;this.options.extensions.startBlock.forEach(h=>{d=h.call({lexer:this},c),typeof d=="number"&&d>=0&&(o=Math.min(o,d))}),o<1/0&&o>=0&&(l=t.substring(0,o+1))}if(this.state.top&&(s=this.tokenizer.paragraph(l))){let o=n.at(-1);i&&o?.type==="paragraph"?(o.raw+=(o.raw.endsWith(`
|
|
132
|
+
`)?"":`
|
|
133
|
+
`)+s.raw,o.text+=`
|
|
134
|
+
`+s.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=o.text):n.push(s),i=l.length!==t.length,t=t.substring(s.raw.length);continue}if(s=this.tokenizer.text(t)){t=t.substring(s.raw.length);let o=n.at(-1);o?.type==="text"?(o.raw+=(o.raw.endsWith(`
|
|
135
|
+
`)?"":`
|
|
136
|
+
`)+s.raw,o.text+=`
|
|
137
|
+
`+s.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=o.text):n.push(s);continue}if(t){let o="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(o);break}else throw new Error(o)}}return this.state.top=!0,n}inline(t,n=[]){return this.inlineQueue.push({src:t,tokens:n}),n}inlineTokens(t,n=[]){this.tokenizer.lexer=this;let i=t,s=null;if(this.tokens.links){let d=Object.keys(this.tokens.links);if(d.length>0)for(;(s=this.tokenizer.rules.inline.reflinkSearch.exec(i))!==null;)d.includes(s[0].slice(s[0].lastIndexOf("[")+1,-1))&&(i=i.slice(0,s.index)+"["+"a".repeat(s[0].length-2)+"]"+i.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(s=this.tokenizer.rules.inline.anyPunctuation.exec(i))!==null;)i=i.slice(0,s.index)+"++"+i.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let l;for(;(s=this.tokenizer.rules.inline.blockSkip.exec(i))!==null;)l=s[2]?s[2].length:0,i=i.slice(0,s.index+l)+"["+"a".repeat(s[0].length-l-2)+"]"+i.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);i=this.options.hooks?.emStrongMask?.call({lexer:this},i)??i;let o=!1,c="";for(;t;){o||(c=""),o=!1;let d;if(this.options.extensions?.inline?.some(m=>(d=m.call({lexer:this},t,n))?(t=t.substring(d.raw.length),n.push(d),!0):!1))continue;if(d=this.tokenizer.escape(t)){t=t.substring(d.raw.length),n.push(d);continue}if(d=this.tokenizer.tag(t)){t=t.substring(d.raw.length),n.push(d);continue}if(d=this.tokenizer.link(t)){t=t.substring(d.raw.length),n.push(d);continue}if(d=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(d.raw.length);let m=n.at(-1);d.type==="text"&&m?.type==="text"?(m.raw+=d.raw,m.text+=d.text):n.push(d);continue}if(d=this.tokenizer.emStrong(t,i,c)){t=t.substring(d.raw.length),n.push(d);continue}if(d=this.tokenizer.codespan(t)){t=t.substring(d.raw.length),n.push(d);continue}if(d=this.tokenizer.br(t)){t=t.substring(d.raw.length),n.push(d);continue}if(d=this.tokenizer.del(t,i,c)){t=t.substring(d.raw.length),n.push(d);continue}if(d=this.tokenizer.autolink(t)){t=t.substring(d.raw.length),n.push(d);continue}if(!this.state.inLink&&(d=this.tokenizer.url(t))){t=t.substring(d.raw.length),n.push(d);continue}let h=t;if(this.options.extensions?.startInline){let m=1/0,p=t.slice(1),E;this.options.extensions.startInline.forEach(y=>{E=y.call({lexer:this},p),typeof E=="number"&&E>=0&&(m=Math.min(m,E))}),m<1/0&&m>=0&&(h=t.substring(0,m+1))}if(d=this.tokenizer.inlineText(h)){t=t.substring(d.raw.length),d.raw.slice(-1)!=="_"&&(c=d.raw.slice(-1)),o=!0;let m=n.at(-1);m?.type==="text"?(m.raw+=d.raw,m.text+=d.text):n.push(d);continue}if(t){let m="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(m);break}else throw new Error(m)}}return n}},Uf=class{options;parser;constructor(e){this.options=e||is}space(e){return""}code({text:e,lang:t,escaped:n}){let i=(t||"").match(gn.notSpaceStart)?.[0],s=e.replace(gn.endingNewline,"")+`
|
|
138
|
+
`;return i?'<pre><code class="language-'+vr(i)+'">'+(n?s:vr(s,!0))+`</code></pre>
|
|
139
|
+
`:"<pre><code>"+(n?s:vr(s,!0))+`</code></pre>
|
|
140
|
+
`}blockquote({tokens:e}){return`<blockquote>
|
|
141
|
+
${this.parser.parse(e)}</blockquote>
|
|
142
|
+
`}html({text:e}){return e}def(e){return""}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>
|
|
143
|
+
`}hr(e){return`<hr>
|
|
144
|
+
`}list(e){let t=e.ordered,n=e.start,i="";for(let o=0;o<e.items.length;o++){let c=e.items[o];i+=this.listitem(c)}let s=t?"ol":"ul",l=t&&n!==1?' start="'+n+'"':"";return"<"+s+l+`>
|
|
145
|
+
`+i+"</"+s+`>
|
|
146
|
+
`}listitem(e){return`<li>${this.parser.parse(e.tokens)}</li>
|
|
147
|
+
`}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"> '}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>
|
|
148
|
+
`}table(e){let t="",n="";for(let s=0;s<e.header.length;s++)n+=this.tablecell(e.header[s]);t+=this.tablerow({text:n});let i="";for(let s=0;s<e.rows.length;s++){let l=e.rows[s];n="";for(let o=0;o<l.length;o++)n+=this.tablecell(l[o]);i+=this.tablerow({text:n})}return i&&(i=`<tbody>${i}</tbody>`),`<table>
|
|
149
|
+
<thead>
|
|
150
|
+
`+t+`</thead>
|
|
151
|
+
`+i+`</table>
|
|
152
|
+
`}tablerow({text:e}){return`<tr>
|
|
153
|
+
${e}</tr>
|
|
154
|
+
`}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?"th":"td";return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>
|
|
155
|
+
`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${vr(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:n}){let i=this.parser.parseInline(n),s=D2(e);if(s===null)return i;e=s;let l='<a href="'+e+'"';return t&&(l+=' title="'+vr(t)+'"'),l+=">"+i+"</a>",l}image({href:e,title:t,text:n,tokens:i}){i&&(n=this.parser.parseInline(i,this.parser.textRenderer));let s=D2(e);if(s===null)return vr(n);e=s;let l=`<img src="${e}" alt="${vr(n)}"`;return t&&(l+=` title="${vr(t)}"`),l+=">",l}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:vr(e.text)}},Bg=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}checkbox({raw:e}){return e}},cr=class x0{options;renderer;textRenderer;constructor(t){this.options=t||is,this.options.renderer=this.options.renderer||new Uf,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Bg}static parse(t,n){return new x0(n).parse(t)}static parseInline(t,n){return new x0(n).parseInline(t)}parse(t){this.renderer.parser=this;let n="";for(let i=0;i<t.length;i++){let s=t[i];if(this.options.extensions?.renderers?.[s.type]){let o=s,c=this.options.extensions.renderers[o.type].call({parser:this},o);if(c!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(o.type)){n+=c||"";continue}}let l=s;switch(l.type){case"space":{n+=this.renderer.space(l);break}case"hr":{n+=this.renderer.hr(l);break}case"heading":{n+=this.renderer.heading(l);break}case"code":{n+=this.renderer.code(l);break}case"table":{n+=this.renderer.table(l);break}case"blockquote":{n+=this.renderer.blockquote(l);break}case"list":{n+=this.renderer.list(l);break}case"checkbox":{n+=this.renderer.checkbox(l);break}case"html":{n+=this.renderer.html(l);break}case"def":{n+=this.renderer.def(l);break}case"paragraph":{n+=this.renderer.paragraph(l);break}case"text":{n+=this.renderer.text(l);break}default:{let o='Token with "'+l.type+'" type was not found.';if(this.options.silent)return console.error(o),"";throw new Error(o)}}}return n}parseInline(t,n=this.renderer){this.renderer.parser=this;let i="";for(let s=0;s<t.length;s++){let l=t[s];if(this.options.extensions?.renderers?.[l.type]){let c=this.options.extensions.renderers[l.type].call({parser:this},l);if(c!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(l.type)){i+=c||"";continue}}let o=l;switch(o.type){case"escape":{i+=n.text(o);break}case"html":{i+=n.html(o);break}case"link":{i+=n.link(o);break}case"image":{i+=n.image(o);break}case"checkbox":{i+=n.checkbox(o);break}case"strong":{i+=n.strong(o);break}case"em":{i+=n.em(o);break}case"codespan":{i+=n.codespan(o);break}case"br":{i+=n.br(o);break}case"del":{i+=n.del(o);break}case"text":{i+=n.text(o);break}default:{let c='Token with "'+o.type+'" type was not found.';if(this.options.silent)return console.error(c),"";throw new Error(c)}}}return i}},Ru=class{options;block;constructor(e){this.options=e||is}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(e=this.block){return e?rr.lex:rr.lexInline}provideParser(e=this.block){return e?cr.parse:cr.parseInline}},Oz=class{defaults=Ng();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=cr;Renderer=Uf;TextRenderer=Bg;Lexer=rr;Tokenizer=Hf;Hooks=Ru;constructor(...t){this.use(...t)}walkTokens(t,n){let i=[];for(let s of t)switch(i=i.concat(n.call(this,s)),s.type){case"table":{let l=s;for(let o of l.header)i=i.concat(this.walkTokens(o.tokens,n));for(let o of l.rows)for(let c of o)i=i.concat(this.walkTokens(c.tokens,n));break}case"list":{let l=s;i=i.concat(this.walkTokens(l.items,n));break}default:{let l=s;this.defaults.extensions?.childTokens?.[l.type]?this.defaults.extensions.childTokens[l.type].forEach(o=>{let c=l[o].flat(1/0);i=i.concat(this.walkTokens(c,n))}):l.tokens&&(i=i.concat(this.walkTokens(l.tokens,n)))}}return i}use(...t){let n=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(i=>{let s={...i};if(s.async=this.defaults.async||s.async||!1,i.extensions&&(i.extensions.forEach(l=>{if(!l.name)throw new Error("extension name required");if("renderer"in l){let o=n.renderers[l.name];o?n.renderers[l.name]=function(...c){let d=l.renderer.apply(this,c);return d===!1&&(d=o.apply(this,c)),d}:n.renderers[l.name]=l.renderer}if("tokenizer"in l){if(!l.level||l.level!=="block"&&l.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let o=n[l.level];o?o.unshift(l.tokenizer):n[l.level]=[l.tokenizer],l.start&&(l.level==="block"?n.startBlock?n.startBlock.push(l.start):n.startBlock=[l.start]:l.level==="inline"&&(n.startInline?n.startInline.push(l.start):n.startInline=[l.start]))}"childTokens"in l&&l.childTokens&&(n.childTokens[l.name]=l.childTokens)}),s.extensions=n),i.renderer){let l=this.defaults.renderer||new Uf(this.defaults);for(let o in i.renderer){if(!(o in l))throw new Error(`renderer '${o}' does not exist`);if(["options","parser"].includes(o))continue;let c=o,d=i.renderer[c],h=l[c];l[c]=(...m)=>{let p=d.apply(l,m);return p===!1&&(p=h.apply(l,m)),p||""}}s.renderer=l}if(i.tokenizer){let l=this.defaults.tokenizer||new Hf(this.defaults);for(let o in i.tokenizer){if(!(o in l))throw new Error(`tokenizer '${o}' does not exist`);if(["options","rules","lexer"].includes(o))continue;let c=o,d=i.tokenizer[c],h=l[c];l[c]=(...m)=>{let p=d.apply(l,m);return p===!1&&(p=h.apply(l,m)),p}}s.tokenizer=l}if(i.hooks){let l=this.defaults.hooks||new Ru;for(let o in i.hooks){if(!(o in l))throw new Error(`hook '${o}' does not exist`);if(["options","block"].includes(o))continue;let c=o,d=i.hooks[c],h=l[c];Ru.passThroughHooks.has(o)?l[c]=m=>{if(this.defaults.async&&Ru.passThroughHooksRespectAsync.has(o))return(async()=>{let E=await d.call(l,m);return h.call(l,E)})();let p=d.call(l,m);return h.call(l,p)}:l[c]=(...m)=>{if(this.defaults.async)return(async()=>{let E=await d.apply(l,m);return E===!1&&(E=await h.apply(l,m)),E})();let p=d.apply(l,m);return p===!1&&(p=h.apply(l,m)),p}}s.hooks=l}if(i.walkTokens){let l=this.defaults.walkTokens,o=i.walkTokens;s.walkTokens=function(c){let d=[];return d.push(o.call(this,c)),l&&(d=d.concat(l.call(this,c))),d}}this.defaults={...this.defaults,...s}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,n){return rr.lex(t,n??this.defaults)}parser(t,n){return cr.parse(t,n??this.defaults)}parseMarkdown(t){return(n,i)=>{let s={...i},l={...this.defaults,...s},o=this.onError(!!l.silent,!!l.async);if(this.defaults.async===!0&&s.async===!1)return o(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof n>"u"||n===null)return o(new Error("marked(): input parameter is undefined or null"));if(typeof n!="string")return o(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(n)+", string expected"));if(l.hooks&&(l.hooks.options=l,l.hooks.block=t),l.async)return(async()=>{let c=l.hooks?await l.hooks.preprocess(n):n,d=await(l.hooks?await l.hooks.provideLexer(t):t?rr.lex:rr.lexInline)(c,l),h=l.hooks?await l.hooks.processAllTokens(d):d;l.walkTokens&&await Promise.all(this.walkTokens(h,l.walkTokens));let m=await(l.hooks?await l.hooks.provideParser(t):t?cr.parse:cr.parseInline)(h,l);return l.hooks?await l.hooks.postprocess(m):m})().catch(o);try{l.hooks&&(n=l.hooks.preprocess(n));let c=(l.hooks?l.hooks.provideLexer(t):t?rr.lex:rr.lexInline)(n,l);l.hooks&&(c=l.hooks.processAllTokens(c)),l.walkTokens&&this.walkTokens(c,l.walkTokens);let d=(l.hooks?l.hooks.provideParser(t):t?cr.parse:cr.parseInline)(c,l);return l.hooks&&(d=l.hooks.postprocess(d)),d}catch(c){return o(c)}}}onError(t,n){return i=>{if(i.message+=`
|
|
156
|
+
Please report this to https://github.com/markedjs/marked.`,t){let s="<p>An error occurred:</p><pre>"+vr(i.message+"",!0)+"</pre>";return n?Promise.resolve(s):s}if(n)return Promise.reject(i);throw i}}},Ka=new Oz;function mt(e,t){return Ka.parse(e,t)}mt.options=mt.setOptions=function(e){return Ka.setOptions(e),mt.defaults=Ka.defaults,CC(mt.defaults),mt};mt.getDefaults=Ng;mt.defaults=is;mt.use=function(...e){return Ka.use(...e),mt.defaults=Ka.defaults,CC(mt.defaults),mt};mt.walkTokens=function(e,t){return Ka.walkTokens(e,t)};mt.parseInline=Ka.parseInline;mt.Parser=cr;mt.parser=cr.parse;mt.Renderer=Uf;mt.TextRenderer=Bg;mt.Lexer=rr;mt.lexer=rr.lex;mt.Tokenizer=Hf;mt.Hooks=Ru;mt.parse=mt;mt.options;mt.setOptions;mt.use;mt.walkTokens;mt.parseInline;cr.parse;rr.lex;var Lz=300,Dz="300px",Iz=500;function Mz(e={}){let{immediate:t=!1,debounceDelay:n=Lz,rootMargin:i=Dz,idleTimeout:s=Iz}=e,[l,o]=C.useState(!1),c=C.useRef(null),d=C.useRef(null),h=C.useRef(null),m=C.useMemo(()=>y=>{let v=Date.now();return window.setTimeout(()=>{y({didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-v))})},1)},[]),p=C.useMemo(()=>typeof window<"u"&&window.requestIdleCallback?(y,v)=>window.requestIdleCallback(y,v):m,[m]),E=C.useMemo(()=>typeof window<"u"&&window.cancelIdleCallback?y=>window.cancelIdleCallback(y):y=>{clearTimeout(y)},[]);return C.useEffect(()=>{if(t){o(!0);return}let y=c.current;if(!y)return;d.current&&(clearTimeout(d.current),d.current=null),h.current&&(E(h.current),h.current=null);let v=()=>{d.current&&(clearTimeout(d.current),d.current=null),h.current&&(E(h.current),h.current=null)},S=w=>{h.current=p(D=>{D.timeRemaining()>0||D.didTimeout?(o(!0),w.disconnect()):h.current=p(()=>{o(!0),w.disconnect()},{timeout:s/2})},{timeout:s})},A=w=>{v(),d.current=window.setTimeout(()=>{var D,z;let L=w.takeRecords();(L.length===0||(z=(D=L.at(-1))==null?void 0:D.isIntersecting)!=null&&z)&&S(w)},n)},k=(w,D)=>{w.isIntersecting?A(D):v()},N=new IntersectionObserver(w=>{for(let D of w)k(D,N)},{rootMargin:i,threshold:0});return N.observe(y),()=>{d.current&&clearTimeout(d.current),h.current&&E(h.current),N.disconnect()}},[t,n,i,s,E,p]),{shouldRender:l,containerRef:c}}var Pz=320,Bz=4,MC=()=>typeof performance>"u"?Date.now():performance.now();function P2(e){var t,n;let i=(t=e?.now)!=null?t:MC,s=(n=e?.maxBacklogMs)!=null?n:Pz,l=0,o=0;return{now:i,beginPass(c){o=Math.min(Math.max(l,c),c+s)},mark(){return o},rewind(c){o=c},take(c,d,h){if(c<=0)return{baseDelay:0,step:Math.max(0,d)};let m=Math.max(0,d),p=m===0?0:Math.min(m,Bz),E=Math.max(o,h),y=h+s,v=E+Math.max(0,c-1)*m,S=m;if(v>y&&c>1)if(E<y){let k=y-E;S=Math.max(p,k/(c-1))}else S=p;let A=Math.max(0,Math.round(E-h));return o=E+c*S,{baseDelay:A,step:S}},commitPass(){l=o}}}var PC=/\s/,jg=/^\s+$/,jz=new Set(["pre","svg","math","annotation"]),Hz=new Set(["img","hr"]),mo=e=>typeof e=="object"&&e!==null&&"type"in e&&e.type==="element",Hg=e=>e.some(t=>mo(t)&&jz.has(t.tagName)),Uz=e=>{for(let t=e.length-1;t>=0;t--){let n=e[t];if(mo(n)&&n.tagName==="li")return n}},zz=(e,t,n,i)=>{e.properties!=null||(e.properties={}),e.properties["data-sd-animate-marker"]=!0;let s=typeof e.properties.style=="string"?`${e.properties.style};`:"";e.properties.style=`${s}--sd-marker-duration:${t}ms;--sd-marker-delay:${Math.round(n)}ms;--sd-marker-easing:${i}`},Fz=new Set(["ul","ol","li"]),BC=e=>{for(let t of e.children)if(mo(t)){if(t.tagName==="input")return t;if(Fz.has(t.tagName))continue;let n=BC(t);if(n)return n}},jC=(e,t,n,i)=>{e.properties!=null||(e.properties={}),e.properties["data-sd-animate"]=!0;let s=typeof e.properties.style=="string"?`${e.properties.style};`:"";e.properties.style=`${s}--sd-animation:sd-${t.animation};--sd-duration:${n}ms;--sd-easing:${t.easing};--sd-delay:${Math.round(i)}ms`},qz=(e,t,n,i)=>{let s=BC(e);s&&jC(s,t,n,i)},Vz=(e,t,n,i,s,l)=>{if(Hg(t))return;let o=i.prevContentLength,c=s.count;s.count+=1;let d=o>0&&c<o,h=d?0:l.baseDelay+s.newIndex++*l.step;jC(e,n,d?0:n.duration,h)},Yz=e=>{var t;for(let n=e.length-1;n>=0;n-=1){let i=e[n];if(mo(i)){if((t=i.properties)!=null&&t["data-sd-animated"])break;i.properties={...i.properties,"data-sd-animated":!0}}}},HC=e=>{let t=[],n="",i=!1;for(let s of e){let l=PC.test(s);if(l!==i&&n){if(l){n+=s,i=!0;continue}t.push(n),n=""}n+=s,i=l}return n&&t.push(n),t},UC=e=>{let t=[],n="";for(let i of e)PC.test(i)?t.length>0&&!jg.test(t.at(-1))?t[t.length-1]+=i:n+=i:(n&&(t.push(n),n=""),t.push(i));return n&&(t.length>0?t[t.length-1]+=n:t.push(n)),t},$z=(e,t,n,i,s,l)=>{let o=`--sd-animation:sd-${t};--sd-duration:${s?0:n}ms;--sd-easing:${i}`;return l&&(o+=`;--sd-delay:${Math.round(l)}ms`),{type:"element",tagName:"span",properties:{"data-sd-animate":!0,style:o},children:[{type:"text",value:e}]}},B2=(e,t)=>!(e>0&&t<e),T0=e=>mo(e)&&Hz.has(e.tagName),Gz=(e,t,n)=>{let i=0,s=0;return id(e,l=>l.type==="text"||T0(l),(l,o)=>{if(Hg(o))return Pa;if(T0(l)){B2(n,s)&&(i+=1),s+=1;return}let c=l.value;if(!c.trim()){s+=c.length;return}let d=t.sep==="char"?UC(c):HC(c);for(let h of d){let m=s;s+=h.length,!jg.test(h)&&B2(n,m)&&(i+=1)}}),i},Kz=(e,t,n,i,s,l)=>{var o;let c=t.at(-1);if(!(c&&"children"in c))return;if(Hg(t))return Pa;let d=c,h=d.children.indexOf(e);if(h===-1)return;let m=e.value;if(!m.trim()){s.count+=m.length;return}let p=n.sep==="char"?UC(m):HC(m),E=i.prevContentLength,y=!1,v=Uz(t),S=!!(v&&!((o=v.properties)!=null&&o["data-sd-animate-marker"])),A=!1,k=p.map(N=>{let w=s.count;if(s.count+=N.length,jg.test(N))return{type:"text",value:N};let D=E>0&&w<E,z=D?0:l.baseDelay+s.newIndex++*l.step;if(y=!0,v&&S&&!A){let L=D?0:n.duration;zz(v,L,z,n.easing),qz(v,n,L,z),A=!0}return $z(N,n.animation,n.duration,n.easing,D,z)});return y&&Yz(t),d.children.splice(h,1,...k),h+k.length},Xz=0;function zC(e){var t,n,i,s,l;let o={animation:(t=e?.animation)!=null?t:"fadeIn",duration:(n=e?.duration)!=null?n:150,easing:(i=e?.easing)!=null?i:"ease",sep:(s=e?.sep)!=null?s:"word",stagger:(l=e?.stagger)!=null?l:40,timeline:e?.timeline},c={committedCharCount:0,prevContentLength:0,lastRenderCharCount:0,pendingMark:null},d=Xz++,h=()=>m=>{var p;let E={count:0,newIndex:0};c.prevContentLength=c.committedCharCount;let y=o.timeline,v=(p=y?.now())!=null?p:MC();y&&(c.pendingMark===null?c.pendingMark=y.mark():y.rewind(c.pendingMark));let S=y?y.take(Gz(m,o,c.prevContentLength),o.stagger,v):{baseDelay:0,step:o.stagger};id(m,A=>A.type==="text"||T0(A),(A,k)=>{if(A.type==="text")return Kz(A,k,o,c,E,S);Vz(A,k,o,c,E,S)}),c.lastRenderCharCount=E.count,c.prevContentLength=0};return Object.defineProperty(h,"name",{value:`rehypeAnimate$${d}`}),{name:"animate",type:"animate",rehypePlugin:h,setPrevContentLength(m){c.committedCharCount=m,c.prevContentLength=m},getLastRenderCharCount(){return c.lastRenderCharCount},commit(){c.committedCharCount=c.lastRenderCharCount,c.pendingMark=null}}}zC();var FC=C.createContext(!1),Qz=()=>C.useContext(FC),bd=(...e)=>mC(J3(e)),Wz=(e,t)=>{if(!e||!t)return t;let n=`${e}:`;return t.split(/\s+/).filter(Boolean).map(i=>i.startsWith(n)?i:`${e}:${i}`).join(" ")},Zz=e=>e?(...t)=>Wz(e,mC(J3(t))):bd,ll=(e,t,n)=>{let i=typeof t=="string"&&n.startsWith("text/csv")?"\uFEFF":"",s=typeof t=="string"?new Blob([i+t],{type:n}):t,l=URL.createObjectURL(s),o=document.createElement("a");o.href=l,o.download=e,document.body.appendChild(o),o.click(),document.body.removeChild(o),URL.revokeObjectURL(l)},v0=C.createContext(bd),qe=()=>C.useContext(v0),Jz=8,qC=e=>{if(!(e===void 0||e===0||e===Number.POSITIVE_INFINITY)){if(typeof e=="number")return Number.isFinite(e)&&e>0?`${e}px`:void 0;if(!(e==="0"||e==="none"||e==="Infinity"))return e}},VC=(e,t,n)=>{let i=C.useRef(null),s=C.useRef(!0),l=C.useRef(!1);return C.useEffect(()=>{let o=i.current;if(!(o&&t))return;let c=()=>{let d=o.scrollHeight-o.scrollTop-o.clientHeight<Jz;s.current=d};return o.addEventListener("scroll",c,{passive:!0}),()=>o.removeEventListener("scroll",c)},[t]),C.useEffect(()=>{e&&!l.current&&(s.current=!0),e||(s.current=!0),l.current=e},[e]),C.useEffect(()=>{let o=i.current;o&&t&&e&&s.current&&o.scrollTo({top:o.scrollHeight,behavior:"instant"})},[e,t,n]),i},eF=bd("block"),tF=bd("block","before:content-[counter(line)]","before:inline-block","before:[counter-increment:line]","before:w-6","before:mr-4","before:text-[13px]","before:text-right","before:text-muted-foreground/50","before:font-mono","before:select-none"),nF=e=>{let t={};for(let n of e.split(";")){let i=n.indexOf(":");if(i>0){let s=n.slice(0,i).trim(),l=n.slice(i+1).trim();s&&l&&(t[s]=l)}}return t},rF=C.memo(({children:e,result:t,language:n,className:i,maxHeight:s,startLine:l,lineNumbers:o=!0,...c})=>{let d=qe(),{isAnimating:h}=C.useContext(rn),m=qC(s),p=VC(h,!!m,t),E=C.useMemo(()=>d(tF),[d]),y=C.useMemo(()=>d(eF),[d]),v=C.useMemo(()=>{let S={};return t.bg&&(S["--sdm-bg"]=t.bg),t.fg&&(S["--sdm-fg"]=t.fg),t.rootStyle&&Object.assign(S,nF(t.rootStyle)),S},[t.bg,t.fg,t.rootStyle]);return T.jsx("div",{className:d(i,m?"overflow-y-auto":null,"overflow-x-auto rounded-md border border-border bg-background p-4 text-sm"),"data-language":n,"data-streamdown":"code-block-body",ref:p,style:m?{maxHeight:m}:void 0,...c,children:T.jsx("pre",{className:d(i,"bg-[var(--sdm-bg,inherit)]","dark:bg-[var(--shiki-dark-bg,var(--sdm-bg,inherit))]"),style:v,children:T.jsx("code",{className:o?d("[counter-increment:line_0] [counter-reset:line]"):void 0,style:o&&l&&l>1?{counterReset:`line ${l-1}`}:void 0,children:t.tokens.map((S,A)=>T.jsx("span",{className:o?E:y,children:S.length===0||S.length===1&&S[0].content===""?`
|
|
157
|
+
`:S.map((k,N)=>{let w={},D=!!k.bgColor;if(k.color&&(w["--sdm-c"]=k.color),k.bgColor&&(w["--sdm-tbg"]=k.bgColor),k.htmlStyle)for(let[z,L]of Object.entries(k.htmlStyle))z==="color"?w["--sdm-c"]=L:z==="background-color"?(w["--sdm-tbg"]=L,D=!0):w[z]=L;return T.jsx("span",{className:d("text-[var(--sdm-c,inherit)]","dark:text-[var(--shiki-dark,var(--sdm-c,inherit))]",D&&"bg-[var(--sdm-tbg)]",D&&"dark:bg-[var(--shiki-dark-bg,var(--sdm-tbg))]"),style:w,...k.htmlAttrs,children:k.content},N)})},A))})})})}),iF=({className:e,language:t,style:n,isIncomplete:i,...s})=>{let l=qe();return T.jsx("div",{className:l("my-4 flex w-full flex-col gap-2 rounded-xl border border-border bg-sidebar p-2",e),"data-incomplete":i||void 0,"data-language":t,"data-streamdown":"code-block",style:{contentVisibility:"auto",containIntrinsicSize:"auto 200px",...n},...s})},YC=C.createContext({code:""}),$C=()=>C.useContext(YC),aF=({language:e})=>{let t=qe();return T.jsx("div",{className:t("flex h-8 items-center text-muted-foreground text-xs"),"data-language":e,"data-streamdown":"code-block-header",children:T.jsx("span",{className:t("ml-1 font-mono lowercase"),children:e})})},sF=e=>{let t=e.length;for(;t>0&&e[t-1]===`
|
|
158
|
+
`;)t--;return e.slice(0,t)},lF=C.lazy(()=>a_(()=>import("./highlighted-body-KPVGNVTW-CkO7YzEE.js"),[]).then(e=>({default:e.HighlightedCodeBlockBody}))),uF=({code:e,language:t,className:n,children:i,isIncomplete:s=!1,startLine:l,lineNumbers:o,...c})=>{let d=qe(),{codeBlockMaxHeight:h}=C.useContext(rn),m=C.useMemo(()=>sF(e),[e]),p=C.useMemo(()=>({bg:"transparent",fg:"inherit",tokens:m.split(`
|
|
159
|
+
`).map(E=>[{content:E,color:"inherit",bgColor:"transparent",htmlStyle:{},offset:0}])}),[m]);return T.jsx(YC.Provider,{value:{code:e},children:T.jsxs(iF,{dir:"ltr",isIncomplete:s,language:t,children:[T.jsx(aF,{language:t}),i?T.jsx("div",{className:d("pointer-events-none sticky top-2 z-10 -mt-10 flex h-8 items-center justify-end"),children:T.jsx("div",{className:d("pointer-events-auto flex shrink-0 items-center gap-2 rounded-md border border-sidebar bg-sidebar/80 px-1.5 py-1 supports-[backdrop-filter]:bg-sidebar/70 supports-[backdrop-filter]:backdrop-blur"),"data-streamdown":"code-block-actions",children:i})}):null,T.jsx(C.Suspense,{fallback:T.jsx(rF,{className:n,language:t,lineNumbers:o,maxHeight:h,result:p,startLine:l,...c}),children:T.jsx(lF,{className:n,code:m,language:t,lineNumbers:o,maxHeight:h,raw:p,startLine:l,...c})})]})})},oF=e=>T.jsx("svg",{"aria-hidden":"true",color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:T.jsx("path",{clipRule:"evenodd",d:"M15.5607 3.99999L15.0303 4.53032L6.23744 13.3232C5.55403 14.0066 4.44599 14.0066 3.76257 13.3232L4.2929 12.7929L3.76257 13.3232L0.969676 10.5303L0.439346 9.99999L1.50001 8.93933L2.03034 9.46966L4.82323 12.2626C4.92086 12.3602 5.07915 12.3602 5.17678 12.2626L13.9697 3.46966L14.5 2.93933L15.5607 3.99999Z",fill:"currentColor",fillRule:"evenodd"})}),cF=e=>T.jsx("svg",{"aria-hidden":"true",color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:T.jsx("path",{clipRule:"evenodd",d:"M2.75 0.5C1.7835 0.5 1 1.2835 1 2.25V9.75C1 10.7165 1.7835 11.5 2.75 11.5H3.75H4.5V10H3.75H2.75C2.61193 10 2.5 9.88807 2.5 9.75V2.25C2.5 2.11193 2.61193 2 2.75 2H8.25C8.38807 2 8.5 2.11193 8.5 2.25V3H10V2.25C10 1.2835 9.2165 0.5 8.25 0.5H2.75ZM7.75 4.5C6.7835 4.5 6 5.2835 6 6.25V13.75C6 14.7165 6.7835 15.5 7.75 15.5H13.25C14.2165 15.5 15 14.7165 15 13.75V6.25C15 5.2835 14.2165 4.5 13.25 4.5H7.75ZM7.5 6.25C7.5 6.11193 7.61193 6 7.75 6H13.25C13.3881 6 13.5 6.11193 13.5 6.25V13.75C13.5 13.8881 13.3881 14 13.25 14H7.75C7.61193 14 7.5 13.8881 7.5 13.75V6.25Z",fill:"currentColor",fillRule:"evenodd"})}),fF=e=>T.jsx("svg",{"aria-hidden":"true",color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:T.jsx("path",{clipRule:"evenodd",d:"M8.75 1V1.75V8.68934L10.7197 6.71967L11.25 6.18934L12.3107 7.25L11.7803 7.78033L8.70711 10.8536C8.31658 11.2441 7.68342 11.2441 7.29289 10.8536L4.21967 7.78033L3.68934 7.25L4.75 6.18934L5.28033 6.71967L7.25 8.68934V1.75V1H8.75ZM13.5 9.25V13.5H2.5V9.25V8.5H1V9.25V14C1 14.5523 1.44771 15 2 15H14C14.5523 15 15 14.5523 15 14V9.25V8.5H13.5V9.25Z",fill:"currentColor",fillRule:"evenodd"})}),dF=e=>T.jsxs("svg",{"aria-hidden":"true",color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:[T.jsx("path",{d:"M8 0V4",stroke:"currentColor",strokeWidth:"1.5"}),T.jsx("path",{d:"M8 16V12",opacity:"0.5",stroke:"currentColor",strokeWidth:"1.5"}),T.jsx("path",{d:"M3.29773 1.52783L5.64887 4.7639",opacity:"0.9",stroke:"currentColor",strokeWidth:"1.5"}),T.jsx("path",{d:"M12.7023 1.52783L10.3511 4.7639",opacity:"0.1",stroke:"currentColor",strokeWidth:"1.5"}),T.jsx("path",{d:"M12.7023 14.472L10.3511 11.236",opacity:"0.4",stroke:"currentColor",strokeWidth:"1.5"}),T.jsx("path",{d:"M3.29773 14.472L5.64887 11.236",opacity:"0.6",stroke:"currentColor",strokeWidth:"1.5"}),T.jsx("path",{d:"M15.6085 5.52783L11.8043 6.7639",opacity:"0.2",stroke:"currentColor",strokeWidth:"1.5"}),T.jsx("path",{d:"M0.391602 10.472L4.19583 9.23598",opacity:"0.7",stroke:"currentColor",strokeWidth:"1.5"}),T.jsx("path",{d:"M15.6085 10.4722L11.8043 9.2361",opacity:"0.3",stroke:"currentColor",strokeWidth:"1.5"}),T.jsx("path",{d:"M0.391602 5.52783L4.19583 6.7639",opacity:"0.8",stroke:"currentColor",strokeWidth:"1.5"})]}),hF=e=>T.jsx("svg",{"aria-hidden":"true",color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:T.jsx("path",{clipRule:"evenodd",d:"M1 5.25V6H2.5V5.25V2.5H5.25H6V1H5.25H2C1.44772 1 1 1.44772 1 2V5.25ZM5.25 14.9994H6V13.4994H5.25H2.5V10.7494V9.99939H1V10.7494V13.9994C1 14.5517 1.44772 14.9994 2 14.9994H5.25ZM15 10V10.75V14C15 14.5523 14.5523 15 14 15H10.75H10V13.5H10.75H13.5V10.75V10H15ZM10.75 1H10V2.5H10.75H13.5V5.25V6H15V5.25V2C15 1.44772 14.5523 1 14 1H10.75Z",fill:"currentColor",fillRule:"evenodd"})}),mF=e=>T.jsx("svg",{"aria-hidden":"true",color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:T.jsx("path",{clipRule:"evenodd",d:"M13.5 8C13.5 4.96643 11.0257 2.5 7.96452 2.5C5.42843 2.5 3.29365 4.19393 2.63724 6.5H5.25H6V8H5.25H0.75C0.335787 8 0 7.66421 0 7.25V2.75V2H1.5V2.75V5.23347C2.57851 2.74164 5.06835 1 7.96452 1C11.8461 1 15 4.13001 15 8C15 11.87 11.8461 15 7.96452 15C5.62368 15 3.54872 13.8617 2.27046 12.1122L1.828 11.5066L3.03915 10.6217L3.48161 11.2273C4.48831 12.6051 6.12055 13.5 7.96452 13.5C11.0257 13.5 13.5 11.0336 13.5 8Z",fill:"currentColor",fillRule:"evenodd"})}),pF=e=>T.jsx("svg",{"aria-hidden":"true",color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:T.jsx("path",{clipRule:"evenodd",d:"M12.4697 13.5303L13 14.0607L14.0607 13L13.5303 12.4697L9.06065 7.99999L13.5303 3.53032L14.0607 2.99999L13 1.93933L12.4697 2.46966L7.99999 6.93933L3.53032 2.46966L2.99999 1.93933L1.93933 2.99999L2.46966 3.53032L6.93933 7.99999L2.46966 12.4697L1.93933 13L2.99999 14.0607L3.53032 13.5303L7.99999 9.06065L12.4697 13.5303Z",fill:"currentColor",fillRule:"evenodd"})}),gF=e=>T.jsx("svg",{"aria-hidden":"true",color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:T.jsx("path",{clipRule:"evenodd",d:"M13.5 10.25V13.25C13.5 13.3881 13.3881 13.5 13.25 13.5H2.75C2.61193 13.5 2.5 13.3881 2.5 13.25L2.5 2.75C2.5 2.61193 2.61193 2.5 2.75 2.5H5.75H6.5V1H5.75H2.75C1.7835 1 1 1.7835 1 2.75V13.25C1 14.2165 1.7835 15 2.75 15H13.25C14.2165 15 15 14.2165 15 13.25V10.25V9.5H13.5V10.25ZM9 1H9.75H14.2495C14.6637 1 14.9995 1.33579 14.9995 1.75V6.25V7H13.4995V6.25V3.56066L8.53033 8.52978L8 9.06011L6.93934 7.99945L7.46967 7.46912L12.4388 2.5H9.75H9V1Z",fill:"currentColor",fillRule:"evenodd"})}),bF=e=>T.jsx("svg",{"aria-hidden":"true",color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:T.jsx("path",{clipRule:"evenodd",d:"M1.5 6.5C1.5 3.73858 3.73858 1.5 6.5 1.5C9.26142 1.5 11.5 3.73858 11.5 6.5C11.5 9.26142 9.26142 11.5 6.5 11.5C3.73858 11.5 1.5 9.26142 1.5 6.5ZM6.5 0C2.91015 0 0 2.91015 0 6.5C0 10.0899 2.91015 13 6.5 13C8.02469 13 9.42677 12.475 10.5353 11.596L13.9697 15.0303L14.5 15.5607L15.5607 14.5L15.0303 13.9697L11.596 10.5353C12.475 9.42677 13 8.02469 13 6.5C13 2.91015 10.0899 0 6.5 0ZM4.125 5.875H4.75H5.875V4.75V4.125H7.125V4.75V5.875H8.25H8.875V7.125H8.25H7.125V8.25V8.875H5.875V8.25V7.125H4.75H4.125V5.875Z",fill:"currentColor",fillRule:"evenodd"})}),yF=e=>T.jsx("svg",{"aria-hidden":"true",color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:T.jsx("path",{clipRule:"evenodd",d:"M1.5 6.5C1.5 3.73858 3.73858 1.5 6.5 1.5C9.26142 1.5 11.5 3.73858 11.5 6.5C11.5 9.26142 9.26142 11.5 6.5 11.5C3.73858 11.5 1.5 9.26142 1.5 6.5ZM6.5 0C2.91015 0 0 2.91015 0 6.5C0 10.0899 2.91015 13 6.5 13C8.02469 13 9.42677 12.475 10.5353 11.596L13.9697 15.0303L14.5 15.5607L15.5607 14.5L15.0303 13.9697L11.596 10.5353C12.475 9.42677 13 8.02469 13 6.5C13 2.91015 10.0899 0 6.5 0ZM4.125 5.875H4.75H8.25H8.875V7.125H8.25H4.75H4.125V5.875Z",fill:"currentColor",fillRule:"evenodd"})}),Ou={CheckIcon:oF,CopyIcon:cF,DownloadIcon:fF,ExternalLinkIcon:gF,Loader2Icon:dF,Maximize2Icon:hF,RotateCcwIcon:mF,XIcon:pF,ZoomInIcon:bF,ZoomOutIcon:yF},GC=C.createContext(Ou),EF=(e,t)=>{if(e===t)return!0;if(!(e&&t))return e===t;let n=Object.keys(e),i=Object.keys(t);return n.length!==i.length?!1:n.every(s=>e[s]===t[s])},j2=({icons:e,children:t})=>{let n=C.useRef(e),i=C.useRef(e?{...Ou,...e}:Ou);EF(n.current,e)||(n.current=e,i.current=e?{...Ou,...e}:Ou);let s=i.current;return T.jsx(GC.Provider,{value:s,children:t})},gr=()=>C.useContext(GC),KC={copyCode:"Copy Code",downloadFile:"Download file",downloadDiagram:"Download diagram",downloadDiagramAsSvg:"Download diagram as SVG",downloadDiagramAsPng:"Download diagram as PNG",downloadDiagramAsMmd:"Download diagram as MMD",viewFullscreen:"View fullscreen",exitFullscreen:"Exit fullscreen",mermaidFormatSvg:"SVG",mermaidFormatPng:"PNG",mermaidFormatMmd:"MMD",zoomIn:"Zoom in",zoomOut:"Zoom out",resetView:"Reset zoom and pan",copyTable:"Copy table",copyTableAsMarkdown:"Copy table as Markdown",copyTableAsCsv:"Copy table as CSV",copyTableAsTsv:"Copy table as TSV",downloadTable:"Download table",downloadTableAsCsv:"Download table as CSV",downloadTableAsMarkdown:"Download table as Markdown",tableFormatMarkdown:"Markdown",tableFormatCsv:"CSV",tableFormatTsv:"TSV",imageNotAvailable:"Image not available",downloadImage:"Download image",openExternalLink:"Open external link?",externalLinkWarning:"You're about to visit an external website.",close:"Close",copyLink:"Copy link",copied:"Copied",openLink:"Open link"},S0=C.createContext(KC),Ir=()=>C.useContext(S0),_0=({onCopy:e,onError:t,timeout:n=2e3,children:i,className:s,code:l,...o})=>{let c=qe(),[d,h]=C.useState(!1),m=C.useRef(0),{code:p}=$C(),{isAnimating:E}=C.useContext(rn),y=Ir(),v=l??p,S=async()=>{var N;if(typeof window>"u"||!((N=navigator?.clipboard)!=null&&N.writeText)){t?.(new Error("Clipboard API not available"));return}try{d||(await navigator.clipboard.writeText(v),h(!0),e?.(),m.current=window.setTimeout(()=>h(!1),n))}catch(w){t?.(w)}};C.useEffect(()=>()=>{window.clearTimeout(m.current)},[]);let A=gr(),k=d?A.CheckIcon:A.CopyIcon;return T.jsxs(T.Fragment,{children:[T.jsx("button",{"aria-label":y.copyCode,className:c("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",s),"data-streamdown":"code-block-copy-button",disabled:E,onClick:S,title:y.copyCode,type:"button",...o,children:i??T.jsx(k,{"aria-hidden":"true",size:14})}),d&&T.jsx("output",{"aria-live":"polite",className:"sr-only",children:y.copied})]})},Ug=(e,t,n)=>{if(typeof e=="boolean")return n;let i=e[t];if(typeof i!="object")return n;let s=i.download;return typeof s!="object"?n:s.filename||n},H2={"1c":"1c","1c-query":"1cq",abap:"abap","actionscript-3":"as",ada:"ada",adoc:"adoc","angular-html":"html","angular-ts":"ts",apache:"conf",apex:"cls",apl:"apl",applescript:"applescript",ara:"ara",asciidoc:"adoc",asm:"asm",astro:"astro",awk:"awk",ballerina:"bal",bash:"sh",bat:"bat",batch:"bat",be:"be",beancount:"beancount",berry:"berry",bibtex:"bib",bicep:"bicep",blade:"blade.php",bsl:"bsl",c:"c","c#":"cs","c++":"cpp",cadence:"cdc",cairo:"cairo",cdc:"cdc",clarity:"clar",clj:"clj",clojure:"clj","closure-templates":"soy",cmake:"cmake",cmd:"cmd",cobol:"cob",codeowners:"CODEOWNERS",codeql:"ql",coffee:"coffee",coffeescript:"coffee","common-lisp":"lisp",console:"sh",coq:"v",cpp:"cpp",cql:"cql",crystal:"cr",cs:"cs",csharp:"cs",css:"css",csv:"csv",cue:"cue",cypher:"cql",d:"d",dart:"dart",dax:"dax",desktop:"desktop",diff:"diff",docker:"dockerfile",dockerfile:"dockerfile",dotenv:"env","dream-maker":"dm",edge:"edge",elisp:"el",elixir:"ex",elm:"elm","emacs-lisp":"el",erb:"erb",erl:"erl",erlang:"erl",f:"f","f#":"fs",f03:"f03",f08:"f08",f18:"f18",f77:"f77",f90:"f90",f95:"f95",fennel:"fnl",fish:"fish",fluent:"ftl",for:"for","fortran-fixed-form":"f","fortran-free-form":"f90",fs:"fs",fsharp:"fs",fsl:"fsl",ftl:"ftl",gdresource:"tres",gdscript:"gd",gdshader:"gdshader",genie:"gs",gherkin:"feature","git-commit":"gitcommit","git-rebase":"gitrebase",gjs:"js",gleam:"gleam","glimmer-js":"js","glimmer-ts":"ts",glsl:"glsl",gnuplot:"plt",go:"go",gql:"gql",graphql:"graphql",groovy:"groovy",gts:"gts",hack:"hack",haml:"haml",handlebars:"hbs",haskell:"hs",haxe:"hx",hbs:"hbs",hcl:"hcl",hjson:"hjson",hlsl:"hlsl",hs:"hs",html:"html","html-derivative":"html",http:"http",hxml:"hxml",hy:"hy",imba:"imba",ini:"ini",jade:"jade",java:"java",javascript:"js",jinja:"jinja",jison:"jison",jl:"jl",js:"js",json:"json",json5:"json5",jsonc:"jsonc",jsonl:"jsonl",jsonnet:"jsonnet",jssm:"jssm",jsx:"jsx",julia:"jl",kotlin:"kt",kql:"kql",kt:"kt",kts:"kts",kusto:"kql",latex:"tex",lean:"lean",lean4:"lean",less:"less",liquid:"liquid",lisp:"lisp",lit:"lit",llvm:"ll",log:"log",logo:"logo",lua:"lua",luau:"luau",make:"mak",makefile:"mak",markdown:"md",marko:"marko",matlab:"m",md:"md",mdc:"mdc",mdx:"mdx",mediawiki:"wiki",mermaid:"mmd",mips:"s",mipsasm:"s",mmd:"mmd",mojo:"mojo",move:"move",nar:"nar",narrat:"narrat",nextflow:"nf",nf:"nf",nginx:"conf",nim:"nim",nix:"nix",nu:"nu",nushell:"nu",objc:"m","objective-c":"m","objective-cpp":"mm",ocaml:"ml",pascal:"pas",perl:"pl",perl6:"p6",php:"php",plsql:"pls",po:"po",polar:"polar",postcss:"pcss",pot:"pot",potx:"potx",powerquery:"pq",powershell:"ps1",prisma:"prisma",prolog:"pl",properties:"properties",proto:"proto",protobuf:"proto",ps:"ps",ps1:"ps1",pug:"pug",puppet:"pp",purescript:"purs",py:"py",python:"py",ql:"ql",qml:"qml",qmldir:"qmldir",qss:"qss",r:"r",racket:"rkt",raku:"raku",razor:"cshtml",rb:"rb",reg:"reg",regex:"regex",regexp:"regexp",rel:"rel",riscv:"s",rs:"rs",rst:"rst",ruby:"rb",rust:"rs",sas:"sas",sass:"sass",scala:"scala",scheme:"scm",scss:"scss",sdbl:"sdbl",sh:"sh",shader:"shader",shaderlab:"shader",shell:"sh",shellscript:"sh",shellsession:"sh",smalltalk:"st",solidity:"sol",soy:"soy",sparql:"rq",spl:"spl",splunk:"spl",sql:"sql","ssh-config":"config",stata:"do",styl:"styl",stylus:"styl",svelte:"svelte",swift:"swift","system-verilog":"sv",systemd:"service",talon:"talon",talonscript:"talon",tasl:"tasl",tcl:"tcl",templ:"templ",terraform:"tf",tex:"tex",tf:"tf",tfvars:"tfvars",toml:"toml",ts:"ts","ts-tags":"ts",tsp:"tsp",tsv:"tsv",tsx:"tsx",turtle:"ttl",twig:"twig",typ:"typ",typescript:"ts",typespec:"tsp",typst:"typ",v:"v",vala:"vala",vb:"vb",verilog:"v",vhdl:"vhdl",vim:"vim",viml:"vim",vimscript:"vim",vue:"vue","vue-html":"html","vue-vine":"vine",vy:"vy",vyper:"vy",wasm:"wasm",wenyan:"wy",wgsl:"wgsl",wiki:"wiki",wikitext:"wiki",wit:"wit",wl:"wl",wolfram:"wl",xml:"xml",xsl:"xsl",yaml:"yaml",yml:"yml",zenscript:"zs",zig:"zig",zsh:"zsh",文言:"wy"},xF=({onDownload:e,onError:t,language:n,children:i,className:s,code:l,...o})=>{let c=qe(),{code:d}=$C(),{isAnimating:h,controls:m}=C.useContext(rn),p=Ir(),E=gr(),y=l??d,v=n&&n in H2?H2[n]:"txt",S=`${Ug(m,"code","file")}.${v}`,A="text/plain",k=()=>{try{ll(S,y,A),e?.()}catch(N){t?.(N)}};return T.jsx("button",{"aria-label":p.downloadFile,className:c("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",s),"data-streamdown":"code-block-download-button",disabled:h,onClick:k,title:p.downloadFile,type:"button",...o,children:i??T.jsx(E.DownloadIcon,{size:14})})},U2=()=>{let{Loader2Icon:e}=gr(),t=qe();return T.jsxs("div",{className:t("w-full divide-y divide-border overflow-hidden rounded-xl border border-border"),children:[T.jsx("div",{className:t("h-[46px] w-full bg-muted/80")}),T.jsx("div",{className:t("flex w-full items-center justify-center p-4"),children:T.jsx(e,{className:t("size-4 animate-spin")})})]})},TF=/\.[^/.]+$/,vF=({node:e,className:t,src:n,alt:i,onLoad:s,onError:l,showControls:o=!0,showDownloadControl:c=!0,...d})=>{let{DownloadIcon:h}=gr(),m=qe(),p=C.useRef(null),[E,y]=C.useState(!1),[v,S]=C.useState(!1),A=Ir(),k=d.width!=null||d.height!=null,N=(E||k)&&!v&&o&&c,w=v&&!k;C.useEffect(()=>{let P=p.current;if(P!=null&&P.complete){let H=P.naturalWidth>0;y(H),S(!H)}},[]);let D=C.useCallback(P=>{y(!0),S(!1),s?.(P)},[s]),z=C.useCallback(P=>{y(!1),S(!0),l?.(P)},[l]),L=async()=>{if(n)try{let P=await(await fetch(n)).blob(),H=new URL(n,window.location.origin).pathname.split("/").pop()||"",K=H.split(".").pop(),j=H.includes(".")&&K!==void 0&&K.length<=4,$="";if(j)$=H;else{let Z=P.type,le="png";Z.includes("jpeg")||Z.includes("jpg")?le="jpg":Z.includes("png")?le="png":Z.includes("svg")?le="svg":Z.includes("gif")?le="gif":Z.includes("webp")&&(le="webp"),$=`${(i||H||"image").replace(TF,"")}.${le}`}ll($,P,P.type)}catch{window.open(n,"_blank")}};return n?T.jsxs("div",{className:m("group relative my-4 inline-block"),"data-streamdown":"image-wrapper",children:[T.jsx("img",{alt:i,className:m("max-w-full rounded-lg",w&&"hidden",t),"data-streamdown":"image",onError:z,onLoad:D,ref:p,src:n,...d}),w&&T.jsx("span",{className:m("text-muted-foreground text-xs italic"),"data-streamdown":"image-fallback",children:A.imageNotAvailable}),o&&T.jsx("div",{className:m("pointer-events-none absolute inset-0 hidden rounded-lg bg-black/10 group-hover:block"),"data-streamdown":"image-overlay"}),N&&T.jsx("button",{className:m("absolute right-2 bottom-2 flex h-8 w-8 cursor-pointer items-center justify-center rounded-md border border-border bg-background/90 shadow-sm backdrop-blur-sm transition-all duration-200 hover:bg-background","opacity-0 group-hover:opacity-100"),onClick:L,title:A.downloadImage,type:"button",children:T.jsx(h,{size:14})})]}):null},Fu=0,zg=()=>{Fu+=1,Fu===1&&(document.body.style.overflow="hidden")},Fg=()=>{Fu=Math.max(0,Fu-1),Fu===0&&(document.body.style.overflow="")},SF=({url:e,isOpen:t,onClose:n,onConfirm:i})=>{let{CheckIcon:s,CopyIcon:l,ExternalLinkIcon:o,XIcon:c}=gr(),d=qe(),[h,m]=C.useState(!1),p=Ir(),E=C.useCallback(async()=>{try{await navigator.clipboard.writeText(e),m(!0),setTimeout(()=>m(!1),2e3)}catch{}},[e]),y=C.useCallback(()=>{i(),n()},[i,n]);if(C.useEffect(()=>{if(t){zg();let S=A=>{A.key==="Escape"&&n()};return document.addEventListener("keydown",S),()=>{document.removeEventListener("keydown",S),Fg()}}},[t,n]),!t||typeof document>"u")return null;let v=T.jsx("div",{className:d("fixed inset-0 z-50 flex items-center justify-center bg-background/50 backdrop-blur-sm"),"data-streamdown":"link-safety-modal",onClick:n,onKeyDown:S=>{S.key==="Escape"&&n()},role:"button",tabIndex:0,children:T.jsxs("div",{className:d("relative mx-4 flex w-full max-w-md flex-col gap-4 rounded-xl border bg-background p-6 shadow-lg"),onClick:S=>S.stopPropagation(),onKeyDown:S=>S.stopPropagation(),role:"presentation",children:[T.jsx("button",{className:d("absolute top-4 right-4 rounded-md p-1 text-muted-foreground transition-all hover:bg-muted hover:text-foreground"),onClick:n,title:p.close,type:"button",children:T.jsx(c,{size:16})}),T.jsxs("div",{className:d("flex flex-col gap-2"),children:[T.jsxs("div",{className:d("flex items-center gap-2 font-semibold text-lg"),children:[T.jsx(o,{size:20}),T.jsx("span",{children:p.openExternalLink})]}),T.jsx("p",{className:d("text-muted-foreground text-sm"),children:p.externalLinkWarning})]}),T.jsx("div",{className:d("break-all rounded-md bg-muted p-3 font-mono text-sm",e.length>100&&"max-h-32 overflow-y-auto"),children:e}),T.jsxs("div",{className:d("flex gap-2"),children:[T.jsx("button",{className:d("flex flex-1 items-center justify-center gap-2 rounded-md border bg-background px-4 py-2 font-medium text-sm transition-all hover:bg-muted"),onClick:E,type:"button",children:h?T.jsxs(T.Fragment,{children:[T.jsx(s,{size:14}),T.jsx("span",{children:p.copied})]}):T.jsxs(T.Fragment,{children:[T.jsx(l,{size:14}),T.jsx("span",{children:p.copyLink})]})}),T.jsxs("button",{className:d("flex flex-1 items-center justify-center gap-2 rounded-md bg-primary px-4 py-2 font-medium text-primary-foreground text-sm transition-all hover:bg-primary/90"),onClick:y,type:"button",children:[T.jsx(o,{size:14}),T.jsx("span",{children:p.openLink})]})]})]})});return ra.createPortal(v,document.body)},C0=C.createContext(null),qg=()=>C.useContext(C0),Wq=()=>{var e;let t=qg();return(e=t?.code)!=null?e:null},Vg=()=>{var e;let t=qg();return(e=t?.mermaid)!=null?e:null},_F=e=>{var t;let n=qg();return n!=null&&n.renderers&&e&&(t=n.renderers.find(i=>Array.isArray(i.language)?i.language.includes(e):i.language===e))!=null?t:null},CF=e=>{if(typeof DOMParser>"u"||typeof XMLSerializer>"u")return e;let t=new DOMParser().parseFromString(e,"text/html").querySelector("svg");return t?new XMLSerializer().serializeToString(t):e},AF=(e,t)=>{var n;let i=(n=void 0)!=null?n:5;return new Promise((s,l)=>{let o="data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent(e))),c=new Image;c.crossOrigin="anonymous",c.onload=()=>{let d=document.createElement("canvas"),h=c.width*i,m=c.height*i;d.width=h,d.height=m;let p=d.getContext("2d");if(!p){l(new Error("Failed to create 2D canvas context for PNG export"));return}p.drawImage(c,0,0,h,m),d.toBlob(E=>{if(!E){l(new Error("Failed to create PNG blob"));return}s(E)},"image/png")},c.onerror=()=>l(new Error("Failed to load SVG image")),c.src=o})},XC=({chart:e,children:t,className:n,onDownload:i,config:s,onError:l})=>{let o=qe(),[c,d]=C.useState(!1),h=C.useRef(null),{isAnimating:m,controls:p}=C.useContext(rn),E=gr(),y=Vg(),v=Ir(),S=Ug(p,"mermaid","diagram"),A=async k=>{try{if(k==="mmd"){let P=`${S}.mmd`;ll(P,e,"text/plain"),d(!1),i?.(k);return}if(!y){l?.(new Error("Mermaid plugin not available"));return}let N=y.getMermaid(s),w=e.split("").reduce((P,H)=>(P<<5)-P+H.charCodeAt(0)|0,0),D=`mermaid-${Math.abs(w)}-${Date.now()}-${Math.random().toString(36).substring(2,9)}`,{svg:z}=await N.render(D,e);if(!z){l?.(new Error("SVG not found. Please wait for the diagram to render."));return}let L=CF(z);if(k==="svg"){let P=`${S}.svg`;ll(P,L,"image/svg+xml"),d(!1),i?.(k);return}if(k==="png"){let P=await AF(L);ll(`${S}.png`,P,"image/png"),i?.(k),d(!1);return}}catch(N){l?.(N)}};return C.useEffect(()=>{let k=N=>{let w=N.composedPath();h.current&&!w.includes(h.current)&&d(!1)};return document.addEventListener("mousedown",k),()=>{document.removeEventListener("mousedown",k)}},[]),T.jsxs("div",{className:o("relative"),ref:h,children:[T.jsx("button",{"aria-label":v.downloadDiagram,className:o("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",n),disabled:m,onClick:()=>d(!c),title:v.downloadDiagram,type:"button",children:t??T.jsx(E.DownloadIcon,{"aria-hidden":"true",size:14})}),c?T.jsxs("div",{className:o("absolute top-full right-0 z-10 mt-1 min-w-[120px] overflow-hidden rounded-md border border-border bg-background shadow-lg"),children:[T.jsx("button",{"aria-label":v.downloadDiagramAsSvg,className:o("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>A("svg"),title:v.downloadDiagramAsSvg,type:"button",children:v.mermaidFormatSvg}),T.jsx("button",{"aria-label":v.downloadDiagramAsPng,className:o("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>A("png"),title:v.downloadDiagramAsPng,type:"button",children:v.mermaidFormatPng}),T.jsx("button",{"aria-label":v.downloadDiagramAsMmd,className:o("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>A("mmd"),title:v.downloadDiagramAsMmd,type:"button",children:v.mermaidFormatMmd})]}):null]})},kF=({chart:e,config:t,onFullscreen:n,onExit:i,className:s,...l})=>{let{Maximize2Icon:o,XIcon:c}=gr(),d=qe(),[h,m]=C.useState(!1),{isAnimating:p,controls:E}=C.useContext(rn),y=Ir(),v=(()=>{if(typeof E=="boolean")return E;let N=E.mermaid;return N===!1?!1:N===!0||N===void 0?!0:N.panZoom!==!1})(),S=(()=>{if(typeof E=="boolean")return E;let N=E.mermaid;return N===!1?!1:N===!0||N===void 0?!0:N.download!==!1})(),A=(()=>{if(typeof E=="boolean")return E;let N=E.mermaid;return N===!1?!1:N===!0||N===void 0?!0:N.copy!==!1})(),k=()=>{m(!h)};return C.useEffect(()=>{if(h){zg();let N=w=>{w.key==="Escape"&&m(!1)};return document.addEventListener("keydown",N),()=>{document.removeEventListener("keydown",N),Fg()}}},[h]),C.useEffect(()=>{h?n?.():i&&i()},[h,n,i]),T.jsxs(T.Fragment,{children:[T.jsx("button",{className:d("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",s),disabled:p,onClick:k,title:y.viewFullscreen,type:"button",...l,"aria-label":y.viewFullscreen,children:T.jsx(o,{"aria-hidden":"true",size:14})}),h?ra.createPortal(T.jsxs("div",{"aria-label":y.viewFullscreen,"aria-modal":"true",className:d("fixed inset-0 z-50 flex items-center justify-center bg-background/95 backdrop-blur-sm"),"data-streamdown":"mermaid-fullscreen",onClick:k,onKeyDown:N=>{N.key==="Escape"&&k()},role:"dialog",children:[T.jsxs("div",{className:d("absolute top-4 right-4 z-10 flex items-center gap-1"),onClick:N=>N.stopPropagation(),onKeyDown:N=>N.stopPropagation(),role:"presentation",children:[S?T.jsx(XC,{chart:e,config:t}):null,A?T.jsx(_0,{code:e}):null,T.jsx("button",{"aria-label":y.exitFullscreen,className:d("rounded-md p-2 text-muted-foreground transition-all hover:bg-muted hover:text-foreground"),onClick:k,title:y.exitFullscreen,type:"button",children:T.jsx(c,{"aria-hidden":"true",size:20})})]}),T.jsx("div",{className:d("flex size-full items-center justify-center p-4"),onClick:N=>N.stopPropagation(),onKeyDown:N=>N.stopPropagation(),role:"presentation",children:T.jsx(IA,{chart:e,className:d("size-full [&_svg]:h-auto [&_svg]:w-auto"),config:t,fullscreen:!0,showControls:v})})]}),document.body):null]})};function A0(e){var t;if(e.nodeType===Node.TEXT_NODE)return(t=e.textContent)!=null?t:"";if(e.nodeType!==Node.ELEMENT_NODE)return"";let n=e;return n.tagName==="BR"?`
|
|
160
|
+
`:Array.from(n.childNodes).map(A0).join("")}var QC=e=>{let t=[],n=[],i=e.querySelectorAll("thead th");for(let l of i)t.push(A0(l).trim());let s=e.querySelectorAll("tbody tr");for(let l of s){let o=[],c=l.querySelectorAll("td");for(let d of c)o.push(A0(d).trim());n.push(o)}return{headers:t,rows:n}},WC=e=>{var t;if(typeof e!="object")return",";let n=e.table;return typeof n!="object"?",":(t=n.csvSeparator)!=null?t:","},ZC=(e,t=",")=>{let n;t==="auto"?Intl.NumberFormat().format(1.1).includes(",")?n=";":n=",":n=t;let{headers:i,rows:s}=e,l=h=>{let m=!1;for(let p of h)if(p===n||p==='"'||p===`
|
|
161
|
+
`||p==="\r"){m=!0;break}return m?`"${h.replace(/"/g,'""')}"`:h},o=i.length>0?s.length+1:s.length,c=new Array(o),d=0;i.length>0&&(c[d]=i.map(l).join(n),d+=1);for(let h of s)c[d]=h.map(l).join(n),d+=1;return c.join(`
|
|
162
|
+
`)},wF=e=>{let{headers:t,rows:n}=e,i=c=>{let d=!1;for(let m of c)if(m===" "||m===`
|
|
163
|
+
`||m==="\r"){d=!0;break}if(!d)return c;let h=[];for(let m of c)m===" "?h.push("\\t"):m===`
|
|
164
|
+
`?h.push("\\n"):m==="\r"?h.push("\\r"):h.push(m);return h.join("")},s=t.length>0?n.length+1:n.length,l=new Array(s),o=0;t.length>0&&(l[o]=t.map(i).join(" "),o+=1);for(let c of n)l[o]=c.map(i).join(" "),o+=1;return l.join(`
|
|
165
|
+
`)},Ap=e=>{let t=!1;for(let i of e)if(i==="\\"||i==="|"||i===`
|
|
166
|
+
`){t=!0;break}if(!t)return e;let n=[];for(let i of e)i==="\\"?n.push("\\\\"):i==="|"?n.push("\\|"):i===`
|
|
167
|
+
`?n.push("<br>"):n.push(i);return n.join("")},JC=e=>{let{headers:t,rows:n}=e;if(t.length===0)return"";let i=new Array(n.length+2),s=0,l=t.map(c=>Ap(c));i[s]=`| ${l.join(" | ")} |`,s+=1;let o=new Array(t.length);for(let c=0;c<t.length;c+=1)o[c]="---";i[s]=`| ${o.join(" | ")} |`,s+=1;for(let c of n)if(c.length<t.length){let d=new Array(t.length);for(let h=0;h<t.length;h+=1)d[h]=h<c.length?Ap(c[h]):"";i[s]=`| ${d.join(" | ")} |`,s+=1}else{let d=c.map(h=>Ap(h));i[s]=`| ${d.join(" | ")} |`,s+=1}return i.join(`
|
|
168
|
+
`)},eA=({children:e,className:t,onCopy:n,onError:i,timeout:s=2e3})=>{let l=qe(),[o,c]=C.useState(!1),[d,h]=C.useState(!1),m=C.useRef(null),p=C.useRef(0),{isAnimating:E,controls:y}=C.useContext(rn),v=Ir(),S=WC(y),A=async w=>{var D,z;if(typeof window>"u"||!((D=navigator?.clipboard)!=null&&D.write)){i?.(new Error("Clipboard API not available"));return}try{let L=(z=m.current)==null?void 0:z.closest('[data-streamdown="table-wrapper"]'),P=L?.querySelector("table");if(!P){i?.(new Error("Table not found"));return}let H=QC(P),K="";w==="csv"?K=ZC(H,S):w==="tsv"?K=wF(H):K=JC(H);let j=new ClipboardItem({"text/plain":new Blob([K],{type:"text/plain"}),"text/html":new Blob([P.outerHTML],{type:"text/html"})});await navigator.clipboard.write([j]),h(!0),c(!1),n?.(w),p.current=window.setTimeout(()=>h(!1),s)}catch(L){i?.(L)}};C.useEffect(()=>{let w=D=>{let z=D.composedPath();m.current&&!z.includes(m.current)&&c(!1)};return document.addEventListener("mousedown",w),()=>{document.removeEventListener("mousedown",w),window.clearTimeout(p.current)}},[]);let k=gr(),N=d?k.CheckIcon:k.CopyIcon;return T.jsxs("div",{className:l("relative"),ref:m,children:[T.jsx("button",{className:l("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",t),disabled:E,onClick:()=>c(!o),title:v.copyTable,type:"button",children:e??T.jsx(N,{height:14,width:14})}),o?T.jsxs("div",{className:l("absolute top-full right-0 z-20 mt-1 min-w-[120px] overflow-hidden rounded-md border border-border bg-background shadow-lg"),children:[T.jsx("button",{className:l("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>A("md"),title:v.copyTableAsMarkdown,type:"button",children:v.tableFormatMarkdown}),T.jsx("button",{className:l("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>A("csv"),title:v.copyTableAsCsv,type:"button",children:v.tableFormatCsv}),T.jsx("button",{className:l("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>A("tsv"),title:v.copyTableAsTsv,type:"button",children:v.tableFormatTsv})]}):null]})},tA=({children:e,className:t,onDownload:n,onError:i})=>{let s=qe(),[l,o]=C.useState(!1),c=C.useRef(null),{isAnimating:d,controls:h}=C.useContext(rn),m=Ir(),p=gr(),E=WC(h),y=v=>{var S;try{let A=(S=c.current)==null?void 0:S.closest('[data-streamdown="table-wrapper"]'),k=A?.querySelector("table");if(!k){i?.(new Error("Table not found"));return}let N=QC(k),w=v==="csv"?ZC(N,E):JC(N),D=v==="csv"?"csv":"md",z=`${Ug(h,"table","table")}.${D}`;ll(z,w,v==="csv"?"text/csv":"text/markdown"),o(!1),n?.(v)}catch(A){i?.(A)}};return C.useEffect(()=>{let v=S=>{let A=S.composedPath();c.current&&!A.includes(c.current)&&o(!1)};return document.addEventListener("mousedown",v),()=>{document.removeEventListener("mousedown",v)}},[]),T.jsxs("div",{className:s("relative"),ref:c,children:[T.jsx("button",{className:s("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",t),disabled:d,onClick:()=>o(!l),title:m.downloadTable,type:"button",children:e??T.jsx(p.DownloadIcon,{size:14})}),l?T.jsxs("div",{className:s("absolute top-full right-0 z-20 mt-1 min-w-[120px] overflow-hidden rounded-md border border-border bg-background shadow-lg"),children:[T.jsx("button",{className:s("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>y("csv"),title:m.downloadTableAsCsv,type:"button",children:m.tableFormatCsv}),T.jsx("button",{className:s("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>y("markdown"),title:m.downloadTableAsMarkdown,type:"button",children:m.tableFormatMarkdown})]}):null]})},NF=({children:e,className:t,showCopy:n=!0,showDownload:i=!0})=>{let{Maximize2Icon:s,XIcon:l}=gr(),o=qe(),[c,d]=C.useState(!1),{isAnimating:h}=C.useContext(rn),m=Ir(),p=()=>{d(!0)},E=()=>{d(!1)};return C.useEffect(()=>{if(c){zg();let y=v=>{v.key==="Escape"&&d(!1)};return document.addEventListener("keydown",y),()=>{document.removeEventListener("keydown",y),Fg()}}},[c]),T.jsxs(T.Fragment,{children:[T.jsx("button",{className:o("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",t),disabled:h,onClick:p,title:m.viewFullscreen,type:"button",children:T.jsx(s,{size:14})}),c?ra.createPortal(T.jsx("div",{"aria-label":m.viewFullscreen,"aria-modal":"true",className:o("fixed inset-0 z-50 flex flex-col bg-background"),"data-streamdown":"table-fullscreen",onClick:E,onKeyDown:y=>{y.key==="Escape"&&E()},role:"dialog",children:T.jsxs("div",{className:o("flex h-full flex-col"),"data-streamdown":"table-wrapper",onClick:y=>y.stopPropagation(),onKeyDown:y=>y.stopPropagation(),role:"presentation",children:[T.jsxs("div",{className:o("flex items-center justify-end gap-1 p-4"),children:[n?T.jsx(eA,{}):null,i?T.jsx(tA,{}):null,T.jsx("button",{className:o("rounded-md p-1 text-muted-foreground transition-all hover:bg-muted hover:text-foreground"),onClick:E,title:m.exitFullscreen,type:"button",children:T.jsx(l,{size:20})})]}),T.jsx("div",{className:o("flex-1 overflow-auto p-4 pt-0 [&_thead]:sticky [&_thead]:top-0 [&_thead]:z-10"),children:T.jsx("table",{className:o("w-full border-collapse border border-border"),"data-streamdown":"table",children:e})})]})}),document.body):null]})},RF=({children:e,className:t,maxHeight:n,showControls:i,showCopy:s=!0,showDownload:l=!0,showFullscreen:o=!0,...c})=>{let d=qe(),{isAnimating:h}=C.useContext(rn),m=qC(n),p=VC(h,!!m,e),E=i&&s,y=i&&l,v=i&&o,S=E||y||v;return T.jsxs("div",{className:d("my-4 flex flex-col gap-2 rounded-lg border border-border bg-sidebar p-2"),"data-streamdown":"table-wrapper",children:[S?T.jsxs("div",{className:d("flex items-center justify-end gap-1"),children:[E?T.jsx(eA,{}):null,y?T.jsx(tA,{}):null,v?T.jsx(NF,{showCopy:E,showDownload:y,children:e}):null]}):null,T.jsx("div",{className:d("border-collapse overflow-x-auto overflow-y-auto rounded-md border border-border bg-background"),ref:p,style:m?{maxHeight:m}:void 0,children:T.jsx("table",{className:d("w-full divide-y divide-border",t),"data-streamdown":"table",...c,children:e})})]})},OF=/startLine=(\d+)/,LF=/\bnoLineNumbers\b/,DF=C.lazy(()=>a_(()=>Promise.resolve().then(()=>Vq),void 0).then(e=>({default:e.Mermaid}))),IF=/language-([^\s]+)/,MF="node";function vt(e,t){let n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;let i=e,s=t;for(let l of n)if(l!==MF&&!Object.is(i[l],s[l]))return!1;return!0}function PF(e,t){var n,i;return((n=e?.properties)==null?void 0:n.metastring)===((i=t?.properties)==null?void 0:i.metastring)}var zf=(e,t)=>typeof e=="boolean"?e:e[t]!==!1,kp=(e,t)=>{if(typeof e=="boolean")return e;let n=e.table;return n===!1?!1:n===!0||n===void 0?!0:n[t]!==!1},z2=(e,t)=>{if(typeof e=="boolean")return e;let n=e.code;return n===!1?!1:n===!0||n===void 0?!0:n[t]!==!1},tf=(e,t)=>{if(typeof e=="boolean")return e;let n=e.mermaid;return n===!1?!1:n===!0||n===void 0?!0:n[t]!==!1},BF=(e,t)=>{if(typeof e=="boolean")return e;let n=e.image;return n===!1?!1:n===!0||n===void 0?!0:n[t]!==!1},Yg=C.memo(({children:e,className:t,node:n,...i})=>{let s=qe();return T.jsx("ol",{className:s("list-inside list-decimal whitespace-normal [li_&]:pl-6",t),"data-streamdown":"ordered-list",...i,children:e})},(e,t)=>vt(e,t));Yg.displayName="MarkdownOl";var nA=C.memo(({children:e,className:t,node:n,...i})=>{let s=qe();return T.jsx("li",{className:s("py-1 [&>p]:inline",t),"data-streamdown":"list-item",...i,children:e})},(e,t)=>vt(e,t));nA.displayName="MarkdownLi";var rA=C.memo(({children:e,className:t,node:n,...i})=>{let s=qe();return T.jsx("ul",{className:s("list-inside list-disc whitespace-normal [li_&]:pl-6",t),"data-streamdown":"unordered-list",...i,children:e})},(e,t)=>vt(e,t));rA.displayName="MarkdownUl";var iA=C.memo(({className:e,node:t,...n})=>{let i=qe();return T.jsx("hr",{className:i("my-6 border-border",e),"data-streamdown":"horizontal-rule",...n})},(e,t)=>vt(e,t));iA.displayName="MarkdownHr";var aA=C.memo(({children:e,className:t,node:n,...i})=>{let s=qe();return T.jsx("span",{className:s("font-semibold",t),"data-streamdown":"strong",...i,children:e})},(e,t)=>vt(e,t));aA.displayName="MarkdownStrong";var jF=({children:e,className:t,href:n,node:i,...s})=>{let l=qe(),{linkSafety:o}=C.useContext(rn),[c,d]=C.useState(!1),h=n==="streamdown:incomplete-link",m=C.useCallback(async v=>{if(!(!(o!=null&&o.enabled&&n)||h)){if(v.preventDefault(),o.onLinkCheck&&await o.onLinkCheck(n)){window.open(n,"_blank","noreferrer");return}d(!0)}},[o,n,h]),p=C.useCallback(()=>{n&&window.open(n,"_blank","noreferrer")},[n]),E=C.useCallback(()=>{d(!1)},[]),y={url:n??"",isOpen:c,onClose:E,onConfirm:p};return o!=null&&o.enabled&&n?T.jsxs(T.Fragment,{children:[T.jsx("button",{className:l("wrap-anywhere appearance-none text-left font-medium text-primary underline",t),"data-incomplete":h,"data-streamdown":"link",onClick:m,type:"button",children:e}),o.renderModal?o.renderModal(y):T.jsx(SF,{...y})]}):T.jsx("a",{className:l("wrap-anywhere font-medium text-primary underline",t),"data-incomplete":h,"data-streamdown":"link",href:n,rel:"noreferrer",target:"_blank",...s,children:e})},sA=C.memo(jF,(e,t)=>vt(e,t));sA.displayName="MarkdownA";var lA=C.memo(({children:e,className:t,node:n,...i})=>{let s=qe();return T.jsx("h1",{className:s("mt-6 mb-2 font-semibold text-3xl",t),"data-streamdown":"heading-1",...i,children:e})},(e,t)=>vt(e,t));lA.displayName="MarkdownH1";var uA=C.memo(({children:e,className:t,node:n,...i})=>{let s=qe();return T.jsx("h2",{className:s("mt-6 mb-2 font-semibold text-2xl",t),"data-streamdown":"heading-2",...i,children:e})},(e,t)=>vt(e,t));uA.displayName="MarkdownH2";var oA=C.memo(({children:e,className:t,node:n,...i})=>{let s=qe();return T.jsx("h3",{className:s("mt-6 mb-2 font-semibold text-xl",t),"data-streamdown":"heading-3",...i,children:e})},(e,t)=>vt(e,t));oA.displayName="MarkdownH3";var cA=C.memo(({children:e,className:t,node:n,...i})=>{let s=qe();return T.jsx("h4",{className:s("mt-6 mb-2 font-semibold text-lg",t),"data-streamdown":"heading-4",...i,children:e})},(e,t)=>vt(e,t));cA.displayName="MarkdownH4";var fA=C.memo(({children:e,className:t,node:n,...i})=>{let s=qe();return T.jsx("h5",{className:s("mt-6 mb-2 font-semibold text-base",t),"data-streamdown":"heading-5",...i,children:e})},(e,t)=>vt(e,t));fA.displayName="MarkdownH5";var dA=C.memo(({children:e,className:t,node:n,...i})=>{let s=qe();return T.jsx("h6",{className:s("mt-6 mb-2 font-semibold text-sm",t),"data-streamdown":"heading-6",...i,children:e})},(e,t)=>vt(e,t));dA.displayName="MarkdownH6";var hA=C.memo(({children:e,className:t,node:n,...i})=>{let{controls:s,tableMaxHeight:l}=C.useContext(rn),o=zf(s,"table"),c=kp(s,"copy"),d=kp(s,"download"),h=kp(s,"fullscreen");return T.jsx(RF,{className:t,maxHeight:l,showControls:o,showCopy:c,showDownload:d,showFullscreen:h,...i,children:e})},(e,t)=>vt(e,t));hA.displayName="MarkdownTable";var mA=C.memo(({children:e,className:t,node:n,...i})=>{let s=qe();return T.jsx("thead",{className:s("bg-muted/80",t),"data-streamdown":"table-header",...i,children:e})},(e,t)=>vt(e,t));mA.displayName="MarkdownThead";var pA=C.memo(({children:e,className:t,node:n,...i})=>{let s=qe();return T.jsx("tbody",{className:s("divide-y divide-border",t),"data-streamdown":"table-body",...i,children:e})},(e,t)=>vt(e,t));pA.displayName="MarkdownTbody";var gA=C.memo(({children:e,className:t,node:n,...i})=>{let s=qe();return T.jsx("tr",{className:s("border-border",t),"data-streamdown":"table-row",...i,children:e})},(e,t)=>vt(e,t));gA.displayName="MarkdownTr";var bA=C.memo(({children:e,className:t,node:n,...i})=>{let s=qe();return T.jsx("th",{className:s("whitespace-nowrap px-4 py-2 text-left font-semibold text-sm",t),"data-streamdown":"table-header-cell",...i,children:e})},(e,t)=>vt(e,t));bA.displayName="MarkdownTh";var yA=C.memo(({children:e,className:t,node:n,...i})=>{let s=qe();return T.jsx("td",{className:s("px-4 py-2 text-sm",t),"data-streamdown":"table-cell",...i,children:e})},(e,t)=>vt(e,t));yA.displayName="MarkdownTd";var EA=C.memo(({children:e,className:t,node:n,...i})=>{let s=qe();return T.jsx("blockquote",{className:s("my-4 border-muted-foreground/30 border-l-4 pl-4 text-muted-foreground italic",t),"data-streamdown":"blockquote",...i,children:e})},(e,t)=>vt(e,t));EA.displayName="MarkdownBlockquote";var xA=C.memo(({children:e,className:t,node:n,...i})=>{let s=qe();return T.jsx("sup",{className:s("text-sm",t),"data-streamdown":"superscript",...i,children:e})},(e,t)=>vt(e,t));xA.displayName="MarkdownSup";var TA=C.memo(({children:e,className:t,node:n,...i})=>{let s=qe();return T.jsx("sub",{className:s("text-sm",t),"data-streamdown":"subscript",...i,children:e})},(e,t)=>vt(e,t));TA.displayName="MarkdownSub";var vA=C.memo(({children:e,className:t,node:n,...i})=>{if("data-footnotes"in i){let s=o=>{var c,d;if(!C.isValidElement(o))return!1;let h=Array.isArray(o.props.children)?o.props.children:[o.props.children],m=!1,p=!1;for(let E of h)if(E){if(typeof E=="string")E.trim()!==""&&(m=!0);else if(C.isValidElement(E))if(((c=E.props)==null?void 0:c["data-footnote-backref"])!==void 0)p=!0;else{let y=Array.isArray(E.props.children)?E.props.children:[E.props.children];for(let v of y){if(typeof v=="string"&&v.trim()!==""){m=!0;break}if(C.isValidElement(v)&&((d=v.props)==null?void 0:d["data-footnote-backref"])===void 0){m=!0;break}}}}return p&&!m},l=Array.isArray(e)?e.map(o=>{if(!C.isValidElement(o))return o;if(o.type===Yg){let c=(Array.isArray(o.props.children)?o.props.children:[o.props.children]).filter(d=>!s(d));return c.length===0?null:{...o,props:{...o.props,children:c}}}return o}):e;return(Array.isArray(l)?l.some(o=>o!==null):l!==null)?T.jsx("section",{className:t,...i,children:l}):null}return T.jsx("section",{className:t,...i,children:e})},(e,t)=>vt(e,t));vA.displayName="MarkdownSection";var HF=({node:e,className:t,children:n,...i})=>{var s,l;let o=qe(),c=!("data-block"in i),{mermaid:d,controls:h,lineNumbers:m}=C.useContext(rn),p=Vg(),E=Qz(),y=t?.match(IF),v=(s=y?.at(1))!=null?s:"",S=_F(v);if(c)return T.jsx("code",{className:o("rounded bg-muted px-1.5 py-0.5 font-mono text-sm",t),"data-streamdown":"inline-code",...i,children:n});let A=(l=e?.properties)==null?void 0:l.metastring,k=A?.match(OF),N=k?Number.parseInt(k[1],10):void 0,w=N!==void 0&&N>=1?N:void 0,D=!(A&&LF.test(A))&&m!==!1,z="";if(C.isValidElement(n)&&n.props&&typeof n.props=="object"&&"children"in n.props&&typeof n.props.children=="string"?z=n.props.children:typeof n=="string"&&(z=n),S){let $=S.component;return T.jsx(C.Suspense,{fallback:T.jsx(U2,{}),children:T.jsx($,{code:z,isIncomplete:E,language:v,meta:A})})}if(v==="mermaid"&&p){let $=zf(h,"mermaid"),Z=tf(h,"download"),le=tf(h,"copy"),ue=tf(h,"fullscreen"),re=tf(h,"panZoom"),V=$&&(Z||le||ue);return T.jsx(C.Suspense,{fallback:T.jsx(U2,{}),children:T.jsxs("div",{className:o("group relative my-4 flex w-full flex-col gap-2 rounded-xl border border-border bg-sidebar p-2",t),"data-streamdown":"mermaid-block",children:[T.jsx("div",{className:o("flex h-8 items-center text-muted-foreground text-xs"),children:T.jsx("span",{className:o("ml-1 font-mono lowercase"),children:"mermaid"})}),V?T.jsx("div",{className:o("pointer-events-none sticky top-2 z-10 -mt-10 flex h-8 items-center justify-end"),children:T.jsxs("div",{className:o("pointer-events-auto flex shrink-0 items-center gap-2 rounded-md border border-sidebar bg-sidebar/80 px-1.5 py-1 supports-[backdrop-filter]:bg-sidebar/70 supports-[backdrop-filter]:backdrop-blur"),"data-streamdown":"mermaid-block-actions",children:[Z?T.jsx(XC,{chart:z,config:d?.config}):null,le?T.jsx(_0,{code:z}):null,ue?T.jsx(kF,{chart:z,config:d?.config}):null]})}):null,T.jsx("div",{className:o("rounded-md border border-border bg-background"),children:T.jsx(DF,{chart:z,config:d?.config,showControls:re})})]})})}let L=zf(h,"code"),P=z2(h,"download"),H=z2(h,"copy"),{"data-block":K,...j}=i;return T.jsx(uF,{className:t,code:z,isIncomplete:E,language:v,lineNumbers:D,startLine:w,...j,children:L?T.jsxs(T.Fragment,{children:[P?T.jsx(xF,{code:z,language:v}):null,H?T.jsx(_0,{}):null]}):null})},SA=C.memo(HF,(e,t)=>vt(e,t)&&PF(e.node,t.node));SA.displayName="MarkdownCode";var UF=({node:e,className:t,...n})=>{let{controls:i}=C.useContext(rn),s=zf(i,"image"),l=s&&BF(i,"download");return T.jsx(vF,{className:t,node:e,showControls:s,showDownloadControl:l,...n})},_A=C.memo(UF,(e,t)=>vt(e,t));_A.displayName="MarkdownImg";var CA=C.memo(({children:e,node:t,...n})=>{let i=(Array.isArray(e)?e:[e]).filter(s=>s!=null&&s!=="");if(i.length===1&&C.isValidElement(i[0])){let s=i[0].props.node,l=s?.tagName;if(l==="img")return T.jsx(T.Fragment,{children:e});if(l==="code"&&"data-block"in i[0].props)return T.jsx(T.Fragment,{children:e})}return T.jsx("p",{...n,children:e})},(e,t)=>vt(e,t));CA.displayName="MarkdownParagraph";var zF={ol:Yg,li:nA,ul:rA,hr:iA,strong:aA,a:sA,h1:lA,h2:uA,h3:oA,h4:cA,h5:fA,h6:dA,table:hA,thead:mA,tbody:pA,tr:gA,th:bA,td:yA,blockquote:EA,code:SA,img:_A,pre:({children:e})=>C.isValidElement(e)?C.cloneElement(e,{"data-block":"true"}):e,sup:xA,sub:TA,p:CA,section:vA},FF=/[\u0590-\u08FF\uFB1D-\uFDFF\uFE70-\uFEFF]/,qF=new RegExp("\\p{L}","u");function AA(e){let t=e.replace(/(```|~~~)[\s\S]*?\1/g,"").replace(/^#{1,6}\s+/gm,"").replace(/(\*{1,3}|_{1,3})/g,"").replace(/`[^`]*`/g,"").replace(/\[([^\]]*)\]\([^)]*\)/g,"$1").replace(/^[\s>*\-+\d.]+/gm,""),n,i=0,s=0;for(let l of t){if(FF.test(l)){n!=null||(n="rtl"),s+=1;continue}qF.test(l)&&(n!=null||(n="ltr"),i+=1)}return s>i?"rtl":i>s?"ltr":n??"ltr"}var VF=/^[ \t]{0,3}(`{3,}|~{3,})/,YF=/^\|?[ \t]*:?-{1,}:?[ \t]*(\|[ \t]*:?-{1,}:?[ \t]*)*\|?$/,F2=e=>{let t=e.split(`
|
|
169
|
+
`),n=null,i=0;for(let s of t){let l=VF.exec(s);if(n===null){if(l){let o=l[1];n=o[0],i=o.length}}else if(l){let o=l[1],c=o[0],d=o.length;c===n&&d>=i&&(n=null,i=0)}}return n!==null},$F=e=>{let t=e.split(`
|
|
170
|
+
`);for(let n of t){let i=n.trim();if(i.length>0&&i.includes("|")&&YF.test(i))return!0}return!1},GF=()=>e=>{dr(e,"html",(t,n,i)=>{!i||typeof n!="number"||(i.children[n]={type:"text",value:t.value})})},q2=[],V2={allowDangerousHtml:!0},nf=new WeakMap,KF=class{constructor(){this.cache=new Map,this.keyCache=new WeakMap,this.maxSize=100}generateCacheKey(e){let t=this.keyCache.get(e);if(t)return t;let n=e.rehypePlugins,i=e.remarkPlugins,s=e.remarkRehypeOptions;if(!(n||i||s)){let m="default";return this.keyCache.set(e,m),m}let l=m=>{if(!m||m.length===0)return"";let p="";for(let E=0;E<m.length;E+=1){let y=m[E];if(E>0&&(p+=","),Array.isArray(y)){let[v,S]=y;if(typeof v=="function"){let A=nf.get(v);A||(A=v.name,nf.set(v,A)),p+=A}else p+=String(v);p+=":",p+=JSON.stringify(S)}else if(typeof y=="function"){let v=nf.get(y);v||(v=y.name,nf.set(y,v)),p+=v}else p+=String(y)}return p},o=l(n),c=l(i),d=s?JSON.stringify(s):"",h=`${c}::${o}::${d}`;return this.keyCache.set(e,h),h}get(e){let t=this.generateCacheKey(e),n=this.cache.get(t);return n&&(this.cache.delete(t),this.cache.set(t,n)),n}set(e,t){let n=this.generateCacheKey(e);if(this.cache.size>=this.maxSize){let i=this.cache.keys().next().value;i&&this.cache.delete(i)}this.cache.set(n,t)}clear(){this.cache.clear()}},Y2=new KF,kA=e=>{let t=XF(e),n=e.children||"",i=t.runSync(t.parse(n),n);return nq(i,e)},XF=e=>{let t=Y2.get(e);if(t)return t;let n=WF(e);return Y2.set(e,n),n},QF=e=>e.some(t=>Array.isArray(t)?t[0]===o0:t===o0),WF=e=>{let t=e.rehypePlugins||q2,n=e.remarkPlugins||q2,i=QF(t)?n:[...n,GF],s=e.remarkRehypeOptions?{...V2,...e.remarkRehypeOptions}:V2;return zU().use(UH).use(i).use(vU,s).use(t)},ZF=e=>e,JF=(e,t,n,i)=>{n?e.children.splice(t,1):e.children[t]={type:"text",value:i}},eq=(e,t)=>{var n;for(let i in bp)if(Object.hasOwn(bp,i)&&Object.hasOwn(e.properties,i)){let s=e.properties[i],l=bp[i];(l===null||l.includes(e.tagName))&&(e.properties[i]=(n=t(String(s||""),i,e))!=null?n:void 0)}},tq=(e,t,n,i,s,l)=>{let o=!1;return i?o=!i.includes(e.tagName):s&&(o=s.includes(e.tagName)),!o&&l&&typeof t=="number"&&(o=!l(e,t,n)),o},nq=(e,t)=>{let{allowElement:n,allowedElements:i,disallowedElements:s,skipHtml:l,unwrapDisallowed:o,urlTransform:c}=t;if(n||i||s||l||c){let d=c||ZF;dr(e,(h,m,p)=>{if(h.type==="raw"&&p&&typeof m=="number")return JF(p,m,l,h.value),m;if(h.type==="element"&&(eq(h,d),tq(h,m,p,i,s,n)&&p&&typeof m=="number"))return o&&h.children?p.children.splice(m,1,...h.children):p.children.splice(m,1),m})}return Kj(e,{Fragment:T.Fragment,components:t.components,ignoreInvalidStyle:!0,jsx:T.jsx,jsxs:T.jsxs,passKeys:!0,passNode:!0})},rq=/\[\^[\w-]{1,200}\](?!:)/,iq=/\[\^[\w-]{1,200}\]:/,aq=/<([A-Za-z][\w:-]*)[\s>/]/,sq=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]),$2=new Map,G2=new Map,lq=e=>{let t=e.toLowerCase(),n=$2.get(t);if(n)return n;let i=new RegExp(`<${t}(?=[\\s>/])[^>]*>`,"gi");return $2.set(t,i),i},uq=e=>{let t=e.toLowerCase(),n=G2.get(t);if(n)return n;let i=new RegExp(`</${t}(?=[\\s>])[^>]*>`,"gi");return G2.set(t,i),i},K2=(e,t)=>{if(sq.has(t.toLowerCase()))return 0;let n=e.match(lq(t));if(!n)return 0;let i=0;for(let s of n)s.trimEnd().endsWith("/>")||(i+=1);return i},X2=(e,t)=>{let n=e.match(uq(t));return n?n.length:0},oq=e=>{let t=0;for(let n=0;n<e.length-1;n+=1)e[n]==="$"&&e[n+1]==="$"&&(t+=1,n+=1);return t},cq=e=>{let t=rq.test(e),n=iq.test(e);if(t||n)return[e];let i=rr.lex(e,{gfm:!0}),s=[],l=[],o=!1;for(let c of i){let d=c.raw,h=s.length;if(l.length>0){s[h-1]+=d;let m=l.at(-1),p=K2(d,m),E=X2(d,m);for(let y=0;y<p;y+=1)l.push(m);for(let y=0;y<E;y+=1)l.length>0&&l.at(-1)===m&&l.pop();continue}if(c.type==="html"&&c.block){let m=d.match(aq);if(m){let p=m[1],E=K2(d,p),y=X2(d,p);E>y&&l.push(p)}}if(h>0&&!o){let m=s[h-1];if(oq(m)%2===1){s[h-1]=m+d;continue}}s.push(d),c.type!=="space"&&(o=c.type==="code")}return s},fq=/^\n*/,dq=/\n*$/,k0=/\n\n/g,hq=(e,t,n)=>{if(!t.includes(`
|
|
171
|
+
`))return e+t+n;let i=t.replace(k0,`
|
|
172
|
+
<!---->
|
|
173
|
+
`).replace(fq,`
|
|
174
|
+
|
|
175
|
+
`).replace(dq,`
|
|
176
|
+
|
|
177
|
+
`);return`${e}${i}${n}
|
|
178
|
+
|
|
179
|
+
`},mq=(e,t)=>{let n=new RegExp(`<(${t})(?=[\\s>/])([^>]*)>`,"gi"),i="",s=0,l=n.exec(e);for(;l;){let o=l[0],c=l[1],d=l.index+o.length,h=e.slice(d);if(new RegExp(`</${c}\\s*>`,"i").test(h)){l=n.exec(e);continue}if(i+=e.slice(s,l.index),h.length===0){i+=o,s=d,l=n.exec(e);continue}if(h.startsWith(`
|
|
180
|
+
|
|
181
|
+
`)){let E=h.slice(2).replace(k0,`
|
|
182
|
+
<!---->
|
|
183
|
+
`);i+=`${o}
|
|
184
|
+
|
|
185
|
+
${E}`,s=e.length;break}if(!h.startsWith(`
|
|
186
|
+
`)){i+=o,s=d,l=n.exec(e);continue}let m=h.slice(1);if(m.trim().length===0){i+=o,s=d,l=n.exec(e);continue}let p=m.replace(k0,`
|
|
187
|
+
<!---->
|
|
188
|
+
`);i+=`${o}
|
|
189
|
+
|
|
190
|
+
${p}`,s=e.length;break}return s===0?e:i+e.slice(s)},pq=(e,t)=>{if(!t.length)return e;let n=e;for(let i of t){let s=new RegExp(`(<${i}(?=[\\s>/])[^>]*>)([\\s\\S]*?)(</${i}\\s*>)`,"gi");n=n.replace(s,(l,o,c,d)=>hq(o,c,d)),n=mq(n,i)}return n},gq=/([\\`*_~[\]|])/g,bq=e=>e.replace(gq,"\\$1"),yq=(e,t)=>{if(!t.length)return e;let n=e;for(let i of t){let s=new RegExp(`(<${i}(?=[\\s>/])[^>]*>)([\\s\\S]*?)(</${i}\\s*>)`,"gi");n=n.replace(s,(l,o,c,d)=>{let h=bq(c).replace(/\n\n/g," ");return o+h+d})}return n},Eq=new Set(["blockquote","dd","dt","figcaption","h1","h2","h3","h4","h5","h6","li","p","td","th"]),wA=new Set(["code","kbd","pre","samp","var"]);function NA(e){return e.children.map(t=>t.type==="text"?t.value:t.type==="element"&&!wA.has(t.tagName)?NA(t):"").join("")}function xq(){return e=>{dr(e,"element",t=>{if(wA.has(t.tagName)){t.properties!=null||(t.properties={}),t.properties.dir="ltr";return}Eq.has(t.tagName)&&(t.properties!=null||(t.properties={}),typeof t.properties.dir!="string"&&(t.properties.dir=AA(NA(t))))})}}var RA=e=>e.type==="text"?e.value:"children"in e&&Array.isArray(e.children)?e.children.map(RA).join(""):"",Tq=e=>t=>{if(!e||e.length===0)return;let n=new Set(e.map(i=>i.toLowerCase()));dr(t,"element",i=>{if(n.has(i.tagName.toLowerCase())){let s=RA(i);i.children=s?[{type:"text",value:s}]:[]}})},vq=()=>e=>{dr(e,"code",t=>{var n,i;t.meta&&(t.data=(n=t.data)!=null?n:{},t.data.hProperties={...(i=t.data.hProperties)!=null?i:{},metastring:t.meta})})},Sq=/^[ \t]*<[\w!/?-]/,_q=/(^|\n)[ \t]{4,}(?=<[\w!/?-])/g,Cq=e=>typeof e!="string"||e.length===0||!Sq.test(e)?e:e.replace(_q,"$1"),Q2,W2,Z2,J2,bf={...Da,clobberPrefix:"",protocols:{...Da.protocols,href:[...(W2=(Q2=Da.protocols)==null?void 0:Q2.href)!=null?W2:[],"tel","streamdown"]},attributes:{...Da.attributes,code:[...(J2=(Z2=Da.attributes)==null?void 0:Z2.code)!=null?J2:[],"metastring"]}},w0={raw:o0,sanitize:[u3,bf],harden:[aL,{allowedImagePrefixes:["*"],allowedLinkPrefixes:["*"],allowedProtocols:["*"],defaultOrigin:void 0,allowDataImages:!0}]},Aq={gfm:[C7,{}],codeMeta:vq},ev=Object.values(w0),kq=Object.values(Aq),wq={block:" ▋",circle:" ●"},OA=["github-light","github-dark"],LA={enabled:!0},Nq={codeBlockMaxHeight:400,shikiTheme:OA,controls:!0,isAnimating:!1,lineNumbers:!0,mode:"streaming",mermaid:void 0,linkSafety:LA,tableMaxHeight:300},rn=C.createContext(Nq),DA=C.memo(({content:e,shouldParseIncompleteMarkdown:t,shouldNormalizeHtmlIndentation:n,index:i,isIncomplete:s,dir:l,animatePlugin:o,...c})=>{C.useLayoutEffect(()=>{o?.commit()});let d=typeof e=="string"&&n?Cq(e):e,h=T.jsx(kA,{...c,children:d});return T.jsx(FC.Provider,{value:s,children:l?T.jsx("div",{dir:l,style:{display:"contents"},children:h}):h})},(e,t)=>{if(e.content!==t.content||e.shouldNormalizeHtmlIndentation!==t.shouldNormalizeHtmlIndentation||e.index!==t.index||e.isIncomplete!==t.isIncomplete||e.dir!==t.dir)return!1;if(e.components!==t.components){let n=Object.keys(e.components||{}),i=Object.keys(t.components||{});if(n.length!==i.length||n.some(s=>{var l,o;return((l=e.components)==null?void 0:l[s])!==((o=t.components)==null?void 0:o[s])}))return!1}return!(e.rehypePlugins!==t.rehypePlugins||e.remarkPlugins!==t.remarkPlugins||!!e.animatePlugin!=!!t.animatePlugin)});DA.displayName="Block";var Rq=C.memo(({children:e,mode:t="streaming",dir:n,parseIncompleteMarkdown:i=!0,normalizeHtmlIndentation:s=!1,components:l,rehypePlugins:o=ev,remarkPlugins:c=kq,className:d,shikiTheme:h,mermaid:m,codeBlockMaxHeight:p=400,controls:E=!0,isAnimating:y=!1,tableMaxHeight:v=300,animated:S,BlockComponent:A=DA,parseMarkdownIntoBlocksFn:k=cq,caret:N,plugins:w,remend:D,linkSafety:z=LA,lineNumbers:L=!0,allowedTags:P,literalTagContent:H,translations:K,icons:j,prefix:$,onAnimationStart:Z,onAnimationEnd:le,...ue})=>{let re=C.useId(),V=C.useMemo(()=>Zz($),[$]),Q=C.useRef(null),ae=C.useRef(Z),Ee=C.useRef(le);ae.current=Z,Ee.current=le,C.useEffect(()=>{var ke,Ue,At;if(t==="static")return;let Je=Q.current;if(Q.current=y,Je===null){y&&((ke=ae.current)==null||ke.call(ae));return}y&&!Je?(Ue=ae.current)==null||Ue.call(ae):!y&&Je&&((At=Ee.current)==null||At.call(Ee))},[y,t]);let R=C.useMemo(()=>P?Object.keys(P):[],[P]),U=C.useMemo(()=>{if(typeof e!="string")return"";let ke=t==="streaming"&&i?FB(e,D):e;return H&&H.length>0&&(ke=yq(ke,H)),R.length>0&&(ke=pq(ke,R)),ke},[e,t,i,D,R,H]),X=C.useMemo(()=>k(U),[U,k]),I=C.useMemo(()=>n==="auto"?X.map(AA):void 0,[X,n]),ge=C.useMemo(()=>X.map((ke,Ue)=>`${re}-${Ue}`),[X.length,re]),ye=C.useMemo(()=>S===!0?"true":S?JSON.stringify(S):"",[S]),he=C.useRef(null),Ae=C.useRef([]),Te=C.useRef([]),xe=C.useRef(null),je=C.useRef("");if(ye){if(je.current!==ye){je.current=ye;let ke=ye!=="true"?S.maxBacklogMs:void 0;he.current=P2({maxBacklogMs:ke}),Ae.current=[],Te.current=[]}else he.current||(he.current=P2());y&&he.current&&he.current.beginPass(he.current.now())}else he.current=null,Ae.current=[],Te.current=[],je.current="";C.useLayoutEffect(()=>{var ke;y&&((ke=he.current)==null||ke.commitPass())});let Ne=C.useMemo(()=>{var ke,Ue;return{codeBlockMaxHeight:p,shikiTheme:(Ue=h??((ke=w?.code)==null?void 0:ke.getThemes()))!=null?Ue:OA,controls:E,isAnimating:y,lineNumbers:L,mode:t,mermaid:m,linkSafety:z,tableMaxHeight:v}},[p,h,E,y,L,t,m,z,w?.code,v]),Me=C.useMemo(()=>K?JSON.stringify(K):"",[K]),Ve=C.useMemo(()=>({...KC,...K}),[Me]),rt=C.useMemo(()=>{let{inlineCode:ke,...Ue}=l??{},At={...zF,...Ue};if(ke){let Je=At.code;At.code=Qe=>"data-block"in Qe?Je?C.createElement(Je,Qe):null:C.createElement(ke,Qe)}return At},[l]),ut=C.useMemo(()=>{let ke=[];return w!=null&&w.cjk&&(ke=[...ke,...w.cjk.remarkPluginsBefore]),ke=[...ke,...c],w!=null&&w.cjk&&(ke=[...ke,...w.cjk.remarkPluginsAfter]),w!=null&&w.math&&(ke=[...ke,w.math.remarkPlugin]),ke},[c,w?.math,w?.cjk]),Et=C.useMemo(()=>{var ke;let Ue=o;if(P&&Object.keys(P).length>0&&o===ev){let At={...bf,tagNames:[...(ke=bf.tagNames)!=null?ke:[],...Object.keys(P)],attributes:{...bf.attributes,...P}};Ue=[w0.raw,[u3,At],w0.harden]}return H&&H.length>0&&(Ue=[...Ue,[Tq,H]]),w!=null&&w.math&&(Ue=[...Ue,w.math.rehypePlugin]),n==="auto"&&t==="static"&&(Ue=[...Ue,xq]),Ue},[o,w?.math,P,H,n,t]),Vt=C.useMemo(()=>{if(!y||X.length===0)return!1;let ke=X.at(-1);return F2(ke)||$F(ke)},[y,X]),Ut=C.useMemo(()=>N&&y&&!Vt?{"--streamdown-caret":`"${wq[N]}"`}:void 0,[N,y,Vt]),En=ke=>{let Ue=null;if(he.current&&y){if(!Ae.current[ke]){let Je=ye&&ye!=="true"?S:{},{maxBacklogMs:Qe,...cn}=Je;Ae.current[ke]=zC({...cn,timeline:he.current})}Ue=Ae.current[ke]}xe.current!==Et&&(Te.current=[],xe.current=Et),Ue&&!Te.current[ke]&&(Te.current[ke]=[...Et,Ue.rehypePlugin]);let At=Ue&&Te.current[ke]?Te.current[ke]:Et;return{blockAnimatePlugin:Ue,blockRehypePlugins:At}};return t==="static"?T.jsx(S0.Provider,{value:Ve,children:T.jsx(C0.Provider,{value:w??null,children:T.jsx(rn.Provider,{value:Ne,children:T.jsx(j2,{icons:j,children:T.jsx(v0.Provider,{value:V,children:T.jsx("div",{className:V("space-y-4 whitespace-normal [&>*:first-child]:mt-0 [&>*:last-child]:mb-0",d),dir:n==="auto"?void 0:n,children:T.jsx(kA,{components:rt,rehypePlugins:Et,remarkPlugins:ut,...ue,children:U})})})})})})}):T.jsx(S0.Provider,{value:Ve,children:T.jsx(C0.Provider,{value:w??null,children:T.jsx(rn.Provider,{value:Ne,children:T.jsx(j2,{icons:j,children:T.jsx(v0.Provider,{value:V,children:T.jsxs("div",{className:V("space-y-4 whitespace-normal [&>*:first-child]:mt-0 [&>*:last-child]:mb-0",N&&!Vt?"[&>*:last-child]:after:inline [&>*:last-child]:after:align-baseline [&>*:last-child]:after:content-[var(--streamdown-caret)]":null,d),style:Ut,children:[X.length===0&&N&&y&&T.jsx("span",{}),X.map((ke,Ue)=>{var At;let Je=Ue===X.length-1,Qe=y&&Je&&F2(ke),{blockAnimatePlugin:cn,blockRehypePlugins:Y}=En(Ue);return T.jsx(A,{animatePlugin:cn,components:rt,content:ke,dir:(At=I?.[Ue])!=null?At:n!=="auto"?n:void 0,index:Ue,isIncomplete:Qe,rehypePlugins:Y,remarkPlugins:ut,shouldNormalizeHtmlIndentation:s,shouldParseIncompleteMarkdown:i,...ue},ge[Ue])})]})})})})})})},(e,t)=>e.children===t.children&&e.shikiTheme===t.shikiTheme&&e.isAnimating===t.isAnimating&&e.animated===t.animated&&e.mode===t.mode&&e.plugins===t.plugins&&e.className===t.className&&e.linkSafety===t.linkSafety&&e.lineNumbers===t.lineNumbers&&e.codeBlockMaxHeight===t.codeBlockMaxHeight&&e.tableMaxHeight===t.tableMaxHeight&&e.normalizeHtmlIndentation===t.normalizeHtmlIndentation&&e.literalTagContent===t.literalTagContent&&JSON.stringify(e.translations)===JSON.stringify(t.translations)&&e.prefix===t.prefix&&e.dir===t.dir);Rq.displayName="Streamdown";var Oq=({children:e,className:t,minZoom:n=.5,maxZoom:i=3,zoomStep:s=.1,showControls:l=!0,initialZoom:o=1,fullscreen:c=!1})=>{let{RotateCcwIcon:d,ZoomInIcon:h,ZoomOutIcon:m}=gr(),p=qe(),E=Ir(),y=C.useRef(null),v=C.useRef(null),[S,A]=C.useState(o),[k,N]=C.useState({x:0,y:0}),[w,D]=C.useState(!1),[z,L]=C.useState({x:0,y:0}),[P,H]=C.useState({x:0,y:0}),K=C.useCallback(Q=>{A(ae=>Math.max(n,Math.min(i,ae+Q)))},[n,i]),j=C.useCallback(()=>{K(s)},[K,s]),$=C.useCallback(()=>{K(-s)},[K,s]),Z=C.useCallback(()=>{A(o),N({x:0,y:0})},[o]),le=C.useCallback(Q=>{Q.preventDefault();let ae=Q.deltaY>0?-s:s;K(ae)},[K,s]),ue=C.useCallback(Q=>{if(Q.button!==0||Q.isPrimary===!1)return;D(!0),L({x:Q.clientX,y:Q.clientY}),H(k);let ae=Q.currentTarget;ae instanceof HTMLElement&&ae.setPointerCapture(Q.pointerId)},[k]),re=C.useCallback(Q=>{if(!w)return;Q.preventDefault();let ae=Q.clientX-z.x,Ee=Q.clientY-z.y;N({x:P.x+ae,y:P.y+Ee})},[w,z,P]),V=C.useCallback(Q=>{D(!1);let ae=Q.currentTarget;ae instanceof HTMLElement&&ae.releasePointerCapture(Q.pointerId)},[]);return C.useEffect(()=>{let Q=y.current;if(Q)return Q.addEventListener("wheel",le,{passive:!1}),()=>{Q.removeEventListener("wheel",le)}},[le]),C.useEffect(()=>{let Q=v.current;if(Q&&w)return document.body.style.userSelect="none",Q.addEventListener("pointermove",re,{passive:!1}),Q.addEventListener("pointerup",V),Q.addEventListener("pointercancel",V),()=>{document.body.style.userSelect="",Q.removeEventListener("pointermove",re),Q.removeEventListener("pointerup",V),Q.removeEventListener("pointercancel",V)}},[w,re,V]),T.jsxs("div",{className:p("relative flex flex-col",c?"h-full w-full":"min-h-28 w-full",t),ref:y,style:{cursor:w?"grabbing":"grab"},children:[l?T.jsxs("div",{className:p("absolute z-10 flex flex-col gap-1 rounded-md border border-border bg-background/80 p-1 supports-[backdrop-filter]:bg-background/70 supports-[backdrop-filter]:backdrop-blur-sm",c?"bottom-4 left-4":"bottom-2 left-2"),children:[T.jsx("button",{"aria-label":E.zoomIn,className:p("flex items-center justify-center rounded p-1.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50"),disabled:S>=i,onClick:j,title:E.zoomIn,type:"button",children:T.jsx(h,{"aria-hidden":"true",size:16})}),T.jsx("button",{"aria-label":E.zoomOut,className:p("flex items-center justify-center rounded p-1.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50"),disabled:S<=n,onClick:$,title:E.zoomOut,type:"button",children:T.jsx(m,{"aria-hidden":"true",size:16})}),T.jsx("button",{"aria-label":E.resetView,className:p("flex items-center justify-center rounded p-1.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground"),onClick:Z,title:E.resetView,type:"button",children:T.jsx(d,{"aria-hidden":"true",size:16})})]}):null,T.jsx("div",{className:p("flex-1 origin-center transition-transform duration-150 ease-out",c?"flex h-full w-full items-center justify-center":"flex w-full items-center justify-center"),onPointerDown:ue,ref:v,role:"application",style:{transform:`translate(${k.x}px, ${k.y}px) scale(${S})`,transformOrigin:"center center",touchAction:"none",willChange:"transform"},children:e})]})},IA=({chart:e,className:t,config:n,fullscreen:i=!1,showControls:s=!0})=>{let l=qe(),[o,c]=C.useState(null),[d,h]=C.useState(!1),[m,p]=C.useState(""),[E,y]=C.useState(""),[v,S]=C.useState(0),{mermaid:A}=C.useContext(rn),k=Vg(),N=A?.errorComponent,{shouldRender:w,containerRef:D}=Mz({immediate:i});if(C.useEffect(()=>{if(w){if(!k){c("Mermaid plugin not available. Please add the mermaid plugin to enable diagram rendering.");return}(async()=>{try{c(null),h(!0);let L=k.getMermaid(n),P=e.split("").reduce((j,$)=>(j<<5)-j+$.charCodeAt(0)|0,0),H=`mermaid-${Math.abs(P)}-${Date.now()}-${Math.random().toString(36).substring(2,9)}`,{svg:K}=await L.render(H,e);p(K),y(K)}catch(L){if(!(E||m)){let P=L instanceof Error?L.message:"Failed to render Mermaid chart";c(P)}}finally{h(!1)}})()}},[e,n,v,w,k]),!(w||m||E))return T.jsx("div",{className:l("my-4 min-h-[200px]",t),ref:D});if(d&&!m&&!E)return T.jsx("div",{className:l("my-4 flex justify-center p-4",t),ref:D,children:T.jsxs("div",{className:l("flex items-center space-x-2 text-muted-foreground"),children:[T.jsx("div",{className:l("h-4 w-4 animate-spin rounded-full border-current border-b-2")}),T.jsx("span",{className:l("text-sm"),children:"Loading diagram..."})]})});if(o&&!m&&!E){let L=()=>S(P=>P+1);return N?T.jsx("div",{ref:D,children:T.jsx(N,{chart:e,error:o,retry:L})}):T.jsxs("div",{className:l("rounded-md bg-red-50 p-4",t),ref:D,children:[T.jsxs("p",{className:l("font-mono text-red-700 text-sm"),children:["Mermaid Error: ",o]}),T.jsxs("details",{className:l("mt-2"),children:[T.jsx("summary",{className:l("cursor-pointer text-red-600 text-xs"),children:"Show Code"}),T.jsx("pre",{className:l("mt-2 overflow-x-auto rounded bg-red-100 p-2 text-red-800 text-xs"),children:e})]})]})}let z=m||E;return T.jsx("div",{className:l("size-full",t),"data-streamdown":"mermaid",ref:D,children:T.jsx(Oq,{className:l(i?"size-full overflow-hidden":"overflow-hidden",t),fullscreen:i,maxZoom:3,minZoom:.5,showControls:s,zoomStep:.1,children:T.jsx("div",{"aria-label":"Mermaid chart",className:l("flex justify-center",i?"size-full items-center":null),dangerouslySetInnerHTML:{__html:z},role:"img"})})})};const MA=["all","fact","preference","episode","procedure","message"],po={all:"全部",fact:"事实",preference:"偏好",episode:"事件",procedure:"方法",message:"对话"},Lq={all:{title:"全部记忆",description:"一个安静、可检索的空间,保存 Agent 需要记住的事实、偏好和经验。"},timeline:{title:"时间线",description:"按发生和写入时间回看你的记忆。"},archive:{title:"归档",description:"被归档的记忆会集中显示在这里。"},preferences:{title:"偏好与习惯",description:"集中查看 Agent 需要遵循的个人偏好和习惯。"},projects:{title:"Scope 分类",description:"按 scope 分类查看记忆,项目目录名只是其中一种常用值。"},tags:{title:"标签",description:"标签视图将在记忆拥有标签后显示内容。"},settings:{title:"设置",description:"本地存储和界面设置。"},mcp:{title:"MCP 服务",description:"把 Memory One 连接到你的 Agent,查看端点配置和可用工具。"}},PA={all:"/",timeline:"/timeline",archive:"/archive",preferences:"/preferences",projects:"/scopes",tags:"/tags",settings:"/settings",mcp:"/mcp-service"},Dq=Object.fromEntries(Object.entries(PA).map(([e,t])=>[t,e]));function qi(){return null}const ti=U6({component:Pq}),Iq=ti.addChildren([Ui({getParentRoute:()=>ti,path:"/",component:qi}),Ui({getParentRoute:()=>ti,path:"/timeline",component:qi}),Ui({getParentRoute:()=>ti,path:"/archive",component:qi}),Ui({getParentRoute:()=>ti,path:"/preferences",component:qi}),Ui({getParentRoute:()=>ti,path:"/scopes",component:qi}),Ui({getParentRoute:()=>ti,path:"/tags",component:qi}),Ui({getParentRoute:()=>ti,path:"/settings",component:qi}),Ui({getParentRoute:()=>ti,path:"/mcp-service",component:qi})]),Mq=X6({routeTree:Iq}),go={zh:{brandSubtitle:"个人记忆库",workspace:"工作区",collections:"集合",connect:"连接",navAll:"全部记忆",navTimeline:"时间线",navArchive:"归档",navPreferences:"偏好与习惯",navScopes:"Scope 分类",navTags:"标签",navMcp:"MCP 服务",navSettings:"设置",localStorage:"本地存储",memories:"MEMORIES",scopes:"SCOPES",scopesNote:"分类数量",lastSync:"LAST SYNC",justNow:"刚刚",localDatabase:"本地数据库",localOnly:"完全本地",localOnlyDesc:"你的记忆只留在这台设备",newMemory:"新建记忆",search:"搜索记忆...",allScopes:"所有 Scope",reading:"读取中...",countSuffix:"条记忆",sortRecent:"按最近更新排序",sortTimeline:"按发生时间排序",sortGrouped:"按 Scope 分组",globalMemory:"全局记忆",emptyMatch:"这里还没有匹配的记忆",emptyHelp:"试试换一个关键词,或创建一条新的记忆。",loadFailed:"记忆读取失败",retry:"重试",noArchive:"暂无归档记忆",noTags:"暂无标签",settingsManaged:"设置已由本地配置管理",detailEyebrow:"记忆详情",close:"关闭",detailEmpty:"选择一条记忆",detailEmptyDesc:"查看完整内容、来源和元数据",confidence:"置信度",created:"创建时间",updated:"最后更新",source:"来源",agentWritten:"Agent 写入",scope:"Scope",signals:"信号",importance:"重要性",recallCount:"召回次数",times:"次",original:"查看原始记录",switchLanguage:"Switch to English",newMemoryEyebrow:"新建记忆",composerTitle:"保存一条记忆",content:"记忆内容",contentPlaceholder:"例如:用户偏好使用简洁的工具界面。",type:"类型",scopeOptional:"可选,例如:/path/to/project",sourcePlaceholder:"例如:Claude Code / 手动添加",writeLocal:"写入本地 SQLite",cancel:"取消",save:"保存记忆",languageCode:"EN",mcpKicker:"Agent 集成",mcpTitle:"连接你的 Agent",mcpDescription:"Memory One 通过 Streamable HTTP 提供记忆工具。创建一个按工具授权的 Key 后,把带 Authorization Header 的配置加入 MCP 客户端。",mcpOnline:"HTTP 在线",mcpEndpoint:"服务地址",mcpCopyEndpoint:"复制服务地址",transport:"传输方式",auth:"认证",noAuth:"必须使用 Bearer Key",category:"记忆分类",categoryValue:"全局 / 可选 scope",toolsLabel:"可用工具",toolsTitle:"Agent 可以使用的工具",toolsCount:"个工具",http:"HTTP",localMemory:"本地记忆 / 01",serverEndpoint:"服务端点"}},Ju=(e,t)=>e?new Intl.DateTimeFormat(t==="zh"?"zh-CN":"en-US",{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"}).format(new Date(e)):t==="zh"?"未标记时间":"No date";function Pq(){const e=J6({select:R=>R.location.pathname}),t=H0(),n=Dq[e]??"all",[i,s]=C.useState([]),[l,o]=C.useState(null),[c,d]=C.useState(""),[h,m]=C.useState("all"),[p,E]=C.useState("all"),y="zh",[v,S]=C.useState(()=>localStorage.getItem("memory-one-theme")==="dark"),[A,k]=C.useState(!1),[N,w]=C.useState(!1),[D,z]=C.useState(!0),[L,P]=C.useState(!1),[H,K]=C.useState(null),j=async(R=c)=>{z(!0),P(!1);try{const U=R.trim()?`/api/search?query=${encodeURIComponent(R)}`:"/api/memories?limit=100",X=await fetch(U);if(!X.ok)throw new Error("memory_load_failed");s(await X.json())}catch{P(!0)}finally{z(!1)}},$=go[y],Z=po;C.useEffect(()=>{o(null),w(!1),d(""),m(n==="preferences"?"preference":"all"),E("all"),j("")},[n]),C.useEffect(()=>{document.documentElement.dataset.theme=v?"dark":"light",localStorage.setItem("memory-one-theme",v?"dark":"light")},[v]),C.useEffect(()=>{document.documentElement.lang="zh-CN"},[]),C.useEffect(()=>{let R=!0,U;return fetch("/api/version").then(X=>X.ok?X.json():null).then(X=>{!R||!X?.updateAvailable||!X.current||!X.latest||(K({current:X.current,latest:X.latest}),U=window.setTimeout(()=>K(null),3e3))}).catch(()=>{}),()=>{R=!1,U&&window.clearTimeout(U)}},[]),C.useEffect(()=>{const R=U=>{(U.metaKey||U.ctrlKey)&&U.key.toLowerCase()==="k"&&(U.preventDefault(),document.querySelector("#memory-search")?.focus())};return window.addEventListener("keydown",R),()=>window.removeEventListener("keydown",R)},[]);const le=C.useMemo(()=>["all",...new Set(i.map(R=>R.project).filter(Boolean))],[i]),ue=i.filter(R=>n==="archive"||n==="tags"||n==="settings"||n==="mcp"||n==="preferences"&&R.kind!=="preference"||n==="projects"&&!R.project?!1:(h==="all"||R.kind===h)&&(p==="all"||R.project===p)),re=C.useMemo(()=>{const R=new Map;for(const U of ue){const X=U.project??"__global__";R.set(X,[...R.get(X)??[],U])}return[...R.entries()]},[ue]),V={total:i.length,projects:new Set(i.map(R=>R.project).filter(Boolean)).size,preferences:i.filter(R=>R.kind==="preference").length},Q=Lq[n],ae=R=>{t({to:PA[R]})},Ee=async R=>{const X=await(await fetch("/api/memories",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({...R,project:R.project||null,source:R.source||null})})).json();s(I=>[X,...I]),o(X),k(!1)};return T.jsxs("div",{className:`app-shell ${n==="mcp"?"app-shell-wide":""}`,children:[H&&T.jsxs("div",{className:"version-notice",role:"status",children:[T.jsx(Dx,{size:14}),T.jsxs("span",{children:["发现新版本 ",H.latest,",当前版本 ",H.current]})]}),T.jsxs("aside",{className:`sidebar ${N?"sidebar-open":""}`,children:[T.jsxs("div",{className:"brand",children:[T.jsx("div",{className:"brand-mark",children:T.jsx(aR,{size:17})}),T.jsxs("div",{children:[T.jsx("strong",{children:"Memory One"}),T.jsx("span",{children:$.brandSubtitle})]}),T.jsx("button",{className:"icon-button mobile-close",onClick:()=>w(!1),title:$.close,children:T.jsx(Cf,{size:17})})]}),T.jsxs(wp,{title:$.workspace,children:[T.jsx(Vi,{icon:T.jsx(iR,{size:17}),label:$.navAll,count:V.total,active:n==="all",onClick:()=>ae("all")}),T.jsx(Vi,{icon:T.jsx(uR,{size:17}),label:$.navTimeline,active:n==="timeline",onClick:()=>ae("timeline")}),T.jsx(Vi,{icon:T.jsx(rR,{size:17}),label:$.navArchive,active:n==="archive",onClick:()=>ae("archive")})]}),T.jsxs(wp,{title:$.collections,children:[T.jsx(Vi,{icon:T.jsx(Dx,{size:17}),label:$.navPreferences,count:V.preferences,active:n==="preferences",onClick:()=>ae("preferences")}),T.jsx(Vi,{icon:T.jsx(Fv,{size:17}),label:$.navScopes,count:V.projects,active:n==="projects",onClick:()=>ae("projects")}),T.jsx(Vi,{icon:T.jsx(Yv,{size:17}),label:$.navTags,active:n==="tags",onClick:()=>ae("tags")})]}),T.jsx(wp,{title:$.connect,children:T.jsx(Vi,{icon:T.jsx(of,{size:17}),label:$.navMcp,active:n==="mcp",onClick:()=>ae("mcp")})}),T.jsxs("div",{className:"sidebar-footer",children:[T.jsxs("div",{className:"storage-status",children:[T.jsx("span",{className:"status-dot"}),$.localStorage,T.jsx("span",{className:"mono",children:"SQLite"})]}),T.jsx(Vi,{icon:T.jsx(gR,{size:17}),label:$.navSettings,active:n==="settings",onClick:()=>ae("settings")})]})]}),N&&T.jsx("button",{className:"sidebar-backdrop",onClick:()=>w(!1),"aria-label":$.close}),T.jsxs("main",{className:"main-content",children:[T.jsxs("header",{className:"topbar",children:[T.jsx("button",{className:"icon-button menu-button",onClick:()=>w(!0),title:"打开菜单","aria-label":"打开菜单",children:T.jsx(dR,{size:19})}),T.jsxs("div",{className:"breadcrumbs",children:[T.jsx("span",{children:$.workspace}),T.jsx(Bp,{size:14}),T.jsx("strong",{children:Q.title})]}),T.jsxs("div",{className:"top-actions",children:[T.jsx("button",{className:"icon-button",onClick:()=>S(R=>!R),title:v?"切换浅色模式":"切换深色模式",children:v?T.jsx(Vv,{size:17}):T.jsx(qv,{size:17})}),T.jsx("div",{className:"avatar",children:"C"})]})]}),T.jsx("div",{className:"content-wrap",children:n==="mcp"?T.jsx(Uq,{language:y}):n==="settings"?T.jsx(Fq,{dark:v,onToggleTheme:()=>S(R=>!R)}):T.jsxs(T.Fragment,{children:[T.jsxs("section",{className:"page-heading",children:[T.jsxs("div",{children:[T.jsxs("div",{className:"heading-kicker",children:[T.jsx("span",{className:"live-dot"}),$.localMemory]}),T.jsx("h1",{children:Q.title}),T.jsx("p",{children:Q.description})]}),T.jsxs("button",{className:"primary-button",onClick:()=>k(!0),children:[T.jsx(mR,{size:17}),$.newMemory]})]}),n!=="timeline"&&T.jsxs("section",{className:"stat-grid",children:[T.jsx(ja,{label:$.memories,value:V.total.toString().padStart(2,"0"),note:"已保存"}),T.jsx(ja,{label:$.scopes,value:V.projects.toString().padStart(2,"0"),note:$.scopesNote}),T.jsx(ja,{label:$.lastSync,value:$.justNow,note:$.localDatabase,date:!0}),T.jsxs("div",{className:"stat-card stat-callout",children:[T.jsx(U0,{size:19}),T.jsxs("div",{children:[T.jsx("strong",{children:$.localOnly}),T.jsx("span",{children:$.localOnlyDesc})]})]})]}),T.jsxs("section",{className:"toolbar",children:[T.jsxs("div",{className:"search-box",children:[T.jsx(pR,{size:17}),T.jsx("input",{id:"memory-search",value:c,onChange:R=>d(R.target.value),onKeyDown:R=>{R.key==="Enter"&&j()},placeholder:$.search}),T.jsxs("kbd",{children:[T.jsx(oR,{size:11}),"K"]})]}),T.jsxs("div",{className:"toolbar-actions",children:[T.jsxs("div",{className:"select-wrap",children:[T.jsx(fR,{size:15}),T.jsx(e0,{value:h,onValueChange:m,options:MA.map(R=>({value:R,label:Z[R]})),ariaLabel:$.type})]}),T.jsx("div",{className:"select-wrap project-select",children:T.jsx(e0,{value:p,onValueChange:E,options:le.map(R=>({value:R,label:R==="all"?$.allScopes:R})),ariaLabel:$.scope})})]})]}),T.jsxs("div",{className:"list-header",children:[T.jsx("span",{children:D?$.reading:`${ue.length}${$.countSuffix}`}),T.jsx("span",{className:"mono",children:n==="timeline"?$.sortTimeline:n==="all"&&p==="all"?$.sortGrouped:$.sortRecent})]}),T.jsxs("section",{className:n==="timeline"?"timeline-list":"memory-list",children:[L&&!D&&T.jsxs("div",{className:"empty-state",children:[T.jsx(Lx,{size:28}),T.jsx("strong",{children:$.loadFailed}),T.jsx("button",{className:"ghost-button",onClick:()=>{j()},children:$.retry})]}),!L&&!D&&ue.length===0&&T.jsxs("div",{className:"empty-state",children:[T.jsx(Lx,{size:28}),T.jsx("strong",{children:n==="archive"?$.noArchive:n==="tags"?$.noTags:n==="settings"?$.settingsManaged:$.emptyMatch}),T.jsx("span",{children:n==="archive"||n==="tags"||n==="settings"?Q.description:$.emptyHelp})]}),!L&&n==="timeline"&&T.jsx(Hq,{items:ue,selectedId:l?.id,onSelect:o,language:y}),!L&&n!=="timeline"&&(n==="all"&&p==="all"?re.map(([R,U])=>T.jsxs("div",{className:"memory-group",children:[T.jsxs("div",{className:"memory-group-header",children:[T.jsx("span",{children:R==="__global__"?$.globalMemory:R}),T.jsx("span",{className:"mono",children:U.length.toString().padStart(2,"0")})]}),U.map(X=>T.jsx(tv,{item:X,selected:l?.id===X.id,onClick:()=>o(X),language:y},X.id))]},R)):ue.map(R=>T.jsx(tv,{item:R,selected:l?.id===R.id,onClick:()=>o(R),language:y},R.id)))]})]})})]}),n!=="mcp"&&T.jsxs("aside",{className:`detail-panel ${l?"detail-open":""}`,children:[T.jsxs("div",{className:"detail-header",children:[T.jsx("span",{className:"eyebrow",children:$.detailEyebrow}),l&&T.jsx("button",{className:"icon-button",onClick:()=>o(null),title:$.close,children:T.jsx(Cf,{size:17})})]}),l?T.jsx(zq,{item:l,language:y}):T.jsxs("div",{className:"detail-empty",children:[T.jsx("div",{className:"detail-icon",children:T.jsx(zv,{size:20})}),T.jsx("strong",{children:$.detailEmpty}),T.jsx("span",{children:$.detailEmptyDesc})]})]}),A&&T.jsx(qq,{onClose:()=>k(!1),onCreate:Ee,language:y}),T.jsx(jv,{})]})}function wp({title:e,children:t}){return T.jsxs("div",{className:"sidebar-section",children:[T.jsx("span",{className:"eyebrow",children:e}),t]})}function Vi({icon:e,label:t,count:n,active:i,onClick:s}){return T.jsxs("button",{className:`nav-item ${i?"active":""}`,onClick:s,"aria-current":i?"page":void 0,children:[e,T.jsx("span",{children:t}),n!==void 0&&T.jsx("b",{children:n})]})}const Xs=[["memory_store","Store durable memory with optional scope.","保存一条持久记忆,可选 scope 分类。"],["memory_search","Search memories with SQLite FTS5 and an optional scope filter.","使用 SQLite FTS5 搜索记忆,可按 scope 筛选。"],["memory_get_context","Retrieve relevant experience before every task.","在每项任务开始前检索相关经验。"],["memory_get","Get one memory by ID.","按 ID 获取单条记忆。"],["memory_list","List memories with an optional scope filter.","列出记忆,可按 scope 筛选。"],["memory_update","Update a memory or its metadata.","更新记忆内容或元数据。"],["memory_delete","Soft-delete a memory.","软删除一条记忆。"],["memory_feedback","Record whether a memory was useful.","记录记忆是否有帮助的相关性信号。"]];function Bq(e,t){if(!e)return t==="zh"?"未标记日期":"Undated";const n=new Date(e);return Number.isNaN(n.getTime())?t==="zh"?"未标记日期":"Undated":new Intl.DateTimeFormat(t==="zh"?"zh-CN":"en-US",{year:"numeric",month:"long",day:"numeric",weekday:"short"}).format(n)}function jq(e,t){if(!e)return t==="zh"?"未标记时间":"No time";const n=new Date(e);return Number.isNaN(n.getTime())?t==="zh"?"未标记时间":"No time":new Intl.DateTimeFormat(t==="zh"?"zh-CN":"en-US",{hour:"2-digit",minute:"2-digit"}).format(n)}function Hq({items:e,selectedId:t,onSelect:n,language:i}){const s=C.useMemo(()=>{const l=[...e].sort((c,d)=>{const h=new Date(c.occurred_at??c.created_at).getTime();return new Date(d.occurred_at??d.created_at).getTime()-h}),o=new Map;for(const c of l){const d=c.occurred_at??c.created_at,h=d?new Date(d):null,m=h&&!Number.isNaN(h.getTime())?h.toISOString().slice(0,10):"undated";o.set(m,[...o.get(m)??[],c])}return[...o.entries()]},[e]);return T.jsx("div",{className:"timeline-stream",children:s.map(([l,o])=>T.jsxs("section",{className:"timeline-day",children:[T.jsxs("header",{className:"timeline-day-heading",children:[T.jsx("time",{children:Bq(l==="undated"?null:l,i)}),T.jsxs("span",{className:"mono",children:[o.length.toString().padStart(2,"0")," 条"]})]}),T.jsx("div",{className:"timeline-day-items",children:o.map(c=>{const d=c.occurred_at??c.created_at;return T.jsxs("button",{className:`timeline-event ${t===c.id?"selected":""}`,onClick:()=>n(c),children:[T.jsx("span",{className:"timeline-event-rail","aria-hidden":"true",children:T.jsx("span",{className:"timeline-dot"})}),T.jsxs("span",{className:"timeline-event-body",children:[T.jsxs("span",{className:"timeline-event-meta",children:[T.jsx("span",{className:`kind-badge kind-${c.kind}`,children:po[c.kind]??c.kind}),T.jsx("time",{children:jq(d,i)})]}),T.jsx("strong",{children:c.content}),T.jsxs("span",{className:"timeline-event-context",children:[c.project??c.scope,T.jsx("span",{"aria-hidden":"true",children:"·"}),c.source??"Agent 写入"]})]})]},c.id)})})]},l))})}function Uq({language:e}){const t=go[e],[n,i]=C.useState(null),[s,l]=C.useState(null),[o,c]=C.useState(null),[d,h]=C.useState(null),[m,p]=C.useState(!1),[E,y]=C.useState(""),[v,S]=C.useState(null),[A,k]=C.useState(""),[N,w]=C.useState(!1),[D,z]=C.useState(""),[L,P]=C.useState([]),[H,K]=C.useState(""),[j,$]=C.useState(Xs.map(([Y])=>Y)),[Z,le]=C.useState(null),[ue,re]=C.useState(!1),[V,Q]=C.useState(""),[ae,Ee]=C.useState(!1),[R,U]=C.useState(null),[X,I]=C.useState(null),[ge,ye]=C.useState(""),[he,Ae]=C.useState("connection"),Te=typeof window<"u"&&window.location.hostname?window.location.hostname:"127.0.0.1",xe=typeof window<"u"?window.location.port:"",Ne=`http://${Te}:${xe==="5173"||!xe?"8765":xe}/mcp/`,Me=new Map(o?.tools.map(Y=>[Y.tool_name,Y.calls])??[]),Ve=o?.total_calls?Math.round(o.successful_calls/o.total_calls*100):0;C.useEffect(()=>{fetch("/api/mcp/config").then(Y=>Y.json()).then(Y=>U(Y.use_bearer_key!==!1)),fetch("/api/mcp/stats").then(Y=>Y.json()).then(c),fetch("/api/integrations/codex").then(Y=>Y.json()).then(h),fetch(`/api/integrations/codex/mcp?endpoint=${encodeURIComponent(Ne)}`).then(Y=>Y.json()).then(S),fetch("/api/mcp/keys").then(Y=>Y.json()).then(P)},[]),C.useEffect(()=>{const Y=L.filter(de=>de.secret);v?.configured_key_id?k(v.configured_key_id):Y.some(de=>de.id===A)||k(Y[0]?.id??"")},[v,A,L]);const rt=async Y=>{U(Y),await fetch("/api/mcp/config",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify({use_bearer_key:Y})});const de=await fetch(`/api/integrations/codex/mcp?endpoint=${encodeURIComponent(Ne)}`);S(await de.json())},ut=async(Y,de)=>{try{if(!navigator.clipboard)throw new Error("clipboard_unavailable");await navigator.clipboard.writeText(Y),i(de),l("已复制到剪贴板"),window.setTimeout(()=>i(null),1500),window.setTimeout(()=>l(null),2200)}catch{l("复制失败,请手动复制"),window.setTimeout(()=>l(null),2600)}},Et=async()=>{p(!0),y("");try{const Y=await fetch("/api/integrations/codex/install",{method:"POST"});if(!Y.ok)throw new Error("install_failed");h(await Y.json()),y("全局指令已写入。重新启动 Codex 或开启新会话后生效。")}catch{y("写入失败,请检查 Codex 配置目录的访问权限。")}finally{p(!1)}},Vt=async()=>{w(!0),z("");try{const Y=await fetch("/api/integrations/codex/mcp/install",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({endpoint:Ne,...R===!0?{key_id:A}:{}})});if(!Y.ok)throw new Error("install_failed");S(await Y.json()),z("Codex MCP 配置已写入。重新启动 Codex 或开启新会话后生效。")}catch{z(R===!0?"配置失败,请检查 Codex 配置目录和 MCP Key。":"配置失败,请检查 Codex 配置目录。")}finally{w(!1)}},Ut=async()=>{re(!0),Q("");try{const Y=await fetch("/api/mcp/keys",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({name:H.trim()||"未命名 Key",allowed_tools:j})});if(!Y.ok)throw new Error("create_key_failed");const de=await Y.json();P(we=>[de.key_record,...we]),le(de.key),K("")}catch{Q("Key 创建失败,请稍后重试。")}finally{re(!1)}},En=async Y=>{const de=L.find(De=>De.id===Y);!de||!window.confirm(`确定删除 Key“${de.name}”吗?删除后将立即失效,且无法恢复。`)||!(await fetch(`/api/mcp/keys/${Y}`,{method:"DELETE"})).ok||P(De=>De.filter(We=>We.id!==Y))},ke=async Y=>{const de=await fetch(`/api/mcp/keys/${Y}`,{method:"PATCH",headers:{"content-type":"application/json"},body:JSON.stringify({name:ge})});if(!de.ok)return;const we=await de.json();P(De=>De.map(We=>We.id===Y?we:We)),I(null)},Ue=Z?JSON.stringify({mcpServers:{"memory-one":{type:"http",url:Ne,headers:{Authorization:`Bearer ${Z}`}}}},null,2):"",At=d?.status==="configured"?"已配置":d?.status==="update_available"?"可更新":"未配置",Je=d?.status==="update_available"?"更新全局指令":"启用全局记忆",Qe=v?.status==="configured"&&(R!==!0||v.configured_key_id===A),cn=v?.status==="configured"?"已配置":v?.status==="update_available"?"需更新":"未配置";return T.jsxs("div",{className:`mcp-page ${R===null?"mcp-loading":""}`,children:[s?T.jsxs("div",{className:`copy-feedback ${s.startsWith("复制失败")?"error":""}`,role:"status",children:[s.startsWith("复制失败")?T.jsx(lR,{size:14}):T.jsx(el,{size:14}),s]}):null,T.jsx("div",{className:"mcp-navigation",children:T.jsxs("nav",{className:"mcp-tabs",role:"tablist","aria-label":"MCP 页面",children:[T.jsxs("button",{className:he==="connection"?"active":"",role:"tab","aria-selected":he==="connection",onClick:()=>Ae("connection"),children:[T.jsx(of,{size:15}),"连接配置"]}),T.jsxs("button",{className:he==="usage"?"active":"",role:"tab","aria-selected":he==="usage",onClick:()=>Ae("usage"),children:[T.jsx(Ox,{size:15}),"调用统计"]})]})}),he==="connection"&&T.jsxs("div",{className:"mcp-grid",role:"tabpanel",children:[T.jsxs("section",{className:"mcp-panel mcp-endpoint",children:[T.jsxs("div",{className:"mcp-panel-header",children:[T.jsxs("div",{children:[T.jsx("span",{className:"eyebrow",children:t.serverEndpoint}),T.jsx("h2",{children:t.mcpEndpoint})]}),T.jsx("button",{className:"icon-button",onClick:()=>ut(Ne,"endpoint"),title:t.mcpCopyEndpoint,children:n==="endpoint"?T.jsx(el,{size:16}):T.jsx($m,{size:16})})]}),T.jsx("div",{className:"endpoint-value",children:Ne}),T.jsxs("div",{className:"endpoint-compact-meta",children:[T.jsxs("span",{children:[T.jsx("i",{className:"status-dot"}),"Streamable HTTP"]}),T.jsxs("label",{className:"switch-label",children:[T.jsx("span",{children:"Bearer Key"}),T.jsx("input",{type:"checkbox",checked:R===!0,disabled:R===null,onChange:Y=>rt(Y.target.checked)}),T.jsx("i",{})]})]})]}),T.jsx("section",{className:"mcp-panel codex-mcp-panel",children:T.jsxs("div",{className:"codex-compact-list",children:[T.jsxs("section",{className:"codex-compact-row",children:[T.jsxs("div",{className:"codex-compact-copy",children:[T.jsxs("div",{className:"codex-compact-title",children:[T.jsx("strong",{children:"MCP 连接"}),T.jsx("span",{className:`integration-status status-${v?.status??"loading"}`,children:v?cn:"检测中"})]}),T.jsx("p",{children:R===!0?"选择 Key 后自动写入连接配置。":R===!1?"自动写入连接配置。":"正在读取认证状态。"}),D?T.jsx("div",{className:"integration-message",role:"status",children:D}):null]}),T.jsxs("div",{className:"codex-compact-actions",children:[R===!0?T.jsxs("select",{"aria-label":"MCP Key",value:A,onChange:Y=>k(Y.target.value),disabled:!L.some(Y=>Y.secret),children:[L.filter(Y=>Y.secret).map(Y=>T.jsxs("option",{value:Y.id,children:[Y.name," · ",Y.prefix,"••••"]},Y.id)),L.some(Y=>Y.secret)?null:T.jsx("option",{value:"",children:"请先创建 MCP Key"})]}):null,T.jsxs("button",{className:"primary-button",disabled:R===null||!v||R===!0&&!A||N||Qe,onClick:()=>{Vt()},children:[N?T.jsx(Gm,{className:"spin",size:16}):T.jsx(of,{size:16}),Qe?"已配置":v?.status==="not_configured"?"配置":"更新"]})]})]}),T.jsxs("section",{className:"codex-compact-row",children:[T.jsxs("div",{className:"codex-compact-copy",children:[T.jsxs("div",{className:"codex-compact-title",children:[T.jsx("strong",{children:"任务前置记忆"}),T.jsx("span",{className:`integration-status status-${d?.status??"loading"}`,children:d?At:"读取中"})]}),T.jsx("p",{children:"让 Codex 在每项任务开始前读取相关经验。"}),E?T.jsx("div",{className:"integration-message",role:"status",children:E}):null]}),T.jsxs("button",{className:"primary-button",disabled:!d||m||d.status==="configured",onClick:Et,children:[m?T.jsx(Gm,{className:"spin",size:16}):T.jsx(cR,{size:16}),d?.status==="configured"?"已启用":Je]})]})]})}),R===!0&&T.jsxs("section",{className:"mcp-keys",role:"region","aria-label":"Key 管理",children:[T.jsxs("div",{className:"mcp-tools-heading",children:[T.jsxs("div",{children:[T.jsx("span",{className:"eyebrow",children:"访问控制"}),T.jsx("h2",{children:"MCP Key 管理"})]}),T.jsx(jc,{size:18})]}),T.jsx("p",{className:"mcp-key-note",children:"为平台 Agent、Codex 或其他 MCP 客户端创建独立 Key,并按最小权限限制它可以调用的工具。"}),T.jsx("div",{className:"mcp-key-create",children:T.jsxs("button",{className:"primary-button",onClick:()=>Ee(!0),children:[T.jsx(jc,{size:15}),"创建 Key"]})}),Z?T.jsxs("div",{className:"mcp-key-secret",children:[T.jsx("strong",{children:"Key 已创建,可随时在下方再次复制"}),T.jsx("code",{children:Z}),T.jsxs("div",{children:[T.jsx("button",{className:"icon-button",onClick:()=>ut(Ue,"key-config"),title:"复制带 Key 的 MCP 配置",children:n==="key-config"?T.jsx(el,{size:16}):T.jsx($m,{size:16})}),T.jsx("span",{children:n==="key-config"?"已复制配置":"复制带 Authorization Header 的配置"})]})]}):null,T.jsx("div",{className:"mcp-key-list",children:L.length?L.map(Y=>T.jsxs("div",{className:"mcp-key-row",children:[T.jsx(jc,{size:15}),T.jsxs("div",{children:[X===Y.id?T.jsx("input",{className:"mcp-key-name-input",autoFocus:!0,value:ge,onChange:de=>ye(de.target.value),onKeyDown:de=>{de.key==="Enter"&&ke(Y.id),de.key==="Escape"&&I(null)},onBlur:()=>{ke(Y.id)}}):T.jsx("strong",{children:Y.name}),T.jsxs("code",{children:[Y.prefix,"••••••••"]}),T.jsxs("span",{children:[Y.allowed_tools.length?`可用工具 ${Y.allowed_tools.length}/${Xs.length}`:"可调用全部工具",Y.last_used_at?` · 最近使用 ${Ju(Y.last_used_at,e)}`:" · 尚未使用"]}),T.jsx("div",{className:"tool-chip-list key-tool-list",children:(Y.allowed_tools.length?Y.allowed_tools:Xs.map(([de])=>de)).map(de=>T.jsx("span",{className:"tool-chip",children:de},de))})]}),T.jsxs("div",{className:"mcp-key-actions",children:[Y.secret?T.jsx("button",{className:"icon-button",onClick:()=>ut(Y.secret,`key-${Y.id}`),title:"复制 Key",children:n===`key-${Y.id}`?T.jsx(el,{size:14}):T.jsx($m,{size:14})}):null,T.jsx("button",{className:"icon-button",onClick:()=>{I(Y.id),ye(Y.name)},title:"修改名称",children:T.jsx(hR,{size:14})}),T.jsx("button",{className:"ghost-button",onClick:()=>{En(Y.id)},children:"删除"})]})]},Y.id)):T.jsx("p",{className:"mcp-key-empty",children:"还没有创建 Key。"})})]})]}),ae&&T.jsx("div",{className:"modal-backdrop",role:"presentation",onMouseDown:Y=>{Y.target===Y.currentTarget&&Ee(!1)},children:T.jsxs("section",{className:"key-create-modal",role:"dialog","aria-modal":"true","aria-label":"创建 MCP Key",children:[T.jsxs("div",{className:"composer-header",children:[T.jsxs("div",{children:[T.jsx("span",{className:"eyebrow",children:"访问控制"}),T.jsx("h2",{children:"创建 MCP Key"})]}),T.jsx("button",{className:"icon-button",onClick:()=>Ee(!1),title:"关闭",children:T.jsx(Cf,{size:18})})]}),T.jsxs("label",{className:"config-field",children:[T.jsx("span",{children:"Key 名称"}),T.jsx("input",{autoFocus:!0,value:H,onChange:Y=>K(Y.target.value),placeholder:"例如:平台 Agent"})]}),T.jsxs("div",{className:"mcp-key-tools",children:[T.jsx("span",{className:"key-tools-label",children:"允许调用的工具"}),T.jsx("div",{className:"key-tools-grid",children:Xs.map(([Y])=>T.jsxs("label",{children:[T.jsx("input",{type:"checkbox",checked:j.includes(Y),onChange:de=>$(we=>de.target.checked?[...we,Y]:we.filter(De=>De!==Y))}),Y]},Y))})]}),T.jsxs("div",{className:"modal-actions",children:[T.jsx("button",{className:"ghost-button",onClick:()=>Ee(!1),children:"取消"}),T.jsxs("button",{className:"primary-button",onClick:()=>{Ut(),Ee(!1)},disabled:ue||j.length===0,children:[ue?T.jsx(Gm,{className:"spin",size:15}):T.jsx(jc,{size:15}),"创建 Key"]})]}),V?T.jsx("p",{className:"integration-message",role:"alert",children:V}):null]})}),he==="usage"&&T.jsxs(T.Fragment,{children:[T.jsxs("section",{className:"mcp-usage",role:"tabpanel",children:[T.jsxs("div",{className:"mcp-tools-heading",children:[T.jsxs("div",{children:[T.jsx("span",{className:"eyebrow",children:"调用统计"}),T.jsx("h2",{children:"工具使用情况"})]}),T.jsx(Ox,{size:18})]}),T.jsxs("div",{className:"mcp-metrics",children:[T.jsx(ja,{label:"TOTAL CALLS",value:o?String(o.total_calls):"--",note:"累计调用"}),T.jsx(ja,{label:"SUCCESS RATE",value:o?.total_calls?`${Ve}%`:"--",note:o?`${o.failed_calls} 次失败`:"读取中"}),T.jsx(ja,{label:"AVG LATENCY",value:o?.total_calls?`${o.average_duration_ms} ms`:"--",note:"平均处理耗时"}),T.jsx(ja,{label:"LAST CALL",value:o?.last_called_at?Ju(o.last_called_at,e):"暂无",note:"最近一次调用",date:!0})]})]}),T.jsxs("section",{className:"mcp-tools",children:[T.jsxs("div",{className:"mcp-tools-heading",children:[T.jsxs("div",{children:[T.jsx("span",{className:"eyebrow",children:t.toolsLabel}),T.jsx("h2",{children:t.toolsTitle})]}),T.jsxs("span",{className:"tool-count",children:[Xs.length," ",t.toolsCount]})]}),T.jsx("div",{className:"tool-list",children:Xs.map(([Y,de,we])=>T.jsxs("article",{className:"tool-row",children:[T.jsx("div",{className:"tool-icon",children:T.jsx(of,{size:15})}),T.jsxs("div",{children:[T.jsx("strong",{children:Y}),T.jsx("span",{children:e==="zh"?we:de})]}),T.jsxs("div",{className:"tool-meta",children:[T.jsxs("code",{children:[Me.get(Y)??0," 次"]}),T.jsx("code",{children:t.http})]})]},Y))})]})]})]})}function ja({label:e,value:t,note:n,date:i}){return T.jsxs("div",{className:"stat-card",children:[T.jsx("span",{className:"stat-label",children:e}),T.jsx("strong",{className:i?"stat-date":"",children:t}),T.jsx("span",{className:"stat-note",children:n})]})}function tv({item:e,selected:t,onClick:n,language:i}){const s=go[i],l=po,o=Math.round(e.confidence*100);return T.jsxs("button",{className:`memory-card ${t?"selected":""}`,onClick:n,children:[T.jsxs("div",{className:"card-top",children:[T.jsx("span",{className:`kind-badge kind-${e.kind}`,children:l[e.kind]??e.kind}),T.jsx("span",{className:"card-date",children:Ju(e.occurred_at??e.created_at,i)})]}),T.jsx("p",{children:e.content}),T.jsxs("div",{className:"card-bottom",children:[T.jsx("span",{children:e.project?T.jsxs(T.Fragment,{children:[T.jsx(Fv,{size:13}),e.project]}):T.jsxs(T.Fragment,{children:[T.jsx(Yv,{size:13}),e.scope]})}),T.jsxs("span",{className:"recall-count",children:[e.recall_count??0," 次召回"]}),T.jsxs("span",{className:"confidence",children:[T.jsx("span",{className:"confidence-meter",children:T.jsx("i",{style:{width:`${o}%`}})}),T.jsx("span",{children:s.confidence}),T.jsxs("span",{children:[o,"%"]})]})]})]})}function zq({item:e,language:t}){const n=go[t],i=po;return T.jsxs("div",{className:"detail-body",children:[T.jsx("div",{className:`detail-kind kind-badge kind-${e.kind}`,children:i[e.kind]??e.kind}),T.jsx("h2",{children:e.content}),T.jsxs("div",{className:"detail-meta",children:[T.jsxs("div",{children:[T.jsx("span",{children:n.created}),T.jsx("strong",{children:Ju(e.created_at,t)})]}),T.jsxs("div",{children:[T.jsx("span",{children:n.updated}),T.jsx("strong",{children:Ju(e.updated_at,t)})]}),T.jsxs("div",{children:[T.jsx("span",{children:n.source}),T.jsx("strong",{children:e.source??n.agentWritten})]}),T.jsxs("div",{children:[T.jsx("span",{children:n.recallCount}),T.jsxs("strong",{children:[e.recall_count??0," ",n.times]})]})]}),T.jsxs("div",{className:"detail-section",children:[T.jsx("span",{className:"eyebrow",children:n.scope}),T.jsxs("div",{className:"scope-value",children:[T.jsx(U0,{size:15}),e.scope,e.project&&T.jsxs(T.Fragment,{children:[T.jsx("span",{children:"/"}),e.project]})]})]}),T.jsxs("div",{className:"detail-section",children:[T.jsx("span",{className:"eyebrow",children:n.signals}),T.jsx(nv,{label:n.importance,value:e.importance,language:t}),T.jsx(nv,{label:n.confidence,value:e.confidence,language:t})]})]})}function nv({label:e,value:t,language:n}){return T.jsxs("div",{className:"signal-row",children:[T.jsx("span",{children:e}),T.jsx("div",{className:"signal-track",children:T.jsx("span",{style:{width:`${Math.round(t*100)}%`}})}),T.jsxs("b",{children:[Math.round(t*100),"%"]})]})}function Fq({dark:e,onToggleTheme:t}){return T.jsxs("div",{className:"settings-page",children:[T.jsx("section",{className:"page-heading",children:T.jsxs("div",{children:[T.jsxs("div",{className:"heading-kicker",children:[T.jsx("span",{className:"live-dot"}),"本地工作区"]}),T.jsx("h1",{children:"设置"}),T.jsx("p",{children:"调整界面显示,并查看当前数据存储位置。"})]})}),T.jsxs("section",{className:"config-panel settings-panel",children:[T.jsxs("div",{className:"config-panel-heading",children:[T.jsxs("div",{children:[T.jsx("span",{className:"eyebrow",children:"APPEARANCE"}),T.jsx("h2",{children:"界面显示"})]}),e?T.jsx(qv,{size:19}):T.jsx(Vv,{size:19})]}),T.jsxs("div",{className:"settings-row",children:[T.jsxs("span",{children:[T.jsx("strong",{children:"深色模式"}),T.jsx("small",{children:"在浅色和深色界面之间切换。"})]}),T.jsx("button",{className:"ghost-button",onClick:t,children:e?"切换浅色":"切换深色"})]})]}),T.jsxs("section",{className:"config-panel settings-panel",children:[T.jsxs("div",{className:"config-panel-heading",children:[T.jsxs("div",{children:[T.jsx("span",{className:"eyebrow",children:"STORAGE"}),T.jsx("h2",{children:"本地存储"})]}),T.jsx(U0,{size:19})]}),T.jsxs("div",{className:"settings-storage",children:[T.jsx("span",{className:"status-dot"}),T.jsx("strong",{children:"SQLite"}),T.jsx("span",{children:"记忆仅保存在当前设备。"})]})]})]})}function qq({onClose:e,onCreate:t,language:n}){const i=go[n],s=po,[l,o]=C.useState(""),[c,d]=C.useState("fact"),[h,m]=C.useState(""),[p,E]=C.useState("");return C.useEffect(()=>{const y=v=>{v.key==="Escape"&&e()};return window.addEventListener("keydown",y),()=>window.removeEventListener("keydown",y)},[e]),T.jsx("div",{className:"modal-backdrop",onMouseDown:y=>{y.target===y.currentTarget&&e()},children:T.jsxs("div",{className:"composer",role:"dialog","aria-modal":"true","aria-labelledby":"composer-title",children:[T.jsxs("div",{className:"composer-header",children:[T.jsxs("div",{children:[T.jsx("span",{className:"eyebrow",children:i.newMemoryEyebrow}),T.jsx("h2",{id:"composer-title",children:i.composerTitle})]}),T.jsx("button",{className:"icon-button",onClick:e,title:i.close,children:T.jsx(Cf,{size:18})})]}),T.jsxs("label",{children:[i.content,T.jsx("textarea",{autoFocus:!0,value:l,onChange:y=>o(y.target.value),placeholder:i.contentPlaceholder,rows:5})]}),T.jsxs("div",{className:"composer-grid",children:[T.jsxs("label",{children:[i.type,T.jsx(e0,{value:c,onValueChange:d,options:MA.slice(1).map(y=>({value:y,label:s[y]})),ariaLabel:i.type,className:"composer-select"})]}),T.jsxs("label",{children:[i.scope,T.jsx("input",{value:h,onChange:y=>m(y.target.value),placeholder:i.scopeOptional})]})]}),T.jsxs("label",{children:[i.source,T.jsx("input",{value:p,onChange:y=>E(y.target.value),placeholder:i.sourcePlaceholder})]}),T.jsxs("div",{className:"composer-footer",children:[T.jsxs("span",{children:[T.jsx(el,{size:14}),i.writeLocal]}),T.jsxs("div",{children:[T.jsx("button",{className:"ghost-button",onClick:e,children:i.cancel}),T.jsxs("button",{className:"primary-button",disabled:!l.trim(),onClick:()=>t({content:l,kind:c,project:h,source:p}),children:[i.save," ",T.jsx(zv,{size:15})]})]})]})]})})}sN.createRoot(document.getElementById("root")).render(T.jsx(ml.StrictMode,{children:T.jsx(Z6,{router:Mq})}));const Vq=Object.freeze(Object.defineProperty({__proto__:null,Mermaid:IA},Symbol.toStringTag,{value:"Module"}));export{Wq as E,rn as S,rF as c,T as j,C as r};
|