F+this.CANVAS_MARGIN?this.target.offsetTop-(F+this.CANVAS_MARGIN):0;this.coverDiv.style.top=H+"px",this.coverDiv.style.left=(this.target.offsetLeft>this.CANVAS_MARGIN?this.target.offsetLeft-this.CANVAS_MARGIN:0)+"px",this.coverDiv.style.width=this.target.offsetWidth+this.CANVAS_MARGIN+"px",this.coverDiv.style.zIndex=this.styles.settings.zIndex!==void 0?this.styles.settings.zIndex:"5";break;case"popup":this.coverDiv.style.position="absolute",this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=window.innerHeight+"px",this.coverDiv.style.backgroundColor="rgba(0, 0, 0, 0.75)",this.coverDiv.style.zIndex=this.styles.settings.zIndex!==void 0?this.styles.settings.zIndex:"1000",this.coverDiv.style.display="flex"}this.targetRoot.appendChild(this.coverDiv),this.uiDiv=document.createElement("div"),this.uiDiv.style.display="flex",this.uiDiv.style.flexDirection="column",this.uiDiv.style.flexGrow="2",this.uiDiv.style.margin=this.displayMode==="popup"?this.popupMargin+"px":"0px",this.uiDiv.style.border="0px",this.coverDiv.appendChild(this.uiDiv),this.addToolbars(),this.uiDiv.appendChild(this.topToolbar.getUI()),this.contentDiv=document.createElement("div"),this.contentDiv.style.display="flex",this.contentDiv.style.alignItems="center",this.contentDiv.style.flexDirection="row",this.contentDiv.style.flexGrow="2",this.contentDiv.style.flexShrink="1",this.contentDiv.style.overflow="hidden",this.contentDiv.style.backgroundColor=this.styles.settings.canvasBackgroundColor,this.displayMode==="popup"&&(this.contentDiv.style.maxHeight="calc(100vh - "+(2*this.popupMargin+2*this.toolbarHeight)+"px)",this.contentDiv.style.maxWidth="calc(100vw - "+2*this.popupMargin+"px)"),this.uiDiv.appendChild(this.contentDiv),this.editorCanvas=document.createElement("div"),this.editorCanvas.style.flexGrow="2",this.editorCanvas.style.flexShrink="1",this.editorCanvas.style.position="relative",this.editorCanvas.style.overflow="hidden",this.editorCanvas.style.display="flex",this.displayMode==="popup"&&(this.editorCanvas.style.alignItems="center",this.editorCanvas.style.justifyContent="center"),this.editorCanvas.style.pointerEvents="none",this.contentDiv.appendChild(this.editorCanvas),this.uiDiv.appendChild(this.bottomToolbar.getUI()),this.straightener.angle=this.rotationAngle},$.prototype.addToolbars=function(){this.addTopToolbar(),this.addBottomToolbar()},$.prototype.addTopToolbar=function(){var F=this;this.topToolbar=new Ft,this.topToolbar.display=this.styles.settings.hideTopToolbar?"none":"",this.topToolbar.className=this.toolbarStyleClass.name,this.topToolbar.colorsClassName=this.styles.settings.toolbarStyleColorsClassName?this.styles.settings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name,this.topToolbar.fadeInClassName=this.styles.fadeInAnimationClassName,this.topToolbar.blockClassName=this.toolbarBlockStyleClass.name,this.topToolbar.buttonClassName=this.toolbarButtonStyleClass.name,this.topToolbar.buttonColorsClassName=this.styles.settings.toolbarButtonStyleColorsClassName?this.styles.settings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,this.topToolbar.buttonActiveColorsClassName=this.styles.settings.toolbarActiveButtonStyleColorsClassName?this.styles.settings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name;var H=new ui;H.minWidth=3*this.toolbarHeight+"px",this.topToolbar.addButtonBlock(H);var Y=[];this.aspectRatios.forEach(function(Gt){var ei=new Pt(tr.getIcon(Gt.horizontal,Gt.vertical),Gt.horizontal===0&&Gt.vertical===0?"FREE":Gt.horizontal+":"+Gt.vertical);ei.onClick=function(){return F.ratioButtonClicked(Gt)},Y.push(ei)}),this.aspectRatioButton=new xi(tr.getIcon(0,0),"Aspect ratio",Y),this.aspectRatioButton.dropdownClassName=this.toolbarDropdownStyleClass.name,this.aspectRatioButton.dropdownColorsClassName=this.styles.settings.toolbarDropdownStyleColorsClassName?this.styles.settings.toolbarDropdownStyleColorsClassName:this.toolbarDropdownStyleColorsClass.name,H.addButton(this.aspectRatioButton),this.aspectRatios.length<2&&this.aspectRatioButton.hide();var se=new Pt('',"Toggle grid");se.isActive=this.isGridVisible,se.onClick=function(){F.isGridVisible=!F.isGridVisible,se.isActive=F.isGridVisible},H.addButton(se);var Z=new Pt('',"Zoom to selection");if(Z.isActive=this.zoomToCropEnabled,Z.onClick=function(){F.zoomToCropEnabled=!F.zoomToCropEnabled,Z.isActive=F.zoomToCropEnabled},H.addButton(Z),!Nt.isLicensed){var Me=new xt;this.topToolbar.addElementBlock(Me);var rt=document.createElement("div");rt.className=this.topToolbar.buttonClassName+" "+this.topToolbar.buttonColorsClassName;var pt=document.createElement("a");pt.style.color="currentColor",pt.href="https://markerjs.com/products/cropro",pt.target="_blank",pt.innerHTML='',rt.appendChild(pt),Me.addElement(rt)}var Et=new ui;Et.minWidth=3*this.toolbarHeight+"px",Et.contentAlign="end",this.topToolbar.addButtonBlock(Et);var ot=new Pt('',"OK");ot.onClick=this.startRenderAndClose,Et.addButton(ot),this.styles.settings.toolbarOkButtonStyleColorsClassName&&(ot.colorsClassName=this.styles.settings.toolbarOkButtonStyleColorsClassName);var Rt=new Pt('',"Close");Rt.onClick=this.close,Et.addButton(Rt),this.styles.settings.toolbarCloseButtonStyleColorsClassName&&(Rt.colorsClassName=this.styles.settings.toolbarCloseButtonStyleColorsClassName)},$.prototype.addBottomToolbar=function(){var F=this;this.bottomToolbar=new Ft,this.bottomToolbar.display=this.styles.settings.hideBottomToolbar?"none":"",this.bottomToolbar.className=this.toolbarStyleClass.name,this.bottomToolbar.colorsClassName=this.styles.settings.toolbarStyleColorsClassName?this.styles.settings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name,this.bottomToolbar.fadeInClassName=this.styles.fadeInAnimationClassName,this.bottomToolbar.blockClassName=this.toolbarBlockStyleClass.name,this.bottomToolbar.buttonClassName=this.toolbarButtonStyleClass.name,this.bottomToolbar.buttonColorsClassName=this.styles.settings.toolbarButtonStyleColorsClassName?this.styles.settings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,this.bottomToolbar.buttonActiveColorsClassName=this.styles.settings.toolbarActiveButtonStyleColorsClassName?this.styles.settings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name;var H=new ui;H.minWidth=2*this.toolbarHeight+"px",this.bottomToolbar.addButtonBlock(H);var Y=new Pt('',"Rotate left");Y.onClick=this.rotateLeftButtonClicked,H.addButton(Y);var se=new Pt('',"Rotate right");se.onClick=this.rotateRightButtonClicked,H.addButton(se);var Z=new xt;Z.className=this.toolbarStraightenerBlockStyleClass.name,this.bottomToolbar.addElementBlock(Z),this.straightener=new Yi("Straighten"),this.straightener.className=this.toolbarStraightenerStyleClass.name,this.straightener.colorsClassName=this.styles.settings.toolbarStraightenerColorsClassName?this.styles.settings.toolbarStraightenerColorsClassName:this.toolbarStraightenerStyleColorsClass.name,this.straightener.onAngleChange=function(Et){F.rotateBy(Et),F.straightener.angle=F.rotationAngle},Z.addElement(this.straightener.getUI());var Me=new ui;Me.minWidth=2*this.toolbarHeight+"px",Me.contentAlign="end",this.bottomToolbar.addButtonBlock(Me);var rt=new Pt('',"Flip horizontal");rt.onClick=this.flipHorizontallyButtonClicked,Me.addButton(rt);var pt=new Pt('',"Flip vertical");pt.onClick=this.flipVerticallyButtonClicked,Me.addButton(pt)},$.prototype.ratioButtonClicked=function(F){this.aspectRatio=F,this.applyAspectRatio(),this.aspectRatioButton.hideDropdown()},$.prototype.applyAspectRatio=function(){this.setCropLayerAspectRatio(),this.aspectRatioButton.icon=tr.getIcon(this.aspectRatio.horizontal,this.aspectRatio.vertical)},$.prototype.setCropLayerAspectRatio=function(){this.cropLayer&&(this.aspectRatio&&this.aspectRatio.horizontal!==0&&this.aspectRatio.vertical!==0?this.cropLayer.aspectRatio=new zi(this.aspectRatio.horizontal,this.aspectRatio.vertical):this.cropLayer.aspectRatio=void 0)},$.prototype.closeUI=function(){this.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},$.prototype.getState=function(){return{width:this.imageWidth,height:this.imageHeight,rotationAngle:this.rotationAngle,flippedHorizontally:this.flippedHorizontally,flippedVertically:this.flippedVertically,cropRect:Object.assign({},this.cropRect)}},$.prototype.restoreState=function(F){if(F){var H=this.cropLayer.getRescaledRect(F.width,F.height,this.imageWidth,this.imageHeight,F.cropRect,this.CANVAS_MARGIN);this.cropLayer.setCropRectangle(H),this.cropRectChanged(H),this.flippedHorizontally=F.flippedHorizontally,this.flippedVertically=F.flippedVertically,this.applyFlip(),this.rotationAngle=F.rotationAngle,this.applyRotation()}},$.prototype.clientToLocalCoordinates=function(F,H){var Y=this.cropImage.getBoundingClientRect();return{x:F-Y.left,y:H-Y.top}},$.prototype.onWindowResize=function(){this.positionUI()},$.prototype.positionUI=function(){switch(this.setTopLeft(),this.displayMode){case"inline":var F=this.target.offsetTop>this.toolbarHeight?this.target.offsetTop-this.toolbarHeight:0;this.coverDiv.style.top=F+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px";break;case"popup":this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=this.windowHeight+"px",this.contentDiv.style.maxHeight="calc(100vh - "+(2*this.popupMargin+2*this.toolbarHeight)+"px)"}this.positionCropImage()},$.prototype.rotateLeftButtonClicked=function(){var F=this.rotationAngle-90;this.rotationAngle%90!=0&&(F+=this.rotationAngle>=0?90-this.rotationAngle%90:-this.rotationAngle%90),this.rotateTo(F)},$.prototype.rotateRightButtonClicked=function(){var F=this.rotationAngle+90;this.rotationAngle%90!=0&&(F-=this.rotationAngle>=0?this.rotationAngle%90:90+this.rotationAngle%90),this.rotateTo(F)},$.prototype.rotateTo=function(F){F=(F=F>180?F-360:F)<=-180?F+360:F,this.rotationAngle=F,this.applyRotation()},$.prototype.rotateBy=function(F){this.rotateTo((this.rotationAngle+F)%360)},$.prototype.applyRotation=function(){var F=this.zoomToCropEnabled;this.zoomToCropEnabled=!1,this.editingTargetRotationScaleContainer.style.transformOrigin=this.imageWidth/2+"px "+this.imageHeight/2+"px",this.editingTargetRotationScaleContainer.style.transform="scale(1)";var H=this.editingTargetRotationContainer.transform.baseVal.getItem(0);H.setRotate(this.rotationAngle,this.imageWidth/2,this.imageHeight/2),this.editingTargetRotationContainer.transform.baseVal.replaceItem(H,0);var Y=this.editingTarget.getBoundingClientRect();this.scaleFactor=Math.min(this.imageWidth/Y.width,this.imageHeight/Y.height),this.editingTargetRotationScaleContainer.style.transform="scale("+this.scaleFactor+")",this.zoomToCropEnabled=F},$.prototype.flipHorizontallyButtonClicked=function(){this.flippedHorizontally=!this.flippedHorizontally,this.applyFlip()},$.prototype.flipVerticallyButtonClicked=function(){this.flippedVertically=!this.flippedVertically,this.applyFlip()},$.prototype.applyFlip=function(){this.editingTarget.style.transform="scale("+(this.flippedHorizontally?-1:1)+","+(this.flippedVertically?-1:1)+")"},$.prototype.startRenderAndClose=function(){return ft(this,void 0,void 0,function(){var F,H;return kt(this,function(Y){switch(Y.label){case 0:return[4,this.render()];case 1:return F=Y.sent(),H=this.getState(),this.renderEventListeners.forEach(function(se){return se(F,H)}),this.close(!0),[2]}})})},$.prototype.render=function(){return ft(this,void 0,void 0,function(){var F;return kt(this,function(H){switch(H.label){case 0:return(F=new fr).naturalSize=this.renderAtNaturalSize,F.imageType=this.renderImageType,F.imageQuality=this.renderImageQuality,F.width=this.renderWidth,F.height=this.renderHeight,this.unzoomFromCrop(),nt.setAttributes(this.cropLayerContainer,[["display","none"]]),[4,F.rasterize(this.cropImage,this.target,{x:this.cropRect.x,y:this.cropRect.y,width:this.cropRect.width,height:this.cropRect.height},this.CANVAS_MARGIN,this.rotationAngle,this.scaleFactor*(this.flippedHorizontally?-1:1),this.scaleFactor*(this.flippedVertically?-1:1))];case 1:return H.sent(),[4,F.rasterize(this.cropImage,this.target,{x:this.cropRect.x,y:this.cropRect.y,width:this.cropRect.width,height:this.cropRect.height},this.CANVAS_MARGIN,this.rotationAngle,this.scaleFactor*(this.flippedHorizontally?-1:1),this.scaleFactor*(this.flippedVertically?-1:1))];case 2:return[2,H.sent()]}})})},$.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new wt("toolbar",`
width: `+(this.displayMode==="inline"?"100%":"calc(100vw - "+2*this.popupMargin+"px)")+`;
flex-shrink: 0;
display: flex;
flex-direction: row;
justify-content: space-between;
height: `+this.toolbarHeight+`px;
box-sizing: content-box;
overflow: hidden;
line-height: 0px;
`)),this.toolbarStyleColorsClass=this.styles.addClass(new wt("toolbar_colors",`
background-color: `+this.styles.settings.toolbarBackgroundColor+`;
`)),this.toolbarBlockStyleClass=this.styles.addClass(new wt("toolbar-block",`
display: flex;
align-items: center;
box-sizing: content-box;
`));var F=this.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new wt("toolbar_button",`
display: inline-block;
width: `+(this.toolbarHeight-2*F)+`px;
height: `+(this.toolbarHeight-2*F)+`px;
padding: `+F+`px;
cursor: default;
user-select: none;
box-sizing: content-box;
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new wt("toolbar_button_colors",`
color: `+this.styles.settings.toolbarColor+`;
fill: currentColor;
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new wt("toolbar_active_button",`
color: `+this.styles.settings.toolbarColor+`;
fill: currentColor;
background-color: `+this.styles.settings.toolbarBackgroundActiveColor+`
`)),this.styles.addRule(new It("."+this.toolbarButtonStyleClass.name+" svg",`
height: `+this.toolbarHeight/2+`px;
`)),this.styles.addRule(new It("."+this.toolbarButtonStyleColorsClass.name+":hover",`
background-color: `+this.styles.settings.toolbarBackgroundHoverColor+`
`)),this.toolbarDropdownStyleClass=this.styles.addClass(new wt("toolbar_dropdown",`
position: absolute;
max-width: `+4*this.toolbarHeight+`px;
z-index: 20;
white-space: normal;
box-sizing: content-box;
box-shadow: 3px 3px rgba(33, 33, 33, 0.1);
margin: `+(this.displayMode==="inline"?"0":this.popupMargin)+`px;
line-height: 0px;
`)),this.toolbarDropdownStyleColorsClass=this.styles.addClass(new wt("toolbar_dropdown_colors",`
background-color: `+this.styles.settings.toolbarBackgroundColor+`;
`)),this.toolbarStraightenerBlockStyleClass=this.styles.addClass(new wt("toolbar_straightener_block",`
display: flex;
overflow: hidden;
justify-content: center;
-webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 30%, rgba(0,0,0,1) 70%, rgba(0,0,0,0) 100%);
`)),this.toolbarStraightenerStyleClass=this.styles.addClass(new wt("toolbar_straightener",`
display: flex;
overflow: hidden;
justify-content: center;
height: `+(this.toolbarHeight-2*F)+`px;
padding: `+F+`px;
cursor: default;
user-select: none;
box-sizing: content-box;
`)),this.toolbarStraightenerStyleColorsClass=this.styles.addClass(new wt("toolbar_straightener_colors",`
color: `+this.styles.settings.toolbarColor+`;
fill: currentColor;
`))},$.instanceCounter=0,$}(),Dt=oe("8hTe"),pr=oe.n(Dt),mr=/]*>/g;function gr($){var F=document.createElement("div");return F.innerHTML=$,F.childNodes.length===0?"":F.childNodes[0].nodeValue}var vr=fe.a=function($){var F=$.value,H=F===void 0?"":F,Y=$.edit,se=Y===void 0?!1:Y,Z=$.className,Me=$.showTextOnly,rt=$.showLines,pt=$.replaces,Et=$.zoomImg,ot=$.hasMask,Rt=$.style,Gt=Rt===void 0?{}:Rt,ei=$.stylesPrev,Fi=ei===void 0?{}:ei,Ei=String(H),wi=Object(h.useRef)(),Qi=Object(h.useRef)(),Or=Object(h.useState)(""),di=Object(E.a)(Or,2),Wi=di[0],or=di[1],lr=Object(h.useState)("office"),Ui=Object(E.a)(lr,2),Ir=Ui[0],_r=Ui[1],Xr=function(){var Vt=new ht(Qi.current);Vt.displayMode="popup",Vt.addRenderEventListener(function(){var _i=Object(f.a)(g.a.mark(function Kt(si){var qt;return g.a.wrap(function(fi){for(;;)switch(fi.prev=fi.next){case 0:return wi.current.style.display="none",fi.next=3,Object(Fe.a)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:"educoder.png",file:si}});case 3:qt=fi.sent,qt!=null&&qt.id&&pt(Qi.current.getAttribute("src").replace(te.a.API_SERVER,""),"/api/attachments/".concat(qt==null?void 0:qt.id,"?type=").concat(qt.content_type));case 5:case"end":return fi.stop()}},Kt)}));return function(Kt){return _i.apply(this,arguments)}}()),Vt.show()},zr=function(){var Vt=new mt(Qi.current);Vt.settings.displayMode="popup",Vt.addEventListener("render",function(){var _i=Object(f.a)(g.a.mark(function Kt(si){var qt;return g.a.wrap(function(fi){for(;;)switch(fi.prev=fi.next){case 0:if(wi.current.style.display="none",!Qi.current){fi.next=6;break}return fi.next=4,Object(Fe.a)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:"educoder.png",file:si.dataUrl}});case 4:qt=fi.sent,qt!=null&&qt.id&&pt(Qi.current.getAttribute("src").replace(te.a.API_SERVER,""),"/api/attachments/".concat(qt==null?void 0:qt.id,"?type=").concat(qt.content_type));case 6:case"end":return fi.stop()}},Kt)}));return function(Kt){return _i.apply(this,arguments)}}()),Vt.show(),window.markerArea=Vt},qi=Object(h.useMemo)(function(){wi.current&&(wi.current.style.zIndex=-1);try{var ni=/\(\s+\/api\/attachments\/|\(\/api\/attachments\/|\(\/attachments\/download\//g,Vt=/\"\/api\/attachments\/|\"\/attachments\/download\//g,_i=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g;Ei=Ei.replace(ni,"("+te.a.API_SERVER+"/api/attachments/").replace(Vt,'"'+te.a.API_SERVER+"/api/attachments/").replace(_i,'"'+te.a.API_SERVER+"/files/uploads/").replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,`
`)}catch(ir){}var Kt=X(Ei),si=D();if(Ei.match(/\[TOC\]/)&&(Kt=Kt.replace("[TOC]
",C()),w()),Kt=Kt.replace(/(__special_katext_id_\d+__)/g,function(ir,fi){var Ai=si[fi],Gr=Ai.type,xr=Ai.expression;return Object(ce.renderToString)(gr(xr)||"",{displayMode:Gr==="block",throwOnError:!1,output:"html"})}),Kt=Kt.replace(/▁/g,"\u2581\u2581\u2581"),O(),Me){var qt=document.createElement("div");return qt.innerHTML=Kt,qt.innerText}return setTimeout(function(){return cn()},500),Kt},[Ei]),Gi=Object(h.useRef)();m.WebkitLineClamp=rt,rt&&(Gt=Object(M.a)(Object(M.a)({},Gt),m));function yr(ni){var Vt=ni.target;if(Vt.tagName.toUpperCase()==="IMG"){if(Et){var _i=Vt.getAttribute("src");or(_i),_r("image")}}else if(Vt.tagName.toUpperCase()==="A"){var Kt=Vt.getAttribute("href");if(Kt.indexOf("office")>-1)ni.preventDefault(),or(Kt),_r("office");else if(Kt.indexOf("application/pdf")>-1)ni.preventDefault(),or(Kt),_r("pdf");else if(Kt.indexOf("text/html")>-1)ni.preventDefault(),or(Kt),_r("html");else if(Kt.startsWith("#")){ni.preventDefault();var si=document.getElementById(Kt.replace("#",""));si&&si.scrollIntoView(!0)}}}var cn=function(){var Vt,_i=(Vt=Gi.current)===null||Vt===void 0?void 0:Vt.querySelectorAll("video");_i==null||_i.forEach(function(Kt){if(Kt.oncontextmenu=function(){return!1},Kt.src.indexOf(".m3u8")>-1&&!Kt.canPlayType("application/vnd.apple.mpegurl")){if(z.a.isSupported()){var si=new z.a;si.loadSource(Kt.src),si.attachMedia(Kt)}}})};Object(h.useEffect)(function(){if(Gi.current&&qi&&(qi.match(mr)&&window.PR.prettyPrint()),Gi.current)return Gi.current.addEventListener("click",yr),function(){Gi.current.removeEventListener("click",yr),O(),w()}},[qi,Gi.current,yr]);var br=function(Vt){if(!se)return;Vt.target.nodeName==="IMG"?(wi.current.style.zIndex=1,wi.current.style.display="flex",wi.current.style.width=Vt.target.clientWidth+"px",wi.current.style.height=Vt.target.clientHeight+"px",wi.current.style.top=Vt.target.offsetTop+"px",wi.current.style.left=Vt.target.offsetLeft+"px",Qi.current.src=Vt.target.getAttribute("src")):wi.current.style.display="none"};return o.a.createElement("div",{style:{position:"relative"}},o.a.createElement("div",{ref:Gi,style:Object(M.a)({},Gt),className:"".concat(Z||""," markdown-body ").concat(pr.a.mdBody),onMouseOver:br,dangerouslySetInnerHTML:{__html:qi}}),o.a.createElement("div",{ref:wi,className:pr.a.button},o.a.createElement(L.a,null,o.a.createElement(k.a,{onClick:function(){return Xr()}},"\u88C1\u526A"),o.a.createElement(k.a,{onClick:function(){return zr()}},"\u7F16\u8F91"))),o.a.createElement("img",{ref:Qi,src:"",alt:"sample",crossOrigin:"anonymous",style:{maxWidth:"90%",opacity:0,position:"absolute",zIndex:-1}}),o.a.createElement(be.a,{close:!0,data:Wi,type:Wi!=null&&Wi.length?Ir:"",style:Object(M.a)({},Fi),onClose:function(){return or("")}}))}},"9VGf":function(at,fe,oe){"use strict";oe.d(fe,"a",function(){return I});var V=oe("q1tI"),L=oe.n(V);function I(k,M){var f=Object(V.useRef)();Object(V.useEffect)(function(){f.current=k}),Object(V.useEffect)(function(){function E(){f.current()}if(M!==null){var x=setInterval(E,M);return function(){return clearInterval(x)}}},[M])}},BU3w:function(at,fe,oe){"use strict";oe.d(fe,"a",function(){return f});var V=oe("MNnm"),L="rc-util-key";function I(E){if(E.attachTo)return E.attachTo;var x=document.querySelector("head");return x||document.body}function k(E){var x,g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(V.a)())return null;var h=document.createElement("style");if((x=g.csp)===null||x===void 0?void 0:x.nonce){var o;h.nonce=(o=g.csp)===null||o===void 0?void 0:o.nonce}h.innerHTML=E;var u=I(g),r=u.firstChild;return g.prepend&&u.prepend?u.prepend(h):g.prepend&&r?u.insertBefore(h,r):u.appendChild(h),h}var M=new Map;function f(E,x){var g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},h=I(g);if(!M.has(h)){var o=k("",g),u=o.parentNode;M.set(h,u),u.removeChild(o)}var r=Array.from(M.get(h).children).find(function(l){return l.tagName==="STYLE"&&l[L]===x});if(r){var n,t;if(((n=g.csp)===null||n===void 0?void 0:n.nonce)&&r.nonce!==((t=g.csp)===null||t===void 0?void 0:t.nonce)){var i;r.nonce=(i=g.csp)===null||i===void 0?void 0:i.nonce}return r.innerHTML!==E&&(r.innerHTML=E),r}var s=k(E,g);return s[L]=x,s}},Bd2K:function(at,fe,oe){(function(V){V(oe("VrN/"),oe("osHv"))})(function(V){V.defineOption("autoCloseTags",!1,function(g,h,o){if(o!=V.Init&&o&&g.removeKeyMap("autoCloseTags"),!h)return;var u={name:"autoCloseTags"};(typeof h!="object"||h.whenClosing!==!1)&&(u["'/'"]=function(r){return f(r)}),(typeof h!="object"||h.whenOpening!==!1)&&(u["'>'"]=function(r){return k(r)}),g.addKeyMap(u)});var L=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],I=["applet","blockquote","body","button","div","dl","fieldset","form","frameset","h1","h2","h3","h4","h5","h6","head","html","iframe","layer","legend","object","ol","p","select","table","ul"];function k(g){if(g.getOption("disableInput"))return V.Pass;for(var h=g.listSelections(),o=[],u=g.getOption("autoCloseTags"),r=0;rn.ch&&(c=c.slice(0,c.length-t.end+n.ch));var S=c.toLowerCase();if(!c||t.type=="string"&&(t.end!=n.ch||!/[\"\']/.test(t.string.charAt(t.string.length-1))||t.string.length==1)||t.type=="tag"&&l.close||t.string.indexOf("/")==n.ch-t.start-1||w&&E(w,S)>-1||x(g,i.mode.xmlCurrentContext&&i.mode.xmlCurrentContext(s)||[],c,n,!0))return V.Pass;var C=typeof u=="object"&&u.emptyTags;if(C&&E(C,c)>-1){o[r]={text:"/>",newPos:V.Pos(n.line,n.ch+2)};continue}var v=m&&E(m,S)>-1;o[r]={indent:v,text:">"+(v?`
`:"")+""+c+">",newPos:v?V.Pos(n.line+1,0):V.Pos(n.line,n.ch+1)}}for(var y=typeof u=="object"&&u.dontIndentOnAutoClose,r=h.length-1;r>=0;r--){var T=o[r];g.replaceRange(T.text,h[r].head,h[r].anchor,"+insert");var A=g.listSelections().slice(0);A[r]={head:T.newPos,anchor:T.newPos},g.setSelections(A),!y&&T.indent&&(g.indentLine(T.newPos.line,null,!0),g.indentLine(T.newPos.line+1,null,!0))}}function M(g,h){for(var o=g.listSelections(),u=[],r=h?"/":"",n=g.getOption("autoCloseTags"),t=typeof n=="object"&&n.dontIndentOnSlash,i=0;i"&&(w+=">"),u[i]=w}if(g.replaceSelections(u),o=g.listSelections(),!t)for(var i=0;i=0&&h[s]==o;s--)++i;u=t.to;for(var s=1;s0){for(var h=0;h1&&arguments[1]!==void 0?arguments[1]:"",h=[],o=0;oxe.length)&&(ge=xe.length);for(var ye=0,J=new Array(ge);ye=xe.length?{done:!0}:{done:!1,value:xe[J++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}return ye=xe[Symbol.iterator](),ye.next.bind(ye)}function f(xe,ge){return ge={exports:{}},xe(ge,ge.exports),ge.exports}var E=f(function(xe){function ge(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}function ye(J){xe.exports.defaults=J}xe.exports={defaults:ge(),getDefaults:ge,changeDefaults:ye}}),x=E.defaults,g=E.getDefaults,h=E.changeDefaults,o=/[&<>"']/,u=/[&<>"']/g,r=/[<>"']|&(?!#?\w+;)/,n=/[<>"']|&(?!#?\w+;)/g,t={"&":"&","<":"<",">":">",'"':""","'":"'"},i=function(ge){return t[ge]};function s(xe,ge){if(ge){if(o.test(xe))return xe.replace(u,i)}else if(r.test(xe))return xe.replace(n,i);return xe}var l=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function c(xe){return xe.replace(l,function(ge,ye){return ye=ye.toLowerCase(),ye==="colon"?":":ye.charAt(0)==="#"?ye.charAt(1)==="x"?String.fromCharCode(parseInt(ye.substring(2),16)):String.fromCharCode(+ye.substring(1)):""})}var d=/(^|[^\[])\^/g;function w(xe,ge){xe=xe.source||xe,ge=ge||"";var ye={replace:function(ne,q){return q=q.source||q,q=q.replace(d,"$1"),xe=xe.replace(ne,q),ye},getRegex:function(){return new RegExp(xe,ge)}};return ye}var m=/[^\w:]/g,S=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function C(xe,ge,ye){if(xe){var J;try{J=decodeURIComponent(c(ye)).replace(m,"").toLowerCase()}catch(ne){return null}if(J.indexOf("javascript:")===0||J.indexOf("vbscript:")===0||J.indexOf("data:")===0)return null}ge&&!S.test(ye)&&(ye=p(ge,ye));try{ye=encodeURI(ye).replace(/%25/g,"%")}catch(ne){return null}return ye}var v={},y=/^[^:]+:\/*[^/]*$/,T=/^([^:]+:)[\s\S]*$/,A=/^([^:]+:\/*[^/]*)[\s\S]*$/;function p(xe,ge){v[" "+xe]||(y.test(xe)?v[" "+xe]=xe+"/":v[" "+xe]=j(xe,"/",!0)),xe=v[" "+xe];var ye=xe.indexOf(":")===-1;return ge.substring(0,2)==="//"?ye?ge:xe.replace(T,"$1")+ge:ge.charAt(0)==="/"?ye?ge:xe.replace(A,"$1")+ge:xe+ge}var D={exec:function(){}};function O(xe){for(var ge=1,ye,J;ge=0&&Ce[we]==="\\";)G=!G;return G?"|":" |"}),J=ye.split(/ \|/),ne=0;if(J.length>ge)J.splice(ge);else for(;J.length=J.length?ne.slice(J.length):ne}).join(`
`)}var Oe=function(){function xe(ye){this.options=ye||B}var ge=xe.prototype;return ge.space=function(J){var ne=this.rules.block.newline.exec(J);if(ne)return ne[0].length>1?{type:"space",raw:ne[0]}:{raw:`
`}},ge.code=function(J,ne){var q=this.rules.block.code.exec(J);if(q){var me=ne[ne.length-1];if(me&&me.type==="paragraph")return{raw:q[0],text:q[0].trimRight()};var Ce=q[0].replace(/^ {4}/gm,"");return{type:"code",raw:q[0],codeBlockStyle:"indented",text:this.options.pedantic?Ce:N(Ce,`
`)}}},ge.fences=function(J){var ne=this.rules.block.fences.exec(J);if(ne){var q=ne[0],me=Fe(q,ne[3]||"");return{type:"code",raw:q,lang:ne[2]?ne[2].trim():ne[2],text:me}}},ge.heading=function(J){var ne=this.rules.block.heading.exec(J);if(ne)return{type:"heading",raw:ne[0],depth:ne[1].length,text:ne[2]}},ge.nptable=function(J){var ne=this.rules.block.nptable.exec(J);if(ne){var q={type:"table",header:z(ne[1].replace(/^ *| *\| *$/g,"")),align:ne[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:ne[3]?ne[3].replace(/\n$/,"").split(`
`):[],raw:ne[0]};if(q.header.length===q.align.length){var me=q.align.length,Ce;for(Ce=0;Ce ?/gm,"");return{type:"blockquote",raw:ne[0],text:q}}},ge.list=function(J){var ne=this.rules.block.list.exec(J);if(ne){for(var q=ne[0],me=ne[2],Ce=me.length>1,G=me[me.length-1]===")",we={type:"list",raw:q,ordered:Ce,start:Ce?+me.slice(0,-1):"",loose:!1,items:[]},Ne=ne[0].match(this.rules.block.item),de=!1,Se,Xe,lt,tt,st,mt,Ct,_t=Ne.length,ft=0;ft<_t;ft++)Se=Ne[ft],q=Se,Xe=Se.length,Se=Se.replace(/^ *([*+-]|\d+[.)]) */,""),~Se.indexOf(`
`)&&(Xe-=Se.length,Se=this.options.pedantic?Se.replace(/^ {1,4}/gm,""):Se.replace(new RegExp("^ {1,"+Xe+"}","gm"),"")),ft!==_t-1&&(lt=this.rules.block.bullet.exec(Ne[ft+1])[0],(Ce?lt.length===1||!G&<[lt.length-1]===")":lt.length>1||this.options.smartLists&<!==me)&&(tt=Ne.slice(ft+1).join(`
`),we.raw=we.raw.substring(0,we.raw.length-tt.length),ft=_t-1)),st=de||/\n\n(?!\s*$)/.test(Se),ft!==_t-1&&(de=Se.charAt(Se.length-1)===`
`,st||(st=de)),st&&(we.loose=!0),mt=/^\[[ xX]\] /.test(Se),Ct=void 0,mt&&(Ct=Se[1]!==" ",Se=Se.replace(/^\[[ xX]\] +/,"")),we.items.push({type:"list_item",raw:q,task:mt,checked:Ct,loose:st,text:Se});return we}},ge.html=function(J){var ne=this.rules.block.html.exec(J);if(ne)return{type:this.options.sanitize?"paragraph":"html",raw:ne[0],pre:!this.options.sanitizer&&(ne[1]==="pre"||ne[1]==="script"||ne[1]==="style"),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(ne[0]):te(ne[0]):ne[0]}},ge.def=function(J){var ne=this.rules.block.def.exec(J);if(ne){ne[3]&&(ne[3]=ne[3].substring(1,ne[3].length-1));var q=ne[1].toLowerCase().replace(/\s+/g," ");return{tag:q,raw:ne[0],href:ne[2],title:ne[3]}}},ge.table=function(J){var ne=this.rules.block.table.exec(J);if(ne){var q={type:"table",header:z(ne[1].replace(/^ *| *\| *$/g,"")),align:ne[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:ne[3]?ne[3].replace(/\n$/,"").split(`
`):[]};if(q.header.length===q.align.length){q.raw=ne[0];var me=q.align.length,Ce;for(Ce=0;Ce/i.test(me[0])&&(ne=!1),!q&&/^<(pre|code|kbd|script)(\s|>)/i.test(me[0])?q=!0:q&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(me[0])&&(q=!1),{type:this.options.sanitize?"text":"html",raw:me[0],inLink:ne,inRawBlock:q,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(me[0]):te(me[0]):me[0]}},ge.link=function(J){var ne=this.rules.inline.link.exec(J);if(ne){var q=ce(ne[2],"()");if(q>-1){var me=ne[0].indexOf("!")===0?5:4,Ce=me+ne[1].length+q;ne[2]=ne[2].substring(0,q),ne[0]=ne[0].substring(0,Ce).trim(),ne[3]=""}var G=ne[2],we="";if(this.options.pedantic){var Ne=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(G);Ne?(G=Ne[1],we=Ne[3]):we=""}else we=ne[3]?ne[3].slice(1,-1):"";G=G.trim().replace(/^<([\s\S]*)>$/,"$1");var de=be(ne,{href:G&&G.replace(this.rules.inline._escapes,"$1"),title:we&&we.replace(this.rules.inline._escapes,"$1")},ne[0]);return de}},ge.reflink=function(J,ne){var q;if((q=this.rules.inline.reflink.exec(J))||(q=this.rules.inline.nolink.exec(J))){var me=(q[2]||q[1]).replace(/\s+/g," ");if(me=ne[me.toLowerCase()],!me||!me.href){var Ce=q[0].charAt(0);return{type:"text",raw:Ce,text:Ce}}var G=be(q,me,q[0]);return G}},ge.strong=function(J,ne,q){q===void 0&&(q="");var me=this.rules.inline.strong.start.exec(J);if(me&&(!me[1]||me[1]&&(q===""||this.rules.inline.punctuation.exec(q)))){ne=ne.slice(-1*J.length);var Ce=me[0]==="**"?this.rules.inline.strong.endAst:this.rules.inline.strong.endUnd;Ce.lastIndex=0;for(var G;(me=Ce.exec(ne))!=null;)if(G=this.rules.inline.strong.middle.exec(ne.slice(0,me.index+3)),G)return{type:"strong",raw:J.slice(0,G[0].length),text:J.slice(2,G[0].length-2)}}},ge.em=function(J,ne,q){q===void 0&&(q="");var me=this.rules.inline.em.start.exec(J);if(me&&(!me[1]||me[1]&&(q===""||this.rules.inline.punctuation.exec(q)))){ne=ne.slice(-1*J.length);var Ce=me[0]==="*"?this.rules.inline.em.endAst:this.rules.inline.em.endUnd;Ce.lastIndex=0;for(var G;(me=Ce.exec(ne))!=null;)if(G=this.rules.inline.em.middle.exec(ne.slice(0,me.index+2)),G)return{type:"em",raw:J.slice(0,G[0].length),text:J.slice(1,G[0].length-1)}}},ge.codespan=function(J){var ne=this.rules.inline.code.exec(J);if(ne){var q=ne[2].replace(/\n/g," "),me=/[^ ]/.test(q),Ce=q.startsWith(" ")&&q.endsWith(" ");return me&&Ce&&(q=q.substring(1,q.length-1)),q=te(q,!0),{type:"codespan",raw:ne[0],text:q}}},ge.br=function(J){var ne=this.rules.inline.br.exec(J);if(ne)return{type:"br",raw:ne[0]}},ge.del=function(J){var ne=this.rules.inline.del.exec(J);if(ne)return{type:"del",raw:ne[0],text:ne[1]}},ge.autolink=function(J,ne){var q=this.rules.inline.autolink.exec(J);if(q){var me,Ce;return q[2]==="@"?(me=te(this.options.mangle?ne(q[1]):q[1]),Ce="mailto:"+me):(me=te(q[1]),Ce=me),{type:"link",raw:q[0],text:me,href:Ce,tokens:[{type:"text",raw:me,text:me}]}}},ge.url=function(J,ne){var q;if(q=this.rules.inline.url.exec(J)){var me,Ce;if(q[2]==="@")me=te(this.options.mangle?ne(q[0]):q[0]),Ce="mailto:"+me;else{var G;do G=q[0],q[0]=this.rules.inline._backpedal.exec(q[0])[0];while(G!==q[0]);me=te(q[0]),q[1]==="www."?Ce="http://"+me:Ce=me}return{type:"link",raw:q[0],text:me,href:Ce,tokens:[{type:"text",raw:me,text:me}]}}},ge.inlineText=function(J,ne,q){var me=this.rules.inline.text.exec(J);if(me){var Ce;return ne?Ce=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(me[0]):te(me[0]):me[0]:Ce=te(this.options.smartypants?q(me[0]):me[0]),{type:"text",raw:me[0],text:Ce}}},xe}(),Re=X.noopTest,Be=X.edit,Ke=X.merge,Ae={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?:\n+|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6}) +([^\n]*?)(?: +#+)? *(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3})(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:"^ {0,3}(?:<(script|pre|style)[\\s>][\\s\\S]*?(?:\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?\\?>\\n*|\\n*|\\n*|?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:\\n{2,}|$)|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$)|(?!script|pre|style)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$))",def:/^ {0,3}\[(label)\]: *\n? *([^\s>]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,nptable:Re,table:Re,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html)[^\n]+)*)/,text:/^[^\n]+/};Ae._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,Ae._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,Ae.def=Be(Ae.def).replace("label",Ae._label).replace("title",Ae._title).getRegex(),Ae.bullet=/(?:[*+-]|\d{1,9}[.)])/,Ae.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/,Ae.item=Be(Ae.item,"gm").replace(/bull/g,Ae.bullet).getRegex(),Ae.list=Be(Ae.list).replace(/bull/g,Ae.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+Ae.def.source+")").getRegex(),Ae._tag="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|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Ae._comment=//,Ae.html=Be(Ae.html,"i").replace("comment",Ae._comment).replace("tag",Ae._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Ae.paragraph=Be(Ae._paragraph).replace("hr",Ae.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",Ae._tag).getRegex(),Ae.blockquote=Be(Ae.blockquote).replace("paragraph",Ae.paragraph).getRegex(),Ae.normal=Ke({},Ae),Ae.gfm=Ke({},Ae.normal,{nptable:"^ *([^|\\n ].*\\|.*)\\n *([-:]+ *\\|[-| :]*)(?:\\n((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)",table:"^ *\\|(.+)\\n *\\|?( *[-:]+[-| :]*)(?:\\n *((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),Ae.gfm.nptable=Be(Ae.gfm.nptable).replace("hr",Ae.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",Ae._tag).getRegex(),Ae.gfm.table=Be(Ae.gfm.table).replace("hr",Ae.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",Ae._tag).getRegex(),Ae.pedantic=Ke({},Ae.normal,{html:Be(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?\\1> *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Ae._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/,fences:Re,paragraph:Be(Ae.normal._paragraph).replace("hr",Ae.hr).replace("heading",` *#{1,6} *[^
]`).replace("lheading",Ae.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var _e={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:Re,tag:"^comment|^[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",strong:{start:/^(?:(\*\*(?=[*punctuation]))|\*\*)(?![\s])|__/,middle:/^\*\*(?:(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)|\*(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)*?\*)+?\*\*$|^__(?![\s])((?:(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)|_(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)*?_)+?)__$/,endAst:/[^punctuation\s]\*\*(?!\*)|[punctuation]\*\*(?!\*)(?:(?=[punctuation\s]|$))/,endUnd:/[^\s]__(?!_)(?:(?=[punctuation\s])|$)/},em:{start:/^(?:(\*(?=[punctuation]))|\*)(?![*\s])|_/,middle:/^\*(?:(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)|\*(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)*?\*)+?\*$|^_(?![_\s])(?:(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)|_(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)*?_)+?_$/,endAst:/[^punctuation\s]\*(?!\*)|[punctuation]\*(?!\*)(?:(?=[punctuation\s]|$))/,endUnd:/[^\s]_(?!_)(?:(?=[punctuation\s])|$)/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:Re,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\?@\\[\\]`^{|}~",_e.punctuation=Be(_e.punctuation).replace(/punctuation/g,_e._punctuation).getRegex(),_e._blockSkip="\\[[^\\]]*?\\]\\([^\\)]*?\\)|`[^`]*?`|<[^>]*?>",_e._overlapSkip="__[^_]*?__|\\*\\*\\[^\\*\\]*?\\*\\*",_e.em.start=Be(_e.em.start).replace(/punctuation/g,_e._punctuation).getRegex(),_e.em.middle=Be(_e.em.middle).replace(/punctuation/g,_e._punctuation).replace(/overlapSkip/g,_e._overlapSkip).getRegex(),_e.em.endAst=Be(_e.em.endAst,"g").replace(/punctuation/g,_e._punctuation).getRegex(),_e.em.endUnd=Be(_e.em.endUnd,"g").replace(/punctuation/g,_e._punctuation).getRegex(),_e.strong.start=Be(_e.strong.start).replace(/punctuation/g,_e._punctuation).getRegex(),_e.strong.middle=Be(_e.strong.middle).replace(/punctuation/g,_e._punctuation).replace(/blockSkip/g,_e._blockSkip).getRegex(),_e.strong.endAst=Be(_e.strong.endAst,"g").replace(/punctuation/g,_e._punctuation).getRegex(),_e.strong.endUnd=Be(_e.strong.endUnd,"g").replace(/punctuation/g,_e._punctuation).getRegex(),_e.blockSkip=Be(_e._blockSkip,"g").getRegex(),_e.overlapSkip=Be(_e._overlapSkip,"g").getRegex(),_e._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,_e._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,_e._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])?)+(?![-_])/,_e.autolink=Be(_e.autolink).replace("scheme",_e._scheme).replace("email",_e._email).getRegex(),_e._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,_e.tag=Be(_e.tag).replace("comment",Ae._comment).replace("attribute",_e._attribute).getRegex(),_e._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,_e._href=/<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*/,_e._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,_e.link=Be(_e.link).replace("label",_e._label).replace("href",_e._href).replace("title",_e._title).getRegex(),_e.reflink=Be(_e.reflink).replace("label",_e._label).getRegex(),_e.reflinkSearch=Be(_e.reflinkSearch,"g").replace("reflink",_e.reflink).replace("nolink",_e.nolink).getRegex(),_e.normal=Ke({},_e),_e.pedantic=Ke({},_e.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:Be(/^!?\[(label)\]\((.*?)\)/).replace("label",_e._label).getRegex(),reflink:Be(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",_e._label).getRegex()}),_e.gfm=Ke({},_e.normal,{escape:Be(_e.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^~+(?=\S)([\s\S]*?\S)~+/,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\.5&&(J="x"+J.toString(16)),ge+=""+J+";";return ge}var Ze=function(){function xe(ye){this.tokens=[],this.tokens.links=Object.create(null),this.options=ye||Ee,this.options.tokenizer=this.options.tokenizer||new Oe,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var J={block:pe.normal,inline:Ge.normal};this.options.pedantic?(J.block=pe.pedantic,J.inline=Ge.pedantic):this.options.gfm&&(J.block=pe.gfm,this.options.breaks?J.inline=Ge.breaks:J.inline=Ge.gfm),this.tokenizer.rules=J}xe.lex=function(J,ne){var q=new xe(ne);return q.lex(J)};var ge=xe.prototype;return ge.lex=function(J){return J=J.replace(/\r\n|\r/g,`
`).replace(/\t/g," "),this.blockTokens(J,this.tokens,!0),this.inline(this.tokens),this.tokens},ge.blockTokens=function(J,ne,q){ne===void 0&&(ne=[]),q===void 0&&(q=!0),J=J.replace(/^ +$/gm,"");for(var me,Ce,G,we;J;){if(me=this.tokenizer.space(J)){J=J.substring(me.raw.length),me.type&&ne.push(me);continue}if(me=this.tokenizer.code(J,ne)){J=J.substring(me.raw.length),me.type?ne.push(me):(we=ne[ne.length-1],we.raw+=`
`+me.raw,we.text+=`
`+me.text);continue}if(me=this.tokenizer.fences(J)){J=J.substring(me.raw.length),ne.push(me);continue}if(me=this.tokenizer.heading(J)){J=J.substring(me.raw.length),ne.push(me);continue}if(me=this.tokenizer.nptable(J)){J=J.substring(me.raw.length),ne.push(me);continue}if(me=this.tokenizer.hr(J)){J=J.substring(me.raw.length),ne.push(me);continue}if(me=this.tokenizer.blockquote(J)){J=J.substring(me.raw.length),me.tokens=this.blockTokens(me.text,[],q),ne.push(me);continue}if(me=this.tokenizer.list(J)){for(J=J.substring(me.raw.length),G=me.items.length,Ce=0;Ce0)for(;(Ne=this.tokenizer.rules.inline.reflinkSearch.exec(we))!=null;)de.includes(Ne[0].slice(Ne[0].lastIndexOf("[")+1,-1))&&(we=we.slice(0,Ne.index)+"["+"a".repeat(Ne[0].length-2)+"]"+we.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(Ne=this.tokenizer.rules.inline.blockSkip.exec(we))!=null;)we=we.slice(0,Ne.index)+"["+"a".repeat(Ne[0].length-2)+"]"+we.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;J;){if(G=this.tokenizer.escape(J)){J=J.substring(G.raw.length),ne.push(G);continue}if(G=this.tokenizer.tag(J,q,me)){J=J.substring(G.raw.length),q=G.inLink,me=G.inRawBlock,ne.push(G);continue}if(G=this.tokenizer.link(J)){J=J.substring(G.raw.length),G.type==="link"&&(G.tokens=this.inlineTokens(G.text,[],!0,me)),ne.push(G);continue}if(G=this.tokenizer.reflink(J,this.tokens.links)){J=J.substring(G.raw.length),G.type==="link"&&(G.tokens=this.inlineTokens(G.text,[],!0,me)),ne.push(G);continue}if(G=this.tokenizer.strong(J,we,Ce)){J=J.substring(G.raw.length),G.tokens=this.inlineTokens(G.text,[],q,me),ne.push(G);continue}if(G=this.tokenizer.em(J,we,Ce)){J=J.substring(G.raw.length),G.tokens=this.inlineTokens(G.text,[],q,me),ne.push(G);continue}if(G=this.tokenizer.codespan(J)){J=J.substring(G.raw.length),ne.push(G);continue}if(G=this.tokenizer.br(J)){J=J.substring(G.raw.length),ne.push(G);continue}if(G=this.tokenizer.del(J)){J=J.substring(G.raw.length),G.tokens=this.inlineTokens(G.text,[],q,me),ne.push(G);continue}if(G=this.tokenizer.autolink(J,ze)){J=J.substring(G.raw.length),ne.push(G);continue}if(!q&&(G=this.tokenizer.url(J,ze))){J=J.substring(G.raw.length),ne.push(G);continue}if(G=this.tokenizer.inlineText(J,me,Ye)){J=J.substring(G.raw.length),Ce=G.raw.slice(-1),ne.push(G);continue}if(J){var Se="Infinite loop on byte: "+J.charCodeAt(0);if(this.options.silent){console.error(Se);break}else throw new Error(Se)}}return ne},L(xe,null,[{key:"rules",get:function(){return{block:pe,inline:Ge}}}]),xe}(),Je=E.defaults,$e=X.cleanUrl,He=X.escape,Ue=function(){function xe(ye){this.options=ye||Je}var ge=xe.prototype;return ge.code=function(J,ne,q){var me=(ne||"").match(/\S*/)[0];if(this.options.highlight){var Ce=this.options.highlight(J,me);Ce!=null&&Ce!==J&&(q=!0,J=Ce)}return me?''+(q?J:He(J,!0))+`
`:""+(q?J:He(J,!0))+`
`},ge.blockquote=function(J){return`
`+J+`
`},ge.html=function(J){return J},ge.heading=function(J,ne,q,me){return this.options.headerIds?"
`:""+J+"
`},ge.hr=function(){return this.options.xhtml?`
`:`
`},ge.list=function(J,ne,q){var me=ne?"ol":"ul",Ce=ne&&q!==1?' start="'+q+'"':"";return"<"+me+Ce+`>
`+J+""+me+`>
`},ge.listitem=function(J){return""+J+`
`},ge.checkbox=function(J){return" "},ge.paragraph=function(J){return""+J+`
`},ge.table=function(J,ne){return ne&&(ne=""+ne+""),`
`},ge.tablerow=function(J){return`
`+J+`
`},ge.tablecell=function(J,ne){var q=ne.header?"th":"td",me=ne.align?"<"+q+' align="'+ne.align+'">':"<"+q+">";return me+J+""+q+`>
`},ge.strong=function(J){return""+J+""},ge.em=function(J){return""+J+""},ge.codespan=function(J){return""+J+""},ge.br=function(){return this.options.xhtml?"
":"
"},ge.del=function(J){return""+J+""},ge.link=function(J,ne,q){if(J=$e(this.options.sanitize,this.options.baseUrl,J),J===null)return q;var me='"+q+"",me},ge.image=function(J,ne,q){if(J=$e(this.options.sanitize,this.options.baseUrl,J),J===null)return q;var me='
":">",me},ge.text=function(J){return J},xe}(),Pe=function(){function xe(){}var ge=xe.prototype;return ge.strong=function(J){return J},ge.em=function(J){return J},ge.codespan=function(J){return J},ge.del=function(J){return J},ge.html=function(J){return J},ge.text=function(J){return J},ge.link=function(J,ne,q){return""+q},ge.image=function(J,ne,q){return""+q},ge.br=function(){return""},xe}(),ke=function(){function xe(){this.seen={}}var ge=xe.prototype;return ge.slug=function(J){var ne=J.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(ne)){var q=ne;do this.seen[q]++,ne=q+"-"+this.seen[q];while(this.seen.hasOwnProperty(ne))}return this.seen[ne]=0,ne},xe}(),re=E.defaults,ve=X.unescape,ae=function(){function xe(ye){this.options=ye||re,this.options.renderer=this.options.renderer||new Ue,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Pe,this.slugger=new ke}xe.parse=function(J,ne){var q=new xe(ne);return q.parse(J)};var ge=xe.prototype;return ge.parse=function(J,ne){ne===void 0&&(ne=!0);var q="",me,Ce,G,we,Ne,de,Se,Xe,lt,tt,st,mt,Ct,_t,ft,kt,Nt,nt,Tt=J.length;for(me=0;me0&&ft.tokens[0].type==="text"?(ft.tokens[0].text=nt+" "+ft.tokens[0].text,ft.tokens[0].tokens&&ft.tokens[0].tokens.length>0&&ft.tokens[0].tokens[0].type==="text"&&(ft.tokens[0].tokens[0].text=nt+" "+ft.tokens[0].tokens[0].text)):ft.tokens.unshift({type:"text",text:nt}):_t+=nt),_t+=this.parse(ft.tokens,Ct),lt+=this.renderer.listitem(_t,Nt,kt);q+=this.renderer.list(lt,st,mt);continue}case"html":{q+=this.renderer.html(tt.text);continue}case"paragraph":{q+=this.renderer.paragraph(this.parseInline(tt.tokens));continue}case"text":{for(lt=tt.tokens?this.parseInline(tt.tokens):tt.text;me+1An error occurred: