var pp=Object.defineProperty;var $c=p=>{throw TypeError(p)};var hp=(p,s,o)=>s in p?pp(p,s,{enumerable:!0,configurable:!0,writable:!0,value:o}):p[s]=o;var Te=(p,s,o)=>hp(p,typeof s!="symbol"?s+"":s,o),mp=(p,s,o)=>s.has(p)||$c("Cannot "+o);var Bc=(p,s,o)=>s.has(p)?$c("Cannot add the same private member more than once"):s instanceof WeakSet?s.add(p):s.set(p,o);var io=(p,s,o)=>(mp(p,s,"access private method"),o);(function(){const s=document.createElement("link").relList;if(s&&s.supports&&s.supports("modulepreload"))return;for(const d of document.querySelectorAll('link[rel="modulepreload"]'))u(d);new MutationObserver(d=>{for(const h of d)if(h.type==="childList")for(const m of h.addedNodes)m.tagName==="LINK"&&m.rel==="modulepreload"&&u(m)}).observe(document,{childList:!0,subtree:!0});function o(d){const h={};return d.integrity&&(h.integrity=d.integrity),d.referrerPolicy&&(h.referrerPolicy=d.referrerPolicy),d.crossOrigin==="use-credentials"?h.credentials="include":d.crossOrigin==="anonymous"?h.credentials="omit":h.credentials="same-origin",h}function u(d){if(d.ep)return;d.ep=!0;const h=o(d);fetch(d.href,h)}})();function yf(p){return p&&p.__esModule&&Object.prototype.hasOwnProperty.call(p,"default")?p.default:p}var Ks={exports:{}},$l={},Zs={exports:{}},le={};/** * @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 Hc;function gp(){if(Hc)return le;Hc=1;var p=Symbol.for("react.element"),s=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),d=Symbol.for("react.profiler"),h=Symbol.for("react.provider"),m=Symbol.for("react.context"),S=Symbol.for("react.forward_ref"),E=Symbol.for("react.suspense"),z=Symbol.for("react.memo"),P=Symbol.for("react.lazy"),M=Symbol.iterator;function I(v){return v===null||typeof v!="object"?null:(v=M&&v[M]||v["@@iterator"],typeof v=="function"?v:null)}var Z={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},ce=Object.assign,Q={};function ee(v,T,te){this.props=v,this.context=T,this.refs=Q,this.updater=te||Z}ee.prototype.isReactComponent={},ee.prototype.setState=function(v,T){if(typeof v!="object"&&typeof v!="function"&&v!=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,v,T,"setState")},ee.prototype.forceUpdate=function(v){this.updater.enqueueForceUpdate(this,v,"forceUpdate")};function Qe(){}Qe.prototype=ee.prototype;function Ge(v,T,te){this.props=v,this.context=T,this.refs=Q,this.updater=te||Z}var Ye=Ge.prototype=new Qe;Ye.constructor=Ge,ce(Ye,ee.prototype),Ye.isPureReactComponent=!0;var ye=Array.isArray,Pe=Object.prototype.hasOwnProperty,oe={current:null},Ie={key:!0,ref:!0,__self:!0,__source:!0};function b(v,T,te){var V,ie={},q=null,de=null;if(T!=null)for(V in T.ref!==void 0&&(de=T.ref),T.key!==void 0&&(q=""+T.key),T)Pe.call(T,V)&&!Ie.hasOwnProperty(V)&&(ie[V]=T[V]);var K=arguments.length-2;if(K===1)ie.children=te;else if(1>>1,T=D[v];if(0>>1;vd(ie,F))qd(de,ie)?(D[v]=de,D[q]=F,v=q):(D[v]=ie,D[V]=F,v=V);else if(qd(de,F))D[v]=de,D[q]=F,v=q;else break e}}return X}function d(D,X){var F=D.sortIndex-X.sortIndex;return F!==0?F:D.id-X.id}if(typeof performance=="object"&&typeof performance.now=="function"){var h=performance;p.unstable_now=function(){return h.now()}}else{var m=Date,S=m.now();p.unstable_now=function(){return m.now()-S}}var E=[],z=[],P=1,M=null,I=3,Z=!1,ce=!1,Q=!1,ee=typeof setTimeout=="function"?setTimeout:null,Qe=typeof clearTimeout=="function"?clearTimeout:null,Ge=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function Ye(D){for(var X=o(z);X!==null;){if(X.callback===null)u(z);else if(X.startTime<=D)u(z),X.sortIndex=X.expirationTime,s(E,X);else break;X=o(z)}}function ye(D){if(Q=!1,Ye(D),!ce)if(o(E)!==null)ce=!0,Oe(Pe);else{var X=o(z);X!==null&&ge(ye,X.startTime-D)}}function Pe(D,X){ce=!1,Q&&(Q=!1,Qe(b),b=-1),Z=!0;var F=I;try{for(Ye(X),M=o(E);M!==null&&(!(M.expirationTime>X)||D&&!je());){var v=M.callback;if(typeof v=="function"){M.callback=null,I=M.priorityLevel;var T=v(M.expirationTime<=X);X=p.unstable_now(),typeof T=="function"?M.callback=T:M===o(E)&&u(E),Ye(X)}else u(E);M=o(E)}if(M!==null)var te=!0;else{var V=o(z);V!==null&&ge(ye,V.startTime-X),te=!1}return te}finally{M=null,I=F,Z=!1}}var oe=!1,Ie=null,b=-1,Ne=5,we=-1;function je(){return!(p.unstable_now()-weD||125v?(D.sortIndex=F,s(z,D),o(E)===null&&D===o(z)&&(Q?(Qe(b),b=-1):Q=!0,ge(ye,F-v))):(D.sortIndex=T,s(E,D),ce||Z||(ce=!0,Oe(Pe))),D},p.unstable_shouldYield=je,p.unstable_wrapCallback=function(D){var X=I;return function(){var F=I;I=X;try{return D.apply(this,arguments)}finally{I=F}}}})(bs)),bs}var Yc;function xp(){return Yc||(Yc=1,Js.exports=wp()),Js.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 Xc;function Sp(){if(Xc)return xt;Xc=1;var p=au(),s=xp();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,z=/^[: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]*$/,P={},M={};function I(e){return E.call(M,e)?!0:E.call(P,e)?!1:z.test(e)?M[e]=!0:(P[e]=!0,!1)}function Z(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"||Z(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 Q(e,t,n,r,l,i,a){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=a}var ee={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ee[e]=new Q(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ee[t]=new Q(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){ee[e]=new Q(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ee[e]=new Q(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){ee[e]=new Q(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){ee[e]=new Q(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){ee[e]=new Q(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){ee[e]=new Q(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){ee[e]=new Q(e,5,!1,e.toLowerCase(),null,!1,!1)});var Qe=/[\-:]([a-z])/g;function Ge(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(Qe,Ge);ee[t]=new Q(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(Qe,Ge);ee[t]=new Q(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(Qe,Ge);ee[t]=new Q(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){ee[e]=new Q(e,1,!1,e.toLowerCase(),null,!1,!1)}),ee.xlinkHref=new Q("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){ee[e]=new Q(e,1,!1,e.toLowerCase(),null,!0,!0)});function Ye(e,t,n,r){var l=ee.hasOwnProperty(t)?ee[t]:null;(l!==null?l.type!==0:r||!(2c||l[a]!==i[c]){var g=` `+l[a].replace(" at new "," at ");return e.displayName&&g.includes("")&&(g=g.replace("",e.displayName)),g}while(1<=a&&0<=c);break}}}finally{te=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?T(e):""}function ie(e){switch(e.tag){case 5:return T(e.type);case 16:return T("Lazy");case 13:return T("Suspense");case 19:return T("SuspenseList");case 0:case 2:case 15:return e=V(e.type,!1),e;case 11:return e=V(e.type.render,!1),e;case 1:return e=V(e.type,!0),e;default:return""}}function q(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 Ie:return"Fragment";case oe:return"Portal";case Ne:return"Profiler";case b:return"StrictMode";case tt:return"Suspense";case fe:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case je:return(e.displayName||"Context")+".Consumer";case we:return(e._context.displayName||"Context")+".Provider";case $e:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Be:return t=e.displayName||null,t!==null?t:q(e.type)||"Memo";case Oe:t=e._payload,e=e._init;try{return q(e(t))}catch{}}return null}function de(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 q(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 K(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function ae(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Ze(e){var t=ae(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(a){r=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Et(e){e._valueTracker||(e._valueTracker=Ze(e))}function Yr(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ae(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function vn(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 hr(e,t){var n=t.checked;return F({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Xr(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=K(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 Ft(e,t){t=t.checked,t!=null&&Ye(e,"checked",t,!1)}function ln(e,t){Ft(e,t);var n=K(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")?Qn(e,t.type,n):t.hasOwnProperty("defaultValue")&&Qn(e,t.type,K(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Gt(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 Qn(e,t,n){(t!=="number"||vn(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var on=Array.isArray;function _t(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l"+t.valueOf().toString()+"",t=Yt.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function it(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var un={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},Xl=["Webkit","ms","Moz","O"];Object.keys(un).forEach(function(e){Xl.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),un[t]=un[e]})});function Jr(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||un.hasOwnProperty(e)&&un[e]?(""+t).trim():t+"px"}function mr(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=Jr(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var Kl=F({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 wn(e,t){if(t){if(Kl[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 xn(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 mt=null;function Xt(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Xn=null,Kt=null,Sn=null;function gr(e){if(e=Tl(e)){if(typeof Xn!="function")throw Error(o(280));var t=e.stateNode;t&&(t=wi(t),Xn(e.stateNode,e.type,t))}}function yr(e){Kt?Sn?Sn.push(e):Sn=[e]:Kt=e}function Zl(){if(Kt){var e=Kt,t=Sn;if(Sn=Kt=null,gr(e),t)for(e=0;e>>=0,e===0?32:31-(ol(e)/He|0)|0}var qn=64,ri=4194304;function sl(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 li(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,l=e.suspendedLanes,i=e.pingedLanes,a=n&268435455;if(a!==0){var c=a&~l;c!==0?r=sl(c):(i&=a,i!==0&&(r=sl(i)))}else a=n&~l,a!==0?r=sl(a):i!==0&&(r=sl(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 ul(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Fe(t),e[t]=n}function zf(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=gl),Ou=" ",zu=!1;function Du(e,t){switch(e){case"keyup":return ud.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Mu(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Sr=!1;function cd(e,t){switch(e){case"compositionend":return Mu(t);case"keypress":return t.which!==32?null:(zu=!0,Ou);case"textInput":return e=t.data,e===Ou&&zu?null:e;default:return null}}function fd(e,t){if(Sr)return e==="compositionend"||!Ao&&Du(e,t)?(e=Nu(),ai=Eo=Ln=null,Sr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)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=Wu(n)}}function Qu(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Qu(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Gu(){for(var e=window,t=vn();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=vn(e.document)}return t}function Io(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 wd(e){var t=Gu(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Qu(n.ownerDocument.documentElement,n)){if(r!==null&&Io(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=Vu(n,i);var a=Vu(n,r);l&&a&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.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,Er=null,Oo=null,wl=null,zo=!1;function Yu(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;zo||Er==null||Er!==vn(r)||(r=Er,"selectionStart"in r&&Io(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}),wl&&kl(wl,r)||(wl=r,r=yi(Oo,"onSelect"),0Rr||(e.current=Go[Rr],Go[Rr]=null,Rr--)}function ke(e,t){Rr++,Go[Rr]=e.current,e.current=t}var zn={},ot=On(zn),gt=On(!1),bn=zn;function Ar(e,t){var n=e.type.contextTypes;if(!n)return zn;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 yt(e){return e=e.childContextTypes,e!=null}function xi(){_e(gt),_e(ot)}function ua(e,t,n){if(ot.current!==zn)throw Error(o(168));ke(ot,t),ke(gt,n)}function aa(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,de(e)||"Unknown",l));return F({},n,r)}function Si(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||zn,bn=ot.current,ke(ot,e),ke(gt,gt.current),!0}function ca(e,t,n){var r=e.stateNode;if(!r)throw Error(o(169));n?(e=aa(e,t,bn),r.__reactInternalMemoizedMergedChildContext=e,_e(gt),_e(ot),ke(ot,e)):_e(gt),ke(gt,n)}var fn=null,Ei=!1,Yo=!1;function fa(e){fn===null?fn=[e]:fn.push(e)}function Id(e){Ei=!0,fa(e)}function Dn(){if(!Yo&&fn!==null){Yo=!0;var e=0,t=pe;try{var n=fn;for(pe=1;e>=a,l-=a,dn=1<<32-Fe(t)+l|n<J?(be=Y,Y=null):be=Y.sibling;var ue=C(k,Y,w[J],A);if(ue===null){Y===null&&(Y=be);break}e&&Y&&ue.alternate===null&&t(k,Y),y=i(ue,y,J),G===null?H=ue:G.sibling=ue,G=ue,Y=be}if(J===w.length)return n(k,Y),Ce&&tr(k,J),H;if(Y===null){for(;JJ?(be=Y,Y=null):be=Y.sibling;var Vn=C(k,Y,ue.value,A);if(Vn===null){Y===null&&(Y=be);break}e&&Y&&Vn.alternate===null&&t(k,Y),y=i(Vn,y,J),G===null?H=Vn:G.sibling=Vn,G=Vn,Y=be}if(ue.done)return n(k,Y),Ce&&tr(k,J),H;if(Y===null){for(;!ue.done;J++,ue=w.next())ue=R(k,ue.value,A),ue!==null&&(y=i(ue,y,J),G===null?H=ue:G.sibling=ue,G=ue);return Ce&&tr(k,J),H}for(Y=r(k,Y);!ue.done;J++,ue=w.next())ue=j(Y,k,J,ue.value,A),ue!==null&&(e&&ue.alternate!==null&&Y.delete(ue.key===null?J:ue.key),y=i(ue,y,J),G===null?H=ue:G.sibling=ue,G=ue);return e&&Y.forEach(function(dp){return t(k,dp)}),Ce&&tr(k,J),H}function Ue(k,y,w,A){if(typeof w=="object"&&w!==null&&w.type===Ie&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case Pe:e:{for(var H=w.key,G=y;G!==null;){if(G.key===H){if(H=w.type,H===Ie){if(G.tag===7){n(k,G.sibling),y=l(G,w.props.children),y.return=k,k=y;break e}}else if(G.elementType===H||typeof H=="object"&&H!==null&&H.$$typeof===Oe&&ya(H)===G.type){n(k,G.sibling),y=l(G,w.props),y.ref=Cl(k,G,w),y.return=k,k=y;break e}n(k,G);break}else t(k,G);G=G.sibling}w.type===Ie?(y=ar(w.props.children,k.mode,A,w.key),y.return=k,k=y):(A=qi(w.type,w.key,w.props,null,k.mode,A),A.ref=Cl(k,y,w),A.return=k,k=A)}return a(k);case oe:e:{for(G=w.key;y!==null;){if(y.key===G)if(y.tag===4&&y.stateNode.containerInfo===w.containerInfo&&y.stateNode.implementation===w.implementation){n(k,y.sibling),y=l(y,w.children||[]),y.return=k,k=y;break e}else{n(k,y);break}else t(k,y);y=y.sibling}y=Vs(w,k.mode,A),y.return=k,k=y}return a(k);case Oe:return G=w._init,Ue(k,y,G(w._payload),A)}if(on(w))return $(k,y,w,A);if(X(w))return B(k,y,w,A);Ni(k,w)}return typeof w=="string"&&w!==""||typeof w=="number"?(w=""+w,y!==null&&y.tag===6?(n(k,y.sibling),y=l(y,w),y.return=k,k=y):(n(k,y),y=Ws(w,k.mode,A),y.return=k,k=y),a(k)):n(k,y)}return Ue}var Or=va(!0),ka=va(!1),Ri=On(null),Ai=null,zr=null,bo=null;function es(){bo=zr=Ai=null}function ts(e){var t=Ri.current;_e(Ri),e._currentValue=t}function ns(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 Dr(e,t){Ai=e,bo=zr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(vt=!0),e.firstContext=null)}function Ot(e){var t=e._currentValue;if(bo!==e)if(e={context:e,memoizedValue:t,next:null},zr===null){if(Ai===null)throw Error(o(308));zr=e,Ai.dependencies={lanes:0,firstContext:e}}else zr=zr.next=e;return t}var nr=null;function rs(e){nr===null?nr=[e]:nr.push(e)}function wa(e,t,n,r){var l=t.interleaved;return l===null?(n.next=n,rs(t)):(n.next=l.next,l.next=n),t.interleaved=n,hn(e,r)}function hn(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 Mn=!1;function ls(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function xa(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 mn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function jn(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,hn(e,n)}return l=r.interleaved,l===null?(t.next=t,rs(r)):(t.next=l.next,l.next=t),r.interleaved=t,hn(e,n)}function Li(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,vo(e,n)}}function Sa(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 a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?l=i=a:i=i.next=a,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 Pi(e,t,n,r){var l=e.updateQueue;Mn=!1;var i=l.firstBaseUpdate,a=l.lastBaseUpdate,c=l.shared.pending;if(c!==null){l.shared.pending=null;var g=c,x=g.next;g.next=null,a===null?i=x:a.next=x,a=g;var N=e.alternate;N!==null&&(N=N.updateQueue,c=N.lastBaseUpdate,c!==a&&(c===null?N.firstBaseUpdate=x:c.next=x,N.lastBaseUpdate=g))}if(i!==null){var R=l.baseState;a=0,N=x=g=null,c=i;do{var C=c.lane,j=c.eventTime;if((r&C)===C){N!==null&&(N=N.next={eventTime:j,lane:0,tag:c.tag,payload:c.payload,callback:c.callback,next:null});e:{var $=e,B=c;switch(C=t,j=n,B.tag){case 1:if($=B.payload,typeof $=="function"){R=$.call(j,R,C);break e}R=$;break e;case 3:$.flags=$.flags&-65537|128;case 0:if($=B.payload,C=typeof $=="function"?$.call(j,R,C):$,C==null)break e;R=F({},R,C);break e;case 2:Mn=!0}}c.callback!==null&&c.lane!==0&&(e.flags|=64,C=l.effects,C===null?l.effects=[c]:C.push(c))}else j={eventTime:j,lane:C,tag:c.tag,payload:c.payload,callback:c.callback,next:null},N===null?(x=N=j,g=R):N=N.next=j,a|=C;if(c=c.next,c===null){if(c=l.shared.pending,c===null)break;C=c,c=C.next,C.next=null,l.lastBaseUpdate=C,l.shared.pending=null}}while(!0);if(N===null&&(g=R),l.baseState=g,l.firstBaseUpdate=x,l.lastBaseUpdate=N,t=l.shared.interleaved,t!==null){l=t;do a|=l.lane,l=l.next;while(l!==t)}else i===null&&(l.shared.lanes=0);ir|=a,e.lanes=a,e.memoizedState=R}}function Ea(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=as.transition;as.transition={};try{e(!1),t()}finally{pe=n,as.transition=r}}function Ha(){return zt().memoizedState}function Md(e,t,n){var r=Bn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Wa(e))Va(t,n);else if(n=wa(e,t,n,r),n!==null){var l=dt();Qt(n,e,r,l),Qa(n,t,r)}}function jd(e,t,n){var r=Bn(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Wa(e))Va(t,l);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var a=t.lastRenderedState,c=i(a,n);if(l.hasEagerState=!0,l.eagerState=c,$t(c,a)){var g=t.interleaved;g===null?(l.next=l,rs(t)):(l.next=g.next,g.next=l),t.interleaved=l;return}}catch{}finally{}n=wa(e,t,l,r),n!==null&&(l=dt(),Qt(n,e,r,l),Qa(n,t,r))}}function Wa(e){var t=e.alternate;return e===Le||t!==null&&t===Le}function Va(e,t){Ll=zi=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Qa(e,t,n){if((n&4194240)!==0){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,vo(e,n)}}var ji={readContext:Ot,useCallback:st,useContext:st,useEffect:st,useImperativeHandle:st,useInsertionEffect:st,useLayoutEffect:st,useMemo:st,useReducer:st,useRef:st,useState:st,useDebugValue:st,useDeferredValue:st,useTransition:st,useMutableSource:st,useSyncExternalStore:st,useId:st,unstable_isNewReconciler:!1},Fd={readContext:Ot,useCallback:function(e,t){return en().memoizedState=[e,t===void 0?null:t],e},useContext:Ot,useEffect:za,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Di(4194308,4,ja.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Di(4194308,4,e,t)},useInsertionEffect:function(e,t){return Di(4,2,e,t)},useMemo:function(e,t){var n=en();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=en();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=Md.bind(null,Le,e),[r.memoizedState,e]},useRef:function(e){var t=en();return e={current:e},t.memoizedState=e},useState:Ia,useDebugValue:gs,useDeferredValue:function(e){return en().memoizedState=e},useTransition:function(){var e=Ia(!1),t=e[0];return e=Dd.bind(null,e[1]),en().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Le,l=en();if(Ce){if(n===void 0)throw Error(o(407));n=n()}else{if(n=t(),Je===null)throw Error(o(349));(lr&30)!==0||Na(r,t,n)}l.memoizedState=n;var i={value:n,getSnapshot:t};return l.queue=i,za(Aa.bind(null,r,i,e),[e]),r.flags|=2048,Ol(9,Ra.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=en(),t=Je.identifierPrefix;if(Ce){var n=pn,r=dn;n=(r&~(1<<32-Fe(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Pl++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[Jt]=t,e[_l]=r,fc(e,t,!1,!1),t.stateNode=e;e:{switch(a=xn(n,r),n){case"dialog":Ee("cancel",e),Ee("close",e),l=r;break;case"iframe":case"object":case"embed":Ee("load",e),l=r;break;case"video":case"audio":for(l=0;l$r&&(t.flags|=128,r=!0,zl(i,!1),t.lanes=4194304)}else{if(!r)if(e=Ii(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),zl(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!Ce)return ut(t),null}else 2*ve()-i.renderingStartTime>$r&&n!==1073741824&&(t.flags|=128,r=!0,zl(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(n=i.last,n!==null?n.sibling=a:t.child=a,i.last=a)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=ve(),t.sibling=null,n=Ae.current,ke(Ae,r?n&1|2:n&1),t):(ut(t),null);case 22:case 23:return $s(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&(t.mode&1)!==0?(Rt&1073741824)!==0&&(ut(t),t.subtreeFlags&6&&(t.flags|=8192)):ut(t),null;case 24:return null;case 25:return null}throw Error(o(156,t.tag))}function Gd(e,t){switch(Ko(t),t.tag){case 1:return yt(t.type)&&xi(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Mr(),_e(gt),_e(ot),us(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return os(t),null;case 13:if(_e(Ae),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(o(340));Ir()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return _e(Ae),null;case 4:return Mr(),null;case 10:return ts(t.type._context),null;case 22:case 23:return $s(),null;case 24:return null;default:return null}}var Bi=!1,at=!1,Yd=typeof WeakSet=="function"?WeakSet:Set,U=null;function Fr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){De(e,t,r)}else n.current=null}function Rs(e,t,n){try{n()}catch(r){De(e,t,r)}}var hc=!1;function Xd(e,t){if($o=si,e=Gu(),Io(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 a=0,c=-1,g=-1,x=0,N=0,R=e,C=null;t:for(;;){for(var j;R!==n||l!==0&&R.nodeType!==3||(c=a+l),R!==i||r!==0&&R.nodeType!==3||(g=a+r),R.nodeType===3&&(a+=R.nodeValue.length),(j=R.firstChild)!==null;)C=R,R=j;for(;;){if(R===e)break t;if(C===n&&++x===l&&(c=a),C===i&&++N===r&&(g=a),(j=R.nextSibling)!==null)break;R=C,C=R.parentNode}R=j}n=c===-1||g===-1?null:{start:c,end:g}}else n=null}n=n||{start:0,end:0}}else n=null;for(Bo={focusedElem:e,selectionRange:n},si=!1,U=t;U!==null;)if(t=U,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,U=e;else for(;U!==null;){t=U;try{var $=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if($!==null){var B=$.memoizedProps,Ue=$.memoizedState,k=t.stateNode,y=k.getSnapshotBeforeUpdate(t.elementType===t.type?B:Ht(t.type,B),Ue);k.__reactInternalSnapshotBeforeUpdate=y}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(A){De(t,t.return,A)}if(e=t.sibling,e!==null){e.return=t.return,U=e;break}U=t.return}return $=hc,hc=!1,$}function Dl(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&&Rs(t,n,i)}l=l.next}while(l!==r)}}function Hi(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 As(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 mc(e){var t=e.alternate;t!==null&&(e.alternate=null,mc(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Jt],delete t[_l],delete t[Qo],delete t[Ld],delete t[Pd])),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 gc(e){return e.tag===5||e.tag===3||e.tag===4}function yc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||gc(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 Ls(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=ki));else if(r!==4&&(e=e.child,e!==null))for(Ls(e,t,n),e=e.sibling;e!==null;)Ls(e,t,n),e=e.sibling}function Ps(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(Ps(e,t,n),e=e.sibling;e!==null;)Ps(e,t,n),e=e.sibling}var nt=null,Wt=!1;function Fn(e,t,n){for(n=n.child;n!==null;)vc(e,t,n),n=n.sibling}function vc(e,t,n){if(Se&&typeof Se.onCommitFiberUnmount=="function")try{Se.onCommitFiberUnmount(xe,n)}catch{}switch(n.tag){case 5:at||Fr(n,t);case 6:var r=nt,l=Wt;nt=null,Fn(e,t,n),nt=r,Wt=l,nt!==null&&(Wt?(e=nt,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):nt.removeChild(n.stateNode));break;case 18:nt!==null&&(Wt?(e=nt,n=n.stateNode,e.nodeType===8?Vo(e.parentNode,n):e.nodeType===1&&Vo(e,n),pl(e)):Vo(nt,n.stateNode));break;case 4:r=nt,l=Wt,nt=n.stateNode.containerInfo,Wt=!0,Fn(e,t,n),nt=r,Wt=l;break;case 0:case 11:case 14:case 15:if(!at&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var i=l,a=i.destroy;i=i.tag,a!==void 0&&((i&2)!==0||(i&4)!==0)&&Rs(n,t,a),l=l.next}while(l!==r)}Fn(e,t,n);break;case 1:if(!at&&(Fr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(c){De(n,t,c)}Fn(e,t,n);break;case 21:Fn(e,t,n);break;case 22:n.mode&1?(at=(r=at)||n.memoizedState!==null,Fn(e,t,n),at=r):Fn(e,t,n);break;default:Fn(e,t,n)}}function kc(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Yd),t.forEach(function(r){var l=rp.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function Vt(e,t){var n=t.deletions;if(n!==null)for(var r=0;rl&&(l=a),r&=~i}if(r=l,r=ve()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Zd(r/1960))-r,10e?16:e,$n===null)var r=!1;else{if(e=$n,$n=null,Yi=0,(se&6)!==0)throw Error(o(331));var l=se;for(se|=4,U=e.current;U!==null;){var i=U,a=i.child;if((U.flags&16)!==0){var c=i.deletions;if(c!==null){for(var g=0;gve()-zs?sr(e,0):Os|=n),wt(e,t)}function Ic(e,t){t===0&&((e.mode&1)===0?t=1:(t=ri,ri<<=1,(ri&130023424)===0&&(ri=4194304)));var n=dt();e=hn(e,t),e!==null&&(ul(e,t,n),wt(e,n))}function np(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Ic(e,n)}function rp(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),Ic(e,n)}var Oc;Oc=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||gt.current)vt=!0;else{if((e.lanes&n)===0&&(t.flags&128)===0)return vt=!1,Vd(e,t,n);vt=(e.flags&131072)!==0}else vt=!1,Ce&&(t.flags&1048576)!==0&&da(t,Ti,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;$i(e,t),e=t.pendingProps;var l=Ar(t,ot.current);Dr(t,n),l=fs(null,t,r,e,l,n);var i=ds();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,yt(r)?(i=!0,Si(t)):i=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,ls(t),l.updater=Fi,t.stateNode=l,l._reactInternals=t,vs(t,r,e,n),t=Ss(null,t,r,!0,i,n)):(t.tag=0,Ce&&i&&Xo(t),ft(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch($i(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=ip(r),e=Ht(r,e),l){case 0:t=xs(null,t,r,e,n);break e;case 1:t=ic(null,t,r,e,n);break e;case 11:t=ec(null,t,r,e,n);break e;case 14:t=tc(null,t,r,Ht(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:Ht(r,l),xs(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ht(r,l),ic(e,t,r,l,n);case 3:e:{if(oc(t),e===null)throw Error(o(387));r=t.pendingProps,i=t.memoizedState,l=i.element,xa(e,t),Pi(t,r,null,n);var a=t.memoizedState;if(r=a.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){l=jr(Error(o(423)),t),t=sc(e,t,r,n,l);break e}else if(r!==l){l=jr(Error(o(424)),t),t=sc(e,t,r,n,l);break e}else for(Nt=In(t.stateNode.containerInfo.firstChild),Ct=t,Ce=!0,Bt=null,n=ka(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Ir(),r===l){t=gn(e,t,n);break e}ft(e,t,r,n)}t=t.child}return t;case 5:return _a(t),e===null&&qo(t),r=t.type,l=t.pendingProps,i=e!==null?e.memoizedProps:null,a=l.children,Ho(r,l)?a=null:i!==null&&Ho(r,i)&&(t.flags|=32),lc(e,t),ft(e,t,a,n),t.child;case 6:return e===null&&qo(t),null;case 13:return uc(e,t,n);case 4:return is(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Or(t,null,r,n):ft(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ht(r,l),ec(e,t,r,l,n);case 7:return ft(e,t,t.pendingProps,n),t.child;case 8:return ft(e,t,t.pendingProps.children,n),t.child;case 12:return ft(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,l=t.pendingProps,i=t.memoizedProps,a=l.value,ke(Ri,r._currentValue),r._currentValue=a,i!==null)if($t(i.value,a)){if(i.children===l.children&&!gt.current){t=gn(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var c=i.dependencies;if(c!==null){a=i.child;for(var g=c.firstContext;g!==null;){if(g.context===r){if(i.tag===1){g=mn(-1,n&-n),g.tag=2;var x=i.updateQueue;if(x!==null){x=x.shared;var N=x.pending;N===null?g.next=g:(g.next=N.next,N.next=g),x.pending=g}}i.lanes|=n,g=i.alternate,g!==null&&(g.lanes|=n),ns(i.return,n,t),c.lanes|=n;break}g=g.next}}else if(i.tag===10)a=i.type===t.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(o(341));a.lanes|=n,c=a.alternate,c!==null&&(c.lanes|=n),ns(a,n,t),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===t){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}ft(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,Dr(t,n),l=Ot(l),r=r(l),t.flags|=1,ft(e,t,r,n),t.child;case 14:return r=t.type,l=Ht(r,t.pendingProps),l=Ht(r.type,l),tc(e,t,r,l,n);case 15:return nc(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ht(r,l),$i(e,t),t.tag=1,yt(r)?(e=!0,Si(t)):e=!1,Dr(t,n),Ya(t,r,l),vs(t,r,l,n),Ss(null,t,r,!0,e,n);case 19:return cc(e,t,n);case 22:return rc(e,t,n)}throw Error(o(156,t.tag))};function zc(e,t){return ei(e,t)}function lp(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 Mt(e,t,n,r){return new lp(e,t,n,r)}function Hs(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ip(e){if(typeof e=="function")return Hs(e)?1:0;if(e!=null){if(e=e.$$typeof,e===$e)return 11;if(e===Be)return 14}return 2}function Wn(e,t){var n=e.alternate;return n===null?(n=Mt(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 qi(e,t,n,r,l,i){var a=2;if(r=e,typeof e=="function")Hs(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Ie:return ar(n.children,l,i,t);case b:a=8,l|=8;break;case Ne:return e=Mt(12,n,t,l|2),e.elementType=Ne,e.lanes=i,e;case tt:return e=Mt(13,n,t,l),e.elementType=tt,e.lanes=i,e;case fe:return e=Mt(19,n,t,l),e.elementType=fe,e.lanes=i,e;case ge:return Ji(n,l,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case we:a=10;break e;case je:a=9;break e;case $e:a=11;break e;case Be:a=14;break e;case Oe:a=16,r=null;break e}throw Error(o(130,e==null?e:typeof e,""))}return t=Mt(a,n,t,l),t.elementType=e,t.type=r,t.lanes=i,t}function ar(e,t,n,r){return e=Mt(7,e,r,t),e.lanes=n,e}function Ji(e,t,n,r){return e=Mt(22,e,r,t),e.elementType=ge,e.lanes=n,e.stateNode={isHidden:!1},e}function Ws(e,t,n){return e=Mt(6,e,null,t),e.lanes=n,e}function Vs(e,t,n){return t=Mt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function op(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=yo(0),this.expirationTimes=yo(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=yo(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function Qs(e,t,n,r,l,i,a,c,g){return e=new op(e,t,n,c,g),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Mt(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},ls(i),e}function sp(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(p)}catch(s){console.error(s)}}return p(),qs.exports=Sp(),qs.exports}var Zc;function _p(){if(Zc)return oo;Zc=1;var p=Ep();return oo.createRoot=p.createRoot,oo.hydrateRoot=p.hydrateRoot,oo}var Tp=_p();const Cp=yf(Tp);function cu(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}let pr=cu();function vf(p){pr=p}const kf=/[&<>"']/,Np=new RegExp(kf.source,"g"),wf=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,Rp=new RegExp(wf.source,"g"),Ap={"&":"&","<":"<",">":">",'"':""","'":"'"},qc=p=>Ap[p];function At(p,s){if(s){if(kf.test(p))return p.replace(Np,qc)}else if(wf.test(p))return p.replace(Rp,qc);return p}const Lp=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function Pp(p){return p.replace(Lp,(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 Ip=/(^|[^\[])\^/g;function me(p,s){let o=typeof p=="string"?p:p.source;s=s||"";const u={replace:(d,h)=>{let m=typeof h=="string"?h:h.source;return m=m.replace(Ip,"$1"),o=o.replace(d,m),u},getRegex:()=>new RegExp(o,s)};return u}function Jc(p){try{p=encodeURI(p).replace(/%25/g,"%")}catch{return null}return p}const Vl={exec:()=>null};function bc(p,s){const o=p.replace(/\|/g,(h,m,S)=>{let E=!1,z=m;for(;--z>=0&&S[z]==="\\";)E=!E;return E?"|":" |"}),u=o.split(/ \|/);let d=0;if(u[0].trim()||u.shift(),u.length>0&&!u[u.length-1].trim()&&u.pop(),s)if(u.length>s)u.splice(s);else for(;u.length{const h=d.match(/^\s+/);if(h===null)return d;const[m]=h;return m.length>=u.length?d.slice(u.length):d}).join(` `)}class fo{constructor(s){Te(this,"options");Te(this,"rules");Te(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 u=o[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:o[0],codeBlockStyle:"indented",text:this.options.pedantic?u:so(u,` `)}}}fences(s){const o=this.rules.block.fences.exec(s);if(o){const u=o[0],d=zp(u,o[3]||"");return{type:"code",raw:u,lang:o[2]?o[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):o[2],text:d}}}heading(s){const o=this.rules.block.heading.exec(s);if(o){let u=o[2].trim();if(/#$/.test(u)){const d=so(u,"#");(this.options.pedantic||!d||/ $/.test(d))&&(u=d.trim())}return{type:"heading",raw:o[0],depth:o[1].length,text:u,tokens:this.lexer.inline(u)}}}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 u=o[0].replace(/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,` $1`);u=so(u.replace(/^ *>[ \t]?/gm,""),` `);const d=this.lexer.state.top;this.lexer.state.top=!0;const h=this.lexer.blockTokens(u);return this.lexer.state.top=d,{type:"blockquote",raw:o[0],tokens:h,text:u}}}list(s){let o=this.rules.block.list.exec(s);if(o){let u=o[1].trim();const d=u.length>1,h={type:"list",raw:"",ordered:d,start:d?+u.slice(0,-1):"",loose:!1,items:[]};u=d?`\\d{1,9}\\${u.slice(-1)}`:`\\${u}`,this.options.pedantic&&(u=d?u:"[*+-]");const m=new RegExp(`^( {0,3}${u})((?:[ ][^\\n]*)?(?:\\n|$))`);let S="",E="",z=!1;for(;s;){let P=!1;if(!(o=m.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+/,Qe=>" ".repeat(3*Qe.length)),I=s.split(` `,1)[0],Z=0;this.options.pedantic?(Z=2,E=M.trimStart()):(Z=o[2].search(/[^ ]/),Z=Z>4?1:Z,E=M.slice(Z),Z+=o[1].length);let ce=!1;if(!M&&/^ *$/.test(I)&&(S+=I+` `,s=s.substring(I.length+1),P=!0),!P){const Qe=new RegExp(`^ {0,${Math.min(3,Z-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),Ge=new RegExp(`^ {0,${Math.min(3,Z-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),Ye=new RegExp(`^ {0,${Math.min(3,Z-1)}}(?:\`\`\`|~~~)`),ye=new RegExp(`^ {0,${Math.min(3,Z-1)}}#`);for(;s;){const Pe=s.split(` `,1)[0];if(I=Pe,this.options.pedantic&&(I=I.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),Ye.test(I)||ye.test(I)||Qe.test(I)||Ge.test(s))break;if(I.search(/[^ ]/)>=Z||!I.trim())E+=` `+I.slice(Z);else{if(ce||M.search(/[^ ]/)>=4||Ye.test(M)||ye.test(M)||Ge.test(M))break;E+=` `+I}!ce&&!I.trim()&&(ce=!0),S+=Pe+` `,s=s.substring(Pe.length+1),M=I.slice(Z)}}h.loose||(z?h.loose=!0:/\n *\n *$/.test(S)&&(z=!0));let Q=null,ee;this.options.gfm&&(Q=/^\[[ xX]\] /.exec(E),Q&&(ee=Q[0]!=="[ ] ",E=E.replace(/^\[[ xX]\] +/,""))),h.items.push({type:"list_item",raw:S,task:!!Q,checked:ee,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 P=0;PZ.type==="space"),I=M.length>0&&M.some(Z=>/\n.*\n/.test(Z.raw));h.loose=I}if(h.loose)for(let P=0;P$/,"$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:u,raw:o[0],href:d,title:h}}}table(s){const o=this.rules.block.table.exec(s);if(!o||!/[:|]/.test(o[2]))return;const u=bc(o[1]),d=o[2].replace(/^\||\| *$/g,"").split("|"),h=o[3]&&o[3].trim()?o[3].replace(/\n[ \t]*$/,"").split(` `):[],m={type:"table",raw:o[0],header:[],align:[],rows:[]};if(u.length===d.length){for(const S of d)/^ *-+: *$/.test(S)?m.align.push("right"):/^ *:-+: *$/.test(S)?m.align.push("center"):/^ *:-+ *$/.test(S)?m.align.push("left"):m.align.push(null);for(const S of u)m.header.push({text:S,tokens:this.lexer.inline(S)});for(const S of h)m.rows.push(bc(S,m.header.length).map(E=>({text:E,tokens:this.lexer.inline(E)})));return m}}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 u=o[1].charAt(o[1].length-1)===` `?o[1].slice(0,-1):o[1];return{type:"paragraph",raw:o[0],text:u,tokens:this.lexer.inline(u)}}}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:At(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 u=o[2].trim();if(!this.options.pedantic&&/^$/.test(u))return;const m=so(u.slice(0,-1),"\\");if((u.length-m.length)%2===0)return}else{const m=Op(o[2],"()");if(m>-1){const E=(o[0].indexOf("!")===0?5:4)+o[1].length+m;o[2]=o[2].substring(0,m),o[0]=o[0].substring(0,E).trim(),o[3]=""}}let d=o[2],h="";if(this.options.pedantic){const m=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(d);m&&(d=m[1],h=m[3])}else h=o[3]?o[3].slice(1,-1):"";return d=d.trim(),/^$/.test(u)?d=d.slice(1):d=d.slice(1,-1)),ef(o,{href:d&&d.replace(this.rules.inline.anyPunctuation,"$1"),title:h&&h.replace(this.rules.inline.anyPunctuation,"$1")},o[0],this.lexer)}}reflink(s,o){let u;if((u=this.rules.inline.reflink.exec(s))||(u=this.rules.inline.nolink.exec(s))){const d=(u[2]||u[1]).replace(/\s+/g," "),h=o[d.toLowerCase()];if(!h){const m=u[0].charAt(0);return{type:"text",raw:m,text:m}}return ef(u,h,u[0],this.lexer)}}emStrong(s,o,u=""){let d=this.rules.inline.emStrongLDelim.exec(s);if(!d||d[3]&&u.match(/[\p{L}\p{N}]/u))return;if(!(d[1]||d[2]||"")||!u||this.rules.inline.punctuation.exec(u)){const m=[...d[0]].length-1;let S,E,z=m,P=0;const M=d[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(M.lastIndex=0,o=o.slice(-1*s.length+m);(d=M.exec(o))!=null;){if(S=d[1]||d[2]||d[3]||d[4]||d[5]||d[6],!S)continue;if(E=[...S].length,d[3]||d[4]){z+=E;continue}else if((d[5]||d[6])&&m%3&&!((m+E)%3)){P+=E;continue}if(z-=E,z>0)continue;E=Math.min(E,E+z+P);const I=[...d[0]][0].length,Z=s.slice(0,m+d.index+I+E);if(Math.min(m,E)%2){const Q=Z.slice(1,-1);return{type:"em",raw:Z,text:Q,tokens:this.lexer.inlineTokens(Q)}}const ce=Z.slice(2,-2);return{type:"strong",raw:Z,text:ce,tokens:this.lexer.inlineTokens(ce)}}}}codespan(s){const o=this.rules.inline.code.exec(s);if(o){let u=o[2].replace(/\n/g," ");const d=/[^ ]/.test(u),h=/^ /.test(u)&&/ $/.test(u);return d&&h&&(u=u.substring(1,u.length-1)),u=At(u,!0),{type:"codespan",raw:o[0],text:u}}}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 u,d;return o[2]==="@"?(u=At(o[1]),d="mailto:"+u):(u=At(o[1]),d=u),{type:"link",raw:o[0],text:u,href:d,tokens:[{type:"text",raw:u,text:u}]}}}url(s){var u;let o;if(o=this.rules.inline.url.exec(s)){let d,h;if(o[2]==="@")d=At(o[0]),h="mailto:"+d;else{let m;do m=o[0],o[0]=((u=this.rules.inline._backpedal.exec(o[0]))==null?void 0:u[0])??"";while(m!==o[0]);d=At(o[0]),o[1]==="www."?h="http://"+o[0]:h=o[0]}return{type:"link",raw:o[0],text:d,href:h,tokens:[{type:"text",raw:d,text:d}]}}}inlineText(s){const o=this.rules.inline.text.exec(s);if(o){let u;return this.lexer.state.inRawBlock?u=o[0]:u=At(o[0]),{type:"text",raw:o[0],text:u}}}}const Dp=/^(?: *(?:\n|$))+/,Mp=/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,jp=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Gl=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Fp=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,xf=/(?:[*+-]|\d{1,9}[.)])/,Sf=me(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,xf).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(),fu=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Up=/^[^\n]+/,du=/(?!\s*\])(?:\\.|[^\[\]\\])+/,$p=me(/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/).replace("label",du).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Bp=me(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,xf).getRegex(),mo="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",pu=/|$))/,Hp=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",pu).replace("tag",mo).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Ef=me(fu).replace("hr",Gl).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",mo).getRegex(),Wp=me(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Ef).getRegex(),hu={blockquote:Wp,code:Mp,def:$p,fences:jp,heading:Fp,hr:Gl,html:Hp,lheading:Sf,list:Bp,newline:Dp,paragraph:Ef,table:Vl,text:Up},tf=me("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Gl).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",mo).getRegex(),Vp={...hu,table:tf,paragraph:me(fu).replace("hr",Gl).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",tf).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",mo).getRegex()},Qp={...hu,html:me(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",pu).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:Vl,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:me(fu).replace("hr",Gl).replace("heading",` *#{1,6} *[^ ]`).replace("lheading",Sf).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},_f=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Gp=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Tf=/^( {2,}|\\)\n(?!\s*$)/,Yp=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\]*?>/g,Zp=me(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,"u").replace(/punct/g,Yl).getRegex(),qp=me("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])","gu").replace(/punct/g,Yl).getRegex(),Jp=me("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])","gu").replace(/punct/g,Yl).getRegex(),bp=me(/\\([punct])/,"gu").replace(/punct/g,Yl).getRegex(),eh=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(),th=me(pu).replace("(?:-->|$)","-->").getRegex(),nh=me("^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^").replace("comment",th).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),po=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,rh=me(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",po).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Cf=me(/^!?\[(label)\]\[(ref)\]/).replace("label",po).replace("ref",du).getRegex(),Nf=me(/^!?\[(ref)\](?:\[\])?/).replace("ref",du).getRegex(),lh=me("reflink|nolink(?!\\()","g").replace("reflink",Cf).replace("nolink",Nf).getRegex(),mu={_backpedal:Vl,anyPunctuation:bp,autolink:eh,blockSkip:Kp,br:Tf,code:Gp,del:Vl,emStrongLDelim:Zp,emStrongRDelimAst:qp,emStrongRDelimUnd:Jp,escape:_f,link:rh,nolink:Nf,punctuation:Xp,reflink:Cf,reflinkSearch:lh,tag:nh,text:Yp,url:Vl},ih={...mu,link:me(/^!?\[(label)\]\((.*?)\)/).replace("label",po).getRegex(),reflink:me(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",po).getRegex()},iu={...mu,escape:me(_f).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(z.length));let u,d,h,m;for(;s;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(S=>(u=S.call({lexer:this},s,o))?(s=s.substring(u.raw.length),o.push(u),!0):!1))){if(u=this.tokenizer.space(s)){s=s.substring(u.raw.length),u.raw.length===1&&o.length>0?o[o.length-1].raw+=` `:o.push(u);continue}if(u=this.tokenizer.code(s)){s=s.substring(u.raw.length),d=o[o.length-1],d&&(d.type==="paragraph"||d.type==="text")?(d.raw+=` `+u.raw,d.text+=` `+u.text,this.inlineQueue[this.inlineQueue.length-1].src=d.text):o.push(u);continue}if(u=this.tokenizer.fences(s)){s=s.substring(u.raw.length),o.push(u);continue}if(u=this.tokenizer.heading(s)){s=s.substring(u.raw.length),o.push(u);continue}if(u=this.tokenizer.hr(s)){s=s.substring(u.raw.length),o.push(u);continue}if(u=this.tokenizer.blockquote(s)){s=s.substring(u.raw.length),o.push(u);continue}if(u=this.tokenizer.list(s)){s=s.substring(u.raw.length),o.push(u);continue}if(u=this.tokenizer.html(s)){s=s.substring(u.raw.length),o.push(u);continue}if(u=this.tokenizer.def(s)){s=s.substring(u.raw.length),d=o[o.length-1],d&&(d.type==="paragraph"||d.type==="text")?(d.raw+=` `+u.raw,d.text+=` `+u.raw,this.inlineQueue[this.inlineQueue.length-1].src=d.text):this.tokens.links[u.tag]||(this.tokens.links[u.tag]={href:u.href,title:u.title});continue}if(u=this.tokenizer.table(s)){s=s.substring(u.raw.length),o.push(u);continue}if(u=this.tokenizer.lheading(s)){s=s.substring(u.raw.length),o.push(u);continue}if(h=s,this.options.extensions&&this.options.extensions.startBlock){let S=1/0;const E=s.slice(1);let z;this.options.extensions.startBlock.forEach(P=>{z=P.call({lexer:this},E),typeof z=="number"&&z>=0&&(S=Math.min(S,z))}),S<1/0&&S>=0&&(h=s.substring(0,S+1))}if(this.state.top&&(u=this.tokenizer.paragraph(h))){d=o[o.length-1],m&&d.type==="paragraph"?(d.raw+=` `+u.raw,d.text+=` `+u.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=d.text):o.push(u),m=h.length!==s.length,s=s.substring(u.raw.length);continue}if(u=this.tokenizer.text(s)){s=s.substring(u.raw.length),d=o[o.length-1],d&&d.type==="text"?(d.raw+=` `+u.raw,d.text+=` `+u.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=d.text):o.push(u);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 u,d,h,m=s,S,E,z;if(this.tokens.links){const P=Object.keys(this.tokens.links);if(P.length>0)for(;(S=this.tokenizer.rules.inline.reflinkSearch.exec(m))!=null;)P.includes(S[0].slice(S[0].lastIndexOf("[")+1,-1))&&(m=m.slice(0,S.index)+"["+"a".repeat(S[0].length-2)+"]"+m.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(S=this.tokenizer.rules.inline.blockSkip.exec(m))!=null;)m=m.slice(0,S.index)+"["+"a".repeat(S[0].length-2)+"]"+m.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(S=this.tokenizer.rules.inline.anyPunctuation.exec(m))!=null;)m=m.slice(0,S.index)+"++"+m.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;s;)if(E||(z=""),E=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(P=>(u=P.call({lexer:this},s,o))?(s=s.substring(u.raw.length),o.push(u),!0):!1))){if(u=this.tokenizer.escape(s)){s=s.substring(u.raw.length),o.push(u);continue}if(u=this.tokenizer.tag(s)){s=s.substring(u.raw.length),d=o[o.length-1],d&&u.type==="text"&&d.type==="text"?(d.raw+=u.raw,d.text+=u.text):o.push(u);continue}if(u=this.tokenizer.link(s)){s=s.substring(u.raw.length),o.push(u);continue}if(u=this.tokenizer.reflink(s,this.tokens.links)){s=s.substring(u.raw.length),d=o[o.length-1],d&&u.type==="text"&&d.type==="text"?(d.raw+=u.raw,d.text+=u.text):o.push(u);continue}if(u=this.tokenizer.emStrong(s,m,z)){s=s.substring(u.raw.length),o.push(u);continue}if(u=this.tokenizer.codespan(s)){s=s.substring(u.raw.length),o.push(u);continue}if(u=this.tokenizer.br(s)){s=s.substring(u.raw.length),o.push(u);continue}if(u=this.tokenizer.del(s)){s=s.substring(u.raw.length),o.push(u);continue}if(u=this.tokenizer.autolink(s)){s=s.substring(u.raw.length),o.push(u);continue}if(!this.state.inLink&&(u=this.tokenizer.url(s))){s=s.substring(u.raw.length),o.push(u);continue}if(h=s,this.options.extensions&&this.options.extensions.startInline){let P=1/0;const M=s.slice(1);let I;this.options.extensions.startInline.forEach(Z=>{I=Z.call({lexer:this},M),typeof I=="number"&&I>=0&&(P=Math.min(P,I))}),P<1/0&&P>=0&&(h=s.substring(0,P+1))}if(u=this.tokenizer.inlineText(h)){s=s.substring(u.raw.length),u.raw.slice(-1)!=="_"&&(z=u.raw.slice(-1)),E=!0,d=o[o.length-1],d&&d.type==="text"?(d.raw+=u.raw,d.text+=u.text):o.push(u);continue}if(s){const P="Infinite loop on byte: "+s.charCodeAt(0);if(this.options.silent){console.error(P);break}else throw new Error(P)}}return o}}class ho{constructor(s){Te(this,"options");this.options=s||pr}code(s,o,u){var h;const d=(h=(o||"").match(/^\S*/))==null?void 0:h[0];return s=s.replace(/\n$/,"")+` `,d?'
'+(u?s:At(s,!0))+`
`:"
"+(u?s:At(s,!0))+`
`}blockquote(s){return`
${s}
`}html(s,o){return s}heading(s,o,u){return`${s} `}hr(){return`
`}list(s,o,u){const d=o?"ol":"ul",h=o&&u!==1?' start="'+u+'"':"";return"<"+d+h+`> `+s+" `}listitem(s,o,u){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 u=o.header?"th":"td";return(o.align?`<${u} align="${o.align}">`:`<${u}>`)+s+` `}strong(s){return`${s}`}em(s){return`${s}`}codespan(s){return`${s}`}br(){return"
    "}del(s){return`${s}`}link(s,o,u){const d=Jc(s);if(d===null)return u;s=d;let h='
    ",h}image(s,o,u){const d=Jc(s);if(d===null)return u;s=d;let h=`${u}0&&I.tokens[0].type==="paragraph"?(I.tokens[0].text=ee+" "+I.tokens[0].text,I.tokens[0].tokens&&I.tokens[0].tokens.length>0&&I.tokens[0].tokens[0].type==="text"&&(I.tokens[0].tokens[0].text=ee+" "+I.tokens[0].tokens[0].text)):I.tokens.unshift({type:"text",text:ee+" "}):Q+=ee+" "}Q+=this.parse(I.tokens,z),P+=this.renderer.listitem(Q,ce,!!Z)}u+=this.renderer.list(P,S,E);continue}case"html":{const m=h;u+=this.renderer.html(m.text,m.block);continue}case"paragraph":{const m=h;u+=this.renderer.paragraph(this.parseInline(m.tokens));continue}case"text":{let m=h,S=m.tokens?this.parseInline(m.tokens):m.text;for(;d+1{const z=S[E].flat(1/0);u=u.concat(this.walkTokens(z,o))}):S.tokens&&(u=u.concat(this.walkTokens(S.tokens,o)))}}return u}use(...s){const o=this.defaults.extensions||{renderers:{},childTokens:{}};return s.forEach(u=>{const d={...u};if(d.async=this.defaults.async||d.async||!1,u.extensions&&(u.extensions.forEach(h=>{if(!h.name)throw new Error("extension name required");if("renderer"in h){const m=o.renderers[h.name];m?o.renderers[h.name]=function(...S){let E=h.renderer.apply(this,S);return E===!1&&(E=m.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 m=o[h.level];m?m.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)}),d.extensions=o),u.renderer){const h=this.defaults.renderer||new ho(this.defaults);for(const m in u.renderer){if(!(m in h))throw new Error(`renderer '${m}' does not exist`);if(m==="options")continue;const S=m,E=u.renderer[S],z=h[S];h[S]=(...P)=>{let M=E.apply(h,P);return M===!1&&(M=z.apply(h,P)),M||""}}d.renderer=h}if(u.tokenizer){const h=this.defaults.tokenizer||new fo(this.defaults);for(const m in u.tokenizer){if(!(m in h))throw new Error(`tokenizer '${m}' does not exist`);if(["options","rules","lexer"].includes(m))continue;const S=m,E=u.tokenizer[S],z=h[S];h[S]=(...P)=>{let M=E.apply(h,P);return M===!1&&(M=z.apply(h,P)),M}}d.tokenizer=h}if(u.hooks){const h=this.defaults.hooks||new Ql;for(const m in u.hooks){if(!(m in h))throw new Error(`hook '${m}' does not exist`);if(m==="options")continue;const S=m,E=u.hooks[S],z=h[S];Ql.passThroughHooks.has(m)?h[S]=P=>{if(this.defaults.async)return Promise.resolve(E.call(h,P)).then(I=>z.call(h,I));const M=E.call(h,P);return z.call(h,M)}:h[S]=(...P)=>{let M=E.apply(h,P);return M===!1&&(M=z.apply(h,P)),M}}d.hooks=h}if(u.walkTokens){const h=this.defaults.walkTokens,m=u.walkTokens;d.walkTokens=function(S){let E=[];return E.push(m.call(this,S)),h&&(E=E.concat(h.call(this,S))),E}}this.defaults={...this.defaults,...d}}),this}setOptions(s){return this.defaults={...this.defaults,...s},this}lexer(s,o){return nn.lex(s,o??this.defaults)}parser(s,o){return rn.parse(s,o??this.defaults)}}dr=new WeakSet,ou=function(s,o){return(u,d)=>{const h={...d},m={...this.defaults,...h};this.defaults.async===!0&&h.async===!1&&(m.silent||console.warn("marked(): The async option was set to true by an extension. The async: false option sent to parse will be ignored."),m.async=!0);const S=io(this,dr,Rf).call(this,!!m.silent,!!m.async);if(typeof u>"u"||u===null)return S(new Error("marked(): input parameter is undefined or null"));if(typeof u!="string")return S(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(u)+", string expected"));if(m.hooks&&(m.hooks.options=m),m.async)return Promise.resolve(m.hooks?m.hooks.preprocess(u):u).then(E=>s(E,m)).then(E=>m.hooks?m.hooks.processAllTokens(E):E).then(E=>m.walkTokens?Promise.all(this.walkTokens(E,m.walkTokens)).then(()=>E):E).then(E=>o(E,m)).then(E=>m.hooks?m.hooks.postprocess(E):E).catch(S);try{m.hooks&&(u=m.hooks.preprocess(u));let E=s(u,m);m.hooks&&(E=m.hooks.processAllTokens(E)),m.walkTokens&&this.walkTokens(E,m.walkTokens);let z=o(E,m);return m.hooks&&(z=m.hooks.postprocess(z)),z}catch(E){return S(E)}}},Rf=function(s,o){return u=>{if(u.message+=` Please report this to https://github.com/markedjs/marked.`,s){const d="

    An error occurred:

    "+At(u.message+"",!0)+"
    ";return o?Promise.resolve(d):d}if(o)return Promise.reject(u);throw u}};const fr=new sh;function he(p,s){return fr.parse(p,s)}he.options=he.setOptions=function(p){return fr.setOptions(p),he.defaults=fr.defaults,vf(he.defaults),he};he.getDefaults=cu;he.defaults=pr;he.use=function(...p){return fr.use(...p),he.defaults=fr.defaults,vf(he.defaults),he};he.walkTokens=function(p,s){return fr.walkTokens(p,s)};he.parseInline=fr.parseInline;he.Parser=rn;he.parser=rn.parse;he.Renderer=ho;he.TextRenderer=gu;he.Lexer=nn;he.lexer=nn.lex;he.Tokenizer=fo;he.Hooks=Ql;he.parse=he;he.options;he.setOptions;he.use;he.walkTokens;he.parseInline;rn.parse;nn.lex;/*! @license DOMPurify 3.4.5 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.5/LICENSE */function nf(p,s){(s==null||s>p.length)&&(s=p.length);for(var o=0,u=Array(s);o2?u-2:0),h=2;h1?o-1:0),d=1;d"u"?null:Ve(BigInt.prototype.toString),af=typeof Symbol>"u"?null:Ve(Symbol.prototype.toString),Me=Ve(Object.prototype.hasOwnProperty),Hl=Ve(Object.prototype.toString),lt=Ve(RegExp.prototype.test),ao=xh(TypeError);function Ve(p){return function(s){s instanceof RegExp&&(s.lastIndex=0);for(var o=arguments.length,u=new Array(o>1?o-1:0),d=1;d2&&arguments[2]!==void 0?arguments[2]:Wl;if(rf&&rf(p,null),!pt(s))return p;let u=s.length;for(;u--;){let d=s[u];if(typeof d=="string"){const h=o(d);h!==d&&(ph(s)||(s[u]=h),d=h)}p[d]=!0}return p}function Sh(p){for(let s=0;s/g),Ah=jt(/\${[\w\W]*/g),Lh=jt(/^data-[\-\w.\u00B7-\uFFFF]+$/),Ph=jt(/^aria-[\-\w]+$/),hf=jt(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Ih=jt(/^(?:\w+script|data):/i),Oh=jt(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),zh=jt(/^html$/i),Dh=jt(/^[a-z][.\w]*(-[.\w]+)+$/i),Qr={element:1,text:3,progressingInstruction:7,comment:8,document:9},Mh=function(){return typeof window>"u"?null:window},jh=function(s,o){if(typeof s!="object"||typeof s.createPolicy!="function")return null;let u=null;const d="data-tt-policy-suffix";o&&o.hasAttribute(d)&&(u=o.getAttribute(d));const h="dompurify"+(u?"#"+u:"");try{return s.createPolicy(h,{createHTML(m){return m},createScriptURL(m){return m}})}catch{return console.warn("TrustedTypes policy "+h+" could not be created."),null}},mf=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function Pf(){let p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Mh();const s=W=>Pf(W);if(s.version="3.4.5",s.removed=[],!p||!p.document||p.document.nodeType!==Qr.document||!p.Element)return s.isSupported=!1,s;let o=p.document;const u=o,d=u.currentScript,h=p.DocumentFragment,m=p.HTMLTemplateElement,S=p.Node,E=p.Element,z=p.NodeFilter,P=p.NamedNodeMap,M=P===void 0?p.NamedNodeMap||p.MozNamedAttrMap:P,I=p.HTMLFormElement,Z=p.DOMParser,ce=p.trustedTypes,Q=E.prototype,ee=cr(Q,"cloneNode"),Qe=cr(Q,"remove"),Ge=cr(Q,"nextSibling"),Ye=cr(Q,"childNodes"),ye=cr(Q,"parentNode"),Pe=S&&S.prototype?cr(S.prototype,"nodeType"):null;if(typeof m=="function"){const W=o.createElement("template");W.content&&W.content.ownerDocument&&(o=W.content.ownerDocument)}let oe,Ie="";const b=o,Ne=b.implementation,we=b.createNodeIterator,je=b.createDocumentFragment,$e=b.getElementsByTagName,tt=u.importNode;let fe=mf();s.isSupported=typeof Af=="function"&&typeof ye=="function"&&Ne&&Ne.createHTMLDocument!==void 0;const Be=Nh,Oe=Rh,ge=Ah,D=Lh,X=Ph,F=Ih,v=Oh,T=Dh;let te=hf,V=null;const ie=ne({},[...cf,...tu,...nu,...ru,...ff]);let q=null;const de=ne({},[...df,...lu,...pf,...co]);let K=Object.seal(Gr(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}})),ae=null,Ze=null;const Et=Object.seal(Gr(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Yr=!0,vn=!0,hr=!1,Xr=!0,Ft=!1,ln=!0,Gt=!1,Qn=!1,on=!1,_t=!1,kn=!1,Gn=!1,Kr=!0,Zr=!1;const qr="user-content-";let Yn=!0,Yt=!1,sn={},it=null;const un=ne({},["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 Xl=null;const Jr=ne({},["audio","video","img","source","image","track"]);let mr=null;const Kl=ne({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),wn="http://www.w3.org/1998/Math/MathML",xn="http://www.w3.org/2000/svg",mt="http://www.w3.org/1999/xhtml";let Xt=mt,Xn=!1,Kt=null;const Sn=ne({},[wn,xn,mt],eu);let gr=ne({},["mi","mo","mn","ms","mtext"]),yr=ne({},["annotation-xml"]);const Zl=ne({},["title","style","font","a","script"]);let En=null;const ql=["application/xhtml+xml","text/html"],br="text/html";let ze=null,Lt=null;const el=o.createElement("form"),_n=function(f){return f instanceof RegExp||f instanceof Function},tl=function(){let f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Lt&&Lt===f)return;(!f||typeof f!="object")&&(f={}),f=St(f),En=ql.indexOf(f.PARSER_MEDIA_TYPE)===-1?br:f.PARSER_MEDIA_TYPE,ze=En==="application/xhtml+xml"?eu:Wl,V=Me(f,"ALLOWED_TAGS")&&pt(f.ALLOWED_TAGS)?ne({},f.ALLOWED_TAGS,ze):ie,q=Me(f,"ALLOWED_ATTR")&&pt(f.ALLOWED_ATTR)?ne({},f.ALLOWED_ATTR,ze):de,Kt=Me(f,"ALLOWED_NAMESPACES")&&pt(f.ALLOWED_NAMESPACES)?ne({},f.ALLOWED_NAMESPACES,eu):Sn,mr=Me(f,"ADD_URI_SAFE_ATTR")&&pt(f.ADD_URI_SAFE_ATTR)?ne(St(Kl),f.ADD_URI_SAFE_ATTR,ze):Kl,Xl=Me(f,"ADD_DATA_URI_TAGS")&&pt(f.ADD_DATA_URI_TAGS)?ne(St(Jr),f.ADD_DATA_URI_TAGS,ze):Jr,it=Me(f,"FORBID_CONTENTS")&&pt(f.FORBID_CONTENTS)?ne({},f.FORBID_CONTENTS,ze):un,ae=Me(f,"FORBID_TAGS")&&pt(f.FORBID_TAGS)?ne({},f.FORBID_TAGS,ze):St({}),Ze=Me(f,"FORBID_ATTR")&&pt(f.FORBID_ATTR)?ne({},f.FORBID_ATTR,ze):St({}),sn=Me(f,"USE_PROFILES")?f.USE_PROFILES&&typeof f.USE_PROFILES=="object"?St(f.USE_PROFILES):f.USE_PROFILES:!1,Yr=f.ALLOW_ARIA_ATTR!==!1,vn=f.ALLOW_DATA_ATTR!==!1,hr=f.ALLOW_UNKNOWN_PROTOCOLS||!1,Xr=f.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Ft=f.SAFE_FOR_TEMPLATES||!1,ln=f.SAFE_FOR_XML!==!1,Gt=f.WHOLE_DOCUMENT||!1,_t=f.RETURN_DOM||!1,kn=f.RETURN_DOM_FRAGMENT||!1,Gn=f.RETURN_TRUSTED_TYPE||!1,on=f.FORCE_BODY||!1,Kr=f.SANITIZE_DOM!==!1,Zr=f.SANITIZE_NAMED_PROPS||!1,Yn=f.KEEP_CONTENT!==!1,Yt=f.IN_PLACE||!1,te=_h(f.ALLOWED_URI_REGEXP)?f.ALLOWED_URI_REGEXP:hf,Xt=typeof f.NAMESPACE=="string"?f.NAMESPACE:mt,gr=Me(f,"MATHML_TEXT_INTEGRATION_POINTS")&&f.MATHML_TEXT_INTEGRATION_POINTS&&typeof f.MATHML_TEXT_INTEGRATION_POINTS=="object"?St(f.MATHML_TEXT_INTEGRATION_POINTS):ne({},["mi","mo","mn","ms","mtext"]),yr=Me(f,"HTML_INTEGRATION_POINTS")&&f.HTML_INTEGRATION_POINTS&&typeof f.HTML_INTEGRATION_POINTS=="object"?St(f.HTML_INTEGRATION_POINTS):ne({},["annotation-xml"]);const _=Me(f,"CUSTOM_ELEMENT_HANDLING")&&f.CUSTOM_ELEMENT_HANDLING&&typeof f.CUSTOM_ELEMENT_HANDLING=="object"?St(f.CUSTOM_ELEMENT_HANDLING):Gr(null);if(K=Gr(null),Me(_,"tagNameCheck")&&_n(_.tagNameCheck)&&(K.tagNameCheck=_.tagNameCheck),Me(_,"attributeNameCheck")&&_n(_.attributeNameCheck)&&(K.attributeNameCheck=_.attributeNameCheck),Me(_,"allowCustomizedBuiltInElements")&&typeof _.allowCustomizedBuiltInElements=="boolean"&&(K.allowCustomizedBuiltInElements=_.allowCustomizedBuiltInElements),Ft&&(vn=!1),kn&&(_t=!0),sn&&(V=ne({},ff),q=Gr(null),sn.html===!0&&(ne(V,cf),ne(q,df)),sn.svg===!0&&(ne(V,tu),ne(q,lu),ne(q,co)),sn.svgFilters===!0&&(ne(V,nu),ne(q,lu),ne(q,co)),sn.mathMl===!0&&(ne(V,ru),ne(q,pf),ne(q,co))),Et.tagCheck=null,Et.attributeCheck=null,Me(f,"ADD_TAGS")&&(typeof f.ADD_TAGS=="function"?Et.tagCheck=f.ADD_TAGS:pt(f.ADD_TAGS)&&(V===ie&&(V=St(V)),ne(V,f.ADD_TAGS,ze))),Me(f,"ADD_ATTR")&&(typeof f.ADD_ATTR=="function"?Et.attributeCheck=f.ADD_ATTR:pt(f.ADD_ATTR)&&(q===de&&(q=St(q)),ne(q,f.ADD_ATTR,ze))),Me(f,"ADD_URI_SAFE_ATTR")&&pt(f.ADD_URI_SAFE_ATTR)&&ne(mr,f.ADD_URI_SAFE_ATTR,ze),Me(f,"FORBID_CONTENTS")&&pt(f.FORBID_CONTENTS)&&(it===un&&(it=St(it)),ne(it,f.FORBID_CONTENTS,ze)),Me(f,"ADD_FORBID_CONTENTS")&&pt(f.ADD_FORBID_CONTENTS)&&(it===un&&(it=St(it)),ne(it,f.ADD_FORBID_CONTENTS,ze)),Yn&&(V["#text"]=!0),Gt&&ne(V,["html","head","body"]),V.table&&(ne(V,["tbody"]),delete ae.tbody),f.TRUSTED_TYPES_POLICY){if(typeof f.TRUSTED_TYPES_POLICY.createHTML!="function")throw ao('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof f.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw ao('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');oe=f.TRUSTED_TYPES_POLICY,Ie=oe.createHTML("")}else oe===void 0&&(oe=jh(ce,d)),oe!==null&&typeof Ie=="string"&&(Ie=oe.createHTML(""));ht&&ht(f),Lt=f},Tn=ne({},[...tu,...nu,...Th]),Kn=ne({},[...ru,...Ch]),vr=function(f){let _=ye(f);(!_||!_.tagName)&&(_={namespaceURI:Xt,tagName:"template"});const O=Wl(f.tagName),re=Wl(_.tagName);return Kt[f.namespaceURI]?f.namespaceURI===xn?_.namespaceURI===mt?O==="svg":_.namespaceURI===wn?O==="svg"&&(re==="annotation-xml"||gr[re]):!!Tn[O]:f.namespaceURI===wn?_.namespaceURI===mt?O==="math":_.namespaceURI===xn?O==="math"&&yr[re]:!!Kn[O]:f.namespaceURI===mt?_.namespaceURI===xn&&!yr[re]||_.namespaceURI===wn&&!gr[re]?!1:!Kn[O]&&(Zl[O]||!Tn[O]):!!(En==="application/xhtml+xml"&&Kt[f.namespaceURI]):!1},ct=function(f){Wr(s.removed,{element:f});try{ye(f).removeChild(f)}catch{Qe(f)}},an=function(f,_){try{Wr(s.removed,{attribute:_.getAttributeNode(f),from:_})}catch{Wr(s.removed,{attribute:null,from:_})}if(_.removeAttribute(f),f==="is")if(_t||kn)try{ct(_)}catch{}else try{_.setAttribute(f,"")}catch{}},Jl=function(f){let _=null,O=null;if(on)f=""+f;else{const xe=of(f,/^[\r\n\t ]+/);O=xe&&xe[0]}En==="application/xhtml+xml"&&Xt===mt&&(f=''+f+"");const re=oe?oe.createHTML(f):f;if(Xt===mt)try{_=new Z().parseFromString(re,En)}catch{}if(!_||!_.documentElement){_=Ne.createDocument(Xt,"template",null);try{_.documentElement.innerHTML=Xn?Ie:re}catch{}}const Re=_.body||_.documentElement;return f&&O&&Re.insertBefore(o.createTextNode(O),Re.childNodes[0]||null),Xt===mt?$e.call(_,Gt?"html":"body")[0]:Gt?_.documentElement:Re},bl=function(f){return we.call(f.ownerDocument||f,f,z.SHOW_ELEMENT|z.SHOW_COMMENT|z.SHOW_TEXT|z.SHOW_PROCESSING_INSTRUCTION|z.SHOW_CDATA_SECTION,null)},Zt=function(f){f.normalize();const _=we.call(f.ownerDocument||f,f,z.SHOW_TEXT|z.SHOW_COMMENT|z.SHOW_CDATA_SECTION|z.SHOW_PROCESSING_INSTRUCTION,null);let O=_.nextNode();for(;O;){let re=O.data;Hr([Be,Oe,ge],Re=>{re=Vr(re,Re," ")}),O.data=re,O=_.nextNode()}},kr=function(f){return f instanceof I&&(typeof f.nodeName!="string"||typeof f.textContent!="string"||typeof f.removeChild!="function"||!(f.attributes instanceof M)||typeof f.removeAttribute!="function"||typeof f.setAttribute!="function"||typeof f.namespaceURI!="string"||typeof f.insertBefore!="function"||typeof f.hasChildNodes!="function")},Zn=function(f){if(!Pe||typeof f!="object"||f===null)return!1;try{return typeof Pe(f)=="number"}catch{return!1}};function Ut(W,f,_){Hr(W,O=>{O.call(s,f,_,Lt)})}const nl=function(f){let _=null;if(Ut(fe.beforeSanitizeElements,f,null),kr(f))return ct(f),!0;const O=ze(f.nodeName);if(Ut(fe.uponSanitizeElement,f,{tagName:O,allowedTags:V}),ln&&f.hasChildNodes()&&!Zn(f.firstElementChild)&<(/<[/\w!]/g,f.innerHTML)&<(/<[/\w!]/g,f.textContent)||ln&&f.namespaceURI===mt&&O==="style"&&Zn(f.firstElementChild)||f.nodeType===Qr.progressingInstruction||ln&&f.nodeType===Qr.comment&<(/<[/\w]/g,f.data))return ct(f),!0;if(ae[O]||!(Et.tagCheck instanceof Function&&Et.tagCheck(O))&&!V[O]){if(!ae[O]&&ll(O)&&(K.tagNameCheck instanceof RegExp&<(K.tagNameCheck,O)||K.tagNameCheck instanceof Function&&K.tagNameCheck(O)))return!1;if(Yn&&!it[O]){const re=ye(f)||f.parentNode,Re=Ye(f)||f.childNodes;if(Re&&re){const xe=Re.length;for(let Se=xe-1;Se>=0;--Se){const qt=ee(Re[Se],!0);re.insertBefore(qt,Ge(f))}}}return ct(f),!0}return f instanceof E&&!vr(f)||(O==="noscript"||O==="noembed"||O==="noframes")&<(/<\/no(script|embed|frames)/i,f.innerHTML)?(ct(f),!0):(Ft&&f.nodeType===Qr.text&&(_=f.textContent,Hr([Be,Oe,ge],re=>{_=Vr(_,re," ")}),f.textContent!==_&&(Wr(s.removed,{element:f.cloneNode()}),f.textContent=_)),Ut(fe.afterSanitizeElements,f,null),!1)},rl=function(f,_,O){if(Ze[_]||Kr&&(_==="id"||_==="name")&&(O in o||O in el))return!1;const re=q[_]||Et.attributeCheck instanceof Function&&Et.attributeCheck(_,f);if(!(vn&&!Ze[_]&<(D,_))){if(!(Yr&<(X,_))){if(!re||Ze[_]){if(!(ll(f)&&(K.tagNameCheck instanceof RegExp&<(K.tagNameCheck,f)||K.tagNameCheck instanceof Function&&K.tagNameCheck(f))&&(K.attributeNameCheck instanceof RegExp&<(K.attributeNameCheck,_)||K.attributeNameCheck instanceof Function&&K.attributeNameCheck(_,f))||_==="is"&&K.allowCustomizedBuiltInElements&&(K.tagNameCheck instanceof RegExp&<(K.tagNameCheck,O)||K.tagNameCheck instanceof Function&&K.tagNameCheck(O))))return!1}else if(!mr[_]){if(!lt(te,Vr(O,v,""))){if(!((_==="src"||_==="xlink:href"||_==="href")&&f!=="script"&&sf(O,"data:")===0&&Xl[f])){if(!(hr&&!lt(F,Vr(O,v,"")))){if(O)return!1}}}}}}return!0},ei=ne({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),ll=function(f){return!ei[Wl(f)]&<(T,f)},ti=function(f){Ut(fe.beforeSanitizeAttributes,f,null);const _=f.attributes;if(!_||kr(f))return;const O={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:q,forceKeepAttr:void 0};let re=_.length;for(;re--;){const Re=_[re],xe=Re.name,Se=Re.namespaceURI,qt=Re.value,Fe=ze(xe),ol=qt;let He=xe==="value"?ol:vh(ol);if(O.attrName=Fe,O.attrValue=He,O.keepAttr=!0,O.forceKeepAttr=void 0,Ut(fe.uponSanitizeAttribute,f,O),He=O.attrValue,Zr&&(Fe==="id"||Fe==="name")&&sf(He,qr)!==0&&(an(xe,f),He=qr+He),ln&<(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,He)){an(xe,f);continue}if(Fe==="attributename"&&of(He,"href")){an(xe,f);continue}if(O.forceKeepAttr)continue;if(!O.keepAttr){an(xe,f);continue}if(!Xr&<(/\/>/i,He)){an(xe,f);continue}Ft&&Hr([Be,Oe,ge],qn=>{He=Vr(He,qn," ")});const ni=ze(f.nodeName);if(!rl(ni,Fe,He)){an(xe,f);continue}if(oe&&typeof ce=="object"&&typeof ce.getAttributeType=="function"&&!Se)switch(ce.getAttributeType(ni,Fe)){case"TrustedHTML":{He=oe.createHTML(He);break}case"TrustedScriptURL":{He=oe.createScriptURL(He);break}}if(He!==ol)try{Se?f.setAttributeNS(Se,xe,He):f.setAttribute(xe,He),kr(f)?ct(f):lf(s.removed)}catch{an(xe,f)}}Ut(fe.afterSanitizeAttributes,f,null)},il=function(f){let _=null;const O=bl(f);for(Ut(fe.beforeSanitizeShadowDOM,f,null);_=O.nextNode();)Ut(fe.uponSanitizeShadowNode,_,null),nl(_),ti(_),_.content instanceof h&&il(_.content);Ut(fe.afterSanitizeShadowDOM,f,null)},ve=function(f){if(f.nodeType===Qr.element&&f.shadowRoot instanceof h){const re=f.shadowRoot;ve(re),il(re)}const _=f.childNodes;if(!_)return;const O=[];Hr(_,re=>{Wr(O,re)});for(const re of O)ve(re)};return s.sanitize=function(W){let f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},_=null,O=null,re=null,Re=null;if(Xn=!W,Xn&&(W=""),typeof W!="string"&&!Zn(W)&&(W=Eh(W),typeof W!="string"))throw ao("dirty is not a string, aborting");if(!s.isSupported)return W;if(Qn||tl(f),s.removed=[],typeof W=="string"&&(Yt=!1),Yt){const qt=W.nodeName;if(typeof qt=="string"){const Fe=ze(qt);if(!V[Fe]||ae[Fe])throw ao("root node is forbidden and cannot be sanitized in-place")}ve(W)}else if(Zn(W))_=Jl(""),O=_.ownerDocument.importNode(W,!0),O.nodeType===Qr.element&&O.nodeName==="BODY"||O.nodeName==="HTML"?_=O:_.appendChild(O),ve(O);else{if(!_t&&!Ft&&!Gt&&W.indexOf("<")===-1)return oe&&Gn?oe.createHTML(W):W;if(_=Jl(W),!_)return _t?null:Gn?Ie:""}_&&on&&ct(_.firstChild);const xe=bl(Yt?W:_);for(;re=xe.nextNode();)nl(re),ti(re),re.content instanceof h&&il(re.content);if(Yt)return Ft&&Zt(W),W;if(_t){if(Ft&&Zt(_),kn)for(Re=je.call(_.ownerDocument);_.firstChild;)Re.appendChild(_.firstChild);else Re=_;return(q.shadowroot||q.shadowrootmode)&&(Re=tt.call(u,Re,!0)),Re}let Se=Gt?_.outerHTML:_.innerHTML;return Gt&&V["!doctype"]&&_.ownerDocument&&_.ownerDocument.doctype&&_.ownerDocument.doctype.name&<(zh,_.ownerDocument.doctype.name)&&(Se=" `+Se),Ft&&Hr([Be,Oe,ge],qt=>{Se=Vr(Se,qt," ")}),oe&&Gn?oe.createHTML(Se):Se},s.setConfig=function(){let W=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};tl(W),Qn=!0},s.clearConfig=function(){Lt=null,Qn=!1},s.isValidAttribute=function(W,f,_){Lt||tl({});const O=ze(W),re=ze(f);return rl(O,re,_)},s.addHook=function(W,f){typeof f=="function"&&Wr(fe[W],f)},s.removeHook=function(W,f){if(f!==void 0){const _=gh(fe[W],f);return _===-1?void 0:yh(fe[W],_,1)[0]}return lf(fe[W])},s.removeHooks=function(W){fe[W]=[]},s.removeAllHooks=function(){fe=mf()},s}var Fh=Pf();function Uh(p){return L.jsxs("svg",{...p,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 $h(p){return L.jsxs("svg",{...p,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 Bh(p){return Fh.sanitize(he.parse(p))}function Hh({messages:p}){const s=p.length===0;return et.useEffect(()=>{window.MathJax.typeset()},[p]),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!"}):p.map((o,u)=>L.jsx("div",{className:"flex items-start space-x-4",children:o.role==="assistant"?L.jsxs(L.Fragment,{children:[L.jsx(Uh,{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:Bh(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($h,{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-${u}`))})}function gf(p){return L.jsxs("svg",{...p,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 Wh(p){return L.jsxs("svg",{...p,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 Vh(p){const s=p==0?0:Math.floor(Math.log(p)/Math.log(1024));return+(p/Math.pow(1024,s)).toFixed(2)*1+["B","kB","MB","GB","TB"][s]}function Qh({text:p,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:[p," (",s.toFixed(2),"%",isNaN(o)?"":` of ${Vh(o)}`,")"]})})}const Gh=!!navigator.gpu,Yh=120,Xh=["Give me some tips to improve my time management skills.","What is the difference between AI and ML?","Write python code to compute the nth fibonacci number."];function Kh(){const p=et.useRef(null),s=et.useRef(null),o=et.useRef(null),[u,d]=et.useState(null),[h,m]=et.useState(null),[S,E]=et.useState(""),[z,P]=et.useState([]),[M,I]=et.useState(!1),[Z,ce]=et.useState(""),[Q,ee]=et.useState([]),[Qe,Ge]=et.useState(null),[Ye,ye]=et.useState(null);function Pe(b){ee(Ne=>[...Ne,{role:"user",content:b}]),Ge(null),I(!0),ce("")}function oe(){p.current.postMessage({type:"interrupt"})}et.useEffect(()=>{Ie()},[Z]);function Ie(){if(!s.current)return;const b=s.current;b.style.height="auto";const Ne=Math.min(Math.max(b.scrollHeight,24),200);b.style.height=`${Ne}px`}return et.useEffect(()=>{p.current||(p.current=new Worker(new URL("/assets/worker-Cs0ykk65.js",import.meta.url),{type:"module"}),p.current.postMessage({type:"check"}));const b=we=>{switch(we.data.status){case"loading":d("loading"),E(we.data.data);break;case"initiate":P(je=>[...je,we.data]);break;case"progress":P(je=>je.map($e=>$e.file===we.data.file?{...$e,...we.data}:$e));break;case"done":P(je=>je.filter($e=>$e.file!==we.data.file));break;case"ready":d("ready");break;case"start":ee(je=>[...je,{role:"assistant",content:""}]);break;case"update":{const{output:je,tps:$e,numTokens:tt}=we.data;Ge($e),ye(tt),ee(fe=>{const Be=[...fe],Oe=Be.at(-1);return Be[Be.length-1]={...Oe,content:Oe.content+je},Be})}break;case"complete":I(!1);break;case"error":m(we.data.data);break}},Ne=we=>{console.error("Worker error:",we)};return p.current.addEventListener("message",b),p.current.addEventListener("error",Ne),()=>{p.current.removeEventListener("message",b),p.current.removeEventListener("error",Ne)}},[]),et.useEffect(()=>{Q.filter(b=>b.role==="user").length!==0&&Q.at(-1).role!=="assistant"&&(Ge(null),p.current.postMessage({type:"generate",data:Q}))},[Q,M]),et.useEffect(()=>{if(!o.current||!M)return;const b=o.current;b.scrollHeight-b.scrollTop-b.clientHeight{p.current.postMessage({type:"load"}),d("loading")},disabled:u!==null||h!==null,children:"Load model"})]})]}),u==="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}),z.map(({file:b,progress:Ne,total:we},je)=>L.jsx(Qh,{text:b,percentage:Ne,total:we},je))]})}),u==="ready"&&L.jsxs("div",{ref:o,className:"overflow-y-auto scrollbar-thin w-full flex flex-col items-center h-full",children:[L.jsx(Hh,{messages:Q}),Q.length===0&&L.jsx("div",{children:Xh.map((b,Ne)=>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:()=>Pe(b),children:b},Ne))}),L.jsx("p",{className:"text-center text-sm min-h-6 text-gray-500 dark:text-gray-300",children:Qe&&Q.length>0&&L.jsxs(L.Fragment,{children:[!M&&L.jsxs("span",{children:["Generated ",Ye," tokens in"," ",(Ye/Qe).toFixed(2)," seconds ("]}),L.jsxs(L.Fragment,{children:[L.jsx("span",{className:"font-medium text-center mr-1 text-black dark:text-white",children:Qe.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:()=>{p.current.postMessage({type:"reset"}),ee([])},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:Z,disabled:u!=="ready",title:u==="ready"?"Model is ready":"Model not loaded yet",onKeyDown:b=>{Z.length>0&&!M&&b.key==="Enter"&&!b.shiftKey&&(b.preventDefault(),Pe(Z))},onInput:b=>ce(b.target.value)}),M?L.jsx("div",{className:"cursor-pointer",onClick:oe,children:L.jsx(Wh,{className:"h-8 w-8 p-1 rounded-md text-gray-800 dark:text-gray-100 absolute right-3 bottom-3"})}):Z.length>0?L.jsx("div",{className:"cursor-pointer",onClick:()=>Pe(Z),children:L.jsx(gf,{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(gf,{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 :("]})}Cp.createRoot(document.getElementById("root")).render(L.jsx(kp.StrictMode,{children:L.jsx(Kh,{})}));