CVE-2022-0341 (JavaScript, published 2022-03-14T04:15Z)
Description: value: Cross-site Scripting (XSS) - Stored in GitHub repository vanessa219/vditor prior to 3.8.12.
Severity: LOW (CVSS v3 base score: 5.4)
Weakness: CWE-79 \u2014 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
Repository: https://github.com/vanessa219/vditor
Files changed:
src/js/lute/lute.min.js
Commit message: :bug: 所见即所得模式传入字符串 ```<Table></Table>``` 报错 Fix https://github.com/Vanessa219/vditor/issues/1102


Vulnerable code:
$packages["github.com/88250/lute"]=(function(){var $pkg={},$init,A,J,D,E,F,L,G,H,I,M,N,B,K,C,P,V,AA,AB,AC,AD,AE,AF,AG,AH,AI,AJ,AK,AL,AM,AN,AO,AP,AQ,AR,AS,AT,AV,AX,AY,AZ,BA,BB,BC,BD,BE,BF,R,S,O,Q,Y,Z;A=$packages["bytes"];J=$packages["errors"];D=$packages["github.com/88250/lute/ast"];E=$packages["github.com/88250/lute/html"];F=$packages["github.com/88250/lute/html/atom"];L=$packages["github.com/88250/lute/lex"];G=$packages["github.com/88250/lute/parse"];H=$packages["github.com/88250/lute/render"];I=$packages["github.com/88250/lute/util"];M=$packages["github.com/gopherjs/gopherjs/js"];N=$packages["strconv"];B=$packages["strings"];K=$packages["sync"];C=$packages["unicode"];P=$pkg.Lute=$newType(0,$kindStruct,"lute.Lute",true,"github.com/88250/lute",true,function(ParseOptions_,RenderOptions_,HTML2MdRendererFuncs_,HTML2VditorDOMRendererFuncs_,HTML2VditorIRDOMRendererFuncs_,HTML2BlockDOMRendererFuncs_,HTML2VditorSVDOMRendererFuncs_,Md2HTMLRendererFuncs_,Md2VditorDOMRendererFuncs_,Md2VditorIRDOMRendererFuncs_,Md2BlockDOMRendererFuncs_,Md2VditorSVDOMRendererFuncs_){this.$val=this;if(arguments.length===0){this.ParseOptions=AN.nil;this.RenderOptions=AB.nil;this.HTML2MdRendererFuncs=false;this.HTML2VditorDOMRendererFuncs=false;this.HTML2VditorIRDOMRendererFuncs=false;this.HTML2BlockDOMRendererFuncs=false;this.HTML2VditorSVDOMRendererFuncs=false;this.Md2HTMLRendererFuncs=false;this.Md2VditorDOMRendererFuncs=false;this.Md2VditorIRDOMRendererFuncs=false;this.Md2BlockDOMRendererFuncs=false;this.Md2VditorSVDOMRendererFuncs=false;return;}this.ParseOptions=ParseOptions_;this.RenderOptions=RenderOptions_;this.HTML2MdRendererFuncs=HTML2MdRendererFuncs_;this.HTML2VditorDOMRendererFuncs=HTML2VditorDOMRendererFuncs_;this.HTML2VditorIRDOMRendererFuncs=HTML2VditorIRDOMRendererFuncs_;this.HTML2BlockDOMRendererFuncs=HTML2BlockDOMRendererFuncs_;this.HTML2VditorSVDOMRendererFuncs=HTML2VditorSVDOMRendererFuncs_;this.Md2HTMLRendererFuncs=Md2HTMLRendererFuncs_;this.Md2VditorDOMRendererFuncs=Md2VditorDOMRendererFuncs_;this.Md2VditorIRDOMRendererFuncs=Md2VditorIRDOMRendererFuncs_;this.Md2BlockDOMRendererFuncs=Md2BlockDOMRendererFuncs_;this.Md2VditorSVDOMRendererFuncs=Md2VditorSVDOMRendererFuncs_;});V=$pkg.ParseOption=$newType(4,$kindFunc,"lute.ParseOption",true,"github.com/88250/lute",true,null);AA=$ptrType(G.Tree);AB=$ptrType(H.Options);AC=$sliceType($Uint8);AD=$ptrType(E.Node);AE=$ptrType(D.Node);AF=$ptrType(G.Context);AG=$ptrType(L.Lexer);AH=$ptrType(G.InlineContext);AI=$sliceType($String);AJ=$sliceType(AE);AK=$ptrType(D.ListData);AL=$sliceType($Int);AM=$sliceType(AI);AN=$ptrType(G.Options);AO=$sliceType(F.Atom);AP=$ptrType(E.Attribute);AQ=$sliceType(AP);AR=$sliceType($Int32);AS=$ptrType(P);AT=$sliceType(V);AV=$ptrType(A.Buffer);AX=$mapType($String,$emptyInterface);AY=$sliceType($emptyInterface);AZ=$sliceType(AD);BA=$ptrType(AZ);BB=$mapType($String,$String);BC=$ptrType(M.Object);BD=$mapType($String,BC);BE=$mapType($String,BD);BF=$mapType(D.NodeType,H.ExtRendererFunc);P.ptr.prototype.HTML2Markdown=function(a){var a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;k=$f.k;l=$f.l;m=$f.m;n=$f.n;o=$f.o;p=$f.p;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b="";c=$ifaceNil;d=this;e=d.HTML2Tree(a);$s=1;case 1:if($c){$c=false;e=e.$blk();}if(e&&e.$blk!==undefined){break s;}f=e;g=AC.nil;h=H.NewFormatRenderer(f,d.RenderOptions);i=d.HTML2MdRendererFuncs;j=0;k=$keys(i);while(true){if(!(j<k.length)){break;}l=i[k[j]];if(l===undefined){j++;continue;}m=l.k;n=l.v;o=m;(h.BaseRenderer.ExtRendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[D.NodeType.keyFor(o)]={k:o,v:n};j++;}p=h.BaseRenderer.Render();$s=2;case 2:if($c){$c=false;p=p.$blk();}if(p&&p.$blk!==undefined){break s;}g=p;b=I.BytesToStr(g);$s=-1;return[b,c];}return;}if($f===undefined){$f={$blk:P.ptr.prototype.HTML2Markdown};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.k=k;$f.l=l;$f.m=m;$f.n=n;$f.o=o;$f.p=p;$f.$s=$s;$f.$r=$r;return $f;};P.prototype.HTML2Markdown=function(a){return this.$val.HTML2Markdown(a);};P.ptr.prototype.HTML2Tree=function(a){var a,b,c,d,e,f,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b=AA.nil;c=this;d=c.parseHTML(a);$s=1;case 1:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}e=d;if(AD.nil===e){$s=-1;return b;}$r=c.adjustVditorDOM(e);$s=2;case 2:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}b=new G.Tree.ptr(new D.Node.ptr("","","",0,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false),new G.Context.ptr(AA.nil,c.ParseOptions,AE.nil,AE.nil,AC.nil,0,0,0,0,0,0,false,false,false,false,AE.nil,AE.nil),AG.nil,AH.nil,"","","","","",AI.nil,new $Int64(0,0),new $Int64(0,0),"");b.Context.Tip=b.Root;f=e.FirstChild;case 3:if(!(!(AD.nil===f))){$s=4;continue;}$r=c.genASTByDOM(f,b);$s=5;case 5:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}f=f.NextSibling;$s=3;continue;case 4:$r=D.Walk(b.Root,(function(g,h){var g,h,i;if(h){if(7===g.Type){if(!(AE.nil===g.Parent)&&(7===g.Parent.Type)){i=g.Previous;if(!(AE.nil===i)){g.Unlink();i.AppendChild(g);}}}}return 2;}));$s=6;case 6:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$s=-1;return b;}return;}if($f===undefined){$f={$blk:P.ptr.prototype.HTML2Tree};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.$s=$s;$f.$r=$r;return $f;};P.prototype.HTML2Tree=function(a){return this.$val.HTML2Tree(a);};P.ptr.prototype.genASTByDOM=function(a,b){var a,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,bh,bi,bj,bk,bl,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,$deferred,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;aa=$f.aa;ab=$f.ab;ac=$f.ac;ad=$f.ad;ae=$f.ae;af=$f.af;ag=$f.ag;ah=$f.ah;ai=$f.ai;aj=$f.aj;ak=$f.ak;al=$f.al;am=$f.am;an=$f.an;ao=$f.ao;ap=$f.ap;aq=$f.aq;ar=$f.ar;as=$f.as;at=$f.at;au=$f.au;av=$f.av;aw=$f.aw;ax=$f.ax;ay=$f.ay;az=$f.az;b=$f.b;ba=$f.ba;bb=$f.bb;bc=$f.bc;bd=$f.bd;be=$f.be;bf=$f.bf;bg=$f.bg;bh=$f.bh;bi=$f.bi;bj=$f.bj;bk=$f.bk;bl=$f.bl;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;k=$f.k;l=$f.l;m=$f.m;n=$f.n;o=$f.o;p=$f.p;q=$f.q;r=$f.r;s=$f.s;t=$f.t;u=$f.u;v=$f.v;w=$f.w;x=$f.x;y=$f.y;z=$f.z;$s=$f.$s;$deferred=$f.$deferred;$r=$f.$r;}var $err=null;try{s:while(true){switch($s){case 0:$deferred=[];$deferred.index=$curGoroutine.deferStack.length;$curGoroutine.deferStack.push($deferred);c=this;if((4===a.Type)||(309252===a.DataAtom)){$s=-1;return;}if("svg"===a.Namespace){$s=-1;return;}d=c.domAttrValue(a,"data-render");if("1"===d){$s=-1;return;}if(B.HasPrefix(c.domAttrValue(a,"class"),"line-number")){$s=-1;return;}if((0===a.DataAtom)&&(3===a.Type)){$s=1;continue;}$s=2;continue;case 1:e=a.FirstChild;case 3:if(!(!(e===AD.nil))){$s=4;continue;}$r=c.genASTByDOM(e,b);$s=5;case 5:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}e=e.NextSibling;$s=3;continue;case 4:$s=-1;return;case 2:f=new D.Node.ptr("","","",16,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,I.StrToBytes(a.Data),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false);g=a.DataAtom;if(g===(0)){$s=7;continue;}if((g===(3073))||(g===(92931))||(g===(354311))){$s=8;continue;}if((g===(89090))||(g===(187906))||(g===(199938))||(g===(214274))||(g===(216834))||(g===(412930))){$s=9;continue;}if(g===(87810)){$s=10;continue;}if(g===(100106)){$s=11;continue;}if((g===(79618))||(g===(42754))){$s=12;continue;}if(g===(45570)){$s=13;continue;}if(g===(290819)){$s=14;continue;}if((g===(28162))||(g===(1537))){$s=15;continue;}if((g===(449798))||(g===(257))){$s=16;continue;}if(g===(378116)){$s=17;continue;}if(g===(514)){$s=18;continue;}if(g===(1)){$s=19;continue;}if(g===(198403)){$s=20;continue;}if(g===(281349)){$s=21;continue;}if((g===(283139))||(g===(9473))||(g===(53766))){$s=22;continue;}if(g===(46596)){$s=23;continue;}if(g===(461571)){$s=24;continue;}if(g===(421123)){$s=25;continue;}if(g===(365829)){$s=26;continue;}if(g===(208901)){$s=27;continue;}if(g===(9989)){$s=28;continue;}if(g===(52226)){$s=29;continue;}if((g===(87554))||(g===(37378))){$s=30;continue;}if((g===(109320))||(g===(109315))){$s=31;continue;}if(g===(40708)){$s=32;continue;}if(g===(16132)){$s=33;continue;}if(g===(29191)){$s=34;continue;}if(g===(459783)){$s=35;continue;}if((g===(195590))||(g===(70917))||(g===(192773))){$s=36;continue;}if(g===(136712)){$s=37;continue;}if(g===(142858)){$s=38;continue;}if(g===(149510)){$s=39;continue;}$s=40;continue;case 7:if(!(AD.nil===a.Parent)&&(1===a.Parent.DataAtom)){f.Type=40;}if(c.parentIs(a,new AO([365829]))){$s=41;continue;}$s=42;continue;case 41:h=B.TrimSpace(a.Data);$s=45;case 45:if($c){$c=false;h=h.$blk();}if(h&&h.$blk!==undefined){break s;}if(""===h){$s=43;continue;}$s=44;continue;case 43:f.Tokens=(new AC($stringToBytes(" ")));b.Context.Tip.AppendChild(f);$s=6;continue;case 44:i=A.TrimSpace(f.Tokens);$s=46;case 46:if($c){$c=false;i=i.$blk();}if(i&&i.$blk!==undefined){break s;}f.Tokens=i;case 42:f.Tokens=A.ReplaceAll(f.Tokens,new AC([194,160]),new AC([32]));if(!(AD.nil===a.Parent)&&(40708===a.Parent.DataAtom)&&(!(""===c.domAttrValue(a.Parent,"class")))){j=b.Context.Tip.LastChild;if(AE.nil===j||((16===j.Type)&&!A.HasSuffix(j.Tokens,(new AC($stringToBytes("**")))))){f.Tokens=(new AC($stringToBytes("**"+I.BytesToStr(f.Tokens)+"**")));}}b.Context.Tip.AppendChild(f);$s=40;continue;case 8:if(c.parentIs(a,new AO([365829]))||(33===b.Context.Tip.Type)){$s=6;continue;}if(92931===a.DataAtom){k=c.domAttrValue(a,"class");l="";if(B.Contains(k,"-source-")){l=$substring(k,(B.LastIndex(k,"-source-")+8>>0));}else if(B.Contains(k,"-text-html-basic")){l="html";}if(!(""===l)){f.Type=11;f.IsFencedCodeBlock=true;f.AppendChild(new D.Node.ptr("","","",12,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,I.StrToBytes("```"),"","",false,false,false,0,false,0,3,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));f.AppendChild(new D.Node.ptr("","","",14,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));m=new A.Buffer.ptr(AC.nil,0,0);f.LastChild.CodeBlockInfo=(new AC($stringToBytes(l)));m.WriteString(c.domText(a));n=new D.Node.ptr("","","",15,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,m.Bytes(),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false);f.AppendChild(n);f.AppendChild(new D.Node.ptr("","","",13,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,I.StrToBytes("```"),"","",false,false,false,0,false,0,3,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));b.Context.Tip.AppendChild(f);$s=-1;return;}}f.Type=1;b.Context.Tip.AppendChild(f);b.Context.Tip=f;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=40;continue;case 9:if(33===b.Context.Tip.Type){$s=6;continue;}f.Type=2;f.HeadingLevel=((((o=f.Tokens,(1>=o.$length?($throwRuntimeError("index out of range"),undefined):o.$array[o.$offset+1]))-48<<24>>>24)>>0));f.AppendChild(new D.Node.ptr("","","",3,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,I.StrToBytes(B.Repeat("#",f.HeadingLevel)),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));b.Context.Tip.AppendChild(f);b.Context.Tip=f;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=40;continue;case 10:f.Type=4;b.Context.Tip.AppendChild(f);$s=40;continue;case 11:f.Type=5;f.AppendChild(new D.Node.ptr("","","",6,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,I.StrToBytes(">"),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));b.Context.Tip.AppendChild(f);b.Context.Tip=f;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=40;continue;case 12:f.Type=7;f.ListData=new D.ListData.ptr(0,false,0,0,0,0,0,false,AC.nil,0);if(79618===a.DataAtom){f.ListData.Typ=1;}f.ListData.Tight=true;b.Context.Tip.AppendChild(f);b.Context.Tip=f;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=40;continue;case 13:f.Type=8;p=c.domAttrValue(a,"data-marker");q=0;if(""===p){if(!(AD.nil===a.Parent)&&(79618===a.Parent.DataAtom)){r=c.domAttrValue(a.Parent,"start");if(""===r){p="1.";}else{p=r+".";}}else{p="*";q=p.charCodeAt(0);}}else{if(!(AD.nil===a.Parent)&&!("1."===p)&&(79618===a.Parent.DataAtom)&&!(AD.nil===a.Parent.Parent)&&((79618===a.Parent.Parent.DataAtom)||(42754===a.Parent.Parent.DataAtom))){p="1.";}}f.ListData=new D.ListData.ptr(0,false,q,0,0,0,0,false,(new AC($stringToBytes(p))),0);b.Context.Tip.AppendChild(f);b.Context.Tip=f;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=40;continue;case 14:s=a.FirstChild;if(!(AD.nil===s)){$s=47;continue;}$s=48;continue;case 47:if((1===s.Type)||(40708===s.DataAtom)||(378116===s.DataAtom)){$s=49;continue;}$s=50;continue;case 49:f.Type=11;f.IsFencedCodeBlock=true;f.AppendChild(new D.Node.ptr("","","",12,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,I.StrToBytes("```"),"","",false,false,false,0,false,0,3,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));f.AppendChild(new D.Node.ptr("","","",14,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));if((378116===s.DataAtom)||(40708===s.DataAtom)){t=c.domAttrValue(s,"class");if(!B.Contains(t,"language-")){t=c.domAttrValue(a,"class");}if(B.Contains(t,"language-")){u=$substring(t,(B.Index(t,"language-")+9>>0));u=(v=B.Split(u," "),(0>=v.$length?($throwRuntimeError("index out of range"),undefined):v.$array[v.$offset+0]));f.LastChild.CodeBlockInfo=(new AC($stringToBytes(u)));}}if(378116===a.FirstChild.DataAtom){if(!(AD.nil===a.FirstChild.NextSibling)&&(378116===a.FirstChild.NextSibling.DataAtom)){w=a.FirstChild.NextSibling;while(true){if(!(!(AD.nil===w))){break;}w.InsertBefore(new E.Node.ptr(AD.nil,AD.nil,AD.nil,AD.nil,AD.nil,0,514,"","",AQ.nil));w=w.NextSibling;}}if(!(AD.nil===a.FirstChild.FirstChild)&&(79618===a.FirstChild.FirstChild.DataAtom)){x=a.FirstChild.FirstChild.FirstChild;while(true){if(!(!(AD.nil===x))){break;}if(!(x===a.FirstChild.FirstChild.FirstChild)){x.InsertBefore(new E.Node.ptr(AD.nil,AD.nil,AD.nil,AD.nil,AD.nil,0,514,"","",AQ.nil));}x=x.NextSibling;}}}y=new A.Buffer.ptr(AC.nil,0,0);y.WriteString(c.domText(a));z=new D.Node.ptr("","","",15,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,y.Bytes(),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false);f.AppendChild(z);f.AppendChild(new D.Node.ptr("","","",13,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,I.StrToBytes("```"),"","",false,false,false,0,false,0,3,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));b.Context.Tip.AppendChild(f);$s=51;continue;case 50:f.Type=9;aa=c.domHTML(a);$s=52;case 52:if($c){$c=false;aa=aa.$blk();}if(aa&&aa.$blk!==undefined){break s;}f.Tokens=aa;b.Context.Tip.AppendChild(f);case 51:case 48:$s=-1;return;case 15:ab=c.domText(a);ac=B.TrimSpace(ab);$s=55;case 55:if($c){$c=false;ac=ac.$blk();}if(ac&&ac.$blk!==undefined){break s;}if(""===ac){$s=53;continue;}$s=54;continue;case 53:$s=6;continue;case 54:f.Type=17;ad="*";f.AppendChild(new D.Node.ptr("","","",18,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,I.StrToBytes(ad),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));b.Context.Tip.AppendChild(f);b.Context.Tip=f;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=40;continue;case 16:ae=c.domText(a);af=B.TrimSpace(ae);$s=58;case 58:if($c){$c=false;af=af.$blk();}if(af&&af.$blk!==undefined){break s;}if(""===af){$s=56;continue;}$s=57;continue;case 56:$s=6;continue;case 57:f.Type=22;ag="**";f.AppendChild(new D.Node.ptr("","","",23,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,I.StrToBytes(ag),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));b.Context.Tip.AppendChild(f);b.Context.Tip=f;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=40;continue;case 17:if(AD.nil===a.FirstChild){$s=-1;return;}ah=c.domHTML(a);$s=59;case 59:if($c){$c=false;ah=ah.$blk();}if(ah&&ah.$blk!==undefined){break s;}ai=ah;if(A.Contains(ai,(new AC($stringToBytes(">"))))){ai=$subslice(ai,(A.Index(ai,(new AC($stringToBytes(">"))))+1>>0));}ai=A.TrimSuffix(ai,(new AC($stringToBytes("</code>"))));aj=E.UnescapeString(($bytesToString(ai)));ai=(new AC($stringToBytes(aj)));ak=new D.Node.ptr("","","",29,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,ai,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false);f.Type=27;f.AppendChild(new D.Node.ptr("","","",28,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes("`"))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));f.AppendChild(ak);f.AppendChild(new D.Node.ptr("","","",30,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes("`"))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));b.Context.Tip.AppendChild(f);b.Context.Tip=f;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=-1;return;case 18:if(33===b.Context.Tip.Type){$s=6;continue;}if(b.Context.ParseOption.ProtyleWYSIWYG&&c.parentIs(a,new AO([365829]))){f.Type=525;}else{f.Type=31;f.Tokens=I.StrToBytes("\n");}b.Context.Tip.AppendChild(f);b.Context.Tip=f;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=40;continue;case 19:f.Type=33;if(""===c.domText(a)&&!(AD.nil===a.Parent)&&((89090===a.Parent.DataAtom)||(187906===a.Parent.DataAtom)||(199938===a.Parent.DataAtom)||(214274===a.Parent.DataAtom)||(216834===a.Parent.DataAtom)||(412930===a.Parent.DataAtom))){$s=-1;return;}f.AppendChild(new D.Node.ptr("","","",36,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));b.Context.Tip.AppendChild(f);b.Context.Tip=f;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=40;continue;case 20:al=c.domAttrValue(a,"class");am=c.domAttrValue(a,"alt");if("emoji"===al){f.Type=200;an=new D.Node.ptr("","","",202,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,b.EmojiImgTokens(am,c.domAttrValue(a,"src")),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false);an.AppendChild(new D.Node.ptr("","","",203,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,I.StrToBytes(":"+am+":"),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));f.AppendChild(an);}else{f.Type=34;f.AppendChild(new D.Node.ptr("","","",35,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));f.AppendChild(new D.Node.ptr("","","",36,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));if(!(""===am)){f.AppendChild(new D.Node.ptr("","","",40,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,I.StrToBytes(am),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}f.AppendChild(new D.Node.ptr("","","",37,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));f.AppendChild(new D.Node.ptr("","","",38,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));ao=c.domAttrValue(a,"src");if(B.HasPrefix(ao,"data:image")){ao=c.domAttrValue(a,"data-src");}f.AppendChild(new D.Node.ptr("","","",41,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,I.StrToBytes(ao),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));ap=c.domAttrValue(a,"title");if(!(""===ap)){f.AppendChild(new D.Node.ptr("","","",43,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));f.AppendChild(new D.Node.ptr("","","",42,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(ap))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}f.AppendChild(new D.Node.ptr("","","",39,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}if(0===b.Context.Tip.Type){aq=new D.Node.ptr("","","",1,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false);b.Context.Tip.AppendChild(aq);b.Context.Tip=aq;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);}b.Context.Tip.AppendChild(f);b.Context.Tip=f;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=40;continue;case 21:f.Type=100;f.TaskListItemChecked=c.hasAttr(a,"checked");b.Context.Tip.AppendChild(f);if(!(AE.nil===f.Parent.Parent)){if(AK.nil===f.Parent.Parent.ListData){f.Parent.Parent.ListData=new D.ListData.ptr(3,false,0,0,0,0,0,false,AC.nil,0);}else{f.Parent.Parent.ListData.Typ=3;}}$s=40;continue;case 22:f.Type=101;ar="~";f.AppendChild(new D.Node.ptr("","","",102,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,I.StrToBytes(ar),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));b.Context.Tip.AppendChild(f);b.Context.Tip=f;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=40;continue;case 23:f.Type=450;as="==";f.AppendChild(new D.Node.ptr("","","",451,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,I.StrToBytes(as),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));b.Context.Tip.AppendChild(f);b.Context.Tip=f;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=40;continue;case 24:f.Type=485;f.AppendChild(new D.Node.ptr("","","",486,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));b.Context.Tip.AppendChild(f);b.Context.Tip=f;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=40;continue;case 25:f.Type=490;f.AppendChild(new D.Node.ptr("","","",491,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));b.Context.Tip.AppendChild(f);b.Context.Tip=f;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=40;continue;case 26:f.Type=106;at=AL.nil;if(!(AD.nil===a.FirstChild)&&!(AD.nil===a.FirstChild.FirstChild)&&!(AD.nil===a.FirstChild.FirstChild.FirstChild)){au=a.FirstChild.FirstChild.FirstChild;while(true){if(!(!(AD.nil===au))){break;}av=c.domAttrValue(au,"align");aw=av;if(aw===("left")){at=$append(at,1);}else if(aw===("center")){at=$append(at,2);}else if(aw===("right")){at=$append(at,3);}else{at=$append(at,0);}au=au.NextSibling;}}f.TableAligns=at;b.Context.Tip.AppendChild(f);b.Context.Tip=f;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=40;continue;case 27:f.Type=107;b.Context.Tip.AppendChild(f);b.Context.Tip=f;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=40;continue;case 28:$s=40;continue;case 29:if(AD.nil===a.FirstChild){$s=6;continue;}ax=a.Parent.Parent;f.Type=108;if(!((208901===ax.FirstChild.DataAtom))&&a===a.Parent.FirstChild){ay=new D.Node.ptr("","","",107,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false);b.Context.Tip.AppendChild(ay);b.Context.Tip=ay;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);}b.Context.Tip.AppendChild(f);b.Context.Tip=f;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=40;continue;case 30:f.Type=109;az=c.domAttrValue(a,"align");ba=0;bb=az;if(bb===("left")){ba=1;}else if(bb===("center")){ba=2;}else if(bb===("right")){ba=3;}else{ba=0;}f.TableCellAlign=ba;b.Context.Tip.AppendChild(f);b.Context.Tip=f;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=40;continue;case 31:$s=-1;return;case 32:if(AD.nil===a.FirstChild){$s=-1;return;}$s=40;continue;case 33:f.Type=16;f.Tokens=(new AC($stringToBytes(c.domText(a))));f.Tokens=A.ReplaceAll(f.Tokens,(new AC($stringToBytes("\n"))),AC.nil);b.Context.Tip.AppendChild(f);$s=-1;return;case 34:f.Type=9;bc=c.domHTML(a);$s=60;case 60:if($c){$c=false;bc=bc.$blk();}if(bc&&bc.$blk!==undefined){break s;}f.Tokens=bc;f.Tokens=(bd=A.SplitAfter(f.Tokens,(new AC($stringToBytes("</summary>")))),(0>=bd.$length?($throwRuntimeError("index out of range"),undefined):bd.$array[bd.$offset+0]));b.Context.Tip.AppendChild(f);$s=40;continue;case 35:$s=-1;return;case 36:f.Type=9;be=c.domHTML(a);$s=61;case 61:if($c){$c=false;be=be.$blk();}if(be&&be.$blk!==undefined){break s;}f.Tokens=be;b.Context.Tip.AppendChild(f);$s=-1;return;case 37:$s=-1;return;case 38:f.Type=1;f.AppendChild(new D.Node.ptr("","","",31,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));f.AppendChild(new D.Node.ptr("","","",16,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,I.StrToBytes(c.domText(a)),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));b.Context.Tip.AppendChild(f);$s=-1;return;case 39:f.Type=1;b.Context.Tip.AppendChild(f);b.Context.Tip=f;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);case 40:case 6:bf=a.FirstChild;case 62:if(!(!(bf===AD.nil))){$s=63;continue;}$r=c.genASTByDOM(bf,b);$s=64;case 64:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}bf=bf.NextSibling;$s=62;continue;case 63:bg=a.DataAtom;if((bg===(28162))||(bg===(1537))){bh="*";f.AppendChild(new D.Node.ptr("","","",19,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,I.StrToBytes(bh),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));O(a,b,c);}else if((bg===(449798))||(bg===(257))){bi="**";f.AppendChild(new D.Node.ptr("","","",24,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,I.StrToBytes(bi),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));O(a,b,c);}else if(bg===(1)){f.AppendChild(new D.Node.ptr("","","",37,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));f.AppendChild(new D.Node.ptr("","","",38,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));f.AppendChild(new D.Node.ptr("","","",41,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,I.StrToBytes(c.domAttrValue(a,"href")),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));bj=c.domAttrValue(a,"title");if(!(""===bj)){f.AppendChild(new D.Node.ptr("","","",43,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));f.AppendChild(new D.Node.ptr("","","",42,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,I.StrToBytes(bj),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}f.AppendChild(new D.Node.ptr("","","",39,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}else if((bg===(283139))||(bg===(9473))||(bg===(53766))){bk="~";f.AppendChild(new D.Node.ptr("","","",103,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,I.StrToBytes(bk),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));O(a,b,c);}else if(bg===(46596)){bl="==";f.AppendChild(new D.Node.ptr("","","",452,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,I.StrToBytes(bl),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));O(a,b,c);}else if(bg===(461571)){f.AppendChild(new D.Node.ptr("","","",487,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));O(a,b,c);}else if(bg===(421123)){f.AppendChild(new D.Node.ptr("","","",492,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));O(a,b,c);}else if(bg===(29191)){b.Context.Tip.AppendChild(new D.Node.ptr("","","",9,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes("</details>"))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}$s=-1;return;}return;}}catch(err){$err=err;$s=-1;}finally{$callDeferred($deferred,$err);if($curGoroutine.asleep){if($f===undefined){$f={$blk:P.ptr.prototype.genASTByDOM};}$f.a=a;$f.aa=aa;$f.ab=ab;$f.ac=ac;$f.ad=ad;$f.ae=ae;$f.af=af;$f.ag=ag;$f.ah=ah;$f.ai=ai;$f.aj=aj;$f.ak=ak;$f.al=al;$f.am=am;$f.an=an;$f.ao=ao;$f.ap=ap;$f.aq=aq;$f.ar=ar;$f.as=as;$f.at=at;$f.au=au;$f.av=av;$f.aw=aw;$f.ax=ax;$f.ay=ay;$f.az=az;$f.b=b;$f.ba=ba;$f.bb=bb;$f.bc=bc;$f.bd=bd;$f.be=be;$f.bf=bf;$f.bg=bg;$f.bh=bh;$f.bi=bi;$f.bj=bj;$f.bk=bk;$f.bl=bl;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.k=k;$f.l=l;$f.m=m;$f.n=n;$f.o=o;$f.p=p;$f.q=q;$f.r=r;$f.s=s;$f.t=t;$f.u=u;$f.v=v;$f.w=w;$f.x=x;$f.y=y;$f.z=z;$f.$s=$s;$f.$deferred=$deferred;$f.$r=$r;return $f;}}};P.prototype.genASTByDOM=function(a,b){return this.$val.genASTByDOM(a,b);};O=function(a,b,c){var a,b,c,d,e,f,g,h;if(!(AD.nil===a.NextSibling)){d=c.domText(a.NextSibling);if(!(""===d)){e=(new AR($stringToRunes(d)));if(!C.IsSpace((0>=e.$length?($throwRuntimeError("index out of range"),undefined):e.$array[e.$offset+0]))){if(C.IsPunct((0>=e.$length?($throwRuntimeError("index out of range"),undefined):e.$array[e.$offset+0]))||C.IsSymbol((0>=e.$length?($throwRuntimeError("index out of range"),undefined):e.$array[e.$offset+0]))){b.Context.Tip.InsertBefore(new D.Node.ptr("","","",16,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(" "))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));b.Context.Tip.InsertAfter(new D.Node.ptr("","","",16,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(" "))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));return;}f=c.domText(a);if(!(""===f)){e=(new AR($stringToRunes(f)));h=(g=e.$length-1>>0,((g<0||g>=e.$length)?($throwRuntimeError("index out of range"),undefined):e.$array[e.$offset+g]));if(C.IsPunct(h)||C.IsSymbol(h)){b.Context.Tip.InsertBefore(new D.Node.ptr("","","",16,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(" "))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));b.Context.Tip.InsertAfter(new D.Node.ptr("","","",16,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(" "))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));return;}}}}}};Q=function(a){var a,b,c,d,e,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b=AS.nil;b=new P.ptr(G.NewOptions(),H.NewOptions(),false,false,false,false,false,false,false,false,false,false);c=a;d=0;case 1:if(!(d<c.$length)){$s=2;continue;}e=((d<0||d>=c.$length)?($throwRuntimeError("index out of range"),undefined):c.$array[c.$offset+d]);$r=e(b);$s=3;case 3:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}d++;$s=1;continue;case 2:b.HTML2MdRendererFuncs=$makeMap(D.NodeType.keyFor,[]);b.HTML2VditorDOMRendererFuncs=$makeMap(D.NodeType.keyFor,[]);b.HTML2VditorIRDOMRendererFuncs=$makeMap(D.NodeType.keyFor,[]);b.HTML2BlockDOMRendererFuncs=$makeMap(D.NodeType.keyFor,[]);b.HTML2VditorSVDOMRendererFuncs=$makeMap(D.NodeType.keyFor,[]);b.Md2HTMLRendererFuncs=$makeMap(D.NodeType.keyFor,[]);b.Md2VditorDOMRendererFuncs=$makeMap(D.NodeType.keyFor,[]);b.Md2VditorIRDOMRendererFuncs=$makeMap(D.NodeType.keyFor,[]);b.Md2BlockDOMRendererFuncs=$makeMap(D.NodeType.keyFor,[]);b.Md2VditorSVDOMRendererFuncs=$makeMap(D.NodeType.keyFor,[]);b=b;$s=-1;return b;}return;}if($f===undefined){$f={$blk:Q};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.$s=$s;$f.$r=$r;return $f;};$pkg.New=Q;P.ptr.prototype.Markdown=function(a,b){var a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;k=$f.k;l=$f.l;m=$f.m;n=$f.n;o=$f.o;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=AC.nil;d=this;e=G.Parse(a,b,d.ParseOptions);$s=1;case 1:if($c){$c=false;e=e.$blk();}if(e&&e.$blk!==undefined){break s;}f=e;g=H.NewHtmlRenderer(f,d.RenderOptions);h=d.Md2HTMLRendererFuncs;i=0;j=$keys(h);while(true){if(!(i<j.length)){break;}k=h[j[i]];if(k===undefined){i++;continue;}l=k.k;m=k.v;n=l;(g.BaseRenderer.ExtRendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[D.NodeType.keyFor(n)]={k:n,v:m};i++;}o=g.Render();$s=2;case 2:if($c){$c=false;o=o.$blk();}if(o&&o.$blk!==undefined){break s;}c=o;$s=-1;return c;}return;}if($f===undefined){$f={$blk:P.ptr.prototype.Markdown};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.k=k;$f.l=l;$f.m=m;$f.n=n;$f.o=o;$f.$s=$s;$f.$r=$r;return $f;};P.prototype.Markdown=function(a,b){return this.$val.Markdown(a,b);};P.ptr.prototype.MarkdownStr=function(a,b){var a,b,c,d,e,f,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c="";d=this;e=d.Markdown(a,(new AC($stringToBytes(b))));$s=1;case 1:if($c){$c=false;e=e.$blk();}if(e&&e.$blk!==undefined){break s;}f=e;c=I.BytesToStr(f);$s=-1;return c;}return;}if($f===undefined){$f={$blk:P.ptr.prototype.MarkdownStr};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.$s=$s;$f.$r=$r;return $f;};P.prototype.MarkdownStr=function(a,b){return this.$val.MarkdownStr(a,b);};P.ptr.prototype.Format=function(a,b){var a,b,c,d,e,f,g,h,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=AC.nil;d=this;e=G.Parse(a,b,d.ParseOptions);$s=1;case 1:if($c){$c=false;e=e.$blk();}if(e&&e.$blk!==undefined){break s;}f=e;g=H.NewFormatRenderer(f,d.RenderOptions);h=g.BaseRenderer.Render();$s=2;case 2:if($c){$c=false;h=h.$blk();}if(h&&h.$blk!==undefined){break s;}c=h;$s=-1;return c;}return;}if($f===undefined){$f={$blk:P.ptr.prototype.Format};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.$s=$s;$f.$r=$r;return $f;};P.prototype.Format=function(a,b){return this.$val.Format(a,b);};P.ptr.prototype.FormatStr=function(a,b){var a,b,c,d,e,f,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c="";d=this;e=d.Format(a,(new AC($stringToBytes(b))));$s=1;case 1:if($c){$c=false;e=e.$blk();}if(e&&e.$blk!==undefined){break s;}f=e;c=I.BytesToStr(f);$s=-1;return c;}return;}if($f===undefined){$f={$blk:P.ptr.prototype.FormatStr};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.$s=$s;$f.$r=$r;return $f;};P.prototype.FormatStr=function(a,b){return this.$val.FormatStr(a,b);};P.ptr.prototype.TextBundle=function(a,b,c){var a,b,c,d,e,f,g,h,i,j,k,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;k=$f.k;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:d=AC.nil;e=AI.nil;f=this;g=G.Parse(a,b,f.ParseOptions);$s=1;case 1:if($c){$c=false;g=g.$blk();}if(g&&g.$blk!==undefined){break s;}h=g;i=H.NewTextBundleRenderer(h,c,f.RenderOptions);k=i.Render();$s=2;case 2:if($c){$c=false;k=k.$blk();}if(k&&k.$blk!==undefined){break s;}j=k;d=j[0];e=j[1];$s=-1;return[d,e];}return;}if($f===undefined){$f={$blk:P.ptr.prototype.TextBundle};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.k=k;$f.$s=$s;$f.$r=$r;return $f;};P.prototype.TextBundle=function(a,b,c){return this.$val.TextBundle(a,b,c);};P.ptr.prototype.TextBundleStr=function(a,b,c){var a,b,c,d,e,f,g,h,i,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:d="";e=AI.nil;f=this;h=f.TextBundle(a,(new AC($stringToBytes(b))),c);$s=1;case 1:if($c){$c=false;h=h.$blk();}if(h&&h.$blk!==undefined){break s;}g=h;i=g[0];e=g[1];d=I.BytesToStr(i);$s=-1;return[d,e];}return;}if($f===undefined){$f={$blk:P.ptr.prototype.TextBundleStr};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.$s=$s;$f.$r=$r;return $f;};P.prototype.TextBundleStr=function(a,b,c){return this.$val.TextBundleStr(a,b,c);};P.ptr.prototype.HTML2Text=function(a){var a,b,c,d,e,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b=this;c=b.HTML2Tree(a);$s=1;case 1:if($c){$c=false;c=c.$blk();}if(c&&c.$blk!==undefined){break s;}d=c;if(AA.nil===d){$s=-1;return"";}e=d.Root.Text();$s=2;case 2:if($c){$c=false;e=e.$blk();}if(e&&e.$blk!==undefined){break s;}$s=-1;return e;}return;}if($f===undefined){$f={$blk:P.ptr.prototype.HTML2Text};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.$s=$s;$f.$r=$r;return $f;};P.prototype.HTML2Text=function(a){return this.$val.HTML2Text(a);};P.ptr.prototype.RenderJSON=function(a){var a,b,c,d,e,f,g,h,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b="";c=this;d=G.Parse("",(new AC($stringToBytes(a))),c.ParseOptions);$s=1;case 1:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}e=d;f=H.NewJSONRenderer(e,c.RenderOptions);g=f.Render();$s=2;case 2:if($c){$c=false;g=g.$blk();}if(g&&g.$blk!==undefined){break s;}h=g;b=I.BytesToStr(h);$s=-1;return b;}return;}if($f===undefined){$f={$blk:P.ptr.prototype.RenderJSON};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.$s=$s;$f.$r=$r;return $f;};P.prototype.RenderJSON=function(a){return this.$val.RenderJSON(a);};P.ptr.prototype.Space=function(a){var a,b;b=this;return H.Space0(a);};P.prototype.Space=function(a){return this.$val.Space(a);};P.ptr.prototype.IsValidLinkDest=function(a){var a,b,c,d,e,f,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b=this;c=Q(new AT([]));$s=1;case 1:if($c){$c=false;c=c.$blk();}if(c&&c.$blk!==undefined){break s;}d=c;d.ParseOptions.GFMAutoLink=true;e=G.Parse("",(new AC($stringToBytes(a))),d.ParseOptions);$s=2;case 2:if($c){$c=false;e=e.$blk();}if(e&&e.$blk!==undefined){break s;}f=e;if(AE.nil===f.Root.FirstChild||AE.nil===f.Root.FirstChild.FirstChild){$s=-1;return false;}if(!(f.Root.LastChild===f.Root.FirstChild)){$s=-1;return false;}if(!((33===f.Root.FirstChild.FirstChild.Type))){$s=-1;return false;}$s=-1;return true;}return;}if($f===undefined){$f={$blk:P.ptr.prototype.IsValidLinkDest};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.$s=$s;$f.$r=$r;return $f;};P.prototype.IsValidLinkDest=function(a){return this.$val.IsValidLinkDest(a);};P.ptr.prototype.GetEmojis=function(){var a,b,c,d,e,f,g,h,i,j,k;a=false;b=this;a=(c=$keys(b.ParseOptions.AliasEmoji).length,((c<0||c>2147483647)?$throwRuntimeError("makemap: size out of range"):{}));d=I.BytesToStr(G.EmojiSitePlaceholder);e=b.ParseOptions.AliasEmoji;f=0;g=$keys(e);while(true){if(!(f<g.length)){break;}h=e[g[f]];if(h===undefined){f++;continue;}i=h.k;j=h.v;if(B.Contains(j,d)){j=B.ReplaceAll(j,d,b.ParseOptions.EmojiSite);}k=i;(a||$throwRuntimeError("assignment to entry in nil map"))[$String.keyFor(k)]={k:k,v:j};f++;}return a;};P.prototype.GetEmojis=function(){return this.$val.GetEmojis();};P.ptr.prototype.PutEmojis=function(a){var a,b,c,d,e,f,g,h,i,j,$s,$deferred,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;$s=$f.$s;$deferred=$f.$deferred;$r=$f.$r;}var $err=null;try{s:while(true){switch($s){case 0:$deferred=[];$deferred.index=$curGoroutine.deferStack.length;$curGoroutine.deferStack.push($deferred);b=this;$r=R.Lock();$s=1;case 1:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$deferred.push([$methodVal(R,"Unlock"),[]]);c=a;d=0;e=$keys(c);while(true){if(!(d<e.length)){break;}f=c[e[d]];if(f===undefined){d++;continue;}g=f.k;h=f.v;i=g;(b.ParseOptions.AliasEmoji||$throwRuntimeError("assignment to entry in nil map"))[$String.keyFor(i)]={k:i,v:h};j=h;(b.ParseOptions.EmojiAlias||$throwRuntimeError("assignment to entry in nil map"))[$String.keyFor(j)]={k:j,v:g};d++;}$s=-1;return;}return;}}catch(err){$err=err;$s=-1;}finally{$callDeferred($deferred,$err);if($curGoroutine.asleep){if($f===undefined){$f={$blk:P.ptr.prototype.PutEmojis};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.$s=$s;$f.$deferred=$deferred;$f.$r=$r;return $f;}}};P.prototype.PutEmojis=function(a){return this.$val.PutEmojis(a);};P.ptr.prototype.RemoveEmoji=function(a){var a,b,c,d,e,f,g,h,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b=this;c=b.ParseOptions.EmojiAlias;d=0;e=$keys(c);while(true){if(!(d<e.length)){break;}f=c[e[d]];if(f===undefined){d++;continue;}g=f.k;a=B.ReplaceAll(a,g,"");d++;}h=B.TrimSpace(a);$s=1;case 1:if($c){$c=false;h=h.$blk();}if(h&&h.$blk!==undefined){break s;}$s=-1;return h;}return;}if($f===undefined){$f={$blk:P.ptr.prototype.RemoveEmoji};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.$s=$s;$f.$r=$r;return $f;};P.prototype.RemoveEmoji=function(a){return this.$val.RemoveEmoji(a);};P.ptr.prototype.GetTerms=function(){var a;a=this;return a.RenderOptions.Terms;};P.prototype.GetTerms=function(){return this.$val.GetTerms();};P.ptr.prototype.PutTerms=function(a){var a,b,c,d,e,f,g,h,i;b=this;if(false===b.RenderOptions.Terms){b.RenderOptions.Terms=H.NewTerms();}c=a;d=0;e=$keys(c);while(true){if(!(d<e.length)){break;}f=c[e[d]];if(f===undefined){d++;continue;}g=f.k;h=f.v;i=g;(b.RenderOptions.Terms||$throwRuntimeError("assignment to entry in nil map"))[$String.keyFor(i)]={k:i,v:h};d++;}};P.prototype.PutTerms=function(a){return this.$val.PutTerms(a);};P.ptr.prototype.ProtylePreview=function(a,b){var a,b,c,d,e,f,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=this;d=H.NewProtylePreviewRenderer(a,b);e=d.Render();$s=1;case 1:if($c){$c=false;e=e.$blk();}if(e&&e.$blk!==undefined){break s;}f=e;$s=-1;return I.BytesToStr(f);}return;}if($f===undefined){$f={$blk:P.ptr.prototype.ProtylePreview};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.$s=$s;$f.$r=$r;return $f;};P.prototype.ProtylePreview=function(a,b){return this.$val.ProtylePreview(a,b);};P.ptr.prototype.Tree2HTML=function(a,b){var a,b,c,d,e,f,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=this;d=H.NewHtmlRenderer(a,b);e=d.Render();$s=1;case 1:if($c){$c=false;e=e.$blk();}if(e&&e.$blk!==undefined){break s;}f=e;$s=-1;return I.BytesToStr(f);}return;}if($f===undefined){$f={$blk:P.ptr.prototype.Tree2HTML};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.$s=$s;$f.$r=$r;return $f;};P.prototype.Tree2HTML=function(a,b){return this.$val.Tree2HTML(a,b);};P.ptr.prototype.SetGFMTable=function(a){var a,b;b=this;b.ParseOptions.GFMTable=a;};P.prototype.SetGFMTable=function(a){return this.$val.SetGFMTable(a);};P.ptr.prototype.SetGFMTaskListItem=function(a){var a,b;b=this;b.ParseOptions.GFMTaskListItem=a;};P.prototype.SetGFMTaskListItem=function(a){return this.$val.SetGFMTaskListItem(a);};P.ptr.prototype.SetGFMTaskListItemClass=function(a){var a,b;b=this;b.RenderOptions.GFMTaskListItemClass=a;};P.prototype.SetGFMTaskListItemClass=function(a){return this.$val.SetGFMTaskListItemClass(a);};P.ptr.prototype.SetGFMStrikethrough=function(a){var a,b;b=this;b.ParseOptions.GFMStrikethrough=a;};P.prototype.SetGFMStrikethrough=function(a){return this.$val.SetGFMStrikethrough(a);};P.ptr.prototype.SetGFMAutoLink=function(a){var a,b;b=this;b.ParseOptions.GFMAutoLink=a;};P.prototype.SetGFMAutoLink=function(a){return this.$val.SetGFMAutoLink(a);};P.ptr.prototype.SetSoftBreak2HardBreak=function(a){var a,b;b=this;b.RenderOptions.SoftBreak2HardBreak=a;};P.prototype.SetSoftBreak2HardBreak=function(a){return this.$val.SetSoftBreak2HardBreak(a);};P.ptr.prototype.SetCodeSyntaxHighlight=function(a){var a,b;b=this;b.RenderOptions.CodeSyntaxHighlight=a;};P.prototype.SetCodeSyntaxHighlight=function(a){return this.$val.SetCodeSyntaxHighlight(a);};P.ptr.prototype.SetCodeSyntaxHighlightDetectLang=function(a){var a,b;b=this;b.RenderOptions.CodeSyntaxHighlightDetectLang=a;};P.prototype.SetCodeSyntaxHighlightDetectLang=function(a){return this.$val.SetCodeSyntaxHighlightDetectLang(a);};P.ptr.prototype.SetCodeSyntaxHighlightInlineStyle=function(a){var a,b;b=this;b.RenderOptions.CodeSyntaxHighlightInlineStyle=a;};P.prototype.SetCodeSyntaxHighlightInlineStyle=function(a){return this.$val.SetCodeSyntaxHighlightInlineStyle(a);};P.ptr.prototype.SetCodeSyntaxHighlightLineNum=function(a){var a,b;b=this;b.RenderOptions.CodeSyntaxHighlightLineNum=a;};P.prototype.SetCodeSyntaxHighlightLineNum=function(a){return this.$val.SetCodeSyntaxHighlightLineNum(a);};P.ptr.prototype.SetCodeSyntaxHighlightStyleName=function(a){var a,b;b=this;b.RenderOptions.CodeSyntaxHighlightStyleName=a;};P.prototype.SetCodeSyntaxHighlightStyleName=function(a){return this.$val.SetCodeSyntaxHighlightStyleName(a);};P.ptr.prototype.SetFootnotes=function(a){var a,b;b=this;b.ParseOptions.Footnotes=a;};P.prototype.SetFootnotes=function(a){return this.$val.SetFootnotes(a);};P.ptr.prototype.SetToC=function(a){var a,b;b=this;b.ParseOptions.ToC=a;b.RenderOptions.ToC=a;};P.prototype.SetToC=function(a){return this.$val.SetToC(a);};P.ptr.prototype.SetHeadingID=function(a){var a,b;b=this;b.ParseOptions.HeadingID=a;b.RenderOptions.HeadingID=a;};P.prototype.SetHeadingID=function(a){return this.$val.SetHeadingID(a);};P.ptr.prototype.SetAutoSpace=function(a){var a,b;b=this;b.RenderOptions.AutoSpace=a;};P.prototype.SetAutoSpace=function(a){return this.$val.SetAutoSpace(a);};P.ptr.prototype.SetFixTermTypo=function(a){var a,b;b=this;b.RenderOptions.FixTermTypo=a;};P.prototype.SetFixTermTypo=function(a){return this.$val.SetFixTermTypo(a);};P.ptr.prototype.SetEmoji=function(a){var a,b;b=this;b.ParseOptions.Emoji=a;};P.prototype.SetEmoji=function(a){return this.$val.SetEmoji(a);};P.ptr.prototype.SetEmojis=function(a){var a,b;b=this;b.ParseOptions.AliasEmoji=a;};P.prototype.SetEmojis=function(a){return this.$val.SetEmojis(a);};P.ptr.prototype.SetEmojiSite=function(a){var a,b;b=this;b.ParseOptions.EmojiSite=a;};P.prototype.SetEmojiSite=function(a){return this.$val.SetEmojiSite(a);};P.ptr.prototype.SetHeadingAnchor=function(a){var a,b;b=this;b.RenderOptions.HeadingAnchor=a;};P.prototype.SetHeadingAnchor=function(a){return this.$val.SetHeadingAnchor(a);};P.ptr.prototype.SetTerms=function(a){var a,b;b=this;b.RenderOptions.Terms=a;};P.prototype.SetTerms=function(a){return this.$val.SetTerms(a);};P.ptr.prototype.SetVditorWYSIWYG=function(a){var a,b;b=this;b.ParseOptions.VditorWYSIWYG=a;b.RenderOptions.VditorWYSIWYG=a;};P.prototype.SetVditorWYSIWYG=function(a){return this.$val.SetVditorWYSIWYG(a);};P.ptr.prototype.SetProtyleWYSIWYG=function(a){var a,b;b=this;b.ParseOptions.ProtyleWYSIWYG=a;b.RenderOptions.ProtyleWYSIWYG=a;};P.prototype.SetProtyleWYSIWYG=function(a){return this.$val.SetProtyleWYSIWYG(a);};P.ptr.prototype.SetVditorIR=function(a){var a,b;b=this;b.ParseOptions.VditorIR=a;b.RenderOptions.VditorIR=a;};P.prototype.SetVditorIR=function(a){return this.$val.SetVditorIR(a);};P.ptr.prototype.SetVditorSV=function(a){var a,b;b=this;b.ParseOptions.VditorSV=a;b.RenderOptions.VditorSV=a;};P.prototype.SetVditorSV=function(a){return this.$val.SetVditorSV(a);};P.ptr.prototype.SetInlineMathAllowDigitAfterOpenMarker=function(a){var a,b;b=this;b.ParseOptions.InlineMathAllowDigitAfterOpenMarker=a;};P.prototype.SetInlineMathAllowDigitAfterOpenMarker=function(a){return this.$val.SetInlineMathAllowDigitAfterOpenMarker(a);};P.ptr.prototype.SetLinkPrefix=function(a){var a,b;b=this;b.RenderOptions.LinkPrefix=a;};P.prototype.SetLinkPrefix=function(a){return this.$val.SetLinkPrefix(a);};P.ptr.prototype.SetLinkBase=function(a){var a,b;b=this;b.RenderOptions.LinkBase=a;};P.prototype.SetLinkBase=function(a){return this.$val.SetLinkBase(a);};P.ptr.prototype.GetLinkBase=function(){var a;a=this;return a.RenderOptions.LinkBase;};P.prototype.GetLinkBase=function(){return this.$val.GetLinkBase();};P.ptr.prototype.SetVditorCodeBlockPreview=function(a){var a,b;b=this;b.RenderOptions.VditorCodeBlockPreview=a;};P.prototype.SetVditorCodeBlockPreview=function(a){return this.$val.SetVditorCodeBlockPreview(a);};P.ptr.prototype.SetVditorMathBlockPreview=function(a){var a,b;b=this;b.RenderOptions.VditorMathBlockPreview=a;};P.prototype.SetVditorMathBlockPreview=function(a){return this.$val.SetVditorMathBlockPreview(a);};P.ptr.prototype.SetVditorHTMLBlockPreview=function(a){var a,b;b=this;b.RenderOptions.VditorHTMLBlockPreview=a;};P.prototype.SetVditorHTMLBlockPreview=function(a){return this.$val.SetVditorHTMLBlockPreview(a);};P.ptr.prototype.SetRenderListStyle=function(a){var a,b;b=this;b.RenderOptions.RenderListStyle=a;};P.prototype.SetRenderListStyle=function(a){return this.$val.SetRenderListStyle(a);};P.ptr.prototype.SetSanitize=function(a){var a,b;b=this;b.RenderOptions.Sanitize=a;};P.prototype.SetSanitize=function(a){return this.$val.SetSanitize(a);};P.ptr.prototype.SetImageLazyLoading=function(a){var a,b;b=this;b.RenderOptions.ImageLazyLoading=a;};P.prototype.SetImageLazyLoading=function(a){return this.$val.SetImageLazyLoading(a);};P.ptr.prototype.SetChineseParagraphBeginningSpace=function(a){var a,b;b=this;b.RenderOptions.ChineseParagraphBeginningSpace=a;};P.prototype.SetChineseParagraphBeginningSpace=function(a){return this.$val.SetChineseParagraphBeginningSpace(a);};P.ptr.prototype.SetYamlFrontMatter=function(a){var a,b;b=this;b.ParseOptions.YamlFrontMatter=a;};P.prototype.SetYamlFrontMatter=function(a){return this.$val.SetYamlFrontMatter(a);};P.ptr.prototype.SetSetext=function(a){var a,b;b=this;b.ParseOptions.Setext=a;};P.prototype.SetSetext=function(a){return this.$val.SetSetext(a);};P.ptr.prototype.SetBlockRef=function(a){var a,b;b=this;b.ParseOptions.BlockRef=a;};P.prototype.SetBlockRef=function(a){return this.$val.SetBlockRef(a);};P.ptr.prototype.SetFileAnnotationRef=function(a){var a,b;b=this;b.ParseOptions.FileAnnotationRef=a;};P.prototype.SetFileAnnotationRef=function(a){return this.$val.SetFileAnnotationRef(a);};P.ptr.prototype.SetMark=function(a){var a,b;b=this;b.ParseOptions.Mark=a;};P.prototype.SetMark=function(a){return this.$val.SetMark(a);};P.ptr.prototype.SetKramdownIAL=function(a){var a,b;b=this;b.ParseOptions.KramdownBlockIAL=a;b.ParseOptions.KramdownSpanIAL=a;b.RenderOptions.KramdownBlockIAL=a;b.RenderOptions.KramdownSpanIAL=a;};P.prototype.SetKramdownIAL=function(a){return this.$val.SetKramdownIAL(a);};P.ptr.prototype.SetKramdownBlockIAL=function(a){var a,b;b=this;b.ParseOptions.KramdownBlockIAL=a;b.RenderOptions.KramdownBlockIAL=a;};P.prototype.SetKramdownBlockIAL=function(a){return this.$val.SetKramdownBlockIAL(a);};P.ptr.prototype.SetKramdownSpanIAL=function(a){var a,b;b=this;b.ParseOptions.KramdownSpanIAL=a;b.RenderOptions.KramdownSpanIAL=a;};P.prototype.SetKramdownSpanIAL=function(a){return this.$val.SetKramdownSpanIAL(a);};P.ptr.prototype.SetKramdownIALIDRenderName=function(a){var a,b;b=this;b.RenderOptions.KramdownIALIDRenderName=a;};P.prototype.SetKramdownIALIDRenderName=function(a){return this.$val.SetKramdownIALIDRenderName(a);};P.ptr.prototype.SetTag=function(a){var a,b;b=this;b.ParseOptions.Tag=a;};P.prototype.SetTag=function(a){return this.$val.SetTag(a);};P.ptr.prototype.SetImgPathAllowSpace=function(a){var a,b;b=this;b.ParseOptions.ImgPathAllowSpace=a;};P.prototype.SetImgPathAllowSpace=function(a){return this.$val.SetImgPathAllowSpace(a);};P.ptr.prototype.SetSuperBlock=function(a){var a,b;b=this;b.ParseOptions.SuperBlock=a;b.RenderOptions.SuperBlock=a;};P.prototype.SetSuperBlock=function(a){return this.$val.SetSuperBlock(a);};P.ptr.prototype.SetSup=function(a){var a,b;b=this;b.ParseOptions.Sup=a;};P.prototype.SetSup=function(a){return this.$val.SetSup(a);};P.ptr.prototype.SetSub=function(a){var a,b;b=this;b.ParseOptions.Sub=a;};P.prototype.SetSub=function(a){return this.$val.SetSub(a);};P.ptr.prototype.SetGitConflict=function(a){var a,b;b=this;b.ParseOptions.GitConflict=a;};P.prototype.SetGitConflict=function(a){return this.$val.SetGitConflict(a);};P.ptr.prototype.SetLinkRef=function(a){var a,b;b=this;b.ParseOptions.LinkRef=a;};P.prototype.SetLinkRef=function(a){return this.$val.SetLinkRef(a);};P.ptr.prototype.SetIndentCodeBlock=function(a){var a,b;b=this;b.ParseOptions.IndentCodeBlock=a;};P.prototype.SetIndentCodeBlock=function(a){return this.$val.SetIndentCodeBlock(a);};P.ptr.prototype.SetParagraphBeginningSpace=function(a){var a,b;b=this;b.ParseOptions.ParagraphBeginningSpace=a;b.RenderOptions.KeepParagraphBeginningSpace=a;};P.prototype.SetParagraphBeginningSpace=function(a){return this.$val.SetParagraphBeginningSpace(a);};P.ptr.prototype.SetProtyleMarkNetImg=function(a){var a,b;b=this;b.RenderOptions.ProtyleMarkNetImg=a;};P.prototype.SetProtyleMarkNetImg=function(a){return this.$val.SetProtyleMarkNetImg(a);};P.ptr.prototype.SetJSRenderers=function(a){var a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;k=$f.k;l=$f.l;m=$f.m;n=$f.n;o=$f.o;p=$f.p;q=$f.q;r=$f.r;s=$f.s;t=$f.t;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b=[b];c=this;d=(e=a[$String.keyFor("renderers")],e!==undefined?e.v:false);f=0;g=$keys(d);case 1:if(!(f<g.length)){$s=2;continue;}h=[h];i=d[g[f]];if(i===undefined){f++;$s=1;continue;}j=i.k;b[0]=i.v;k=$internalize(b[0],$emptyInterface);switch(0){default:if($assertType(k,AX,true)[1]){break;}else{$panic(new $String("invalid type ["+j+"]"));}}l=false;if("HTML2Md"===j){l=c.HTML2MdRendererFuncs;}else if("HTML2VditorDOM"===j){l=c.HTML2VditorDOMRendererFuncs;}else if("HTML2VditorIRDOM"===j){l=c.HTML2VditorIRDOMRendererFuncs;}else if("HTML2BlockDOM"===j){l=c.HTML2BlockDOMRendererFuncs;}else if("HTML2VditorSVDOM"===j){l=c.HTML2VditorSVDOMRendererFuncs;}else if("Md2HTML"===j){l=c.Md2HTMLRendererFuncs;}else if("Md2VditorDOM"===j){l=c.Md2VditorDOMRendererFuncs;}else if("Md2VditorIRDOM"===j){l=c.Md2VditorIRDOMRendererFuncs;}else if("Md2BlockDOM"===j){l=c.Md2BlockDOMRendererFuncs;}else if("Md2VditorSVDOM"===j){l=c.Md2VditorSVDOMRendererFuncs;}else{$panic(new $String("unknown ext renderer func ["+j+"]"));}m=$assertType($internalize(b[0],$emptyInterface),AX);n=m;o=0;p=$keys(n);case 3:if(!(o<p.length)){$s=4;continue;}q=n[p[o]];if(q===undefined){o++;$s=3;continue;}h[0]=q.k;r="Node"+$substring(h[0],6);t=D.Str2NodeType(r);$s=5;case 5:if($c){$c=false;t=t.$blk();}if(t&&t.$blk!==undefined){break s;}s=t;(l||$throwRuntimeError("assignment to entry in nil map"))[D.NodeType.keyFor(s)]={k:s,v:(function(b,h){return function(u,v){var u,v,w;h[0]="render"+$substring(new D.NodeType(u.Type).String(),4);w=$assertType($internalize(b[0][$externalize(h[0],$String)](M.MakeWrapper(u),$externalize(v,$Bool)),$emptyInterface),AY);return[$assertType((0>=w.$length?($throwRuntimeError("index out of range"),undefined):w.$array[w.$offset+0]),$String),(($assertType((1>=w.$length?($throwRuntimeError("index out of range"),undefined):w.$array[w.$offset+1]),$Float64)>>0))];};})(b,h)};o++;$s=3;continue;case 4:f++;$s=1;continue;case 2:$s=-1;return;}return;}if($f===undefined){$f={$blk:P.ptr.prototype.SetJSRenderers};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.k=k;$f.l=l;$f.m=m;$f.n=n;$f.o=o;$f.p=p;$f.q=q;$f.r=r;$f.s=s;$f.t=t;$f.$s=$s;$f.$r=$r;return $f;};P.prototype.SetJSRenderers=function(a){return this.$val.SetJSRenderers(a);};P.ptr.prototype.SpinBlockDOM=function(a){var a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;k=$f.k;l=$f.l;m=$f.m;n=$f.n;o=$f.o;p=$f.p;q=$f.q;r=$f.r;s=$f.s;t=$f.t;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b="";c=this;d=c.blockDOM2Md(a);$s=1;case 1:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}e=d;e=B.ReplaceAll(e,"\xE2\x80\x8B","");f=G.Parse("",(new AC($stringToBytes(e))),c.ParseOptions);$s=2;case 2:if($c){$c=false;f=f.$blk();}if(f&&f.$blk!==undefined){break s;}g=f;h=g.Root.FirstChild;if((1===h.Type)&&""===h.ID){i=h.Next;if(!(AE.nil===i)&&!(AE.nil===i.Next)&&(455===i.Next.Type)){j=i.Next;k=i.ID;l="";h.ID=k;i.ID=l;h.InsertAfter(j);m=i.KramdownIAL;n=AM.nil;h.KramdownIAL=m;i.KramdownIAL=n;}}if((455===h.Type)&&!(AE.nil===h.Next)&&(455===h.Next.Type)&&I.IsDocIAL(h.Next.Tokens)){$s=3;continue;}$s=4;continue;case 3:o=G.Tokens2IAL(h.Tokens);$s=5;case 5:if($c){$c=false;o=o.$blk();}if(o&&o.$blk!==undefined){break s;}p=o;q=G.IAL2Map(p);s=new D.Node.ptr((r=q[$String.keyFor("id")],r!==undefined?r.v:""),"","",1,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,p,false);h.InsertBefore(s);case 4:t=c.Tree2BlockDOM(g,c.RenderOptions);$s=6;case 6:if($c){$c=false;t=t.$blk();}if(t&&t.$blk!==undefined){break s;}b=t;$s=-1;return b;}return;}if($f===undefined){$f={$blk:P.ptr.prototype.SpinBlockDOM};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.k=k;$f.l=l;$f.m=m;$f.n=n;$f.o=o;$f.p=p;$f.q=q;$f.r=r;$f.s=s;$f.t=t;$f.$s=$s;$f.$r=$r;return $f;};P.prototype.SpinBlockDOM=function(a){return this.$val.SpinBlockDOM(a);};P.ptr.prototype.HTML2BlockDOM=function(a){var a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;k=$f.k;l=$f.l;m=$f.m;n=$f.n;o=$f.o;p=$f.p;q=$f.q;r=$f.r;s=$f.s;t=$f.t;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b="";c=this;e=c.HTML2Markdown(a);$s=1;case 1:if($c){$c=false;e=e.$blk();}if(e&&e.$blk!==undefined){break s;}d=e;f=d[0];g=d[1];if(!($interfaceIsEqual($ifaceNil,g))){$s=2;continue;}$s=3;continue;case 2:h=g.Error();$s=4;case 4:if($c){$c=false;h=h.$blk();}if(h&&h.$blk!==undefined){break s;}b=h;$s=-1;return b;case 3:i=G.Parse("",(new AC($stringToBytes(f))),c.ParseOptions);$s=5;case 5:if($c){$c=false;i=i.$blk();}if(i&&i.$blk!==undefined){break s;}j=i;k=H.NewBlockRenderer(j,c.RenderOptions);l=c.HTML2BlockDOMRendererFuncs;m=0;n=$keys(l);while(true){if(!(m<n.length)){break;}o=l[n[m]];if(o===undefined){m++;continue;}p=o.k;q=o.v;r=p;(k.BaseRenderer.ExtRendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[D.NodeType.keyFor(r)]={k:r,v:q};m++;}s=k.BaseRenderer.Render();$s=6;case 6:if($c){$c=false;s=s.$blk();}if(s&&s.$blk!==undefined){break s;}t=s;b=I.BytesToStr(t);$s=-1;return b;}return;}if($f===undefined){$f={$blk:P.ptr.prototype.HTML2BlockDOM};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.k=k;$f.l=l;$f.m=m;$f.n=n;$f.o=o;$f.p=p;$f.q=q;$f.r=r;$f.s=s;$f.t=t;$f.$s=$s;$f.$r=$r;return $f;};P.prototype.HTML2BlockDOM=function(a){return this.$val.HTML2BlockDOM(a);};P.ptr.prototype.BlockDOM2HTML=function(a){var a,b,c,d,e,f,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b="";c=this;d=c.blockDOM2Md(a);$s=1;case 1:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}e=d;f=c.Md2HTML(e);$s=2;case 2:if($c){$c=false;f=f.$blk();}if(f&&f.$blk!==undefined){break s;}b=f;$s=-1;return b;}return;}if($f===undefined){$f={$blk:P.ptr.prototype.BlockDOM2HTML};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.$s=$s;$f.$r=$r;return $f;};P.prototype.BlockDOM2HTML=function(a){return this.$val.BlockDOM2HTML(a);};P.ptr.prototype.BlockDOM2InlineBlockDOM=function(a){var a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;k=$f.k;l=$f.l;m=$f.m;n=$f.n;o=$f.o;p=$f.p;q=$f.q;r=$f.r;s=$f.s;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b=[b];c="";d=this;e=d.blockDOM2Md(a);$s=1;case 1:if($c){$c=false;e=e.$blk();}if(e&&e.$blk!==undefined){break s;}f=e;g=G.Parse("",(new AC($stringToBytes(f))),d.ParseOptions);$s=2;case 2:if($c){$c=false;g=g.$blk();}if(g&&g.$blk!==undefined){break s;}h=g;b[0]=AJ.nil;$r=D.Walk(h.Root,(function(b){return function(i,j){var i,j;if(!j){return 2;}if(!i.IsBlock()){b[0]=$append(b[0],i);return 1;}return 2;};})(b));$s=3;case 3:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}i=AJ.nil;j=h.Root.FirstChild;while(true){if(!(!(AE.nil===j))){break;}i=$append(i,j);j=j.Next;}k=i;l=0;while(true){if(!(l<k.$length)){break;}m=((l<0||l>=k.$length)?($throwRuntimeError("index out of range"),undefined):k.$array[k.$offset+l]);m.Unlink();l++;}n=b[0];o=0;while(true){if(!(o<n.$length)){break;}p=((o<0||o>=n.$length)?($throwRuntimeError("index out of range"),undefined):n.$array[n.$offset+o]);h.Root.AppendChild(p);o++;}q=H.NewBlockRenderer(h,d.RenderOptions);r=q.BaseRenderer.Render();$s=4;case 4:if($c){$c=false;r=r.$blk();}if(r&&r.$blk!==undefined){break s;}s=r;c=I.BytesToStr(s);$s=-1;return c;}return;}if($f===undefined){$f={$blk:P.ptr.prototype.BlockDOM2InlineBlockDOM};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.k=k;$f.l=l;$f.m=m;$f.n=n;$f.o=o;$f.p=p;$f.q=q;$f.r=r;$f.s=s;$f.$s=$s;$f.$r=$r;return $f;};P.prototype.BlockDOM2InlineBlockDOM=function(a){return this.$val.BlockDOM2InlineBlockDOM(a);};P.ptr.prototype.Md2BlockDOM=function(a){var a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;k=$f.k;l=$f.l;m=$f.m;n=$f.n;o=$f.o;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b="";c=this;d=G.Parse("",(new AC($stringToBytes(a))),c.ParseOptions);$s=1;case 1:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}e=d;f=H.NewBlockRenderer(e,c.RenderOptions);g=c.Md2BlockDOMRendererFuncs;h=0;i=$keys(g);while(true){if(!(h<i.length)){break;}j=g[i[h]];if(j===undefined){h++;continue;}k=j.k;l=j.v;m=k;(f.BaseRenderer.ExtRendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[D.NodeType.keyFor(m)]={k:m,v:l};h++;}n=f.BaseRenderer.Render();$s=2;case 2:if($c){$c=false;n=n.$blk();}if(n&&n.$blk!==undefined){break s;}o=n;b=I.BytesToStr(o);$s=-1;return b;}return;}if($f===undefined){$f={$blk:P.ptr.prototype.Md2BlockDOM};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.k=k;$f.l=l;$f.m=m;$f.n=n;$f.o=o;$f.$s=$s;$f.$r=$r;return $f;};P.prototype.Md2BlockDOM=function(a){return this.$val.Md2BlockDOM(a);};P.ptr.prototype.InlineMd2BlockDOM=function(a){var a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;k=$f.k;l=$f.l;m=$f.m;n=$f.n;o=$f.o;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b="";c=this;d=G.Inline("",(new AC($stringToBytes(a))),c.ParseOptions);$s=1;case 1:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}e=d;f=H.NewBlockRenderer(e,c.RenderOptions);g=c.Md2BlockDOMRendererFuncs;h=0;i=$keys(g);while(true){if(!(h<i.length)){break;}j=g[i[h]];if(j===undefined){h++;continue;}k=j.k;l=j.v;m=k;(f.BaseRenderer.ExtRendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[D.NodeType.keyFor(m)]={k:m,v:l};h++;}n=f.BaseRenderer.Render();$s=2;case 2:if($c){$c=false;n=n.$blk();}if(n&&n.$blk!==undefined){break s;}o=n;b=I.BytesToStr(o);$s=-1;return b;}return;}if($f===undefined){$f={$blk:P.ptr.prototype.InlineMd2BlockDOM};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.k=k;$f.l=l;$f.m=m;$f.n=n;$f.o=o;$f.$s=$s;$f.$r=$r;return $f;};P.prototype.InlineMd2BlockDOM=function(a){return this.$val.InlineMd2BlockDOM(a);};P.ptr.prototype.BlockDOM2Md=function(a){var a,b,c,d,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b="";c=this;d=c.blockDOM2Md(a);$s=1;case 1:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}b=d;b=B.ReplaceAll(b,"\xE2\x80\x8B","");$s=-1;return b;}return;}if($f===undefined){$f={$blk:P.ptr.prototype.BlockDOM2Md};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.$s=$s;$f.$r=$r;return $f;};P.prototype.BlockDOM2Md=function(a){return this.$val.BlockDOM2Md(a);};P.ptr.prototype.BlockDOM2StdMd=function(a){var a,b,c,d,e,f,g,h,i,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b="";c=this;a=B.ReplaceAll(a,"\xE2\x80\x8B","");d=c.BlockDOM2Tree(a);$s=1;case 1:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}e=d;$r=D.Walk(e.Root,(function(f,g){var f,g;if(!g){return 2;}if((455===f.Type)||(456===f.Type)){f.Tokens=AC.nil;}return 2;}));$s=2;case 2:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}f=H.NewOptions();f.AutoSpace=false;f.FixTermTypo=false;f.KramdownBlockIAL=true;f.KramdownSpanIAL=true;f.KeepParagraphBeginningSpace=true;g=H.NewFormatRenderer(e,f);h=g.BaseRenderer.Render();$s=3;case 3:if($c){$c=false;h=h.$blk();}if(h&&h.$blk!==undefined){break s;}i=h;b=I.BytesToStr(i);b=B.ReplaceAll(b,"\xE2\x80\x8B","");$s=-1;return b;}return;}if($f===undefined){$f={$blk:P.ptr.prototype.BlockDOM2StdMd};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.$s=$s;$f.$r=$r;return $f;};P.prototype.BlockDOM2StdMd=function(a){return this.$val.BlockDOM2StdMd(a);};P.ptr.prototype.BlockDOM2Text=function(a){var a,b,c,d,e,f,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b="";c=this;d=c.BlockDOM2Tree(a);$s=1;case 1:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}e=d;f=e.Root.Text();$s=2;case 2:if($c){$c=false;f=f.$blk();}if(f&&f.$blk!==undefined){break s;}b=f;$s=-1;return b;}return;}if($f===undefined){$f={$blk:P.ptr.prototype.BlockDOM2Text};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.$s=$s;$f.$r=$r;return $f;};P.prototype.BlockDOM2Text=function(a){return this.$val.BlockDOM2Text(a);};P.ptr.prototype.BlockDOM2TextLen=function(a){var a,b,c,d,e,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b=this;c=b.BlockDOM2Tree(a);$s=1;case 1:if($c){$c=false;c=c.$blk();}if(c&&c.$blk!==undefined){break s;}d=c;e=d.Root.TextLen();$s=2;case 2:if($c){$c=false;e=e.$blk();}if(e&&e.$blk!==undefined){break s;}$s=-1;return e;}return;}if($f===undefined){$f={$blk:P.ptr.prototype.BlockDOM2TextLen};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.$s=$s;$f.$r=$r;return $f;};P.prototype.BlockDOM2TextLen=function(a){return this.$val.BlockDOM2TextLen(a);};P.ptr.prototype.Tree2BlockDOM=function(a,b){var a,b,c,d,e,f,g,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c="";d=this;e=H.NewBlockRenderer(a,b);f=e.BaseRenderer.Render();$s=1;case 1:if($c){$c=false;f=f.$blk();}if(f&&f.$blk!==undefined){break s;}g=f;c=I.BytesToStr(g);c=B.ReplaceAll(c,"\xE2\x80\xB8","<wbr>");$s=-1;return c;}return;}if($f===undefined){$f={$blk:P.ptr.prototype.Tree2BlockDOM};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.$s=$s;$f.$r=$r;return $f;};P.prototype.Tree2BlockDOM=function(a,b){return this.$val.Tree2BlockDOM(a,b);};P.ptr.prototype.BlockDOM2Tree=function(a){var a,b,c,d,e,f,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b=[b];c=AA.nil;b[0]=this;a=B.ReplaceAll(a,"\n<wbr>\n</strong>","</strong>\n<wbr>\n");a=B.ReplaceAll(a,"\n<wbr>\n</em>","</em>\n<wbr>\n");a=B.ReplaceAll(a,"\n<wbr>\n
","
\n<wbr>\n");a=B.ReplaceAll(a,"\n<wbr>\n</u>","</u>\n<wbr>\n");a=B.ReplaceAll(a,"\n<wbr>\n</span>","</span>\n<wbr>\n");a=B.ReplaceAll(a,"<wbr>","\xE2\x80\xB8");a=B.ReplaceAll(a,"\t\n","\n");a=B.ReplaceAll(a,"    \n","  \n");d=b[0].parseHTML(a);$s=1;case 1:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}e=d;if(AD.nil===e){$s=-1;return c;}$r=b[0].adjustVditorDOM(e);$s=2;case 2:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}c=new G.Tree.ptr(new D.Node.ptr("","","",0,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false),new G.Context.ptr(AA.nil,b[0].ParseOptions,AE.nil,AE.nil,AC.nil,0,0,0,0,0,0,false,false,false,false,AE.nil,AE.nil),AG.nil,AH.nil,"","","","","",AI.nil,new $Int64(0,0),new $Int64(0,0),"");c.Context.Tip=c.Root;f=e.FirstChild;case 3:if(!(!(AD.nil===f))){$s=4;continue;}$r=b[0].genASTByBlockDOM(f,c);$s=5;case 5:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}f=f.NextSibling;$s=3;continue;case 4:$r=D.Walk(c.Root,(function(b){return function(g,h){var g,h,i;if(h){i=g.Type;if((i===(10))||(i===(9))||(i===(29))||(i===(15))||(i===(306))||(i===(302))||(i===(27))||(i===(304))){if(!(AE.nil===g.Next)&&(27===g.Next.Type)&&(g.CodeMarkerLen===g.Next.CodeMarkerLen)&&!(AE.nil===g.FirstChild)&&!(AE.nil===g.FirstChild.Next)){g.FirstChild.Next.Tokens=$appendSlice(g.FirstChild.Next.Tokens,g.Next.FirstChild.Next.Tokens);g.Next.Unlink();}}else if((i===(22))||(i===(17))||(i===(101))||(i===(520))){b[0].mergeSameSpan(g,g.Type);}}return 2;};})(b));$s=6;case 6:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$s=-1;return c;}return;}if($f===undefined){$f={$blk:P.ptr.prototype.BlockDOM2Tree};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.$s=$s;$f.$r=$r;return $f;};P.prototype.BlockDOM2Tree=function(a){return this.$val.BlockDOM2Tree(a);};P.ptr.prototype.mergeSameSpan=function(a,b){var a,b,c,d,e,f,g,h;c=this;if(!(AE.nil===a.Next)&&(b===a.Next.Type)&&!(AE.nil===a.Next.Next)&&!((456===a.Next.Next.Type))){d=AJ.nil;a.Next.FirstChild.Unlink();a.Next.LastChild.Unlink();e=a.Next.FirstChild;while(true){if(!(!(AE.nil===e))){break;}d=$append(d,e);e=e.Next;}f=d;g=0;while(true){if(!(g<f.$length)){break;}h=((g<0||g>=f.$length)?($throwRuntimeError("index out of range"),undefined):f.$array[f.$offset+g]);a.LastChild.InsertBefore(h);g++;}a.Next.Unlink();}};P.prototype.mergeSameSpan=function(a,b){return this.$val.mergeSameSpan(a,b);};P.ptr.prototype.CancelSuperBlock=function(a){var a,b,c,d,e,f,g,h,i,j,k,l,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;k=$f.k;l=$f.l;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b="";c=this;d=c.BlockDOM2Tree(a);$s=1;case 1:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}e=d;if(!((475===e.Root.FirstChild.Type))){b=a;$s=-1;return b;}f=e.Root.FirstChild;g=AJ.nil;h=f.FirstChild;while(true){if(!(!(AE.nil===h))){break;}g=$append(g,h);h=h.Next;}i=g;j=0;while(true){if(!(j<i.$length)){break;}k=((j<0||j>=i.$length)?($throwRuntimeError("index out of range"),undefined):i.$array[i.$offset+j]);e.Root.AppendChild(k);j++;}f.Unlink();l=c.Tree2BlockDOM(e,c.RenderOptions);$s=2;case 2:if($c){$c=false;l=l.$blk();}if(l&&l.$blk!==undefined){break s;}b=l;$s=-1;return b;}return;}if($f===undefined){$f={$blk:P.ptr.prototype.CancelSuperBlock};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.k=k;$f.l=l;$f.$s=$s;$f.$r=$r;return $f;};P.prototype.CancelSuperBlock=function(a){return this.$val.CancelSuperBlock(a);};P.ptr.prototype.CancelList=function(a){var a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;k=$f.k;l=$f.l;m=$f.m;n=$f.n;o=$f.o;p=$f.p;q=$f.q;r=$f.r;s=$f.s;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b="";c=this;d=c.BlockDOM2Tree(a);$s=1;case 1:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}e=d;if(!((7===e.Root.FirstChild.Type))){b=a;$s=-1;return b;}f=e.Root.FirstChild;g=AJ.nil;h=AJ.nil;i=g;j=h;k=f.FirstChild;while(true){if(!(!(AE.nil===k))){break;}l=k.FirstChild;while(true){if(!(!(AE.nil===l))){break;}if(!((100===l.Type))){i=$append(i,l);}l=l.Next;}j=$append(j,k);k=k.Next;}m=i;n=0;while(true){if(!(n<m.$length)){break;}o=((n<0||n>=m.$length)?($throwRuntimeError("index out of range"),undefined):m.$array[m.$offset+n]);e.Root.AppendChild(o);n++;}p=j;q=0;while(true){if(!(q<p.$length)){break;}r=((q<0||q>=p.$length)?($throwRuntimeError("index out of range"),undefined):p.$array[p.$offset+q]);r.Unlink();q++;}f.Unlink();s=c.Tree2BlockDOM(e,c.RenderOptions);$s=2;case 2:if($c){$c=false;s=s.$blk();}if(s&&s.$blk!==undefined){break s;}b=s;$s=-1;return b;}return;}if($f===undefined){$f={$blk:P.ptr.prototype.CancelList};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.k=k;$f.l=l;$f.m=m;$f.n=n;$f.o=o;$f.p=p;$f.q=q;$f.r=r;$f.s=s;$f.$s=$s;$f.$r=$r;return $f;};P.prototype.CancelList=function(a){return this.$val.CancelList(a);};P.ptr.prototype.CancelBlockquote=function(a){var a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;k=$f.k;l=$f.l;m=$f.m;n=$f.n;o=$f.o;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b="";c=this;d=c.BlockDOM2Tree(a);$s=1;case 1:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}e=d;if(!((5===e.Root.FirstChild.Type))){b=a;$s=-1;return b;}f=e.Root.FirstChild;g=AJ.nil;h=AJ.nil;i=g;j=h;k=f.FirstChild;while(true){if(!(!(AE.nil===k))){break;}if(!((6===k.Type))){i=$append(i,k);}j=$append(j,k);k=k.Next;}l=i;m=0;while(true){if(!(m<l.$length)){break;}n=((m<0||m>=l.$length)?($throwRuntimeError("index out of range"),undefined):l.$array[l.$offset+m]);e.Root.AppendChild(n);m++;}f.Unlink();o=c.Tree2BlockDOM(e,c.RenderOptions);$s=2;case 2:if($c){$c=false;o=o.$blk();}if(o&&o.$blk!==undefined){break s;}b=o;$s=-1;return b;}return;}if($f===undefined){$f={$blk:P.ptr.prototype.CancelBlockquote};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.k=k;$f.l=l;$f.m=m;$f.n=n;$f.o=o;$f.$s=$s;$f.$r=$r;return $f;};P.prototype.CancelBlockquote=function(a){return this.$val.CancelBlockquote(a);};P.ptr.prototype.HLevel=function(a,b){var a,b,c,d,e,f,g,h,i,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c="";d=this;e=d.BlockDOM2Tree(a);$s=1;case 1:if($c){$c=false;e=e.$blk();}if(e&&e.$blk!==undefined){break s;}f=e;g=f.Root.FirstChild;if(!((2===g.Type))){c=a;$s=-1;return c;}h=N.Atoi(b);g.HeadingLevel=h[0];i=d.Tree2BlockDOM(f,d.RenderOptions);$s=2;case 2:if($c){$c=false;i=i.$blk();}if(i&&i.$blk!==undefined){break s;}c=i;$s=-1;return c;}return;}if($f===undefined){$f={$blk:P.ptr.prototype.HLevel};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.$s=$s;$f.$r=$r;return $f;};P.prototype.HLevel=function(a,b){return this.$val.HLevel(a,b);};P.ptr.prototype.H2P=function(a){var a,b,c,d,e,f,g,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b="";c=this;d=c.BlockDOM2Tree(a);$s=1;case 1:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}e=d;f=e.Root.FirstChild;if(!((2===f.Type))){b=a;$s=-1;return b;}f.Type=1;g=c.Tree2BlockDOM(e,c.RenderOptions);$s=2;case 2:if($c){$c=false;g=g.$blk();}if(g&&g.$blk!==undefined){break s;}b=g;$s=-1;return b;}return;}if($f===undefined){$f={$blk:P.ptr.prototype.H2P};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.$s=$s;$f.$r=$r;return $f;};P.prototype.H2P=function(a){return this.$val.H2P(a);};P.ptr.prototype.P2H=function(a,b){var a,b,c,d,e,f,g,h,i,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c="";d=this;e=d.BlockDOM2Tree(a);$s=1;case 1:if($c){$c=false;e=e.$blk();}if(e&&e.$blk!==undefined){break s;}f=e;g=f.Root.FirstChild;if(!((1===g.Type))){c=a;$s=-1;return c;}g.Type=2;h=N.Atoi(b);g.HeadingLevel=h[0];i=d.Tree2BlockDOM(f,d.RenderOptions);$s=2;case 2:if($c){$c=false;i=i.$blk();}if(i&&i.$blk!==undefined){break s;}c=i;$s=-1;return c;}return;}if($f===undefined){$f={$blk:P.ptr.prototype.P2H};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.$s=$s;$f.$r=$r;return $f;};P.prototype.P2H=function(a,b){return this.$val.P2H(a,b);};P.ptr.prototype.Blocks2Ps=function(a){var a,b,c,d,e,f,g,h,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b="";c=this;d=c.BlockDOM2Tree(a);$s=1;case 1:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}e=d;f=e.Root.FirstChild;g=f;while(true){if(!(!(AE.nil===g))){break;}if(2===g.Type){g.Type=1;}g=g.Next;}h=c.Tree2BlockDOM(e,c.RenderOptions);$s=2;case 2:if($c){$c=false;h=h.$blk();}if(h&&h.$blk!==undefined){break s;}b=h;$s=-1;return b;}return;}if($f===undefined){$f={$blk:P.ptr.prototype.Blocks2Ps};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.$s=$s;$f.$r=$r;return $f;};P.prototype.Blocks2Ps=function(a){return this.$val.Blocks2Ps(a);};P.ptr.prototype.Blocks2Hs=function(a,b){var a,b,c,d,e,f,g,h,i,j,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c="";d=this;e=d.BlockDOM2Tree(a);$s=1;case 1:if($c){$c=false;e=e.$blk();}if(e&&e.$blk!==undefined){break s;}f=e;g=f.Root.FirstChild;h=g;while(true){if(!(!(AE.nil===h))){break;}if((1===h.Type)||(2===h.Type)){h.Type=2;i=N.Atoi(b);h.HeadingLevel=i[0];}h=h.Next;}j=d.Tree2BlockDOM(f,d.RenderOptions);$s=2;case 2:if($c){$c=false;j=j.$blk();}if(j&&j.$blk!==undefined){break s;}c=j;$s=-1;return c;}return;}if($f===undefined){$f={$blk:P.ptr.prototype.Blocks2Hs};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.$s=$s;$f.$r=$r;return $f;};P.prototype.Blocks2Hs=function(a,b){return this.$val.Blocks2Hs(a,b);};P.ptr.prototype.OL2TL=function(a){var a,b,c,d,e,f,g,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b="";c=this;d=c.BlockDOM2Tree(a);$s=1;case 1:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}e=d;e.Root.FirstChild.ListData.Typ=3;f=e.Root.FirstChild.FirstChild;while(true){if(!(!(AE.nil===f))){break;}if(8===f.Type){f.ListData.Typ=3;f.PrependChild(new D.Node.ptr("","","",100,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}f=f.Next;}g=c.Tree2BlockDOM(e,c.RenderOptions);$s=2;case 2:if($c){$c=false;g=g.$blk();}if(g&&g.$blk!==undefined){break s;}b=g;$s=-1;return b;}return;}if($f===undefined){$f={$blk:P.ptr.prototype.OL2TL};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.$s=$s;$f.$r=$r;return $f;};P.prototype.OL2TL=function(a){return this.$val.OL2TL(a);};P.ptr.prototype.UL2TL=function(a){var a,b,c,d,e,f,g,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b="";c=this;d=c.BlockDOM2Tree(a);$s=1;case 1:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}e=d;e.Root.FirstChild.ListData.Typ=3;f=e.Root.FirstChild.FirstChild;while(true){if(!(!(AE.nil===f))){break;}if(8===f.Type){f.ListData.Typ=3;f.PrependChild(new D.Node.ptr("","","",100,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}f=f.Next;}g=c.Tree2BlockDOM(e,c.RenderOptions);$s=2;case 2:if($c){$c=false;g=g.$blk();}if(g&&g.$blk!==undefined){break s;}b=g;$s=-1;return b;}return;}if($f===undefined){$f={$blk:P.ptr.prototype.UL2TL};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.$s=$s;$f.$r=$r;return $f;};P.prototype.UL2TL=function(a){return this.$val.UL2TL(a);};P.ptr.prototype.TL2OL=function(a){var a,b,c,d,e,f,g,h,i,j,k,l,m,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;k=$f.k;l=$f.l;m=$f.m;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b="";c=this;d=c.BlockDOM2Tree(a);$s=1;case 1:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}e=d;f=e.Root.FirstChild;if(!((7===f.Type))||!((3===f.ListData.Typ))){b=a;$s=-1;return b;}g=1;f.ListData.Typ=1;h=AJ.nil;i=f.FirstChild;case 2:if(!(!(AE.nil===i))){$s=3;continue;}if(455===i.Type){i=i.Next;$s=2;continue;}h=$append(h,i.FirstChild);i.ListData.Typ=1;i.ListData.Num=g;g=g+(1)>>0;i=i.Next;$s=2;continue;case 3:j=h;k=0;while(true){if(!(k<j.$length)){break;}l=((k<0||k>=j.$length)?($throwRuntimeError("index out of range"),undefined):j.$array[j.$offset+k]);l.Unlink();k++;}m=c.Tree2BlockDOM(e,c.RenderOptions);$s=4;case 4:if($c){$c=false;m=m.$blk();}if(m&&m.$blk!==undefined){break s;}b=m;$s=-1;return b;}return;}if($f===undefined){$f={$blk:P.ptr.prototype.TL2OL};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.k=k;$f.l=l;$f.m=m;$f.$s=$s;$f.$r=$r;return $f;};P.prototype.TL2OL=function(a){return this.$val.TL2OL(a);};P.ptr.prototype.TL2UL=function(a){var a,b,c,d,e,f,g,h,i,j,k,l,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;k=$f.k;l=$f.l;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b="";c=this;d=c.BlockDOM2Tree(a);$s=1;case 1:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}e=d;f=e.Root.FirstChild;if(!((7===f.Type))||!((3===f.ListData.Typ))){b=a;$s=-1;return b;}f.ListData.Typ=0;g=AJ.nil;h=f.FirstChild;case 2:if(!(!(AE.nil===h))){$s=3;continue;}if(455===h.Type){h=h.Next;$s=2;continue;}g=$append(g,h.FirstChild);h.ListData.Typ=0;h=h.Next;$s=2;continue;case 3:i=g;j=0;while(true){if(!(j<i.$length)){break;}k=((j<0||j>=i.$length)?($throwRuntimeError("index out of range"),undefined):i.$array[i.$offset+j]);k.Unlink();j++;}l=c.Tree2BlockDOM(e,c.RenderOptions);$s=4;case 4:if($c){$c=false;l=l.$blk();}if(l&&l.$blk!==undefined){break s;}b=l;$s=-1;return b;}return;}if($f===undefined){$f={$blk:P.ptr.prototype.TL2UL};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.k=k;$f.l=l;$f.$s=$s;$f.$r=$r;return $f;};P.prototype.TL2UL=function(a){return this.$val.TL2UL(a);};P.ptr.prototype.OL2UL=function(a){var a,b,c,d,e,f,g,h,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b="";c=this;d=c.BlockDOM2Tree(a);$s=1;case 1:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}e=d;f=e.Root.FirstChild;if(!((7===f.Type))){b=a;$s=-1;return b;}f.ListData.Typ=0;g=f.FirstChild;case 2:if(!(!(AE.nil===g))){$s=3;continue;}if(455===g.Type){g=g.Next;$s=2;continue;}g.ListData.Typ=0;g=g.Next;$s=2;continue;case 3:h=c.Tree2BlockDOM(e,c.RenderOptions);$s=4;case 4:if($c){$c=false;h=h.$blk();}if(h&&h.$blk!==undefined){break s;}b=h;$s=-1;return b;}return;}if($f===undefined){$f={$blk:P.ptr.prototype.OL2UL};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.$s=$s;$f.$r=$r;return $f;};P.prototype.OL2UL=function(a){return this.$val.OL2UL(a);};P.ptr.prototype.UL2OL=function(a){var a,b,c,d,e,f,g,h,i,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b="";c=this;d=c.BlockDOM2Tree(a);$s=1;case 1:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}e=d;f=e.Root.FirstChild;if(!((7===f.Type))){b=a;$s=-1;return b;}g=1;f.ListData.Typ=1;h=f.FirstChild;case 2:if(!(!(AE.nil===h))){$s=3;continue;}if(455===h.Type){h=h.Next;$s=2;continue;}h.ListData.Typ=1;h.ListData.Num=g;g=g+(1)>>0;h=h.Next;$s=2;continue;case 3:i=c.Tree2BlockDOM(e,c.RenderOptions);$s=4;case 4:if($c){$c=false;i=i.$blk();}if(i&&i.$blk!==undefined){break s;}b=i;$s=-1;return b;}return;}if($f===undefined){$f={$blk:P.ptr.prototype.UL2OL};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.$s=$s;$f.$r=$r;return $f;};P.prototype.UL2OL=function(a){return this.$val.UL2OL(a);};P.ptr.prototype.blockDOM2Md=function(a){var a,b,c,d,e,f,g,h,i,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b="";c=this;d=c.BlockDOM2Tree(a);$s=1;case 1:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}e=d;f=H.NewOptions();f.AutoSpace=false;f.FixTermTypo=false;f.KramdownBlockIAL=true;f.KramdownSpanIAL=true;f.KeepParagraphBeginningSpace=true;g=H.NewFormatRenderer(e,f);h=g.BaseRenderer.Render();$s=2;case 2:if($c){$c=false;h=h.$blk();}if(h&&h.$blk!==undefined){break s;}i=h;b=($bytesToString(i));$s=-1;return b;}return;}if($f===undefined){$f={$blk:P.ptr.prototype.blockDOM2Md};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.$s=$s;$f.$r=$r;return $f;};P.prototype.blockDOM2Md=function(a){return this.$val.blockDOM2Md(a);};P.ptr.prototype.genASTByBlockDOM=function(a,b){var a,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,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,$deferred,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;aa=$f.aa;ab=$f.ab;ac=$f.ac;ad=$f.ad;ae=$f.ae;af=$f.af;ag=$f.ag;ah=$f.ah;ai=$f.ai;aj=$f.aj;ak=$f.ak;al=$f.al;am=$f.am;an=$f.an;ao=$f.ao;ap=$f.ap;aq=$f.aq;ar=$f.ar;as=$f.as;at=$f.at;au=$f.au;av=$f.av;aw=$f.aw;ax=$f.ax;ay=$f.ay;az=$f.az;b=$f.b;ba=$f.ba;bb=$f.bb;bc=$f.bc;bd=$f.bd;be=$f.be;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;k=$f.k;l=$f.l;m=$f.m;n=$f.n;o=$f.o;p=$f.p;q=$f.q;r=$f.r;s=$f.s;t=$f.t;u=$f.u;v=$f.v;w=$f.w;x=$f.x;y=$f.y;z=$f.z;$s=$f.$s;$deferred=$f.$deferred;$r=$f.$r;}var $err=null;try{s:while(true){switch($s){case 0:$deferred=[];$deferred.index=$curGoroutine.deferStack.length;$curGoroutine.deferStack.push($deferred);c=this;d=c.domAttrValue(a,"class");if("protyle-attr"===d||B.Contains(d,"__copy")||B.Contains(d,"protyle-linenumber__rows")){$s=-1;return;}if("1"===c.domAttrValue(a,"spin")){$s=-1;return;}if(B.Contains(d,"protyle-action")){if(11===b.Context.Tip.Type){e=a.FirstChild;f="";if(!(AD.nil===e.FirstChild)){f=e.FirstChild.Data;}b.Context.Tip.AppendChild(new D.Node.ptr("","","",14,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,I.StrToBytes(f),AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));g=c.domText(a.NextSibling);if(B.HasSuffix(g,"\n\n\xE2\x80\xB8")){g=B.TrimSuffix(g,"\n\n\xE2\x80\xB8");g=g+("\n\xE2\x80\xB8\n");}h=B.Split(g,"\n");i=new A.Buffer.ptr(AC.nil,0,0);j=h;k=0;while(true){if(!(k<j.$length)){break;}l=k;m=((k<0||k>=j.$length)?($throwRuntimeError("index out of range"),undefined):j.$array[j.$offset+k]);if(B.Contains(m,"```")){m=B.ReplaceAll(m,"```","\xE2\x80\x8D```");}else{m=B.ReplaceAll(m,"\xE2\x80\x8D","");}i.WriteString(m);if(l<(h.$length-1>>0)){i.WriteByte(10);}k++;}b.Context.Tip.AppendChild(new D.Node.ptr("","","",15,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,i.Bytes(),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}else if(8===b.Context.Tip.Type){if(3===b.Context.Tip.ListData.Typ){b.Context.Tip.AppendChild(new D.Node.ptr("","","",100,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,B.Contains(c.domAttrValue(a.Parent,"class"),"protyle-task--done"),AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}}$s=-1;return;}if("true"===c.domAttrValue(a,"contenteditable")){$s=1;continue;}$s=2;continue;case 1:$r=c.genASTContenteditable(a,b);$s=3;case 3:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$s=-1;return;case 2:n=D.Str2NodeType(c.domAttrValue(a,"data-type"));$s=4;case 4:if($c){$c=false;n=n.$blk();}if(n&&n.$blk!==undefined){break s;}o=n;p=c.domAttrValue(a,"data-node-id");q=new D.Node.ptr(p,"","",0,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false);if(!(""===q.ID)&&!c.parentIs(a,new AO([365829]))){$s=5;continue;}$s=6;continue;case 5:q.KramdownIAL=new AM([new AI(["id",q.ID])]);r=c.setBlockIAL(a,q);$s=7;case 7:if($c){$c=false;r=r.$blk();}if(r&&r.$blk!==undefined){break s;}s=r;t=new D.Node.ptr("","","",455,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,s,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false);$deferred.push([$methodVal(b.Context,"TipAppendChild"),[t]]);case 6:u=o;if(u===(465)){$s=9;continue;}if(u===(106)){$s=10;continue;}if(u===(1)){$s=11;continue;}if(u===(2)){$s=12;continue;}if(u===(5)){$s=13;continue;}if(u===(7)){$s=14;continue;}if(u===(8)){$s=15;continue;}if(u===(495)){$s=16;continue;}if(u===(475)){$s=17;continue;}if(u===(300)){$s=18;continue;}if(u===(11)){$s=19;continue;}if(u===(9)){$s=20;continue;}if(u===(425)){$s=21;continue;}if(u===(4)){$s=22;continue;}if(u===(500)){$s=23;continue;}if(u===(535)){$s=24;continue;}if(u===(510)){$s=25;continue;}if(u===(505)){$s=26;continue;}$s=27;continue;case 9:q.Type=465;q.AppendChild(new D.Node.ptr("","","",466,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));q.AppendChild(new D.Node.ptr("","","",466,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));v=c.domAttrValue(a,"data-content");q.AppendChild(new D.Node.ptr("","","",468,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,I.StrToBytes(v),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));q.AppendChild(new D.Node.ptr("","","",467,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));q.AppendChild(new D.Node.ptr("","","",467,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));b.Context.Tip.AppendChild(q);$s=-1;return;case 10:q.Type=106;w=AL.nil;if(AD.nil===a.FirstChild){$s=-1;return;}if(c.parentIs(a,new AO([365829]))){$s=29;continue;}$s=30;continue;case 29:x=c.domText(a);y=B.TrimSpace(x);$s=31;case 31:if($c){$c=false;y=y.$blk();}if(y&&y.$blk!==undefined){break s;}q.Tokens=(new AC($stringToBytes(y)));b.Context.Tip.AppendChild(q);$s=-1;return;case 30:z=a.FirstChild;aa=c.domChild(z,365829);if(AD.nil===aa){$s=-1;return;}ab=aa.FirstChild.FirstChild.FirstChild;while(true){if(!(!(AD.nil===ab))){break;}ac=c.domAttrValue(ab,"align");ad=ac;if(ad===("left")){w=$append(w,1);}else if(ad===("center")){w=$append(w,2);}else if(ad===("right")){w=$append(w,3);}else{w=$append(w,0);}ab=ab.NextSibling;}q.TableAligns=w;q.Tokens=AC.nil;b.Context.Tip.AppendChild(q);b.Context.Tip=q;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$r=c.genASTContenteditable(aa,b);$s=32;case 32:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$s=-1;return;case 11:q.Type=1;b.Context.Tip.AppendChild(q);b.Context.Tip=q;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=28;continue;case 12:ae=c.domText(a);if(c.parentIs(a,new AO([365829]))){$s=33;continue;}$s=34;continue;case 33:af=B.TrimSpace(ae);$s=35;case 35:if($c){$c=false;af=af.$blk();}if(af&&af.$blk!==undefined){break s;}q.Tokens=(new AC($stringToBytes(af)));while(true){if(!(A.HasPrefix(q.Tokens,(new AC($stringToBytes("#")))))){break;}q.Tokens=A.TrimPrefix(q.Tokens,(new AC($stringToBytes("#"))));}b.Context.Tip.AppendChild(q);$s=-1;return;case 34:q.Type=2;ag=$substring(c.domAttrValue(a,"data-subtype"),1);ah=N.Atoi(ag);q.HeadingLevel=ah[0];b.Context.Tip.AppendChild(q);b.Context.Tip=q;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=28;continue;case 13:ai=B.TrimSpace(c.domText(a));$s=36;case 36:if($c){$c=false;ai=ai.$blk();}if(ai&&ai.$blk!==undefined){break s;}aj=ai;if("\xE2\x80\xB8"===aj){q.Type=16;q.Tokens=(new AC($stringToBytes(aj)));b.Context.Tip.AppendChild(q);}q.Type=5;q.AppendChild(new D.Node.ptr("","","",6,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(">"))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));b.Context.Tip.AppendChild(q);b.Context.Tip=q;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=28;continue;case 14:q.Type=7;ak=c.domAttrValue(a,"data-marker");q.ListData=new D.ListData.ptr(0,false,0,0,0,0,0,false,AC.nil,0);al=c.domAttrValue(a,"data-subtype");if("u"===al){q.ListData.Typ=0;}else if("o"===al){q.ListData.Typ=1;}else if("t"===al){q.ListData.Typ=3;}q.ListData.Marker=(new AC($stringToBytes(ak)));b.Context.Tip.AppendChild(q);b.Context.Tip=q;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=28;continue;case 15:am=c.domAttrValue(a,"data-marker");if(!((7===b.Context.Tip.Type))){an=new D.Node.ptr("","","",0,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false);an.Type=7;an.ListData=new D.ListData.ptr(0,false,0,0,0,0,0,false,AC.nil,0);ao=c.domAttrValue(a,"data-subtype");if("u"===ao){an.ListData.Typ=0;an.ListData.BulletChar=42;}else if("o"===ao){an.ListData.Typ=1;ap=N.Atoi($substring(am,0,(am.length-1>>0)));an.ListData.Num=ap[0];an.ListData.Delimiter=46;}else if("t"===ao){an.ListData.Typ=3;an.ListData.BulletChar=42;}b.Context.Tip.AppendChild(an);b.Context.Tip=an;}q.Type=8;q.ListData=new D.ListData.ptr(0,false,0,0,0,0,0,false,AC.nil,0);aq=c.domAttrValue(a,"data-subtype");if("u"===aq){q.ListData.Typ=0;q.ListData.BulletChar=42;}else if("o"===aq){q.ListData.Typ=1;ar=N.Atoi($substring(am,0,(am.length-1>>0)));q.ListData.Num=ar[0];q.ListData.Delimiter=46;}else if("t"===aq){q.ListData.Typ=3;q.ListData.BulletChar=42;}q.ListData.Marker=(new AC($stringToBytes(am)));b.Context.Tip.AppendChild(q);b.Context.Tip=q;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=28;continue;case 16:q.Type=495;b.Context.Tip.AppendChild(q);b.Context.Tip=q;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=28;continue;case 17:q.Type=475;b.Context.Tip.AppendChild(q);q.AppendChild(new D.Node.ptr("","","",476,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));as=c.domAttrValue(a,"data-sb-layout");q.AppendChild(new D.Node.ptr("","","",477,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(as))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));b.Context.Tip=q;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=28;continue;case 18:q.Type=300;q.AppendChild(new D.Node.ptr("","","",301,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));at=c.domAttrValue(a,"data-content");at=E.UnescapeHTMLStr(at);q.AppendChild(new D.Node.ptr("","","",302,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,I.StrToBytes(at),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));q.AppendChild(new D.Node.ptr("","","",303,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));b.Context.Tip.AppendChild(q);$s=-1;return;case 19:q.Type=11;q.IsFencedCodeBlock=true;q.AppendChild(new D.Node.ptr("","","",12,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,I.StrToBytes("```"),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));au=c.domAttrValue(a,"data-subtype");if(!(""===au)){q.AppendChild(new D.Node.ptr("","","",14,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,I.StrToBytes(au),AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));av=c.domAttrValue(a,"data-content");q.AppendChild(new D.Node.ptr("","","",15,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,I.StrToBytes(av),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));q.AppendChild(new D.Node.ptr("","","",13,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,I.StrToBytes("```"),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));b.Context.Tip.AppendChild(q);$s=-1;return;}b.Context.Tip.AppendChild(q);b.Context.Tip=q;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=28;continue;case 20:q.Type=9;b.Context.Tip.AppendChild(q);b.Context.Tip=q;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=28;continue;case 21:q.Type=425;b.Context.Tip.AppendChild(q);b.Context.Tip=q;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=28;continue;case 22:q.Type=4;b.Context.Tip.AppendChild(q);$s=-1;return;case 23:q.Type=500;a=c.domChild(a.FirstChild,195590);aw=c.domHTML(a);$s=37;case 37:if($c){$c=false;aw=aw.$blk();}if(aw&&aw.$blk!==undefined){break s;}q.Tokens=aw;b.Context.Tip.AppendChild(q);$s=-1;return;case 24:q.Type=535;a=c.domChild(a.FirstChild,195590);ax=c.domHTML(a);$s=38;case 38:if($c){$c=false;ax=ax.$blk();}if(ax&&ax.$blk!==undefined){break s;}q.Tokens=ax;b.Context.Tip.AppendChild(q);$s=-1;return;case 25:q.Type=510;a=c.domChild(a.FirstChild,192773);ay=c.domHTML(a);$s=39;case 39:if($c){$c=false;ay=ay.$blk();}if(ay&&ay.$blk!==undefined){break s;}q.Tokens=ay;b.Context.Tip.AppendChild(q);$s=-1;return;case 26:q.Type=505;a=c.domChild(a.FirstChild,70917);az=c.domHTML(a);$s=40;case 40:if($c){$c=false;az=az.$blk();}if(az&&az.$blk!==undefined){break s;}q.Tokens=az;b.Context.Tip.AppendChild(q);$s=-1;return;case 27:ba=a.DataAtom;if(ba===(0)){$s=42;continue;}if((ba===(2817))||(ba===(378116))||(ba===(449798))||(ba===(28162))||(ba===(47363))||(ba===(46596))||(ba===(9473))||(ba===(421123))||(ba===(461571))||(ba===(40708))){$s=43;continue;}$s=44;continue;case 42:q.Type=16;q.Tokens=I.StrToBytes(a.Data);if(0===b.Context.Tip.Type){bb=new D.Node.ptr("","","",1,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false);b.Context.Tip.AppendChild(bb);b.Context.Tip=bb;}$r=c.genASTContenteditable(a,b);$s=45;case 45:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$s=-1;return;case 43:$r=c.genASTContenteditable(a,b);$s=46;case 46:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$s=-1;return;case 44:case 41:if((8===b.Context.Tip.Type)&&(281349===a.DataAtom)){q.Type=100;q.TaskListItemChecked=c.hasAttr(a,"checked");b.Context.Tip.AppendChild(q);$s=-1;return;}q.Type=10;bc=c.domHTML(a);$s=47;case 47:if($c){$c=false;bc=bc.$blk();}if(bc&&bc.$blk!==undefined){break s;}q.Tokens=bc;b.Context.Tip.AppendChild(q);$s=-1;return;case 28:case 8:bd=a.FirstChild;case 48:if(!(!(bd===AD.nil))){$s=49;continue;}$r=c.genASTByBlockDOM(bd,b);$s=50;case 50:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}bd=bd.NextSibling;$s=48;continue;case 49:be=o;if(be===(475)){q.AppendChild(new D.Node.ptr("","","",478,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}else if(be===(11)){q.AppendChild(new D.Node.ptr("","","",13,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,I.StrToBytes("```"),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}$s=-1;return;}return;}}catch(err){$err=err;$s=-1;}finally{$callDeferred($deferred,$err);if($curGoroutine.asleep){if($f===undefined){$f={$blk:P.ptr.prototype.genASTByBlockDOM};}$f.a=a;$f.aa=aa;$f.ab=ab;$f.ac=ac;$f.ad=ad;$f.ae=ae;$f.af=af;$f.ag=ag;$f.ah=ah;$f.ai=ai;$f.aj=aj;$f.ak=ak;$f.al=al;$f.am=am;$f.an=an;$f.ao=ao;$f.ap=ap;$f.aq=aq;$f.ar=ar;$f.as=as;$f.at=at;$f.au=au;$f.av=av;$f.aw=aw;$f.ax=ax;$f.ay=ay;$f.az=az;$f.b=b;$f.ba=ba;$f.bb=bb;$f.bc=bc;$f.bd=bd;$f.be=be;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.k=k;$f.l=l;$f.m=m;$f.n=n;$f.o=o;$f.p=p;$f.q=q;$f.r=r;$f.s=s;$f.t=t;$f.u=u;$f.v=v;$f.w=w;$f.x=x;$f.y=y;$f.z=z;$f.$s=$s;$f.$deferred=$deferred;$f.$r=$r;return $f;}}};P.prototype.genASTByBlockDOM=function(a,b){return this.$val.genASTByBlockDOM(a,b);};P.ptr.prototype.genASTContenteditable=function(a,b){var a,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,bh,bi,bj,bk,bl,bm,bn,bo,bp,bq,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,$deferred,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;aa=$f.aa;ab=$f.ab;ac=$f.ac;ad=$f.ad;ae=$f.ae;af=$f.af;ag=$f.ag;ah=$f.ah;ai=$f.ai;aj=$f.aj;ak=$f.ak;al=$f.al;am=$f.am;an=$f.an;ao=$f.ao;ap=$f.ap;aq=$f.aq;ar=$f.ar;as=$f.as;at=$f.at;au=$f.au;av=$f.av;aw=$f.aw;ax=$f.ax;ay=$f.ay;az=$f.az;b=$f.b;ba=$f.ba;bb=$f.bb;bc=$f.bc;bd=$f.bd;be=$f.be;bf=$f.bf;bg=$f.bg;bh=$f.bh;bi=$f.bi;bj=$f.bj;bk=$f.bk;bl=$f.bl;bm=$f.bm;bn=$f.bn;bo=$f.bo;bp=$f.bp;bq=$f.bq;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;k=$f.k;l=$f.l;m=$f.m;n=$f.n;o=$f.o;p=$f.p;q=$f.q;r=$f.r;s=$f.s;t=$f.t;u=$f.u;v=$f.v;w=$f.w;x=$f.x;y=$f.y;z=$f.z;$s=$f.$s;$deferred=$f.$deferred;$r=$f.$r;}var $err=null;try{s:while(true){switch($s){case 0:$deferred=[];$deferred.index=$curGoroutine.deferStack.length;$curGoroutine.deferStack.push($deferred);c=this;if(11===b.Context.Tip.Type){$s=-1;return;}d=c.domAttrValue(a,"class");if("svg"===d){$s=-1;return;}e=a.Data;f=new D.Node.ptr("","","",16,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,I.StrToBytes(e),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false);g=a.DataAtom;if(g===(0)){$s=2;continue;}if(g===(208901)){$s=3;continue;}if(g===(9989)){$s=4;continue;}if(g===(52226)){$s=5;continue;}if((g===(87554))||(g===(37378))){$s=6;continue;}if(g===(378116)){$s=7;continue;}if(g===(40708)){$s=8;continue;}if(g===(421123)){$s=9;continue;}if(g===(461571)){$s=10;continue;}if(g===(2817)){$s=11;continue;}if(g===(47363)){$s=12;continue;}if(g===(514)){$s=13;continue;}if((g===(28162))||(g===(1537))){$s=14;continue;}if((g===(449798))||(g===(257))){$s=15;continue;}if((g===(283139))||(g===(9473))||(g===(53766))){$s=16;continue;}if(g===(46596)){$s=17;continue;}if(g===(198403)){$s=18;continue;}$s=19;continue;case 2:if(""===e){$s=-1;return;}if(33===b.Context.Tip.Type){f.Type=40;}else if(2===b.Context.Tip.Type){e=B.ReplaceAll(e,"\n","");f.Tokens=I.StrToBytes(e);}else if(22===b.Context.Tip.Type){e=B.ReplaceAll(e,"**","");e=B.ReplaceAll(e,"*\xE2\x80\xB8","\xE2\x80\xB8");e=B.ReplaceAll(e,"\xE2\x80\xB8*","\xE2\x80\xB8");f.Tokens=I.StrToBytes(e);}if(c.parentIs(a,new AO([365829]))){if(AD.nil===a.NextSibling||((514===a.NextSibling.DataAtom)&&B.HasPrefix(e,"\n"))){e=B.ReplaceAll(e,"\n","");}f.Tokens=I.StrToBytes(B.ReplaceAll(e,"\n","<br />"));h=L.SplitWithoutBackslashEscape(f.Tokens,124);f.Tokens=AC.nil;i=h;j=0;while(true){if(!(j<i.$length)){break;}k=j;l=((j<0||j>=i.$length)?($throwRuntimeError("index out of range"),undefined):i.$array[i.$offset+j]);f.Tokens=$appendSlice(f.Tokens,l);if(k<(h.$length-1>>0)){f.Tokens=$appendSlice(f.Tokens,(new AC($stringToBytes("\\|"))));}j++;}}if((27===b.Context.Tip.Type)||(304===b.Context.Tip.Type)){if(!(AE.nil===b.Context.Tip.Previous)&&(b.Context.Tip.Type===b.Context.Tip.Previous.Type)){b.Context.Tip.FirstChild.Next.Tokens=I.StrToBytes(e);}else{b.Context.Tip.FirstChild.Next.Tokens=$appendSlice(b.Context.Tip.FirstChild.Next.Tokens,I.StrToBytes(e));}$s=-1;return;}if(515===b.Context.Tip.Type){f.Tokens=A.ReplaceAll(f.Tokens,(new AC($stringToBytes("\\\\"))),(new AC($stringToBytes("\\"))));f.Tokens=A.ReplaceAll(f.Tokens,(new AC($stringToBytes("\\"))),(new AC($stringToBytes("\\\\"))));}b.Context.Tip.AppendChild(f);$s=19;continue;case 3:if(c.parentIs(a.Parent.Parent,new AO([365829]))){$s=20;continue;}$s=21;continue;case 20:m=c.domText(a.Parent.Parent);m=B.ReplaceAll(m,"\xE2\x80\xB8","");n=B.TrimSpace(m);$s=22;case 22:if($c){$c=false;n=n.$blk();}if(n&&n.$blk!==undefined){break s;}f.Tokens=(new AC($stringToBytes(n)));b.Context.Tip.AppendChild(f);$s=-1;return;case 21:f.Type=107;b.Context.Tip.AppendChild(f);b.Context.Tip=f;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=19;continue;case 4:$s=19;continue;case 5:f.Type=108;b.Context.Tip.AppendChild(f);b.Context.Tip=f;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=19;continue;case 6:f.Type=109;o=c.domAttrValue(a,"align");p=0;q=o;if(q===("left")){p=1;}else if(q===("center")){p=2;}else if(q===("right")){p=3;}else{p=0;}f.TableCellAlign=p;b.Context.Tip.AppendChild(f);b.Context.Tip=f;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=19;continue;case 7:r=c.isEmptyText(a);$s=25;case 25:if($c){$c=false;r=r.$blk();}if(r&&r.$blk!==undefined){break s;}if(r){$s=23;continue;}$s=24;continue;case 23:$s=-1;return;case 24:f.Type=27;f.AppendChild(new D.Node.ptr("","","",28,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));f.AppendChild(new D.Node.ptr("","","",29,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));b.Context.Tip.AppendChild(f);b.Context.Tip=f;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=19;continue;case 8:s=c.domAttrValue(a,"data-type");if("tag"===s){$s=26;continue;}if("inline-math"===s){$s=27;continue;}if("a"===s){$s=28;continue;}if("block-ref"===s){$s=29;continue;}if("file-annotation-ref"===s){$s=30;continue;}if("img"===s){$s=31;continue;}if("backslash"===s){$s=32;continue;}$s=33;continue;case 26:if(AD.nil===a.FirstChild){$s=-1;return;}f.Type=460;f.AppendChild(new D.Node.ptr("","","",461,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));a.FirstChild.Data=B.ReplaceAll(a.FirstChild.Data,"\xE2\x80\x8B","");if(B.HasPrefix(a.FirstChild.Data," ")&&AD.nil===a.FirstChild.PrevSibling){$s=34;continue;}$s=35;continue;case 34:t=B.TrimLeft(a.FirstChild.Data," ");$s=36;case 36:if($c){$c=false;t=t.$blk();}if(t&&t.$blk!==undefined){break s;}a.FirstChild.Data=t;f.InsertBefore(new D.Node.ptr("","","",16,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(" "))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));case 35:if(B.HasSuffix(a.FirstChild.Data," ")&&AD.nil===a.FirstChild.NextSibling){$s=37;continue;}$s=38;continue;case 37:u=B.TrimRight(a.FirstChild.Data," ");$s=39;case 39:if($c){$c=false;u=u.$blk();}if(u&&u.$blk!==undefined){break s;}a.FirstChild.Data=u;a.InsertAfter(new E.Node.ptr(AD.nil,AD.nil,AD.nil,AD.nil,AD.nil,1,0," ","",AQ.nil));case 38:if(B.HasSuffix(a.FirstChild.Data,"\n")&&AD.nil===a.FirstChild.NextSibling){$s=40;continue;}$s=41;continue;case 40:v=B.TrimRight(a.FirstChild.Data,"\n");$s=42;case 42:if($c){$c=false;v=v.$blk();}if(v&&v.$blk!==undefined){break s;}a.FirstChild.Data=v;a.InsertAfter(new E.Node.ptr(AD.nil,AD.nil,AD.nil,AD.nil,AD.nil,1,0,"\n","",AQ.nil));case 41:b.Context.Tip.AppendChild(f);b.Context.Tip=f;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=33;continue;case 27:f.Type=304;f.AppendChild(new D.Node.ptr("","","",305,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));e=c.domAttrValue(a,"data-content");if(""===e){$s=-1;return;}f.AppendChild(new D.Node.ptr("","","",306,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,I.StrToBytes(e),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));f.AppendChild(new D.Node.ptr("","","",307,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));b.Context.Tip.AppendChild(f);$s=-1;return;case 28:if(AD.nil===a.FirstChild){$s=-1;return;}if(33===b.Context.Tip.Type){$s=1;continue;}f.Type=33;f.AppendChild(new D.Node.ptr("","","",36,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));b.Context.Tip.AppendChild(f);b.Context.Tip=f;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=33;continue;case 29:f.Type=430;f.AppendChild(new D.Node.ptr("","","",38,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));f.AppendChild(new D.Node.ptr("","","",38,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));w=c.domAttrValue(a,"data-id");f.AppendChild(new D.Node.ptr("","","",431,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,I.StrToBytes(w),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));x="";if(!(AD.nil===a.FirstChild)){x=c.domText(a.FirstChild);}if(""===x){$s=-1;return;}if(x==="\xE2\x80\xB8"){b.Context.Tip.AppendChild(new D.Node.ptr("","","",16,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,I.CaretTokens,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));$s=-1;return;}f.AppendChild(new D.Node.ptr("","","",432,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));y=AE.nil;z=c.domAttrValue(a,"data-subtype");if("s"===z||""===z){y=new D.Node.ptr("","","",433,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,I.StrToBytes(x),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false);}else{y=new D.Node.ptr("","","",434,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,I.StrToBytes(x),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false);}f.AppendChild(y);f.AppendChild(new D.Node.ptr("","","",39,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));f.AppendChild(new D.Node.ptr("","","",39,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));b.Context.Tip.AppendChild(f);$s=-1;return;case 30:f.Type=540;f.AppendChild(new D.Node.ptr("","","",47,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));f.AppendChild(new D.Node.ptr("","","",47,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));aa=c.domAttrValue(a,"data-id");f.AppendChild(new D.Node.ptr("","","",541,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,I.StrToBytes(aa),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));ab="";if(!(AD.nil===a.FirstChild)){ab=c.domText(a.FirstChild);}if(""===ab){$s=-1;return;}if(ab==="\xE2\x80\xB8"){b.Context.Tip.AppendChild(new D.Node.ptr("","","",16,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,I.CaretTokens,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));$s=-1;return;}f.AppendChild(new D.Node.ptr("","","",542,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));ac=new D.Node.ptr("","","",543,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,I.StrToBytes(ab),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false);f.AppendChild(ac);f.AppendChild(new D.Node.ptr("","","",48,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));f.AppendChild(new D.Node.ptr("","","",48,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));b.Context.Tip.AppendChild(f);$s=-1;return;case 31:ad=c.domChild(a,198403);f.Type=34;f.AppendChild(new D.Node.ptr("","","",35,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));f.AppendChild(new D.Node.ptr("","","",36,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));ae=c.domAttrValue(ad,"alt");f.AppendChild(new D.Node.ptr("","","",40,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,I.StrToBytes(ae),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));f.AppendChild(new D.Node.ptr("","","",37,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));f.AppendChild(new D.Node.ptr("","","",38,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));af=c.domAttrValue(ad,"data-src");f.AppendChild(new D.Node.ptr("","","",41,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,I.StrToBytes(af),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));ag=c.domAttrValue(ad,"title");if(!(""===ag)){f.AppendChild(new D.Node.ptr("","","",43,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));f.AppendChild(new D.Node.ptr("","","",42,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,I.StrToBytes(ag),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}f.AppendChild(new D.Node.ptr("","","",39,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));b.Context.Tip.AppendChild(f);$r=c.setSpanIAL(ad,b.Context.Tip.LastChild);$s=43;case 43:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$s=-1;return;case 32:f.Type=400;if(AD.nil===a.FirstChild){$s=-1;return;}if(AD.nil===a.FirstChild.NextSibling&&(1===a.FirstChild.Type)){f.AppendChild(new D.Node.ptr("","","",16,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,I.StrToBytes(a.FirstChild.Data),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));b.Context.Tip.AppendChild(f);$s=-1;return;}if(!(AD.nil===a.FirstChild.NextSibling)){ah=a.FirstChild.NextSibling.Data;ah=B.ReplaceAll(ah,"\\\\","\\");f.AppendChild(new D.Node.ptr("","","",401,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,I.StrToBytes(ah),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}b.Context.Tip.AppendChild(f);$s=-1;return;case 33:$s=19;continue;case 9:ai=c.isEmptyText(a);$s=46;case 46:if($c){$c=false;ai=ai.$blk();}if(ai&&ai.$blk!==undefined){break s;}if(ai){$s=44;continue;}$s=45;continue;case 44:$s=-1;return;case 45:f.Type=490;f.AppendChild(new D.Node.ptr("","","",491,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));b.Context.Tip.AppendChild(f);b.Context.Tip=f;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=19;continue;case 10:aj=c.isEmptyText(a);$s=49;case 49:if($c){$c=false;aj=aj.$blk();}if(aj&&aj.$blk!==undefined){break s;}if(aj){$s=47;continue;}$s=48;continue;case 47:$s=-1;return;case 48:f.Type=485;f.AppendChild(new D.Node.ptr("","","",486,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));b.Context.Tip.AppendChild(f);b.Context.Tip=f;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=19;continue;case 11:ak=c.isEmptyText(a);$s=52;case 52:if($c){$c=false;ak=ak.$blk();}if(ak&&ak.$blk!==undefined){break s;}if(ak){$s=50;continue;}$s=51;continue;case 50:$s=-1;return;case 51:f.Type=520;f.AppendChild(new D.Node.ptr("","","",521,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));b.Context.Tip.AppendChild(f);b.Context.Tip=f;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=19;continue;case 12:al=c.isEmptyText(a);$s=55;case 55:if($c){$c=false;al=al.$blk();}if(al&&al.$blk!==undefined){break s;}if(al){$s=53;continue;}$s=54;continue;case 53:$s=-1;return;case 54:f.Type=515;f.AppendChild(new D.Node.ptr("","","",516,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));b.Context.Tip.AppendChild(f);b.Context.Tip=f;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=19;continue;case 13:if(2===b.Context.Tip.Type){$s=-1;return;}if(!(AD.nil===a.PrevSibling)&&"\n"===a.PrevSibling.Data&&c.parentIs(a,new AO([365829]))){$s=-1;return;}f.Type=525;b.Context.Tip.AppendChild(f);$s=-1;return;case 14:if(AD.nil===a.FirstChild||(514===a.FirstChild.DataAtom)){$s=-1;return;}if(c.startsWithNewline(a.FirstChild)){$s=56;continue;}$s=57;continue;case 56:am=B.TrimLeft(a.FirstChild.Data,"\xE2\x80\x8B\n");$s=58;case 58:if($c){$c=false;am=am.$blk();}if(am&&am.$blk!==undefined){break s;}a.FirstChild.Data=am;b.Context.Tip.AppendChild(new D.Node.ptr("","","",16,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes("\xE2\x80\x8B\n"))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));case 57:an=B.TrimSpace(c.domText(a));$s=59;case 59:if($c){$c=false;an=an.$blk();}if(an&&an.$blk!==undefined){break s;}ao=an;ap=c.isEmptyText(a);$s=62;case 62:if($c){$c=false;ap=ap.$blk();}if(ap&&ap.$blk!==undefined){break s;}if(ap){$s=60;continue;}$s=61;continue;case 60:$s=-1;return;case 61:if("\xE2\x80\xB8"===ao){f.Tokens=I.CaretTokens;b.Context.Tip.AppendChild(f);$s=-1;return;}f.Type=17;aq=c.domAttrValue(a,"data-marker");if(""===aq){aq="*";}if("_"===aq){f.AppendChild(new D.Node.ptr("","","",20,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(aq))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}else{f.AppendChild(new D.Node.ptr("","","",18,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(aq))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}b.Context.Tip.AppendChild(f);if(!(AD.nil===a.FirstChild)&&"\xE2\x80\xB8"===a.FirstChild.Data&&!(AD.nil===a.LastChild)&&"br"===a.LastChild.Data){f.AppendChild(new D.Node.ptr("","","",16,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,I.CaretTokens,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));if("_"===aq){f.AppendChild(new D.Node.ptr("","","",21,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(aq))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}else{f.AppendChild(new D.Node.ptr("","","",19,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(aq))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}$s=-1;return;}a.FirstChild.Data=B.ReplaceAll(a.FirstChild.Data,"\xE2\x80\x8B","");$r=Z(a,f);$s=63;case 63:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}c.removeInnerMarker(a,"__");b.Context.Tip=f;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=19;continue;case 15:if(AD.nil===a.FirstChild||(514===a.FirstChild.DataAtom)){$s=-1;return;}if(!(AE.nil===b.Context.Tip.LastChild)){if(A.HasSuffix(b.Context.Tip.LastChild.Tokens,(new AC($stringToBytes("\\\xE2\x80\xB8"))))){b.Context.Tip.LastChild.Tokens=A.ReplaceAll(b.Context.Tip.LastChild.Tokens,(new AC($stringToBytes("\\\xE2\x80\xB8"))),(new AC($stringToBytes("\\\\\xE2\x80\xB8"))));}if(A.HasSuffix(b.Context.Tip.LastChild.Tokens,(new AC($stringToBytes("\\"))))){b.Context.Tip.LastChild.Tokens=A.ReplaceAll(b.Context.Tip.LastChild.Tokens,(new AC($stringToBytes("\\"))),(new AC($stringToBytes("\\\\"))));}}if(c.startsWithNewline(a.FirstChild)){$s=64;continue;}$s=65;continue;case 64:ar=B.TrimLeft(a.FirstChild.Data,"\xE2\x80\x8B\n");$s=66;case 66:if($c){$c=false;ar=ar.$blk();}if(ar&&ar.$blk!==undefined){break s;}a.FirstChild.Data=ar;b.Context.Tip.AppendChild(new D.Node.ptr("","","",16,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes("\xE2\x80\x8B\n"))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));case 65:as=B.TrimSpace(c.domText(a));$s=67;case 67:if($c){$c=false;as=as.$blk();}if(as&&as.$blk!==undefined){break s;}at=as;au=c.isEmptyText(a);$s=70;case 70:if($c){$c=false;au=au.$blk();}if(au&&au.$blk!==undefined){break s;}if(au){$s=68;continue;}$s=69;continue;case 68:$s=-1;return;case 69:if("\xE2\x80\xB8"===at){f.Tokens=I.CaretTokens;b.Context.Tip.AppendChild(f);$s=-1;return;}f.Type=22;av=c.domAttrValue(a,"data-marker");if(""===av){av="**";}if("__"===av){f.AppendChild(new D.Node.ptr("","","",25,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(av))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}else{f.AppendChild(new D.Node.ptr("","","",23,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(av))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}b.Context.Tip.AppendChild(f);if(!(AD.nil===a.FirstChild)&&"\xE2\x80\xB8"===a.FirstChild.Data&&!(AD.nil===a.LastChild)&&"br"===a.LastChild.Data){f.AppendChild(new D.Node.ptr("","","",16,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,I.CaretTokens,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));if("__"===av){f.AppendChild(new D.Node.ptr("","","",26,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(av))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}else{f.AppendChild(new D.Node.ptr("","","",24,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(av))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}$s=-1;return;}$r=Z(a,f);$s=71;case 71:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}c.removeInnerMarker(a,"**");$r=c.setSpanIAL(a,f);$s=72;case 72:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}b.Context.Tip=f;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=19;continue;case 16:if(AD.nil===a.FirstChild||(514===a.FirstChild.DataAtom)){$s=-1;return;}if(c.startsWithNewline(a.FirstChild)){$s=73;continue;}$s=74;continue;case 73:aw=B.TrimLeft(a.FirstChild.Data,"\xE2\x80\x8B\n");$s=75;case 75:if($c){$c=false;aw=aw.$blk();}if(aw&&aw.$blk!==undefined){break s;}a.FirstChild.Data=aw;b.Context.Tip.AppendChild(new D.Node.ptr("","","",16,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes("\xE2\x80\x8B\n"))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));case 74:ax=B.TrimSpace(c.domText(a));$s=76;case 76:if($c){$c=false;ax=ax.$blk();}if(ax&&ax.$blk!==undefined){break s;}ay=ax;az=c.isEmptyText(a);$s=79;case 79:if($c){$c=false;az=az.$blk();}if(az&&az.$blk!==undefined){break s;}if(az){$s=77;continue;}$s=78;continue;case 77:$s=-1;return;case 78:if("\xE2\x80\xB8"===ay){f.Tokens=I.CaretTokens;b.Context.Tip.AppendChild(f);$s=-1;return;}f.Type=101;ba=c.domAttrValue(a,"data-marker");if("~"===ba){f.AppendChild(new D.Node.ptr("","","",102,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(ba))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}else{f.AppendChild(new D.Node.ptr("","","",104,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(ba))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}b.Context.Tip.AppendChild(f);if(!(AD.nil===a.FirstChild)&&"\xE2\x80\xB8"===a.FirstChild.Data&&!(AD.nil===a.LastChild)&&"br"===a.LastChild.Data){f.AppendChild(new D.Node.ptr("","","",16,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,I.CaretTokens,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));if("~"===ba){f.AppendChild(new D.Node.ptr("","","",103,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(ba))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}else{f.AppendChild(new D.Node.ptr("","","",105,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(ba))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}$s=-1;return;}$r=Z(a,f);$s=80;case 80:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}c.removeInnerMarker(a,"~~");b.Context.Tip=f;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=19;continue;case 17:if(AD.nil===a.FirstChild||(514===a.FirstChild.DataAtom)){$s=-1;return;}if(c.startsWithNewline(a.FirstChild)){$s=81;continue;}$s=82;continue;case 81:bb=B.TrimLeft(a.FirstChild.Data,"\xE2\x80\x8B\n");$s=83;case 83:if($c){$c=false;bb=bb.$blk();}if(bb&&bb.$blk!==undefined){break s;}a.FirstChild.Data=bb;b.Context.Tip.AppendChild(new D.Node.ptr("","","",16,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes("\xE2\x80\x8B\n"))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));case 82:bc=B.TrimSpace(c.domText(a));$s=84;case 84:if($c){$c=false;bc=bc.$blk();}if(bc&&bc.$blk!==undefined){break s;}bd=bc;be=c.isEmptyText(a);$s=87;case 87:if($c){$c=false;be=be.$blk();}if(be&&be.$blk!==undefined){break s;}if(be){$s=85;continue;}$s=86;continue;case 85:$s=-1;return;case 86:if("\xE2\x80\xB8"===bd){f.Tokens=I.CaretTokens;b.Context.Tip.AppendChild(f);$s=-1;return;}f.Type=450;bf=c.domAttrValue(a,"data-marker");if("="===bf){f.AppendChild(new D.Node.ptr("","","",451,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(bf))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}else{f.AppendChild(new D.Node.ptr("","","",453,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(bf))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}b.Context.Tip.AppendChild(f);if(!(AD.nil===a.FirstChild)&&"\xE2\x80\xB8"===a.FirstChild.Data&&!(AD.nil===a.LastChild)&&"br"===a.LastChild.Data){f.AppendChild(new D.Node.ptr("","","",16,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,I.CaretTokens,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));if("="===bf){f.AppendChild(new D.Node.ptr("","","",452,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(bf))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}else{f.AppendChild(new D.Node.ptr("","","",454,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(bf))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}$s=-1;return;}$r=Z(a,f);$s=88;case 88:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}c.removeInnerMarker(a,"==");b.Context.Tip=f;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=19;continue;case 18:if("emoji"===d){bg=c.domAttrValue(a,"alt");f.Type=200;bh=new D.Node.ptr("","","",202,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,b.EmojiImgTokens(bg,c.domAttrValue(a,"src")),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false);bh.AppendChild(new D.Node.ptr("","","",203,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(":"+bg+":"))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));f.AppendChild(bh);b.Context.Tip.AppendChild(f);$s=-1;return;}case 19:case 1:bi=a.FirstChild;case 89:if(!(!(bi===AD.nil))){$s=90;continue;}$r=c.genASTContenteditable(bi,b);$s=91;case 91:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}bi=bi.NextSibling;$s=89;continue;case 90:bj=a.DataAtom;if(bj===(378116)){f.AppendChild(new D.Node.ptr("","","",30,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}else if(bj===(40708)){bk=c.domAttrValue(a,"data-type");if("tag"===bk){f.AppendChild(new D.Node.ptr("","","",462,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}else if("a"===bk){f.AppendChild(new D.Node.ptr("","","",37,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));f.AppendChild(new D.Node.ptr("","","",38,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));bl=c.domAttrValue(a,"data-href");if(!(""===c.RenderOptions.LinkBase)){bl=B.ReplaceAll(bl,c.RenderOptions.LinkBase,"");}if(!(""===c.RenderOptions.LinkPrefix)){bl=B.ReplaceAll(bl,c.RenderOptions.LinkPrefix,"");}f.AppendChild(new D.Node.ptr("","","",41,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(bl))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));bm=c.domAttrValue(a,"data-title");if(!(""===bm)){f.AppendChild(new D.Node.ptr("","","",43,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));f.AppendChild(new D.Node.ptr("","","",42,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(bm))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}f.AppendChild(new D.Node.ptr("","","",39,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}else if("block-ref"===bk){f.AppendChild(new D.Node.ptr("","","",39,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));f.AppendChild(new D.Node.ptr("","","",39,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}}else if(bj===(421123)){f.AppendChild(new D.Node.ptr("","","",492,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}else if(bj===(461571)){f.AppendChild(new D.Node.ptr("","","",487,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}else if(bj===(2817)){f.AppendChild(new D.Node.ptr("","","",522,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}else if(bj===(47363)){f.AppendChild(new D.Node.ptr("","","",517,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}else if((bj===(28162))||(bj===(1537))){bn=c.domAttrValue(a,"data-marker");if(""===bn){bn="*";}if("_"===bn){f.AppendChild(new D.Node.ptr("","","",21,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(bn))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}else{f.AppendChild(new D.Node.ptr("","","",19,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(bn))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}}else if((bj===(449798))||(bj===(257))){bo=c.domAttrValue(a,"data-marker");if(""===bo){bo="**";}if("__"===bo){f.AppendChild(new D.Node.ptr("","","",26,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(bo))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}else{f.AppendChild(new D.Node.ptr("","","",24,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(bo))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}}else if((bj===(283139))||(bj===(9473))||(bj===(53766))){bp=c.domAttrValue(a,"data-marker");if("~"===bp){f.AppendChild(new D.Node.ptr("","","",103,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(bp))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}else{f.AppendChild(new D.Node.ptr("","","",105,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(bp))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}}else if(bj===(46596)){bq=c.domAttrValue(a,"data-marker");if("="===bq){f.AppendChild(new D.Node.ptr("","","",452,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(bq))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}else{f.AppendChild(new D.Node.ptr("","","",454,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(bq))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}}$s=-1;return;}return;}}catch(err){$err=err;$s=-1;}finally{$callDeferred($deferred,$err);if($curGoroutine.asleep){if($f===undefined){$f={$blk:P.ptr.prototype.genASTContenteditable};}$f.a=a;$f.aa=aa;$f.ab=ab;$f.ac=ac;$f.ad=ad;$f.ae=ae;$f.af=af;$f.ag=ag;$f.ah=ah;$f.ai=ai;$f.aj=aj;$f.ak=ak;$f.al=al;$f.am=am;$f.an=an;$f.ao=ao;$f.ap=ap;$f.aq=aq;$f.ar=ar;$f.as=as;$f.at=at;$f.au=au;$f.av=av;$f.aw=aw;$f.ax=ax;$f.ay=ay;$f.az=az;$f.b=b;$f.ba=ba;$f.bb=bb;$f.bc=bc;$f.bd=bd;$f.be=be;$f.bf=bf;$f.bg=bg;$f.bh=bh;$f.bi=bi;$f.bj=bj;$f.bk=bk;$f.bl=bl;$f.bm=bm;$f.bn=bn;$f.bo=bo;$f.bp=bp;$f.bq=bq;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.k=k;$f.l=l;$f.m=m;$f.n=n;$f.o=o;$f.p=p;$f.q=q;$f.r=r;$f.s=s;$f.t=t;$f.u=u;$f.v=v;$f.w=w;$f.x=x;$f.y=y;$f.z=z;$f.$s=$s;$f.$deferred=$deferred;$f.$r=$r;return $f;}}};P.prototype.genASTContenteditable=function(a,b){return this.$val.genASTContenteditable(a,b);};P.ptr.prototype.setSpanIAL=function(a,b){var a,b,c,d,e,f,g,h,i,j,k,l,m,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;k=$f.k;l=$f.l;m=$f.m;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=this;d=false;e=c.domAttrValue(a,"style");if(!(""===e)){$s=1;continue;}$s=2;continue;case 1:f=Y(e);$s=3;case 3:if($c){$c=false;f=f.$blk();}if(f&&f.$blk!==undefined){break s;}e=f;b.SetIALAttr("style",e);g=G.IAL2Tokens(b.KramdownIAL);h=new D.Node.ptr("","","",456,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,g,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false);b.InsertAfter(h);d=true;case 2:if(!(AD.nil===a.Parent)&&!(AD.nil===a.Parent.Parent)){$s=4;continue;}$s=5;continue;case 4:i=c.domAttrValue(a.Parent.Parent,"style");if(!(""===i)){$s=6;continue;}$s=7;continue;case 6:if(d){$s=8;continue;}$s=9;continue;case 8:j=G.Tokens2IAL(b.Next.Tokens);$s=11;case 11:if($c){$c=false;j=j.$blk();}if(j&&j.$blk!==undefined){break s;}k=j;k=$append(k,new AI(["parent-style",i]));b.Next.Tokens=G.IAL2Tokens(k);b.SetIALAttr("parent-style",i);b.KramdownIAL=k;$s=10;continue;case 9:b.SetIALAttr("parent-style",i);l=G.IAL2Tokens(b.KramdownIAL);m=new D.Node.ptr("","","",456,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,l,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false);b.InsertAfter(m);case 10:case 7:case 5:$s=-1;return;}return;}if($f===undefined){$f={$blk:P.ptr.prototype.setSpanIAL};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.k=k;$f.l=l;$f.m=m;$f.$s=$s;$f.$r=$r;return $f;};P.prototype.setSpanIAL=function(a,b){return this.$val.setSpanIAL(a,b);};P.ptr.prototype.setBlockIAL=function(a,b){var a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;k=$f.k;l=$f.l;m=$f.m;n=$f.n;o=$f.o;p=$f.p;q=$f.q;r=$f.r;s=$f.s;t=$f.t;u=$f.u;v=$f.v;w=$f.w;x=$f.x;y=$f.y;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=AC.nil;d=this;b.SetIALAttr("id",b.ID);e=d.domAttrValue(a,"refcount");if(!(""===e)){b.SetIALAttr("refcount",e);c=$appendSlice(c,(new AC($stringToBytes(" refcount=\""+e+"\""))));}f=d.domAttrValue(a,"bookmark");if(!(""===f)){f=E.UnescapeHTMLStr(f);b.SetIALAttr("bookmark",f);c=$appendSlice(c,(new AC($stringToBytes(" bookmark=\""+f+"\""))));}g=d.domAttrValue(a,"style");if(!(""===g)){$s=1;continue;}$s=2;continue;case 1:g=E.UnescapeHTMLStr(g);h=Y(g);$s=3;case 3:if($c){$c=false;h=h.$blk();}if(h&&h.$blk!==undefined){break s;}g=h;b.SetIALAttr("style",g);c=$appendSlice(c,(new AC($stringToBytes(" style=\""+g+"\""))));case 2:i=d.domAttrValue(a,"name");if(!(""===i)){i=E.UnescapeHTMLStr(i);b.SetIALAttr("name",i);c=$appendSlice(c,(new AC($stringToBytes(" name=\""+i+"\""))));}j=d.domAttrValue(a,"memo");if(!(""===j)){j=E.UnescapeHTMLStr(j);b.SetIALAttr("memo",j);c=$appendSlice(c,(new AC($stringToBytes(" memo=\""+j+"\""))));}k=d.domAttrValue(a,"alias");if(!(""===k)){k=E.UnescapeHTMLStr(k);b.SetIALAttr("alias",k);c=$appendSlice(c,(new AC($stringToBytes(" alias=\""+k+"\""))));}l=d.domAttrValue(a,"fold");if(!(""===l)){b.SetIALAttr("fold",l);c=$appendSlice(c,(new AC($stringToBytes(" fold=\""+l+"\""))));}m=d.domAttrValue(a,"heading-fold");if(!(""===m)){b.SetIALAttr("heading-fold",m);c=$appendSlice(c,(new AC($stringToBytes(" heading-fold=\""+m+"\""))));}n=d.domAttrValue(a,"parent-fold");if(!(""===n)){b.SetIALAttr("parent-fold",n);c=$appendSlice(c,(new AC($stringToBytes(" parent-fold=\""+n+"\""))));}o=d.domAttrValue(a,"updated");if(!(""===o)){b.SetIALAttr("updated",o);c=$appendSlice(c,(new AC($stringToBytes(" updated=\""+o+"\""))));}p=d.domAttrValue(a,"linewrap");if(!(""===p)){b.SetIALAttr("linewrap",p);c=$appendSlice(c,(new AC($stringToBytes(" linewrap=\""+p+"\""))));}q=d.domAttrValue(a,"ligatures");if(!(""===q)){b.SetIALAttr("ligatures",q);c=$appendSlice(c,(new AC($stringToBytes(" ligatures=\""+q+"\""))));}r=d.domAttrValue(a,"linenumber");if(!(""===r)){b.SetIALAttr("linenumber",r);c=$appendSlice(c,(new AC($stringToBytes(" linenumber=\""+r+"\""))));}s=d.domCustomAttrs(a);if(!(false===s)){t=s;u=0;v=$keys(t);while(true){if(!(u<v.length)){break;}w=t[v[u]];if(w===undefined){u++;continue;}x=w.k;y=w.v;y=E.UnescapeHTMLStr(y);b.SetIALAttr(x,y);c=$appendSlice(c,(new AC($stringToBytes(" "+x+"=\""+y+"\""))));u++;}}c=G.IAL2Tokens(b.KramdownIAL);c=c;$s=-1;return c;}return;}if($f===undefined){$f={$blk:P.ptr.prototype.setBlockIAL};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.k=k;$f.l=l;$f.m=m;$f.n=n;$f.o=o;$f.p=p;$f.q=q;$f.r=r;$f.s=s;$f.t=t;$f.u=u;$f.v=v;$f.w=w;$f.x=x;$f.y=y;$f.$s=$s;$f.$r=$r;return $f;};P.prototype.setBlockIAL=function(a,b){return this.$val.setBlockIAL(a,b);};Y=function(a){var a,b,c,d,e,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b="";c=B.TrimSpace(a);$s=1;case 1:if($c){$c=false;c=c.$blk();}if(c&&c.$blk!==undefined){break s;}b=c;b=B.ReplaceAll(b,"\n","");d=B.Fields(b);$s=2;case 2:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}e=B.Join(d," ");$s=3;case 3:if($c){$c=false;e=e.$blk();}if(e&&e.$blk!==undefined){break s;}b=e;$s=-1;return b;}return;}if($f===undefined){$f={$blk:Y};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.$s=$s;$f.$r=$r;return $f;};Z=function(a,b){var a,b,c,d,e,f,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:if(B.HasPrefix(a.FirstChild.Data," ")&&AD.nil===a.FirstChild.PrevSibling){$s=1;continue;}$s=2;continue;case 1:c=B.TrimLeft(a.FirstChild.Data," ");$s=3;case 3:if($c){$c=false;c=c.$blk();}if(c&&c.$blk!==undefined){break s;}a.FirstChild.Data=c;b.InsertBefore(new D.Node.ptr("","","",16,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(" "))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));case 2:if(B.HasSuffix(a.FirstChild.Data," ")&&AD.nil===a.FirstChild.NextSibling){$s=4;continue;}$s=5;continue;case 4:d=B.TrimRight(a.FirstChild.Data," ");$s=6;case 6:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}a.FirstChild.Data=d;a.InsertAfter(new E.Node.ptr(AD.nil,AD.nil,AD.nil,AD.nil,AD.nil,1,0," ","",AQ.nil));case 5:if(B.HasSuffix(a.FirstChild.Data," \xE2\x80\xB8")&&AD.nil===a.FirstChild.NextSibling){$s=7;continue;}$s=8;continue;case 7:e=B.TrimRight(a.FirstChild.Data," \xE2\x80\xB8");$s=9;case 9:if($c){$c=false;e=e.$blk();}if(e&&e.$blk!==undefined){break s;}a.FirstChild.Data=e;a.InsertAfter(new E.Node.ptr(AD.nil,AD.nil,AD.nil,AD.nil,AD.nil,1,0," \xE2\x80\xB8","",AQ.nil));case 8:if(B.HasSuffix(a.FirstChild.Data,"\n")&&AD.nil===a.FirstChild.NextSibling){$s=10;continue;}$s=11;continue;case 10:f=B.TrimRight(a.FirstChild.Data,"\n");$s=12;case 12:if($c){$c=false;f=f.$blk();}if(f&&f.$blk!==undefined){break s;}a.FirstChild.Data=f;a.InsertAfter(new E.Node.ptr(AD.nil,AD.nil,AD.nil,AD.nil,AD.nil,1,0,"\n","",AQ.nil));case 11:$s=-1;return;}return;}if($f===undefined){$f={$blk:Z};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.$s=$s;$f.$r=$r;return $f;};P.ptr.prototype.removeInnerMarker=function(a,b){var a,b,c,d;c=this;if(1===a.Type){a.Data=B.ReplaceAll(a.Data,b,"");}d=a.FirstChild;while(true){if(!(!(AD.nil===d))){break;}c.removeInnerMarker0(d,b);d=d.NextSibling;}};P.prototype.removeInnerMarker=function(a,b){return this.$val.removeInnerMarker(a,b);};P.ptr.prototype.removeInnerMarker0=function(a,b){var a,b,c,d,e,f;c=this;if(AD.nil===a){return;}d=c.domAttrValue(a,"data-render");if("1"===d||"2"===d){return;}if("svg"===a.Namespace){return;}if((0===a.DataAtom)&&(3===a.Type)){return;}e=a.DataAtom;if(e===(0)){a.Data=B.ReplaceAll(a.Data,b,"");}f=a.FirstChild;while(true){if(!(!(AD.nil===f))){break;}c.removeInnerMarker0(f,b);f=f.NextSibling;}};P.prototype.removeInnerMarker0=function(a,b){return this.$val.removeInnerMarker0(a,b);};P.ptr.prototype.SpinVditorIRDOM=function(a){var a,b,c,d,e,f,g,h,i,j,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b="";c=this;a=B.ReplaceAll(a,"<wbr>","\xE2\x80\xB8");d=c.vditorIRDOM2Md(a);$s=1;case 1:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}e=d;f=G.Parse("",(new AC($stringToBytes(e))),c.ParseOptions);$s=2;case 2:if($c){$c=false;f=f.$blk();}if(f&&f.$blk!==undefined){break s;}g=f;h=H.NewVditorIRRenderer(g,c.RenderOptions);i=h.BaseRenderer.Render();$s=3;case 3:if($c){$c=false;i=i.$blk();}if(i&&i.$blk!==undefined){break s;}j=i;b=B.ReplaceAll(($bytesToString(j)),"\xE2\x80\xB8","<wbr>");$s=-1;return b;}return;}if($f===undefined){$f={$blk:P.ptr.prototype.SpinVditorIRDOM};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.$s=$s;$f.$r=$r;return $f;};P.prototype.SpinVditorIRDOM=function(a){return this.$val.SpinVditorIRDOM(a);};P.ptr.prototype.HTML2VditorIRDOM=function(a){var a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;k=$f.k;l=$f.l;m=$f.m;n=$f.n;o=$f.o;p=$f.p;q=$f.q;r=$f.r;s=$f.s;t=$f.t;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b="";c=this;e=c.HTML2Markdown(a);$s=1;case 1:if($c){$c=false;e=e.$blk();}if(e&&e.$blk!==undefined){break s;}d=e;f=d[0];g=d[1];if(!($interfaceIsEqual($ifaceNil,g))){$s=2;continue;}$s=3;continue;case 2:h=g.Error();$s=4;case 4:if($c){$c=false;h=h.$blk();}if(h&&h.$blk!==undefined){break s;}b=h;$s=-1;return b;case 3:i=G.Parse("",(new AC($stringToBytes(f))),c.ParseOptions);$s=5;case 5:if($c){$c=false;i=i.$blk();}if(i&&i.$blk!==undefined){break s;}j=i;k=H.NewVditorIRRenderer(j,c.RenderOptions);l=c.HTML2VditorIRDOMRendererFuncs;m=0;n=$keys(l);while(true){if(!(m<n.length)){break;}o=l[n[m]];if(o===undefined){m++;continue;}p=o.k;q=o.v;r=p;(k.BaseRenderer.ExtRendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[D.NodeType.keyFor(r)]={k:r,v:q};m++;}s=k.BaseRenderer.Render();$s=6;case 6:if($c){$c=false;s=s.$blk();}if(s&&s.$blk!==undefined){break s;}t=s;b=($bytesToString(t));$s=-1;return b;}return;}if($f===undefined){$f={$blk:P.ptr.prototype.HTML2VditorIRDOM};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.k=k;$f.l=l;$f.m=m;$f.n=n;$f.o=o;$f.p=p;$f.q=q;$f.r=r;$f.s=s;$f.t=t;$f.$s=$s;$f.$r=$r;return $f;};P.prototype.HTML2VditorIRDOM=function(a){return this.$val.HTML2VditorIRDOM(a);};P.ptr.prototype.VditorIRDOM2HTML=function(a){var a,b,c,d,e,f,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b="";c=this;d=c.vditorIRDOM2Md(a);$s=1;case 1:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}e=d;f=c.Md2HTML(e);$s=2;case 2:if($c){$c=false;f=f.$blk();}if(f&&f.$blk!==undefined){break s;}b=f;$s=-1;return b;}return;}if($f===undefined){$f={$blk:P.ptr.prototype.VditorIRDOM2HTML};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.$s=$s;$f.$r=$r;return $f;};P.prototype.VditorIRDOM2HTML=function(a){return this.$val.VditorIRDOM2HTML(a);};P.ptr.prototype.Md2VditorIRDOM=function(a){var a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;k=$f.k;l=$f.l;m=$f.m;n=$f.n;o=$f.o;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b="";c=this;d=G.Parse("",(new AC($stringToBytes(a))),c.ParseOptions);$s=1;case 1:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}e=d;f=H.NewVditorIRRenderer(e,c.RenderOptions);g=c.Md2VditorIRDOMRendererFuncs;h=0;i=$keys(g);while(true){if(!(h<i.length)){break;}j=g[i[h]];if(j===undefined){h++;continue;}k=j.k;l=j.v;m=k;(f.BaseRenderer.ExtRendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[D.NodeType.keyFor(m)]={k:m,v:l};h++;}n=f.BaseRenderer.Render();$s=2;case 2:if($c){$c=false;n=n.$blk();}if(n&&n.$blk!==undefined){break s;}o=n;b=($bytesToString(o));$s=-1;return b;}return;}if($f===undefined){$f={$blk:P.ptr.prototype.Md2VditorIRDOM};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.k=k;$f.l=l;$f.m=m;$f.n=n;$f.o=o;$f.$s=$s;$f.$r=$r;return $f;};P.prototype.Md2VditorIRDOM=function(a){return this.$val.Md2VditorIRDOM(a);};P.ptr.prototype.VditorIRDOM2Md=function(a){var a,b,c,d,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b="";c=this;a=B.ReplaceAll(a,"\xE2\x80\x8B","");d=c.vditorIRDOM2Md(a);$s=1;case 1:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}b=d;b=B.ReplaceAll(b,"\xE2\x80\x8B","");$s=-1;return b;}return;}if($f===undefined){$f={$blk:P.ptr.prototype.VditorIRDOM2Md};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.$s=$s;$f.$r=$r;return $f;};P.prototype.VditorIRDOM2Md=function(a){return this.$val.VditorIRDOM2Md(a);};P.ptr.prototype.vditorIRDOM2Md=function(a){var a,b,c,d,e,f,g,h,i,j,k,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;k=$f.k;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b="";c=this;a=B.ReplaceAll(a,"<wbr>","");a=B.ReplaceAll(a,"\t\n","\n");a=B.ReplaceAll(a,"    \n","  \n");d=c.parseHTML(a);$s=1;case 1:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}e=d;if(AD.nil===e){$s=-1;return b;}$r=c.adjustVditorDOM(e);$s=2;case 2:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}f=new G.Tree.ptr(new D.Node.ptr("","","",0,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false),new G.Context.ptr(AA.nil,c.ParseOptions,AE.nil,AE.nil,AC.nil,0,0,0,0,0,0,false,false,false,false,AE.nil,AE.nil),AG.nil,AH.nil,"","","","","",AI.nil,new $Int64(0,0),new $Int64(0,0),"");f.Context.Tip=f.Root;g=e.FirstChild;case 3:if(!(!(AD.nil===g))){$s=4;continue;}$r=c.genASTByVditorIRDOM(g,f);$s=5;case 5:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}g=g.NextSibling;$s=3;continue;case 4:$r=D.Walk(f.Root,(function(h,i){var h,i,j,k;if(i){j=h.Type;if((j===(10))||(j===(27))||(j===(304))||(j===(9))||(j===(15))||(j===(302))){h.Tokens=E.UnescapeHTML(h.Tokens);if(!(AE.nil===h.Next)&&(27===h.Next.Type)&&(h.CodeMarkerLen===h.Next.CodeMarkerLen)){h.FirstChild.Next.Tokens=$appendSlice(h.FirstChild.Next.Tokens,h.Next.FirstChild.Next.Tokens);h.Next.Unlink();}}else if(j===(7)){if(!(AE.nil===h.Parent)&&(7===h.Parent.Type)){k=h.Previous;if(!(AE.nil===k)){k.AppendChild(h);}}}}return 2;}));$s=6;case 6:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}h=H.NewOptions();h.AutoSpace=false;h.FixTermTypo=false;i=H.NewFormatRenderer(f,h);j=i.BaseRenderer.Render();$s=7;case 7:if($c){$c=false;j=j.$blk();}if(j&&j.$blk!==undefined){break s;}k=j;b=($bytesToString(k));$s=-1;return b;}return;}if($f===undefined){$f={$blk:P.ptr.prototype.vditorIRDOM2Md};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.k=k;$f.$s=$s;$f.$r=$r;return $f;};P.prototype.vditorIRDOM2Md=function(a){return this.$val.vditorIRDOM2Md(a);};P.ptr.prototype.genASTByVditorIRDOM=function(a,b){var a,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,bh,bi,bj,bk,bl,bm,bn,bo,bp,bq,br,bs,bt,bu,bv,bw,bx,by,bz,c,ca,cb,cc,cd,ce,cf,cg,ch,ci,cj,ck,cl,cm,cn,co,cp,cq,cr,cs,ct,cu,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,$s,$deferred,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;aa=$f.aa;ab=$f.ab;ac=$f.ac;ad=$f.ad;ae=$f.ae;af=$f.af;ag=$f.ag;ah=$f.ah;ai=$f.ai;aj=$f.aj;ak=$f.ak;al=$f.al;am=$f.am;an=$f.an;ao=$f.ao;ap=$f.ap;aq=$f.aq;ar=$f.ar;as=$f.as;at=$f.at;au=$f.au;av=$f.av;aw=$f.aw;ax=$f.ax;ay=$f.ay;az=$f.az;b=$f.b;ba=$f.ba;bb=$f.bb;bc=$f.bc;bd=$f.bd;be=$f.be;bf=$f.bf;bg=$f.bg;bh=$f.bh;bi=$f.bi;bj=$f.bj;bk=$f.bk;bl=$f.bl;bm=$f.bm;bn=$f.bn;bo=$f.bo;bp=$f.bp;bq=$f.bq;br=$f.br;bs=$f.bs;bt=$f.bt;bu=$f.bu;bv=$f.bv;bw=$f.bw;bx=$f.bx;by=$f.by;bz=$f.bz;c=$f.c;ca=$f.ca;cb=$f.cb;cc=$f.cc;cd=$f.cd;ce=$f.ce;cf=$f.cf;cg=$f.cg;ch=$f.ch;ci=$f.ci;cj=$f.cj;ck=$f.ck;cl=$f.cl;cm=$f.cm;cn=$f.cn;co=$f.co;cp=$f.cp;cq=$f.cq;cr=$f.cr;cs=$f.cs;ct=$f.ct;cu=$f.cu;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;k=$f.k;l=$f.l;m=$f.m;n=$f.n;o=$f.o;p=$f.p;q=$f.q;r=$f.r;s=$f.s;t=$f.t;u=$f.u;v=$f.v;w=$f.w;x=$f.x;y=$f.y;z=$f.z;$s=$f.$s;$deferred=$f.$deferred;$r=$f.$r;}var $err=null;try{s:while(true){switch($s){case 0:$deferred=[];$deferred.index=$curGoroutine.deferStack.length;$curGoroutine.deferStack.push($deferred);c=this;d=c.domAttrValue(a,"data-render");if("1"===d||"2"===d){$s=-1;return;}e=c.domAttrValue(a,"data-type");if(92931===a.DataAtom){$s=1;continue;}$s=2;continue;case 1:if("code-block"===e||"html-block"===e||"math-block"===e||"yaml-front-matter"===e){$s=3;continue;}if("link-ref-defs-block"===e){$s=4;continue;}if("footnotes-def"===e){$s=5;continue;}if("footnotes-block"===e){$s=6;continue;}if("toc-block"===e){$s=7;continue;}$s=8;continue;case 3:if(("code-block"===e||"math-block"===e)&&!B.Contains(c.domAttrValue(a.FirstChild,"data-type"),"-block-open-marker")){f=new D.Node.ptr("","","",1,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false);g=new D.Node.ptr("","","",16,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(c.domText(a.FirstChild)))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false);f.AppendChild(g);b.Context.Tip.AppendChild(f);b.Context.Tip=f;$s=-1;return;}h=a.FirstChild;case 10:if(!(!(h===AD.nil))){$s=11;continue;}$r=c.genASTByVditorIRDOM(h,b);$s=12;case 12:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}h=h.NextSibling;$s=10;continue;case 11:$s=9;continue;case 4:i=c.domText(a);j=new D.Node.ptr("","","",16,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(i))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false);b.Context.Tip.AppendChild(j);$s=9;continue;case 5:k=a.FirstChild;case 13:if(!(!(k===AD.nil))){$s=14;continue;}$r=c.genASTByVditorIRDOM(k,b);$s=15;case 15:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}k=k.NextSibling;$s=13;continue;case 14:$s=9;continue;case 6:l=a.FirstChild;case 16:if(!(!(AD.nil===l))){$s=17;continue;}m=new A.Buffer.ptr(AC.nil,0,0);n=E.Render(m,l);$s=18;case 18:if($c){$c=false;n=n.$blk();}if(n&&n.$blk!==undefined){break s;}o=n;if($interfaceIsEqual($ifaceNil,o)){$s=19;continue;}$s=20;continue;case 19:p=c.vditorIRDOM2Md(m.String());$s=21;case 21:if($c){$c=false;p=p.$blk();}if(p&&p.$blk!==undefined){break s;}q=p;r=B.Split(q,"\n");q="";s=r;t=0;while(true){if(!(t<s.$length)){break;}u=t;v=((t<0||t>=s.$length)?($throwRuntimeError("index out of range"),undefined):s.$array[s.$offset+t]);if(0<u){q=q+("    "+v);}else{q=v;}q=q+("\n");t++;}w=new D.Node.ptr("","","",16,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(q))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false);b.Context.Tip.AppendChild(w);case 20:l=l.NextSibling;$s=16;continue;case 17:$s=9;continue;case 7:x=new D.Node.ptr("","","",415,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false);b.Context.Tip.AppendChild(x);$s=9;continue;case 8:y=c.domText(a);if("\xE2\x80\xB8\n"===y){b.Context.Tip.AppendChild(new D.Node.ptr("","","",16,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes("\xE2\x80\xB8\n"))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}case 9:$s=-1;return;case 2:z=c.domAttrValue(a,"class");aa=B.ReplaceAll(a.Data,"\xE2\x80\x8B","");ab=new D.Node.ptr("","","",16,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(aa))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false);ac=a.DataAtom;if(ac===(0)){$s=23;continue;}if((ac===(3073))||(ac===(92931))){$s=24;continue;}if((ac===(89090))||(ac===(187906))||(ac===(199938))||(ac===(214274))||(ac===(216834))||(ac===(412930))){$s=25;continue;}if(ac===(87810)){$s=26;continue;}if(ac===(100106)){$s=27;continue;}if((ac===(79618))||(ac===(42754))){$s=28;continue;}if(ac===(45570)){$s=29;continue;}if(ac===(290819)){$s=30;continue;}if((ac===(28162))||(ac===(1537))){$s=31;continue;}if((ac===(449798))||(ac===(257))){$s=32;continue;}if((ac===(283139))||(ac===(9473))||(ac===(53766))){$s=33;continue;}if(ac===(46596)){$s=34;continue;}if(ac===(378116)){$s=35;continue;}if(ac===(514)){$s=36;continue;}if(ac===(1)){$s=37;continue;}if(ac===(198403)){$s=38;continue;}if(ac===(281349)){$s=39;continue;}if(ac===(365829)){$s=40;continue;}if(ac===(208901)){$s=41;continue;}if(ac===(9989)){$s=42;continue;}if(ac===(52226)){$s=43;continue;}if((ac===(87554))||(ac===(37378))){$s=44;continue;}if(ac===(461571)){$s=45;continue;}if(ac===(40708)){$s=46;continue;}if(ac===(16132)){$s=47;continue;}if(ac===(29191)){$s=48;continue;}if(ac===(47363)){$s=49;continue;}if(ac===(459783)){$s=50;continue;}$s=51;continue;case 23:if(""===aa){$s=-1;return;}ad=B.ReplaceAll(aa,"\xE2\x80\xB8","");ad=B.ReplaceAll(ad,"\t","    ");if((!c.isInline(a.PrevSibling))&&B.HasPrefix(ad,"    ")){$s=53;continue;}$s=54;continue;case 53:ab.Type=11;ab.IsFencedCodeBlock=true;ab.AppendChild(new D.Node.ptr("","","",12,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes("```"))),"","",false,false,false,0,false,0,3,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));ab.AppendChild(new D.Node.ptr("","","",14,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));ae=B.HasPrefix(aa,"\xE2\x80\xB8");if(ae){aa=B.ReplaceAll(aa,"\xE2\x80\xB8","");}af=B.TrimSpace(aa);$s=55;case 55:if($c){$c=false;af=af.$blk();}if(af&&af.$blk!==undefined){break s;}aa=af;if(ae){aa="\xE2\x80\xB8"+aa;}ag=new D.Node.ptr("","","",15,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(aa))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false);ab.AppendChild(ag);ab.AppendChild(new D.Node.ptr("","","",13,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes("```"))),"","",false,false,false,0,false,0,3,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));b.Context.Tip.AppendChild(ab);$s=-1;return;case 54:if(!(AD.nil===a.Parent)&&(1===a.Parent.DataAtom)){ab.Type=40;}b.Context.Tip.AppendChild(ab);$s=52;continue;case 24:ab.Type=1;ah=c.domText(a);if("\n"===ah&&(5===b.Context.Tip.Type)&&AE.nil===b.Context.Tip.FirstChild.Next){$s=-1;return;}else{b.Context.Tip.AppendChild(ab);b.Context.Tip=ab;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);}$s=52;continue;case 25:ai=c.domText(a);aj=B.TrimSpace(ai);$s=58;case 58:if($c){$c=false;aj=aj.$blk();}if(aj&&aj.$blk!==undefined){break s;}if(""===aj){$s=56;continue;}$s=57;continue;case 56:$s=-1;return;case 57:ab.Type=2;ak=c.domAttrValue(a,"data-marker");ab.HeadingSetext="="===ak||"-"===ak;if(!ab.HeadingSetext){$s=59;continue;}$s=60;continue;case 59:al=c.domText(a.FirstChild);ab.HeadingLevel=A.Count((new AC($stringToBytes(al))),(new AC($stringToBytes("#"))));$s=61;continue;case 60:am=B.TrimSpace(B.ReplaceAll(c.domText(a.LastChild),"\xE2\x80\xB8",""));$s=64;case 64:if($c){$c=false;am=am.$blk();}if(am&&am.$blk!==undefined){break s;}if(""===am){$s=62;continue;}$s=63;continue;case 62:ab.Type=16;ab.Tokens=(new AC($stringToBytes(ai)));b.Context.Tip.AppendChild(ab);b.Context.Tip=ab;$s=22;continue;case 63:if("="===ak){ab.HeadingLevel=1;}else{ab.HeadingLevel=2;}if(!(AD.nil===a.LastChild.PrevSibling)){a.LastChild.PrevSibling.Data=B.TrimSuffix(a.LastChild.PrevSibling.Data,"\n");}case 61:b.Context.Tip.AppendChild(ab);b.Context.Tip=ab;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=52;continue;case 26:ab.Type=4;b.Context.Tip.AppendChild(ab);$s=52;continue;case 27:an=B.TrimSpace(c.domText(a));$s=65;case 65:if($c){$c=false;an=an.$blk();}if(an&&an.$blk!==undefined){break s;}ao=an;if(""===ao||"&gt;"===ao){$s=-1;return;}if("\xE2\x80\xB8"===ao){ab.Type=16;ab.Tokens=(new AC($stringToBytes(ao)));b.Context.Tip.AppendChild(ab);}ab.Type=5;ab.AppendChild(new D.Node.ptr("","","",6,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(">"))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));b.Context.Tip.AppendChild(ab);b.Context.Tip=ab;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=52;continue;case 28:if(AD.nil===a.FirstChild){$s=-1;return;}ab.Type=7;ab.ListData=new D.ListData.ptr(0,false,0,0,0,0,0,false,AC.nil,0);if(79618===a.DataAtom){ab.ListData.Typ=1;}ap=c.domAttrValue(a,"data-tight");if("true"===ap||""===ap){ab.ListData.Tight=true;}b.Context.Tip.AppendChild(ab);b.Context.Tip=ab;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=52;continue;case 29:aq=a.FirstChild;if(!(AD.nil===aq)&&(3073===aq.DataAtom)&&!(AD.nil===aq.NextSibling)&&(3073===aq.NextSibling.DataAtom)){b.Context.Tip.ListData.Tight=false;}ab.Type=8;ar=c.domAttrValue(a,"data-marker");as=0;if(""===ar){if(!(AD.nil===a.Parent)&&(79618===a.Parent.DataAtom)){at=c.domAttrValue(a.Parent.FirstChild,"data-marker");au=c.domAttrValue(a.Parent,"start");if(""===au){ar="1";}else{ar=au;}if(!(""===at)){ar=ar+($substring(at,(at.length-1>>0)));}else{ar=ar+(".");}}else{ar=c.domAttrValue(a.Parent,"data-marker");if(""===ar){ar="*";}as=ar.charCodeAt(0);}}else{if(!(AD.nil===a.Parent)){if(79618===a.Parent.DataAtom){if("*"===ar||"-"===ar||"+"===ar){ar="1.";}if(!("1."===ar)&&!("1)"===ar)&&!(AD.nil===a.PrevSibling)&&!((45570===a.PrevSibling.DataAtom))&&!(AD.nil===a.Parent.Parent)&&((79618===a.Parent.Parent.DataAtom)||(42754===a.Parent.Parent.DataAtom))){ar="1.";}if(!("1."===ar)&&!("1)"===ar)&&(79618===a.Parent.DataAtom)&&a.Parent.FirstChild===a&&""===c.domAttrValue(a.Parent,"start")){ar="1.";}}else{if(!("*"===ar)&&!("-"===ar)&&!("+"===ar)){ar="*";}as=ar.charCodeAt(0);}}else{ar=c.domAttrValue(a,"data-marker");if(""===ar){ar="*";}as=ar.charCodeAt(0);}}ab.ListData=new D.ListData.ptr(0,false,as,0,0,0,0,false,(new AC($stringToBytes(ar))),0);if(0===as){av=N.Atoi($substring(ar,0,(ar.length-1>>0)));ab.ListData.Num=av[0];ab.ListData.Delimiter=ar.charCodeAt((ar.length-1>>0));}b.Context.Tip.AppendChild(ab);b.Context.Tip=ab;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=52;continue;case 30:if(378116===a.FirstChild.DataAtom){aw=AC.nil;if(!(AD.nil===a.FirstChild.FirstChild)){aw=(new AC($stringToBytes(a.FirstChild.FirstChild.Data)));}ax=c.domAttrValue(a.Parent,"data-type");ay=ax;if(ay===("math-block")){ab.Type=300;ab.AppendChild(new D.Node.ptr("","","",302,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,aw,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));b.Context.Tip.AppendChild(ab);}else if(ay===("html-block")){ab.Type=9;ab.Tokens=aw;b.Context.Tip.AppendChild(ab);}else if(ay===("yaml-front-matter")){ab.Type=425;ab.AppendChild(new D.Node.ptr("","","",427,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,aw,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));b.Context.Tip.AppendChild(ab);}else{ab.Type=15;ab.Tokens=aw;b.Context.Tip.AppendChild(ab);}}$s=-1;return;case 31:if(AD.nil===a.FirstChild||(514===a.FirstChild.DataAtom)){$s=-1;return;}if(c.startsWithNewline(a.FirstChild)){$s=66;continue;}$s=67;continue;case 66:az=B.TrimLeft(a.FirstChild.Data,"\xE2\x80\x8B\n");$s=68;case 68:if($c){$c=false;az=az.$blk();}if(az&&az.$blk!==undefined){break s;}a.FirstChild.Data=az;b.Context.Tip.AppendChild(new D.Node.ptr("","","",16,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes("\xE2\x80\x8B\n"))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));case 67:ba=B.TrimSpace(c.domText(a));$s=69;case 69:if($c){$c=false;ba=ba.$blk();}if(ba&&ba.$blk!==undefined){break s;}bb=ba;bc=c.isEmptyText(a);$s=72;case 72:if($c){$c=false;bc=bc.$blk();}if(bc&&bc.$blk!==undefined){break s;}if(bc){$s=70;continue;}$s=71;continue;case 70:$s=-1;return;case 71:if("\xE2\x80\xB8"===bb){ab.Tokens=I.CaretTokens;b.Context.Tip.AppendChild(ab);$s=-1;return;}ab.Type=17;b.Context.Tip.AppendChild(ab);b.Context.Tip=ab;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=52;continue;case 32:if(AD.nil===a.FirstChild||(514===a.FirstChild.DataAtom)){$s=-1;return;}if(c.startsWithNewline(a.FirstChild)){$s=73;continue;}$s=74;continue;case 73:bd=B.TrimLeft(a.FirstChild.Data,"\xE2\x80\x8B\n");$s=75;case 75:if($c){$c=false;bd=bd.$blk();}if(bd&&bd.$blk!==undefined){break s;}a.FirstChild.Data=bd;b.Context.Tip.AppendChild(new D.Node.ptr("","","",16,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes("\xE2\x80\x8B\n"))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));case 74:be=B.TrimSpace(c.domText(a));$s=76;case 76:if($c){$c=false;be=be.$blk();}if(be&&be.$blk!==undefined){break s;}bf=be;bg=c.isEmptyText(a);$s=79;case 79:if($c){$c=false;bg=bg.$blk();}if(bg&&bg.$blk!==undefined){break s;}if(bg){$s=77;continue;}$s=78;continue;case 77:$s=-1;return;case 78:if("\xE2\x80\xB8"===bf){ab.Tokens=I.CaretTokens;b.Context.Tip.AppendChild(ab);$s=-1;return;}ab.Type=22;b.Context.Tip.AppendChild(ab);b.Context.Tip=ab;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=52;continue;case 33:if(AD.nil===a.FirstChild||(514===a.FirstChild.DataAtom)){$s=-1;return;}if(c.startsWithNewline(a.FirstChild)){$s=80;continue;}$s=81;continue;case 80:bh=B.TrimLeft(a.FirstChild.Data,"\xE2\x80\x8B\n");$s=82;case 82:if($c){$c=false;bh=bh.$blk();}if(bh&&bh.$blk!==undefined){break s;}a.FirstChild.Data=bh;b.Context.Tip.AppendChild(new D.Node.ptr("","","",16,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes("\xE2\x80\x8B\n"))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));case 81:bi=B.TrimSpace(c.domText(a));$s=83;case 83:if($c){$c=false;bi=bi.$blk();}if(bi&&bi.$blk!==undefined){break s;}bj=bi;bk=c.isEmptyText(a);$s=86;case 86:if($c){$c=false;bk=bk.$blk();}if(bk&&bk.$blk!==undefined){break s;}if(bk){$s=84;continue;}$s=85;continue;case 84:$s=-1;return;case 85:if("\xE2\x80\xB8"===bj){ab.Tokens=I.CaretTokens;b.Context.Tip.AppendChild(ab);$s=-1;return;}ab.Type=101;b.Context.Tip.AppendChild(ab);b.Context.Tip=ab;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=52;continue;case 34:if(AD.nil===a.FirstChild||(514===a.FirstChild.DataAtom)){$s=-1;return;}if(c.startsWithNewline(a.FirstChild)){$s=87;continue;}$s=88;continue;case 87:bl=B.TrimLeft(a.FirstChild.Data,"\xE2\x80\x8B\n");$s=89;case 89:if($c){$c=false;bl=bl.$blk();}if(bl&&bl.$blk!==undefined){break s;}a.FirstChild.Data=bl;b.Context.Tip.AppendChild(new D.Node.ptr("","","",16,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes("\xE2\x80\x8B\n"))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));case 88:bm=B.TrimSpace(c.domText(a));$s=90;case 90:if($c){$c=false;bm=bm.$blk();}if(bm&&bm.$blk!==undefined){break s;}bn=bm;bo=c.isEmptyText(a);$s=93;case 93:if($c){$c=false;bo=bo.$blk();}if(bo&&bo.$blk!==undefined){break s;}if(bo){$s=91;continue;}$s=92;continue;case 91:$s=-1;return;case 92:if("\xE2\x80\xB8"===bn){ab.Tokens=I.CaretTokens;b.Context.Tip.AppendChild(ab);$s=-1;return;}ab.Type=450;b.Context.Tip.AppendChild(ab);b.Context.Tip=ab;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=52;continue;case 35:if(AD.nil===a.FirstChild){$s=-1;return;}bp=B.ReplaceAll(a.FirstChild.Data,"\xE2\x80\x8B","");if("\xE2\x80\xB8"===bp){ab.Tokens=I.CaretTokens;b.Context.Tip.AppendChild(ab);$s=-1;return;}if(""===bp){$s=-1;return;}bq=(new AC($stringToBytes(bp)));br=new D.Node.ptr("","","",29,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,bq,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false);ab.Type=27;ab.AppendChild(br);b.Context.Tip.AppendChild(ab);$s=-1;return;case 36:if(!(AD.nil===a.Parent)){if(c.parentIs(a,new AO([37378,87554]))){if((AD.nil===a.PrevSibling||"\xE2\x80\xB8"===a.PrevSibling.Data)&&(AD.nil===a.NextSibling||"\xE2\x80\xB8"===a.NextSibling.Data)){$s=-1;return;}if(AD.nil===a.NextSibling){$s=-1;return;}ab.Type=10;ab.Tokens=(new AC($stringToBytes("<br />")));b.Context.Tip.AppendChild(ab);$s=-1;return;}if(3073===a.Parent.DataAtom){if(!(AD.nil===a.Parent.NextSibling)&&((42754===a.Parent.NextSibling.DataAtom)||(79618===a.Parent.NextSibling.DataAtom)||(100106===a.Parent.NextSibling.DataAtom))){b.Context.Tip.AppendChild(new D.Node.ptr("","","",16,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes("\xE2\x80\x8B"))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));$s=-1;return;}}}ab.Type=31;b.Context.Tip.AppendChild(ab);b.Context.Tip=ab;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=52;continue;case 37:ab.Type=33;ab.AppendChild(new D.Node.ptr("","","",36,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));b.Context.Tip.AppendChild(ab);b.Context.Tip=ab;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=52;continue;case 38:bs=z;bt=c.domAttrValue(a,"alt");if("emoji"===bs){ab.Type=200;bu=new D.Node.ptr("","","",202,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,b.EmojiImgTokens(bt,c.domAttrValue(a,"src")),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false);bu.AppendChild(new D.Node.ptr("","","",203,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(":"+bt+":"))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));ab.AppendChild(bu);b.Context.Tip.AppendChild(ab);b.Context.Tip=ab;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);}else{$s=-1;return;}$s=52;continue;case 39:if(AD.nil===a.Parent||AD.nil===a.Parent.Parent||(!((3073===a.Parent.DataAtom))&&!((45570===a.Parent.DataAtom)))){$s=-1;return;}if(!(AD.nil===a.NextSibling)&&(40708===a.NextSibling.DataAtom)){$s=94;continue;}$s=95;continue;case 94:bv=B.TrimSpace(a.NextSibling.FirstChild.Data);$s=96;case 96:if($c){$c=false;bv=bv.$blk();}if(bv&&bv.$blk!==undefined){break s;}a.NextSibling.FirstChild.Data=bv;$s=22;continue;case 95:ab.Type=100;ab.TaskListItemChecked=c.hasAttr(a,"checked");b.Context.Tip.AppendChild(ab);if(!(AE.nil===ab.Parent.Parent.Parent)&&!(AK.nil===ab.Parent.Parent.Parent.ListData)){ab.Parent.Parent.Parent.ListData.Typ=3;}$s=52;continue;case 40:ab.Type=106;bw=AL.nil;bx=a.FirstChild.FirstChild.FirstChild;while(true){if(!(!(AD.nil===bx))){break;}by=c.domAttrValue(bx,"align");bz=by;if(bz===("left")){bw=$append(bw,1);}else if(bz===("center")){bw=$append(bw,2);}else if(bz===("right")){bw=$append(bw,3);}else{bw=$append(bw,0);}bx=bx.NextSibling;}ab.TableAligns=bw;ab.Tokens=AC.nil;b.Context.Tip.AppendChild(new D.Node.ptr("","","",1,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));b.Context.Tip.AppendChild(ab);b.Context.Tip=ab;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=52;continue;case 41:ab.Type=107;b.Context.Tip.AppendChild(ab);b.Context.Tip=ab;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=52;continue;case 42:$s=52;continue;case 43:ab.Type=108;b.Context.Tip.AppendChild(ab);b.Context.Tip=ab;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=52;continue;case 44:ab.Type=109;ca=c.domAttrValue(a,"align");cb=0;cc=ca;if(cc===("left")){cb=1;}else if(cc===("center")){cb=2;}else if(cc===("right")){cb=3;}else{cb=0;}ab.TableCellAlign=cb;b.Context.Tip.AppendChild(ab);b.Context.Tip=ab;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=52;continue;case 45:if(AD.nil===a.FirstChild){$s=22;continue;}if("footnotes-ref"===e){ab.Type=16;ab.Tokens=(new AC($stringToBytes(c.domText(a))));b.Context.Tip.AppendChild(ab);}$s=-1;return;case 46:cd=e;if(cd===("inline-node")||cd===("em")||cd===("strong")||cd===("s")||cd===("a")||cd===("link-ref")||cd===("img")||cd===("code")||cd===("heading-id")||cd===("html-inline")||cd===("inline-math")||cd===("html-entity")){$s=98;continue;}if(cd===("math-block-close-marker")){$s=99;continue;}if(cd===("math-block-open-marker")){$s=100;continue;}if(cd===("yaml-front-matter-close-marker")){$s=101;continue;}if(cd===("yaml-front-matter-open-marker")){$s=102;continue;}if(cd===("code-block-open-marker")){$s=103;continue;}if(cd===("code-block-info")){$s=104;continue;}if(cd===("code-block-close-marker")){$s=105;continue;}if(cd===("heading-marker")){$s=106;continue;}$s=107;continue;case 98:ab.Type=16;ab.Tokens=(new AC($stringToBytes(c.domText(a))));b.Context.Tip.AppendChild(ab);$s=-1;return;case 99:b.Context.Tip.AppendChild(new D.Node.ptr("","","",303,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,G.MathBlockMarker,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=-1;return;case 100:ab.Type=300;ab.AppendChild(new D.Node.ptr("","","",301,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,G.MathBlockMarker,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));b.Context.Tip.AppendChild(ab);b.Context.Tip=ab;$s=-1;return;case 101:b.Context.Tip.AppendChild(new D.Node.ptr("","","",428,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,G.YamlFrontMatterMarker,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=-1;return;case 102:ab.Type=425;ab.AppendChild(new D.Node.ptr("","","",426,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,G.YamlFrontMatterMarker,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));b.Context.Tip.AppendChild(ab);b.Context.Tip=ab;$s=-1;return;case 103:if(290819===a.NextSibling.DataAtom){a.InsertAfter(new E.Node.ptr(AD.nil,AD.nil,AD.nil,AD.nil,AD.nil,0,40708,"","",new AQ([new E.Attribute.ptr("","data-type","code-block-info")])));}ce=(new AC($stringToBytes(c.domText(a))));cf=A.LastIndex(ce,(new AC($stringToBytes("`"))))+1>>0;if(0<cf){a.NextSibling.AppendChild(new E.Node.ptr(AD.nil,AD.nil,AD.nil,AD.nil,AD.nil,0,0,($bytesToString($subslice(ce,cf))),"",AQ.nil));ce=$subslice(ce,0,cf);}ab.Type=11;ab.IsFencedCodeBlock=true;ab.AppendChild(new D.Node.ptr("","","",12,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,ce,"","",false,false,false,0,false,0,ce.$length,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));b.Context.Tip.AppendChild(ab);b.Context.Tip=ab;$s=-1;return;case 104:cg=(new AC($stringToBytes(c.domText(a))));cg=A.ReplaceAll(cg,(new AC($stringToBytes("\xE2\x80\x8B"))),AC.nil);b.Context.Tip.AppendChild(new D.Node.ptr("","","",14,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,cg,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));$s=-1;return;case 105:ch=(new AC($stringToBytes(c.domText(a))));ci=A.LastIndex(ch,(new AC($stringToBytes("`"))))+1>>0;if(0<ci){ch=$subslice(ch,0,ci);}if(0===ch.$length){ch=(new AC($stringToBytes("```")));}b.Context.Tip.AppendChild(new D.Node.ptr("","","",13,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,ch,"","",false,false,false,0,false,0,ch.$length,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=-1;return;case 106:cj=c.domText(a);ck=B.Contains(cj,"\xE2\x80\xB8");if(ck){$s=108;continue;}$s=109;continue;case 108:cl=new E.Node.ptr(AD.nil,AD.nil,AD.nil,AD.nil,AD.nil,1,0,"\xE2\x80\xB8","",AQ.nil);a.InsertAfter(cl);cj=B.ReplaceAll(cj,"#","");cj=B.ReplaceAll(cj,"\xE2\x80\xB8","");cm=B.TrimSpace(cj);$s=110;case 110:if($c){$c=false;cm=cm.$blk();}if(cm&&cm.$blk!==undefined){break s;}cj=cm;if(0<cj.length){cl.Data=cj+cl.Data;}case 109:$s=-1;return;case 107:case 97:if(AD.nil===a.FirstChild){$s=22;continue;}cn=AC.nil;if("\xE2\x80\x8B"===a.FirstChild.Data&&""===c.domAttrValue(a,"style")&&!(AD.nil===a.FirstChild.NextSibling)){cn=(new AC($stringToBytes(a.FirstChild.NextSibling.FirstChild.Data)));}else if(378116===a.FirstChild.DataAtom){cn=(new AC($stringToBytes(a.FirstChild.FirstChild.Data)));if("\xE2\x80\x8B"===($bytesToString(cn))){$s=22;continue;}}else{$s=22;continue;}if("math-inline"===e){ab.Type=304;ab.AppendChild(new D.Node.ptr("","","",305,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));ab.AppendChild(new D.Node.ptr("","","",306,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,cn,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));ab.AppendChild(new D.Node.ptr("","","",307,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));b.Context.Tip.AppendChild(ab);}else if("html-inline"===e){ab.Type=10;ab.Tokens=cn;b.Context.Tip.AppendChild(ab);}else if("code-inline"===e){ab.Tokens=cn;b.Context.Tip.AppendChild(ab);}else if("html-entity"===e){ab.Type=16;ab.Tokens=cn;b.Context.Tip.AppendChild(ab);}$s=-1;return;case 47:ab.Type=16;ab.Tokens=(new AC($stringToBytes(c.domText(a))));b.Context.Tip.AppendChild(ab);$s=-1;return;case 48:ab.Type=9;co=c.domHTML(a);$s=111;case 111:if($c){$c=false;co=co.$blk();}if(co&&co.$blk!==undefined){break s;}ab.Tokens=co;ab.Tokens=(cp=A.SplitAfter(ab.Tokens,(new AC($stringToBytes("</summary>")))),(0>=cp.$length?($throwRuntimeError("index out of range"),undefined):cp.$array[cp.$offset+0]));b.Context.Tip.AppendChild(ab);$s=52;continue;case 49:$s=52;continue;case 50:$s=-1;return;case 51:ab.Type=9;cq=c.domHTML(a);$s=112;case 112:if($c){$c=false;cq=cq.$blk();}if(cq&&cq.$blk!==undefined){break s;}ab.Tokens=cq;b.Context.Tip.AppendChild(ab);$s=-1;return;case 52:case 22:cr=a.FirstChild;case 113:if(!(!(cr===AD.nil))){$s=114;continue;}$r=c.genASTByVditorIRDOM(cr,b);$s=115;case 115:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}cr=cr.NextSibling;$s=113;continue;case 114:cs=a.DataAtom;if(cs===(1)){ab.AppendChild(new D.Node.ptr("","","",37,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));ab.AppendChild(new D.Node.ptr("","","",38,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));ct=c.domAttrValue(a,"href");if(!(""===c.RenderOptions.LinkBase)){ct=B.ReplaceAll(ct,c.RenderOptions.LinkBase,"");}if(!(""===c.RenderOptions.LinkPrefix)){ct=B.ReplaceAll(ct,c.RenderOptions.LinkPrefix,"");}ab.AppendChild(new D.Node.ptr("","","",41,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(ct))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));cu=c.domAttrValue(a,"title");if(!(""===cu)){ab.AppendChild(new D.Node.ptr("","","",43,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));ab.AppendChild(new D.Node.ptr("","","",42,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(cu))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}ab.AppendChild(new D.Node.ptr("","","",39,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}else if(cs===(29191)){b.Context.Tip.AppendChild(new D.Node.ptr("","","",9,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes("</details>"))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}$s=-1;return;}return;}}catch(err){$err=err;$s=-1;}finally{$callDeferred($deferred,$err);if($curGoroutine.asleep){if($f===undefined){$f={$blk:P.ptr.prototype.genASTByVditorIRDOM};}$f.a=a;$f.aa=aa;$f.ab=ab;$f.ac=ac;$f.ad=ad;$f.ae=ae;$f.af=af;$f.ag=ag;$f.ah=ah;$f.ai=ai;$f.aj=aj;$f.ak=ak;$f.al=al;$f.am=am;$f.an=an;$f.ao=ao;$f.ap=ap;$f.aq=aq;$f.ar=ar;$f.as=as;$f.at=at;$f.au=au;$f.av=av;$f.aw=aw;$f.ax=ax;$f.ay=ay;$f.az=az;$f.b=b;$f.ba=ba;$f.bb=bb;$f.bc=bc;$f.bd=bd;$f.be=be;$f.bf=bf;$f.bg=bg;$f.bh=bh;$f.bi=bi;$f.bj=bj;$f.bk=bk;$f.bl=bl;$f.bm=bm;$f.bn=bn;$f.bo=bo;$f.bp=bp;$f.bq=bq;$f.br=br;$f.bs=bs;$f.bt=bt;$f.bu=bu;$f.bv=bv;$f.bw=bw;$f.bx=bx;$f.by=by;$f.bz=bz;$f.c=c;$f.ca=ca;$f.cb=cb;$f.cc=cc;$f.cd=cd;$f.ce=ce;$f.cf=cf;$f.cg=cg;$f.ch=ch;$f.ci=ci;$f.cj=cj;$f.ck=ck;$f.cl=cl;$f.cm=cm;$f.cn=cn;$f.co=co;$f.cp=cp;$f.cq=cq;$f.cr=cr;$f.cs=cs;$f.ct=ct;$f.cu=cu;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.k=k;$f.l=l;$f.m=m;$f.n=n;$f.o=o;$f.p=p;$f.q=q;$f.r=r;$f.s=s;$f.t=t;$f.u=u;$f.v=v;$f.w=w;$f.x=x;$f.y=y;$f.z=z;$f.$s=$s;$f.$deferred=$deferred;$f.$r=$r;return $f;}}};P.prototype.genASTByVditorIRDOM=function(a,b){return this.$val.genASTByVditorIRDOM(a,b);};P.ptr.prototype.SpinVditorSVDOM=function(a){var a,b,c,d,e,f,g,h,i,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b="";c=this;d=B.TrimSpace(a);$s=3;case 3:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}if("\xE2\x80\xB8"===d){$s=1;continue;}$s=2;continue;case 1:b="<span data-type=\"text\"><wbr></span>"+($bytesToString(H.NewlineSV));$s=-1;return b;case 2:e=G.Parse("",(new AC($stringToBytes(a))),c.ParseOptions);$s=4;case 4:if($c){$c=false;e=e.$blk();}if(e&&e.$blk!==undefined){break s;}f=e;g=H.NewVditorSVRenderer(f,c.RenderOptions);h=g.BaseRenderer.Render();$s=5;case 5:if($c){$c=false;h=h.$blk();}if(h&&h.$blk!==undefined){break s;}i=h;b=B.ReplaceAll(($bytesToString(i)),"\xE2\x80\xB8","<wbr>");$s=-1;return b;}return;}if($f===undefined){$f={$blk:P.ptr.prototype.SpinVditorSVDOM};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.$s=$s;$f.$r=$r;return $f;};P.prototype.SpinVditorSVDOM=function(a){return this.$val.SpinVditorSVDOM(a);};P.ptr.prototype.HTML2VditorSVDOM=function(a){var a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;k=$f.k;l=$f.l;m=$f.m;n=$f.n;o=$f.o;p=$f.p;q=$f.q;r=$f.r;s=$f.s;t=$f.t;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b="";c=this;e=c.HTML2Markdown(a);$s=1;case 1:if($c){$c=false;e=e.$blk();}if(e&&e.$blk!==undefined){break s;}d=e;f=d[0];g=d[1];if(!($interfaceIsEqual($ifaceNil,g))){$s=2;continue;}$s=3;continue;case 2:h=g.Error();$s=4;case 4:if($c){$c=false;h=h.$blk();}if(h&&h.$blk!==undefined){break s;}b=h;$s=-1;return b;case 3:i=G.Parse("",(new AC($stringToBytes(f))),c.ParseOptions);$s=5;case 5:if($c){$c=false;i=i.$blk();}if(i&&i.$blk!==undefined){break s;}j=i;k=H.NewVditorSVRenderer(j,c.RenderOptions);l=c.HTML2VditorSVDOMRendererFuncs;m=0;n=$keys(l);while(true){if(!(m<n.length)){break;}o=l[n[m]];if(o===undefined){m++;continue;}p=o.k;q=o.v;r=p;(k.BaseRenderer.ExtRendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[D.NodeType.keyFor(r)]={k:r,v:q};m++;}s=k.BaseRenderer.Render();$s=6;case 6:if($c){$c=false;s=s.$blk();}if(s&&s.$blk!==undefined){break s;}t=s;b=($bytesToString(t));$s=-1;return b;}return;}if($f===undefined){$f={$blk:P.ptr.prototype.HTML2VditorSVDOM};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.k=k;$f.l=l;$f.m=m;$f.n=n;$f.o=o;$f.p=p;$f.q=q;$f.r=r;$f.s=s;$f.t=t;$f.$s=$s;$f.$r=$r;return $f;};P.prototype.HTML2VditorSVDOM=function(a){return this.$val.HTML2VditorSVDOM(a);};P.ptr.prototype.Md2VditorSVDOM=function(a){var a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;k=$f.k;l=$f.l;m=$f.m;n=$f.n;o=$f.o;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b="";c=this;d=G.Parse("",(new AC($stringToBytes(a))),c.ParseOptions);$s=1;case 1:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}e=d;f=H.NewVditorSVRenderer(e,c.RenderOptions);g=c.Md2VditorSVDOMRendererFuncs;h=0;i=$keys(g);while(true){if(!(h<i.length)){break;}j=g[i[h]];if(j===undefined){h++;continue;}k=j.k;l=j.v;m=k;(f.BaseRenderer.ExtRendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[D.NodeType.keyFor(m)]={k:m,v:l};h++;}n=f.BaseRenderer.Render();$s=2;case 2:if($c){$c=false;n=n.$blk();}if(n&&n.$blk!==undefined){break s;}o=n;b=B.ReplaceAll(($bytesToString(o)),"\xE2\x80\xB8","<wbr>");$s=-1;return b;}return;}if($f===undefined){$f={$blk:P.ptr.prototype.Md2VditorSVDOM};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.k=k;$f.l=l;$f.m=m;$f.n=n;$f.o=o;$f.$s=$s;$f.$r=$r;return $f;};P.prototype.Md2VditorSVDOM=function(a){return this.$val.Md2VditorSVDOM(a);};P.ptr.prototype.Md2HTML=function(a){var a,b,c,d,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b="";c=this;d=c.MarkdownStr("",a);$s=1;case 1:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}b=d;$s=-1;return b;}return;}if($f===undefined){$f={$blk:P.ptr.prototype.Md2HTML};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.$s=$s;$f.$r=$r;return $f;};P.prototype.Md2HTML=function(a){return this.$val.Md2HTML(a);};P.ptr.prototype.SpinVditorDOM=function(a){var a,b,c,d,e,f,g,h,i,j,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b="";c=this;a=B.ReplaceAll(a,"<wbr>","\xE2\x80\xB8");d=c.vditorDOM2Md(a);$s=1;case 1:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}e=d;f=G.Parse("",(new AC($stringToBytes(e))),c.ParseOptions);$s=2;case 2:if($c){$c=false;f=f.$blk();}if(f&&f.$blk!==undefined){break s;}g=f;h=H.NewVditorRenderer(g,c.RenderOptions);i=h.BaseRenderer.Render();$s=3;case 3:if($c){$c=false;i=i.$blk();}if(i&&i.$blk!==undefined){break s;}j=i;b=B.ReplaceAll(($bytesToString(j)),"\xE2\x80\xB8","<wbr>");$s=-1;return b;}return;}if($f===undefined){$f={$blk:P.ptr.prototype.SpinVditorDOM};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.$s=$s;$f.$r=$r;return $f;};P.prototype.SpinVditorDOM=function(a){return this.$val.SpinVditorDOM(a);};P.ptr.prototype.HTML2VditorDOM=function(a){var a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;k=$f.k;l=$f.l;m=$f.m;n=$f.n;o=$f.o;p=$f.p;q=$f.q;r=$f.r;s=$f.s;t=$f.t;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b="";c=this;e=c.HTML2Markdown(a);$s=1;case 1:if($c){$c=false;e=e.$blk();}if(e&&e.$blk!==undefined){break s;}d=e;f=d[0];g=d[1];if(!($interfaceIsEqual($ifaceNil,g))){$s=2;continue;}$s=3;continue;case 2:h=g.Error();$s=4;case 4:if($c){$c=false;h=h.$blk();}if(h&&h.$blk!==undefined){break s;}b=h;$s=-1;return b;case 3:i=G.Parse("",(new AC($stringToBytes(f))),c.ParseOptions);$s=5;case 5:if($c){$c=false;i=i.$blk();}if(i&&i.$blk!==undefined){break s;}j=i;k=H.NewVditorRenderer(j,c.RenderOptions);l=c.HTML2VditorDOMRendererFuncs;m=0;n=$keys(l);while(true){if(!(m<n.length)){break;}o=l[n[m]];if(o===undefined){m++;continue;}p=o.k;q=o.v;r=p;(k.BaseRenderer.ExtRendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[D.NodeType.keyFor(r)]={k:r,v:q};m++;}s=k.BaseRenderer.Render();$s=6;case 6:if($c){$c=false;s=s.$blk();}if(s&&s.$blk!==undefined){break s;}t=s;b=($bytesToString(t));$s=-1;return b;}return;}if($f===undefined){$f={$blk:P.ptr.prototype.HTML2VditorDOM};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.k=k;$f.l=l;$f.m=m;$f.n=n;$f.o=o;$f.p=p;$f.q=q;$f.r=r;$f.s=s;$f.t=t;$f.$s=$s;$f.$r=$r;return $f;};P.prototype.HTML2VditorDOM=function(a){return this.$val.HTML2VditorDOM(a);};P.ptr.prototype.VditorDOM2HTML=function(a){var a,b,c,d,e,f,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b="";c=this;d=c.vditorDOM2Md(a);$s=1;case 1:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}e=d;f=c.Md2HTML(e);$s=2;case 2:if($c){$c=false;f=f.$blk();}if(f&&f.$blk!==undefined){break s;}b=f;$s=-1;return b;}return;}if($f===undefined){$f={$blk:P.ptr.prototype.VditorDOM2HTML};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.$s=$s;$f.$r=$r;return $f;};P.prototype.VditorDOM2HTML=function(a){return this.$val.VditorDOM2HTML(a);};P.ptr.prototype.Md2VditorDOM=function(a){var a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;k=$f.k;l=$f.l;m=$f.m;n=$f.n;o=$f.o;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b="";c=this;d=G.Parse("",(new AC($stringToBytes(a))),c.ParseOptions);$s=1;case 1:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}e=d;f=H.NewVditorRenderer(e,c.RenderOptions);g=c.Md2VditorDOMRendererFuncs;h=0;i=$keys(g);while(true){if(!(h<i.length)){break;}j=g[i[h]];if(j===undefined){h++;continue;}k=j.k;l=j.v;m=k;(f.BaseRenderer.ExtRendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[D.NodeType.keyFor(m)]={k:m,v:l};h++;}n=f.BaseRenderer.Render();$s=2;case 2:if($c){$c=false;n=n.$blk();}if(n&&n.$blk!==undefined){break s;}o=n;b=($bytesToString(o));$s=-1;return b;}return;}if($f===undefined){$f={$blk:P.ptr.prototype.Md2VditorDOM};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.k=k;$f.l=l;$f.m=m;$f.n=n;$f.o=o;$f.$s=$s;$f.$r=$r;return $f;};P.prototype.Md2VditorDOM=function(a){return this.$val.Md2VditorDOM(a);};P.ptr.prototype.VditorDOM2Md=function(a){var a,b,c,d,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b="";c=this;a=B.ReplaceAll(a,"\xE2\x80\x8B","");d=c.vditorDOM2Md(a);$s=1;case 1:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}b=d;b=B.ReplaceAll(b,"\xE2\x80\x8B","");$s=-1;return b;}return;}if($f===undefined){$f={$blk:P.ptr.prototype.VditorDOM2Md};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.$s=$s;$f.$r=$r;return $f;};P.prototype.VditorDOM2Md=function(a){return this.$val.VditorDOM2Md(a);};P.ptr.prototype.RenderEChartsJSON=function(a){var a,b,c,d,e,f,g,h,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b="";c=this;d=G.Parse("",(new AC($stringToBytes(a))),c.ParseOptions);$s=1;case 1:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}e=d;f=H.NewEChartsJSONRenderer(e,c.RenderOptions);g=f.Render();$s=2;case 2:if($c){$c=false;g=g.$blk();}if(g&&g.$blk!==undefined){break s;}h=g;b=($bytesToString(h));$s=-1;return b;}return;}if($f===undefined){$f={$blk:P.ptr.prototype.RenderEChartsJSON};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.$s=$s;$f.$r=$r;return $f;};P.prototype.RenderEChartsJSON=function(a){return this.$val.RenderEChartsJSON(a);};P.ptr.prototype.RenderKityMinderJSON=function(a){var a,b,c,d,e,f,g,h,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b="";c=this;d=G.Parse("",(new AC($stringToBytes(a))),c.ParseOptions);$s=1;case 1:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}e=d;f=H.NewKityMinderJSONRenderer(e,c.RenderOptions);g=f.Render();$s=2;case 2:if($c){$c=false;g=g.$blk();}if(g&&g.$blk!==undefined){break s;}h=g;b=($bytesToString(h));$s=-1;return b;}return;}if($f===undefined){$f={$blk:P.ptr.prototype.RenderKityMinderJSON};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.$s=$s;$f.$r=$r;return $f;};P.prototype.RenderKityMinderJSON=function(a){return this.$val.RenderKityMinderJSON(a);};P.ptr.prototype.HTML2Md=function(a){var a,b,c,d,e,f,g,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b="";c=this;e=c.HTML2Markdown(a);$s=1;case 1:if($c){$c=false;e=e.$blk();}if(e&&e.$blk!==undefined){break s;}d=e;b=d[0];f=d[1];if(!($interfaceIsEqual($ifaceNil,f))){$s=2;continue;}$s=3;continue;case 2:g=f.Error();$s=4;case 4:if($c){$c=false;g=g.$blk();}if(g&&g.$blk!==undefined){break s;}b=g;$s=-1;return b;case 3:$s=-1;return b;}return;}if($f===undefined){$f={$blk:P.ptr.prototype.HTML2Md};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.$s=$s;$f.$r=$r;return $f;};P.prototype.HTML2Md=function(a){return this.$val.HTML2Md(a);};P.ptr.prototype.vditorDOM2Md=function(a){var a,b,c,d,e,f,g,h,i,j,k,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;k=$f.k;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b="";c=this;a=B.ReplaceAll(a,"<wbr>","");a=B.ReplaceAll(a,"\t\n","\n");a=B.ReplaceAll(a,"    \n","  \n");d=c.parseHTML(a);$s=1;case 1:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}e=d;if(AD.nil===e){$s=-1;return b;}$r=c.adjustVditorDOM(e);$s=2;case 2:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}f=new G.Tree.ptr(new D.Node.ptr("","","",0,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false),new G.Context.ptr(AA.nil,c.ParseOptions,AE.nil,AE.nil,AC.nil,0,0,0,0,0,0,false,false,false,false,AE.nil,AE.nil),AG.nil,AH.nil,"","","","","",AI.nil,new $Int64(0,0),new $Int64(0,0),"");f.Context.Tip=f.Root;g=e.FirstChild;case 3:if(!(!(AD.nil===g))){$s=4;continue;}$r=c.genASTByVditorDOM(g,f);$s=5;case 5:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}g=g.NextSibling;$s=3;continue;case 4:$r=D.Walk(f.Root,(function(h,i){var h,i,j,k;if(i){j=h.Type;if((j===(10))||(j===(27))||(j===(304))||(j===(9))||(j===(15))||(j===(302))){h.Tokens=E.UnescapeHTML(h.Tokens);if(!(AE.nil===h.Next)&&(27===h.Next.Type)&&(h.CodeMarkerLen===h.Next.CodeMarkerLen)){h.FirstChild.Next.Tokens=$appendSlice(h.FirstChild.Next.Tokens,h.Next.FirstChild.Next.Tokens);h.Next.Unlink();}}else if(j===(7)){if(!(AE.nil===h.Parent)&&(7===h.Parent.Type)){k=h.Previous;if(!(AE.nil===k)){k.AppendChild(h);}}}}return 2;}));$s=6;case 6:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}h=H.NewOptions();h.AutoSpace=false;h.FixTermTypo=false;i=H.NewFormatRenderer(f,h);j=i.BaseRenderer.Render();$s=7;case 7:if($c){$c=false;j=j.$blk();}if(j&&j.$blk!==undefined){break s;}k=j;b=($bytesToString(k));$s=-1;return b;}return;}if($f===undefined){$f={$blk:P.ptr.prototype.vditorDOM2Md};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.k=k;$f.$s=$s;$f.$r=$r;return $f;};P.prototype.vditorDOM2Md=function(a){return this.$val.vditorDOM2Md(a);};P.ptr.prototype.parseHTML=function(a){var a,b,c,d,e,f,g,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b=this;c=B.NewReader(a);e=E.Parse(c);$s=1;case 1:if($c){$c=false;e=e.$blk();}if(e&&e.$blk!==undefined){break s;}d=e;f=d[0];g=d[1];if(!($interfaceIsEqual($ifaceNil,g))){$s=-1;return AD.nil;}if(!("html"===f.FirstChild.Data)){$s=-1;return f;}$s=-1;return f.FirstChild.LastChild;}return;}if($f===undefined){$f={$blk:P.ptr.prototype.parseHTML};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.$s=$s;$f.$r=$r;return $f;};P.prototype.parseHTML=function(a){return this.$val.parseHTML(a);};P.ptr.prototype.adjustVditorDOM=function(a){var a,b,c,d,e,f,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b=this;$r=b.removeEmptyNodes(a);$s=1;case 1:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}b.removeHighlightJSSpans(a);c=a.FirstChild;while(true){if(!(!(AD.nil===c))){break;}b.mergeVditorDOMList0(c);c=c.NextSibling;}d=a.FirstChild;while(true){if(!(!(AD.nil===d))){break;}b.adjustVditorDOMListTight0(d);d=d.NextSibling;}e=a.FirstChild;while(true){if(!(!(AD.nil===e))){break;}b.adjustVditorDOMListList(e);e=e.NextSibling;}f=a.FirstChild;case 2:if(!(!(AD.nil===f))){$s=3;continue;}$r=b.adjustVditorDOMListItemInP(f);$s=4;case 4:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}f=f.NextSibling;$s=2;continue;case 3:$s=-1;return;}return;}if($f===undefined){$f={$blk:P.ptr.prototype.adjustVditorDOM};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.$s=$s;$f.$r=$r;return $f;};P.prototype.adjustVditorDOM=function(a){return this.$val.adjustVditorDOM(a);};P.ptr.prototype.adjustVditorDOMListList=function(a){var a,b,c,d,e,f,g;b=this;if(!((42754===a.DataAtom))&&!((79618===a.DataAtom))&&!((45570===a.DataAtom))){return;}if(45570===a.DataAtom){if(!(AD.nil===a.FirstChild)&&(514===a.FirstChild.DataAtom)){a.FirstChild.DataAtom=0;a.FirstChild.Data="\xE2\x80\x8B";c=a.NextSibling;if(!(AD.nil===a.NextSibling)&&(45570===a.NextSibling.DataAtom)){d=c.FirstChild;if(!(AD.nil===d)&&"\xE2\x80\xB8\xE2\x80\x8B"===d.Data){d.Data="\xE2\x80\xB8\n";}}}}else{if(!(AD.nil===a.Parent)&&((42754===a.Parent.DataAtom)||(79618===a.Parent.DataAtom))){e=a.PrevSibling;if(!(AD.nil===e)){a.Unlink();e.AppendChild(a);}}}f=a.FirstChild;while(true){if(!(!(f===AD.nil))){break;}g=f.NextSibling;b.adjustVditorDOMListList(f);f=g;}};P.prototype.adjustVditorDOMListList=function(a){return this.$val.adjustVditorDOMListList(a);};P.ptr.prototype.removeHighlightJSSpans=function(a){var a,b,c,d,e,f,g,h;b=this;c=AZ.nil;d=a;while(true){if(!(!(AD.nil===d))){break;}b.hljsSpans(d,(e||(e=new BA(function(){return c;},function($v){c=$subslice(new AZ($v.$array),$v.$offset,$v.$offset+$v.$length);}))));d=d.NextSibling;}f=c;g=0;while(true){if(!(g<f.$length)){break;}h=((g<0||g>=f.$length)?($throwRuntimeError("index out of range"),undefined):f.$array[f.$offset+g]);h.Unlink();g++;}};P.prototype.removeHighlightJSSpans=function(a){return this.$val.removeHighlightJSSpans(a);};P.ptr.prototype.hljsSpans=function(a,b){var a,b,c,d,e;c=this;if((40708===a.DataAtom)&&B.HasPrefix(c.domAttrValue(a,"class"),"hljs-")){b.$set($append(b.$get(),a));d=c.domText(a);a.InsertBefore(new E.Node.ptr(AD.nil,AD.nil,AD.nil,AD.nil,AD.nil,1,0,d,"",AQ.nil));}e=a.FirstChild;while(true){if(!(!(e===AD.nil))){break;}c.hljsSpans(e,b);e=e.NextSibling;}};P.prototype.hljsSpans=function(a,b){return this.$val.hljsSpans(a,b);};P.ptr.prototype.removeEmptyNodes=function(a){var a,b,c,d,e,f,g,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b=[b];c=this;b[0]=AZ.nil;d=a;case 1:if(!(!(AD.nil===d))){$s=2;continue;}$r=c.searchEmptyNodes(d,(b.$ptr||(b.$ptr=new BA(function(){return this.$target[0];},function($v){this.$target[0]=$v;},b))));$s=3;case 3:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}d=d.NextSibling;$s=1;continue;case 2:e=b[0];f=0;while(true){if(!(f<e.$length)){break;}g=((f<0||f>=e.$length)?($throwRuntimeError("index out of range"),undefined):e.$array[e.$offset+f]);g.Unlink();f++;}$s=-1;return;}return;}if($f===undefined){$f={$blk:P.ptr.prototype.removeEmptyNodes};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.$s=$s;$f.$r=$r;return $f;};P.prototype.removeEmptyNodes=function(a){return this.$val.removeEmptyNodes(a);};P.ptr.prototype.searchEmptyNodes=function(a,b){var a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;k=$f.k;l=$f.l;m=$f.m;n=$f.n;o=$f.o;p=$f.p;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=this;d=a.DataAtom;if(d===(0)){$s=2;continue;}$s=3;continue;case 2:if(c.isInline(a.PrevSibling)||c.isInline(a.NextSibling)){$s=1;continue;}if(1===a.Type){$s=4;continue;}$s=5;continue;case 4:e=B.TrimLeft(a.Data," ");$s=6;case 6:if($c){$c=false;e=e.$blk();}if(e&&e.$blk!==undefined){break s;}f=e;g=B.TrimRight(f," ");$s=7;case 7:if($c){$c=false;g=g.$blk();}if(g&&g.$blk!==undefined){break s;}f=g;if(""===f){b.$set($append(b.$get(),a));$s=-1;return;}case 5:h=a.Parent;if(!(AD.nil===h)&&((79618===h.DataAtom)||(42754===h.DataAtom)||(45570===h.DataAtom))){$s=8;continue;}$s=9;continue;case 8:if(AD.nil===a.NextSibling||((1===a.NextSibling.Type)||(42754===a.NextSibling.DataAtom))){i=true;$s=12;continue s;}j=B.TrimSpace(a.Data);$s=13;case 13:if($c){$c=false;j=j.$blk();}if(j&&j.$blk!==undefined){break s;}i=""===j;case 12:if(i){$s=10;continue;}$s=11;continue;case 10:k=B.TrimRight(a.Data,"\n\t ");$s=14;case 14:if($c){$c=false;k=k.$blk();}if(k&&k.$blk!==undefined){break s;}a.Data=k;case 11:case 9:if(!(AD.nil===h)&&((365829===h.DataAtom)||(208901===h.DataAtom)||(9989===h.DataAtom)||(52226===h.DataAtom))){$s=15;continue;}$s=16;continue;case 15:l=B.TrimSpace(a.Data);$s=17;case 17:if($c){$c=false;l=l.$blk();}if(l&&l.$blk!==undefined){break s;}a.Data=l;case 16:if(""===a.Data){b.$set($append(b.$get(),a));}if(4===a.Type){b.$set($append(b.$get(),a));}case 3:case 1:m=a.FirstChild;case 18:if(!(!(m===AD.nil))){$s=19;continue;}$r=c.searchEmptyNodes(m,b);$s=20;case 20:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}m=m.NextSibling;$s=18;continue;case 19:n=a.DataAtom;if((n===(79618))||(n===(42754))){o=c.domAttrValue(a,"data-type");if("footnotes-defs-ol"===o){$s=-1;return;}if(!(AD.nil===a.FirstChild)&&!(AD.nil===a.FirstChild.FirstChild)&&!((281349===a.FirstChild.FirstChild.DataAtom))){$s=-1;return;}p=c.domText(a);if(""===p){b.$set($append(b.$get(),a));}}$s=-1;return;}return;}if($f===undefined){$f={$blk:P.ptr.prototype.searchEmptyNodes};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.k=k;$f.l=l;$f.m=m;$f.n=n;$f.o=o;$f.p=p;$f.$s=$s;$f.$r=$r;return $f;};P.prototype.searchEmptyNodes=function(a,b){return this.$val.searchEmptyNodes(a,b);};P.ptr.prototype.mergeVditorDOMList0=function(a){var a,b,c,d,e,f;b=this;c=a.DataAtom;if((c===(42754))||(c===(79618))){if(!(AD.nil===a.NextSibling)&&(a.DataAtom===a.NextSibling.DataAtom)&&(1===a.NextSibling.Attr.$length)){d=a.NextSibling.FirstChild;while(true){if(!(!(AD.nil===d))){break;}e=d.NextSibling;d.Unlink();a.AppendChild(d);d=e;}a.NextSibling.Unlink();}}f=a.FirstChild;while(true){if(!(!(f===AD.nil))){break;}b.mergeVditorDOMList0(f);f=f.NextSibling;}};P.prototype.mergeVditorDOMList0=function(a){return this.$val.mergeVditorDOMList0(a);};P.ptr.prototype.adjustVditorDOMListTight0=function(a){var a,b,c,d;b=this;c=a.DataAtom;if(c===(42754)){if(!b.parentIs(a,new AO([290819]))){b.setDOMAttrValue(a,"data-tight",b.isTightList(a));}}else if(c===(79618)){if(!b.parentIs(a,new AO([290819]))){b.setDOMAttrValue(a,"data-tight",b.isTightList(a));}}d=a.FirstChild;while(true){if(!(!(d===AD.nil))){break;}b.adjustVditorDOMListTight0(d);d=d.NextSibling;}};P.prototype.adjustVditorDOMListTight0=function(a){return this.$val.adjustVditorDOMListTight0(a);};P.ptr.prototype.adjustVditorDOMListItemInP=function(a){var a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;k=$f.k;l=$f.l;m=$f.m;n=$f.n;o=$f.o;p=$f.p;q=$f.q;r=$f.r;s=$f.s;t=$f.t;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b=this;c=a.DataAtom;if(c===(45570)){$s=2;continue;}$s=3;continue;case 2:if(!(AD.nil===a.PrevSibling)&&b.domAttrValue(a.PrevSibling,"data-node-id")===b.domAttrValue(a,"data-node-id")){$s=4;continue;}$s=5;continue;case 4:d=a;e=D.NewNodeID();$s=6;case 6:if($c){$c=false;e=e.$blk();}if(e&&e.$blk!==undefined){break s;}f=e;$r=b.setDOMAttrValue(d,"data-node-id",f);$s=7;case 7:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}case 5:if(!(AD.nil===a.PrevSibling)&&!(AD.nil===a.FirstChild)){$s=8;continue;}$s=9;continue;case 8:g=b.domAttrValue(a.FirstChild,"data-node-id");if(!(""===g)&&!(AD.nil===a.PrevSibling.LastChild)&&b.domAttrValue(a.PrevSibling.LastChild,"data-node-id")===g){$s=10;continue;}$s=11;continue;case 10:h=a.FirstChild;i=D.NewNodeID();$s=12;case 12:if($c){$c=false;i=i.$blk();}if(i&&i.$blk!==undefined){break s;}j=i;$r=b.setDOMAttrValue(h,"data-node-id",j);$s=13;case 13:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}case 11:case 9:k=a.FirstChild;while(true){if(!(!(AD.nil===k))){break;}if(b.listItemEnter(a)){l=new E.Node.ptr(AD.nil,AD.nil,AD.nil,AD.nil,AD.nil,3,3073,"p","",AQ.nil);l.AppendChild(new E.Node.ptr(AD.nil,AD.nil,AD.nil,AD.nil,AD.nil,1,0,"\xE2\x80\xB8","",AQ.nil));l.AppendChild(new E.Node.ptr(AD.nil,AD.nil,AD.nil,AD.nil,AD.nil,3,514,"br","",AQ.nil));a.FirstChild.Unlink();a.FirstChild.Unlink();a.AppendChild(l);k=l;k=k.NextSibling;continue;}if(!((3073===k.DataAtom))&&!((100106===k.DataAtom))&&!((42754===k.DataAtom))&&!((79618===k.DataAtom))&&!((92931===k.DataAtom))){m=b.forwardNextBlock(k);n=m[0];o=m[1];p=new E.Node.ptr(AD.nil,AD.nil,AD.nil,AD.nil,AD.nil,3,3073,"p","",AQ.nil);k.InsertBefore(p);q=n;r=0;while(true){if(!(r<q.$length)){break;}s=((r<0||r>=q.$length)?($throwRuntimeError("index out of range"),undefined):q.$array[q.$offset+r]);s.Unlink();p.AppendChild(s);r++;}k=o;if(AD.nil===k){break;}}k=k.NextSibling;}case 3:case 1:t=a.FirstChild;case 14:if(!(!(t===AD.nil))){$s=15;continue;}$r=b.adjustVditorDOMListItemInP(t);$s=16;case 16:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}t=t.NextSibling;$s=14;continue;case 15:$s=-1;return;}return;}if($f===undefined){$f={$blk:P.ptr.prototype.adjustVditorDOMListItemInP};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.k=k;$f.l=l;$f.m=m;$f.n=n;$f.o=o;$f.p=p;$f.q=q;$f.r=r;$f.s=s;$f.t=t;$f.$s=$s;$f.$r=$r;return $f;};P.prototype.adjustVditorDOMListItemInP=function(a){return this.$val.adjustVditorDOMListItemInP(a);};P.ptr.prototype.forwardNextBlock=function(a){var a,b,c,d,e,f;b=AZ.nil;c=AD.nil;d=this;e=a;while(true){if(!(!(AD.nil===e))){break;}f=e.DataAtom;if((f===(79618))||(f===(42754))||(f===(92931))||(f===(100106))){return[b,c];}b=$append(b,e);e=e.NextSibling;}return[b,c];};P.prototype.forwardNextBlock=function(a){return this.$val.forwardNextBlock(a);};P.ptr.prototype.listItemEnter=function(a){var a,b;b=this;if(AD.nil===a.FirstChild){return false;}if("\xE2\x80\xB8"===a.FirstChild.Data&&"br"===a.LastChild.Data){return true;}return false;};P.prototype.listItemEnter=function(a){return this.$val.listItemEnter(a);};P.ptr.prototype.isTightList=function(a){var a,b,c,d,e,f,g,h,i,j,k,l,m;b=this;c=a.FirstChild;while(true){if(!(!(AD.nil===c))){break;}d=0;e=0;f=0;g=0;h=d;i=e;j=f;k=g;l=c.FirstChild;while(true){if(!(!(AD.nil===l))){break;}m=l.DataAtom;if((m===(42754))||(m===(79618))){h=h+(1)>>0;}else if(m===(92931)){i=i+(1)>>0;}else if(m===(100106)){j=j+(1)>>0;}else if(m===(3073)){k=k+(1)>>0;}l=l.NextSibling;}if(1<k||1<j||1<i||1<h){return"false";}if(1<(k+i>>0)||1<(k+j>>0)||1<(k+h>>0)){return"false";}c=c.NextSibling;}return"true";};P.prototype.isTightList=function(a){return this.$val.isTightList(a);};P.ptr.prototype.genASTByVditorDOM=function(a,b){var a,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,bh,bi,bj,bk,bl,bm,bn,bo,bp,bq,br,bs,bt,bu,bv,bw,bx,by,bz,c,ca,cb,cc,cd,ce,cf,cg,ch,ci,cj,ck,cl,cm,cn,co,cp,cq,cr,cs,ct,cu,cv,cw,cx,cy,cz,d,da,db,dc,dd,de,df,dg,dh,di,dj,dk,dl,dm,dn,dp,dq,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,$s,$deferred,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;aa=$f.aa;ab=$f.ab;ac=$f.ac;ad=$f.ad;ae=$f.ae;af=$f.af;ag=$f.ag;ah=$f.ah;ai=$f.ai;aj=$f.aj;ak=$f.ak;al=$f.al;am=$f.am;an=$f.an;ao=$f.ao;ap=$f.ap;aq=$f.aq;ar=$f.ar;as=$f.as;at=$f.at;au=$f.au;av=$f.av;aw=$f.aw;ax=$f.ax;ay=$f.ay;az=$f.az;b=$f.b;ba=$f.ba;bb=$f.bb;bc=$f.bc;bd=$f.bd;be=$f.be;bf=$f.bf;bg=$f.bg;bh=$f.bh;bi=$f.bi;bj=$f.bj;bk=$f.bk;bl=$f.bl;bm=$f.bm;bn=$f.bn;bo=$f.bo;bp=$f.bp;bq=$f.bq;br=$f.br;bs=$f.bs;bt=$f.bt;bu=$f.bu;bv=$f.bv;bw=$f.bw;bx=$f.bx;by=$f.by;bz=$f.bz;c=$f.c;ca=$f.ca;cb=$f.cb;cc=$f.cc;cd=$f.cd;ce=$f.ce;cf=$f.cf;cg=$f.cg;ch=$f.ch;ci=$f.ci;cj=$f.cj;ck=$f.ck;cl=$f.cl;cm=$f.cm;cn=$f.cn;co=$f.co;cp=$f.cp;cq=$f.cq;cr=$f.cr;cs=$f.cs;ct=$f.ct;cu=$f.cu;cv=$f.cv;cw=$f.cw;cx=$f.cx;cy=$f.cy;cz=$f.cz;d=$f.d;da=$f.da;db=$f.db;dc=$f.dc;dd=$f.dd;de=$f.de;df=$f.df;dg=$f.dg;dh=$f.dh;di=$f.di;dj=$f.dj;dk=$f.dk;dl=$f.dl;dm=$f.dm;dn=$f.dn;dp=$f.dp;dq=$f.dq;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;k=$f.k;l=$f.l;m=$f.m;n=$f.n;o=$f.o;p=$f.p;q=$f.q;r=$f.r;s=$f.s;t=$f.t;u=$f.u;v=$f.v;w=$f.w;x=$f.x;y=$f.y;z=$f.z;$s=$f.$s;$deferred=$f.$deferred;$r=$f.$r;}var $err=null;try{s:while(true){switch($s){case 0:$deferred=[];$deferred.index=$curGoroutine.deferStack.length;$curGoroutine.deferStack.push($deferred);c=this;d=c.domAttrValue(a,"data-render");if("1"===d||"2"===d){$s=-1;return;}e=c.domAttrValue(a,"data-type");if(92931===a.DataAtom){$s=1;continue;}$s=2;continue;case 1:if("code-block"===e||"html-block"===e||"math-block"===e||"yaml-front-matter"===e){$s=3;continue;}if("link-ref-defs-block"===e){$s=4;continue;}if("footnotes-block"===e){$s=5;continue;}if("toc-block"===e){$s=6;continue;}$s=7;continue;case 3:f=a.FirstChild;case 8:if(!(!(f===AD.nil))){$s=9;continue;}$r=c.genASTByVditorDOM(f,b);$s=10;case 10:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}f=f.NextSibling;$s=8;continue;case 9:$s=7;continue;case 4:g=c.domText(a);h=new D.Node.ptr("","","",16,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(g))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false);b.Context.Tip.AppendChild(h);$s=7;continue;case 5:i=a.FirstChild;if(!((79618===i.DataAtom))){$s=-1;return;}j=i.FirstChild;case 11:if(!(!(AD.nil===j))){$s=12;continue;}if("\n"===j.Data){$s=13;continue;}$s=14;continue;case 13:j=j.NextSibling;$s=11;continue;case 14:k=new A.Buffer.ptr(AC.nil,0,0);l=E.Render(k,j);$s=15;case 15:if($c){$c=false;l=l.$blk();}if(l&&l.$blk!==undefined){break s;}m=l;if($interfaceIsEqual($ifaceNil,m)){$s=16;continue;}$s=17;continue;case 16:n=c.vditorDOM2Md("<ol data-type=\"footnotes-defs-ol\">"+k.String()+"</ol>");$s=19;case 19:if($c){$c=false;n=n.$blk();}if(n&&n.$blk!==undefined){break s;}o=n;p=c.domAttrValue(j,"data-marker");o=$substring(o,3);q=B.Split(o,"\n");o="";r=q;s=0;while(true){if(!(s<r.$length)){break;}t=s;u=((s<0||s>=r.$length)?($throwRuntimeError("index out of range"),undefined):r.$array[r.$offset+s]);if(0<t){o=o+("    "+u);}else{o=u;}o=o+("\n");s++;}o="["+p+"]: "+o;v=new D.Node.ptr("","","",16,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(o))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false);b.Context.Tip.AppendChild(v);$s=18;continue;case 17:$panic(m);case 18:j=j.NextSibling;$s=11;continue;case 12:$s=7;continue;case 6:w=new D.Node.ptr("","","",415,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false);b.Context.Tip.AppendChild(w);case 7:$s=-1;return;case 2:x=c.domAttrValue(a,"class");y=B.ReplaceAll(a.Data,"\xE2\x80\x8B","");z=new D.Node.ptr("","","",16,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(y))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false);aa=a.DataAtom;if(aa===(0)){$s=21;continue;}if((aa===(3073))||(aa===(92931))){$s=22;continue;}if((aa===(89090))||(aa===(187906))||(aa===(199938))||(aa===(214274))||(aa===(216834))||(aa===(412930))){$s=23;continue;}if(aa===(87810)){$s=24;continue;}if(aa===(100106)){$s=25;continue;}if((aa===(79618))||(aa===(42754))){$s=26;continue;}if(aa===(45570)){$s=27;continue;}if(aa===(290819)){$s=28;continue;}if((aa===(28162))||(aa===(1537))){$s=29;continue;}if((aa===(449798))||(aa===(257))){$s=30;continue;}if((aa===(283139))||(aa===(9473))||(aa===(53766))){$s=31;continue;}if(aa===(46596)){$s=32;continue;}if(aa===(378116)){$s=33;continue;}if(aa===(514)){$s=34;continue;}if(aa===(1)){$s=35;continue;}if(aa===(198403)){$s=36;continue;}if(aa===(281349)){$s=37;continue;}if(aa===(365829)){$s=38;continue;}if(aa===(208901)){$s=39;continue;}if(aa===(9989)){$s=40;continue;}if(aa===(52226)){$s=41;continue;}if((aa===(87554))||(aa===(37378))){$s=42;continue;}if(aa===(461571)){$s=43;continue;}if(aa===(40708)){$s=44;continue;}if(aa===(16132)){$s=45;continue;}if(aa===(29191)){$s=46;continue;}if(aa===(47363)){$s=47;continue;}if(aa===(459783)){$s=48;continue;}$s=49;continue;case 21:if(""===y){$s=-1;return;}ab=B.ReplaceAll(y,"\xE2\x80\xB8","");ab=B.ReplaceAll(ab,"\t","    ");if((!c.isInline(a.PrevSibling))&&B.HasPrefix(ab,"    ")){$s=51;continue;}$s=52;continue;case 51:z.Type=11;z.IsFencedCodeBlock=true;z.AppendChild(new D.Node.ptr("","","",12,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes("```"))),"","",false,false,false,0,false,0,3,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));z.AppendChild(new D.Node.ptr("","","",14,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));ac=B.HasPrefix(y,"\xE2\x80\xB8");if(ac){y=B.ReplaceAll(y,"\xE2\x80\xB8","");}ad=B.TrimSpace(y);$s=53;case 53:if($c){$c=false;ad=ad.$blk();}if(ad&&ad.$blk!==undefined){break s;}y=ad;if(ac){y="\xE2\x80\xB8"+y;}ae=new D.Node.ptr("","","",15,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(y))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false);z.AppendChild(ae);z.AppendChild(new D.Node.ptr("","","",13,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes("```"))),"","",false,false,false,0,false,0,3,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));b.Context.Tip.AppendChild(z);$s=-1;return;case 52:if(!(AD.nil===a.Parent)&&(1===a.Parent.DataAtom)){z.Type=40;}b.Context.Tip.AppendChild(z);$s=50;continue;case 22:z.Type=1;b.Context.Tip.AppendChild(z);b.Context.Tip=z;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=50;continue;case 23:af=B.TrimSpace(c.domText(a));$s=56;case 56:if($c){$c=false;af=af.$blk();}if(af&&af.$blk!==undefined){break s;}if(""===af){$s=54;continue;}$s=55;continue;case 54:$s=-1;return;case 55:z.Type=2;z.HeadingLevel=((((ag=z.Tokens,(1>=ag.$length?($throwRuntimeError("index out of range"),undefined):ag.$array[ag.$offset+1]))-48<<24>>>24)>>0));ah=c.domAttrValue(a,"data-marker");ai=c.domAttrValue(a,"data-id");if(!(""===ai)){a.LastChild.InsertAfter(new E.Node.ptr(AD.nil,AD.nil,AD.nil,AD.nil,AD.nil,1,0," {"+ai+"}","",AQ.nil));}z.HeadingSetext="="===ah||"-"===ah;if(!z.HeadingSetext){aj=new D.Node.ptr("","","",3,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false);aj.Tokens=(new AC($stringToBytes(B.Repeat("#",z.HeadingLevel))));z.AppendChild(aj);}b.Context.Tip.AppendChild(z);b.Context.Tip=z;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=50;continue;case 24:z.Type=4;b.Context.Tip.AppendChild(z);$s=50;continue;case 25:ak=B.TrimSpace(c.domText(a));$s=57;case 57:if($c){$c=false;ak=ak.$blk();}if(ak&&ak.$blk!==undefined){break s;}al=ak;if(""===al||"&gt;"===al||"\xE2\x80\xB8"===al){$s=-1;return;}z.Type=5;z.AppendChild(new D.Node.ptr("","","",6,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(">"))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));b.Context.Tip.AppendChild(z);b.Context.Tip=z;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=50;continue;case 26:if(AD.nil===a.FirstChild){$s=-1;return;}z.Type=7;z.ListData=new D.ListData.ptr(0,false,0,0,0,0,0,false,AC.nil,0);if(79618===a.DataAtom){z.ListData.Typ=1;}am=c.domAttrValue(a,"data-tight");if("true"===am||""===am){z.ListData.Tight=true;}b.Context.Tip.AppendChild(z);b.Context.Tip=z;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=50;continue;case 27:z.Type=8;an=c.domAttrValue(a,"data-marker");ao=0;if(""===an){if(!(AD.nil===a.Parent)&&(79618===a.Parent.DataAtom)){ap=c.domAttrValue(a.Parent.FirstChild,"data-marker");aq=c.domAttrValue(a.Parent,"start");if(""===aq){an="1";}else{an=aq;}if(!(""===ap)){an=an+($substring(ap,(ap.length-1>>0)));}else{an=an+(".");}}else{an=c.domAttrValue(a.Parent,"data-marker");if(""===an){an="*";}ao=an.charCodeAt(0);}}else{if(!(AD.nil===a.Parent)){if(79618===a.Parent.DataAtom){if("*"===an||"-"===an||"+"===an){an="1.";}if(!("1."===an)&&!("1)"===an)&&!(AD.nil===a.PrevSibling)&&!((45570===a.PrevSibling.DataAtom))&&!(AD.nil===a.Parent.Parent)&&((79618===a.Parent.Parent.DataAtom)||(42754===a.Parent.Parent.DataAtom))){an="1.";}if(!("1."===an)&&!("1)"===an)&&(79618===a.Parent.DataAtom)&&a.Parent.FirstChild===a&&""===c.domAttrValue(a.Parent,"start")){an="1.";}}else{if(!("*"===an)&&!("-"===an)&&!("+"===an)){an="*";}ao=an.charCodeAt(0);}}else{an=c.domAttrValue(a,"data-marker");if(""===an){an="*";}ao=an.charCodeAt(0);}}z.ListData=new D.ListData.ptr(0,false,ao,0,0,0,0,false,(new AC($stringToBytes(an))),0);if(0===ao){ar=N.Atoi(($encodeRune(an.charCodeAt(0))));z.ListData.Num=ar[0];z.ListData.Delimiter=an.charCodeAt((an.length-1>>0));}b.Context.Tip.AppendChild(z);b.Context.Tip=z;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=50;continue;case 28:if(378116===a.FirstChild.DataAtom){as=c.domAttrValue(a.Parent,"data-marker");if(""===as){as="```";}at=AC.nil;if(!(AD.nil===a.FirstChild.FirstChild)){at=(new AC($stringToBytes(a.FirstChild.FirstChild.Data)));}au=c.domAttrValue(a.Parent,"data-type");av=au;if(av===("math-block")){z.Type=300;z.AppendChild(new D.Node.ptr("","","",301,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));z.AppendChild(new D.Node.ptr("","","",302,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,at,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));z.AppendChild(new D.Node.ptr("","","",303,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));b.Context.Tip.AppendChild(z);}else if(av===("yaml-front-matter")){z.Type=425;z.AppendChild(new D.Node.ptr("","","",426,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));z.AppendChild(new D.Node.ptr("","","",427,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,at,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));z.AppendChild(new D.Node.ptr("","","",428,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));b.Context.Tip.AppendChild(z);}else if(av===("html-block")){z.Type=9;z.Tokens=at;b.Context.Tip.AppendChild(z);}else{z.Type=11;z.IsFencedCodeBlock=true;z.AppendChild(new D.Node.ptr("","","",12,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(as))),"","",false,false,false,0,false,0,as.length,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));z.AppendChild(new D.Node.ptr("","","",14,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));aw=c.domAttrValue(a.FirstChild,"class");if(B.Contains(aw,"language-")){ax=$substring(aw,9);z.LastChild.CodeBlockInfo=(new AC($stringToBytes(ax)));}ay=new D.Node.ptr("","","",15,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,at,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false);z.AppendChild(ay);z.AppendChild(new D.Node.ptr("","","",13,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(as))),"","",false,false,false,0,false,0,as.length,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));b.Context.Tip.AppendChild(z);}}$s=-1;return;case 29:if(AD.nil===a.FirstChild||(514===a.FirstChild.DataAtom)){$s=-1;return;}if(c.startsWithNewline(a.FirstChild)){$s=58;continue;}$s=59;continue;case 58:az=B.TrimLeft(a.FirstChild.Data,"\xE2\x80\x8B\n");$s=60;case 60:if($c){$c=false;az=az.$blk();}if(az&&az.$blk!==undefined){break s;}a.FirstChild.Data=az;b.Context.Tip.AppendChild(new D.Node.ptr("","","",16,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes("\xE2\x80\x8B\n"))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));case 59:ba=B.TrimSpace(c.domText(a));$s=61;case 61:if($c){$c=false;ba=ba.$blk();}if(ba&&ba.$blk!==undefined){break s;}bb=ba;bc=c.isEmptyText(a);$s=64;case 64:if($c){$c=false;bc=bc.$blk();}if(bc&&bc.$blk!==undefined){break s;}if(bc){$s=62;continue;}$s=63;continue;case 62:$s=-1;return;case 63:if("\xE2\x80\xB8"===bb){z.Tokens=I.CaretTokens;b.Context.Tip.AppendChild(z);$s=-1;return;}z.Type=17;bd=c.domAttrValue(a,"data-marker");if(""===bd){bd="*";}if("_"===bd){z.AppendChild(new D.Node.ptr("","","",20,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(bd))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}else{z.AppendChild(new D.Node.ptr("","","",18,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(bd))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}b.Context.Tip.AppendChild(z);if(!(AD.nil===a.FirstChild)&&"\xE2\x80\xB8"===a.FirstChild.Data&&!(AD.nil===a.LastChild)&&"br"===a.LastChild.Data){z.AppendChild(new D.Node.ptr("","","",16,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,I.CaretTokens,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));if("_"===bd){z.AppendChild(new D.Node.ptr("","","",21,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(bd))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}else{z.AppendChild(new D.Node.ptr("","","",19,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(bd))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}$s=-1;return;}a.FirstChild.Data=B.ReplaceAll(a.FirstChild.Data,"\xE2\x80\x8B","");if(B.HasPrefix(a.FirstChild.Data," ")&&AD.nil===a.FirstChild.PrevSibling){$s=65;continue;}$s=66;continue;case 65:be=B.TrimLeft(a.FirstChild.Data," ");$s=67;case 67:if($c){$c=false;be=be.$blk();}if(be&&be.$blk!==undefined){break s;}a.FirstChild.Data=be;z.InsertBefore(new D.Node.ptr("","","",16,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(" "))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));case 66:if(B.HasSuffix(a.FirstChild.Data," ")&&AD.nil===a.FirstChild.NextSibling){$s=68;continue;}$s=69;continue;case 68:bf=B.TrimRight(a.FirstChild.Data," ");$s=70;case 70:if($c){$c=false;bf=bf.$blk();}if(bf&&bf.$blk!==undefined){break s;}a.FirstChild.Data=bf;a.InsertAfter(new E.Node.ptr(AD.nil,AD.nil,AD.nil,AD.nil,AD.nil,1,0," ","",AQ.nil));case 69:if(B.HasSuffix(a.FirstChild.Data,"\n")&&AD.nil===a.FirstChild.NextSibling){$s=71;continue;}$s=72;continue;case 71:bg=B.TrimRight(a.FirstChild.Data,"\n");$s=73;case 73:if($c){$c=false;bg=bg.$blk();}if(bg&&bg.$blk!==undefined){break s;}a.FirstChild.Data=bg;a.InsertAfter(new E.Node.ptr(AD.nil,AD.nil,AD.nil,AD.nil,AD.nil,1,0,"\n","",AQ.nil));case 72:b.Context.Tip=z;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=50;continue;case 30:if(AD.nil===a.FirstChild||(514===a.FirstChild.DataAtom)){$s=-1;return;}if(c.startsWithNewline(a.FirstChild)){$s=74;continue;}$s=75;continue;case 74:bh=B.TrimLeft(a.FirstChild.Data,"\xE2\x80\x8B\n");$s=76;case 76:if($c){$c=false;bh=bh.$blk();}if(bh&&bh.$blk!==undefined){break s;}a.FirstChild.Data=bh;b.Context.Tip.AppendChild(new D.Node.ptr("","","",16,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes("\xE2\x80\x8B\n"))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));case 75:bi=B.TrimSpace(c.domText(a));$s=77;case 77:if($c){$c=false;bi=bi.$blk();}if(bi&&bi.$blk!==undefined){break s;}bj=bi;bk=c.isEmptyText(a);$s=80;case 80:if($c){$c=false;bk=bk.$blk();}if(bk&&bk.$blk!==undefined){break s;}if(bk){$s=78;continue;}$s=79;continue;case 78:$s=-1;return;case 79:if("\xE2\x80\xB8"===bj){z.Tokens=I.CaretTokens;b.Context.Tip.AppendChild(z);$s=-1;return;}z.Type=22;bl=c.domAttrValue(a,"data-marker");if(""===bl){bl="**";}if("__"===bl){z.AppendChild(new D.Node.ptr("","","",25,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(bl))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}else{z.AppendChild(new D.Node.ptr("","","",23,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(bl))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}b.Context.Tip.AppendChild(z);if(!(AD.nil===a.FirstChild)&&"\xE2\x80\xB8"===a.FirstChild.Data&&!(AD.nil===a.LastChild)&&"br"===a.LastChild.Data){z.AppendChild(new D.Node.ptr("","","",16,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,I.CaretTokens,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));if("__"===bl){z.AppendChild(new D.Node.ptr("","","",26,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(bl))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}else{z.AppendChild(new D.Node.ptr("","","",24,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(bl))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}$s=-1;return;}a.FirstChild.Data=B.ReplaceAll(a.FirstChild.Data,"\xE2\x80\x8B","");if(B.HasPrefix(a.FirstChild.Data," ")&&AD.nil===a.FirstChild.PrevSibling){$s=81;continue;}$s=82;continue;case 81:bm=B.TrimLeft(a.FirstChild.Data," ");$s=83;case 83:if($c){$c=false;bm=bm.$blk();}if(bm&&bm.$blk!==undefined){break s;}a.FirstChild.Data=bm;z.InsertBefore(new D.Node.ptr("","","",16,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(" "))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));case 82:if(B.HasSuffix(a.FirstChild.Data," ")&&AD.nil===a.FirstChild.NextSibling){$s=84;continue;}$s=85;continue;case 84:bn=B.TrimRight(a.FirstChild.Data," ");$s=86;case 86:if($c){$c=false;bn=bn.$blk();}if(bn&&bn.$blk!==undefined){break s;}a.FirstChild.Data=bn;a.InsertAfter(new E.Node.ptr(AD.nil,AD.nil,AD.nil,AD.nil,AD.nil,1,0," ","",AQ.nil));case 85:if(B.HasSuffix(a.FirstChild.Data,"\n")&&AD.nil===a.FirstChild.NextSibling){$s=87;continue;}$s=88;continue;case 87:bo=B.TrimRight(a.FirstChild.Data,"\n");$s=89;case 89:if($c){$c=false;bo=bo.$blk();}if(bo&&bo.$blk!==undefined){break s;}a.FirstChild.Data=bo;a.InsertAfter(new E.Node.ptr(AD.nil,AD.nil,AD.nil,AD.nil,AD.nil,1,0,"\n","",AQ.nil));case 88:b.Context.Tip=z;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=50;continue;case 31:if(AD.nil===a.FirstChild||(514===a.FirstChild.DataAtom)){$s=-1;return;}if(c.startsWithNewline(a.FirstChild)){$s=90;continue;}$s=91;continue;case 90:bp=B.TrimLeft(a.FirstChild.Data,"\xE2\x80\x8B\n");$s=92;case 92:if($c){$c=false;bp=bp.$blk();}if(bp&&bp.$blk!==undefined){break s;}a.FirstChild.Data=bp;b.Context.Tip.AppendChild(new D.Node.ptr("","","",16,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes("\xE2\x80\x8B\n"))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));case 91:bq=B.TrimSpace(c.domText(a));$s=93;case 93:if($c){$c=false;bq=bq.$blk();}if(bq&&bq.$blk!==undefined){break s;}br=bq;bs=c.isEmptyText(a);$s=96;case 96:if($c){$c=false;bs=bs.$blk();}if(bs&&bs.$blk!==undefined){break s;}if(bs){$s=94;continue;}$s=95;continue;case 94:$s=-1;return;case 95:if("\xE2\x80\xB8"===br){z.Tokens=I.CaretTokens;b.Context.Tip.AppendChild(z);$s=-1;return;}z.Type=101;bt=c.domAttrValue(a,"data-marker");if("~"===bt){z.AppendChild(new D.Node.ptr("","","",102,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(bt))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}else{z.AppendChild(new D.Node.ptr("","","",104,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(bt))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}b.Context.Tip.AppendChild(z);if(!(AD.nil===a.FirstChild)&&"\xE2\x80\xB8"===a.FirstChild.Data&&!(AD.nil===a.LastChild)&&"br"===a.LastChild.Data){z.AppendChild(new D.Node.ptr("","","",16,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,I.CaretTokens,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));if("~"===bt){z.AppendChild(new D.Node.ptr("","","",103,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(bt))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}else{z.AppendChild(new D.Node.ptr("","","",105,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(bt))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}$s=-1;return;}a.FirstChild.Data=B.ReplaceAll(a.FirstChild.Data,"\xE2\x80\x8B","");if(B.HasPrefix(a.FirstChild.Data," ")&&AD.nil===a.FirstChild.PrevSibling){$s=97;continue;}$s=98;continue;case 97:bu=B.TrimLeft(a.FirstChild.Data," ");$s=99;case 99:if($c){$c=false;bu=bu.$blk();}if(bu&&bu.$blk!==undefined){break s;}a.FirstChild.Data=bu;z.InsertBefore(new D.Node.ptr("","","",16,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(" "))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));case 98:if(B.HasSuffix(a.FirstChild.Data," ")&&AD.nil===a.FirstChild.NextSibling){$s=100;continue;}$s=101;continue;case 100:bv=B.TrimRight(a.FirstChild.Data," ");$s=102;case 102:if($c){$c=false;bv=bv.$blk();}if(bv&&bv.$blk!==undefined){break s;}a.FirstChild.Data=bv;a.InsertAfter(new E.Node.ptr(AD.nil,AD.nil,AD.nil,AD.nil,AD.nil,1,0," ","",AQ.nil));case 101:if(B.HasSuffix(a.FirstChild.Data,"\n")&&AD.nil===a.FirstChild.NextSibling){$s=103;continue;}$s=104;continue;case 103:bw=B.TrimRight(a.FirstChild.Data,"\n");$s=105;case 105:if($c){$c=false;bw=bw.$blk();}if(bw&&bw.$blk!==undefined){break s;}a.FirstChild.Data=bw;a.InsertAfter(new E.Node.ptr(AD.nil,AD.nil,AD.nil,AD.nil,AD.nil,1,0,"\n","",AQ.nil));case 104:b.Context.Tip=z;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=50;continue;case 32:if(AD.nil===a.FirstChild||(514===a.FirstChild.DataAtom)){$s=-1;return;}if(c.startsWithNewline(a.FirstChild)){$s=106;continue;}$s=107;continue;case 106:bx=B.TrimLeft(a.FirstChild.Data,"\xE2\x80\x8B\n");$s=108;case 108:if($c){$c=false;bx=bx.$blk();}if(bx&&bx.$blk!==undefined){break s;}a.FirstChild.Data=bx;b.Context.Tip.AppendChild(new D.Node.ptr("","","",16,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes("\xE2\x80\x8B\n"))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));case 107:by=B.TrimSpace(c.domText(a));$s=109;case 109:if($c){$c=false;by=by.$blk();}if(by&&by.$blk!==undefined){break s;}bz=by;ca=c.isEmptyText(a);$s=112;case 112:if($c){$c=false;ca=ca.$blk();}if(ca&&ca.$blk!==undefined){break s;}if(ca){$s=110;continue;}$s=111;continue;case 110:$s=-1;return;case 111:if("\xE2\x80\xB8"===bz){z.Tokens=I.CaretTokens;b.Context.Tip.AppendChild(z);$s=-1;return;}z.Type=450;cb=c.domAttrValue(a,"data-marker");if("="===cb){z.AppendChild(new D.Node.ptr("","","",451,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(cb))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}else{z.AppendChild(new D.Node.ptr("","","",453,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(cb))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}b.Context.Tip.AppendChild(z);if(!(AD.nil===a.FirstChild)&&"\xE2\x80\xB8"===a.FirstChild.Data&&!(AD.nil===a.LastChild)&&"br"===a.LastChild.Data){z.AppendChild(new D.Node.ptr("","","",16,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,I.CaretTokens,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));if("="===cb){z.AppendChild(new D.Node.ptr("","","",452,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(cb))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}else{z.AppendChild(new D.Node.ptr("","","",454,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(cb))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}$s=-1;return;}a.FirstChild.Data=B.ReplaceAll(a.FirstChild.Data,"\xE2\x80\x8B","");if(B.HasPrefix(a.FirstChild.Data," ")&&AD.nil===a.FirstChild.PrevSibling){$s=113;continue;}$s=114;continue;case 113:cc=B.TrimLeft(a.FirstChild.Data," ");$s=115;case 115:if($c){$c=false;cc=cc.$blk();}if(cc&&cc.$blk!==undefined){break s;}a.FirstChild.Data=cc;z.InsertBefore(new D.Node.ptr("","","",16,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(" "))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));case 114:if(B.HasSuffix(a.FirstChild.Data," ")&&AD.nil===a.FirstChild.NextSibling){$s=116;continue;}$s=117;continue;case 116:cd=B.TrimRight(a.FirstChild.Data," ");$s=118;case 118:if($c){$c=false;cd=cd.$blk();}if(cd&&cd.$blk!==undefined){break s;}a.FirstChild.Data=cd;a.InsertAfter(new E.Node.ptr(AD.nil,AD.nil,AD.nil,AD.nil,AD.nil,1,0," ","",AQ.nil));case 117:if(B.HasSuffix(a.FirstChild.Data,"\n")&&AD.nil===a.FirstChild.NextSibling){$s=119;continue;}$s=120;continue;case 119:ce=B.TrimRight(a.FirstChild.Data,"\n");$s=121;case 121:if($c){$c=false;ce=ce.$blk();}if(ce&&ce.$blk!==undefined){break s;}a.FirstChild.Data=ce;a.InsertAfter(new E.Node.ptr(AD.nil,AD.nil,AD.nil,AD.nil,AD.nil,1,0,"\n","",AQ.nil));case 120:b.Context.Tip=z;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=50;continue;case 33:if(AD.nil===a.FirstChild){$s=-1;return;}cf=B.ReplaceAll(a.FirstChild.Data,"\xE2\x80\x8B","");if("\xE2\x80\xB8"===cf){z.Tokens=I.CaretTokens;b.Context.Tip.AppendChild(z);$s=-1;return;}if(""===cf){$s=-1;return;}cg=(new AC($stringToBytes(cf)));if("html-inline"===e){z.Type=10;z.Tokens=cg;b.Context.Tip.AppendChild(z);$s=-1;return;}ch=c.domAttrValue(a,"data-marker");if(""===ch){ch="`";}if(A.HasPrefix(cg,(new AC($stringToBytes("`"))))){cg=$appendSlice((new AC($stringToBytes(" "))),cg);cg=$append(cg,32);}z.Type=27;z.CodeMarkerLen=ch.length;z.AppendChild(new D.Node.ptr("","","",28,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));z.AppendChild(new D.Node.ptr("","","",29,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,cg,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));z.AppendChild(new D.Node.ptr("","","",30,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));b.Context.Tip.AppendChild(z);$s=-1;return;case 34:if(!(AD.nil===a.Parent)){if(c.parentIs(a,new AO([37378,87554]))){if((AD.nil===a.PrevSibling||"\xE2\x80\xB8"===a.PrevSibling.Data)&&(AD.nil===a.NextSibling||"\xE2\x80\xB8"===a.NextSibling.Data)){$s=-1;return;}if(AD.nil===a.NextSibling){$s=-1;return;}z.Type=10;z.Tokens=(new AC($stringToBytes("<br />")));b.Context.Tip.AppendChild(z);$s=-1;return;}if(3073===a.Parent.DataAtom){if(!(AD.nil===a.Parent.NextSibling)&&((42754===a.Parent.NextSibling.DataAtom)||(79618===a.Parent.NextSibling.DataAtom)||(100106===a.Parent.NextSibling.DataAtom))){b.Context.Tip.AppendChild(new D.Node.ptr("","","",16,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes("\xE2\x80\x8B"))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));$s=-1;return;}if(!(AD.nil===a.Parent.Parent)&&!(AD.nil===a.Parent.Parent.NextSibling)&&(45570===a.Parent.Parent.NextSibling.DataAtom)){b.Context.Tip.AppendChild(new D.Node.ptr("","","",16,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes("\xE2\x80\x8B"))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));$s=-1;return;}}}z.Type=31;b.Context.Tip.AppendChild(z);b.Context.Tip=z;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=50;continue;case 35:if(a.FirstChild===AD.nil||(a.FirstChild.Type===1)){ci=c.domText(a);if(""===ci||"\xE2\x80\x8B"===ci){$s=-1;return;}}z.Type=33;z.AppendChild(new D.Node.ptr("","","",36,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));b.Context.Tip.AppendChild(z);b.Context.Tip=z;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=50;continue;case 36:cj=x;ck=c.domAttrValue(a,"alt");if("emoji"===cj){z.Type=200;cl=new D.Node.ptr("","","",202,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,b.EmojiImgTokens(ck,c.domAttrValue(a,"src")),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false);cl.AppendChild(new D.Node.ptr("","","",203,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(":"+ck+":"))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));z.AppendChild(cl);}else{if("link-ref"===e){z.Type=16;cm="!["+c.domAttrValue(a,"alt")+"]["+c.domAttrValue(a,"data-link-label")+"]";z.Tokens=(new AC($stringToBytes(cm)));b.Context.Tip.AppendChild(z);$s=-1;return;}z.Type=34;z.AppendChild(new D.Node.ptr("","","",35,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));z.AppendChild(new D.Node.ptr("","","",36,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));if(!(""===ck)){z.AppendChild(new D.Node.ptr("","","",40,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(ck))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}z.AppendChild(new D.Node.ptr("","","",37,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));z.AppendChild(new D.Node.ptr("","","",38,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));cn=c.domAttrValue(a,"src");if(!(""===c.RenderOptions.LinkBase)){cn=B.ReplaceAll(cn,c.RenderOptions.LinkBase,"");}if(!(""===c.RenderOptions.LinkPrefix)){cn=B.ReplaceAll(cn,c.RenderOptions.LinkPrefix,"");}z.AppendChild(new D.Node.ptr("","","",41,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(cn))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));co=c.domAttrValue(a,"title");if(!(""===co)){z.AppendChild(new D.Node.ptr("","","",43,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));z.AppendChild(new D.Node.ptr("","","",42,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(co))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}z.AppendChild(new D.Node.ptr("","","",39,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}b.Context.Tip.AppendChild(z);b.Context.Tip=z;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=50;continue;case 37:if(AD.nil===a.Parent||AD.nil===a.Parent.Parent||(!((3073===a.Parent.DataAtom))&&!((45570===a.Parent.DataAtom)))){$s=-1;return;}if(!(AD.nil===a.NextSibling)&&(40708===a.NextSibling.DataAtom)){$s=122;continue;}$s=123;continue;case 122:cp=B.TrimSpace(a.NextSibling.FirstChild.Data);$s=124;case 124:if($c){$c=false;cp=cp.$blk();}if(cp&&cp.$blk!==undefined){break s;}a.NextSibling.FirstChild.Data=cp;$s=20;continue;case 123:z.Type=100;z.TaskListItemChecked=c.hasAttr(a,"checked");b.Context.Tip.AppendChild(z);if(!(AE.nil===z.Parent.Parent)&&!(AK.nil===z.Parent.Parent.ListData)){z.Parent.Parent.ListData.Typ=3;}if(!(AE.nil===z.Parent.Parent.Parent)&&!(AK.nil===z.Parent.Parent.Parent.ListData)){z.Parent.Parent.Parent.ListData.Typ=3;}$s=50;continue;case 38:z.Type=106;cq=AL.nil;cr=a.FirstChild.FirstChild.FirstChild;while(true){if(!(!(AD.nil===cr))){break;}cs=c.domAttrValue(cr,"align");ct=cs;if(ct===("left")){cq=$append(cq,1);}else if(ct===("center")){cq=$append(cq,2);}else if(ct===("right")){cq=$append(cq,3);}else{cq=$append(cq,0);}cr=cr.NextSibling;}z.TableAligns=cq;b.Context.Tip.AppendChild(z);b.Context.Tip=z;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=50;continue;case 39:z.Type=107;b.Context.Tip.AppendChild(z);b.Context.Tip=z;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=50;continue;case 40:$s=50;continue;case 41:z.Type=108;b.Context.Tip.AppendChild(z);b.Context.Tip=z;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=50;continue;case 42:z.Type=109;cu=c.domAttrValue(a,"align");cv=0;cw=cu;if(cw===("left")){cv=1;}else if(cw===("center")){cv=2;}else if(cw===("right")){cv=3;}else{cv=0;}z.TableCellAlign=cv;z.Tokens=AC.nil;b.Context.Tip.AppendChild(z);b.Context.Tip=z;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=50;continue;case 43:if(AD.nil===a.FirstChild){$s=20;continue;}if("footnotes-ref"===e){z.Type=16;z.Tokens=(new AC($stringToBytes("["+c.domAttrValue(a,"data-footnotes-label")+"]")));if(B.Contains(a.FirstChild.Data,"\xE2\x80\xB8")){z.Tokens=$appendSlice(z.Tokens,I.CaretTokens);}b.Context.Tip.AppendChild(z);}$s=-1;return;case 44:if(AD.nil===a.FirstChild){$s=20;continue;}if(B.Contains(x,"vditor-comment")){z.Type=10;cx=new A.Buffer.ptr(AC.nil,0,0);cx.WriteString("<span ");cy=a.Attr;cz=0;while(true){if(!(cz<cy.$length)){break;}da=cz;db=((cz<0||cz>=cy.$length)?($throwRuntimeError("index out of range"),undefined):cy.$array[cy.$offset+cz]);cx.WriteString(db.Key);if(!(""===db.Val)){cx.WriteString("=\"");cx.WriteString(db.Val);cx.WriteString("\"");}if(da<(a.Attr.$length-1>>0)){cx.WriteString(" ");}cz++;}cx.WriteString(">");z.Tokens=cx.Bytes();b.Context.Tip.AppendChild(z);$s=20;continue;}if("link-ref"===e){z.Type=16;dc="["+a.FirstChild.Data+"]["+c.domAttrValue(a,"data-link-label")+"]";if(!(AD.nil===a.NextSibling)&&"2"===c.domAttrValue(a.NextSibling,"data-render")){dc="!"+dc;}z.Tokens=(new AC($stringToBytes(dc)));b.Context.Tip.AppendChild(z);$s=-1;return;}dd=AC.nil;if("\xE2\x80\x8B"===a.FirstChild.Data&&""===c.domAttrValue(a,"style")&&!(AD.nil===a.FirstChild.NextSibling)){dd=(new AC($stringToBytes(a.FirstChild.NextSibling.FirstChild.Data)));}else if(378116===a.FirstChild.DataAtom){dd=(new AC($stringToBytes(a.FirstChild.FirstChild.Data)));if("\xE2\x80\x8B"===($bytesToString(dd))){$s=20;continue;}}if("math-inline"===e){z.Type=304;z.AppendChild(new D.Node.ptr("","","",305,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));z.AppendChild(new D.Node.ptr("","","",306,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,dd,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));z.AppendChild(new D.Node.ptr("","","",307,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));b.Context.Tip.AppendChild(z);$s=-1;return;}else if("html-inline"===e){z.Type=10;z.Tokens=dd;b.Context.Tip.AppendChild(z);$s=-1;return;}else if("code-inline"===e){z.Tokens=dd;b.Context.Tip.AppendChild(z);$s=-1;return;}else if("html-entity"===e){z.Type=16;z.Tokens=dd;b.Context.Tip.AppendChild(z);$s=-1;return;}$s=20;continue;$s=50;continue;case 45:z.Type=16;z.Tokens=(new AC($stringToBytes(c.domText(a))));b.Context.Tip.AppendChild(z);$s=-1;return;case 46:z.Type=9;de=c.domHTML(a);$s=125;case 125:if($c){$c=false;de=de.$blk();}if(de&&de.$blk!==undefined){break s;}z.Tokens=de;z.Tokens=(df=A.SplitAfter(z.Tokens,(new AC($stringToBytes("</summary>")))),(0>=df.$length?($throwRuntimeError("index out of range"),undefined):df.$array[df.$offset+0]));b.Context.Tip.AppendChild(z);$s=50;continue;case 47:z.Type=10;dg=c.domHTML(a);$s=126;case 126:if($c){$c=false;dg=dg.$blk();}if(dg&&dg.$blk!==undefined){break s;}z.Tokens=dg;b.Context.Tip.AppendChild(z);$s=-1;return;case 48:$s=-1;return;case 49:z.Type=9;dh=c.domHTML(a);$s=127;case 127:if($c){$c=false;dh=dh.$blk();}if(dh&&dh.$blk!==undefined){break s;}z.Tokens=dh;b.Context.Tip.AppendChild(z);$s=-1;return;case 50:case 20:di=a.FirstChild;case 128:if(!(!(di===AD.nil))){$s=129;continue;}$r=c.genASTByVditorDOM(di,b);$s=130;case 130:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}di=di.NextSibling;$s=128;continue;case 129:dj=a.DataAtom;if(dj===(40708)){if(B.Contains(x,"vditor-comment")){b.Context.Tip.AppendChild(new D.Node.ptr("","","",10,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes("</span>"))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}}else if((dj===(28162))||(dj===(1537))){dk=c.domAttrValue(a,"data-marker");if(""===dk){dk="*";}if("_"===dk){z.AppendChild(new D.Node.ptr("","","",21,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(dk))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}else{z.AppendChild(new D.Node.ptr("","","",19,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(dk))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}}else if((dj===(449798))||(dj===(257))){dl=c.domAttrValue(a,"data-marker");if(""===dl){dl="**";}if("__"===dl){z.AppendChild(new D.Node.ptr("","","",26,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(dl))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}else{z.AppendChild(new D.Node.ptr("","","",24,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(dl))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}}else if(dj===(1)){z.AppendChild(new D.Node.ptr("","","",37,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));z.AppendChild(new D.Node.ptr("","","",38,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));dm=c.domAttrValue(a,"href");if(!(""===c.RenderOptions.LinkBase)){dm=B.ReplaceAll(dm,c.RenderOptions.LinkBase,"");}if(!(""===c.RenderOptions.LinkPrefix)){dm=B.ReplaceAll(dm,c.RenderOptions.LinkPrefix,"");}z.AppendChild(new D.Node.ptr("","","",41,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(dm))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));dn=c.domAttrValue(a,"title");if(!(""===dn)){z.AppendChild(new D.Node.ptr("","","",43,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));z.AppendChild(new D.Node.ptr("","","",42,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(dn))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}z.AppendChild(new D.Node.ptr("","","",39,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}else if((dj===(283139))||(dj===(9473))||(dj===(53766))){dp=c.domAttrValue(a,"data-marker");if("~"===dp){z.AppendChild(new D.Node.ptr("","","",103,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(dp))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}else{z.AppendChild(new D.Node.ptr("","","",105,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(dp))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}}else if(dj===(46596)){dq=c.domAttrValue(a,"data-marker");if("="===dq){z.AppendChild(new D.Node.ptr("","","",452,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(dq))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}else{z.AppendChild(new D.Node.ptr("","","",454,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(dq))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}}else if(dj===(29191)){b.Context.Tip.AppendChild(new D.Node.ptr("","","",9,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes("</details>"))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}$s=-1;return;}return;}}catch(err){$err=err;$s=-1;}finally{$callDeferred($deferred,$err);if($curGoroutine.asleep){if($f===undefined){$f={$blk:P.ptr.prototype.genASTByVditorDOM};}$f.a=a;$f.aa=aa;$f.ab=ab;$f.ac=ac;$f.ad=ad;$f.ae=ae;$f.af=af;$f.ag=ag;$f.ah=ah;$f.ai=ai;$f.aj=aj;$f.ak=ak;$f.al=al;$f.am=am;$f.an=an;$f.ao=ao;$f.ap=ap;$f.aq=aq;$f.ar=ar;$f.as=as;$f.at=at;$f.au=au;$f.av=av;$f.aw=aw;$f.ax=ax;$f.ay=ay;$f.az=az;$f.b=b;$f.ba=ba;$f.bb=bb;$f.bc=bc;$f.bd=bd;$f.be=be;$f.bf=bf;$f.bg=bg;$f.bh=bh;$f.bi=bi;$f.bj=bj;$f.bk=bk;$f.bl=bl;$f.bm=bm;$f.bn=bn;$f.bo=bo;$f.bp=bp;$f.bq=bq;$f.br=br;$f.bs=bs;$f.bt=bt;$f.bu=bu;$f.bv=bv;$f.bw=bw;$f.bx=bx;$f.by=by;$f.bz=bz;$f.c=c;$f.ca=ca;$f.cb=cb;$f.cc=cc;$f.cd=cd;$f.ce=ce;$f.cf=cf;$f.cg=cg;$f.ch=ch;$f.ci=ci;$f.cj=cj;$f.ck=ck;$f.cl=cl;$f.cm=cm;$f.cn=cn;$f.co=co;$f.cp=cp;$f.cq=cq;$f.cr=cr;$f.cs=cs;$f.ct=ct;$f.cu=cu;$f.cv=cv;$f.cw=cw;$f.cx=cx;$f.cy=cy;$f.cz=cz;$f.d=d;$f.da=da;$f.db=db;$f.dc=dc;$f.dd=dd;$f.de=de;$f.df=df;$f.dg=dg;$f.dh=dh;$f.di=di;$f.dj=dj;$f.dk=dk;$f.dl=dl;$f.dm=dm;$f.dn=dn;$f.dp=dp;$f.dq=dq;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.k=k;$f.l=l;$f.m=m;$f.n=n;$f.o=o;$f.p=p;$f.q=q;$f.r=r;$f.s=s;$f.t=t;$f.u=u;$f.v=v;$f.w=w;$f.x=x;$f.y=y;$f.z=z;$f.$s=$s;$f.$deferred=$deferred;$f.$r=$r;return $f;}}};P.prototype.genASTByVditorDOM=function(a,b){return this.$val.genASTByVditorDOM(a,b);};P.ptr.prototype.hasAttr=function(a,b){var a,b,c,d,e,f;c=this;d=a.Attr;e=0;while(true){if(!(e<d.$length)){break;}f=((e<0||e>=d.$length)?($throwRuntimeError("index out of range"),undefined):d.$array[d.$offset+e]);if(f.Key===b){return true;}e++;}return false;};P.prototype.hasAttr=function(a,b){return this.$val.hasAttr(a,b);};P.ptr.prototype.domAttrValue=function(a,b){var a,b,c,d,e,f;c=this;if(AD.nil===a){return"";}d=a.Attr;e=0;while(true){if(!(e<d.$length)){break;}f=((e<0||e>=d.$length)?($throwRuntimeError("index out of range"),undefined):d.$array[d.$offset+e]);if(f.Key===b){return f.Val;}e++;}return"";};P.prototype.domAttrValue=function(a,b){return this.$val.domAttrValue(a,b);};P.ptr.prototype.domCustomAttrs=function(a){var a,b,c,d,e,f,g;b=false;c=this;b=$makeMap($String.keyFor,[]);d=a.Attr;e=0;while(true){if(!(e<d.$length)){break;}f=((e<0||e>=d.$length)?($throwRuntimeError("index out of range"),undefined):d.$array[d.$offset+e]);if(B.HasPrefix(f.Key,"custom-")){g=f.Key;(b||$throwRuntimeError("assignment to entry in nil map"))[$String.keyFor(g)]={k:g,v:f.Val};}e++;}if(1>$keys(b).length){b=false;return b;}return b;};P.prototype.domCustomAttrs=function(a){return this.$val.domCustomAttrs(a);};P.ptr.prototype.domChild=function(a,b){var a,b,c,d,e;c=this;if(AD.nil===a){return AD.nil;}d=a.FirstChild;while(true){if(!(!(AD.nil===d))){break;}e=c.domChild0(d,b);if(!(AD.nil===e)){return e;}d=d.NextSibling;}return AD.nil;};P.prototype.domChild=function(a,b){return this.$val.domChild(a,b);};P.ptr.prototype.domChild0=function(a,b){var a,b,c,d,e;c=this;if(a.DataAtom===b){return a;}d=a.FirstChild;while(true){if(!(!(AD.nil===d))){break;}e=c.domChild0(d,b);if(!(AD.nil===e)){return e;}d=d.NextSibling;}return AD.nil;};P.prototype.domChild0=function(a,b){return this.$val.domChild0(a,b);};P.ptr.prototype.setDOMAttrValue=function(a,b,c){var a,b,c,d,e,f,g;d=this;if(AD.nil===a){return;}e=a.Attr;f=0;while(true){if(!(f<e.$length)){break;}g=((f<0||f>=e.$length)?($throwRuntimeError("index out of range"),undefined):e.$array[e.$offset+f]);if(g.Key===b){g.Val=c;return;}f++;}a.Attr=$append(a.Attr,new E.Attribute.ptr("",b,c));};P.prototype.setDOMAttrValue=function(a,b,c){return this.$val.setDOMAttrValue(a,b,c);};P.ptr.prototype.parentIs=function(a,b){var a,b,c,d,e,f,g;c=this;d=a.Parent;while(true){if(!(!(AD.nil===d))){break;}e=b;f=0;while(true){if(!(f<e.$length)){break;}g=((f<0||f>=e.$length)?($throwRuntimeError("index out of range"),undefined):e.$array[e.$offset+f]);if(g===d.DataAtom){return true;}f++;}d=d.Parent;}return false;};P.prototype.parentIs=function(a,b){return this.$val.parentIs(a,b);};P.ptr.prototype.domText=function(a){var a,b,c,d;b=this;c=new A.Buffer.ptr(AC.nil,0,0);if(1===a.Type){c.WriteString(a.Data);return c.String();}d=a.FirstChild;while(true){if(!(!(AD.nil===d))){break;}b.domText0(d,c);d=d.NextSibling;}return c.String();};P.prototype.domText=function(a){return this.$val.domText(a);};P.ptr.prototype.domText0=function(a,b){var a,b,c,d,e,f;c=this;if(AD.nil===a){return;}d=c.domAttrValue(a,"data-render");if("1"===d||"2"===d){return;}if("svg"===a.Namespace){return;}if((0===a.DataAtom)&&(3===a.Type)){return;}e=a.DataAtom;if(e===(0)){b.WriteString(a.Data);}else if(e===(514)){b.WriteString("\n");}f=a.FirstChild;while(true){if(!(!(AD.nil===f))){break;}c.domText0(f,b);f=f.NextSibling;}};P.prototype.domText0=function(a,b){return this.$val.domText0(a,b);};P.ptr.prototype.domHTML=function(a){var a,b,c,d,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b=this;if(AD.nil===a){$s=-1;return AC.nil;}c=new A.Buffer.ptr(AC.nil,0,0);d=E.Render(c,a);$s=1;case 1:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}d;$s=-1;return A.ReplaceAll(c.Bytes(),(new AC($stringToBytes("\xE2\x80\x8B"))),AC.nil);}return;}if($f===undefined){$f={$blk:P.ptr.prototype.domHTML};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.$s=$s;$f.$r=$r;return $f;};P.prototype.domHTML=function(a){return this.$val.domHTML(a);};P.ptr.prototype.isEmptyText=function(a){var a,b,c,d,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b=this;if(!(AD.nil===a.FirstChild)&&"block-ref"===b.domAttrValue(a.FirstChild,"data-type")){$s=-1;return false;}c=B.TrimSpace(b.domText(a));$s=1;case 1:if($c){$c=false;c=c.$blk();}if(c&&c.$blk!==undefined){break s;}d=c;if(""===d||"\xE2\x80\x8B"===d){$s=-1;return true;}if("\xE2\x80\x8B\xE2\x80\xB8"===d||"\xE2\x80\xB8\xE2\x80\x8B"===d){$s=-1;return true;}$s=-1;return false;}return;}if($f===undefined){$f={$blk:P.ptr.prototype.isEmptyText};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.$s=$s;$f.$r=$r;return $f;};P.prototype.isEmptyText=function(a){return this.$val.isEmptyText(a);};P.ptr.prototype.startsWithNewline=function(a){var a,b;b=this;return B.HasPrefix(a.Data,"\n")||B.HasPrefix(a.Data,"\xE2\x80\x8B\n");};P.prototype.startsWithNewline=function(a){return this.$val.startsWithNewline(a);};P.ptr.prototype.isInline=function(a){var a,b;b=this;if(AD.nil===a){return false;}return(0===a.DataAtom)||(378116===a.DataAtom)||(449798===a.DataAtom)||(257===a.DataAtom)||(28162===a.DataAtom)||(1537===a.DataAtom)||(46596===a.DataAtom)||(283139===a.DataAtom)||(9473===a.DataAtom)||(53766===a.DataAtom)||(1===a.DataAtom)||(198403===a.DataAtom)||(2817===a.DataAtom)||(47363===a.DataAtom)||(40708===a.DataAtom);};P.prototype.isInline=function(a){return this.$val.isInline(a);};AS.methods=[{prop:"HTML2Markdown",name:"HTML2Markdown",pkg:"",typ:$funcType([$String],[$String,$error],false)},{prop:"HTML2Tree",name:"HTML2Tree",pkg:"",typ:$funcType([$String],[AA],false)},{prop:"genASTByDOM",name:"genASTByDOM",pkg:"github.com/88250/lute",typ:$funcType([AD,AA],[],false)},{prop:"Markdown",name:"Markdown",pkg:"",typ:$funcType([$String,AC],[AC],false)},{prop:"MarkdownStr",name:"MarkdownStr",pkg:"",typ:$funcType([$String,$String],[$String],false)},{prop:"Format",name:"Format",pkg:"",typ:$funcType([$String,AC],[AC],false)},{prop:"FormatStr",name:"FormatStr",pkg:"",typ:$funcType([$String,$String],[$String],false)},{prop:"TextBundle",name:"TextBundle",pkg:"",typ:$funcType([$String,AC,AI],[AC,AI],false)},{prop:"TextBundleStr",name:"TextBundleStr",pkg:"",typ:$funcType([$String,$String,AI],[$String,AI],false)},{prop:"HTML2Text",name:"HTML2Text",pkg:"",typ:$funcType([$String],[$String],false)},{prop:"RenderJSON",name:"RenderJSON",pkg:"",typ:$funcType([$String],[$String],false)},{prop:"Space",name:"Space",pkg:"",typ:$funcType([$String],[$String],false)},{prop:"IsValidLinkDest",name:"IsValidLinkDest",pkg:"",typ:$funcType([$String],[$Bool],false)},{prop:"GetEmojis",name:"GetEmojis",pkg:"",typ:$funcType([],[BB],false)},{prop:"PutEmojis",name:"PutEmojis",pkg:"",typ:$funcType([BB],[],false)},{prop:"RemoveEmoji",name:"RemoveEmoji",pkg:"",typ:$funcType([$String],[$String],false)},{prop:"GetTerms",name:"GetTerms",pkg:"",typ:$funcType([],[BB],false)},{prop:"PutTerms",name:"PutTerms",pkg:"",typ:$funcType([BB],[],false)},{prop:"ProtylePreview",name:"ProtylePreview",pkg:"",typ:$funcType([AA,AB],[$String],false)},{prop:"Tree2HTML",name:"Tree2HTML",pkg:"",typ:$funcType([AA,AB],[$String],false)},{prop:"SetGFMTable",name:"SetGFMTable",pkg:"",typ:$funcType([$Bool],[],false)},{prop:"SetGFMTaskListItem",name:"SetGFMTaskListItem",pkg:"",typ:$funcType([$Bool],[],false)},{prop:"SetGFMTaskListItemClass",name:"SetGFMTaskListItemClass",pkg:"",typ:$funcType([$String],[],false)},{prop:"SetGFMStrikethrough",name:"SetGFMStrikethrough",pkg:"",typ:$funcType([$Bool],[],false)},{prop:"SetGFMAutoLink",name:"SetGFMAutoLink",pkg:"",typ:$funcType([$Bool],[],false)},{prop:"SetSoftBreak2HardBreak",name:"SetSoftBreak2HardBreak",pkg:"",typ:$funcType([$Bool],[],false)},{prop:"SetCodeSyntaxHighlight",name:"SetCodeSyntaxHighlight",pkg:"",typ:$funcType([$Bool],[],false)},{prop:"SetCodeSyntaxHighlightDetectLang",name:"SetCodeSyntaxHighlightDetectLang",pkg:"",typ:$funcType([$Bool],[],false)},{prop:"SetCodeSyntaxHighlightInlineStyle",name:"SetCodeSyntaxHighlightInlineStyle",pkg:"",typ:$funcType([$Bool],[],false)},{prop:"SetCodeSyntaxHighlightLineNum",name:"SetCodeSyntaxHighlightLineNum",pkg:"",typ:$funcType([$Bool],[],false)},{prop:"SetCodeSyntaxHighlightStyleName",name:"SetCodeSyntaxHighlightStyleName",pkg:"",typ:$funcType([$String],[],false)},{prop:"SetFootnotes",name:"SetFootnotes",pkg:"",typ:$funcType([$Bool],[],false)},{prop:"SetToC",name:"SetToC",pkg:"",typ:$funcType([$Bool],[],false)},{prop:"SetHeadingID",name:"SetHeadingID",pkg:"",typ:$funcType([$Bool],[],false)},{prop:"SetAutoSpace",name:"SetAutoSpace",pkg:"",typ:$funcType([$Bool],[],false)},{prop:"SetFixTermTypo",name:"SetFixTermTypo",pkg:"",typ:$funcType([$Bool],[],false)},{prop:"SetEmoji",name:"SetEmoji",pkg:"",typ:$funcType([$Bool],[],false)},{prop:"SetEmojis",name:"SetEmojis",pkg:"",typ:$funcType([BB],[],false)},{prop:"SetEmojiSite",name:"SetEmojiSite",pkg:"",typ:$funcType([$String],[],false)},{prop:"SetHeadingAnchor",name:"SetHeadingAnchor",pkg:"",typ:$funcType([$Bool],[],false)},{prop:"SetTerms",name:"SetTerms",pkg:"",typ:$funcType([BB],[],false)},{prop:"SetVditorWYSIWYG",name:"SetVditorWYSIWYG",pkg:"",typ:$funcType([$Bool],[],false)},{prop:"SetProtyleWYSIWYG",name:"SetProtyleWYSIWYG",pkg:"",typ:$funcType([$Bool],[],false)},{prop:"SetVditorIR",name:"SetVditorIR",pkg:"",typ:$funcType([$Bool],[],false)},{prop:"SetVditorSV",name:"SetVditorSV",pkg:"",typ:$funcType([$Bool],[],false)},{prop:"SetInlineMathAllowDigitAfterOpenMarker",name:"SetInlineMathAllowDigitAfterOpenMarker",pkg:"",typ:$funcType([$Bool],[],false)},{prop:"SetLinkPrefix",name:"SetLinkPrefix",pkg:"",typ:$funcType([$String],[],false)},{prop:"SetLinkBase",name:"SetLinkBase",pkg:"",typ:$funcType([$String],[],false)},{prop:"GetLinkBase",name:"GetLinkBase",pkg:"",typ:$funcType([],[$String],false)},{prop:"SetVditorCodeBlockPreview",name:"SetVditorCodeBlockPreview",pkg:"",typ:$funcType([$Bool],[],false)},{prop:"SetVditorMathBlockPreview",name:"SetVditorMathBlockPreview",pkg:"",typ:$funcType([$Bool],[],false)},{prop:"SetVditorHTMLBlockPreview",name:"SetVditorHTMLBlockPreview",pkg:"",typ:$funcType([$Bool],[],false)},{prop:"SetRenderListStyle",name:"SetRenderListStyle",pkg:"",typ:$funcType([$Bool],[],false)},{prop:"SetSanitize",name:"SetSanitize",pkg:"",typ:$funcType([$Bool],[],false)},{prop:"SetImageLazyLoading",name:"SetImageLazyLoading",pkg:"",typ:$funcType([$String],[],false)},{prop:"SetChineseParagraphBeginningSpace",name:"SetChineseParagraphBeginningSpace",pkg:"",typ:$funcType([$Bool],[],false)},{prop:"SetYamlFrontMatter",name:"SetYamlFrontMatter",pkg:"",typ:$funcType([$Bool],[],false)},{prop:"SetSetext",name:"SetSetext",pkg:"",typ:$funcType([$Bool],[],false)},{prop:"SetBlockRef",name:"SetBlockRef",pkg:"",typ:$funcType([$Bool],[],false)},{prop:"SetFileAnnotationRef",name:"SetFileAnnotationRef",pkg:"",typ:$funcType([$Bool],[],false)},{prop:"SetMark",name:"SetMark",pkg:"",typ:$funcType([$Bool],[],false)},{prop:"SetKramdownIAL",name:"SetKramdownIAL",pkg:"",typ:$funcType([$Bool],[],false)},{prop:"SetKramdownBlockIAL",name:"SetKramdownBlockIAL",pkg:"",typ:$funcType([$Bool],[],false)},{prop:"SetKramdownSpanIAL",name:"SetKramdownSpanIAL",pkg:"",typ:$funcType([$Bool],[],false)},{prop:"SetKramdownIALIDRenderName",name:"SetKramdownIALIDRenderName",pkg:"",typ:$funcType([$String],[],false)},{prop:"SetTag",name:"SetTag",pkg:"",typ:$funcType([$Bool],[],false)},{prop:"SetImgPathAllowSpace",name:"SetImgPathAllowSpace",pkg:"",typ:$funcType([$Bool],[],false)},{prop:"SetSuperBlock",name:"SetSuperBlock",pkg:"",typ:$funcType([$Bool],[],false)},{prop:"SetSup",name:"SetSup",pkg:"",typ:$funcType([$Bool],[],false)},{prop:"SetSub",name:"SetSub",pkg:"",typ:$funcType([$Bool],[],false)},{prop:"SetGitConflict",name:"SetGitConflict",pkg:"",typ:$funcType([$Bool],[],false)},{prop:"SetLinkRef",name:"SetLinkRef",pkg:"",typ:$funcType([$Bool],[],false)},{prop:"SetIndentCodeBlock",name:"SetIndentCodeBlock",pkg:"",typ:$funcType([$Bool],[],false)},{prop:"SetParagraphBeginningSpace",name:"SetParagraphBeginningSpace",pkg:"",typ:$funcType([$Bool],[],false)},{prop:"SetProtyleMarkNetImg",name:"SetProtyleMarkNetImg",pkg:"",typ:$funcType([$Bool],[],false)},{prop:"SetJSRenderers",name:"SetJSRenderers",pkg:"",typ:$funcType([BE],[],false)},{prop:"SpinBlockDOM",name:"SpinBlockDOM",pkg:"",typ:$funcType([$String],[$String],false)},{prop:"HTML2BlockDOM",name:"HTML2BlockDOM",pkg:"",typ:$funcType([$String],[$String],false)},{prop:"BlockDOM2HTML",name:"BlockDOM2HTML",pkg:"",typ:$funcType([$String],[$String],false)},{prop:"BlockDOM2InlineBlockDOM",name:"BlockDOM2InlineBlockDOM",pkg:"",typ:$funcType([$String],[$String],false)},{prop:"Md2BlockDOM",name:"Md2BlockDOM",pkg:"",typ:$funcType([$String],[$String],false)},{prop:"InlineMd2BlockDOM",name:"InlineMd2BlockDOM",pkg:"",typ:$funcType([$String],[$String],false)},{prop:"BlockDOM2Md",name:"BlockDOM2Md",pkg:"",typ:$funcType([$String],[$String],false)},{prop:"BlockDOM2StdMd",name:"BlockDOM2StdMd",pkg:"",typ:$funcType([$String],[$String],false)},{prop:"BlockDOM2Text",name:"BlockDOM2Text",pkg:"",typ:$funcType([$String],[$String],false)},{prop:"BlockDOM2TextLen",name:"BlockDOM2TextLen",pkg:"",typ:$funcType([$String],[$Int],false)},{prop:"Tree2BlockDOM",name:"Tree2BlockDOM",pkg:"",typ:$funcType([AA,AB],[$String],false)},{prop:"BlockDOM2Tree",name:"BlockDOM2Tree",pkg:"",typ:$funcType([$String],[AA],false)},{prop:"mergeSameSpan",name:"mergeSameSpan",pkg:"github.com/88250/lute",typ:$funcType([AE,D.NodeType],[],false)},{prop:"CancelSuperBlock",name:"CancelSuperBlock",pkg:"",typ:$funcType([$String],[$String],false)},{prop:"CancelList",name:"CancelList",pkg:"",typ:$funcType([$String],[$String],false)},{prop:"CancelBlockquote",name:"CancelBlockquote",pkg:"",typ:$funcType([$String],[$String],false)},{prop:"HLevel",name:"HLevel",pkg:"",typ:$funcType([$String,$String],[$String],false)},{prop:"H2P",name:"H2P",pkg:"",typ:$funcType([$String],[$String],false)},{prop:"P2H",name:"P2H",pkg:"",typ:$funcType([$String,$String],[$String],false)},{prop:"Blocks2Ps",name:"Blocks2Ps",pkg:"",typ:$funcType([$String],[$String],false)},{prop:"Blocks2Hs",name:"Blocks2Hs",pkg:"",typ:$funcType([$String,$String],[$String],false)},{prop:"OL2TL",name:"OL2TL",pkg:"",typ:$funcType([$String],[$String],false)},{prop:"UL2TL",name:"UL2TL",pkg:"",typ:$funcType([$String],[$String],false)},{prop:"TL2OL",name:"TL2OL",pkg:"",typ:$funcType([$String],[$String],false)},{prop:"TL2UL",name:"TL2UL",pkg:"",typ:$funcType([$String],[$String],false)},{prop:"OL2UL",name:"OL2UL",pkg:"",typ:$funcType([$String],[$String],false)},{prop:"UL2OL",name:"UL2OL",pkg:"",typ:$funcType([$String],[$String],false)},{prop:"blockDOM2Md",name:"blockDOM2Md",pkg:"github.com/88250/lute",typ:$funcType([$String],[$String],false)},{prop:"genASTByBlockDOM",name:"genASTByBlockDOM",pkg:"github.com/88250/lute",typ:$funcType([AD,AA],[],false)},{prop:"genASTContenteditable",name:"genASTContenteditable",pkg:"github.com/88250/lute",typ:$funcType([AD,AA],[],false)},{prop:"setSpanIAL",name:"setSpanIAL",pkg:"github.com/88250/lute",typ:$funcType([AD,AE],[],false)},{prop:"setBlockIAL",name:"setBlockIAL",pkg:"github.com/88250/lute",typ:$funcType([AD,AE],[AC],false)},{prop:"removeInnerMarker",name:"removeInnerMarker",pkg:"github.com/88250/lute",typ:$funcType([AD,$String],[],false)},{prop:"removeInnerMarker0",name:"removeInnerMarker0",pkg:"github.com/88250/lute",typ:$funcType([AD,$String],[],false)},{prop:"SpinVditorIRDOM",name:"SpinVditorIRDOM",pkg:"",typ:$funcType([$String],[$String],false)},{prop:"HTML2VditorIRDOM",name:"HTML2VditorIRDOM",pkg:"",typ:$funcType([$String],[$String],false)},{prop:"VditorIRDOM2HTML",name:"VditorIRDOM2HTML",pkg:"",typ:$funcType([$String],[$String],false)},{prop:"Md2VditorIRDOM",name:"Md2VditorIRDOM",pkg:"",typ:$funcType([$String],[$String],false)},{prop:"VditorIRDOM2Md",name:"VditorIRDOM2Md",pkg:"",typ:$funcType([$String],[$String],false)},{prop:"vditorIRDOM2Md",name:"vditorIRDOM2Md",pkg:"github.com/88250/lute",typ:$funcType([$String],[$String],false)},{prop:"genASTByVditorIRDOM",name:"genASTByVditorIRDOM",pkg:"github.com/88250/lute",typ:$funcType([AD,AA],[],false)},{prop:"SpinVditorSVDOM",name:"SpinVditorSVDOM",pkg:"",typ:$funcType([$String],[$String],false)},{prop:"HTML2VditorSVDOM",name:"HTML2VditorSVDOM",pkg:"",typ:$funcType([$String],[$String],false)},{prop:"Md2VditorSVDOM",name:"Md2VditorSVDOM",pkg:"",typ:$funcType([$String],[$String],false)},{prop:"Md2HTML",name:"Md2HTML",pkg:"",typ:$funcType([$String],[$String],false)},{prop:"SpinVditorDOM",name:"SpinVditorDOM",pkg:"",typ:$funcType([$String],[$String],false)},{prop:"HTML2VditorDOM",name:"HTML2VditorDOM",pkg:"",typ:$funcType([$String],[$String],false)},{prop:"VditorDOM2HTML",name:"VditorDOM2HTML",pkg:"",typ:$funcType([$String],[$String],false)},{prop:"Md2VditorDOM",name:"Md2VditorDOM",pkg:"",typ:$funcType([$String],[$String],false)},{prop:"VditorDOM2Md",name:"VditorDOM2Md",pkg:"",typ:$funcType([$String],[$String],false)},{prop:"RenderEChartsJSON",name:"RenderEChartsJSON",pkg:"",typ:$funcType([$String],[$String],false)},{prop:"RenderKityMinderJSON",name:"RenderKityMinderJSON",pkg:"",typ:$funcType([$String],[$String],false)},{prop:"HTML2Md",name:"HTML2Md",pkg:"",typ:$funcType([$String],[$String],false)},{prop:"vditorDOM2Md",name:"vditorDOM2Md",pkg:"github.com/88250/lute",typ:$funcType([$String],[$String],false)},{prop:"parseHTML",name:"parseHTML",pkg:"github.com/88250/lute",typ:$funcType([$String],[AD],false)},{prop:"adjustVditorDOM",name:"adjustVditorDOM",pkg:"github.com/88250/lute",typ:$funcType([AD],[],false)},{prop:"adjustVditorDOMListList",name:"adjustVditorDOMListList",pkg:"github.com/88250/lute",typ:$funcType([AD],[],false)},{prop:"removeHighlightJSSpans",name:"removeHighlightJSSpans",pkg:"github.com/88250/lute",typ:$funcType([AD],[],false)},{prop:"hljsSpans",name:"hljsSpans",pkg:"github.com/88250/lute",typ:$funcType([AD,BA],[],false)},{prop:"removeEmptyNodes",name:"removeEmptyNodes",pkg:"github.com/88250/lute",typ:$funcType([AD],[],false)},{prop:"searchEmptyNodes",name:"searchEmptyNodes",pkg:"github.com/88250/lute",typ:$funcType([AD,BA],[],false)},{prop:"mergeVditorDOMList0",name:"mergeVditorDOMList0",pkg:"github.com/88250/lute",typ:$funcType([AD],[],false)},{prop:"adjustVditorDOMListTight0",name:"adjustVditorDOMListTight0",pkg:"github.com/88250/lute",typ:$funcType([AD],[],false)},{prop:"adjustVditorDOMListItemInP",name:"adjustVditorDOMListItemInP",pkg:"github.com/88250/lute",typ:$funcType([AD],[],false)},{prop:"forwardNextBlock",name:"forwardNextBlock",pkg:"github.com/88250/lute",typ:$funcType([AD],[AZ,AD],false)},{prop:"listItemEnter",name:"listItemEnter",pkg:"github.com/88250/lute",typ:$funcType([AD],[$Bool],false)},{prop:"isTightList",name:"isTightList",pkg:"github.com/88250/lute",typ:$funcType([AD],[$String],false)},{prop:"genASTByVditorDOM",name:"genASTByVditorDOM",pkg:"github.com/88250/lute",typ:$funcType([AD,AA],[],false)},{prop:"hasAttr",name:"hasAttr",pkg:"github.com/88250/lute",typ:$funcType([AD,$String],[$Bool],false)},{prop:"domAttrValue",name:"domAttrValue",pkg:"github.com/88250/lute",typ:$funcType([AD,$String],[$String],false)},{prop:"domCustomAttrs",name:"domCustomAttrs",pkg:"github.com/88250/lute",typ:$funcType([AD],[BB],false)},{prop:"domChild",name:"domChild",pkg:"github.com/88250/lute",typ:$funcType([AD,F.Atom],[AD],false)},{prop:"domChild0",name:"domChild0",pkg:"github.com/88250/lute",typ:$funcType([AD,F.Atom],[AD],false)},{prop:"setDOMAttrValue",name:"setDOMAttrValue",pkg:"github.com/88250/lute",typ:$funcType([AD,$String,$String],[],false)},{prop:"removeDOMAttr",name:"removeDOMAttr",pkg:"github.com/88250/lute",typ:$funcType([AD,$String],[],false)},{prop:"domCode",name:"domCode",pkg:"github.com/88250/lute",typ:$funcType([AD],[$String],false)},{prop:"domCode0",name:"domCode0",pkg:"github.com/88250/lute",typ:$funcType([AD,AV],[],false)},{prop:"parentIs",name:"parentIs",pkg:"github.com/88250/lute",typ:$funcType([AD,AO],[$Bool],true)},{prop:"domText",name:"domText",pkg:"github.com/88250/lute",typ:$funcType([AD],[$String],false)},{prop:"domText0",name:"domText0",pkg:"github.com/88250/lute",typ:$funcType([AD,AV],[],false)},{prop:"domHTML",name:"domHTML",pkg:"github.com/88250/lute",typ:$funcType([AD],[AC],false)},{prop:"isEmptyText",name:"isEmptyText",pkg:"github.com/88250/lute",typ:$funcType([AD],[$Bool],false)},{prop:"startsWithNewline",name:"startsWithNewline",pkg:"github.com/88250/lute",typ:$funcType([AD],[$Bool],false)},{prop:"isInline",name:"isInline",pkg:"github.com/88250/lute",typ:$funcType([AD],[$Bool],false)}];P.init("",[{prop:"ParseOptions",name:"ParseOptions",embedded:false,exported:true,typ:AN,tag:""},{prop:"RenderOptions",name:"RenderOptions",embedded:false,exported:true,typ:AB,tag:""},{prop:"HTML2MdRendererFuncs",name:"HTML2MdRendererFuncs",embedded:false,exported:true,typ:BF,tag:""},{prop:"HTML2VditorDOMRendererFuncs",name:"HTML2VditorDOMRendererFuncs",embedded:false,exported:true,typ:BF,tag:""},{prop:"HTML2VditorIRDOMRendererFuncs",name:"HTML2VditorIRDOMRendererFuncs",embedded:false,exported:true,typ:BF,tag:""},{prop:"HTML2BlockDOMRendererFuncs",name:"HTML2BlockDOMRendererFuncs",embedded:false,exported:true,typ:BF,tag:""},{prop:"HTML2VditorSVDOMRendererFuncs",name:"HTML2VditorSVDOMRendererFuncs",embedded:false,exported:true,typ:BF,tag:""},{prop:"Md2HTMLRendererFuncs",name:"Md2HTMLRendererFuncs",embedded:false,exported:true,typ:BF,tag:""},{prop:"Md2VditorDOMRendererFuncs",name:"Md2VditorDOMRendererFuncs",embedded:false,exported:true,typ:BF,tag:""},{prop:"Md2VditorIRDOMRendererFuncs",name:"Md2VditorIRDOMRendererFuncs",embedded:false,exported:true,typ:BF,tag:""},{prop:"Md2BlockDOMRendererFuncs",name:"Md2BlockDOMRendererFuncs",embedded:false,exported:true,typ:BF,tag:""},{prop:"Md2VditorSVDOMRendererFuncs",name:"Md2VditorSVDOMRendererFuncs",embedded:false,exported:true,typ:BF,tag:""}]);V.init([AS],[],false);$init=function(){$pkg.$init=function(){};var $f,$c=false,$s=0,$r;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:$r=A.$init();$s=1;case 1:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$r=J.$init();$s=2;case 2:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$r=D.$init();$s=3;case 3:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$r=E.$init();$s=4;case 4:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$r=F.$init();$s=5;case 5:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$r=L.$init();$s=6;case 6:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$r=G.$init();$s=7;case 7:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$r=H.$init();$s=8;case 8:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$r=I.$init();$s=9;case 9:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$r=M.$init();$s=10;case 10:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$r=N.$init();$s=11;case 11:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$r=B.$init();$s=12;case 12:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$r=K.$init();$s=13;case 13:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$r=C.$init();$s=14;case 14:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}R=new K.Mutex.ptr(0,0);S=H.NewFormatRenderer(AA.nil,AB.nil);}return;}if($f===undefined){$f={$blk:$init};}$f.$s=$s;$f.$r=$r;return $f;};$pkg.$init=$init;return $pkg;})();

Fixed code:
$packages["github.com/88250/lute"]=(function(){var $pkg={},$init,A,J,D,E,F,L,G,H,I,M,N,B,K,C,P,V,AA,AB,AC,AD,AE,AF,AG,AH,AI,AJ,AK,AL,AM,AN,AO,AP,AQ,AR,AS,AT,AV,AX,AY,AZ,BA,BB,BC,BD,BE,BF,R,S,O,Q,Y,Z;A=$packages["bytes"];J=$packages["errors"];D=$packages["github.com/88250/lute/ast"];E=$packages["github.com/88250/lute/html"];F=$packages["github.com/88250/lute/html/atom"];L=$packages["github.com/88250/lute/lex"];G=$packages["github.com/88250/lute/parse"];H=$packages["github.com/88250/lute/render"];I=$packages["github.com/88250/lute/util"];M=$packages["github.com/gopherjs/gopherjs/js"];N=$packages["strconv"];B=$packages["strings"];K=$packages["sync"];C=$packages["unicode"];P=$pkg.Lute=$newType(0,$kindStruct,"lute.Lute",true,"github.com/88250/lute",true,function(ParseOptions_,RenderOptions_,HTML2MdRendererFuncs_,HTML2VditorDOMRendererFuncs_,HTML2VditorIRDOMRendererFuncs_,HTML2BlockDOMRendererFuncs_,HTML2VditorSVDOMRendererFuncs_,Md2HTMLRendererFuncs_,Md2VditorDOMRendererFuncs_,Md2VditorIRDOMRendererFuncs_,Md2BlockDOMRendererFuncs_,Md2VditorSVDOMRendererFuncs_){this.$val=this;if(arguments.length===0){this.ParseOptions=AN.nil;this.RenderOptions=AB.nil;this.HTML2MdRendererFuncs=false;this.HTML2VditorDOMRendererFuncs=false;this.HTML2VditorIRDOMRendererFuncs=false;this.HTML2BlockDOMRendererFuncs=false;this.HTML2VditorSVDOMRendererFuncs=false;this.Md2HTMLRendererFuncs=false;this.Md2VditorDOMRendererFuncs=false;this.Md2VditorIRDOMRendererFuncs=false;this.Md2BlockDOMRendererFuncs=false;this.Md2VditorSVDOMRendererFuncs=false;return;}this.ParseOptions=ParseOptions_;this.RenderOptions=RenderOptions_;this.HTML2MdRendererFuncs=HTML2MdRendererFuncs_;this.HTML2VditorDOMRendererFuncs=HTML2VditorDOMRendererFuncs_;this.HTML2VditorIRDOMRendererFuncs=HTML2VditorIRDOMRendererFuncs_;this.HTML2BlockDOMRendererFuncs=HTML2BlockDOMRendererFuncs_;this.HTML2VditorSVDOMRendererFuncs=HTML2VditorSVDOMRendererFuncs_;this.Md2HTMLRendererFuncs=Md2HTMLRendererFuncs_;this.Md2VditorDOMRendererFuncs=Md2VditorDOMRendererFuncs_;this.Md2VditorIRDOMRendererFuncs=Md2VditorIRDOMRendererFuncs_;this.Md2BlockDOMRendererFuncs=Md2BlockDOMRendererFuncs_;this.Md2VditorSVDOMRendererFuncs=Md2VditorSVDOMRendererFuncs_;});V=$pkg.ParseOption=$newType(4,$kindFunc,"lute.ParseOption",true,"github.com/88250/lute",true,null);AA=$ptrType(G.Tree);AB=$ptrType(H.Options);AC=$sliceType($Uint8);AD=$ptrType(E.Node);AE=$ptrType(D.Node);AF=$ptrType(G.Context);AG=$ptrType(L.Lexer);AH=$ptrType(G.InlineContext);AI=$sliceType($String);AJ=$sliceType(AE);AK=$ptrType(D.ListData);AL=$sliceType($Int);AM=$sliceType(AI);AN=$ptrType(G.Options);AO=$sliceType(F.Atom);AP=$ptrType(E.Attribute);AQ=$sliceType(AP);AR=$sliceType($Int32);AS=$ptrType(P);AT=$sliceType(V);AV=$ptrType(A.Buffer);AX=$mapType($String,$emptyInterface);AY=$sliceType($emptyInterface);AZ=$sliceType(AD);BA=$ptrType(AZ);BB=$mapType($String,$String);BC=$ptrType(M.Object);BD=$mapType($String,BC);BE=$mapType($String,BD);BF=$mapType(D.NodeType,H.ExtRendererFunc);P.ptr.prototype.HTML2Markdown=function(a){var a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;k=$f.k;l=$f.l;m=$f.m;n=$f.n;o=$f.o;p=$f.p;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b="";c=$ifaceNil;d=this;e=d.HTML2Tree(a);$s=1;case 1:if($c){$c=false;e=e.$blk();}if(e&&e.$blk!==undefined){break s;}f=e;g=AC.nil;h=H.NewFormatRenderer(f,d.RenderOptions);i=d.HTML2MdRendererFuncs;j=0;k=$keys(i);while(true){if(!(j<k.length)){break;}l=i[k[j]];if(l===undefined){j++;continue;}m=l.k;n=l.v;o=m;(h.BaseRenderer.ExtRendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[D.NodeType.keyFor(o)]={k:o,v:n};j++;}p=h.BaseRenderer.Render();$s=2;case 2:if($c){$c=false;p=p.$blk();}if(p&&p.$blk!==undefined){break s;}g=p;b=I.BytesToStr(g);$s=-1;return[b,c];}return;}if($f===undefined){$f={$blk:P.ptr.prototype.HTML2Markdown};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.k=k;$f.l=l;$f.m=m;$f.n=n;$f.o=o;$f.p=p;$f.$s=$s;$f.$r=$r;return $f;};P.prototype.HTML2Markdown=function(a){return this.$val.HTML2Markdown(a);};P.ptr.prototype.HTML2Tree=function(a){var a,b,c,d,e,f,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b=AA.nil;c=this;d=c.parseHTML(a);$s=1;case 1:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}e=d;if(AD.nil===e){$s=-1;return b;}$r=c.adjustVditorDOM(e);$s=2;case 2:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}b=new G.Tree.ptr(new D.Node.ptr("","","",0,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false),new G.Context.ptr(AA.nil,c.ParseOptions,AE.nil,AE.nil,AC.nil,0,0,0,0,0,0,false,false,false,false,AE.nil,AE.nil),AG.nil,AH.nil,"","","","","",AI.nil,new $Int64(0,0),new $Int64(0,0),"");b.Context.Tip=b.Root;f=e.FirstChild;case 3:if(!(!(AD.nil===f))){$s=4;continue;}$r=c.genASTByDOM(f,b);$s=5;case 5:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}f=f.NextSibling;$s=3;continue;case 4:$r=D.Walk(b.Root,(function(g,h){var g,h,i;if(h){if(7===g.Type){if(!(AE.nil===g.Parent)&&(7===g.Parent.Type)){i=g.Previous;if(!(AE.nil===i)){g.Unlink();i.AppendChild(g);}}}}return 2;}));$s=6;case 6:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$s=-1;return b;}return;}if($f===undefined){$f={$blk:P.ptr.prototype.HTML2Tree};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.$s=$s;$f.$r=$r;return $f;};P.prototype.HTML2Tree=function(a){return this.$val.HTML2Tree(a);};P.ptr.prototype.genASTByDOM=function(a,b){var a,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,bh,bi,bj,bk,bl,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,$deferred,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;aa=$f.aa;ab=$f.ab;ac=$f.ac;ad=$f.ad;ae=$f.ae;af=$f.af;ag=$f.ag;ah=$f.ah;ai=$f.ai;aj=$f.aj;ak=$f.ak;al=$f.al;am=$f.am;an=$f.an;ao=$f.ao;ap=$f.ap;aq=$f.aq;ar=$f.ar;as=$f.as;at=$f.at;au=$f.au;av=$f.av;aw=$f.aw;ax=$f.ax;ay=$f.ay;az=$f.az;b=$f.b;ba=$f.ba;bb=$f.bb;bc=$f.bc;bd=$f.bd;be=$f.be;bf=$f.bf;bg=$f.bg;bh=$f.bh;bi=$f.bi;bj=$f.bj;bk=$f.bk;bl=$f.bl;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;k=$f.k;l=$f.l;m=$f.m;n=$f.n;o=$f.o;p=$f.p;q=$f.q;r=$f.r;s=$f.s;t=$f.t;u=$f.u;v=$f.v;w=$f.w;x=$f.x;y=$f.y;z=$f.z;$s=$f.$s;$deferred=$f.$deferred;$r=$f.$r;}var $err=null;try{s:while(true){switch($s){case 0:$deferred=[];$deferred.index=$curGoroutine.deferStack.length;$curGoroutine.deferStack.push($deferred);c=this;if((4===a.Type)||(309252===a.DataAtom)){$s=-1;return;}if("svg"===a.Namespace){$s=-1;return;}d=c.domAttrValue(a,"data-render");if("1"===d){$s=-1;return;}if(B.HasPrefix(c.domAttrValue(a,"class"),"line-number")){$s=-1;return;}if((0===a.DataAtom)&&(3===a.Type)){$s=1;continue;}$s=2;continue;case 1:e=a.FirstChild;case 3:if(!(!(e===AD.nil))){$s=4;continue;}$r=c.genASTByDOM(e,b);$s=5;case 5:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}e=e.NextSibling;$s=3;continue;case 4:$s=-1;return;case 2:f=new D.Node.ptr("","","",16,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,I.StrToBytes(a.Data),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false);g=a.DataAtom;if(g===(0)){$s=7;continue;}if((g===(3073))||(g===(92931))||(g===(354311))){$s=8;continue;}if((g===(89090))||(g===(187906))||(g===(199938))||(g===(214274))||(g===(216834))||(g===(412930))){$s=9;continue;}if(g===(87810)){$s=10;continue;}if(g===(100106)){$s=11;continue;}if((g===(79618))||(g===(42754))){$s=12;continue;}if(g===(45570)){$s=13;continue;}if(g===(290819)){$s=14;continue;}if((g===(28162))||(g===(1537))){$s=15;continue;}if((g===(449798))||(g===(257))){$s=16;continue;}if(g===(378116)){$s=17;continue;}if(g===(514)){$s=18;continue;}if(g===(1)){$s=19;continue;}if(g===(198403)){$s=20;continue;}if(g===(281349)){$s=21;continue;}if((g===(283139))||(g===(9473))||(g===(53766))){$s=22;continue;}if(g===(46596)){$s=23;continue;}if(g===(461571)){$s=24;continue;}if(g===(421123)){$s=25;continue;}if(g===(365829)){$s=26;continue;}if(g===(208901)){$s=27;continue;}if(g===(9989)){$s=28;continue;}if(g===(52226)){$s=29;continue;}if((g===(87554))||(g===(37378))){$s=30;continue;}if((g===(109320))||(g===(109315))){$s=31;continue;}if(g===(40708)){$s=32;continue;}if(g===(16132)){$s=33;continue;}if(g===(29191)){$s=34;continue;}if(g===(459783)){$s=35;continue;}if((g===(195590))||(g===(70917))||(g===(192773))){$s=36;continue;}if(g===(136712)){$s=37;continue;}if(g===(142858)){$s=38;continue;}if(g===(149510)){$s=39;continue;}$s=40;continue;case 7:if(!(AD.nil===a.Parent)&&(1===a.Parent.DataAtom)){f.Type=40;}if(c.parentIs(a,new AO([365829]))){$s=41;continue;}$s=42;continue;case 41:h=B.TrimSpace(a.Data);$s=45;case 45:if($c){$c=false;h=h.$blk();}if(h&&h.$blk!==undefined){break s;}if(""===h){$s=43;continue;}$s=44;continue;case 43:f.Tokens=(new AC($stringToBytes(" ")));b.Context.Tip.AppendChild(f);$s=6;continue;case 44:i=A.TrimSpace(f.Tokens);$s=46;case 46:if($c){$c=false;i=i.$blk();}if(i&&i.$blk!==undefined){break s;}f.Tokens=i;case 42:f.Tokens=A.ReplaceAll(f.Tokens,new AC([194,160]),new AC([32]));if(!(AD.nil===a.Parent)&&(40708===a.Parent.DataAtom)&&(!(""===c.domAttrValue(a.Parent,"class")))){j=b.Context.Tip.LastChild;if(AE.nil===j||((16===j.Type)&&!A.HasSuffix(j.Tokens,(new AC($stringToBytes("**")))))){f.Tokens=(new AC($stringToBytes("**"+I.BytesToStr(f.Tokens)+"**")));}}b.Context.Tip.AppendChild(f);$s=40;continue;case 8:if(c.parentIs(a,new AO([365829]))||(33===b.Context.Tip.Type)){$s=6;continue;}if(92931===a.DataAtom){k=c.domAttrValue(a,"class");l="";if(B.Contains(k,"-source-")){l=$substring(k,(B.LastIndex(k,"-source-")+8>>0));}else if(B.Contains(k,"-text-html-basic")){l="html";}if(!(""===l)){f.Type=11;f.IsFencedCodeBlock=true;f.AppendChild(new D.Node.ptr("","","",12,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,I.StrToBytes("```"),"","",false,false,false,0,false,0,3,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));f.AppendChild(new D.Node.ptr("","","",14,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));m=new A.Buffer.ptr(AC.nil,0,0);f.LastChild.CodeBlockInfo=(new AC($stringToBytes(l)));m.WriteString(c.domText(a));n=new D.Node.ptr("","","",15,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,m.Bytes(),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false);f.AppendChild(n);f.AppendChild(new D.Node.ptr("","","",13,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,I.StrToBytes("```"),"","",false,false,false,0,false,0,3,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));b.Context.Tip.AppendChild(f);$s=-1;return;}}f.Type=1;b.Context.Tip.AppendChild(f);b.Context.Tip=f;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=40;continue;case 9:if(33===b.Context.Tip.Type){$s=6;continue;}f.Type=2;f.HeadingLevel=((((o=f.Tokens,(1>=o.$length?($throwRuntimeError("index out of range"),undefined):o.$array[o.$offset+1]))-48<<24>>>24)>>0));f.AppendChild(new D.Node.ptr("","","",3,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,I.StrToBytes(B.Repeat("#",f.HeadingLevel)),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));b.Context.Tip.AppendChild(f);b.Context.Tip=f;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=40;continue;case 10:f.Type=4;b.Context.Tip.AppendChild(f);$s=40;continue;case 11:f.Type=5;f.AppendChild(new D.Node.ptr("","","",6,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,I.StrToBytes(">"),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));b.Context.Tip.AppendChild(f);b.Context.Tip=f;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=40;continue;case 12:f.Type=7;f.ListData=new D.ListData.ptr(0,false,0,0,0,0,0,false,AC.nil,0);if(79618===a.DataAtom){f.ListData.Typ=1;}f.ListData.Tight=true;b.Context.Tip.AppendChild(f);b.Context.Tip=f;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=40;continue;case 13:f.Type=8;p=c.domAttrValue(a,"data-marker");q=0;if(""===p){if(!(AD.nil===a.Parent)&&(79618===a.Parent.DataAtom)){r=c.domAttrValue(a.Parent,"start");if(""===r){p="1.";}else{p=r+".";}}else{p="*";q=p.charCodeAt(0);}}else{if(!(AD.nil===a.Parent)&&!("1."===p)&&(79618===a.Parent.DataAtom)&&!(AD.nil===a.Parent.Parent)&&((79618===a.Parent.Parent.DataAtom)||(42754===a.Parent.Parent.DataAtom))){p="1.";}}f.ListData=new D.ListData.ptr(0,false,q,0,0,0,0,false,(new AC($stringToBytes(p))),0);b.Context.Tip.AppendChild(f);b.Context.Tip=f;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=40;continue;case 14:s=a.FirstChild;if(!(AD.nil===s)){$s=47;continue;}$s=48;continue;case 47:if((1===s.Type)||(40708===s.DataAtom)||(378116===s.DataAtom)){$s=49;continue;}$s=50;continue;case 49:f.Type=11;f.IsFencedCodeBlock=true;f.AppendChild(new D.Node.ptr("","","",12,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,I.StrToBytes("```"),"","",false,false,false,0,false,0,3,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));f.AppendChild(new D.Node.ptr("","","",14,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));if((378116===s.DataAtom)||(40708===s.DataAtom)){t=c.domAttrValue(s,"class");if(!B.Contains(t,"language-")){t=c.domAttrValue(a,"class");}if(B.Contains(t,"language-")){u=$substring(t,(B.Index(t,"language-")+9>>0));u=(v=B.Split(u," "),(0>=v.$length?($throwRuntimeError("index out of range"),undefined):v.$array[v.$offset+0]));f.LastChild.CodeBlockInfo=(new AC($stringToBytes(u)));}}if(378116===a.FirstChild.DataAtom){if(!(AD.nil===a.FirstChild.NextSibling)&&(378116===a.FirstChild.NextSibling.DataAtom)){w=a.FirstChild.NextSibling;while(true){if(!(!(AD.nil===w))){break;}w.InsertBefore(new E.Node.ptr(AD.nil,AD.nil,AD.nil,AD.nil,AD.nil,0,514,"","",AQ.nil));w=w.NextSibling;}}if(!(AD.nil===a.FirstChild.FirstChild)&&(79618===a.FirstChild.FirstChild.DataAtom)){x=a.FirstChild.FirstChild.FirstChild;while(true){if(!(!(AD.nil===x))){break;}if(!(x===a.FirstChild.FirstChild.FirstChild)){x.InsertBefore(new E.Node.ptr(AD.nil,AD.nil,AD.nil,AD.nil,AD.nil,0,514,"","",AQ.nil));}x=x.NextSibling;}}}y=new A.Buffer.ptr(AC.nil,0,0);y.WriteString(c.domText(a));z=new D.Node.ptr("","","",15,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,y.Bytes(),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false);f.AppendChild(z);f.AppendChild(new D.Node.ptr("","","",13,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,I.StrToBytes("```"),"","",false,false,false,0,false,0,3,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));b.Context.Tip.AppendChild(f);$s=51;continue;case 50:f.Type=9;aa=c.domHTML(a);$s=52;case 52:if($c){$c=false;aa=aa.$blk();}if(aa&&aa.$blk!==undefined){break s;}f.Tokens=aa;b.Context.Tip.AppendChild(f);case 51:case 48:$s=-1;return;case 15:ab=c.domText(a);ac=B.TrimSpace(ab);$s=55;case 55:if($c){$c=false;ac=ac.$blk();}if(ac&&ac.$blk!==undefined){break s;}if(""===ac){$s=53;continue;}$s=54;continue;case 53:$s=6;continue;case 54:f.Type=17;ad="*";f.AppendChild(new D.Node.ptr("","","",18,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,I.StrToBytes(ad),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));b.Context.Tip.AppendChild(f);b.Context.Tip=f;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=40;continue;case 16:ae=c.domText(a);af=B.TrimSpace(ae);$s=58;case 58:if($c){$c=false;af=af.$blk();}if(af&&af.$blk!==undefined){break s;}if(""===af){$s=56;continue;}$s=57;continue;case 56:$s=6;continue;case 57:f.Type=22;ag="**";f.AppendChild(new D.Node.ptr("","","",23,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,I.StrToBytes(ag),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));b.Context.Tip.AppendChild(f);b.Context.Tip=f;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=40;continue;case 17:if(AD.nil===a.FirstChild){$s=-1;return;}ah=c.domHTML(a);$s=59;case 59:if($c){$c=false;ah=ah.$blk();}if(ah&&ah.$blk!==undefined){break s;}ai=ah;if(A.Contains(ai,(new AC($stringToBytes(">"))))){ai=$subslice(ai,(A.Index(ai,(new AC($stringToBytes(">"))))+1>>0));}ai=A.TrimSuffix(ai,(new AC($stringToBytes("</code>"))));aj=E.UnescapeString(($bytesToString(ai)));ai=(new AC($stringToBytes(aj)));ak=new D.Node.ptr("","","",29,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,ai,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false);f.Type=27;f.AppendChild(new D.Node.ptr("","","",28,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes("`"))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));f.AppendChild(ak);f.AppendChild(new D.Node.ptr("","","",30,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes("`"))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));b.Context.Tip.AppendChild(f);b.Context.Tip=f;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=-1;return;case 18:if(33===b.Context.Tip.Type){$s=6;continue;}if(b.Context.ParseOption.ProtyleWYSIWYG&&c.parentIs(a,new AO([365829]))){f.Type=525;}else{f.Type=31;f.Tokens=I.StrToBytes("\n");}b.Context.Tip.AppendChild(f);b.Context.Tip=f;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=40;continue;case 19:f.Type=33;if(""===c.domText(a)&&!(AD.nil===a.Parent)&&((89090===a.Parent.DataAtom)||(187906===a.Parent.DataAtom)||(199938===a.Parent.DataAtom)||(214274===a.Parent.DataAtom)||(216834===a.Parent.DataAtom)||(412930===a.Parent.DataAtom))){$s=-1;return;}f.AppendChild(new D.Node.ptr("","","",36,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));b.Context.Tip.AppendChild(f);b.Context.Tip=f;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=40;continue;case 20:al=c.domAttrValue(a,"class");am=c.domAttrValue(a,"alt");if("emoji"===al){f.Type=200;an=new D.Node.ptr("","","",202,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,b.EmojiImgTokens(am,c.domAttrValue(a,"src")),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false);an.AppendChild(new D.Node.ptr("","","",203,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,I.StrToBytes(":"+am+":"),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));f.AppendChild(an);}else{f.Type=34;f.AppendChild(new D.Node.ptr("","","",35,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));f.AppendChild(new D.Node.ptr("","","",36,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));if(!(""===am)){f.AppendChild(new D.Node.ptr("","","",40,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,I.StrToBytes(am),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}f.AppendChild(new D.Node.ptr("","","",37,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));f.AppendChild(new D.Node.ptr("","","",38,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));ao=c.domAttrValue(a,"src");if(B.HasPrefix(ao,"data:image")){ao=c.domAttrValue(a,"data-src");}f.AppendChild(new D.Node.ptr("","","",41,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,I.StrToBytes(ao),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));ap=c.domAttrValue(a,"title");if(!(""===ap)){f.AppendChild(new D.Node.ptr("","","",43,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));f.AppendChild(new D.Node.ptr("","","",42,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(ap))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}f.AppendChild(new D.Node.ptr("","","",39,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}if(0===b.Context.Tip.Type){aq=new D.Node.ptr("","","",1,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false);b.Context.Tip.AppendChild(aq);b.Context.Tip=aq;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);}b.Context.Tip.AppendChild(f);b.Context.Tip=f;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=40;continue;case 21:f.Type=100;f.TaskListItemChecked=c.hasAttr(a,"checked");b.Context.Tip.AppendChild(f);if(!(AE.nil===f.Parent.Parent)){if(AK.nil===f.Parent.Parent.ListData){f.Parent.Parent.ListData=new D.ListData.ptr(3,false,0,0,0,0,0,false,AC.nil,0);}else{f.Parent.Parent.ListData.Typ=3;}}$s=40;continue;case 22:f.Type=101;ar="~";f.AppendChild(new D.Node.ptr("","","",102,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,I.StrToBytes(ar),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));b.Context.Tip.AppendChild(f);b.Context.Tip=f;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=40;continue;case 23:f.Type=450;as="==";f.AppendChild(new D.Node.ptr("","","",451,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,I.StrToBytes(as),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));b.Context.Tip.AppendChild(f);b.Context.Tip=f;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=40;continue;case 24:f.Type=485;f.AppendChild(new D.Node.ptr("","","",486,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));b.Context.Tip.AppendChild(f);b.Context.Tip=f;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=40;continue;case 25:f.Type=490;f.AppendChild(new D.Node.ptr("","","",491,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));b.Context.Tip.AppendChild(f);b.Context.Tip=f;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=40;continue;case 26:f.Type=106;at=AL.nil;if(!(AD.nil===a.FirstChild)&&!(AD.nil===a.FirstChild.FirstChild)&&!(AD.nil===a.FirstChild.FirstChild.FirstChild)){au=a.FirstChild.FirstChild.FirstChild;while(true){if(!(!(AD.nil===au))){break;}av=c.domAttrValue(au,"align");aw=av;if(aw===("left")){at=$append(at,1);}else if(aw===("center")){at=$append(at,2);}else if(aw===("right")){at=$append(at,3);}else{at=$append(at,0);}au=au.NextSibling;}}f.TableAligns=at;b.Context.Tip.AppendChild(f);b.Context.Tip=f;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=40;continue;case 27:f.Type=107;b.Context.Tip.AppendChild(f);b.Context.Tip=f;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=40;continue;case 28:$s=40;continue;case 29:if(AD.nil===a.FirstChild){$s=6;continue;}ax=a.Parent.Parent;f.Type=108;if(!((208901===ax.FirstChild.DataAtom))&&a===a.Parent.FirstChild){ay=new D.Node.ptr("","","",107,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false);b.Context.Tip.AppendChild(ay);b.Context.Tip=ay;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);}b.Context.Tip.AppendChild(f);b.Context.Tip=f;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=40;continue;case 30:f.Type=109;az=c.domAttrValue(a,"align");ba=0;bb=az;if(bb===("left")){ba=1;}else if(bb===("center")){ba=2;}else if(bb===("right")){ba=3;}else{ba=0;}f.TableCellAlign=ba;b.Context.Tip.AppendChild(f);b.Context.Tip=f;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=40;continue;case 31:$s=-1;return;case 32:if(AD.nil===a.FirstChild){$s=-1;return;}$s=40;continue;case 33:f.Type=16;f.Tokens=(new AC($stringToBytes(c.domText(a))));f.Tokens=A.ReplaceAll(f.Tokens,(new AC($stringToBytes("\n"))),AC.nil);b.Context.Tip.AppendChild(f);$s=-1;return;case 34:f.Type=9;bc=c.domHTML(a);$s=60;case 60:if($c){$c=false;bc=bc.$blk();}if(bc&&bc.$blk!==undefined){break s;}f.Tokens=bc;f.Tokens=(bd=A.SplitAfter(f.Tokens,(new AC($stringToBytes("</summary>")))),(0>=bd.$length?($throwRuntimeError("index out of range"),undefined):bd.$array[bd.$offset+0]));b.Context.Tip.AppendChild(f);$s=40;continue;case 35:$s=-1;return;case 36:f.Type=9;be=c.domHTML(a);$s=61;case 61:if($c){$c=false;be=be.$blk();}if(be&&be.$blk!==undefined){break s;}f.Tokens=be;b.Context.Tip.AppendChild(f);$s=-1;return;case 37:$s=-1;return;case 38:f.Type=1;f.AppendChild(new D.Node.ptr("","","",31,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));f.AppendChild(new D.Node.ptr("","","",16,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,I.StrToBytes(c.domText(a)),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));b.Context.Tip.AppendChild(f);$s=-1;return;case 39:f.Type=1;b.Context.Tip.AppendChild(f);b.Context.Tip=f;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);case 40:case 6:bf=a.FirstChild;case 62:if(!(!(bf===AD.nil))){$s=63;continue;}$r=c.genASTByDOM(bf,b);$s=64;case 64:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}bf=bf.NextSibling;$s=62;continue;case 63:bg=a.DataAtom;if((bg===(28162))||(bg===(1537))){bh="*";f.AppendChild(new D.Node.ptr("","","",19,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,I.StrToBytes(bh),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));O(a,b,c);}else if((bg===(449798))||(bg===(257))){bi="**";f.AppendChild(new D.Node.ptr("","","",24,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,I.StrToBytes(bi),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));O(a,b,c);}else if(bg===(1)){f.AppendChild(new D.Node.ptr("","","",37,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));f.AppendChild(new D.Node.ptr("","","",38,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));f.AppendChild(new D.Node.ptr("","","",41,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,I.StrToBytes(c.domAttrValue(a,"href")),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));bj=c.domAttrValue(a,"title");if(!(""===bj)){f.AppendChild(new D.Node.ptr("","","",43,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));f.AppendChild(new D.Node.ptr("","","",42,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,I.StrToBytes(bj),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}f.AppendChild(new D.Node.ptr("","","",39,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}else if((bg===(283139))||(bg===(9473))||(bg===(53766))){bk="~";f.AppendChild(new D.Node.ptr("","","",103,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,I.StrToBytes(bk),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));O(a,b,c);}else if(bg===(46596)){bl="==";f.AppendChild(new D.Node.ptr("","","",452,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,I.StrToBytes(bl),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));O(a,b,c);}else if(bg===(461571)){f.AppendChild(new D.Node.ptr("","","",487,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));O(a,b,c);}else if(bg===(421123)){f.AppendChild(new D.Node.ptr("","","",492,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));O(a,b,c);}else if(bg===(29191)){b.Context.Tip.AppendChild(new D.Node.ptr("","","",9,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes("</details>"))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}$s=-1;return;}return;}}catch(err){$err=err;$s=-1;}finally{$callDeferred($deferred,$err);if($curGoroutine.asleep){if($f===undefined){$f={$blk:P.ptr.prototype.genASTByDOM};}$f.a=a;$f.aa=aa;$f.ab=ab;$f.ac=ac;$f.ad=ad;$f.ae=ae;$f.af=af;$f.ag=ag;$f.ah=ah;$f.ai=ai;$f.aj=aj;$f.ak=ak;$f.al=al;$f.am=am;$f.an=an;$f.ao=ao;$f.ap=ap;$f.aq=aq;$f.ar=ar;$f.as=as;$f.at=at;$f.au=au;$f.av=av;$f.aw=aw;$f.ax=ax;$f.ay=ay;$f.az=az;$f.b=b;$f.ba=ba;$f.bb=bb;$f.bc=bc;$f.bd=bd;$f.be=be;$f.bf=bf;$f.bg=bg;$f.bh=bh;$f.bi=bi;$f.bj=bj;$f.bk=bk;$f.bl=bl;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.k=k;$f.l=l;$f.m=m;$f.n=n;$f.o=o;$f.p=p;$f.q=q;$f.r=r;$f.s=s;$f.t=t;$f.u=u;$f.v=v;$f.w=w;$f.x=x;$f.y=y;$f.z=z;$f.$s=$s;$f.$deferred=$deferred;$f.$r=$r;return $f;}}};P.prototype.genASTByDOM=function(a,b){return this.$val.genASTByDOM(a,b);};O=function(a,b,c){var a,b,c,d,e,f,g,h;if(!(AD.nil===a.NextSibling)){d=c.domText(a.NextSibling);if(!(""===d)){e=(new AR($stringToRunes(d)));if(!C.IsSpace((0>=e.$length?($throwRuntimeError("index out of range"),undefined):e.$array[e.$offset+0]))){if(C.IsPunct((0>=e.$length?($throwRuntimeError("index out of range"),undefined):e.$array[e.$offset+0]))||C.IsSymbol((0>=e.$length?($throwRuntimeError("index out of range"),undefined):e.$array[e.$offset+0]))){b.Context.Tip.InsertBefore(new D.Node.ptr("","","",16,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(" "))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));b.Context.Tip.InsertAfter(new D.Node.ptr("","","",16,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(" "))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));return;}f=c.domText(a);if(!(""===f)){e=(new AR($stringToRunes(f)));h=(g=e.$length-1>>0,((g<0||g>=e.$length)?($throwRuntimeError("index out of range"),undefined):e.$array[e.$offset+g]));if(C.IsPunct(h)||C.IsSymbol(h)){b.Context.Tip.InsertBefore(new D.Node.ptr("","","",16,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(" "))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));b.Context.Tip.InsertAfter(new D.Node.ptr("","","",16,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(" "))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));return;}}}}}};Q=function(a){var a,b,c,d,e,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b=AS.nil;b=new P.ptr(G.NewOptions(),H.NewOptions(),false,false,false,false,false,false,false,false,false,false);c=a;d=0;case 1:if(!(d<c.$length)){$s=2;continue;}e=((d<0||d>=c.$length)?($throwRuntimeError("index out of range"),undefined):c.$array[c.$offset+d]);$r=e(b);$s=3;case 3:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}d++;$s=1;continue;case 2:b.HTML2MdRendererFuncs=$makeMap(D.NodeType.keyFor,[]);b.HTML2VditorDOMRendererFuncs=$makeMap(D.NodeType.keyFor,[]);b.HTML2VditorIRDOMRendererFuncs=$makeMap(D.NodeType.keyFor,[]);b.HTML2BlockDOMRendererFuncs=$makeMap(D.NodeType.keyFor,[]);b.HTML2VditorSVDOMRendererFuncs=$makeMap(D.NodeType.keyFor,[]);b.Md2HTMLRendererFuncs=$makeMap(D.NodeType.keyFor,[]);b.Md2VditorDOMRendererFuncs=$makeMap(D.NodeType.keyFor,[]);b.Md2VditorIRDOMRendererFuncs=$makeMap(D.NodeType.keyFor,[]);b.Md2BlockDOMRendererFuncs=$makeMap(D.NodeType.keyFor,[]);b.Md2VditorSVDOMRendererFuncs=$makeMap(D.NodeType.keyFor,[]);b=b;$s=-1;return b;}return;}if($f===undefined){$f={$blk:Q};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.$s=$s;$f.$r=$r;return $f;};$pkg.New=Q;P.ptr.prototype.Markdown=function(a,b){var a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;k=$f.k;l=$f.l;m=$f.m;n=$f.n;o=$f.o;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=AC.nil;d=this;e=G.Parse(a,b,d.ParseOptions);$s=1;case 1:if($c){$c=false;e=e.$blk();}if(e&&e.$blk!==undefined){break s;}f=e;g=H.NewHtmlRenderer(f,d.RenderOptions);h=d.Md2HTMLRendererFuncs;i=0;j=$keys(h);while(true){if(!(i<j.length)){break;}k=h[j[i]];if(k===undefined){i++;continue;}l=k.k;m=k.v;n=l;(g.BaseRenderer.ExtRendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[D.NodeType.keyFor(n)]={k:n,v:m};i++;}o=g.Render();$s=2;case 2:if($c){$c=false;o=o.$blk();}if(o&&o.$blk!==undefined){break s;}c=o;$s=-1;return c;}return;}if($f===undefined){$f={$blk:P.ptr.prototype.Markdown};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.k=k;$f.l=l;$f.m=m;$f.n=n;$f.o=o;$f.$s=$s;$f.$r=$r;return $f;};P.prototype.Markdown=function(a,b){return this.$val.Markdown(a,b);};P.ptr.prototype.MarkdownStr=function(a,b){var a,b,c,d,e,f,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c="";d=this;e=d.Markdown(a,(new AC($stringToBytes(b))));$s=1;case 1:if($c){$c=false;e=e.$blk();}if(e&&e.$blk!==undefined){break s;}f=e;c=I.BytesToStr(f);$s=-1;return c;}return;}if($f===undefined){$f={$blk:P.ptr.prototype.MarkdownStr};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.$s=$s;$f.$r=$r;return $f;};P.prototype.MarkdownStr=function(a,b){return this.$val.MarkdownStr(a,b);};P.ptr.prototype.Format=function(a,b){var a,b,c,d,e,f,g,h,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=AC.nil;d=this;e=G.Parse(a,b,d.ParseOptions);$s=1;case 1:if($c){$c=false;e=e.$blk();}if(e&&e.$blk!==undefined){break s;}f=e;g=H.NewFormatRenderer(f,d.RenderOptions);h=g.BaseRenderer.Render();$s=2;case 2:if($c){$c=false;h=h.$blk();}if(h&&h.$blk!==undefined){break s;}c=h;$s=-1;return c;}return;}if($f===undefined){$f={$blk:P.ptr.prototype.Format};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.$s=$s;$f.$r=$r;return $f;};P.prototype.Format=function(a,b){return this.$val.Format(a,b);};P.ptr.prototype.FormatStr=function(a,b){var a,b,c,d,e,f,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c="";d=this;e=d.Format(a,(new AC($stringToBytes(b))));$s=1;case 1:if($c){$c=false;e=e.$blk();}if(e&&e.$blk!==undefined){break s;}f=e;c=I.BytesToStr(f);$s=-1;return c;}return;}if($f===undefined){$f={$blk:P.ptr.prototype.FormatStr};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.$s=$s;$f.$r=$r;return $f;};P.prototype.FormatStr=function(a,b){return this.$val.FormatStr(a,b);};P.ptr.prototype.TextBundle=function(a,b,c){var a,b,c,d,e,f,g,h,i,j,k,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;k=$f.k;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:d=AC.nil;e=AI.nil;f=this;g=G.Parse(a,b,f.ParseOptions);$s=1;case 1:if($c){$c=false;g=g.$blk();}if(g&&g.$blk!==undefined){break s;}h=g;i=H.NewTextBundleRenderer(h,c,f.RenderOptions);k=i.Render();$s=2;case 2:if($c){$c=false;k=k.$blk();}if(k&&k.$blk!==undefined){break s;}j=k;d=j[0];e=j[1];$s=-1;return[d,e];}return;}if($f===undefined){$f={$blk:P.ptr.prototype.TextBundle};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.k=k;$f.$s=$s;$f.$r=$r;return $f;};P.prototype.TextBundle=function(a,b,c){return this.$val.TextBundle(a,b,c);};P.ptr.prototype.TextBundleStr=function(a,b,c){var a,b,c,d,e,f,g,h,i,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:d="";e=AI.nil;f=this;h=f.TextBundle(a,(new AC($stringToBytes(b))),c);$s=1;case 1:if($c){$c=false;h=h.$blk();}if(h&&h.$blk!==undefined){break s;}g=h;i=g[0];e=g[1];d=I.BytesToStr(i);$s=-1;return[d,e];}return;}if($f===undefined){$f={$blk:P.ptr.prototype.TextBundleStr};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.$s=$s;$f.$r=$r;return $f;};P.prototype.TextBundleStr=function(a,b,c){return this.$val.TextBundleStr(a,b,c);};P.ptr.prototype.HTML2Text=function(a){var a,b,c,d,e,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b=this;c=b.HTML2Tree(a);$s=1;case 1:if($c){$c=false;c=c.$blk();}if(c&&c.$blk!==undefined){break s;}d=c;if(AA.nil===d){$s=-1;return"";}e=d.Root.Text();$s=2;case 2:if($c){$c=false;e=e.$blk();}if(e&&e.$blk!==undefined){break s;}$s=-1;return e;}return;}if($f===undefined){$f={$blk:P.ptr.prototype.HTML2Text};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.$s=$s;$f.$r=$r;return $f;};P.prototype.HTML2Text=function(a){return this.$val.HTML2Text(a);};P.ptr.prototype.RenderJSON=function(a){var a,b,c,d,e,f,g,h,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b="";c=this;d=G.Parse("",(new AC($stringToBytes(a))),c.ParseOptions);$s=1;case 1:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}e=d;f=H.NewJSONRenderer(e,c.RenderOptions);g=f.Render();$s=2;case 2:if($c){$c=false;g=g.$blk();}if(g&&g.$blk!==undefined){break s;}h=g;b=I.BytesToStr(h);$s=-1;return b;}return;}if($f===undefined){$f={$blk:P.ptr.prototype.RenderJSON};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.$s=$s;$f.$r=$r;return $f;};P.prototype.RenderJSON=function(a){return this.$val.RenderJSON(a);};P.ptr.prototype.Space=function(a){var a,b;b=this;return H.Space0(a);};P.prototype.Space=function(a){return this.$val.Space(a);};P.ptr.prototype.IsValidLinkDest=function(a){var a,b,c,d,e,f,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b=this;c=Q(new AT([]));$s=1;case 1:if($c){$c=false;c=c.$blk();}if(c&&c.$blk!==undefined){break s;}d=c;d.ParseOptions.GFMAutoLink=true;e=G.Parse("",(new AC($stringToBytes(a))),d.ParseOptions);$s=2;case 2:if($c){$c=false;e=e.$blk();}if(e&&e.$blk!==undefined){break s;}f=e;if(AE.nil===f.Root.FirstChild||AE.nil===f.Root.FirstChild.FirstChild){$s=-1;return false;}if(!(f.Root.LastChild===f.Root.FirstChild)){$s=-1;return false;}if(!((33===f.Root.FirstChild.FirstChild.Type))){$s=-1;return false;}$s=-1;return true;}return;}if($f===undefined){$f={$blk:P.ptr.prototype.IsValidLinkDest};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.$s=$s;$f.$r=$r;return $f;};P.prototype.IsValidLinkDest=function(a){return this.$val.IsValidLinkDest(a);};P.ptr.prototype.GetEmojis=function(){var a,b,c,d,e,f,g,h,i,j,k;a=false;b=this;a=(c=$keys(b.ParseOptions.AliasEmoji).length,((c<0||c>2147483647)?$throwRuntimeError("makemap: size out of range"):{}));d=I.BytesToStr(G.EmojiSitePlaceholder);e=b.ParseOptions.AliasEmoji;f=0;g=$keys(e);while(true){if(!(f<g.length)){break;}h=e[g[f]];if(h===undefined){f++;continue;}i=h.k;j=h.v;if(B.Contains(j,d)){j=B.ReplaceAll(j,d,b.ParseOptions.EmojiSite);}k=i;(a||$throwRuntimeError("assignment to entry in nil map"))[$String.keyFor(k)]={k:k,v:j};f++;}return a;};P.prototype.GetEmojis=function(){return this.$val.GetEmojis();};P.ptr.prototype.PutEmojis=function(a){var a,b,c,d,e,f,g,h,i,j,$s,$deferred,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;$s=$f.$s;$deferred=$f.$deferred;$r=$f.$r;}var $err=null;try{s:while(true){switch($s){case 0:$deferred=[];$deferred.index=$curGoroutine.deferStack.length;$curGoroutine.deferStack.push($deferred);b=this;$r=R.Lock();$s=1;case 1:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$deferred.push([$methodVal(R,"Unlock"),[]]);c=a;d=0;e=$keys(c);while(true){if(!(d<e.length)){break;}f=c[e[d]];if(f===undefined){d++;continue;}g=f.k;h=f.v;i=g;(b.ParseOptions.AliasEmoji||$throwRuntimeError("assignment to entry in nil map"))[$String.keyFor(i)]={k:i,v:h};j=h;(b.ParseOptions.EmojiAlias||$throwRuntimeError("assignment to entry in nil map"))[$String.keyFor(j)]={k:j,v:g};d++;}$s=-1;return;}return;}}catch(err){$err=err;$s=-1;}finally{$callDeferred($deferred,$err);if($curGoroutine.asleep){if($f===undefined){$f={$blk:P.ptr.prototype.PutEmojis};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.$s=$s;$f.$deferred=$deferred;$f.$r=$r;return $f;}}};P.prototype.PutEmojis=function(a){return this.$val.PutEmojis(a);};P.ptr.prototype.RemoveEmoji=function(a){var a,b,c,d,e,f,g,h,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b=this;c=b.ParseOptions.EmojiAlias;d=0;e=$keys(c);while(true){if(!(d<e.length)){break;}f=c[e[d]];if(f===undefined){d++;continue;}g=f.k;a=B.ReplaceAll(a,g,"");d++;}h=B.TrimSpace(a);$s=1;case 1:if($c){$c=false;h=h.$blk();}if(h&&h.$blk!==undefined){break s;}$s=-1;return h;}return;}if($f===undefined){$f={$blk:P.ptr.prototype.RemoveEmoji};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.$s=$s;$f.$r=$r;return $f;};P.prototype.RemoveEmoji=function(a){return this.$val.RemoveEmoji(a);};P.ptr.prototype.GetTerms=function(){var a;a=this;return a.RenderOptions.Terms;};P.prototype.GetTerms=function(){return this.$val.GetTerms();};P.ptr.prototype.PutTerms=function(a){var a,b,c,d,e,f,g,h,i;b=this;if(false===b.RenderOptions.Terms){b.RenderOptions.Terms=H.NewTerms();}c=a;d=0;e=$keys(c);while(true){if(!(d<e.length)){break;}f=c[e[d]];if(f===undefined){d++;continue;}g=f.k;h=f.v;i=g;(b.RenderOptions.Terms||$throwRuntimeError("assignment to entry in nil map"))[$String.keyFor(i)]={k:i,v:h};d++;}};P.prototype.PutTerms=function(a){return this.$val.PutTerms(a);};P.ptr.prototype.ProtylePreview=function(a,b){var a,b,c,d,e,f,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=this;d=H.NewProtylePreviewRenderer(a,b);e=d.Render();$s=1;case 1:if($c){$c=false;e=e.$blk();}if(e&&e.$blk!==undefined){break s;}f=e;$s=-1;return I.BytesToStr(f);}return;}if($f===undefined){$f={$blk:P.ptr.prototype.ProtylePreview};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.$s=$s;$f.$r=$r;return $f;};P.prototype.ProtylePreview=function(a,b){return this.$val.ProtylePreview(a,b);};P.ptr.prototype.Tree2HTML=function(a,b){var a,b,c,d,e,f,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=this;d=H.NewHtmlRenderer(a,b);e=d.Render();$s=1;case 1:if($c){$c=false;e=e.$blk();}if(e&&e.$blk!==undefined){break s;}f=e;$s=-1;return I.BytesToStr(f);}return;}if($f===undefined){$f={$blk:P.ptr.prototype.Tree2HTML};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.$s=$s;$f.$r=$r;return $f;};P.prototype.Tree2HTML=function(a,b){return this.$val.Tree2HTML(a,b);};P.ptr.prototype.SetGFMTable=function(a){var a,b;b=this;b.ParseOptions.GFMTable=a;};P.prototype.SetGFMTable=function(a){return this.$val.SetGFMTable(a);};P.ptr.prototype.SetGFMTaskListItem=function(a){var a,b;b=this;b.ParseOptions.GFMTaskListItem=a;};P.prototype.SetGFMTaskListItem=function(a){return this.$val.SetGFMTaskListItem(a);};P.ptr.prototype.SetGFMTaskListItemClass=function(a){var a,b;b=this;b.RenderOptions.GFMTaskListItemClass=a;};P.prototype.SetGFMTaskListItemClass=function(a){return this.$val.SetGFMTaskListItemClass(a);};P.ptr.prototype.SetGFMStrikethrough=function(a){var a,b;b=this;b.ParseOptions.GFMStrikethrough=a;};P.prototype.SetGFMStrikethrough=function(a){return this.$val.SetGFMStrikethrough(a);};P.ptr.prototype.SetGFMAutoLink=function(a){var a,b;b=this;b.ParseOptions.GFMAutoLink=a;};P.prototype.SetGFMAutoLink=function(a){return this.$val.SetGFMAutoLink(a);};P.ptr.prototype.SetSoftBreak2HardBreak=function(a){var a,b;b=this;b.RenderOptions.SoftBreak2HardBreak=a;};P.prototype.SetSoftBreak2HardBreak=function(a){return this.$val.SetSoftBreak2HardBreak(a);};P.ptr.prototype.SetCodeSyntaxHighlight=function(a){var a,b;b=this;b.RenderOptions.CodeSyntaxHighlight=a;};P.prototype.SetCodeSyntaxHighlight=function(a){return this.$val.SetCodeSyntaxHighlight(a);};P.ptr.prototype.SetCodeSyntaxHighlightDetectLang=function(a){var a,b;b=this;b.RenderOptions.CodeSyntaxHighlightDetectLang=a;};P.prototype.SetCodeSyntaxHighlightDetectLang=function(a){return this.$val.SetCodeSyntaxHighlightDetectLang(a);};P.ptr.prototype.SetCodeSyntaxHighlightInlineStyle=function(a){var a,b;b=this;b.RenderOptions.CodeSyntaxHighlightInlineStyle=a;};P.prototype.SetCodeSyntaxHighlightInlineStyle=function(a){return this.$val.SetCodeSyntaxHighlightInlineStyle(a);};P.ptr.prototype.SetCodeSyntaxHighlightLineNum=function(a){var a,b;b=this;b.RenderOptions.CodeSyntaxHighlightLineNum=a;};P.prototype.SetCodeSyntaxHighlightLineNum=function(a){return this.$val.SetCodeSyntaxHighlightLineNum(a);};P.ptr.prototype.SetCodeSyntaxHighlightStyleName=function(a){var a,b;b=this;b.RenderOptions.CodeSyntaxHighlightStyleName=a;};P.prototype.SetCodeSyntaxHighlightStyleName=function(a){return this.$val.SetCodeSyntaxHighlightStyleName(a);};P.ptr.prototype.SetFootnotes=function(a){var a,b;b=this;b.ParseOptions.Footnotes=a;};P.prototype.SetFootnotes=function(a){return this.$val.SetFootnotes(a);};P.ptr.prototype.SetToC=function(a){var a,b;b=this;b.ParseOptions.ToC=a;b.RenderOptions.ToC=a;};P.prototype.SetToC=function(a){return this.$val.SetToC(a);};P.ptr.prototype.SetHeadingID=function(a){var a,b;b=this;b.ParseOptions.HeadingID=a;b.RenderOptions.HeadingID=a;};P.prototype.SetHeadingID=function(a){return this.$val.SetHeadingID(a);};P.ptr.prototype.SetAutoSpace=function(a){var a,b;b=this;b.RenderOptions.AutoSpace=a;};P.prototype.SetAutoSpace=function(a){return this.$val.SetAutoSpace(a);};P.ptr.prototype.SetFixTermTypo=function(a){var a,b;b=this;b.RenderOptions.FixTermTypo=a;};P.prototype.SetFixTermTypo=function(a){return this.$val.SetFixTermTypo(a);};P.ptr.prototype.SetEmoji=function(a){var a,b;b=this;b.ParseOptions.Emoji=a;};P.prototype.SetEmoji=function(a){return this.$val.SetEmoji(a);};P.ptr.prototype.SetEmojis=function(a){var a,b;b=this;b.ParseOptions.AliasEmoji=a;};P.prototype.SetEmojis=function(a){return this.$val.SetEmojis(a);};P.ptr.prototype.SetEmojiSite=function(a){var a,b;b=this;b.ParseOptions.EmojiSite=a;};P.prototype.SetEmojiSite=function(a){return this.$val.SetEmojiSite(a);};P.ptr.prototype.SetHeadingAnchor=function(a){var a,b;b=this;b.RenderOptions.HeadingAnchor=a;};P.prototype.SetHeadingAnchor=function(a){return this.$val.SetHeadingAnchor(a);};P.ptr.prototype.SetTerms=function(a){var a,b;b=this;b.RenderOptions.Terms=a;};P.prototype.SetTerms=function(a){return this.$val.SetTerms(a);};P.ptr.prototype.SetVditorWYSIWYG=function(a){var a,b;b=this;b.ParseOptions.VditorWYSIWYG=a;b.RenderOptions.VditorWYSIWYG=a;};P.prototype.SetVditorWYSIWYG=function(a){return this.$val.SetVditorWYSIWYG(a);};P.ptr.prototype.SetProtyleWYSIWYG=function(a){var a,b;b=this;b.ParseOptions.ProtyleWYSIWYG=a;b.RenderOptions.ProtyleWYSIWYG=a;};P.prototype.SetProtyleWYSIWYG=function(a){return this.$val.SetProtyleWYSIWYG(a);};P.ptr.prototype.SetVditorIR=function(a){var a,b;b=this;b.ParseOptions.VditorIR=a;b.RenderOptions.VditorIR=a;};P.prototype.SetVditorIR=function(a){return this.$val.SetVditorIR(a);};P.ptr.prototype.SetVditorSV=function(a){var a,b;b=this;b.ParseOptions.VditorSV=a;b.RenderOptions.VditorSV=a;};P.prototype.SetVditorSV=function(a){return this.$val.SetVditorSV(a);};P.ptr.prototype.SetInlineMathAllowDigitAfterOpenMarker=function(a){var a,b;b=this;b.ParseOptions.InlineMathAllowDigitAfterOpenMarker=a;};P.prototype.SetInlineMathAllowDigitAfterOpenMarker=function(a){return this.$val.SetInlineMathAllowDigitAfterOpenMarker(a);};P.ptr.prototype.SetLinkPrefix=function(a){var a,b;b=this;b.RenderOptions.LinkPrefix=a;};P.prototype.SetLinkPrefix=function(a){return this.$val.SetLinkPrefix(a);};P.ptr.prototype.SetLinkBase=function(a){var a,b;b=this;b.RenderOptions.LinkBase=a;};P.prototype.SetLinkBase=function(a){return this.$val.SetLinkBase(a);};P.ptr.prototype.GetLinkBase=function(){var a;a=this;return a.RenderOptions.LinkBase;};P.prototype.GetLinkBase=function(){return this.$val.GetLinkBase();};P.ptr.prototype.SetVditorCodeBlockPreview=function(a){var a,b;b=this;b.RenderOptions.VditorCodeBlockPreview=a;};P.prototype.SetVditorCodeBlockPreview=function(a){return this.$val.SetVditorCodeBlockPreview(a);};P.ptr.prototype.SetVditorMathBlockPreview=function(a){var a,b;b=this;b.RenderOptions.VditorMathBlockPreview=a;};P.prototype.SetVditorMathBlockPreview=function(a){return this.$val.SetVditorMathBlockPreview(a);};P.ptr.prototype.SetVditorHTMLBlockPreview=function(a){var a,b;b=this;b.RenderOptions.VditorHTMLBlockPreview=a;};P.prototype.SetVditorHTMLBlockPreview=function(a){return this.$val.SetVditorHTMLBlockPreview(a);};P.ptr.prototype.SetRenderListStyle=function(a){var a,b;b=this;b.RenderOptions.RenderListStyle=a;};P.prototype.SetRenderListStyle=function(a){return this.$val.SetRenderListStyle(a);};P.ptr.prototype.SetSanitize=function(a){var a,b;b=this;b.RenderOptions.Sanitize=a;};P.prototype.SetSanitize=function(a){return this.$val.SetSanitize(a);};P.ptr.prototype.SetImageLazyLoading=function(a){var a,b;b=this;b.RenderOptions.ImageLazyLoading=a;};P.prototype.SetImageLazyLoading=function(a){return this.$val.SetImageLazyLoading(a);};P.ptr.prototype.SetChineseParagraphBeginningSpace=function(a){var a,b;b=this;b.RenderOptions.ChineseParagraphBeginningSpace=a;};P.prototype.SetChineseParagraphBeginningSpace=function(a){return this.$val.SetChineseParagraphBeginningSpace(a);};P.ptr.prototype.SetYamlFrontMatter=function(a){var a,b;b=this;b.ParseOptions.YamlFrontMatter=a;};P.prototype.SetYamlFrontMatter=function(a){return this.$val.SetYamlFrontMatter(a);};P.ptr.prototype.SetSetext=function(a){var a,b;b=this;b.ParseOptions.Setext=a;};P.prototype.SetSetext=function(a){return this.$val.SetSetext(a);};P.ptr.prototype.SetBlockRef=function(a){var a,b;b=this;b.ParseOptions.BlockRef=a;};P.prototype.SetBlockRef=function(a){return this.$val.SetBlockRef(a);};P.ptr.prototype.SetFileAnnotationRef=function(a){var a,b;b=this;b.ParseOptions.FileAnnotationRef=a;};P.prototype.SetFileAnnotationRef=function(a){return this.$val.SetFileAnnotationRef(a);};P.ptr.prototype.SetMark=function(a){var a,b;b=this;b.ParseOptions.Mark=a;};P.prototype.SetMark=function(a){return this.$val.SetMark(a);};P.ptr.prototype.SetKramdownIAL=function(a){var a,b;b=this;b.ParseOptions.KramdownBlockIAL=a;b.ParseOptions.KramdownSpanIAL=a;b.RenderOptions.KramdownBlockIAL=a;b.RenderOptions.KramdownSpanIAL=a;};P.prototype.SetKramdownIAL=function(a){return this.$val.SetKramdownIAL(a);};P.ptr.prototype.SetKramdownBlockIAL=function(a){var a,b;b=this;b.ParseOptions.KramdownBlockIAL=a;b.RenderOptions.KramdownBlockIAL=a;};P.prototype.SetKramdownBlockIAL=function(a){return this.$val.SetKramdownBlockIAL(a);};P.ptr.prototype.SetKramdownSpanIAL=function(a){var a,b;b=this;b.ParseOptions.KramdownSpanIAL=a;b.RenderOptions.KramdownSpanIAL=a;};P.prototype.SetKramdownSpanIAL=function(a){return this.$val.SetKramdownSpanIAL(a);};P.ptr.prototype.SetKramdownIALIDRenderName=function(a){var a,b;b=this;b.RenderOptions.KramdownIALIDRenderName=a;};P.prototype.SetKramdownIALIDRenderName=function(a){return this.$val.SetKramdownIALIDRenderName(a);};P.ptr.prototype.SetTag=function(a){var a,b;b=this;b.ParseOptions.Tag=a;};P.prototype.SetTag=function(a){return this.$val.SetTag(a);};P.ptr.prototype.SetImgPathAllowSpace=function(a){var a,b;b=this;b.ParseOptions.ImgPathAllowSpace=a;};P.prototype.SetImgPathAllowSpace=function(a){return this.$val.SetImgPathAllowSpace(a);};P.ptr.prototype.SetSuperBlock=function(a){var a,b;b=this;b.ParseOptions.SuperBlock=a;b.RenderOptions.SuperBlock=a;};P.prototype.SetSuperBlock=function(a){return this.$val.SetSuperBlock(a);};P.ptr.prototype.SetSup=function(a){var a,b;b=this;b.ParseOptions.Sup=a;};P.prototype.SetSup=function(a){return this.$val.SetSup(a);};P.ptr.prototype.SetSub=function(a){var a,b;b=this;b.ParseOptions.Sub=a;};P.prototype.SetSub=function(a){return this.$val.SetSub(a);};P.ptr.prototype.SetGitConflict=function(a){var a,b;b=this;b.ParseOptions.GitConflict=a;};P.prototype.SetGitConflict=function(a){return this.$val.SetGitConflict(a);};P.ptr.prototype.SetLinkRef=function(a){var a,b;b=this;b.ParseOptions.LinkRef=a;};P.prototype.SetLinkRef=function(a){return this.$val.SetLinkRef(a);};P.ptr.prototype.SetIndentCodeBlock=function(a){var a,b;b=this;b.ParseOptions.IndentCodeBlock=a;};P.prototype.SetIndentCodeBlock=function(a){return this.$val.SetIndentCodeBlock(a);};P.ptr.prototype.SetParagraphBeginningSpace=function(a){var a,b;b=this;b.ParseOptions.ParagraphBeginningSpace=a;b.RenderOptions.KeepParagraphBeginningSpace=a;};P.prototype.SetParagraphBeginningSpace=function(a){return this.$val.SetParagraphBeginningSpace(a);};P.ptr.prototype.SetProtyleMarkNetImg=function(a){var a,b;b=this;b.RenderOptions.ProtyleMarkNetImg=a;};P.prototype.SetProtyleMarkNetImg=function(a){return this.$val.SetProtyleMarkNetImg(a);};P.ptr.prototype.SetJSRenderers=function(a){var a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;k=$f.k;l=$f.l;m=$f.m;n=$f.n;o=$f.o;p=$f.p;q=$f.q;r=$f.r;s=$f.s;t=$f.t;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b=[b];c=this;d=(e=a[$String.keyFor("renderers")],e!==undefined?e.v:false);f=0;g=$keys(d);case 1:if(!(f<g.length)){$s=2;continue;}h=[h];i=d[g[f]];if(i===undefined){f++;$s=1;continue;}j=i.k;b[0]=i.v;k=$internalize(b[0],$emptyInterface);switch(0){default:if($assertType(k,AX,true)[1]){break;}else{$panic(new $String("invalid type ["+j+"]"));}}l=false;if("HTML2Md"===j){l=c.HTML2MdRendererFuncs;}else if("HTML2VditorDOM"===j){l=c.HTML2VditorDOMRendererFuncs;}else if("HTML2VditorIRDOM"===j){l=c.HTML2VditorIRDOMRendererFuncs;}else if("HTML2BlockDOM"===j){l=c.HTML2BlockDOMRendererFuncs;}else if("HTML2VditorSVDOM"===j){l=c.HTML2VditorSVDOMRendererFuncs;}else if("Md2HTML"===j){l=c.Md2HTMLRendererFuncs;}else if("Md2VditorDOM"===j){l=c.Md2VditorDOMRendererFuncs;}else if("Md2VditorIRDOM"===j){l=c.Md2VditorIRDOMRendererFuncs;}else if("Md2BlockDOM"===j){l=c.Md2BlockDOMRendererFuncs;}else if("Md2VditorSVDOM"===j){l=c.Md2VditorSVDOMRendererFuncs;}else{$panic(new $String("unknown ext renderer func ["+j+"]"));}m=$assertType($internalize(b[0],$emptyInterface),AX);n=m;o=0;p=$keys(n);case 3:if(!(o<p.length)){$s=4;continue;}q=n[p[o]];if(q===undefined){o++;$s=3;continue;}h[0]=q.k;r="Node"+$substring(h[0],6);t=D.Str2NodeType(r);$s=5;case 5:if($c){$c=false;t=t.$blk();}if(t&&t.$blk!==undefined){break s;}s=t;(l||$throwRuntimeError("assignment to entry in nil map"))[D.NodeType.keyFor(s)]={k:s,v:(function(b,h){return function(u,v){var u,v,w;h[0]="render"+$substring(new D.NodeType(u.Type).String(),4);w=$assertType($internalize(b[0][$externalize(h[0],$String)](M.MakeWrapper(u),$externalize(v,$Bool)),$emptyInterface),AY);return[$assertType((0>=w.$length?($throwRuntimeError("index out of range"),undefined):w.$array[w.$offset+0]),$String),(($assertType((1>=w.$length?($throwRuntimeError("index out of range"),undefined):w.$array[w.$offset+1]),$Float64)>>0))];};})(b,h)};o++;$s=3;continue;case 4:f++;$s=1;continue;case 2:$s=-1;return;}return;}if($f===undefined){$f={$blk:P.ptr.prototype.SetJSRenderers};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.k=k;$f.l=l;$f.m=m;$f.n=n;$f.o=o;$f.p=p;$f.q=q;$f.r=r;$f.s=s;$f.t=t;$f.$s=$s;$f.$r=$r;return $f;};P.prototype.SetJSRenderers=function(a){return this.$val.SetJSRenderers(a);};P.ptr.prototype.SpinBlockDOM=function(a){var a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;k=$f.k;l=$f.l;m=$f.m;n=$f.n;o=$f.o;p=$f.p;q=$f.q;r=$f.r;s=$f.s;t=$f.t;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b="";c=this;d=c.blockDOM2Md(a);$s=1;case 1:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}e=d;e=B.ReplaceAll(e,"\xE2\x80\x8B","");f=G.Parse("",(new AC($stringToBytes(e))),c.ParseOptions);$s=2;case 2:if($c){$c=false;f=f.$blk();}if(f&&f.$blk!==undefined){break s;}g=f;h=g.Root.FirstChild;if((1===h.Type)&&""===h.ID){i=h.Next;if(!(AE.nil===i)&&!(AE.nil===i.Next)&&(455===i.Next.Type)){j=i.Next;k=i.ID;l="";h.ID=k;i.ID=l;h.InsertAfter(j);m=i.KramdownIAL;n=AM.nil;h.KramdownIAL=m;i.KramdownIAL=n;}}if((455===h.Type)&&!(AE.nil===h.Next)&&(455===h.Next.Type)&&I.IsDocIAL(h.Next.Tokens)){$s=3;continue;}$s=4;continue;case 3:o=G.Tokens2IAL(h.Tokens);$s=5;case 5:if($c){$c=false;o=o.$blk();}if(o&&o.$blk!==undefined){break s;}p=o;q=G.IAL2Map(p);s=new D.Node.ptr((r=q[$String.keyFor("id")],r!==undefined?r.v:""),"","",1,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,p,false);h.InsertBefore(s);case 4:t=c.Tree2BlockDOM(g,c.RenderOptions);$s=6;case 6:if($c){$c=false;t=t.$blk();}if(t&&t.$blk!==undefined){break s;}b=t;$s=-1;return b;}return;}if($f===undefined){$f={$blk:P.ptr.prototype.SpinBlockDOM};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.k=k;$f.l=l;$f.m=m;$f.n=n;$f.o=o;$f.p=p;$f.q=q;$f.r=r;$f.s=s;$f.t=t;$f.$s=$s;$f.$r=$r;return $f;};P.prototype.SpinBlockDOM=function(a){return this.$val.SpinBlockDOM(a);};P.ptr.prototype.HTML2BlockDOM=function(a){var a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;k=$f.k;l=$f.l;m=$f.m;n=$f.n;o=$f.o;p=$f.p;q=$f.q;r=$f.r;s=$f.s;t=$f.t;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b="";c=this;e=c.HTML2Markdown(a);$s=1;case 1:if($c){$c=false;e=e.$blk();}if(e&&e.$blk!==undefined){break s;}d=e;f=d[0];g=d[1];if(!($interfaceIsEqual($ifaceNil,g))){$s=2;continue;}$s=3;continue;case 2:h=g.Error();$s=4;case 4:if($c){$c=false;h=h.$blk();}if(h&&h.$blk!==undefined){break s;}b=h;$s=-1;return b;case 3:i=G.Parse("",(new AC($stringToBytes(f))),c.ParseOptions);$s=5;case 5:if($c){$c=false;i=i.$blk();}if(i&&i.$blk!==undefined){break s;}j=i;k=H.NewBlockRenderer(j,c.RenderOptions);l=c.HTML2BlockDOMRendererFuncs;m=0;n=$keys(l);while(true){if(!(m<n.length)){break;}o=l[n[m]];if(o===undefined){m++;continue;}p=o.k;q=o.v;r=p;(k.BaseRenderer.ExtRendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[D.NodeType.keyFor(r)]={k:r,v:q};m++;}s=k.BaseRenderer.Render();$s=6;case 6:if($c){$c=false;s=s.$blk();}if(s&&s.$blk!==undefined){break s;}t=s;b=I.BytesToStr(t);$s=-1;return b;}return;}if($f===undefined){$f={$blk:P.ptr.prototype.HTML2BlockDOM};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.k=k;$f.l=l;$f.m=m;$f.n=n;$f.o=o;$f.p=p;$f.q=q;$f.r=r;$f.s=s;$f.t=t;$f.$s=$s;$f.$r=$r;return $f;};P.prototype.HTML2BlockDOM=function(a){return this.$val.HTML2BlockDOM(a);};P.ptr.prototype.BlockDOM2HTML=function(a){var a,b,c,d,e,f,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b="";c=this;d=c.blockDOM2Md(a);$s=1;case 1:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}e=d;f=c.Md2HTML(e);$s=2;case 2:if($c){$c=false;f=f.$blk();}if(f&&f.$blk!==undefined){break s;}b=f;$s=-1;return b;}return;}if($f===undefined){$f={$blk:P.ptr.prototype.BlockDOM2HTML};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.$s=$s;$f.$r=$r;return $f;};P.prototype.BlockDOM2HTML=function(a){return this.$val.BlockDOM2HTML(a);};P.ptr.prototype.BlockDOM2InlineBlockDOM=function(a){var a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;k=$f.k;l=$f.l;m=$f.m;n=$f.n;o=$f.o;p=$f.p;q=$f.q;r=$f.r;s=$f.s;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b=[b];c="";d=this;e=d.blockDOM2Md(a);$s=1;case 1:if($c){$c=false;e=e.$blk();}if(e&&e.$blk!==undefined){break s;}f=e;g=G.Parse("",(new AC($stringToBytes(f))),d.ParseOptions);$s=2;case 2:if($c){$c=false;g=g.$blk();}if(g&&g.$blk!==undefined){break s;}h=g;b[0]=AJ.nil;$r=D.Walk(h.Root,(function(b){return function(i,j){var i,j;if(!j){return 2;}if(!i.IsBlock()){b[0]=$append(b[0],i);return 1;}return 2;};})(b));$s=3;case 3:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}i=AJ.nil;j=h.Root.FirstChild;while(true){if(!(!(AE.nil===j))){break;}i=$append(i,j);j=j.Next;}k=i;l=0;while(true){if(!(l<k.$length)){break;}m=((l<0||l>=k.$length)?($throwRuntimeError("index out of range"),undefined):k.$array[k.$offset+l]);m.Unlink();l++;}n=b[0];o=0;while(true){if(!(o<n.$length)){break;}p=((o<0||o>=n.$length)?($throwRuntimeError("index out of range"),undefined):n.$array[n.$offset+o]);h.Root.AppendChild(p);o++;}q=H.NewBlockRenderer(h,d.RenderOptions);r=q.BaseRenderer.Render();$s=4;case 4:if($c){$c=false;r=r.$blk();}if(r&&r.$blk!==undefined){break s;}s=r;c=I.BytesToStr(s);$s=-1;return c;}return;}if($f===undefined){$f={$blk:P.ptr.prototype.BlockDOM2InlineBlockDOM};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.k=k;$f.l=l;$f.m=m;$f.n=n;$f.o=o;$f.p=p;$f.q=q;$f.r=r;$f.s=s;$f.$s=$s;$f.$r=$r;return $f;};P.prototype.BlockDOM2InlineBlockDOM=function(a){return this.$val.BlockDOM2InlineBlockDOM(a);};P.ptr.prototype.Md2BlockDOM=function(a){var a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;k=$f.k;l=$f.l;m=$f.m;n=$f.n;o=$f.o;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b="";c=this;d=G.Parse("",(new AC($stringToBytes(a))),c.ParseOptions);$s=1;case 1:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}e=d;f=H.NewBlockRenderer(e,c.RenderOptions);g=c.Md2BlockDOMRendererFuncs;h=0;i=$keys(g);while(true){if(!(h<i.length)){break;}j=g[i[h]];if(j===undefined){h++;continue;}k=j.k;l=j.v;m=k;(f.BaseRenderer.ExtRendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[D.NodeType.keyFor(m)]={k:m,v:l};h++;}n=f.BaseRenderer.Render();$s=2;case 2:if($c){$c=false;n=n.$blk();}if(n&&n.$blk!==undefined){break s;}o=n;b=I.BytesToStr(o);$s=-1;return b;}return;}if($f===undefined){$f={$blk:P.ptr.prototype.Md2BlockDOM};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.k=k;$f.l=l;$f.m=m;$f.n=n;$f.o=o;$f.$s=$s;$f.$r=$r;return $f;};P.prototype.Md2BlockDOM=function(a){return this.$val.Md2BlockDOM(a);};P.ptr.prototype.InlineMd2BlockDOM=function(a){var a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;k=$f.k;l=$f.l;m=$f.m;n=$f.n;o=$f.o;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b="";c=this;d=G.Inline("",(new AC($stringToBytes(a))),c.ParseOptions);$s=1;case 1:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}e=d;f=H.NewBlockRenderer(e,c.RenderOptions);g=c.Md2BlockDOMRendererFuncs;h=0;i=$keys(g);while(true){if(!(h<i.length)){break;}j=g[i[h]];if(j===undefined){h++;continue;}k=j.k;l=j.v;m=k;(f.BaseRenderer.ExtRendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[D.NodeType.keyFor(m)]={k:m,v:l};h++;}n=f.BaseRenderer.Render();$s=2;case 2:if($c){$c=false;n=n.$blk();}if(n&&n.$blk!==undefined){break s;}o=n;b=I.BytesToStr(o);$s=-1;return b;}return;}if($f===undefined){$f={$blk:P.ptr.prototype.InlineMd2BlockDOM};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.k=k;$f.l=l;$f.m=m;$f.n=n;$f.o=o;$f.$s=$s;$f.$r=$r;return $f;};P.prototype.InlineMd2BlockDOM=function(a){return this.$val.InlineMd2BlockDOM(a);};P.ptr.prototype.BlockDOM2Md=function(a){var a,b,c,d,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b="";c=this;d=c.blockDOM2Md(a);$s=1;case 1:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}b=d;b=B.ReplaceAll(b,"\xE2\x80\x8B","");$s=-1;return b;}return;}if($f===undefined){$f={$blk:P.ptr.prototype.BlockDOM2Md};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.$s=$s;$f.$r=$r;return $f;};P.prototype.BlockDOM2Md=function(a){return this.$val.BlockDOM2Md(a);};P.ptr.prototype.BlockDOM2StdMd=function(a){var a,b,c,d,e,f,g,h,i,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b="";c=this;a=B.ReplaceAll(a,"\xE2\x80\x8B","");d=c.BlockDOM2Tree(a);$s=1;case 1:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}e=d;$r=D.Walk(e.Root,(function(f,g){var f,g;if(!g){return 2;}if((455===f.Type)||(456===f.Type)){f.Tokens=AC.nil;}return 2;}));$s=2;case 2:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}f=H.NewOptions();f.AutoSpace=false;f.FixTermTypo=false;f.KramdownBlockIAL=true;f.KramdownSpanIAL=true;f.KeepParagraphBeginningSpace=true;g=H.NewFormatRenderer(e,f);h=g.BaseRenderer.Render();$s=3;case 3:if($c){$c=false;h=h.$blk();}if(h&&h.$blk!==undefined){break s;}i=h;b=I.BytesToStr(i);b=B.ReplaceAll(b,"\xE2\x80\x8B","");$s=-1;return b;}return;}if($f===undefined){$f={$blk:P.ptr.prototype.BlockDOM2StdMd};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.$s=$s;$f.$r=$r;return $f;};P.prototype.BlockDOM2StdMd=function(a){return this.$val.BlockDOM2StdMd(a);};P.ptr.prototype.BlockDOM2Text=function(a){var a,b,c,d,e,f,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b="";c=this;d=c.BlockDOM2Tree(a);$s=1;case 1:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}e=d;f=e.Root.Text();$s=2;case 2:if($c){$c=false;f=f.$blk();}if(f&&f.$blk!==undefined){break s;}b=f;$s=-1;return b;}return;}if($f===undefined){$f={$blk:P.ptr.prototype.BlockDOM2Text};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.$s=$s;$f.$r=$r;return $f;};P.prototype.BlockDOM2Text=function(a){return this.$val.BlockDOM2Text(a);};P.ptr.prototype.BlockDOM2TextLen=function(a){var a,b,c,d,e,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b=this;c=b.BlockDOM2Tree(a);$s=1;case 1:if($c){$c=false;c=c.$blk();}if(c&&c.$blk!==undefined){break s;}d=c;e=d.Root.TextLen();$s=2;case 2:if($c){$c=false;e=e.$blk();}if(e&&e.$blk!==undefined){break s;}$s=-1;return e;}return;}if($f===undefined){$f={$blk:P.ptr.prototype.BlockDOM2TextLen};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.$s=$s;$f.$r=$r;return $f;};P.prototype.BlockDOM2TextLen=function(a){return this.$val.BlockDOM2TextLen(a);};P.ptr.prototype.Tree2BlockDOM=function(a,b){var a,b,c,d,e,f,g,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c="";d=this;e=H.NewBlockRenderer(a,b);f=e.BaseRenderer.Render();$s=1;case 1:if($c){$c=false;f=f.$blk();}if(f&&f.$blk!==undefined){break s;}g=f;c=I.BytesToStr(g);c=B.ReplaceAll(c,"\xE2\x80\xB8","<wbr>");$s=-1;return c;}return;}if($f===undefined){$f={$blk:P.ptr.prototype.Tree2BlockDOM};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.$s=$s;$f.$r=$r;return $f;};P.prototype.Tree2BlockDOM=function(a,b){return this.$val.Tree2BlockDOM(a,b);};P.ptr.prototype.BlockDOM2Tree=function(a){var a,b,c,d,e,f,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b=[b];c=AA.nil;b[0]=this;a=B.ReplaceAll(a,"\n<wbr>\n</strong>","</strong>\n<wbr>\n");a=B.ReplaceAll(a,"\n<wbr>\n</em>","</em>\n<wbr>\n");a=B.ReplaceAll(a,"\n<wbr>\n
","
\n<wbr>\n");a=B.ReplaceAll(a,"\n<wbr>\n</u>","</u>\n<wbr>\n");a=B.ReplaceAll(a,"\n<wbr>\n</span>","</span>\n<wbr>\n");a=B.ReplaceAll(a,"<wbr>","\xE2\x80\xB8");a=B.ReplaceAll(a,"\t\n","\n");a=B.ReplaceAll(a,"    \n","  \n");d=b[0].parseHTML(a);$s=1;case 1:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}e=d;if(AD.nil===e){$s=-1;return c;}$r=b[0].adjustVditorDOM(e);$s=2;case 2:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}c=new G.Tree.ptr(new D.Node.ptr("","","",0,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false),new G.Context.ptr(AA.nil,b[0].ParseOptions,AE.nil,AE.nil,AC.nil,0,0,0,0,0,0,false,false,false,false,AE.nil,AE.nil),AG.nil,AH.nil,"","","","","",AI.nil,new $Int64(0,0),new $Int64(0,0),"");c.Context.Tip=c.Root;f=e.FirstChild;case 3:if(!(!(AD.nil===f))){$s=4;continue;}$r=b[0].genASTByBlockDOM(f,c);$s=5;case 5:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}f=f.NextSibling;$s=3;continue;case 4:$r=D.Walk(c.Root,(function(b){return function(g,h){var g,h,i;if(h){i=g.Type;if((i===(10))||(i===(9))||(i===(29))||(i===(15))||(i===(306))||(i===(302))||(i===(27))||(i===(304))){if(!(AE.nil===g.Next)&&(27===g.Next.Type)&&(g.CodeMarkerLen===g.Next.CodeMarkerLen)&&!(AE.nil===g.FirstChild)&&!(AE.nil===g.FirstChild.Next)){g.FirstChild.Next.Tokens=$appendSlice(g.FirstChild.Next.Tokens,g.Next.FirstChild.Next.Tokens);g.Next.Unlink();}}else if((i===(22))||(i===(17))||(i===(101))||(i===(520))){b[0].mergeSameSpan(g,g.Type);}}return 2;};})(b));$s=6;case 6:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$s=-1;return c;}return;}if($f===undefined){$f={$blk:P.ptr.prototype.BlockDOM2Tree};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.$s=$s;$f.$r=$r;return $f;};P.prototype.BlockDOM2Tree=function(a){return this.$val.BlockDOM2Tree(a);};P.ptr.prototype.mergeSameSpan=function(a,b){var a,b,c,d,e,f,g,h;c=this;if(!(AE.nil===a.Next)&&(b===a.Next.Type)&&!(AE.nil===a.Next.Next)&&!((456===a.Next.Next.Type))){d=AJ.nil;a.Next.FirstChild.Unlink();a.Next.LastChild.Unlink();e=a.Next.FirstChild;while(true){if(!(!(AE.nil===e))){break;}d=$append(d,e);e=e.Next;}f=d;g=0;while(true){if(!(g<f.$length)){break;}h=((g<0||g>=f.$length)?($throwRuntimeError("index out of range"),undefined):f.$array[f.$offset+g]);a.LastChild.InsertBefore(h);g++;}a.Next.Unlink();}};P.prototype.mergeSameSpan=function(a,b){return this.$val.mergeSameSpan(a,b);};P.ptr.prototype.CancelSuperBlock=function(a){var a,b,c,d,e,f,g,h,i,j,k,l,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;k=$f.k;l=$f.l;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b="";c=this;d=c.BlockDOM2Tree(a);$s=1;case 1:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}e=d;if(!((475===e.Root.FirstChild.Type))){b=a;$s=-1;return b;}f=e.Root.FirstChild;g=AJ.nil;h=f.FirstChild;while(true){if(!(!(AE.nil===h))){break;}g=$append(g,h);h=h.Next;}i=g;j=0;while(true){if(!(j<i.$length)){break;}k=((j<0||j>=i.$length)?($throwRuntimeError("index out of range"),undefined):i.$array[i.$offset+j]);e.Root.AppendChild(k);j++;}f.Unlink();l=c.Tree2BlockDOM(e,c.RenderOptions);$s=2;case 2:if($c){$c=false;l=l.$blk();}if(l&&l.$blk!==undefined){break s;}b=l;$s=-1;return b;}return;}if($f===undefined){$f={$blk:P.ptr.prototype.CancelSuperBlock};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.k=k;$f.l=l;$f.$s=$s;$f.$r=$r;return $f;};P.prototype.CancelSuperBlock=function(a){return this.$val.CancelSuperBlock(a);};P.ptr.prototype.CancelList=function(a){var a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;k=$f.k;l=$f.l;m=$f.m;n=$f.n;o=$f.o;p=$f.p;q=$f.q;r=$f.r;s=$f.s;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b="";c=this;d=c.BlockDOM2Tree(a);$s=1;case 1:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}e=d;if(!((7===e.Root.FirstChild.Type))){b=a;$s=-1;return b;}f=e.Root.FirstChild;g=AJ.nil;h=AJ.nil;i=g;j=h;k=f.FirstChild;while(true){if(!(!(AE.nil===k))){break;}l=k.FirstChild;while(true){if(!(!(AE.nil===l))){break;}if(!((100===l.Type))){i=$append(i,l);}l=l.Next;}j=$append(j,k);k=k.Next;}m=i;n=0;while(true){if(!(n<m.$length)){break;}o=((n<0||n>=m.$length)?($throwRuntimeError("index out of range"),undefined):m.$array[m.$offset+n]);e.Root.AppendChild(o);n++;}p=j;q=0;while(true){if(!(q<p.$length)){break;}r=((q<0||q>=p.$length)?($throwRuntimeError("index out of range"),undefined):p.$array[p.$offset+q]);r.Unlink();q++;}f.Unlink();s=c.Tree2BlockDOM(e,c.RenderOptions);$s=2;case 2:if($c){$c=false;s=s.$blk();}if(s&&s.$blk!==undefined){break s;}b=s;$s=-1;return b;}return;}if($f===undefined){$f={$blk:P.ptr.prototype.CancelList};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.k=k;$f.l=l;$f.m=m;$f.n=n;$f.o=o;$f.p=p;$f.q=q;$f.r=r;$f.s=s;$f.$s=$s;$f.$r=$r;return $f;};P.prototype.CancelList=function(a){return this.$val.CancelList(a);};P.ptr.prototype.CancelBlockquote=function(a){var a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;k=$f.k;l=$f.l;m=$f.m;n=$f.n;o=$f.o;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b="";c=this;d=c.BlockDOM2Tree(a);$s=1;case 1:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}e=d;if(!((5===e.Root.FirstChild.Type))){b=a;$s=-1;return b;}f=e.Root.FirstChild;g=AJ.nil;h=AJ.nil;i=g;j=h;k=f.FirstChild;while(true){if(!(!(AE.nil===k))){break;}if(!((6===k.Type))){i=$append(i,k);}j=$append(j,k);k=k.Next;}l=i;m=0;while(true){if(!(m<l.$length)){break;}n=((m<0||m>=l.$length)?($throwRuntimeError("index out of range"),undefined):l.$array[l.$offset+m]);e.Root.AppendChild(n);m++;}f.Unlink();o=c.Tree2BlockDOM(e,c.RenderOptions);$s=2;case 2:if($c){$c=false;o=o.$blk();}if(o&&o.$blk!==undefined){break s;}b=o;$s=-1;return b;}return;}if($f===undefined){$f={$blk:P.ptr.prototype.CancelBlockquote};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.k=k;$f.l=l;$f.m=m;$f.n=n;$f.o=o;$f.$s=$s;$f.$r=$r;return $f;};P.prototype.CancelBlockquote=function(a){return this.$val.CancelBlockquote(a);};P.ptr.prototype.HLevel=function(a,b){var a,b,c,d,e,f,g,h,i,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c="";d=this;e=d.BlockDOM2Tree(a);$s=1;case 1:if($c){$c=false;e=e.$blk();}if(e&&e.$blk!==undefined){break s;}f=e;g=f.Root.FirstChild;if(!((2===g.Type))){c=a;$s=-1;return c;}h=N.Atoi(b);g.HeadingLevel=h[0];i=d.Tree2BlockDOM(f,d.RenderOptions);$s=2;case 2:if($c){$c=false;i=i.$blk();}if(i&&i.$blk!==undefined){break s;}c=i;$s=-1;return c;}return;}if($f===undefined){$f={$blk:P.ptr.prototype.HLevel};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.$s=$s;$f.$r=$r;return $f;};P.prototype.HLevel=function(a,b){return this.$val.HLevel(a,b);};P.ptr.prototype.H2P=function(a){var a,b,c,d,e,f,g,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b="";c=this;d=c.BlockDOM2Tree(a);$s=1;case 1:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}e=d;f=e.Root.FirstChild;if(!((2===f.Type))){b=a;$s=-1;return b;}f.Type=1;g=c.Tree2BlockDOM(e,c.RenderOptions);$s=2;case 2:if($c){$c=false;g=g.$blk();}if(g&&g.$blk!==undefined){break s;}b=g;$s=-1;return b;}return;}if($f===undefined){$f={$blk:P.ptr.prototype.H2P};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.$s=$s;$f.$r=$r;return $f;};P.prototype.H2P=function(a){return this.$val.H2P(a);};P.ptr.prototype.P2H=function(a,b){var a,b,c,d,e,f,g,h,i,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c="";d=this;e=d.BlockDOM2Tree(a);$s=1;case 1:if($c){$c=false;e=e.$blk();}if(e&&e.$blk!==undefined){break s;}f=e;g=f.Root.FirstChild;if(!((1===g.Type))){c=a;$s=-1;return c;}g.Type=2;h=N.Atoi(b);g.HeadingLevel=h[0];i=d.Tree2BlockDOM(f,d.RenderOptions);$s=2;case 2:if($c){$c=false;i=i.$blk();}if(i&&i.$blk!==undefined){break s;}c=i;$s=-1;return c;}return;}if($f===undefined){$f={$blk:P.ptr.prototype.P2H};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.$s=$s;$f.$r=$r;return $f;};P.prototype.P2H=function(a,b){return this.$val.P2H(a,b);};P.ptr.prototype.Blocks2Ps=function(a){var a,b,c,d,e,f,g,h,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b="";c=this;d=c.BlockDOM2Tree(a);$s=1;case 1:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}e=d;f=e.Root.FirstChild;g=f;while(true){if(!(!(AE.nil===g))){break;}if(2===g.Type){g.Type=1;}g=g.Next;}h=c.Tree2BlockDOM(e,c.RenderOptions);$s=2;case 2:if($c){$c=false;h=h.$blk();}if(h&&h.$blk!==undefined){break s;}b=h;$s=-1;return b;}return;}if($f===undefined){$f={$blk:P.ptr.prototype.Blocks2Ps};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.$s=$s;$f.$r=$r;return $f;};P.prototype.Blocks2Ps=function(a){return this.$val.Blocks2Ps(a);};P.ptr.prototype.Blocks2Hs=function(a,b){var a,b,c,d,e,f,g,h,i,j,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c="";d=this;e=d.BlockDOM2Tree(a);$s=1;case 1:if($c){$c=false;e=e.$blk();}if(e&&e.$blk!==undefined){break s;}f=e;g=f.Root.FirstChild;h=g;while(true){if(!(!(AE.nil===h))){break;}if((1===h.Type)||(2===h.Type)){h.Type=2;i=N.Atoi(b);h.HeadingLevel=i[0];}h=h.Next;}j=d.Tree2BlockDOM(f,d.RenderOptions);$s=2;case 2:if($c){$c=false;j=j.$blk();}if(j&&j.$blk!==undefined){break s;}c=j;$s=-1;return c;}return;}if($f===undefined){$f={$blk:P.ptr.prototype.Blocks2Hs};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.$s=$s;$f.$r=$r;return $f;};P.prototype.Blocks2Hs=function(a,b){return this.$val.Blocks2Hs(a,b);};P.ptr.prototype.OL2TL=function(a){var a,b,c,d,e,f,g,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b="";c=this;d=c.BlockDOM2Tree(a);$s=1;case 1:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}e=d;e.Root.FirstChild.ListData.Typ=3;f=e.Root.FirstChild.FirstChild;while(true){if(!(!(AE.nil===f))){break;}if(8===f.Type){f.ListData.Typ=3;f.PrependChild(new D.Node.ptr("","","",100,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}f=f.Next;}g=c.Tree2BlockDOM(e,c.RenderOptions);$s=2;case 2:if($c){$c=false;g=g.$blk();}if(g&&g.$blk!==undefined){break s;}b=g;$s=-1;return b;}return;}if($f===undefined){$f={$blk:P.ptr.prototype.OL2TL};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.$s=$s;$f.$r=$r;return $f;};P.prototype.OL2TL=function(a){return this.$val.OL2TL(a);};P.ptr.prototype.UL2TL=function(a){var a,b,c,d,e,f,g,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b="";c=this;d=c.BlockDOM2Tree(a);$s=1;case 1:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}e=d;e.Root.FirstChild.ListData.Typ=3;f=e.Root.FirstChild.FirstChild;while(true){if(!(!(AE.nil===f))){break;}if(8===f.Type){f.ListData.Typ=3;f.PrependChild(new D.Node.ptr("","","",100,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}f=f.Next;}g=c.Tree2BlockDOM(e,c.RenderOptions);$s=2;case 2:if($c){$c=false;g=g.$blk();}if(g&&g.$blk!==undefined){break s;}b=g;$s=-1;return b;}return;}if($f===undefined){$f={$blk:P.ptr.prototype.UL2TL};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.$s=$s;$f.$r=$r;return $f;};P.prototype.UL2TL=function(a){return this.$val.UL2TL(a);};P.ptr.prototype.TL2OL=function(a){var a,b,c,d,e,f,g,h,i,j,k,l,m,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;k=$f.k;l=$f.l;m=$f.m;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b="";c=this;d=c.BlockDOM2Tree(a);$s=1;case 1:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}e=d;f=e.Root.FirstChild;if(!((7===f.Type))||!((3===f.ListData.Typ))){b=a;$s=-1;return b;}g=1;f.ListData.Typ=1;h=AJ.nil;i=f.FirstChild;case 2:if(!(!(AE.nil===i))){$s=3;continue;}if(455===i.Type){i=i.Next;$s=2;continue;}h=$append(h,i.FirstChild);i.ListData.Typ=1;i.ListData.Num=g;g=g+(1)>>0;i=i.Next;$s=2;continue;case 3:j=h;k=0;while(true){if(!(k<j.$length)){break;}l=((k<0||k>=j.$length)?($throwRuntimeError("index out of range"),undefined):j.$array[j.$offset+k]);l.Unlink();k++;}m=c.Tree2BlockDOM(e,c.RenderOptions);$s=4;case 4:if($c){$c=false;m=m.$blk();}if(m&&m.$blk!==undefined){break s;}b=m;$s=-1;return b;}return;}if($f===undefined){$f={$blk:P.ptr.prototype.TL2OL};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.k=k;$f.l=l;$f.m=m;$f.$s=$s;$f.$r=$r;return $f;};P.prototype.TL2OL=function(a){return this.$val.TL2OL(a);};P.ptr.prototype.TL2UL=function(a){var a,b,c,d,e,f,g,h,i,j,k,l,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;k=$f.k;l=$f.l;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b="";c=this;d=c.BlockDOM2Tree(a);$s=1;case 1:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}e=d;f=e.Root.FirstChild;if(!((7===f.Type))||!((3===f.ListData.Typ))){b=a;$s=-1;return b;}f.ListData.Typ=0;g=AJ.nil;h=f.FirstChild;case 2:if(!(!(AE.nil===h))){$s=3;continue;}if(455===h.Type){h=h.Next;$s=2;continue;}g=$append(g,h.FirstChild);h.ListData.Typ=0;h=h.Next;$s=2;continue;case 3:i=g;j=0;while(true){if(!(j<i.$length)){break;}k=((j<0||j>=i.$length)?($throwRuntimeError("index out of range"),undefined):i.$array[i.$offset+j]);k.Unlink();j++;}l=c.Tree2BlockDOM(e,c.RenderOptions);$s=4;case 4:if($c){$c=false;l=l.$blk();}if(l&&l.$blk!==undefined){break s;}b=l;$s=-1;return b;}return;}if($f===undefined){$f={$blk:P.ptr.prototype.TL2UL};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.k=k;$f.l=l;$f.$s=$s;$f.$r=$r;return $f;};P.prototype.TL2UL=function(a){return this.$val.TL2UL(a);};P.ptr.prototype.OL2UL=function(a){var a,b,c,d,e,f,g,h,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b="";c=this;d=c.BlockDOM2Tree(a);$s=1;case 1:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}e=d;f=e.Root.FirstChild;if(!((7===f.Type))){b=a;$s=-1;return b;}f.ListData.Typ=0;g=f.FirstChild;case 2:if(!(!(AE.nil===g))){$s=3;continue;}if(455===g.Type){g=g.Next;$s=2;continue;}g.ListData.Typ=0;g=g.Next;$s=2;continue;case 3:h=c.Tree2BlockDOM(e,c.RenderOptions);$s=4;case 4:if($c){$c=false;h=h.$blk();}if(h&&h.$blk!==undefined){break s;}b=h;$s=-1;return b;}return;}if($f===undefined){$f={$blk:P.ptr.prototype.OL2UL};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.$s=$s;$f.$r=$r;return $f;};P.prototype.OL2UL=function(a){return this.$val.OL2UL(a);};P.ptr.prototype.UL2OL=function(a){var a,b,c,d,e,f,g,h,i,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b="";c=this;d=c.BlockDOM2Tree(a);$s=1;case 1:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}e=d;f=e.Root.FirstChild;if(!((7===f.Type))){b=a;$s=-1;return b;}g=1;f.ListData.Typ=1;h=f.FirstChild;case 2:if(!(!(AE.nil===h))){$s=3;continue;}if(455===h.Type){h=h.Next;$s=2;continue;}h.ListData.Typ=1;h.ListData.Num=g;g=g+(1)>>0;h=h.Next;$s=2;continue;case 3:i=c.Tree2BlockDOM(e,c.RenderOptions);$s=4;case 4:if($c){$c=false;i=i.$blk();}if(i&&i.$blk!==undefined){break s;}b=i;$s=-1;return b;}return;}if($f===undefined){$f={$blk:P.ptr.prototype.UL2OL};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.$s=$s;$f.$r=$r;return $f;};P.prototype.UL2OL=function(a){return this.$val.UL2OL(a);};P.ptr.prototype.blockDOM2Md=function(a){var a,b,c,d,e,f,g,h,i,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b="";c=this;d=c.BlockDOM2Tree(a);$s=1;case 1:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}e=d;f=H.NewOptions();f.AutoSpace=false;f.FixTermTypo=false;f.KramdownBlockIAL=true;f.KramdownSpanIAL=true;f.KeepParagraphBeginningSpace=true;g=H.NewFormatRenderer(e,f);h=g.BaseRenderer.Render();$s=2;case 2:if($c){$c=false;h=h.$blk();}if(h&&h.$blk!==undefined){break s;}i=h;b=($bytesToString(i));$s=-1;return b;}return;}if($f===undefined){$f={$blk:P.ptr.prototype.blockDOM2Md};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.$s=$s;$f.$r=$r;return $f;};P.prototype.blockDOM2Md=function(a){return this.$val.blockDOM2Md(a);};P.ptr.prototype.genASTByBlockDOM=function(a,b){var a,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,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,$deferred,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;aa=$f.aa;ab=$f.ab;ac=$f.ac;ad=$f.ad;ae=$f.ae;af=$f.af;ag=$f.ag;ah=$f.ah;ai=$f.ai;aj=$f.aj;ak=$f.ak;al=$f.al;am=$f.am;an=$f.an;ao=$f.ao;ap=$f.ap;aq=$f.aq;ar=$f.ar;as=$f.as;at=$f.at;au=$f.au;av=$f.av;aw=$f.aw;ax=$f.ax;ay=$f.ay;az=$f.az;b=$f.b;ba=$f.ba;bb=$f.bb;bc=$f.bc;bd=$f.bd;be=$f.be;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;k=$f.k;l=$f.l;m=$f.m;n=$f.n;o=$f.o;p=$f.p;q=$f.q;r=$f.r;s=$f.s;t=$f.t;u=$f.u;v=$f.v;w=$f.w;x=$f.x;y=$f.y;z=$f.z;$s=$f.$s;$deferred=$f.$deferred;$r=$f.$r;}var $err=null;try{s:while(true){switch($s){case 0:$deferred=[];$deferred.index=$curGoroutine.deferStack.length;$curGoroutine.deferStack.push($deferred);c=this;d=c.domAttrValue(a,"class");if("protyle-attr"===d||B.Contains(d,"__copy")||B.Contains(d,"protyle-linenumber__rows")){$s=-1;return;}if("1"===c.domAttrValue(a,"spin")){$s=-1;return;}if(B.Contains(d,"protyle-action")){if(11===b.Context.Tip.Type){e=a.FirstChild;f="";if(!(AD.nil===e.FirstChild)){f=e.FirstChild.Data;}b.Context.Tip.AppendChild(new D.Node.ptr("","","",14,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,I.StrToBytes(f),AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));g=c.domText(a.NextSibling);if(B.HasSuffix(g,"\n\n\xE2\x80\xB8")){g=B.TrimSuffix(g,"\n\n\xE2\x80\xB8");g=g+("\n\xE2\x80\xB8\n");}h=B.Split(g,"\n");i=new A.Buffer.ptr(AC.nil,0,0);j=h;k=0;while(true){if(!(k<j.$length)){break;}l=k;m=((k<0||k>=j.$length)?($throwRuntimeError("index out of range"),undefined):j.$array[j.$offset+k]);if(B.Contains(m,"```")){m=B.ReplaceAll(m,"```","\xE2\x80\x8D```");}else{m=B.ReplaceAll(m,"\xE2\x80\x8D","");}i.WriteString(m);if(l<(h.$length-1>>0)){i.WriteByte(10);}k++;}b.Context.Tip.AppendChild(new D.Node.ptr("","","",15,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,i.Bytes(),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}else if(8===b.Context.Tip.Type){if(3===b.Context.Tip.ListData.Typ){b.Context.Tip.AppendChild(new D.Node.ptr("","","",100,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,B.Contains(c.domAttrValue(a.Parent,"class"),"protyle-task--done"),AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}}$s=-1;return;}if("true"===c.domAttrValue(a,"contenteditable")){$s=1;continue;}$s=2;continue;case 1:$r=c.genASTContenteditable(a,b);$s=3;case 3:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$s=-1;return;case 2:n=D.Str2NodeType(c.domAttrValue(a,"data-type"));$s=4;case 4:if($c){$c=false;n=n.$blk();}if(n&&n.$blk!==undefined){break s;}o=n;p=c.domAttrValue(a,"data-node-id");q=new D.Node.ptr(p,"","",0,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false);if(!(""===q.ID)&&!c.parentIs(a,new AO([365829]))){$s=5;continue;}$s=6;continue;case 5:q.KramdownIAL=new AM([new AI(["id",q.ID])]);r=c.setBlockIAL(a,q);$s=7;case 7:if($c){$c=false;r=r.$blk();}if(r&&r.$blk!==undefined){break s;}s=r;t=new D.Node.ptr("","","",455,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,s,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false);$deferred.push([$methodVal(b.Context,"TipAppendChild"),[t]]);case 6:u=o;if(u===(465)){$s=9;continue;}if(u===(106)){$s=10;continue;}if(u===(1)){$s=11;continue;}if(u===(2)){$s=12;continue;}if(u===(5)){$s=13;continue;}if(u===(7)){$s=14;continue;}if(u===(8)){$s=15;continue;}if(u===(495)){$s=16;continue;}if(u===(475)){$s=17;continue;}if(u===(300)){$s=18;continue;}if(u===(11)){$s=19;continue;}if(u===(9)){$s=20;continue;}if(u===(425)){$s=21;continue;}if(u===(4)){$s=22;continue;}if(u===(500)){$s=23;continue;}if(u===(535)){$s=24;continue;}if(u===(510)){$s=25;continue;}if(u===(505)){$s=26;continue;}$s=27;continue;case 9:q.Type=465;q.AppendChild(new D.Node.ptr("","","",466,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));q.AppendChild(new D.Node.ptr("","","",466,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));v=c.domAttrValue(a,"data-content");q.AppendChild(new D.Node.ptr("","","",468,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,I.StrToBytes(v),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));q.AppendChild(new D.Node.ptr("","","",467,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));q.AppendChild(new D.Node.ptr("","","",467,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));b.Context.Tip.AppendChild(q);$s=-1;return;case 10:q.Type=106;w=AL.nil;if(AD.nil===a.FirstChild){$s=-1;return;}if(c.parentIs(a,new AO([365829]))){$s=29;continue;}$s=30;continue;case 29:x=c.domText(a);y=B.TrimSpace(x);$s=31;case 31:if($c){$c=false;y=y.$blk();}if(y&&y.$blk!==undefined){break s;}q.Tokens=(new AC($stringToBytes(y)));b.Context.Tip.AppendChild(q);$s=-1;return;case 30:z=a.FirstChild;aa=c.domChild(z,365829);if(AD.nil===aa){$s=-1;return;}ab=aa.FirstChild.FirstChild.FirstChild;while(true){if(!(!(AD.nil===ab))){break;}ac=c.domAttrValue(ab,"align");ad=ac;if(ad===("left")){w=$append(w,1);}else if(ad===("center")){w=$append(w,2);}else if(ad===("right")){w=$append(w,3);}else{w=$append(w,0);}ab=ab.NextSibling;}q.TableAligns=w;q.Tokens=AC.nil;b.Context.Tip.AppendChild(q);b.Context.Tip=q;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$r=c.genASTContenteditable(aa,b);$s=32;case 32:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$s=-1;return;case 11:q.Type=1;b.Context.Tip.AppendChild(q);b.Context.Tip=q;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=28;continue;case 12:ae=c.domText(a);if(c.parentIs(a,new AO([365829]))){$s=33;continue;}$s=34;continue;case 33:af=B.TrimSpace(ae);$s=35;case 35:if($c){$c=false;af=af.$blk();}if(af&&af.$blk!==undefined){break s;}q.Tokens=(new AC($stringToBytes(af)));while(true){if(!(A.HasPrefix(q.Tokens,(new AC($stringToBytes("#")))))){break;}q.Tokens=A.TrimPrefix(q.Tokens,(new AC($stringToBytes("#"))));}b.Context.Tip.AppendChild(q);$s=-1;return;case 34:q.Type=2;ag=$substring(c.domAttrValue(a,"data-subtype"),1);ah=N.Atoi(ag);q.HeadingLevel=ah[0];b.Context.Tip.AppendChild(q);b.Context.Tip=q;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=28;continue;case 13:ai=B.TrimSpace(c.domText(a));$s=36;case 36:if($c){$c=false;ai=ai.$blk();}if(ai&&ai.$blk!==undefined){break s;}aj=ai;if("\xE2\x80\xB8"===aj){q.Type=16;q.Tokens=(new AC($stringToBytes(aj)));b.Context.Tip.AppendChild(q);}q.Type=5;q.AppendChild(new D.Node.ptr("","","",6,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(">"))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));b.Context.Tip.AppendChild(q);b.Context.Tip=q;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=28;continue;case 14:q.Type=7;ak=c.domAttrValue(a,"data-marker");q.ListData=new D.ListData.ptr(0,false,0,0,0,0,0,false,AC.nil,0);al=c.domAttrValue(a,"data-subtype");if("u"===al){q.ListData.Typ=0;}else if("o"===al){q.ListData.Typ=1;}else if("t"===al){q.ListData.Typ=3;}q.ListData.Marker=(new AC($stringToBytes(ak)));b.Context.Tip.AppendChild(q);b.Context.Tip=q;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=28;continue;case 15:am=c.domAttrValue(a,"data-marker");if(!((7===b.Context.Tip.Type))){an=new D.Node.ptr("","","",0,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false);an.Type=7;an.ListData=new D.ListData.ptr(0,false,0,0,0,0,0,false,AC.nil,0);ao=c.domAttrValue(a,"data-subtype");if("u"===ao){an.ListData.Typ=0;an.ListData.BulletChar=42;}else if("o"===ao){an.ListData.Typ=1;ap=N.Atoi($substring(am,0,(am.length-1>>0)));an.ListData.Num=ap[0];an.ListData.Delimiter=46;}else if("t"===ao){an.ListData.Typ=3;an.ListData.BulletChar=42;}b.Context.Tip.AppendChild(an);b.Context.Tip=an;}q.Type=8;q.ListData=new D.ListData.ptr(0,false,0,0,0,0,0,false,AC.nil,0);aq=c.domAttrValue(a,"data-subtype");if("u"===aq){q.ListData.Typ=0;q.ListData.BulletChar=42;}else if("o"===aq){q.ListData.Typ=1;ar=N.Atoi($substring(am,0,(am.length-1>>0)));q.ListData.Num=ar[0];q.ListData.Delimiter=46;}else if("t"===aq){q.ListData.Typ=3;q.ListData.BulletChar=42;}q.ListData.Marker=(new AC($stringToBytes(am)));b.Context.Tip.AppendChild(q);b.Context.Tip=q;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=28;continue;case 16:q.Type=495;b.Context.Tip.AppendChild(q);b.Context.Tip=q;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=28;continue;case 17:q.Type=475;b.Context.Tip.AppendChild(q);q.AppendChild(new D.Node.ptr("","","",476,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));as=c.domAttrValue(a,"data-sb-layout");q.AppendChild(new D.Node.ptr("","","",477,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(as))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));b.Context.Tip=q;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=28;continue;case 18:q.Type=300;q.AppendChild(new D.Node.ptr("","","",301,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));at=c.domAttrValue(a,"data-content");at=E.UnescapeHTMLStr(at);q.AppendChild(new D.Node.ptr("","","",302,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,I.StrToBytes(at),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));q.AppendChild(new D.Node.ptr("","","",303,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));b.Context.Tip.AppendChild(q);$s=-1;return;case 19:q.Type=11;q.IsFencedCodeBlock=true;q.AppendChild(new D.Node.ptr("","","",12,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,I.StrToBytes("```"),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));au=c.domAttrValue(a,"data-subtype");if(!(""===au)){q.AppendChild(new D.Node.ptr("","","",14,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,I.StrToBytes(au),AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));av=c.domAttrValue(a,"data-content");q.AppendChild(new D.Node.ptr("","","",15,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,I.StrToBytes(av),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));q.AppendChild(new D.Node.ptr("","","",13,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,I.StrToBytes("```"),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));b.Context.Tip.AppendChild(q);$s=-1;return;}b.Context.Tip.AppendChild(q);b.Context.Tip=q;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=28;continue;case 20:q.Type=9;b.Context.Tip.AppendChild(q);b.Context.Tip=q;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=28;continue;case 21:q.Type=425;b.Context.Tip.AppendChild(q);b.Context.Tip=q;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=28;continue;case 22:q.Type=4;b.Context.Tip.AppendChild(q);$s=-1;return;case 23:q.Type=500;a=c.domChild(a.FirstChild,195590);aw=c.domHTML(a);$s=37;case 37:if($c){$c=false;aw=aw.$blk();}if(aw&&aw.$blk!==undefined){break s;}q.Tokens=aw;b.Context.Tip.AppendChild(q);$s=-1;return;case 24:q.Type=535;a=c.domChild(a.FirstChild,195590);ax=c.domHTML(a);$s=38;case 38:if($c){$c=false;ax=ax.$blk();}if(ax&&ax.$blk!==undefined){break s;}q.Tokens=ax;b.Context.Tip.AppendChild(q);$s=-1;return;case 25:q.Type=510;a=c.domChild(a.FirstChild,192773);ay=c.domHTML(a);$s=39;case 39:if($c){$c=false;ay=ay.$blk();}if(ay&&ay.$blk!==undefined){break s;}q.Tokens=ay;b.Context.Tip.AppendChild(q);$s=-1;return;case 26:q.Type=505;a=c.domChild(a.FirstChild,70917);az=c.domHTML(a);$s=40;case 40:if($c){$c=false;az=az.$blk();}if(az&&az.$blk!==undefined){break s;}q.Tokens=az;b.Context.Tip.AppendChild(q);$s=-1;return;case 27:ba=a.DataAtom;if(ba===(0)){$s=42;continue;}if((ba===(2817))||(ba===(378116))||(ba===(449798))||(ba===(28162))||(ba===(47363))||(ba===(46596))||(ba===(9473))||(ba===(421123))||(ba===(461571))||(ba===(40708))){$s=43;continue;}$s=44;continue;case 42:q.Type=16;q.Tokens=I.StrToBytes(a.Data);if(0===b.Context.Tip.Type){bb=new D.Node.ptr("","","",1,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false);b.Context.Tip.AppendChild(bb);b.Context.Tip=bb;}$r=c.genASTContenteditable(a,b);$s=45;case 45:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$s=-1;return;case 43:$r=c.genASTContenteditable(a,b);$s=46;case 46:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$s=-1;return;case 44:case 41:if((8===b.Context.Tip.Type)&&(281349===a.DataAtom)){q.Type=100;q.TaskListItemChecked=c.hasAttr(a,"checked");b.Context.Tip.AppendChild(q);$s=-1;return;}q.Type=10;bc=c.domHTML(a);$s=47;case 47:if($c){$c=false;bc=bc.$blk();}if(bc&&bc.$blk!==undefined){break s;}q.Tokens=bc;b.Context.Tip.AppendChild(q);$s=-1;return;case 28:case 8:bd=a.FirstChild;case 48:if(!(!(bd===AD.nil))){$s=49;continue;}$r=c.genASTByBlockDOM(bd,b);$s=50;case 50:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}bd=bd.NextSibling;$s=48;continue;case 49:be=o;if(be===(475)){q.AppendChild(new D.Node.ptr("","","",478,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}else if(be===(11)){q.AppendChild(new D.Node.ptr("","","",13,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,I.StrToBytes("```"),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}$s=-1;return;}return;}}catch(err){$err=err;$s=-1;}finally{$callDeferred($deferred,$err);if($curGoroutine.asleep){if($f===undefined){$f={$blk:P.ptr.prototype.genASTByBlockDOM};}$f.a=a;$f.aa=aa;$f.ab=ab;$f.ac=ac;$f.ad=ad;$f.ae=ae;$f.af=af;$f.ag=ag;$f.ah=ah;$f.ai=ai;$f.aj=aj;$f.ak=ak;$f.al=al;$f.am=am;$f.an=an;$f.ao=ao;$f.ap=ap;$f.aq=aq;$f.ar=ar;$f.as=as;$f.at=at;$f.au=au;$f.av=av;$f.aw=aw;$f.ax=ax;$f.ay=ay;$f.az=az;$f.b=b;$f.ba=ba;$f.bb=bb;$f.bc=bc;$f.bd=bd;$f.be=be;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.k=k;$f.l=l;$f.m=m;$f.n=n;$f.o=o;$f.p=p;$f.q=q;$f.r=r;$f.s=s;$f.t=t;$f.u=u;$f.v=v;$f.w=w;$f.x=x;$f.y=y;$f.z=z;$f.$s=$s;$f.$deferred=$deferred;$f.$r=$r;return $f;}}};P.prototype.genASTByBlockDOM=function(a,b){return this.$val.genASTByBlockDOM(a,b);};P.ptr.prototype.genASTContenteditable=function(a,b){var a,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,bh,bi,bj,bk,bl,bm,bn,bo,bp,bq,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,$deferred,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;aa=$f.aa;ab=$f.ab;ac=$f.ac;ad=$f.ad;ae=$f.ae;af=$f.af;ag=$f.ag;ah=$f.ah;ai=$f.ai;aj=$f.aj;ak=$f.ak;al=$f.al;am=$f.am;an=$f.an;ao=$f.ao;ap=$f.ap;aq=$f.aq;ar=$f.ar;as=$f.as;at=$f.at;au=$f.au;av=$f.av;aw=$f.aw;ax=$f.ax;ay=$f.ay;az=$f.az;b=$f.b;ba=$f.ba;bb=$f.bb;bc=$f.bc;bd=$f.bd;be=$f.be;bf=$f.bf;bg=$f.bg;bh=$f.bh;bi=$f.bi;bj=$f.bj;bk=$f.bk;bl=$f.bl;bm=$f.bm;bn=$f.bn;bo=$f.bo;bp=$f.bp;bq=$f.bq;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;k=$f.k;l=$f.l;m=$f.m;n=$f.n;o=$f.o;p=$f.p;q=$f.q;r=$f.r;s=$f.s;t=$f.t;u=$f.u;v=$f.v;w=$f.w;x=$f.x;y=$f.y;z=$f.z;$s=$f.$s;$deferred=$f.$deferred;$r=$f.$r;}var $err=null;try{s:while(true){switch($s){case 0:$deferred=[];$deferred.index=$curGoroutine.deferStack.length;$curGoroutine.deferStack.push($deferred);c=this;if(11===b.Context.Tip.Type){$s=-1;return;}d=c.domAttrValue(a,"class");if("svg"===d){$s=-1;return;}e=a.Data;f=new D.Node.ptr("","","",16,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,I.StrToBytes(e),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false);g=a.DataAtom;if(g===(0)){$s=2;continue;}if(g===(208901)){$s=3;continue;}if(g===(9989)){$s=4;continue;}if(g===(52226)){$s=5;continue;}if((g===(87554))||(g===(37378))){$s=6;continue;}if(g===(378116)){$s=7;continue;}if(g===(40708)){$s=8;continue;}if(g===(421123)){$s=9;continue;}if(g===(461571)){$s=10;continue;}if(g===(2817)){$s=11;continue;}if(g===(47363)){$s=12;continue;}if(g===(514)){$s=13;continue;}if((g===(28162))||(g===(1537))){$s=14;continue;}if((g===(449798))||(g===(257))){$s=15;continue;}if((g===(283139))||(g===(9473))||(g===(53766))){$s=16;continue;}if(g===(46596)){$s=17;continue;}if(g===(198403)){$s=18;continue;}$s=19;continue;case 2:if(""===e){$s=-1;return;}if(33===b.Context.Tip.Type){f.Type=40;}else if(2===b.Context.Tip.Type){e=B.ReplaceAll(e,"\n","");f.Tokens=I.StrToBytes(e);}else if(22===b.Context.Tip.Type){e=B.ReplaceAll(e,"**","");e=B.ReplaceAll(e,"*\xE2\x80\xB8","\xE2\x80\xB8");e=B.ReplaceAll(e,"\xE2\x80\xB8*","\xE2\x80\xB8");f.Tokens=I.StrToBytes(e);}if(c.parentIs(a,new AO([365829]))){if(AD.nil===a.NextSibling||((514===a.NextSibling.DataAtom)&&B.HasPrefix(e,"\n"))){e=B.ReplaceAll(e,"\n","");}f.Tokens=I.StrToBytes(B.ReplaceAll(e,"\n","<br />"));h=L.SplitWithoutBackslashEscape(f.Tokens,124);f.Tokens=AC.nil;i=h;j=0;while(true){if(!(j<i.$length)){break;}k=j;l=((j<0||j>=i.$length)?($throwRuntimeError("index out of range"),undefined):i.$array[i.$offset+j]);f.Tokens=$appendSlice(f.Tokens,l);if(k<(h.$length-1>>0)){f.Tokens=$appendSlice(f.Tokens,(new AC($stringToBytes("\\|"))));}j++;}}if((27===b.Context.Tip.Type)||(304===b.Context.Tip.Type)){if(!(AE.nil===b.Context.Tip.Previous)&&(b.Context.Tip.Type===b.Context.Tip.Previous.Type)){b.Context.Tip.FirstChild.Next.Tokens=I.StrToBytes(e);}else{b.Context.Tip.FirstChild.Next.Tokens=$appendSlice(b.Context.Tip.FirstChild.Next.Tokens,I.StrToBytes(e));}$s=-1;return;}if(515===b.Context.Tip.Type){f.Tokens=A.ReplaceAll(f.Tokens,(new AC($stringToBytes("\\\\"))),(new AC($stringToBytes("\\"))));f.Tokens=A.ReplaceAll(f.Tokens,(new AC($stringToBytes("\\"))),(new AC($stringToBytes("\\\\"))));}b.Context.Tip.AppendChild(f);$s=19;continue;case 3:if(c.parentIs(a.Parent.Parent,new AO([365829]))){$s=20;continue;}$s=21;continue;case 20:m=c.domText(a.Parent.Parent);m=B.ReplaceAll(m,"\xE2\x80\xB8","");n=B.TrimSpace(m);$s=22;case 22:if($c){$c=false;n=n.$blk();}if(n&&n.$blk!==undefined){break s;}f.Tokens=(new AC($stringToBytes(n)));b.Context.Tip.AppendChild(f);$s=-1;return;case 21:f.Type=107;b.Context.Tip.AppendChild(f);b.Context.Tip=f;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=19;continue;case 4:$s=19;continue;case 5:f.Type=108;b.Context.Tip.AppendChild(f);b.Context.Tip=f;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=19;continue;case 6:f.Type=109;o=c.domAttrValue(a,"align");p=0;q=o;if(q===("left")){p=1;}else if(q===("center")){p=2;}else if(q===("right")){p=3;}else{p=0;}f.TableCellAlign=p;b.Context.Tip.AppendChild(f);b.Context.Tip=f;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=19;continue;case 7:r=c.isEmptyText(a);$s=25;case 25:if($c){$c=false;r=r.$blk();}if(r&&r.$blk!==undefined){break s;}if(r){$s=23;continue;}$s=24;continue;case 23:$s=-1;return;case 24:f.Type=27;f.AppendChild(new D.Node.ptr("","","",28,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));f.AppendChild(new D.Node.ptr("","","",29,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));b.Context.Tip.AppendChild(f);b.Context.Tip=f;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=19;continue;case 8:s=c.domAttrValue(a,"data-type");if("tag"===s){$s=26;continue;}if("inline-math"===s){$s=27;continue;}if("a"===s){$s=28;continue;}if("block-ref"===s){$s=29;continue;}if("file-annotation-ref"===s){$s=30;continue;}if("img"===s){$s=31;continue;}if("backslash"===s){$s=32;continue;}$s=33;continue;case 26:if(AD.nil===a.FirstChild){$s=-1;return;}f.Type=460;f.AppendChild(new D.Node.ptr("","","",461,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));a.FirstChild.Data=B.ReplaceAll(a.FirstChild.Data,"\xE2\x80\x8B","");if(B.HasPrefix(a.FirstChild.Data," ")&&AD.nil===a.FirstChild.PrevSibling){$s=34;continue;}$s=35;continue;case 34:t=B.TrimLeft(a.FirstChild.Data," ");$s=36;case 36:if($c){$c=false;t=t.$blk();}if(t&&t.$blk!==undefined){break s;}a.FirstChild.Data=t;f.InsertBefore(new D.Node.ptr("","","",16,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(" "))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));case 35:if(B.HasSuffix(a.FirstChild.Data," ")&&AD.nil===a.FirstChild.NextSibling){$s=37;continue;}$s=38;continue;case 37:u=B.TrimRight(a.FirstChild.Data," ");$s=39;case 39:if($c){$c=false;u=u.$blk();}if(u&&u.$blk!==undefined){break s;}a.FirstChild.Data=u;a.InsertAfter(new E.Node.ptr(AD.nil,AD.nil,AD.nil,AD.nil,AD.nil,1,0," ","",AQ.nil));case 38:if(B.HasSuffix(a.FirstChild.Data,"\n")&&AD.nil===a.FirstChild.NextSibling){$s=40;continue;}$s=41;continue;case 40:v=B.TrimRight(a.FirstChild.Data,"\n");$s=42;case 42:if($c){$c=false;v=v.$blk();}if(v&&v.$blk!==undefined){break s;}a.FirstChild.Data=v;a.InsertAfter(new E.Node.ptr(AD.nil,AD.nil,AD.nil,AD.nil,AD.nil,1,0,"\n","",AQ.nil));case 41:b.Context.Tip.AppendChild(f);b.Context.Tip=f;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=33;continue;case 27:f.Type=304;f.AppendChild(new D.Node.ptr("","","",305,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));e=c.domAttrValue(a,"data-content");if(""===e){$s=-1;return;}f.AppendChild(new D.Node.ptr("","","",306,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,I.StrToBytes(e),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));f.AppendChild(new D.Node.ptr("","","",307,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));b.Context.Tip.AppendChild(f);$s=-1;return;case 28:if(AD.nil===a.FirstChild){$s=-1;return;}if(33===b.Context.Tip.Type){$s=1;continue;}f.Type=33;f.AppendChild(new D.Node.ptr("","","",36,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));b.Context.Tip.AppendChild(f);b.Context.Tip=f;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=33;continue;case 29:f.Type=430;f.AppendChild(new D.Node.ptr("","","",38,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));f.AppendChild(new D.Node.ptr("","","",38,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));w=c.domAttrValue(a,"data-id");f.AppendChild(new D.Node.ptr("","","",431,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,I.StrToBytes(w),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));x="";if(!(AD.nil===a.FirstChild)){x=c.domText(a.FirstChild);}if(""===x){$s=-1;return;}if(x==="\xE2\x80\xB8"){b.Context.Tip.AppendChild(new D.Node.ptr("","","",16,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,I.CaretTokens,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));$s=-1;return;}f.AppendChild(new D.Node.ptr("","","",432,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));y=AE.nil;z=c.domAttrValue(a,"data-subtype");if("s"===z||""===z){y=new D.Node.ptr("","","",433,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,I.StrToBytes(x),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false);}else{y=new D.Node.ptr("","","",434,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,I.StrToBytes(x),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false);}f.AppendChild(y);f.AppendChild(new D.Node.ptr("","","",39,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));f.AppendChild(new D.Node.ptr("","","",39,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));b.Context.Tip.AppendChild(f);$s=-1;return;case 30:f.Type=540;f.AppendChild(new D.Node.ptr("","","",47,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));f.AppendChild(new D.Node.ptr("","","",47,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));aa=c.domAttrValue(a,"data-id");f.AppendChild(new D.Node.ptr("","","",541,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,I.StrToBytes(aa),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));ab="";if(!(AD.nil===a.FirstChild)){ab=c.domText(a.FirstChild);}if(""===ab){$s=-1;return;}if(ab==="\xE2\x80\xB8"){b.Context.Tip.AppendChild(new D.Node.ptr("","","",16,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,I.CaretTokens,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));$s=-1;return;}f.AppendChild(new D.Node.ptr("","","",542,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));ac=new D.Node.ptr("","","",543,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,I.StrToBytes(ab),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false);f.AppendChild(ac);f.AppendChild(new D.Node.ptr("","","",48,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));f.AppendChild(new D.Node.ptr("","","",48,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));b.Context.Tip.AppendChild(f);$s=-1;return;case 31:ad=c.domChild(a,198403);f.Type=34;f.AppendChild(new D.Node.ptr("","","",35,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));f.AppendChild(new D.Node.ptr("","","",36,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));ae=c.domAttrValue(ad,"alt");f.AppendChild(new D.Node.ptr("","","",40,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,I.StrToBytes(ae),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));f.AppendChild(new D.Node.ptr("","","",37,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));f.AppendChild(new D.Node.ptr("","","",38,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));af=c.domAttrValue(ad,"data-src");f.AppendChild(new D.Node.ptr("","","",41,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,I.StrToBytes(af),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));ag=c.domAttrValue(ad,"title");if(!(""===ag)){f.AppendChild(new D.Node.ptr("","","",43,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));f.AppendChild(new D.Node.ptr("","","",42,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,I.StrToBytes(ag),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}f.AppendChild(new D.Node.ptr("","","",39,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));b.Context.Tip.AppendChild(f);$r=c.setSpanIAL(ad,b.Context.Tip.LastChild);$s=43;case 43:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$s=-1;return;case 32:f.Type=400;if(AD.nil===a.FirstChild){$s=-1;return;}if(AD.nil===a.FirstChild.NextSibling&&(1===a.FirstChild.Type)){f.AppendChild(new D.Node.ptr("","","",16,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,I.StrToBytes(a.FirstChild.Data),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));b.Context.Tip.AppendChild(f);$s=-1;return;}if(!(AD.nil===a.FirstChild.NextSibling)){ah=a.FirstChild.NextSibling.Data;ah=B.ReplaceAll(ah,"\\\\","\\");f.AppendChild(new D.Node.ptr("","","",401,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,I.StrToBytes(ah),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}b.Context.Tip.AppendChild(f);$s=-1;return;case 33:$s=19;continue;case 9:ai=c.isEmptyText(a);$s=46;case 46:if($c){$c=false;ai=ai.$blk();}if(ai&&ai.$blk!==undefined){break s;}if(ai){$s=44;continue;}$s=45;continue;case 44:$s=-1;return;case 45:f.Type=490;f.AppendChild(new D.Node.ptr("","","",491,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));b.Context.Tip.AppendChild(f);b.Context.Tip=f;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=19;continue;case 10:aj=c.isEmptyText(a);$s=49;case 49:if($c){$c=false;aj=aj.$blk();}if(aj&&aj.$blk!==undefined){break s;}if(aj){$s=47;continue;}$s=48;continue;case 47:$s=-1;return;case 48:f.Type=485;f.AppendChild(new D.Node.ptr("","","",486,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));b.Context.Tip.AppendChild(f);b.Context.Tip=f;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=19;continue;case 11:ak=c.isEmptyText(a);$s=52;case 52:if($c){$c=false;ak=ak.$blk();}if(ak&&ak.$blk!==undefined){break s;}if(ak){$s=50;continue;}$s=51;continue;case 50:$s=-1;return;case 51:f.Type=520;f.AppendChild(new D.Node.ptr("","","",521,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));b.Context.Tip.AppendChild(f);b.Context.Tip=f;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=19;continue;case 12:al=c.isEmptyText(a);$s=55;case 55:if($c){$c=false;al=al.$blk();}if(al&&al.$blk!==undefined){break s;}if(al){$s=53;continue;}$s=54;continue;case 53:$s=-1;return;case 54:f.Type=515;f.AppendChild(new D.Node.ptr("","","",516,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));b.Context.Tip.AppendChild(f);b.Context.Tip=f;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=19;continue;case 13:if(2===b.Context.Tip.Type){$s=-1;return;}if(!(AD.nil===a.PrevSibling)&&"\n"===a.PrevSibling.Data&&c.parentIs(a,new AO([365829]))){$s=-1;return;}f.Type=525;b.Context.Tip.AppendChild(f);$s=-1;return;case 14:if(AD.nil===a.FirstChild||(514===a.FirstChild.DataAtom)){$s=-1;return;}if(c.startsWithNewline(a.FirstChild)){$s=56;continue;}$s=57;continue;case 56:am=B.TrimLeft(a.FirstChild.Data,"\xE2\x80\x8B\n");$s=58;case 58:if($c){$c=false;am=am.$blk();}if(am&&am.$blk!==undefined){break s;}a.FirstChild.Data=am;b.Context.Tip.AppendChild(new D.Node.ptr("","","",16,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes("\xE2\x80\x8B\n"))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));case 57:an=B.TrimSpace(c.domText(a));$s=59;case 59:if($c){$c=false;an=an.$blk();}if(an&&an.$blk!==undefined){break s;}ao=an;ap=c.isEmptyText(a);$s=62;case 62:if($c){$c=false;ap=ap.$blk();}if(ap&&ap.$blk!==undefined){break s;}if(ap){$s=60;continue;}$s=61;continue;case 60:$s=-1;return;case 61:if("\xE2\x80\xB8"===ao){f.Tokens=I.CaretTokens;b.Context.Tip.AppendChild(f);$s=-1;return;}f.Type=17;aq=c.domAttrValue(a,"data-marker");if(""===aq){aq="*";}if("_"===aq){f.AppendChild(new D.Node.ptr("","","",20,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(aq))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}else{f.AppendChild(new D.Node.ptr("","","",18,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(aq))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}b.Context.Tip.AppendChild(f);if(!(AD.nil===a.FirstChild)&&"\xE2\x80\xB8"===a.FirstChild.Data&&!(AD.nil===a.LastChild)&&"br"===a.LastChild.Data){f.AppendChild(new D.Node.ptr("","","",16,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,I.CaretTokens,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));if("_"===aq){f.AppendChild(new D.Node.ptr("","","",21,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(aq))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}else{f.AppendChild(new D.Node.ptr("","","",19,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(aq))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}$s=-1;return;}a.FirstChild.Data=B.ReplaceAll(a.FirstChild.Data,"\xE2\x80\x8B","");$r=Z(a,f);$s=63;case 63:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}c.removeInnerMarker(a,"__");b.Context.Tip=f;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=19;continue;case 15:if(AD.nil===a.FirstChild||(514===a.FirstChild.DataAtom)){$s=-1;return;}if(!(AE.nil===b.Context.Tip.LastChild)){if(A.HasSuffix(b.Context.Tip.LastChild.Tokens,(new AC($stringToBytes("\\\xE2\x80\xB8"))))){b.Context.Tip.LastChild.Tokens=A.ReplaceAll(b.Context.Tip.LastChild.Tokens,(new AC($stringToBytes("\\\xE2\x80\xB8"))),(new AC($stringToBytes("\\\\\xE2\x80\xB8"))));}if(A.HasSuffix(b.Context.Tip.LastChild.Tokens,(new AC($stringToBytes("\\"))))){b.Context.Tip.LastChild.Tokens=A.ReplaceAll(b.Context.Tip.LastChild.Tokens,(new AC($stringToBytes("\\"))),(new AC($stringToBytes("\\\\"))));}}if(c.startsWithNewline(a.FirstChild)){$s=64;continue;}$s=65;continue;case 64:ar=B.TrimLeft(a.FirstChild.Data,"\xE2\x80\x8B\n");$s=66;case 66:if($c){$c=false;ar=ar.$blk();}if(ar&&ar.$blk!==undefined){break s;}a.FirstChild.Data=ar;b.Context.Tip.AppendChild(new D.Node.ptr("","","",16,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes("\xE2\x80\x8B\n"))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));case 65:as=B.TrimSpace(c.domText(a));$s=67;case 67:if($c){$c=false;as=as.$blk();}if(as&&as.$blk!==undefined){break s;}at=as;au=c.isEmptyText(a);$s=70;case 70:if($c){$c=false;au=au.$blk();}if(au&&au.$blk!==undefined){break s;}if(au){$s=68;continue;}$s=69;continue;case 68:$s=-1;return;case 69:if("\xE2\x80\xB8"===at){f.Tokens=I.CaretTokens;b.Context.Tip.AppendChild(f);$s=-1;return;}f.Type=22;av=c.domAttrValue(a,"data-marker");if(""===av){av="**";}if("__"===av){f.AppendChild(new D.Node.ptr("","","",25,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(av))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}else{f.AppendChild(new D.Node.ptr("","","",23,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(av))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}b.Context.Tip.AppendChild(f);if(!(AD.nil===a.FirstChild)&&"\xE2\x80\xB8"===a.FirstChild.Data&&!(AD.nil===a.LastChild)&&"br"===a.LastChild.Data){f.AppendChild(new D.Node.ptr("","","",16,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,I.CaretTokens,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));if("__"===av){f.AppendChild(new D.Node.ptr("","","",26,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(av))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}else{f.AppendChild(new D.Node.ptr("","","",24,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(av))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}$s=-1;return;}$r=Z(a,f);$s=71;case 71:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}c.removeInnerMarker(a,"**");$r=c.setSpanIAL(a,f);$s=72;case 72:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}b.Context.Tip=f;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=19;continue;case 16:if(AD.nil===a.FirstChild||(514===a.FirstChild.DataAtom)){$s=-1;return;}if(c.startsWithNewline(a.FirstChild)){$s=73;continue;}$s=74;continue;case 73:aw=B.TrimLeft(a.FirstChild.Data,"\xE2\x80\x8B\n");$s=75;case 75:if($c){$c=false;aw=aw.$blk();}if(aw&&aw.$blk!==undefined){break s;}a.FirstChild.Data=aw;b.Context.Tip.AppendChild(new D.Node.ptr("","","",16,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes("\xE2\x80\x8B\n"))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));case 74:ax=B.TrimSpace(c.domText(a));$s=76;case 76:if($c){$c=false;ax=ax.$blk();}if(ax&&ax.$blk!==undefined){break s;}ay=ax;az=c.isEmptyText(a);$s=79;case 79:if($c){$c=false;az=az.$blk();}if(az&&az.$blk!==undefined){break s;}if(az){$s=77;continue;}$s=78;continue;case 77:$s=-1;return;case 78:if("\xE2\x80\xB8"===ay){f.Tokens=I.CaretTokens;b.Context.Tip.AppendChild(f);$s=-1;return;}f.Type=101;ba=c.domAttrValue(a,"data-marker");if("~"===ba){f.AppendChild(new D.Node.ptr("","","",102,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(ba))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}else{f.AppendChild(new D.Node.ptr("","","",104,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(ba))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}b.Context.Tip.AppendChild(f);if(!(AD.nil===a.FirstChild)&&"\xE2\x80\xB8"===a.FirstChild.Data&&!(AD.nil===a.LastChild)&&"br"===a.LastChild.Data){f.AppendChild(new D.Node.ptr("","","",16,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,I.CaretTokens,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));if("~"===ba){f.AppendChild(new D.Node.ptr("","","",103,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(ba))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}else{f.AppendChild(new D.Node.ptr("","","",105,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(ba))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}$s=-1;return;}$r=Z(a,f);$s=80;case 80:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}c.removeInnerMarker(a,"~~");b.Context.Tip=f;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=19;continue;case 17:if(AD.nil===a.FirstChild||(514===a.FirstChild.DataAtom)){$s=-1;return;}if(c.startsWithNewline(a.FirstChild)){$s=81;continue;}$s=82;continue;case 81:bb=B.TrimLeft(a.FirstChild.Data,"\xE2\x80\x8B\n");$s=83;case 83:if($c){$c=false;bb=bb.$blk();}if(bb&&bb.$blk!==undefined){break s;}a.FirstChild.Data=bb;b.Context.Tip.AppendChild(new D.Node.ptr("","","",16,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes("\xE2\x80\x8B\n"))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));case 82:bc=B.TrimSpace(c.domText(a));$s=84;case 84:if($c){$c=false;bc=bc.$blk();}if(bc&&bc.$blk!==undefined){break s;}bd=bc;be=c.isEmptyText(a);$s=87;case 87:if($c){$c=false;be=be.$blk();}if(be&&be.$blk!==undefined){break s;}if(be){$s=85;continue;}$s=86;continue;case 85:$s=-1;return;case 86:if("\xE2\x80\xB8"===bd){f.Tokens=I.CaretTokens;b.Context.Tip.AppendChild(f);$s=-1;return;}f.Type=450;bf=c.domAttrValue(a,"data-marker");if("="===bf){f.AppendChild(new D.Node.ptr("","","",451,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(bf))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}else{f.AppendChild(new D.Node.ptr("","","",453,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(bf))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}b.Context.Tip.AppendChild(f);if(!(AD.nil===a.FirstChild)&&"\xE2\x80\xB8"===a.FirstChild.Data&&!(AD.nil===a.LastChild)&&"br"===a.LastChild.Data){f.AppendChild(new D.Node.ptr("","","",16,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,I.CaretTokens,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));if("="===bf){f.AppendChild(new D.Node.ptr("","","",452,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(bf))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}else{f.AppendChild(new D.Node.ptr("","","",454,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(bf))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}$s=-1;return;}$r=Z(a,f);$s=88;case 88:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}c.removeInnerMarker(a,"==");b.Context.Tip=f;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=19;continue;case 18:if("emoji"===d){bg=c.domAttrValue(a,"alt");f.Type=200;bh=new D.Node.ptr("","","",202,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,b.EmojiImgTokens(bg,c.domAttrValue(a,"src")),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false);bh.AppendChild(new D.Node.ptr("","","",203,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(":"+bg+":"))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));f.AppendChild(bh);b.Context.Tip.AppendChild(f);$s=-1;return;}case 19:case 1:bi=a.FirstChild;case 89:if(!(!(bi===AD.nil))){$s=90;continue;}$r=c.genASTContenteditable(bi,b);$s=91;case 91:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}bi=bi.NextSibling;$s=89;continue;case 90:bj=a.DataAtom;if(bj===(378116)){f.AppendChild(new D.Node.ptr("","","",30,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}else if(bj===(40708)){bk=c.domAttrValue(a,"data-type");if("tag"===bk){f.AppendChild(new D.Node.ptr("","","",462,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}else if("a"===bk){f.AppendChild(new D.Node.ptr("","","",37,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));f.AppendChild(new D.Node.ptr("","","",38,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));bl=c.domAttrValue(a,"data-href");if(!(""===c.RenderOptions.LinkBase)){bl=B.ReplaceAll(bl,c.RenderOptions.LinkBase,"");}if(!(""===c.RenderOptions.LinkPrefix)){bl=B.ReplaceAll(bl,c.RenderOptions.LinkPrefix,"");}f.AppendChild(new D.Node.ptr("","","",41,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(bl))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));bm=c.domAttrValue(a,"data-title");if(!(""===bm)){f.AppendChild(new D.Node.ptr("","","",43,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));f.AppendChild(new D.Node.ptr("","","",42,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(bm))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}f.AppendChild(new D.Node.ptr("","","",39,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}else if("block-ref"===bk){f.AppendChild(new D.Node.ptr("","","",39,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));f.AppendChild(new D.Node.ptr("","","",39,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}}else if(bj===(421123)){f.AppendChild(new D.Node.ptr("","","",492,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}else if(bj===(461571)){f.AppendChild(new D.Node.ptr("","","",487,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}else if(bj===(2817)){f.AppendChild(new D.Node.ptr("","","",522,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}else if(bj===(47363)){f.AppendChild(new D.Node.ptr("","","",517,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}else if((bj===(28162))||(bj===(1537))){bn=c.domAttrValue(a,"data-marker");if(""===bn){bn="*";}if("_"===bn){f.AppendChild(new D.Node.ptr("","","",21,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(bn))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}else{f.AppendChild(new D.Node.ptr("","","",19,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(bn))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}}else if((bj===(449798))||(bj===(257))){bo=c.domAttrValue(a,"data-marker");if(""===bo){bo="**";}if("__"===bo){f.AppendChild(new D.Node.ptr("","","",26,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(bo))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}else{f.AppendChild(new D.Node.ptr("","","",24,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(bo))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}}else if((bj===(283139))||(bj===(9473))||(bj===(53766))){bp=c.domAttrValue(a,"data-marker");if("~"===bp){f.AppendChild(new D.Node.ptr("","","",103,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(bp))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}else{f.AppendChild(new D.Node.ptr("","","",105,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(bp))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}}else if(bj===(46596)){bq=c.domAttrValue(a,"data-marker");if("="===bq){f.AppendChild(new D.Node.ptr("","","",452,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(bq))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}else{f.AppendChild(new D.Node.ptr("","","",454,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(bq))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}}$s=-1;return;}return;}}catch(err){$err=err;$s=-1;}finally{$callDeferred($deferred,$err);if($curGoroutine.asleep){if($f===undefined){$f={$blk:P.ptr.prototype.genASTContenteditable};}$f.a=a;$f.aa=aa;$f.ab=ab;$f.ac=ac;$f.ad=ad;$f.ae=ae;$f.af=af;$f.ag=ag;$f.ah=ah;$f.ai=ai;$f.aj=aj;$f.ak=ak;$f.al=al;$f.am=am;$f.an=an;$f.ao=ao;$f.ap=ap;$f.aq=aq;$f.ar=ar;$f.as=as;$f.at=at;$f.au=au;$f.av=av;$f.aw=aw;$f.ax=ax;$f.ay=ay;$f.az=az;$f.b=b;$f.ba=ba;$f.bb=bb;$f.bc=bc;$f.bd=bd;$f.be=be;$f.bf=bf;$f.bg=bg;$f.bh=bh;$f.bi=bi;$f.bj=bj;$f.bk=bk;$f.bl=bl;$f.bm=bm;$f.bn=bn;$f.bo=bo;$f.bp=bp;$f.bq=bq;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.k=k;$f.l=l;$f.m=m;$f.n=n;$f.o=o;$f.p=p;$f.q=q;$f.r=r;$f.s=s;$f.t=t;$f.u=u;$f.v=v;$f.w=w;$f.x=x;$f.y=y;$f.z=z;$f.$s=$s;$f.$deferred=$deferred;$f.$r=$r;return $f;}}};P.prototype.genASTContenteditable=function(a,b){return this.$val.genASTContenteditable(a,b);};P.ptr.prototype.setSpanIAL=function(a,b){var a,b,c,d,e,f,g,h,i,j,k,l,m,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;k=$f.k;l=$f.l;m=$f.m;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=this;d=false;e=c.domAttrValue(a,"style");if(!(""===e)){$s=1;continue;}$s=2;continue;case 1:f=Y(e);$s=3;case 3:if($c){$c=false;f=f.$blk();}if(f&&f.$blk!==undefined){break s;}e=f;b.SetIALAttr("style",e);g=G.IAL2Tokens(b.KramdownIAL);h=new D.Node.ptr("","","",456,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,g,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false);b.InsertAfter(h);d=true;case 2:if(!(AD.nil===a.Parent)&&!(AD.nil===a.Parent.Parent)){$s=4;continue;}$s=5;continue;case 4:i=c.domAttrValue(a.Parent.Parent,"style");if(!(""===i)){$s=6;continue;}$s=7;continue;case 6:if(d){$s=8;continue;}$s=9;continue;case 8:j=G.Tokens2IAL(b.Next.Tokens);$s=11;case 11:if($c){$c=false;j=j.$blk();}if(j&&j.$blk!==undefined){break s;}k=j;k=$append(k,new AI(["parent-style",i]));b.Next.Tokens=G.IAL2Tokens(k);b.SetIALAttr("parent-style",i);b.KramdownIAL=k;$s=10;continue;case 9:b.SetIALAttr("parent-style",i);l=G.IAL2Tokens(b.KramdownIAL);m=new D.Node.ptr("","","",456,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,l,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false);b.InsertAfter(m);case 10:case 7:case 5:$s=-1;return;}return;}if($f===undefined){$f={$blk:P.ptr.prototype.setSpanIAL};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.k=k;$f.l=l;$f.m=m;$f.$s=$s;$f.$r=$r;return $f;};P.prototype.setSpanIAL=function(a,b){return this.$val.setSpanIAL(a,b);};P.ptr.prototype.setBlockIAL=function(a,b){var a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;k=$f.k;l=$f.l;m=$f.m;n=$f.n;o=$f.o;p=$f.p;q=$f.q;r=$f.r;s=$f.s;t=$f.t;u=$f.u;v=$f.v;w=$f.w;x=$f.x;y=$f.y;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=AC.nil;d=this;b.SetIALAttr("id",b.ID);e=d.domAttrValue(a,"refcount");if(!(""===e)){b.SetIALAttr("refcount",e);c=$appendSlice(c,(new AC($stringToBytes(" refcount=\""+e+"\""))));}f=d.domAttrValue(a,"bookmark");if(!(""===f)){f=E.UnescapeHTMLStr(f);b.SetIALAttr("bookmark",f);c=$appendSlice(c,(new AC($stringToBytes(" bookmark=\""+f+"\""))));}g=d.domAttrValue(a,"style");if(!(""===g)){$s=1;continue;}$s=2;continue;case 1:g=E.UnescapeHTMLStr(g);h=Y(g);$s=3;case 3:if($c){$c=false;h=h.$blk();}if(h&&h.$blk!==undefined){break s;}g=h;b.SetIALAttr("style",g);c=$appendSlice(c,(new AC($stringToBytes(" style=\""+g+"\""))));case 2:i=d.domAttrValue(a,"name");if(!(""===i)){i=E.UnescapeHTMLStr(i);b.SetIALAttr("name",i);c=$appendSlice(c,(new AC($stringToBytes(" name=\""+i+"\""))));}j=d.domAttrValue(a,"memo");if(!(""===j)){j=E.UnescapeHTMLStr(j);b.SetIALAttr("memo",j);c=$appendSlice(c,(new AC($stringToBytes(" memo=\""+j+"\""))));}k=d.domAttrValue(a,"alias");if(!(""===k)){k=E.UnescapeHTMLStr(k);b.SetIALAttr("alias",k);c=$appendSlice(c,(new AC($stringToBytes(" alias=\""+k+"\""))));}l=d.domAttrValue(a,"fold");if(!(""===l)){b.SetIALAttr("fold",l);c=$appendSlice(c,(new AC($stringToBytes(" fold=\""+l+"\""))));}m=d.domAttrValue(a,"heading-fold");if(!(""===m)){b.SetIALAttr("heading-fold",m);c=$appendSlice(c,(new AC($stringToBytes(" heading-fold=\""+m+"\""))));}n=d.domAttrValue(a,"parent-fold");if(!(""===n)){b.SetIALAttr("parent-fold",n);c=$appendSlice(c,(new AC($stringToBytes(" parent-fold=\""+n+"\""))));}o=d.domAttrValue(a,"updated");if(!(""===o)){b.SetIALAttr("updated",o);c=$appendSlice(c,(new AC($stringToBytes(" updated=\""+o+"\""))));}p=d.domAttrValue(a,"linewrap");if(!(""===p)){b.SetIALAttr("linewrap",p);c=$appendSlice(c,(new AC($stringToBytes(" linewrap=\""+p+"\""))));}q=d.domAttrValue(a,"ligatures");if(!(""===q)){b.SetIALAttr("ligatures",q);c=$appendSlice(c,(new AC($stringToBytes(" ligatures=\""+q+"\""))));}r=d.domAttrValue(a,"linenumber");if(!(""===r)){b.SetIALAttr("linenumber",r);c=$appendSlice(c,(new AC($stringToBytes(" linenumber=\""+r+"\""))));}s=d.domCustomAttrs(a);if(!(false===s)){t=s;u=0;v=$keys(t);while(true){if(!(u<v.length)){break;}w=t[v[u]];if(w===undefined){u++;continue;}x=w.k;y=w.v;y=E.UnescapeHTMLStr(y);b.SetIALAttr(x,y);c=$appendSlice(c,(new AC($stringToBytes(" "+x+"=\""+y+"\""))));u++;}}c=G.IAL2Tokens(b.KramdownIAL);c=c;$s=-1;return c;}return;}if($f===undefined){$f={$blk:P.ptr.prototype.setBlockIAL};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.k=k;$f.l=l;$f.m=m;$f.n=n;$f.o=o;$f.p=p;$f.q=q;$f.r=r;$f.s=s;$f.t=t;$f.u=u;$f.v=v;$f.w=w;$f.x=x;$f.y=y;$f.$s=$s;$f.$r=$r;return $f;};P.prototype.setBlockIAL=function(a,b){return this.$val.setBlockIAL(a,b);};Y=function(a){var a,b,c,d,e,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b="";c=B.TrimSpace(a);$s=1;case 1:if($c){$c=false;c=c.$blk();}if(c&&c.$blk!==undefined){break s;}b=c;b=B.ReplaceAll(b,"\n","");d=B.Fields(b);$s=2;case 2:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}e=B.Join(d," ");$s=3;case 3:if($c){$c=false;e=e.$blk();}if(e&&e.$blk!==undefined){break s;}b=e;$s=-1;return b;}return;}if($f===undefined){$f={$blk:Y};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.$s=$s;$f.$r=$r;return $f;};Z=function(a,b){var a,b,c,d,e,f,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:if(B.HasPrefix(a.FirstChild.Data," ")&&AD.nil===a.FirstChild.PrevSibling){$s=1;continue;}$s=2;continue;case 1:c=B.TrimLeft(a.FirstChild.Data," ");$s=3;case 3:if($c){$c=false;c=c.$blk();}if(c&&c.$blk!==undefined){break s;}a.FirstChild.Data=c;b.InsertBefore(new D.Node.ptr("","","",16,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(" "))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));case 2:if(B.HasSuffix(a.FirstChild.Data," ")&&AD.nil===a.FirstChild.NextSibling){$s=4;continue;}$s=5;continue;case 4:d=B.TrimRight(a.FirstChild.Data," ");$s=6;case 6:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}a.FirstChild.Data=d;a.InsertAfter(new E.Node.ptr(AD.nil,AD.nil,AD.nil,AD.nil,AD.nil,1,0," ","",AQ.nil));case 5:if(B.HasSuffix(a.FirstChild.Data," \xE2\x80\xB8")&&AD.nil===a.FirstChild.NextSibling){$s=7;continue;}$s=8;continue;case 7:e=B.TrimRight(a.FirstChild.Data," \xE2\x80\xB8");$s=9;case 9:if($c){$c=false;e=e.$blk();}if(e&&e.$blk!==undefined){break s;}a.FirstChild.Data=e;a.InsertAfter(new E.Node.ptr(AD.nil,AD.nil,AD.nil,AD.nil,AD.nil,1,0," \xE2\x80\xB8","",AQ.nil));case 8:if(B.HasSuffix(a.FirstChild.Data,"\n")&&AD.nil===a.FirstChild.NextSibling){$s=10;continue;}$s=11;continue;case 10:f=B.TrimRight(a.FirstChild.Data,"\n");$s=12;case 12:if($c){$c=false;f=f.$blk();}if(f&&f.$blk!==undefined){break s;}a.FirstChild.Data=f;a.InsertAfter(new E.Node.ptr(AD.nil,AD.nil,AD.nil,AD.nil,AD.nil,1,0,"\n","",AQ.nil));case 11:$s=-1;return;}return;}if($f===undefined){$f={$blk:Z};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.$s=$s;$f.$r=$r;return $f;};P.ptr.prototype.removeInnerMarker=function(a,b){var a,b,c,d;c=this;if(1===a.Type){a.Data=B.ReplaceAll(a.Data,b,"");}d=a.FirstChild;while(true){if(!(!(AD.nil===d))){break;}c.removeInnerMarker0(d,b);d=d.NextSibling;}};P.prototype.removeInnerMarker=function(a,b){return this.$val.removeInnerMarker(a,b);};P.ptr.prototype.removeInnerMarker0=function(a,b){var a,b,c,d,e,f;c=this;if(AD.nil===a){return;}d=c.domAttrValue(a,"data-render");if("1"===d||"2"===d){return;}if("svg"===a.Namespace){return;}if((0===a.DataAtom)&&(3===a.Type)){return;}e=a.DataAtom;if(e===(0)){a.Data=B.ReplaceAll(a.Data,b,"");}f=a.FirstChild;while(true){if(!(!(AD.nil===f))){break;}c.removeInnerMarker0(f,b);f=f.NextSibling;}};P.prototype.removeInnerMarker0=function(a,b){return this.$val.removeInnerMarker0(a,b);};P.ptr.prototype.SpinVditorIRDOM=function(a){var a,b,c,d,e,f,g,h,i,j,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b="";c=this;a=B.ReplaceAll(a,"<wbr>","\xE2\x80\xB8");d=c.vditorIRDOM2Md(a);$s=1;case 1:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}e=d;f=G.Parse("",(new AC($stringToBytes(e))),c.ParseOptions);$s=2;case 2:if($c){$c=false;f=f.$blk();}if(f&&f.$blk!==undefined){break s;}g=f;h=H.NewVditorIRRenderer(g,c.RenderOptions);i=h.BaseRenderer.Render();$s=3;case 3:if($c){$c=false;i=i.$blk();}if(i&&i.$blk!==undefined){break s;}j=i;b=B.ReplaceAll(($bytesToString(j)),"\xE2\x80\xB8","<wbr>");$s=-1;return b;}return;}if($f===undefined){$f={$blk:P.ptr.prototype.SpinVditorIRDOM};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.$s=$s;$f.$r=$r;return $f;};P.prototype.SpinVditorIRDOM=function(a){return this.$val.SpinVditorIRDOM(a);};P.ptr.prototype.HTML2VditorIRDOM=function(a){var a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;k=$f.k;l=$f.l;m=$f.m;n=$f.n;o=$f.o;p=$f.p;q=$f.q;r=$f.r;s=$f.s;t=$f.t;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b="";c=this;e=c.HTML2Markdown(a);$s=1;case 1:if($c){$c=false;e=e.$blk();}if(e&&e.$blk!==undefined){break s;}d=e;f=d[0];g=d[1];if(!($interfaceIsEqual($ifaceNil,g))){$s=2;continue;}$s=3;continue;case 2:h=g.Error();$s=4;case 4:if($c){$c=false;h=h.$blk();}if(h&&h.$blk!==undefined){break s;}b=h;$s=-1;return b;case 3:i=G.Parse("",(new AC($stringToBytes(f))),c.ParseOptions);$s=5;case 5:if($c){$c=false;i=i.$blk();}if(i&&i.$blk!==undefined){break s;}j=i;k=H.NewVditorIRRenderer(j,c.RenderOptions);l=c.HTML2VditorIRDOMRendererFuncs;m=0;n=$keys(l);while(true){if(!(m<n.length)){break;}o=l[n[m]];if(o===undefined){m++;continue;}p=o.k;q=o.v;r=p;(k.BaseRenderer.ExtRendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[D.NodeType.keyFor(r)]={k:r,v:q};m++;}s=k.BaseRenderer.Render();$s=6;case 6:if($c){$c=false;s=s.$blk();}if(s&&s.$blk!==undefined){break s;}t=s;b=($bytesToString(t));$s=-1;return b;}return;}if($f===undefined){$f={$blk:P.ptr.prototype.HTML2VditorIRDOM};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.k=k;$f.l=l;$f.m=m;$f.n=n;$f.o=o;$f.p=p;$f.q=q;$f.r=r;$f.s=s;$f.t=t;$f.$s=$s;$f.$r=$r;return $f;};P.prototype.HTML2VditorIRDOM=function(a){return this.$val.HTML2VditorIRDOM(a);};P.ptr.prototype.VditorIRDOM2HTML=function(a){var a,b,c,d,e,f,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b="";c=this;d=c.vditorIRDOM2Md(a);$s=1;case 1:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}e=d;f=c.Md2HTML(e);$s=2;case 2:if($c){$c=false;f=f.$blk();}if(f&&f.$blk!==undefined){break s;}b=f;$s=-1;return b;}return;}if($f===undefined){$f={$blk:P.ptr.prototype.VditorIRDOM2HTML};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.$s=$s;$f.$r=$r;return $f;};P.prototype.VditorIRDOM2HTML=function(a){return this.$val.VditorIRDOM2HTML(a);};P.ptr.prototype.Md2VditorIRDOM=function(a){var a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;k=$f.k;l=$f.l;m=$f.m;n=$f.n;o=$f.o;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b="";c=this;d=G.Parse("",(new AC($stringToBytes(a))),c.ParseOptions);$s=1;case 1:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}e=d;f=H.NewVditorIRRenderer(e,c.RenderOptions);g=c.Md2VditorIRDOMRendererFuncs;h=0;i=$keys(g);while(true){if(!(h<i.length)){break;}j=g[i[h]];if(j===undefined){h++;continue;}k=j.k;l=j.v;m=k;(f.BaseRenderer.ExtRendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[D.NodeType.keyFor(m)]={k:m,v:l};h++;}n=f.BaseRenderer.Render();$s=2;case 2:if($c){$c=false;n=n.$blk();}if(n&&n.$blk!==undefined){break s;}o=n;b=($bytesToString(o));$s=-1;return b;}return;}if($f===undefined){$f={$blk:P.ptr.prototype.Md2VditorIRDOM};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.k=k;$f.l=l;$f.m=m;$f.n=n;$f.o=o;$f.$s=$s;$f.$r=$r;return $f;};P.prototype.Md2VditorIRDOM=function(a){return this.$val.Md2VditorIRDOM(a);};P.ptr.prototype.VditorIRDOM2Md=function(a){var a,b,c,d,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b="";c=this;a=B.ReplaceAll(a,"\xE2\x80\x8B","");d=c.vditorIRDOM2Md(a);$s=1;case 1:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}b=d;b=B.ReplaceAll(b,"\xE2\x80\x8B","");$s=-1;return b;}return;}if($f===undefined){$f={$blk:P.ptr.prototype.VditorIRDOM2Md};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.$s=$s;$f.$r=$r;return $f;};P.prototype.VditorIRDOM2Md=function(a){return this.$val.VditorIRDOM2Md(a);};P.ptr.prototype.vditorIRDOM2Md=function(a){var a,b,c,d,e,f,g,h,i,j,k,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;k=$f.k;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b="";c=this;a=B.ReplaceAll(a,"<wbr>","");a=B.ReplaceAll(a,"\t\n","\n");a=B.ReplaceAll(a,"    \n","  \n");d=c.parseHTML(a);$s=1;case 1:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}e=d;if(AD.nil===e){$s=-1;return b;}$r=c.adjustVditorDOM(e);$s=2;case 2:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}f=new G.Tree.ptr(new D.Node.ptr("","","",0,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false),new G.Context.ptr(AA.nil,c.ParseOptions,AE.nil,AE.nil,AC.nil,0,0,0,0,0,0,false,false,false,false,AE.nil,AE.nil),AG.nil,AH.nil,"","","","","",AI.nil,new $Int64(0,0),new $Int64(0,0),"");f.Context.Tip=f.Root;g=e.FirstChild;case 3:if(!(!(AD.nil===g))){$s=4;continue;}$r=c.genASTByVditorIRDOM(g,f);$s=5;case 5:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}g=g.NextSibling;$s=3;continue;case 4:$r=D.Walk(f.Root,(function(h,i){var h,i,j,k;if(i){j=h.Type;if((j===(10))||(j===(27))||(j===(304))||(j===(9))||(j===(15))||(j===(302))){h.Tokens=E.UnescapeHTML(h.Tokens);if(!(AE.nil===h.Next)&&(27===h.Next.Type)&&(h.CodeMarkerLen===h.Next.CodeMarkerLen)){h.FirstChild.Next.Tokens=$appendSlice(h.FirstChild.Next.Tokens,h.Next.FirstChild.Next.Tokens);h.Next.Unlink();}}else if(j===(7)){if(!(AE.nil===h.Parent)&&(7===h.Parent.Type)){k=h.Previous;if(!(AE.nil===k)){k.AppendChild(h);}}}}return 2;}));$s=6;case 6:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}h=H.NewOptions();h.AutoSpace=false;h.FixTermTypo=false;i=H.NewFormatRenderer(f,h);j=i.BaseRenderer.Render();$s=7;case 7:if($c){$c=false;j=j.$blk();}if(j&&j.$blk!==undefined){break s;}k=j;b=($bytesToString(k));$s=-1;return b;}return;}if($f===undefined){$f={$blk:P.ptr.prototype.vditorIRDOM2Md};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.k=k;$f.$s=$s;$f.$r=$r;return $f;};P.prototype.vditorIRDOM2Md=function(a){return this.$val.vditorIRDOM2Md(a);};P.ptr.prototype.genASTByVditorIRDOM=function(a,b){var a,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,bh,bi,bj,bk,bl,bm,bn,bo,bp,bq,br,bs,bt,bu,bv,bw,bx,by,bz,c,ca,cb,cc,cd,ce,cf,cg,ch,ci,cj,ck,cl,cm,cn,co,cp,cq,cr,cs,ct,cu,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,$s,$deferred,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;aa=$f.aa;ab=$f.ab;ac=$f.ac;ad=$f.ad;ae=$f.ae;af=$f.af;ag=$f.ag;ah=$f.ah;ai=$f.ai;aj=$f.aj;ak=$f.ak;al=$f.al;am=$f.am;an=$f.an;ao=$f.ao;ap=$f.ap;aq=$f.aq;ar=$f.ar;as=$f.as;at=$f.at;au=$f.au;av=$f.av;aw=$f.aw;ax=$f.ax;ay=$f.ay;az=$f.az;b=$f.b;ba=$f.ba;bb=$f.bb;bc=$f.bc;bd=$f.bd;be=$f.be;bf=$f.bf;bg=$f.bg;bh=$f.bh;bi=$f.bi;bj=$f.bj;bk=$f.bk;bl=$f.bl;bm=$f.bm;bn=$f.bn;bo=$f.bo;bp=$f.bp;bq=$f.bq;br=$f.br;bs=$f.bs;bt=$f.bt;bu=$f.bu;bv=$f.bv;bw=$f.bw;bx=$f.bx;by=$f.by;bz=$f.bz;c=$f.c;ca=$f.ca;cb=$f.cb;cc=$f.cc;cd=$f.cd;ce=$f.ce;cf=$f.cf;cg=$f.cg;ch=$f.ch;ci=$f.ci;cj=$f.cj;ck=$f.ck;cl=$f.cl;cm=$f.cm;cn=$f.cn;co=$f.co;cp=$f.cp;cq=$f.cq;cr=$f.cr;cs=$f.cs;ct=$f.ct;cu=$f.cu;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;k=$f.k;l=$f.l;m=$f.m;n=$f.n;o=$f.o;p=$f.p;q=$f.q;r=$f.r;s=$f.s;t=$f.t;u=$f.u;v=$f.v;w=$f.w;x=$f.x;y=$f.y;z=$f.z;$s=$f.$s;$deferred=$f.$deferred;$r=$f.$r;}var $err=null;try{s:while(true){switch($s){case 0:$deferred=[];$deferred.index=$curGoroutine.deferStack.length;$curGoroutine.deferStack.push($deferred);c=this;d=c.domAttrValue(a,"data-render");if("1"===d||"2"===d){$s=-1;return;}e=c.domAttrValue(a,"data-type");if(92931===a.DataAtom){$s=1;continue;}$s=2;continue;case 1:if("code-block"===e||"html-block"===e||"math-block"===e||"yaml-front-matter"===e){$s=3;continue;}if("link-ref-defs-block"===e){$s=4;continue;}if("footnotes-def"===e){$s=5;continue;}if("footnotes-block"===e){$s=6;continue;}if("toc-block"===e){$s=7;continue;}$s=8;continue;case 3:if(("code-block"===e||"math-block"===e)&&!B.Contains(c.domAttrValue(a.FirstChild,"data-type"),"-block-open-marker")){f=new D.Node.ptr("","","",1,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false);g=new D.Node.ptr("","","",16,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(c.domText(a.FirstChild)))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false);f.AppendChild(g);b.Context.Tip.AppendChild(f);b.Context.Tip=f;$s=-1;return;}h=a.FirstChild;case 10:if(!(!(h===AD.nil))){$s=11;continue;}$r=c.genASTByVditorIRDOM(h,b);$s=12;case 12:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}h=h.NextSibling;$s=10;continue;case 11:$s=9;continue;case 4:i=c.domText(a);j=new D.Node.ptr("","","",16,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(i))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false);b.Context.Tip.AppendChild(j);$s=9;continue;case 5:k=a.FirstChild;case 13:if(!(!(k===AD.nil))){$s=14;continue;}$r=c.genASTByVditorIRDOM(k,b);$s=15;case 15:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}k=k.NextSibling;$s=13;continue;case 14:$s=9;continue;case 6:l=a.FirstChild;case 16:if(!(!(AD.nil===l))){$s=17;continue;}m=new A.Buffer.ptr(AC.nil,0,0);n=E.Render(m,l);$s=18;case 18:if($c){$c=false;n=n.$blk();}if(n&&n.$blk!==undefined){break s;}o=n;if($interfaceIsEqual($ifaceNil,o)){$s=19;continue;}$s=20;continue;case 19:p=c.vditorIRDOM2Md(m.String());$s=21;case 21:if($c){$c=false;p=p.$blk();}if(p&&p.$blk!==undefined){break s;}q=p;r=B.Split(q,"\n");q="";s=r;t=0;while(true){if(!(t<s.$length)){break;}u=t;v=((t<0||t>=s.$length)?($throwRuntimeError("index out of range"),undefined):s.$array[s.$offset+t]);if(0<u){q=q+("    "+v);}else{q=v;}q=q+("\n");t++;}w=new D.Node.ptr("","","",16,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(q))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false);b.Context.Tip.AppendChild(w);case 20:l=l.NextSibling;$s=16;continue;case 17:$s=9;continue;case 7:x=new D.Node.ptr("","","",415,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false);b.Context.Tip.AppendChild(x);$s=9;continue;case 8:y=c.domText(a);if("\xE2\x80\xB8\n"===y){b.Context.Tip.AppendChild(new D.Node.ptr("","","",16,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes("\xE2\x80\xB8\n"))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}case 9:$s=-1;return;case 2:z=c.domAttrValue(a,"class");aa=B.ReplaceAll(a.Data,"\xE2\x80\x8B","");ab=new D.Node.ptr("","","",16,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(aa))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false);ac=a.DataAtom;if(ac===(0)){$s=23;continue;}if((ac===(3073))||(ac===(92931))){$s=24;continue;}if((ac===(89090))||(ac===(187906))||(ac===(199938))||(ac===(214274))||(ac===(216834))||(ac===(412930))){$s=25;continue;}if(ac===(87810)){$s=26;continue;}if(ac===(100106)){$s=27;continue;}if((ac===(79618))||(ac===(42754))){$s=28;continue;}if(ac===(45570)){$s=29;continue;}if(ac===(290819)){$s=30;continue;}if((ac===(28162))||(ac===(1537))){$s=31;continue;}if((ac===(449798))||(ac===(257))){$s=32;continue;}if((ac===(283139))||(ac===(9473))||(ac===(53766))){$s=33;continue;}if(ac===(46596)){$s=34;continue;}if(ac===(378116)){$s=35;continue;}if(ac===(514)){$s=36;continue;}if(ac===(1)){$s=37;continue;}if(ac===(198403)){$s=38;continue;}if(ac===(281349)){$s=39;continue;}if(ac===(365829)){$s=40;continue;}if(ac===(208901)){$s=41;continue;}if(ac===(9989)){$s=42;continue;}if(ac===(52226)){$s=43;continue;}if((ac===(87554))||(ac===(37378))){$s=44;continue;}if(ac===(461571)){$s=45;continue;}if(ac===(40708)){$s=46;continue;}if(ac===(16132)){$s=47;continue;}if(ac===(29191)){$s=48;continue;}if(ac===(47363)){$s=49;continue;}if(ac===(459783)){$s=50;continue;}$s=51;continue;case 23:if(""===aa){$s=-1;return;}ad=B.ReplaceAll(aa,"\xE2\x80\xB8","");ad=B.ReplaceAll(ad,"\t","    ");if((!c.isInline(a.PrevSibling))&&B.HasPrefix(ad,"    ")){$s=53;continue;}$s=54;continue;case 53:ab.Type=11;ab.IsFencedCodeBlock=true;ab.AppendChild(new D.Node.ptr("","","",12,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes("```"))),"","",false,false,false,0,false,0,3,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));ab.AppendChild(new D.Node.ptr("","","",14,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));ae=B.HasPrefix(aa,"\xE2\x80\xB8");if(ae){aa=B.ReplaceAll(aa,"\xE2\x80\xB8","");}af=B.TrimSpace(aa);$s=55;case 55:if($c){$c=false;af=af.$blk();}if(af&&af.$blk!==undefined){break s;}aa=af;if(ae){aa="\xE2\x80\xB8"+aa;}ag=new D.Node.ptr("","","",15,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(aa))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false);ab.AppendChild(ag);ab.AppendChild(new D.Node.ptr("","","",13,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes("```"))),"","",false,false,false,0,false,0,3,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));b.Context.Tip.AppendChild(ab);$s=-1;return;case 54:if(!(AD.nil===a.Parent)&&(1===a.Parent.DataAtom)){ab.Type=40;}b.Context.Tip.AppendChild(ab);$s=52;continue;case 24:ab.Type=1;ah=c.domText(a);if("\n"===ah&&(5===b.Context.Tip.Type)&&AE.nil===b.Context.Tip.FirstChild.Next){$s=-1;return;}else{b.Context.Tip.AppendChild(ab);b.Context.Tip=ab;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);}$s=52;continue;case 25:ai=c.domText(a);aj=B.TrimSpace(ai);$s=58;case 58:if($c){$c=false;aj=aj.$blk();}if(aj&&aj.$blk!==undefined){break s;}if(""===aj){$s=56;continue;}$s=57;continue;case 56:$s=-1;return;case 57:ab.Type=2;ak=c.domAttrValue(a,"data-marker");ab.HeadingSetext="="===ak||"-"===ak;if(!ab.HeadingSetext){$s=59;continue;}$s=60;continue;case 59:al=c.domText(a.FirstChild);ab.HeadingLevel=A.Count((new AC($stringToBytes(al))),(new AC($stringToBytes("#"))));$s=61;continue;case 60:am=B.TrimSpace(B.ReplaceAll(c.domText(a.LastChild),"\xE2\x80\xB8",""));$s=64;case 64:if($c){$c=false;am=am.$blk();}if(am&&am.$blk!==undefined){break s;}if(""===am){$s=62;continue;}$s=63;continue;case 62:ab.Type=16;ab.Tokens=(new AC($stringToBytes(ai)));b.Context.Tip.AppendChild(ab);b.Context.Tip=ab;$s=22;continue;case 63:if("="===ak){ab.HeadingLevel=1;}else{ab.HeadingLevel=2;}if(!(AD.nil===a.LastChild.PrevSibling)){a.LastChild.PrevSibling.Data=B.TrimSuffix(a.LastChild.PrevSibling.Data,"\n");}case 61:b.Context.Tip.AppendChild(ab);b.Context.Tip=ab;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=52;continue;case 26:ab.Type=4;b.Context.Tip.AppendChild(ab);$s=52;continue;case 27:an=B.TrimSpace(c.domText(a));$s=65;case 65:if($c){$c=false;an=an.$blk();}if(an&&an.$blk!==undefined){break s;}ao=an;if(""===ao||"&gt;"===ao){$s=-1;return;}if("\xE2\x80\xB8"===ao){ab.Type=16;ab.Tokens=(new AC($stringToBytes(ao)));b.Context.Tip.AppendChild(ab);}ab.Type=5;ab.AppendChild(new D.Node.ptr("","","",6,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(">"))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));b.Context.Tip.AppendChild(ab);b.Context.Tip=ab;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=52;continue;case 28:if(AD.nil===a.FirstChild){$s=-1;return;}ab.Type=7;ab.ListData=new D.ListData.ptr(0,false,0,0,0,0,0,false,AC.nil,0);if(79618===a.DataAtom){ab.ListData.Typ=1;}ap=c.domAttrValue(a,"data-tight");if("true"===ap||""===ap){ab.ListData.Tight=true;}b.Context.Tip.AppendChild(ab);b.Context.Tip=ab;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=52;continue;case 29:aq=a.FirstChild;if(!(AD.nil===aq)&&(3073===aq.DataAtom)&&!(AD.nil===aq.NextSibling)&&(3073===aq.NextSibling.DataAtom)){b.Context.Tip.ListData.Tight=false;}ab.Type=8;ar=c.domAttrValue(a,"data-marker");as=0;if(""===ar){if(!(AD.nil===a.Parent)&&(79618===a.Parent.DataAtom)){at=c.domAttrValue(a.Parent.FirstChild,"data-marker");au=c.domAttrValue(a.Parent,"start");if(""===au){ar="1";}else{ar=au;}if(!(""===at)){ar=ar+($substring(at,(at.length-1>>0)));}else{ar=ar+(".");}}else{ar=c.domAttrValue(a.Parent,"data-marker");if(""===ar){ar="*";}as=ar.charCodeAt(0);}}else{if(!(AD.nil===a.Parent)){if(79618===a.Parent.DataAtom){if("*"===ar||"-"===ar||"+"===ar){ar="1.";}if(!("1."===ar)&&!("1)"===ar)&&!(AD.nil===a.PrevSibling)&&!((45570===a.PrevSibling.DataAtom))&&!(AD.nil===a.Parent.Parent)&&((79618===a.Parent.Parent.DataAtom)||(42754===a.Parent.Parent.DataAtom))){ar="1.";}if(!("1."===ar)&&!("1)"===ar)&&(79618===a.Parent.DataAtom)&&a.Parent.FirstChild===a&&""===c.domAttrValue(a.Parent,"start")){ar="1.";}}else{if(!("*"===ar)&&!("-"===ar)&&!("+"===ar)){ar="*";}as=ar.charCodeAt(0);}}else{ar=c.domAttrValue(a,"data-marker");if(""===ar){ar="*";}as=ar.charCodeAt(0);}}ab.ListData=new D.ListData.ptr(0,false,as,0,0,0,0,false,(new AC($stringToBytes(ar))),0);if(0===as){av=N.Atoi($substring(ar,0,(ar.length-1>>0)));ab.ListData.Num=av[0];ab.ListData.Delimiter=ar.charCodeAt((ar.length-1>>0));}b.Context.Tip.AppendChild(ab);b.Context.Tip=ab;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=52;continue;case 30:if(378116===a.FirstChild.DataAtom){aw=AC.nil;if(!(AD.nil===a.FirstChild.FirstChild)){aw=(new AC($stringToBytes(a.FirstChild.FirstChild.Data)));}ax=c.domAttrValue(a.Parent,"data-type");ay=ax;if(ay===("math-block")){ab.Type=300;ab.AppendChild(new D.Node.ptr("","","",302,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,aw,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));b.Context.Tip.AppendChild(ab);}else if(ay===("html-block")){ab.Type=9;ab.Tokens=aw;b.Context.Tip.AppendChild(ab);}else if(ay===("yaml-front-matter")){ab.Type=425;ab.AppendChild(new D.Node.ptr("","","",427,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,aw,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));b.Context.Tip.AppendChild(ab);}else{ab.Type=15;ab.Tokens=aw;b.Context.Tip.AppendChild(ab);}}$s=-1;return;case 31:if(AD.nil===a.FirstChild||(514===a.FirstChild.DataAtom)){$s=-1;return;}if(c.startsWithNewline(a.FirstChild)){$s=66;continue;}$s=67;continue;case 66:az=B.TrimLeft(a.FirstChild.Data,"\xE2\x80\x8B\n");$s=68;case 68:if($c){$c=false;az=az.$blk();}if(az&&az.$blk!==undefined){break s;}a.FirstChild.Data=az;b.Context.Tip.AppendChild(new D.Node.ptr("","","",16,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes("\xE2\x80\x8B\n"))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));case 67:ba=B.TrimSpace(c.domText(a));$s=69;case 69:if($c){$c=false;ba=ba.$blk();}if(ba&&ba.$blk!==undefined){break s;}bb=ba;bc=c.isEmptyText(a);$s=72;case 72:if($c){$c=false;bc=bc.$blk();}if(bc&&bc.$blk!==undefined){break s;}if(bc){$s=70;continue;}$s=71;continue;case 70:$s=-1;return;case 71:if("\xE2\x80\xB8"===bb){ab.Tokens=I.CaretTokens;b.Context.Tip.AppendChild(ab);$s=-1;return;}ab.Type=17;b.Context.Tip.AppendChild(ab);b.Context.Tip=ab;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=52;continue;case 32:if(AD.nil===a.FirstChild||(514===a.FirstChild.DataAtom)){$s=-1;return;}if(c.startsWithNewline(a.FirstChild)){$s=73;continue;}$s=74;continue;case 73:bd=B.TrimLeft(a.FirstChild.Data,"\xE2\x80\x8B\n");$s=75;case 75:if($c){$c=false;bd=bd.$blk();}if(bd&&bd.$blk!==undefined){break s;}a.FirstChild.Data=bd;b.Context.Tip.AppendChild(new D.Node.ptr("","","",16,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes("\xE2\x80\x8B\n"))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));case 74:be=B.TrimSpace(c.domText(a));$s=76;case 76:if($c){$c=false;be=be.$blk();}if(be&&be.$blk!==undefined){break s;}bf=be;bg=c.isEmptyText(a);$s=79;case 79:if($c){$c=false;bg=bg.$blk();}if(bg&&bg.$blk!==undefined){break s;}if(bg){$s=77;continue;}$s=78;continue;case 77:$s=-1;return;case 78:if("\xE2\x80\xB8"===bf){ab.Tokens=I.CaretTokens;b.Context.Tip.AppendChild(ab);$s=-1;return;}ab.Type=22;b.Context.Tip.AppendChild(ab);b.Context.Tip=ab;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=52;continue;case 33:if(AD.nil===a.FirstChild||(514===a.FirstChild.DataAtom)){$s=-1;return;}if(c.startsWithNewline(a.FirstChild)){$s=80;continue;}$s=81;continue;case 80:bh=B.TrimLeft(a.FirstChild.Data,"\xE2\x80\x8B\n");$s=82;case 82:if($c){$c=false;bh=bh.$blk();}if(bh&&bh.$blk!==undefined){break s;}a.FirstChild.Data=bh;b.Context.Tip.AppendChild(new D.Node.ptr("","","",16,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes("\xE2\x80\x8B\n"))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));case 81:bi=B.TrimSpace(c.domText(a));$s=83;case 83:if($c){$c=false;bi=bi.$blk();}if(bi&&bi.$blk!==undefined){break s;}bj=bi;bk=c.isEmptyText(a);$s=86;case 86:if($c){$c=false;bk=bk.$blk();}if(bk&&bk.$blk!==undefined){break s;}if(bk){$s=84;continue;}$s=85;continue;case 84:$s=-1;return;case 85:if("\xE2\x80\xB8"===bj){ab.Tokens=I.CaretTokens;b.Context.Tip.AppendChild(ab);$s=-1;return;}ab.Type=101;b.Context.Tip.AppendChild(ab);b.Context.Tip=ab;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=52;continue;case 34:if(AD.nil===a.FirstChild||(514===a.FirstChild.DataAtom)){$s=-1;return;}if(c.startsWithNewline(a.FirstChild)){$s=87;continue;}$s=88;continue;case 87:bl=B.TrimLeft(a.FirstChild.Data,"\xE2\x80\x8B\n");$s=89;case 89:if($c){$c=false;bl=bl.$blk();}if(bl&&bl.$blk!==undefined){break s;}a.FirstChild.Data=bl;b.Context.Tip.AppendChild(new D.Node.ptr("","","",16,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes("\xE2\x80\x8B\n"))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));case 88:bm=B.TrimSpace(c.domText(a));$s=90;case 90:if($c){$c=false;bm=bm.$blk();}if(bm&&bm.$blk!==undefined){break s;}bn=bm;bo=c.isEmptyText(a);$s=93;case 93:if($c){$c=false;bo=bo.$blk();}if(bo&&bo.$blk!==undefined){break s;}if(bo){$s=91;continue;}$s=92;continue;case 91:$s=-1;return;case 92:if("\xE2\x80\xB8"===bn){ab.Tokens=I.CaretTokens;b.Context.Tip.AppendChild(ab);$s=-1;return;}ab.Type=450;b.Context.Tip.AppendChild(ab);b.Context.Tip=ab;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=52;continue;case 35:if(AD.nil===a.FirstChild){$s=-1;return;}bp=B.ReplaceAll(a.FirstChild.Data,"\xE2\x80\x8B","");if("\xE2\x80\xB8"===bp){ab.Tokens=I.CaretTokens;b.Context.Tip.AppendChild(ab);$s=-1;return;}if(""===bp){$s=-1;return;}bq=(new AC($stringToBytes(bp)));br=new D.Node.ptr("","","",29,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,bq,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false);ab.Type=27;ab.AppendChild(br);b.Context.Tip.AppendChild(ab);$s=-1;return;case 36:if(!(AD.nil===a.Parent)){if(c.parentIs(a,new AO([37378,87554]))){if((AD.nil===a.PrevSibling||"\xE2\x80\xB8"===a.PrevSibling.Data)&&(AD.nil===a.NextSibling||"\xE2\x80\xB8"===a.NextSibling.Data)){$s=-1;return;}if(AD.nil===a.NextSibling){$s=-1;return;}ab.Type=10;ab.Tokens=(new AC($stringToBytes("<br />")));b.Context.Tip.AppendChild(ab);$s=-1;return;}if(3073===a.Parent.DataAtom){if(!(AD.nil===a.Parent.NextSibling)&&((42754===a.Parent.NextSibling.DataAtom)||(79618===a.Parent.NextSibling.DataAtom)||(100106===a.Parent.NextSibling.DataAtom))){b.Context.Tip.AppendChild(new D.Node.ptr("","","",16,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes("\xE2\x80\x8B"))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));$s=-1;return;}}}ab.Type=31;b.Context.Tip.AppendChild(ab);b.Context.Tip=ab;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=52;continue;case 37:ab.Type=33;ab.AppendChild(new D.Node.ptr("","","",36,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));b.Context.Tip.AppendChild(ab);b.Context.Tip=ab;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=52;continue;case 38:bs=z;bt=c.domAttrValue(a,"alt");if("emoji"===bs){ab.Type=200;bu=new D.Node.ptr("","","",202,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,b.EmojiImgTokens(bt,c.domAttrValue(a,"src")),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false);bu.AppendChild(new D.Node.ptr("","","",203,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(":"+bt+":"))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));ab.AppendChild(bu);b.Context.Tip.AppendChild(ab);b.Context.Tip=ab;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);}else{$s=-1;return;}$s=52;continue;case 39:if(AD.nil===a.Parent||AD.nil===a.Parent.Parent||(!((3073===a.Parent.DataAtom))&&!((45570===a.Parent.DataAtom)))){$s=-1;return;}if(!(AD.nil===a.NextSibling)&&(40708===a.NextSibling.DataAtom)){$s=94;continue;}$s=95;continue;case 94:bv=B.TrimSpace(a.NextSibling.FirstChild.Data);$s=96;case 96:if($c){$c=false;bv=bv.$blk();}if(bv&&bv.$blk!==undefined){break s;}a.NextSibling.FirstChild.Data=bv;$s=22;continue;case 95:ab.Type=100;ab.TaskListItemChecked=c.hasAttr(a,"checked");b.Context.Tip.AppendChild(ab);if(!(AE.nil===ab.Parent.Parent.Parent)&&!(AK.nil===ab.Parent.Parent.Parent.ListData)){ab.Parent.Parent.Parent.ListData.Typ=3;}$s=52;continue;case 40:ab.Type=106;bw=AL.nil;if(AD.nil===a.FirstChild||AD.nil===a.FirstChild.FirstChild||AD.nil===a.FirstChild.FirstChild.FirstChild){$s=-1;return;}bx=a.FirstChild.FirstChild.FirstChild;while(true){if(!(!(AD.nil===bx))){break;}by=c.domAttrValue(bx,"align");bz=by;if(bz===("left")){bw=$append(bw,1);}else if(bz===("center")){bw=$append(bw,2);}else if(bz===("right")){bw=$append(bw,3);}else{bw=$append(bw,0);}bx=bx.NextSibling;}ab.TableAligns=bw;ab.Tokens=AC.nil;b.Context.Tip.AppendChild(new D.Node.ptr("","","",1,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));b.Context.Tip.AppendChild(ab);b.Context.Tip=ab;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=52;continue;case 41:ab.Type=107;b.Context.Tip.AppendChild(ab);b.Context.Tip=ab;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=52;continue;case 42:$s=52;continue;case 43:ab.Type=108;b.Context.Tip.AppendChild(ab);b.Context.Tip=ab;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=52;continue;case 44:ab.Type=109;ca=c.domAttrValue(a,"align");cb=0;cc=ca;if(cc===("left")){cb=1;}else if(cc===("center")){cb=2;}else if(cc===("right")){cb=3;}else{cb=0;}ab.TableCellAlign=cb;b.Context.Tip.AppendChild(ab);b.Context.Tip=ab;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=52;continue;case 45:if(AD.nil===a.FirstChild){$s=22;continue;}if("footnotes-ref"===e){ab.Type=16;ab.Tokens=(new AC($stringToBytes(c.domText(a))));b.Context.Tip.AppendChild(ab);}$s=-1;return;case 46:cd=e;if(cd===("inline-node")||cd===("em")||cd===("strong")||cd===("s")||cd===("a")||cd===("link-ref")||cd===("img")||cd===("code")||cd===("heading-id")||cd===("html-inline")||cd===("inline-math")||cd===("html-entity")){$s=98;continue;}if(cd===("math-block-close-marker")){$s=99;continue;}if(cd===("math-block-open-marker")){$s=100;continue;}if(cd===("yaml-front-matter-close-marker")){$s=101;continue;}if(cd===("yaml-front-matter-open-marker")){$s=102;continue;}if(cd===("code-block-open-marker")){$s=103;continue;}if(cd===("code-block-info")){$s=104;continue;}if(cd===("code-block-close-marker")){$s=105;continue;}if(cd===("heading-marker")){$s=106;continue;}$s=107;continue;case 98:ab.Type=16;ab.Tokens=(new AC($stringToBytes(c.domText(a))));b.Context.Tip.AppendChild(ab);$s=-1;return;case 99:b.Context.Tip.AppendChild(new D.Node.ptr("","","",303,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,G.MathBlockMarker,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=-1;return;case 100:ab.Type=300;ab.AppendChild(new D.Node.ptr("","","",301,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,G.MathBlockMarker,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));b.Context.Tip.AppendChild(ab);b.Context.Tip=ab;$s=-1;return;case 101:b.Context.Tip.AppendChild(new D.Node.ptr("","","",428,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,G.YamlFrontMatterMarker,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=-1;return;case 102:ab.Type=425;ab.AppendChild(new D.Node.ptr("","","",426,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,G.YamlFrontMatterMarker,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));b.Context.Tip.AppendChild(ab);b.Context.Tip=ab;$s=-1;return;case 103:if(290819===a.NextSibling.DataAtom){a.InsertAfter(new E.Node.ptr(AD.nil,AD.nil,AD.nil,AD.nil,AD.nil,0,40708,"","",new AQ([new E.Attribute.ptr("","data-type","code-block-info")])));}ce=(new AC($stringToBytes(c.domText(a))));cf=A.LastIndex(ce,(new AC($stringToBytes("`"))))+1>>0;if(0<cf){a.NextSibling.AppendChild(new E.Node.ptr(AD.nil,AD.nil,AD.nil,AD.nil,AD.nil,0,0,($bytesToString($subslice(ce,cf))),"",AQ.nil));ce=$subslice(ce,0,cf);}ab.Type=11;ab.IsFencedCodeBlock=true;ab.AppendChild(new D.Node.ptr("","","",12,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,ce,"","",false,false,false,0,false,0,ce.$length,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));b.Context.Tip.AppendChild(ab);b.Context.Tip=ab;$s=-1;return;case 104:cg=(new AC($stringToBytes(c.domText(a))));cg=A.ReplaceAll(cg,(new AC($stringToBytes("\xE2\x80\x8B"))),AC.nil);b.Context.Tip.AppendChild(new D.Node.ptr("","","",14,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,cg,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));$s=-1;return;case 105:ch=(new AC($stringToBytes(c.domText(a))));ci=A.LastIndex(ch,(new AC($stringToBytes("`"))))+1>>0;if(0<ci){ch=$subslice(ch,0,ci);}if(0===ch.$length){ch=(new AC($stringToBytes("```")));}b.Context.Tip.AppendChild(new D.Node.ptr("","","",13,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,ch,"","",false,false,false,0,false,0,ch.$length,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=-1;return;case 106:cj=c.domText(a);ck=B.Contains(cj,"\xE2\x80\xB8");if(ck){$s=108;continue;}$s=109;continue;case 108:cl=new E.Node.ptr(AD.nil,AD.nil,AD.nil,AD.nil,AD.nil,1,0,"\xE2\x80\xB8","",AQ.nil);a.InsertAfter(cl);cj=B.ReplaceAll(cj,"#","");cj=B.ReplaceAll(cj,"\xE2\x80\xB8","");cm=B.TrimSpace(cj);$s=110;case 110:if($c){$c=false;cm=cm.$blk();}if(cm&&cm.$blk!==undefined){break s;}cj=cm;if(0<cj.length){cl.Data=cj+cl.Data;}case 109:$s=-1;return;case 107:case 97:if(AD.nil===a.FirstChild){$s=22;continue;}cn=AC.nil;if("\xE2\x80\x8B"===a.FirstChild.Data&&""===c.domAttrValue(a,"style")&&!(AD.nil===a.FirstChild.NextSibling)){cn=(new AC($stringToBytes(a.FirstChild.NextSibling.FirstChild.Data)));}else if(378116===a.FirstChild.DataAtom){cn=(new AC($stringToBytes(a.FirstChild.FirstChild.Data)));if("\xE2\x80\x8B"===($bytesToString(cn))){$s=22;continue;}}else{$s=22;continue;}if("math-inline"===e){ab.Type=304;ab.AppendChild(new D.Node.ptr("","","",305,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));ab.AppendChild(new D.Node.ptr("","","",306,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,cn,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));ab.AppendChild(new D.Node.ptr("","","",307,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));b.Context.Tip.AppendChild(ab);}else if("html-inline"===e){ab.Type=10;ab.Tokens=cn;b.Context.Tip.AppendChild(ab);}else if("code-inline"===e){ab.Tokens=cn;b.Context.Tip.AppendChild(ab);}else if("html-entity"===e){ab.Type=16;ab.Tokens=cn;b.Context.Tip.AppendChild(ab);}$s=-1;return;case 47:ab.Type=16;ab.Tokens=(new AC($stringToBytes(c.domText(a))));b.Context.Tip.AppendChild(ab);$s=-1;return;case 48:ab.Type=9;co=c.domHTML(a);$s=111;case 111:if($c){$c=false;co=co.$blk();}if(co&&co.$blk!==undefined){break s;}ab.Tokens=co;ab.Tokens=(cp=A.SplitAfter(ab.Tokens,(new AC($stringToBytes("</summary>")))),(0>=cp.$length?($throwRuntimeError("index out of range"),undefined):cp.$array[cp.$offset+0]));b.Context.Tip.AppendChild(ab);$s=52;continue;case 49:$s=52;continue;case 50:$s=-1;return;case 51:ab.Type=9;cq=c.domHTML(a);$s=112;case 112:if($c){$c=false;cq=cq.$blk();}if(cq&&cq.$blk!==undefined){break s;}ab.Tokens=cq;b.Context.Tip.AppendChild(ab);$s=-1;return;case 52:case 22:cr=a.FirstChild;case 113:if(!(!(cr===AD.nil))){$s=114;continue;}$r=c.genASTByVditorIRDOM(cr,b);$s=115;case 115:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}cr=cr.NextSibling;$s=113;continue;case 114:cs=a.DataAtom;if(cs===(1)){ab.AppendChild(new D.Node.ptr("","","",37,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));ab.AppendChild(new D.Node.ptr("","","",38,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));ct=c.domAttrValue(a,"href");if(!(""===c.RenderOptions.LinkBase)){ct=B.ReplaceAll(ct,c.RenderOptions.LinkBase,"");}if(!(""===c.RenderOptions.LinkPrefix)){ct=B.ReplaceAll(ct,c.RenderOptions.LinkPrefix,"");}ab.AppendChild(new D.Node.ptr("","","",41,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(ct))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));cu=c.domAttrValue(a,"title");if(!(""===cu)){ab.AppendChild(new D.Node.ptr("","","",43,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));ab.AppendChild(new D.Node.ptr("","","",42,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(cu))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}ab.AppendChild(new D.Node.ptr("","","",39,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}else if(cs===(29191)){b.Context.Tip.AppendChild(new D.Node.ptr("","","",9,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes("</details>"))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}$s=-1;return;}return;}}catch(err){$err=err;$s=-1;}finally{$callDeferred($deferred,$err);if($curGoroutine.asleep){if($f===undefined){$f={$blk:P.ptr.prototype.genASTByVditorIRDOM};}$f.a=a;$f.aa=aa;$f.ab=ab;$f.ac=ac;$f.ad=ad;$f.ae=ae;$f.af=af;$f.ag=ag;$f.ah=ah;$f.ai=ai;$f.aj=aj;$f.ak=ak;$f.al=al;$f.am=am;$f.an=an;$f.ao=ao;$f.ap=ap;$f.aq=aq;$f.ar=ar;$f.as=as;$f.at=at;$f.au=au;$f.av=av;$f.aw=aw;$f.ax=ax;$f.ay=ay;$f.az=az;$f.b=b;$f.ba=ba;$f.bb=bb;$f.bc=bc;$f.bd=bd;$f.be=be;$f.bf=bf;$f.bg=bg;$f.bh=bh;$f.bi=bi;$f.bj=bj;$f.bk=bk;$f.bl=bl;$f.bm=bm;$f.bn=bn;$f.bo=bo;$f.bp=bp;$f.bq=bq;$f.br=br;$f.bs=bs;$f.bt=bt;$f.bu=bu;$f.bv=bv;$f.bw=bw;$f.bx=bx;$f.by=by;$f.bz=bz;$f.c=c;$f.ca=ca;$f.cb=cb;$f.cc=cc;$f.cd=cd;$f.ce=ce;$f.cf=cf;$f.cg=cg;$f.ch=ch;$f.ci=ci;$f.cj=cj;$f.ck=ck;$f.cl=cl;$f.cm=cm;$f.cn=cn;$f.co=co;$f.cp=cp;$f.cq=cq;$f.cr=cr;$f.cs=cs;$f.ct=ct;$f.cu=cu;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.k=k;$f.l=l;$f.m=m;$f.n=n;$f.o=o;$f.p=p;$f.q=q;$f.r=r;$f.s=s;$f.t=t;$f.u=u;$f.v=v;$f.w=w;$f.x=x;$f.y=y;$f.z=z;$f.$s=$s;$f.$deferred=$deferred;$f.$r=$r;return $f;}}};P.prototype.genASTByVditorIRDOM=function(a,b){return this.$val.genASTByVditorIRDOM(a,b);};P.ptr.prototype.SpinVditorSVDOM=function(a){var a,b,c,d,e,f,g,h,i,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b="";c=this;d=B.TrimSpace(a);$s=3;case 3:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}if("\xE2\x80\xB8"===d){$s=1;continue;}$s=2;continue;case 1:b="<span data-type=\"text\"><wbr></span>"+($bytesToString(H.NewlineSV));$s=-1;return b;case 2:e=G.Parse("",(new AC($stringToBytes(a))),c.ParseOptions);$s=4;case 4:if($c){$c=false;e=e.$blk();}if(e&&e.$blk!==undefined){break s;}f=e;g=H.NewVditorSVRenderer(f,c.RenderOptions);h=g.BaseRenderer.Render();$s=5;case 5:if($c){$c=false;h=h.$blk();}if(h&&h.$blk!==undefined){break s;}i=h;b=B.ReplaceAll(($bytesToString(i)),"\xE2\x80\xB8","<wbr>");$s=-1;return b;}return;}if($f===undefined){$f={$blk:P.ptr.prototype.SpinVditorSVDOM};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.$s=$s;$f.$r=$r;return $f;};P.prototype.SpinVditorSVDOM=function(a){return this.$val.SpinVditorSVDOM(a);};P.ptr.prototype.HTML2VditorSVDOM=function(a){var a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;k=$f.k;l=$f.l;m=$f.m;n=$f.n;o=$f.o;p=$f.p;q=$f.q;r=$f.r;s=$f.s;t=$f.t;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b="";c=this;e=c.HTML2Markdown(a);$s=1;case 1:if($c){$c=false;e=e.$blk();}if(e&&e.$blk!==undefined){break s;}d=e;f=d[0];g=d[1];if(!($interfaceIsEqual($ifaceNil,g))){$s=2;continue;}$s=3;continue;case 2:h=g.Error();$s=4;case 4:if($c){$c=false;h=h.$blk();}if(h&&h.$blk!==undefined){break s;}b=h;$s=-1;return b;case 3:i=G.Parse("",(new AC($stringToBytes(f))),c.ParseOptions);$s=5;case 5:if($c){$c=false;i=i.$blk();}if(i&&i.$blk!==undefined){break s;}j=i;k=H.NewVditorSVRenderer(j,c.RenderOptions);l=c.HTML2VditorSVDOMRendererFuncs;m=0;n=$keys(l);while(true){if(!(m<n.length)){break;}o=l[n[m]];if(o===undefined){m++;continue;}p=o.k;q=o.v;r=p;(k.BaseRenderer.ExtRendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[D.NodeType.keyFor(r)]={k:r,v:q};m++;}s=k.BaseRenderer.Render();$s=6;case 6:if($c){$c=false;s=s.$blk();}if(s&&s.$blk!==undefined){break s;}t=s;b=($bytesToString(t));$s=-1;return b;}return;}if($f===undefined){$f={$blk:P.ptr.prototype.HTML2VditorSVDOM};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.k=k;$f.l=l;$f.m=m;$f.n=n;$f.o=o;$f.p=p;$f.q=q;$f.r=r;$f.s=s;$f.t=t;$f.$s=$s;$f.$r=$r;return $f;};P.prototype.HTML2VditorSVDOM=function(a){return this.$val.HTML2VditorSVDOM(a);};P.ptr.prototype.Md2VditorSVDOM=function(a){var a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;k=$f.k;l=$f.l;m=$f.m;n=$f.n;o=$f.o;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b="";c=this;d=G.Parse("",(new AC($stringToBytes(a))),c.ParseOptions);$s=1;case 1:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}e=d;f=H.NewVditorSVRenderer(e,c.RenderOptions);g=c.Md2VditorSVDOMRendererFuncs;h=0;i=$keys(g);while(true){if(!(h<i.length)){break;}j=g[i[h]];if(j===undefined){h++;continue;}k=j.k;l=j.v;m=k;(f.BaseRenderer.ExtRendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[D.NodeType.keyFor(m)]={k:m,v:l};h++;}n=f.BaseRenderer.Render();$s=2;case 2:if($c){$c=false;n=n.$blk();}if(n&&n.$blk!==undefined){break s;}o=n;b=B.ReplaceAll(($bytesToString(o)),"\xE2\x80\xB8","<wbr>");$s=-1;return b;}return;}if($f===undefined){$f={$blk:P.ptr.prototype.Md2VditorSVDOM};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.k=k;$f.l=l;$f.m=m;$f.n=n;$f.o=o;$f.$s=$s;$f.$r=$r;return $f;};P.prototype.Md2VditorSVDOM=function(a){return this.$val.Md2VditorSVDOM(a);};P.ptr.prototype.Md2HTML=function(a){var a,b,c,d,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b="";c=this;d=c.MarkdownStr("",a);$s=1;case 1:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}b=d;$s=-1;return b;}return;}if($f===undefined){$f={$blk:P.ptr.prototype.Md2HTML};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.$s=$s;$f.$r=$r;return $f;};P.prototype.Md2HTML=function(a){return this.$val.Md2HTML(a);};P.ptr.prototype.SpinVditorDOM=function(a){var a,b,c,d,e,f,g,h,i,j,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b="";c=this;a=B.ReplaceAll(a,"<wbr>","\xE2\x80\xB8");d=c.vditorDOM2Md(a);$s=1;case 1:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}e=d;f=G.Parse("",(new AC($stringToBytes(e))),c.ParseOptions);$s=2;case 2:if($c){$c=false;f=f.$blk();}if(f&&f.$blk!==undefined){break s;}g=f;h=H.NewVditorRenderer(g,c.RenderOptions);i=h.BaseRenderer.Render();$s=3;case 3:if($c){$c=false;i=i.$blk();}if(i&&i.$blk!==undefined){break s;}j=i;b=B.ReplaceAll(($bytesToString(j)),"\xE2\x80\xB8","<wbr>");$s=-1;return b;}return;}if($f===undefined){$f={$blk:P.ptr.prototype.SpinVditorDOM};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.$s=$s;$f.$r=$r;return $f;};P.prototype.SpinVditorDOM=function(a){return this.$val.SpinVditorDOM(a);};P.ptr.prototype.HTML2VditorDOM=function(a){var a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;k=$f.k;l=$f.l;m=$f.m;n=$f.n;o=$f.o;p=$f.p;q=$f.q;r=$f.r;s=$f.s;t=$f.t;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b="";c=this;e=c.HTML2Markdown(a);$s=1;case 1:if($c){$c=false;e=e.$blk();}if(e&&e.$blk!==undefined){break s;}d=e;f=d[0];g=d[1];if(!($interfaceIsEqual($ifaceNil,g))){$s=2;continue;}$s=3;continue;case 2:h=g.Error();$s=4;case 4:if($c){$c=false;h=h.$blk();}if(h&&h.$blk!==undefined){break s;}b=h;$s=-1;return b;case 3:i=G.Parse("",(new AC($stringToBytes(f))),c.ParseOptions);$s=5;case 5:if($c){$c=false;i=i.$blk();}if(i&&i.$blk!==undefined){break s;}j=i;k=H.NewVditorRenderer(j,c.RenderOptions);l=c.HTML2VditorDOMRendererFuncs;m=0;n=$keys(l);while(true){if(!(m<n.length)){break;}o=l[n[m]];if(o===undefined){m++;continue;}p=o.k;q=o.v;r=p;(k.BaseRenderer.ExtRendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[D.NodeType.keyFor(r)]={k:r,v:q};m++;}s=k.BaseRenderer.Render();$s=6;case 6:if($c){$c=false;s=s.$blk();}if(s&&s.$blk!==undefined){break s;}t=s;b=($bytesToString(t));$s=-1;return b;}return;}if($f===undefined){$f={$blk:P.ptr.prototype.HTML2VditorDOM};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.k=k;$f.l=l;$f.m=m;$f.n=n;$f.o=o;$f.p=p;$f.q=q;$f.r=r;$f.s=s;$f.t=t;$f.$s=$s;$f.$r=$r;return $f;};P.prototype.HTML2VditorDOM=function(a){return this.$val.HTML2VditorDOM(a);};P.ptr.prototype.VditorDOM2HTML=function(a){var a,b,c,d,e,f,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b="";c=this;d=c.vditorDOM2Md(a);$s=1;case 1:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}e=d;f=c.Md2HTML(e);$s=2;case 2:if($c){$c=false;f=f.$blk();}if(f&&f.$blk!==undefined){break s;}b=f;$s=-1;return b;}return;}if($f===undefined){$f={$blk:P.ptr.prototype.VditorDOM2HTML};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.$s=$s;$f.$r=$r;return $f;};P.prototype.VditorDOM2HTML=function(a){return this.$val.VditorDOM2HTML(a);};P.ptr.prototype.Md2VditorDOM=function(a){var a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;k=$f.k;l=$f.l;m=$f.m;n=$f.n;o=$f.o;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b="";c=this;d=G.Parse("",(new AC($stringToBytes(a))),c.ParseOptions);$s=1;case 1:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}e=d;f=H.NewVditorRenderer(e,c.RenderOptions);g=c.Md2VditorDOMRendererFuncs;h=0;i=$keys(g);while(true){if(!(h<i.length)){break;}j=g[i[h]];if(j===undefined){h++;continue;}k=j.k;l=j.v;m=k;(f.BaseRenderer.ExtRendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[D.NodeType.keyFor(m)]={k:m,v:l};h++;}n=f.BaseRenderer.Render();$s=2;case 2:if($c){$c=false;n=n.$blk();}if(n&&n.$blk!==undefined){break s;}o=n;b=($bytesToString(o));$s=-1;return b;}return;}if($f===undefined){$f={$blk:P.ptr.prototype.Md2VditorDOM};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.k=k;$f.l=l;$f.m=m;$f.n=n;$f.o=o;$f.$s=$s;$f.$r=$r;return $f;};P.prototype.Md2VditorDOM=function(a){return this.$val.Md2VditorDOM(a);};P.ptr.prototype.VditorDOM2Md=function(a){var a,b,c,d,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b="";c=this;a=B.ReplaceAll(a,"\xE2\x80\x8B","");d=c.vditorDOM2Md(a);$s=1;case 1:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}b=d;b=B.ReplaceAll(b,"\xE2\x80\x8B","");$s=-1;return b;}return;}if($f===undefined){$f={$blk:P.ptr.prototype.VditorDOM2Md};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.$s=$s;$f.$r=$r;return $f;};P.prototype.VditorDOM2Md=function(a){return this.$val.VditorDOM2Md(a);};P.ptr.prototype.RenderEChartsJSON=function(a){var a,b,c,d,e,f,g,h,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b="";c=this;d=G.Parse("",(new AC($stringToBytes(a))),c.ParseOptions);$s=1;case 1:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}e=d;f=H.NewEChartsJSONRenderer(e,c.RenderOptions);g=f.Render();$s=2;case 2:if($c){$c=false;g=g.$blk();}if(g&&g.$blk!==undefined){break s;}h=g;b=($bytesToString(h));$s=-1;return b;}return;}if($f===undefined){$f={$blk:P.ptr.prototype.RenderEChartsJSON};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.$s=$s;$f.$r=$r;return $f;};P.prototype.RenderEChartsJSON=function(a){return this.$val.RenderEChartsJSON(a);};P.ptr.prototype.RenderKityMinderJSON=function(a){var a,b,c,d,e,f,g,h,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b="";c=this;d=G.Parse("",(new AC($stringToBytes(a))),c.ParseOptions);$s=1;case 1:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}e=d;f=H.NewKityMinderJSONRenderer(e,c.RenderOptions);g=f.Render();$s=2;case 2:if($c){$c=false;g=g.$blk();}if(g&&g.$blk!==undefined){break s;}h=g;b=($bytesToString(h));$s=-1;return b;}return;}if($f===undefined){$f={$blk:P.ptr.prototype.RenderKityMinderJSON};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.$s=$s;$f.$r=$r;return $f;};P.prototype.RenderKityMinderJSON=function(a){return this.$val.RenderKityMinderJSON(a);};P.ptr.prototype.HTML2Md=function(a){var a,b,c,d,e,f,g,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b="";c=this;e=c.HTML2Markdown(a);$s=1;case 1:if($c){$c=false;e=e.$blk();}if(e&&e.$blk!==undefined){break s;}d=e;b=d[0];f=d[1];if(!($interfaceIsEqual($ifaceNil,f))){$s=2;continue;}$s=3;continue;case 2:g=f.Error();$s=4;case 4:if($c){$c=false;g=g.$blk();}if(g&&g.$blk!==undefined){break s;}b=g;$s=-1;return b;case 3:$s=-1;return b;}return;}if($f===undefined){$f={$blk:P.ptr.prototype.HTML2Md};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.$s=$s;$f.$r=$r;return $f;};P.prototype.HTML2Md=function(a){return this.$val.HTML2Md(a);};P.ptr.prototype.vditorDOM2Md=function(a){var a,b,c,d,e,f,g,h,i,j,k,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;k=$f.k;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b="";c=this;a=B.ReplaceAll(a,"<wbr>","");a=B.ReplaceAll(a,"\t\n","\n");a=B.ReplaceAll(a,"    \n","  \n");d=c.parseHTML(a);$s=1;case 1:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}e=d;if(AD.nil===e){$s=-1;return b;}$r=c.adjustVditorDOM(e);$s=2;case 2:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}f=new G.Tree.ptr(new D.Node.ptr("","","",0,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false),new G.Context.ptr(AA.nil,c.ParseOptions,AE.nil,AE.nil,AC.nil,0,0,0,0,0,0,false,false,false,false,AE.nil,AE.nil),AG.nil,AH.nil,"","","","","",AI.nil,new $Int64(0,0),new $Int64(0,0),"");f.Context.Tip=f.Root;g=e.FirstChild;case 3:if(!(!(AD.nil===g))){$s=4;continue;}$r=c.genASTByVditorDOM(g,f);$s=5;case 5:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}g=g.NextSibling;$s=3;continue;case 4:$r=D.Walk(f.Root,(function(h,i){var h,i,j,k;if(i){j=h.Type;if((j===(10))||(j===(27))||(j===(304))||(j===(9))||(j===(15))||(j===(302))){h.Tokens=E.UnescapeHTML(h.Tokens);if(!(AE.nil===h.Next)&&(27===h.Next.Type)&&(h.CodeMarkerLen===h.Next.CodeMarkerLen)){h.FirstChild.Next.Tokens=$appendSlice(h.FirstChild.Next.Tokens,h.Next.FirstChild.Next.Tokens);h.Next.Unlink();}}else if(j===(7)){if(!(AE.nil===h.Parent)&&(7===h.Parent.Type)){k=h.Previous;if(!(AE.nil===k)){k.AppendChild(h);}}}}return 2;}));$s=6;case 6:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}h=H.NewOptions();h.AutoSpace=false;h.FixTermTypo=false;i=H.NewFormatRenderer(f,h);j=i.BaseRenderer.Render();$s=7;case 7:if($c){$c=false;j=j.$blk();}if(j&&j.$blk!==undefined){break s;}k=j;b=($bytesToString(k));$s=-1;return b;}return;}if($f===undefined){$f={$blk:P.ptr.prototype.vditorDOM2Md};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.k=k;$f.$s=$s;$f.$r=$r;return $f;};P.prototype.vditorDOM2Md=function(a){return this.$val.vditorDOM2Md(a);};P.ptr.prototype.parseHTML=function(a){var a,b,c,d,e,f,g,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b=this;c=B.NewReader(a);e=E.Parse(c);$s=1;case 1:if($c){$c=false;e=e.$blk();}if(e&&e.$blk!==undefined){break s;}d=e;f=d[0];g=d[1];if(!($interfaceIsEqual($ifaceNil,g))){$s=-1;return AD.nil;}if(!("html"===f.FirstChild.Data)){$s=-1;return f;}$s=-1;return f.FirstChild.LastChild;}return;}if($f===undefined){$f={$blk:P.ptr.prototype.parseHTML};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.$s=$s;$f.$r=$r;return $f;};P.prototype.parseHTML=function(a){return this.$val.parseHTML(a);};P.ptr.prototype.adjustVditorDOM=function(a){var a,b,c,d,e,f,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b=this;$r=b.removeEmptyNodes(a);$s=1;case 1:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}b.removeHighlightJSSpans(a);c=a.FirstChild;while(true){if(!(!(AD.nil===c))){break;}b.mergeVditorDOMList0(c);c=c.NextSibling;}d=a.FirstChild;while(true){if(!(!(AD.nil===d))){break;}b.adjustVditorDOMListTight0(d);d=d.NextSibling;}e=a.FirstChild;while(true){if(!(!(AD.nil===e))){break;}b.adjustVditorDOMListList(e);e=e.NextSibling;}f=a.FirstChild;case 2:if(!(!(AD.nil===f))){$s=3;continue;}$r=b.adjustVditorDOMListItemInP(f);$s=4;case 4:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}f=f.NextSibling;$s=2;continue;case 3:$s=-1;return;}return;}if($f===undefined){$f={$blk:P.ptr.prototype.adjustVditorDOM};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.$s=$s;$f.$r=$r;return $f;};P.prototype.adjustVditorDOM=function(a){return this.$val.adjustVditorDOM(a);};P.ptr.prototype.adjustVditorDOMListList=function(a){var a,b,c,d,e,f,g;b=this;if(!((42754===a.DataAtom))&&!((79618===a.DataAtom))&&!((45570===a.DataAtom))){return;}if(45570===a.DataAtom){if(!(AD.nil===a.FirstChild)&&(514===a.FirstChild.DataAtom)){a.FirstChild.DataAtom=0;a.FirstChild.Data="\xE2\x80\x8B";c=a.NextSibling;if(!(AD.nil===a.NextSibling)&&(45570===a.NextSibling.DataAtom)){d=c.FirstChild;if(!(AD.nil===d)&&"\xE2\x80\xB8\xE2\x80\x8B"===d.Data){d.Data="\xE2\x80\xB8\n";}}}}else{if(!(AD.nil===a.Parent)&&((42754===a.Parent.DataAtom)||(79618===a.Parent.DataAtom))){e=a.PrevSibling;if(!(AD.nil===e)){a.Unlink();e.AppendChild(a);}}}f=a.FirstChild;while(true){if(!(!(f===AD.nil))){break;}g=f.NextSibling;b.adjustVditorDOMListList(f);f=g;}};P.prototype.adjustVditorDOMListList=function(a){return this.$val.adjustVditorDOMListList(a);};P.ptr.prototype.removeHighlightJSSpans=function(a){var a,b,c,d,e,f,g,h;b=this;c=AZ.nil;d=a;while(true){if(!(!(AD.nil===d))){break;}b.hljsSpans(d,(e||(e=new BA(function(){return c;},function($v){c=$subslice(new AZ($v.$array),$v.$offset,$v.$offset+$v.$length);}))));d=d.NextSibling;}f=c;g=0;while(true){if(!(g<f.$length)){break;}h=((g<0||g>=f.$length)?($throwRuntimeError("index out of range"),undefined):f.$array[f.$offset+g]);h.Unlink();g++;}};P.prototype.removeHighlightJSSpans=function(a){return this.$val.removeHighlightJSSpans(a);};P.ptr.prototype.hljsSpans=function(a,b){var a,b,c,d,e;c=this;if((40708===a.DataAtom)&&B.HasPrefix(c.domAttrValue(a,"class"),"hljs-")){b.$set($append(b.$get(),a));d=c.domText(a);a.InsertBefore(new E.Node.ptr(AD.nil,AD.nil,AD.nil,AD.nil,AD.nil,1,0,d,"",AQ.nil));}e=a.FirstChild;while(true){if(!(!(e===AD.nil))){break;}c.hljsSpans(e,b);e=e.NextSibling;}};P.prototype.hljsSpans=function(a,b){return this.$val.hljsSpans(a,b);};P.ptr.prototype.removeEmptyNodes=function(a){var a,b,c,d,e,f,g,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b=[b];c=this;b[0]=AZ.nil;d=a;case 1:if(!(!(AD.nil===d))){$s=2;continue;}$r=c.searchEmptyNodes(d,(b.$ptr||(b.$ptr=new BA(function(){return this.$target[0];},function($v){this.$target[0]=$v;},b))));$s=3;case 3:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}d=d.NextSibling;$s=1;continue;case 2:e=b[0];f=0;while(true){if(!(f<e.$length)){break;}g=((f<0||f>=e.$length)?($throwRuntimeError("index out of range"),undefined):e.$array[e.$offset+f]);g.Unlink();f++;}$s=-1;return;}return;}if($f===undefined){$f={$blk:P.ptr.prototype.removeEmptyNodes};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.$s=$s;$f.$r=$r;return $f;};P.prototype.removeEmptyNodes=function(a){return this.$val.removeEmptyNodes(a);};P.ptr.prototype.searchEmptyNodes=function(a,b){var a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;k=$f.k;l=$f.l;m=$f.m;n=$f.n;o=$f.o;p=$f.p;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=this;d=a.DataAtom;if(d===(0)){$s=2;continue;}$s=3;continue;case 2:if(c.isInline(a.PrevSibling)||c.isInline(a.NextSibling)){$s=1;continue;}if(1===a.Type){$s=4;continue;}$s=5;continue;case 4:e=B.TrimLeft(a.Data," ");$s=6;case 6:if($c){$c=false;e=e.$blk();}if(e&&e.$blk!==undefined){break s;}f=e;g=B.TrimRight(f," ");$s=7;case 7:if($c){$c=false;g=g.$blk();}if(g&&g.$blk!==undefined){break s;}f=g;if(""===f){b.$set($append(b.$get(),a));$s=-1;return;}case 5:h=a.Parent;if(!(AD.nil===h)&&((79618===h.DataAtom)||(42754===h.DataAtom)||(45570===h.DataAtom))){$s=8;continue;}$s=9;continue;case 8:if(AD.nil===a.NextSibling||((1===a.NextSibling.Type)||(42754===a.NextSibling.DataAtom))){i=true;$s=12;continue s;}j=B.TrimSpace(a.Data);$s=13;case 13:if($c){$c=false;j=j.$blk();}if(j&&j.$blk!==undefined){break s;}i=""===j;case 12:if(i){$s=10;continue;}$s=11;continue;case 10:k=B.TrimRight(a.Data,"\n\t ");$s=14;case 14:if($c){$c=false;k=k.$blk();}if(k&&k.$blk!==undefined){break s;}a.Data=k;case 11:case 9:if(!(AD.nil===h)&&((365829===h.DataAtom)||(208901===h.DataAtom)||(9989===h.DataAtom)||(52226===h.DataAtom))){$s=15;continue;}$s=16;continue;case 15:l=B.TrimSpace(a.Data);$s=17;case 17:if($c){$c=false;l=l.$blk();}if(l&&l.$blk!==undefined){break s;}a.Data=l;case 16:if(""===a.Data){b.$set($append(b.$get(),a));}if(4===a.Type){b.$set($append(b.$get(),a));}case 3:case 1:m=a.FirstChild;case 18:if(!(!(m===AD.nil))){$s=19;continue;}$r=c.searchEmptyNodes(m,b);$s=20;case 20:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}m=m.NextSibling;$s=18;continue;case 19:n=a.DataAtom;if((n===(79618))||(n===(42754))){o=c.domAttrValue(a,"data-type");if("footnotes-defs-ol"===o){$s=-1;return;}if(!(AD.nil===a.FirstChild)&&!(AD.nil===a.FirstChild.FirstChild)&&!((281349===a.FirstChild.FirstChild.DataAtom))){$s=-1;return;}p=c.domText(a);if(""===p){b.$set($append(b.$get(),a));}}$s=-1;return;}return;}if($f===undefined){$f={$blk:P.ptr.prototype.searchEmptyNodes};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.k=k;$f.l=l;$f.m=m;$f.n=n;$f.o=o;$f.p=p;$f.$s=$s;$f.$r=$r;return $f;};P.prototype.searchEmptyNodes=function(a,b){return this.$val.searchEmptyNodes(a,b);};P.ptr.prototype.mergeVditorDOMList0=function(a){var a,b,c,d,e,f;b=this;c=a.DataAtom;if((c===(42754))||(c===(79618))){if(!(AD.nil===a.NextSibling)&&(a.DataAtom===a.NextSibling.DataAtom)&&(1===a.NextSibling.Attr.$length)){d=a.NextSibling.FirstChild;while(true){if(!(!(AD.nil===d))){break;}e=d.NextSibling;d.Unlink();a.AppendChild(d);d=e;}a.NextSibling.Unlink();}}f=a.FirstChild;while(true){if(!(!(f===AD.nil))){break;}b.mergeVditorDOMList0(f);f=f.NextSibling;}};P.prototype.mergeVditorDOMList0=function(a){return this.$val.mergeVditorDOMList0(a);};P.ptr.prototype.adjustVditorDOMListTight0=function(a){var a,b,c,d;b=this;c=a.DataAtom;if(c===(42754)){if(!b.parentIs(a,new AO([290819]))){b.setDOMAttrValue(a,"data-tight",b.isTightList(a));}}else if(c===(79618)){if(!b.parentIs(a,new AO([290819]))){b.setDOMAttrValue(a,"data-tight",b.isTightList(a));}}d=a.FirstChild;while(true){if(!(!(d===AD.nil))){break;}b.adjustVditorDOMListTight0(d);d=d.NextSibling;}};P.prototype.adjustVditorDOMListTight0=function(a){return this.$val.adjustVditorDOMListTight0(a);};P.ptr.prototype.adjustVditorDOMListItemInP=function(a){var a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;k=$f.k;l=$f.l;m=$f.m;n=$f.n;o=$f.o;p=$f.p;q=$f.q;r=$f.r;s=$f.s;t=$f.t;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b=this;c=a.DataAtom;if(c===(45570)){$s=2;continue;}$s=3;continue;case 2:if(!(AD.nil===a.PrevSibling)&&b.domAttrValue(a.PrevSibling,"data-node-id")===b.domAttrValue(a,"data-node-id")){$s=4;continue;}$s=5;continue;case 4:d=a;e=D.NewNodeID();$s=6;case 6:if($c){$c=false;e=e.$blk();}if(e&&e.$blk!==undefined){break s;}f=e;$r=b.setDOMAttrValue(d,"data-node-id",f);$s=7;case 7:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}case 5:if(!(AD.nil===a.PrevSibling)&&!(AD.nil===a.FirstChild)){$s=8;continue;}$s=9;continue;case 8:g=b.domAttrValue(a.FirstChild,"data-node-id");if(!(""===g)&&!(AD.nil===a.PrevSibling.LastChild)&&b.domAttrValue(a.PrevSibling.LastChild,"data-node-id")===g){$s=10;continue;}$s=11;continue;case 10:h=a.FirstChild;i=D.NewNodeID();$s=12;case 12:if($c){$c=false;i=i.$blk();}if(i&&i.$blk!==undefined){break s;}j=i;$r=b.setDOMAttrValue(h,"data-node-id",j);$s=13;case 13:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}case 11:case 9:k=a.FirstChild;while(true){if(!(!(AD.nil===k))){break;}if(b.listItemEnter(a)){l=new E.Node.ptr(AD.nil,AD.nil,AD.nil,AD.nil,AD.nil,3,3073,"p","",AQ.nil);l.AppendChild(new E.Node.ptr(AD.nil,AD.nil,AD.nil,AD.nil,AD.nil,1,0,"\xE2\x80\xB8","",AQ.nil));l.AppendChild(new E.Node.ptr(AD.nil,AD.nil,AD.nil,AD.nil,AD.nil,3,514,"br","",AQ.nil));a.FirstChild.Unlink();a.FirstChild.Unlink();a.AppendChild(l);k=l;k=k.NextSibling;continue;}if(!((3073===k.DataAtom))&&!((100106===k.DataAtom))&&!((42754===k.DataAtom))&&!((79618===k.DataAtom))&&!((92931===k.DataAtom))){m=b.forwardNextBlock(k);n=m[0];o=m[1];p=new E.Node.ptr(AD.nil,AD.nil,AD.nil,AD.nil,AD.nil,3,3073,"p","",AQ.nil);k.InsertBefore(p);q=n;r=0;while(true){if(!(r<q.$length)){break;}s=((r<0||r>=q.$length)?($throwRuntimeError("index out of range"),undefined):q.$array[q.$offset+r]);s.Unlink();p.AppendChild(s);r++;}k=o;if(AD.nil===k){break;}}k=k.NextSibling;}case 3:case 1:t=a.FirstChild;case 14:if(!(!(t===AD.nil))){$s=15;continue;}$r=b.adjustVditorDOMListItemInP(t);$s=16;case 16:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}t=t.NextSibling;$s=14;continue;case 15:$s=-1;return;}return;}if($f===undefined){$f={$blk:P.ptr.prototype.adjustVditorDOMListItemInP};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.k=k;$f.l=l;$f.m=m;$f.n=n;$f.o=o;$f.p=p;$f.q=q;$f.r=r;$f.s=s;$f.t=t;$f.$s=$s;$f.$r=$r;return $f;};P.prototype.adjustVditorDOMListItemInP=function(a){return this.$val.adjustVditorDOMListItemInP(a);};P.ptr.prototype.forwardNextBlock=function(a){var a,b,c,d,e,f;b=AZ.nil;c=AD.nil;d=this;e=a;while(true){if(!(!(AD.nil===e))){break;}f=e.DataAtom;if((f===(79618))||(f===(42754))||(f===(92931))||(f===(100106))){return[b,c];}b=$append(b,e);e=e.NextSibling;}return[b,c];};P.prototype.forwardNextBlock=function(a){return this.$val.forwardNextBlock(a);};P.ptr.prototype.listItemEnter=function(a){var a,b;b=this;if(AD.nil===a.FirstChild){return false;}if("\xE2\x80\xB8"===a.FirstChild.Data&&"br"===a.LastChild.Data){return true;}return false;};P.prototype.listItemEnter=function(a){return this.$val.listItemEnter(a);};P.ptr.prototype.isTightList=function(a){var a,b,c,d,e,f,g,h,i,j,k,l,m;b=this;c=a.FirstChild;while(true){if(!(!(AD.nil===c))){break;}d=0;e=0;f=0;g=0;h=d;i=e;j=f;k=g;l=c.FirstChild;while(true){if(!(!(AD.nil===l))){break;}m=l.DataAtom;if((m===(42754))||(m===(79618))){h=h+(1)>>0;}else if(m===(92931)){i=i+(1)>>0;}else if(m===(100106)){j=j+(1)>>0;}else if(m===(3073)){k=k+(1)>>0;}l=l.NextSibling;}if(1<k||1<j||1<i||1<h){return"false";}if(1<(k+i>>0)||1<(k+j>>0)||1<(k+h>>0)){return"false";}c=c.NextSibling;}return"true";};P.prototype.isTightList=function(a){return this.$val.isTightList(a);};P.ptr.prototype.genASTByVditorDOM=function(a,b){var a,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,bh,bi,bj,bk,bl,bm,bn,bo,bp,bq,br,bs,bt,bu,bv,bw,bx,by,bz,c,ca,cb,cc,cd,ce,cf,cg,ch,ci,cj,ck,cl,cm,cn,co,cp,cq,cr,cs,ct,cu,cv,cw,cx,cy,cz,d,da,db,dc,dd,de,df,dg,dh,di,dj,dk,dl,dm,dn,dp,dq,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,$s,$deferred,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;aa=$f.aa;ab=$f.ab;ac=$f.ac;ad=$f.ad;ae=$f.ae;af=$f.af;ag=$f.ag;ah=$f.ah;ai=$f.ai;aj=$f.aj;ak=$f.ak;al=$f.al;am=$f.am;an=$f.an;ao=$f.ao;ap=$f.ap;aq=$f.aq;ar=$f.ar;as=$f.as;at=$f.at;au=$f.au;av=$f.av;aw=$f.aw;ax=$f.ax;ay=$f.ay;az=$f.az;b=$f.b;ba=$f.ba;bb=$f.bb;bc=$f.bc;bd=$f.bd;be=$f.be;bf=$f.bf;bg=$f.bg;bh=$f.bh;bi=$f.bi;bj=$f.bj;bk=$f.bk;bl=$f.bl;bm=$f.bm;bn=$f.bn;bo=$f.bo;bp=$f.bp;bq=$f.bq;br=$f.br;bs=$f.bs;bt=$f.bt;bu=$f.bu;bv=$f.bv;bw=$f.bw;bx=$f.bx;by=$f.by;bz=$f.bz;c=$f.c;ca=$f.ca;cb=$f.cb;cc=$f.cc;cd=$f.cd;ce=$f.ce;cf=$f.cf;cg=$f.cg;ch=$f.ch;ci=$f.ci;cj=$f.cj;ck=$f.ck;cl=$f.cl;cm=$f.cm;cn=$f.cn;co=$f.co;cp=$f.cp;cq=$f.cq;cr=$f.cr;cs=$f.cs;ct=$f.ct;cu=$f.cu;cv=$f.cv;cw=$f.cw;cx=$f.cx;cy=$f.cy;cz=$f.cz;d=$f.d;da=$f.da;db=$f.db;dc=$f.dc;dd=$f.dd;de=$f.de;df=$f.df;dg=$f.dg;dh=$f.dh;di=$f.di;dj=$f.dj;dk=$f.dk;dl=$f.dl;dm=$f.dm;dn=$f.dn;dp=$f.dp;dq=$f.dq;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;k=$f.k;l=$f.l;m=$f.m;n=$f.n;o=$f.o;p=$f.p;q=$f.q;r=$f.r;s=$f.s;t=$f.t;u=$f.u;v=$f.v;w=$f.w;x=$f.x;y=$f.y;z=$f.z;$s=$f.$s;$deferred=$f.$deferred;$r=$f.$r;}var $err=null;try{s:while(true){switch($s){case 0:$deferred=[];$deferred.index=$curGoroutine.deferStack.length;$curGoroutine.deferStack.push($deferred);c=this;d=c.domAttrValue(a,"data-render");if("1"===d||"2"===d){$s=-1;return;}e=c.domAttrValue(a,"data-type");if(92931===a.DataAtom){$s=1;continue;}$s=2;continue;case 1:if("code-block"===e||"html-block"===e||"math-block"===e||"yaml-front-matter"===e){$s=3;continue;}if("link-ref-defs-block"===e){$s=4;continue;}if("footnotes-block"===e){$s=5;continue;}if("toc-block"===e){$s=6;continue;}$s=7;continue;case 3:f=a.FirstChild;case 8:if(!(!(f===AD.nil))){$s=9;continue;}$r=c.genASTByVditorDOM(f,b);$s=10;case 10:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}f=f.NextSibling;$s=8;continue;case 9:$s=7;continue;case 4:g=c.domText(a);h=new D.Node.ptr("","","",16,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(g))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false);b.Context.Tip.AppendChild(h);$s=7;continue;case 5:i=a.FirstChild;if(!((79618===i.DataAtom))){$s=-1;return;}j=i.FirstChild;case 11:if(!(!(AD.nil===j))){$s=12;continue;}if("\n"===j.Data){$s=13;continue;}$s=14;continue;case 13:j=j.NextSibling;$s=11;continue;case 14:k=new A.Buffer.ptr(AC.nil,0,0);l=E.Render(k,j);$s=15;case 15:if($c){$c=false;l=l.$blk();}if(l&&l.$blk!==undefined){break s;}m=l;if($interfaceIsEqual($ifaceNil,m)){$s=16;continue;}$s=17;continue;case 16:n=c.vditorDOM2Md("<ol data-type=\"footnotes-defs-ol\">"+k.String()+"</ol>");$s=19;case 19:if($c){$c=false;n=n.$blk();}if(n&&n.$blk!==undefined){break s;}o=n;p=c.domAttrValue(j,"data-marker");o=$substring(o,3);q=B.Split(o,"\n");o="";r=q;s=0;while(true){if(!(s<r.$length)){break;}t=s;u=((s<0||s>=r.$length)?($throwRuntimeError("index out of range"),undefined):r.$array[r.$offset+s]);if(0<t){o=o+("    "+u);}else{o=u;}o=o+("\n");s++;}o="["+p+"]: "+o;v=new D.Node.ptr("","","",16,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(o))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false);b.Context.Tip.AppendChild(v);$s=18;continue;case 17:$panic(m);case 18:j=j.NextSibling;$s=11;continue;case 12:$s=7;continue;case 6:w=new D.Node.ptr("","","",415,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false);b.Context.Tip.AppendChild(w);case 7:$s=-1;return;case 2:x=c.domAttrValue(a,"class");y=B.ReplaceAll(a.Data,"\xE2\x80\x8B","");z=new D.Node.ptr("","","",16,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(y))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false);aa=a.DataAtom;if(aa===(0)){$s=21;continue;}if((aa===(3073))||(aa===(92931))){$s=22;continue;}if((aa===(89090))||(aa===(187906))||(aa===(199938))||(aa===(214274))||(aa===(216834))||(aa===(412930))){$s=23;continue;}if(aa===(87810)){$s=24;continue;}if(aa===(100106)){$s=25;continue;}if((aa===(79618))||(aa===(42754))){$s=26;continue;}if(aa===(45570)){$s=27;continue;}if(aa===(290819)){$s=28;continue;}if((aa===(28162))||(aa===(1537))){$s=29;continue;}if((aa===(449798))||(aa===(257))){$s=30;continue;}if((aa===(283139))||(aa===(9473))||(aa===(53766))){$s=31;continue;}if(aa===(46596)){$s=32;continue;}if(aa===(378116)){$s=33;continue;}if(aa===(514)){$s=34;continue;}if(aa===(1)){$s=35;continue;}if(aa===(198403)){$s=36;continue;}if(aa===(281349)){$s=37;continue;}if(aa===(365829)){$s=38;continue;}if(aa===(208901)){$s=39;continue;}if(aa===(9989)){$s=40;continue;}if(aa===(52226)){$s=41;continue;}if((aa===(87554))||(aa===(37378))){$s=42;continue;}if(aa===(461571)){$s=43;continue;}if(aa===(40708)){$s=44;continue;}if(aa===(16132)){$s=45;continue;}if(aa===(29191)){$s=46;continue;}if(aa===(47363)){$s=47;continue;}if(aa===(459783)){$s=48;continue;}$s=49;continue;case 21:if(""===y){$s=-1;return;}ab=B.ReplaceAll(y,"\xE2\x80\xB8","");ab=B.ReplaceAll(ab,"\t","    ");if((!c.isInline(a.PrevSibling))&&B.HasPrefix(ab,"    ")){$s=51;continue;}$s=52;continue;case 51:z.Type=11;z.IsFencedCodeBlock=true;z.AppendChild(new D.Node.ptr("","","",12,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes("```"))),"","",false,false,false,0,false,0,3,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));z.AppendChild(new D.Node.ptr("","","",14,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));ac=B.HasPrefix(y,"\xE2\x80\xB8");if(ac){y=B.ReplaceAll(y,"\xE2\x80\xB8","");}ad=B.TrimSpace(y);$s=53;case 53:if($c){$c=false;ad=ad.$blk();}if(ad&&ad.$blk!==undefined){break s;}y=ad;if(ac){y="\xE2\x80\xB8"+y;}ae=new D.Node.ptr("","","",15,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(y))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false);z.AppendChild(ae);z.AppendChild(new D.Node.ptr("","","",13,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes("```"))),"","",false,false,false,0,false,0,3,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));b.Context.Tip.AppendChild(z);$s=-1;return;case 52:if(!(AD.nil===a.Parent)&&(1===a.Parent.DataAtom)){z.Type=40;}b.Context.Tip.AppendChild(z);$s=50;continue;case 22:z.Type=1;b.Context.Tip.AppendChild(z);b.Context.Tip=z;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=50;continue;case 23:af=B.TrimSpace(c.domText(a));$s=56;case 56:if($c){$c=false;af=af.$blk();}if(af&&af.$blk!==undefined){break s;}if(""===af){$s=54;continue;}$s=55;continue;case 54:$s=-1;return;case 55:z.Type=2;z.HeadingLevel=((((ag=z.Tokens,(1>=ag.$length?($throwRuntimeError("index out of range"),undefined):ag.$array[ag.$offset+1]))-48<<24>>>24)>>0));ah=c.domAttrValue(a,"data-marker");ai=c.domAttrValue(a,"data-id");if(!(""===ai)){a.LastChild.InsertAfter(new E.Node.ptr(AD.nil,AD.nil,AD.nil,AD.nil,AD.nil,1,0," {"+ai+"}","",AQ.nil));}z.HeadingSetext="="===ah||"-"===ah;if(!z.HeadingSetext){aj=new D.Node.ptr("","","",3,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false);aj.Tokens=(new AC($stringToBytes(B.Repeat("#",z.HeadingLevel))));z.AppendChild(aj);}b.Context.Tip.AppendChild(z);b.Context.Tip=z;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=50;continue;case 24:z.Type=4;b.Context.Tip.AppendChild(z);$s=50;continue;case 25:ak=B.TrimSpace(c.domText(a));$s=57;case 57:if($c){$c=false;ak=ak.$blk();}if(ak&&ak.$blk!==undefined){break s;}al=ak;if(""===al||"&gt;"===al||"\xE2\x80\xB8"===al){$s=-1;return;}z.Type=5;z.AppendChild(new D.Node.ptr("","","",6,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(">"))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));b.Context.Tip.AppendChild(z);b.Context.Tip=z;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=50;continue;case 26:if(AD.nil===a.FirstChild){$s=-1;return;}z.Type=7;z.ListData=new D.ListData.ptr(0,false,0,0,0,0,0,false,AC.nil,0);if(79618===a.DataAtom){z.ListData.Typ=1;}am=c.domAttrValue(a,"data-tight");if("true"===am||""===am){z.ListData.Tight=true;}b.Context.Tip.AppendChild(z);b.Context.Tip=z;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=50;continue;case 27:z.Type=8;an=c.domAttrValue(a,"data-marker");ao=0;if(""===an){if(!(AD.nil===a.Parent)&&(79618===a.Parent.DataAtom)){ap=c.domAttrValue(a.Parent.FirstChild,"data-marker");aq=c.domAttrValue(a.Parent,"start");if(""===aq){an="1";}else{an=aq;}if(!(""===ap)){an=an+($substring(ap,(ap.length-1>>0)));}else{an=an+(".");}}else{an=c.domAttrValue(a.Parent,"data-marker");if(""===an){an="*";}ao=an.charCodeAt(0);}}else{if(!(AD.nil===a.Parent)){if(79618===a.Parent.DataAtom){if("*"===an||"-"===an||"+"===an){an="1.";}if(!("1."===an)&&!("1)"===an)&&!(AD.nil===a.PrevSibling)&&!((45570===a.PrevSibling.DataAtom))&&!(AD.nil===a.Parent.Parent)&&((79618===a.Parent.Parent.DataAtom)||(42754===a.Parent.Parent.DataAtom))){an="1.";}if(!("1."===an)&&!("1)"===an)&&(79618===a.Parent.DataAtom)&&a.Parent.FirstChild===a&&""===c.domAttrValue(a.Parent,"start")){an="1.";}}else{if(!("*"===an)&&!("-"===an)&&!("+"===an)){an="*";}ao=an.charCodeAt(0);}}else{an=c.domAttrValue(a,"data-marker");if(""===an){an="*";}ao=an.charCodeAt(0);}}z.ListData=new D.ListData.ptr(0,false,ao,0,0,0,0,false,(new AC($stringToBytes(an))),0);if(0===ao){ar=N.Atoi(($encodeRune(an.charCodeAt(0))));z.ListData.Num=ar[0];z.ListData.Delimiter=an.charCodeAt((an.length-1>>0));}b.Context.Tip.AppendChild(z);b.Context.Tip=z;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=50;continue;case 28:if(378116===a.FirstChild.DataAtom){as=c.domAttrValue(a.Parent,"data-marker");if(""===as){as="```";}at=AC.nil;if(!(AD.nil===a.FirstChild.FirstChild)){at=(new AC($stringToBytes(a.FirstChild.FirstChild.Data)));}au=c.domAttrValue(a.Parent,"data-type");av=au;if(av===("math-block")){z.Type=300;z.AppendChild(new D.Node.ptr("","","",301,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));z.AppendChild(new D.Node.ptr("","","",302,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,at,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));z.AppendChild(new D.Node.ptr("","","",303,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));b.Context.Tip.AppendChild(z);}else if(av===("yaml-front-matter")){z.Type=425;z.AppendChild(new D.Node.ptr("","","",426,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));z.AppendChild(new D.Node.ptr("","","",427,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,at,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));z.AppendChild(new D.Node.ptr("","","",428,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));b.Context.Tip.AppendChild(z);}else if(av===("html-block")){z.Type=9;z.Tokens=at;b.Context.Tip.AppendChild(z);}else{z.Type=11;z.IsFencedCodeBlock=true;z.AppendChild(new D.Node.ptr("","","",12,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(as))),"","",false,false,false,0,false,0,as.length,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));z.AppendChild(new D.Node.ptr("","","",14,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));aw=c.domAttrValue(a.FirstChild,"class");if(B.Contains(aw,"language-")){ax=$substring(aw,9);z.LastChild.CodeBlockInfo=(new AC($stringToBytes(ax)));}ay=new D.Node.ptr("","","",15,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,at,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false);z.AppendChild(ay);z.AppendChild(new D.Node.ptr("","","",13,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(as))),"","",false,false,false,0,false,0,as.length,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));b.Context.Tip.AppendChild(z);}}$s=-1;return;case 29:if(AD.nil===a.FirstChild||(514===a.FirstChild.DataAtom)){$s=-1;return;}if(c.startsWithNewline(a.FirstChild)){$s=58;continue;}$s=59;continue;case 58:az=B.TrimLeft(a.FirstChild.Data,"\xE2\x80\x8B\n");$s=60;case 60:if($c){$c=false;az=az.$blk();}if(az&&az.$blk!==undefined){break s;}a.FirstChild.Data=az;b.Context.Tip.AppendChild(new D.Node.ptr("","","",16,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes("\xE2\x80\x8B\n"))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));case 59:ba=B.TrimSpace(c.domText(a));$s=61;case 61:if($c){$c=false;ba=ba.$blk();}if(ba&&ba.$blk!==undefined){break s;}bb=ba;bc=c.isEmptyText(a);$s=64;case 64:if($c){$c=false;bc=bc.$blk();}if(bc&&bc.$blk!==undefined){break s;}if(bc){$s=62;continue;}$s=63;continue;case 62:$s=-1;return;case 63:if("\xE2\x80\xB8"===bb){z.Tokens=I.CaretTokens;b.Context.Tip.AppendChild(z);$s=-1;return;}z.Type=17;bd=c.domAttrValue(a,"data-marker");if(""===bd){bd="*";}if("_"===bd){z.AppendChild(new D.Node.ptr("","","",20,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(bd))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}else{z.AppendChild(new D.Node.ptr("","","",18,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(bd))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}b.Context.Tip.AppendChild(z);if(!(AD.nil===a.FirstChild)&&"\xE2\x80\xB8"===a.FirstChild.Data&&!(AD.nil===a.LastChild)&&"br"===a.LastChild.Data){z.AppendChild(new D.Node.ptr("","","",16,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,I.CaretTokens,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));if("_"===bd){z.AppendChild(new D.Node.ptr("","","",21,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(bd))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}else{z.AppendChild(new D.Node.ptr("","","",19,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(bd))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}$s=-1;return;}a.FirstChild.Data=B.ReplaceAll(a.FirstChild.Data,"\xE2\x80\x8B","");if(B.HasPrefix(a.FirstChild.Data," ")&&AD.nil===a.FirstChild.PrevSibling){$s=65;continue;}$s=66;continue;case 65:be=B.TrimLeft(a.FirstChild.Data," ");$s=67;case 67:if($c){$c=false;be=be.$blk();}if(be&&be.$blk!==undefined){break s;}a.FirstChild.Data=be;z.InsertBefore(new D.Node.ptr("","","",16,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(" "))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));case 66:if(B.HasSuffix(a.FirstChild.Data," ")&&AD.nil===a.FirstChild.NextSibling){$s=68;continue;}$s=69;continue;case 68:bf=B.TrimRight(a.FirstChild.Data," ");$s=70;case 70:if($c){$c=false;bf=bf.$blk();}if(bf&&bf.$blk!==undefined){break s;}a.FirstChild.Data=bf;a.InsertAfter(new E.Node.ptr(AD.nil,AD.nil,AD.nil,AD.nil,AD.nil,1,0," ","",AQ.nil));case 69:if(B.HasSuffix(a.FirstChild.Data,"\n")&&AD.nil===a.FirstChild.NextSibling){$s=71;continue;}$s=72;continue;case 71:bg=B.TrimRight(a.FirstChild.Data,"\n");$s=73;case 73:if($c){$c=false;bg=bg.$blk();}if(bg&&bg.$blk!==undefined){break s;}a.FirstChild.Data=bg;a.InsertAfter(new E.Node.ptr(AD.nil,AD.nil,AD.nil,AD.nil,AD.nil,1,0,"\n","",AQ.nil));case 72:b.Context.Tip=z;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=50;continue;case 30:if(AD.nil===a.FirstChild||(514===a.FirstChild.DataAtom)){$s=-1;return;}if(c.startsWithNewline(a.FirstChild)){$s=74;continue;}$s=75;continue;case 74:bh=B.TrimLeft(a.FirstChild.Data,"\xE2\x80\x8B\n");$s=76;case 76:if($c){$c=false;bh=bh.$blk();}if(bh&&bh.$blk!==undefined){break s;}a.FirstChild.Data=bh;b.Context.Tip.AppendChild(new D.Node.ptr("","","",16,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes("\xE2\x80\x8B\n"))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));case 75:bi=B.TrimSpace(c.domText(a));$s=77;case 77:if($c){$c=false;bi=bi.$blk();}if(bi&&bi.$blk!==undefined){break s;}bj=bi;bk=c.isEmptyText(a);$s=80;case 80:if($c){$c=false;bk=bk.$blk();}if(bk&&bk.$blk!==undefined){break s;}if(bk){$s=78;continue;}$s=79;continue;case 78:$s=-1;return;case 79:if("\xE2\x80\xB8"===bj){z.Tokens=I.CaretTokens;b.Context.Tip.AppendChild(z);$s=-1;return;}z.Type=22;bl=c.domAttrValue(a,"data-marker");if(""===bl){bl="**";}if("__"===bl){z.AppendChild(new D.Node.ptr("","","",25,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(bl))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}else{z.AppendChild(new D.Node.ptr("","","",23,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(bl))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}b.Context.Tip.AppendChild(z);if(!(AD.nil===a.FirstChild)&&"\xE2\x80\xB8"===a.FirstChild.Data&&!(AD.nil===a.LastChild)&&"br"===a.LastChild.Data){z.AppendChild(new D.Node.ptr("","","",16,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,I.CaretTokens,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));if("__"===bl){z.AppendChild(new D.Node.ptr("","","",26,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(bl))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}else{z.AppendChild(new D.Node.ptr("","","",24,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(bl))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}$s=-1;return;}a.FirstChild.Data=B.ReplaceAll(a.FirstChild.Data,"\xE2\x80\x8B","");if(B.HasPrefix(a.FirstChild.Data," ")&&AD.nil===a.FirstChild.PrevSibling){$s=81;continue;}$s=82;continue;case 81:bm=B.TrimLeft(a.FirstChild.Data," ");$s=83;case 83:if($c){$c=false;bm=bm.$blk();}if(bm&&bm.$blk!==undefined){break s;}a.FirstChild.Data=bm;z.InsertBefore(new D.Node.ptr("","","",16,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(" "))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));case 82:if(B.HasSuffix(a.FirstChild.Data," ")&&AD.nil===a.FirstChild.NextSibling){$s=84;continue;}$s=85;continue;case 84:bn=B.TrimRight(a.FirstChild.Data," ");$s=86;case 86:if($c){$c=false;bn=bn.$blk();}if(bn&&bn.$blk!==undefined){break s;}a.FirstChild.Data=bn;a.InsertAfter(new E.Node.ptr(AD.nil,AD.nil,AD.nil,AD.nil,AD.nil,1,0," ","",AQ.nil));case 85:if(B.HasSuffix(a.FirstChild.Data,"\n")&&AD.nil===a.FirstChild.NextSibling){$s=87;continue;}$s=88;continue;case 87:bo=B.TrimRight(a.FirstChild.Data,"\n");$s=89;case 89:if($c){$c=false;bo=bo.$blk();}if(bo&&bo.$blk!==undefined){break s;}a.FirstChild.Data=bo;a.InsertAfter(new E.Node.ptr(AD.nil,AD.nil,AD.nil,AD.nil,AD.nil,1,0,"\n","",AQ.nil));case 88:b.Context.Tip=z;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=50;continue;case 31:if(AD.nil===a.FirstChild||(514===a.FirstChild.DataAtom)){$s=-1;return;}if(c.startsWithNewline(a.FirstChild)){$s=90;continue;}$s=91;continue;case 90:bp=B.TrimLeft(a.FirstChild.Data,"\xE2\x80\x8B\n");$s=92;case 92:if($c){$c=false;bp=bp.$blk();}if(bp&&bp.$blk!==undefined){break s;}a.FirstChild.Data=bp;b.Context.Tip.AppendChild(new D.Node.ptr("","","",16,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes("\xE2\x80\x8B\n"))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));case 91:bq=B.TrimSpace(c.domText(a));$s=93;case 93:if($c){$c=false;bq=bq.$blk();}if(bq&&bq.$blk!==undefined){break s;}br=bq;bs=c.isEmptyText(a);$s=96;case 96:if($c){$c=false;bs=bs.$blk();}if(bs&&bs.$blk!==undefined){break s;}if(bs){$s=94;continue;}$s=95;continue;case 94:$s=-1;return;case 95:if("\xE2\x80\xB8"===br){z.Tokens=I.CaretTokens;b.Context.Tip.AppendChild(z);$s=-1;return;}z.Type=101;bt=c.domAttrValue(a,"data-marker");if("~"===bt){z.AppendChild(new D.Node.ptr("","","",102,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(bt))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}else{z.AppendChild(new D.Node.ptr("","","",104,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(bt))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}b.Context.Tip.AppendChild(z);if(!(AD.nil===a.FirstChild)&&"\xE2\x80\xB8"===a.FirstChild.Data&&!(AD.nil===a.LastChild)&&"br"===a.LastChild.Data){z.AppendChild(new D.Node.ptr("","","",16,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,I.CaretTokens,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));if("~"===bt){z.AppendChild(new D.Node.ptr("","","",103,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(bt))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}else{z.AppendChild(new D.Node.ptr("","","",105,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(bt))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}$s=-1;return;}a.FirstChild.Data=B.ReplaceAll(a.FirstChild.Data,"\xE2\x80\x8B","");if(B.HasPrefix(a.FirstChild.Data," ")&&AD.nil===a.FirstChild.PrevSibling){$s=97;continue;}$s=98;continue;case 97:bu=B.TrimLeft(a.FirstChild.Data," ");$s=99;case 99:if($c){$c=false;bu=bu.$blk();}if(bu&&bu.$blk!==undefined){break s;}a.FirstChild.Data=bu;z.InsertBefore(new D.Node.ptr("","","",16,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(" "))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));case 98:if(B.HasSuffix(a.FirstChild.Data," ")&&AD.nil===a.FirstChild.NextSibling){$s=100;continue;}$s=101;continue;case 100:bv=B.TrimRight(a.FirstChild.Data," ");$s=102;case 102:if($c){$c=false;bv=bv.$blk();}if(bv&&bv.$blk!==undefined){break s;}a.FirstChild.Data=bv;a.InsertAfter(new E.Node.ptr(AD.nil,AD.nil,AD.nil,AD.nil,AD.nil,1,0," ","",AQ.nil));case 101:if(B.HasSuffix(a.FirstChild.Data,"\n")&&AD.nil===a.FirstChild.NextSibling){$s=103;continue;}$s=104;continue;case 103:bw=B.TrimRight(a.FirstChild.Data,"\n");$s=105;case 105:if($c){$c=false;bw=bw.$blk();}if(bw&&bw.$blk!==undefined){break s;}a.FirstChild.Data=bw;a.InsertAfter(new E.Node.ptr(AD.nil,AD.nil,AD.nil,AD.nil,AD.nil,1,0,"\n","",AQ.nil));case 104:b.Context.Tip=z;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=50;continue;case 32:if(AD.nil===a.FirstChild||(514===a.FirstChild.DataAtom)){$s=-1;return;}if(c.startsWithNewline(a.FirstChild)){$s=106;continue;}$s=107;continue;case 106:bx=B.TrimLeft(a.FirstChild.Data,"\xE2\x80\x8B\n");$s=108;case 108:if($c){$c=false;bx=bx.$blk();}if(bx&&bx.$blk!==undefined){break s;}a.FirstChild.Data=bx;b.Context.Tip.AppendChild(new D.Node.ptr("","","",16,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes("\xE2\x80\x8B\n"))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));case 107:by=B.TrimSpace(c.domText(a));$s=109;case 109:if($c){$c=false;by=by.$blk();}if(by&&by.$blk!==undefined){break s;}bz=by;ca=c.isEmptyText(a);$s=112;case 112:if($c){$c=false;ca=ca.$blk();}if(ca&&ca.$blk!==undefined){break s;}if(ca){$s=110;continue;}$s=111;continue;case 110:$s=-1;return;case 111:if("\xE2\x80\xB8"===bz){z.Tokens=I.CaretTokens;b.Context.Tip.AppendChild(z);$s=-1;return;}z.Type=450;cb=c.domAttrValue(a,"data-marker");if("="===cb){z.AppendChild(new D.Node.ptr("","","",451,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(cb))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}else{z.AppendChild(new D.Node.ptr("","","",453,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(cb))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}b.Context.Tip.AppendChild(z);if(!(AD.nil===a.FirstChild)&&"\xE2\x80\xB8"===a.FirstChild.Data&&!(AD.nil===a.LastChild)&&"br"===a.LastChild.Data){z.AppendChild(new D.Node.ptr("","","",16,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,I.CaretTokens,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));if("="===cb){z.AppendChild(new D.Node.ptr("","","",452,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(cb))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}else{z.AppendChild(new D.Node.ptr("","","",454,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(cb))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}$s=-1;return;}a.FirstChild.Data=B.ReplaceAll(a.FirstChild.Data,"\xE2\x80\x8B","");if(B.HasPrefix(a.FirstChild.Data," ")&&AD.nil===a.FirstChild.PrevSibling){$s=113;continue;}$s=114;continue;case 113:cc=B.TrimLeft(a.FirstChild.Data," ");$s=115;case 115:if($c){$c=false;cc=cc.$blk();}if(cc&&cc.$blk!==undefined){break s;}a.FirstChild.Data=cc;z.InsertBefore(new D.Node.ptr("","","",16,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(" "))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));case 114:if(B.HasSuffix(a.FirstChild.Data," ")&&AD.nil===a.FirstChild.NextSibling){$s=116;continue;}$s=117;continue;case 116:cd=B.TrimRight(a.FirstChild.Data," ");$s=118;case 118:if($c){$c=false;cd=cd.$blk();}if(cd&&cd.$blk!==undefined){break s;}a.FirstChild.Data=cd;a.InsertAfter(new E.Node.ptr(AD.nil,AD.nil,AD.nil,AD.nil,AD.nil,1,0," ","",AQ.nil));case 117:if(B.HasSuffix(a.FirstChild.Data,"\n")&&AD.nil===a.FirstChild.NextSibling){$s=119;continue;}$s=120;continue;case 119:ce=B.TrimRight(a.FirstChild.Data,"\n");$s=121;case 121:if($c){$c=false;ce=ce.$blk();}if(ce&&ce.$blk!==undefined){break s;}a.FirstChild.Data=ce;a.InsertAfter(new E.Node.ptr(AD.nil,AD.nil,AD.nil,AD.nil,AD.nil,1,0,"\n","",AQ.nil));case 120:b.Context.Tip=z;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=50;continue;case 33:if(AD.nil===a.FirstChild){$s=-1;return;}cf=B.ReplaceAll(a.FirstChild.Data,"\xE2\x80\x8B","");if("\xE2\x80\xB8"===cf){z.Tokens=I.CaretTokens;b.Context.Tip.AppendChild(z);$s=-1;return;}if(""===cf){$s=-1;return;}cg=(new AC($stringToBytes(cf)));if("html-inline"===e){z.Type=10;z.Tokens=cg;b.Context.Tip.AppendChild(z);$s=-1;return;}ch=c.domAttrValue(a,"data-marker");if(""===ch){ch="`";}if(A.HasPrefix(cg,(new AC($stringToBytes("`"))))){cg=$appendSlice((new AC($stringToBytes(" "))),cg);cg=$append(cg,32);}z.Type=27;z.CodeMarkerLen=ch.length;z.AppendChild(new D.Node.ptr("","","",28,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));z.AppendChild(new D.Node.ptr("","","",29,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,cg,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));z.AppendChild(new D.Node.ptr("","","",30,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));b.Context.Tip.AppendChild(z);$s=-1;return;case 34:if(!(AD.nil===a.Parent)){if(c.parentIs(a,new AO([37378,87554]))){if((AD.nil===a.PrevSibling||"\xE2\x80\xB8"===a.PrevSibling.Data)&&(AD.nil===a.NextSibling||"\xE2\x80\xB8"===a.NextSibling.Data)){$s=-1;return;}if(AD.nil===a.NextSibling){$s=-1;return;}z.Type=10;z.Tokens=(new AC($stringToBytes("<br />")));b.Context.Tip.AppendChild(z);$s=-1;return;}if(3073===a.Parent.DataAtom){if(!(AD.nil===a.Parent.NextSibling)&&((42754===a.Parent.NextSibling.DataAtom)||(79618===a.Parent.NextSibling.DataAtom)||(100106===a.Parent.NextSibling.DataAtom))){b.Context.Tip.AppendChild(new D.Node.ptr("","","",16,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes("\xE2\x80\x8B"))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));$s=-1;return;}if(!(AD.nil===a.Parent.Parent)&&!(AD.nil===a.Parent.Parent.NextSibling)&&(45570===a.Parent.Parent.NextSibling.DataAtom)){b.Context.Tip.AppendChild(new D.Node.ptr("","","",16,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes("\xE2\x80\x8B"))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));$s=-1;return;}}}z.Type=31;b.Context.Tip.AppendChild(z);b.Context.Tip=z;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=50;continue;case 35:if(a.FirstChild===AD.nil||(a.FirstChild.Type===1)){ci=c.domText(a);if(""===ci||"\xE2\x80\x8B"===ci){$s=-1;return;}}z.Type=33;z.AppendChild(new D.Node.ptr("","","",36,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));b.Context.Tip.AppendChild(z);b.Context.Tip=z;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=50;continue;case 36:cj=x;ck=c.domAttrValue(a,"alt");if("emoji"===cj){z.Type=200;cl=new D.Node.ptr("","","",202,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,b.EmojiImgTokens(ck,c.domAttrValue(a,"src")),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false);cl.AppendChild(new D.Node.ptr("","","",203,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(":"+ck+":"))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));z.AppendChild(cl);}else{if("link-ref"===e){z.Type=16;cm="!["+c.domAttrValue(a,"alt")+"]["+c.domAttrValue(a,"data-link-label")+"]";z.Tokens=(new AC($stringToBytes(cm)));b.Context.Tip.AppendChild(z);$s=-1;return;}z.Type=34;z.AppendChild(new D.Node.ptr("","","",35,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));z.AppendChild(new D.Node.ptr("","","",36,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));if(!(""===ck)){z.AppendChild(new D.Node.ptr("","","",40,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(ck))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}z.AppendChild(new D.Node.ptr("","","",37,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));z.AppendChild(new D.Node.ptr("","","",38,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));cn=c.domAttrValue(a,"src");if(!(""===c.RenderOptions.LinkBase)){cn=B.ReplaceAll(cn,c.RenderOptions.LinkBase,"");}if(!(""===c.RenderOptions.LinkPrefix)){cn=B.ReplaceAll(cn,c.RenderOptions.LinkPrefix,"");}z.AppendChild(new D.Node.ptr("","","",41,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(cn))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));co=c.domAttrValue(a,"title");if(!(""===co)){z.AppendChild(new D.Node.ptr("","","",43,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));z.AppendChild(new D.Node.ptr("","","",42,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(co))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}z.AppendChild(new D.Node.ptr("","","",39,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}b.Context.Tip.AppendChild(z);b.Context.Tip=z;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=50;continue;case 37:if(AD.nil===a.Parent||AD.nil===a.Parent.Parent||(!((3073===a.Parent.DataAtom))&&!((45570===a.Parent.DataAtom)))){$s=-1;return;}if(!(AD.nil===a.NextSibling)&&(40708===a.NextSibling.DataAtom)){$s=122;continue;}$s=123;continue;case 122:cp=B.TrimSpace(a.NextSibling.FirstChild.Data);$s=124;case 124:if($c){$c=false;cp=cp.$blk();}if(cp&&cp.$blk!==undefined){break s;}a.NextSibling.FirstChild.Data=cp;$s=20;continue;case 123:z.Type=100;z.TaskListItemChecked=c.hasAttr(a,"checked");b.Context.Tip.AppendChild(z);if(!(AE.nil===z.Parent.Parent)&&!(AK.nil===z.Parent.Parent.ListData)){z.Parent.Parent.ListData.Typ=3;}if(!(AE.nil===z.Parent.Parent.Parent)&&!(AK.nil===z.Parent.Parent.Parent.ListData)){z.Parent.Parent.Parent.ListData.Typ=3;}$s=50;continue;case 38:z.Type=106;cq=AL.nil;if(AD.nil===a.FirstChild||AD.nil===a.FirstChild.FirstChild||AD.nil===a.FirstChild.FirstChild.FirstChild){$s=-1;return;}cr=a.FirstChild.FirstChild.FirstChild;while(true){if(!(!(AD.nil===cr))){break;}cs=c.domAttrValue(cr,"align");ct=cs;if(ct===("left")){cq=$append(cq,1);}else if(ct===("center")){cq=$append(cq,2);}else if(ct===("right")){cq=$append(cq,3);}else{cq=$append(cq,0);}cr=cr.NextSibling;}z.TableAligns=cq;b.Context.Tip.AppendChild(z);b.Context.Tip=z;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=50;continue;case 39:z.Type=107;b.Context.Tip.AppendChild(z);b.Context.Tip=z;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=50;continue;case 40:$s=50;continue;case 41:z.Type=108;b.Context.Tip.AppendChild(z);b.Context.Tip=z;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=50;continue;case 42:z.Type=109;cu=c.domAttrValue(a,"align");cv=0;cw=cu;if(cw===("left")){cv=1;}else if(cw===("center")){cv=2;}else if(cw===("right")){cv=3;}else{cv=0;}z.TableCellAlign=cv;z.Tokens=AC.nil;b.Context.Tip.AppendChild(z);b.Context.Tip=z;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=50;continue;case 43:if(AD.nil===a.FirstChild){$s=20;continue;}if("footnotes-ref"===e){z.Type=16;z.Tokens=(new AC($stringToBytes("["+c.domAttrValue(a,"data-footnotes-label")+"]")));if(B.Contains(a.FirstChild.Data,"\xE2\x80\xB8")){z.Tokens=$appendSlice(z.Tokens,I.CaretTokens);}b.Context.Tip.AppendChild(z);}$s=-1;return;case 44:if(AD.nil===a.FirstChild){$s=20;continue;}if(B.Contains(x,"vditor-comment")){z.Type=10;cx=new A.Buffer.ptr(AC.nil,0,0);cx.WriteString("<span ");cy=a.Attr;cz=0;while(true){if(!(cz<cy.$length)){break;}da=cz;db=((cz<0||cz>=cy.$length)?($throwRuntimeError("index out of range"),undefined):cy.$array[cy.$offset+cz]);cx.WriteString(db.Key);if(!(""===db.Val)){cx.WriteString("=\"");cx.WriteString(db.Val);cx.WriteString("\"");}if(da<(a.Attr.$length-1>>0)){cx.WriteString(" ");}cz++;}cx.WriteString(">");z.Tokens=cx.Bytes();b.Context.Tip.AppendChild(z);$s=20;continue;}if("link-ref"===e){z.Type=16;dc="["+a.FirstChild.Data+"]["+c.domAttrValue(a,"data-link-label")+"]";if(!(AD.nil===a.NextSibling)&&"2"===c.domAttrValue(a.NextSibling,"data-render")){dc="!"+dc;}z.Tokens=(new AC($stringToBytes(dc)));b.Context.Tip.AppendChild(z);$s=-1;return;}dd=AC.nil;if("\xE2\x80\x8B"===a.FirstChild.Data&&""===c.domAttrValue(a,"style")&&!(AD.nil===a.FirstChild.NextSibling)){dd=(new AC($stringToBytes(a.FirstChild.NextSibling.FirstChild.Data)));}else if(378116===a.FirstChild.DataAtom){dd=(new AC($stringToBytes(a.FirstChild.FirstChild.Data)));if("\xE2\x80\x8B"===($bytesToString(dd))){$s=20;continue;}}if("math-inline"===e){z.Type=304;z.AppendChild(new D.Node.ptr("","","",305,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));z.AppendChild(new D.Node.ptr("","","",306,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,dd,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));z.AppendChild(new D.Node.ptr("","","",307,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));b.Context.Tip.AppendChild(z);$s=-1;return;}else if("html-inline"===e){z.Type=10;z.Tokens=dd;b.Context.Tip.AppendChild(z);$s=-1;return;}else if("code-inline"===e){z.Tokens=dd;b.Context.Tip.AppendChild(z);$s=-1;return;}else if("html-entity"===e){z.Type=16;z.Tokens=dd;b.Context.Tip.AppendChild(z);$s=-1;return;}$s=20;continue;$s=50;continue;case 45:z.Type=16;z.Tokens=(new AC($stringToBytes(c.domText(a))));b.Context.Tip.AppendChild(z);$s=-1;return;case 46:z.Type=9;de=c.domHTML(a);$s=125;case 125:if($c){$c=false;de=de.$blk();}if(de&&de.$blk!==undefined){break s;}z.Tokens=de;z.Tokens=(df=A.SplitAfter(z.Tokens,(new AC($stringToBytes("</summary>")))),(0>=df.$length?($throwRuntimeError("index out of range"),undefined):df.$array[df.$offset+0]));b.Context.Tip.AppendChild(z);$s=50;continue;case 47:z.Type=10;dg=c.domHTML(a);$s=126;case 126:if($c){$c=false;dg=dg.$blk();}if(dg&&dg.$blk!==undefined){break s;}z.Tokens=dg;b.Context.Tip.AppendChild(z);$s=-1;return;case 48:$s=-1;return;case 49:z.Type=9;dh=c.domHTML(a);$s=127;case 127:if($c){$c=false;dh=dh.$blk();}if(dh&&dh.$blk!==undefined){break s;}z.Tokens=dh;b.Context.Tip.AppendChild(z);$s=-1;return;case 50:case 20:di=a.FirstChild;case 128:if(!(!(di===AD.nil))){$s=129;continue;}$r=c.genASTByVditorDOM(di,b);$s=130;case 130:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}di=di.NextSibling;$s=128;continue;case 129:dj=a.DataAtom;if(dj===(40708)){if(B.Contains(x,"vditor-comment")){b.Context.Tip.AppendChild(new D.Node.ptr("","","",10,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes("</span>"))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}}else if((dj===(28162))||(dj===(1537))){dk=c.domAttrValue(a,"data-marker");if(""===dk){dk="*";}if("_"===dk){z.AppendChild(new D.Node.ptr("","","",21,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(dk))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}else{z.AppendChild(new D.Node.ptr("","","",19,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(dk))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}}else if((dj===(449798))||(dj===(257))){dl=c.domAttrValue(a,"data-marker");if(""===dl){dl="**";}if("__"===dl){z.AppendChild(new D.Node.ptr("","","",26,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(dl))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}else{z.AppendChild(new D.Node.ptr("","","",24,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(dl))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}}else if(dj===(1)){z.AppendChild(new D.Node.ptr("","","",37,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));z.AppendChild(new D.Node.ptr("","","",38,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));dm=c.domAttrValue(a,"href");if(!(""===c.RenderOptions.LinkBase)){dm=B.ReplaceAll(dm,c.RenderOptions.LinkBase,"");}if(!(""===c.RenderOptions.LinkPrefix)){dm=B.ReplaceAll(dm,c.RenderOptions.LinkPrefix,"");}z.AppendChild(new D.Node.ptr("","","",41,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(dm))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));dn=c.domAttrValue(a,"title");if(!(""===dn)){z.AppendChild(new D.Node.ptr("","","",43,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));z.AppendChild(new D.Node.ptr("","","",42,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(dn))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}z.AppendChild(new D.Node.ptr("","","",39,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,AC.nil,"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}else if((dj===(283139))||(dj===(9473))||(dj===(53766))){dp=c.domAttrValue(a,"data-marker");if("~"===dp){z.AppendChild(new D.Node.ptr("","","",103,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(dp))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}else{z.AppendChild(new D.Node.ptr("","","",105,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(dp))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}}else if(dj===(46596)){dq=c.domAttrValue(a,"data-marker");if("="===dq){z.AppendChild(new D.Node.ptr("","","",452,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(dq))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}else{z.AppendChild(new D.Node.ptr("","","",454,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes(dq))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}}else if(dj===(29191)){b.Context.Tip.AppendChild(new D.Node.ptr("","","",9,AE.nil,AE.nil,AE.nil,AE.nil,AE.nil,AJ.nil,(new AC($stringToBytes("</details>"))),"","",false,false,false,0,false,0,0,0,AC.nil,AC.nil,AC.nil,0,AK.nil,false,AL.nil,0,0,0,0,AC.nil,0,false,"",0,AC.nil,"",AJ.nil,AC.nil,AM.nil,false));}$s=-1;return;}return;}}catch(err){$err=err;$s=-1;}finally{$callDeferred($deferred,$err);if($curGoroutine.asleep){if($f===undefined){$f={$blk:P.ptr.prototype.genASTByVditorDOM};}$f.a=a;$f.aa=aa;$f.ab=ab;$f.ac=ac;$f.ad=ad;$f.ae=ae;$f.af=af;$f.ag=ag;$f.ah=ah;$f.ai=ai;$f.aj=aj;$f.ak=ak;$f.al=al;$f.am=am;$f.an=an;$f.ao=ao;$f.ap=ap;$f.aq=aq;$f.ar=ar;$f.as=as;$f.at=at;$f.au=au;$f.av=av;$f.aw=aw;$f.ax=ax;$f.ay=ay;$f.az=az;$f.b=b;$f.ba=ba;$f.bb=bb;$f.bc=bc;$f.bd=bd;$f.be=be;$f.bf=bf;$f.bg=bg;$f.bh=bh;$f.bi=bi;$f.bj=bj;$f.bk=bk;$f.bl=bl;$f.bm=bm;$f.bn=bn;$f.bo=bo;$f.bp=bp;$f.bq=bq;$f.br=br;$f.bs=bs;$f.bt=bt;$f.bu=bu;$f.bv=bv;$f.bw=bw;$f.bx=bx;$f.by=by;$f.bz=bz;$f.c=c;$f.ca=ca;$f.cb=cb;$f.cc=cc;$f.cd=cd;$f.ce=ce;$f.cf=cf;$f.cg=cg;$f.ch=ch;$f.ci=ci;$f.cj=cj;$f.ck=ck;$f.cl=cl;$f.cm=cm;$f.cn=cn;$f.co=co;$f.cp=cp;$f.cq=cq;$f.cr=cr;$f.cs=cs;$f.ct=ct;$f.cu=cu;$f.cv=cv;$f.cw=cw;$f.cx=cx;$f.cy=cy;$f.cz=cz;$f.d=d;$f.da=da;$f.db=db;$f.dc=dc;$f.dd=dd;$f.de=de;$f.df=df;$f.dg=dg;$f.dh=dh;$f.di=di;$f.dj=dj;$f.dk=dk;$f.dl=dl;$f.dm=dm;$f.dn=dn;$f.dp=dp;$f.dq=dq;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.k=k;$f.l=l;$f.m=m;$f.n=n;$f.o=o;$f.p=p;$f.q=q;$f.r=r;$f.s=s;$f.t=t;$f.u=u;$f.v=v;$f.w=w;$f.x=x;$f.y=y;$f.z=z;$f.$s=$s;$f.$deferred=$deferred;$f.$r=$r;return $f;}}};P.prototype.genASTByVditorDOM=function(a,b){return this.$val.genASTByVditorDOM(a,b);};P.ptr.prototype.hasAttr=function(a,b){var a,b,c,d,e,f;c=this;d=a.Attr;e=0;while(true){if(!(e<d.$length)){break;}f=((e<0||e>=d.$length)?($throwRuntimeError("index out of range"),undefined):d.$array[d.$offset+e]);if(f.Key===b){return true;}e++;}return false;};P.prototype.hasAttr=function(a,b){return this.$val.hasAttr(a,b);};P.ptr.prototype.domAttrValue=function(a,b){var a,b,c,d,e,f;c=this;if(AD.nil===a){return"";}d=a.Attr;e=0;while(true){if(!(e<d.$length)){break;}f=((e<0||e>=d.$length)?($throwRuntimeError("index out of range"),undefined):d.$array[d.$offset+e]);if(f.Key===b){return f.Val;}e++;}return"";};P.prototype.domAttrValue=function(a,b){return this.$val.domAttrValue(a,b);};P.ptr.prototype.domCustomAttrs=function(a){var a,b,c,d,e,f,g;b=false;c=this;b=$makeMap($String.keyFor,[]);d=a.Attr;e=0;while(true){if(!(e<d.$length)){break;}f=((e<0||e>=d.$length)?($throwRuntimeError("index out of range"),undefined):d.$array[d.$offset+e]);if(B.HasPrefix(f.Key,"custom-")){g=f.Key;(b||$throwRuntimeError("assignment to entry in nil map"))[$String.keyFor(g)]={k:g,v:f.Val};}e++;}if(1>$keys(b).length){b=false;return b;}return b;};P.prototype.domCustomAttrs=function(a){return this.$val.domCustomAttrs(a);};P.ptr.prototype.domChild=function(a,b){var a,b,c,d,e;c=this;if(AD.nil===a){return AD.nil;}d=a.FirstChild;while(true){if(!(!(AD.nil===d))){break;}e=c.domChild0(d,b);if(!(AD.nil===e)){return e;}d=d.NextSibling;}return AD.nil;};P.prototype.domChild=function(a,b){return this.$val.domChild(a,b);};P.ptr.prototype.domChild0=function(a,b){var a,b,c,d,e;c=this;if(a.DataAtom===b){return a;}d=a.FirstChild;while(true){if(!(!(AD.nil===d))){break;}e=c.domChild0(d,b);if(!(AD.nil===e)){return e;}d=d.NextSibling;}return AD.nil;};P.prototype.domChild0=function(a,b){return this.$val.domChild0(a,b);};P.ptr.prototype.setDOMAttrValue=function(a,b,c){var a,b,c,d,e,f,g;d=this;if(AD.nil===a){return;}e=a.Attr;f=0;while(true){if(!(f<e.$length)){break;}g=((f<0||f>=e.$length)?($throwRuntimeError("index out of range"),undefined):e.$array[e.$offset+f]);if(g.Key===b){g.Val=c;return;}f++;}a.Attr=$append(a.Attr,new E.Attribute.ptr("",b,c));};P.prototype.setDOMAttrValue=function(a,b,c){return this.$val.setDOMAttrValue(a,b,c);};P.ptr.prototype.parentIs=function(a,b){var a,b,c,d,e,f,g;c=this;d=a.Parent;while(true){if(!(!(AD.nil===d))){break;}e=b;f=0;while(true){if(!(f<e.$length)){break;}g=((f<0||f>=e.$length)?($throwRuntimeError("index out of range"),undefined):e.$array[e.$offset+f]);if(g===d.DataAtom){return true;}f++;}d=d.Parent;}return false;};P.prototype.parentIs=function(a,b){return this.$val.parentIs(a,b);};P.ptr.prototype.domText=function(a){var a,b,c,d;b=this;c=new A.Buffer.ptr(AC.nil,0,0);if(1===a.Type){c.WriteString(a.Data);return c.String();}d=a.FirstChild;while(true){if(!(!(AD.nil===d))){break;}b.domText0(d,c);d=d.NextSibling;}return c.String();};P.prototype.domText=function(a){return this.$val.domText(a);};P.ptr.prototype.domText0=function(a,b){var a,b,c,d,e,f;c=this;if(AD.nil===a){return;}d=c.domAttrValue(a,"data-render");if("1"===d||"2"===d){return;}if("svg"===a.Namespace){return;}if((0===a.DataAtom)&&(3===a.Type)){return;}e=a.DataAtom;if(e===(0)){b.WriteString(a.Data);}else if(e===(514)){b.WriteString("\n");}f=a.FirstChild;while(true){if(!(!(AD.nil===f))){break;}c.domText0(f,b);f=f.NextSibling;}};P.prototype.domText0=function(a,b){return this.$val.domText0(a,b);};P.ptr.prototype.domHTML=function(a){var a,b,c,d,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b=this;if(AD.nil===a){$s=-1;return AC.nil;}c=new A.Buffer.ptr(AC.nil,0,0);d=E.Render(c,a);$s=1;case 1:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}d;$s=-1;return A.ReplaceAll(c.Bytes(),(new AC($stringToBytes("\xE2\x80\x8B"))),AC.nil);}return;}if($f===undefined){$f={$blk:P.ptr.prototype.domHTML};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.$s=$s;$f.$r=$r;return $f;};P.prototype.domHTML=function(a){return this.$val.domHTML(a);};P.ptr.prototype.isEmptyText=function(a){var a,b,c,d,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b=this;if(!(AD.nil===a.FirstChild)&&"block-ref"===b.domAttrValue(a.FirstChild,"data-type")){$s=-1;return false;}c=B.TrimSpace(b.domText(a));$s=1;case 1:if($c){$c=false;c=c.$blk();}if(c&&c.$blk!==undefined){break s;}d=c;if(""===d||"\xE2\x80\x8B"===d){$s=-1;return true;}if("\xE2\x80\x8B\xE2\x80\xB8"===d||"\xE2\x80\xB8\xE2\x80\x8B"===d){$s=-1;return true;}$s=-1;return false;}return;}if($f===undefined){$f={$blk:P.ptr.prototype.isEmptyText};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.$s=$s;$f.$r=$r;return $f;};P.prototype.isEmptyText=function(a){return this.$val.isEmptyText(a);};P.ptr.prototype.startsWithNewline=function(a){var a,b;b=this;return B.HasPrefix(a.Data,"\n")||B.HasPrefix(a.Data,"\xE2\x80\x8B\n");};P.prototype.startsWithNewline=function(a){return this.$val.startsWithNewline(a);};P.ptr.prototype.isInline=function(a){var a,b;b=this;if(AD.nil===a){return false;}return(0===a.DataAtom)||(378116===a.DataAtom)||(449798===a.DataAtom)||(257===a.DataAtom)||(28162===a.DataAtom)||(1537===a.DataAtom)||(46596===a.DataAtom)||(283139===a.DataAtom)||(9473===a.DataAtom)||(53766===a.DataAtom)||(1===a.DataAtom)||(198403===a.DataAtom)||(2817===a.DataAtom)||(47363===a.DataAtom)||(40708===a.DataAtom);};P.prototype.isInline=function(a){return this.$val.isInline(a);};AS.methods=[{prop:"HTML2Markdown",name:"HTML2Markdown",pkg:"",typ:$funcType([$String],[$String,$error],false)},{prop:"HTML2Tree",name:"HTML2Tree",pkg:"",typ:$funcType([$String],[AA],false)},{prop:"genASTByDOM",name:"genASTByDOM",pkg:"github.com/88250/lute",typ:$funcType([AD,AA],[],false)},{prop:"Markdown",name:"Markdown",pkg:"",typ:$funcType([$String,AC],[AC],false)},{prop:"MarkdownStr",name:"MarkdownStr",pkg:"",typ:$funcType([$String,$String],[$String],false)},{prop:"Format",name:"Format",pkg:"",typ:$funcType([$String,AC],[AC],false)},{prop:"FormatStr",name:"FormatStr",pkg:"",typ:$funcType([$String,$String],[$String],false)},{prop:"TextBundle",name:"TextBundle",pkg:"",typ:$funcType([$String,AC,AI],[AC,AI],false)},{prop:"TextBundleStr",name:"TextBundleStr",pkg:"",typ:$funcType([$String,$String,AI],[$String,AI],false)},{prop:"HTML2Text",name:"HTML2Text",pkg:"",typ:$funcType([$String],[$String],false)},{prop:"RenderJSON",name:"RenderJSON",pkg:"",typ:$funcType([$String],[$String],false)},{prop:"Space",name:"Space",pkg:"",typ:$funcType([$String],[$String],false)},{prop:"IsValidLinkDest",name:"IsValidLinkDest",pkg:"",typ:$funcType([$String],[$Bool],false)},{prop:"GetEmojis",name:"GetEmojis",pkg:"",typ:$funcType([],[BB],false)},{prop:"PutEmojis",name:"PutEmojis",pkg:"",typ:$funcType([BB],[],false)},{prop:"RemoveEmoji",name:"RemoveEmoji",pkg:"",typ:$funcType([$String],[$String],false)},{prop:"GetTerms",name:"GetTerms",pkg:"",typ:$funcType([],[BB],false)},{prop:"PutTerms",name:"PutTerms",pkg:"",typ:$funcType([BB],[],false)},{prop:"ProtylePreview",name:"ProtylePreview",pkg:"",typ:$funcType([AA,AB],[$String],false)},{prop:"Tree2HTML",name:"Tree2HTML",pkg:"",typ:$funcType([AA,AB],[$String],false)},{prop:"SetGFMTable",name:"SetGFMTable",pkg:"",typ:$funcType([$Bool],[],false)},{prop:"SetGFMTaskListItem",name:"SetGFMTaskListItem",pkg:"",typ:$funcType([$Bool],[],false)},{prop:"SetGFMTaskListItemClass",name:"SetGFMTaskListItemClass",pkg:"",typ:$funcType([$String],[],false)},{prop:"SetGFMStrikethrough",name:"SetGFMStrikethrough",pkg:"",typ:$funcType([$Bool],[],false)},{prop:"SetGFMAutoLink",name:"SetGFMAutoLink",pkg:"",typ:$funcType([$Bool],[],false)},{prop:"SetSoftBreak2HardBreak",name:"SetSoftBreak2HardBreak",pkg:"",typ:$funcType([$Bool],[],false)},{prop:"SetCodeSyntaxHighlight",name:"SetCodeSyntaxHighlight",pkg:"",typ:$funcType([$Bool],[],false)},{prop:"SetCodeSyntaxHighlightDetectLang",name:"SetCodeSyntaxHighlightDetectLang",pkg:"",typ:$funcType([$Bool],[],false)},{prop:"SetCodeSyntaxHighlightInlineStyle",name:"SetCodeSyntaxHighlightInlineStyle",pkg:"",typ:$funcType([$Bool],[],false)},{prop:"SetCodeSyntaxHighlightLineNum",name:"SetCodeSyntaxHighlightLineNum",pkg:"",typ:$funcType([$Bool],[],false)},{prop:"SetCodeSyntaxHighlightStyleName",name:"SetCodeSyntaxHighlightStyleName",pkg:"",typ:$funcType([$String],[],false)},{prop:"SetFootnotes",name:"SetFootnotes",pkg:"",typ:$funcType([$Bool],[],false)},{prop:"SetToC",name:"SetToC",pkg:"",typ:$funcType([$Bool],[],false)},{prop:"SetHeadingID",name:"SetHeadingID",pkg:"",typ:$funcType([$Bool],[],false)},{prop:"SetAutoSpace",name:"SetAutoSpace",pkg:"",typ:$funcType([$Bool],[],false)},{prop:"SetFixTermTypo",name:"SetFixTermTypo",pkg:"",typ:$funcType([$Bool],[],false)},{prop:"SetEmoji",name:"SetEmoji",pkg:"",typ:$funcType([$Bool],[],false)},{prop:"SetEmojis",name:"SetEmojis",pkg:"",typ:$funcType([BB],[],false)},{prop:"SetEmojiSite",name:"SetEmojiSite",pkg:"",typ:$funcType([$String],[],false)},{prop:"SetHeadingAnchor",name:"SetHeadingAnchor",pkg:"",typ:$funcType([$Bool],[],false)},{prop:"SetTerms",name:"SetTerms",pkg:"",typ:$funcType([BB],[],false)},{prop:"SetVditorWYSIWYG",name:"SetVditorWYSIWYG",pkg:"",typ:$funcType([$Bool],[],false)},{prop:"SetProtyleWYSIWYG",name:"SetProtyleWYSIWYG",pkg:"",typ:$funcType([$Bool],[],false)},{prop:"SetVditorIR",name:"SetVditorIR",pkg:"",typ:$funcType([$Bool],[],false)},{prop:"SetVditorSV",name:"SetVditorSV",pkg:"",typ:$funcType([$Bool],[],false)},{prop:"SetInlineMathAllowDigitAfterOpenMarker",name:"SetInlineMathAllowDigitAfterOpenMarker",pkg:"",typ:$funcType([$Bool],[],false)},{prop:"SetLinkPrefix",name:"SetLinkPrefix",pkg:"",typ:$funcType([$String],[],false)},{prop:"SetLinkBase",name:"SetLinkBase",pkg:"",typ:$funcType([$String],[],false)},{prop:"GetLinkBase",name:"GetLinkBase",pkg:"",typ:$funcType([],[$String],false)},{prop:"SetVditorCodeBlockPreview",name:"SetVditorCodeBlockPreview",pkg:"",typ:$funcType([$Bool],[],false)},{prop:"SetVditorMathBlockPreview",name:"SetVditorMathBlockPreview",pkg:"",typ:$funcType([$Bool],[],false)},{prop:"SetVditorHTMLBlockPreview",name:"SetVditorHTMLBlockPreview",pkg:"",typ:$funcType([$Bool],[],false)},{prop:"SetRenderListStyle",name:"SetRenderListStyle",pkg:"",typ:$funcType([$Bool],[],false)},{prop:"SetSanitize",name:"SetSanitize",pkg:"",typ:$funcType([$Bool],[],false)},{prop:"SetImageLazyLoading",name:"SetImageLazyLoading",pkg:"",typ:$funcType([$String],[],false)},{prop:"SetChineseParagraphBeginningSpace",name:"SetChineseParagraphBeginningSpace",pkg:"",typ:$funcType([$Bool],[],false)},{prop:"SetYamlFrontMatter",name:"SetYamlFrontMatter",pkg:"",typ:$funcType([$Bool],[],false)},{prop:"SetSetext",name:"SetSetext",pkg:"",typ:$funcType([$Bool],[],false)},{prop:"SetBlockRef",name:"SetBlockRef",pkg:"",typ:$funcType([$Bool],[],false)},{prop:"SetFileAnnotationRef",name:"SetFileAnnotationRef",pkg:"",typ:$funcType([$Bool],[],false)},{prop:"SetMark",name:"SetMark",pkg:"",typ:$funcType([$Bool],[],false)},{prop:"SetKramdownIAL",name:"SetKramdownIAL",pkg:"",typ:$funcType([$Bool],[],false)},{prop:"SetKramdownBlockIAL",name:"SetKramdownBlockIAL",pkg:"",typ:$funcType([$Bool],[],false)},{prop:"SetKramdownSpanIAL",name:"SetKramdownSpanIAL",pkg:"",typ:$funcType([$Bool],[],false)},{prop:"SetKramdownIALIDRenderName",name:"SetKramdownIALIDRenderName",pkg:"",typ:$funcType([$String],[],false)},{prop:"SetTag",name:"SetTag",pkg:"",typ:$funcType([$Bool],[],false)},{prop:"SetImgPathAllowSpace",name:"SetImgPathAllowSpace",pkg:"",typ:$funcType([$Bool],[],false)},{prop:"SetSuperBlock",name:"SetSuperBlock",pkg:"",typ:$funcType([$Bool],[],false)},{prop:"SetSup",name:"SetSup",pkg:"",typ:$funcType([$Bool],[],false)},{prop:"SetSub",name:"SetSub",pkg:"",typ:$funcType([$Bool],[],false)},{prop:"SetGitConflict",name:"SetGitConflict",pkg:"",typ:$funcType([$Bool],[],false)},{prop:"SetLinkRef",name:"SetLinkRef",pkg:"",typ:$funcType([$Bool],[],false)},{prop:"SetIndentCodeBlock",name:"SetIndentCodeBlock",pkg:"",typ:$funcType([$Bool],[],false)},{prop:"SetParagraphBeginningSpace",name:"SetParagraphBeginningSpace",pkg:"",typ:$funcType([$Bool],[],false)},{prop:"SetProtyleMarkNetImg",name:"SetProtyleMarkNetImg",pkg:"",typ:$funcType([$Bool],[],false)},{prop:"SetJSRenderers",name:"SetJSRenderers",pkg:"",typ:$funcType([BE],[],false)},{prop:"SpinBlockDOM",name:"SpinBlockDOM",pkg:"",typ:$funcType([$String],[$String],false)},{prop:"HTML2BlockDOM",name:"HTML2BlockDOM",pkg:"",typ:$funcType([$String],[$String],false)},{prop:"BlockDOM2HTML",name:"BlockDOM2HTML",pkg:"",typ:$funcType([$String],[$String],false)},{prop:"BlockDOM2InlineBlockDOM",name:"BlockDOM2InlineBlockDOM",pkg:"",typ:$funcType([$String],[$String],false)},{prop:"Md2BlockDOM",name:"Md2BlockDOM",pkg:"",typ:$funcType([$String],[$String],false)},{prop:"InlineMd2BlockDOM",name:"InlineMd2BlockDOM",pkg:"",typ:$funcType([$String],[$String],false)},{prop:"BlockDOM2Md",name:"BlockDOM2Md",pkg:"",typ:$funcType([$String],[$String],false)},{prop:"BlockDOM2StdMd",name:"BlockDOM2StdMd",pkg:"",typ:$funcType([$String],[$String],false)},{prop:"BlockDOM2Text",name:"BlockDOM2Text",pkg:"",typ:$funcType([$String],[$String],false)},{prop:"BlockDOM2TextLen",name:"BlockDOM2TextLen",pkg:"",typ:$funcType([$String],[$Int],false)},{prop:"Tree2BlockDOM",name:"Tree2BlockDOM",pkg:"",typ:$funcType([AA,AB],[$String],false)},{prop:"BlockDOM2Tree",name:"BlockDOM2Tree",pkg:"",typ:$funcType([$String],[AA],false)},{prop:"mergeSameSpan",name:"mergeSameSpan",pkg:"github.com/88250/lute",typ:$funcType([AE,D.NodeType],[],false)},{prop:"CancelSuperBlock",name:"CancelSuperBlock",pkg:"",typ:$funcType([$String],[$String],false)},{prop:"CancelList",name:"CancelList",pkg:"",typ:$funcType([$String],[$String],false)},{prop:"CancelBlockquote",name:"CancelBlockquote",pkg:"",typ:$funcType([$String],[$String],false)},{prop:"HLevel",name:"HLevel",pkg:"",typ:$funcType([$String,$String],[$String],false)},{prop:"H2P",name:"H2P",pkg:"",typ:$funcType([$String],[$String],false)},{prop:"P2H",name:"P2H",pkg:"",typ:$funcType([$String,$String],[$String],false)},{prop:"Blocks2Ps",name:"Blocks2Ps",pkg:"",typ:$funcType([$String],[$String],false)},{prop:"Blocks2Hs",name:"Blocks2Hs",pkg:"",typ:$funcType([$String,$String],[$String],false)},{prop:"OL2TL",name:"OL2TL",pkg:"",typ:$funcType([$String],[$String],false)},{prop:"UL2TL",name:"UL2TL",pkg:"",typ:$funcType([$String],[$String],false)},{prop:"TL2OL",name:"TL2OL",pkg:"",typ:$funcType([$String],[$String],false)},{prop:"TL2UL",name:"TL2UL",pkg:"",typ:$funcType([$String],[$String],false)},{prop:"OL2UL",name:"OL2UL",pkg:"",typ:$funcType([$String],[$String],false)},{prop:"UL2OL",name:"UL2OL",pkg:"",typ:$funcType([$String],[$String],false)},{prop:"blockDOM2Md",name:"blockDOM2Md",pkg:"github.com/88250/lute",typ:$funcType([$String],[$String],false)},{prop:"genASTByBlockDOM",name:"genASTByBlockDOM",pkg:"github.com/88250/lute",typ:$funcType([AD,AA],[],false)},{prop:"genASTContenteditable",name:"genASTContenteditable",pkg:"github.com/88250/lute",typ:$funcType([AD,AA],[],false)},{prop:"setSpanIAL",name:"setSpanIAL",pkg:"github.com/88250/lute",typ:$funcType([AD,AE],[],false)},{prop:"setBlockIAL",name:"setBlockIAL",pkg:"github.com/88250/lute",typ:$funcType([AD,AE],[AC],false)},{prop:"removeInnerMarker",name:"removeInnerMarker",pkg:"github.com/88250/lute",typ:$funcType([AD,$String],[],false)},{prop:"removeInnerMarker0",name:"removeInnerMarker0",pkg:"github.com/88250/lute",typ:$funcType([AD,$String],[],false)},{prop:"SpinVditorIRDOM",name:"SpinVditorIRDOM",pkg:"",typ:$funcType([$String],[$String],false)},{prop:"HTML2VditorIRDOM",name:"HTML2VditorIRDOM",pkg:"",typ:$funcType([$String],[$String],false)},{prop:"VditorIRDOM2HTML",name:"VditorIRDOM2HTML",pkg:"",typ:$funcType([$String],[$String],false)},{prop:"Md2VditorIRDOM",name:"Md2VditorIRDOM",pkg:"",typ:$funcType([$String],[$String],false)},{prop:"VditorIRDOM2Md",name:"VditorIRDOM2Md",pkg:"",typ:$funcType([$String],[$String],false)},{prop:"vditorIRDOM2Md",name:"vditorIRDOM2Md",pkg:"github.com/88250/lute",typ:$funcType([$String],[$String],false)},{prop:"genASTByVditorIRDOM",name:"genASTByVditorIRDOM",pkg:"github.com/88250/lute",typ:$funcType([AD,AA],[],false)},{prop:"SpinVditorSVDOM",name:"SpinVditorSVDOM",pkg:"",typ:$funcType([$String],[$String],false)},{prop:"HTML2VditorSVDOM",name:"HTML2VditorSVDOM",pkg:"",typ:$funcType([$String],[$String],false)},{prop:"Md2VditorSVDOM",name:"Md2VditorSVDOM",pkg:"",typ:$funcType([$String],[$String],false)},{prop:"Md2HTML",name:"Md2HTML",pkg:"",typ:$funcType([$String],[$String],false)},{prop:"SpinVditorDOM",name:"SpinVditorDOM",pkg:"",typ:$funcType([$String],[$String],false)},{prop:"HTML2VditorDOM",name:"HTML2VditorDOM",pkg:"",typ:$funcType([$String],[$String],false)},{prop:"VditorDOM2HTML",name:"VditorDOM2HTML",pkg:"",typ:$funcType([$String],[$String],false)},{prop:"Md2VditorDOM",name:"Md2VditorDOM",pkg:"",typ:$funcType([$String],[$String],false)},{prop:"VditorDOM2Md",name:"VditorDOM2Md",pkg:"",typ:$funcType([$String],[$String],false)},{prop:"RenderEChartsJSON",name:"RenderEChartsJSON",pkg:"",typ:$funcType([$String],[$String],false)},{prop:"RenderKityMinderJSON",name:"RenderKityMinderJSON",pkg:"",typ:$funcType([$String],[$String],false)},{prop:"HTML2Md",name:"HTML2Md",pkg:"",typ:$funcType([$String],[$String],false)},{prop:"vditorDOM2Md",name:"vditorDOM2Md",pkg:"github.com/88250/lute",typ:$funcType([$String],[$String],false)},{prop:"parseHTML",name:"parseHTML",pkg:"github.com/88250/lute",typ:$funcType([$String],[AD],false)},{prop:"adjustVditorDOM",name:"adjustVditorDOM",pkg:"github.com/88250/lute",typ:$funcType([AD],[],false)},{prop:"adjustVditorDOMListList",name:"adjustVditorDOMListList",pkg:"github.com/88250/lute",typ:$funcType([AD],[],false)},{prop:"removeHighlightJSSpans",name:"removeHighlightJSSpans",pkg:"github.com/88250/lute",typ:$funcType([AD],[],false)},{prop:"hljsSpans",name:"hljsSpans",pkg:"github.com/88250/lute",typ:$funcType([AD,BA],[],false)},{prop:"removeEmptyNodes",name:"removeEmptyNodes",pkg:"github.com/88250/lute",typ:$funcType([AD],[],false)},{prop:"searchEmptyNodes",name:"searchEmptyNodes",pkg:"github.com/88250/lute",typ:$funcType([AD,BA],[],false)},{prop:"mergeVditorDOMList0",name:"mergeVditorDOMList0",pkg:"github.com/88250/lute",typ:$funcType([AD],[],false)},{prop:"adjustVditorDOMListTight0",name:"adjustVditorDOMListTight0",pkg:"github.com/88250/lute",typ:$funcType([AD],[],false)},{prop:"adjustVditorDOMListItemInP",name:"adjustVditorDOMListItemInP",pkg:"github.com/88250/lute",typ:$funcType([AD],[],false)},{prop:"forwardNextBlock",name:"forwardNextBlock",pkg:"github.com/88250/lute",typ:$funcType([AD],[AZ,AD],false)},{prop:"listItemEnter",name:"listItemEnter",pkg:"github.com/88250/lute",typ:$funcType([AD],[$Bool],false)},{prop:"isTightList",name:"isTightList",pkg:"github.com/88250/lute",typ:$funcType([AD],[$String],false)},{prop:"genASTByVditorDOM",name:"genASTByVditorDOM",pkg:"github.com/88250/lute",typ:$funcType([AD,AA],[],false)},{prop:"hasAttr",name:"hasAttr",pkg:"github.com/88250/lute",typ:$funcType([AD,$String],[$Bool],false)},{prop:"domAttrValue",name:"domAttrValue",pkg:"github.com/88250/lute",typ:$funcType([AD,$String],[$String],false)},{prop:"domCustomAttrs",name:"domCustomAttrs",pkg:"github.com/88250/lute",typ:$funcType([AD],[BB],false)},{prop:"domChild",name:"domChild",pkg:"github.com/88250/lute",typ:$funcType([AD,F.Atom],[AD],false)},{prop:"domChild0",name:"domChild0",pkg:"github.com/88250/lute",typ:$funcType([AD,F.Atom],[AD],false)},{prop:"setDOMAttrValue",name:"setDOMAttrValue",pkg:"github.com/88250/lute",typ:$funcType([AD,$String,$String],[],false)},{prop:"removeDOMAttr",name:"removeDOMAttr",pkg:"github.com/88250/lute",typ:$funcType([AD,$String],[],false)},{prop:"domCode",name:"domCode",pkg:"github.com/88250/lute",typ:$funcType([AD],[$String],false)},{prop:"domCode0",name:"domCode0",pkg:"github.com/88250/lute",typ:$funcType([AD,AV],[],false)},{prop:"parentIs",name:"parentIs",pkg:"github.com/88250/lute",typ:$funcType([AD,AO],[$Bool],true)},{prop:"domText",name:"domText",pkg:"github.com/88250/lute",typ:$funcType([AD],[$String],false)},{prop:"domText0",name:"domText0",pkg:"github.com/88250/lute",typ:$funcType([AD,AV],[],false)},{prop:"domHTML",name:"domHTML",pkg:"github.com/88250/lute",typ:$funcType([AD],[AC],false)},{prop:"isEmptyText",name:"isEmptyText",pkg:"github.com/88250/lute",typ:$funcType([AD],[$Bool],false)},{prop:"startsWithNewline",name:"startsWithNewline",pkg:"github.com/88250/lute",typ:$funcType([AD],[$Bool],false)},{prop:"isInline",name:"isInline",pkg:"github.com/88250/lute",typ:$funcType([AD],[$Bool],false)}];P.init("",[{prop:"ParseOptions",name:"ParseOptions",embedded:false,exported:true,typ:AN,tag:""},{prop:"RenderOptions",name:"RenderOptions",embedded:false,exported:true,typ:AB,tag:""},{prop:"HTML2MdRendererFuncs",name:"HTML2MdRendererFuncs",embedded:false,exported:true,typ:BF,tag:""},{prop:"HTML2VditorDOMRendererFuncs",name:"HTML2VditorDOMRendererFuncs",embedded:false,exported:true,typ:BF,tag:""},{prop:"HTML2VditorIRDOMRendererFuncs",name:"HTML2VditorIRDOMRendererFuncs",embedded:false,exported:true,typ:BF,tag:""},{prop:"HTML2BlockDOMRendererFuncs",name:"HTML2BlockDOMRendererFuncs",embedded:false,exported:true,typ:BF,tag:""},{prop:"HTML2VditorSVDOMRendererFuncs",name:"HTML2VditorSVDOMRendererFuncs",embedded:false,exported:true,typ:BF,tag:""},{prop:"Md2HTMLRendererFuncs",name:"Md2HTMLRendererFuncs",embedded:false,exported:true,typ:BF,tag:""},{prop:"Md2VditorDOMRendererFuncs",name:"Md2VditorDOMRendererFuncs",embedded:false,exported:true,typ:BF,tag:""},{prop:"Md2VditorIRDOMRendererFuncs",name:"Md2VditorIRDOMRendererFuncs",embedded:false,exported:true,typ:BF,tag:""},{prop:"Md2BlockDOMRendererFuncs",name:"Md2BlockDOMRendererFuncs",embedded:false,exported:true,typ:BF,tag:""},{prop:"Md2VditorSVDOMRendererFuncs",name:"Md2VditorSVDOMRendererFuncs",embedded:false,exported:true,typ:BF,tag:""}]);V.init([AS],[],false);$init=function(){$pkg.$init=function(){};var $f,$c=false,$s=0,$r;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:$r=A.$init();$s=1;case 1:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$r=J.$init();$s=2;case 2:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$r=D.$init();$s=3;case 3:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$r=E.$init();$s=4;case 4:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$r=F.$init();$s=5;case 5:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$r=L.$init();$s=6;case 6:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$r=G.$init();$s=7;case 7:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$r=H.$init();$s=8;case 8:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$r=I.$init();$s=9;case 9:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$r=M.$init();$s=10;case 10:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$r=N.$init();$s=11;case 11:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$r=B.$init();$s=12;case 12:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$r=K.$init();$s=13;case 13:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$r=C.$init();$s=14;case 14:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}R=new K.Mutex.ptr(0,0);S=H.NewFormatRenderer(AA.nil,AB.nil);}return;}if($f===undefined){$f={$blk:$init};}$f.$s=$s;$f.$r=$r;return $f;};$pkg.$init=$init;return $pkg;})();