var dp=Object.defineProperty;var pp=(d,s,o)=>s in d?dp(d,s,{enumerable:!0,configurable:!0,writable:!0,value:o}):d[s]=o;var Se=(d,s,o)=>pp(d,typeof s!="symbol"?s+"":s,o);(function(){const s=document.createElement("link").relList;if(s&&s.supports&&s.supports("modulepreload"))return;for(const f of document.querySelectorAll('link[rel="modulepreload"]'))a(f);new MutationObserver(f=>{for(const p of f)if(p.type==="childList")for(const y of p.addedNodes)y.tagName==="LINK"&&y.rel==="modulepreload"&&a(y)}).observe(document,{childList:!0,subtree:!0});function o(f){const p={};return f.integrity&&(p.integrity=f.integrity),f.referrerPolicy&&(p.referrerPolicy=f.referrerPolicy),f.crossOrigin==="use-credentials"?p.credentials="include":f.crossOrigin==="anonymous"?p.credentials="omit":p.credentials="same-origin",p}function a(f){if(f.ep)return;f.ep=!0;const p=o(f);fetch(f.href,p)}})();function hp(d){return d&&d.__esModule&&Object.prototype.hasOwnProperty.call(d,"default")?d.default:d}var Qs={exports:{}},Pl={},Gs={exports:{}},oe={};/** * @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 Fc;function mp(){if(Fc)return oe;Fc=1;var d=Symbol.for("react.element"),s=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),p=Symbol.for("react.provider"),y=Symbol.for("react.context"),k=Symbol.for("react.forward_ref"),_=Symbol.for("react.suspense"),T=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),O=Symbol.iterator;function A(v){return v===null||typeof v!="object"?null:(v=O&&v[O]||v["@@iterator"],typeof v=="function"?v:null)}var I={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},G=Object.assign,j={};function K(v,C,Y){this.props=v,this.context=C,this.refs=j,this.updater=Y||I}K.prototype.isReactComponent={},K.prototype.setState=function(v,C){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,C,"setState")},K.prototype.forceUpdate=function(v){this.updater.enqueueForceUpdate(this,v,"forceUpdate")};function ce(){}ce.prototype=K.prototype;function ge(v,C,Y){this.props=v,this.context=C,this.refs=j,this.updater=Y||I}var Ee=ge.prototype=new ce;Ee.constructor=ge,G(Ee,K.prototype),Ee.isPureReactComponent=!0;var te=Array.isArray,fe=Object.prototype.hasOwnProperty,ne={current:null},_e={key:!0,ref:!0,__self:!0,__source:!0};function Q(v,C,Y){var re,Z={},ie=null,he=null;if(C!=null)for(re in C.ref!==void 0&&(he=C.ref),C.key!==void 0&&(ie=""+C.key),C)fe.call(C,re)&&!_e.hasOwnProperty(re)&&(Z[re]=C[re]);var de=arguments.length-2;if(de===1)Z.children=Y;else if(1>>1,C=D[v];if(0>>1;vf(Z,U))ief(he,Z)?(D[v]=he,D[ie]=U,v=ie):(D[v]=Z,D[re]=U,v=re);else if(ief(he,U))D[v]=he,D[ie]=U,v=ie;else break e}}return J}function f(D,J){var U=D.sortIndex-J.sortIndex;return U!==0?U:D.id-J.id}if(typeof performance=="object"&&typeof performance.now=="function"){var p=performance;d.unstable_now=function(){return p.now()}}else{var y=Date,k=y.now();d.unstable_now=function(){return y.now()-k}}var _=[],T=[],S=1,O=null,A=3,I=!1,G=!1,j=!1,K=typeof setTimeout=="function"?setTimeout:null,ce=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 Ee(D){for(var J=o(T);J!==null;){if(J.callback===null)a(T);else if(J.startTime<=D)a(T),J.sortIndex=J.expirationTime,s(_,J);else break;J=o(T)}}function te(D){if(j=!1,Ee(D),!G)if(o(_)!==null)G=!0,De(fe);else{var J=o(T);J!==null&&ke(te,J.startTime-D)}}function fe(D,J){G=!1,j&&(j=!1,ce(Q),Q=-1),I=!0;var U=A;try{for(Ee(J),O=o(_);O!==null&&(!(O.expirationTime>J)||D&&!ue());){var v=O.callback;if(typeof v=="function"){O.callback=null,A=O.priorityLevel;var C=v(O.expirationTime<=J);J=d.unstable_now(),typeof C=="function"?O.callback=C:O===o(_)&&a(_),Ee(J)}else a(_);O=o(_)}if(O!==null)var Y=!0;else{var re=o(T);re!==null&&ke(te,re.startTime-J),Y=!1}return Y}finally{O=null,A=U,I=!1}}var ne=!1,_e=null,Q=-1,Ie=5,Le=-1;function ue(){return!(d.unstable_now()-LeD||125v?(D.sortIndex=U,s(T,D),o(_)===null&&D===o(T)&&(j?(ce(Q),Q=-1):j=!0,ke(te,U-v))):(D.sortIndex=C,s(_,D),G||I||(G=!0,De(fe))),D},d.unstable_shouldYield=ue,d.unstable_wrapCallback=function(D){var J=A;return function(){var U=A;A=J;try{return D.apply(this,arguments)}finally{A=U}}}}(Ks)),Ks}var Wc;function kp(){return Wc||(Wc=1,Xs.exports=vp()),Xs.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 Vc;function wp(){if(Vc)return mt;Vc=1;var d=ou(),s=kp();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"),_=Object.prototype.hasOwnProperty,T=/^[: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]*$/,S={},O={};function A(e){return _.call(O,e)?!0:_.call(S,e)?!1:T.test(e)?O[e]=!0:(S[e]=!0,!1)}function I(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 G(e,t,n,r){if(t===null||typeof t>"u"||I(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 j(e,t,n,r,l,i,u){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=u}var K={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){K[e]=new j(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];K[t]=new j(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){K[e]=new j(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){K[e]=new j(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){K[e]=new j(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){K[e]=new j(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){K[e]=new j(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){K[e]=new j(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){K[e]=new j(e,5,!1,e.toLowerCase(),null,!1,!1)});var ce=/[\-:]([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(ce,ge);K[t]=new j(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(ce,ge);K[t]=new j(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(ce,ge);K[t]=new j(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){K[e]=new j(e,1,!1,e.toLowerCase(),null,!1,!1)}),K.xlinkHref=new j("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){K[e]=new j(e,1,!1,e.toLowerCase(),null,!0,!0)});function Ee(e,t,n,r){var l=K.hasOwnProperty(t)?K[t]:null;(l!==null?l.type!==0:r||!(2c||l[u]!==i[c]){var h=` `+l[u].replace(" at new "," at ");return e.displayName&&h.includes("")&&(h=h.replace("",e.displayName)),h}while(1<=u&&0<=c);break}}}finally{Y=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?C(e):""}function Z(e){switch(e.tag){case 5:return C(e.type);case 16:return C("Lazy");case 13:return C("Suspense");case 19:return C("SuspenseList");case 0:case 2:case 15:return e=re(e.type,!1),e;case 11:return e=re(e.type.render,!1),e;case 1:return e=re(e.type,!0),e;default:return""}}function ie(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 _e:return"Fragment";case ne:return"Portal";case Ie:return"Profiler";case Q:return"StrictMode";case Be:return"Suspense";case Xe:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case ue:return(e.displayName||"Context")+".Consumer";case Le:return(e._context.displayName||"Context")+".Provider";case ze:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ut:return t=e.displayName||null,t!==null?t:ie(e.type)||"Memo";case De:t=e._payload,e=e._init;try{return ie(e(t))}catch{}}return null}function he(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 ie(t);case 8:return t===Q?"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 de(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function we(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function be(e){var t=we(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(u){r=""+u,i.call(this,u)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(u){r=""+u},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Vn(e){e._valueTracker||(e._valueTracker=be(e))}function qt(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=we(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function pn(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 zt(e,t){var n=t.checked;return U({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function mr(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=de(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 gr(e,t){t=t.checked,t!=null&&Ee(e,"checked",t,!1)}function Wt(e,t){gr(e,t);var n=de(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")?hn(e,t.type,n):t.hasOwnProperty("defaultValue")&&hn(e,t.type,de(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Qn(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 hn(e,t,n){(t!=="number"||pn(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var mn=Array.isArray;function Jt(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l"+t.valueOf().toString()+"",t=Gn.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function nn(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var yn={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},kr=["Webkit","ms","Moz","O"];Object.keys(yn).forEach(function(e){kr.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),yn[t]=yn[e]})});function Yn(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||yn.hasOwnProperty(e)&&yn[e]?(""+t).trim():t+"px"}function xt(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=Yn(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var vn=U({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 Xn(e,t){if(t){if(vn[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 Kn(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 Yr=null;function kn(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var wn=null,xn=null,St=null;function Vl(e){if(e=ml(e)){if(typeof wn!="function")throw Error(o(280));var t=e.stateNode;t&&(t=mi(t),wn(e.stateNode,e.type,t))}}function Ql(e){xn?St?St.push(e):St=[e]:xn=e}function je(){if(xn){var e=xn,t=St;if(St=xn=null,Vl(e),t)for(e=0;e>>=0,e===0?32:31-(Lf(e)/Pf|0)|0}var bl=64,ql=4194304;function br(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 Jl(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,l=e.suspendedLanes,i=e.pingedLanes,u=n&268435455;if(u!==0){var c=u&~l;c!==0?r=br(c):(i&=u,i!==0&&(r=br(i)))}else u=n&~l,u!==0?r=br(u):i!==0&&(r=br(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&l)&&(l=r&-r,i=t&-t,l>=i||l===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function qr(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-It(t),e[t]=n}function Of(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=ol),Au=" ",Mu=!1;function zu(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 Ou(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Tr=!1;function cd(e,t){switch(e){case"compositionend":return Ou(t);case"keypress":return t.which!==32?null:(Mu=!0,Au);case"textInput":return e=t.data,e===Au&&Mu?null:e;default:return null}}function fd(e,t){if(Tr)return e==="compositionend"||!To&&zu(e,t)?(e=Tu(),li=ko=Nn=null,Tr=!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=Bu(n)}}function Wu(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Wu(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Vu(){for(var e=window,t=pn();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=pn(e.document)}return t}function No(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=Vu(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Wu(n.ownerDocument.documentElement,n)){if(r!==null&&No(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=Hu(n,i);var u=Hu(n,r);l&&u&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==u.node||e.focusOffset!==u.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(u.node,u.offset)):(t.setEnd(u.node,u.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Cr=null,Lo=null,cl=null,Po=!1;function Qu(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Po||Cr==null||Cr!==pn(r)||(r=Cr,"selectionStart"in r&&No(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}),cl&&al(cl,r)||(cl=r,r=di(Lo,"onSelect"),0Ar||(e.current=Ho[Ar],Ho[Ar]=null,Ar--)}function Ce(e,t){Ar++,Ho[Ar]=e.current,e.current=t}var Mn={},Je=An(Mn),ct=An(!1),tr=Mn;function Mr(e,t){var n=e.type.contextTypes;if(!n)return Mn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},i;for(i in n)l[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function ft(e){return e=e.childContextTypes,e!=null}function gi(){Ne(ct),Ne(Je)}function oa(e,t,n){if(Je.current!==Mn)throw Error(o(168));Ce(Je,t),Ce(ct,n)}function sa(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,he(e)||"Unknown",l));return U({},n,r)}function yi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Mn,tr=Je.current,Ce(Je,e),Ce(ct,ct.current),!0}function ua(e,t,n){var r=e.stateNode;if(!r)throw Error(o(169));n?(e=sa(e,t,tr),r.__reactInternalMemoizedMergedChildContext=e,Ne(ct),Ne(Je),Ce(Je,e)):Ne(ct),Ce(ct,n)}var on=null,vi=!1,Wo=!1;function aa(e){on===null?on=[e]:on.push(e)}function Md(e){vi=!0,aa(e)}function zn(){if(!Wo&&on!==null){Wo=!0;var e=0,t=ye;try{var n=on;for(ye=1;e>=u,l-=u,sn=1<<32-It(t)+l|n<ee?(Ye=q,q=null):Ye=q.sibling;var pe=R(w,q,x[ee],z);if(pe===null){q===null&&(q=Ye);break}e&&q&&pe.alternate===null&&t(w,q),m=i(pe,m,ee),b===null?V=pe:b.sibling=pe,b=pe,q=Ye}if(ee===x.length)return n(w,q),Pe&&rr(w,ee),V;if(q===null){for(;eeee?(Ye=q,q=null):Ye=q.sibling;var Hn=R(w,q,pe.value,z);if(Hn===null){q===null&&(q=Ye);break}e&&q&&Hn.alternate===null&&t(w,q),m=i(Hn,m,ee),b===null?V=Hn:b.sibling=Hn,b=Hn,q=Ye}if(pe.done)return n(w,q),Pe&&rr(w,ee),V;if(q===null){for(;!pe.done;ee++,pe=x.next())pe=P(w,pe.value,z),pe!==null&&(m=i(pe,m,ee),b===null?V=pe:b.sibling=pe,b=pe);return Pe&&rr(w,ee),V}for(q=r(w,q);!pe.done;ee++,pe=x.next())pe=F(q,w,ee,pe.value,z),pe!==null&&(e&&pe.alternate!==null&&q.delete(pe.key===null?ee:pe.key),m=i(pe,m,ee),b===null?V=pe:b.sibling=pe,b=pe);return e&&q.forEach(function(fp){return t(w,fp)}),Pe&&rr(w,ee),V}function Fe(w,m,x,z){if(typeof x=="object"&&x!==null&&x.type===_e&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case fe:e:{for(var V=x.key,b=m;b!==null;){if(b.key===V){if(V=x.type,V===_e){if(b.tag===7){n(w,b.sibling),m=l(b,x.props.children),m.return=w,w=m;break e}}else if(b.elementType===V||typeof V=="object"&&V!==null&&V.$$typeof===De&&ma(V)===b.type){n(w,b.sibling),m=l(b,x.props),m.ref=gl(w,b,x),m.return=w,w=m;break e}n(w,b);break}else t(w,b);b=b.sibling}x.type===_e?(m=fr(x.props.children,w.mode,z,x.key),m.return=w,w=m):(z=Gi(x.type,x.key,x.props,null,w.mode,z),z.ref=gl(w,m,x),z.return=w,w=z)}return u(w);case ne:e:{for(b=x.key;m!==null;){if(m.key===b)if(m.tag===4&&m.stateNode.containerInfo===x.containerInfo&&m.stateNode.implementation===x.implementation){n(w,m.sibling),m=l(m,x.children||[]),m.return=w,w=m;break e}else{n(w,m);break}else t(w,m);m=m.sibling}m=$s(x,w.mode,z),m.return=w,w=m}return u(w);case De:return b=x._init,Fe(w,m,b(x._payload),z)}if(mn(x))return B(w,m,x,z);if(J(x))return W(w,m,x,z);Si(w,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,m!==null&&m.tag===6?(n(w,m.sibling),m=l(m,x),m.return=w,w=m):(n(w,m),m=Us(x,w.mode,z),m.return=w,w=m),u(w)):n(w,m)}return Fe}var Dr=ga(!0),ya=ga(!1),Ei=An(null),_i=null,jr=null,Ko=null;function Zo(){Ko=jr=_i=null}function bo(e){var t=Ei.current;Ne(Ei),e._currentValue=t}function qo(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 Fr(e,t){_i=e,Ko=jr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(dt=!0),e.firstContext=null)}function Ct(e){var t=e._currentValue;if(Ko!==e)if(e={context:e,memoizedValue:t,next:null},jr===null){if(_i===null)throw Error(o(308));jr=e,_i.dependencies={lanes:0,firstContext:e}}else jr=jr.next=e;return t}var lr=null;function Jo(e){lr===null?lr=[e]:lr.push(e)}function va(e,t,n,r){var l=t.interleaved;return l===null?(n.next=n,Jo(t)):(n.next=l.next,l.next=n),t.interleaved=n,an(e,r)}function an(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 On=!1;function es(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function ka(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 cn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function In(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,ae&2){var l=r.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),r.pending=t,an(e,n)}return l=r.interleaved,l===null?(t.next=t,Jo(r)):(t.next=l.next,l.next=t),r.interleaved=t,an(e,n)}function Ti(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,ho(e,n)}}function wa(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var l=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var u={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?l=i=u:i=i.next=u,n=n.next}while(n!==null);i===null?l=i=t:i=i.next=t}else l=i=t;n={baseState:r.baseState,firstBaseUpdate:l,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Ci(e,t,n,r){var l=e.updateQueue;On=!1;var i=l.firstBaseUpdate,u=l.lastBaseUpdate,c=l.shared.pending;if(c!==null){l.shared.pending=null;var h=c,E=h.next;h.next=null,u===null?i=E:u.next=E,u=h;var N=e.alternate;N!==null&&(N=N.updateQueue,c=N.lastBaseUpdate,c!==u&&(c===null?N.firstBaseUpdate=E:c.next=E,N.lastBaseUpdate=h))}if(i!==null){var P=l.baseState;u=0,N=E=h=null,c=i;do{var R=c.lane,F=c.eventTime;if((r&R)===R){N!==null&&(N=N.next={eventTime:F,lane:0,tag:c.tag,payload:c.payload,callback:c.callback,next:null});e:{var B=e,W=c;switch(R=t,F=n,W.tag){case 1:if(B=W.payload,typeof B=="function"){P=B.call(F,P,R);break e}P=B;break e;case 3:B.flags=B.flags&-65537|128;case 0:if(B=W.payload,R=typeof B=="function"?B.call(F,P,R):B,R==null)break e;P=U({},P,R);break e;case 2:On=!0}}c.callback!==null&&c.lane!==0&&(e.flags|=64,R=l.effects,R===null?l.effects=[c]:R.push(c))}else F={eventTime:F,lane:R,tag:c.tag,payload:c.payload,callback:c.callback,next:null},N===null?(E=N=F,h=P):N=N.next=F,u|=R;if(c=c.next,c===null){if(c=l.shared.pending,c===null)break;R=c,c=R.next,R.next=null,l.lastBaseUpdate=R,l.shared.pending=null}}while(!0);if(N===null&&(h=P),l.baseState=h,l.firstBaseUpdate=E,l.lastBaseUpdate=N,t=l.shared.interleaved,t!==null){l=t;do u|=l.lane,l=l.next;while(l!==t)}else i===null&&(l.shared.lanes=0);sr|=u,e.lanes=u,e.memoizedState=P}}function xa(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=is.transition;is.transition={};try{e(!1),t()}finally{ye=n,is.transition=r}}function $a(){return Rt().memoizedState}function Dd(e,t,n){var r=Un(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Ba(e))Ha(t,n);else if(n=va(e,t,n,r),n!==null){var l=lt();Bt(n,e,r,l),Wa(n,t,r)}}function jd(e,t,n){var r=Un(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ba(e))Ha(t,l);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var u=t.lastRenderedState,c=i(u,n);if(l.hasEagerState=!0,l.eagerState=c,Dt(c,u)){var h=t.interleaved;h===null?(l.next=l,Jo(t)):(l.next=h.next,h.next=l),t.interleaved=l;return}}catch{}finally{}n=va(e,t,l,r),n!==null&&(l=lt(),Bt(n,e,r,l),Wa(n,t,r))}}function Ba(e){var t=e.alternate;return e===Me||t!==null&&t===Me}function Ha(e,t){wl=Li=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Wa(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ho(e,n)}}var Mi={readContext:Ct,useCallback:et,useContext:et,useEffect:et,useImperativeHandle:et,useInsertionEffect:et,useLayoutEffect:et,useMemo:et,useReducer:et,useRef:et,useState:et,useDebugValue:et,useDeferredValue:et,useTransition:et,useMutableSource:et,useSyncExternalStore:et,useId:et,unstable_isNewReconciler:!1},Fd={readContext:Ct,useCallback:function(e,t){return Kt().memoizedState=[e,t===void 0?null:t],e},useContext:Ct,useEffect:Ma,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Pi(4194308,4,Ia.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Pi(4194308,4,e,t)},useInsertionEffect:function(e,t){return Pi(4,2,e,t)},useMemo:function(e,t){var n=Kt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Kt();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=Dd.bind(null,Me,e),[r.memoizedState,e]},useRef:function(e){var t=Kt();return e={current:e},t.memoizedState=e},useState:Pa,useDebugValue:ds,useDeferredValue:function(e){return Kt().memoizedState=e},useTransition:function(){var e=Pa(!1),t=e[0];return e=Id.bind(null,e[1]),Kt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Me,l=Kt();if(Pe){if(n===void 0)throw Error(o(407));n=n()}else{if(n=t(),Ge===null)throw Error(o(349));or&30||Ta(r,t,n)}l.memoizedState=n;var i={value:n,getSnapshot:t};return l.queue=i,Ma(Ra.bind(null,r,i,e),[e]),r.flags|=2048,El(9,Ca.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Kt(),t=Ge.identifierPrefix;if(Pe){var n=un,r=sn;n=(r&~(1<<32-It(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=xl++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=u.createElement(n,{is:r.is}):(e=u.createElement(n),n==="select"&&(u=e,r.multiple?u.multiple=!0:r.size&&(u.size=r.size))):e=u.createElementNS(e,n),e[Yt]=t,e[hl]=r,ac(e,t,!1,!1),t.stateNode=e;e:{switch(u=Kn(n,r),n){case"dialog":Re("cancel",e),Re("close",e),l=r;break;case"iframe":case"object":case"embed":Re("load",e),l=r;break;case"video":case"audio":for(l=0;lWr&&(t.flags|=128,r=!0,_l(i,!1),t.lanes=4194304)}else{if(!r)if(e=Ri(u),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),_l(i,!0),i.tail===null&&i.tailMode==="hidden"&&!u.alternate&&!Pe)return tt(t),null}else 2*le()-i.renderingStartTime>Wr&&n!==1073741824&&(t.flags|=128,r=!0,_l(i,!1),t.lanes=4194304);i.isBackwards?(u.sibling=t.child,t.child=u):(n=i.last,n!==null?n.sibling=u:t.child=u,i.last=u)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=le(),t.sibling=null,n=Ae.current,Ce(Ae,r?n&1|2:n&1),t):(tt(t),null);case 22:case 23:return Ds(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?kt&1073741824&&(tt(t),t.subtreeFlags&6&&(t.flags|=8192)):tt(t),null;case 24:return null;case 25:return null}throw Error(o(156,t.tag))}function Gd(e,t){switch(Qo(t),t.tag){case 1:return ft(t.type)&&gi(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ur(),Ne(ct),Ne(Je),ls(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return ns(t),null;case 13:if(Ne(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 Ne(Ae),null;case 4:return Ur(),null;case 10:return bo(t.type._context),null;case 22:case 23:return Ds(),null;case 24:return null;default:return null}}var Di=!1,nt=!1,Yd=typeof WeakSet=="function"?WeakSet:Set,$=null;function Br(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Oe(e,t,r)}else n.current=null}function _s(e,t,n){try{n()}catch(r){Oe(e,t,r)}}var dc=!1;function Xd(e,t){if(Do=ni,e=Vu(),No(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var l=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var u=0,c=-1,h=-1,E=0,N=0,P=e,R=null;t:for(;;){for(var F;P!==n||l!==0&&P.nodeType!==3||(c=u+l),P!==i||r!==0&&P.nodeType!==3||(h=u+r),P.nodeType===3&&(u+=P.nodeValue.length),(F=P.firstChild)!==null;)R=P,P=F;for(;;){if(P===e)break t;if(R===n&&++E===l&&(c=u),R===i&&++N===r&&(h=u),(F=P.nextSibling)!==null)break;P=R,R=P.parentNode}P=F}n=c===-1||h===-1?null:{start:c,end:h}}else n=null}n=n||{start:0,end:0}}else n=null;for(jo={focusedElem:e,selectionRange:n},ni=!1,$=t;$!==null;)if(t=$,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,$=e;else for(;$!==null;){t=$;try{var B=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(B!==null){var W=B.memoizedProps,Fe=B.memoizedState,w=t.stateNode,m=w.getSnapshotBeforeUpdate(t.elementType===t.type?W:Ft(t.type,W),Fe);w.__reactInternalSnapshotBeforeUpdate=m}break;case 3:var x=t.stateNode.containerInfo;x.nodeType===1?x.textContent="":x.nodeType===9&&x.documentElement&&x.removeChild(x.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(o(163))}}catch(z){Oe(t,t.return,z)}if(e=t.sibling,e!==null){e.return=t.return,$=e;break}$=t.return}return B=dc,dc=!1,B}function Tl(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&&_s(t,n,i)}l=l.next}while(l!==r)}}function ji(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 Ts(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 pc(e){var t=e.alternate;t!==null&&(e.alternate=null,pc(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Yt],delete t[hl],delete t[Bo],delete t[Pd],delete t[Ad])),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 hc(e){return e.tag===5||e.tag===3||e.tag===4}function mc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||hc(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 Cs(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=hi));else if(r!==4&&(e=e.child,e!==null))for(Cs(e,t,n),e=e.sibling;e!==null;)Cs(e,t,n),e=e.sibling}function Rs(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(Rs(e,t,n),e=e.sibling;e!==null;)Rs(e,t,n),e=e.sibling}var Ke=null,Ut=!1;function Dn(e,t,n){for(n=n.child;n!==null;)gc(e,t,n),n=n.sibling}function gc(e,t,n){if(Gt&&typeof Gt.onCommitFiberUnmount=="function")try{Gt.onCommitFiberUnmount(Zl,n)}catch{}switch(n.tag){case 5:nt||Br(n,t);case 6:var r=Ke,l=Ut;Ke=null,Dn(e,t,n),Ke=r,Ut=l,Ke!==null&&(Ut?(e=Ke,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ke.removeChild(n.stateNode));break;case 18:Ke!==null&&(Ut?(e=Ke,n=n.stateNode,e.nodeType===8?$o(e.parentNode,n):e.nodeType===1&&$o(e,n),rl(e)):$o(Ke,n.stateNode));break;case 4:r=Ke,l=Ut,Ke=n.stateNode.containerInfo,Ut=!0,Dn(e,t,n),Ke=r,Ut=l;break;case 0:case 11:case 14:case 15:if(!nt&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var i=l,u=i.destroy;i=i.tag,u!==void 0&&(i&2||i&4)&&_s(n,t,u),l=l.next}while(l!==r)}Dn(e,t,n);break;case 1:if(!nt&&(Br(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(c){Oe(n,t,c)}Dn(e,t,n);break;case 21:Dn(e,t,n);break;case 22:n.mode&1?(nt=(r=nt)||n.memoizedState!==null,Dn(e,t,n),nt=r):Dn(e,t,n);break;default:Dn(e,t,n)}}function yc(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 $t(e,t){var n=t.deletions;if(n!==null)for(var r=0;rl&&(l=u),r&=~i}if(r=l,r=le()-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,Fn===null)var r=!1;else{if(e=Fn,Fn=null,Hi=0,ae&6)throw Error(o(331));var l=ae;for(ae|=4,$=e.current;$!==null;){var i=$,u=i.child;if($.flags&16){var c=i.deletions;if(c!==null){for(var h=0;hle()-Ps?ar(e,0):Ls|=n),ht(e,t)}function Pc(e,t){t===0&&(e.mode&1?(t=ql,ql<<=1,!(ql&130023424)&&(ql=4194304)):t=1);var n=lt();e=an(e,t),e!==null&&(qr(e,t,n),ht(e,n))}function np(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Pc(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),Pc(e,n)}var Ac;Ac=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ct.current)dt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return dt=!1,Vd(e,t,n);dt=!!(e.flags&131072)}else dt=!1,Pe&&t.flags&1048576&&ca(t,wi,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ii(e,t),e=t.pendingProps;var l=Mr(t,Je.current);Fr(t,n),l=ss(null,t,r,e,l,n);var i=us();return t.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,ft(r)?(i=!0,yi(t)):i=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,es(t),l.updater=zi,t.stateNode=l,l._reactInternals=t,hs(t,r,e,n),t=vs(null,t,r,!0,i,n)):(t.tag=0,Pe&&i&&Vo(t),rt(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ii(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=ip(r),e=Ft(r,e),l){case 0:t=ys(null,t,r,e,n);break e;case 1:t=rc(null,t,r,e,n);break e;case 11:t=qa(null,t,r,e,n);break e;case 14:t=Ja(null,t,r,Ft(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:Ft(r,l),ys(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ft(r,l),rc(e,t,r,l,n);case 3:e:{if(lc(t),e===null)throw Error(o(387));r=t.pendingProps,i=t.memoizedState,l=i.element,ka(e,t),Ci(t,r,null,n);var u=t.memoizedState;if(r=u.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:u.cache,pendingSuspenseBoundaries:u.pendingSuspenseBoundaries,transitions:u.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){l=$r(Error(o(423)),t),t=ic(e,t,r,n,l);break e}else if(r!==l){l=$r(Error(o(424)),t),t=ic(e,t,r,n,l);break e}else for(vt=Pn(t.stateNode.containerInfo.firstChild),yt=t,Pe=!0,jt=null,n=ya(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Ir(),r===l){t=fn(e,t,n);break e}rt(e,t,r,n)}t=t.child}return t;case 5:return Sa(t),e===null&&Yo(t),r=t.type,l=t.pendingProps,i=e!==null?e.memoizedProps:null,u=l.children,Fo(r,l)?u=null:i!==null&&Fo(r,i)&&(t.flags|=32),nc(e,t),rt(e,t,u,n),t.child;case 6:return e===null&&Yo(t),null;case 13:return oc(e,t,n);case 4:return ts(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Dr(t,null,r,n):rt(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ft(r,l),qa(e,t,r,l,n);case 7:return rt(e,t,t.pendingProps,n),t.child;case 8:return rt(e,t,t.pendingProps.children,n),t.child;case 12:return rt(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,l=t.pendingProps,i=t.memoizedProps,u=l.value,Ce(Ei,r._currentValue),r._currentValue=u,i!==null)if(Dt(i.value,u)){if(i.children===l.children&&!ct.current){t=fn(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var c=i.dependencies;if(c!==null){u=i.child;for(var h=c.firstContext;h!==null;){if(h.context===r){if(i.tag===1){h=cn(-1,n&-n),h.tag=2;var E=i.updateQueue;if(E!==null){E=E.shared;var N=E.pending;N===null?h.next=h:(h.next=N.next,N.next=h),E.pending=h}}i.lanes|=n,h=i.alternate,h!==null&&(h.lanes|=n),qo(i.return,n,t),c.lanes|=n;break}h=h.next}}else if(i.tag===10)u=i.type===t.type?null:i.child;else if(i.tag===18){if(u=i.return,u===null)throw Error(o(341));u.lanes|=n,c=u.alternate,c!==null&&(c.lanes|=n),qo(u,n,t),u=i.sibling}else u=i.child;if(u!==null)u.return=i;else for(u=i;u!==null;){if(u===t){u=null;break}if(i=u.sibling,i!==null){i.return=u.return,u=i;break}u=u.return}i=u}rt(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,Fr(t,n),l=Ct(l),r=r(l),t.flags|=1,rt(e,t,r,n),t.child;case 14:return r=t.type,l=Ft(r,t.pendingProps),l=Ft(r.type,l),Ja(e,t,r,l,n);case 15:return ec(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ft(r,l),Ii(e,t),t.tag=1,ft(r)?(e=!0,yi(t)):e=!1,Fr(t,n),Qa(t,r,l),hs(t,r,l,n),vs(null,t,r,!0,e,n);case 19:return uc(e,t,n);case 22:return tc(e,t,n)}throw Error(o(156,t.tag))};function Mc(e,t){return M(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 Lt(e,t,n,r){return new lp(e,t,n,r)}function Fs(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ip(e){if(typeof e=="function")return Fs(e)?1:0;if(e!=null){if(e=e.$$typeof,e===ze)return 11;if(e===ut)return 14}return 2}function Bn(e,t){var n=e.alternate;return n===null?(n=Lt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Gi(e,t,n,r,l,i){var u=2;if(r=e,typeof e=="function")Fs(e)&&(u=1);else if(typeof e=="string")u=5;else e:switch(e){case _e:return fr(n.children,l,i,t);case Q:u=8,l|=8;break;case Ie:return e=Lt(12,n,t,l|2),e.elementType=Ie,e.lanes=i,e;case Be:return e=Lt(13,n,t,l),e.elementType=Be,e.lanes=i,e;case Xe:return e=Lt(19,n,t,l),e.elementType=Xe,e.lanes=i,e;case ke:return Yi(n,l,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Le:u=10;break e;case ue:u=9;break e;case ze:u=11;break e;case ut:u=14;break e;case De:u=16,r=null;break e}throw Error(o(130,e==null?e:typeof e,""))}return t=Lt(u,n,t,l),t.elementType=e,t.type=r,t.lanes=i,t}function fr(e,t,n,r){return e=Lt(7,e,r,t),e.lanes=n,e}function Yi(e,t,n,r){return e=Lt(22,e,r,t),e.elementType=ke,e.lanes=n,e.stateNode={isHidden:!1},e}function Us(e,t,n){return e=Lt(6,e,null,t),e.lanes=n,e}function $s(e,t,n){return t=Lt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function 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=po(0),this.expirationTimes=po(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=po(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function Bs(e,t,n,r,l,i,u,c,h){return e=new op(e,t,n,c,h),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Lt(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},es(i),e}function sp(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(d)}catch(s){console.error(s)}}return d(),Ys.exports=wp(),Ys.exports}var Gc;function Sp(){if(Gc)return eo;Gc=1;var d=xp();return eo.createRoot=d.createRoot,eo.hydrateRoot=d.hydrateRoot,eo}var Ep=Sp();function su(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}let hr=su();function hf(d){hr=d}const Bl={exec:()=>null};function xe(d,s=""){let o=typeof d=="string"?d:d.source;const a={replace:(f,p)=>{let y=typeof p=="string"?p:p.source;return y=y.replace(ot.caret,"$1"),o=o.replace(f,y),a},getRegex:()=>new RegExp(o,s)};return a}const ot={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:d=>new RegExp(`^( {0,3}${d})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:d=>new RegExp(`^ {0,${Math.min(3,d-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:d=>new RegExp(`^ {0,${Math.min(3,d-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:d=>new RegExp(`^ {0,${Math.min(3,d-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:d=>new RegExp(`^ {0,${Math.min(3,d-1)}}#`),htmlBeginRegex:d=>new RegExp(`^ {0,${Math.min(3,d-1)}}<(?:[a-z].*>|!--)`,"i")},_p=/^(?:[ \t]*(?:\n|$))+/,Tp=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Cp=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Wl=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Rp=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,mf=/(?:[*+-]|\d{1,9}[.)])/,gf=xe(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,mf).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).getRegex(),uu=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Np=/^[^\n]+/,au=/(?!\s*\])(?:\\.|[^\[\]\\])+/,Lp=xe(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",au).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Pp=xe(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,mf).getRegex(),uo="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",cu=/|$))/,Ap=xe("^ {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",cu).replace("tag",uo).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),yf=xe(uu).replace("hr",Wl).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",uo).getRegex(),Mp=xe(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",yf).getRegex(),fu={blockquote:Mp,code:Tp,def:Lp,fences:Cp,heading:Rp,hr:Wl,html:Ap,lheading:gf,list:Pp,newline:_p,paragraph:yf,table:Bl,text:Np},Yc=xe("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Wl).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",uo).getRegex(),zp={...fu,table:Yc,paragraph:xe(uu).replace("hr",Wl).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Yc).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",uo).getRegex()},Op={...fu,html:xe(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",cu).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:Bl,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:xe(uu).replace("hr",Wl).replace("heading",` *#{1,6} *[^ ]`).replace("lheading",gf).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Ip=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Dp=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,vf=/^( {2,}|\\)\n(?!\s*$)/,jp=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\]*?>/g,Wp=xe(/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,"u").replace(/punct/g,ao).getRegex(),wf="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Vp=xe(wf,"gu").replace(/notPunctSpace/g,kf).replace(/punctSpace/g,du).replace(/punct/g,ao).getRegex(),Qp=xe(wf,"gu").replace(/notPunctSpace/g,Bp).replace(/punctSpace/g,$p).replace(/punct/g,Up).getRegex(),Gp=xe("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,kf).replace(/punctSpace/g,du).replace(/punct/g,ao).getRegex(),Yp=xe(/\\(punct)/,"gu").replace(/punct/g,ao).getRegex(),Xp=xe(/^<(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(),Kp=xe(cu).replace("(?:-->|$)","-->").getRegex(),Zp=xe("^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^").replace("comment",Kp).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),io=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,bp=xe(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",io).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),xf=xe(/^!?\[(label)\]\[(ref)\]/).replace("label",io).replace("ref",au).getRegex(),Sf=xe(/^!?\[(ref)\](?:\[\])?/).replace("ref",au).getRegex(),qp=xe("reflink|nolink(?!\\()","g").replace("reflink",xf).replace("nolink",Sf).getRegex(),pu={_backpedal:Bl,anyPunctuation:Yp,autolink:Xp,blockSkip:Hp,br:vf,code:Dp,del:Bl,emStrongLDelim:Wp,emStrongRDelimAst:Vp,emStrongRDelimUnd:Gp,escape:Ip,link:bp,nolink:Sf,punctuation:Fp,reflink:xf,reflinkSearch:qp,tag:Zp,text:jp,url:Bl},Jp={...pu,link:xe(/^!?\[(label)\]\((.*?)\)/).replace("label",io).getRegex(),reflink:xe(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",io).getRegex()},tu={...pu,emStrongRDelimAst:Qp,url:xe(/^((?: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~\\]))\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\":">",'"':""","'":"'"},Xc=d=>th[d];function bt(d,s){if(s){if(ot.escapeTest.test(d))return d.replace(ot.escapeReplace,Xc)}else if(ot.escapeTestNoEncode.test(d))return d.replace(ot.escapeReplaceNoEncode,Xc);return d}function Kc(d){try{d=encodeURI(d).replace(ot.percentDecode,"%")}catch{return null}return d}function Zc(d,s){var p;const o=d.replace(ot.findPipe,(y,k,_)=>{let T=!1,S=k;for(;--S>=0&&_[S]==="\\";)T=!T;return T?"|":" |"}),a=o.split(ot.splitPipe);let f=0;if(a[0].trim()||a.shift(),a.length>0&&!((p=a.at(-1))!=null&&p.trim())&&a.pop(),s)if(a.length>s)a.splice(s);else for(;a.length{const y=p.match(o.other.beginningSpace);if(y===null)return p;const[k]=y;return k.length>=f.length?p.slice(f.length):p}).join(` `)}class oo{constructor(s){Se(this,"options");Se(this,"rules");Se(this,"lexer");this.options=s||hr}space(s){const o=this.rules.block.newline.exec(s);if(o&&o[0].length>0)return{type:"space",raw:o[0]}}code(s){const o=this.rules.block.code.exec(s);if(o){const a=o[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:o[0],codeBlockStyle:"indented",text:this.options.pedantic?a:Ml(a,` `)}}}fences(s){const o=this.rules.block.fences.exec(s);if(o){const a=o[0],f=rh(a,o[3]||"",this.rules);return{type:"code",raw:a,lang:o[2]?o[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):o[2],text:f}}}heading(s){const o=this.rules.block.heading.exec(s);if(o){let a=o[2].trim();if(this.rules.other.endingHash.test(a)){const f=Ml(a,"#");(this.options.pedantic||!f||this.rules.other.endingSpaceChar.test(f))&&(a=f.trim())}return{type:"heading",raw:o[0],depth:o[1].length,text:a,tokens:this.lexer.inline(a)}}}hr(s){const o=this.rules.block.hr.exec(s);if(o)return{type:"hr",raw:Ml(o[0],` `)}}blockquote(s){const o=this.rules.block.blockquote.exec(s);if(o){let a=Ml(o[0],` `).split(` `),f="",p="";const y=[];for(;a.length>0;){let k=!1;const _=[];let T;for(T=0;T1,p={type:"list",raw:"",ordered:f,start:f?+a.slice(0,-1):"",loose:!1,items:[]};a=f?`\\d{1,9}\\${a.slice(-1)}`:`\\${a}`,this.options.pedantic&&(a=f?a:"[*+-]");const y=this.rules.other.listItemRegex(a);let k=!1;for(;s;){let T=!1,S="",O="";if(!(o=y.exec(s))||this.rules.block.hr.test(s))break;S=o[0],s=s.substring(S.length);let A=o[2].split(` `,1)[0].replace(this.rules.other.listReplaceTabs,ge=>" ".repeat(3*ge.length)),I=s.split(` `,1)[0],G=!A.trim(),j=0;if(this.options.pedantic?(j=2,O=A.trimStart()):G?j=o[1].length+1:(j=o[2].search(this.rules.other.nonSpaceChar),j=j>4?1:j,O=A.slice(j),j+=o[1].length),G&&this.rules.other.blankLine.test(I)&&(S+=I+` `,s=s.substring(I.length+1),T=!0),!T){const ge=this.rules.other.nextBulletRegex(j),Ee=this.rules.other.hrRegex(j),te=this.rules.other.fencesBeginRegex(j),fe=this.rules.other.headingBeginRegex(j),ne=this.rules.other.htmlBeginRegex(j);for(;s;){const _e=s.split(` `,1)[0];let Q;if(I=_e,this.options.pedantic?(I=I.replace(this.rules.other.listReplaceNesting," "),Q=I):Q=I.replace(this.rules.other.tabCharGlobal," "),te.test(I)||fe.test(I)||ne.test(I)||ge.test(I)||Ee.test(I))break;if(Q.search(this.rules.other.nonSpaceChar)>=j||!I.trim())O+=` `+Q.slice(j);else{if(G||A.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||te.test(A)||fe.test(A)||Ee.test(A))break;O+=` `+I}!G&&!I.trim()&&(G=!0),S+=_e+` `,s=s.substring(_e.length+1),A=Q.slice(j)}}p.loose||(k?p.loose=!0:this.rules.other.doubleBlankLine.test(S)&&(k=!0));let K=null,ce;this.options.gfm&&(K=this.rules.other.listIsTask.exec(O),K&&(ce=K[0]!=="[ ] ",O=O.replace(this.rules.other.listReplaceTask,""))),p.items.push({type:"list_item",raw:S,task:!!K,checked:ce,loose:!1,text:O,tokens:[]}),p.raw+=S}const _=p.items.at(-1);if(_)_.raw=_.raw.trimEnd(),_.text=_.text.trimEnd();else return;p.raw=p.raw.trimEnd();for(let T=0;TA.type==="space"),O=S.length>0&&S.some(A=>this.rules.other.anyLine.test(A.raw));p.loose=O}if(p.loose)for(let T=0;T({text:T,tokens:this.lexer.inline(T),header:!1,align:y.align[S]})));return y}}lheading(s){const o=this.rules.block.lheading.exec(s);if(o)return{type:"heading",raw:o[0],depth:o[2].charAt(0)==="="?1:2,text:o[1],tokens:this.lexer.inline(o[1])}}paragraph(s){const o=this.rules.block.paragraph.exec(s);if(o){const a=o[1].charAt(o[1].length-1)===` `?o[1].slice(0,-1):o[1];return{type:"paragraph",raw:o[0],text:a,tokens:this.lexer.inline(a)}}}text(s){const o=this.rules.block.text.exec(s);if(o)return{type:"text",raw:o[0],text:o[0],tokens:this.lexer.inline(o[0])}}escape(s){const o=this.rules.inline.escape.exec(s);if(o)return{type:"escape",raw:o[0],text:o[1]}}tag(s){const o=this.rules.inline.tag.exec(s);if(o)return!this.lexer.state.inLink&&this.rules.other.startATag.test(o[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(o[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(o[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(o[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:o[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:o[0]}}link(s){const o=this.rules.inline.link.exec(s);if(o){const a=o[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(a)){if(!this.rules.other.endAngleBracket.test(a))return;const y=Ml(a.slice(0,-1),"\\");if((a.length-y.length)%2===0)return}else{const y=nh(o[2],"()");if(y>-1){const _=(o[0].indexOf("!")===0?5:4)+o[1].length+y;o[2]=o[2].substring(0,y),o[0]=o[0].substring(0,_).trim(),o[3]=""}}let f=o[2],p="";if(this.options.pedantic){const y=this.rules.other.pedanticHrefTitle.exec(f);y&&(f=y[1],p=y[3])}else p=o[3]?o[3].slice(1,-1):"";return f=f.trim(),this.rules.other.startAngleBracket.test(f)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(a)?f=f.slice(1):f=f.slice(1,-1)),bc(o,{href:f&&f.replace(this.rules.inline.anyPunctuation,"$1"),title:p&&p.replace(this.rules.inline.anyPunctuation,"$1")},o[0],this.lexer,this.rules)}}reflink(s,o){let a;if((a=this.rules.inline.reflink.exec(s))||(a=this.rules.inline.nolink.exec(s))){const f=(a[2]||a[1]).replace(this.rules.other.multipleSpaceGlobal," "),p=o[f.toLowerCase()];if(!p){const y=a[0].charAt(0);return{type:"text",raw:y,text:y}}return bc(a,p,a[0],this.lexer,this.rules)}}emStrong(s,o,a=""){let f=this.rules.inline.emStrongLDelim.exec(s);if(!f||f[3]&&a.match(this.rules.other.unicodeAlphaNumeric))return;if(!(f[1]||f[2]||"")||!a||this.rules.inline.punctuation.exec(a)){const y=[...f[0]].length-1;let k,_,T=y,S=0;const O=f[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(O.lastIndex=0,o=o.slice(-1*s.length+y);(f=O.exec(o))!=null;){if(k=f[1]||f[2]||f[3]||f[4]||f[5]||f[6],!k)continue;if(_=[...k].length,f[3]||f[4]){T+=_;continue}else if((f[5]||f[6])&&y%3&&!((y+_)%3)){S+=_;continue}if(T-=_,T>0)continue;_=Math.min(_,_+T+S);const A=[...f[0]][0].length,I=s.slice(0,y+f.index+A+_);if(Math.min(y,_)%2){const j=I.slice(1,-1);return{type:"em",raw:I,text:j,tokens:this.lexer.inlineTokens(j)}}const G=I.slice(2,-2);return{type:"strong",raw:I,text:G,tokens:this.lexer.inlineTokens(G)}}}}codespan(s){const o=this.rules.inline.code.exec(s);if(o){let a=o[2].replace(this.rules.other.newLineCharGlobal," ");const f=this.rules.other.nonSpaceChar.test(a),p=this.rules.other.startingSpaceChar.test(a)&&this.rules.other.endingSpaceChar.test(a);return f&&p&&(a=a.substring(1,a.length-1)),{type:"codespan",raw:o[0],text:a}}}br(s){const o=this.rules.inline.br.exec(s);if(o)return{type:"br",raw:o[0]}}del(s){const o=this.rules.inline.del.exec(s);if(o)return{type:"del",raw:o[0],text:o[2],tokens:this.lexer.inlineTokens(o[2])}}autolink(s){const o=this.rules.inline.autolink.exec(s);if(o){let a,f;return o[2]==="@"?(a=o[1],f="mailto:"+a):(a=o[1],f=a),{type:"link",raw:o[0],text:a,href:f,tokens:[{type:"text",raw:a,text:a}]}}}url(s){var a;let o;if(o=this.rules.inline.url.exec(s)){let f,p;if(o[2]==="@")f=o[0],p="mailto:"+f;else{let y;do y=o[0],o[0]=((a=this.rules.inline._backpedal.exec(o[0]))==null?void 0:a[0])??"";while(y!==o[0]);f=o[0],o[1]==="www."?p="http://"+o[0]:p=o[0]}return{type:"link",raw:o[0],text:f,href:p,tokens:[{type:"text",raw:f,text:f}]}}}inlineText(s){const o=this.rules.inline.text.exec(s);if(o){const a=this.lexer.state.inRawBlock;return{type:"text",raw:o[0],text:o[0],escaped:a}}}}class Pt{constructor(s){Se(this,"tokens");Se(this,"options");Se(this,"state");Se(this,"tokenizer");Se(this,"inlineQueue");this.tokens=[],this.tokens.links=Object.create(null),this.options=s||hr,this.options.tokenizer=this.options.tokenizer||new oo,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const o={other:ot,block:to.normal,inline:Al.normal};this.options.pedantic?(o.block=to.pedantic,o.inline=Al.pedantic):this.options.gfm&&(o.block=to.gfm,this.options.breaks?o.inline=Al.breaks:o.inline=Al.gfm),this.tokenizer.rules=o}static get rules(){return{block:to,inline:Al}}static lex(s,o){return new Pt(o).lex(s)}static lexInline(s,o){return new Pt(o).inlineTokens(s)}lex(s){s=s.replace(ot.carriageReturn,` `),this.blockTokens(s,this.tokens);for(let o=0;o(k=T.call({lexer:this},s,o))?(s=s.substring(k.raw.length),o.push(k),!0):!1))continue;if(k=this.tokenizer.space(s)){s=s.substring(k.raw.length);const T=o.at(-1);k.raw.length===1&&T!==void 0?T.raw+=` `:o.push(k);continue}if(k=this.tokenizer.code(s)){s=s.substring(k.raw.length);const T=o.at(-1);(T==null?void 0:T.type)==="paragraph"||(T==null?void 0:T.type)==="text"?(T.raw+=` `+k.raw,T.text+=` `+k.text,this.inlineQueue.at(-1).src=T.text):o.push(k);continue}if(k=this.tokenizer.fences(s)){s=s.substring(k.raw.length),o.push(k);continue}if(k=this.tokenizer.heading(s)){s=s.substring(k.raw.length),o.push(k);continue}if(k=this.tokenizer.hr(s)){s=s.substring(k.raw.length),o.push(k);continue}if(k=this.tokenizer.blockquote(s)){s=s.substring(k.raw.length),o.push(k);continue}if(k=this.tokenizer.list(s)){s=s.substring(k.raw.length),o.push(k);continue}if(k=this.tokenizer.html(s)){s=s.substring(k.raw.length),o.push(k);continue}if(k=this.tokenizer.def(s)){s=s.substring(k.raw.length);const T=o.at(-1);(T==null?void 0:T.type)==="paragraph"||(T==null?void 0:T.type)==="text"?(T.raw+=` `+k.raw,T.text+=` `+k.raw,this.inlineQueue.at(-1).src=T.text):this.tokens.links[k.tag]||(this.tokens.links[k.tag]={href:k.href,title:k.title});continue}if(k=this.tokenizer.table(s)){s=s.substring(k.raw.length),o.push(k);continue}if(k=this.tokenizer.lheading(s)){s=s.substring(k.raw.length),o.push(k);continue}let _=s;if((y=this.options.extensions)!=null&&y.startBlock){let T=1/0;const S=s.slice(1);let O;this.options.extensions.startBlock.forEach(A=>{O=A.call({lexer:this},S),typeof O=="number"&&O>=0&&(T=Math.min(T,O))}),T<1/0&&T>=0&&(_=s.substring(0,T+1))}if(this.state.top&&(k=this.tokenizer.paragraph(_))){const T=o.at(-1);a&&(T==null?void 0:T.type)==="paragraph"?(T.raw+=` `+k.raw,T.text+=` `+k.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=T.text):o.push(k),a=_.length!==s.length,s=s.substring(k.raw.length);continue}if(k=this.tokenizer.text(s)){s=s.substring(k.raw.length);const T=o.at(-1);(T==null?void 0:T.type)==="text"?(T.raw+=` `+k.raw,T.text+=` `+k.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=T.text):o.push(k);continue}if(s){const T="Infinite loop on byte: "+s.charCodeAt(0);if(this.options.silent){console.error(T);break}else throw new Error(T)}}return this.state.top=!0,o}inline(s,o=[]){return this.inlineQueue.push({src:s,tokens:o}),o}inlineTokens(s,o=[]){var k,_,T;let a=s,f=null;if(this.tokens.links){const S=Object.keys(this.tokens.links);if(S.length>0)for(;(f=this.tokenizer.rules.inline.reflinkSearch.exec(a))!=null;)S.includes(f[0].slice(f[0].lastIndexOf("[")+1,-1))&&(a=a.slice(0,f.index)+"["+"a".repeat(f[0].length-2)+"]"+a.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(f=this.tokenizer.rules.inline.blockSkip.exec(a))!=null;)a=a.slice(0,f.index)+"["+"a".repeat(f[0].length-2)+"]"+a.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(f=this.tokenizer.rules.inline.anyPunctuation.exec(a))!=null;)a=a.slice(0,f.index)+"++"+a.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let p=!1,y="";for(;s;){p||(y=""),p=!1;let S;if((_=(k=this.options.extensions)==null?void 0:k.inline)!=null&&_.some(A=>(S=A.call({lexer:this},s,o))?(s=s.substring(S.raw.length),o.push(S),!0):!1))continue;if(S=this.tokenizer.escape(s)){s=s.substring(S.raw.length),o.push(S);continue}if(S=this.tokenizer.tag(s)){s=s.substring(S.raw.length),o.push(S);continue}if(S=this.tokenizer.link(s)){s=s.substring(S.raw.length),o.push(S);continue}if(S=this.tokenizer.reflink(s,this.tokens.links)){s=s.substring(S.raw.length);const A=o.at(-1);S.type==="text"&&(A==null?void 0:A.type)==="text"?(A.raw+=S.raw,A.text+=S.text):o.push(S);continue}if(S=this.tokenizer.emStrong(s,a,y)){s=s.substring(S.raw.length),o.push(S);continue}if(S=this.tokenizer.codespan(s)){s=s.substring(S.raw.length),o.push(S);continue}if(S=this.tokenizer.br(s)){s=s.substring(S.raw.length),o.push(S);continue}if(S=this.tokenizer.del(s)){s=s.substring(S.raw.length),o.push(S);continue}if(S=this.tokenizer.autolink(s)){s=s.substring(S.raw.length),o.push(S);continue}if(!this.state.inLink&&(S=this.tokenizer.url(s))){s=s.substring(S.raw.length),o.push(S);continue}let O=s;if((T=this.options.extensions)!=null&&T.startInline){let A=1/0;const I=s.slice(1);let G;this.options.extensions.startInline.forEach(j=>{G=j.call({lexer:this},I),typeof G=="number"&&G>=0&&(A=Math.min(A,G))}),A<1/0&&A>=0&&(O=s.substring(0,A+1))}if(S=this.tokenizer.inlineText(O)){s=s.substring(S.raw.length),S.raw.slice(-1)!=="_"&&(y=S.raw.slice(-1)),p=!0;const A=o.at(-1);(A==null?void 0:A.type)==="text"?(A.raw+=S.raw,A.text+=S.text):o.push(S);continue}if(s){const A="Infinite loop on byte: "+s.charCodeAt(0);if(this.options.silent){console.error(A);break}else throw new Error(A)}}return o}}class so{constructor(s){Se(this,"options");Se(this,"parser");this.options=s||hr}space(s){return""}code({text:s,lang:o,escaped:a}){var y;const f=(y=(o||"").match(ot.notSpaceStart))==null?void 0:y[0],p=s.replace(ot.endingNewline,"")+` `;return f?'
'+(a?p:bt(p,!0))+`
`:"
"+(a?p:bt(p,!0))+`
`}blockquote({tokens:s}){return`
${this.parser.parse(s)}
`}html({text:s}){return s}heading({tokens:s,depth:o}){return`${this.parser.parseInline(s)} `}hr(s){return`
`}list(s){const o=s.ordered,a=s.start;let f="";for(let k=0;k `+f+" `}listitem(s){var a;let o="";if(s.task){const f=this.checkbox({checked:!!s.checked});s.loose?((a=s.tokens[0])==null?void 0:a.type)==="paragraph"?(s.tokens[0].text=f+" "+s.tokens[0].text,s.tokens[0].tokens&&s.tokens[0].tokens.length>0&&s.tokens[0].tokens[0].type==="text"&&(s.tokens[0].tokens[0].text=f+" "+bt(s.tokens[0].tokens[0].text),s.tokens[0].tokens[0].escaped=!0)):s.tokens.unshift({type:"text",raw:f+" ",text:f+" ",escaped:!0}):o+=f+" "}return o+=this.parser.parse(s.tokens,!!s.loose),`
  • ${o}
  • `}checkbox({checked:s}){return"'}paragraph({tokens:s}){return`

    ${this.parser.parseInline(s)}

    `}table(s){let o="",a="";for(let p=0;p${f}`),` `+o+` `+f+`
    `}tablerow({text:s}){return` ${s} `}tablecell(s){const o=this.parser.parseInline(s.tokens),a=s.header?"th":"td";return(s.align?`<${a} align="${s.align}">`:`<${a}>`)+o+` `}strong({tokens:s}){return`${this.parser.parseInline(s)}`}em({tokens:s}){return`${this.parser.parseInline(s)}`}codespan({text:s}){return`${bt(s,!0)}`}br(s){return"
    "}del({tokens:s}){return`${this.parser.parseInline(s)}`}link({href:s,title:o,tokens:a}){const f=this.parser.parseInline(a),p=Kc(s);if(p===null)return f;s=p;let y='
    ",y}image({href:s,title:o,text:a}){const f=Kc(s);if(f===null)return bt(a);s=f;let p=`${a}{const T=k[_].flat(1/0);a=a.concat(this.walkTokens(T,o))}):k.tokens&&(a=a.concat(this.walkTokens(k.tokens,o)))}}return a}use(...s){const o=this.defaults.extensions||{renderers:{},childTokens:{}};return s.forEach(a=>{const f={...a};if(f.async=this.defaults.async||f.async||!1,a.extensions&&(a.extensions.forEach(p=>{if(!p.name)throw new Error("extension name required");if("renderer"in p){const y=o.renderers[p.name];y?o.renderers[p.name]=function(...k){let _=p.renderer.apply(this,k);return _===!1&&(_=y.apply(this,k)),_}:o.renderers[p.name]=p.renderer}if("tokenizer"in p){if(!p.level||p.level!=="block"&&p.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const y=o[p.level];y?y.unshift(p.tokenizer):o[p.level]=[p.tokenizer],p.start&&(p.level==="block"?o.startBlock?o.startBlock.push(p.start):o.startBlock=[p.start]:p.level==="inline"&&(o.startInline?o.startInline.push(p.start):o.startInline=[p.start]))}"childTokens"in p&&p.childTokens&&(o.childTokens[p.name]=p.childTokens)}),f.extensions=o),a.renderer){const p=this.defaults.renderer||new so(this.defaults);for(const y in a.renderer){if(!(y in p))throw new Error(`renderer '${y}' does not exist`);if(["options","parser"].includes(y))continue;const k=y,_=a.renderer[k],T=p[k];p[k]=(...S)=>{let O=_.apply(p,S);return O===!1&&(O=T.apply(p,S)),O||""}}f.renderer=p}if(a.tokenizer){const p=this.defaults.tokenizer||new oo(this.defaults);for(const y in a.tokenizer){if(!(y in p))throw new Error(`tokenizer '${y}' does not exist`);if(["options","rules","lexer"].includes(y))continue;const k=y,_=a.tokenizer[k],T=p[k];p[k]=(...S)=>{let O=_.apply(p,S);return O===!1&&(O=T.apply(p,S)),O}}f.tokenizer=p}if(a.hooks){const p=this.defaults.hooks||new Hl;for(const y in a.hooks){if(!(y in p))throw new Error(`hook '${y}' does not exist`);if(["options","block"].includes(y))continue;const k=y,_=a.hooks[k],T=p[k];Hl.passThroughHooks.has(y)?p[k]=S=>{if(this.defaults.async)return Promise.resolve(_.call(p,S)).then(A=>T.call(p,A));const O=_.call(p,S);return T.call(p,O)}:p[k]=(...S)=>{let O=_.apply(p,S);return O===!1&&(O=T.apply(p,S)),O}}f.hooks=p}if(a.walkTokens){const p=this.defaults.walkTokens,y=a.walkTokens;f.walkTokens=function(k){let _=[];return _.push(y.call(this,k)),p&&(_=_.concat(p.call(this,k))),_}}this.defaults={...this.defaults,...f}}),this}setOptions(s){return this.defaults={...this.defaults,...s},this}lexer(s,o){return Pt.lex(s,o??this.defaults)}parser(s,o){return At.parse(s,o??this.defaults)}parseMarkdown(s){return(a,f)=>{const p={...f},y={...this.defaults,...p},k=this.onError(!!y.silent,!!y.async);if(this.defaults.async===!0&&p.async===!1)return k(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof a>"u"||a===null)return k(new Error("marked(): input parameter is undefined or null"));if(typeof a!="string")return k(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(a)+", string expected"));y.hooks&&(y.hooks.options=y,y.hooks.block=s);const _=y.hooks?y.hooks.provideLexer():s?Pt.lex:Pt.lexInline,T=y.hooks?y.hooks.provideParser():s?At.parse:At.parseInline;if(y.async)return Promise.resolve(y.hooks?y.hooks.preprocess(a):a).then(S=>_(S,y)).then(S=>y.hooks?y.hooks.processAllTokens(S):S).then(S=>y.walkTokens?Promise.all(this.walkTokens(S,y.walkTokens)).then(()=>S):S).then(S=>T(S,y)).then(S=>y.hooks?y.hooks.postprocess(S):S).catch(k);try{y.hooks&&(a=y.hooks.preprocess(a));let S=_(a,y);y.hooks&&(S=y.hooks.processAllTokens(S)),y.walkTokens&&this.walkTokens(S,y.walkTokens);let O=T(S,y);return y.hooks&&(O=y.hooks.postprocess(O)),O}catch(S){return k(S)}}}onError(s,o){return a=>{if(a.message+=` Please report this to https://github.com/markedjs/marked.`,s){const f="

    An error occurred:

    "+bt(a.message+"",!0)+"
    ";return o?Promise.resolve(f):f}if(o)return Promise.reject(a);throw a}}}const pr=new lh;function ve(d,s){return pr.parse(d,s)}ve.options=ve.setOptions=function(d){return pr.setOptions(d),ve.defaults=pr.defaults,hf(ve.defaults),ve};ve.getDefaults=su;ve.defaults=hr;ve.use=function(...d){return pr.use(...d),ve.defaults=pr.defaults,hf(ve.defaults),ve};ve.walkTokens=function(d,s){return pr.walkTokens(d,s)};ve.parseInline=pr.parseInline;ve.Parser=At;ve.parser=At.parse;ve.Renderer=so;ve.TextRenderer=hu;ve.Lexer=Pt;ve.lexer=Pt.lex;ve.Tokenizer=oo;ve.Hooks=Hl;ve.parse=ve;ve.options;ve.setOptions;ve.use;ve.walkTokens;ve.parseInline;At.parse;Pt.lex;/*! @license DOMPurify 3.2.3 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.3/LICENSE */const{entries:Ef,setPrototypeOf:qc,isFrozen:ih,getPrototypeOf:oh,getOwnPropertyDescriptor:sh}=Object;let{freeze:st,seal:Mt,create:_f}=Object,{apply:nu,construct:ru}=typeof Reflect<"u"&&Reflect;st||(st=function(s){return s});Mt||(Mt=function(s){return s});nu||(nu=function(s,o,a){return s.apply(o,a)});ru||(ru=function(s,o){return new s(...o)});const no=wt(Array.prototype.forEach),Jc=wt(Array.prototype.pop),zl=wt(Array.prototype.push),lo=wt(String.prototype.toLowerCase),Zs=wt(String.prototype.toString),ef=wt(String.prototype.match),Ol=wt(String.prototype.replace),uh=wt(String.prototype.indexOf),ah=wt(String.prototype.trim),Ht=wt(Object.prototype.hasOwnProperty),it=wt(RegExp.prototype.test),Il=ch(TypeError);function wt(d){return function(s){for(var o=arguments.length,a=new Array(o>1?o-1:0),f=1;f2&&arguments[2]!==void 0?arguments[2]:lo;qc&&qc(d,null);let a=s.length;for(;a--;){let f=s[a];if(typeof f=="string"){const p=o(f);p!==f&&(ih(s)||(s[a]=p),f=p)}d[f]=!0}return d}function fh(d){for(let s=0;s/gm),gh=Mt(/\$\{[\w\W]*}/gm),yh=Mt(/^data-[\-\w.\u00B7-\uFFFF]+$/),vh=Mt(/^aria-[\-\w]+$/),Tf=Mt(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),kh=Mt(/^(?:\w+script|data):/i),wh=Mt(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Cf=Mt(/^html$/i),xh=Mt(/^[a-z][.\w]*(-[.\w]+)+$/i);var of=Object.freeze({__proto__:null,ARIA_ATTR:vh,ATTR_WHITESPACE:wh,CUSTOM_ELEMENT:xh,DATA_ATTR:yh,DOCTYPE_NAME:Cf,ERB_EXPR:mh,IS_ALLOWED_URI:Tf,IS_SCRIPT_OR_DATA:kh,MUSTACHE_EXPR:hh,TMPLIT_EXPR:gh});const jl={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Sh=function(){return typeof window>"u"?null:window},Eh=function(s,o){if(typeof s!="object"||typeof s.createPolicy!="function")return null;let a=null;const f="data-tt-policy-suffix";o&&o.hasAttribute(f)&&(a=o.getAttribute(f));const p="dompurify"+(a?"#"+a:"");try{return s.createPolicy(p,{createHTML(y){return y},createScriptURL(y){return y}})}catch{return console.warn("TrustedTypes policy "+p+" could not be created."),null}},sf=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function Rf(){let d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Sh();const s=X=>Rf(X);if(s.version="3.2.3",s.removed=[],!d||!d.document||d.document.nodeType!==jl.document)return s.isSupported=!1,s;let{document:o}=d;const a=o,f=a.currentScript,{DocumentFragment:p,HTMLTemplateElement:y,Node:k,Element:_,NodeFilter:T,NamedNodeMap:S=d.NamedNodeMap||d.MozNamedAttrMap,HTMLFormElement:O,DOMParser:A,trustedTypes:I}=d,G=_.prototype,j=Dl(G,"cloneNode"),K=Dl(G,"remove"),ce=Dl(G,"nextSibling"),ge=Dl(G,"childNodes"),Ee=Dl(G,"parentNode");if(typeof y=="function"){const X=o.createElement("template");X.content&&X.content.ownerDocument&&(o=X.content.ownerDocument)}let te,fe="";const{implementation:ne,createNodeIterator:_e,createDocumentFragment:Q,getElementsByTagName:Ie}=o,{importNode:Le}=a;let ue=sf();s.isSupported=typeof Ef=="function"&&typeof Ee=="function"&&ne&&ne.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:ze,ERB_EXPR:Be,TMPLIT_EXPR:Xe,DATA_ATTR:ut,ARIA_ATTR:De,IS_SCRIPT_OR_DATA:ke,ATTR_WHITESPACE:D,CUSTOM_ELEMENT:J}=of;let{IS_ALLOWED_URI:U}=of,v=null;const C=se({},[...tf,...bs,...qs,...Js,...nf]);let Y=null;const re=se({},[...rf,...eu,...lf,...ro]);let Z=Object.seal(_f(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}})),ie=null,he=null,de=!0,we=!0,be=!1,Vn=!0,qt=!1,pn=!0,zt=!1,mr=!1,gr=!1,Wt=!1,Qn=!1,hn=!1,mn=!0,Jt=!1;const Qr="user-content-";let yr=!0,gn=!1,en={},tn=null;const vr=se({},["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 Gn=null;const Gr=se({},["audio","video","img","source","image","track"]);let nn=null;const yn=se({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),kr="http://www.w3.org/1998/Math/MathML",Yn="http://www.w3.org/2000/svg",xt="http://www.w3.org/1999/xhtml";let vn=xt,Xn=!1,Kn=null;const Yr=se({},[kr,Yn,xt],Zs);let kn=se({},["mi","mo","mn","ms","mtext"]),wn=se({},["annotation-xml"]);const xn=se({},["title","style","font","a","script"]);let St=null;const Vl=["application/xhtml+xml","text/html"],Ql="text/html";let je=null,rn=null;const Gl=o.createElement("form"),wr=function(g){return g instanceof RegExp||g instanceof Function},xr=function(){let g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(rn&&rn===g)){if((!g||typeof g!="object")&&(g={}),g=dr(g),St=Vl.indexOf(g.PARSER_MEDIA_TYPE)===-1?Ql:g.PARSER_MEDIA_TYPE,je=St==="application/xhtml+xml"?Zs:lo,v=Ht(g,"ALLOWED_TAGS")?se({},g.ALLOWED_TAGS,je):C,Y=Ht(g,"ALLOWED_ATTR")?se({},g.ALLOWED_ATTR,je):re,Kn=Ht(g,"ALLOWED_NAMESPACES")?se({},g.ALLOWED_NAMESPACES,Zs):Yr,nn=Ht(g,"ADD_URI_SAFE_ATTR")?se(dr(yn),g.ADD_URI_SAFE_ATTR,je):yn,Gn=Ht(g,"ADD_DATA_URI_TAGS")?se(dr(Gr),g.ADD_DATA_URI_TAGS,je):Gr,tn=Ht(g,"FORBID_CONTENTS")?se({},g.FORBID_CONTENTS,je):vr,ie=Ht(g,"FORBID_TAGS")?se({},g.FORBID_TAGS,je):{},he=Ht(g,"FORBID_ATTR")?se({},g.FORBID_ATTR,je):{},en=Ht(g,"USE_PROFILES")?g.USE_PROFILES:!1,de=g.ALLOW_ARIA_ATTR!==!1,we=g.ALLOW_DATA_ATTR!==!1,be=g.ALLOW_UNKNOWN_PROTOCOLS||!1,Vn=g.ALLOW_SELF_CLOSE_IN_ATTR!==!1,qt=g.SAFE_FOR_TEMPLATES||!1,pn=g.SAFE_FOR_XML!==!1,zt=g.WHOLE_DOCUMENT||!1,Wt=g.RETURN_DOM||!1,Qn=g.RETURN_DOM_FRAGMENT||!1,hn=g.RETURN_TRUSTED_TYPE||!1,gr=g.FORCE_BODY||!1,mn=g.SANITIZE_DOM!==!1,Jt=g.SANITIZE_NAMED_PROPS||!1,yr=g.KEEP_CONTENT!==!1,gn=g.IN_PLACE||!1,U=g.ALLOWED_URI_REGEXP||Tf,vn=g.NAMESPACE||xt,kn=g.MATHML_TEXT_INTEGRATION_POINTS||kn,wn=g.HTML_INTEGRATION_POINTS||wn,Z=g.CUSTOM_ELEMENT_HANDLING||{},g.CUSTOM_ELEMENT_HANDLING&&wr(g.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Z.tagNameCheck=g.CUSTOM_ELEMENT_HANDLING.tagNameCheck),g.CUSTOM_ELEMENT_HANDLING&&wr(g.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Z.attributeNameCheck=g.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),g.CUSTOM_ELEMENT_HANDLING&&typeof g.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(Z.allowCustomizedBuiltInElements=g.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),qt&&(we=!1),Qn&&(Wt=!0),en&&(v=se({},nf),Y=[],en.html===!0&&(se(v,tf),se(Y,rf)),en.svg===!0&&(se(v,bs),se(Y,eu),se(Y,ro)),en.svgFilters===!0&&(se(v,qs),se(Y,eu),se(Y,ro)),en.mathMl===!0&&(se(v,Js),se(Y,lf),se(Y,ro))),g.ADD_TAGS&&(v===C&&(v=dr(v)),se(v,g.ADD_TAGS,je)),g.ADD_ATTR&&(Y===re&&(Y=dr(Y)),se(Y,g.ADD_ATTR,je)),g.ADD_URI_SAFE_ATTR&&se(nn,g.ADD_URI_SAFE_ATTR,je),g.FORBID_CONTENTS&&(tn===vr&&(tn=dr(tn)),se(tn,g.FORBID_CONTENTS,je)),yr&&(v["#text"]=!0),zt&&se(v,["html","head","body"]),v.table&&(se(v,["tbody"]),delete ie.tbody),g.TRUSTED_TYPES_POLICY){if(typeof g.TRUSTED_TYPES_POLICY.createHTML!="function")throw Il('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof g.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Il('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');te=g.TRUSTED_TYPES_POLICY,fe=te.createHTML("")}else te===void 0&&(te=Eh(I,f)),te!==null&&typeof fe=="string"&&(fe=te.createHTML(""));st&&st(g),rn=g}},Sn=se({},[...bs,...qs,...dh]),Sr=se({},[...Js,...ph]),Zn=function(g){let M=Ee(g);(!M||!M.tagName)&&(M={namespaceURI:vn,tagName:"template"});const H=lo(g.tagName),Te=lo(M.tagName);return Kn[g.namespaceURI]?g.namespaceURI===Yn?M.namespaceURI===xt?H==="svg":M.namespaceURI===kr?H==="svg"&&(Te==="annotation-xml"||kn[Te]):!!Sn[H]:g.namespaceURI===kr?M.namespaceURI===xt?H==="math":M.namespaceURI===Yn?H==="math"&&wn[Te]:!!Sr[H]:g.namespaceURI===xt?M.namespaceURI===Yn&&!wn[Te]||M.namespaceURI===kr&&!kn[Te]?!1:!Sr[H]&&(xn[H]||!Sn[H]):!!(St==="application/xhtml+xml"&&Kn[g.namespaceURI]):!1},Et=function(g){zl(s.removed,{element:g});try{Ee(g).removeChild(g)}catch{K(g)}},Vt=function(g,M){try{zl(s.removed,{attribute:M.getAttributeNode(g),from:M})}catch{zl(s.removed,{attribute:null,from:M})}if(M.removeAttribute(g),g==="is")if(Wt||Qn)try{Et(M)}catch{}else try{M.setAttribute(g,"")}catch{}},bn=function(g){let M=null,H=null;if(gr)g=""+g;else{const le=ef(g,/^[\r\n\t ]+/);H=le&&le[0]}St==="application/xhtml+xml"&&vn===xt&&(g=''+g+"");const Te=te?te.createHTML(g):g;if(vn===xt)try{M=new A().parseFromString(Te,St)}catch{}if(!M||!M.documentElement){M=ne.createDocument(vn,"template",null);try{M.documentElement.innerHTML=Xn?fe:Te}catch{}}const Ve=M.body||M.documentElement;return g&&H&&Ve.insertBefore(o.createTextNode(H),Ve.childNodes[0]||null),vn===xt?Ie.call(M,zt?"html":"body")[0]:zt?M.documentElement:Ve},qn=function(g){return _e.call(g.ownerDocument||g,g,T.SHOW_ELEMENT|T.SHOW_COMMENT|T.SHOW_TEXT|T.SHOW_PROCESSING_INSTRUCTION|T.SHOW_CDATA_SECTION,null)},Jn=function(g){return g instanceof O&&(typeof g.nodeName!="string"||typeof g.textContent!="string"||typeof g.removeChild!="function"||!(g.attributes instanceof S)||typeof g.removeAttribute!="function"||typeof g.setAttribute!="function"||typeof g.namespaceURI!="string"||typeof g.insertBefore!="function"||typeof g.hasChildNodes!="function")},Yl=function(g){return typeof k=="function"&&g instanceof k};function Ot(X,g,M){no(X,H=>{H.call(s,g,M,rn)})}const Xl=function(g){let M=null;if(Ot(ue.beforeSanitizeElements,g,null),Jn(g))return Et(g),!0;const H=je(g.nodeName);if(Ot(ue.uponSanitizeElement,g,{tagName:H,allowedTags:v}),g.hasChildNodes()&&!Yl(g.firstElementChild)&&it(/<[/\w]/g,g.innerHTML)&&it(/<[/\w]/g,g.textContent)||g.nodeType===jl.progressingInstruction||pn&&g.nodeType===jl.comment&&it(/<[/\w]/g,g.data))return Et(g),!0;if(!v[H]||ie[H]){if(!ie[H]&&Xr(H)&&(Z.tagNameCheck instanceof RegExp&&it(Z.tagNameCheck,H)||Z.tagNameCheck instanceof Function&&Z.tagNameCheck(H)))return!1;if(yr&&!tn[H]){const Te=Ee(g)||g.parentNode,Ve=ge(g)||g.childNodes;if(Ve&&Te){const le=Ve.length;for(let qe=le-1;qe>=0;--qe){const at=j(Ve[qe],!0);at.__removalCount=(g.__removalCount||0)+1,Te.insertBefore(at,ce(g))}}}return Et(g),!0}return g instanceof _&&!Zn(g)||(H==="noscript"||H==="noembed"||H==="noframes")&&it(/<\/no(script|embed|frames)/i,g.innerHTML)?(Et(g),!0):(qt&&g.nodeType===jl.text&&(M=g.textContent,no([ze,Be,Xe],Te=>{M=Ol(M,Te," ")}),g.textContent!==M&&(zl(s.removed,{element:g.cloneNode()}),g.textContent=M)),Ot(ue.afterSanitizeElements,g,null),!1)},Qt=function(g,M,H){if(mn&&(M==="id"||M==="name")&&(H in o||H in Gl))return!1;if(!(we&&!he[M]&&it(ut,M))){if(!(de&&it(De,M))){if(!Y[M]||he[M]){if(!(Xr(g)&&(Z.tagNameCheck instanceof RegExp&&it(Z.tagNameCheck,g)||Z.tagNameCheck instanceof Function&&Z.tagNameCheck(g))&&(Z.attributeNameCheck instanceof RegExp&&it(Z.attributeNameCheck,M)||Z.attributeNameCheck instanceof Function&&Z.attributeNameCheck(M))||M==="is"&&Z.allowCustomizedBuiltInElements&&(Z.tagNameCheck instanceof RegExp&&it(Z.tagNameCheck,H)||Z.tagNameCheck instanceof Function&&Z.tagNameCheck(H))))return!1}else if(!nn[M]){if(!it(U,Ol(H,D,""))){if(!((M==="src"||M==="xlink:href"||M==="href")&&g!=="script"&&uh(H,"data:")===0&&Gn[g])){if(!(be&&!it(ke,Ol(H,D,"")))){if(H)return!1}}}}}}return!0},Xr=function(g){return g!=="annotation-xml"&&ef(g,J)},Kr=function(g){Ot(ue.beforeSanitizeAttributes,g,null);const{attributes:M}=g;if(!M||Jn(g))return;const H={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Y,forceKeepAttr:void 0};let Te=M.length;for(;Te--;){const Ve=M[Te],{name:le,namespaceURI:qe,value:at}=Ve,En=je(le);let Ue=le==="value"?at:ah(at);if(H.attrName=En,H.attrValue=Ue,H.keepAttr=!0,H.forceKeepAttr=void 0,Ot(ue.uponSanitizeAttribute,g,H),Ue=H.attrValue,Jt&&(En==="id"||En==="name")&&(Vt(le,g),Ue=Qr+Ue),pn&&it(/((--!?|])>)|<\/(style|title)/i,Ue)){Vt(le,g);continue}if(H.forceKeepAttr||(Vt(le,g),!H.keepAttr))continue;if(!Vn&&it(/\/>/i,Ue)){Vt(le,g);continue}qt&&no([ze,Be,Xe],Zr=>{Ue=Ol(Ue,Zr," ")});const Kl=je(g.nodeName);if(Qt(Kl,En,Ue)){if(te&&typeof I=="object"&&typeof I.getAttributeType=="function"&&!qe)switch(I.getAttributeType(Kl,En)){case"TrustedHTML":{Ue=te.createHTML(Ue);break}case"TrustedScriptURL":{Ue=te.createScriptURL(Ue);break}}try{qe?g.setAttributeNS(qe,le,Ue):g.setAttribute(le,Ue),Jn(g)?Et(g):Jc(s.removed)}catch{}}}Ot(ue.afterSanitizeAttributes,g,null)},co=function X(g){let M=null;const H=qn(g);for(Ot(ue.beforeSanitizeShadowDOM,g,null);M=H.nextNode();)Ot(ue.uponSanitizeShadowNode,M,null),Xl(M),Kr(M),M.content instanceof p&&X(M.content);Ot(ue.afterSanitizeShadowDOM,g,null)};return s.sanitize=function(X){let g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},M=null,H=null,Te=null,Ve=null;if(Xn=!X,Xn&&(X=""),typeof X!="string"&&!Yl(X))if(typeof X.toString=="function"){if(X=X.toString(),typeof X!="string")throw Il("dirty is not a string, aborting")}else throw Il("toString is not a function");if(!s.isSupported)return X;if(mr||xr(g),s.removed=[],typeof X=="string"&&(gn=!1),gn){if(X.nodeName){const at=je(X.nodeName);if(!v[at]||ie[at])throw Il("root node is forbidden and cannot be sanitized in-place")}}else if(X instanceof k)M=bn(""),H=M.ownerDocument.importNode(X,!0),H.nodeType===jl.element&&H.nodeName==="BODY"||H.nodeName==="HTML"?M=H:M.appendChild(H);else{if(!Wt&&!qt&&!zt&&X.indexOf("<")===-1)return te&&hn?te.createHTML(X):X;if(M=bn(X),!M)return Wt?null:hn?fe:""}M&&gr&&Et(M.firstChild);const le=qn(gn?X:M);for(;Te=le.nextNode();)Xl(Te),Kr(Te),Te.content instanceof p&&co(Te.content);if(gn)return X;if(Wt){if(Qn)for(Ve=Q.call(M.ownerDocument);M.firstChild;)Ve.appendChild(M.firstChild);else Ve=M;return(Y.shadowroot||Y.shadowrootmode)&&(Ve=Le.call(a,Ve,!0)),Ve}let qe=zt?M.outerHTML:M.innerHTML;return zt&&v["!doctype"]&&M.ownerDocument&&M.ownerDocument.doctype&&M.ownerDocument.doctype.name&&it(Cf,M.ownerDocument.doctype.name)&&(qe=" `+qe),qt&&no([ze,Be,Xe],at=>{qe=Ol(qe,at," ")}),te&&hn?te.createHTML(qe):qe},s.setConfig=function(){let X=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};xr(X),mr=!0},s.clearConfig=function(){rn=null,mr=!1},s.isValidAttribute=function(X,g,M){rn||xr({});const H=je(X),Te=je(g);return Qt(H,Te,M)},s.addHook=function(X,g){typeof g=="function"&&zl(ue[X],g)},s.removeHook=function(X){return Jc(ue[X])},s.removeHooks=function(X){ue[X]=[]},s.removeAllHooks=function(){ue=sf()},s}var _h=Rf();function Th(d){return L.jsxs("svg",{...d,xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[L.jsx("path",{d:"M12 8V4H8"}),L.jsx("rect",{width:"16",height:"12",x:"4",y:"8",rx:"2"}),L.jsx("path",{d:"M2 14h2"}),L.jsx("path",{d:"M20 14h2"}),L.jsx("path",{d:"M15 13v2"}),L.jsx("path",{d:"M9 13v2"})]})}function Ch(d){return L.jsx("svg",{...d,xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 32 32",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:L.jsx("path",{className:"stroke-gray-600 dark:stroke-gray-400",d:"M16 6v3.33M16 6c0-2.65 3.25-4.3 5.4-2.62 1.2.95 1.6 2.65.95 4.04a3.63 3.63 0 0 1 4.61.16 3.45 3.45 0 0 1 .46 4.37 5.32 5.32 0 0 1 1.87 4.75c-.22 1.66-1.39 3.6-3.07 4.14M16 6c0-2.65-3.25-4.3-5.4-2.62a3.37 3.37 0 0 0-.95 4.04 3.65 3.65 0 0 0-4.6.16 3.37 3.37 0 0 0-.49 4.27 5.57 5.57 0 0 0-1.85 4.85 5.3 5.3 0 0 0 3.07 4.15M16 9.33v17.34m0-17.34c0 2.18 1.82 4 4 4m6.22 7.5c.67 1.3.56 2.91-.27 4.11a4.05 4.05 0 0 1-4.62 1.5c0 1.53-1.05 2.9-2.66 2.9A2.7 2.7 0 0 1 16 26.66m10.22-5.83a4.05 4.05 0 0 0-3.55-2.17m-16.9 2.18a4.05 4.05 0 0 0 .28 4.1c1 1.44 2.92 2.09 4.59 1.5 0 1.52 1.12 2.88 2.7 2.88A2.7 2.7 0 0 0 16 26.67M5.78 20.85a4.04 4.04 0 0 1 3.55-2.18"})})}function Rh(d){return L.jsxs("svg",{...d,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"})]})}var lu=function(){return(lu=Object.assign||function(d){for(var s,o=1,a=arguments.length;o0;return L.jsx("div",{className:"flex items-start space-x-4",children:d==="assistant"?L.jsxs(L.Fragment,{children:[L.jsx(Th,{className:"h-6 w-6 min-h-6 min-w-6 my-3 text-gray-500 dark:text-gray-300"}),L.jsx("div",{className:"bg-gray-200 dark:bg-gray-700 rounded-lg p-4",children:L.jsx("div",{className:"min-h-6 text-gray-800 dark:text-gray-200 overflow-wrap-anywhere",children:a.length>0?L.jsxs(L.Fragment,{children:[L.jsxs("div",{className:"bg-white dark:bg-gray-800 rounded-lg flex flex-col",children:[L.jsxs("button",{className:"flex items-center gap-2 cursor-pointer p-4 hover:bg-gray-50 dark:hover:bg-gray-900 rounded-lg ",onClick:()=>y(_=>!_),style:{width:p?"100%":"auto"},children:[L.jsx(Ch,{className:k?"":"animate-pulse"}),L.jsx("span",{children:k?"View reasoning.":"Thinking..."}),L.jsx("span",{className:"ml-auto text-gray-700",children:p?"▲":"▼"})]}),p&&L.jsx(cf,{className:"border-t border-gray-200 dark:border-gray-700 px-4 py-2",dynamic:!0,children:L.jsx("span",{className:"markdown",dangerouslySetInnerHTML:{__html:ff(a)}})})]}),k&&L.jsx(cf,{className:"mt-2",dynamic:!0,children:L.jsx("span",{className:"markdown",dangerouslySetInnerHTML:{__html:ff(f)}})})]}):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(Rh,{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:s})})]})})}function Ah({messages:d}){const s=d.length===0;return 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:L.jsx(Nh,{children:s?L.jsx("div",{className:"text-xl",children:"Ready!"}):d.map((o,a)=>L.jsx(Ph,{...o},`message-${a}`))})})}function df(d){return L.jsxs("svg",{...d,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 Mh(d){return L.jsxs("svg",{...d,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 zh(d){const s=d==0?0:Math.floor(Math.log(d)/Math.log(1024));return+(d/Math.pow(1024,s)).toFixed(2)*1+["B","kB","MB","GB","TB"][s]}function Oh({text:d,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:[d," (",s.toFixed(2),"%",isNaN(o)?"":` of ${zh(o)}`,")"]})})}const Ih=/*!!navigator.gpu*/true,Dh=120,jh=["Solve the equation x^2 - 3x + 2 = 0","Lily is three times older than her son. In 15 years, she will be twice as old as him. How old is she now?","Write python code to compute the nth fibonacci number."];function Fh(){const d=me.useRef(null),s=me.useRef(null),o=me.useRef(null),[a,f]=me.useState(null),[p,y]=me.useState(null),[k,_]=me.useState(""),[T,S]=me.useState([]),[O,A]=me.useState(!1),[I,G]=me.useState(""),[j,K]=me.useState([]),[ce,ge]=me.useState(null),[Ee,te]=me.useState(null);function fe(Q){K(Ie=>[...Ie,{role:"user",content:Q}]),ge(null),A(!0),G("")}function ne(){d.current.postMessage({type:"interrupt"})}me.useEffect(()=>{_e()},[I]);function _e(){if(!s.current)return;const Q=s.current;Q.style.height="auto";const Ie=Math.min(Math.max(Q.scrollHeight,24),200);Q.style.height=`${Ie}px`}return me.useEffect(()=>{d.current||(d.current=new Worker(new URL("/assets/worker-DzyjP8xi.js",import.meta.url),{type:"module"}),d.current.postMessage({type:"check"}));const Q=Le=>{switch(Le.data.status){case"loading":f("loading"),_(Le.data.data);break;case"initiate":S(ue=>[...ue,Le.data]);break;case"progress":S(ue=>ue.map(ze=>ze.file===Le.data.file?{...ze,...Le.data}:ze));break;case"done":S(ue=>ue.filter(ze=>ze.file!==Le.data.file));break;case"ready":f("ready");break;case"start":K(ue=>[...ue,{role:"assistant",content:""}]);break;case"update":{const{output:ue,tps:ze,numTokens:Be,state:Xe}=Le.data;ge(ze),te(Be),K(ut=>{const De=[...ut],ke=De.at(-1),D={...ke,content:ke.content+ue};return D.answerIndex===void 0&&Xe==="answering"&&(D.answerIndex=ke.content.length),De[De.length-1]=D,De})}break;case"complete":A(!1);break;case"error":y(Le.data.data);break}},Ie=Le=>{console.error("Worker error:",Le)};return d.current.addEventListener("message",Q),d.current.addEventListener("error",Ie),()=>{d.current.removeEventListener("message",Q),d.current.removeEventListener("error",Ie)}},[]),me.useEffect(()=>{j.filter(Q=>Q.role==="user").length!==0&&j.at(-1).role!=="assistant"&&(ge(null),d.current.postMessage({type:"generate",data:j}))},[j,O]),me.useEffect(()=>{if(!o.current||!O)return;const Q=o.current;Q.scrollHeight-Q.scrollTop-Q.clientHeightWebGPU"}),L.jsx("h2",{className:"font-semibold",children:"A next-generation reasoning model that runs locally in your browser with WebGPU acceleration i removed webgpu."})]}),L.jsxs("div",{className:"flex flex-col items-center px-4",children:[L.jsxs("p",{className:"max-w-[510px] mb-4",children:[L.jsx("br",{}),"You are about to load"," ",L.jsx("a",{href:"https://huggingface.co/onnx-community/DeepSeek-R1-Distill-Qwen-1.5B-ONNX",target:"_blank",rel:"noreferrer",className:"font-medium underline",children:"DeepSeek-R1-Distill-Qwen-1.5B"}),", a 1.5B parameter reasoning LLM optimized for in-browser inference. Everything runs entirely in your browser with"," ",L.jsx("a",{href:"https://huggingface.co/docs/transformers.js",target:"_blank",rel:"noreferrer",className:"underline",children:"🤗 Transformers.js"})," ","and ONNX Runtime Web, meaning no data is sent to a server. Once loaded, it can even be used offline. The source code for the demo is available on"," ",L.jsx("a",{href:"https://github.com/huggingface/transformers.js-examples/tree/main/deepseek-r1-webgpu",target:"_blank",rel:"noreferrer",className:"font-medium underline",children:"GitHub"}),"."]}),p&&L.jsxs("div",{className:"text-red-500 text-center mb-2",children:[L.jsx("p",{className:"mb-1",children:"Unable to load model due to the following error:"}),L.jsx("p",{className:"text-sm",children:p})]}),L.jsx("button",{className:"border px-4 py-2 rounded-lg bg-blue-400 text-white hover:bg-blue-500 disabled:bg-blue-100 cursor-pointer disabled:cursor-not-allowed select-none",onClick:()=>{d.current.postMessage({type:"load"}),f("loading")},disabled:a!==null||p!==null,children:"Load model"})]})]}),a==="loading"&&L.jsx(L.Fragment,{children:L.jsxs("div",{className:"w-full max-w-[500px] text-left mx-auto p-4 bottom-0 mt-auto",children:[L.jsx("p",{className:"text-center mb-1",children:k}),T.map(({file:Q,progress:Ie,total:Le},ue)=>L.jsx(Oh,{text:Q,percentage:Ie,total:Le},ue))]})}),a==="ready"&&L.jsxs("div",{ref:o,className:"overflow-y-auto scrollbar-thin w-full flex flex-col items-center h-full",children:[L.jsx(Ah,{messages:j}),j.length===0&&L.jsx("div",{children:jh.map((Q,Ie)=>L.jsx("div",{className:"m-1 border border-gray-300 dark:border-gray-600 rounded-md p-2 bg-gray-100 dark:bg-gray-700 cursor-pointer",onClick:()=>fe(Q),children:Q},Ie))}),L.jsx("p",{className:"text-center text-sm min-h-6 text-gray-500 dark:text-gray-300",children:ce&&j.length>0&&L.jsxs(L.Fragment,{children:[!O&&L.jsxs("span",{children:["Generated ",Ee," tokens in"," ",(Ee/ce).toFixed(2)," seconds ("]}),L.jsxs(L.Fragment,{children:[L.jsx("span",{className:"font-medium text-center mr-1 text-black dark:text-white",children:ce.toFixed(2)}),L.jsx("span",{className:"text-gray-500 dark:text-gray-300",children:"tokens/second"})]}),!O&&L.jsxs(L.Fragment,{children:[L.jsx("span",{className:"mr-1",children:")."}),L.jsx("span",{className:"underline cursor-pointer",onClick:()=>{d.current.postMessage({type:"reset"}),K([])},children:"Reset"})]})]})})]}),L.jsxs("div",{className:"mt-2 border border-gray-300 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-hidden 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:I,disabled:a!=="ready",title:a==="ready"?"Model is ready":"Model not loaded yet",onKeyDown:Q=>{I.length>0&&!O&&Q.key==="Enter"&&!Q.shiftKey&&(Q.preventDefault(),fe(I))},onInput:Q=>G(Q.target.value)}),O?L.jsx("div",{className:"cursor-pointer",onClick:ne,children:L.jsx(Mh,{className:"h-8 w-8 p-1 rounded-md text-gray-800 dark:text-gray-100 absolute right-3 bottom-3"})}):I.length>0?L.jsx("div",{className:"cursor-pointer",onClick:()=>fe(I),children:L.jsx(df,{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(df,{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 :("]})}Ep.createRoot(document.getElementById("root")).render(L.jsx(me.StrictMode,{children:L.jsx(Fh,{})}));