q){b.pos=b.pos+(1)>>0;c=new B.Node.ptr("","","","",16,CW.nil,CW.nil,CW.nil,CW.nil,CW.nil,CX.nil,g,"","",false,false,false,0,false,0,0,0,CU.nil,CU.nil,CU.nil,0,CY.nil,false,CZ.nil,0,0,0,0,CU.nil,0,false,"",0,CU.nil,"",CX.nil,CU.nil,DB.nil,false,"","","","","","","","","","","",0,"");return c;}if(((120===p.charCodeAt(2))||(88===p.charCodeAt(2)))&&5>q){b.pos=b.pos+(1)>>0;c=new B.Node.ptr("","","","",16,CW.nil,CW.nil,CW.nil,CW.nil,CW.nil,CX.nil,g,"","",false,false,false,0,false,0,0,0,CU.nil,CU.nil,CU.nil,0,CY.nil,false,CZ.nil,0,0,0,0,CU.nil,0,false,"",0,CU.nil,"",CX.nil,CU.nil,DB.nil,false,"","","","","","","","","","","",0,"");return c;}}r=G.HtmlUnescapeString(p);if(r===p){b.pos=b.pos+(1)>>0;c=new B.Node.ptr("","","","",16,CW.nil,CW.nil,CW.nil,CW.nil,CW.nil,CX.nil,g,"","",false,false,false,0,false,0,0,0,CU.nil,CU.nil,CU.nil,0,CY.nil,false,CZ.nil,0,0,0,0,CU.nil,0,false,"",0,CU.nil,"",CX.nil,CU.nil,DB.nil,false,"","","","","","","","","","","",0,"");return c;}b.pos=b.pos+((l-h>>0))>>0;c=new B.Node.ptr("","","","",44,CW.nil,CW.nil,CW.nil,CW.nil,CW.nil,CX.nil,E.StrToBytes(r),"","",false,false,false,0,false,0,0,0,CU.nil,CU.nil,CU.nil,0,CY.nil,false,CZ.nil,0,0,0,0,CU.nil,0,false,"",0,CU.nil,"",CX.nil,E.StrToBytes(p),DB.nil,false,"","","","","","","","","","","",0,"");return c;};AC.prototype.parseEntity=function(b){return this.$val.parseEntity(b);};AC.ptr.prototype.parseCloseBracket=function(b){var{aa,ab,ac,ad,ae,af,ag,ah,ai,aj,ak,al,am,an,ao,ap,aq,ar,as,at,au,av,aw,ax,ay,az,b,ba,bb,bc,bd,be,bf,bg,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,$s,$r,$c}=$restore(this,{b});$s=$s||0;s:while(true){switch($s){case 0:c=this;f=new CU([(d=b.tokens,e=b.pos,((e<0||e>=d.$length)?($throwRuntimeError("index out of range"),undefined):d.$array[d.$offset+e]))]);b.pos=b.pos+(1)>>0;g=b.pos;h=b.brackets;if(DK.nil===h){$s=-1;return new B.Node.ptr("","","","",16,CW.nil,CW.nil,CW.nil,CW.nil,CW.nil,CX.nil,f,"","",false,false,false,0,false,0,0,0,CU.nil,CU.nil,CU.nil,0,CY.nil,false,CZ.nil,0,0,0,0,CU.nil,0,false,"",0,CU.nil,"",CX.nil,CU.nil,DB.nil,false,"","","","","","","","","","","",0,"");}if(!h.active){c.removeBracket(b);$s=-1;return new B.Node.ptr("","","","",16,CW.nil,CW.nil,CW.nil,CW.nil,CW.nil,CX.nil,f,"","",false,false,false,0,false,0,0,0,CU.nil,CU.nil,CU.nil,0,CY.nil,false,CZ.nil,0,0,0,0,CU.nil,0,false,"",0,CU.nil,"",CX.nil,CU.nil,DB.nil,false,"","","","","","","","","","","",0,"");}i=h.image;j=CU.nil;k=CU.nil;l=CU.nil;m=CU.nil;n=CU.nil;o=j;p=k;q=l;r=m;s=n;t=b.pos;u=false;if((b.pos+1>>0)=v.$length)?($throwRuntimeError("index out of range"),undefined):v.$array[v.$offset+w])))){$s=1;continue;}$s=2;continue;case 1:b.pos=b.pos+(1)>>0;x=false;y=CU.nil;z=CU.nil;aa=y;ab=z;case 3:ac=D.Spnl($subslice(b.tokens,(b.pos-1>>0)));x=ac[0];aa=ac[1];ab=ac[2];if(!x){$s=4;continue;}b.pos=b.pos+(aa.$length)>>0;ae=c.Context.parseInlineLinkDest(ab);$s=5;case 5:if($c){$c=false;ae=ae.$blk();}if(ae&&ae.$blk!==undefined){break s;}ad=ae;aa=ad[0];ab=ad[1];p=ad[2];if(CU.nil===aa){$s=4;continue;}if(c.Context.ParseOption.VditorWYSIWYG||c.Context.ParseOption.VditorIR||c.Context.ParseOption.VditorSV||c.Context.ParseOption.ProtyleWYSIWYG){if(!i&&CW.nil===h.node.Next){$s=4;continue;}}b.pos=b.pos+(aa.$length)>>0;o=$subslice(aa,0,1);s=$subslice(aa,(aa.$length-1>>0));u=41===(af=aa.$length-1>>0,((af<0||af>=aa.$length)?($throwRuntimeError("index out of range"),undefined):aa.$array[aa.$offset+af]));if(u){b.pos=b.pos-(1)>>0;$s=4;continue;}if(1>ab.$length||!D.IsWhitespace((0>=ab.$length?($throwRuntimeError("index out of range"),undefined):ab.$array[ab.$offset+0]))){$s=4;continue;}ag=D.Spnl(ab);x=ag[0];aa=ag[1];ab=ag[2];if(!x){$s=4;continue;}q=aa;b.pos=b.pos+(aa.$length)>>0;u=41===(0>=ab.$length?($throwRuntimeError("index out of range"),undefined):ab.$array[ab.$offset+0]);s=$subslice(ab,0,1);if(u){$s=4;continue;}b.pos=b.pos+(1)>>0;ah=false;ai=c.Context.parseLinkTitle(ab);ah=ai[0];aa=ai[1];ab=ai[2];r=ai[3];if(!ah){$s=4;continue;}b.pos=b.pos+(aa.$length)>>0;aj=D.Spnl(ab);x=aj[0];aa=aj[1];ab=aj[2];b.pos=b.pos+(aa.$length)>>0;u=x&&0 >0)),ab);}else{r=C.CaretTokens;ab=$subslice(ab,C.CaretTokens.$length);b.pos=b.pos+(3)>>0;}}else if(A.HasPrefix(ab,(new CU($stringToBytes(")\xE2\x80\xB8"))))){if(0===r.$length){r=C.CaretTokens;ab=A.ReplaceAll(ab,C.CaretTokens,CU.nil);b.pos=b.pos+(3)>>0;}}}u=41===(0>=ab.$length?($throwRuntimeError("index out of range"),undefined):ab.$array[ab.$offset+0]);}s=$subslice(ab,0);$s=4;continue;case 4:if(!u){b.pos=t;}case 2:ak=CU.nil;al=0;if(!u){$s=6;continue;}$s=7;continue;case 6:am=b.pos;an=c.Context.parseLinkLabel($subslice(b.tokens,am));ao=an[0];ap=an[2];if(2 >0;}else if(!h.bracketAfter){aq=h.index;if(91===(ar=b.tokens,((aq<0||aq>=ar.$length)?($throwRuntimeError("index out of range"),undefined):ar.$array[ar.$offset+aq]))){aq=aq+(1)>>0;}ak=$subslice(b.tokens,aq,(g-1>>0));b.pos=b.pos+(2)>>0;}if(0===ao){b.pos=g;}if(!(CU.nil===ak)){$s=8;continue;}$s=9;continue;case 8:if(c.Context.ParseOption.Footnotes){$s=10;continue;}$s=11;continue;case 10:at=c.FindFootnotesDef(ak);$s=12;case 12:if($c){$c=false;at=at.$blk();}if(at&&at.$blk!==undefined){break s;}as=at;au=as[0];av=as[1];if(!(CW.nil===av)){c.removeBracket(b);if(c.Context.ParseOption.Sup&&!(CW.nil===h.node.Next.Next)){h.node.Next.Next.Unlink();h.node.Next.Unlink();}else{h.node.Next.Unlink();}h.node.Unlink();aw=I.Itoa(au);ax=av.FootnotesRefs.$length;if(0 >0));}ay=new B.Node.ptr("","","","",412,CW.nil,CW.nil,CW.nil,CW.nil,CW.nil,CX.nil,ak,"","",false,false,false,0,false,0,0,0,CU.nil,CU.nil,CU.nil,0,CY.nil,false,CZ.nil,0,0,0,0,CU.nil,0,false,"",0,A.ReplaceAll(ak,C.CaretTokens,CU.nil),aw,CX.nil,CU.nil,DB.nil,false,"","","","","","","","","","","",0,"");av.FootnotesRefs=$append(av.FootnotesRefs,ay);$s=-1;return ay;}case 11:az=c.FindLinkRefDefLink(ak);$s=13;case 13:if($c){$c=false;az=az.$blk();}if(az&&az.$blk!==undefined){break s;}ba=az;if(!(CW.nil===ba)){p=ba.ChildByType(41).Tokens;bb=ba.ChildByType(42);if(!(CW.nil===bb)){r=bb.Tokens;}u=true;al=3;}case 9:case 7:if(u){bc=new B.Node.ptr("","","","",33,CW.nil,CW.nil,CW.nil,CW.nil,CW.nil,CX.nil,CU.nil,"","",false,false,false,0,false,0,0,0,CU.nil,CU.nil,CU.nil,0,CY.nil,false,CZ.nil,0,0,0,al,ak,0,false,"",0,CU.nil,"",CX.nil,CU.nil,DB.nil,false,"","","","","","","","","","","",0,"");if(i){bc.Type=34;bc.AppendChild(new B.Node.ptr("","","","",35,CW.nil,CW.nil,CW.nil,CW.nil,CW.nil,CX.nil,$subslice(h.node.Tokens,0,1),"","",false,false,false,0,false,0,0,0,CU.nil,CU.nil,CU.nil,0,CY.nil,false,CZ.nil,0,0,0,0,CU.nil,0,false,"",0,CU.nil,"",CX.nil,CU.nil,DB.nil,false,"","","","","","","","","","","",0,""));h.node.Tokens=$subslice(h.node.Tokens,1);}bc.AppendChild(new B.Node.ptr("","","","",36,CW.nil,CW.nil,CW.nil,CW.nil,CW.nil,CX.nil,h.node.Tokens,"","",false,false,false,0,false,0,0,0,CU.nil,CU.nil,CU.nil,0,CY.nil,false,CZ.nil,0,0,0,0,CU.nil,0,false,"",0,CU.nil,"",CX.nil,CU.nil,DB.nil,false,"","","","","","","","","","","",0,""));bd=CW.nil;be=CW.nil;bf=bd;bg=be;bf=h.node.Next;while(true){if(!(!(CW.nil===bf))){break;}bg=bf.Next;bf.Unlink();if(16===bf.Type){bf.Type=40;}bc.AppendChild(bf);bf=bg;}bc.AppendChild(new B.Node.ptr("","","","",37,CW.nil,CW.nil,CW.nil,CW.nil,CW.nil,CX.nil,f,"","",false,false,false,0,false,0,0,0,CU.nil,CU.nil,CU.nil,0,CY.nil,false,CZ.nil,0,0,0,0,CU.nil,0,false,"",0,CU.nil,"",CX.nil,CU.nil,DB.nil,false,"","","","","","","","","","","",0,""));bc.AppendChild(new B.Node.ptr("","","","",38,CW.nil,CW.nil,CW.nil,CW.nil,CW.nil,CX.nil,o,"","",false,false,false,0,false,0,0,0,CU.nil,CU.nil,CU.nil,0,CY.nil,false,CZ.nil,0,0,0,0,CU.nil,0,false,"",0,CU.nil,"",CX.nil,CU.nil,DB.nil,false,"","","","","","","","","","","",0,""));bc.AppendChild(new B.Node.ptr("","","","",41,CW.nil,CW.nil,CW.nil,CW.nil,CW.nil,CX.nil,p,"","",false,false,false,0,false,0,0,0,CU.nil,CU.nil,CU.nil,0,CY.nil,false,CZ.nil,0,0,0,0,CU.nil,0,false,"",0,CU.nil,"",CX.nil,CU.nil,DB.nil,false,"","","","","","","","","","","",0,""));if(!(CU.nil===q)){bc.AppendChild(new B.Node.ptr("","","","",43,CW.nil,CW.nil,CW.nil,CW.nil,CW.nil,CX.nil,q,"","",false,false,false,0,false,0,0,0,CU.nil,CU.nil,CU.nil,0,CY.nil,false,CZ.nil,0,0,0,0,CU.nil,0,false,"",0,CU.nil,"",CX.nil,CU.nil,DB.nil,false,"","","","","","","","","","","",0,""));}if(0 >0;c=new B.Node.ptr("","","","",16,CW.nil,CW.nil,CW.nil,CW.nil,CW.nil,CX.nil,$subslice(b.tokens,e,b.pos),"","",false,false,false,0,false,0,0,0,CU.nil,CU.nil,CU.nil,0,CY.nil,false,CZ.nil,0,0,0,0,CU.nil,0,false,"",0,CU.nil,"",CX.nil,CU.nil,DB.nil,false,"","","","","","","","","","","",0,"");d.addBracket(c,b.pos-1>>0,false,b);return c;};AC.prototype.parseOpenBracket=function(b){return this.$val.parseOpenBracket(b);};AC.ptr.prototype.addBracket=function(b,c,d,e){var b,c,d,e,f;f=this;if(!(DK.nil===e.brackets)){e.brackets.bracketAfter=true;}e.brackets=new BY.ptr(b,0,0,0,false,false,e.brackets,DK.nil,true,d,false,c,e.delimiters);};AC.prototype.addBracket=function(b,c,d,e){return this.$val.addBracket(b,c,d,e);};AC.ptr.prototype.removeBracket=function(b){var b,c;c=this;b.brackets=b.brackets.previous;};AC.prototype.removeBracket=function(b){return this.$val.removeBracket(b);};AC.ptr.prototype.parseBang=function(b){var b,c,d,e,f,g;c=CW.nil;d=this;e=b.pos;b.pos=b.pos+(1)>>0;if(b.pos =f.$length)?($throwRuntimeError("index out of range"),undefined):f.$array[f.$offset+g])))){b.pos=b.pos+(1)>>0;c=new B.Node.ptr("","","","",16,CW.nil,CW.nil,CW.nil,CW.nil,CW.nil,CX.nil,$subslice(b.tokens,e,b.pos),"","",false,false,false,0,false,0,0,0,CU.nil,CU.nil,CU.nil,0,CY.nil,false,CZ.nil,0,0,0,0,CU.nil,0,false,"",0,CU.nil,"",CX.nil,CU.nil,DB.nil,false,"","","","","","","","","","","",0,"");d.addBracket(c,e+2>>0,true,b);return c;}c=new B.Node.ptr("","","","",16,CW.nil,CW.nil,CW.nil,CW.nil,CW.nil,CX.nil,$subslice(b.tokens,e,b.pos),"","",false,false,false,0,false,0,0,0,CU.nil,CU.nil,CU.nil,0,CY.nil,false,CZ.nil,0,0,0,0,CU.nil,0,false,"",0,CU.nil,"",CX.nil,CU.nil,DB.nil,false,"","","","","","","","","","","",0,"");return c;};AC.prototype.parseBang=function(b){return this.$val.parseBang(b);};BG=function(b,c){var{b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,$s,$r,$c}=$restore(this,{b,c});$s=$s||0;s:while(true){switch($s){case 0:if(b.Context.indented){$s=-1;return 0;}if(!((60===D.Peek(b.Context.currentLine,b.Context.nextNonspace)))){$s=-1;return 0;}if(b.Context.ParseOption.VditorWYSIWYG){if(A.Contains(b.Context.currentLine,(new CU($stringToBytes("vditor-comment"))))){$s=-1;return 0;}}if(b.Context.ParseOption.ProtyleWYSIWYG){if(A.Contains(b.Context.currentLine,(new CU($stringToBytes(""))))){$s=7;continue;}if(A.HasPrefix(d,(new CU($stringToBytes("