diff --git "a/assets/index-C7uwOw_8.js" "b/assets/index-C7uwOw_8.js" new file mode 100644--- /dev/null +++ "b/assets/index-C7uwOw_8.js" @@ -0,0 +1,86 @@ +var up=Object.defineProperty;var Ic=v=>{throw TypeError(v)};var ap=(v,s,o)=>s in v?up(v,s,{enumerable:!0,configurable:!0,writable:!0,value:o}):v[s]=o;var xe=(v,s,o)=>ap(v,typeof s!="symbol"?s+"":s,o),cp=(v,s,o)=>s.has(v)||Ic("Cannot "+o);var Mc=(v,s,o)=>s.has(v)?Ic("Cannot add the same private member more than once"):s instanceof WeakSet?s.add(v):s.set(v,o);var Zi=(v,s,o)=>(cp(v,s,"access private method"),o);(function(){const s=document.createElement("link").relList;if(s&&s.supports&&s.supports("modulepreload"))return;for(const f of document.querySelectorAll('link[rel="modulepreload"]'))a(f);new MutationObserver(f=>{for(const h of f)if(h.type==="childList")for(const d of h.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&a(d)}).observe(document,{childList:!0,subtree:!0});function o(f){const h={};return f.integrity&&(h.integrity=f.integrity),f.referrerPolicy&&(h.referrerPolicy=f.referrerPolicy),f.crossOrigin==="use-credentials"?h.credentials="include":f.crossOrigin==="anonymous"?h.credentials="omit":h.credentials="same-origin",h}function a(f){if(f.ep)return;f.ep=!0;const h=o(f);fetch(f.href,h)}})();function of(v){return v&&v.__esModule&&Object.prototype.hasOwnProperty.call(v,"default")?v.default:v}var Bs={exports:{}},Ll={},Ws={exports:{}},re={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Oc;function fp(){if(Oc)return re;Oc=1;var v=Symbol.for("react.element"),s=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),h=Symbol.for("react.provider"),d=Symbol.for("react.context"),S=Symbol.for("react.forward_ref"),E=Symbol.for("react.suspense"),j=Symbol.for("react.memo"),A=Symbol.for("react.lazy"),M=Symbol.iterator;function z(y){return y===null||typeof y!="object"?null:(y=M&&y[M]||y["@@iterator"],typeof y=="function"?y:null)}var G={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},ce=Object.assign,Z={};function J(y,_,V){this.props=y,this.context=_,this.refs=Z,this.updater=V||G}J.prototype.isReactComponent={},J.prototype.setState=function(y,_){if(typeof y!="object"&&typeof y!="function"&&y!=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,y,_,"setState")},J.prototype.forceUpdate=function(y){this.updater.enqueueForceUpdate(this,y,"forceUpdate")};function De(){}De.prototype=J.prototype;function je(y,_,V){this.props=y,this.context=_,this.refs=Z,this.updater=V||G}var Ne=je.prototype=new De;Ne.constructor=je,ce(Ne,J.prototype),Ne.isPureReactComponent=!0;var le=Array.isArray,ve=Object.prototype.hasOwnProperty,Pe={current:null},Be={key:!0,ref:!0,__self:!0,__source:!0};function b(y,_,V){var ee,Q={},ne=null,fe=null;if(_!=null)for(ee in _.ref!==void 0&&(fe=_.ref),_.key!==void 0&&(ne=""+_.key),_)ve.call(_,ee)&&!Be.hasOwnProperty(ee)&&(Q[ee]=_[ee]);var ue=arguments.length-2;if(ue===1)Q.children=V;else if(1>>1,_=I[y];if(0>>1;yf(Q,D))ne<_&&0>f(fe,Q)?(I[y]=fe,I[ne]=D,y=ne):(I[y]=Q,I[ee]=D,y=ee);else if(ne<_&&0>f(fe,D))I[y]=fe,I[ne]=D,y=ne;else break e}}return X}function f(I,X){var D=I.sortIndex-X.sortIndex;return D!==0?D:I.id-X.id}if(typeof performance=="object"&&typeof performance.now=="function"){var h=performance;v.unstable_now=function(){return h.now()}}else{var d=Date,S=d.now();v.unstable_now=function(){return d.now()-S}}var E=[],j=[],A=1,M=null,z=3,G=!1,ce=!1,Z=!1,J=typeof setTimeout=="function"?setTimeout:null,De=typeof clearTimeout=="function"?clearTimeout:null,je=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function Ne(I){for(var X=o(j);X!==null;){if(X.callback===null)a(j);else if(X.startTime<=I)a(j),X.sortIndex=X.expirationTime,s(E,X);else break;X=o(j)}}function le(I){if(Z=!1,Ne(I),!ce)if(o(E)!==null)ce=!0,Ue(ve);else{var X=o(j);X!==null&&Ee(le,X.startTime-I)}}function ve(I,X){ce=!1,Z&&(Z=!1,De(b),b=-1),G=!0;var D=z;try{for(Ne(X),M=o(E);M!==null&&(!(M.expirationTime>X)||I&&!oe());){var y=M.callback;if(typeof y=="function"){M.callback=null,z=M.priorityLevel;var _=y(M.expirationTime<=X);X=v.unstable_now(),typeof _=="function"?M.callback=_:M===o(E)&&a(E),Ne(X)}else a(E);M=o(E)}if(M!==null)var V=!0;else{var ee=o(j);ee!==null&&Ee(le,ee.startTime-X),V=!1}return V}finally{M=null,z=D,G=!1}}var Pe=!1,Be=null,b=-1,Ae=5,Se=-1;function oe(){return!(v.unstable_now()-SeI||125y?(I.sortIndex=D,s(j,I),o(E)===null&&I===o(j)&&(Z?(De(b),b=-1):Z=!0,Ee(le,D-y))):(I.sortIndex=_,s(E,I),ce||G||(ce=!0,Ue(ve))),I},v.unstable_shouldYield=oe,v.unstable_wrapCallback=function(I){var X=z;return function(){var D=z;z=X;try{return I.apply(this,arguments)}finally{z=D}}}}(Gs)),Gs}var $c;function gp(){return $c||($c=1,Qs.exports=mp()),Qs.exports}/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Hc;function yp(){if(Hc)return mt;Hc=1;var v=nu(),s=gp();function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),E=Object.prototype.hasOwnProperty,j=/^[: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]*$/,A={},M={};function z(e){return E.call(M,e)?!0:E.call(A,e)?!1:j.test(e)?M[e]=!0:(A[e]=!0,!1)}function G(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function ce(e,t,n,r){if(t===null||typeof t>"u"||G(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Z(e,t,n,r,l,i,u){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=u}var J={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){J[e]=new Z(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];J[t]=new Z(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){J[e]=new Z(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){J[e]=new Z(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){J[e]=new Z(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){J[e]=new Z(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){J[e]=new Z(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){J[e]=new Z(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){J[e]=new Z(e,5,!1,e.toLowerCase(),null,!1,!1)});var De=/[\-:]([a-z])/g;function je(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 t=e.replace(De,je);J[t]=new Z(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(De,je);J[t]=new Z(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(De,je);J[t]=new Z(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){J[e]=new Z(e,1,!1,e.toLowerCase(),null,!1,!1)}),J.xlinkHref=new Z("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){J[e]=new Z(e,1,!1,e.toLowerCase(),null,!0,!0)});function Ne(e,t,n,r){var l=J.hasOwnProperty(t)?J[t]:null;(l!==null?l.type!==0:r||!(2c||l[u]!==i[c]){var p=` +`+l[u].replace(" at new "," at ");return e.displayName&&p.includes("")&&(p=p.replace("",e.displayName)),p}while(1<=u&&0<=c);break}}}finally{V=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?_(e):""}function Q(e){switch(e.tag){case 5:return _(e.type);case 16:return _("Lazy");case 13:return _("Suspense");case 19:return _("SuspenseList");case 0:case 2:case 15:return e=ee(e.type,!1),e;case 11:return e=ee(e.type.render,!1),e;case 1:return e=ee(e.type,!0),e;default:return""}}function ne(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 Be:return"Fragment";case Pe:return"Portal";case Ae:return"Profiler";case b:return"StrictMode";case Fe:return"Suspense";case Ke:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case oe:return(e.displayName||"Context")+".Consumer";case Se:return(e._context.displayName||"Context")+".Provider";case Re:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Xe:return t=e.displayName||null,t!==null?t:ne(e.type)||"Memo";case Ue:t=e._payload,e=e._init;try{return ne(e(t))}catch{}}return null}function fe(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ne(t);case 8:return t===b?"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 t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function ue(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function he(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Je(e){var t=he(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(u){r=""+u,i.call(this,u)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(u){r=""+u},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Bn(e){e._valueTracker||(e._valueTracker=Je(e))}function qt(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=he(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function dn(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 At(e,t){var n=t.checked;return D({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function hr(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=ue(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function mr(e,t){t=t.checked,t!=null&&Ne(e,"checked",t,!1)}function Ht(e,t){mr(e,t);var n=ue(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?pn(e,t.type,n):t.hasOwnProperty("defaultValue")&&pn(e,t.type,ue(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Wn(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function pn(e,t,n){(t!=="number"||dn(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var hn=Array.isArray;function Jt(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l"+t.valueOf().toString()+"",t=Vn.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function tn(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var gn={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},vr=["Webkit","ms","Moz","O"];Object.keys(gn).forEach(function(e){vr.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),gn[t]=gn[e]})});function Qn(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||gn.hasOwnProperty(e)&&gn[e]?(""+t).trim():t+"px"}function xt(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=Qn(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var yn=D({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 Gn(e,t){if(t){if(yn[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(o(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(o(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(o(61))}if(t.style!=null&&typeof t.style!="object")throw Error(o(62))}}function Yn(e,t){if(e.indexOf("-")===-1)return typeof t.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 Gr=null;function vn(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var kn=null,wn=null,St=null;function $l(e){if(e=hl(e)){if(typeof kn!="function")throw Error(o(280));var t=e.stateNode;t&&(t=fi(t),kn(e.stateNode,e.type,t))}}function Hl(e){wn?St?St.push(e):St=[e]:wn=e}function ze(){if(wn){var e=wn,t=St;if(St=wn=null,$l(e),t)for(e=0;e>>=0,e===0?32:31-(_f(e)/Tf|0)|0}var Yl=64,Kl=4194304;function Zr(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 Xl(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,l=e.suspendedLanes,i=e.pingedLanes,u=n&268435455;if(u!==0){var c=u&~l;c!==0?r=Zr(c):(i&=u,i!==0&&(r=Zr(i)))}else u=n&~l,u!==0?r=Zr(u):i!==0&&(r=Zr(i));if(r===0)return 0;if(t!==0&&t!==r&&(t&l)===0&&(l=r&-r,i=t&-t,l>=i||l===16&&(i&4194240)!==0))return t;if((r&4)!==0&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function qr(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-It(t),e[t]=n}function Lf(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=il),Cu=" ",Nu=!1;function Ru(e,t){switch(e){case"keyup":return rd.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Lu(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var _r=!1;function id(e,t){switch(e){case"compositionend":return Lu(t);case"keypress":return t.which!==32?null:(Nu=!0,Cu);case"textInput":return e=t.data,e===Cu&&Nu?null:e;default:return null}}function od(e,t){if(_r)return e==="compositionend"||!So&&Ru(e,t)?(e=wu(),ei=go=Nn=null,_r=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Du(n)}}function Fu(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Fu(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Uu(){for(var e=window,t=dn();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=dn(e.document)}return t}function To(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function md(e){var t=Uu(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Fu(n.ownerDocument.documentElement,n)){if(r!==null&&To(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var l=n.textContent.length,i=Math.min(r.start,l);r=r.end===void 0?i:Math.min(r.end,l),!e.extend&&i>r&&(l=r,r=i,i=l),l=ju(n,i);var u=ju(n,r);l&&u&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==u.node||e.focusOffset!==u.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(u.node,u.offset)):(t.setEnd(u.node,u.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Tr=null,Co=null,al=null,No=!1;function $u(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;No||Tr==null||Tr!==dn(r)||(r=Tr,"selectionStart"in r&&To(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}),al&&ul(al,r)||(al=r,r=ui(Co,"onSelect"),0Pr||(e.current=Uo[Pr],Uo[Pr]=null,Pr--)}function ye(e,t){Pr++,Uo[Pr]=e.current,e.current=t}var An={},et=Pn(An),ct=Pn(!1),bn=An;function Ar(e,t){var n=e.type.contextTypes;if(!n)return An;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},i;for(i in n)l[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function ft(e){return e=e.childContextTypes,e!=null}function di(){we(ct),we(et)}function ta(e,t,n){if(et.current!==An)throw Error(o(168));ye(et,t),ye(ct,n)}function na(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var l in r)if(!(l in t))throw Error(o(108,fe(e)||"Unknown",l));return D({},n,r)}function pi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||An,bn=et.current,ye(et,e),ye(ct,ct.current),!0}function ra(e,t,n){var r=e.stateNode;if(!r)throw Error(o(169));n?(e=na(e,t,bn),r.__reactInternalMemoizedMergedChildContext=e,we(ct),we(et),ye(et,e)):we(ct),ye(ct,n)}var ln=null,hi=!1,$o=!1;function la(e){ln===null?ln=[e]:ln.push(e)}function Nd(e){hi=!0,la(e)}function zn(){if(!$o&&ln!==null){$o=!0;var e=0,t=de;try{var n=ln;for(de=1;e>=u,l-=u,on=1<<32-It(t)+l|n<q?(Ge=K,K=null):Ge=K.sibling;var ae=T(k,K,w[q],P);if(ae===null){K===null&&(K=Ge);break}e&&K&&ae.alternate===null&&t(k,K),g=i(ae,g,q),Y===null?B=ae:Y.sibling=ae,Y=ae,K=Ge}if(q===w.length)return n(k,K),_e&&tr(k,q),B;if(K===null){for(;qq?(Ge=K,K=null):Ge=K.sibling;var Hn=T(k,K,ae.value,P);if(Hn===null){K===null&&(K=Ge);break}e&&K&&Hn.alternate===null&&t(k,K),g=i(Hn,g,q),Y===null?B=Hn:Y.sibling=Hn,Y=Hn,K=Ge}if(ae.done)return n(k,K),_e&&tr(k,q),B;if(K===null){for(;!ae.done;q++,ae=w.next())ae=N(k,ae.value,P),ae!==null&&(g=i(ae,g,q),Y===null?B=ae:Y.sibling=ae,Y=ae);return _e&&tr(k,q),B}for(K=r(k,K);!ae.done;q++,ae=w.next())ae=O(K,k,q,ae.value,P),ae!==null&&(e&&ae.alternate!==null&&K.delete(ae.key===null?q:ae.key),g=i(ae,g,q),Y===null?B=ae:Y.sibling=ae,Y=ae);return e&&K.forEach(function(sp){return t(k,sp)}),_e&&tr(k,q),B}function Ie(k,g,w,P){if(typeof w=="object"&&w!==null&&w.type===Be&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case ve:e:{for(var B=w.key,Y=g;Y!==null;){if(Y.key===B){if(B=w.type,B===Be){if(Y.tag===7){n(k,Y.sibling),g=l(Y,w.props.children),g.return=k,k=g;break e}}else if(Y.elementType===B||typeof B=="object"&&B!==null&&B.$$typeof===Ue&&ca(B)===Y.type){n(k,Y.sibling),g=l(Y,w.props),g.ref=ml(k,Y,w),g.return=k,k=g;break e}n(k,Y);break}else t(k,Y);Y=Y.sibling}w.type===Be?(g=ar(w.props.children,k.mode,P,w.key),g.return=k,k=g):(P=Bi(w.type,w.key,w.props,null,k.mode,P),P.ref=ml(k,g,w),P.return=k,k=P)}return u(k);case Pe:e:{for(Y=w.key;g!==null;){if(g.key===Y)if(g.tag===4&&g.stateNode.containerInfo===w.containerInfo&&g.stateNode.implementation===w.implementation){n(k,g.sibling),g=l(g,w.children||[]),g.return=k,k=g;break e}else{n(k,g);break}else t(k,g);g=g.sibling}g=js(w,k.mode,P),g.return=k,k=g}return u(k);case Ue:return Y=w._init,Ie(k,g,Y(w._payload),P)}if(hn(w))return U(k,g,w,P);if(X(w))return H(k,g,w,P);vi(k,w)}return typeof w=="string"&&w!==""||typeof w=="number"?(w=""+w,g!==null&&g.tag===6?(n(k,g.sibling),g=l(g,w),g.return=k,k=g):(n(k,g),g=Ds(w,k.mode,P),g.return=k,k=g),u(k)):n(k,g)}return Ie}var Or=fa(!0),da=fa(!1),ki=Pn(null),wi=null,Dr=null,Go=null;function Yo(){Go=Dr=wi=null}function Ko(e){var t=ki.current;we(ki),e._currentValue=t}function Xo(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function jr(e,t){wi=e,Go=Dr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(dt=!0),e.firstContext=null)}function Ct(e){var t=e._currentValue;if(Go!==e)if(e={context:e,memoizedValue:t,next:null},Dr===null){if(wi===null)throw Error(o(308));Dr=e,wi.dependencies={lanes:0,firstContext:e}}else Dr=Dr.next=e;return t}var nr=null;function Zo(e){nr===null?nr=[e]:nr.push(e)}function pa(e,t,n,r){var l=t.interleaved;return l===null?(n.next=n,Zo(t)):(n.next=l.next,l.next=n),t.interleaved=n,un(e,r)}function un(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var In=!1;function qo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function ha(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function an(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Mn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,(se&2)!==0){var l=r.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),r.pending=t,un(e,n)}return l=r.interleaved,l===null?(t.next=t,Zo(r)):(t.next=l.next,l.next=t),r.interleaved=t,un(e,n)}function xi(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,co(e,n)}}function ma(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var l=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var u={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?l=i=u:i=i.next=u,n=n.next}while(n!==null);i===null?l=i=t:i=i.next=t}else l=i=t;n={baseState:r.baseState,firstBaseUpdate:l,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Si(e,t,n,r){var l=e.updateQueue;In=!1;var i=l.firstBaseUpdate,u=l.lastBaseUpdate,c=l.shared.pending;if(c!==null){l.shared.pending=null;var p=c,x=p.next;p.next=null,u===null?i=x:u.next=x,u=p;var C=e.alternate;C!==null&&(C=C.updateQueue,c=C.lastBaseUpdate,c!==u&&(c===null?C.firstBaseUpdate=x:c.next=x,C.lastBaseUpdate=p))}if(i!==null){var N=l.baseState;u=0,C=x=p=null,c=i;do{var T=c.lane,O=c.eventTime;if((r&T)===T){C!==null&&(C=C.next={eventTime:O,lane:0,tag:c.tag,payload:c.payload,callback:c.callback,next:null});e:{var U=e,H=c;switch(T=t,O=n,H.tag){case 1:if(U=H.payload,typeof U=="function"){N=U.call(O,N,T);break e}N=U;break e;case 3:U.flags=U.flags&-65537|128;case 0:if(U=H.payload,T=typeof U=="function"?U.call(O,N,T):U,T==null)break e;N=D({},N,T);break e;case 2:In=!0}}c.callback!==null&&c.lane!==0&&(e.flags|=64,T=l.effects,T===null?l.effects=[c]:T.push(c))}else O={eventTime:O,lane:T,tag:c.tag,payload:c.payload,callback:c.callback,next:null},C===null?(x=C=O,p=N):C=C.next=O,u|=T;if(c=c.next,c===null){if(c=l.shared.pending,c===null)break;T=c,c=T.next,T.next=null,l.lastBaseUpdate=T,l.shared.pending=null}}while(!0);if(C===null&&(p=N),l.baseState=p,l.firstBaseUpdate=x,l.lastBaseUpdate=C,t=l.shared.interleaved,t!==null){l=t;do u|=l.lane,l=l.next;while(l!==t)}else i===null&&(l.shared.lanes=0);ir|=u,e.lanes=u,e.memoizedState=N}}function ga(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=ns.transition;ns.transition={};try{e(!1),t()}finally{de=n,ns.transition=r}}function Oa(){return Nt().memoizedState}function Ad(e,t,n){var r=Fn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Da(e))ja(t,n);else if(n=pa(e,t,n,r),n!==null){var l=it();Ut(n,e,r,l),Fa(n,t,r)}}function zd(e,t,n){var r=Fn(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Da(e))ja(t,l);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var u=t.lastRenderedState,c=i(u,n);if(l.hasEagerState=!0,l.eagerState=c,Mt(c,u)){var p=t.interleaved;p===null?(l.next=l,Zo(t)):(l.next=p.next,p.next=l),t.interleaved=l;return}}catch{}finally{}n=pa(e,t,l,r),n!==null&&(l=it(),Ut(n,e,r,l),Fa(n,t,r))}}function Da(e){var t=e.alternate;return e===Ce||t!==null&&t===Ce}function ja(e,t){kl=Ti=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Fa(e,t,n){if((n&4194240)!==0){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,co(e,n)}}var Ri={readContext:Ct,useCallback:tt,useContext:tt,useEffect:tt,useImperativeHandle:tt,useInsertionEffect:tt,useLayoutEffect:tt,useMemo:tt,useReducer:tt,useRef:tt,useState:tt,useDebugValue:tt,useDeferredValue:tt,useTransition:tt,useMutableSource:tt,useSyncExternalStore:tt,useId:tt,unstable_isNewReconciler:!1},Id={readContext:Ct,useCallback:function(e,t){return Yt().memoizedState=[e,t===void 0?null:t],e},useContext:Ct,useEffect:Na,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Ci(4194308,4,Pa.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ci(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ci(4,2,e,t)},useMemo:function(e,t){var n=Yt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Yt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Ad.bind(null,Ce,e),[r.memoizedState,e]},useRef:function(e){var t=Yt();return e={current:e},t.memoizedState=e},useState:Ta,useDebugValue:as,useDeferredValue:function(e){return Yt().memoizedState=e},useTransition:function(){var e=Ta(!1),t=e[0];return e=Pd.bind(null,e[1]),Yt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Ce,l=Yt();if(_e){if(n===void 0)throw Error(o(407));n=n()}else{if(n=t(),Qe===null)throw Error(o(349));(lr&30)!==0||wa(r,t,n)}l.memoizedState=n;var i={value:n,getSnapshot:t};return l.queue=i,Na(Sa.bind(null,r,i,e),[e]),r.flags|=2048,Sl(9,xa.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Yt(),t=Qe.identifierPrefix;if(_e){var n=sn,r=on;n=(r&~(1<<32-It(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=wl++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=u.createElement(n,{is:r.is}):(e=u.createElement(n),n==="select"&&(u=e,r.multiple?u.multiple=!0:r.size&&(u.size=r.size))):e=u.createElementNS(e,n),e[Qt]=t,e[pl]=r,lc(e,t,!1,!1),t.stateNode=e;e:{switch(u=Yn(n,r),n){case"dialog":ke("cancel",e),ke("close",e),l=r;break;case"iframe":case"object":case"embed":ke("load",e),l=r;break;case"video":case"audio":for(l=0;lBr&&(t.flags|=128,r=!0,El(i,!1),t.lanes=4194304)}else{if(!r)if(e=Ei(u),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),El(i,!0),i.tail===null&&i.tailMode==="hidden"&&!u.alternate&&!_e)return nt(t),null}else 2*te()-i.renderingStartTime>Br&&n!==1073741824&&(t.flags|=128,r=!0,El(i,!1),t.lanes=4194304);i.isBackwards?(u.sibling=t.child,t.child=u):(n=i.last,n!==null?n.sibling=u:t.child=u,i.last=u)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=te(),t.sibling=null,n=Te.current,ye(Te,r?n&1|2:n&1),t):(nt(t),null);case 22:case 23:return Is(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&(t.mode&1)!==0?(kt&1073741824)!==0&&(nt(t),t.subtreeFlags&6&&(t.flags|=8192)):nt(t),null;case 24:return null;case 25:return null}throw Error(o(156,t.tag))}function Hd(e,t){switch(Bo(t),t.tag){case 1:return ft(t.type)&&di(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Fr(),we(ct),we(et),ts(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return bo(t),null;case 13:if(we(Te),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(o(340));Mr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return we(Te),null;case 4:return Fr(),null;case 10:return Ko(t.type._context),null;case 22:case 23:return Is(),null;case 24:return null;default:return null}}var zi=!1,rt=!1,Bd=typeof WeakSet=="function"?WeakSet:Set,F=null;function $r(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Le(e,t,r)}else n.current=null}function xs(e,t,n){try{n()}catch(r){Le(e,t,r)}}var sc=!1;function Wd(e,t){if(Io=Jl,e=Uu(),To(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var l=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var u=0,c=-1,p=-1,x=0,C=0,N=e,T=null;t:for(;;){for(var O;N!==n||l!==0&&N.nodeType!==3||(c=u+l),N!==i||r!==0&&N.nodeType!==3||(p=u+r),N.nodeType===3&&(u+=N.nodeValue.length),(O=N.firstChild)!==null;)T=N,N=O;for(;;){if(N===e)break t;if(T===n&&++x===l&&(c=u),T===i&&++C===r&&(p=u),(O=N.nextSibling)!==null)break;N=T,T=N.parentNode}N=O}n=c===-1||p===-1?null:{start:c,end:p}}else n=null}n=n||{start:0,end:0}}else n=null;for(Mo={focusedElem:e,selectionRange:n},Jl=!1,F=t;F!==null;)if(t=F,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,F=e;else for(;F!==null;){t=F;try{var U=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(U!==null){var H=U.memoizedProps,Ie=U.memoizedState,k=t.stateNode,g=k.getSnapshotBeforeUpdate(t.elementType===t.type?H:Dt(t.type,H),Ie);k.__reactInternalSnapshotBeforeUpdate=g}break;case 3:var w=t.stateNode.containerInfo;w.nodeType===1?w.textContent="":w.nodeType===9&&w.documentElement&&w.removeChild(w.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(o(163))}}catch(P){Le(t,t.return,P)}if(e=t.sibling,e!==null){e.return=t.return,F=e;break}F=t.return}return U=sc,sc=!1,U}function _l(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var i=l.destroy;l.destroy=void 0,i!==void 0&&xs(t,n,i)}l=l.next}while(l!==r)}}function Ii(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Ss(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function uc(e){var t=e.alternate;t!==null&&(e.alternate=null,uc(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Qt],delete t[pl],delete t[Fo],delete t[Td],delete t[Cd])),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 ac(e){return e.tag===5||e.tag===3||e.tag===4}function cc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||ac(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 Es(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=ci));else if(r!==4&&(e=e.child,e!==null))for(Es(e,t,n),e=e.sibling;e!==null;)Es(e,t,n),e=e.sibling}function _s(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(_s(e,t,n),e=e.sibling;e!==null;)_s(e,t,n),e=e.sibling}var Ze=null,jt=!1;function On(e,t,n){for(n=n.child;n!==null;)fc(e,t,n),n=n.sibling}function fc(e,t,n){if(Vt&&typeof Vt.onCommitFiberUnmount=="function")try{Vt.onCommitFiberUnmount(Gl,n)}catch{}switch(n.tag){case 5:rt||$r(n,t);case 6:var r=Ze,l=jt;Ze=null,On(e,t,n),Ze=r,jt=l,Ze!==null&&(jt?(e=Ze,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ze.removeChild(n.stateNode));break;case 18:Ze!==null&&(jt?(e=Ze,n=n.stateNode,e.nodeType===8?jo(e.parentNode,n):e.nodeType===1&&jo(e,n),nl(e)):jo(Ze,n.stateNode));break;case 4:r=Ze,l=jt,Ze=n.stateNode.containerInfo,jt=!0,On(e,t,n),Ze=r,jt=l;break;case 0:case 11:case 14:case 15:if(!rt&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var i=l,u=i.destroy;i=i.tag,u!==void 0&&((i&2)!==0||(i&4)!==0)&&xs(n,t,u),l=l.next}while(l!==r)}On(e,t,n);break;case 1:if(!rt&&($r(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(c){Le(n,t,c)}On(e,t,n);break;case 21:On(e,t,n);break;case 22:n.mode&1?(rt=(r=rt)||n.memoizedState!==null,On(e,t,n),rt=r):On(e,t,n);break;default:On(e,t,n)}}function dc(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Bd),t.forEach(function(r){var l=Jd.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function Ft(e,t){var n=t.deletions;if(n!==null)for(var r=0;rl&&(l=u),r&=~i}if(r=l,r=te()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Qd(r/1960))-r,10e?16:e,jn===null)var r=!1;else{if(e=jn,jn=null,Fi=0,(se&6)!==0)throw Error(o(331));var l=se;for(se|=4,F=e.current;F!==null;){var i=F,u=i.child;if((F.flags&16)!==0){var c=i.deletions;if(c!==null){for(var p=0;pte()-Ns?sr(e,0):Cs|=n),ht(e,t)}function Tc(e,t){t===0&&((e.mode&1)===0?t=1:(t=Kl,Kl<<=1,(Kl&130023424)===0&&(Kl=4194304)));var n=it();e=un(e,t),e!==null&&(qr(e,t,n),ht(e,n))}function qd(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Tc(e,n)}function Jd(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(o(314))}r!==null&&r.delete(t),Tc(e,n)}var Cc;Cc=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ct.current)dt=!0;else{if((e.lanes&n)===0&&(t.flags&128)===0)return dt=!1,Ud(e,t,n);dt=(e.flags&131072)!==0}else dt=!1,_e&&(t.flags&1048576)!==0&&ia(t,gi,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ai(e,t),e=t.pendingProps;var l=Ar(t,et.current);jr(t,n),l=ls(null,t,r,e,l,n);var i=is();return t.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,ft(r)?(i=!0,pi(t)):i=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,qo(t),l.updater=Li,t.stateNode=l,l._reactInternals=t,fs(t,r,e,n),t=ms(null,t,r,!0,i,n)):(t.tag=0,_e&&i&&Ho(t),lt(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ai(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=ep(r),e=Dt(r,e),l){case 0:t=hs(null,t,r,e,n);break e;case 1:t=Ja(null,t,r,e,n);break e;case 11:t=Ya(null,t,r,e,n);break e;case 14:t=Ka(null,t,r,Dt(r.type,e),n);break e}throw Error(o(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Dt(r,l),hs(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Dt(r,l),Ja(e,t,r,l,n);case 3:e:{if(ba(t),e===null)throw Error(o(387));r=t.pendingProps,i=t.memoizedState,l=i.element,ha(e,t),Si(t,r,null,n);var u=t.memoizedState;if(r=u.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:u.cache,pendingSuspenseBoundaries:u.pendingSuspenseBoundaries,transitions:u.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){l=Ur(Error(o(423)),t),t=ec(e,t,r,n,l);break e}else if(r!==l){l=Ur(Error(o(424)),t),t=ec(e,t,r,n,l);break e}else for(vt=Ln(t.stateNode.containerInfo.firstChild),yt=t,_e=!0,Ot=null,n=da(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Mr(),r===l){t=cn(e,t,n);break e}lt(e,t,r,n)}t=t.child}return t;case 5:return ya(t),e===null&&Vo(t),r=t.type,l=t.pendingProps,i=e!==null?e.memoizedProps:null,u=l.children,Oo(r,l)?u=null:i!==null&&Oo(r,i)&&(t.flags|=32),qa(e,t),lt(e,t,u,n),t.child;case 6:return e===null&&Vo(t),null;case 13:return tc(e,t,n);case 4:return Jo(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Or(t,null,r,n):lt(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Dt(r,l),Ya(e,t,r,l,n);case 7:return lt(e,t,t.pendingProps,n),t.child;case 8:return lt(e,t,t.pendingProps.children,n),t.child;case 12:return lt(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,l=t.pendingProps,i=t.memoizedProps,u=l.value,ye(ki,r._currentValue),r._currentValue=u,i!==null)if(Mt(i.value,u)){if(i.children===l.children&&!ct.current){t=cn(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var c=i.dependencies;if(c!==null){u=i.child;for(var p=c.firstContext;p!==null;){if(p.context===r){if(i.tag===1){p=an(-1,n&-n),p.tag=2;var x=i.updateQueue;if(x!==null){x=x.shared;var C=x.pending;C===null?p.next=p:(p.next=C.next,C.next=p),x.pending=p}}i.lanes|=n,p=i.alternate,p!==null&&(p.lanes|=n),Xo(i.return,n,t),c.lanes|=n;break}p=p.next}}else if(i.tag===10)u=i.type===t.type?null:i.child;else if(i.tag===18){if(u=i.return,u===null)throw Error(o(341));u.lanes|=n,c=u.alternate,c!==null&&(c.lanes|=n),Xo(u,n,t),u=i.sibling}else u=i.child;if(u!==null)u.return=i;else for(u=i;u!==null;){if(u===t){u=null;break}if(i=u.sibling,i!==null){i.return=u.return,u=i;break}u=u.return}i=u}lt(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,jr(t,n),l=Ct(l),r=r(l),t.flags|=1,lt(e,t,r,n),t.child;case 14:return r=t.type,l=Dt(r,t.pendingProps),l=Dt(r.type,l),Ka(e,t,r,l,n);case 15:return Xa(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Dt(r,l),Ai(e,t),t.tag=1,ft(r)?(e=!0,pi(t)):e=!1,jr(t,n),$a(t,r,l),fs(t,r,l,n),ms(null,t,r,!0,e,n);case 19:return rc(e,t,n);case 22:return Za(e,t,n)}throw Error(o(156,t.tag))};function Nc(e,t){return R(e,t)}function bd(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Lt(e,t,n,r){return new bd(e,t,n,r)}function Os(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ep(e){if(typeof e=="function")return Os(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Re)return 11;if(e===Xe)return 14}return 2}function $n(e,t){var n=e.alternate;return n===null?(n=Lt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Bi(e,t,n,r,l,i){var u=2;if(r=e,typeof e=="function")Os(e)&&(u=1);else if(typeof e=="string")u=5;else e:switch(e){case Be:return ar(n.children,l,i,t);case b:u=8,l|=8;break;case Ae:return e=Lt(12,n,t,l|2),e.elementType=Ae,e.lanes=i,e;case Fe:return e=Lt(13,n,t,l),e.elementType=Fe,e.lanes=i,e;case Ke:return e=Lt(19,n,t,l),e.elementType=Ke,e.lanes=i,e;case Ee:return Wi(n,l,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Se:u=10;break e;case oe:u=9;break e;case Re:u=11;break e;case Xe:u=14;break e;case Ue:u=16,r=null;break e}throw Error(o(130,e==null?e:typeof e,""))}return t=Lt(u,n,t,l),t.elementType=e,t.type=r,t.lanes=i,t}function ar(e,t,n,r){return e=Lt(7,e,r,t),e.lanes=n,e}function Wi(e,t,n,r){return e=Lt(22,e,r,t),e.elementType=Ee,e.lanes=n,e.stateNode={isHidden:!1},e}function Ds(e,t,n){return e=Lt(6,e,null,t),e.lanes=n,e}function js(e,t,n){return t=Lt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function tp(e,t,n,r,l){this.tag=t,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=ao(0),this.expirationTimes=ao(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ao(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function Fs(e,t,n,r,l,i,u,c,p){return e=new tp(e,t,n,c,p),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Lt(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},qo(i),e}function np(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(v)}catch(s){console.error(s)}}return v(),Vs.exports=yp(),Vs.exports}var Wc;function kp(){if(Wc)return qi;Wc=1;var v=vp();return qi.createRoot=v.createRoot,qi.hydrateRoot=v.hydrateRoot,qi}var wp=kp();const xp=of(wp);function ru(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}let pr=ru();function sf(v){pr=v}const uf=/[&<>"']/,Sp=new RegExp(uf.source,"g"),af=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,Ep=new RegExp(af.source,"g"),_p={"&":"&","<":"<",">":">",'"':""","'":"'"},Vc=v=>_p[v];function wt(v,s){if(s){if(uf.test(v))return v.replace(Sp,Vc)}else if(af.test(v))return v.replace(Ep,Vc);return v}const Tp=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function Cp(v){return v.replace(Tp,(s,o)=>(o=o.toLowerCase(),o==="colon"?":":o.charAt(0)==="#"?o.charAt(1)==="x"?String.fromCharCode(parseInt(o.substring(2),16)):String.fromCharCode(+o.substring(1)):""))}const Np=/(^|[^\[])\^/g;function me(v,s){let o=typeof v=="string"?v:v.source;s=s||"";const a={replace:(f,h)=>{let d=typeof h=="string"?h:h.source;return d=d.replace(Np,"$1"),o=o.replace(f,d),a},getRegex:()=>new RegExp(o,s)};return a}function Qc(v){try{v=encodeURI(v).replace(/%25/g,"%")}catch{return null}return v}const Dl={exec:()=>null};function Gc(v,s){const o=v.replace(/\|/g,(h,d,S)=>{let E=!1,j=d;for(;--j>=0&&S[j]==="\\";)E=!E;return E?"|":" |"}),a=o.split(/ \|/);let f=0;if(a[0].trim()||a.shift(),a.length>0&&!a[a.length-1].trim()&&a.pop(),s)if(a.length>s)a.splice(s);else for(;a.length{const h=f.match(/^\s+/);if(h===null)return f;const[d]=h;return d.length>=a.length?f.slice(a.length):f}).join(` +`)}class ro{constructor(s){xe(this,"options");xe(this,"rules");xe(this,"lexer");this.options=s||pr}space(s){const o=this.rules.block.newline.exec(s);if(o&&o[0].length>0)return{type:"space",raw:o[0]}}code(s){const o=this.rules.block.code.exec(s);if(o){const a=o[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:o[0],codeBlockStyle:"indented",text:this.options.pedantic?a:Ji(a,` +`)}}}fences(s){const o=this.rules.block.fences.exec(s);if(o){const a=o[0],f=Lp(a,o[3]||"");return{type:"code",raw:a,lang:o[2]?o[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):o[2],text:f}}}heading(s){const o=this.rules.block.heading.exec(s);if(o){let a=o[2].trim();if(/#$/.test(a)){const f=Ji(a,"#");(this.options.pedantic||!f||/ $/.test(f))&&(a=f.trim())}return{type:"heading",raw:o[0],depth:o[1].length,text:a,tokens:this.lexer.inline(a)}}}hr(s){const o=this.rules.block.hr.exec(s);if(o)return{type:"hr",raw:o[0]}}blockquote(s){const o=this.rules.block.blockquote.exec(s);if(o){let a=o[0].replace(/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,` + $1`);a=Ji(a.replace(/^ *>[ \t]?/gm,""),` +`);const f=this.lexer.state.top;this.lexer.state.top=!0;const h=this.lexer.blockTokens(a);return this.lexer.state.top=f,{type:"blockquote",raw:o[0],tokens:h,text:a}}}list(s){let o=this.rules.block.list.exec(s);if(o){let a=o[1].trim();const f=a.length>1,h={type:"list",raw:"",ordered:f,start:f?+a.slice(0,-1):"",loose:!1,items:[]};a=f?`\\d{1,9}\\${a.slice(-1)}`:`\\${a}`,this.options.pedantic&&(a=f?a:"[*+-]");const d=new RegExp(`^( {0,3}${a})((?:[ ][^\\n]*)?(?:\\n|$))`);let S="",E="",j=!1;for(;s;){let A=!1;if(!(o=d.exec(s))||this.rules.block.hr.test(s))break;S=o[0],s=s.substring(S.length);let M=o[2].split(` +`,1)[0].replace(/^\t+/,De=>" ".repeat(3*De.length)),z=s.split(` +`,1)[0],G=0;this.options.pedantic?(G=2,E=M.trimStart()):(G=o[2].search(/[^ ]/),G=G>4?1:G,E=M.slice(G),G+=o[1].length);let ce=!1;if(!M&&/^ *$/.test(z)&&(S+=z+` +`,s=s.substring(z.length+1),A=!0),!A){const De=new RegExp(`^ {0,${Math.min(3,G-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),je=new RegExp(`^ {0,${Math.min(3,G-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),Ne=new RegExp(`^ {0,${Math.min(3,G-1)}}(?:\`\`\`|~~~)`),le=new RegExp(`^ {0,${Math.min(3,G-1)}}#`);for(;s;){const ve=s.split(` +`,1)[0];if(z=ve,this.options.pedantic&&(z=z.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),Ne.test(z)||le.test(z)||De.test(z)||je.test(s))break;if(z.search(/[^ ]/)>=G||!z.trim())E+=` +`+z.slice(G);else{if(ce||M.search(/[^ ]/)>=4||Ne.test(M)||le.test(M)||je.test(M))break;E+=` +`+z}!ce&&!z.trim()&&(ce=!0),S+=ve+` +`,s=s.substring(ve.length+1),M=z.slice(G)}}h.loose||(j?h.loose=!0:/\n *\n *$/.test(S)&&(j=!0));let Z=null,J;this.options.gfm&&(Z=/^\[[ xX]\] /.exec(E),Z&&(J=Z[0]!=="[ ] ",E=E.replace(/^\[[ xX]\] +/,""))),h.items.push({type:"list_item",raw:S,task:!!Z,checked:J,loose:!1,text:E,tokens:[]}),h.raw+=S}h.items[h.items.length-1].raw=S.trimEnd(),h.items[h.items.length-1].text=E.trimEnd(),h.raw=h.raw.trimEnd();for(let A=0;AG.type==="space"),z=M.length>0&&M.some(G=>/\n.*\n/.test(G.raw));h.loose=z}if(h.loose)for(let A=0;A$/,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",h=o[3]?o[3].substring(1,o[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):o[3];return{type:"def",tag:a,raw:o[0],href:f,title:h}}}table(s){const o=this.rules.block.table.exec(s);if(!o||!/[:|]/.test(o[2]))return;const a=Gc(o[1]),f=o[2].replace(/^\||\| *$/g,"").split("|"),h=o[3]&&o[3].trim()?o[3].replace(/\n[ \t]*$/,"").split(` +`):[],d={type:"table",raw:o[0],header:[],align:[],rows:[]};if(a.length===f.length){for(const S of f)/^ *-+: *$/.test(S)?d.align.push("right"):/^ *:-+: *$/.test(S)?d.align.push("center"):/^ *:-+ *$/.test(S)?d.align.push("left"):d.align.push(null);for(const S of a)d.header.push({text:S,tokens:this.lexer.inline(S)});for(const S of h)d.rows.push(Gc(S,d.header.length).map(E=>({text:E,tokens:this.lexer.inline(E)})));return d}}lheading(s){const o=this.rules.block.lheading.exec(s);if(o)return{type:"heading",raw:o[0],depth:o[2].charAt(0)==="="?1:2,text:o[1],tokens:this.lexer.inline(o[1])}}paragraph(s){const o=this.rules.block.paragraph.exec(s);if(o){const a=o[1].charAt(o[1].length-1)===` +`?o[1].slice(0,-1):o[1];return{type:"paragraph",raw:o[0],text:a,tokens:this.lexer.inline(a)}}}text(s){const o=this.rules.block.text.exec(s);if(o)return{type:"text",raw:o[0],text:o[0],tokens:this.lexer.inline(o[0])}}escape(s){const o=this.rules.inline.escape.exec(s);if(o)return{type:"escape",raw:o[0],text:wt(o[1])}}tag(s){const o=this.rules.inline.tag.exec(s);if(o)return!this.lexer.state.inLink&&/^/i.test(o[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(o[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(o[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:o[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:o[0]}}link(s){const o=this.rules.inline.link.exec(s);if(o){const a=o[2].trim();if(!this.options.pedantic&&/^$/.test(a))return;const d=Ji(a.slice(0,-1),"\\");if((a.length-d.length)%2===0)return}else{const d=Rp(o[2],"()");if(d>-1){const E=(o[0].indexOf("!")===0?5:4)+o[1].length+d;o[2]=o[2].substring(0,d),o[0]=o[0].substring(0,E).trim(),o[3]=""}}let f=o[2],h="";if(this.options.pedantic){const d=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(f);d&&(f=d[1],h=d[3])}else h=o[3]?o[3].slice(1,-1):"";return f=f.trim(),/^$/.test(a)?f=f.slice(1):f=f.slice(1,-1)),Yc(o,{href:f&&f.replace(this.rules.inline.anyPunctuation,"$1"),title:h&&h.replace(this.rules.inline.anyPunctuation,"$1")},o[0],this.lexer)}}reflink(s,o){let a;if((a=this.rules.inline.reflink.exec(s))||(a=this.rules.inline.nolink.exec(s))){const f=(a[2]||a[1]).replace(/\s+/g," "),h=o[f.toLowerCase()];if(!h){const d=a[0].charAt(0);return{type:"text",raw:d,text:d}}return Yc(a,h,a[0],this.lexer)}}emStrong(s,o,a=""){let f=this.rules.inline.emStrongLDelim.exec(s);if(!f||f[3]&&a.match(/[\p{L}\p{N}]/u))return;if(!(f[1]||f[2]||"")||!a||this.rules.inline.punctuation.exec(a)){const d=[...f[0]].length-1;let S,E,j=d,A=0;const M=f[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(M.lastIndex=0,o=o.slice(-1*s.length+d);(f=M.exec(o))!=null;){if(S=f[1]||f[2]||f[3]||f[4]||f[5]||f[6],!S)continue;if(E=[...S].length,f[3]||f[4]){j+=E;continue}else if((f[5]||f[6])&&d%3&&!((d+E)%3)){A+=E;continue}if(j-=E,j>0)continue;E=Math.min(E,E+j+A);const z=[...f[0]][0].length,G=s.slice(0,d+f.index+z+E);if(Math.min(d,E)%2){const Z=G.slice(1,-1);return{type:"em",raw:G,text:Z,tokens:this.lexer.inlineTokens(Z)}}const ce=G.slice(2,-2);return{type:"strong",raw:G,text:ce,tokens:this.lexer.inlineTokens(ce)}}}}codespan(s){const o=this.rules.inline.code.exec(s);if(o){let a=o[2].replace(/\n/g," ");const f=/[^ ]/.test(a),h=/^ /.test(a)&&/ $/.test(a);return f&&h&&(a=a.substring(1,a.length-1)),a=wt(a,!0),{type:"codespan",raw:o[0],text:a}}}br(s){const o=this.rules.inline.br.exec(s);if(o)return{type:"br",raw:o[0]}}del(s){const o=this.rules.inline.del.exec(s);if(o)return{type:"del",raw:o[0],text:o[2],tokens:this.lexer.inlineTokens(o[2])}}autolink(s){const o=this.rules.inline.autolink.exec(s);if(o){let a,f;return o[2]==="@"?(a=wt(o[1]),f="mailto:"+a):(a=wt(o[1]),f=a),{type:"link",raw:o[0],text:a,href:f,tokens:[{type:"text",raw:a,text:a}]}}}url(s){var a;let o;if(o=this.rules.inline.url.exec(s)){let f,h;if(o[2]==="@")f=wt(o[0]),h="mailto:"+f;else{let d;do d=o[0],o[0]=((a=this.rules.inline._backpedal.exec(o[0]))==null?void 0:a[0])??"";while(d!==o[0]);f=wt(o[0]),o[1]==="www."?h="http://"+o[0]:h=o[0]}return{type:"link",raw:o[0],text:f,href:h,tokens:[{type:"text",raw:f,text:f}]}}}inlineText(s){const o=this.rules.inline.text.exec(s);if(o){let a;return this.lexer.state.inRawBlock?a=o[0]:a=wt(o[0]),{type:"text",raw:o[0],text:a}}}}const Pp=/^(?: *(?:\n|$))+/,Ap=/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,zp=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Fl=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Ip=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,cf=/(?:[*+-]|\d{1,9}[.)])/,ff=me(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,cf).replace(/blockCode/g,/ {4}/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).getRegex(),lu=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Mp=/^[^\n]+/,iu=/(?!\s*\])(?:\\.|[^\[\]\\])+/,Op=me(/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/).replace("label",iu).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Dp=me(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,cf).getRegex(),oo="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",ou=/|$))/,jp=me("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))","i").replace("comment",ou).replace("tag",oo).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),df=me(lu).replace("hr",Fl).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",oo).getRegex(),Fp=me(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",df).getRegex(),su={blockquote:Fp,code:Ap,def:Op,fences:zp,heading:Ip,hr:Fl,html:jp,lheading:ff,list:Dp,newline:Pp,paragraph:df,table:Dl,text:Mp},Kc=me("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Fl).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",oo).getRegex(),Up={...su,table:Kc,paragraph:me(lu).replace("hr",Fl).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Kc).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",oo).getRegex()},$p={...su,html:me(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",ou).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Dl,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:me(lu).replace("hr",Fl).replace("heading",` *#{1,6} *[^ +]`).replace("lheading",ff).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},pf=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Hp=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,hf=/^( {2,}|\\)\n(?!\s*$)/,Bp=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\]*?>/g,Qp=me(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,"u").replace(/punct/g,Ul).getRegex(),Gp=me("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])","gu").replace(/punct/g,Ul).getRegex(),Yp=me("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])","gu").replace(/punct/g,Ul).getRegex(),Kp=me(/\\([punct])/,"gu").replace(/punct/g,Ul).getRegex(),Xp=me(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),Zp=me(ou).replace("(?:-->|$)","-->").getRegex(),qp=me("^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^").replace("comment",Zp).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),lo=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Jp=me(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",lo).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),mf=me(/^!?\[(label)\]\[(ref)\]/).replace("label",lo).replace("ref",iu).getRegex(),gf=me(/^!?\[(ref)\](?:\[\])?/).replace("ref",iu).getRegex(),bp=me("reflink|nolink(?!\\()","g").replace("reflink",mf).replace("nolink",gf).getRegex(),uu={_backpedal:Dl,anyPunctuation:Kp,autolink:Xp,blockSkip:Vp,br:hf,code:Hp,del:Dl,emStrongLDelim:Qp,emStrongRDelimAst:Gp,emStrongRDelimUnd:Yp,escape:pf,link:Jp,nolink:gf,punctuation:Wp,reflink:mf,reflinkSearch:bp,tag:qp,text:Bp,url:Dl},eh={...uu,link:me(/^!?\[(label)\]\((.*?)\)/).replace("label",lo).getRegex(),reflink:me(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",lo).getRegex()},Js={...uu,escape:me(pf).replace("])","~|])").getRegex(),url:me(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\E+" ".repeat(j.length));let a,f,h,d;for(;s;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(S=>(a=S.call({lexer:this},s,o))?(s=s.substring(a.raw.length),o.push(a),!0):!1))){if(a=this.tokenizer.space(s)){s=s.substring(a.raw.length),a.raw.length===1&&o.length>0?o[o.length-1].raw+=` +`:o.push(a);continue}if(a=this.tokenizer.code(s)){s=s.substring(a.raw.length),f=o[o.length-1],f&&(f.type==="paragraph"||f.type==="text")?(f.raw+=` +`+a.raw,f.text+=` +`+a.text,this.inlineQueue[this.inlineQueue.length-1].src=f.text):o.push(a);continue}if(a=this.tokenizer.fences(s)){s=s.substring(a.raw.length),o.push(a);continue}if(a=this.tokenizer.heading(s)){s=s.substring(a.raw.length),o.push(a);continue}if(a=this.tokenizer.hr(s)){s=s.substring(a.raw.length),o.push(a);continue}if(a=this.tokenizer.blockquote(s)){s=s.substring(a.raw.length),o.push(a);continue}if(a=this.tokenizer.list(s)){s=s.substring(a.raw.length),o.push(a);continue}if(a=this.tokenizer.html(s)){s=s.substring(a.raw.length),o.push(a);continue}if(a=this.tokenizer.def(s)){s=s.substring(a.raw.length),f=o[o.length-1],f&&(f.type==="paragraph"||f.type==="text")?(f.raw+=` +`+a.raw,f.text+=` +`+a.raw,this.inlineQueue[this.inlineQueue.length-1].src=f.text):this.tokens.links[a.tag]||(this.tokens.links[a.tag]={href:a.href,title:a.title});continue}if(a=this.tokenizer.table(s)){s=s.substring(a.raw.length),o.push(a);continue}if(a=this.tokenizer.lheading(s)){s=s.substring(a.raw.length),o.push(a);continue}if(h=s,this.options.extensions&&this.options.extensions.startBlock){let S=1/0;const E=s.slice(1);let j;this.options.extensions.startBlock.forEach(A=>{j=A.call({lexer:this},E),typeof j=="number"&&j>=0&&(S=Math.min(S,j))}),S<1/0&&S>=0&&(h=s.substring(0,S+1))}if(this.state.top&&(a=this.tokenizer.paragraph(h))){f=o[o.length-1],d&&f.type==="paragraph"?(f.raw+=` +`+a.raw,f.text+=` +`+a.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=f.text):o.push(a),d=h.length!==s.length,s=s.substring(a.raw.length);continue}if(a=this.tokenizer.text(s)){s=s.substring(a.raw.length),f=o[o.length-1],f&&f.type==="text"?(f.raw+=` +`+a.raw,f.text+=` +`+a.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=f.text):o.push(a);continue}if(s){const S="Infinite loop on byte: "+s.charCodeAt(0);if(this.options.silent){console.error(S);break}else throw new Error(S)}}return this.state.top=!0,o}inline(s,o=[]){return this.inlineQueue.push({src:s,tokens:o}),o}inlineTokens(s,o=[]){let a,f,h,d=s,S,E,j;if(this.tokens.links){const A=Object.keys(this.tokens.links);if(A.length>0)for(;(S=this.tokenizer.rules.inline.reflinkSearch.exec(d))!=null;)A.includes(S[0].slice(S[0].lastIndexOf("[")+1,-1))&&(d=d.slice(0,S.index)+"["+"a".repeat(S[0].length-2)+"]"+d.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(S=this.tokenizer.rules.inline.blockSkip.exec(d))!=null;)d=d.slice(0,S.index)+"["+"a".repeat(S[0].length-2)+"]"+d.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(S=this.tokenizer.rules.inline.anyPunctuation.exec(d))!=null;)d=d.slice(0,S.index)+"++"+d.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;s;)if(E||(j=""),E=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(A=>(a=A.call({lexer:this},s,o))?(s=s.substring(a.raw.length),o.push(a),!0):!1))){if(a=this.tokenizer.escape(s)){s=s.substring(a.raw.length),o.push(a);continue}if(a=this.tokenizer.tag(s)){s=s.substring(a.raw.length),f=o[o.length-1],f&&a.type==="text"&&f.type==="text"?(f.raw+=a.raw,f.text+=a.text):o.push(a);continue}if(a=this.tokenizer.link(s)){s=s.substring(a.raw.length),o.push(a);continue}if(a=this.tokenizer.reflink(s,this.tokens.links)){s=s.substring(a.raw.length),f=o[o.length-1],f&&a.type==="text"&&f.type==="text"?(f.raw+=a.raw,f.text+=a.text):o.push(a);continue}if(a=this.tokenizer.emStrong(s,d,j)){s=s.substring(a.raw.length),o.push(a);continue}if(a=this.tokenizer.codespan(s)){s=s.substring(a.raw.length),o.push(a);continue}if(a=this.tokenizer.br(s)){s=s.substring(a.raw.length),o.push(a);continue}if(a=this.tokenizer.del(s)){s=s.substring(a.raw.length),o.push(a);continue}if(a=this.tokenizer.autolink(s)){s=s.substring(a.raw.length),o.push(a);continue}if(!this.state.inLink&&(a=this.tokenizer.url(s))){s=s.substring(a.raw.length),o.push(a);continue}if(h=s,this.options.extensions&&this.options.extensions.startInline){let A=1/0;const M=s.slice(1);let z;this.options.extensions.startInline.forEach(G=>{z=G.call({lexer:this},M),typeof z=="number"&&z>=0&&(A=Math.min(A,z))}),A<1/0&&A>=0&&(h=s.substring(0,A+1))}if(a=this.tokenizer.inlineText(h)){s=s.substring(a.raw.length),a.raw.slice(-1)!=="_"&&(j=a.raw.slice(-1)),E=!0,f=o[o.length-1],f&&f.type==="text"?(f.raw+=a.raw,f.text+=a.text):o.push(a);continue}if(s){const A="Infinite loop on byte: "+s.charCodeAt(0);if(this.options.silent){console.error(A);break}else throw new Error(A)}}return o}}class io{constructor(s){xe(this,"options");this.options=s||pr}code(s,o,a){var h;const f=(h=(o||"").match(/^\S*/))==null?void 0:h[0];return s=s.replace(/\n$/,"")+` +`,f?'
'+(a?s:wt(s,!0))+`
+`:"
"+(a?s:wt(s,!0))+`
+`}blockquote(s){return`
+${s}
+`}html(s,o){return s}heading(s,o,a){return`${s} +`}hr(){return`
+`}list(s,o,a){const f=o?"ol":"ul",h=o&&a!==1?' start="'+a+'"':"";return"<"+f+h+`> +`+s+" +`}listitem(s,o,a){return`
  • ${s}
  • +`}checkbox(s){return"'}paragraph(s){return`

    ${s}

    +`}table(s,o){return o&&(o=`${o}`),` + +`+s+` +`+o+`
    +`}tablerow(s){return` +${s} +`}tablecell(s,o){const a=o.header?"th":"td";return(o.align?`<${a} align="${o.align}">`:`<${a}>`)+s+` +`}strong(s){return`${s}`}em(s){return`${s}`}codespan(s){return`${s}`}br(){return"
    "}del(s){return`${s}`}link(s,o,a){const f=Qc(s);if(f===null)return a;s=f;let h='
    ",h}image(s,o,a){const f=Qc(s);if(f===null)return a;s=f;let h=`${a}0&&z.tokens[0].type==="paragraph"?(z.tokens[0].text=J+" "+z.tokens[0].text,z.tokens[0].tokens&&z.tokens[0].tokens.length>0&&z.tokens[0].tokens[0].type==="text"&&(z.tokens[0].tokens[0].text=J+" "+z.tokens[0].tokens[0].text)):z.tokens.unshift({type:"text",text:J+" "}):Z+=J+" "}Z+=this.parse(z.tokens,j),A+=this.renderer.listitem(Z,ce,!!G)}a+=this.renderer.list(A,S,E);continue}case"html":{const d=h;a+=this.renderer.html(d.text,d.block);continue}case"paragraph":{const d=h;a+=this.renderer.paragraph(this.parseInline(d.tokens));continue}case"text":{let d=h,S=d.tokens?this.parseInline(d.tokens):d.text;for(;f+1{const j=S[E].flat(1/0);a=a.concat(this.walkTokens(j,o))}):S.tokens&&(a=a.concat(this.walkTokens(S.tokens,o)))}}return a}use(...s){const o=this.defaults.extensions||{renderers:{},childTokens:{}};return s.forEach(a=>{const f={...a};if(f.async=this.defaults.async||f.async||!1,a.extensions&&(a.extensions.forEach(h=>{if(!h.name)throw new Error("extension name required");if("renderer"in h){const d=o.renderers[h.name];d?o.renderers[h.name]=function(...S){let E=h.renderer.apply(this,S);return E===!1&&(E=d.apply(this,S)),E}:o.renderers[h.name]=h.renderer}if("tokenizer"in h){if(!h.level||h.level!=="block"&&h.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const d=o[h.level];d?d.unshift(h.tokenizer):o[h.level]=[h.tokenizer],h.start&&(h.level==="block"?o.startBlock?o.startBlock.push(h.start):o.startBlock=[h.start]:h.level==="inline"&&(o.startInline?o.startInline.push(h.start):o.startInline=[h.start]))}"childTokens"in h&&h.childTokens&&(o.childTokens[h.name]=h.childTokens)}),f.extensions=o),a.renderer){const h=this.defaults.renderer||new io(this.defaults);for(const d in a.renderer){if(!(d in h))throw new Error(`renderer '${d}' does not exist`);if(d==="options")continue;const S=d,E=a.renderer[S],j=h[S];h[S]=(...A)=>{let M=E.apply(h,A);return M===!1&&(M=j.apply(h,A)),M||""}}f.renderer=h}if(a.tokenizer){const h=this.defaults.tokenizer||new ro(this.defaults);for(const d in a.tokenizer){if(!(d in h))throw new Error(`tokenizer '${d}' does not exist`);if(["options","rules","lexer"].includes(d))continue;const S=d,E=a.tokenizer[S],j=h[S];h[S]=(...A)=>{let M=E.apply(h,A);return M===!1&&(M=j.apply(h,A)),M}}f.tokenizer=h}if(a.hooks){const h=this.defaults.hooks||new jl;for(const d in a.hooks){if(!(d in h))throw new Error(`hook '${d}' does not exist`);if(d==="options")continue;const S=d,E=a.hooks[S],j=h[S];jl.passThroughHooks.has(d)?h[S]=A=>{if(this.defaults.async)return Promise.resolve(E.call(h,A)).then(z=>j.call(h,z));const M=E.call(h,A);return j.call(h,M)}:h[S]=(...A)=>{let M=E.apply(h,A);return M===!1&&(M=j.apply(h,A)),M}}f.hooks=h}if(a.walkTokens){const h=this.defaults.walkTokens,d=a.walkTokens;f.walkTokens=function(S){let E=[];return E.push(d.call(this,S)),h&&(E=E.concat(h.call(this,S))),E}}this.defaults={...this.defaults,...f}}),this}setOptions(s){return this.defaults={...this.defaults,...s},this}lexer(s,o){return Xt.lex(s,o??this.defaults)}parser(s,o){return Zt.parse(s,o??this.defaults)}}dr=new WeakSet,bs=function(s,o){return(a,f)=>{const h={...f},d={...this.defaults,...h};this.defaults.async===!0&&h.async===!1&&(d.silent||console.warn("marked(): The async option was set to true by an extension. The async: false option sent to parse will be ignored."),d.async=!0);const S=Zi(this,dr,yf).call(this,!!d.silent,!!d.async);if(typeof a>"u"||a===null)return S(new Error("marked(): input parameter is undefined or null"));if(typeof a!="string")return S(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(a)+", string expected"));if(d.hooks&&(d.hooks.options=d),d.async)return Promise.resolve(d.hooks?d.hooks.preprocess(a):a).then(E=>s(E,d)).then(E=>d.hooks?d.hooks.processAllTokens(E):E).then(E=>d.walkTokens?Promise.all(this.walkTokens(E,d.walkTokens)).then(()=>E):E).then(E=>o(E,d)).then(E=>d.hooks?d.hooks.postprocess(E):E).catch(S);try{d.hooks&&(a=d.hooks.preprocess(a));let E=s(a,d);d.hooks&&(E=d.hooks.processAllTokens(E)),d.walkTokens&&this.walkTokens(E,d.walkTokens);let j=o(E,d);return d.hooks&&(j=d.hooks.postprocess(j)),j}catch(E){return S(E)}}},yf=function(s,o){return a=>{if(a.message+=` +Please report this to https://github.com/markedjs/marked.`,s){const f="

    An error occurred:

    "+wt(a.message+"",!0)+"
    ";return o?Promise.resolve(f):f}if(o)return Promise.reject(a);throw a}};const fr=new nh;function pe(v,s){return fr.parse(v,s)}pe.options=pe.setOptions=function(v){return fr.setOptions(v),pe.defaults=fr.defaults,sf(pe.defaults),pe};pe.getDefaults=ru;pe.defaults=pr;pe.use=function(...v){return fr.use(...v),pe.defaults=fr.defaults,sf(pe.defaults),pe};pe.walkTokens=function(v,s){return fr.walkTokens(v,s)};pe.parseInline=fr.parseInline;pe.Parser=Zt;pe.parser=Zt.parse;pe.Renderer=io;pe.TextRenderer=au;pe.Lexer=Xt;pe.lexer=Xt.lex;pe.Tokenizer=ro;pe.Hooks=jl;pe.parse=pe;pe.options;pe.setOptions;pe.use;pe.walkTokens;pe.parseInline;Zt.parse;Xt.lex;/*! @license DOMPurify 3.2.4 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.4/LICENSE */const{entries:vf,setPrototypeOf:Xc,isFrozen:rh,getPrototypeOf:lh,getOwnPropertyDescriptor:ih}=Object;let{freeze:st,seal:Pt,create:kf}=Object,{apply:eu,construct:tu}=typeof Reflect<"u"&&Reflect;st||(st=function(s){return s});Pt||(Pt=function(s){return s});eu||(eu=function(s,o,a){return s.apply(o,a)});tu||(tu=function(s,o){return new s(...o)});const eo=ut(Array.prototype.forEach),oh=ut(Array.prototype.lastIndexOf),Zc=ut(Array.prototype.pop),Al=ut(Array.prototype.push),sh=ut(Array.prototype.splice),no=ut(String.prototype.toLowerCase),Ys=ut(String.prototype.toString),qc=ut(String.prototype.match),zl=ut(String.prototype.replace),uh=ut(String.prototype.indexOf),ah=ut(String.prototype.trim),$t=ut(Object.prototype.hasOwnProperty),ot=ut(RegExp.prototype.test),Il=ch(TypeError);function ut(v){return function(s){for(var o=arguments.length,a=new Array(o>1?o-1:0),f=1;f2&&arguments[2]!==void 0?arguments[2]:no;Xc&&Xc(v,null);let a=s.length;for(;a--;){let f=s[a];if(typeof f=="string"){const h=o(f);h!==f&&(rh(s)||(s[a]=h),f=h)}v[f]=!0}return v}function fh(v){for(let s=0;s/gm),gh=Pt(/\$\{[\w\W]*/gm),yh=Pt(/^data-[\-\w.\u00B7-\uFFFF]+$/),vh=Pt(/^aria-[\-\w]+$/),wf=Pt(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),kh=Pt(/^(?:\w+script|data):/i),wh=Pt(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),xf=Pt(/^html$/i),xh=Pt(/^[a-z][.\w]*(-[.\w]+)+$/i);var nf=Object.freeze({__proto__:null,ARIA_ATTR:vh,ATTR_WHITESPACE:wh,CUSTOM_ELEMENT:xh,DATA_ATTR:yh,DOCTYPE_NAME:xf,ERB_EXPR:mh,IS_ALLOWED_URI:wf,IS_SCRIPT_OR_DATA:kh,MUSTACHE_EXPR:hh,TMPLIT_EXPR:gh});const Ol={element:1,text:3,progressingInstruction:7,comment:8,document:9},Sh=function(){return typeof window>"u"?null:window},Eh=function(s,o){if(typeof s!="object"||typeof s.createPolicy!="function")return null;let a=null;const f="data-tt-policy-suffix";o&&o.hasAttribute(f)&&(a=o.getAttribute(f));const h="dompurify"+(a?"#"+a:"");try{return s.createPolicy(h,{createHTML(d){return d},createScriptURL(d){return d}})}catch{return console.warn("TrustedTypes policy "+h+" could not be created."),null}},rf=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function Sf(){let v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Sh();const s=W=>Sf(W);if(s.version="3.2.4",s.removed=[],!v||!v.document||v.document.nodeType!==Ol.document||!v.Element)return s.isSupported=!1,s;let{document:o}=v;const a=o,f=a.currentScript,{DocumentFragment:h,HTMLTemplateElement:d,Node:S,Element:E,NodeFilter:j,NamedNodeMap:A=v.NamedNodeMap||v.MozNamedAttrMap,HTMLFormElement:M,DOMParser:z,trustedTypes:G}=v,ce=E.prototype,Z=Ml(ce,"cloneNode"),J=Ml(ce,"remove"),De=Ml(ce,"nextSibling"),je=Ml(ce,"childNodes"),Ne=Ml(ce,"parentNode");if(typeof d=="function"){const W=o.createElement("template");W.content&&W.content.ownerDocument&&(o=W.content.ownerDocument)}let le,ve="";const{implementation:Pe,createNodeIterator:Be,createDocumentFragment:b,getElementsByTagName:Ae}=o,{importNode:Se}=a;let oe=rf();s.isSupported=typeof vf=="function"&&typeof Ne=="function"&&Pe&&Pe.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:Re,ERB_EXPR:Fe,TMPLIT_EXPR:Ke,DATA_ATTR:Xe,ARIA_ATTR:Ue,IS_SCRIPT_OR_DATA:Ee,ATTR_WHITESPACE:I,CUSTOM_ELEMENT:X}=nf;let{IS_ALLOWED_URI:D}=nf,y=null;const _=ie({},[...Jc,...Ks,...Xs,...Zs,...bc]);let V=null;const ee=ie({},[...ef,...qs,...tf,...to]);let Q=Object.seal(kf(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ne=null,fe=null,ue=!0,he=!0,Je=!1,Bn=!0,qt=!1,dn=!0,At=!1,hr=!1,mr=!1,Ht=!1,Wn=!1,pn=!1,hn=!0,Jt=!1;const Vr="user-content-";let gr=!0,mn=!1,bt={},en=null;const yr=ie({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Vn=null;const Qr=ie({},["audio","video","img","source","image","track"]);let tn=null;const gn=ie({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),vr="http://www.w3.org/1998/Math/MathML",Qn="http://www.w3.org/2000/svg",xt="http://www.w3.org/1999/xhtml";let yn=xt,Gn=!1,Yn=null;const Gr=ie({},[vr,Qn,xt],Ys);let vn=ie({},["mi","mo","mn","ms","mtext"]),kn=ie({},["annotation-xml"]);const wn=ie({},["title","style","font","a","script"]);let St=null;const $l=["application/xhtml+xml","text/html"],Hl="text/html";let ze=null,nn=null;const Bl=o.createElement("form"),kr=function(m){return m instanceof RegExp||m instanceof Function},wr=function(){let m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(nn&&nn===m)){if((!m||typeof m!="object")&&(m={}),m=cr(m),St=$l.indexOf(m.PARSER_MEDIA_TYPE)===-1?Hl:m.PARSER_MEDIA_TYPE,ze=St==="application/xhtml+xml"?Ys:no,y=$t(m,"ALLOWED_TAGS")?ie({},m.ALLOWED_TAGS,ze):_,V=$t(m,"ALLOWED_ATTR")?ie({},m.ALLOWED_ATTR,ze):ee,Yn=$t(m,"ALLOWED_NAMESPACES")?ie({},m.ALLOWED_NAMESPACES,Ys):Gr,tn=$t(m,"ADD_URI_SAFE_ATTR")?ie(cr(gn),m.ADD_URI_SAFE_ATTR,ze):gn,Vn=$t(m,"ADD_DATA_URI_TAGS")?ie(cr(Qr),m.ADD_DATA_URI_TAGS,ze):Qr,en=$t(m,"FORBID_CONTENTS")?ie({},m.FORBID_CONTENTS,ze):yr,ne=$t(m,"FORBID_TAGS")?ie({},m.FORBID_TAGS,ze):{},fe=$t(m,"FORBID_ATTR")?ie({},m.FORBID_ATTR,ze):{},bt=$t(m,"USE_PROFILES")?m.USE_PROFILES:!1,ue=m.ALLOW_ARIA_ATTR!==!1,he=m.ALLOW_DATA_ATTR!==!1,Je=m.ALLOW_UNKNOWN_PROTOCOLS||!1,Bn=m.ALLOW_SELF_CLOSE_IN_ATTR!==!1,qt=m.SAFE_FOR_TEMPLATES||!1,dn=m.SAFE_FOR_XML!==!1,At=m.WHOLE_DOCUMENT||!1,Ht=m.RETURN_DOM||!1,Wn=m.RETURN_DOM_FRAGMENT||!1,pn=m.RETURN_TRUSTED_TYPE||!1,mr=m.FORCE_BODY||!1,hn=m.SANITIZE_DOM!==!1,Jt=m.SANITIZE_NAMED_PROPS||!1,gr=m.KEEP_CONTENT!==!1,mn=m.IN_PLACE||!1,D=m.ALLOWED_URI_REGEXP||wf,yn=m.NAMESPACE||xt,vn=m.MATHML_TEXT_INTEGRATION_POINTS||vn,kn=m.HTML_INTEGRATION_POINTS||kn,Q=m.CUSTOM_ELEMENT_HANDLING||{},m.CUSTOM_ELEMENT_HANDLING&&kr(m.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Q.tagNameCheck=m.CUSTOM_ELEMENT_HANDLING.tagNameCheck),m.CUSTOM_ELEMENT_HANDLING&&kr(m.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Q.attributeNameCheck=m.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),m.CUSTOM_ELEMENT_HANDLING&&typeof m.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(Q.allowCustomizedBuiltInElements=m.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),qt&&(he=!1),Wn&&(Ht=!0),bt&&(y=ie({},bc),V=[],bt.html===!0&&(ie(y,Jc),ie(V,ef)),bt.svg===!0&&(ie(y,Ks),ie(V,qs),ie(V,to)),bt.svgFilters===!0&&(ie(y,Xs),ie(V,qs),ie(V,to)),bt.mathMl===!0&&(ie(y,Zs),ie(V,tf),ie(V,to))),m.ADD_TAGS&&(y===_&&(y=cr(y)),ie(y,m.ADD_TAGS,ze)),m.ADD_ATTR&&(V===ee&&(V=cr(V)),ie(V,m.ADD_ATTR,ze)),m.ADD_URI_SAFE_ATTR&&ie(tn,m.ADD_URI_SAFE_ATTR,ze),m.FORBID_CONTENTS&&(en===yr&&(en=cr(en)),ie(en,m.FORBID_CONTENTS,ze)),gr&&(y["#text"]=!0),At&&ie(y,["html","head","body"]),y.table&&(ie(y,["tbody"]),delete ne.tbody),m.TRUSTED_TYPES_POLICY){if(typeof m.TRUSTED_TYPES_POLICY.createHTML!="function")throw Il('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof m.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Il('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');le=m.TRUSTED_TYPES_POLICY,ve=le.createHTML("")}else le===void 0&&(le=Eh(G,f)),le!==null&&typeof ve=="string"&&(ve=le.createHTML(""));st&&st(m),nn=m}},xn=ie({},[...Ks,...Xs,...dh]),xr=ie({},[...Zs,...ph]),Kn=function(m){let R=Ne(m);(!R||!R.tagName)&&(R={namespaceURI:yn,tagName:"template"});const $=no(m.tagName),ge=no(R.tagName);return Yn[m.namespaceURI]?m.namespaceURI===Qn?R.namespaceURI===xt?$==="svg":R.namespaceURI===vr?$==="svg"&&(ge==="annotation-xml"||vn[ge]):!!xn[$]:m.namespaceURI===vr?R.namespaceURI===xt?$==="math":R.namespaceURI===Qn?$==="math"&&kn[ge]:!!xr[$]:m.namespaceURI===xt?R.namespaceURI===Qn&&!kn[ge]||R.namespaceURI===vr&&!vn[ge]?!1:!xr[$]&&(wn[$]||!xn[$]):!!(St==="application/xhtml+xml"&&Yn[m.namespaceURI]):!1},Et=function(m){Al(s.removed,{element:m});try{Ne(m).removeChild(m)}catch{J(m)}},Bt=function(m,R){try{Al(s.removed,{attribute:R.getAttributeNode(m),from:R})}catch{Al(s.removed,{attribute:null,from:R})}if(R.removeAttribute(m),m==="is")if(Ht||Wn)try{Et(R)}catch{}else try{R.setAttribute(m,"")}catch{}},Xn=function(m){let R=null,$=null;if(mr)m=""+m;else{const te=qc(m,/^[\r\n\t ]+/);$=te&&te[0]}St==="application/xhtml+xml"&&yn===xt&&(m=''+m+"");const ge=le?le.createHTML(m):m;if(yn===xt)try{R=new z().parseFromString(ge,St)}catch{}if(!R||!R.documentElement){R=Pe.createDocument(yn,"template",null);try{R.documentElement.innerHTML=Gn?ve:ge}catch{}}const We=R.body||R.documentElement;return m&&$&&We.insertBefore(o.createTextNode($),We.childNodes[0]||null),yn===xt?Ae.call(R,At?"html":"body")[0]:At?R.documentElement:We},Zn=function(m){return Be.call(m.ownerDocument||m,m,j.SHOW_ELEMENT|j.SHOW_COMMENT|j.SHOW_TEXT|j.SHOW_PROCESSING_INSTRUCTION|j.SHOW_CDATA_SECTION,null)},qn=function(m){return m instanceof M&&(typeof m.nodeName!="string"||typeof m.textContent!="string"||typeof m.removeChild!="function"||!(m.attributes instanceof A)||typeof m.removeAttribute!="function"||typeof m.setAttribute!="function"||typeof m.namespaceURI!="string"||typeof m.insertBefore!="function"||typeof m.hasChildNodes!="function")},Wl=function(m){return typeof S=="function"&&m instanceof S};function zt(W,m,R){eo(W,$=>{$.call(s,m,R,nn)})}const Vl=function(m){let R=null;if(zt(oe.beforeSanitizeElements,m,null),qn(m))return Et(m),!0;const $=ze(m.nodeName);if(zt(oe.uponSanitizeElement,m,{tagName:$,allowedTags:y}),m.hasChildNodes()&&!Wl(m.firstElementChild)&&ot(/<[/\w]/g,m.innerHTML)&&ot(/<[/\w]/g,m.textContent)||m.nodeType===Ol.progressingInstruction||dn&&m.nodeType===Ol.comment&&ot(/<[/\w]/g,m.data))return Et(m),!0;if(!y[$]||ne[$]){if(!ne[$]&&Yr($)&&(Q.tagNameCheck instanceof RegExp&&ot(Q.tagNameCheck,$)||Q.tagNameCheck instanceof Function&&Q.tagNameCheck($)))return!1;if(gr&&!en[$]){const ge=Ne(m)||m.parentNode,We=je(m)||m.childNodes;if(We&&ge){const te=We.length;for(let be=te-1;be>=0;--be){const at=Z(We[be],!0);at.__removalCount=(m.__removalCount||0)+1,ge.insertBefore(at,De(m))}}}return Et(m),!0}return m instanceof E&&!Kn(m)||($==="noscript"||$==="noembed"||$==="noframes")&&ot(/<\/no(script|embed|frames)/i,m.innerHTML)?(Et(m),!0):(qt&&m.nodeType===Ol.text&&(R=m.textContent,eo([Re,Fe,Ke],ge=>{R=zl(R,ge," ")}),m.textContent!==R&&(Al(s.removed,{element:m.cloneNode()}),m.textContent=R)),zt(oe.afterSanitizeElements,m,null),!1)},Wt=function(m,R,$){if(hn&&(R==="id"||R==="name")&&($ in o||$ in Bl))return!1;if(!(he&&!fe[R]&&ot(Xe,R))){if(!(ue&&ot(Ue,R))){if(!V[R]||fe[R]){if(!(Yr(m)&&(Q.tagNameCheck instanceof RegExp&&ot(Q.tagNameCheck,m)||Q.tagNameCheck instanceof Function&&Q.tagNameCheck(m))&&(Q.attributeNameCheck instanceof RegExp&&ot(Q.attributeNameCheck,R)||Q.attributeNameCheck instanceof Function&&Q.attributeNameCheck(R))||R==="is"&&Q.allowCustomizedBuiltInElements&&(Q.tagNameCheck instanceof RegExp&&ot(Q.tagNameCheck,$)||Q.tagNameCheck instanceof Function&&Q.tagNameCheck($))))return!1}else if(!tn[R]){if(!ot(D,zl($,I,""))){if(!((R==="src"||R==="xlink:href"||R==="href")&&m!=="script"&&uh($,"data:")===0&&Vn[m])){if(!(Je&&!ot(Ee,zl($,I,"")))){if($)return!1}}}}}}return!0},Yr=function(m){return m!=="annotation-xml"&&qc(m,X)},Kr=function(m){zt(oe.beforeSanitizeAttributes,m,null);const{attributes:R}=m;if(!R||qn(m))return;const $={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:V,forceKeepAttr:void 0};let ge=R.length;for(;ge--;){const We=R[ge],{name:te,namespaceURI:be,value:at}=We,Sn=ze(te);let Me=te==="value"?at:ah(at);if($.attrName=Sn,$.attrValue=Me,$.keepAttr=!0,$.forceKeepAttr=void 0,zt(oe.uponSanitizeAttribute,m,$),Me=$.attrValue,Jt&&(Sn==="id"||Sn==="name")&&(Bt(te,m),Me=Vr+Me),dn&&ot(/((--!?|])>)|<\/(style|title)/i,Me)){Bt(te,m);continue}if($.forceKeepAttr||(Bt(te,m),!$.keepAttr))continue;if(!Bn&&ot(/\/>/i,Me)){Bt(te,m);continue}qt&&eo([Re,Fe,Ke],Xr=>{Me=zl(Me,Xr," ")});const Ql=ze(m.nodeName);if(Wt(Ql,Sn,Me)){if(le&&typeof G=="object"&&typeof G.getAttributeType=="function"&&!be)switch(G.getAttributeType(Ql,Sn)){case"TrustedHTML":{Me=le.createHTML(Me);break}case"TrustedScriptURL":{Me=le.createScriptURL(Me);break}}try{be?m.setAttributeNS(be,te,Me):m.setAttribute(te,Me),qn(m)?Et(m):Zc(s.removed)}catch{}}}zt(oe.afterSanitizeAttributes,m,null)},so=function W(m){let R=null;const $=Zn(m);for(zt(oe.beforeSanitizeShadowDOM,m,null);R=$.nextNode();)zt(oe.uponSanitizeShadowNode,R,null),Vl(R),Kr(R),R.content instanceof h&&W(R.content);zt(oe.afterSanitizeShadowDOM,m,null)};return s.sanitize=function(W){let m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},R=null,$=null,ge=null,We=null;if(Gn=!W,Gn&&(W=""),typeof W!="string"&&!Wl(W))if(typeof W.toString=="function"){if(W=W.toString(),typeof W!="string")throw Il("dirty is not a string, aborting")}else throw Il("toString is not a function");if(!s.isSupported)return W;if(hr||wr(m),s.removed=[],typeof W=="string"&&(mn=!1),mn){if(W.nodeName){const at=ze(W.nodeName);if(!y[at]||ne[at])throw Il("root node is forbidden and cannot be sanitized in-place")}}else if(W instanceof S)R=Xn(""),$=R.ownerDocument.importNode(W,!0),$.nodeType===Ol.element&&$.nodeName==="BODY"||$.nodeName==="HTML"?R=$:R.appendChild($);else{if(!Ht&&!qt&&!At&&W.indexOf("<")===-1)return le&&pn?le.createHTML(W):W;if(R=Xn(W),!R)return Ht?null:pn?ve:""}R&&mr&&Et(R.firstChild);const te=Zn(mn?W:R);for(;ge=te.nextNode();)Vl(ge),Kr(ge),ge.content instanceof h&&so(ge.content);if(mn)return W;if(Ht){if(Wn)for(We=b.call(R.ownerDocument);R.firstChild;)We.appendChild(R.firstChild);else We=R;return(V.shadowroot||V.shadowrootmode)&&(We=Se.call(a,We,!0)),We}let be=At?R.outerHTML:R.innerHTML;return At&&y["!doctype"]&&R.ownerDocument&&R.ownerDocument.doctype&&R.ownerDocument.doctype.name&&ot(xf,R.ownerDocument.doctype.name)&&(be=" +`+be),qt&&eo([Re,Fe,Ke],at=>{be=zl(be,at," ")}),le&&pn?le.createHTML(be):be},s.setConfig=function(){let W=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};wr(W),hr=!0},s.clearConfig=function(){nn=null,hr=!1},s.isValidAttribute=function(W,m,R){nn||wr({});const $=ze(W),ge=ze(m);return Wt($,ge,R)},s.addHook=function(W,m){typeof m=="function"&&Al(oe[W],m)},s.removeHook=function(W,m){if(m!==void 0){const R=oh(oe[W],m);return R===-1?void 0:sh(oe[W],R,1)[0]}return Zc(oe[W])},s.removeHooks=function(W){oe[W]=[]},s.removeAllHooks=function(){oe=rf()},s}var _h=Sf();function Th(v){return L.jsxs("svg",{...v,xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[L.jsx("path",{d:"M12 8V4H8"}),L.jsx("rect",{width:"16",height:"12",x:"4",y:"8",rx:"2"}),L.jsx("path",{d:"M2 14h2"}),L.jsx("path",{d:"M20 14h2"}),L.jsx("path",{d:"M15 13v2"}),L.jsx("path",{d:"M9 13v2"})]})}function Ch(v){return L.jsxs("svg",{...v,xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[L.jsx("path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2"}),L.jsx("circle",{cx:"12",cy:"7",r:"4"})]})}function Nh(v){return _h.sanitize(pe.parse(v))}function Rh({messages:v}){const s=v.length===0;return Ye.useEffect(()=>{window.MathJax.typeset()},[v]),L.jsx("div",{className:`flex-1 p-6 max-w-[960px] w-full ${s?"flex flex-col items-center justify-end":"space-y-4"}`,children:s?L.jsx("div",{className:"text-xl",children:"Ready!"}):v.map((o,a)=>L.jsx("div",{className:"flex items-start space-x-4",children:o.role==="assistant"?L.jsxs(L.Fragment,{children:[L.jsx(Th,{className:"h-6 w-6 min-h-6 min-w-6 my-3 text-gray-500 dark:text-gray-300"}),L.jsx("div",{className:"bg-gray-200 dark:bg-gray-700 rounded-lg p-4",children:L.jsx("p",{className:"min-h-6 text-gray-800 dark:text-gray-200 overflow-wrap-anywhere",children:o.content.length>0?L.jsx("span",{className:"markdown",dangerouslySetInnerHTML:{__html:Nh(o.content)}}):L.jsxs("span",{className:"h-6 flex items-center gap-1",children:[L.jsx("span",{className:"w-2.5 h-2.5 bg-gray-600 dark:bg-gray-300 rounded-full animate-pulse"}),L.jsx("span",{className:"w-2.5 h-2.5 bg-gray-600 dark:bg-gray-300 rounded-full animate-pulse animation-delay-200"}),L.jsx("span",{className:"w-2.5 h-2.5 bg-gray-600 dark:bg-gray-300 rounded-full animate-pulse animation-delay-400"})]})})})]}):L.jsxs(L.Fragment,{children:[L.jsx(Ch,{className:"h-6 w-6 min-h-6 min-w-6 my-3 text-gray-500 dark:text-gray-300"}),L.jsx("div",{className:"bg-blue-500 text-white rounded-lg p-4",children:L.jsx("p",{className:"min-h-6 overflow-wrap-anywhere",children:o.content})})]})},`message-${a}`))})}function lf(v){return L.jsxs("svg",{...v,xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[L.jsx("path",{d:"M5 12h14"}),L.jsx("path",{d:"m12 5 7 7-7 7"})]})}function Lh(v){return L.jsxs("svg",{...v,xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[L.jsx("path",{d:"M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"}),L.jsx("path",{fill:"currentColor",d:"M9 9.563C9 9.252 9.252 9 9.563 9h4.874c.311 0 .563.252.563.563v4.874c0 .311-.252.563-.563.563H9.564A.562.562 0 0 1 9 14.437V9.564Z"})]})}function Ph(v){const s=v==0?0:Math.floor(Math.log(v)/Math.log(1024));return+(v/Math.pow(1024,s)).toFixed(2)*1+["B","kB","MB","GB","TB"][s]}function Ah({text:v,percentage:s,total:o}){return s??(s=0),L.jsx("div",{className:"w-full bg-gray-100 dark:bg-gray-700 text-left rounded-lg overflow-hidden mb-0.5",children:L.jsxs("div",{className:"bg-blue-400 whitespace-nowrap px-1 text-sm",style:{width:`${s}%`},children:[v," (",s.toFixed(2),"%",isNaN(o)?"":` of ${Ph(o)}`,")"]})})}const zh=!!navigator.gpu,Ih=120,Mh=["Give me some tips to improve my time management skills.","I'm feeling overwhelmed with my tasks. Can you suggest strategies to manage my workload better?","What are some effective ways to prioritize tasks when everything seems urgent?","Can you give me advice on how to handle distractions and improve my focus during work?","I struggle with procrastination. What techniques can help me get started on my tasks sooner?","How can I maintain a healthy work-life balance while improving my productivity?"];function Oh(){const v=Ye.useRef(null),s=Ye.useRef(null),o=Ye.useRef(null),[a,f]=Ye.useState(null),[h,d]=Ye.useState(null),[S,E]=Ye.useState(""),[j,A]=Ye.useState([]),[M,z]=Ye.useState(!1),[G,ce]=Ye.useState(""),[Z,J]=Ye.useState([]),[De,je]=Ye.useState(null),[Ne,le]=Ye.useState(null);function ve(b){J(Ae=>[...Ae,{role:"user",content:b}]),je(null),z(!0),ce("")}function Pe(){v.current.postMessage({type:"interrupt"})}Ye.useEffect(()=>{Be()},[G]);function Be(){if(!s.current)return;const b=s.current;b.style.height="auto";const Ae=Math.min(Math.max(b.scrollHeight,24),200);b.style.height=`${Ae}px`}return Ye.useEffect(()=>{v.current||(v.current=new Worker(new URL("/assets/worker-XIq3G5f-.js",import.meta.url),{type:"module"}),v.current.postMessage({type:"check"}));const b=Se=>{switch(Se.data.status){case"loading":f("loading"),E(Se.data.data);break;case"initiate":A(oe=>[...oe,Se.data]);break;case"progress":A(oe=>oe.map(Re=>Re.file===Se.data.file?{...Re,...Se.data}:Re));break;case"done":A(oe=>oe.filter(Re=>Re.file!==Se.data.file));break;case"ready":f("ready");break;case"start":J(oe=>[...oe,{role:"assistant",content:""}]);break;case"update":{const{output:oe,tps:Re,numTokens:Fe}=Se.data;je(Re),le(Fe),J(Ke=>{const Xe=[...Ke],Ue=Xe.at(-1);return Xe[Xe.length-1]={...Ue,content:Ue.content+oe},Xe})}break;case"complete":z(!1);break;case"error":d(Se.data.data);break}},Ae=Se=>{console.error("Worker error:",Se)};return v.current.addEventListener("message",b),v.current.addEventListener("error",Ae),()=>{v.current.removeEventListener("message",b),v.current.removeEventListener("error",Ae)}},[]),Ye.useEffect(()=>{Z.filter(b=>b.role==="user").length!==0&&Z.at(-1).role!=="assistant"&&(je(null),v.current.postMessage({type:"generate",data:Z}))},[Z,M]),Ye.useEffect(()=>{if(!o.current||!M)return;const b=o.current;b.scrollHeight-b.scrollTop-b.clientHeight{v.current.postMessage({type:"load"}),f("loading")},disabled:a!==null||h!==null,children:"Load model"})]})]}),a==="loading"&&L.jsx(L.Fragment,{children:L.jsxs("div",{className:"w-full max-w-[500px] text-left mx-auto p-4 bottom-0 mt-auto",children:[L.jsx("p",{className:"text-center mb-1",children:S}),j.map(({file:b,progress:Ae,total:Se},oe)=>L.jsx(Ah,{text:b,percentage:Ae,total:Se},oe))]})}),a==="ready"&&L.jsxs("div",{ref:o,className:"overflow-y-auto scrollbar-thin w-full flex flex-col items-center h-full",children:[L.jsx(Rh,{messages:Z}),Z.length===0&&L.jsx("div",{children:Mh.map((b,Ae)=>L.jsx("div",{className:"m-1 border dark:border-gray-600 rounded-md p-2 bg-gray-100 dark:bg-gray-700 cursor-pointer",onClick:()=>ve(b),children:b},Ae))}),L.jsx("p",{className:"text-center text-sm min-h-6 text-gray-500 dark:text-gray-300",children:De&&Z.length>0&&L.jsxs(L.Fragment,{children:[!M&&L.jsxs("span",{children:["Generated ",Ne," tokens in"," ",(Ne/De).toFixed(2)," seconds ("]}),L.jsxs(L.Fragment,{children:[L.jsx("span",{className:"font-medium text-center mr-1 text-black dark:text-white",children:De.toFixed(2)}),L.jsx("span",{className:"text-gray-500 dark:text-gray-300",children:"tokens/second"})]}),!M&&L.jsxs(L.Fragment,{children:[L.jsx("span",{className:"mr-1",children:")."}),L.jsx("span",{className:"underline cursor-pointer",onClick:()=>{v.current.postMessage({type:"reset"}),J([])},children:"Reset"})]})]})})]}),L.jsxs("div",{className:"mt-2 border dark:bg-gray-700 rounded-lg w-[600px] max-w-[80%] max-h-[200px] mx-auto relative mb-3 flex",children:[L.jsx("textarea",{ref:s,className:"scrollbar-thin w-[550px] dark:bg-gray-700 px-3 py-4 rounded-lg bg-transparent border-none outline-none text-gray-800 disabled:text-gray-400 dark:text-gray-200 placeholder-gray-500 dark:placeholder-gray-400 disabled:placeholder-gray-200 resize-none disabled:cursor-not-allowed",placeholder:"Type your message...",type:"text",rows:1,value:G,disabled:a!=="ready",title:a==="ready"?"Model is ready":"Model not loaded yet",onKeyDown:b=>{G.length>0&&!M&&b.key==="Enter"&&!b.shiftKey&&(b.preventDefault(),ve(G))},onInput:b=>ce(b.target.value)}),M?L.jsx("div",{className:"cursor-pointer",onClick:Pe,children:L.jsx(Lh,{className:"h-8 w-8 p-1 rounded-md text-gray-800 dark:text-gray-100 absolute right-3 bottom-3"})}):G.length>0?L.jsx("div",{className:"cursor-pointer",onClick:()=>ve(G),children:L.jsx(lf,{className:"h-8 w-8 p-1 bg-gray-800 dark:bg-gray-100 text-white dark:text-black rounded-md absolute right-3 bottom-3"})}):L.jsx("div",{children:L.jsx(lf,{className:"h-8 w-8 p-1 bg-gray-200 dark:bg-gray-600 text-gray-50 dark:text-gray-800 rounded-md absolute right-3 bottom-3"})})]}),L.jsx("p",{className:"text-xs text-gray-400 text-center mb-3",children:"Disclaimer: Generated content may be inaccurate or false."})]}):L.jsxs("div",{className:"fixed w-screen h-screen bg-black z-10 bg-opacity-[92%] text-white text-2xl font-semibold flex justify-center items-center text-center",children:["WebGPU is not supported",L.jsx("br",{}),"by this browser :("]})}xp.createRoot(document.getElementById("root")).render(L.jsx(hp.StrictMode,{children:L.jsx(Oh,{})}));