From 511bb6685bda35402c3ef110bc447c6456c98624 Mon Sep 17 00:00:00 2001 From: Evan Reichard Date: Thu, 5 Feb 2026 15:56:21 -0500 Subject: [PATCH] fix(frontend): display file content when opening existing files Fix issue where file content was not displayed when opening files. Added fileContent state to store and pass file content to MarkdownEditor component. --- .../{index-39f1aff0.js => index-47e80c4a.js} | 30 +++++++++---------- frontend/dist/index.html | 2 +- frontend/src/App.tsx | 8 +++-- 3 files changed, 22 insertions(+), 18 deletions(-) rename frontend/dist/assets/{index-39f1aff0.js => index-47e80c4a.js} (90%) diff --git a/frontend/dist/assets/index-39f1aff0.js b/frontend/dist/assets/index-47e80c4a.js similarity index 90% rename from frontend/dist/assets/index-39f1aff0.js rename to frontend/dist/assets/index-47e80c4a.js index f174b7f..f67c40f 100644 --- a/frontend/dist/assets/index-39f1aff0.js +++ b/frontend/dist/assets/index-47e80c4a.js @@ -6,7 +6,7 @@ * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var ti=Symbol.for("react.element"),Dh=Symbol.for("react.portal"),Ah=Symbol.for("react.fragment"),Fh=Symbol.for("react.strict_mode"),Rh=Symbol.for("react.profiler"),Oh=Symbol.for("react.provider"),Mh=Symbol.for("react.context"),bh=Symbol.for("react.forward_ref"),jh=Symbol.for("react.suspense"),Bh=Symbol.for("react.memo"),Uh=Symbol.for("react.lazy"),ns=Symbol.iterator;function $h(e){return e===null||typeof e!="object"?null:(e=ns&&e[ns]||e["@@iterator"],typeof e=="function"?e:null)}var af={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},sf=Object.assign,cf={};function ir(e,n,t){this.props=e,this.context=n,this.refs=cf,this.updater=t||af}ir.prototype.isReactComponent={};ir.prototype.setState=function(e,n){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,n,"setState")};ir.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function ff(){}ff.prototype=ir.prototype;function Mu(e,n,t){this.props=e,this.context=n,this.refs=cf,this.updater=t||af}var bu=Mu.prototype=new ff;bu.constructor=Mu;sf(bu,ir.prototype);bu.isPureReactComponent=!0;var ts=Array.isArray,pf=Object.prototype.hasOwnProperty,ju={current:null},df={key:!0,ref:!0,__self:!0,__source:!0};function hf(e,n,t){var r,i={},l=null,o=null;if(n!=null)for(r in n.ref!==void 0&&(o=n.ref),n.key!==void 0&&(l=""+n.key),n)pf.call(n,r)&&!df.hasOwnProperty(r)&&(i[r]=n[r]);var u=arguments.length-2;if(u===1)i.children=t;else if(1>>1,G=D[Y];if(0>>1;Yi(on,k))rei(gn,on)?(D[Y]=gn,D[re]=k,Y=re):(D[Y]=on,D[ge]=k,Y=ge);else if(rei(gn,k))D[Y]=gn,D[re]=k,Y=re;else break e}}return b}function i(D,b){var k=D.sortIndex-b.sortIndex;return k!==0?k:D.id-b.id}if(typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var o=Date,u=o.now();e.unstable_now=function(){return o.now()-u}}var a=[],s=[],f=1,c=null,p=3,d=!1,g=!1,x=!1,P=typeof setTimeout=="function"?setTimeout:null,h=typeof clearTimeout=="function"?clearTimeout:null,m=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(D){for(var b=t(s);b!==null;){if(b.callback===null)r(s);else if(b.startTime<=D)r(s),b.sortIndex=b.expirationTime,n(a,b);else break;b=t(s)}}function C(D){if(x=!1,y(D),!g)if(t(a)!==null)g=!0,de(T);else{var b=t(s);b!==null&&fe(C,b.startTime-D)}}function T(D,b){g=!1,x&&(x=!1,h(L),L=-1),d=!0;var k=p;try{for(y(b),c=t(a);c!==null&&(!(c.expirationTime>b)||D&&!A());){var Y=c.callback;if(typeof Y=="function"){c.callback=null,p=c.priorityLevel;var G=Y(c.expirationTime<=b);b=e.unstable_now(),typeof G=="function"?c.callback=G:c===t(a)&&r(a),y(b)}else r(a);c=t(a)}if(c!==null)var v=!0;else{var ge=t(s);ge!==null&&fe(C,ge.startTime-b),v=!1}return v}finally{c=null,p=k,d=!1}}var w=!1,z=null,L=-1,M=5,S=-1;function A(){return!(e.unstable_now()-SD||125Y?(D.sortIndex=k,n(s,D),t(a)===null&&D===t(s)&&(x?(h(L),L=-1):x=!0,fe(C,k-Y))):(D.sortIndex=G,n(a,D),g||d||(g=!0,de(T))),D},e.unstable_shouldYield=A,e.unstable_wrapCallback=function(D){var b=p;return function(){var k=p;p=b;try{return D.apply(this,arguments)}finally{p=k}}}})(vf);kf.exports=vf;var em=kf.exports;/** + */(function(e){function n(D,b){var k=D.length;D.push(b);e:for(;0>>1,G=D[Y];if(0>>1;Yi(on,k))rei(gn,on)?(D[Y]=gn,D[re]=k,Y=re):(D[Y]=on,D[ge]=k,Y=ge);else if(rei(gn,k))D[Y]=gn,D[re]=k,Y=re;else break e}}return b}function i(D,b){var k=D.sortIndex-b.sortIndex;return k!==0?k:D.id-b.id}if(typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var o=Date,u=o.now();e.unstable_now=function(){return o.now()-u}}var a=[],s=[],f=1,c=null,p=3,d=!1,m=!1,v=!1,P=typeof setTimeout=="function"?setTimeout:null,h=typeof clearTimeout=="function"?clearTimeout:null,g=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(D){for(var b=t(s);b!==null;){if(b.callback===null)r(s);else if(b.startTime<=D)r(s),b.sortIndex=b.expirationTime,n(a,b);else break;b=t(s)}}function C(D){if(v=!1,y(D),!m)if(t(a)!==null)m=!0,de(T);else{var b=t(s);b!==null&&fe(C,b.startTime-D)}}function T(D,b){m=!1,v&&(v=!1,h(L),L=-1),d=!0;var k=p;try{for(y(b),c=t(a);c!==null&&(!(c.expirationTime>b)||D&&!A());){var Y=c.callback;if(typeof Y=="function"){c.callback=null,p=c.priorityLevel;var G=Y(c.expirationTime<=b);b=e.unstable_now(),typeof G=="function"?c.callback=G:c===t(a)&&r(a),y(b)}else r(a);c=t(a)}if(c!==null)var x=!0;else{var ge=t(s);ge!==null&&fe(C,ge.startTime-b),x=!1}return x}finally{c=null,p=k,d=!1}}var w=!1,z=null,L=-1,M=5,S=-1;function A(){return!(e.unstable_now()-SD||125Y?(D.sortIndex=k,n(s,D),t(a)===null&&D===t(s)&&(v?(h(L),L=-1):v=!0,fe(C,k-Y))):(D.sortIndex=G,n(a,D),m||d||(m=!0,de(T))),D},e.unstable_shouldYield=A,e.unstable_wrapCallback=function(D){var b=p;return function(){var k=p;p=b;try{return D.apply(this,arguments)}finally{p=k}}}})(vf);kf.exports=vf;var em=kf.exports;/** * @license React * react-dom.production.min.js * @@ -30,28 +30,28 @@ * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var nm=en,Ye=em;function _(e){for(var n="https://reactjs.org/docs/error-decoder.html?invariant="+e,t=1;t"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Do=Object.prototype.hasOwnProperty,tm=/^[: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]*$/,is={},ls={};function rm(e){return Do.call(ls,e)?!0:Do.call(is,e)?!1:tm.test(e)?ls[e]=!0:(is[e]=!0,!1)}function im(e,n,t,r){if(t!==null&&t.type===0)return!1;switch(typeof n){case"function":case"symbol":return!0;case"boolean":return r?!1:t!==null?!t.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function lm(e,n,t,r){if(n===null||typeof n>"u"||im(e,n,t,r))return!0;if(r)return!1;if(t!==null)switch(t.type){case 3:return!n;case 4:return n===!1;case 5:return isNaN(n);case 6:return isNaN(n)||1>n}return!1}function Fe(e,n,t,r,i,l,o){this.acceptsBooleans=n===2||n===3||n===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=t,this.propertyName=e,this.type=n,this.sanitizeURL=l,this.removeEmptyString=o}var Ce={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ce[e]=new Fe(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var n=e[0];Ce[n]=new Fe(n,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ce[e]=new Fe(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ce[e]=new Fe(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Ce[e]=new Fe(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ce[e]=new Fe(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ce[e]=new Fe(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ce[e]=new Fe(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ce[e]=new Fe(e,5,!1,e.toLowerCase(),null,!1,!1)});var Uu=/[\-:]([a-z])/g;function $u(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var n=e.replace(Uu,$u);Ce[n]=new Fe(n,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var n=e.replace(Uu,$u);Ce[n]=new Fe(n,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var n=e.replace(Uu,$u);Ce[n]=new Fe(n,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ce[e]=new Fe(e,1,!1,e.toLowerCase(),null,!1,!1)});Ce.xlinkHref=new Fe("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ce[e]=new Fe(e,1,!1,e.toLowerCase(),null,!0,!0)});function Hu(e,n,t,r){var i=Ce.hasOwnProperty(n)?Ce[n]:null;(i!==null?i.type!==0:r||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Do=Object.prototype.hasOwnProperty,tm=/^[: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]*$/,is={},ls={};function rm(e){return Do.call(ls,e)?!0:Do.call(is,e)?!1:tm.test(e)?ls[e]=!0:(is[e]=!0,!1)}function im(e,n,t,r){if(t!==null&&t.type===0)return!1;switch(typeof n){case"function":case"symbol":return!0;case"boolean":return r?!1:t!==null?!t.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function lm(e,n,t,r){if(n===null||typeof n>"u"||im(e,n,t,r))return!0;if(r)return!1;if(t!==null)switch(t.type){case 3:return!n;case 4:return n===!1;case 5:return isNaN(n);case 6:return isNaN(n)||1>n}return!1}function Fe(e,n,t,r,i,l,o){this.acceptsBooleans=n===2||n===3||n===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=t,this.propertyName=e,this.type=n,this.sanitizeURL=l,this.removeEmptyString=o}var Ce={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ce[e]=new Fe(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var n=e[0];Ce[n]=new Fe(n,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ce[e]=new Fe(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ce[e]=new Fe(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Ce[e]=new Fe(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ce[e]=new Fe(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ce[e]=new Fe(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ce[e]=new Fe(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ce[e]=new Fe(e,5,!1,e.toLowerCase(),null,!1,!1)});var Uu=/[\-:]([a-z])/g;function $u(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var n=e.replace(Uu,$u);Ce[n]=new Fe(n,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var n=e.replace(Uu,$u);Ce[n]=new Fe(n,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var n=e.replace(Uu,$u);Ce[n]=new Fe(n,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ce[e]=new Fe(e,1,!1,e.toLowerCase(),null,!1,!1)});Ce.xlinkHref=new Fe("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ce[e]=new Fe(e,1,!1,e.toLowerCase(),null,!0,!0)});function Hu(e,n,t,r){var i=Ce.hasOwnProperty(n)?Ce[n]:null;(i!==null?i.type!==0:r||!(2u||i[o]!==l[u]){var a=` -`+i[o].replace(" at new "," at ");return e.displayName&&a.includes("")&&(a=a.replace("",e.displayName)),a}while(1<=o&&0<=u);break}}}finally{Wl=!1,Error.prepareStackTrace=t}return(e=e?e.displayName||e.name:"")?wr(e):""}function om(e){switch(e.tag){case 5:return wr(e.type);case 16:return wr("Lazy");case 13:return wr("Suspense");case 19:return wr("SuspenseList");case 0:case 2:case 15:return e=Ql(e.type,!1),e;case 11:return e=Ql(e.type.render,!1),e;case 1:return e=Ql(e.type,!0),e;default:return""}}function Oo(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Dt:return"Fragment";case Nt:return"Portal";case Ao:return"Profiler";case Vu:return"StrictMode";case Fo:return"Suspense";case Ro:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Sf:return(e.displayName||"Context")+".Consumer";case wf:return(e._context.displayName||"Context")+".Provider";case Wu:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Qu:return n=e.displayName||null,n!==null?n:Oo(e.type)||"Memo";case Bn:n=e._payload,e=e._init;try{return Oo(e(n))}catch{}}return null}function um(e){var n=e.type;switch(e.tag){case 24:return"Cache";case 9:return(n.displayName||"Context")+".Consumer";case 10:return(n._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=n.render,e=e.displayName||e.name||"",n.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return n;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Oo(n);case 8:return n===Vu?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n}return null}function et(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ef(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function am(e){var n=Ef(e)?"checked":"value",t=Object.getOwnPropertyDescriptor(e.constructor.prototype,n),r=""+e[n];if(!e.hasOwnProperty(n)&&typeof t<"u"&&typeof t.get=="function"&&typeof t.set=="function"){var i=t.get,l=t.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return i.call(this)},set:function(o){r=""+o,l.call(this,o)}}),Object.defineProperty(e,n,{enumerable:t.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function di(e){e._valueTracker||(e._valueTracker=am(e))}function Pf(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var t=n.getValue(),r="";return e&&(r=Ef(e)?e.checked?"true":"false":e.value),e=r,e!==t?(n.setValue(e),!0):!1}function Ki(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Mo(e,n){var t=n.checked;return se({},n,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:t??e._wrapperState.initialChecked})}function us(e,n){var t=n.defaultValue==null?"":n.defaultValue,r=n.checked!=null?n.checked:n.defaultChecked;t=et(n.value!=null?n.value:t),e._wrapperState={initialChecked:r,initialValue:t,controlled:n.type==="checkbox"||n.type==="radio"?n.checked!=null:n.value!=null}}function Tf(e,n){n=n.checked,n!=null&&Hu(e,"checked",n,!1)}function bo(e,n){Tf(e,n);var t=et(n.value),r=n.type;if(t!=null)r==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+t):e.value!==""+t&&(e.value=""+t);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}n.hasOwnProperty("value")?jo(e,n.type,t):n.hasOwnProperty("defaultValue")&&jo(e,n.type,et(n.defaultValue)),n.checked==null&&n.defaultChecked!=null&&(e.defaultChecked=!!n.defaultChecked)}function as(e,n,t){if(n.hasOwnProperty("value")||n.hasOwnProperty("defaultValue")){var r=n.type;if(!(r!=="submit"&&r!=="reset"||n.value!==void 0&&n.value!==null))return;n=""+e._wrapperState.initialValue,t||n===e.value||(e.value=n),e.defaultValue=n}t=e.name,t!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,t!==""&&(e.name=t)}function jo(e,n,t){(n!=="number"||Ki(e.ownerDocument)!==e)&&(t==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+t&&(e.defaultValue=""+t))}var Sr=Array.isArray;function Ht(e,n,t,r){if(e=e.options,n){n={};for(var i=0;i"+n.valueOf().toString()+"",n=hi.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;n.firstChild;)e.appendChild(n.firstChild)}});function br(e,n){if(n){var t=e.firstChild;if(t&&t===e.lastChild&&t.nodeType===3){t.nodeValue=n;return}}e.textContent=n}var Pr={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},sm=["Webkit","ms","Moz","O"];Object.keys(Pr).forEach(function(e){sm.forEach(function(n){n=n+e.charAt(0).toUpperCase()+e.substring(1),Pr[n]=Pr[e]})});function Lf(e,n,t){return n==null||typeof n=="boolean"||n===""?"":t||typeof n!="number"||n===0||Pr.hasOwnProperty(e)&&Pr[e]?(""+n).trim():n+"px"}function Nf(e,n){e=e.style;for(var t in n)if(n.hasOwnProperty(t)){var r=t.indexOf("--")===0,i=Lf(t,n[t],r);t==="float"&&(t="cssFloat"),r?e.setProperty(t,i):e[t]=i}}var cm=se({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function $o(e,n){if(n){if(cm[e]&&(n.children!=null||n.dangerouslySetInnerHTML!=null))throw Error(_(137,e));if(n.dangerouslySetInnerHTML!=null){if(n.children!=null)throw Error(_(60));if(typeof n.dangerouslySetInnerHTML!="object"||!("__html"in n.dangerouslySetInnerHTML))throw Error(_(61))}if(n.style!=null&&typeof n.style!="object")throw Error(_(62))}}function Ho(e,n){if(e.indexOf("-")===-1)return typeof n.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Vo=null;function Ku(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Wo=null,Vt=null,Wt=null;function fs(e){if(e=li(e)){if(typeof Wo!="function")throw Error(_(280));var n=e.stateNode;n&&(n=Tl(n),Wo(e.stateNode,e.type,n))}}function Df(e){Vt?Wt?Wt.push(e):Wt=[e]:Vt=e}function Af(){if(Vt){var e=Vt,n=Wt;if(Wt=Vt=null,fs(e),n)for(e=0;e>>=0,e===0?32:31-(wm(e)/Sm|0)|0}var mi=64,gi=4194304;function Cr(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Gi(e,n){var t=e.pendingLanes;if(t===0)return 0;var r=0,i=e.suspendedLanes,l=e.pingedLanes,o=t&268435455;if(o!==0){var u=o&~i;u!==0?r=Cr(u):(l&=o,l!==0&&(r=Cr(l)))}else o=t&~i,o!==0?r=Cr(o):l!==0&&(r=Cr(l));if(r===0)return 0;if(n!==0&&n!==r&&!(n&i)&&(i=r&-r,l=n&-n,i>=l||i===16&&(l&4194240)!==0))return n;if(r&4&&(r|=t&16),n=e.entangledLanes,n!==0)for(e=e.entanglements,n&=r;0t;t++)n.push(e);return n}function ri(e,n,t){e.pendingLanes|=n,n!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,n=31-pn(n),e[n]=t}function Tm(e,n){var t=e.pendingLanes&~n;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=n,e.mutableReadLanes&=n,e.entangledLanes&=n,n=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=_r),xs=String.fromCharCode(32),ws=!1;function Jf(e,n){switch(e){case"keyup":return eg.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ep(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var At=!1;function tg(e,n){switch(e){case"compositionend":return ep(n);case"keypress":return n.which!==32?null:(ws=!0,xs);case"textInput":return e=n.data,e===xs&&ws?null:e;default:return null}}function rg(e,n){if(At)return e==="compositionend"||!na&&Jf(e,n)?(e=Gf(),Ri=Zu=Vn=null,At=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1=n)return{node:t,offset:n-e};e=r}e:{for(;t;){if(t.nextSibling){t=t.nextSibling;break e}t=t.parentNode}t=void 0}t=Ps(t)}}function ip(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?ip(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function lp(){for(var e=window,n=Ki();n instanceof e.HTMLIFrameElement;){try{var t=typeof n.contentWindow.location.href=="string"}catch{t=!1}if(t)e=n.contentWindow;else break;n=Ki(e.document)}return n}function ta(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&(n==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||n==="textarea"||e.contentEditable==="true")}function pg(e){var n=lp(),t=e.focusedElem,r=e.selectionRange;if(n!==t&&t&&t.ownerDocument&&ip(t.ownerDocument.documentElement,t)){if(r!==null&&ta(t)){if(n=r.start,e=r.end,e===void 0&&(e=n),"selectionStart"in t)t.selectionStart=n,t.selectionEnd=Math.min(e,t.value.length);else if(e=(n=t.ownerDocument||document)&&n.defaultView||window,e.getSelection){e=e.getSelection();var i=t.textContent.length,l=Math.min(r.start,i);r=r.end===void 0?l:Math.min(r.end,i),!e.extend&&l>r&&(i=r,r=l,l=i),i=Ts(t,l);var o=Ts(t,r);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(n=n.createRange(),n.setStart(i.node,i.offset),e.removeAllRanges(),l>r?(e.addRange(n),e.extend(o.node,o.offset)):(n.setEnd(o.node,o.offset),e.addRange(n)))}}for(n=[],e=t;e=e.parentNode;)e.nodeType===1&&n.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof t.focus=="function"&&t.focus(),t=0;t=document.documentMode,Ft=null,Go=null,Ir=null,Zo=!1;function _s(e,n,t){var r=t.window===t?t.document:t.nodeType===9?t:t.ownerDocument;Zo||Ft==null||Ft!==Ki(r)||(r=Ft,"selectionStart"in r&&ta(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Ir&&Vr(Ir,r)||(Ir=r,r=el(Go,"onSelect"),0Mt||(e.current=iu[Mt],iu[Mt]=null,Mt--)}function te(e,n){Mt++,iu[Mt]=e.current,e.current=n}var nt={},ze=rt(nt),be=rt(!1),gt=nt;function Gt(e,n){var t=e.type.contextTypes;if(!t)return nt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===n)return r.__reactInternalMemoizedMaskedChildContext;var i={},l;for(l in t)i[l]=n[l];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=n,e.__reactInternalMemoizedMaskedChildContext=i),i}function je(e){return e=e.childContextTypes,e!=null}function tl(){le(be),le(ze)}function Fs(e,n,t){if(ze.current!==nt)throw Error(_(168));te(ze,n),te(be,t)}function hp(e,n,t){var r=e.stateNode;if(n=n.childContextTypes,typeof r.getChildContext!="function")return t;r=r.getChildContext();for(var i in r)if(!(i in n))throw Error(_(108,um(e)||"Unknown",i));return se({},t,r)}function rl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||nt,gt=ze.current,te(ze,e),te(be,be.current),!0}function Rs(e,n,t){var r=e.stateNode;if(!r)throw Error(_(169));t?(e=hp(e,n,gt),r.__reactInternalMemoizedMergedChildContext=e,le(be),le(ze),te(ze,e)):le(be),te(be,t)}var _n=null,_l=!1,oo=!1;function mp(e){_n===null?_n=[e]:_n.push(e)}function Eg(e){_l=!0,mp(e)}function it(){if(!oo&&_n!==null){oo=!0;var e=0,n=X;try{var t=_n;for(X=1;e>=o,i-=o,zn=1<<32-pn(n)+i|t<L?(M=z,z=null):M=z.sibling;var S=p(h,z,y[L],C);if(S===null){z===null&&(z=M);break}e&&z&&S.alternate===null&&n(h,z),m=l(S,m,L),w===null?T=S:w.sibling=S,w=S,z=M}if(L===y.length)return t(h,z),oe&&at(h,L),T;if(z===null){for(;LL?(M=z,z=null):M=z.sibling;var A=p(h,z,S.value,C);if(A===null){z===null&&(z=M);break}e&&z&&A.alternate===null&&n(h,z),m=l(A,m,L),w===null?T=A:w.sibling=A,w=A,z=M}if(S.done)return t(h,z),oe&&at(h,L),T;if(z===null){for(;!S.done;L++,S=y.next())S=c(h,S.value,C),S!==null&&(m=l(S,m,L),w===null?T=S:w.sibling=S,w=S);return oe&&at(h,L),T}for(z=r(h,z);!S.done;L++,S=y.next())S=d(z,h,L,S.value,C),S!==null&&(e&&S.alternate!==null&&z.delete(S.key===null?L:S.key),m=l(S,m,L),w===null?T=S:w.sibling=S,w=S);return e&&z.forEach(function(R){return n(h,R)}),oe&&at(h,L),T}function P(h,m,y,C){if(typeof y=="object"&&y!==null&&y.type===Dt&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case pi:e:{for(var T=y.key,w=m;w!==null;){if(w.key===T){if(T=y.type,T===Dt){if(w.tag===7){t(h,w.sibling),m=i(w,y.props.children),m.return=h,h=m;break e}}else if(w.elementType===T||typeof T=="object"&&T!==null&&T.$$typeof===Bn&&bs(T)===w.type){t(h,w.sibling),m=i(w,y.props),m.ref=gr(h,w,y),m.return=h,h=m;break e}t(h,w);break}else n(h,w);w=w.sibling}y.type===Dt?(m=mt(y.props.children,h.mode,C,y.key),m.return=h,h=m):(C=Hi(y.type,y.key,y.props,null,h.mode,C),C.ref=gr(h,m,y),C.return=h,h=C)}return o(h);case Nt:e:{for(w=y.key;m!==null;){if(m.key===w)if(m.tag===4&&m.stateNode.containerInfo===y.containerInfo&&m.stateNode.implementation===y.implementation){t(h,m.sibling),m=i(m,y.children||[]),m.return=h,h=m;break e}else{t(h,m);break}else n(h,m);m=m.sibling}m=mo(y,h.mode,C),m.return=h,h=m}return o(h);case Bn:return w=y._init,P(h,m,w(y._payload),C)}if(Sr(y))return g(h,m,y,C);if(fr(y))return x(h,m,y,C);Ci(h,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,m!==null&&m.tag===6?(t(h,m.sibling),m=i(m,y),m.return=h,h=m):(t(h,m),m=ho(y,h.mode,C),m.return=h,h=m),o(h)):t(h,m)}return P}var Jt=vp(!0),xp=vp(!1),ol=rt(null),ul=null,Bt=null,oa=null;function ua(){oa=Bt=ul=null}function aa(e){var n=ol.current;le(ol),e._currentValue=n}function uu(e,n,t){for(;e!==null;){var r=e.alternate;if((e.childLanes&n)!==n?(e.childLanes|=n,r!==null&&(r.childLanes|=n)):r!==null&&(r.childLanes&n)!==n&&(r.childLanes|=n),e===t)break;e=e.return}}function Kt(e,n){ul=e,oa=Bt=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&n&&(Me=!0),e.firstContext=null)}function rn(e){var n=e._currentValue;if(oa!==e)if(e={context:e,memoizedValue:n,next:null},Bt===null){if(ul===null)throw Error(_(308));Bt=e,ul.dependencies={lanes:0,firstContext:e}}else Bt=Bt.next=e;return n}var pt=null;function sa(e){pt===null?pt=[e]:pt.push(e)}function wp(e,n,t,r){var i=n.interleaved;return i===null?(t.next=t,sa(n)):(t.next=i.next,i.next=t),n.interleaved=t,An(e,r)}function An(e,n){e.lanes|=n;var t=e.alternate;for(t!==null&&(t.lanes|=n),t=e,e=e.return;e!==null;)e.childLanes|=n,t=e.alternate,t!==null&&(t.childLanes|=n),t=e,e=e.return;return t.tag===3?t.stateNode:null}var Un=!1;function ca(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Sp(e,n){e=e.updateQueue,n.updateQueue===e&&(n.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Ln(e,n){return{eventTime:e,lane:n,tag:0,payload:null,callback:null,next:null}}function Xn(e,n,t){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,q&2){var i=r.pending;return i===null?n.next=n:(n.next=i.next,i.next=n),r.pending=n,An(e,t)}return i=r.interleaved,i===null?(n.next=n,sa(r)):(n.next=i.next,i.next=n),r.interleaved=n,An(e,t)}function Mi(e,n,t){if(n=n.updateQueue,n!==null&&(n=n.shared,(t&4194240)!==0)){var r=n.lanes;r&=e.pendingLanes,t|=r,n.lanes=t,qu(e,t)}}function js(e,n){var t=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,t===r)){var i=null,l=null;if(t=t.firstBaseUpdate,t!==null){do{var o={eventTime:t.eventTime,lane:t.lane,tag:t.tag,payload:t.payload,callback:t.callback,next:null};l===null?i=l=o:l=l.next=o,t=t.next}while(t!==null);l===null?i=l=n:l=l.next=n}else i=l=n;t={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:l,shared:r.shared,effects:r.effects},e.updateQueue=t;return}e=t.lastBaseUpdate,e===null?t.firstBaseUpdate=n:e.next=n,t.lastBaseUpdate=n}function al(e,n,t,r){var i=e.updateQueue;Un=!1;var l=i.firstBaseUpdate,o=i.lastBaseUpdate,u=i.shared.pending;if(u!==null){i.shared.pending=null;var a=u,s=a.next;a.next=null,o===null?l=s:o.next=s,o=a;var f=e.alternate;f!==null&&(f=f.updateQueue,u=f.lastBaseUpdate,u!==o&&(u===null?f.firstBaseUpdate=s:u.next=s,f.lastBaseUpdate=a))}if(l!==null){var c=i.baseState;o=0,f=s=a=null,u=l;do{var p=u.lane,d=u.eventTime;if((r&p)===p){f!==null&&(f=f.next={eventTime:d,lane:0,tag:u.tag,payload:u.payload,callback:u.callback,next:null});e:{var g=e,x=u;switch(p=n,d=t,x.tag){case 1:if(g=x.payload,typeof g=="function"){c=g.call(d,c,p);break e}c=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=x.payload,p=typeof g=="function"?g.call(d,c,p):g,p==null)break e;c=se({},c,p);break e;case 2:Un=!0}}u.callback!==null&&u.lane!==0&&(e.flags|=64,p=i.effects,p===null?i.effects=[u]:p.push(u))}else d={eventTime:d,lane:p,tag:u.tag,payload:u.payload,callback:u.callback,next:null},f===null?(s=f=d,a=c):f=f.next=d,o|=p;if(u=u.next,u===null){if(u=i.shared.pending,u===null)break;p=u,u=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(1);if(f===null&&(a=c),i.baseState=a,i.firstBaseUpdate=s,i.lastBaseUpdate=f,n=i.shared.interleaved,n!==null){i=n;do o|=i.lane,i=i.next;while(i!==n)}else l===null&&(i.shared.lanes=0);vt|=o,e.lanes=o,e.memoizedState=c}}function Bs(e,n,t){if(e=n.effects,n.effects=null,e!==null)for(n=0;nt?t:4,e(!0);var r=ao.transition;ao.transition={};try{e(!1),n()}finally{X=t,ao.transition=r}}function jp(){return ln().memoizedState}function zg(e,n,t){var r=Zn(e);if(t={lane:r,action:t,hasEagerState:!1,eagerState:null,next:null},Bp(e))Up(n,t);else if(t=wp(e,n,t,r),t!==null){var i=De();dn(t,e,r,i),$p(t,n,r)}}function Ig(e,n,t){var r=Zn(e),i={lane:r,action:t,hasEagerState:!1,eagerState:null,next:null};if(Bp(e))Up(n,i);else{var l=e.alternate;if(e.lanes===0&&(l===null||l.lanes===0)&&(l=n.lastRenderedReducer,l!==null))try{var o=n.lastRenderedState,u=l(o,t);if(i.hasEagerState=!0,i.eagerState=u,mn(u,o)){var a=n.interleaved;a===null?(i.next=i,sa(n)):(i.next=a.next,a.next=i),n.interleaved=i;return}}catch{}finally{}t=wp(e,n,i,r),t!==null&&(i=De(),dn(t,e,r,i),$p(t,n,r))}}function Bp(e){var n=e.alternate;return e===ae||n!==null&&n===ae}function Up(e,n){Lr=cl=!0;var t=e.pending;t===null?n.next=n:(n.next=t.next,t.next=n),e.pending=n}function $p(e,n,t){if(t&4194240){var r=n.lanes;r&=e.pendingLanes,t|=r,n.lanes=t,qu(e,t)}}var fl={readContext:rn,useCallback:Ee,useContext:Ee,useEffect:Ee,useImperativeHandle:Ee,useInsertionEffect:Ee,useLayoutEffect:Ee,useMemo:Ee,useReducer:Ee,useRef:Ee,useState:Ee,useDebugValue:Ee,useDeferredValue:Ee,useTransition:Ee,useMutableSource:Ee,useSyncExternalStore:Ee,useId:Ee,unstable_isNewReconciler:!1},Lg={readContext:rn,useCallback:function(e,n){return kn().memoizedState=[e,n===void 0?null:n],e},useContext:rn,useEffect:$s,useImperativeHandle:function(e,n,t){return t=t!=null?t.concat([e]):null,ji(4194308,4,Fp.bind(null,n,e),t)},useLayoutEffect:function(e,n){return ji(4194308,4,e,n)},useInsertionEffect:function(e,n){return ji(4,2,e,n)},useMemo:function(e,n){var t=kn();return n=n===void 0?null:n,e=e(),t.memoizedState=[e,n],e},useReducer:function(e,n,t){var r=kn();return n=t!==void 0?t(n):n,r.memoizedState=r.baseState=n,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},r.queue=e,e=e.dispatch=zg.bind(null,ae,e),[r.memoizedState,e]},useRef:function(e){var n=kn();return e={current:e},n.memoizedState=e},useState:Us,useDebugValue:ka,useDeferredValue:function(e){return kn().memoizedState=e},useTransition:function(){var e=Us(!1),n=e[0];return e=_g.bind(null,e[1]),kn().memoizedState=e,[n,e]},useMutableSource:function(){},useSyncExternalStore:function(e,n,t){var r=ae,i=kn();if(oe){if(t===void 0)throw Error(_(407));t=t()}else{if(t=n(),xe===null)throw Error(_(349));kt&30||Tp(r,n,t)}i.memoizedState=t;var l={value:t,getSnapshot:n};return i.queue=l,$s(zp.bind(null,r,l,e),[e]),r.flags|=2048,Zr(9,_p.bind(null,r,l,t,n),void 0,null),t},useId:function(){var e=kn(),n=xe.identifierPrefix;if(oe){var t=In,r=zn;t=(r&~(1<<32-pn(r)-1)).toString(32)+t,n=":"+n+"R"+t,t=Xr++,0")&&(a=a.replace("",e.displayName)),a}while(1<=o&&0<=u);break}}}finally{Wl=!1,Error.prepareStackTrace=t}return(e=e?e.displayName||e.name:"")?wr(e):""}function om(e){switch(e.tag){case 5:return wr(e.type);case 16:return wr("Lazy");case 13:return wr("Suspense");case 19:return wr("SuspenseList");case 0:case 2:case 15:return e=Ql(e.type,!1),e;case 11:return e=Ql(e.type.render,!1),e;case 1:return e=Ql(e.type,!0),e;default:return""}}function Oo(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Dt:return"Fragment";case Nt:return"Portal";case Ao:return"Profiler";case Vu:return"StrictMode";case Fo:return"Suspense";case Ro:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Sf:return(e.displayName||"Context")+".Consumer";case wf:return(e._context.displayName||"Context")+".Provider";case Wu:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Qu:return n=e.displayName||null,n!==null?n:Oo(e.type)||"Memo";case Bn:n=e._payload,e=e._init;try{return Oo(e(n))}catch{}}return null}function um(e){var n=e.type;switch(e.tag){case 24:return"Cache";case 9:return(n.displayName||"Context")+".Consumer";case 10:return(n._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=n.render,e=e.displayName||e.name||"",n.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return n;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Oo(n);case 8:return n===Vu?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n}return null}function et(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ef(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function am(e){var n=Ef(e)?"checked":"value",t=Object.getOwnPropertyDescriptor(e.constructor.prototype,n),r=""+e[n];if(!e.hasOwnProperty(n)&&typeof t<"u"&&typeof t.get=="function"&&typeof t.set=="function"){var i=t.get,l=t.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return i.call(this)},set:function(o){r=""+o,l.call(this,o)}}),Object.defineProperty(e,n,{enumerable:t.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function di(e){e._valueTracker||(e._valueTracker=am(e))}function Pf(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var t=n.getValue(),r="";return e&&(r=Ef(e)?e.checked?"true":"false":e.value),e=r,e!==t?(n.setValue(e),!0):!1}function Ki(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Mo(e,n){var t=n.checked;return se({},n,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:t??e._wrapperState.initialChecked})}function us(e,n){var t=n.defaultValue==null?"":n.defaultValue,r=n.checked!=null?n.checked:n.defaultChecked;t=et(n.value!=null?n.value:t),e._wrapperState={initialChecked:r,initialValue:t,controlled:n.type==="checkbox"||n.type==="radio"?n.checked!=null:n.value!=null}}function Tf(e,n){n=n.checked,n!=null&&Hu(e,"checked",n,!1)}function bo(e,n){Tf(e,n);var t=et(n.value),r=n.type;if(t!=null)r==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+t):e.value!==""+t&&(e.value=""+t);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}n.hasOwnProperty("value")?jo(e,n.type,t):n.hasOwnProperty("defaultValue")&&jo(e,n.type,et(n.defaultValue)),n.checked==null&&n.defaultChecked!=null&&(e.defaultChecked=!!n.defaultChecked)}function as(e,n,t){if(n.hasOwnProperty("value")||n.hasOwnProperty("defaultValue")){var r=n.type;if(!(r!=="submit"&&r!=="reset"||n.value!==void 0&&n.value!==null))return;n=""+e._wrapperState.initialValue,t||n===e.value||(e.value=n),e.defaultValue=n}t=e.name,t!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,t!==""&&(e.name=t)}function jo(e,n,t){(n!=="number"||Ki(e.ownerDocument)!==e)&&(t==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+t&&(e.defaultValue=""+t))}var Sr=Array.isArray;function Ht(e,n,t,r){if(e=e.options,n){n={};for(var i=0;i"+n.valueOf().toString()+"",n=hi.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;n.firstChild;)e.appendChild(n.firstChild)}});function br(e,n){if(n){var t=e.firstChild;if(t&&t===e.lastChild&&t.nodeType===3){t.nodeValue=n;return}}e.textContent=n}var Pr={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},sm=["Webkit","ms","Moz","O"];Object.keys(Pr).forEach(function(e){sm.forEach(function(n){n=n+e.charAt(0).toUpperCase()+e.substring(1),Pr[n]=Pr[e]})});function Lf(e,n,t){return n==null||typeof n=="boolean"||n===""?"":t||typeof n!="number"||n===0||Pr.hasOwnProperty(e)&&Pr[e]?(""+n).trim():n+"px"}function Nf(e,n){e=e.style;for(var t in n)if(n.hasOwnProperty(t)){var r=t.indexOf("--")===0,i=Lf(t,n[t],r);t==="float"&&(t="cssFloat"),r?e.setProperty(t,i):e[t]=i}}var cm=se({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function $o(e,n){if(n){if(cm[e]&&(n.children!=null||n.dangerouslySetInnerHTML!=null))throw Error(_(137,e));if(n.dangerouslySetInnerHTML!=null){if(n.children!=null)throw Error(_(60));if(typeof n.dangerouslySetInnerHTML!="object"||!("__html"in n.dangerouslySetInnerHTML))throw Error(_(61))}if(n.style!=null&&typeof n.style!="object")throw Error(_(62))}}function Ho(e,n){if(e.indexOf("-")===-1)return typeof n.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Vo=null;function Ku(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Wo=null,Vt=null,Wt=null;function fs(e){if(e=li(e)){if(typeof Wo!="function")throw Error(_(280));var n=e.stateNode;n&&(n=Tl(n),Wo(e.stateNode,e.type,n))}}function Df(e){Vt?Wt?Wt.push(e):Wt=[e]:Vt=e}function Af(){if(Vt){var e=Vt,n=Wt;if(Wt=Vt=null,fs(e),n)for(e=0;e>>=0,e===0?32:31-(wm(e)/Sm|0)|0}var mi=64,gi=4194304;function Cr(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Gi(e,n){var t=e.pendingLanes;if(t===0)return 0;var r=0,i=e.suspendedLanes,l=e.pingedLanes,o=t&268435455;if(o!==0){var u=o&~i;u!==0?r=Cr(u):(l&=o,l!==0&&(r=Cr(l)))}else o=t&~i,o!==0?r=Cr(o):l!==0&&(r=Cr(l));if(r===0)return 0;if(n!==0&&n!==r&&!(n&i)&&(i=r&-r,l=n&-n,i>=l||i===16&&(l&4194240)!==0))return n;if(r&4&&(r|=t&16),n=e.entangledLanes,n!==0)for(e=e.entanglements,n&=r;0t;t++)n.push(e);return n}function ri(e,n,t){e.pendingLanes|=n,n!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,n=31-pn(n),e[n]=t}function Tm(e,n){var t=e.pendingLanes&~n;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=n,e.mutableReadLanes&=n,e.entangledLanes&=n,n=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=_r),xs=String.fromCharCode(32),ws=!1;function Jf(e,n){switch(e){case"keyup":return eg.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ep(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var At=!1;function tg(e,n){switch(e){case"compositionend":return ep(n);case"keypress":return n.which!==32?null:(ws=!0,xs);case"textInput":return e=n.data,e===xs&&ws?null:e;default:return null}}function rg(e,n){if(At)return e==="compositionend"||!na&&Jf(e,n)?(e=Gf(),Ri=Zu=Vn=null,At=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1=n)return{node:t,offset:n-e};e=r}e:{for(;t;){if(t.nextSibling){t=t.nextSibling;break e}t=t.parentNode}t=void 0}t=Ps(t)}}function ip(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?ip(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function lp(){for(var e=window,n=Ki();n instanceof e.HTMLIFrameElement;){try{var t=typeof n.contentWindow.location.href=="string"}catch{t=!1}if(t)e=n.contentWindow;else break;n=Ki(e.document)}return n}function ta(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&(n==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||n==="textarea"||e.contentEditable==="true")}function pg(e){var n=lp(),t=e.focusedElem,r=e.selectionRange;if(n!==t&&t&&t.ownerDocument&&ip(t.ownerDocument.documentElement,t)){if(r!==null&&ta(t)){if(n=r.start,e=r.end,e===void 0&&(e=n),"selectionStart"in t)t.selectionStart=n,t.selectionEnd=Math.min(e,t.value.length);else if(e=(n=t.ownerDocument||document)&&n.defaultView||window,e.getSelection){e=e.getSelection();var i=t.textContent.length,l=Math.min(r.start,i);r=r.end===void 0?l:Math.min(r.end,i),!e.extend&&l>r&&(i=r,r=l,l=i),i=Ts(t,l);var o=Ts(t,r);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(n=n.createRange(),n.setStart(i.node,i.offset),e.removeAllRanges(),l>r?(e.addRange(n),e.extend(o.node,o.offset)):(n.setEnd(o.node,o.offset),e.addRange(n)))}}for(n=[],e=t;e=e.parentNode;)e.nodeType===1&&n.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof t.focus=="function"&&t.focus(),t=0;t=document.documentMode,Ft=null,Go=null,Ir=null,Zo=!1;function _s(e,n,t){var r=t.window===t?t.document:t.nodeType===9?t:t.ownerDocument;Zo||Ft==null||Ft!==Ki(r)||(r=Ft,"selectionStart"in r&&ta(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Ir&&Vr(Ir,r)||(Ir=r,r=el(Go,"onSelect"),0Mt||(e.current=iu[Mt],iu[Mt]=null,Mt--)}function te(e,n){Mt++,iu[Mt]=e.current,e.current=n}var nt={},ze=rt(nt),be=rt(!1),gt=nt;function Gt(e,n){var t=e.type.contextTypes;if(!t)return nt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===n)return r.__reactInternalMemoizedMaskedChildContext;var i={},l;for(l in t)i[l]=n[l];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=n,e.__reactInternalMemoizedMaskedChildContext=i),i}function je(e){return e=e.childContextTypes,e!=null}function tl(){le(be),le(ze)}function Fs(e,n,t){if(ze.current!==nt)throw Error(_(168));te(ze,n),te(be,t)}function hp(e,n,t){var r=e.stateNode;if(n=n.childContextTypes,typeof r.getChildContext!="function")return t;r=r.getChildContext();for(var i in r)if(!(i in n))throw Error(_(108,um(e)||"Unknown",i));return se({},t,r)}function rl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||nt,gt=ze.current,te(ze,e),te(be,be.current),!0}function Rs(e,n,t){var r=e.stateNode;if(!r)throw Error(_(169));t?(e=hp(e,n,gt),r.__reactInternalMemoizedMergedChildContext=e,le(be),le(ze),te(ze,e)):le(be),te(be,t)}var _n=null,_l=!1,oo=!1;function mp(e){_n===null?_n=[e]:_n.push(e)}function Eg(e){_l=!0,mp(e)}function it(){if(!oo&&_n!==null){oo=!0;var e=0,n=X;try{var t=_n;for(X=1;e>=o,i-=o,zn=1<<32-pn(n)+i|t<L?(M=z,z=null):M=z.sibling;var S=p(h,z,y[L],C);if(S===null){z===null&&(z=M);break}e&&z&&S.alternate===null&&n(h,z),g=l(S,g,L),w===null?T=S:w.sibling=S,w=S,z=M}if(L===y.length)return t(h,z),oe&&at(h,L),T;if(z===null){for(;LL?(M=z,z=null):M=z.sibling;var A=p(h,z,S.value,C);if(A===null){z===null&&(z=M);break}e&&z&&A.alternate===null&&n(h,z),g=l(A,g,L),w===null?T=A:w.sibling=A,w=A,z=M}if(S.done)return t(h,z),oe&&at(h,L),T;if(z===null){for(;!S.done;L++,S=y.next())S=c(h,S.value,C),S!==null&&(g=l(S,g,L),w===null?T=S:w.sibling=S,w=S);return oe&&at(h,L),T}for(z=r(h,z);!S.done;L++,S=y.next())S=d(z,h,L,S.value,C),S!==null&&(e&&S.alternate!==null&&z.delete(S.key===null?L:S.key),g=l(S,g,L),w===null?T=S:w.sibling=S,w=S);return e&&z.forEach(function(R){return n(h,R)}),oe&&at(h,L),T}function P(h,g,y,C){if(typeof y=="object"&&y!==null&&y.type===Dt&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case pi:e:{for(var T=y.key,w=g;w!==null;){if(w.key===T){if(T=y.type,T===Dt){if(w.tag===7){t(h,w.sibling),g=i(w,y.props.children),g.return=h,h=g;break e}}else if(w.elementType===T||typeof T=="object"&&T!==null&&T.$$typeof===Bn&&bs(T)===w.type){t(h,w.sibling),g=i(w,y.props),g.ref=gr(h,w,y),g.return=h,h=g;break e}t(h,w);break}else n(h,w);w=w.sibling}y.type===Dt?(g=mt(y.props.children,h.mode,C,y.key),g.return=h,h=g):(C=Hi(y.type,y.key,y.props,null,h.mode,C),C.ref=gr(h,g,y),C.return=h,h=C)}return o(h);case Nt:e:{for(w=y.key;g!==null;){if(g.key===w)if(g.tag===4&&g.stateNode.containerInfo===y.containerInfo&&g.stateNode.implementation===y.implementation){t(h,g.sibling),g=i(g,y.children||[]),g.return=h,h=g;break e}else{t(h,g);break}else n(h,g);g=g.sibling}g=mo(y,h.mode,C),g.return=h,h=g}return o(h);case Bn:return w=y._init,P(h,g,w(y._payload),C)}if(Sr(y))return m(h,g,y,C);if(fr(y))return v(h,g,y,C);Ci(h,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,g!==null&&g.tag===6?(t(h,g.sibling),g=i(g,y),g.return=h,h=g):(t(h,g),g=ho(y,h.mode,C),g.return=h,h=g),o(h)):t(h,g)}return P}var Jt=vp(!0),xp=vp(!1),ol=rt(null),ul=null,Bt=null,oa=null;function ua(){oa=Bt=ul=null}function aa(e){var n=ol.current;le(ol),e._currentValue=n}function uu(e,n,t){for(;e!==null;){var r=e.alternate;if((e.childLanes&n)!==n?(e.childLanes|=n,r!==null&&(r.childLanes|=n)):r!==null&&(r.childLanes&n)!==n&&(r.childLanes|=n),e===t)break;e=e.return}}function Kt(e,n){ul=e,oa=Bt=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&n&&(Me=!0),e.firstContext=null)}function rn(e){var n=e._currentValue;if(oa!==e)if(e={context:e,memoizedValue:n,next:null},Bt===null){if(ul===null)throw Error(_(308));Bt=e,ul.dependencies={lanes:0,firstContext:e}}else Bt=Bt.next=e;return n}var pt=null;function sa(e){pt===null?pt=[e]:pt.push(e)}function wp(e,n,t,r){var i=n.interleaved;return i===null?(t.next=t,sa(n)):(t.next=i.next,i.next=t),n.interleaved=t,An(e,r)}function An(e,n){e.lanes|=n;var t=e.alternate;for(t!==null&&(t.lanes|=n),t=e,e=e.return;e!==null;)e.childLanes|=n,t=e.alternate,t!==null&&(t.childLanes|=n),t=e,e=e.return;return t.tag===3?t.stateNode:null}var Un=!1;function ca(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Sp(e,n){e=e.updateQueue,n.updateQueue===e&&(n.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Ln(e,n){return{eventTime:e,lane:n,tag:0,payload:null,callback:null,next:null}}function Xn(e,n,t){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,q&2){var i=r.pending;return i===null?n.next=n:(n.next=i.next,i.next=n),r.pending=n,An(e,t)}return i=r.interleaved,i===null?(n.next=n,sa(r)):(n.next=i.next,i.next=n),r.interleaved=n,An(e,t)}function Mi(e,n,t){if(n=n.updateQueue,n!==null&&(n=n.shared,(t&4194240)!==0)){var r=n.lanes;r&=e.pendingLanes,t|=r,n.lanes=t,qu(e,t)}}function js(e,n){var t=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,t===r)){var i=null,l=null;if(t=t.firstBaseUpdate,t!==null){do{var o={eventTime:t.eventTime,lane:t.lane,tag:t.tag,payload:t.payload,callback:t.callback,next:null};l===null?i=l=o:l=l.next=o,t=t.next}while(t!==null);l===null?i=l=n:l=l.next=n}else i=l=n;t={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:l,shared:r.shared,effects:r.effects},e.updateQueue=t;return}e=t.lastBaseUpdate,e===null?t.firstBaseUpdate=n:e.next=n,t.lastBaseUpdate=n}function al(e,n,t,r){var i=e.updateQueue;Un=!1;var l=i.firstBaseUpdate,o=i.lastBaseUpdate,u=i.shared.pending;if(u!==null){i.shared.pending=null;var a=u,s=a.next;a.next=null,o===null?l=s:o.next=s,o=a;var f=e.alternate;f!==null&&(f=f.updateQueue,u=f.lastBaseUpdate,u!==o&&(u===null?f.firstBaseUpdate=s:u.next=s,f.lastBaseUpdate=a))}if(l!==null){var c=i.baseState;o=0,f=s=a=null,u=l;do{var p=u.lane,d=u.eventTime;if((r&p)===p){f!==null&&(f=f.next={eventTime:d,lane:0,tag:u.tag,payload:u.payload,callback:u.callback,next:null});e:{var m=e,v=u;switch(p=n,d=t,v.tag){case 1:if(m=v.payload,typeof m=="function"){c=m.call(d,c,p);break e}c=m;break e;case 3:m.flags=m.flags&-65537|128;case 0:if(m=v.payload,p=typeof m=="function"?m.call(d,c,p):m,p==null)break e;c=se({},c,p);break e;case 2:Un=!0}}u.callback!==null&&u.lane!==0&&(e.flags|=64,p=i.effects,p===null?i.effects=[u]:p.push(u))}else d={eventTime:d,lane:p,tag:u.tag,payload:u.payload,callback:u.callback,next:null},f===null?(s=f=d,a=c):f=f.next=d,o|=p;if(u=u.next,u===null){if(u=i.shared.pending,u===null)break;p=u,u=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(1);if(f===null&&(a=c),i.baseState=a,i.firstBaseUpdate=s,i.lastBaseUpdate=f,n=i.shared.interleaved,n!==null){i=n;do o|=i.lane,i=i.next;while(i!==n)}else l===null&&(i.shared.lanes=0);vt|=o,e.lanes=o,e.memoizedState=c}}function Bs(e,n,t){if(e=n.effects,n.effects=null,e!==null)for(n=0;nt?t:4,e(!0);var r=ao.transition;ao.transition={};try{e(!1),n()}finally{X=t,ao.transition=r}}function jp(){return ln().memoizedState}function zg(e,n,t){var r=Zn(e);if(t={lane:r,action:t,hasEagerState:!1,eagerState:null,next:null},Bp(e))Up(n,t);else if(t=wp(e,n,t,r),t!==null){var i=De();dn(t,e,r,i),$p(t,n,r)}}function Ig(e,n,t){var r=Zn(e),i={lane:r,action:t,hasEagerState:!1,eagerState:null,next:null};if(Bp(e))Up(n,i);else{var l=e.alternate;if(e.lanes===0&&(l===null||l.lanes===0)&&(l=n.lastRenderedReducer,l!==null))try{var o=n.lastRenderedState,u=l(o,t);if(i.hasEagerState=!0,i.eagerState=u,mn(u,o)){var a=n.interleaved;a===null?(i.next=i,sa(n)):(i.next=a.next,a.next=i),n.interleaved=i;return}}catch{}finally{}t=wp(e,n,i,r),t!==null&&(i=De(),dn(t,e,r,i),$p(t,n,r))}}function Bp(e){var n=e.alternate;return e===ae||n!==null&&n===ae}function Up(e,n){Lr=cl=!0;var t=e.pending;t===null?n.next=n:(n.next=t.next,t.next=n),e.pending=n}function $p(e,n,t){if(t&4194240){var r=n.lanes;r&=e.pendingLanes,t|=r,n.lanes=t,qu(e,t)}}var fl={readContext:rn,useCallback:Ee,useContext:Ee,useEffect:Ee,useImperativeHandle:Ee,useInsertionEffect:Ee,useLayoutEffect:Ee,useMemo:Ee,useReducer:Ee,useRef:Ee,useState:Ee,useDebugValue:Ee,useDeferredValue:Ee,useTransition:Ee,useMutableSource:Ee,useSyncExternalStore:Ee,useId:Ee,unstable_isNewReconciler:!1},Lg={readContext:rn,useCallback:function(e,n){return kn().memoizedState=[e,n===void 0?null:n],e},useContext:rn,useEffect:$s,useImperativeHandle:function(e,n,t){return t=t!=null?t.concat([e]):null,ji(4194308,4,Fp.bind(null,n,e),t)},useLayoutEffect:function(e,n){return ji(4194308,4,e,n)},useInsertionEffect:function(e,n){return ji(4,2,e,n)},useMemo:function(e,n){var t=kn();return n=n===void 0?null:n,e=e(),t.memoizedState=[e,n],e},useReducer:function(e,n,t){var r=kn();return n=t!==void 0?t(n):n,r.memoizedState=r.baseState=n,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},r.queue=e,e=e.dispatch=zg.bind(null,ae,e),[r.memoizedState,e]},useRef:function(e){var n=kn();return e={current:e},n.memoizedState=e},useState:Us,useDebugValue:ka,useDeferredValue:function(e){return kn().memoizedState=e},useTransition:function(){var e=Us(!1),n=e[0];return e=_g.bind(null,e[1]),kn().memoizedState=e,[n,e]},useMutableSource:function(){},useSyncExternalStore:function(e,n,t){var r=ae,i=kn();if(oe){if(t===void 0)throw Error(_(407));t=t()}else{if(t=n(),xe===null)throw Error(_(349));kt&30||Tp(r,n,t)}i.memoizedState=t;var l={value:t,getSnapshot:n};return i.queue=l,$s(zp.bind(null,r,l,e),[e]),r.flags|=2048,Zr(9,_p.bind(null,r,l,t,n),void 0,null),t},useId:function(){var e=kn(),n=xe.identifierPrefix;if(oe){var t=In,r=zn;t=(r&~(1<<32-pn(r)-1)).toString(32)+t,n=":"+n+"R"+t,t=Xr++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(t,{is:r.is}):(e=o.createElement(t),t==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,t),e[xn]=n,e[Kr]=r,Zp(e,n,!1,!1),n.stateNode=e;e:{switch(o=Ho(t,r),t){case"dialog":ie("cancel",e),ie("close",e),i=r;break;case"iframe":case"object":case"embed":ie("load",e),i=r;break;case"video":case"audio":for(i=0;itr&&(n.flags|=128,r=!0,yr(l,!1),n.lanes=4194304)}else{if(!r)if(e=sl(o),e!==null){if(n.flags|=128,r=!0,t=e.updateQueue,t!==null&&(n.updateQueue=t,n.flags|=4),yr(l,!0),l.tail===null&&l.tailMode==="hidden"&&!o.alternate&&!oe)return Pe(n),null}else 2*pe()-l.renderingStartTime>tr&&t!==1073741824&&(n.flags|=128,r=!0,yr(l,!1),n.lanes=4194304);l.isBackwards?(o.sibling=n.child,n.child=o):(t=l.last,t!==null?t.sibling=o:n.child=o,l.last=o)}return l.tail!==null?(n=l.tail,l.rendering=n,l.tail=n.sibling,l.renderingStartTime=pe(),n.sibling=null,t=ue.current,te(ue,r?t&1|2:t&1),n):(Pe(n),null);case 22:case 23:return Ea(),r=n.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(n.flags|=8192),r&&n.mode&1?Ve&1073741824&&(Pe(n),n.subtreeFlags&6&&(n.flags|=8192)):Pe(n),null;case 24:return null;case 25:return null}throw Error(_(156,n.tag))}function bg(e,n){switch(ia(n),n.tag){case 1:return je(n.type)&&tl(),e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 3:return er(),le(be),le(ze),da(),e=n.flags,e&65536&&!(e&128)?(n.flags=e&-65537|128,n):null;case 5:return pa(n),null;case 13:if(le(ue),e=n.memoizedState,e!==null&&e.dehydrated!==null){if(n.alternate===null)throw Error(_(340));Zt()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 19:return le(ue),null;case 4:return er(),null;case 10:return aa(n.type._context),null;case 22:case 23:return Ea(),null;case 24:return null;default:return null}}var Pi=!1,Te=!1,jg=typeof WeakSet=="function"?WeakSet:Set,F=null;function Ut(e,n){var t=e.ref;if(t!==null)if(typeof t=="function")try{t(null)}catch(r){ce(e,n,r)}else t.current=null}function gu(e,n,t){try{t()}catch(r){ce(e,n,r)}}var Js=!1;function Bg(e,n){if(Jo=Zi,e=lp(),ta(e)){if("selectionStart"in e)var t={start:e.selectionStart,end:e.selectionEnd};else e:{t=(t=e.ownerDocument)&&t.defaultView||window;var r=t.getSelection&&t.getSelection();if(r&&r.rangeCount!==0){t=r.anchorNode;var i=r.anchorOffset,l=r.focusNode;r=r.focusOffset;try{t.nodeType,l.nodeType}catch{t=null;break e}var o=0,u=-1,a=-1,s=0,f=0,c=e,p=null;n:for(;;){for(var d;c!==t||i!==0&&c.nodeType!==3||(u=o+i),c!==l||r!==0&&c.nodeType!==3||(a=o+r),c.nodeType===3&&(o+=c.nodeValue.length),(d=c.firstChild)!==null;)p=c,c=d;for(;;){if(c===e)break n;if(p===t&&++s===i&&(u=o),p===l&&++f===r&&(a=o),(d=c.nextSibling)!==null)break;c=p,p=c.parentNode}c=d}t=u===-1||a===-1?null:{start:u,end:a}}else t=null}t=t||{start:0,end:0}}else t=null;for(eu={focusedElem:e,selectionRange:t},Zi=!1,F=n;F!==null;)if(n=F,e=n.child,(n.subtreeFlags&1028)!==0&&e!==null)e.return=n,F=e;else for(;F!==null;){n=F;try{var g=n.alternate;if(n.flags&1024)switch(n.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var x=g.memoizedProps,P=g.memoizedState,h=n.stateNode,m=h.getSnapshotBeforeUpdate(n.elementType===n.type?x:sn(n.type,x),P);h.__reactInternalSnapshotBeforeUpdate=m}break;case 3:var y=n.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(_(163))}}catch(C){ce(n,n.return,C)}if(e=n.sibling,e!==null){e.return=n.return,F=e;break}F=n.return}return g=Js,Js=!1,g}function Nr(e,n,t){var r=n.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var l=i.destroy;i.destroy=void 0,l!==void 0&&gu(n,t,l)}i=i.next}while(i!==r)}}function Ll(e,n){if(n=n.updateQueue,n=n!==null?n.lastEffect:null,n!==null){var t=n=n.next;do{if((t.tag&e)===e){var r=t.create;t.destroy=r()}t=t.next}while(t!==n)}}function yu(e){var n=e.ref;if(n!==null){var t=e.stateNode;switch(e.tag){case 5:e=t;break;default:e=t}typeof n=="function"?n(e):n.current=e}}function nd(e){var n=e.alternate;n!==null&&(e.alternate=null,nd(n)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(n=e.stateNode,n!==null&&(delete n[xn],delete n[Kr],delete n[ru],delete n[Sg],delete n[Cg])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function td(e){return e.tag===5||e.tag===3||e.tag===4}function ec(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||td(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function ku(e,n,t){var r=e.tag;if(r===5||r===6)e=e.stateNode,n?t.nodeType===8?t.parentNode.insertBefore(e,n):t.insertBefore(e,n):(t.nodeType===8?(n=t.parentNode,n.insertBefore(e,t)):(n=t,n.appendChild(e)),t=t._reactRootContainer,t!=null||n.onclick!==null||(n.onclick=nl));else if(r!==4&&(e=e.child,e!==null))for(ku(e,n,t),e=e.sibling;e!==null;)ku(e,n,t),e=e.sibling}function vu(e,n,t){var r=e.tag;if(r===5||r===6)e=e.stateNode,n?t.insertBefore(e,n):t.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(vu(e,n,t),e=e.sibling;e!==null;)vu(e,n,t),e=e.sibling}var we=null,cn=!1;function bn(e,n,t){for(t=t.child;t!==null;)rd(e,n,t),t=t.sibling}function rd(e,n,t){if(wn&&typeof wn.onCommitFiberUnmount=="function")try{wn.onCommitFiberUnmount(Sl,t)}catch{}switch(t.tag){case 5:Te||Ut(t,n);case 6:var r=we,i=cn;we=null,bn(e,n,t),we=r,cn=i,we!==null&&(cn?(e=we,t=t.stateNode,e.nodeType===8?e.parentNode.removeChild(t):e.removeChild(t)):we.removeChild(t.stateNode));break;case 18:we!==null&&(cn?(e=we,t=t.stateNode,e.nodeType===8?lo(e.parentNode,t):e.nodeType===1&&lo(e,t),$r(e)):lo(we,t.stateNode));break;case 4:r=we,i=cn,we=t.stateNode.containerInfo,cn=!0,bn(e,n,t),we=r,cn=i;break;case 0:case 11:case 14:case 15:if(!Te&&(r=t.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var l=i,o=l.destroy;l=l.tag,o!==void 0&&(l&2||l&4)&&gu(t,n,o),i=i.next}while(i!==r)}bn(e,n,t);break;case 1:if(!Te&&(Ut(t,n),r=t.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=t.memoizedProps,r.state=t.memoizedState,r.componentWillUnmount()}catch(u){ce(t,n,u)}bn(e,n,t);break;case 21:bn(e,n,t);break;case 22:t.mode&1?(Te=(r=Te)||t.memoizedState!==null,bn(e,n,t),Te=r):bn(e,n,t);break;default:bn(e,n,t)}}function nc(e){var n=e.updateQueue;if(n!==null){e.updateQueue=null;var t=e.stateNode;t===null&&(t=e.stateNode=new jg),n.forEach(function(r){var i=qg.bind(null,e,r);t.has(r)||(t.add(r),r.then(i,i))})}}function an(e,n){var t=n.deletions;if(t!==null)for(var r=0;ri&&(i=o),r&=~l}if(r=i,r=pe()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*$g(r/1960))-r,10e?16:e,Wn===null)var r=!1;else{if(e=Wn,Wn=null,hl=0,q&6)throw Error(_(331));var i=q;for(q|=4,F=e.current;F!==null;){var l=F,o=l.child;if(F.flags&16){var u=l.deletions;if(u!==null){for(var a=0;ape()-Sa?ht(e,0):wa|=t),Be(e,n)}function fd(e,n){n===0&&(e.mode&1?(n=gi,gi<<=1,!(gi&130023424)&&(gi=4194304)):n=1);var t=De();e=An(e,n),e!==null&&(ri(e,n,t),Be(e,t))}function Yg(e){var n=e.memoizedState,t=0;n!==null&&(t=n.retryLane),fd(e,t)}function qg(e,n){var t=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(t=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(_(314))}r!==null&&r.delete(n),fd(e,t)}var pd;pd=function(e,n,t){if(e!==null)if(e.memoizedProps!==n.pendingProps||be.current)Me=!0;else{if(!(e.lanes&t)&&!(n.flags&128))return Me=!1,Og(e,n,t);Me=!!(e.flags&131072)}else Me=!1,oe&&n.flags&1048576&&gp(n,ll,n.index);switch(n.lanes=0,n.tag){case 2:var r=n.type;Bi(e,n),e=n.pendingProps;var i=Gt(n,ze.current);Kt(n,t),i=ma(null,n,r,e,i,t);var l=ga();return n.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(n.tag=1,n.memoizedState=null,n.updateQueue=null,je(r)?(l=!0,rl(n)):l=!1,n.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,ca(n),i.updater=Il,n.stateNode=i,i._reactInternals=n,su(n,r,e,t),n=pu(null,n,r,!0,l,t)):(n.tag=0,oe&&l&&ra(n),Le(null,n,i,t),n=n.child),n;case 16:r=n.elementType;e:{switch(Bi(e,n),e=n.pendingProps,i=r._init,r=i(r._payload),n.type=r,i=n.tag=Gg(r),e=sn(r,e),i){case 0:n=fu(null,n,r,e,t);break e;case 1:n=Xs(null,n,r,e,t);break e;case 11:n=Ys(null,n,r,e,t);break e;case 14:n=qs(null,n,r,sn(r.type,e),t);break e}throw Error(_(306,r,""))}return n;case 0:return r=n.type,i=n.pendingProps,i=n.elementType===r?i:sn(r,i),fu(e,n,r,i,t);case 1:return r=n.type,i=n.pendingProps,i=n.elementType===r?i:sn(r,i),Xs(e,n,r,i,t);case 3:e:{if(qp(n),e===null)throw Error(_(387));r=n.pendingProps,l=n.memoizedState,i=l.element,Sp(e,n),al(n,r,null,t);var o=n.memoizedState;if(r=o.element,l.isDehydrated)if(l={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},n.updateQueue.baseState=l,n.memoizedState=l,n.flags&256){i=nr(Error(_(423)),n),n=Gs(e,n,r,t,i);break e}else if(r!==i){i=nr(Error(_(424)),n),n=Gs(e,n,r,t,i);break e}else for(We=qn(n.stateNode.containerInfo.firstChild),Qe=n,oe=!0,fn=null,t=xp(n,null,r,t),n.child=t;t;)t.flags=t.flags&-3|4096,t=t.sibling;else{if(Zt(),r===i){n=Fn(e,n,t);break e}Le(e,n,r,t)}n=n.child}return n;case 5:return Cp(n),e===null&&ou(n),r=n.type,i=n.pendingProps,l=e!==null?e.memoizedProps:null,o=i.children,nu(r,i)?o=null:l!==null&&nu(r,l)&&(n.flags|=32),Yp(e,n),Le(e,n,o,t),n.child;case 6:return e===null&&ou(n),null;case 13:return Xp(e,n,t);case 4:return fa(n,n.stateNode.containerInfo),r=n.pendingProps,e===null?n.child=Jt(n,null,r,t):Le(e,n,r,t),n.child;case 11:return r=n.type,i=n.pendingProps,i=n.elementType===r?i:sn(r,i),Ys(e,n,r,i,t);case 7:return Le(e,n,n.pendingProps,t),n.child;case 8:return Le(e,n,n.pendingProps.children,t),n.child;case 12:return Le(e,n,n.pendingProps.children,t),n.child;case 10:e:{if(r=n.type._context,i=n.pendingProps,l=n.memoizedProps,o=i.value,te(ol,r._currentValue),r._currentValue=o,l!==null)if(mn(l.value,o)){if(l.children===i.children&&!be.current){n=Fn(e,n,t);break e}}else for(l=n.child,l!==null&&(l.return=n);l!==null;){var u=l.dependencies;if(u!==null){o=l.child;for(var a=u.firstContext;a!==null;){if(a.context===r){if(l.tag===1){a=Ln(-1,t&-t),a.tag=2;var s=l.updateQueue;if(s!==null){s=s.shared;var f=s.pending;f===null?a.next=a:(a.next=f.next,f.next=a),s.pending=a}}l.lanes|=t,a=l.alternate,a!==null&&(a.lanes|=t),uu(l.return,t,n),u.lanes|=t;break}a=a.next}}else if(l.tag===10)o=l.type===n.type?null:l.child;else if(l.tag===18){if(o=l.return,o===null)throw Error(_(341));o.lanes|=t,u=o.alternate,u!==null&&(u.lanes|=t),uu(o,t,n),o=l.sibling}else o=l.child;if(o!==null)o.return=l;else for(o=l;o!==null;){if(o===n){o=null;break}if(l=o.sibling,l!==null){l.return=o.return,o=l;break}o=o.return}l=o}Le(e,n,i.children,t),n=n.child}return n;case 9:return i=n.type,r=n.pendingProps.children,Kt(n,t),i=rn(i),r=r(i),n.flags|=1,Le(e,n,r,t),n.child;case 14:return r=n.type,i=sn(r,n.pendingProps),i=sn(r.type,i),qs(e,n,r,i,t);case 15:return Qp(e,n,n.type,n.pendingProps,t);case 17:return r=n.type,i=n.pendingProps,i=n.elementType===r?i:sn(r,i),Bi(e,n),n.tag=1,je(r)?(e=!0,rl(n)):e=!1,Kt(n,t),Hp(n,r,i),su(n,r,i,t),pu(null,n,r,!0,e,t);case 19:return Gp(e,n,t);case 22:return Kp(e,n,t)}throw Error(_(156,n.tag))};function dd(e,n){return Bf(e,n)}function Xg(e,n,t,r){this.tag=e,this.key=t,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function nn(e,n,t,r){return new Xg(e,n,t,r)}function Ta(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Gg(e){if(typeof e=="function")return Ta(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Wu)return 11;if(e===Qu)return 14}return 2}function Jn(e,n){var t=e.alternate;return t===null?(t=nn(e.tag,n,e.key,e.mode),t.elementType=e.elementType,t.type=e.type,t.stateNode=e.stateNode,t.alternate=e,e.alternate=t):(t.pendingProps=n,t.type=e.type,t.flags=0,t.subtreeFlags=0,t.deletions=null),t.flags=e.flags&14680064,t.childLanes=e.childLanes,t.lanes=e.lanes,t.child=e.child,t.memoizedProps=e.memoizedProps,t.memoizedState=e.memoizedState,t.updateQueue=e.updateQueue,n=e.dependencies,t.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},t.sibling=e.sibling,t.index=e.index,t.ref=e.ref,t}function Hi(e,n,t,r,i,l){var o=2;if(r=e,typeof e=="function")Ta(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Dt:return mt(t.children,i,l,n);case Vu:o=8,i|=8;break;case Ao:return e=nn(12,t,n,i|2),e.elementType=Ao,e.lanes=l,e;case Fo:return e=nn(13,t,n,i),e.elementType=Fo,e.lanes=l,e;case Ro:return e=nn(19,t,n,i),e.elementType=Ro,e.lanes=l,e;case Cf:return Dl(t,i,l,n);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case wf:o=10;break e;case Sf:o=9;break e;case Wu:o=11;break e;case Qu:o=14;break e;case Bn:o=16,r=null;break e}throw Error(_(130,e==null?e:typeof e,""))}return n=nn(o,t,n,i),n.elementType=e,n.type=r,n.lanes=l,n}function mt(e,n,t,r){return e=nn(7,e,r,n),e.lanes=t,e}function Dl(e,n,t,r){return e=nn(22,e,r,n),e.elementType=Cf,e.lanes=t,e.stateNode={isHidden:!1},e}function ho(e,n,t){return e=nn(6,e,null,n),e.lanes=t,e}function mo(e,n,t){return n=nn(4,e.children!==null?e.children:[],e.key,n),n.lanes=t,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}function Zg(e,n,t,r,i){this.tag=n,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Yl(0),this.expirationTimes=Yl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Yl(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function _a(e,n,t,r,i,l,o,u,a){return e=new Zg(e,n,t,u,a),n===1?(n=1,l===!0&&(n|=8)):n=0,l=nn(3,null,null,n),e.current=l,l.stateNode=e,l.memoizedState={element:r,isDehydrated:t,cache:null,transitions:null,pendingSuspenseBoundaries:null},ca(l),e}function Jg(e,n,t){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(yd)}catch(e){console.error(e)}}yd(),yf.exports=qe;var iy=yf.exports,sc=iy;No.createRoot=sc.createRoot,No.hydrateRoot=sc.hydrateRoot;function ly(e,n){const t=n||{};return(e[e.length-1]===""?[...e,""]:e).join((t.padRight?" ":"")+","+(t.padLeft===!1?"":" ")).trim()}const oy=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,uy=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,ay={};function cc(e,n){return((n||ay).jsx?uy:oy).test(e)}const sy=/[ \t\n\f\r]/g;function cy(e){return typeof e=="object"?e.type==="text"?fc(e.value):!1:fc(e)}function fc(e){return e.replace(sy,"")===""}class ui{constructor(n,t,r){this.normal=t,this.property=n,r&&(this.space=r)}}ui.prototype.normal={};ui.prototype.property={};ui.prototype.space=void 0;function kd(e,n){const t={},r={};for(const i of e)Object.assign(t,i.property),Object.assign(r,i.normal);return new ui(t,r,n)}function Eu(e){return e.toLowerCase()}class Ue{constructor(n,t){this.attribute=t,this.property=n}}Ue.prototype.attribute="";Ue.prototype.booleanish=!1;Ue.prototype.boolean=!1;Ue.prototype.commaOrSpaceSeparated=!1;Ue.prototype.commaSeparated=!1;Ue.prototype.defined=!1;Ue.prototype.mustUseProperty=!1;Ue.prototype.number=!1;Ue.prototype.overloadedBoolean=!1;Ue.prototype.property="";Ue.prototype.spaceSeparated=!1;Ue.prototype.space=void 0;let fy=0;const B=Et(),he=Et(),Pu=Et(),I=Et(),ne=Et(),qt=Et(),He=Et();function Et(){return 2**++fy}const Tu=Object.freeze(Object.defineProperty({__proto__:null,boolean:B,booleanish:he,commaOrSpaceSeparated:He,commaSeparated:qt,number:I,overloadedBoolean:Pu,spaceSeparated:ne},Symbol.toStringTag,{value:"Module"})),go=Object.keys(Tu);class Na extends Ue{constructor(n,t,r,i){let l=-1;if(super(n,t),pc(this,"space",i),typeof r=="number")for(;++l4&&t.slice(0,4)==="data"&&gy.test(n)){if(n.charAt(4)==="-"){const l=n.slice(5).replace(dc,vy);r="data"+l.charAt(0).toUpperCase()+l.slice(1)}else{const l=n.slice(4);if(!dc.test(l)){let o=l.replace(my,ky);o.charAt(0)!=="-"&&(o="-"+o),n="data"+o}}i=Na}return new i(r,n)}function ky(e){return"-"+e.toLowerCase()}function vy(e){return e.charAt(1).toUpperCase()}const xy=kd([vd,py,Sd,Cd,Ed],"html"),Da=kd([vd,dy,Sd,Cd,Ed],"svg");function wy(e){return e.join(" ").trim()}var Aa={},hc=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Sy=/\n/g,Cy=/^\s*/,Ey=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Py=/^:\s*/,Ty=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,_y=/^[;\s]*/,zy=/^\s+|\s+$/g,Iy=` -`,mc="/",gc="*",ct="",Ly="comment",Ny="declaration";function Dy(e,n){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];n=n||{};var t=1,r=1;function i(g){var x=g.match(Sy);x&&(t+=x.length);var P=g.lastIndexOf(Iy);r=~P?g.length-P:r+g.length}function l(){var g={line:t,column:r};return function(x){return x.position=new o(g),s(),x}}function o(g){this.start=g,this.end={line:t,column:r},this.source=n.source}o.prototype.content=e;function u(g){var x=new Error(n.source+":"+t+":"+r+": "+g);if(x.reason=g,x.filename=n.source,x.line=t,x.column=r,x.source=e,!n.silent)throw x}function a(g){var x=g.exec(e);if(x){var P=x[0];return i(P),e=e.slice(P.length),x}}function s(){a(Cy)}function f(g){var x;for(g=g||[];x=c();)x!==!1&&g.push(x);return g}function c(){var g=l();if(!(mc!=e.charAt(0)||gc!=e.charAt(1))){for(var x=2;ct!=e.charAt(x)&&(gc!=e.charAt(x)||mc!=e.charAt(x+1));)++x;if(x+=2,ct===e.charAt(x-1))return u("End of comment missing");var P=e.slice(2,x-2);return r+=2,i(P),e=e.slice(x),r+=2,g({type:Ly,comment:P})}}function p(){var g=l(),x=a(Ey);if(x){if(c(),!a(Py))return u("property missing ':'");var P=a(Ty),h=g({type:Ny,property:yc(x[0].replace(hc,ct)),value:P?yc(P[0].replace(hc,ct)):ct});return a(_y),h}}function d(){var g=[];f(g);for(var x;x=p();)x!==!1&&(g.push(x),f(g));return g}return s(),d()}function yc(e){return e?e.replace(zy,ct):ct}var Ay=Dy,Fy=Qi&&Qi.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Aa,"__esModule",{value:!0});Aa.default=Oy;const Ry=Fy(Ay);function Oy(e,n){let t=null;if(!e||typeof e!="string")return t;const r=(0,Ry.default)(e),i=typeof n=="function";return r.forEach(l=>{if(l.type!=="declaration")return;const{property:o,value:u}=l;i?n(o,u,l):u&&(t=t||{},t[o]=u)}),t}var Ml={};Object.defineProperty(Ml,"__esModule",{value:!0});Ml.camelCase=void 0;var My=/^--[a-zA-Z0-9_-]+$/,by=/-([a-z])/g,jy=/^[^-]+$/,By=/^-(webkit|moz|ms|o|khtml)-/,Uy=/^-(ms)-/,$y=function(e){return!e||jy.test(e)||My.test(e)},Hy=function(e,n){return n.toUpperCase()},kc=function(e,n){return"".concat(n,"-")},Vy=function(e,n){return n===void 0&&(n={}),$y(e)?e:(e=e.toLowerCase(),n.reactCompat?e=e.replace(Uy,kc):e=e.replace(By,kc),e.replace(by,Hy))};Ml.camelCase=Vy;var Wy=Qi&&Qi.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},Qy=Wy(Aa),Ky=Ml;function _u(e,n){var t={};return!e||typeof e!="string"||(0,Qy.default)(e,function(r,i){r&&i&&(t[(0,Ky.camelCase)(r,n)]=i)}),t}_u.default=_u;var Yy=_u;const qy=Ou(Yy),Pd=Td("end"),Fa=Td("start");function Td(e){return n;function n(t){const r=t&&t.position&&t.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function Xy(e){const n=Fa(e),t=Pd(e);if(n&&t)return{start:n,end:t}}function Fr(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?vc(e.position):"start"in e||"end"in e?vc(e):"line"in e||"column"in e?zu(e):""}function zu(e){return xc(e&&e.line)+":"+xc(e&&e.column)}function vc(e){return zu(e&&e.start)+"-"+zu(e&&e.end)}function xc(e){return e&&typeof e=="number"?e:1}class Ie extends Error{constructor(n,t,r){super(),typeof t=="string"&&(r=t,t=void 0);let i="",l={},o=!1;if(t&&("line"in t&&"column"in t?l={place:t}:"start"in t&&"end"in t?l={place:t}:"type"in t?l={ancestors:[t],place:t.position}:l={...t}),typeof n=="string"?i=n:!l.cause&&n&&(o=!0,i=n.message,l.cause=n),!l.ruleId&&!l.source&&typeof r=="string"){const a=r.indexOf(":");a===-1?l.ruleId=r:(l.source=r.slice(0,a),l.ruleId=r.slice(a+1))}if(!l.place&&l.ancestors&&l.ancestors){const a=l.ancestors[l.ancestors.length-1];a&&(l.place=a.position)}const u=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=u?u.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=u?u.line:void 0,this.name=Fr(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}}Ie.prototype.file="";Ie.prototype.name="";Ie.prototype.reason="";Ie.prototype.message="";Ie.prototype.stack="";Ie.prototype.column=void 0;Ie.prototype.line=void 0;Ie.prototype.ancestors=void 0;Ie.prototype.cause=void 0;Ie.prototype.fatal=void 0;Ie.prototype.place=void 0;Ie.prototype.ruleId=void 0;Ie.prototype.source=void 0;const Ra={}.hasOwnProperty,Gy=new Map,Zy=/[A-Z]/g,Jy=new Set(["table","tbody","thead","tfoot","tr"]),e1=new Set(["td","th"]),_d="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function n1(e,n){if(!n||n.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const t=n.filePath||void 0;let r;if(n.development){if(typeof n.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=s1(t,n.jsxDEV)}else{if(typeof n.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof n.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=a1(t,n.jsx,n.jsxs)}const i={Fragment:n.Fragment,ancestors:[],components:n.components||{},create:r,elementAttributeNameCase:n.elementAttributeNameCase||"react",evaluater:n.createEvaluater?n.createEvaluater():void 0,filePath:t,ignoreInvalidStyle:n.ignoreInvalidStyle||!1,passKeys:n.passKeys!==!1,passNode:n.passNode||!1,schema:n.space==="svg"?Da:xy,stylePropertyNameCase:n.stylePropertyNameCase||"dom",tableCellAlignToStyle:n.tableCellAlignToStyle!==!1},l=zd(i,e,void 0);return l&&typeof l!="string"?l:i.create(e,i.Fragment,{children:l||void 0},void 0)}function zd(e,n,t){if(n.type==="element")return t1(e,n,t);if(n.type==="mdxFlowExpression"||n.type==="mdxTextExpression")return r1(e,n);if(n.type==="mdxJsxFlowElement"||n.type==="mdxJsxTextElement")return l1(e,n,t);if(n.type==="mdxjsEsm")return i1(e,n);if(n.type==="root")return o1(e,n,t);if(n.type==="text")return u1(e,n)}function t1(e,n,t){const r=e.schema;let i=r;n.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=Da,e.schema=i),e.ancestors.push(n);const l=Ld(e,n.tagName,!1),o=c1(e,n);let u=Ma(e,n);return Jy.has(n.tagName)&&(u=u.filter(function(a){return typeof a=="string"?!cy(a):!0})),Id(e,o,l,n),Oa(o,u),e.ancestors.pop(),e.schema=r,e.create(n,l,o,t)}function r1(e,n){if(n.data&&n.data.estree&&e.evaluater){const r=n.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}ei(e,n.position)}function i1(e,n){if(n.data&&n.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(n.data.estree);ei(e,n.position)}function l1(e,n,t){const r=e.schema;let i=r;n.name==="svg"&&r.space==="html"&&(i=Da,e.schema=i),e.ancestors.push(n);const l=n.name===null?e.Fragment:Ld(e,n.name,!0),o=f1(e,n),u=Ma(e,n);return Id(e,o,l,n),Oa(o,u),e.ancestors.pop(),e.schema=r,e.create(n,l,o,t)}function o1(e,n,t){const r={};return Oa(r,Ma(e,n)),e.create(n,e.Fragment,r,t)}function u1(e,n){return n.value}function Id(e,n,t,r){typeof t!="string"&&t!==e.Fragment&&e.passNode&&(n.node=r)}function Oa(e,n){if(n.length>0){const t=n.length>1?n:n[0];t&&(e.children=t)}}function a1(e,n,t){return r;function r(i,l,o,u){const s=Array.isArray(o.children)?t:n;return u?s(l,o,u):s(l,o)}}function s1(e,n){return t;function t(r,i,l,o){const u=Array.isArray(l.children),a=Fa(r);return n(i,l,o,u,{columnNumber:a?a.column-1:void 0,fileName:e,lineNumber:a?a.line:void 0},void 0)}}function c1(e,n){const t={};let r,i;for(i in n.properties)if(i!=="children"&&Ra.call(n.properties,i)){const l=p1(e,i,n.properties[i]);if(l){const[o,u]=l;e.tableCellAlignToStyle&&o==="align"&&typeof u=="string"&&e1.has(n.tagName)?r=u:t[o]=u}}if(r){const l=t.style||(t.style={});l[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return t}function f1(e,n){const t={};for(const r of n.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const l=r.data.estree.body[0];l.type;const o=l.expression;o.type;const u=o.properties[0];u.type,Object.assign(t,e.evaluater.evaluateExpression(u.argument))}else ei(e,n.position);else{const i=r.name;let l;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const u=r.value.data.estree.body[0];u.type,l=e.evaluater.evaluateExpression(u.expression)}else ei(e,n.position);else l=r.value===null?!0:r.value;t[i]=l}return t}function Ma(e,n){const t=[];let r=-1;const i=e.passKeys?new Map:Gy;for(;++ri?0:i+n:n=n>i?i:n,t=t>0?t:0,r.length<1e4)o=Array.from(r),o.unshift(n,t),e.splice(...o);else for(t&&e.splice(n,t);l0?(Ke(e,e.length,0,n),e):n}const Cc={}.hasOwnProperty;function Dd(e){const n={};let t=-1;for(;++t13&&t<32||t>126&&t<160||t>55295&&t<57344||t>64975&&t<65008||(t&65535)===65535||(t&65535)===65534||t>1114111?"�":String.fromCodePoint(t)}function hn(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Ne=lt(/[A-Za-z]/),_e=lt(/[\dA-Za-z]/),w1=lt(/[#-'*+\--9=?A-Z^-~]/);function yl(e){return e!==null&&(e<32||e===127)}const Iu=lt(/\d/),S1=lt(/[\dA-Fa-f]/),C1=lt(/[!-/:-@[-`{-~]/);function O(e){return e!==null&&e<-2}function J(e){return e!==null&&(e<0||e===32)}function $(e){return e===-2||e===-1||e===32}const bl=lt(/\p{P}|\p{S}/u),wt=lt(/\s/);function lt(e){return n;function n(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function ar(e){const n=[];let t=-1,r=0,i=0;for(;++t55295&&l<57344){const u=e.charCodeAt(t+1);l<56320&&u>56319&&u<57344?(o=String.fromCharCode(l,u),i=1):o="�"}else o=String.fromCharCode(l);o&&(n.push(e.slice(r,t),encodeURIComponent(o)),r=t+i+1,o=""),i&&(t+=i,i=0)}return n.join("")+e.slice(r)}function Q(e,n,t,r){const i=r?r-1:Number.POSITIVE_INFINITY;let l=0;return o;function o(a){return $(a)?(e.enter(t),u(a)):n(a)}function u(a){return $(a)&&l++o))return;const z=n.events.length;let L=z,M,S;for(;L--;)if(n.events[L][0]==="exit"&&n.events[L][1].type==="chunkFlow"){if(M){S=n.events[L][1].end;break}M=!0}for(h(r),w=z;wy;){const T=t[C];n.containerState=T[1],T[0].exit.call(n,e)}t.length=y}function m(){i.write([null]),l=void 0,i=void 0,n.containerState._closeFlow=void 0}}function z1(e,n,t){return Q(e,e.attempt(this.parser.constructs.document,n,t),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function rr(e){if(e===null||J(e)||wt(e))return 1;if(bl(e))return 2}function jl(e,n,t){const r=[];let i=-1;for(;++i1&&e[t][1].end.offset-e[t][1].start.offset>1?2:1;const c={...e[r][1].end},p={...e[t][1].start};Pc(c,-a),Pc(p,a),o={type:a>1?"strongSequence":"emphasisSequence",start:c,end:{...e[r][1].end}},u={type:a>1?"strongSequence":"emphasisSequence",start:{...e[t][1].start},end:p},l={type:a>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[t][1].start}},i={type:a>1?"strong":"emphasis",start:{...o.start},end:{...u.end}},e[r][1].end={...o.start},e[t][1].start={...u.end},s=[],e[r][1].end.offset-e[r][1].start.offset&&(s=Je(s,[["enter",e[r][1],n],["exit",e[r][1],n]])),s=Je(s,[["enter",i,n],["enter",o,n],["exit",o,n],["enter",l,n]]),s=Je(s,jl(n.parser.constructs.insideSpan.null,e.slice(r+1,t),n)),s=Je(s,[["exit",l,n],["enter",u,n],["exit",u,n],["exit",i,n]]),e[t][1].end.offset-e[t][1].start.offset?(f=2,s=Je(s,[["enter",e[t][1],n],["exit",e[t][1],n]])):f=0,Ke(e,r-1,t-r+3,s),t=r+s.length-f-2;break}}for(t=-1;++t0&&$(w)?Q(e,m,"linePrefix",l+1)(w):m(w)}function m(w){return w===null||O(w)?e.check(Tc,x,C)(w):(e.enter("codeFlowValue"),y(w))}function y(w){return w===null||O(w)?(e.exit("codeFlowValue"),m(w)):(e.consume(w),y)}function C(w){return e.exit("codeFenced"),n(w)}function T(w,z,L){let M=0;return S;function S(V){return w.enter("lineEnding"),w.consume(V),w.exit("lineEnding"),A}function A(V){return w.enter("codeFencedFence"),$(V)?Q(w,R,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(V):R(V)}function R(V){return V===u?(w.enter("codeFencedFenceSequence"),K(V)):L(V)}function K(V){return V===u?(M++,w.consume(V),K):M>=o?(w.exit("codeFencedFenceSequence"),$(V)?Q(w,ee,"whitespace")(V):ee(V)):L(V)}function ee(V){return V===null||O(V)?(w.exit("codeFencedFence"),z(V)):L(V)}}}function B1(e,n,t){const r=this;return i;function i(o){return o===null?t(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),l)}function l(o){return r.parser.lazy[r.now().line]?t(o):n(o)}}const ko={name:"codeIndented",tokenize:$1},U1={partial:!0,tokenize:H1};function $1(e,n,t){const r=this;return i;function i(s){return e.enter("codeIndented"),Q(e,l,"linePrefix",4+1)(s)}function l(s){const f=r.events[r.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?o(s):t(s)}function o(s){return s===null?a(s):O(s)?e.attempt(U1,o,a)(s):(e.enter("codeFlowValue"),u(s))}function u(s){return s===null||O(s)?(e.exit("codeFlowValue"),o(s)):(e.consume(s),u)}function a(s){return e.exit("codeIndented"),n(s)}}function H1(e,n,t){const r=this;return i;function i(o){return r.parser.lazy[r.now().line]?t(o):O(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):Q(e,l,"linePrefix",4+1)(o)}function l(o){const u=r.events[r.events.length-1];return u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?n(o):O(o)?i(o):t(o)}}const V1={name:"codeText",previous:Q1,resolve:W1,tokenize:K1};function W1(e){let n=e.length-4,t=3,r,i;if((e[t][1].type==="lineEnding"||e[t][1].type==="space")&&(e[n][1].type==="lineEnding"||e[n][1].type==="space")){for(r=t;++r=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+n+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return nthis.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-n+this.left.length).reverse():this.left.slice(n).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(n,t,r){const i=t||0;this.setCursor(Math.trunc(n));const l=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&vr(this.left,r),l.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(n){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(n)}pushMany(n){this.setCursor(Number.POSITIVE_INFINITY),vr(this.left,n)}unshift(n){this.setCursor(0),this.right.push(n)}unshiftMany(n){this.setCursor(0),vr(this.right,n.reverse())}setCursor(n){if(!(n===this.left.length||n>this.left.length&&this.right.length===0||n<0&&this.left.length===0))if(n=4?n(o):e.interrupt(r.parser.constructs.flow,t,n)(o)}}function bd(e,n,t,r,i,l,o,u,a){const s=a||Number.POSITIVE_INFINITY;let f=0;return c;function c(h){return h===60?(e.enter(r),e.enter(i),e.enter(l),e.consume(h),e.exit(l),p):h===null||h===32||h===41||yl(h)?t(h):(e.enter(r),e.enter(o),e.enter(u),e.enter("chunkString",{contentType:"string"}),x(h))}function p(h){return h===62?(e.enter(l),e.consume(h),e.exit(l),e.exit(i),e.exit(r),n):(e.enter(u),e.enter("chunkString",{contentType:"string"}),d(h))}function d(h){return h===62?(e.exit("chunkString"),e.exit(u),p(h)):h===null||h===60||O(h)?t(h):(e.consume(h),h===92?g:d)}function g(h){return h===60||h===62||h===92?(e.consume(h),d):d(h)}function x(h){return!f&&(h===null||h===41||J(h))?(e.exit("chunkString"),e.exit(u),e.exit(o),e.exit(r),n(h)):f999||d===null||d===91||d===93&&!a||d===94&&!u&&"_hiddenFootnoteSupport"in o.parser.constructs?t(d):d===93?(e.exit(l),e.enter(i),e.consume(d),e.exit(i),e.exit(r),n):O(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),f):(e.enter("chunkString",{contentType:"string"}),c(d))}function c(d){return d===null||d===91||d===93||O(d)||u++>999?(e.exit("chunkString"),f(d)):(e.consume(d),a||(a=!$(d)),d===92?p:c)}function p(d){return d===91||d===92||d===93?(e.consume(d),u++,c):c(d)}}function Bd(e,n,t,r,i,l){let o;return u;function u(p){return p===34||p===39||p===40?(e.enter(r),e.enter(i),e.consume(p),e.exit(i),o=p===40?41:p,a):t(p)}function a(p){return p===o?(e.enter(i),e.consume(p),e.exit(i),e.exit(r),n):(e.enter(l),s(p))}function s(p){return p===o?(e.exit(l),a(o)):p===null?t(p):O(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),Q(e,s,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),f(p))}function f(p){return p===o||p===null||O(p)?(e.exit("chunkString"),s(p)):(e.consume(p),p===92?c:f)}function c(p){return p===o||p===92?(e.consume(p),f):f(p)}}function Rr(e,n){let t;return r;function r(i){return O(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t=!0,r):$(i)?Q(e,r,t?"linePrefix":"lineSuffix")(i):n(i)}}const n0={name:"definition",tokenize:r0},t0={partial:!0,tokenize:i0};function r0(e,n,t){const r=this;let i;return l;function l(d){return e.enter("definition"),o(d)}function o(d){return jd.call(r,e,u,t,"definitionLabel","definitionLabelMarker","definitionLabelString")(d)}function u(d){return i=hn(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),d===58?(e.enter("definitionMarker"),e.consume(d),e.exit("definitionMarker"),a):t(d)}function a(d){return J(d)?Rr(e,s)(d):s(d)}function s(d){return bd(e,f,t,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(d)}function f(d){return e.attempt(t0,c,c)(d)}function c(d){return $(d)?Q(e,p,"whitespace")(d):p(d)}function p(d){return d===null||O(d)?(e.exit("definition"),r.parser.defined.push(i),n(d)):t(d)}}function i0(e,n,t){return r;function r(u){return J(u)?Rr(e,i)(u):t(u)}function i(u){return Bd(e,l,t,"definitionTitle","definitionTitleMarker","definitionTitleString")(u)}function l(u){return $(u)?Q(e,o,"whitespace")(u):o(u)}function o(u){return u===null||O(u)?n(u):t(u)}}const l0={name:"hardBreakEscape",tokenize:o0};function o0(e,n,t){return r;function r(l){return e.enter("hardBreakEscape"),e.consume(l),i}function i(l){return O(l)?(e.exit("hardBreakEscape"),n(l)):t(l)}}const u0={name:"headingAtx",resolve:a0,tokenize:s0};function a0(e,n){let t=e.length-2,r=3,i,l;return e[r][1].type==="whitespace"&&(r+=2),t-2>r&&e[t][1].type==="whitespace"&&(t-=2),e[t][1].type==="atxHeadingSequence"&&(r===t-1||t-4>r&&e[t-2][1].type==="whitespace")&&(t-=r+1===t?2:4),t>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[t][1].end},l={type:"chunkText",start:e[r][1].start,end:e[t][1].end,contentType:"text"},Ke(e,r,t-r+1,[["enter",i,n],["enter",l,n],["exit",l,n],["exit",i,n]])),e}function s0(e,n,t){let r=0;return i;function i(f){return e.enter("atxHeading"),l(f)}function l(f){return e.enter("atxHeadingSequence"),o(f)}function o(f){return f===35&&r++<6?(e.consume(f),o):f===null||J(f)?(e.exit("atxHeadingSequence"),u(f)):t(f)}function u(f){return f===35?(e.enter("atxHeadingSequence"),a(f)):f===null||O(f)?(e.exit("atxHeading"),n(f)):$(f)?Q(e,u,"whitespace")(f):(e.enter("atxHeadingText"),s(f))}function a(f){return f===35?(e.consume(f),a):(e.exit("atxHeadingSequence"),u(f))}function s(f){return f===null||f===35||J(f)?(e.exit("atxHeadingText"),u(f)):(e.consume(f),s)}}const c0=["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"],zc=["pre","script","style","textarea"],f0={concrete:!0,name:"htmlFlow",resolveTo:h0,tokenize:m0},p0={partial:!0,tokenize:y0},d0={partial:!0,tokenize:g0};function h0(e){let n=e.length;for(;n--&&!(e[n][0]==="enter"&&e[n][1].type==="htmlFlow"););return n>1&&e[n-2][1].type==="linePrefix"&&(e[n][1].start=e[n-2][1].start,e[n+1][1].start=e[n-2][1].start,e.splice(n-2,2)),e}function m0(e,n,t){const r=this;let i,l,o,u,a;return s;function s(v){return f(v)}function f(v){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(v),c}function c(v){return v===33?(e.consume(v),p):v===47?(e.consume(v),l=!0,x):v===63?(e.consume(v),i=3,r.interrupt?n:k):Ne(v)?(e.consume(v),o=String.fromCharCode(v),P):t(v)}function p(v){return v===45?(e.consume(v),i=2,d):v===91?(e.consume(v),i=5,u=0,g):Ne(v)?(e.consume(v),i=4,r.interrupt?n:k):t(v)}function d(v){return v===45?(e.consume(v),r.interrupt?n:k):t(v)}function g(v){const ge="CDATA[";return v===ge.charCodeAt(u++)?(e.consume(v),u===ge.length?r.interrupt?n:R:g):t(v)}function x(v){return Ne(v)?(e.consume(v),o=String.fromCharCode(v),P):t(v)}function P(v){if(v===null||v===47||v===62||J(v)){const ge=v===47,on=o.toLowerCase();return!ge&&!l&&zc.includes(on)?(i=1,r.interrupt?n(v):R(v)):c0.includes(o.toLowerCase())?(i=6,ge?(e.consume(v),h):r.interrupt?n(v):R(v)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?t(v):l?m(v):y(v))}return v===45||_e(v)?(e.consume(v),o+=String.fromCharCode(v),P):t(v)}function h(v){return v===62?(e.consume(v),r.interrupt?n:R):t(v)}function m(v){return $(v)?(e.consume(v),m):S(v)}function y(v){return v===47?(e.consume(v),S):v===58||v===95||Ne(v)?(e.consume(v),C):$(v)?(e.consume(v),y):S(v)}function C(v){return v===45||v===46||v===58||v===95||_e(v)?(e.consume(v),C):T(v)}function T(v){return v===61?(e.consume(v),w):$(v)?(e.consume(v),T):y(v)}function w(v){return v===null||v===60||v===61||v===62||v===96?t(v):v===34||v===39?(e.consume(v),a=v,z):$(v)?(e.consume(v),w):L(v)}function z(v){return v===a?(e.consume(v),a=null,M):v===null||O(v)?t(v):(e.consume(v),z)}function L(v){return v===null||v===34||v===39||v===47||v===60||v===61||v===62||v===96||J(v)?T(v):(e.consume(v),L)}function M(v){return v===47||v===62||$(v)?y(v):t(v)}function S(v){return v===62?(e.consume(v),A):t(v)}function A(v){return v===null||O(v)?R(v):$(v)?(e.consume(v),A):t(v)}function R(v){return v===45&&i===2?(e.consume(v),de):v===60&&i===1?(e.consume(v),fe):v===62&&i===4?(e.consume(v),Y):v===63&&i===3?(e.consume(v),k):v===93&&i===5?(e.consume(v),b):O(v)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(p0,G,K)(v)):v===null||O(v)?(e.exit("htmlFlowData"),K(v)):(e.consume(v),R)}function K(v){return e.check(d0,ee,G)(v)}function ee(v){return e.enter("lineEnding"),e.consume(v),e.exit("lineEnding"),V}function V(v){return v===null||O(v)?K(v):(e.enter("htmlFlowData"),R(v))}function de(v){return v===45?(e.consume(v),k):R(v)}function fe(v){return v===47?(e.consume(v),o="",D):R(v)}function D(v){if(v===62){const ge=o.toLowerCase();return zc.includes(ge)?(e.consume(v),Y):R(v)}return Ne(v)&&o.length<8?(e.consume(v),o+=String.fromCharCode(v),D):R(v)}function b(v){return v===93?(e.consume(v),k):R(v)}function k(v){return v===62?(e.consume(v),Y):v===45&&i===2?(e.consume(v),k):R(v)}function Y(v){return v===null||O(v)?(e.exit("htmlFlowData"),G(v)):(e.consume(v),Y)}function G(v){return e.exit("htmlFlow"),n(v)}}function g0(e,n,t){const r=this;return i;function i(o){return O(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),l):t(o)}function l(o){return r.parser.lazy[r.now().line]?t(o):n(o)}}function y0(e,n,t){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(ai,n,t)}}const k0={name:"htmlText",tokenize:v0};function v0(e,n,t){const r=this;let i,l,o;return u;function u(k){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(k),a}function a(k){return k===33?(e.consume(k),s):k===47?(e.consume(k),T):k===63?(e.consume(k),y):Ne(k)?(e.consume(k),L):t(k)}function s(k){return k===45?(e.consume(k),f):k===91?(e.consume(k),l=0,g):Ne(k)?(e.consume(k),m):t(k)}function f(k){return k===45?(e.consume(k),d):t(k)}function c(k){return k===null?t(k):k===45?(e.consume(k),p):O(k)?(o=c,fe(k)):(e.consume(k),c)}function p(k){return k===45?(e.consume(k),d):c(k)}function d(k){return k===62?de(k):k===45?p(k):c(k)}function g(k){const Y="CDATA[";return k===Y.charCodeAt(l++)?(e.consume(k),l===Y.length?x:g):t(k)}function x(k){return k===null?t(k):k===93?(e.consume(k),P):O(k)?(o=x,fe(k)):(e.consume(k),x)}function P(k){return k===93?(e.consume(k),h):x(k)}function h(k){return k===62?de(k):k===93?(e.consume(k),h):x(k)}function m(k){return k===null||k===62?de(k):O(k)?(o=m,fe(k)):(e.consume(k),m)}function y(k){return k===null?t(k):k===63?(e.consume(k),C):O(k)?(o=y,fe(k)):(e.consume(k),y)}function C(k){return k===62?de(k):y(k)}function T(k){return Ne(k)?(e.consume(k),w):t(k)}function w(k){return k===45||_e(k)?(e.consume(k),w):z(k)}function z(k){return O(k)?(o=z,fe(k)):$(k)?(e.consume(k),z):de(k)}function L(k){return k===45||_e(k)?(e.consume(k),L):k===47||k===62||J(k)?M(k):t(k)}function M(k){return k===47?(e.consume(k),de):k===58||k===95||Ne(k)?(e.consume(k),S):O(k)?(o=M,fe(k)):$(k)?(e.consume(k),M):de(k)}function S(k){return k===45||k===46||k===58||k===95||_e(k)?(e.consume(k),S):A(k)}function A(k){return k===61?(e.consume(k),R):O(k)?(o=A,fe(k)):$(k)?(e.consume(k),A):M(k)}function R(k){return k===null||k===60||k===61||k===62||k===96?t(k):k===34||k===39?(e.consume(k),i=k,K):O(k)?(o=R,fe(k)):$(k)?(e.consume(k),R):(e.consume(k),ee)}function K(k){return k===i?(e.consume(k),i=void 0,V):k===null?t(k):O(k)?(o=K,fe(k)):(e.consume(k),K)}function ee(k){return k===null||k===34||k===39||k===60||k===61||k===96?t(k):k===47||k===62||J(k)?M(k):(e.consume(k),ee)}function V(k){return k===47||k===62||J(k)?M(k):t(k)}function de(k){return k===62?(e.consume(k),e.exit("htmlTextData"),e.exit("htmlText"),n):t(k)}function fe(k){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),D}function D(k){return $(k)?Q(e,b,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(k):b(k)}function b(k){return e.enter("htmlTextData"),o(k)}}const Ba={name:"labelEnd",resolveAll:C0,resolveTo:E0,tokenize:P0},x0={tokenize:T0},w0={tokenize:_0},S0={tokenize:z0};function C0(e){let n=-1;const t=[];for(;++n=3&&(s===null||O(s))?(e.exit("thematicBreak"),n(s)):t(s)}function a(s){return s===i?(e.consume(s),r++,a):(e.exit("thematicBreakSequence"),$(s)?Q(e,u,"whitespace")(s):u(s))}}const Re={continuation:{tokenize:b0},exit:B0,name:"list",tokenize:M0},R0={partial:!0,tokenize:U0},O0={partial:!0,tokenize:j0};function M0(e,n,t){const r=this,i=r.events[r.events.length-1];let l=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,o=0;return u;function u(d){const g=r.containerState.type||(d===42||d===43||d===45?"listUnordered":"listOrdered");if(g==="listUnordered"?!r.containerState.marker||d===r.containerState.marker:Iu(d)){if(r.containerState.type||(r.containerState.type=g,e.enter(g,{_container:!0})),g==="listUnordered")return e.enter("listItemPrefix"),d===42||d===45?e.check(Vi,t,s)(d):s(d);if(!r.interrupt||d===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),a(d)}return t(d)}function a(d){return Iu(d)&&++o<10?(e.consume(d),a):(!r.interrupt||o<2)&&(r.containerState.marker?d===r.containerState.marker:d===41||d===46)?(e.exit("listItemValue"),s(d)):t(d)}function s(d){return e.enter("listItemMarker"),e.consume(d),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||d,e.check(ai,r.interrupt?t:f,e.attempt(R0,p,c))}function f(d){return r.containerState.initialBlankLine=!0,l++,p(d)}function c(d){return $(d)?(e.enter("listItemPrefixWhitespace"),e.consume(d),e.exit("listItemPrefixWhitespace"),p):t(d)}function p(d){return r.containerState.size=l+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,n(d)}}function b0(e,n,t){const r=this;return r.containerState._closeFlow=void 0,e.check(ai,i,l);function i(u){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Q(e,n,"listItemIndent",r.containerState.size+1)(u)}function l(u){return r.containerState.furtherBlankLines||!$(u)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(u)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(O0,n,o)(u))}function o(u){return r.containerState._closeFlow=!0,r.interrupt=void 0,Q(e,e.attempt(Re,n,t),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(u)}}function j0(e,n,t){const r=this;return Q(e,i,"listItemIndent",r.containerState.size+1);function i(l){const o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?n(l):t(l)}}function B0(e){e.exit(this.containerState.type)}function U0(e,n,t){const r=this;return Q(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4+1);function i(l){const o=r.events[r.events.length-1];return!$(l)&&o&&o[1].type==="listItemPrefixWhitespace"?n(l):t(l)}}const Ic={name:"setextUnderline",resolveTo:$0,tokenize:H0};function $0(e,n){let t=e.length,r,i,l;for(;t--;)if(e[t][0]==="enter"){if(e[t][1].type==="content"){r=t;break}e[t][1].type==="paragraph"&&(i=t)}else e[t][1].type==="content"&&e.splice(t,1),!l&&e[t][1].type==="definition"&&(l=t);const o={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",l?(e.splice(i,0,["enter",o,n]),e.splice(l+1,0,["exit",e[r][1],n]),e[r][1].end={...e[l][1].end}):e[r][1]=o,e.push(["exit",o,n]),e}function H0(e,n,t){const r=this;let i;return l;function l(s){let f=r.events.length,c;for(;f--;)if(r.events[f][1].type!=="lineEnding"&&r.events[f][1].type!=="linePrefix"&&r.events[f][1].type!=="content"){c=r.events[f][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||c)?(e.enter("setextHeadingLine"),i=s,o(s)):t(s)}function o(s){return e.enter("setextHeadingLineSequence"),u(s)}function u(s){return s===i?(e.consume(s),u):(e.exit("setextHeadingLineSequence"),$(s)?Q(e,a,"lineSuffix")(s):a(s))}function a(s){return s===null||O(s)?(e.exit("setextHeadingLine"),n(s)):t(s)}}const V0={tokenize:W0};function W0(e){const n=this,t=e.attempt(ai,r,e.attempt(this.parser.constructs.flowInitial,i,Q(e,e.attempt(this.parser.constructs.flow,i,e.attempt(X1,i)),"linePrefix")));return t;function r(l){if(l===null){e.consume(l);return}return e.enter("lineEndingBlank"),e.consume(l),e.exit("lineEndingBlank"),n.currentConstruct=void 0,t}function i(l){if(l===null){e.consume(l);return}return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),n.currentConstruct=void 0,t}}const Q0={resolveAll:$d()},K0=Ud("string"),Y0=Ud("text");function Ud(e){return{resolveAll:$d(e==="text"?q0:void 0),tokenize:n};function n(t){const r=this,i=this.parser.constructs[e],l=t.attempt(i,o,u);return o;function o(f){return s(f)?l(f):u(f)}function u(f){if(f===null){t.consume(f);return}return t.enter("data"),t.consume(f),a}function a(f){return s(f)?(t.exit("data"),l(f)):(t.consume(f),a)}function s(f){if(f===null)return!0;const c=i[f];let p=-1;if(c)for(;++p-1){const u=o[0];typeof u=="string"?o[0]=u.slice(r):o.shift()}l>0&&o.push(e[i].slice(0,l))}return o}function ak(e,n){let t=-1;const r=[];let i;for(;++t<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(t,{is:r.is}):(e=o.createElement(t),t==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,t),e[xn]=n,e[Kr]=r,Zp(e,n,!1,!1),n.stateNode=e;e:{switch(o=Ho(t,r),t){case"dialog":ie("cancel",e),ie("close",e),i=r;break;case"iframe":case"object":case"embed":ie("load",e),i=r;break;case"video":case"audio":for(i=0;itr&&(n.flags|=128,r=!0,yr(l,!1),n.lanes=4194304)}else{if(!r)if(e=sl(o),e!==null){if(n.flags|=128,r=!0,t=e.updateQueue,t!==null&&(n.updateQueue=t,n.flags|=4),yr(l,!0),l.tail===null&&l.tailMode==="hidden"&&!o.alternate&&!oe)return Pe(n),null}else 2*pe()-l.renderingStartTime>tr&&t!==1073741824&&(n.flags|=128,r=!0,yr(l,!1),n.lanes=4194304);l.isBackwards?(o.sibling=n.child,n.child=o):(t=l.last,t!==null?t.sibling=o:n.child=o,l.last=o)}return l.tail!==null?(n=l.tail,l.rendering=n,l.tail=n.sibling,l.renderingStartTime=pe(),n.sibling=null,t=ue.current,te(ue,r?t&1|2:t&1),n):(Pe(n),null);case 22:case 23:return Ea(),r=n.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(n.flags|=8192),r&&n.mode&1?Ve&1073741824&&(Pe(n),n.subtreeFlags&6&&(n.flags|=8192)):Pe(n),null;case 24:return null;case 25:return null}throw Error(_(156,n.tag))}function bg(e,n){switch(ia(n),n.tag){case 1:return je(n.type)&&tl(),e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 3:return er(),le(be),le(ze),da(),e=n.flags,e&65536&&!(e&128)?(n.flags=e&-65537|128,n):null;case 5:return pa(n),null;case 13:if(le(ue),e=n.memoizedState,e!==null&&e.dehydrated!==null){if(n.alternate===null)throw Error(_(340));Zt()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 19:return le(ue),null;case 4:return er(),null;case 10:return aa(n.type._context),null;case 22:case 23:return Ea(),null;case 24:return null;default:return null}}var Pi=!1,Te=!1,jg=typeof WeakSet=="function"?WeakSet:Set,F=null;function Ut(e,n){var t=e.ref;if(t!==null)if(typeof t=="function")try{t(null)}catch(r){ce(e,n,r)}else t.current=null}function gu(e,n,t){try{t()}catch(r){ce(e,n,r)}}var Js=!1;function Bg(e,n){if(Jo=Zi,e=lp(),ta(e)){if("selectionStart"in e)var t={start:e.selectionStart,end:e.selectionEnd};else e:{t=(t=e.ownerDocument)&&t.defaultView||window;var r=t.getSelection&&t.getSelection();if(r&&r.rangeCount!==0){t=r.anchorNode;var i=r.anchorOffset,l=r.focusNode;r=r.focusOffset;try{t.nodeType,l.nodeType}catch{t=null;break e}var o=0,u=-1,a=-1,s=0,f=0,c=e,p=null;n:for(;;){for(var d;c!==t||i!==0&&c.nodeType!==3||(u=o+i),c!==l||r!==0&&c.nodeType!==3||(a=o+r),c.nodeType===3&&(o+=c.nodeValue.length),(d=c.firstChild)!==null;)p=c,c=d;for(;;){if(c===e)break n;if(p===t&&++s===i&&(u=o),p===l&&++f===r&&(a=o),(d=c.nextSibling)!==null)break;c=p,p=c.parentNode}c=d}t=u===-1||a===-1?null:{start:u,end:a}}else t=null}t=t||{start:0,end:0}}else t=null;for(eu={focusedElem:e,selectionRange:t},Zi=!1,F=n;F!==null;)if(n=F,e=n.child,(n.subtreeFlags&1028)!==0&&e!==null)e.return=n,F=e;else for(;F!==null;){n=F;try{var m=n.alternate;if(n.flags&1024)switch(n.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var v=m.memoizedProps,P=m.memoizedState,h=n.stateNode,g=h.getSnapshotBeforeUpdate(n.elementType===n.type?v:sn(n.type,v),P);h.__reactInternalSnapshotBeforeUpdate=g}break;case 3:var y=n.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(_(163))}}catch(C){ce(n,n.return,C)}if(e=n.sibling,e!==null){e.return=n.return,F=e;break}F=n.return}return m=Js,Js=!1,m}function Nr(e,n,t){var r=n.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var l=i.destroy;i.destroy=void 0,l!==void 0&&gu(n,t,l)}i=i.next}while(i!==r)}}function Ll(e,n){if(n=n.updateQueue,n=n!==null?n.lastEffect:null,n!==null){var t=n=n.next;do{if((t.tag&e)===e){var r=t.create;t.destroy=r()}t=t.next}while(t!==n)}}function yu(e){var n=e.ref;if(n!==null){var t=e.stateNode;switch(e.tag){case 5:e=t;break;default:e=t}typeof n=="function"?n(e):n.current=e}}function nd(e){var n=e.alternate;n!==null&&(e.alternate=null,nd(n)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(n=e.stateNode,n!==null&&(delete n[xn],delete n[Kr],delete n[ru],delete n[Sg],delete n[Cg])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function td(e){return e.tag===5||e.tag===3||e.tag===4}function ec(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||td(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function ku(e,n,t){var r=e.tag;if(r===5||r===6)e=e.stateNode,n?t.nodeType===8?t.parentNode.insertBefore(e,n):t.insertBefore(e,n):(t.nodeType===8?(n=t.parentNode,n.insertBefore(e,t)):(n=t,n.appendChild(e)),t=t._reactRootContainer,t!=null||n.onclick!==null||(n.onclick=nl));else if(r!==4&&(e=e.child,e!==null))for(ku(e,n,t),e=e.sibling;e!==null;)ku(e,n,t),e=e.sibling}function vu(e,n,t){var r=e.tag;if(r===5||r===6)e=e.stateNode,n?t.insertBefore(e,n):t.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(vu(e,n,t),e=e.sibling;e!==null;)vu(e,n,t),e=e.sibling}var we=null,cn=!1;function bn(e,n,t){for(t=t.child;t!==null;)rd(e,n,t),t=t.sibling}function rd(e,n,t){if(wn&&typeof wn.onCommitFiberUnmount=="function")try{wn.onCommitFiberUnmount(Sl,t)}catch{}switch(t.tag){case 5:Te||Ut(t,n);case 6:var r=we,i=cn;we=null,bn(e,n,t),we=r,cn=i,we!==null&&(cn?(e=we,t=t.stateNode,e.nodeType===8?e.parentNode.removeChild(t):e.removeChild(t)):we.removeChild(t.stateNode));break;case 18:we!==null&&(cn?(e=we,t=t.stateNode,e.nodeType===8?lo(e.parentNode,t):e.nodeType===1&&lo(e,t),$r(e)):lo(we,t.stateNode));break;case 4:r=we,i=cn,we=t.stateNode.containerInfo,cn=!0,bn(e,n,t),we=r,cn=i;break;case 0:case 11:case 14:case 15:if(!Te&&(r=t.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var l=i,o=l.destroy;l=l.tag,o!==void 0&&(l&2||l&4)&&gu(t,n,o),i=i.next}while(i!==r)}bn(e,n,t);break;case 1:if(!Te&&(Ut(t,n),r=t.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=t.memoizedProps,r.state=t.memoizedState,r.componentWillUnmount()}catch(u){ce(t,n,u)}bn(e,n,t);break;case 21:bn(e,n,t);break;case 22:t.mode&1?(Te=(r=Te)||t.memoizedState!==null,bn(e,n,t),Te=r):bn(e,n,t);break;default:bn(e,n,t)}}function nc(e){var n=e.updateQueue;if(n!==null){e.updateQueue=null;var t=e.stateNode;t===null&&(t=e.stateNode=new jg),n.forEach(function(r){var i=qg.bind(null,e,r);t.has(r)||(t.add(r),r.then(i,i))})}}function an(e,n){var t=n.deletions;if(t!==null)for(var r=0;ri&&(i=o),r&=~l}if(r=i,r=pe()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*$g(r/1960))-r,10e?16:e,Wn===null)var r=!1;else{if(e=Wn,Wn=null,hl=0,q&6)throw Error(_(331));var i=q;for(q|=4,F=e.current;F!==null;){var l=F,o=l.child;if(F.flags&16){var u=l.deletions;if(u!==null){for(var a=0;ape()-Sa?ht(e,0):wa|=t),Be(e,n)}function fd(e,n){n===0&&(e.mode&1?(n=gi,gi<<=1,!(gi&130023424)&&(gi=4194304)):n=1);var t=De();e=An(e,n),e!==null&&(ri(e,n,t),Be(e,t))}function Yg(e){var n=e.memoizedState,t=0;n!==null&&(t=n.retryLane),fd(e,t)}function qg(e,n){var t=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(t=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(_(314))}r!==null&&r.delete(n),fd(e,t)}var pd;pd=function(e,n,t){if(e!==null)if(e.memoizedProps!==n.pendingProps||be.current)Me=!0;else{if(!(e.lanes&t)&&!(n.flags&128))return Me=!1,Og(e,n,t);Me=!!(e.flags&131072)}else Me=!1,oe&&n.flags&1048576&&gp(n,ll,n.index);switch(n.lanes=0,n.tag){case 2:var r=n.type;Bi(e,n),e=n.pendingProps;var i=Gt(n,ze.current);Kt(n,t),i=ma(null,n,r,e,i,t);var l=ga();return n.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(n.tag=1,n.memoizedState=null,n.updateQueue=null,je(r)?(l=!0,rl(n)):l=!1,n.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,ca(n),i.updater=Il,n.stateNode=i,i._reactInternals=n,su(n,r,e,t),n=pu(null,n,r,!0,l,t)):(n.tag=0,oe&&l&&ra(n),Le(null,n,i,t),n=n.child),n;case 16:r=n.elementType;e:{switch(Bi(e,n),e=n.pendingProps,i=r._init,r=i(r._payload),n.type=r,i=n.tag=Gg(r),e=sn(r,e),i){case 0:n=fu(null,n,r,e,t);break e;case 1:n=Xs(null,n,r,e,t);break e;case 11:n=Ys(null,n,r,e,t);break e;case 14:n=qs(null,n,r,sn(r.type,e),t);break e}throw Error(_(306,r,""))}return n;case 0:return r=n.type,i=n.pendingProps,i=n.elementType===r?i:sn(r,i),fu(e,n,r,i,t);case 1:return r=n.type,i=n.pendingProps,i=n.elementType===r?i:sn(r,i),Xs(e,n,r,i,t);case 3:e:{if(qp(n),e===null)throw Error(_(387));r=n.pendingProps,l=n.memoizedState,i=l.element,Sp(e,n),al(n,r,null,t);var o=n.memoizedState;if(r=o.element,l.isDehydrated)if(l={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},n.updateQueue.baseState=l,n.memoizedState=l,n.flags&256){i=nr(Error(_(423)),n),n=Gs(e,n,r,t,i);break e}else if(r!==i){i=nr(Error(_(424)),n),n=Gs(e,n,r,t,i);break e}else for(Qe=qn(n.stateNode.containerInfo.firstChild),Ke=n,oe=!0,fn=null,t=xp(n,null,r,t),n.child=t;t;)t.flags=t.flags&-3|4096,t=t.sibling;else{if(Zt(),r===i){n=Fn(e,n,t);break e}Le(e,n,r,t)}n=n.child}return n;case 5:return Cp(n),e===null&&ou(n),r=n.type,i=n.pendingProps,l=e!==null?e.memoizedProps:null,o=i.children,nu(r,i)?o=null:l!==null&&nu(r,l)&&(n.flags|=32),Yp(e,n),Le(e,n,o,t),n.child;case 6:return e===null&&ou(n),null;case 13:return Xp(e,n,t);case 4:return fa(n,n.stateNode.containerInfo),r=n.pendingProps,e===null?n.child=Jt(n,null,r,t):Le(e,n,r,t),n.child;case 11:return r=n.type,i=n.pendingProps,i=n.elementType===r?i:sn(r,i),Ys(e,n,r,i,t);case 7:return Le(e,n,n.pendingProps,t),n.child;case 8:return Le(e,n,n.pendingProps.children,t),n.child;case 12:return Le(e,n,n.pendingProps.children,t),n.child;case 10:e:{if(r=n.type._context,i=n.pendingProps,l=n.memoizedProps,o=i.value,te(ol,r._currentValue),r._currentValue=o,l!==null)if(mn(l.value,o)){if(l.children===i.children&&!be.current){n=Fn(e,n,t);break e}}else for(l=n.child,l!==null&&(l.return=n);l!==null;){var u=l.dependencies;if(u!==null){o=l.child;for(var a=u.firstContext;a!==null;){if(a.context===r){if(l.tag===1){a=Ln(-1,t&-t),a.tag=2;var s=l.updateQueue;if(s!==null){s=s.shared;var f=s.pending;f===null?a.next=a:(a.next=f.next,f.next=a),s.pending=a}}l.lanes|=t,a=l.alternate,a!==null&&(a.lanes|=t),uu(l.return,t,n),u.lanes|=t;break}a=a.next}}else if(l.tag===10)o=l.type===n.type?null:l.child;else if(l.tag===18){if(o=l.return,o===null)throw Error(_(341));o.lanes|=t,u=o.alternate,u!==null&&(u.lanes|=t),uu(o,t,n),o=l.sibling}else o=l.child;if(o!==null)o.return=l;else for(o=l;o!==null;){if(o===n){o=null;break}if(l=o.sibling,l!==null){l.return=o.return,o=l;break}o=o.return}l=o}Le(e,n,i.children,t),n=n.child}return n;case 9:return i=n.type,r=n.pendingProps.children,Kt(n,t),i=rn(i),r=r(i),n.flags|=1,Le(e,n,r,t),n.child;case 14:return r=n.type,i=sn(r,n.pendingProps),i=sn(r.type,i),qs(e,n,r,i,t);case 15:return Qp(e,n,n.type,n.pendingProps,t);case 17:return r=n.type,i=n.pendingProps,i=n.elementType===r?i:sn(r,i),Bi(e,n),n.tag=1,je(r)?(e=!0,rl(n)):e=!1,Kt(n,t),Hp(n,r,i),su(n,r,i,t),pu(null,n,r,!0,e,t);case 19:return Gp(e,n,t);case 22:return Kp(e,n,t)}throw Error(_(156,n.tag))};function dd(e,n){return Bf(e,n)}function Xg(e,n,t,r){this.tag=e,this.key=t,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function nn(e,n,t,r){return new Xg(e,n,t,r)}function Ta(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Gg(e){if(typeof e=="function")return Ta(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Wu)return 11;if(e===Qu)return 14}return 2}function Jn(e,n){var t=e.alternate;return t===null?(t=nn(e.tag,n,e.key,e.mode),t.elementType=e.elementType,t.type=e.type,t.stateNode=e.stateNode,t.alternate=e,e.alternate=t):(t.pendingProps=n,t.type=e.type,t.flags=0,t.subtreeFlags=0,t.deletions=null),t.flags=e.flags&14680064,t.childLanes=e.childLanes,t.lanes=e.lanes,t.child=e.child,t.memoizedProps=e.memoizedProps,t.memoizedState=e.memoizedState,t.updateQueue=e.updateQueue,n=e.dependencies,t.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},t.sibling=e.sibling,t.index=e.index,t.ref=e.ref,t}function Hi(e,n,t,r,i,l){var o=2;if(r=e,typeof e=="function")Ta(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Dt:return mt(t.children,i,l,n);case Vu:o=8,i|=8;break;case Ao:return e=nn(12,t,n,i|2),e.elementType=Ao,e.lanes=l,e;case Fo:return e=nn(13,t,n,i),e.elementType=Fo,e.lanes=l,e;case Ro:return e=nn(19,t,n,i),e.elementType=Ro,e.lanes=l,e;case Cf:return Dl(t,i,l,n);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case wf:o=10;break e;case Sf:o=9;break e;case Wu:o=11;break e;case Qu:o=14;break e;case Bn:o=16,r=null;break e}throw Error(_(130,e==null?e:typeof e,""))}return n=nn(o,t,n,i),n.elementType=e,n.type=r,n.lanes=l,n}function mt(e,n,t,r){return e=nn(7,e,r,n),e.lanes=t,e}function Dl(e,n,t,r){return e=nn(22,e,r,n),e.elementType=Cf,e.lanes=t,e.stateNode={isHidden:!1},e}function ho(e,n,t){return e=nn(6,e,null,n),e.lanes=t,e}function mo(e,n,t){return n=nn(4,e.children!==null?e.children:[],e.key,n),n.lanes=t,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}function Zg(e,n,t,r,i){this.tag=n,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Yl(0),this.expirationTimes=Yl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Yl(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function _a(e,n,t,r,i,l,o,u,a){return e=new Zg(e,n,t,u,a),n===1?(n=1,l===!0&&(n|=8)):n=0,l=nn(3,null,null,n),e.current=l,l.stateNode=e,l.memoizedState={element:r,isDehydrated:t,cache:null,transitions:null,pendingSuspenseBoundaries:null},ca(l),e}function Jg(e,n,t){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(yd)}catch(e){console.error(e)}}yd(),yf.exports=Xe;var iy=yf.exports,sc=iy;No.createRoot=sc.createRoot,No.hydrateRoot=sc.hydrateRoot;function ly(e,n){const t=n||{};return(e[e.length-1]===""?[...e,""]:e).join((t.padRight?" ":"")+","+(t.padLeft===!1?"":" ")).trim()}const oy=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,uy=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,ay={};function cc(e,n){return((n||ay).jsx?uy:oy).test(e)}const sy=/[ \t\n\f\r]/g;function cy(e){return typeof e=="object"?e.type==="text"?fc(e.value):!1:fc(e)}function fc(e){return e.replace(sy,"")===""}class ui{constructor(n,t,r){this.normal=t,this.property=n,r&&(this.space=r)}}ui.prototype.normal={};ui.prototype.property={};ui.prototype.space=void 0;function kd(e,n){const t={},r={};for(const i of e)Object.assign(t,i.property),Object.assign(r,i.normal);return new ui(t,r,n)}function Eu(e){return e.toLowerCase()}class Ue{constructor(n,t){this.attribute=t,this.property=n}}Ue.prototype.attribute="";Ue.prototype.booleanish=!1;Ue.prototype.boolean=!1;Ue.prototype.commaOrSpaceSeparated=!1;Ue.prototype.commaSeparated=!1;Ue.prototype.defined=!1;Ue.prototype.mustUseProperty=!1;Ue.prototype.number=!1;Ue.prototype.overloadedBoolean=!1;Ue.prototype.property="";Ue.prototype.spaceSeparated=!1;Ue.prototype.space=void 0;let fy=0;const B=Et(),he=Et(),Pu=Et(),I=Et(),ne=Et(),qt=Et(),He=Et();function Et(){return 2**++fy}const Tu=Object.freeze(Object.defineProperty({__proto__:null,boolean:B,booleanish:he,commaOrSpaceSeparated:He,commaSeparated:qt,number:I,overloadedBoolean:Pu,spaceSeparated:ne},Symbol.toStringTag,{value:"Module"})),go=Object.keys(Tu);class Na extends Ue{constructor(n,t,r,i){let l=-1;if(super(n,t),pc(this,"space",i),typeof r=="number")for(;++l4&&t.slice(0,4)==="data"&&gy.test(n)){if(n.charAt(4)==="-"){const l=n.slice(5).replace(dc,vy);r="data"+l.charAt(0).toUpperCase()+l.slice(1)}else{const l=n.slice(4);if(!dc.test(l)){let o=l.replace(my,ky);o.charAt(0)!=="-"&&(o="-"+o),n="data"+o}}i=Na}return new i(r,n)}function ky(e){return"-"+e.toLowerCase()}function vy(e){return e.charAt(1).toUpperCase()}const xy=kd([vd,py,Sd,Cd,Ed],"html"),Da=kd([vd,dy,Sd,Cd,Ed],"svg");function wy(e){return e.join(" ").trim()}var Aa={},hc=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Sy=/\n/g,Cy=/^\s*/,Ey=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Py=/^:\s*/,Ty=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,_y=/^[;\s]*/,zy=/^\s+|\s+$/g,Iy=` +`,mc="/",gc="*",ct="",Ly="comment",Ny="declaration";function Dy(e,n){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];n=n||{};var t=1,r=1;function i(m){var v=m.match(Sy);v&&(t+=v.length);var P=m.lastIndexOf(Iy);r=~P?m.length-P:r+m.length}function l(){var m={line:t,column:r};return function(v){return v.position=new o(m),s(),v}}function o(m){this.start=m,this.end={line:t,column:r},this.source=n.source}o.prototype.content=e;function u(m){var v=new Error(n.source+":"+t+":"+r+": "+m);if(v.reason=m,v.filename=n.source,v.line=t,v.column=r,v.source=e,!n.silent)throw v}function a(m){var v=m.exec(e);if(v){var P=v[0];return i(P),e=e.slice(P.length),v}}function s(){a(Cy)}function f(m){var v;for(m=m||[];v=c();)v!==!1&&m.push(v);return m}function c(){var m=l();if(!(mc!=e.charAt(0)||gc!=e.charAt(1))){for(var v=2;ct!=e.charAt(v)&&(gc!=e.charAt(v)||mc!=e.charAt(v+1));)++v;if(v+=2,ct===e.charAt(v-1))return u("End of comment missing");var P=e.slice(2,v-2);return r+=2,i(P),e=e.slice(v),r+=2,m({type:Ly,comment:P})}}function p(){var m=l(),v=a(Ey);if(v){if(c(),!a(Py))return u("property missing ':'");var P=a(Ty),h=m({type:Ny,property:yc(v[0].replace(hc,ct)),value:P?yc(P[0].replace(hc,ct)):ct});return a(_y),h}}function d(){var m=[];f(m);for(var v;v=p();)v!==!1&&(m.push(v),f(m));return m}return s(),d()}function yc(e){return e?e.replace(zy,ct):ct}var Ay=Dy,Fy=Qi&&Qi.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Aa,"__esModule",{value:!0});Aa.default=Oy;const Ry=Fy(Ay);function Oy(e,n){let t=null;if(!e||typeof e!="string")return t;const r=(0,Ry.default)(e),i=typeof n=="function";return r.forEach(l=>{if(l.type!=="declaration")return;const{property:o,value:u}=l;i?n(o,u,l):u&&(t=t||{},t[o]=u)}),t}var Ml={};Object.defineProperty(Ml,"__esModule",{value:!0});Ml.camelCase=void 0;var My=/^--[a-zA-Z0-9_-]+$/,by=/-([a-z])/g,jy=/^[^-]+$/,By=/^-(webkit|moz|ms|o|khtml)-/,Uy=/^-(ms)-/,$y=function(e){return!e||jy.test(e)||My.test(e)},Hy=function(e,n){return n.toUpperCase()},kc=function(e,n){return"".concat(n,"-")},Vy=function(e,n){return n===void 0&&(n={}),$y(e)?e:(e=e.toLowerCase(),n.reactCompat?e=e.replace(Uy,kc):e=e.replace(By,kc),e.replace(by,Hy))};Ml.camelCase=Vy;var Wy=Qi&&Qi.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},Qy=Wy(Aa),Ky=Ml;function _u(e,n){var t={};return!e||typeof e!="string"||(0,Qy.default)(e,function(r,i){r&&i&&(t[(0,Ky.camelCase)(r,n)]=i)}),t}_u.default=_u;var Yy=_u;const qy=Ou(Yy),Pd=Td("end"),Fa=Td("start");function Td(e){return n;function n(t){const r=t&&t.position&&t.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function Xy(e){const n=Fa(e),t=Pd(e);if(n&&t)return{start:n,end:t}}function Fr(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?vc(e.position):"start"in e||"end"in e?vc(e):"line"in e||"column"in e?zu(e):""}function zu(e){return xc(e&&e.line)+":"+xc(e&&e.column)}function vc(e){return zu(e&&e.start)+"-"+zu(e&&e.end)}function xc(e){return e&&typeof e=="number"?e:1}class Ie extends Error{constructor(n,t,r){super(),typeof t=="string"&&(r=t,t=void 0);let i="",l={},o=!1;if(t&&("line"in t&&"column"in t?l={place:t}:"start"in t&&"end"in t?l={place:t}:"type"in t?l={ancestors:[t],place:t.position}:l={...t}),typeof n=="string"?i=n:!l.cause&&n&&(o=!0,i=n.message,l.cause=n),!l.ruleId&&!l.source&&typeof r=="string"){const a=r.indexOf(":");a===-1?l.ruleId=r:(l.source=r.slice(0,a),l.ruleId=r.slice(a+1))}if(!l.place&&l.ancestors&&l.ancestors){const a=l.ancestors[l.ancestors.length-1];a&&(l.place=a.position)}const u=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=u?u.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=u?u.line:void 0,this.name=Fr(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}}Ie.prototype.file="";Ie.prototype.name="";Ie.prototype.reason="";Ie.prototype.message="";Ie.prototype.stack="";Ie.prototype.column=void 0;Ie.prototype.line=void 0;Ie.prototype.ancestors=void 0;Ie.prototype.cause=void 0;Ie.prototype.fatal=void 0;Ie.prototype.place=void 0;Ie.prototype.ruleId=void 0;Ie.prototype.source=void 0;const Ra={}.hasOwnProperty,Gy=new Map,Zy=/[A-Z]/g,Jy=new Set(["table","tbody","thead","tfoot","tr"]),e1=new Set(["td","th"]),_d="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function n1(e,n){if(!n||n.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const t=n.filePath||void 0;let r;if(n.development){if(typeof n.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=s1(t,n.jsxDEV)}else{if(typeof n.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof n.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=a1(t,n.jsx,n.jsxs)}const i={Fragment:n.Fragment,ancestors:[],components:n.components||{},create:r,elementAttributeNameCase:n.elementAttributeNameCase||"react",evaluater:n.createEvaluater?n.createEvaluater():void 0,filePath:t,ignoreInvalidStyle:n.ignoreInvalidStyle||!1,passKeys:n.passKeys!==!1,passNode:n.passNode||!1,schema:n.space==="svg"?Da:xy,stylePropertyNameCase:n.stylePropertyNameCase||"dom",tableCellAlignToStyle:n.tableCellAlignToStyle!==!1},l=zd(i,e,void 0);return l&&typeof l!="string"?l:i.create(e,i.Fragment,{children:l||void 0},void 0)}function zd(e,n,t){if(n.type==="element")return t1(e,n,t);if(n.type==="mdxFlowExpression"||n.type==="mdxTextExpression")return r1(e,n);if(n.type==="mdxJsxFlowElement"||n.type==="mdxJsxTextElement")return l1(e,n,t);if(n.type==="mdxjsEsm")return i1(e,n);if(n.type==="root")return o1(e,n,t);if(n.type==="text")return u1(e,n)}function t1(e,n,t){const r=e.schema;let i=r;n.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=Da,e.schema=i),e.ancestors.push(n);const l=Ld(e,n.tagName,!1),o=c1(e,n);let u=Ma(e,n);return Jy.has(n.tagName)&&(u=u.filter(function(a){return typeof a=="string"?!cy(a):!0})),Id(e,o,l,n),Oa(o,u),e.ancestors.pop(),e.schema=r,e.create(n,l,o,t)}function r1(e,n){if(n.data&&n.data.estree&&e.evaluater){const r=n.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}ei(e,n.position)}function i1(e,n){if(n.data&&n.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(n.data.estree);ei(e,n.position)}function l1(e,n,t){const r=e.schema;let i=r;n.name==="svg"&&r.space==="html"&&(i=Da,e.schema=i),e.ancestors.push(n);const l=n.name===null?e.Fragment:Ld(e,n.name,!0),o=f1(e,n),u=Ma(e,n);return Id(e,o,l,n),Oa(o,u),e.ancestors.pop(),e.schema=r,e.create(n,l,o,t)}function o1(e,n,t){const r={};return Oa(r,Ma(e,n)),e.create(n,e.Fragment,r,t)}function u1(e,n){return n.value}function Id(e,n,t,r){typeof t!="string"&&t!==e.Fragment&&e.passNode&&(n.node=r)}function Oa(e,n){if(n.length>0){const t=n.length>1?n:n[0];t&&(e.children=t)}}function a1(e,n,t){return r;function r(i,l,o,u){const s=Array.isArray(o.children)?t:n;return u?s(l,o,u):s(l,o)}}function s1(e,n){return t;function t(r,i,l,o){const u=Array.isArray(l.children),a=Fa(r);return n(i,l,o,u,{columnNumber:a?a.column-1:void 0,fileName:e,lineNumber:a?a.line:void 0},void 0)}}function c1(e,n){const t={};let r,i;for(i in n.properties)if(i!=="children"&&Ra.call(n.properties,i)){const l=p1(e,i,n.properties[i]);if(l){const[o,u]=l;e.tableCellAlignToStyle&&o==="align"&&typeof u=="string"&&e1.has(n.tagName)?r=u:t[o]=u}}if(r){const l=t.style||(t.style={});l[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return t}function f1(e,n){const t={};for(const r of n.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const l=r.data.estree.body[0];l.type;const o=l.expression;o.type;const u=o.properties[0];u.type,Object.assign(t,e.evaluater.evaluateExpression(u.argument))}else ei(e,n.position);else{const i=r.name;let l;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const u=r.value.data.estree.body[0];u.type,l=e.evaluater.evaluateExpression(u.expression)}else ei(e,n.position);else l=r.value===null?!0:r.value;t[i]=l}return t}function Ma(e,n){const t=[];let r=-1;const i=e.passKeys?new Map:Gy;for(;++ri?0:i+n:n=n>i?i:n,t=t>0?t:0,r.length<1e4)o=Array.from(r),o.unshift(n,t),e.splice(...o);else for(t&&e.splice(n,t);l0?(Ye(e,e.length,0,n),e):n}const Cc={}.hasOwnProperty;function Dd(e){const n={};let t=-1;for(;++t13&&t<32||t>126&&t<160||t>55295&&t<57344||t>64975&&t<65008||(t&65535)===65535||(t&65535)===65534||t>1114111?"�":String.fromCodePoint(t)}function hn(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Ne=lt(/[A-Za-z]/),_e=lt(/[\dA-Za-z]/),w1=lt(/[#-'*+\--9=?A-Z^-~]/);function yl(e){return e!==null&&(e<32||e===127)}const Iu=lt(/\d/),S1=lt(/[\dA-Fa-f]/),C1=lt(/[!-/:-@[-`{-~]/);function O(e){return e!==null&&e<-2}function J(e){return e!==null&&(e<0||e===32)}function $(e){return e===-2||e===-1||e===32}const bl=lt(/\p{P}|\p{S}/u),wt=lt(/\s/);function lt(e){return n;function n(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function ar(e){const n=[];let t=-1,r=0,i=0;for(;++t55295&&l<57344){const u=e.charCodeAt(t+1);l<56320&&u>56319&&u<57344?(o=String.fromCharCode(l,u),i=1):o="�"}else o=String.fromCharCode(l);o&&(n.push(e.slice(r,t),encodeURIComponent(o)),r=t+i+1,o=""),i&&(t+=i,i=0)}return n.join("")+e.slice(r)}function Q(e,n,t,r){const i=r?r-1:Number.POSITIVE_INFINITY;let l=0;return o;function o(a){return $(a)?(e.enter(t),u(a)):n(a)}function u(a){return $(a)&&l++o))return;const z=n.events.length;let L=z,M,S;for(;L--;)if(n.events[L][0]==="exit"&&n.events[L][1].type==="chunkFlow"){if(M){S=n.events[L][1].end;break}M=!0}for(h(r),w=z;wy;){const T=t[C];n.containerState=T[1],T[0].exit.call(n,e)}t.length=y}function g(){i.write([null]),l=void 0,i=void 0,n.containerState._closeFlow=void 0}}function z1(e,n,t){return Q(e,e.attempt(this.parser.constructs.document,n,t),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function rr(e){if(e===null||J(e)||wt(e))return 1;if(bl(e))return 2}function jl(e,n,t){const r=[];let i=-1;for(;++i1&&e[t][1].end.offset-e[t][1].start.offset>1?2:1;const c={...e[r][1].end},p={...e[t][1].start};Pc(c,-a),Pc(p,a),o={type:a>1?"strongSequence":"emphasisSequence",start:c,end:{...e[r][1].end}},u={type:a>1?"strongSequence":"emphasisSequence",start:{...e[t][1].start},end:p},l={type:a>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[t][1].start}},i={type:a>1?"strong":"emphasis",start:{...o.start},end:{...u.end}},e[r][1].end={...o.start},e[t][1].start={...u.end},s=[],e[r][1].end.offset-e[r][1].start.offset&&(s=en(s,[["enter",e[r][1],n],["exit",e[r][1],n]])),s=en(s,[["enter",i,n],["enter",o,n],["exit",o,n],["enter",l,n]]),s=en(s,jl(n.parser.constructs.insideSpan.null,e.slice(r+1,t),n)),s=en(s,[["exit",l,n],["enter",u,n],["exit",u,n],["exit",i,n]]),e[t][1].end.offset-e[t][1].start.offset?(f=2,s=en(s,[["enter",e[t][1],n],["exit",e[t][1],n]])):f=0,Ye(e,r-1,t-r+3,s),t=r+s.length-f-2;break}}for(t=-1;++t0&&$(w)?Q(e,g,"linePrefix",l+1)(w):g(w)}function g(w){return w===null||O(w)?e.check(Tc,v,C)(w):(e.enter("codeFlowValue"),y(w))}function y(w){return w===null||O(w)?(e.exit("codeFlowValue"),g(w)):(e.consume(w),y)}function C(w){return e.exit("codeFenced"),n(w)}function T(w,z,L){let M=0;return S;function S(V){return w.enter("lineEnding"),w.consume(V),w.exit("lineEnding"),A}function A(V){return w.enter("codeFencedFence"),$(V)?Q(w,R,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(V):R(V)}function R(V){return V===u?(w.enter("codeFencedFenceSequence"),K(V)):L(V)}function K(V){return V===u?(M++,w.consume(V),K):M>=o?(w.exit("codeFencedFenceSequence"),$(V)?Q(w,ee,"whitespace")(V):ee(V)):L(V)}function ee(V){return V===null||O(V)?(w.exit("codeFencedFence"),z(V)):L(V)}}}function B1(e,n,t){const r=this;return i;function i(o){return o===null?t(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),l)}function l(o){return r.parser.lazy[r.now().line]?t(o):n(o)}}const ko={name:"codeIndented",tokenize:$1},U1={partial:!0,tokenize:H1};function $1(e,n,t){const r=this;return i;function i(s){return e.enter("codeIndented"),Q(e,l,"linePrefix",4+1)(s)}function l(s){const f=r.events[r.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?o(s):t(s)}function o(s){return s===null?a(s):O(s)?e.attempt(U1,o,a)(s):(e.enter("codeFlowValue"),u(s))}function u(s){return s===null||O(s)?(e.exit("codeFlowValue"),o(s)):(e.consume(s),u)}function a(s){return e.exit("codeIndented"),n(s)}}function H1(e,n,t){const r=this;return i;function i(o){return r.parser.lazy[r.now().line]?t(o):O(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):Q(e,l,"linePrefix",4+1)(o)}function l(o){const u=r.events[r.events.length-1];return u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?n(o):O(o)?i(o):t(o)}}const V1={name:"codeText",previous:Q1,resolve:W1,tokenize:K1};function W1(e){let n=e.length-4,t=3,r,i;if((e[t][1].type==="lineEnding"||e[t][1].type==="space")&&(e[n][1].type==="lineEnding"||e[n][1].type==="space")){for(r=t;++r=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+n+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return nthis.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-n+this.left.length).reverse():this.left.slice(n).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(n,t,r){const i=t||0;this.setCursor(Math.trunc(n));const l=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&vr(this.left,r),l.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(n){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(n)}pushMany(n){this.setCursor(Number.POSITIVE_INFINITY),vr(this.left,n)}unshift(n){this.setCursor(0),this.right.push(n)}unshiftMany(n){this.setCursor(0),vr(this.right,n.reverse())}setCursor(n){if(!(n===this.left.length||n>this.left.length&&this.right.length===0||n<0&&this.left.length===0))if(n=4?n(o):e.interrupt(r.parser.constructs.flow,t,n)(o)}}function bd(e,n,t,r,i,l,o,u,a){const s=a||Number.POSITIVE_INFINITY;let f=0;return c;function c(h){return h===60?(e.enter(r),e.enter(i),e.enter(l),e.consume(h),e.exit(l),p):h===null||h===32||h===41||yl(h)?t(h):(e.enter(r),e.enter(o),e.enter(u),e.enter("chunkString",{contentType:"string"}),v(h))}function p(h){return h===62?(e.enter(l),e.consume(h),e.exit(l),e.exit(i),e.exit(r),n):(e.enter(u),e.enter("chunkString",{contentType:"string"}),d(h))}function d(h){return h===62?(e.exit("chunkString"),e.exit(u),p(h)):h===null||h===60||O(h)?t(h):(e.consume(h),h===92?m:d)}function m(h){return h===60||h===62||h===92?(e.consume(h),d):d(h)}function v(h){return!f&&(h===null||h===41||J(h))?(e.exit("chunkString"),e.exit(u),e.exit(o),e.exit(r),n(h)):f999||d===null||d===91||d===93&&!a||d===94&&!u&&"_hiddenFootnoteSupport"in o.parser.constructs?t(d):d===93?(e.exit(l),e.enter(i),e.consume(d),e.exit(i),e.exit(r),n):O(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),f):(e.enter("chunkString",{contentType:"string"}),c(d))}function c(d){return d===null||d===91||d===93||O(d)||u++>999?(e.exit("chunkString"),f(d)):(e.consume(d),a||(a=!$(d)),d===92?p:c)}function p(d){return d===91||d===92||d===93?(e.consume(d),u++,c):c(d)}}function Bd(e,n,t,r,i,l){let o;return u;function u(p){return p===34||p===39||p===40?(e.enter(r),e.enter(i),e.consume(p),e.exit(i),o=p===40?41:p,a):t(p)}function a(p){return p===o?(e.enter(i),e.consume(p),e.exit(i),e.exit(r),n):(e.enter(l),s(p))}function s(p){return p===o?(e.exit(l),a(o)):p===null?t(p):O(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),Q(e,s,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),f(p))}function f(p){return p===o||p===null||O(p)?(e.exit("chunkString"),s(p)):(e.consume(p),p===92?c:f)}function c(p){return p===o||p===92?(e.consume(p),f):f(p)}}function Rr(e,n){let t;return r;function r(i){return O(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t=!0,r):$(i)?Q(e,r,t?"linePrefix":"lineSuffix")(i):n(i)}}const n0={name:"definition",tokenize:r0},t0={partial:!0,tokenize:i0};function r0(e,n,t){const r=this;let i;return l;function l(d){return e.enter("definition"),o(d)}function o(d){return jd.call(r,e,u,t,"definitionLabel","definitionLabelMarker","definitionLabelString")(d)}function u(d){return i=hn(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),d===58?(e.enter("definitionMarker"),e.consume(d),e.exit("definitionMarker"),a):t(d)}function a(d){return J(d)?Rr(e,s)(d):s(d)}function s(d){return bd(e,f,t,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(d)}function f(d){return e.attempt(t0,c,c)(d)}function c(d){return $(d)?Q(e,p,"whitespace")(d):p(d)}function p(d){return d===null||O(d)?(e.exit("definition"),r.parser.defined.push(i),n(d)):t(d)}}function i0(e,n,t){return r;function r(u){return J(u)?Rr(e,i)(u):t(u)}function i(u){return Bd(e,l,t,"definitionTitle","definitionTitleMarker","definitionTitleString")(u)}function l(u){return $(u)?Q(e,o,"whitespace")(u):o(u)}function o(u){return u===null||O(u)?n(u):t(u)}}const l0={name:"hardBreakEscape",tokenize:o0};function o0(e,n,t){return r;function r(l){return e.enter("hardBreakEscape"),e.consume(l),i}function i(l){return O(l)?(e.exit("hardBreakEscape"),n(l)):t(l)}}const u0={name:"headingAtx",resolve:a0,tokenize:s0};function a0(e,n){let t=e.length-2,r=3,i,l;return e[r][1].type==="whitespace"&&(r+=2),t-2>r&&e[t][1].type==="whitespace"&&(t-=2),e[t][1].type==="atxHeadingSequence"&&(r===t-1||t-4>r&&e[t-2][1].type==="whitespace")&&(t-=r+1===t?2:4),t>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[t][1].end},l={type:"chunkText",start:e[r][1].start,end:e[t][1].end,contentType:"text"},Ye(e,r,t-r+1,[["enter",i,n],["enter",l,n],["exit",l,n],["exit",i,n]])),e}function s0(e,n,t){let r=0;return i;function i(f){return e.enter("atxHeading"),l(f)}function l(f){return e.enter("atxHeadingSequence"),o(f)}function o(f){return f===35&&r++<6?(e.consume(f),o):f===null||J(f)?(e.exit("atxHeadingSequence"),u(f)):t(f)}function u(f){return f===35?(e.enter("atxHeadingSequence"),a(f)):f===null||O(f)?(e.exit("atxHeading"),n(f)):$(f)?Q(e,u,"whitespace")(f):(e.enter("atxHeadingText"),s(f))}function a(f){return f===35?(e.consume(f),a):(e.exit("atxHeadingSequence"),u(f))}function s(f){return f===null||f===35||J(f)?(e.exit("atxHeadingText"),u(f)):(e.consume(f),s)}}const c0=["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"],zc=["pre","script","style","textarea"],f0={concrete:!0,name:"htmlFlow",resolveTo:h0,tokenize:m0},p0={partial:!0,tokenize:y0},d0={partial:!0,tokenize:g0};function h0(e){let n=e.length;for(;n--&&!(e[n][0]==="enter"&&e[n][1].type==="htmlFlow"););return n>1&&e[n-2][1].type==="linePrefix"&&(e[n][1].start=e[n-2][1].start,e[n+1][1].start=e[n-2][1].start,e.splice(n-2,2)),e}function m0(e,n,t){const r=this;let i,l,o,u,a;return s;function s(x){return f(x)}function f(x){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(x),c}function c(x){return x===33?(e.consume(x),p):x===47?(e.consume(x),l=!0,v):x===63?(e.consume(x),i=3,r.interrupt?n:k):Ne(x)?(e.consume(x),o=String.fromCharCode(x),P):t(x)}function p(x){return x===45?(e.consume(x),i=2,d):x===91?(e.consume(x),i=5,u=0,m):Ne(x)?(e.consume(x),i=4,r.interrupt?n:k):t(x)}function d(x){return x===45?(e.consume(x),r.interrupt?n:k):t(x)}function m(x){const ge="CDATA[";return x===ge.charCodeAt(u++)?(e.consume(x),u===ge.length?r.interrupt?n:R:m):t(x)}function v(x){return Ne(x)?(e.consume(x),o=String.fromCharCode(x),P):t(x)}function P(x){if(x===null||x===47||x===62||J(x)){const ge=x===47,on=o.toLowerCase();return!ge&&!l&&zc.includes(on)?(i=1,r.interrupt?n(x):R(x)):c0.includes(o.toLowerCase())?(i=6,ge?(e.consume(x),h):r.interrupt?n(x):R(x)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?t(x):l?g(x):y(x))}return x===45||_e(x)?(e.consume(x),o+=String.fromCharCode(x),P):t(x)}function h(x){return x===62?(e.consume(x),r.interrupt?n:R):t(x)}function g(x){return $(x)?(e.consume(x),g):S(x)}function y(x){return x===47?(e.consume(x),S):x===58||x===95||Ne(x)?(e.consume(x),C):$(x)?(e.consume(x),y):S(x)}function C(x){return x===45||x===46||x===58||x===95||_e(x)?(e.consume(x),C):T(x)}function T(x){return x===61?(e.consume(x),w):$(x)?(e.consume(x),T):y(x)}function w(x){return x===null||x===60||x===61||x===62||x===96?t(x):x===34||x===39?(e.consume(x),a=x,z):$(x)?(e.consume(x),w):L(x)}function z(x){return x===a?(e.consume(x),a=null,M):x===null||O(x)?t(x):(e.consume(x),z)}function L(x){return x===null||x===34||x===39||x===47||x===60||x===61||x===62||x===96||J(x)?T(x):(e.consume(x),L)}function M(x){return x===47||x===62||$(x)?y(x):t(x)}function S(x){return x===62?(e.consume(x),A):t(x)}function A(x){return x===null||O(x)?R(x):$(x)?(e.consume(x),A):t(x)}function R(x){return x===45&&i===2?(e.consume(x),de):x===60&&i===1?(e.consume(x),fe):x===62&&i===4?(e.consume(x),Y):x===63&&i===3?(e.consume(x),k):x===93&&i===5?(e.consume(x),b):O(x)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(p0,G,K)(x)):x===null||O(x)?(e.exit("htmlFlowData"),K(x)):(e.consume(x),R)}function K(x){return e.check(d0,ee,G)(x)}function ee(x){return e.enter("lineEnding"),e.consume(x),e.exit("lineEnding"),V}function V(x){return x===null||O(x)?K(x):(e.enter("htmlFlowData"),R(x))}function de(x){return x===45?(e.consume(x),k):R(x)}function fe(x){return x===47?(e.consume(x),o="",D):R(x)}function D(x){if(x===62){const ge=o.toLowerCase();return zc.includes(ge)?(e.consume(x),Y):R(x)}return Ne(x)&&o.length<8?(e.consume(x),o+=String.fromCharCode(x),D):R(x)}function b(x){return x===93?(e.consume(x),k):R(x)}function k(x){return x===62?(e.consume(x),Y):x===45&&i===2?(e.consume(x),k):R(x)}function Y(x){return x===null||O(x)?(e.exit("htmlFlowData"),G(x)):(e.consume(x),Y)}function G(x){return e.exit("htmlFlow"),n(x)}}function g0(e,n,t){const r=this;return i;function i(o){return O(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),l):t(o)}function l(o){return r.parser.lazy[r.now().line]?t(o):n(o)}}function y0(e,n,t){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(ai,n,t)}}const k0={name:"htmlText",tokenize:v0};function v0(e,n,t){const r=this;let i,l,o;return u;function u(k){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(k),a}function a(k){return k===33?(e.consume(k),s):k===47?(e.consume(k),T):k===63?(e.consume(k),y):Ne(k)?(e.consume(k),L):t(k)}function s(k){return k===45?(e.consume(k),f):k===91?(e.consume(k),l=0,m):Ne(k)?(e.consume(k),g):t(k)}function f(k){return k===45?(e.consume(k),d):t(k)}function c(k){return k===null?t(k):k===45?(e.consume(k),p):O(k)?(o=c,fe(k)):(e.consume(k),c)}function p(k){return k===45?(e.consume(k),d):c(k)}function d(k){return k===62?de(k):k===45?p(k):c(k)}function m(k){const Y="CDATA[";return k===Y.charCodeAt(l++)?(e.consume(k),l===Y.length?v:m):t(k)}function v(k){return k===null?t(k):k===93?(e.consume(k),P):O(k)?(o=v,fe(k)):(e.consume(k),v)}function P(k){return k===93?(e.consume(k),h):v(k)}function h(k){return k===62?de(k):k===93?(e.consume(k),h):v(k)}function g(k){return k===null||k===62?de(k):O(k)?(o=g,fe(k)):(e.consume(k),g)}function y(k){return k===null?t(k):k===63?(e.consume(k),C):O(k)?(o=y,fe(k)):(e.consume(k),y)}function C(k){return k===62?de(k):y(k)}function T(k){return Ne(k)?(e.consume(k),w):t(k)}function w(k){return k===45||_e(k)?(e.consume(k),w):z(k)}function z(k){return O(k)?(o=z,fe(k)):$(k)?(e.consume(k),z):de(k)}function L(k){return k===45||_e(k)?(e.consume(k),L):k===47||k===62||J(k)?M(k):t(k)}function M(k){return k===47?(e.consume(k),de):k===58||k===95||Ne(k)?(e.consume(k),S):O(k)?(o=M,fe(k)):$(k)?(e.consume(k),M):de(k)}function S(k){return k===45||k===46||k===58||k===95||_e(k)?(e.consume(k),S):A(k)}function A(k){return k===61?(e.consume(k),R):O(k)?(o=A,fe(k)):$(k)?(e.consume(k),A):M(k)}function R(k){return k===null||k===60||k===61||k===62||k===96?t(k):k===34||k===39?(e.consume(k),i=k,K):O(k)?(o=R,fe(k)):$(k)?(e.consume(k),R):(e.consume(k),ee)}function K(k){return k===i?(e.consume(k),i=void 0,V):k===null?t(k):O(k)?(o=K,fe(k)):(e.consume(k),K)}function ee(k){return k===null||k===34||k===39||k===60||k===61||k===96?t(k):k===47||k===62||J(k)?M(k):(e.consume(k),ee)}function V(k){return k===47||k===62||J(k)?M(k):t(k)}function de(k){return k===62?(e.consume(k),e.exit("htmlTextData"),e.exit("htmlText"),n):t(k)}function fe(k){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),D}function D(k){return $(k)?Q(e,b,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(k):b(k)}function b(k){return e.enter("htmlTextData"),o(k)}}const Ba={name:"labelEnd",resolveAll:C0,resolveTo:E0,tokenize:P0},x0={tokenize:T0},w0={tokenize:_0},S0={tokenize:z0};function C0(e){let n=-1;const t=[];for(;++n=3&&(s===null||O(s))?(e.exit("thematicBreak"),n(s)):t(s)}function a(s){return s===i?(e.consume(s),r++,a):(e.exit("thematicBreakSequence"),$(s)?Q(e,u,"whitespace")(s):u(s))}}const Re={continuation:{tokenize:b0},exit:B0,name:"list",tokenize:M0},R0={partial:!0,tokenize:U0},O0={partial:!0,tokenize:j0};function M0(e,n,t){const r=this,i=r.events[r.events.length-1];let l=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,o=0;return u;function u(d){const m=r.containerState.type||(d===42||d===43||d===45?"listUnordered":"listOrdered");if(m==="listUnordered"?!r.containerState.marker||d===r.containerState.marker:Iu(d)){if(r.containerState.type||(r.containerState.type=m,e.enter(m,{_container:!0})),m==="listUnordered")return e.enter("listItemPrefix"),d===42||d===45?e.check(Vi,t,s)(d):s(d);if(!r.interrupt||d===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),a(d)}return t(d)}function a(d){return Iu(d)&&++o<10?(e.consume(d),a):(!r.interrupt||o<2)&&(r.containerState.marker?d===r.containerState.marker:d===41||d===46)?(e.exit("listItemValue"),s(d)):t(d)}function s(d){return e.enter("listItemMarker"),e.consume(d),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||d,e.check(ai,r.interrupt?t:f,e.attempt(R0,p,c))}function f(d){return r.containerState.initialBlankLine=!0,l++,p(d)}function c(d){return $(d)?(e.enter("listItemPrefixWhitespace"),e.consume(d),e.exit("listItemPrefixWhitespace"),p):t(d)}function p(d){return r.containerState.size=l+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,n(d)}}function b0(e,n,t){const r=this;return r.containerState._closeFlow=void 0,e.check(ai,i,l);function i(u){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Q(e,n,"listItemIndent",r.containerState.size+1)(u)}function l(u){return r.containerState.furtherBlankLines||!$(u)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(u)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(O0,n,o)(u))}function o(u){return r.containerState._closeFlow=!0,r.interrupt=void 0,Q(e,e.attempt(Re,n,t),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(u)}}function j0(e,n,t){const r=this;return Q(e,i,"listItemIndent",r.containerState.size+1);function i(l){const o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?n(l):t(l)}}function B0(e){e.exit(this.containerState.type)}function U0(e,n,t){const r=this;return Q(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4+1);function i(l){const o=r.events[r.events.length-1];return!$(l)&&o&&o[1].type==="listItemPrefixWhitespace"?n(l):t(l)}}const Ic={name:"setextUnderline",resolveTo:$0,tokenize:H0};function $0(e,n){let t=e.length,r,i,l;for(;t--;)if(e[t][0]==="enter"){if(e[t][1].type==="content"){r=t;break}e[t][1].type==="paragraph"&&(i=t)}else e[t][1].type==="content"&&e.splice(t,1),!l&&e[t][1].type==="definition"&&(l=t);const o={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",l?(e.splice(i,0,["enter",o,n]),e.splice(l+1,0,["exit",e[r][1],n]),e[r][1].end={...e[l][1].end}):e[r][1]=o,e.push(["exit",o,n]),e}function H0(e,n,t){const r=this;let i;return l;function l(s){let f=r.events.length,c;for(;f--;)if(r.events[f][1].type!=="lineEnding"&&r.events[f][1].type!=="linePrefix"&&r.events[f][1].type!=="content"){c=r.events[f][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||c)?(e.enter("setextHeadingLine"),i=s,o(s)):t(s)}function o(s){return e.enter("setextHeadingLineSequence"),u(s)}function u(s){return s===i?(e.consume(s),u):(e.exit("setextHeadingLineSequence"),$(s)?Q(e,a,"lineSuffix")(s):a(s))}function a(s){return s===null||O(s)?(e.exit("setextHeadingLine"),n(s)):t(s)}}const V0={tokenize:W0};function W0(e){const n=this,t=e.attempt(ai,r,e.attempt(this.parser.constructs.flowInitial,i,Q(e,e.attempt(this.parser.constructs.flow,i,e.attempt(X1,i)),"linePrefix")));return t;function r(l){if(l===null){e.consume(l);return}return e.enter("lineEndingBlank"),e.consume(l),e.exit("lineEndingBlank"),n.currentConstruct=void 0,t}function i(l){if(l===null){e.consume(l);return}return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),n.currentConstruct=void 0,t}}const Q0={resolveAll:$d()},K0=Ud("string"),Y0=Ud("text");function Ud(e){return{resolveAll:$d(e==="text"?q0:void 0),tokenize:n};function n(t){const r=this,i=this.parser.constructs[e],l=t.attempt(i,o,u);return o;function o(f){return s(f)?l(f):u(f)}function u(f){if(f===null){t.consume(f);return}return t.enter("data"),t.consume(f),a}function a(f){return s(f)?(t.exit("data"),l(f)):(t.consume(f),a)}function s(f){if(f===null)return!0;const c=i[f];let p=-1;if(c)for(;++p-1){const u=o[0];typeof u=="string"?o[0]=u.slice(r):o.shift()}l>0&&o.push(e[i].slice(0,l))}return o}function ak(e,n){let t=-1;const r=[];let i;for(;++t0){const un=j.tokenStack[j.tokenStack.length-1];(un[1]||Nc).call(j,void 0,un[0])}for(N.position={start:jn(E.length>0?E[0][1].start:{line:1,column:1,offset:0}),end:jn(E.length>0?E[E.length-2][1].end:{line:1,column:1,offset:0})},Z=-1;++Z0){const un=j.tokenStack[j.tokenStack.length-1];(un[1]||Nc).call(j,void 0,un[0])}for(N.position={start:jn(E.length>0?E[0][1].start:{line:1,column:1,offset:0}),end:jn(E.length>0?E[E.length-2][1].end:{line:1,column:1,offset:0})},Z=-1;++Z0&&(r.className=["language-"+i[0]]);let l={type:"element",tagName:"code",properties:r,children:[{type:"text",value:t}]};return n.meta&&(l.data={meta:n.meta}),e.patch(n,l),l=e.applyData(n,l),l={type:"element",tagName:"pre",properties:{},children:[l]},e.patch(n,l),l}function Sk(e,n){const t={type:"element",tagName:"del",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function Ck(e,n){const t={type:"element",tagName:"em",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function Ek(e,n){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(n.identifier).toUpperCase(),i=ar(r.toLowerCase()),l=e.footnoteOrder.indexOf(r);let o,u=e.footnoteCounts.get(r);u===void 0?(u=0,e.footnoteOrder.push(r),o=e.footnoteOrder.length):o=l+1,u+=1,e.footnoteCounts.set(r,u);const a={type:"element",tagName:"a",properties:{href:"#"+t+"fn-"+i,id:t+"fnref-"+i+(u>1?"-"+u:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};e.patch(n,a);const s={type:"element",tagName:"sup",properties:{},children:[a]};return e.patch(n,s),e.applyData(n,s)}function Pk(e,n){const t={type:"element",tagName:"h"+n.depth,properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function Tk(e,n){if(e.options.allowDangerousHtml){const t={type:"raw",value:n.value};return e.patch(n,t),e.applyData(n,t)}}function Wd(e,n){const t=n.referenceType;let r="]";if(t==="collapsed"?r+="[]":t==="full"&&(r+="["+(n.label||n.identifier)+"]"),n.type==="imageReference")return[{type:"text",value:"!["+n.alt+r}];const i=e.all(n),l=i[0];l&&l.type==="text"?l.value="["+l.value:i.unshift({type:"text",value:"["});const o=i[i.length-1];return o&&o.type==="text"?o.value+=r:i.push({type:"text",value:r}),i}function _k(e,n){const t=String(n.identifier).toUpperCase(),r=e.definitionById.get(t);if(!r)return Wd(e,n);const i={src:ar(r.url||""),alt:n.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const l={type:"element",tagName:"img",properties:i,children:[]};return e.patch(n,l),e.applyData(n,l)}function zk(e,n){const t={src:ar(n.url)};n.alt!==null&&n.alt!==void 0&&(t.alt=n.alt),n.title!==null&&n.title!==void 0&&(t.title=n.title);const r={type:"element",tagName:"img",properties:t,children:[]};return e.patch(n,r),e.applyData(n,r)}function Ik(e,n){const t={type:"text",value:n.value.replace(/\r?\n|\r/g," ")};e.patch(n,t);const r={type:"element",tagName:"code",properties:{},children:[t]};return e.patch(n,r),e.applyData(n,r)}function Lk(e,n){const t=String(n.identifier).toUpperCase(),r=e.definitionById.get(t);if(!r)return Wd(e,n);const i={href:ar(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const l={type:"element",tagName:"a",properties:i,children:e.all(n)};return e.patch(n,l),e.applyData(n,l)}function Nk(e,n){const t={href:ar(n.url)};n.title!==null&&n.title!==void 0&&(t.title=n.title);const r={type:"element",tagName:"a",properties:t,children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}function Dk(e,n,t){const r=e.all(n),i=t?Ak(t):Qd(n),l={},o=[];if(typeof n.checked=="boolean"){const f=r[0];let c;f&&f.type==="element"&&f.tagName==="p"?c=f:(c={type:"element",tagName:"p",properties:{},children:[]},r.unshift(c)),c.children.length>0&&c.children.unshift({type:"text",value:" "}),c.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:n.checked,disabled:!0},children:[]}),l.className=["task-list-item"]}let u=-1;for(;++u1}function Fk(e,n){const t={},r=e.all(n);let i=-1;for(typeof n.start=="number"&&n.start!==1&&(t.start=n.start);++i0){const o={type:"element",tagName:"tbody",properties:{},children:e.wrap(t,!0)},u=Fa(n.children[1]),a=Pd(n.children[n.children.length-1]);u&&a&&(o.position={start:u,end:a}),i.push(o)}const l={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(n,l),e.applyData(n,l)}function jk(e,n,t){const r=t?t.children:void 0,l=(r?r.indexOf(n):1)===0?"th":"td",o=t&&t.type==="table"?t.align:void 0,u=o?o.length:n.children.length;let a=-1;const s=[];for(;++a0,!0),r[0]),i=r.index+r[0].length,r=t.exec(n);return l.push(Fc(n.slice(i),i>0,!1)),l.join("")}function Fc(e,n,t){let r=0,i=e.length;if(n){let l=e.codePointAt(r);for(;l===Dc||l===Ac;)r++,l=e.codePointAt(r)}if(t){let l=e.codePointAt(i-1);for(;l===Dc||l===Ac;)i--,l=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function $k(e,n){const t={type:"text",value:Uk(String(n.value))};return e.patch(n,t),e.applyData(n,t)}function Hk(e,n){const t={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(n,t),e.applyData(n,t)}const Vk={blockquote:vk,break:xk,code:wk,delete:Sk,emphasis:Ck,footnoteReference:Ek,heading:Pk,html:Tk,imageReference:_k,image:zk,inlineCode:Ik,linkReference:Lk,link:Nk,listItem:Dk,list:Fk,paragraph:Rk,root:Ok,strong:Mk,table:bk,tableCell:Bk,tableRow:jk,text:$k,thematicBreak:Hk,toml:zi,yaml:zi,definition:zi,footnoteDefinition:zi};function zi(){}const Kd=-1,Bl=0,Or=1,kl=2,Ua=3,$a=4,Ha=5,Va=6,Yd=7,qd=8,Rc=typeof self=="object"?self:globalThis,Wk=(e,n)=>{const t=(i,l)=>(e.set(l,i),i),r=i=>{if(e.has(i))return e.get(i);const[l,o]=n[i];switch(l){case Bl:case Kd:return t(o,i);case Or:{const u=t([],i);for(const a of o)u.push(r(a));return u}case kl:{const u=t({},i);for(const[a,s]of o)u[r(a)]=r(s);return u}case Ua:return t(new Date(o),i);case $a:{const{source:u,flags:a}=o;return t(new RegExp(u,a),i)}case Ha:{const u=t(new Map,i);for(const[a,s]of o)u.set(r(a),r(s));return u}case Va:{const u=t(new Set,i);for(const a of o)u.add(r(a));return u}case Yd:{const{name:u,message:a}=o;return t(new Rc[u](a),i)}case qd:return t(BigInt(o),i);case"BigInt":return t(Object(BigInt(o)),i);case"ArrayBuffer":return t(new Uint8Array(o).buffer,o);case"DataView":{const{buffer:u}=new Uint8Array(o);return t(new DataView(u),o)}}return t(new Rc[l](o),i)};return r},Oc=e=>Wk(new Map,e)(0),It="",{toString:Qk}={},{keys:Kk}=Object,xr=e=>{const n=typeof e;if(n!=="object"||!e)return[Bl,n];const t=Qk.call(e).slice(8,-1);switch(t){case"Array":return[Or,It];case"Object":return[kl,It];case"Date":return[Ua,It];case"RegExp":return[$a,It];case"Map":return[Ha,It];case"Set":return[Va,It];case"DataView":return[Or,t]}return t.includes("Array")?[Or,t]:t.includes("Error")?[Yd,t]:[kl,t]},Ii=([e,n])=>e===Bl&&(n==="function"||n==="symbol"),Yk=(e,n,t,r)=>{const i=(o,u)=>{const a=r.push(o)-1;return t.set(u,a),a},l=o=>{if(t.has(o))return t.get(o);let[u,a]=xr(o);switch(u){case Bl:{let f=o;switch(a){case"bigint":u=qd,f=o.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+a);f=null;break;case"undefined":return i([Kd],o)}return i([u,f],o)}case Or:{if(a){let p=o;return a==="DataView"?p=new Uint8Array(o.buffer):a==="ArrayBuffer"&&(p=new Uint8Array(o)),i([a,[...p]],o)}const f=[],c=i([u,f],o);for(const p of o)f.push(l(p));return c}case kl:{if(a)switch(a){case"BigInt":return i([a,o.toString()],o);case"Boolean":case"Number":case"String":return i([a,o.valueOf()],o)}if(n&&"toJSON"in o)return l(o.toJSON());const f=[],c=i([u,f],o);for(const p of Kk(o))(e||!Ii(xr(o[p])))&&f.push([l(p),l(o[p])]);return c}case Ua:return i([u,o.toISOString()],o);case $a:{const{source:f,flags:c}=o;return i([u,{source:f,flags:c}],o)}case Ha:{const f=[],c=i([u,f],o);for(const[p,d]of o)(e||!(Ii(xr(p))||Ii(xr(d))))&&f.push([l(p),l(d)]);return c}case Va:{const f=[],c=i([u,f],o);for(const p of o)(e||!Ii(xr(p)))&&f.push(l(p));return c}}const{message:s}=o;return i([u,{name:a,message:s}],o)};return l},Mc=(e,{json:n,lossy:t}={})=>{const r=[];return Yk(!(n||t),!!n,new Map,r)(e),r},vl=typeof structuredClone=="function"?(e,n)=>n&&("json"in n||"lossy"in n)?Oc(Mc(e,n)):structuredClone(e):(e,n)=>Oc(Mc(e,n));function qk(e,n){const t=[{type:"text",value:"↩"}];return n>1&&t.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(n)}]}),t}function Xk(e,n){return"Back to reference "+(e+1)+(n>1?"-"+n:"")}function Gk(e){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",t=e.options.footnoteBackContent||qk,r=e.options.footnoteBackLabel||Xk,i=e.options.footnoteLabel||"Footnotes",l=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},u=[];let a=-1;for(;++a0&&g.push({type:"text",value:" "});let m=typeof t=="string"?t:t(a,d);typeof m=="string"&&(m={type:"text",value:m}),g.push({type:"element",tagName:"a",properties:{href:"#"+n+"fnref-"+p+(d>1?"-"+d:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(a,d),className:["data-footnote-backref"]},children:Array.isArray(m)?m:[m]})}const P=f[f.length-1];if(P&&P.type==="element"&&P.tagName==="p"){const m=P.children[P.children.length-1];m&&m.type==="text"?m.value+=" ":P.children.push({type:"text",value:" "}),P.children.push(...g)}else f.push(...g);const h={type:"element",tagName:"li",properties:{id:n+"fn-"+p},children:e.wrap(f,!0)};e.patch(s,h),u.push(h)}if(u.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:l,properties:{...vl(o),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:` +`});const s={type:"element",tagName:"li",properties:l,children:o};return e.patch(n,s),e.applyData(n,s)}function Ak(e){let n=!1;if(e.type==="list"){n=e.spread||!1;const t=e.children;let r=-1;for(;!n&&++r1}function Fk(e,n){const t={},r=e.all(n);let i=-1;for(typeof n.start=="number"&&n.start!==1&&(t.start=n.start);++i0){const o={type:"element",tagName:"tbody",properties:{},children:e.wrap(t,!0)},u=Fa(n.children[1]),a=Pd(n.children[n.children.length-1]);u&&a&&(o.position={start:u,end:a}),i.push(o)}const l={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(n,l),e.applyData(n,l)}function jk(e,n,t){const r=t?t.children:void 0,l=(r?r.indexOf(n):1)===0?"th":"td",o=t&&t.type==="table"?t.align:void 0,u=o?o.length:n.children.length;let a=-1;const s=[];for(;++a0,!0),r[0]),i=r.index+r[0].length,r=t.exec(n);return l.push(Fc(n.slice(i),i>0,!1)),l.join("")}function Fc(e,n,t){let r=0,i=e.length;if(n){let l=e.codePointAt(r);for(;l===Dc||l===Ac;)r++,l=e.codePointAt(r)}if(t){let l=e.codePointAt(i-1);for(;l===Dc||l===Ac;)i--,l=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function $k(e,n){const t={type:"text",value:Uk(String(n.value))};return e.patch(n,t),e.applyData(n,t)}function Hk(e,n){const t={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(n,t),e.applyData(n,t)}const Vk={blockquote:vk,break:xk,code:wk,delete:Sk,emphasis:Ck,footnoteReference:Ek,heading:Pk,html:Tk,imageReference:_k,image:zk,inlineCode:Ik,linkReference:Lk,link:Nk,listItem:Dk,list:Fk,paragraph:Rk,root:Ok,strong:Mk,table:bk,tableCell:Bk,tableRow:jk,text:$k,thematicBreak:Hk,toml:zi,yaml:zi,definition:zi,footnoteDefinition:zi};function zi(){}const Kd=-1,Bl=0,Or=1,kl=2,Ua=3,$a=4,Ha=5,Va=6,Yd=7,qd=8,Rc=typeof self=="object"?self:globalThis,Wk=(e,n)=>{const t=(i,l)=>(e.set(l,i),i),r=i=>{if(e.has(i))return e.get(i);const[l,o]=n[i];switch(l){case Bl:case Kd:return t(o,i);case Or:{const u=t([],i);for(const a of o)u.push(r(a));return u}case kl:{const u=t({},i);for(const[a,s]of o)u[r(a)]=r(s);return u}case Ua:return t(new Date(o),i);case $a:{const{source:u,flags:a}=o;return t(new RegExp(u,a),i)}case Ha:{const u=t(new Map,i);for(const[a,s]of o)u.set(r(a),r(s));return u}case Va:{const u=t(new Set,i);for(const a of o)u.add(r(a));return u}case Yd:{const{name:u,message:a}=o;return t(new Rc[u](a),i)}case qd:return t(BigInt(o),i);case"BigInt":return t(Object(BigInt(o)),i);case"ArrayBuffer":return t(new Uint8Array(o).buffer,o);case"DataView":{const{buffer:u}=new Uint8Array(o);return t(new DataView(u),o)}}return t(new Rc[l](o),i)};return r},Oc=e=>Wk(new Map,e)(0),It="",{toString:Qk}={},{keys:Kk}=Object,xr=e=>{const n=typeof e;if(n!=="object"||!e)return[Bl,n];const t=Qk.call(e).slice(8,-1);switch(t){case"Array":return[Or,It];case"Object":return[kl,It];case"Date":return[Ua,It];case"RegExp":return[$a,It];case"Map":return[Ha,It];case"Set":return[Va,It];case"DataView":return[Or,t]}return t.includes("Array")?[Or,t]:t.includes("Error")?[Yd,t]:[kl,t]},Ii=([e,n])=>e===Bl&&(n==="function"||n==="symbol"),Yk=(e,n,t,r)=>{const i=(o,u)=>{const a=r.push(o)-1;return t.set(u,a),a},l=o=>{if(t.has(o))return t.get(o);let[u,a]=xr(o);switch(u){case Bl:{let f=o;switch(a){case"bigint":u=qd,f=o.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+a);f=null;break;case"undefined":return i([Kd],o)}return i([u,f],o)}case Or:{if(a){let p=o;return a==="DataView"?p=new Uint8Array(o.buffer):a==="ArrayBuffer"&&(p=new Uint8Array(o)),i([a,[...p]],o)}const f=[],c=i([u,f],o);for(const p of o)f.push(l(p));return c}case kl:{if(a)switch(a){case"BigInt":return i([a,o.toString()],o);case"Boolean":case"Number":case"String":return i([a,o.valueOf()],o)}if(n&&"toJSON"in o)return l(o.toJSON());const f=[],c=i([u,f],o);for(const p of Kk(o))(e||!Ii(xr(o[p])))&&f.push([l(p),l(o[p])]);return c}case Ua:return i([u,o.toISOString()],o);case $a:{const{source:f,flags:c}=o;return i([u,{source:f,flags:c}],o)}case Ha:{const f=[],c=i([u,f],o);for(const[p,d]of o)(e||!(Ii(xr(p))||Ii(xr(d))))&&f.push([l(p),l(d)]);return c}case Va:{const f=[],c=i([u,f],o);for(const p of o)(e||!Ii(xr(p)))&&f.push(l(p));return c}}const{message:s}=o;return i([u,{name:a,message:s}],o)};return l},Mc=(e,{json:n,lossy:t}={})=>{const r=[];return Yk(!(n||t),!!n,new Map,r)(e),r},vl=typeof structuredClone=="function"?(e,n)=>n&&("json"in n||"lossy"in n)?Oc(Mc(e,n)):structuredClone(e):(e,n)=>Oc(Mc(e,n));function qk(e,n){const t=[{type:"text",value:"↩"}];return n>1&&t.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(n)}]}),t}function Xk(e,n){return"Back to reference "+(e+1)+(n>1?"-"+n:"")}function Gk(e){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",t=e.options.footnoteBackContent||qk,r=e.options.footnoteBackLabel||Xk,i=e.options.footnoteLabel||"Footnotes",l=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},u=[];let a=-1;for(;++a0&&m.push({type:"text",value:" "});let g=typeof t=="string"?t:t(a,d);typeof g=="string"&&(g={type:"text",value:g}),m.push({type:"element",tagName:"a",properties:{href:"#"+n+"fnref-"+p+(d>1?"-"+d:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(a,d),className:["data-footnote-backref"]},children:Array.isArray(g)?g:[g]})}const P=f[f.length-1];if(P&&P.type==="element"&&P.tagName==="p"){const g=P.children[P.children.length-1];g&&g.type==="text"?g.value+=" ":P.children.push({type:"text",value:" "}),P.children.push(...m)}else f.push(...m);const h={type:"element",tagName:"li",properties:{id:n+"fn-"+p},children:e.wrap(f,!0)};e.patch(s,h),u.push(h)}if(u.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:l,properties:{...vl(o),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:` `},{type:"element",tagName:"ol",properties:{},children:e.wrap(u,!0)},{type:"text",value:` -`}]}}const Ul=function(e){if(e==null)return nv;if(typeof e=="function")return $l(e);if(typeof e=="object")return Array.isArray(e)?Zk(e):Jk(e);if(typeof e=="string")return ev(e);throw new Error("Expected function, string, or object as test")};function Zk(e){const n=[];let t=-1;for(;++t":""))+")"})}return p;function p(){let d=Xd,g,x,P;if((!n||l(a,s,f[f.length-1]||void 0))&&(d=lv(t(a,f)),d[0]===Nu))return d;if("children"in a&&a.children){const h=a;if(h.children&&d[0]!==iv)for(x=(r?h.children.length:-1)+o,P=f.concat(h);x>-1&&x":""))+")"})}return p;function p(){let d=Xd,m,v,P;if((!n||l(a,s,f[f.length-1]||void 0))&&(d=lv(t(a,f)),d[0]===Nu))return d;if("children"in a&&a.children){const h=a;if(h.children&&d[0]!==iv)for(v=(r?h.children.length:-1)+o,P=f.concat(h);v>-1&&v0&&t.push({type:"text",value:` `}),t}function bc(e){let n=0,t=e.charCodeAt(n);for(;t===9||t===32;)n++,t=e.charCodeAt(n);return e.slice(n)}function jc(e,n){const t=uv(e,n),r=t.one(e,void 0),i=Gk(t),l=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&l.children.push({type:"text",value:` -`},i),l}function pv(e,n){return e&&"run"in e?async function(t,r){const i=jc(t,{file:r,...n});await e.run(i,r)}:function(t,r){return jc(t,{file:r,...e||n})}}function Bc(e){if(e)throw e}var Wi=Object.prototype.hasOwnProperty,Zd=Object.prototype.toString,Uc=Object.defineProperty,$c=Object.getOwnPropertyDescriptor,Hc=function(n){return typeof Array.isArray=="function"?Array.isArray(n):Zd.call(n)==="[object Array]"},Vc=function(n){if(!n||Zd.call(n)!=="[object Object]")return!1;var t=Wi.call(n,"constructor"),r=n.constructor&&n.constructor.prototype&&Wi.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!t&&!r)return!1;var i;for(i in n);return typeof i>"u"||Wi.call(n,i)},Wc=function(n,t){Uc&&t.name==="__proto__"?Uc(n,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):n[t.name]=t.newValue},Qc=function(n,t){if(t==="__proto__")if(Wi.call(n,t)){if($c)return $c(n,t).value}else return;return n[t]},dv=function e(){var n,t,r,i,l,o,u=arguments[0],a=1,s=arguments.length,f=!1;for(typeof u=="boolean"&&(f=u,u=arguments[1]||{},a=2),(u==null||typeof u!="object"&&typeof u!="function")&&(u={});ao.length;let a;u&&o.push(i);try{a=e.apply(this,o)}catch(s){const f=s;if(u&&t)throw f;return i(f)}u||(a&&a.then&&typeof a.then=="function"?a.then(l,i):a instanceof Error?i(a):l(a))}function i(o,...u){t||(t=!0,n(o,...u))}function l(o){i(null,o)}}const vn={basename:gv,dirname:yv,extname:kv,join:vv,sep:"/"};function gv(e,n){if(n!==void 0&&typeof n!="string")throw new TypeError('"ext" argument must be a string');si(e);let t=0,r=-1,i=e.length,l;if(n===void 0||n.length===0||n.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(l){t=i+1;break}}else r<0&&(l=!0,r=i+1);return r<0?"":e.slice(t,r)}if(n===e)return"";let o=-1,u=n.length-1;for(;i--;)if(e.codePointAt(i)===47){if(l){t=i+1;break}}else o<0&&(l=!0,o=i+1),u>-1&&(e.codePointAt(i)===n.codePointAt(u--)?u<0&&(r=i):(u=-1,r=o));return t===r?r=o:r<0&&(r=e.length),e.slice(t,r)}function yv(e){if(si(e),e.length===0)return".";let n=-1,t=e.length,r;for(;--t;)if(e.codePointAt(t)===47){if(r){n=t;break}}else r||(r=!0);return n<0?e.codePointAt(0)===47?"/":".":n===1&&e.codePointAt(0)===47?"//":e.slice(0,n)}function kv(e){si(e);let n=e.length,t=-1,r=0,i=-1,l=0,o;for(;n--;){const u=e.codePointAt(n);if(u===47){if(o){r=n+1;break}continue}t<0&&(o=!0,t=n+1),u===46?i<0?i=n:l!==1&&(l=1):i>-1&&(l=-1)}return i<0||t<0||l===0||l===1&&i===t-1&&i===r+1?"":e.slice(i,t)}function vv(...e){let n=-1,t;for(;++n0&&e.codePointAt(e.length-1)===47&&(t+="/"),n?"/"+t:t}function wv(e,n){let t="",r=0,i=-1,l=0,o=-1,u,a;for(;++o<=e.length;){if(o2){if(a=t.lastIndexOf("/"),a!==t.length-1){a<0?(t="",r=0):(t=t.slice(0,a),r=t.length-1-t.lastIndexOf("/")),i=o,l=0;continue}}else if(t.length>0){t="",r=0,i=o,l=0;continue}}n&&(t=t.length>0?t+"/..":"..",r=2)}else t.length>0?t+="/"+e.slice(i+1,o):t=e.slice(i+1,o),r=o-i-1;i=o,l=0}else u===46&&l>-1?l++:l=-1}return t}function si(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Sv={cwd:Cv};function Cv(){return"/"}function Fu(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function Ev(e){if(typeof e=="string")e=new URL(e);else if(!Fu(e)){const n=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw n.code="ERR_INVALID_ARG_TYPE",n}if(e.protocol!=="file:"){const n=new TypeError("The URL must be of scheme file");throw n.code="ERR_INVALID_URL_SCHEME",n}return Pv(e)}function Pv(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const n=e.pathname;let t=-1;for(;++t0){let[d,...g]=f;const x=r[p][1];Au(x)&&Au(d)&&(d=xo(!0,x,d)),r[p]=[s,d,...g]}}}}const Iv=new Qa().freeze();function Eo(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Po(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function To(e,n){if(n)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Yc(e){if(!Au(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function qc(e,n,t){if(!t)throw new Error("`"+e+"` finished async. Use `"+n+"` instead")}function Li(e){return Lv(e)?e:new Jd(e)}function Lv(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function Nv(e){return typeof e=="string"||Dv(e)}function Dv(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Av="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Xc=[],Gc={allowDangerousHtml:!0},Fv=/^(https?|ircs?|mailto|xmpp)$/i,Rv=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function Ov(e){const n=Mv(e),t=bv(e);return jv(n.runSync(n.parse(t),t),e)}function Mv(e){const n=e.rehypePlugins||Xc,t=e.remarkPlugins||Xc,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Gc}:Gc;return Iv().use(kk).use(t).use(pv,r).use(n)}function bv(e){const n=e.children||"",t=new Jd;return typeof n=="string"&&(t.value=n),t}function jv(e,n){const t=n.allowedElements,r=n.allowElement,i=n.components,l=n.disallowedElements,o=n.skipHtml,u=n.unwrapDisallowed,a=n.urlTransform||Bv;for(const f of Rv)Object.hasOwn(n,f.from)&&(""+f.from+(f.to?"use `"+f.to+"` instead":"remove it")+Av+f.id,void 0);return n.className&&(e={type:"element",tagName:"div",properties:{className:n.className},children:e.type==="root"?e.children:[e]}),Wa(e,s),n1(e,{Fragment:U.Fragment,components:i,ignoreInvalidStyle:!0,jsx:U.jsx,jsxs:U.jsxs,passKeys:!0,passNode:!0});function s(f,c,p){if(f.type==="raw"&&p&&typeof c=="number")return o?p.children.splice(c,1):p.children[c]={type:"text",value:f.value},c;if(f.type==="element"){let d;for(d in yo)if(Object.hasOwn(yo,d)&&Object.hasOwn(f.properties,d)){const g=f.properties[d],x=yo[d];(x===null||x.includes(f.tagName))&&(f.properties[d]=a(String(g||""),d,f))}}if(f.type==="element"){let d=t?!t.includes(f.tagName):l?l.includes(f.tagName):!1;if(!d&&r&&typeof c=="number"&&(d=!r(f,c,p)),d&&p&&typeof c=="number")return u&&f.children?p.children.splice(c,1,...f.children):p.children.splice(c,1),c}}}function Bv(e){const n=e.indexOf(":"),t=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return n===-1||i!==-1&&n>i||t!==-1&&n>t||r!==-1&&n>r||Fv.test(e.slice(0,n))?e:""}function Zc(e,n){const t=String(e);if(typeof n!="string")throw new TypeError("Expected character");let r=0,i=t.indexOf(n);for(;i!==-1;)r++,i=t.indexOf(n,i+n.length);return r}function Uv(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function $v(e,n,t){const i=Ul((t||{}).ignore||[]),l=Hv(n);let o=-1;for(;++o0?{type:"text",value:w}:void 0),w===!1?p.lastIndex=C+1:(g!==C&&m.push({type:"text",value:s.value.slice(g,C)}),Array.isArray(w)?m.push(...w):w&&m.push(w),g=C+y[0].length,h=!0),!p.global)break;y=p.exec(s.value)}return h?(g?\]}]+$/.exec(e);if(!n)return[e,void 0];e=e.slice(0,n.index);let t=n[0],r=t.indexOf(")");const i=Zc(e,"(");let l=Zc(e,")");for(;r!==-1&&i>l;)e+=t.slice(0,r+1),t=t.slice(r+1),r=t.indexOf(")"),l++;return[e,t]}function eh(e,n){const t=e.input.charCodeAt(e.index-1);return(e.index===0||wt(t)||bl(t))&&(!n||t!==47)}nh.peek=px;function ix(){this.buffer()}function lx(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function ox(){this.buffer()}function ux(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function ax(e){const n=this.resume(),t=this.stack[this.stack.length-1];t.type,t.identifier=hn(this.sliceSerialize(e)).toLowerCase(),t.label=n}function sx(e){this.exit(e)}function cx(e){const n=this.resume(),t=this.stack[this.stack.length-1];t.type,t.identifier=hn(this.sliceSerialize(e)).toLowerCase(),t.label=n}function fx(e){this.exit(e)}function px(){return"["}function nh(e,n,t,r){const i=t.createTracker(r);let l=i.move("[^");const o=t.enter("footnoteReference"),u=t.enter("reference");return l+=i.move(t.safe(t.associationId(e),{after:"]",before:l})),u(),o(),l+=i.move("]"),l}function dx(){return{enter:{gfmFootnoteCallString:ix,gfmFootnoteCall:lx,gfmFootnoteDefinitionLabelString:ox,gfmFootnoteDefinition:ux},exit:{gfmFootnoteCallString:ax,gfmFootnoteCall:sx,gfmFootnoteDefinitionLabelString:cx,gfmFootnoteDefinition:fx}}}function hx(e){let n=!1;return e&&e.firstLineBlank&&(n=!0),{handlers:{footnoteDefinition:t,footnoteReference:nh},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function t(r,i,l,o){const u=l.createTracker(o);let a=u.move("[^");const s=l.enter("footnoteDefinition"),f=l.enter("label");return a+=u.move(l.safe(l.associationId(r),{before:a,after:"]"})),f(),a+=u.move("]:"),r.children&&r.children.length>0&&(u.shift(4),a+=u.move((n?` -`:" ")+l.indentLines(l.containerFlow(r,u.current()),n?th:mx))),s(),a}}function mx(e,n,t){return n===0?e:th(e,n,t)}function th(e,n,t){return(t?"":" ")+e}const gx=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];rh.peek=wx;function yx(){return{canContainEols:["delete"],enter:{strikethrough:vx},exit:{strikethrough:xx}}}function kx(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:gx}],handlers:{delete:rh}}}function vx(e){this.enter({type:"delete",children:[]},e)}function xx(e){this.exit(e)}function rh(e,n,t,r){const i=t.createTracker(r),l=t.enter("strikethrough");let o=i.move("~~");return o+=t.containerPhrasing(e,{...i.current(),before:o,after:"~"}),o+=i.move("~~"),l(),o}function wx(){return"~"}function Sx(e){return e.length}function Cx(e,n){const t=n||{},r=(t.align||[]).concat(),i=t.stringLength||Sx,l=[],o=[],u=[],a=[];let s=0,f=-1;for(;++fs&&(s=e[f].length);++ha[h])&&(a[h]=y)}x.push(m)}o[f]=x,u[f]=P}let c=-1;if(typeof r=="object"&&"length"in r)for(;++ca[c]&&(a[c]=m),d[c]=m),p[c]=y}o.splice(1,0,p),u.splice(1,0,d),f=-1;const g=[];for(;++f"u"||Wi.call(n,i)},Wc=function(n,t){Uc&&t.name==="__proto__"?Uc(n,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):n[t.name]=t.newValue},Qc=function(n,t){if(t==="__proto__")if(Wi.call(n,t)){if($c)return $c(n,t).value}else return;return n[t]},dv=function e(){var n,t,r,i,l,o,u=arguments[0],a=1,s=arguments.length,f=!1;for(typeof u=="boolean"&&(f=u,u=arguments[1]||{},a=2),(u==null||typeof u!="object"&&typeof u!="function")&&(u={});ao.length;let a;u&&o.push(i);try{a=e.apply(this,o)}catch(s){const f=s;if(u&&t)throw f;return i(f)}u||(a&&a.then&&typeof a.then=="function"?a.then(l,i):a instanceof Error?i(a):l(a))}function i(o,...u){t||(t=!0,n(o,...u))}function l(o){i(null,o)}}const vn={basename:gv,dirname:yv,extname:kv,join:vv,sep:"/"};function gv(e,n){if(n!==void 0&&typeof n!="string")throw new TypeError('"ext" argument must be a string');si(e);let t=0,r=-1,i=e.length,l;if(n===void 0||n.length===0||n.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(l){t=i+1;break}}else r<0&&(l=!0,r=i+1);return r<0?"":e.slice(t,r)}if(n===e)return"";let o=-1,u=n.length-1;for(;i--;)if(e.codePointAt(i)===47){if(l){t=i+1;break}}else o<0&&(l=!0,o=i+1),u>-1&&(e.codePointAt(i)===n.codePointAt(u--)?u<0&&(r=i):(u=-1,r=o));return t===r?r=o:r<0&&(r=e.length),e.slice(t,r)}function yv(e){if(si(e),e.length===0)return".";let n=-1,t=e.length,r;for(;--t;)if(e.codePointAt(t)===47){if(r){n=t;break}}else r||(r=!0);return n<0?e.codePointAt(0)===47?"/":".":n===1&&e.codePointAt(0)===47?"//":e.slice(0,n)}function kv(e){si(e);let n=e.length,t=-1,r=0,i=-1,l=0,o;for(;n--;){const u=e.codePointAt(n);if(u===47){if(o){r=n+1;break}continue}t<0&&(o=!0,t=n+1),u===46?i<0?i=n:l!==1&&(l=1):i>-1&&(l=-1)}return i<0||t<0||l===0||l===1&&i===t-1&&i===r+1?"":e.slice(i,t)}function vv(...e){let n=-1,t;for(;++n0&&e.codePointAt(e.length-1)===47&&(t+="/"),n?"/"+t:t}function wv(e,n){let t="",r=0,i=-1,l=0,o=-1,u,a;for(;++o<=e.length;){if(o2){if(a=t.lastIndexOf("/"),a!==t.length-1){a<0?(t="",r=0):(t=t.slice(0,a),r=t.length-1-t.lastIndexOf("/")),i=o,l=0;continue}}else if(t.length>0){t="",r=0,i=o,l=0;continue}}n&&(t=t.length>0?t+"/..":"..",r=2)}else t.length>0?t+="/"+e.slice(i+1,o):t=e.slice(i+1,o),r=o-i-1;i=o,l=0}else u===46&&l>-1?l++:l=-1}return t}function si(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Sv={cwd:Cv};function Cv(){return"/"}function Fu(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function Ev(e){if(typeof e=="string")e=new URL(e);else if(!Fu(e)){const n=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw n.code="ERR_INVALID_ARG_TYPE",n}if(e.protocol!=="file:"){const n=new TypeError("The URL must be of scheme file");throw n.code="ERR_INVALID_URL_SCHEME",n}return Pv(e)}function Pv(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const n=e.pathname;let t=-1;for(;++t0){let[d,...m]=f;const v=r[p][1];Au(v)&&Au(d)&&(d=xo(!0,v,d)),r[p]=[s,d,...m]}}}}const Iv=new Qa().freeze();function Eo(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Po(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function To(e,n){if(n)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Yc(e){if(!Au(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function qc(e,n,t){if(!t)throw new Error("`"+e+"` finished async. Use `"+n+"` instead")}function Li(e){return Lv(e)?e:new Jd(e)}function Lv(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function Nv(e){return typeof e=="string"||Dv(e)}function Dv(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Av="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Xc=[],Gc={allowDangerousHtml:!0},Fv=/^(https?|ircs?|mailto|xmpp)$/i,Rv=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function Ov(e){const n=Mv(e),t=bv(e);return jv(n.runSync(n.parse(t),t),e)}function Mv(e){const n=e.rehypePlugins||Xc,t=e.remarkPlugins||Xc,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Gc}:Gc;return Iv().use(kk).use(t).use(pv,r).use(n)}function bv(e){const n=e.children||"",t=new Jd;return typeof n=="string"&&(t.value=n),t}function jv(e,n){const t=n.allowedElements,r=n.allowElement,i=n.components,l=n.disallowedElements,o=n.skipHtml,u=n.unwrapDisallowed,a=n.urlTransform||Bv;for(const f of Rv)Object.hasOwn(n,f.from)&&(""+f.from+(f.to?"use `"+f.to+"` instead":"remove it")+Av+f.id,void 0);return n.className&&(e={type:"element",tagName:"div",properties:{className:n.className},children:e.type==="root"?e.children:[e]}),Wa(e,s),n1(e,{Fragment:U.Fragment,components:i,ignoreInvalidStyle:!0,jsx:U.jsx,jsxs:U.jsxs,passKeys:!0,passNode:!0});function s(f,c,p){if(f.type==="raw"&&p&&typeof c=="number")return o?p.children.splice(c,1):p.children[c]={type:"text",value:f.value},c;if(f.type==="element"){let d;for(d in yo)if(Object.hasOwn(yo,d)&&Object.hasOwn(f.properties,d)){const m=f.properties[d],v=yo[d];(v===null||v.includes(f.tagName))&&(f.properties[d]=a(String(m||""),d,f))}}if(f.type==="element"){let d=t?!t.includes(f.tagName):l?l.includes(f.tagName):!1;if(!d&&r&&typeof c=="number"&&(d=!r(f,c,p)),d&&p&&typeof c=="number")return u&&f.children?p.children.splice(c,1,...f.children):p.children.splice(c,1),c}}}function Bv(e){const n=e.indexOf(":"),t=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return n===-1||i!==-1&&n>i||t!==-1&&n>t||r!==-1&&n>r||Fv.test(e.slice(0,n))?e:""}function Zc(e,n){const t=String(e);if(typeof n!="string")throw new TypeError("Expected character");let r=0,i=t.indexOf(n);for(;i!==-1;)r++,i=t.indexOf(n,i+n.length);return r}function Uv(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function $v(e,n,t){const i=Ul((t||{}).ignore||[]),l=Hv(n);let o=-1;for(;++o0?{type:"text",value:w}:void 0),w===!1?p.lastIndex=C+1:(m!==C&&g.push({type:"text",value:s.value.slice(m,C)}),Array.isArray(w)?g.push(...w):w&&g.push(w),m=C+y[0].length,h=!0),!p.global)break;y=p.exec(s.value)}return h?(m?\]}]+$/.exec(e);if(!n)return[e,void 0];e=e.slice(0,n.index);let t=n[0],r=t.indexOf(")");const i=Zc(e,"(");let l=Zc(e,")");for(;r!==-1&&i>l;)e+=t.slice(0,r+1),t=t.slice(r+1),r=t.indexOf(")"),l++;return[e,t]}function eh(e,n){const t=e.input.charCodeAt(e.index-1);return(e.index===0||wt(t)||bl(t))&&(!n||t!==47)}nh.peek=px;function ix(){this.buffer()}function lx(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function ox(){this.buffer()}function ux(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function ax(e){const n=this.resume(),t=this.stack[this.stack.length-1];t.type,t.identifier=hn(this.sliceSerialize(e)).toLowerCase(),t.label=n}function sx(e){this.exit(e)}function cx(e){const n=this.resume(),t=this.stack[this.stack.length-1];t.type,t.identifier=hn(this.sliceSerialize(e)).toLowerCase(),t.label=n}function fx(e){this.exit(e)}function px(){return"["}function nh(e,n,t,r){const i=t.createTracker(r);let l=i.move("[^");const o=t.enter("footnoteReference"),u=t.enter("reference");return l+=i.move(t.safe(t.associationId(e),{after:"]",before:l})),u(),o(),l+=i.move("]"),l}function dx(){return{enter:{gfmFootnoteCallString:ix,gfmFootnoteCall:lx,gfmFootnoteDefinitionLabelString:ox,gfmFootnoteDefinition:ux},exit:{gfmFootnoteCallString:ax,gfmFootnoteCall:sx,gfmFootnoteDefinitionLabelString:cx,gfmFootnoteDefinition:fx}}}function hx(e){let n=!1;return e&&e.firstLineBlank&&(n=!0),{handlers:{footnoteDefinition:t,footnoteReference:nh},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function t(r,i,l,o){const u=l.createTracker(o);let a=u.move("[^");const s=l.enter("footnoteDefinition"),f=l.enter("label");return a+=u.move(l.safe(l.associationId(r),{before:a,after:"]"})),f(),a+=u.move("]:"),r.children&&r.children.length>0&&(u.shift(4),a+=u.move((n?` +`:" ")+l.indentLines(l.containerFlow(r,u.current()),n?th:mx))),s(),a}}function mx(e,n,t){return n===0?e:th(e,n,t)}function th(e,n,t){return(t?"":" ")+e}const gx=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];rh.peek=wx;function yx(){return{canContainEols:["delete"],enter:{strikethrough:vx},exit:{strikethrough:xx}}}function kx(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:gx}],handlers:{delete:rh}}}function vx(e){this.enter({type:"delete",children:[]},e)}function xx(e){this.exit(e)}function rh(e,n,t,r){const i=t.createTracker(r),l=t.enter("strikethrough");let o=i.move("~~");return o+=t.containerPhrasing(e,{...i.current(),before:o,after:"~"}),o+=i.move("~~"),l(),o}function wx(){return"~"}function Sx(e){return e.length}function Cx(e,n){const t=n||{},r=(t.align||[]).concat(),i=t.stringLength||Sx,l=[],o=[],u=[],a=[];let s=0,f=-1;for(;++fs&&(s=e[f].length);++ha[h])&&(a[h]=y)}v.push(g)}o[f]=v,u[f]=P}let c=-1;if(typeof r=="object"&&"length"in r)for(;++ca[c]&&(a[c]=g),d[c]=g),p[c]=y}o.splice(1,0,p),u.splice(1,0,d),f=-1;const m=[];for(;++f "),l.shift(2);const o=t.indentLines(t.containerFlow(e,l.current()),Tx);return i(),o}function Tx(e,n,t){return">"+(t?"":" ")+e}function _x(e,n){return ef(e,n.inConstruct,!0)&&!ef(e,n.notInConstruct,!1)}function ef(e,n,t){if(typeof n=="string"&&(n=[n]),!n||n.length===0)return t;let r=-1;for(;++ro&&(o=l):l=1,i=r+n.length,r=t.indexOf(n,i);return o}function Ix(e,n){return!!(n.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function Lx(e){const n=e.options.fence||"`";if(n!=="`"&&n!=="~")throw new Error("Cannot serialize code with `"+n+"` for `options.fence`, expected `` ` `` or `~`");return n}function Nx(e,n,t,r){const i=Lx(t),l=e.value||"",o=i==="`"?"GraveAccent":"Tilde";if(Ix(e,t)){const c=t.enter("codeIndented"),p=t.indentLines(l,Dx);return c(),p}const u=t.createTracker(r),a=i.repeat(Math.max(zx(l,i)+1,3)),s=t.enter("codeFenced");let f=u.move(a);if(e.lang){const c=t.enter(`codeFencedLang${o}`);f+=u.move(t.safe(e.lang,{before:f,after:" ",encode:["`"],...u.current()})),c()}if(e.lang&&e.meta){const c=t.enter(`codeFencedMeta${o}`);f+=u.move(" "),f+=u.move(t.safe(e.meta,{before:f,after:` @@ -64,5 +64,5 @@ Error generating stack: `+l.message+` `+(i===1?"=":"-").repeat(p.length-(Math.max(p.lastIndexOf("\r"),p.lastIndexOf(` `))+1))}const o="#".repeat(i),u=t.enter("headingAtx"),a=t.enter("phrasing");l.move(o+" ");let s=t.containerPhrasing(e,{before:"# ",after:` `,...l.current()});return/^[\t ]/.test(s)&&(s=ni(s.charCodeAt(0))+s.slice(1)),s=s?o+" "+s:o,t.options.closeAtx&&(s+=" "+o),a(),u(),s}lh.peek=bx;function lh(e){return e.value||""}function bx(){return"<"}oh.peek=jx;function oh(e,n,t,r){const i=Ka(t),l=i==='"'?"Quote":"Apostrophe",o=t.enter("image");let u=t.enter("label");const a=t.createTracker(r);let s=a.move("![");return s+=a.move(t.safe(e.alt,{before:s,after:"]",...a.current()})),s+=a.move("]("),u(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(u=t.enter("destinationLiteral"),s+=a.move("<"),s+=a.move(t.safe(e.url,{before:s,after:">",...a.current()})),s+=a.move(">")):(u=t.enter("destinationRaw"),s+=a.move(t.safe(e.url,{before:s,after:e.title?" ":")",...a.current()}))),u(),e.title&&(u=t.enter(`title${l}`),s+=a.move(" "+i),s+=a.move(t.safe(e.title,{before:s,after:i,...a.current()})),s+=a.move(i),u()),s+=a.move(")"),o(),s}function jx(){return"!"}uh.peek=Bx;function uh(e,n,t,r){const i=e.referenceType,l=t.enter("imageReference");let o=t.enter("label");const u=t.createTracker(r);let a=u.move("![");const s=t.safe(e.alt,{before:a,after:"]",...u.current()});a+=u.move(s+"]["),o();const f=t.stack;t.stack=[],o=t.enter("reference");const c=t.safe(t.associationId(e),{before:a,after:"]",...u.current()});return o(),t.stack=f,l(),i==="full"||!s||s!==c?a+=u.move(c+"]"):i==="shortcut"?a=a.slice(0,-1):a+=u.move("]"),a}function Bx(){return"!"}ah.peek=Ux;function ah(e,n,t){let r=e.value||"",i="`",l=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++l\u007F]/.test(e.url))}ch.peek=$x;function ch(e,n,t,r){const i=Ka(t),l=i==='"'?"Quote":"Apostrophe",o=t.createTracker(r);let u,a;if(sh(e,t)){const f=t.stack;t.stack=[],u=t.enter("autolink");let c=o.move("<");return c+=o.move(t.containerPhrasing(e,{before:c,after:">",...o.current()})),c+=o.move(">"),u(),t.stack=f,c}u=t.enter("link"),a=t.enter("label");let s=o.move("[");return s+=o.move(t.containerPhrasing(e,{before:s,after:"](",...o.current()})),s+=o.move("]("),a(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(a=t.enter("destinationLiteral"),s+=o.move("<"),s+=o.move(t.safe(e.url,{before:s,after:">",...o.current()})),s+=o.move(">")):(a=t.enter("destinationRaw"),s+=o.move(t.safe(e.url,{before:s,after:e.title?" ":")",...o.current()}))),a(),e.title&&(a=t.enter(`title${l}`),s+=o.move(" "+i),s+=o.move(t.safe(e.title,{before:s,after:i,...o.current()})),s+=o.move(i),a()),s+=o.move(")"),u(),s}function $x(e,n,t){return sh(e,t)?"<":"["}fh.peek=Hx;function fh(e,n,t,r){const i=e.referenceType,l=t.enter("linkReference");let o=t.enter("label");const u=t.createTracker(r);let a=u.move("[");const s=t.containerPhrasing(e,{before:a,after:"]",...u.current()});a+=u.move(s+"]["),o();const f=t.stack;t.stack=[],o=t.enter("reference");const c=t.safe(t.associationId(e),{before:a,after:"]",...u.current()});return o(),t.stack=f,l(),i==="full"||!s||s!==c?a+=u.move(c+"]"):i==="shortcut"?a=a.slice(0,-1):a+=u.move("]"),a}function Hx(){return"["}function Ya(e){const n=e.options.bullet||"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bullet`, expected `*`, `+`, or `-`");return n}function Vx(e){const n=Ya(e),t=e.options.bulletOther;if(!t)return n==="*"?"-":"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(t===n)throw new Error("Expected `bullet` (`"+n+"`) and `bulletOther` (`"+t+"`) to be different");return t}function Wx(e){const n=e.options.bulletOrdered||".";if(n!=="."&&n!==")")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOrdered`, expected `.` or `)`");return n}function ph(e){const n=e.options.rule||"*";if(n!=="*"&&n!=="-"&&n!=="_")throw new Error("Cannot serialize rules with `"+n+"` for `options.rule`, expected `*`, `-`, or `_`");return n}function Qx(e,n,t,r){const i=t.enter("list"),l=t.bulletCurrent;let o=e.ordered?Wx(t):Ya(t);const u=e.ordered?o==="."?")":".":Vx(t);let a=n&&t.bulletLastUsed?o===t.bulletLastUsed:!1;if(!e.ordered){const f=e.children?e.children[0]:void 0;if((o==="*"||o==="-")&&f&&(!f.children||!f.children[0])&&t.stack[t.stack.length-1]==="list"&&t.stack[t.stack.length-2]==="listItem"&&t.stack[t.stack.length-3]==="list"&&t.stack[t.stack.length-4]==="listItem"&&t.indexStack[t.indexStack.length-1]===0&&t.indexStack[t.indexStack.length-2]===0&&t.indexStack[t.indexStack.length-3]===0&&(a=!0),ph(t)===o&&f){let c=-1;for(;++c-1?n.start:1)+(t.options.incrementListMarker===!1?0:n.children.indexOf(e))+l);let o=l.length+1;(i==="tab"||i==="mixed"&&(n&&n.type==="list"&&n.spread||e.spread))&&(o=Math.ceil(o/4)*4);const u=t.createTracker(r);u.move(l+" ".repeat(o-l.length)),u.shift(o);const a=t.enter("listItem"),s=t.indentLines(t.containerFlow(e,u.current()),f);return a(),s;function f(c,p,d){return p?(d?"":" ".repeat(o))+c:(d?l:l+" ".repeat(o-l.length))+c}}function qx(e,n,t,r){const i=t.enter("paragraph"),l=t.enter("phrasing"),o=t.containerPhrasing(e,r);return l(),i(),o}const Xx=Ul(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function Gx(e,n,t,r){return(e.children.some(function(o){return Xx(o)})?t.containerPhrasing:t.containerFlow).call(t,e,r)}function Zx(e){const n=e.options.strong||"*";if(n!=="*"&&n!=="_")throw new Error("Cannot serialize strong with `"+n+"` for `options.strong`, expected `*`, or `_`");return n}dh.peek=Jx;function dh(e,n,t,r){const i=Zx(t),l=t.enter("strong"),o=t.createTracker(r),u=o.move(i+i);let a=o.move(t.containerPhrasing(e,{after:i,before:u,...o.current()}));const s=a.charCodeAt(0),f=xl(r.before.charCodeAt(r.before.length-1),s,i);f.inside&&(a=ni(s)+a.slice(1));const c=a.charCodeAt(a.length-1),p=xl(r.after.charCodeAt(0),c,i);p.inside&&(a=a.slice(0,-1)+ni(c));const d=o.move(i+i);return l(),t.attentionEncodeSurroundingInfo={after:p.outside,before:f.outside},u+a+d}function Jx(e,n,t){return t.options.strong||"*"}function ew(e,n,t,r){return t.safe(e.value,r)}function nw(e){const n=e.options.ruleRepetition||3;if(n<3)throw new Error("Cannot serialize rules with repetition `"+n+"` for `options.ruleRepetition`, expected `3` or more");return n}function tw(e,n,t){const r=(ph(t)+(t.options.ruleSpaces?" ":"")).repeat(nw(t));return t.options.ruleSpaces?r.slice(0,-1):r}const hh={blockquote:Px,break:nf,code:Nx,definition:Ax,emphasis:ih,hardBreak:nf,heading:Mx,html:lh,image:oh,imageReference:uh,inlineCode:ah,link:ch,linkReference:fh,list:Qx,listItem:Yx,paragraph:qx,root:Gx,strong:dh,text:ew,thematicBreak:tw};function rw(){return{enter:{table:iw,tableData:tf,tableHeader:tf,tableRow:ow},exit:{codeText:uw,table:lw,tableData:Lo,tableHeader:Lo,tableRow:Lo}}}function iw(e){const n=e._align;this.enter({type:"table",align:n.map(function(t){return t==="none"?null:t}),children:[]},e),this.data.inTable=!0}function lw(e){this.exit(e),this.data.inTable=void 0}function ow(e){this.enter({type:"tableRow",children:[]},e)}function Lo(e){this.exit(e)}function tf(e){this.enter({type:"tableCell",children:[]},e)}function uw(e){let n=this.resume();this.data.inTable&&(n=n.replace(/\\([\\|])/g,aw));const t=this.stack[this.stack.length-1];t.type,t.value=n,this.exit(e)}function aw(e,n){return n==="|"?n:e}function sw(e){const n=e||{},t=n.tableCellPadding,r=n.tablePipeAlign,i=n.stringLength,l=t?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:` -`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:p,table:o,tableCell:a,tableRow:u}};function o(d,g,x,P){return s(f(d,x,P),d.align)}function u(d,g,x,P){const h=c(d,x,P),m=s([h]);return m.slice(0,m.indexOf(` -`))}function a(d,g,x,P){const h=x.enter("tableCell"),m=x.enter("phrasing"),y=x.containerPhrasing(d,{...P,before:l,after:l});return m(),h(),y}function s(d,g){return Cx(d,{align:g,alignDelimiters:r,padding:t,stringLength:i})}function f(d,g,x){const P=d.children;let h=-1;const m=[],y=g.enter("table");for(;++h0&&!t&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),t}const _w={tokenize:Rw,partial:!0};function zw(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:Dw,continuation:{tokenize:Aw},exit:Fw}},text:{91:{name:"gfmFootnoteCall",tokenize:Nw},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:Iw,resolveTo:Lw}}}}function Iw(e,n,t){const r=this;let i=r.events.length;const l=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o;for(;i--;){const a=r.events[i][1];if(a.type==="labelImage"){o=a;break}if(a.type==="gfmFootnoteCall"||a.type==="labelLink"||a.type==="label"||a.type==="image"||a.type==="link")break}return u;function u(a){if(!o||!o._balanced)return t(a);const s=hn(r.sliceSerialize({start:o.end,end:r.now()}));return s.codePointAt(0)!==94||!l.includes(s.slice(1))?t(a):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(a),e.exit("gfmFootnoteCallLabelMarker"),n(a))}}function Lw(e,n){let t=e.length;for(;t--;)if(e[t][1].type==="labelImage"&&e[t][0]==="enter"){e[t][1];break}e[t+1][1].type="data",e[t+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[t+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[t+3][1].end),end:Object.assign({},e[t+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const l={type:"gfmFootnoteCallString",start:Object.assign({},i.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)},u=[e[t+1],e[t+2],["enter",r,n],e[t+3],e[t+4],["enter",i,n],["exit",i,n],["enter",l,n],["enter",o,n],["exit",o,n],["exit",l,n],e[e.length-2],e[e.length-1],["exit",r,n]];return e.splice(t,e.length-t+1,...u),e}function Nw(e,n,t){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let l=0,o;return u;function u(c){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),a}function a(c){return c!==94?t(c):(e.enter("gfmFootnoteCallMarker"),e.consume(c),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",s)}function s(c){if(l>999||c===93&&!o||c===null||c===91||J(c))return t(c);if(c===93){e.exit("chunkString");const p=e.exit("gfmFootnoteCallString");return i.includes(hn(r.sliceSerialize(p)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),n):t(c)}return J(c)||(o=!0),l++,e.consume(c),c===92?f:s}function f(c){return c===91||c===92||c===93?(e.consume(c),l++,s):s(c)}}function Dw(e,n,t){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let l,o=0,u;return a;function a(g){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionLabelMarker"),s}function s(g){return g===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",f):t(g)}function f(g){if(o>999||g===93&&!u||g===null||g===91||J(g))return t(g);if(g===93){e.exit("chunkString");const x=e.exit("gfmFootnoteDefinitionLabelString");return l=hn(r.sliceSerialize(x)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p}return J(g)||(u=!0),o++,e.consume(g),g===92?c:f}function c(g){return g===91||g===92||g===93?(e.consume(g),o++,f):f(g)}function p(g){return g===58?(e.enter("definitionMarker"),e.consume(g),e.exit("definitionMarker"),i.includes(l)||i.push(l),Q(e,d,"gfmFootnoteDefinitionWhitespace")):t(g)}function d(g){return n(g)}}function Aw(e,n,t){return e.check(ai,n,e.attempt(_w,n,t))}function Fw(e){e.exit("gfmFootnoteDefinition")}function Rw(e,n,t){const r=this;return Q(e,i,"gfmFootnoteDefinitionIndent",4+1);function i(l){const o=r.events[r.events.length-1];return o&&o[1].type==="gfmFootnoteDefinitionIndent"&&o[2].sliceSerialize(o[1],!0).length===4?n(l):t(l)}}function Ow(e){let t=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:l,resolveAll:i};return t==null&&(t=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(o,u){let a=-1;for(;++a1?a(g):(o.consume(g),c++,d);if(c<2&&!t)return a(g);const P=o.exit("strikethroughSequenceTemporary"),h=rr(g);return P._open=!h||h===2&&!!x,P._close=!x||x===2&&!!h,u(g)}}}class Mw{constructor(){this.map=[]}add(n,t,r){bw(this,n,t,r)}consume(n){if(this.map.sort(function(l,o){return l[0]-o[0]}),this.map.length===0)return;let t=this.map.length;const r=[];for(;t>0;)t-=1,r.push(n.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),n.length=this.map[t][0];r.push(n.slice()),n.length=0;let i=r.pop();for(;i;){for(const l of i)n.push(l);i=r.pop()}this.map.length=0}}function bw(e,n,t,r){let i=0;if(!(t===0&&r.length===0)){for(;i-1;){const ee=r.events[A][1].type;if(ee==="lineEnding"||ee==="linePrefix")A--;else break}const R=A>-1?r.events[A][1].type:null,K=R==="tableHead"||R==="tableRow"?w:a;return K===w&&r.parser.lazy[r.now().line]?t(S):K(S)}function a(S){return e.enter("tableHead"),e.enter("tableRow"),s(S)}function s(S){return S===124||(o=!0,l+=1),f(S)}function f(S){return S===null?t(S):O(S)?l>1?(l=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(S),e.exit("lineEnding"),d):t(S):$(S)?Q(e,f,"whitespace")(S):(l+=1,o&&(o=!1,i+=1),S===124?(e.enter("tableCellDivider"),e.consume(S),e.exit("tableCellDivider"),o=!0,f):(e.enter("data"),c(S)))}function c(S){return S===null||S===124||J(S)?(e.exit("data"),f(S)):(e.consume(S),S===92?p:c)}function p(S){return S===92||S===124?(e.consume(S),c):c(S)}function d(S){return r.interrupt=!1,r.parser.lazy[r.now().line]?t(S):(e.enter("tableDelimiterRow"),o=!1,$(S)?Q(e,g,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(S):g(S))}function g(S){return S===45||S===58?P(S):S===124?(o=!0,e.enter("tableCellDivider"),e.consume(S),e.exit("tableCellDivider"),x):T(S)}function x(S){return $(S)?Q(e,P,"whitespace")(S):P(S)}function P(S){return S===58?(l+=1,o=!0,e.enter("tableDelimiterMarker"),e.consume(S),e.exit("tableDelimiterMarker"),h):S===45?(l+=1,h(S)):S===null||O(S)?C(S):T(S)}function h(S){return S===45?(e.enter("tableDelimiterFiller"),m(S)):T(S)}function m(S){return S===45?(e.consume(S),m):S===58?(o=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(S),e.exit("tableDelimiterMarker"),y):(e.exit("tableDelimiterFiller"),y(S))}function y(S){return $(S)?Q(e,C,"whitespace")(S):C(S)}function C(S){return S===124?g(S):S===null||O(S)?!o||i!==l?T(S):(e.exit("tableDelimiterRow"),e.exit("tableHead"),n(S)):T(S)}function T(S){return t(S)}function w(S){return e.enter("tableRow"),z(S)}function z(S){return S===124?(e.enter("tableCellDivider"),e.consume(S),e.exit("tableCellDivider"),z):S===null||O(S)?(e.exit("tableRow"),n(S)):$(S)?Q(e,z,"whitespace")(S):(e.enter("data"),L(S))}function L(S){return S===null||S===124||J(S)?(e.exit("data"),z(S)):(e.consume(S),S===92?M:L)}function M(S){return S===92||S===124?(e.consume(S),L):L(S)}}function $w(e,n){let t=-1,r=!0,i=0,l=[0,0,0,0],o=[0,0,0,0],u=!1,a=0,s,f,c;const p=new Mw;for(;++tt[2]+1){const g=t[2]+1,x=t[3]-t[2]-1;e.add(g,x,[])}}e.add(t[3]+1,0,[["exit",c,n]])}return i!==void 0&&(l.end=Object.assign({},Lt(n.events,i)),e.add(i,0,[["exit",l,n]]),l=void 0),l}function lf(e,n,t,r,i){const l=[],o=Lt(n.events,t);i&&(i.end=Object.assign({},o),l.push(["exit",i,n])),r.end=Object.assign({},o),l.push(["exit",r,n]),e.add(t+1,0,l)}function Lt(e,n){const t=e[n],r=t[0]==="enter"?"start":"end";return t[1][r]}const Hw={name:"tasklistCheck",tokenize:Ww};function Vw(){return{text:{91:Hw}}}function Ww(e,n,t){const r=this;return i;function i(a){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?t(a):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(a),e.exit("taskListCheckMarker"),l)}function l(a){return J(a)?(e.enter("taskListCheckValueUnchecked"),e.consume(a),e.exit("taskListCheckValueUnchecked"),o):a===88||a===120?(e.enter("taskListCheckValueChecked"),e.consume(a),e.exit("taskListCheckValueChecked"),o):t(a)}function o(a){return a===93?(e.enter("taskListCheckMarker"),e.consume(a),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),u):t(a)}function u(a){return O(a)?n(a):$(a)?e.check({tokenize:Qw},n,t)(a):t(a)}}function Qw(e,n,t){return Q(e,r,"whitespace");function r(i){return i===null?t(i):n(i)}}function Kw(e){return Dd([kw(),zw(),Ow(e),Bw(),Vw()])}const Yw={};function qw(e){const n=this,t=e||Yw,r=n.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),l=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),o=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(Kw(t)),l.push(hw()),o.push(mw(t))}const Xw=({initialContent:e="",onSave:n})=>{const[t,r]=en.useState(e),[i,l]=en.useState(!1);en.useEffect(()=>{r(e)},[e]);const o=u=>{const a=u.target.value;r(a),n(a)};return U.jsxs("div",{className:"flex flex-col h-full",children:[U.jsx("div",{className:"flex items-center justify-between px-4 py-2 bg-gray-200 dark:bg-dark-surface border-b dark:border-dark-surface",children:U.jsx("div",{className:"flex space-x-2",children:U.jsx("button",{onClick:()=>l(!i),className:"px-3 py-1 text-sm font-medium text-gray-700 dark:text-dark-text rounded hover:bg-gray-300 dark:hover:bg-dark-surface transition-colors",children:i?"Edit":"Preview"})})}),U.jsx("div",{className:"flex-1 overflow-hidden flex flex-col",children:i?U.jsx("div",{className:"flex-1 overflow-auto p-4 dark:bg-dark-bg dark:text-dark-text",children:U.jsx(Ov,{remarkPlugins:[qw],children:t})}):U.jsx("textarea",{value:t,onChange:o,className:"flex-1 w-full resize-none p-4 bg-gray-50 dark:bg-dark-surface dark:text-dark-text text-gray-900 focus:outline-none font-mono",placeholder:"Type your markdown here...",spellCheck:!1})})]})},Gw=({files:e,currentFile:n,onCreate:t,onOpen:r,onDelete:i})=>{const[l,o]=en.useState(""),[u,a]=en.useState(!1),s=()=>{if(l.trim()){const c=l.trim()+".md";t(c,""),o(""),a(!1)}},f=c=>{c.key==="Enter"&&s()};return U.jsxs("div",{className:"w-64 bg-gray-100 dark:bg-dark-surface border-r dark:border-dark-surface flex flex-col",children:[U.jsxs("div",{className:"p-4 border-b dark:border-dark-surface",children:[U.jsx("h2",{className:"text-lg font-semibold text-gray-800 dark:text-dark-text mb-2",children:"Files"}),U.jsx("button",{onClick:()=>a(!u),className:"w-full px-3 py-2 bg-blue-500 dark:bg-blue-600 text-white rounded hover:bg-blue-600 dark:hover:bg-blue-700 transition-colors",children:"Create New File"}),u&&U.jsx("div",{className:"mt-2",children:U.jsx("input",{type:"text",value:l,onChange:c=>o(c.target.value),onKeyDown:f,placeholder:"Filename...",className:"w-full px-3 py-2 bg-white dark:bg-dark-bg text-gray-900 dark:text-dark-text rounded border border-gray-300 dark:border-dark-text focus:outline-none focus:ring-2 focus:ring-blue-500"})})]}),U.jsx("div",{className:"flex-1 overflow-y-auto p-2",children:e.length===0?U.jsx("p",{className:"text-gray-500 dark:text-dark-textMuted text-center py-4",children:"No files yet"}):e.map(c=>U.jsx("div",{onClick:()=>r(c),className:`p-2 rounded cursor-pointer transition-colors ${n===c?"bg-blue-100 dark:bg-blue-900 text-blue-900 dark:text-blue-100":"hover:bg-gray-200 dark:hover:bg-dark-surface text-gray-700 dark:text-dark-text"}`,children:U.jsxs("div",{className:"flex items-center justify-between",children:[U.jsx("span",{children:c}),U.jsx("button",{onClick:p=>{p.stopPropagation(),i(c)},className:"text-red-500 hover:text-red-700",children:"×"})]})},c))})]})},Zw=({darkMode:e,onToggle:n})=>{const t=e?U.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:U.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 3v1m0 16v1m9-9h-1M4 12H3m15.364 6.364l-.707-.707M6.343 6.343l-.707-.707m12.728 0l-.707.707M6.343 17.657l-.707.707M16 12a4 4 0 11-8 0 4 4 0 018 0z"})}):U.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:U.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M20.354 15.354A9 9 0 018 15.354c1.433-2.035 3.49-3.585 5.84-4.238l.092.009a4 4 0 013.477 3.477l.009.092C15.915 7.505 17.465 9.562 19.5 11a9 9 0 01-1.146 3.354z"})});return U.jsx("div",{className:"absolute top-4 right-4 z-10",children:U.jsx("button",{onClick:n,className:"p-2 rounded-lg bg-gray-300 dark:bg-dark-surface text-gray-700 dark:text-dark-text hover:bg-gray-400 dark:hover:bg-dark-surface transition-colors shadow-md","aria-label":"Toggle theme",children:t})})};function Jw(){const[e,n]=en.useState(null),[t,r]=en.useState([]),[i,l]=en.useState(!1);en.useEffect(()=>{o()},[]);const o=async()=>{try{const d=await(await fetch("/api/files")).json();r(d.files)}catch(p){console.error("Failed to fetch files:",p)}},u=async(p,d)=>{try{(await fetch("/api/files",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:p,content:d})})).ok&&(await o(),n(p))}catch(g){console.error("Failed to create file:",g)}},a=async p=>{try{await(await fetch(`/api/files/${p}`)).json(),n(p)}catch(d){console.error("Failed to open file:",d)}},s=async p=>{if(e)try{if(!(await fetch(`/api/files/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:e,content:p})})).ok)throw new Error("Failed to save file")}catch(d){console.error("Failed to save file:",d)}},f=async p=>{try{await fetch(`/api/files/${p}`,{method:"DELETE"}),e===p&&n(null),await o()}catch(d){console.error("Failed to delete file:",d)}},c=()=>{l(!i)};return U.jsx("div",{className:`min-h-screen ${i?"dark":""}`,children:U.jsxs("div",{className:"flex h-screen bg-gray-100 dark:bg-dark-bg transition-colors duration-200",children:[U.jsx(Zw,{darkMode:i,onToggle:c}),U.jsx(Gw,{files:t,currentFile:e,onCreate:u,onOpen:a,onDelete:f}),e&&U.jsxs("div",{className:"flex-1 flex flex-col overflow-hidden",children:[U.jsx("div",{className:"flex items-center justify-between px-4 py-2 bg-gray-200 dark:bg-dark-surface border-b dark:border-dark-surface",children:U.jsx("h2",{className:"text-lg font-semibold text-gray-800 dark:text-dark-text",children:e})}),U.jsx("div",{className:"flex-1 overflow-hidden flex flex-col",children:U.jsx(Xw,{initialContent:"",onSave:s})})]})]})})}No.createRoot(document.getElementById("root")).render(U.jsx(Kh.StrictMode,{children:U.jsx(Jw,{})})); +`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:p,table:o,tableCell:a,tableRow:u}};function o(d,m,v,P){return s(f(d,v,P),d.align)}function u(d,m,v,P){const h=c(d,v,P),g=s([h]);return g.slice(0,g.indexOf(` +`))}function a(d,m,v,P){const h=v.enter("tableCell"),g=v.enter("phrasing"),y=v.containerPhrasing(d,{...P,before:l,after:l});return g(),h(),y}function s(d,m){return Cx(d,{align:m,alignDelimiters:r,padding:t,stringLength:i})}function f(d,m,v){const P=d.children;let h=-1;const g=[],y=m.enter("table");for(;++h0&&!t&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),t}const _w={tokenize:Rw,partial:!0};function zw(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:Dw,continuation:{tokenize:Aw},exit:Fw}},text:{91:{name:"gfmFootnoteCall",tokenize:Nw},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:Iw,resolveTo:Lw}}}}function Iw(e,n,t){const r=this;let i=r.events.length;const l=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o;for(;i--;){const a=r.events[i][1];if(a.type==="labelImage"){o=a;break}if(a.type==="gfmFootnoteCall"||a.type==="labelLink"||a.type==="label"||a.type==="image"||a.type==="link")break}return u;function u(a){if(!o||!o._balanced)return t(a);const s=hn(r.sliceSerialize({start:o.end,end:r.now()}));return s.codePointAt(0)!==94||!l.includes(s.slice(1))?t(a):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(a),e.exit("gfmFootnoteCallLabelMarker"),n(a))}}function Lw(e,n){let t=e.length;for(;t--;)if(e[t][1].type==="labelImage"&&e[t][0]==="enter"){e[t][1];break}e[t+1][1].type="data",e[t+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[t+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[t+3][1].end),end:Object.assign({},e[t+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const l={type:"gfmFootnoteCallString",start:Object.assign({},i.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)},u=[e[t+1],e[t+2],["enter",r,n],e[t+3],e[t+4],["enter",i,n],["exit",i,n],["enter",l,n],["enter",o,n],["exit",o,n],["exit",l,n],e[e.length-2],e[e.length-1],["exit",r,n]];return e.splice(t,e.length-t+1,...u),e}function Nw(e,n,t){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let l=0,o;return u;function u(c){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),a}function a(c){return c!==94?t(c):(e.enter("gfmFootnoteCallMarker"),e.consume(c),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",s)}function s(c){if(l>999||c===93&&!o||c===null||c===91||J(c))return t(c);if(c===93){e.exit("chunkString");const p=e.exit("gfmFootnoteCallString");return i.includes(hn(r.sliceSerialize(p)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),n):t(c)}return J(c)||(o=!0),l++,e.consume(c),c===92?f:s}function f(c){return c===91||c===92||c===93?(e.consume(c),l++,s):s(c)}}function Dw(e,n,t){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let l,o=0,u;return a;function a(m){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionLabelMarker"),s}function s(m){return m===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",f):t(m)}function f(m){if(o>999||m===93&&!u||m===null||m===91||J(m))return t(m);if(m===93){e.exit("chunkString");const v=e.exit("gfmFootnoteDefinitionLabelString");return l=hn(r.sliceSerialize(v)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p}return J(m)||(u=!0),o++,e.consume(m),m===92?c:f}function c(m){return m===91||m===92||m===93?(e.consume(m),o++,f):f(m)}function p(m){return m===58?(e.enter("definitionMarker"),e.consume(m),e.exit("definitionMarker"),i.includes(l)||i.push(l),Q(e,d,"gfmFootnoteDefinitionWhitespace")):t(m)}function d(m){return n(m)}}function Aw(e,n,t){return e.check(ai,n,e.attempt(_w,n,t))}function Fw(e){e.exit("gfmFootnoteDefinition")}function Rw(e,n,t){const r=this;return Q(e,i,"gfmFootnoteDefinitionIndent",4+1);function i(l){const o=r.events[r.events.length-1];return o&&o[1].type==="gfmFootnoteDefinitionIndent"&&o[2].sliceSerialize(o[1],!0).length===4?n(l):t(l)}}function Ow(e){let t=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:l,resolveAll:i};return t==null&&(t=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(o,u){let a=-1;for(;++a1?a(m):(o.consume(m),c++,d);if(c<2&&!t)return a(m);const P=o.exit("strikethroughSequenceTemporary"),h=rr(m);return P._open=!h||h===2&&!!v,P._close=!v||v===2&&!!h,u(m)}}}class Mw{constructor(){this.map=[]}add(n,t,r){bw(this,n,t,r)}consume(n){if(this.map.sort(function(l,o){return l[0]-o[0]}),this.map.length===0)return;let t=this.map.length;const r=[];for(;t>0;)t-=1,r.push(n.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),n.length=this.map[t][0];r.push(n.slice()),n.length=0;let i=r.pop();for(;i;){for(const l of i)n.push(l);i=r.pop()}this.map.length=0}}function bw(e,n,t,r){let i=0;if(!(t===0&&r.length===0)){for(;i-1;){const ee=r.events[A][1].type;if(ee==="lineEnding"||ee==="linePrefix")A--;else break}const R=A>-1?r.events[A][1].type:null,K=R==="tableHead"||R==="tableRow"?w:a;return K===w&&r.parser.lazy[r.now().line]?t(S):K(S)}function a(S){return e.enter("tableHead"),e.enter("tableRow"),s(S)}function s(S){return S===124||(o=!0,l+=1),f(S)}function f(S){return S===null?t(S):O(S)?l>1?(l=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(S),e.exit("lineEnding"),d):t(S):$(S)?Q(e,f,"whitespace")(S):(l+=1,o&&(o=!1,i+=1),S===124?(e.enter("tableCellDivider"),e.consume(S),e.exit("tableCellDivider"),o=!0,f):(e.enter("data"),c(S)))}function c(S){return S===null||S===124||J(S)?(e.exit("data"),f(S)):(e.consume(S),S===92?p:c)}function p(S){return S===92||S===124?(e.consume(S),c):c(S)}function d(S){return r.interrupt=!1,r.parser.lazy[r.now().line]?t(S):(e.enter("tableDelimiterRow"),o=!1,$(S)?Q(e,m,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(S):m(S))}function m(S){return S===45||S===58?P(S):S===124?(o=!0,e.enter("tableCellDivider"),e.consume(S),e.exit("tableCellDivider"),v):T(S)}function v(S){return $(S)?Q(e,P,"whitespace")(S):P(S)}function P(S){return S===58?(l+=1,o=!0,e.enter("tableDelimiterMarker"),e.consume(S),e.exit("tableDelimiterMarker"),h):S===45?(l+=1,h(S)):S===null||O(S)?C(S):T(S)}function h(S){return S===45?(e.enter("tableDelimiterFiller"),g(S)):T(S)}function g(S){return S===45?(e.consume(S),g):S===58?(o=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(S),e.exit("tableDelimiterMarker"),y):(e.exit("tableDelimiterFiller"),y(S))}function y(S){return $(S)?Q(e,C,"whitespace")(S):C(S)}function C(S){return S===124?m(S):S===null||O(S)?!o||i!==l?T(S):(e.exit("tableDelimiterRow"),e.exit("tableHead"),n(S)):T(S)}function T(S){return t(S)}function w(S){return e.enter("tableRow"),z(S)}function z(S){return S===124?(e.enter("tableCellDivider"),e.consume(S),e.exit("tableCellDivider"),z):S===null||O(S)?(e.exit("tableRow"),n(S)):$(S)?Q(e,z,"whitespace")(S):(e.enter("data"),L(S))}function L(S){return S===null||S===124||J(S)?(e.exit("data"),z(S)):(e.consume(S),S===92?M:L)}function M(S){return S===92||S===124?(e.consume(S),L):L(S)}}function $w(e,n){let t=-1,r=!0,i=0,l=[0,0,0,0],o=[0,0,0,0],u=!1,a=0,s,f,c;const p=new Mw;for(;++tt[2]+1){const m=t[2]+1,v=t[3]-t[2]-1;e.add(m,v,[])}}e.add(t[3]+1,0,[["exit",c,n]])}return i!==void 0&&(l.end=Object.assign({},Lt(n.events,i)),e.add(i,0,[["exit",l,n]]),l=void 0),l}function lf(e,n,t,r,i){const l=[],o=Lt(n.events,t);i&&(i.end=Object.assign({},o),l.push(["exit",i,n])),r.end=Object.assign({},o),l.push(["exit",r,n]),e.add(t+1,0,l)}function Lt(e,n){const t=e[n],r=t[0]==="enter"?"start":"end";return t[1][r]}const Hw={name:"tasklistCheck",tokenize:Ww};function Vw(){return{text:{91:Hw}}}function Ww(e,n,t){const r=this;return i;function i(a){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?t(a):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(a),e.exit("taskListCheckMarker"),l)}function l(a){return J(a)?(e.enter("taskListCheckValueUnchecked"),e.consume(a),e.exit("taskListCheckValueUnchecked"),o):a===88||a===120?(e.enter("taskListCheckValueChecked"),e.consume(a),e.exit("taskListCheckValueChecked"),o):t(a)}function o(a){return a===93?(e.enter("taskListCheckMarker"),e.consume(a),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),u):t(a)}function u(a){return O(a)?n(a):$(a)?e.check({tokenize:Qw},n,t)(a):t(a)}}function Qw(e,n,t){return Q(e,r,"whitespace");function r(i){return i===null?t(i):n(i)}}function Kw(e){return Dd([kw(),zw(),Ow(e),Bw(),Vw()])}const Yw={};function qw(e){const n=this,t=e||Yw,r=n.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),l=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),o=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(Kw(t)),l.push(hw()),o.push(mw(t))}const Xw=({initialContent:e="",onSave:n})=>{const[t,r]=We.useState(e),[i,l]=We.useState(!1);We.useEffect(()=>{r(e)},[e]);const o=u=>{const a=u.target.value;r(a),n(a)};return U.jsxs("div",{className:"flex flex-col h-full",children:[U.jsx("div",{className:"flex items-center justify-between px-4 py-2 bg-gray-200 dark:bg-dark-surface border-b dark:border-dark-surface",children:U.jsx("div",{className:"flex space-x-2",children:U.jsx("button",{onClick:()=>l(!i),className:"px-3 py-1 text-sm font-medium text-gray-700 dark:text-dark-text rounded hover:bg-gray-300 dark:hover:bg-dark-surface transition-colors",children:i?"Edit":"Preview"})})}),U.jsx("div",{className:"flex-1 overflow-hidden flex flex-col",children:i?U.jsx("div",{className:"flex-1 overflow-auto p-4 dark:bg-dark-bg dark:text-dark-text",children:U.jsx(Ov,{remarkPlugins:[qw],children:t})}):U.jsx("textarea",{value:t,onChange:o,className:"flex-1 w-full resize-none p-4 bg-gray-50 dark:bg-dark-surface dark:text-dark-text text-gray-900 focus:outline-none font-mono",placeholder:"Type your markdown here...",spellCheck:!1})})]})},Gw=({files:e,currentFile:n,onCreate:t,onOpen:r,onDelete:i})=>{const[l,o]=We.useState(""),[u,a]=We.useState(!1),s=()=>{if(l.trim()){const c=l.trim()+".md";t(c,""),o(""),a(!1)}},f=c=>{c.key==="Enter"&&s()};return U.jsxs("div",{className:"w-64 bg-gray-100 dark:bg-dark-surface border-r dark:border-dark-surface flex flex-col",children:[U.jsxs("div",{className:"p-4 border-b dark:border-dark-surface",children:[U.jsx("h2",{className:"text-lg font-semibold text-gray-800 dark:text-dark-text mb-2",children:"Files"}),U.jsx("button",{onClick:()=>a(!u),className:"w-full px-3 py-2 bg-blue-500 dark:bg-blue-600 text-white rounded hover:bg-blue-600 dark:hover:bg-blue-700 transition-colors",children:"Create New File"}),u&&U.jsx("div",{className:"mt-2",children:U.jsx("input",{type:"text",value:l,onChange:c=>o(c.target.value),onKeyDown:f,placeholder:"Filename...",className:"w-full px-3 py-2 bg-white dark:bg-dark-bg text-gray-900 dark:text-dark-text rounded border border-gray-300 dark:border-dark-text focus:outline-none focus:ring-2 focus:ring-blue-500"})})]}),U.jsx("div",{className:"flex-1 overflow-y-auto p-2",children:e.length===0?U.jsx("p",{className:"text-gray-500 dark:text-dark-textMuted text-center py-4",children:"No files yet"}):e.map(c=>U.jsx("div",{onClick:()=>r(c),className:`p-2 rounded cursor-pointer transition-colors ${n===c?"bg-blue-100 dark:bg-blue-900 text-blue-900 dark:text-blue-100":"hover:bg-gray-200 dark:hover:bg-dark-surface text-gray-700 dark:text-dark-text"}`,children:U.jsxs("div",{className:"flex items-center justify-between",children:[U.jsx("span",{children:c}),U.jsx("button",{onClick:p=>{p.stopPropagation(),i(c)},className:"text-red-500 hover:text-red-700",children:"×"})]})},c))})]})},Zw=({darkMode:e,onToggle:n})=>{const t=e?U.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:U.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 3v1m0 16v1m9-9h-1M4 12H3m15.364 6.364l-.707-.707M6.343 6.343l-.707-.707m12.728 0l-.707.707M6.343 17.657l-.707.707M16 12a4 4 0 11-8 0 4 4 0 018 0z"})}):U.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:U.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M20.354 15.354A9 9 0 018 15.354c1.433-2.035 3.49-3.585 5.84-4.238l.092.009a4 4 0 013.477 3.477l.009.092C15.915 7.505 17.465 9.562 19.5 11a9 9 0 01-1.146 3.354z"})});return U.jsx("div",{className:"absolute top-4 right-4 z-10",children:U.jsx("button",{onClick:n,className:"p-2 rounded-lg bg-gray-300 dark:bg-dark-surface text-gray-700 dark:text-dark-text hover:bg-gray-400 dark:hover:bg-dark-surface transition-colors shadow-md","aria-label":"Toggle theme",children:t})})};function Jw(){const[e,n]=We.useState(null),[t,r]=We.useState([]),[i,l]=We.useState(""),[o,u]=We.useState(!1);We.useEffect(()=>{a()},[]);const a=async()=>{try{const v=await(await fetch("/api/files")).json();r(v.files)}catch(m){console.error("Failed to fetch files:",m)}},s=async(m,v)=>{try{(await fetch("/api/files",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:m,content:v})})).ok&&(await a(),n(m),l(v))}catch(P){console.error("Failed to create file:",P)}},f=async m=>{try{const P=await(await fetch(`/api/files/${m}`)).json();n(m),l(P.content||"")}catch(v){console.error("Failed to open file:",v)}},c=async m=>{if(e)try{if(!(await fetch(`/api/files/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:e,content:m})})).ok)throw new Error("Failed to save file")}catch(v){console.error("Failed to save file:",v)}},p=async m=>{try{await fetch(`/api/files/${m}`,{method:"DELETE"}),e===m&&(n(null),l("")),await a()}catch(v){console.error("Failed to delete file:",v)}},d=()=>{u(!o)};return U.jsx("div",{className:`min-h-screen ${o?"dark":""}`,children:U.jsxs("div",{className:"flex h-screen bg-gray-100 dark:bg-dark-bg transition-colors duration-200",children:[U.jsx(Zw,{darkMode:o,onToggle:d}),U.jsx(Gw,{files:t,currentFile:e,onCreate:s,onOpen:f,onDelete:p}),e&&U.jsxs("div",{className:"flex-1 flex flex-col overflow-hidden",children:[U.jsx("div",{className:"flex items-center justify-between px-4 py-2 bg-gray-200 dark:bg-dark-surface border-b dark:border-dark-surface",children:U.jsx("h2",{className:"text-lg font-semibold text-gray-800 dark:text-dark-text",children:e})}),U.jsx("div",{className:"flex-1 overflow-hidden flex flex-col",children:U.jsx(Xw,{initialContent:i,onSave:c})})]})]})})}No.createRoot(document.getElementById("root")).render(U.jsx(Kh.StrictMode,{children:U.jsx(Jw,{})})); diff --git a/frontend/dist/index.html b/frontend/dist/index.html index 5a75f5e..41c27b4 100644 --- a/frontend/dist/index.html +++ b/frontend/dist/index.html @@ -5,7 +5,7 @@ Markdown Editor - + diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index f28f00e..e54001b 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -6,6 +6,7 @@ import { ThemeSwitcher } from './components/ThemeSwitcher' function App() { const [currentFile, setCurrentFile] = useState(null) const [files, setFiles] = useState([]) + const [fileContent, setFileContent] = useState('') const [darkMode, setDarkMode] = useState(false) useEffect(() => { @@ -34,6 +35,7 @@ function App() { if (response.ok) { await fetchFiles() setCurrentFile(name) + setFileContent(content) } } catch (error) { console.error('Failed to create file:', error) @@ -43,8 +45,9 @@ function App() { const handleFileOpen = async (name: string) => { try { const response = await fetch(`/api/files/${name}`) - await response.json() + const data = await response.json() setCurrentFile(name) + setFileContent(data.content || '') } catch (error) { console.error('Failed to open file:', error) } @@ -78,6 +81,7 @@ function App() { if (currentFile === name) { setCurrentFile(null) + setFileContent('') } await fetchFiles() } catch (error) { @@ -111,7 +115,7 @@ function App() {