q+this.CANVAS_MARGIN?this.target.offsetTop-(q+this.CANVAS_MARGIN):0;this.coverDiv.style.top=ee+"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},Ae.prototype.addToolbars=function(){this.addTopToolbar(),this.addBottomToolbar()},Ae.prototype.addTopToolbar=function(){var q=this;this.topToolbar=new k,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 ee=new H;ee.minWidth=3*this.toolbarHeight+"px",this.topToolbar.addButtonBlock(ee);var ie=[];this.aspectRatios.forEach(function(qe){var at=new W(pe.getIcon(qe.horizontal,qe.vertical),qe.horizontal===0&&qe.vertical===0?"FREE":qe.horizontal+":"+qe.vertical);at.onClick=function(){return q.ratioButtonClicked(qe)},ie.push(at)}),this.aspectRatioButton=new ge(pe.getIcon(0,0),"Aspect ratio",ie),this.aspectRatioButton.dropdownClassName=this.toolbarDropdownStyleClass.name,this.aspectRatioButton.dropdownColorsClassName=this.styles.settings.toolbarDropdownStyleColorsClassName?this.styles.settings.toolbarDropdownStyleColorsClassName:this.toolbarDropdownStyleColorsClass.name,ee.addButton(this.aspectRatioButton),this.aspectRatios.length<2&&this.aspectRatioButton.hide();var le=new W('',"Toggle grid");le.isActive=this.isGridVisible,le.onClick=function(){q.isGridVisible=!q.isGridVisible,le.isActive=q.isGridVisible},ee.addButton(le);var te=new W('',"Zoom to selection");if(te.isActive=this.zoomToCropEnabled,te.onClick=function(){q.zoomToCropEnabled=!q.zoomToCropEnabled,te.isActive=q.zoomToCropEnabled},ee.addButton(te),!X.isLicensed){var ae=new z;this.topToolbar.addElementBlock(ae);var he=document.createElement("div");he.className=this.topToolbar.buttonClassName+" "+this.topToolbar.buttonColorsClassName;var me=document.createElement("a");me.style.color="currentColor",me.href="https://markerjs.com/products/cropro",me.target="_blank",me.innerHTML='',he.appendChild(me),ae.addElement(he)}var Te=new H;Te.minWidth=3*this.toolbarHeight+"px",Te.contentAlign="end",this.topToolbar.addButtonBlock(Te);var Be=new W('',"OK");Be.onClick=this.startRenderAndClose,Te.addButton(Be),this.styles.settings.toolbarOkButtonStyleColorsClassName&&(Be.colorsClassName=this.styles.settings.toolbarOkButtonStyleColorsClassName);var je=new W('',"Close");je.onClick=this.close,Te.addButton(je),this.styles.settings.toolbarCloseButtonStyleColorsClassName&&(je.colorsClassName=this.styles.settings.toolbarCloseButtonStyleColorsClassName)},Ae.prototype.addBottomToolbar=function(){var q=this;this.bottomToolbar=new k,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 ee=new H;ee.minWidth=2*this.toolbarHeight+"px",this.bottomToolbar.addButtonBlock(ee);var ie=new W('',"Rotate left");ie.onClick=this.rotateLeftButtonClicked,ee.addButton(ie);var le=new W('',"Rotate right");le.onClick=this.rotateRightButtonClicked,ee.addButton(le);var te=new z;te.className=this.toolbarStraightenerBlockStyleClass.name,this.bottomToolbar.addElementBlock(te),this.straightener=new ke("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(Te){q.rotateBy(Te),q.straightener.angle=q.rotationAngle},te.addElement(this.straightener.getUI());var ae=new H;ae.minWidth=2*this.toolbarHeight+"px",ae.contentAlign="end",this.bottomToolbar.addButtonBlock(ae);var he=new W('',"Flip horizontal");he.onClick=this.flipHorizontallyButtonClicked,ae.addButton(he);var me=new W('',"Flip vertical");me.onClick=this.flipVerticallyButtonClicked,ae.addButton(me)},Ae.prototype.ratioButtonClicked=function(q){this.aspectRatio=q,this.applyAspectRatio(),this.aspectRatioButton.hideDropdown()},Ae.prototype.applyAspectRatio=function(){this.setCropLayerAspectRatio(),this.aspectRatioButton.icon=pe.getIcon(this.aspectRatio.horizontal,this.aspectRatio.vertical)},Ae.prototype.setCropLayerAspectRatio=function(){this.cropLayer&&(this.aspectRatio&&this.aspectRatio.horizontal!==0&&this.aspectRatio.vertical!==0?this.cropLayer.aspectRatio=new se(this.aspectRatio.horizontal,this.aspectRatio.vertical):this.cropLayer.aspectRatio=void 0)},Ae.prototype.closeUI=function(){this.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},Ae.prototype.getState=function(){return{width:this.imageWidth,height:this.imageHeight,rotationAngle:this.rotationAngle,flippedHorizontally:this.flippedHorizontally,flippedVertically:this.flippedVertically,cropRect:Object.assign({},this.cropRect)}},Ae.prototype.restoreState=function(q){if(q){var ee=this.cropLayer.getRescaledRect(q.width,q.height,this.imageWidth,this.imageHeight,q.cropRect,this.CANVAS_MARGIN);this.cropLayer.setCropRectangle(ee),this.cropRectChanged(ee),this.flippedHorizontally=q.flippedHorizontally,this.flippedVertically=q.flippedVertically,this.applyFlip(),this.rotationAngle=q.rotationAngle,this.applyRotation()}},Ae.prototype.clientToLocalCoordinates=function(q,ee){var ie=this.cropImage.getBoundingClientRect();return{x:q-ie.left,y:ee-ie.top}},Ae.prototype.onWindowResize=function(){this.positionUI()},Ae.prototype.positionUI=function(){switch(this.setTopLeft(),this.displayMode){case"inline":var q=this.target.offsetTop>this.toolbarHeight?this.target.offsetTop-this.toolbarHeight:0;this.coverDiv.style.top=q+"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()},Ae.prototype.rotateLeftButtonClicked=function(){var q=this.rotationAngle-90;this.rotationAngle%90!=0&&(q+=this.rotationAngle>=0?90-this.rotationAngle%90:-this.rotationAngle%90),this.rotateTo(q)},Ae.prototype.rotateRightButtonClicked=function(){var q=this.rotationAngle+90;this.rotationAngle%90!=0&&(q-=this.rotationAngle>=0?this.rotationAngle%90:90+this.rotationAngle%90),this.rotateTo(q)},Ae.prototype.rotateTo=function(q){q=(q=q>180?q-360:q)<=-180?q+360:q,this.rotationAngle=q,this.applyRotation()},Ae.prototype.rotateBy=function(q){this.rotateTo((this.rotationAngle+q)%360)},Ae.prototype.applyRotation=function(){var q=this.zoomToCropEnabled;this.zoomToCropEnabled=!1,this.editingTargetRotationScaleContainer.style.transformOrigin=this.imageWidth/2+"px "+this.imageHeight/2+"px",this.editingTargetRotationScaleContainer.style.transform="scale(1)";var ee=this.editingTargetRotationContainer.transform.baseVal.getItem(0);ee.setRotate(this.rotationAngle,this.imageWidth/2,this.imageHeight/2),this.editingTargetRotationContainer.transform.baseVal.replaceItem(ee,0);var ie=this.editingTarget.getBoundingClientRect();this.scaleFactor=Math.min(this.imageWidth/ie.width,this.imageHeight/ie.height),this.editingTargetRotationScaleContainer.style.transform="scale("+this.scaleFactor+")",this.zoomToCropEnabled=q},Ae.prototype.flipHorizontallyButtonClicked=function(){this.flippedHorizontally=!this.flippedHorizontally,this.applyFlip()},Ae.prototype.flipVerticallyButtonClicked=function(){this.flippedVertically=!this.flippedVertically,this.applyFlip()},Ae.prototype.applyFlip=function(){this.editingTarget.style.transform="scale("+(this.flippedHorizontally?-1:1)+","+(this.flippedVertically?-1:1)+")"},Ae.prototype.startRenderAndClose=function(){return Fe(this,void 0,void 0,function(){var q,ee;return Ce(this,function(ie){switch(ie.label){case 0:return[4,this.render()];case 1:return q=ie.sent(),ee=this.getState(),this.renderEventListeners.forEach(function(le){return le(q,ee)}),this.close(!0),[2]}})})},Ae.prototype.render=function(){return Fe(this,void 0,void 0,function(){var q;return Ce(this,function(ee){switch(ee.label){case 0:return(q=new He).naturalSize=this.renderAtNaturalSize,q.imageType=this.renderImageType,q.imageQuality=this.renderImageQuality,q.width=this.renderWidth,q.height=this.renderHeight,this.unzoomFromCrop(),L.setAttributes(this.cropLayerContainer,[["display","none"]]),[4,q.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 ee.sent(),[4,q.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,ee.sent()]}})})},Ae.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new ne("toolbar",`
width: `+(this.displayMode==="inline"?"100%":"calc(100vw - "+2*this.popupMargin+"px)")+`;
flex-shrink: 0;
display: flex;
@@ -127,9 +127,9 @@ PERFORMANCE OF THIS SOFTWARE.
`)),this.toolbarStraightenerStyleColorsClass=this.styles.addClass(new ne("toolbar_straightener_colors",`
color: `+this.styles.settings.toolbarColor+`;
fill: currentColor;
- `))},Ae.instanceCounter=0,Ae}(),rt=Q("8hTe"),xe=Q.n(rt),Ue=/]*>/g;function Qe(Ae){var q=document.createElement("div");return q.innerHTML=Ae,q.childNodes.length===0?"":q.childNodes[0].nodeValue}var ze=we.a=function(Ae){var q=Ae.value,ee=q===void 0?"":q,ie=Ae.edit,le=ie===void 0?!1:ie,te=Ae.className,ae=Ae.showTextOnly,he=Ae.showLines,me=Ae.replaces,Te=Ae.zoomImg,Be=Ae.hasMask,je=Ae.style,qe=je===void 0?{}:je,at=Ae.stylesPrev,et=at===void 0?{}:at,_t=String(ee),ut=Object(I.useRef)(),$e=Object(I.useRef)(),kt=Object(I.useState)(""),Ut=Object(Y.a)(kt,2),yt=Ut[0],Wt=Ut[1],St=Object(I.useState)("office"),$t=Object(Y.a)(St,2),Ft=$t[0],wt=$t[1],sr=function(){var Qt=new Je($e.current);Qt.displayMode="popup",Qt.addRenderEventListener(function(){var It=Object(S.a)(e.a.mark(function Ct(yr){var Pt;return e.a.wrap(function(er){for(;;)switch(er.prev=er.next){case 0:return ut.current.style.display="none",er.next=3,Object(Le.a)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:"educoder.png",file:yr}});case 3:Pt=er.sent,Pt!=null&&Pt.id&&me($e.current.getAttribute("src").replace(oe.a.API_SERVER,""),"/api/attachments/".concat(Pt==null?void 0:Pt.id,"?type=").concat(Pt.content_type));case 5:case"end":return er.stop()}},Ct)}));return function(Ct){return It.apply(this,arguments)}}()),Qt.show()},vt=function(){var Qt=new Se.a($e.current);Qt.settings.displayMode="popup",Qt.addEventListener("render",function(){var It=Object(S.a)(e.a.mark(function Ct(yr){var Pt;return e.a.wrap(function(er){for(;;)switch(er.prev=er.next){case 0:if(ut.current.style.display="none",!$e.current){er.next=6;break}return er.next=4,Object(Le.a)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:"educoder.png",file:yr.dataUrl}});case 4:Pt=er.sent,Pt!=null&&Pt.id&&me($e.current.getAttribute("src").replace(oe.a.API_SERVER,""),"/api/attachments/".concat(Pt==null?void 0:Pt.id,"?type=").concat(Pt.content_type));case 6:case"end":return er.stop()}},Ct)}));return function(Ct){return It.apply(this,arguments)}}()),Qt.show(),window.markerArea=Qt},At=Object(I.useMemo)(function(){ut.current&&(ut.current.style.zIndex=-1);try{var nr=/\(\s+\/api\/attachments\/|\(\/api\/attachments\/|\(\/attachments\/download\//g,Qt=/\"\/api\/attachments\/|\"\/attachments\/download\//g,It=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g;_t=_t.replace(nr,"("+oe.a.API_SERVER+"/api/attachments/").replace(Qt,'"'+oe.a.API_SERVER+"/api/attachments/").replace(It,'"'+oe.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(Rr){}var Ct=N(_t),yr=_();if(_t.match(/\[TOC\]/)&&(Ct=Ct.replace("[TOC]
",T()),b()),Ct=Ct.replace(/(__special_katext_id_\d+__)/g,function(Rr,er){var ue=yr[er],ce=ue.type,ye=ue.expression;return Object(Ee.renderToString)(Qe(ye)||"",{displayMode:ce==="block",throwOnError:!1,output:"html"})}),Ct=Ct.replace(/▁/g,"\u2581\u2581\u2581"),m(),ae){var Pt=document.createElement("div");return Pt.innerHTML=Ct,Pt.innerText}return setTimeout(function(){return Ir()},500),Ct},[_t]),Et=Object(I.useRef)();y.WebkitLineClamp=he,he&&(qe=Object(U.a)(Object(U.a)({},qe),y));function hr(nr){var Qt=nr.target;if(Qt.tagName.toUpperCase()==="IMG"){if(Te){var It=Qt.getAttribute("src");Wt(It),wt("image")}}else if(Qt.tagName.toUpperCase()==="A"){var Ct=Qt.getAttribute("href");if(Ct.indexOf("office")>-1)nr.preventDefault(),Wt(Ct),wt("office");else if(Ct.indexOf("application/pdf")>-1)nr.preventDefault(),Wt(Ct),wt("pdf");else if(Ct.indexOf("text/html")>-1)nr.preventDefault(),Wt(Ct),wt("html");else if(Ct.startsWith("#")){nr.preventDefault();var yr=document.getElementById(Ct.replace("#",""));yr&&yr.scrollIntoView(!0)}}}var Ir=function(){var Qt,It=(Qt=Et.current)===null||Qt===void 0?void 0:Qt.querySelectorAll("video");It==null||It.forEach(function(Ct){if(Ct.oncontextmenu=function(){return!1},Ct.src.indexOf(".m3u8")>-1&&!Ct.canPlayType("application/vnd.apple.mpegurl")){if($.a.isSupported()){var yr=new $.a;yr.loadSource(Ct.src),yr.attachMedia(Ct)}}})};Object(I.useEffect)(function(){if(Et.current&&At&&(At.match(Ue)&&window.PR.prettyPrint()),Et.current)return Et.current.addEventListener("click",hr),function(){Et.current.removeEventListener("click",hr),m(),b()}},[At,Et.current,hr]);var zr=function(Qt){if(!le)return;Qt.target.nodeName==="IMG"?(ut.current.style.zIndex=1,ut.current.style.display="flex",ut.current.style.width=Qt.target.clientWidth+"px",ut.current.style.height=Qt.target.clientHeight+"px",ut.current.style.top=Qt.target.offsetTop+"px",ut.current.style.left=Qt.target.offsetLeft+"px",$e.current.src=Qt.target.getAttribute("src")):ut.current.style.display="none"};return p.a.createElement("div",{style:{position:"relative"}},p.a.createElement("div",{ref:Et,style:Object(U.a)({},qe),className:"".concat(te||""," markdown-body ").concat(xe.a.mdBody),onMouseOver:zr,dangerouslySetInnerHTML:{__html:At}}),p.a.createElement("div",{ref:ut,className:xe.a.button},p.a.createElement(K.a,null,p.a.createElement(G.a,{onClick:function(){return sr()}},"\u88C1\u526A"),p.a.createElement(G.a,{onClick:function(){return vt()}},"\u7F16\u8F91"))),p.a.createElement("img",{ref:$e,src:"",alt:"sample",crossOrigin:"anonymous",style:{maxWidth:"90%",opacity:0,position:"absolute",zIndex:-1}}),p.a.createElement(ve.a,{close:!0,data:yt,type:yt!=null&&yt.length?Ft:"",style:Object(U.a)({},et),onClose:function(){return Wt("")}}))}},BU3w:function(ot,we,Q){"use strict";Q.d(we,"a",function(){return S});var de=Q("MNnm"),K="rc-util-key";function O(Y){if(Y.attachTo)return Y.attachTo;var M=document.querySelector("head");return M||document.body}function G(Y){var M,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(de.a)())return null;var I=document.createElement("style");if((M=e.csp)===null||M===void 0?void 0:M.nonce){var p;I.nonce=(p=e.csp)===null||p===void 0?void 0:p.nonce}I.innerHTML=Y;var g=O(e),c=g.firstChild;return e.prepend&&g.prepend?g.prepend(I):e.prepend&&c?g.insertBefore(I,c):g.appendChild(I),I}var U=new Map;function S(Y,M){var e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},I=O(e);if(!U.has(I)){var p=G("",e),g=p.parentNode;U.set(I,g),g.removeChild(p)}var c=Array.from(U.get(I).children).find(function(a){return a.tagName==="STYLE"&&a[K]===M});if(c){var s,i;if(((s=e.csp)===null||s===void 0?void 0:s.nonce)&&c.nonce!==((i=e.csp)===null||i===void 0?void 0:i.nonce)){var A;c.nonce=(A=e.csp)===null||A===void 0?void 0:A.nonce}return c.innerHTML!==Y&&(c.innerHTML=Y),c}var o=G(Y,e);return o[K]=M,o}},"C/vA":function(ot,we,Q){"use strict";Q.d(we,"a",function(){return de});function de(K){const O=this;let G=!1,U;return function(){return G||(G=!0,U=K.apply(O,arguments)),U}}},"Cg/j":function(ot,we,Q){"use strict";Q.d(we,"b",function(){return de}),Q.d(we,"a",function(){return K}),Q.d(we,"c",function(){return G}),Q.d(we,"d",function(){return U});var de;(function(S){S.serviceIds=new Map,S.DI_TARGET="$di$target",S.DI_DEPENDENCIES="$di$dependencies";function Y(M){return M[S.DI_DEPENDENCIES]||[]}S.getServiceDependencies=Y})(de||(de={}));const K=G("instantiationService");function O(S,Y,M,e){Y[de.DI_TARGET]===Y?Y[de.DI_DEPENDENCIES].push({id:S,index:M,optional:e}):(Y[de.DI_DEPENDENCIES]=[{id:S,index:M,optional:e}],Y[de.DI_TARGET]=Y)}function G(S){if(de.serviceIds.has(S))return de.serviceIds.get(S);const Y=function(M,e,I){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");O(Y,M,I,!1)};return Y.toString=()=>S,de.serviceIds.set(S,Y),Y}function U(S){return function(Y,M,e){if(arguments.length!==3)throw new Error("@optional-decorator can only be used to decorate a parameter");O(S,Y,e,!0)}}},DlQD:function(ot,we,Q){(function(de,K){ot.exports=K()})(this,function(){"use strict";function de(ee,ie){for(var le=0;leee.length)&&(ie=ee.length);for(var le=0,te=new Array(ie);le=ee.length?{done:!0}:{done:!1,value:ee[te++]}}}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 le=ee[Symbol.iterator](),le.next.bind(le)}function S(ee,ie){return ie={exports:{}},ee(ie,ie.exports),ie.exports}var Y=S(function(ee){function ie(){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 le(te){ee.exports.defaults=te}ee.exports={defaults:ie(),getDefaults:ie,changeDefaults:le}}),M=Y.defaults,e=Y.getDefaults,I=Y.changeDefaults,p=/[&<>"']/,g=/[&<>"']/g,c=/[<>"']|&(?!#?\w+;)/,s=/[<>"']|&(?!#?\w+;)/g,i={"&":"&","<":"<",">":">",'"':""","'":"'"},A=function(ie){return i[ie]};function o(ee,ie){if(ie){if(p.test(ee))return ee.replace(g,A)}else if(c.test(ee))return ee.replace(s,A);return ee}var a=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function r(ee){return ee.replace(a,function(ie,le){return le=le.toLowerCase(),le==="colon"?":":le.charAt(0)==="#"?le.charAt(1)==="x"?String.fromCharCode(parseInt(le.substring(2),16)):String.fromCharCode(+le.substring(1)):""})}var t=/(^|[^\[])\^/g;function b(ee,ie){ee=ee.source||ee,ie=ie||"";var le={replace:function(ae,he){return he=he.source||he,he=he.replace(t,"$1"),ee=ee.replace(ae,he),le},getRegex:function(){return new RegExp(ee,ie)}};return le}var y=/[^\w:]/g,E=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function T(ee,ie,le){if(ee){var te;try{te=decodeURIComponent(r(le)).replace(y,"").toLowerCase()}catch(ae){return null}if(te.indexOf("javascript:")===0||te.indexOf("vbscript:")===0||te.indexOf("data:")===0)return null}ie&&!E.test(le)&&(le=u(ie,le));try{le=encodeURI(le).replace(/%25/g,"%")}catch(ae){return null}return le}var v={},d=/^[^:]+:\/*[^/]*$/,n=/^([^:]+:)[\s\S]*$/,l=/^([^:]+:\/*[^/]*)[\s\S]*$/;function u(ee,ie){v[" "+ee]||(d.test(ee)?v[" "+ee]=ee+"/":v[" "+ee]=R(ee,"/",!0)),ee=v[" "+ee];var le=ee.indexOf(":")===-1;return ie.substring(0,2)==="//"?le?ie:ee.replace(n,"$1")+ie:ie.charAt(0)==="/"?le?ie:ee.replace(l,"$1")+ie:ee+ie}var _={exec:function(){}};function m(ee){for(var ie=1,le,te;ie=0&&Te[je]==="\\";)Be=!Be;return Be?"|":" |"}),te=le.split(/ \|/),ae=0;if(te.length>ie)te.splice(ie);else for(;te.length]*>/g;function Qe(Ae){var q=document.createElement("div");return q.innerHTML=Ae,q.childNodes.length===0?"":q.childNodes[0].nodeValue}var ze=we.a=function(Ae){var q=Ae.value,ee=q===void 0?"":q,ie=Ae.edit,le=ie===void 0?!1:ie,te=Ae.className,ae=Ae.showTextOnly,he=Ae.showLines,me=Ae.replaces,Te=Ae.zoomImg,Be=Ae.hasMask,je=Ae.style,qe=je===void 0?{}:je,at=Ae.stylesPrev,et=at===void 0?{}:at,_t=String(ee),ut=Object(I.useRef)(),$e=Object(I.useRef)(),kt=Object(I.useState)(""),Ut=Object(Y.a)(kt,2),yt=Ut[0],Wt=Ut[1],St=Object(I.useState)("office"),$t=Object(Y.a)(St,2),Ft=$t[0],wt=$t[1],sr=function(){var Qt=new Je($e.current);Qt.displayMode="popup",Qt.addRenderEventListener(function(){var It=Object(S.a)(e.a.mark(function Ct(yr){var Nt;return e.a.wrap(function(er){for(;;)switch(er.prev=er.next){case 0:return ut.current.style.display="none",er.next=3,Object(Le.a)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:"educoder.png",file:yr}});case 3:Nt=er.sent,Nt!=null&&Nt.id&&me($e.current.getAttribute("src").replace(oe.a.API_SERVER,""),"/api/attachments/".concat(Nt==null?void 0:Nt.id,"?type=").concat(Nt.content_type));case 5:case"end":return er.stop()}},Ct)}));return function(Ct){return It.apply(this,arguments)}}()),Qt.show()},vt=function(){var Qt=new Se.a($e.current);Qt.settings.displayMode="popup",Qt.addEventListener("render",function(){var It=Object(S.a)(e.a.mark(function Ct(yr){var Nt;return e.a.wrap(function(er){for(;;)switch(er.prev=er.next){case 0:if(ut.current.style.display="none",!$e.current){er.next=6;break}return er.next=4,Object(Le.a)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:"educoder.png",file:yr.dataUrl}});case 4:Nt=er.sent,Nt!=null&&Nt.id&&me($e.current.getAttribute("src").replace(oe.a.API_SERVER,""),"/api/attachments/".concat(Nt==null?void 0:Nt.id,"?type=").concat(Nt.content_type));case 6:case"end":return er.stop()}},Ct)}));return function(Ct){return It.apply(this,arguments)}}()),Qt.show(),window.markerArea=Qt},At=Object(I.useMemo)(function(){ut.current&&(ut.current.style.zIndex=-1);try{var nr=/\(\s+\/api\/attachments\/|\(\/api\/attachments\/|\(\/attachments\/download\//g,Qt=/\"\/api\/attachments\/|\"\/attachments\/download\//g,It=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g;_t=_t.replace(nr,"("+oe.a.API_SERVER+"/api/attachments/").replace(Qt,'"'+oe.a.API_SERVER+"/api/attachments/").replace(It,'"'+oe.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(Rr){}var Ct=P(_t),yr=_();if(_t.match(/\[TOC\]/)&&(Ct=Ct.replace("[TOC]
",T()),b()),Ct=Ct.replace(/(__special_katext_id_\d+__)/g,function(Rr,er){var ue=yr[er],ce=ue.type,ye=ue.expression;return Object(Ee.renderToString)(Qe(ye)||"",{displayMode:ce==="block",throwOnError:!1,output:"html"})}),Ct=Ct.replace(/▁/g,"\u2581\u2581\u2581"),m(),ae){var Nt=document.createElement("div");return Nt.innerHTML=Ct,Nt.innerText}return setTimeout(function(){return Ir()},500),Ct},[_t]),Et=Object(I.useRef)();y.WebkitLineClamp=he,he&&(qe=Object(U.a)(Object(U.a)({},qe),y));function hr(nr){var Qt=nr.target;if(Qt.tagName.toUpperCase()==="IMG"){if(Te){var It=Qt.getAttribute("src");Wt(It),wt("image")}}else if(Qt.tagName.toUpperCase()==="A"){var Ct=Qt.getAttribute("href");if(Ct.indexOf("office")>-1)nr.preventDefault(),Wt(Ct),wt("office");else if(Ct.indexOf("application/pdf")>-1)nr.preventDefault(),Wt(Ct),wt("pdf");else if(Ct.indexOf("text/html")>-1)nr.preventDefault(),Wt(Ct),wt("html");else if(Ct.startsWith("#")){nr.preventDefault();var yr=document.getElementById(Ct.replace("#",""));yr&&yr.scrollIntoView(!0)}}}var Ir=function(){var Qt,It=(Qt=Et.current)===null||Qt===void 0?void 0:Qt.querySelectorAll("video");It==null||It.forEach(function(Ct){if(Ct.oncontextmenu=function(){return!1},Ct.src.indexOf(".m3u8")>-1&&!Ct.canPlayType("application/vnd.apple.mpegurl")){if($.a.isSupported()){var yr=new $.a;yr.loadSource(Ct.src),yr.attachMedia(Ct)}}})};Object(I.useEffect)(function(){if(Et.current&&At&&(At.match(Ue)&&window.PR.prettyPrint()),Et.current)return Et.current.addEventListener("click",hr),function(){Et.current.removeEventListener("click",hr),m(),b()}},[At,Et.current,hr]);var zr=function(Qt){if(!le)return;Qt.target.nodeName==="IMG"?(ut.current.style.zIndex=1,ut.current.style.display="flex",ut.current.style.width=Qt.target.clientWidth+"px",ut.current.style.height=Qt.target.clientHeight+"px",ut.current.style.top=Qt.target.offsetTop+"px",ut.current.style.left=Qt.target.offsetLeft+"px",$e.current.src=Qt.target.getAttribute("src")):ut.current.style.display="none"};return p.a.createElement("div",{style:{position:"relative"}},p.a.createElement("div",{ref:Et,style:Object(U.a)({},qe),className:"".concat(te||""," markdown-body ").concat(xe.a.mdBody),onMouseOver:zr,dangerouslySetInnerHTML:{__html:At}}),p.a.createElement("div",{ref:ut,className:xe.a.button},p.a.createElement(K.a,null,p.a.createElement(G.a,{onClick:function(){return sr()}},"\u88C1\u526A"),p.a.createElement(G.a,{onClick:function(){return vt()}},"\u7F16\u8F91"))),p.a.createElement("img",{ref:$e,src:"",alt:"sample",crossOrigin:"anonymous",style:{maxWidth:"90%",opacity:0,position:"absolute",zIndex:-1}}),p.a.createElement(ve.a,{close:!0,data:yt,type:yt!=null&&yt.length?Ft:"",style:Object(U.a)({},et),onClose:function(){return Wt("")}}))}},BU3w:function(ot,we,Q){"use strict";Q.d(we,"a",function(){return S});var de=Q("MNnm"),K="rc-util-key";function O(Y){if(Y.attachTo)return Y.attachTo;var M=document.querySelector("head");return M||document.body}function G(Y){var M,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(de.a)())return null;var I=document.createElement("style");if((M=e.csp)===null||M===void 0?void 0:M.nonce){var p;I.nonce=(p=e.csp)===null||p===void 0?void 0:p.nonce}I.innerHTML=Y;var g=O(e),c=g.firstChild;return e.prepend&&g.prepend?g.prepend(I):e.prepend&&c?g.insertBefore(I,c):g.appendChild(I),I}var U=new Map;function S(Y,M){var e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},I=O(e);if(!U.has(I)){var p=G("",e),g=p.parentNode;U.set(I,g),g.removeChild(p)}var c=Array.from(U.get(I).children).find(function(a){return a.tagName==="STYLE"&&a[K]===M});if(c){var s,i;if(((s=e.csp)===null||s===void 0?void 0:s.nonce)&&c.nonce!==((i=e.csp)===null||i===void 0?void 0:i.nonce)){var A;c.nonce=(A=e.csp)===null||A===void 0?void 0:A.nonce}return c.innerHTML!==Y&&(c.innerHTML=Y),c}var o=G(Y,e);return o[K]=M,o}},"C/vA":function(ot,we,Q){"use strict";Q.d(we,"a",function(){return de});function de(K){const O=this;let G=!1,U;return function(){return G||(G=!0,U=K.apply(O,arguments)),U}}},"Cg/j":function(ot,we,Q){"use strict";Q.d(we,"b",function(){return de}),Q.d(we,"a",function(){return K}),Q.d(we,"c",function(){return G}),Q.d(we,"d",function(){return U});var de;(function(S){S.serviceIds=new Map,S.DI_TARGET="$di$target",S.DI_DEPENDENCIES="$di$dependencies";function Y(M){return M[S.DI_DEPENDENCIES]||[]}S.getServiceDependencies=Y})(de||(de={}));const K=G("instantiationService");function O(S,Y,M,e){Y[de.DI_TARGET]===Y?Y[de.DI_DEPENDENCIES].push({id:S,index:M,optional:e}):(Y[de.DI_DEPENDENCIES]=[{id:S,index:M,optional:e}],Y[de.DI_TARGET]=Y)}function G(S){if(de.serviceIds.has(S))return de.serviceIds.get(S);const Y=function(M,e,I){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");O(Y,M,I,!1)};return Y.toString=()=>S,de.serviceIds.set(S,Y),Y}function U(S){return function(Y,M,e){if(arguments.length!==3)throw new Error("@optional-decorator can only be used to decorate a parameter");O(S,Y,e,!0)}}},DlQD:function(ot,we,Q){(function(de,K){ot.exports=K()})(this,function(){"use strict";function de(ee,ie){for(var le=0;leee.length)&&(ie=ee.length);for(var le=0,te=new Array(ie);le=ee.length?{done:!0}:{done:!1,value:ee[te++]}}}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 le=ee[Symbol.iterator](),le.next.bind(le)}function S(ee,ie){return ie={exports:{}},ee(ie,ie.exports),ie.exports}var Y=S(function(ee){function ie(){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 le(te){ee.exports.defaults=te}ee.exports={defaults:ie(),getDefaults:ie,changeDefaults:le}}),M=Y.defaults,e=Y.getDefaults,I=Y.changeDefaults,p=/[&<>"']/,g=/[&<>"']/g,c=/[<>"']|&(?!#?\w+;)/,s=/[<>"']|&(?!#?\w+;)/g,i={"&":"&","<":"<",">":">",'"':""","'":"'"},A=function(ie){return i[ie]};function o(ee,ie){if(ie){if(p.test(ee))return ee.replace(g,A)}else if(c.test(ee))return ee.replace(s,A);return ee}var a=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function r(ee){return ee.replace(a,function(ie,le){return le=le.toLowerCase(),le==="colon"?":":le.charAt(0)==="#"?le.charAt(1)==="x"?String.fromCharCode(parseInt(le.substring(2),16)):String.fromCharCode(+le.substring(1)):""})}var t=/(^|[^\[])\^/g;function b(ee,ie){ee=ee.source||ee,ie=ie||"";var le={replace:function(ae,he){return he=he.source||he,he=he.replace(t,"$1"),ee=ee.replace(ae,he),le},getRegex:function(){return new RegExp(ee,ie)}};return le}var y=/[^\w:]/g,E=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function T(ee,ie,le){if(ee){var te;try{te=decodeURIComponent(r(le)).replace(y,"").toLowerCase()}catch(ae){return null}if(te.indexOf("javascript:")===0||te.indexOf("vbscript:")===0||te.indexOf("data:")===0)return null}ie&&!E.test(le)&&(le=u(ie,le));try{le=encodeURI(le).replace(/%25/g,"%")}catch(ae){return null}return le}var v={},d=/^[^:]+:\/*[^/]*$/,n=/^([^:]+:)[\s\S]*$/,l=/^([^:]+:\/*[^/]*)[\s\S]*$/;function u(ee,ie){v[" "+ee]||(d.test(ee)?v[" "+ee]=ee+"/":v[" "+ee]=R(ee,"/",!0)),ee=v[" "+ee];var le=ee.indexOf(":")===-1;return ie.substring(0,2)==="//"?le?ie:ee.replace(n,"$1")+ie:ie.charAt(0)==="/"?le?ie:ee.replace(l,"$1")+ie:ee+ie}var _={exec:function(){}};function m(ee){for(var ie=1,le,te;ie=0&&Te[je]==="\\";)Be=!Be;return Be?"|":" |"}),te=le.split(/ \|/),ae=0;if(te.length>ie)te.splice(ie);else for(;te.length=te.length?ae.slice(te.length):ae}).join(`
`)}var Se=function(){function ee(le){this.options=le||j}var ie=ee.prototype;return ie.space=function(te){var ae=this.rules.block.newline.exec(te);if(ae)return ae[0].length>1?{type:"space",raw:ae[0]}:{raw:`
`}},ie.code=function(te,ae){var he=this.rules.block.code.exec(te);if(he){var me=ae[ae.length-1];if(me&&me.type==="paragraph")return{raw:he[0],text:he[0].trimRight()};var Te=he[0].replace(/^ {4}/gm,"");return{type:"code",raw:he[0],codeBlockStyle:"indented",text:this.options.pedantic?Te:D(Te,`
@@ -139,13 +139,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
`),je.raw=je.raw.substring(0,je.raw.length-$e.length),St=Wt-1)),kt=at||/\n\n(?!\s*$)/.test(et),St!==Wt-1&&(at=et.charAt(et.length-1)===`
`,kt||(kt=at)),kt&&(je.loose=!0),Ut=/^\[[ xX]\] /.test(et),yt=void 0,Ut&&(yt=et[1]!==" ",et=et.replace(/^\[[ xX]\] +/,"")),je.items.push({type:"list_item",raw:he,task:Ut,checked:yt,loose:kt,text:et});return je}},ie.html=function(te){var ae=this.rules.block.html.exec(te);if(ae)return{type:this.options.sanitize?"paragraph":"html",raw:ae[0],pre:!this.options.sanitizer&&(ae[1]==="pre"||ae[1]==="script"||ae[1]==="style"),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(ae[0]):oe(ae[0]):ae[0]}},ie.def=function(te){var ae=this.rules.block.def.exec(te);if(ae){ae[3]&&(ae[3]=ae[3].substring(1,ae[3].length-1));var he=ae[1].toLowerCase().replace(/\s+/g," ");return{tag:he,raw:ae[0],href:ae[2],title:ae[3]}}},ie.table=function(te){var ae=this.rules.block.table.exec(te);if(ae){var he={type:"table",header:$(ae[1].replace(/^ *| *\| *$/g,"")),align:ae[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:ae[3]?ae[3].replace(/\n$/,"").split(`
`):[]};if(he.header.length===he.align.length){he.raw=ae[0];var me=he.align.length,Te;for(Te=0;Te/i.test(me[0])&&(ae=!1),!he&&/^<(pre|code|kbd|script)(\s|>)/i.test(me[0])?he=!0:he&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(me[0])&&(he=!1),{type:this.options.sanitize?"text":"html",raw:me[0],inLink:ae,inRawBlock:he,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(me[0]):oe(me[0]):me[0]}},ie.link=function(te){var ae=this.rules.inline.link.exec(te);if(ae){var he=Ee(ae[2],"()");if(he>-1){var me=ae[0].indexOf("!")===0?5:4,Te=me+ae[1].length+he;ae[2]=ae[2].substring(0,he),ae[0]=ae[0].substring(0,Te).trim(),ae[3]=""}var Be=ae[2],je="";if(this.options.pedantic){var qe=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(Be);qe?(Be=qe[1],je=qe[3]):je=""}else je=ae[3]?ae[3].slice(1,-1):"";Be=Be.trim().replace(/^<([\s\S]*)>$/,"$1");var at=ve(ae,{href:Be&&Be.replace(this.rules.inline._escapes,"$1"),title:je&&je.replace(this.rules.inline._escapes,"$1")},ae[0]);return at}},ie.reflink=function(te,ae){var he;if((he=this.rules.inline.reflink.exec(te))||(he=this.rules.inline.nolink.exec(te))){var me=(he[2]||he[1]).replace(/\s+/g," ");if(me=ae[me.toLowerCase()],!me||!me.href){var Te=he[0].charAt(0);return{type:"text",raw:Te,text:Te}}var Be=ve(he,me,he[0]);return Be}},ie.strong=function(te,ae,he){he===void 0&&(he="");var me=this.rules.inline.strong.start.exec(te);if(me&&(!me[1]||me[1]&&(he===""||this.rules.inline.punctuation.exec(he)))){ae=ae.slice(-1*te.length);var Te=me[0]==="**"?this.rules.inline.strong.endAst:this.rules.inline.strong.endUnd;Te.lastIndex=0;for(var Be;(me=Te.exec(ae))!=null;)if(Be=this.rules.inline.strong.middle.exec(ae.slice(0,me.index+3)),Be)return{type:"strong",raw:te.slice(0,Be[0].length),text:te.slice(2,Be[0].length-2)}}},ie.em=function(te,ae,he){he===void 0&&(he="");var me=this.rules.inline.em.start.exec(te);if(me&&(!me[1]||me[1]&&(he===""||this.rules.inline.punctuation.exec(he)))){ae=ae.slice(-1*te.length);var Te=me[0]==="*"?this.rules.inline.em.endAst:this.rules.inline.em.endUnd;Te.lastIndex=0;for(var Be;(me=Te.exec(ae))!=null;)if(Be=this.rules.inline.em.middle.exec(ae.slice(0,me.index+2)),Be)return{type:"em",raw:te.slice(0,Be[0].length),text:te.slice(1,Be[0].length-1)}}},ie.codespan=function(te){var ae=this.rules.inline.code.exec(te);if(ae){var he=ae[2].replace(/\n/g," "),me=/[^ ]/.test(he),Te=he.startsWith(" ")&&he.endsWith(" ");return me&&Te&&(he=he.substring(1,he.length-1)),he=oe(he,!0),{type:"codespan",raw:ae[0],text:he}}},ie.br=function(te){var ae=this.rules.inline.br.exec(te);if(ae)return{type:"br",raw:ae[0]}},ie.del=function(te){var ae=this.rules.inline.del.exec(te);if(ae)return{type:"del",raw:ae[0],text:ae[1]}},ie.autolink=function(te,ae){var he=this.rules.inline.autolink.exec(te);if(he){var me,Te;return he[2]==="@"?(me=oe(this.options.mangle?ae(he[1]):he[1]),Te="mailto:"+me):(me=oe(he[1]),Te=me),{type:"link",raw:he[0],text:me,href:Te,tokens:[{type:"text",raw:me,text:me}]}}},ie.url=function(te,ae){var he;if(he=this.rules.inline.url.exec(te)){var me,Te;if(he[2]==="@")me=oe(this.options.mangle?ae(he[0]):he[0]),Te="mailto:"+me;else{var Be;do Be=he[0],he[0]=this.rules.inline._backpedal.exec(he[0])[0];while(Be!==he[0]);me=oe(he[0]),he[1]==="www."?Te="http://"+me:Te=me}return{type:"link",raw:he[0],text:me,href:Te,tokens:[{type:"text",raw:me,text:me}]}}},ie.inlineText=function(te,ae,he){var me=this.rules.inline.text.exec(te);if(me){var Te;return ae?Te=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(me[0]):oe(me[0]):me[0]:Te=oe(this.options.smartypants?he(me[0]):me[0]),{type:"text",raw:me[0],text:Te}}},ee}(),Re=N.noopTest,De=N.edit,Fe=N.merge,Ce={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]+/};Ce._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,Ce._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,Ce.def=De(Ce.def).replace("label",Ce._label).replace("title",Ce._title).getRegex(),Ce.bullet=/(?:[*+-]|\d{1,9}[.)])/,Ce.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/,Ce.item=De(Ce.item,"gm").replace(/bull/g,Ce.bullet).getRegex(),Ce.list=De(Ce.list).replace(/bull/g,Ce.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+Ce.def.source+")").getRegex(),Ce._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",Ce._comment=//,Ce.html=De(Ce.html,"i").replace("comment",Ce._comment).replace("tag",Ce._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Ce.paragraph=De(Ce._paragraph).replace("hr",Ce.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",Ce._tag).getRegex(),Ce.blockquote=De(Ce.blockquote).replace("paragraph",Ce.paragraph).getRegex(),Ce.normal=Fe({},Ce),Ce.gfm=Fe({},Ce.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*|$)"}),Ce.gfm.nptable=De(Ce.gfm.nptable).replace("hr",Ce.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",Ce._tag).getRegex(),Ce.gfm.table=De(Ce.gfm.table).replace("hr",Ce.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",Ce._tag).getRegex(),Ce.pedantic=Fe({},Ce.normal,{html:De(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?\\1> *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Ce._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:De(Ce.normal._paragraph).replace("hr",Ce.hr).replace("heading",` *#{1,6} *[^
-]`).replace("lheading",Ce.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var X={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]*?(?:(?=[\\?@\\[\\]`^{|}~",X.punctuation=De(X.punctuation).replace(/punctuation/g,X._punctuation).getRegex(),X._blockSkip="\\[[^\\]]*?\\]\\([^\\)]*?\\)|`[^`]*?`|<[^>]*?>",X._overlapSkip="__[^_]*?__|\\*\\*\\[^\\*\\]*?\\*\\*",X.em.start=De(X.em.start).replace(/punctuation/g,X._punctuation).getRegex(),X.em.middle=De(X.em.middle).replace(/punctuation/g,X._punctuation).replace(/overlapSkip/g,X._overlapSkip).getRegex(),X.em.endAst=De(X.em.endAst,"g").replace(/punctuation/g,X._punctuation).getRegex(),X.em.endUnd=De(X.em.endUnd,"g").replace(/punctuation/g,X._punctuation).getRegex(),X.strong.start=De(X.strong.start).replace(/punctuation/g,X._punctuation).getRegex(),X.strong.middle=De(X.strong.middle).replace(/punctuation/g,X._punctuation).replace(/blockSkip/g,X._blockSkip).getRegex(),X.strong.endAst=De(X.strong.endAst,"g").replace(/punctuation/g,X._punctuation).getRegex(),X.strong.endUnd=De(X.strong.endUnd,"g").replace(/punctuation/g,X._punctuation).getRegex(),X.blockSkip=De(X._blockSkip,"g").getRegex(),X.overlapSkip=De(X._overlapSkip,"g").getRegex(),X._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,X._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,X._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])?)+(?![-_])/,X.autolink=De(X.autolink).replace("scheme",X._scheme).replace("email",X._email).getRegex(),X._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,X.tag=De(X.tag).replace("comment",Ce._comment).replace("attribute",X._attribute).getRegex(),X._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,X._href=/<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*/,X._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,X.link=De(X.link).replace("label",X._label).replace("href",X._href).replace("title",X._title).getRegex(),X.reflink=De(X.reflink).replace("label",X._label).getRegex(),X.reflinkSearch=De(X.reflinkSearch,"g").replace("reflink",X.reflink).replace("nolink",X.nolink).getRegex(),X.normal=Fe({},X),X.pedantic=Fe({},X.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:De(/^!?\[(label)\]\((.*?)\)/).replace("label",X._label).getRegex(),reflink:De(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",X._label).getRegex()}),X.gfm=Fe({},X.normal,{escape:De(X.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&&(te="x"+te.toString(16)),ie+=""+te+";";return ie}var H=function(){function ee(le){this.tokens=[],this.tokens.links=Object.create(null),this.options=le||P,this.options.tokenizer=this.options.tokenizer||new Se,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var te={block:J.normal,inline:ne.normal};this.options.pedantic?(te.block=J.pedantic,te.inline=ne.pedantic):this.options.gfm&&(te.block=J.gfm,this.options.breaks?te.inline=ne.breaks:te.inline=ne.gfm),this.tokenizer.rules=te}ee.lex=function(te,ae){var he=new ee(ae);return he.lex(te)};var ie=ee.prototype;return ie.lex=function(te){return te=te.replace(/\r\n|\r/g,`
+`?ae[1].slice(0,-1):ae[1]}},ie.text=function(te,ae){var he=this.rules.block.text.exec(te);if(he){var me=ae[ae.length-1];return me&&me.type==="text"?{raw:he[0],text:he[0]}:{type:"text",raw:he[0],text:he[0]}}},ie.escape=function(te){var ae=this.rules.inline.escape.exec(te);if(ae)return{type:"escape",raw:ae[0],text:oe(ae[1])}},ie.tag=function(te,ae,he){var me=this.rules.inline.tag.exec(te);if(me)return!ae&&/^/i.test(me[0])&&(ae=!1),!he&&/^<(pre|code|kbd|script)(\s|>)/i.test(me[0])?he=!0:he&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(me[0])&&(he=!1),{type:this.options.sanitize?"text":"html",raw:me[0],inLink:ae,inRawBlock:he,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(me[0]):oe(me[0]):me[0]}},ie.link=function(te){var ae=this.rules.inline.link.exec(te);if(ae){var he=Ee(ae[2],"()");if(he>-1){var me=ae[0].indexOf("!")===0?5:4,Te=me+ae[1].length+he;ae[2]=ae[2].substring(0,he),ae[0]=ae[0].substring(0,Te).trim(),ae[3]=""}var Be=ae[2],je="";if(this.options.pedantic){var qe=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(Be);qe?(Be=qe[1],je=qe[3]):je=""}else je=ae[3]?ae[3].slice(1,-1):"";Be=Be.trim().replace(/^<([\s\S]*)>$/,"$1");var at=ve(ae,{href:Be&&Be.replace(this.rules.inline._escapes,"$1"),title:je&&je.replace(this.rules.inline._escapes,"$1")},ae[0]);return at}},ie.reflink=function(te,ae){var he;if((he=this.rules.inline.reflink.exec(te))||(he=this.rules.inline.nolink.exec(te))){var me=(he[2]||he[1]).replace(/\s+/g," ");if(me=ae[me.toLowerCase()],!me||!me.href){var Te=he[0].charAt(0);return{type:"text",raw:Te,text:Te}}var Be=ve(he,me,he[0]);return Be}},ie.strong=function(te,ae,he){he===void 0&&(he="");var me=this.rules.inline.strong.start.exec(te);if(me&&(!me[1]||me[1]&&(he===""||this.rules.inline.punctuation.exec(he)))){ae=ae.slice(-1*te.length);var Te=me[0]==="**"?this.rules.inline.strong.endAst:this.rules.inline.strong.endUnd;Te.lastIndex=0;for(var Be;(me=Te.exec(ae))!=null;)if(Be=this.rules.inline.strong.middle.exec(ae.slice(0,me.index+3)),Be)return{type:"strong",raw:te.slice(0,Be[0].length),text:te.slice(2,Be[0].length-2)}}},ie.em=function(te,ae,he){he===void 0&&(he="");var me=this.rules.inline.em.start.exec(te);if(me&&(!me[1]||me[1]&&(he===""||this.rules.inline.punctuation.exec(he)))){ae=ae.slice(-1*te.length);var Te=me[0]==="*"?this.rules.inline.em.endAst:this.rules.inline.em.endUnd;Te.lastIndex=0;for(var Be;(me=Te.exec(ae))!=null;)if(Be=this.rules.inline.em.middle.exec(ae.slice(0,me.index+2)),Be)return{type:"em",raw:te.slice(0,Be[0].length),text:te.slice(1,Be[0].length-1)}}},ie.codespan=function(te){var ae=this.rules.inline.code.exec(te);if(ae){var he=ae[2].replace(/\n/g," "),me=/[^ ]/.test(he),Te=he.startsWith(" ")&&he.endsWith(" ");return me&&Te&&(he=he.substring(1,he.length-1)),he=oe(he,!0),{type:"codespan",raw:ae[0],text:he}}},ie.br=function(te){var ae=this.rules.inline.br.exec(te);if(ae)return{type:"br",raw:ae[0]}},ie.del=function(te){var ae=this.rules.inline.del.exec(te);if(ae)return{type:"del",raw:ae[0],text:ae[1]}},ie.autolink=function(te,ae){var he=this.rules.inline.autolink.exec(te);if(he){var me,Te;return he[2]==="@"?(me=oe(this.options.mangle?ae(he[1]):he[1]),Te="mailto:"+me):(me=oe(he[1]),Te=me),{type:"link",raw:he[0],text:me,href:Te,tokens:[{type:"text",raw:me,text:me}]}}},ie.url=function(te,ae){var he;if(he=this.rules.inline.url.exec(te)){var me,Te;if(he[2]==="@")me=oe(this.options.mangle?ae(he[0]):he[0]),Te="mailto:"+me;else{var Be;do Be=he[0],he[0]=this.rules.inline._backpedal.exec(he[0])[0];while(Be!==he[0]);me=oe(he[0]),he[1]==="www."?Te="http://"+me:Te=me}return{type:"link",raw:he[0],text:me,href:Te,tokens:[{type:"text",raw:me,text:me}]}}},ie.inlineText=function(te,ae,he){var me=this.rules.inline.text.exec(te);if(me){var Te;return ae?Te=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(me[0]):oe(me[0]):me[0]:Te=oe(this.options.smartypants?he(me[0]):me[0]),{type:"text",raw:me[0],text:Te}}},ee}(),Re=P.noopTest,De=P.edit,Fe=P.merge,Ce={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]+/};Ce._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,Ce._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,Ce.def=De(Ce.def).replace("label",Ce._label).replace("title",Ce._title).getRegex(),Ce.bullet=/(?:[*+-]|\d{1,9}[.)])/,Ce.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/,Ce.item=De(Ce.item,"gm").replace(/bull/g,Ce.bullet).getRegex(),Ce.list=De(Ce.list).replace(/bull/g,Ce.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+Ce.def.source+")").getRegex(),Ce._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",Ce._comment=//,Ce.html=De(Ce.html,"i").replace("comment",Ce._comment).replace("tag",Ce._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Ce.paragraph=De(Ce._paragraph).replace("hr",Ce.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",Ce._tag).getRegex(),Ce.blockquote=De(Ce.blockquote).replace("paragraph",Ce.paragraph).getRegex(),Ce.normal=Fe({},Ce),Ce.gfm=Fe({},Ce.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*|$)"}),Ce.gfm.nptable=De(Ce.gfm.nptable).replace("hr",Ce.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",Ce._tag).getRegex(),Ce.gfm.table=De(Ce.gfm.table).replace("hr",Ce.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",Ce._tag).getRegex(),Ce.pedantic=Fe({},Ce.normal,{html:De(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?\\1> *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Ce._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:De(Ce.normal._paragraph).replace("hr",Ce.hr).replace("heading",` *#{1,6} *[^
+]`).replace("lheading",Ce.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var X={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]*?(?:(?=[\\?@\\[\\]`^{|}~",X.punctuation=De(X.punctuation).replace(/punctuation/g,X._punctuation).getRegex(),X._blockSkip="\\[[^\\]]*?\\]\\([^\\)]*?\\)|`[^`]*?`|<[^>]*?>",X._overlapSkip="__[^_]*?__|\\*\\*\\[^\\*\\]*?\\*\\*",X.em.start=De(X.em.start).replace(/punctuation/g,X._punctuation).getRegex(),X.em.middle=De(X.em.middle).replace(/punctuation/g,X._punctuation).replace(/overlapSkip/g,X._overlapSkip).getRegex(),X.em.endAst=De(X.em.endAst,"g").replace(/punctuation/g,X._punctuation).getRegex(),X.em.endUnd=De(X.em.endUnd,"g").replace(/punctuation/g,X._punctuation).getRegex(),X.strong.start=De(X.strong.start).replace(/punctuation/g,X._punctuation).getRegex(),X.strong.middle=De(X.strong.middle).replace(/punctuation/g,X._punctuation).replace(/blockSkip/g,X._blockSkip).getRegex(),X.strong.endAst=De(X.strong.endAst,"g").replace(/punctuation/g,X._punctuation).getRegex(),X.strong.endUnd=De(X.strong.endUnd,"g").replace(/punctuation/g,X._punctuation).getRegex(),X.blockSkip=De(X._blockSkip,"g").getRegex(),X.overlapSkip=De(X._overlapSkip,"g").getRegex(),X._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,X._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,X._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])?)+(?![-_])/,X.autolink=De(X.autolink).replace("scheme",X._scheme).replace("email",X._email).getRegex(),X._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,X.tag=De(X.tag).replace("comment",Ce._comment).replace("attribute",X._attribute).getRegex(),X._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,X._href=/<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*/,X._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,X.link=De(X.link).replace("label",X._label).replace("href",X._href).replace("title",X._title).getRegex(),X.reflink=De(X.reflink).replace("label",X._label).getRegex(),X.reflinkSearch=De(X.reflinkSearch,"g").replace("reflink",X.reflink).replace("nolink",X.nolink).getRegex(),X.normal=Fe({},X),X.pedantic=Fe({},X.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:De(/^!?\[(label)\]\((.*?)\)/).replace("label",X._label).getRegex(),reflink:De(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",X._label).getRegex()}),X.gfm=Fe({},X.normal,{escape:De(X.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&&(te="x"+te.toString(16)),ie+=""+te+";";return ie}var H=function(){function ee(le){this.tokens=[],this.tokens.links=Object.create(null),this.options=le||N,this.options.tokenizer=this.options.tokenizer||new Se,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var te={block:J.normal,inline:ne.normal};this.options.pedantic?(te.block=J.pedantic,te.inline=ne.pedantic):this.options.gfm&&(te.block=J.gfm,this.options.breaks?te.inline=ne.breaks:te.inline=ne.gfm),this.tokenizer.rules=te}ee.lex=function(te,ae){var he=new ee(ae);return he.lex(te)};var ie=ee.prototype;return ie.lex=function(te){return te=te.replace(/\r\n|\r/g,`
`).replace(/\t/g," "),this.blockTokens(te,this.tokens,!0),this.inline(this.tokens),this.tokens},ie.blockTokens=function(te,ae,he){ae===void 0&&(ae=[]),he===void 0&&(he=!0),te=te.replace(/^ +$/gm,"");for(var me,Te,Be,je;te;){if(me=this.tokenizer.space(te)){te=te.substring(me.raw.length),me.type&&ae.push(me);continue}if(me=this.tokenizer.code(te,ae)){te=te.substring(me.raw.length),me.type?ae.push(me):(je=ae[ae.length-1],je.raw+=`
`+me.raw,je.text+=`
`+me.text);continue}if(me=this.tokenizer.fences(te)){te=te.substring(me.raw.length),ae.push(me);continue}if(me=this.tokenizer.heading(te)){te=te.substring(me.raw.length),ae.push(me);continue}if(me=this.tokenizer.nptable(te)){te=te.substring(me.raw.length),ae.push(me);continue}if(me=this.tokenizer.hr(te)){te=te.substring(me.raw.length),ae.push(me);continue}if(me=this.tokenizer.blockquote(te)){te=te.substring(me.raw.length),me.tokens=this.blockTokens(me.text,[],he),ae.push(me);continue}if(me=this.tokenizer.list(te)){for(te=te.substring(me.raw.length),Be=me.items.length,Te=0;Te0)for(;(qe=this.tokenizer.rules.inline.reflinkSearch.exec(je))!=null;)at.includes(qe[0].slice(qe[0].lastIndexOf("[")+1,-1))&&(je=je.slice(0,qe.index)+"["+"a".repeat(qe[0].length-2)+"]"+je.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(qe=this.tokenizer.rules.inline.blockSkip.exec(je))!=null;)je=je.slice(0,qe.index)+"["+"a".repeat(qe[0].length-2)+"]"+je.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;te;){if(Be=this.tokenizer.escape(te)){te=te.substring(Be.raw.length),ae.push(Be);continue}if(Be=this.tokenizer.tag(te,he,me)){te=te.substring(Be.raw.length),he=Be.inLink,me=Be.inRawBlock,ae.push(Be);continue}if(Be=this.tokenizer.link(te)){te=te.substring(Be.raw.length),Be.type==="link"&&(Be.tokens=this.inlineTokens(Be.text,[],!0,me)),ae.push(Be);continue}if(Be=this.tokenizer.reflink(te,this.tokens.links)){te=te.substring(Be.raw.length),Be.type==="link"&&(Be.tokens=this.inlineTokens(Be.text,[],!0,me)),ae.push(Be);continue}if(Be=this.tokenizer.strong(te,je,Te)){te=te.substring(Be.raw.length),Be.tokens=this.inlineTokens(Be.text,[],he,me),ae.push(Be);continue}if(Be=this.tokenizer.em(te,je,Te)){te=te.substring(Be.raw.length),Be.tokens=this.inlineTokens(Be.text,[],he,me),ae.push(Be);continue}if(Be=this.tokenizer.codespan(te)){te=te.substring(Be.raw.length),ae.push(Be);continue}if(Be=this.tokenizer.br(te)){te=te.substring(Be.raw.length),ae.push(Be);continue}if(Be=this.tokenizer.del(te)){te=te.substring(Be.raw.length),Be.tokens=this.inlineTokens(Be.text,[],he,me),ae.push(Be);continue}if(Be=this.tokenizer.autolink(te,Z)){te=te.substring(Be.raw.length),ae.push(Be);continue}if(!he&&(Be=this.tokenizer.url(te,Z))){te=te.substring(Be.raw.length),ae.push(Be);continue}if(Be=this.tokenizer.inlineText(te,me,k)){te=te.substring(Be.raw.length),Te=Be.raw.slice(-1),ae.push(Be);continue}if(te){var et="Infinite loop on byte: "+te.charCodeAt(0);if(this.options.silent){console.error(et);break}else throw new Error(et)}}return ae},K(ee,null,[{key:"rules",get:function(){return{block:J,inline:ne}}}]),ee}(),W=Y.defaults,z=N.cleanUrl,se=N.escape,pe=function(){function ee(le){this.options=le||W}var ie=ee.prototype;return ie.code=function(te,ae,he){var me=(ae||"").match(/\S*/)[0];if(this.options.highlight){var Te=this.options.highlight(te,me);Te!=null&&Te!==te&&(he=!0,te=Te)}return me?''+(he?te:se(te,!0))+`
+`+me.text);continue}if(te){var qe="Infinite loop on byte: "+te.charCodeAt(0);if(this.options.silent){console.error(qe);break}else throw new Error(qe)}}return ae},ie.inline=function(te){var ae,he,me,Te,Be,je,qe=te.length;for(ae=0;ae0)for(;(qe=this.tokenizer.rules.inline.reflinkSearch.exec(je))!=null;)at.includes(qe[0].slice(qe[0].lastIndexOf("[")+1,-1))&&(je=je.slice(0,qe.index)+"["+"a".repeat(qe[0].length-2)+"]"+je.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(qe=this.tokenizer.rules.inline.blockSkip.exec(je))!=null;)je=je.slice(0,qe.index)+"["+"a".repeat(qe[0].length-2)+"]"+je.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;te;){if(Be=this.tokenizer.escape(te)){te=te.substring(Be.raw.length),ae.push(Be);continue}if(Be=this.tokenizer.tag(te,he,me)){te=te.substring(Be.raw.length),he=Be.inLink,me=Be.inRawBlock,ae.push(Be);continue}if(Be=this.tokenizer.link(te)){te=te.substring(Be.raw.length),Be.type==="link"&&(Be.tokens=this.inlineTokens(Be.text,[],!0,me)),ae.push(Be);continue}if(Be=this.tokenizer.reflink(te,this.tokens.links)){te=te.substring(Be.raw.length),Be.type==="link"&&(Be.tokens=this.inlineTokens(Be.text,[],!0,me)),ae.push(Be);continue}if(Be=this.tokenizer.strong(te,je,Te)){te=te.substring(Be.raw.length),Be.tokens=this.inlineTokens(Be.text,[],he,me),ae.push(Be);continue}if(Be=this.tokenizer.em(te,je,Te)){te=te.substring(Be.raw.length),Be.tokens=this.inlineTokens(Be.text,[],he,me),ae.push(Be);continue}if(Be=this.tokenizer.codespan(te)){te=te.substring(Be.raw.length),ae.push(Be);continue}if(Be=this.tokenizer.br(te)){te=te.substring(Be.raw.length),ae.push(Be);continue}if(Be=this.tokenizer.del(te)){te=te.substring(Be.raw.length),Be.tokens=this.inlineTokens(Be.text,[],he,me),ae.push(Be);continue}if(Be=this.tokenizer.autolink(te,Z)){te=te.substring(Be.raw.length),ae.push(Be);continue}if(!he&&(Be=this.tokenizer.url(te,Z))){te=te.substring(Be.raw.length),ae.push(Be);continue}if(Be=this.tokenizer.inlineText(te,me,k)){te=te.substring(Be.raw.length),Te=Be.raw.slice(-1),ae.push(Be);continue}if(te){var et="Infinite loop on byte: "+te.charCodeAt(0);if(this.options.silent){console.error(et);break}else throw new Error(et)}}return ae},K(ee,null,[{key:"rules",get:function(){return{block:J,inline:ne}}}]),ee}(),W=Y.defaults,z=P.cleanUrl,se=P.escape,pe=function(){function ee(le){this.options=le||W}var ie=ee.prototype;return ie.code=function(te,ae,he){var me=(ae||"").match(/\S*/)[0];if(this.options.highlight){var Te=this.options.highlight(te,me);Te!=null&&Te!==te&&(he=!0,te=Te)}return me?''+(he?te:se(te,!0))+`
`:""+(he?te:se(te,!0))+`
`},ie.blockquote=function(te){return`
`+te+`
@@ -164,16 +164,16 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
`},ie.tablerow=function(te){return`
`+te+`
`},ie.tablecell=function(te,ae){var he=ae.header?"th":"td",me=ae.align?"<"+he+' align="'+ae.align+'">':"<"+he+">";return me+te+""+he+`>
-`},ie.strong=function(te){return""+te+""},ie.em=function(te){return""+te+""},ie.codespan=function(te){return""+te+""},ie.br=function(){return this.options.xhtml?"
":"
"},ie.del=function(te){return""+te+""},ie.link=function(te,ae,he){if(te=z(this.options.sanitize,this.options.baseUrl,te),te===null)return he;var me='"+he+"",me},ie.image=function(te,ae,he){if(te=z(this.options.sanitize,this.options.baseUrl,te),te===null)return he;var me='
":">",me},ie.text=function(te){return te},ee}(),ge=function(){function ee(){}var ie=ee.prototype;return ie.strong=function(te){return te},ie.em=function(te){return te},ie.codespan=function(te){return te},ie.del=function(te){return te},ie.html=function(te){return te},ie.text=function(te){return te},ie.link=function(te,ae,he){return""+he},ie.image=function(te,ae,he){return""+he},ie.br=function(){return""},ee}(),Pe=function(){function ee(){this.seen={}}var ie=ee.prototype;return ie.slug=function(te){var ae=te.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(ae)){var he=ae;do this.seen[he]++,ae=he+"-"+this.seen[he];while(this.seen.hasOwnProperty(ae))}return this.seen[ae]=0,ae},ee}(),Me=Y.defaults,ke=N.unescape,He=function(){function ee(le){this.options=le||Me,this.options.renderer=this.options.renderer||new pe,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new ge,this.slugger=new Pe}ee.parse=function(te,ae){var he=new ee(ae);return he.parse(te)};var ie=ee.prototype;return ie.parse=function(te,ae){ae===void 0&&(ae=!0);var he="",me,Te,Be,je,qe,at,et,_t,ut,$e,kt,Ut,yt,Wt,St,$t,Ft,wt,sr=te.length;for(me=0;me0&&St.tokens[0].type==="text"?(St.tokens[0].text=wt+" "+St.tokens[0].text,St.tokens[0].tokens&&St.tokens[0].tokens.length>0&&St.tokens[0].tokens[0].type==="text"&&(St.tokens[0].tokens[0].text=wt+" "+St.tokens[0].tokens[0].text)):St.tokens.unshift({type:"text",text:wt}):Wt+=wt),Wt+=this.parse(St.tokens,yt),ut+=this.renderer.listitem(Wt,Ft,$t);he+=this.renderer.list(ut,kt,Ut);continue}case"html":{he+=this.renderer.html($e.text);continue}case"paragraph":{he+=this.renderer.paragraph(this.parseInline($e.tokens));continue}case"text":{for(ut=$e.tokens?this.parseInline($e.tokens):$e.text;me+1An error occurred: