diff --git a/javascript/lute.min.js b/javascript/lute.min.js index 1af0de8324..a9a15f90b9 100644 --- a/javascript/lute.min.js +++ b/javascript/lute.min.js @@ -51,13 +51,13 @@ $packages["github.com/88250/lute/html"]=(function(){var $pkg={},$init,J,E,F,H,I, $packages["github.com/88250/lute/util"]=(function(){var $pkg={},$init,E,B,F,G,A,C,D,AV,AX,AY,AZ,R,S,T,V,W,X,Y,Z,AA,AB,AC,AD,AE,AF,AG,AH,AI,AJ,AK,AL,AM,AN,AO,AP,AQ,AS,AT,AU;E=$packages["bytes"];B=$packages["github.com/88250/lute/editor"];F=$packages["github.com/88250/lute/html"];G=$packages["github.com/88250/lute/html/atom"];A=$packages["strconv"];C=$packages["strings"];D=$packages["unicode/utf8"];AV=$sliceType($Uint8);AX=$sliceType($Int32);AY=$ptrType(F.Node);AZ=$sliceType(AY);R=function(a){var{a,b,c,$s,$r,$c}=$restore(this,{a});$s=$s||0;s:while(true){switch($s){case 0:a=C.ReplaceAll(a,"\xE2\x80\x8B","");a=C.ReplaceAll(a,"\xE2\x80\x8D","");b=C.TrimSpace(a);$s=1;case 1:if($c){$c=false;b=b.$blk();}if(b&&b.$blk!==undefined){break s;}c=0===b.length;$s=2;case 2:return c;}return;}var $f={$blk:R,$c:true,$r,a,b,c,$s};return $f;};$pkg.IsEmptyStr=R;S=function(a){var{a,b,c,d,e,f,g,h,i,j,k,$s,$r,$c}=$restore(this,{a});$s=$s||0;s:while(true){switch($s){case 0:b=0;c=0;d=C.Fields(a);$s=1;case 1:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}e=d;f=e;g=0;while(true){if(!(g=f.$length)?($throwRuntimeError("index out of range"),undefined):f.$array[f.$offset+g]);i=T(h);j=i[0];k=i[1];b=b+(j)>>0;c=c+(k)>>0;g++;}$s=-1;return[b,c];}return;}var $f={$blk:S,$c:true,$r,a,b,c,d,e,f,g,h,i,j,k,$s};return $f;};$pkg.WordCount=S;T=function(a){var a,b,c,d,e,f,g,h,i,j;b=0;c=0;d=(new AX($stringToRunes(a)));e=d.$length;if(1>e){return[b,c];}f=1;g=1;b=f;c=g;h=(0>=d.$length?($throwRuntimeError("index out of range"),undefined):d.$array[d.$offset+0])<128;i=1;while(true){if(!(i=d.$length)?($throwRuntimeError("index out of range"),undefined):d.$array[d.$offset+i]);b=b+(1)>>0;if(j>=128){c=c+(1)>>0;h=false;i=i+(1)>>0;continue;}if(j<128===h){i=i+(1)>>0;continue;}c=c+(1)>>0;h=!h;i=i+(1)>>0;}return[b,c];};V=function(a){var a;return E.Contains(a,(new AV($stringToBytes("type=\"doc\""))));};$pkg.IsDocIAL=V;W=function(a){var a,b,c,d;b=a;c=0;while(true){if(!(c=b.$length)?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+c]);if("type"===(0>=d.$length?($throwRuntimeError("index out of range"),undefined):d.$array[d.$offset+0])&&"doc"===(1>=d.$length?($throwRuntimeError("index out of range"),undefined):d.$array[d.$offset+1])){return true;}c++;}return false;};$pkg.IsDocIAL2=W;X=function(a){var{a,b,c,$s,$r,$c}=$restore(this,{a});$s=$s||0;s:while(true){switch($s){case 0:b="";c=AM(a);$s=1;case 1:if($c){$c=false;c=c.$blk();}if(c&&c.$blk!==undefined){break s;}b=c;b=C.ReplaceAll(b,"\xE2\x80\x8B","");b=C.TrimSuffix(b,"\n");b=F.EscapeHTMLStr(b);while(true){if(!(C.Contains(b,"\n\n"))){break;}b=C.ReplaceAll(b,"\n\n","\n");}$s=-1;return b;}return;}var $f={$blk:X,$c:true,$r,a,b,c,$s};return $f;};$pkg.GetTextMarkTextDataWithoutEscapeSingleQuote=X;Y=function(a){var{a,b,c,$s,$r,$c}=$restore(this,{a});$s=$s||0;s:while(true){switch($s){case 0:b="";c=X(a);$s=1;case 1:if($c){$c=false;c=c.$blk();}if(c&&c.$blk!==undefined){break s;}b=c;b=C.TrimPrefix(b,"\n");b=C.ReplaceAll(b,"'","'");while(true){if(!(C.Contains(b,"\n\n"))){break;}b=C.ReplaceAll(b,"\n\n","\n");}$s=-1;return b;}return;}var $f={$blk:Y,$c:true,$r,a,b,c,$s};return $f;};$pkg.GetTextMarkTextData=Y;Z=function(a){var a,b;b="";b=AQ(a,"data-inline-memo-content");b=C.ReplaceAll(b,"\xE2\x80\x8B","");b=C.ReplaceAll(b,"\n","_esc_newline_");b=F.UnescapeHTMLStr(b);return b;};$pkg.GetTextMarkInlineMemoData=Z;AA=function(a){var a,b,c;b="";c="";b=AQ(a,"data-href");b=F.EscapeHTMLStr(b);c=AQ(a,"data-title");c=F.EscapeHTMLStr(c);return[b,c];};$pkg.GetTextMarkAData=AA;AB=function(a){var a,b;b="";b=AQ(a,"data-content");b=C.ReplaceAll(b,"\n","_esc_newline_");b=F.UnescapeHTMLStr(b);b=C.ReplaceAll(b,"\xE2\x80\x8B","");return b;};$pkg.GetTextMarkInlineMathData=AB;AC=function(a){var a,b,c;b="";c="";b=AQ(a,"data-id");c=AQ(a,"data-subtype");if(""===c){c="s";}return[b,c];};$pkg.GetTextMarkBlockRefData=AC;AD=function(a){var a,b;b="";b=AQ(a,"data-id");return b;};$pkg.GetTextMarkFileAnnotationRefData=AD;AE=function(a,b,c){var a,b,c,d,e,f,g,h;if(AY.nil===a){return AY.nil;}if(a.DataAtom===b){d=c;e=0;while(true){if(!(e=d.$length)?($throwRuntimeError("index out of range"),undefined):d.$array[d.$offset+e]);if(C.Contains(AQ(a,"class"),f)){return a;}e++;}}g=a.FirstChild;while(true){if(!(!(AY.nil===g))){break;}h=AE(g,b,c);if(!(AY.nil===h)){return h;}g=g.NextSibling;}return AY.nil;};$pkg.DomChildByTypeAndClass=AE;AF=function(a,b){var a,b,c,d;c=AZ.nil;d=a.FirstChild;while(true){if(!(!(AY.nil===d))){break;}if(d.DataAtom===b){c=$append(c,d);}c=$appendSlice(c,AF(d,b));d=d.NextSibling;}return c;};$pkg.DomChildrenByType=AF;AG=function(a,b){var a,b,c,d,e,f;if(AY.nil===a){return false;}c=b;d=0;while(true){if(!(d=c.$length)?($throwRuntimeError("index out of range"),undefined):c.$array[c.$offset+d]);if(!(AY.nil===AH(a,e))){return true;}d++;}f=a.FirstChild;while(true){if(!(!(AY.nil===f))){break;}if(AG(f,b)){return true;}f=f.NextSibling;}return false;};$pkg.DomExistChildByType=AG;AH=function(a,b){var a,b,c;c=a.FirstChild;while(true){if(!(!(AY.nil===c))){break;}if(c.DataAtom===b){return c;}c=c.NextSibling;}return AY.nil;};AI=function(a){var{a,b,c,$s,$r,$c}=$restore(this,{a});$s=$s||0;s:while(true){switch($s){case 0:if(AY.nil===a){$s=-1;return AV.nil;}b=new E.Buffer.ptr(AV.nil,0,0);c=F.Render(b,a);$s=1;case 1:if($c){$c=false;c=c.$blk();}if(c&&c.$blk!==undefined){break s;}c;$s=-1;return E.ReplaceAll(b.Bytes(),(new AV($stringToBytes("\xE2\x80\x8B"))),AV.nil);}return;}var $f={$blk:AI,$c:true,$r,a,b,c,$s};return $f;};$pkg.DomHTML=AI;AJ=function(a){var{a,b,c,d,$s,$r,$c}=$restore(this,{a});$s=$s||0;s:while(true){switch($s){case 0:b=new E.Buffer.ptr(AV.nil,0,0);if(1===a.Type){$s=1;continue;}$s=2;continue;case 1:c=b.WriteString(a.Data);$s=3;case 3:if($c){$c=false;c=c.$blk();}if(c&&c.$blk!==undefined){break s;}c;$s=-1;return b.String();case 2:d=a.FirstChild;case 4:if(!(!(AY.nil===d))){$s=5;continue;}$r=AK(d,b);$s=6;case 6:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}d=d.NextSibling;$s=4;continue;case 5:$s=-1;return b.String();}return;}var $f={$blk:AJ,$c:true,$r,a,b,c,d,$s};return $f;};$pkg.DomTexhtml=AJ;AK=function(a,b){var{a,b,c,d,e,f,g,h,i,j,$s,$r,$c}=$restore(this,{a,b});$s=$s||0;s:while(true){switch($s){case 0:if(AY.nil===a){$s=-1;return;}c=a.DataAtom;if(c===(0)){$s=2;continue;}if(c===(461571)){$s=3;continue;}if(c===(421123)){$s=4;continue;}$s=5;continue;case 2:d=b.WriteString(AL(a.Data));$s=6;case 6:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}d;$s=5;continue;case 3:e=b.WriteString("^{");$s=7;case 7:if($c){$c=false;e=e.$blk();}if(e&&e.$blk!==undefined){break s;}e;$s=5;continue;case 4:f=b.WriteString("_{");$s=8;case 8:if($c){$c=false;f=f.$blk();}if(f&&f.$blk!==undefined){break s;}f;case 5:case 1:g=a.FirstChild;case 9:if(!(!(AY.nil===g))){$s=10;continue;}$r=AK(g,b);$s=11;case 11:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}g=g.NextSibling;$s=9;continue;case 10:h=a.DataAtom;if(h===(461571)){$s=13;continue;}if(h===(421123)){$s=14;continue;}$s=15;continue;case 13:i=b.WriteString("}");$s=16;case 16:if($c){$c=false;i=i.$blk();}if(i&&i.$blk!==undefined){break s;}i;$s=15;continue;case 14:j=b.WriteString("}");$s=17;case 17:if($c){$c=false;j=j.$blk();}if(j&&j.$blk!==undefined){break s;}j;case 15:case 12:$s=-1;return;}return;}var $f={$blk:AK,$c:true,$r,a,b,c,d,e,f,g,h,i,j,$s};return $f;};AL=function(a){var a;a=C.ReplaceAll(a,"_","\\_");a=C.ReplaceAll(a,"^","\\^");a=C.ReplaceAll(a,"{","\\{");a=C.ReplaceAll(a,"}","\\}");return a;};AM=function(a){var{a,b,c,d,$s,$r,$c}=$restore(this,{a});$s=$s||0;s:while(true){switch($s){case 0:b=new E.Buffer.ptr(AV.nil,0,0);if(1===a.Type){$s=1;continue;}$s=2;continue;case 1:c=b.WriteString(a.Data);$s=3;case 3:if($c){$c=false;c=c.$blk();}if(c&&c.$blk!==undefined){break s;}c;$s=-1;return b.String();case 2:d=a.FirstChild;case 4:if(!(!(AY.nil===d))){$s=5;continue;}$r=AN(d,b);$s=6;case 6:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}d=d.NextSibling;$s=4;continue;case 5:$s=-1;return b.String();}return;}var $f={$blk:AM,$c:true,$r,a,b,c,d,$s};return $f;};$pkg.DomText=AM;AN=function(a,b){var{a,b,c,d,e,f,g,h,i,j,k,$s,$r,$c}=$restore(this,{a,b});$s=$s||0;s:while(true){switch($s){case 0:if(AY.nil===a){$s=-1;return;}c=AQ(a,"data-render");if("1"===c||"2"===c){$s=-1;return;}if("svg"===a.Namespace){$s=-1;return;}d=false;if((0===a.DataAtom)&&(3===a.Type)){e=a.Parent;if(AY.nil===e){$s=-1;return;}if(!((40708===e.DataAtom))){$s=-1;return;}if(!AO(e)){$s=-1;return;}d=true;}f=a.DataAtom;if(f===(0)){$s=2;continue;}if(f===(514)){$s=3;continue;}if(f===(3073)){$s=4;continue;}$s=5;continue;case 2:if(d){$s=6;continue;}$s=7;continue;case 6:g=b.WriteString("<"+a.Data+">");$s=9;case 9:if($c){$c=false;g=g.$blk();}if(g&&g.$blk!==undefined){break s;}g;$s=8;continue;case 7:h=b.WriteString(a.Data);$s=10;case 10:if($c){$c=false;h=h.$blk();}if(h&&h.$blk!==undefined){break s;}h;case 8:$s=5;continue;case 3:i=b.WriteString("\n");$s=11;case 11:if($c){$c=false;i=i.$blk();}if(i&&i.$blk!==undefined){break s;}i;$s=5;continue;case 4:j=b.WriteString("\n\n");$s=12;case 12:if($c){$c=false;j=j.$blk();}if(j&&j.$blk!==undefined){break s;}j;case 5:case 1:k=a.FirstChild;case 13:if(!(!(AY.nil===k))){$s=14;continue;}$r=AN(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=-1;return;}return;}var $f={$blk:AN,$c:true,$r,a,b,c,d,e,f,g,h,i,j,k,$s};return $f;};AO=function(a){var a,b;b=AQ(a,"data-type");return"search-mark"===b||"virtual-block-ref"===b;};$pkg.IsTempMarkSpan=AO;AP=function(a,b,c){var a,b,c,d,e,f;if(AY.nil===a){return;}d=a.Attr;e=0;while(true){if(!(e=d.$length)?($throwRuntimeError("index out of range"),undefined):d.$array[d.$offset+e]);if(f.Key===b){f.Val=c;return;}e++;}a.Attr=$append(a.Attr,new F.Attribute.ptr("",b,c));};$pkg.SetDomAttrValue=AP;AQ=function(a,b){var a,b,c,d,e;if(AY.nil===a){return"";}c=a.Attr;d=0;while(true){if(!(d=c.$length)?($throwRuntimeError("index out of range"),undefined):c.$array[c.$offset+d]);if(e.Key===b){return e.Val;}d++;}return"";};$pkg.DomAttrValue=AQ;AS=function(a){var a,b,c,d,e,f;b=false;b=$makeMap($String.keyFor,[]);c=a.Attr;d=0;while(true){if(!(d=c.$length)?($throwRuntimeError("index out of range"),undefined):c.$array[c.$offset+d]);if(C.HasPrefix(e.Key,"custom-")){f=e.Key;(b||$throwRuntimeError("assignment to entry in nil map")).set($String.keyFor(f),{k:f,v:e.Val});}d++;}if(1>(b?b.size:0)){b=false;return b;}return b;};$pkg.DomCustomAttrs=AS;AT=function(a){var a,b;b=AV.nil;b=(new AV($stringToBytes(a)));return b;};$pkg.StrToBytes=AT;AU=function(a){var a;return($bytesToString(a));};$pkg.BytesToStr=AU;$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=E.$init();$s=1;case 1:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$r=B.$init();$s=2;case 2:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$r=F.$init();$s=3;case 3:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$r=G.$init();$s=4;case 4:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$r=A.$init();$s=5;case 5:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$r=C.$init();$s=6;case 6:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$r=D.$init();$s=7;case 7:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}}return;}if($f===undefined){$f={$blk:$init};}$f.$s=$s;$f.$r=$r;return $f;};$pkg.$init=$init;return $pkg;})(); $packages["math/rand"]=(function(){var $pkg={},$init,B,A,F,H,I,K,AE,AM,AN,AO,AQ,AR,AS,AT,AU,AV,E,N,AG,AH,AI,AJ,AK,AL,G,J,L,M,O,W,AF;B=$packages["github.com/gopherjs/gopherjs/nosync"];A=$packages["math"];F=$pkg.rngSource=$newType(0,$kindStruct,"rand.rngSource",true,"math/rand",false,function(tap_,feed_,vec_){this.$val=this;if(arguments.length===0){this.tap=0;this.feed=0;this.vec=AQ.zero();return;}this.tap=tap_;this.feed=feed_;this.vec=vec_;});H=$pkg.Source=$newType(8,$kindInterface,"rand.Source",true,"math/rand",true,null);I=$pkg.Source64=$newType(8,$kindInterface,"rand.Source64",true,"math/rand",true,null);K=$pkg.Rand=$newType(0,$kindStruct,"rand.Rand",true,"math/rand",true,function(src_,s64_,readVal_,readPos_){this.$val=this;if(arguments.length===0){this.src=$ifaceNil;this.s64=$ifaceNil;this.readVal=new $Int64(0,0);this.readPos=0;return;}this.src=src_;this.s64=s64_;this.readVal=readVal_;this.readPos=readPos_;});AE=$pkg.lockedSource=$newType(0,$kindStruct,"rand.lockedSource",true,"math/rand",false,function(lk_,src_){this.$val=this;if(arguments.length===0){this.lk=new B.Mutex.ptr(false);this.src=AM.nil;return;}this.lk=lk_;this.src=src_;});AM=$ptrType(F);AN=$ptrType(AE);AO=$ptrType(K);AQ=$arrayType($Int64,607);AR=$ptrType($Int8);AS=$sliceType($Int);AT=$ptrType($Int64);AU=$funcType([$Int,$Int],[],false);AV=$sliceType($Uint8);G=function(a){var a,b,c,d,e;c=(b=a/44488,(b===b&&b!==1/0&&b!==-1/0)?b>>0:$throwRuntimeError("integer divide by zero"));e=(d=a%44488,d===d?d:$throwRuntimeError("integer divide by zero"));a=($imul(48271,e))-($imul(3399,c))>>0;if(a<0){a=a+(2147483647)>>0;}return a;};F.ptr.prototype.Seed=function(a){var a,b,c,d,e,f,g,h,i,j;b=this;b.tap=0;b.feed=334;a=$div64(a,new $Int64(0,2147483647),true);if((a.$high<0||(a.$high===0&&a.$low<0))){a=(c=new $Int64(0,2147483647),new $Int64(a.$high+c.$high,a.$low+c.$low));}if((a.$high===0&&a.$low===0)){a=new $Int64(0,89482311);}d=(((a.$low+((a.$high>>31)*4294967296))>>0));e=-20;while(true){if(!(e<607)){break;}d=G(d);if(e>=0){f=new $Int64(0,0);f=$shiftLeft64((new $Int64(0,d)),40);d=G(d);f=(g=$shiftLeft64((new $Int64(0,d)),20),new $Int64(f.$high^g.$high,(f.$low^g.$low)>>>0));d=G(d);f=(h=(new $Int64(0,d)),new $Int64(f.$high^h.$high,(f.$low^h.$low)>>>0));f=(i=((e<0||e>=E.length)?($throwRuntimeError("index out of range"),undefined):E[e]),new $Int64(f.$high^i.$high,(f.$low^i.$low)>>>0));(j=b.vec,((e<0||e>=j.length)?($throwRuntimeError("index out of range"),undefined):j[e]=f));}e=e+(1)>>0;}};F.prototype.Seed=function(a){return this.$val.Seed(a);};F.ptr.prototype.Int63=function(){var a,b,c;a=this;return((b=(c=a.Uint64(),new $Uint64(c.$high&2147483647,(c.$low&4294967295)>>>0)),new $Int64(b.$high,b.$low)));};F.prototype.Int63=function(){return this.$val.Int63();};F.ptr.prototype.Uint64=function(){var a,b,c,d,e,f,g,h,i,j;a=this;a.tap=a.tap-(1)>>0;if(a.tap<0){a.tap=a.tap+(607)>>0;}a.feed=a.feed-(1)>>0;if(a.feed<0){a.feed=a.feed+(607)>>0;}h=(b=(c=a.vec,d=a.feed,((d<0||d>=c.length)?($throwRuntimeError("index out of range"),undefined):c[d])),e=(f=a.vec,g=a.tap,((g<0||g>=f.length)?($throwRuntimeError("index out of range"),undefined):f[g])),new $Int64(b.$high+e.$high,b.$low+e.$low));(i=a.vec,j=a.feed,((j<0||j>=i.length)?($throwRuntimeError("index out of range"),undefined):i[j]=h));return(new $Uint64(h.$high,h.$low));};F.prototype.Uint64=function(){return this.$val.Uint64();};J=function(a){var a,b;b=new F.ptr(0,0,AQ.zero());b.Seed(a);return b;};$pkg.NewSource=J;L=function(a){var a,b,c;b=$assertType(a,I,true);c=b[0];return new K.ptr(a,c,new $Int64(0,0),0);};$pkg.New=L;K.ptr.prototype.Seed=function(a){var{a,b,c,d,e,$s,$r,$c}=$restore(this,{a});$s=$s||0;s:while(true){switch($s){case 0:b=this;c=$assertType(b.src,AN,true);d=c[0];e=c[1];if(e){d.seedPos(a,(b.$ptr_readPos||(b.$ptr_readPos=new AR(function(){return this.$target.readPos;},function($v){this.$target.readPos=$v;},b))));$s=-1;return;}$r=b.src.Seed(a);$s=1;case 1:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}b.readPos=0;$s=-1;return;}return;}var $f={$blk:K.ptr.prototype.Seed,$c:true,$r,a,b,c,d,e,$s};return $f;};K.prototype.Seed=function(a){return this.$val.Seed(a);};K.ptr.prototype.Int63=function(){var{a,b,c,$s,$r,$c}=$restore(this,{});$s=$s||0;s:while(true){switch($s){case 0:a=this;b=a.src.Int63();$s=1;case 1:if($c){$c=false;b=b.$blk();}if(b&&b.$blk!==undefined){break s;}c=b;$s=2;case 2:return c;}return;}var $f={$blk:K.ptr.prototype.Int63,$c:true,$r,a,b,c,$s};return $f;};K.prototype.Int63=function(){return this.$val.Int63();};K.ptr.prototype.Uint32=function(){var{a,b,c,$s,$r,$c}=$restore(this,{});$s=$s||0;s:while(true){switch($s){case 0:a=this;b=a.Int63();$s=1;case 1:if($c){$c=false;b=b.$blk();}if(b&&b.$blk!==undefined){break s;}c=(($shiftRightInt64(b,31).$low>>>0));$s=2;case 2:return c;}return;}var $f={$blk:K.ptr.prototype.Uint32,$c:true,$r,a,b,c,$s};return $f;};K.prototype.Uint32=function(){return this.$val.Uint32();};K.ptr.prototype.Uint64=function(){var{a,b,c,d,e,f,g,h,i,j,$s,$r,$c}=$restore(this,{});$s=$s||0;s:while(true){switch($s){case 0:a=this;if(!($interfaceIsEqual(a.s64,$ifaceNil))){$s=1;continue;}$s=2;continue;case 1:b=a.s64.Uint64();$s=3;case 3:if($c){$c=false;b=b.$blk();}if(b&&b.$blk!==undefined){break s;}c=b;$s=4;case 4:return c;case 2:f=a.Int63();$s=5;case 5:if($c){$c=false;f=f.$blk();}if(f&&f.$blk!==undefined){break s;}i=a.Int63();$s=6;case 6:if($c){$c=false;i=i.$blk();}if(i&&i.$blk!==undefined){break s;}j=(d=$shiftRightUint64(((e=f,new $Uint64(e.$high,e.$low))),31),g=$shiftLeft64(((h=i,new $Uint64(h.$high,h.$low))),32),new $Uint64(d.$high|g.$high,(d.$low|g.$low)>>>0));$s=7;case 7:return j;}return;}var $f={$blk:K.ptr.prototype.Uint64,$c:true,$r,a,b,c,d,e,f,g,h,i,j,$s};return $f;};K.prototype.Uint64=function(){return this.$val.Uint64();};K.ptr.prototype.Int31=function(){var{a,b,c,d,$s,$r,$c}=$restore(this,{});$s=$s||0;s:while(true){switch($s){case 0:a=this;c=a.Int63();$s=1;case 1:if($c){$c=false;c=c.$blk();}if(c&&c.$blk!==undefined){break s;}d=(((b=$shiftRightInt64(c,32),b.$low+((b.$high>>31)*4294967296))>>0));$s=2;case 2:return d;}return;}var $f={$blk:K.ptr.prototype.Int31,$c:true,$r,a,b,c,d,$s};return $f;};K.prototype.Int31=function(){return this.$val.Int31();};K.ptr.prototype.Int=function(){var{a,b,c,$s,$r,$c}=$restore(this,{});$s=$s||0;s:while(true){switch($s){case 0:a=this;b=a.Int63();$s=1;case 1:if($c){$c=false;b=b.$blk();}if(b&&b.$blk!==undefined){break s;}c=((b.$low>>>0));$s=-1;return((((c<<1>>>0)>>>1>>>0)>>0));}return;}var $f={$blk:K.ptr.prototype.Int,$c:true,$r,a,b,c,$s};return $f;};K.prototype.Int=function(){return this.$val.Int();};K.ptr.prototype.Int63n=function(a){var{a,b,c,d,e,f,g,h,i,j,k,l,m,n,$s,$r,$c}=$restore(this,{a});$s=$s||0;s:while(true){switch($s){case 0:b=this;if((a.$high<0||(a.$high===0&&a.$low<=0))){$panic(new $String("invalid argument to Int63n"));}if((c=(d=new $Int64(a.$high-0,a.$low-1),new $Int64(a.$high&d.$high,(a.$low&d.$low)>>>0)),(c.$high===0&&c.$low===0))){$s=1;continue;}$s=2;continue;case 1:f=b.Int63();$s=3;case 3:if($c){$c=false;f=f.$blk();}if(f&&f.$blk!==undefined){break s;}h=(e=f,g=new $Int64(a.$high-0,a.$low-1),new $Int64(e.$high&g.$high,(e.$low&g.$low)>>>0));$s=4;case 4:return h;case 2:k=((i=(j=$div64(new $Uint64(2147483648,0),(new $Uint64(a.$high,a.$low)),true),new $Uint64(2147483647-j.$high,4294967295-j.$low)),new $Int64(i.$high,i.$low)));l=b.Int63();$s=5;case 5:if($c){$c=false;l=l.$blk();}if(l&&l.$blk!==undefined){break s;}m=l;case 6:if(!((m.$high>k.$high||(m.$high===k.$high&&m.$low>k.$low)))){$s=7;continue;}n=b.Int63();$s=8;case 8:if($c){$c=false;n=n.$blk();}if(n&&n.$blk!==undefined){break s;}m=n;$s=6;continue;case 7:$s=-1;return $div64(m,a,true);}return;}var $f={$blk:K.ptr.prototype.Int63n,$c:true,$r,a,b,c,d,e,f,g,h,i,j,k,l,m,n,$s};return $f;};K.prototype.Int63n=function(a){return this.$val.Int63n(a);};K.ptr.prototype.Int31n=function(a){var{a,b,c,d,e,f,g,h,i,j,$s,$r,$c}=$restore(this,{a});$s=$s||0;s:while(true){switch($s){case 0:b=this;if(a<=0){$panic(new $String("invalid argument to Int31n"));}if((a&((a-1>>0)))===0){$s=1;continue;}$s=2;continue;case 1:c=b.Int31();$s=3;case 3:if($c){$c=false;c=c.$blk();}if(c&&c.$blk!==undefined){break s;}d=c&((a-1>>0));$s=4;case 4:return d;case 2:f=(((2147483647-(e=2147483648%((a>>>0)),e===e?e:$throwRuntimeError("integer divide by zero"))>>>0)>>0));g=b.Int31();$s=5;case 5:if($c){$c=false;g=g.$blk();}if(g&&g.$blk!==undefined){break s;}h=g;case 6:if(!(h>f)){$s=7;continue;}i=b.Int31();$s=8;case 8:if($c){$c=false;i=i.$blk();}if(i&&i.$blk!==undefined){break s;}h=i;$s=6;continue;case 7:$s=-1;return(j=h%a,j===j?j:$throwRuntimeError("integer divide by zero"));}return;}var $f={$blk:K.ptr.prototype.Int31n,$c:true,$r,a,b,c,d,e,f,g,h,i,j,$s};return $f;};K.prototype.Int31n=function(a){return this.$val.Int31n(a);};K.ptr.prototype.int31n=function(a){var{a,b,c,d,e,f,g,h,i,$s,$r,$c}=$restore(this,{a});$s=$s||0;s:while(true){switch($s){case 0:b=this;c=b.Uint32();$s=1;case 1:if($c){$c=false;c=c.$blk();}if(c&&c.$blk!==undefined){break s;}d=c;e=$mul64((new $Uint64(0,d)),(new $Uint64(0,a)));f=((e.$low>>>0));if(f<((a>>>0))){$s=2;continue;}$s=3;continue;case 2:h=(g=((-a>>>0))%((a>>>0)),g===g?g:$throwRuntimeError("integer divide by zero"));case 4:if(!(f>>0));$s=4;continue;case 5:case 3:$s=-1;return(($shiftRightUint64(e,32).$low>>0));}return;}var $f={$blk:K.ptr.prototype.int31n,$c:true,$r,a,b,c,d,e,f,g,h,i,$s};return $f;};K.prototype.int31n=function(a){return this.$val.int31n(a);};K.ptr.prototype.Intn=function(a){var{a,b,c,d,e,f,g,$s,$r,$c}=$restore(this,{a});$s=$s||0;s:while(true){switch($s){case 0:b=this;if(a<=0){$panic(new $String("invalid argument to Intn"));}if(a<=2147483647){$s=1;continue;}$s=2;continue;case 1:c=b.Int31n(((a>>0)));$s=3;case 3:if($c){$c=false;c=c.$blk();}if(c&&c.$blk!==undefined){break s;}d=((c>>0));$s=4;case 4:return d;case 2:f=b.Int63n((new $Int64(0,a)));$s=5;case 5:if($c){$c=false;f=f.$blk();}if(f&&f.$blk!==undefined){break s;}g=(((e=f,e.$low+((e.$high>>31)*4294967296))>>0));$s=6;case 6:return g;}return;}var $f={$blk:K.ptr.prototype.Intn,$c:true,$r,a,b,c,d,e,f,g,$s};return $f;};K.prototype.Intn=function(a){return this.$val.Intn(a);};K.ptr.prototype.Float64=function(){var{a,b,c,$s,$r,$c}=$restore(this,{});$s=$s||0;s:while(true){switch($s){case 0:a=this;case 1:b=a.Int63();$s=2;case 2:if($c){$c=false;b=b.$blk();}if(b&&b.$blk!==undefined){break s;}c=($flatten64(b))/9.223372036854776e+18;if(c===1){$s=3;continue;}$s=4;continue;case 3:$s=1;continue;case 4:$s=-1;return c;}return;}var $f={$blk:K.ptr.prototype.Float64,$c:true,$r,a,b,c,$s};return $f;};K.prototype.Float64=function(){return this.$val.Float64();};K.ptr.prototype.Float32=function(){var{a,b,c,$s,$r,$c}=$restore(this,{});$s=$s||0;s:while(true){switch($s){case 0:a=this;case 1:b=a.Float64();$s=2;case 2:if($c){$c=false;b=b.$blk();}if(b&&b.$blk!==undefined){break s;}c=($fround(b));if(c===1){$s=3;continue;}$s=4;continue;case 3:$s=1;continue;case 4:$s=-1;return c;}return;}var $f={$blk:K.ptr.prototype.Float32,$c:true,$r,a,b,c,$s};return $f;};K.prototype.Float32=function(){return this.$val.Float32();};K.ptr.prototype.Perm=function(a){var{a,b,c,d,e,f,$s,$r,$c}=$restore(this,{a});$s=$s||0;s:while(true){switch($s){case 0:b=this;c=$makeSlice(AS,a);d=0;case 1:if(!(d>0);$s=3;case 3:if($c){$c=false;e=e.$blk();}if(e&&e.$blk!==undefined){break s;}f=e;((d<0||d>=c.$length)?($throwRuntimeError("index out of range"),undefined):c.$array[c.$offset+d]=((f<0||f>=c.$length)?($throwRuntimeError("index out of range"),undefined):c.$array[c.$offset+f]));((f<0||f>=c.$length)?($throwRuntimeError("index out of range"),undefined):c.$array[c.$offset+f]=d);d=d+(1)>>0;$s=1;continue;case 2:$s=-1;return c;}return;}var $f={$blk:K.ptr.prototype.Perm,$c:true,$r,a,b,c,d,e,f,$s};return $f;};K.prototype.Perm=function(a){return this.$val.Perm(a);};K.ptr.prototype.Shuffle=function(a,b){var{a,b,c,d,e,f,g,h,i,$s,$r,$c}=$restore(this,{a,b});$s=$s||0;s:while(true){switch($s){case 0:c=this;if(a<0){$panic(new $String("invalid argument to Shuffle"));}d=a-1>>0;case 1:if(!(d>2147483646)){$s=2;continue;}f=c.Int63n((new $Int64(0,(d+1>>0))));$s=3;case 3:if($c){$c=false;f=f.$blk();}if(f&&f.$blk!==undefined){break s;}g=(((e=f,e.$low+((e.$high>>31)*4294967296))>>0));$r=b(d,g);$s=4;case 4:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}d=d-(1)>>0;$s=1;continue;case 2:case 5:if(!(d>0)){$s=6;continue;}h=c.int31n((((d+1>>0)>>0)));$s=7;case 7:if($c){$c=false;h=h.$blk();}if(h&&h.$blk!==undefined){break s;}i=((h>>0));$r=b(d,i);$s=8;case 8:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}d=d-(1)>>0;$s=5;continue;case 6:$s=-1;return;}return;}var $f={$blk:K.ptr.prototype.Shuffle,$c:true,$r,a,b,c,d,e,f,g,h,i,$s};return $f;};K.prototype.Shuffle=function(a,b){return this.$val.Shuffle(a,b);};K.ptr.prototype.Read=function(a){var{a,b,c,d,e,f,g,h,i,j,k,l,m,$s,$r,$c}=$restore(this,{a});$s=$s||0;s:while(true){switch($s){case 0:b=0;c=$ifaceNil;d=this;e=$assertType(d.src,AN,true);f=e[0];g=e[1];if(g){$s=1;continue;}$s=2;continue;case 1:i=f.read(a,(d.$ptr_readVal||(d.$ptr_readVal=new AT(function(){return this.$target.readVal;},function($v){this.$target.readVal=$v;},d))),(d.$ptr_readPos||(d.$ptr_readPos=new AR(function(){return this.$target.readPos;},function($v){this.$target.readPos=$v;},d))));$s=3;case 3:if($c){$c=false;i=i.$blk();}if(i&&i.$blk!==undefined){break s;}h=i;b=h[0];c=h[1];j=[b,c];$s=4;case 4:return j;case 2:l=M(a,d.src,(d.$ptr_readVal||(d.$ptr_readVal=new AT(function(){return this.$target.readVal;},function($v){this.$target.readVal=$v;},d))),(d.$ptr_readPos||(d.$ptr_readPos=new AR(function(){return this.$target.readPos;},function($v){this.$target.readPos=$v;},d))));$s=5;case 5:if($c){$c=false;l=l.$blk();}if(l&&l.$blk!==undefined){break s;}k=l;b=k[0];c=k[1];m=[b,c];$s=6;case 6:return m;}return;}var $f={$blk:K.ptr.prototype.Read,$c:true,$r,a,b,c,d,e,f,g,h,i,j,k,l,m,$s};return $f;};K.prototype.Read=function(a){return this.$val.Read(a);};M=function(a,b,c,d){var{a,b,c,d,e,f,g,h,i,j,k,$s,$r,$c}=$restore(this,{a,b,c,d});$s=$s||0;s:while(true){switch($s){case 0:e=0;f=$ifaceNil;g=d.$get();h=c.$get();i=$assertType(b,AM,true);j=i[0];e=0;case 1:if(!(e=a.$length)?($throwRuntimeError("index out of range"),undefined):a.$array[a.$offset+e]=((h.$low<<24>>>24)));h=$shiftRightInt64(h,(8));g=g-(1)<<24>>24;e=e+(1)>>0;$s=1;continue;case 2:d.$set(g);c.$set(h);$s=-1;return[e,f];}return;}var $f={$blk:M,$c:true,$r,a,b,c,d,e,f,g,h,i,j,k,$s};return $f;};O=function(a){var{a,$s,$r,$c}=$restore(this,{a});$s=$s||0;s:while(true){switch($s){case 0:$r=N.Seed(a);$s=1;case 1:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$s=-1;return;}return;}var $f={$blk:O,$c:true,$r,a,$s};return $f;};$pkg.Seed=O;W=function(a){var{a,b,c,$s,$r,$c}=$restore(this,{a});$s=$s||0;s:while(true){switch($s){case 0:b=N.Intn(a);$s=1;case 1:if($c){$c=false;b=b.$blk();}if(b&&b.$blk!==undefined){break s;}c=b;$s=2;case 2:return c;}return;}var $f={$blk:W,$c:true,$r,a,b,c,$s};return $f;};$pkg.Intn=W;AE.ptr.prototype.Int63=function(){var a,b;a=new $Int64(0,0);b=this;b.lk.Lock();a=b.src.Int63();b.lk.Unlock();return a;};AE.prototype.Int63=function(){return this.$val.Int63();};AE.ptr.prototype.Uint64=function(){var a,b;a=new $Uint64(0,0);b=this;b.lk.Lock();a=b.src.Uint64();b.lk.Unlock();return a;};AE.prototype.Uint64=function(){return this.$val.Uint64();};AE.ptr.prototype.Seed=function(a){var a,b;b=this;b.lk.Lock();b.src.Seed(a);b.lk.Unlock();};AE.prototype.Seed=function(a){return this.$val.Seed(a);};AE.ptr.prototype.seedPos=function(a,b){var a,b,c;c=this;c.lk.Lock();c.src.Seed(a);b.$set(0);c.lk.Unlock();};AE.prototype.seedPos=function(a,b){return this.$val.seedPos(a,b);};AE.ptr.prototype.read=function(a,b,c){var{a,b,c,d,e,f,g,h,$s,$r,$c}=$restore(this,{a,b,c});$s=$s||0;s:while(true){switch($s){case 0:d=0;e=$ifaceNil;f=this;f.lk.Lock();h=M(a,f.src,b,c);$s=1;case 1:if($c){$c=false;h=h.$blk();}if(h&&h.$blk!==undefined){break s;}g=h;d=g[0];e=g[1];f.lk.Unlock();$s=-1;return[d,e];}return;}var $f={$blk:AE.ptr.prototype.read,$c:true,$r,a,b,c,d,e,f,g,h,$s};return $f;};AE.prototype.read=function(a,b,c){return this.$val.read(a,b,c);};AF=function(a){var a;if(a<0){return((-a>>>0));}return((a>>>0));};K.ptr.prototype.NormFloat64=function(){var{a,b,c,d,e,f,g,h,i,j,k,l,$s,$r,$c}=$restore(this,{});$s=$s||0;s:while(true){switch($s){case 0:a=this;case 1:b=a.Uint32();$s=3;case 3:if($c){$c=false;b=b.$blk();}if(b&&b.$blk!==undefined){break s;}c=((b>>0));d=c&127;e=(c)*(((d<0||d>=AH.length)?($throwRuntimeError("index out of range"),undefined):AH[d]));if(AF(c)<((d<0||d>=AG.length)?($throwRuntimeError("index out of range"),undefined):AG[d])){$s=-1;return e;}if(d===0){$s=4;continue;}$s=5;continue;case 4:case 6:f=a.Float64();$s=8;case 8:if($c){$c=false;f=f.$blk();}if(f&&f.$blk!==undefined){break s;}g=A.Log(f);$s=9;case 9:if($c){$c=false;g=g.$blk();}if(g&&g.$blk!==undefined){break s;}e=-g*0.29047645161474317;h=a.Float64();$s=10;case 10:if($c){$c=false;h=h.$blk();}if(h&&h.$blk!==undefined){break s;}i=A.Log(h);$s=11;case 11:if($c){$c=false;i=i.$blk();}if(i&&i.$blk!==undefined){break s;}j=-i;if(j+j>=e*e){$s=7;continue;}$s=6;continue;case 7:if(c>0){$s=-1;return 3.442619855899+e;}$s=-1;return-3.442619855899-e;case 5:k=a.Float64();$s=14;case 14:if($c){$c=false;k=k.$blk();}if(k&&k.$blk!==undefined){break s;}if($fround(((d<0||d>=AI.length)?($throwRuntimeError("index out of range"),undefined):AI[d])+$fround(($fround(k))*($fround((l=d-1>>0,((l<0||l>=AI.length)?($throwRuntimeError("index out of range"),undefined):AI[l]))-((d<0||d>=AI.length)?($throwRuntimeError("index out of range"),undefined):AI[d])))))<($fround(A.Exp(-0.5*e*e)))){$s=12;continue;}$s=13;continue;case 12:$s=-1;return e;case 13:$s=1;continue;case 2:$s=-1;return 0;}return;}var $f={$blk:K.ptr.prototype.NormFloat64,$c:true,$r,a,b,c,d,e,f,g,h,i,j,k,l,$s};return $f;};K.prototype.NormFloat64=function(){return this.$val.NormFloat64();};K.ptr.prototype.ExpFloat64=function(){var{a,b,c,d,e,f,g,h,i,j,$s,$r,$c}=$restore(this,{});$s=$s||0;s:while(true){switch($s){case 0:a=this;case 1:b=a.Uint32();$s=3;case 3:if($c){$c=false;b=b.$blk();}if(b&&b.$blk!==undefined){break s;}c=b;d=(c&255)>>>0;e=(c)*(((d<0||d>=AK.length)?($throwRuntimeError("index out of range"),undefined):AK[d]));if(c<((d<0||d>=AJ.length)?($throwRuntimeError("index out of range"),undefined):AJ[d])){$s=-1;return e;}if(d===0){$s=4;continue;}$s=5;continue;case 4:f=a.Float64();$s=6;case 6:if($c){$c=false;f=f.$blk();}if(f&&f.$blk!==undefined){break s;}g=A.Log(f);$s=7;case 7:if($c){$c=false;g=g.$blk();}if(g&&g.$blk!==undefined){break s;}h=7.69711747013105-g;$s=8;case 8:return h;case 5:i=a.Float64();$s=11;case 11:if($c){$c=false;i=i.$blk();}if(i&&i.$blk!==undefined){break s;}if($fround(((d<0||d>=AL.length)?($throwRuntimeError("index out of range"),undefined):AL[d])+$fround(($fround(i))*($fround((j=d-1>>>0,((j<0||j>=AL.length)?($throwRuntimeError("index out of range"),undefined):AL[j]))-((d<0||d>=AL.length)?($throwRuntimeError("index out of range"),undefined):AL[d])))))<($fround(A.Exp(-e)))){$s=9;continue;}$s=10;continue;case 9:$s=-1;return e;case 10:$s=1;continue;case 2:$s=-1;return 0;}return;}var $f={$blk:K.ptr.prototype.ExpFloat64,$c:true,$r,a,b,c,d,e,f,g,h,i,j,$s};return $f;};K.prototype.ExpFloat64=function(){return this.$val.ExpFloat64();};AM.methods=[{prop:"Seed",name:"Seed",pkg:"",typ:$funcType([$Int64],[],false)},{prop:"Int63",name:"Int63",pkg:"",typ:$funcType([],[$Int64],false)},{prop:"Uint64",name:"Uint64",pkg:"",typ:$funcType([],[$Uint64],false)}];AO.methods=[{prop:"Seed",name:"Seed",pkg:"",typ:$funcType([$Int64],[],false)},{prop:"Int63",name:"Int63",pkg:"",typ:$funcType([],[$Int64],false)},{prop:"Uint32",name:"Uint32",pkg:"",typ:$funcType([],[$Uint32],false)},{prop:"Uint64",name:"Uint64",pkg:"",typ:$funcType([],[$Uint64],false)},{prop:"Int31",name:"Int31",pkg:"",typ:$funcType([],[$Int32],false)},{prop:"Int",name:"Int",pkg:"",typ:$funcType([],[$Int],false)},{prop:"Int63n",name:"Int63n",pkg:"",typ:$funcType([$Int64],[$Int64],false)},{prop:"Int31n",name:"Int31n",pkg:"",typ:$funcType([$Int32],[$Int32],false)},{prop:"int31n",name:"int31n",pkg:"math/rand",typ:$funcType([$Int32],[$Int32],false)},{prop:"Intn",name:"Intn",pkg:"",typ:$funcType([$Int],[$Int],false)},{prop:"Float64",name:"Float64",pkg:"",typ:$funcType([],[$Float64],false)},{prop:"Float32",name:"Float32",pkg:"",typ:$funcType([],[$Float32],false)},{prop:"Perm",name:"Perm",pkg:"",typ:$funcType([$Int],[AS],false)},{prop:"Shuffle",name:"Shuffle",pkg:"",typ:$funcType([$Int,AU],[],false)},{prop:"Read",name:"Read",pkg:"",typ:$funcType([AV],[$Int,$error],false)},{prop:"NormFloat64",name:"NormFloat64",pkg:"",typ:$funcType([],[$Float64],false)},{prop:"ExpFloat64",name:"ExpFloat64",pkg:"",typ:$funcType([],[$Float64],false)}];AN.methods=[{prop:"Int63",name:"Int63",pkg:"",typ:$funcType([],[$Int64],false)},{prop:"Uint64",name:"Uint64",pkg:"",typ:$funcType([],[$Uint64],false)},{prop:"Seed",name:"Seed",pkg:"",typ:$funcType([$Int64],[],false)},{prop:"seedPos",name:"seedPos",pkg:"math/rand",typ:$funcType([$Int64,AR],[],false)},{prop:"read",name:"read",pkg:"math/rand",typ:$funcType([AV,AT,AR],[$Int,$error],false)}];F.init("math/rand",[{prop:"tap",name:"tap",embedded:false,exported:false,typ:$Int,tag:""},{prop:"feed",name:"feed",embedded:false,exported:false,typ:$Int,tag:""},{prop:"vec",name:"vec",embedded:false,exported:false,typ:AQ,tag:""}]);H.init([{prop:"Int63",name:"Int63",pkg:"",typ:$funcType([],[$Int64],false)},{prop:"Seed",name:"Seed",pkg:"",typ:$funcType([$Int64],[],false)}]);I.init([{prop:"Int63",name:"Int63",pkg:"",typ:$funcType([],[$Int64],false)},{prop:"Seed",name:"Seed",pkg:"",typ:$funcType([$Int64],[],false)},{prop:"Uint64",name:"Uint64",pkg:"",typ:$funcType([],[$Uint64],false)}]);K.init("math/rand",[{prop:"src",name:"src",embedded:false,exported:false,typ:H,tag:""},{prop:"s64",name:"s64",embedded:false,exported:false,typ:I,tag:""},{prop:"readVal",name:"readVal",embedded:false,exported:false,typ:$Int64,tag:""},{prop:"readPos",name:"readPos",embedded:false,exported:false,typ:$Int8,tag:""}]);AE.init("math/rand",[{prop:"lk",name:"lk",embedded:false,exported:false,typ:B.Mutex,tag:""},{prop:"src",name:"src",embedded:false,exported:false,typ:AM,tag:""}]);$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=B.$init();$s=1;case 1:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$r=A.$init();$s=2;case 2:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}E=$toNativeArray($kindInt64,[new $Int64(-973649357,3952672746),new $Int64(-1065661887,3130416987),new $Int64(324977939,3414273807),new $Int64(1241840476,2806224363),new $Int64(-1477934308,1997590414),new $Int64(2103305448,2402795971),new $Int64(1663160183,1140819369),new $Int64(1120601685,1788868961),new $Int64(1848035537,1089001426),new $Int64(1235702047,873593504),new $Int64(1911387977,581324885),new $Int64(-1654874170,1609182556),new $Int64(1069394745,1241596776),new $Int64(1895445337,1771189259),new $Int64(-1374618802,3467012610),new $Int64(-140526423,2344407434),new $Int64(-1745367887,782467244),new $Int64(26335124,3404933915),new $Int64(1063924276,618867887),new $Int64(-968700782,520164395),new $Int64(-1591572833,1341358184),new $Int64(-1515085039,665794848),new $Int64(1527227641,3183648150),new $Int64(1781176124,696329606),new $Int64(1789146075,4151988961),new $Int64(-2087444114,998951326),new $Int64(-612324923,1364957564),new $Int64(63173359,4090230633),new $Int64(-1498029007,4009697548),new $Int64(248009524,2569622517),new $Int64(778703922,3742421481),new $Int64(-1109106023,1506914633),new $Int64(1738099768,1983412561),new $Int64(236311649,1436266083),new $Int64(-1111517500,3922894967),new $Int64(-1336974714,1792680179),new $Int64(563141142,1188796351),new $Int64(1349617468,405968250),new $Int64(1044074554,433754187),new $Int64(870549669,4073162024),new $Int64(-1094251604,433121399),new $Int64(2451824,4162580594),new $Int64(-137262572,4132415622),new $Int64(-1536231048,3033822028),new $Int64(2016407895,824682382),new $Int64(2366218,3583765414),new $Int64(-624604839,535386927),new $Int64(1637219058,2286693689),new $Int64(1453075389,2968466525),new $Int64(193683513,1351410206),new $Int64(-283806096,1412813499),new $Int64(492736522,4126267639),new $Int64(512765208,2105529399),new $Int64(2132966268,2413882233),new $Int64(947457634,32226200),new $Int64(1149341356,2032329073),new $Int64(106485445,1356518208),new $Int64(-2067810156,3430061722),new $Int64(-1484435135,3820169661),new $Int64(-1665985194,2981816134),new $Int64(1017155588,4184371017),new $Int64(206574701,2119206761),new $Int64(-852109057,2472200560),new $Int64(-560457548,2853524696),new $Int64(1307803389,1681119904),new $Int64(-174986835,95608918),new $Int64(392686347,3690479145),new $Int64(-1205570926,1397922290),new $Int64(-1159314025,1516129515),new $Int64(-320178155,1547420459),new $Int64(1311333971,1470949486),new $Int64(-1953469798,1336785672),new $Int64(-45086614,4131677129),new $Int64(-1392278100,4246329084),new $Int64(-1142500187,3788585631),new $Int64(-66478285,3080389532),new $Int64(-646438364,2215402037),new $Int64(391002300,1171593935),new $Int64(1408774047,1423855166),new $Int64(-519177718,2276716302),new $Int64(-368453140,2068027241),new $Int64(1369359303,3427553297),new $Int64(189241615,3289637845),new $Int64(1057480830,3486407650),new $Int64(-1512910664,3071877822),new $Int64(1159653919,3363620705),new $Int64(-934256930,4159821533),new $Int64(-76621938,1894661),new $Int64(-674493898,1156868282),new $Int64(348271067,776219088),new $Int64(-501428838,2425634259),new $Int64(1716021749,680510161),new $Int64(-574263456,1310101429),new $Int64(1095885995,2964454134),new $Int64(-325695512,3467098407),new $Int64(1990672920,2109628894),new $Int64(-2139648704,1232604732),new $Int64(-1838070714,3261916179),new $Int64(1699175360,434597899),new $Int64(235436061,1624796439),new $Int64(-1626402839,3589632480),new $Int64(1198416575,864579159),new $Int64(-1938748161,1380889830),new $Int64(619206309,2654509477),new $Int64(1419738251,1468209306),new $Int64(-1744284772,100794388),new $Int64(-1191421458,2991674471),new $Int64(-208666741,2224662036),new $Int64(-173659161,977097250),new $Int64(1351320195,726419512),new $Int64(-183459897,1747974366),new $Int64(-753095183,1556430604),new $Int64(-1049492215,1080776742),new $Int64(-385846958,280794874),new $Int64(117767733,919835643),new $Int64(-967009426,3434019658),new $Int64(-1951414480,2461941785),new $Int64(133215641,3615001066),new $Int64(417204809,3103414427),new $Int64(790056561,3380809712),new $Int64(-1267681408,2724693469),new $Int64(547796833,598827710),new $Int64(-1846559452,3452273442),new $Int64(-75778224,649274915),new $Int64(-801301329,2585724112),new $Int64(-1510934263,3165579553),new $Int64(1185578221,2635894283),new $Int64(-52910178,2053289721),new $Int64(985976581,3169337108),new $Int64(1170569632,144717764),new $Int64(1079216270,1383666384),new $Int64(-124804942,681540375),new $Int64(1375448925,537050586),new $Int64(-1964768344,315246468),new $Int64(226402871,849323088),new $Int64(-885062465,45543944),new $Int64(-946445250,2319052083),new $Int64(-40708194,3613090841),new $Int64(560472520,2992171180),new $Int64(-381863169,2068244785),new $Int64(917538188,4239862634),new $Int64(-1369555809,3892253031),new $Int64(720683925,958186149),new $Int64(-423297785,1877702262),new $Int64(1357886971,837674867),new $Int64(1837048883,1507589294),new $Int64(1905518400,873336795),new $Int64(-1879761037,2764496274),new $Int64(-1806480530,4196182374),new $Int64(-1066765755,550964545),new $Int64(818747069,420611474),new $Int64(-1924830376,204265180),new $Int64(1549974541,1787046383),new $Int64(1215581865,3102292318),new $Int64(418321538,1552199393),new $Int64(1243493047,980542004),new $Int64(267284263,3293718720),new $Int64(1179528763,3771917473),new $Int64(599484404,2195808264),new $Int64(252818753,3894702887),new $Int64(-1367475956,2099949527),new $Int64(1424094358,338442522),new $Int64(490737398,637158004),new $Int64(-1727621530,281976339),new $Int64(574970164,3619802330),new $Int64(-431930823,3084554784),new $Int64(-1264611183,4129772886),new $Int64(-2104399043,1680378557),new $Int64(-1621962591,3339087776),new $Int64(1680500332,4220317857),new $Int64(-1935828963,2959322499),new $Int64(1675600481,1488354890),new $Int64(-834863562,3958162143),new $Int64(-1226511573,2773705983),new $Int64(1876039582,225908689),new $Int64(-1183735113,908216283),new $Int64(-605696219,3574646075),new $Int64(-1827723091,1936937569),new $Int64(1519770881,75492235),new $Int64(816689472,1935193178),new $Int64(2142521206,2018250883),new $Int64(455141620,3943126022),new $Int64(-601399488,3066544345),new $Int64(1932392669,2793082663),new $Int64(-1239009361,3297036421),new $Int64(1640597065,2206987825),new $Int64(-553246738,807894872),new $Int64(-1781325307,766252117),new $Int64(2060649606,3833114345),new $Int64(845619743,1255067973),new $Int64(1201145605,741697208),new $Int64(-1476242608,2810093753),new $Int64(1109032642,4229340371),new $Int64(1462188720,1361684224),new $Int64(-1159399429,1906263026),new $Int64(475781207,3904421704),new $Int64(-623537128,1769075545),new $Int64(1062308525,2621599764),new $Int64(1279509432,3431891480),new $Int64(-1742751146,1871896503),new $Int64(128756421,1412808876),new $Int64(1605404688,952876175),new $Int64(-230443691,1824438899),new $Int64(1662295856,1005035476),new $Int64(-156574141,527508597),new $Int64(1288873303,3066806859),new $Int64(565995893,3244940914),new $Int64(-889746188,209092916),new $Int64(-247669406,1242699167),new $Int64(-713830396,456723774),new $Int64(1776978905,1001252870),new $Int64(1468772157,2026725874),new $Int64(857254202,2137562569),new $Int64(765939740,3183366709),new $Int64(1533887628,2612072960),new $Int64(56977098,1727148468),new $Int64(-1197583895,3803658212),new $Int64(1883670356,479946959),new $Int64(685713571,1562982345),new $Int64(-1946242443,1766109365),new $Int64(700596547,3257093788),new $Int64(-184714929,2365720207),new $Int64(93384808,3742754173),new $Int64(-458385235,2878193673),new $Int64(1096135042,2174002182),new $Int64(-834260953,3573511231),new $Int64(-754572527,1760299077),new $Int64(-1375627191,2260779833),new $Int64(-866019274,1452805722),new $Int64(-1229671918,2940011802),new $Int64(1890251082,1886183802),new $Int64(893897673,2514369088),new $Int64(1644345561,3924317791),new $Int64(-1974867432,500935732),new $Int64(1403501753,676580929),new $Int64(-1565912283,1184984890),new $Int64(-691968413,1271474274),new $Int64(-1828754738,3163791473),new $Int64(2051027584,2842487377),new $Int64(1511537551,2170968612),new $Int64(573262976,3535856740),new $Int64(-2053227187,1488599718),new $Int64(-1180531831,3408913763),new $Int64(-2086531912,2501050084),new $Int64(-875130448,1639124157),new $Int64(-2009482504,4088176393),new $Int64(1574896563,3989947576),new $Int64(-165243708,3414355209),new $Int64(-792329287,2275136352),new $Int64(-2057774345,2151835223),new $Int64(-931144933,1654534827),new $Int64(-679921451,377892833),new $Int64(-482716010,660204544),new $Int64(85706799,390828249),new $Int64(-1422172693,3402783878),new $Int64(-1468634160,3717936603),new $Int64(1113532086,2211058823),new $Int64(1564224320,2692150867),new $Int64(1952770442,1928910388),new $Int64(788716862,3931011137),new $Int64(1083670504,1112701047),new $Int64(-68150572,2452299106),new $Int64(-896164822,2337204777),new $Int64(1774877857,273889282),new $Int64(1798719843,1462008793),new $Int64(2138834788,1554494002),new $Int64(-1194967131,182675323),new $Int64(-1598554764,1882802136),new $Int64(589279648,3700220025),new $Int64(381039426,3083431543),new $Int64(-851859191,3622207527),new $Int64(338126939,432729309),new $Int64(-1667470126,2391914317),new $Int64(-1849558151,235747924),new $Int64(2120733629,3088823825),new $Int64(-745079795,2314658321),new $Int64(1165929723,2957634338),new $Int64(501323675,4117056981),new $Int64(1564699815,1482500298),new $Int64(-740826490,840489337),new $Int64(799522364,3483178565),new $Int64(532129761,2074004656),new $Int64(724246478,3643392642),new $Int64(-665153481,1583624461),new $Int64(-885822954,287473085),new $Int64(1667835381,3136843981),new $Int64(1138806821,1266970974),new $Int64(135185781,1998688839),new $Int64(392094735,1492900209),new $Int64(1031326774,1538112737),new $Int64(-2070568842,2207265429),new $Int64(-1886797613,963263315),new $Int64(1671145500,2295892134),new $Int64(1068469660,2002560897),new $Int64(-356250305,1369254035),new $Int64(33436120,3353312708),new $Int64(57507843,947771099),new $Int64(-1945755145,1747061399),new $Int64(1507240140,2047354631),new $Int64(720000810,4165367136),new $Int64(479265078,3388864963),new $Int64(-952181250,286492130),new $Int64(2045622690,2795735007),new $Int64(-715730566,3703961339),new $Int64(-148436487,1797825479),new $Int64(1429039600,1116589674),new $Int64(-1665420098,2593309206),new $Int64(1329049334,3404995677),new $Int64(-750579440,3453462936),new $Int64(1014767077,3016498634),new $Int64(75698599,1650371545),new $Int64(1592007860,212344364),new $Int64(1127766888,3843932156),new $Int64(-748019856,3573129983),new $Int64(-890581831,665897820),new $Int64(1071492673,1675628772),new $Int64(243225682,2831752928),new $Int64(2120298836,1486294219),new $Int64(-1954407413,268782709),new $Int64(-1002123503,4186179080),new $Int64(624342951,1613720397),new $Int64(857179861,2703686015),new $Int64(-911618704,2205342611),new $Int64(-672703993,1411666394),new $Int64(-1528454899,677744900),new $Int64(-1876628533,4172867247),new $Int64(135494707,2163418403),new $Int64(849547544,2841526879),new $Int64(-1117516959,1082141470),new $Int64(-1770111792,4046134367),new $Int64(51415528,2142943655),new $Int64(-249824333,3124627521),new $Int64(998228909,219992939),new $Int64(-1078790951,1756846531),new $Int64(1283749206,1225118210),new $Int64(-525858006,1647770243),new $Int64(-2035959705,444807907),new $Int64(2036369448,3952076173),new $Int64(53201823,1461839639),new $Int64(315761893,3699250910),new $Int64(702974850,1373688981),new $Int64(734022261,147523747),new $Int64(-2047330906,1211276581),new $Int64(1294440951,2548832680),new $Int64(1144696256,1995631888),new $Int64(-1992983070,2011457303),new $Int64(-1351022674,3057425772),new $Int64(667839456,81484597),new $Int64(-1681980888,3646681560),new $Int64(-1372462725,635548515),new $Int64(602489502,2508044581),new $Int64(-1794220117,1014917157),new $Int64(719992433,3214891315),new $Int64(-1294799037,959582252),new $Int64(226415134,3347040449),new $Int64(-362868096,4102971975),new $Int64(397887437,4078022210),new $Int64(-536803826,2851767182),new $Int64(-1398321012,1540160644),new $Int64(-1549098876,1057290595),new $Int64(-112592988,3907769253),new $Int64(579300318,4248952684),new $Int64(-1054576049,132554364),new $Int64(-1085862414,1029351092),new $Int64(697840928,2583007416),new $Int64(298619124,1486185789),new $Int64(55905697,2871589073),new $Int64(2017643612,723203291),new $Int64(146250550,2494333952),new $Int64(-1082993397,2230939180),new $Int64(-1804568072,3943232912),new $Int64(1768732449,2181367922),new $Int64(-729261111,2889274791),new $Int64(1824032949,2046728161),new $Int64(1653899792,1376052477),new $Int64(1022327048,381236993),new $Int64(-1113097690,3188942166),new $Int64(-74480109,350070824),new $Int64(144881592,61758415),new $Int64(-741824226,3492950336),new $Int64(-2030042720,3093818430),new $Int64(-453590535,2962480613),new $Int64(-1912050708,3154871160),new $Int64(-1636478569,3228564679),new $Int64(610731502,888276216),new $Int64(-946702974,3574998604),new $Int64(-1277068380,1967526716),new $Int64(-1556147941,1554691298),new $Int64(-1573024234,339944798),new $Int64(1223764147,1154515356),new $Int64(1825645307,967516237),new $Int64(1546195135,596588202),new $Int64(-1867600880,3764362170),new $Int64(-1655392592,266611402),new $Int64(-393255880,2047856075),new $Int64(-1000726433,21444105),new $Int64(-949424754,3065563181),new $Int64(-232418803,1140663212),new $Int64(633187674,2323741028),new $Int64(2126290159,3103873707),new $Int64(1008658319,2766828349),new $Int64(-485587503,1970872996),new $Int64(1628585413,3766615585),new $Int64(-595148528,2036813414),new $Int64(-1994877121,3105536507),new $Int64(13954645,3396176938),new $Int64(-721402003,1377154485),new $Int64(-61839181,3807014186),new $Int64(543009040,3710110597),new $Int64(-1751425519,916420443),new $Int64(734556788,2103831255),new $Int64(-1766161494,717331943),new $Int64(-1574598896,3550505941),new $Int64(45939673,378749927),new $Int64(-1997615719,611017331),new $Int64(592130075,758907650),new $Int64(1012992349,154266815),new $Int64(-1040454942,1407468696),new $Int64(-1678191250,970098704),new $Int64(-285057486,1971660656),new $Int64(998365243,3332747885),new $Int64(1947089649,1935189867),new $Int64(1510248801,203520055),new $Int64(-1305165746,3916463034),new $Int64(-388598655,3474113316),new $Int64(1036101639,316544223),new $Int64(-1773744891,1650844677),new $Int64(-907191419,4267565603),new $Int64(-1070275024,2501167616),new $Int64(-1520651863,3929401789),new $Int64(-2091360852,337170252),new $Int64(-960502090,2061966842),new $Int64(-304190848,2508461464),new $Int64(-1941471116,2791377107),new $Int64(1240791848,1227227588),new $Int64(1813978778,1709681848),new $Int64(1153692192,3768820575),new $Int64(-1002297449,2887126398),new $Int64(-1447111334,296561685),new $Int64(700300844,3729960077),new $Int64(-1572311344,372833036),new $Int64(2078875613,2409779288),new $Int64(1829161290,555274064),new $Int64(-1105595719,4239804901),new $Int64(1839403216,3723486978),new $Int64(-1649093095,2145871984),new $Int64(-1582765715,3565480803),new $Int64(-1568653827,2197313814),new $Int64(974785092,3613674566),new $Int64(438638731,3042093666),new $Int64(-96556264,3324034321),new $Int64(869420878,3708873369),new $Int64(946682149,1698090092),new $Int64(1618900382,4213940712),new $Int64(-1843479747,2087477361),new $Int64(-1766167800,2407950639),new $Int64(-1296225558,3942568569),new $Int64(-1223900450,4088074412),new $Int64(723260036,2964773675),new $Int64(-673921829,1539178386),new $Int64(1062961552,2694849566),new $Int64(460977733,2120273838),new $Int64(-1604570740,2484608657),new $Int64(880846449,2956190677),new $Int64(1970902366,4223313749),new $Int64(662161910,3502682327),new $Int64(705634754,4133891139),new $Int64(-1031359300,1166449596),new $Int64(1038247601,3362705993),new $Int64(93734798,3892921029),new $Int64(1876124043,786869787),new $Int64(1057490746,1046342263),new $Int64(242763728,493777327),new $Int64(-853573201,3304827646),new $Int64(616460742,125356352),new $Int64(499300063,74094113),new $Int64(-795586925,2500816079),new $Int64(-490248444,514015239),new $Int64(1377565129,543520454),new $Int64(-2039776725,3614531153),new $Int64(2056746300,2356753985),new $Int64(1390062617,2018141668),new $Int64(131272971,2087974891),new $Int64(-1502927041,3166972343),new $Int64(372256200,1517638666),new $Int64(-935275664,173466846),new $Int64(-695774461,4241513471),new $Int64(-1413550842,2783126920),new $Int64(1972004134,4167264826),new $Int64(29260506,3907395640),new $Int64(-910901561,1539634186),new $Int64(-595957298,178241987),new $Int64(-113277636,182168164),new $Int64(-1102530459,2386154934),new $Int64(1379126408,4077374341),new $Int64(-2114679722,1732699140),new $Int64(-421057745,1041306002),new $Int64(1860414813,2068001749),new $Int64(1005320202,3208962910),new $Int64(844054010,697710380),new $Int64(-1509359403,2228431183),new $Int64(-810313977,3554678728),new $Int64(-750989047,173470263),new $Int64(-85886265,3848297795),new $Int64(-926936977,246236185),new $Int64(-1984190461,2066374846),new $Int64(1771673660,312890749),new $Int64(703378057,3573310289),new $Int64(-598851901,143166754),new $Int64(613554316,2081511079),new $Int64(1197802104,486038032),new $Int64(-1906483789,2982218564),new $Int64(364901986,1000939191),new $Int64(1902782651,2750454885),new $Int64(-671844857,3375313137),new $Int64(-1643868040,881302957),new $Int64(-1508784745,2514186393),new $Int64(-1703622845,360024739),new $Int64(1399671872,292500025),new $Int64(1381210821,2276300752),new $Int64(521803381,4069087683),new $Int64(-1938982667,1637778212),new $Int64(720490469,1676670893),new $Int64(1067262482,3855174429),new $Int64(2114075974,2067248671),new $Int64(-89426259,2884561259),new $Int64(-805741095,2456511185),new $Int64(983726246,561175414),new $Int64(-1719489563,432588903),new $Int64(885133709,4059399550),new $Int64(-93096266,1075014784),new $Int64(-1733832628,2728058415),new $Int64(1839142064,1299703678),new $Int64(1262333188,2347583393),new $Int64(1285481956,2468164145),new $Int64(-1158354011,1140014346),new $Int64(2033889184,1936972070),new $Int64(-1737578993,3870530098),new $Int64(-484494257,1717789158),new $Int64(-232997156,1153452491),new $Int64(-990424416,3948827651),new $Int64(-1357145630,2101413152),new $Int64(1495744672,3854091229),new $Int64(83644069,4215565463),new $Int64(-1385277313,1202710438),new $Int64(-564909037,2072216740),new $Int64(705690639,2066751068),new $Int64(-2113583312,173902580),new $Int64(-741983806,142459001),new $Int64(172391592,1889151926),new $Int64(-498943125,3034199774),new $Int64(1618587731,516490102),new $Int64(93114264,3692577783),new $Int64(-2078821353,2953948865),new $Int64(-320938673,4041040923),new $Int64(-1942517976,592046130),new $Int64(-705643640,384297211),new $Int64(-2051649464,265863924),new $Int64(2101717619,1333136237),new $Int64(1499611781,1406273556),new $Int64(1074670496,426305476),new $Int64(125704633,2750898176),new $Int64(488068495,1633944332),new $Int64(2037723464,3236349343),new $Int64(-1703423246,4013676611),new $Int64(1718532237,2265047407),new $Int64(1433593806,875071080),new $Int64(-343047503,1418843655),new $Int64(2009228711,451657300),new $Int64(1229446621,1866374663),new $Int64(1653472867,1551455622),new $Int64(577191481,3560962459),new $Int64(1669204077,3347903778),new $Int64(-298327194,2675874918),new $Int64(-1831355577,2762991672),new $Int64(530492383,3689068477),new $Int64(844089962,4071997905),new $Int64(1508155730,1381702441),new $Int64(2089931018,2373284878),new $Int64(-864267462,2143983064),new $Int64(308739063,1938207195),new $Int64(1754949306,1188152253),new $Int64(1272345009,615870490),new $Int64(742653194,2662252621),new $Int64(1477718295,3839976789),new $Int64(-2091334213,306752547),new $Int64(-1426688067,2162363077),new $Int64(-57052633,2767224719),new $Int64(-1471624099,2628837712),new $Int64(1678405918,2967771969),new $Int64(1694285728,499792248),new $Int64(-1744131281,4285253508),new $Int64(962357072,2856511070),new $Int64(679471692,2526409716),new $Int64(-1793706473,1240875658),new $Int64(-914893422,2577342868),new $Int64(-1001298215,4136853496),new $Int64(-1477114974,2403540137),new $Int64(1372824515,1371410668),new $Int64(-176562048,371758825),new $Int64(-441063112,1528834084),new $Int64(-71688630,1504757260),new $Int64(-1461820072,699052551),new $Int64(-505543539,3347789870),new $Int64(1951619734,3430604759),new $Int64(2119672219,1935601723),new $Int64(966789690,834676166)]);N=L(new AE.ptr(new B.Mutex.ptr(false),$assertType(J(new $Int64(0,1)),AM)));AG=$toNativeArray($kindUint32,[1991057938,0,1611602771,1826899878,1918584482,1969227037,2001281515,2023368125,2039498179,2051788381,2061460127,2069267110,2075699398,2081089314,2085670119,2089610331,2093034710,2096037586,2098691595,2101053571,2103168620,2105072996,2106796166,2108362327,2109791536,2111100552,2112303493,2113412330,2114437283,2115387130,2116269447,2117090813,2117856962,2118572919,2119243101,2119871411,2120461303,2121015852,2121537798,2122029592,2122493434,2122931299,2123344971,2123736059,2124106020,2124456175,2124787725,2125101763,2125399283,2125681194,2125948325,2126201433,2126441213,2126668298,2126883268,2127086657,2127278949,2127460589,2127631985,2127793506,2127945490,2128088244,2128222044,2128347141,2128463758,2128572095,2128672327,2128764606,2128849065,2128925811,2128994934,2129056501,2129110560,2129157136,2129196237,2129227847,2129251929,2129268426,2129277255,2129278312,2129271467,2129256561,2129233410,2129201800,2129161480,2129112170,2129053545,2128985244,2128906855,2128817916,2128717911,2128606255,2128482298,2128345305,2128194452,2128028813,2127847342,2127648860,2127432031,2127195339,2126937058,2126655214,2126347546,2126011445,2125643893,2125241376,2124799783,2124314271,2123779094,2123187386,2122530867,2121799464,2120980787,2120059418,2119015917,2117825402,2116455471,2114863093,2112989789,2110753906,2108037662,2104664315,2100355223,2094642347,2086670106,2074676188,2054300022,2010539237]);AH=$toNativeArray($kindFloat32,[1.7290404663583558e-09,1.2680928529462676e-10,1.689751810696194e-10,1.9862687883343e-10,2.223243117382978e-10,2.4244936613904144e-10,2.601613091623989e-10,2.761198769629658e-10,2.9073962681813725e-10,3.042996965518796e-10,3.169979556627567e-10,3.289802041894774e-10,3.4035738116777736e-10,3.5121602848242617e-10,3.61625090983253e-10,3.7164057942185025e-10,3.813085680537398e-10,3.906675816178762e-10,3.997501218933053e-10,4.0858399996679395e-10,4.1719308563337165e-10,4.255982233303257e-10,4.3381759295968436e-10,4.4186720948857783e-10,4.497613115272969e-10,4.57512583373898e-10,4.6513240481438345e-10,4.726310454117311e-10,4.800177477726209e-10,4.873009773476156e-10,4.944885056978876e-10,5.015873272284921e-10,5.086040477664255e-10,5.155446070048697e-10,5.224146670812502e-10,5.292193350214802e-10,5.359634958068682e-10,5.426517013518151e-10,5.492881705038144e-10,5.558769555769061e-10,5.624218868405251e-10,5.689264614971989e-10,5.75394121238304e-10,5.818281967329142e-10,5.882316855831959e-10,5.946076964136182e-10,6.009590047817426e-10,6.072883862451306e-10,6.135985053390414e-10,6.19892026598734e-10,6.261713370037114e-10,6.324390455780815e-10,6.386973727678935e-10,6.449488165749528e-10,6.511955974453087e-10,6.574400468473129e-10,6.636843297158634e-10,6.699307220081607e-10,6.761814441702541e-10,6.824387166481927e-10,6.887046488657234e-10,6.949815167800466e-10,7.012714853260604e-10,7.075767749498141e-10,7.13899661608508e-10,7.202424212593428e-10,7.266072743483676e-10,7.329966078550854e-10,7.394128087589991e-10,7.458582640396116e-10,7.523354716987285e-10,7.588469852493063e-10,7.653954137154528e-10,7.719834771435785e-10,7.786139510912449e-10,7.852897221383159e-10,7.920137878869582e-10,7.987892014504894e-10,8.056192379868321e-10,8.125072836762115e-10,8.194568912323064e-10,8.264716688799467e-10,8.3355555791087e-10,8.407127216614185e-10,8.479473234679347e-10,8.552640262671218e-10,8.626675485068347e-10,8.701631637464402e-10,8.777562010564566e-10,8.854524335966119e-10,8.932581896381464e-10,9.011799639857543e-10,9.092249730890956e-10,9.174008219758889e-10,9.25715837318819e-10,9.341788453909317e-10,9.42799727177146e-10,9.515889187738935e-10,9.605578554783278e-10,9.697193048552322e-10,9.790869226478094e-10,9.886760299337993e-10,9.985036131254788e-10,1.008588212947359e-09,1.0189509236369076e-09,1.0296150598776421e-09,1.040606933955246e-09,1.0519566329136865e-09,1.0636980185552147e-09,1.0758701707302976e-09,1.0885182755160372e-09,1.101694735439196e-09,1.115461056855338e-09,1.1298901814171813e-09,1.1450695946990663e-09,1.1611052119775422e-09,1.178127595480305e-09,1.1962995039027646e-09,1.2158286599728285e-09,1.2369856250415978e-09,1.2601323318151003e-09,1.2857697129220469e-09,1.3146201904845611e-09,1.3477839955200466e-09,1.3870635751089821e-09,1.43574030442295e-09,1.5008658760251592e-09,1.6030947680434338e-09]);AI=$toNativeArray($kindFloat32,[1,0.963599681854248,0.9362826943397522,0.9130436182022095,0.8922816514968872,0.8732430338859558,0.8555005788803101,0.8387836217880249,0.8229072093963623,0.8077383041381836,0.7931770086288452,0.7791460752487183,0.7655841708183289,0.7524415850639343,0.7396772503852844,0.7272568941116333,0.7151514887809753,0.7033361196517944,0.6917891502380371,0.6804918646812439,0.6694276928901672,0.6585819721221924,0.6479418277740479,0.6374954581260681,0.6272324919700623,0.6171433925628662,0.6072195172309875,0.5974531769752502,0.5878370404243469,0.5783646702766418,0.5690299868583679,0.5598273873329163,0.550751805305481,0.5417983531951904,0.5329626798629761,0.5242405533790588,0.5156282186508179,0.5071220397949219,0.49871864914894104,0.4904148280620575,0.48220765590667725,0.47409430146217346,0.466072142124176,0.45813870429992676,0.45029163360595703,0.44252872467041016,0.4348478317260742,0.42724698781967163,0.41972434520721436,0.41227802634239197,0.40490642189979553,0.39760786294937134,0.3903807997703552,0.3832238018512726,0.3761354684829712,0.3691144585609436,0.36215949058532715,0.3552693724632263,0.3484429717063904,0.3416791558265686,0.33497685194015503,0.32833510637283325,0.3217529058456421,0.3152293860912323,0.30876362323760986,0.3023548424243927,0.2960021495819092,0.2897048592567444,0.28346219658851624,0.2772735059261322,0.271138072013855,0.2650552988052368,0.25902456045150757,0.25304529070854187,0.24711695313453674,0.24123899638652802,0.23541094362735748,0.22963231801986694,0.22390270233154297,0.21822164952754974,0.21258877217769623,0.20700371265411377,0.20146611332893372,0.1959756463766098,0.19053204357624054,0.18513499200344086,0.17978426814079285,0.1744796335697174,0.16922089457511902,0.16400785744190216,0.1588403731584549,0.15371830761432648,0.14864157140254974,0.14361007511615753,0.13862377405166626,0.13368265330791473,0.12878671288490295,0.12393598258495331,0.11913054436445236,0.11437050998210907,0.10965602099895477,0.1049872562289238,0.10036443918943405,0.09578784555196762,0.09125780314207077,0.08677466958761215,0.08233889937400818,0.07795098423957825,0.07361150532960892,0.06932111829519272,0.06508058309555054,0.06089077144861221,0.05675266310572624,0.05266740173101425,0.048636294901371,0.044660862535238266,0.040742866694927216,0.03688438981771469,0.03308788686990738,0.029356317594647408,0.025693291798233986,0.02210330404341221,0.018592102453112602,0.015167297795414925,0.011839478276669979,0.0086244847625494,0.005548994988203049,0.0026696291752159595]);AJ=$toNativeArray($kindUint32,[3801129273,0,2615860924,3279400049,3571300752,3733536696,3836274812,3906990442,3958562475,3997804264,4028649213,4053523342,4074002619,4091154507,4105727352,4118261130,4129155133,4138710916,4147160435,4154685009,4161428406,4167506077,4173011791,4178022498,4182601930,4186803325,4190671498,4194244443,4197554582,4200629752,4203493986,4206168142,4208670408,4211016720,4213221098,4215295924,4217252177,4219099625,4220846988,4222502074,4224071896,4225562770,4226980400,4228329951,4229616109,4230843138,4232014925,4233135020,4234206673,4235232866,4236216336,4237159604,4238064994,4238934652,4239770563,4240574564,4241348362,4242093539,4242811568,4243503822,4244171579,4244816032,4245438297,4246039419,4246620374,4247182079,4247725394,4248251127,4248760037,4249252839,4249730206,4250192773,4250641138,4251075867,4251497493,4251906522,4252303431,4252688672,4253062674,4253425844,4253778565,4254121205,4254454110,4254777611,4255092022,4255397640,4255694750,4255983622,4256264513,4256537670,4256803325,4257061702,4257313014,4257557464,4257795244,4258026541,4258251531,4258470383,4258683258,4258890309,4259091685,4259287526,4259477966,4259663135,4259843154,4260018142,4260188212,4260353470,4260514019,4260669958,4260821380,4260968374,4261111028,4261249421,4261383632,4261513736,4261639802,4261761900,4261880092,4261994441,4262105003,4262211835,4262314988,4262414513,4262510454,4262602857,4262691764,4262777212,4262859239,4262937878,4263013162,4263085118,4263153776,4263219158,4263281289,4263340187,4263395872,4263448358,4263497660,4263543789,4263586755,4263626565,4263663224,4263696735,4263727099,4263754314,4263778377,4263799282,4263817020,4263831582,4263842955,4263851124,4263856071,4263857776,4263856218,4263851370,4263843206,4263831695,4263816804,4263798497,4263776735,4263751476,4263722676,4263690284,4263654251,4263614520,4263571032,4263523724,4263472530,4263417377,4263358192,4263294892,4263227394,4263155608,4263079437,4262998781,4262913534,4262823581,4262728804,4262629075,4262524261,4262414220,4262298801,4262177846,4262051187,4261918645,4261780032,4261635148,4261483780,4261325704,4261160681,4260988457,4260808763,4260621313,4260425802,4260221905,4260009277,4259787550,4259556329,4259315195,4259063697,4258801357,4258527656,4258242044,4257943926,4257632664,4257307571,4256967906,4256612870,4256241598,4255853155,4255446525,4255020608,4254574202,4254106002,4253614578,4253098370,4252555662,4251984571,4251383021,4250748722,4250079132,4249371435,4248622490,4247828790,4246986404,4246090910,4245137315,4244119963,4243032411,4241867296,4240616155,4239269214,4237815118,4236240596,4234530035,4232664930,4230623176,4228378137,4225897409,4223141146,4220059768,4216590757,4212654085,4208145538,4202926710,4196809522,4189531420,4180713890,4169789475,4155865042,4137444620,4111806704,4073393724,4008685917,3873074895]);AK=$toNativeArray($kindFloat32,[2.0249555365836613e-09,1.4866739783681027e-11,2.4409616689036184e-11,3.1968806074589295e-11,3.844677007314168e-11,4.42282044321729e-11,4.951644302919611e-11,5.443358958023836e-11,5.905943789574764e-11,6.34494193296753e-11,6.764381416113352e-11,7.167294535648239e-11,7.556032188826833e-11,7.932458162551725e-11,8.298078890689453e-11,8.654132271912474e-11,9.001651507523079e-11,9.341507428706208e-11,9.674443190998971e-11,1.0001099254308699e-10,1.0322031424037093e-10,1.0637725422757427e-10,1.0948611461891744e-10,1.1255067711157807e-10,1.1557434870246297e-10,1.1856014781042035e-10,1.2151082917633005e-10,1.2442885610752796e-10,1.2731647680563896e-10,1.3017574518325858e-10,1.330085347417409e-10,1.3581656632677408e-10,1.386014220061682e-10,1.413645728254309e-10,1.4410737880776736e-10,1.4683107507629245e-10,1.4953686899854546e-10,1.522258291641876e-10,1.5489899640730442e-10,1.575573282952547e-10,1.6020171300645814e-10,1.628330109637588e-10,1.6545202707884954e-10,1.68059510752272e-10,1.7065616975120435e-10,1.73242697965037e-10,1.758197337720091e-10,1.783878739169964e-10,1.8094774290045024e-10,1.834998542005195e-10,1.8604476292871652e-10,1.8858298256319017e-10,1.9111498494872592e-10,1.9364125580789704e-10,1.9616222535212557e-10,1.9867835154840918e-10,2.011900368525943e-10,2.0369768372052732e-10,2.062016807302669e-10,2.0870240258208383e-10,2.1120022397624894e-10,2.136955057352452e-10,2.1618855317040442e-10,2.1867974098199738e-10,2.2116936060356807e-10,2.2365774510202385e-10,2.2614519978869652e-10,2.2863201609713002e-10,2.3111849933865614e-10,2.3360494094681883e-10,2.3609159072179864e-10,2.3857874009713953e-10,2.4106666662859766e-10,2.4355562011635357e-10,2.460458781161634e-10,2.485376904282077e-10,2.5103127909709144e-10,2.5352694943414633e-10,2.560248957284017e-10,2.585253955356137e-10,2.610286709003873e-10,2.6353494386732734e-10,2.6604446423661443e-10,2.6855745405285347e-10,2.71074163116225e-10,2.7359478571575835e-10,2.7611959940720965e-10,2.786487707240326e-10,2.8118254946640775e-10,2.8372118543451563e-10,2.8626484516180994e-10,2.8881380620404684e-10,2.9136826285025563e-10,2.9392840938946563e-10,2.96494523377433e-10,2.990667713476114e-10,3.016454031001814e-10,3.042306406797479e-10,3.068226783753403e-10,3.09421765987139e-10,3.12028125559749e-10,3.1464195138219964e-10,3.17263521010247e-10,3.1989300097734485e-10,3.225306410836737e-10,3.2517669112941405e-10,3.2783134540359526e-10,3.3049485370639786e-10,3.3316743808242677e-10,3.3584937608743815e-10,3.385408342548857e-10,3.4124211789610115e-10,3.4395342130011386e-10,3.4667499426710435e-10,3.494071143528288e-10,3.521500313574677e-10,3.54903967325626e-10,3.576691720574843e-10,3.6044595086437425e-10,3.632345535464765e-10,3.660352021483959e-10,3.688482297370399e-10,3.716738583570134e-10,3.7451239331964814e-10,3.773641121807003e-10,3.802292924959261e-10,3.831082673322328e-10,3.8600128648980103e-10,3.8890865527996255e-10,3.9183070676962473e-10,3.9476774627011935e-10,3.977200790927782e-10,4.006880383045086e-10,4.0367195697221803e-10,4.066721681628138e-10,4.0968900494320337e-10,4.127228558914453e-10,4.15774054074447e-10,4.188429603146915e-10,4.2192993543466173e-10,4.25035395767992e-10,4.2815970213716525e-10,4.313032986313914e-10,4.3446651831757777e-10,4.376498607960855e-10,4.408536868893975e-10,4.4407846844229937e-10,4.4732464954400086e-10,4.5059267428371186e-10,4.538830145062178e-10,4.5719619756745544e-10,4.605326675566346e-10,4.638929240741163e-10,4.672775499869886e-10,4.706869893844612e-10,4.74121908400349e-10,4.775827511238617e-10,4.810701836888143e-10,4.845848167178701e-10,4.881271498113904e-10,4.916979601254923e-10,4.952977472605369e-10,4.989272883726414e-10,5.025872495956207e-10,5.062783525744408e-10,5.100013189540675e-10,5.13756870379467e-10,5.175458395179078e-10,5.21369003525507e-10,5.252272505806843e-10,5.29121357839557e-10,5.330522134805449e-10,5.3702081670437e-10,5.41028055689452e-10,5.450749851476644e-10,5.491624932574268e-10,5.532918012640664e-10,5.574638528571541e-10,5.616799247931681e-10,5.659410717839819e-10,5.702485705860738e-10,5.746036979559221e-10,5.790077306500052e-10,5.83462111958255e-10,5.879682296594524e-10,5.925275825546805e-10,5.971417249561739e-10,6.01812211176167e-10,6.065408175714992e-10,6.113292094767075e-10,6.16179329782085e-10,6.21092954844471e-10,6.260721940876124e-10,6.311191569352559e-10,6.362359528111483e-10,6.414249686947926e-10,6.466885360545405e-10,6.520292639144998e-10,6.574497612987784e-10,6.629528592760892e-10,6.685415554485985e-10,6.742187919073217e-10,6.799880103436351e-10,6.858525969377638e-10,6.918161599145378e-10,6.978825850545434e-10,7.040559801829716e-10,7.103406751696184e-10,7.167412219288849e-10,7.232625609532306e-10,7.2990985477972e-10,7.366885990123251e-10,7.436047333442275e-10,7.506645305355164e-10,7.57874762946642e-10,7.652426470272644e-10,7.727759543385559e-10,7.804830115532013e-10,7.883728114777e-10,7.964550685635174e-10,8.047402189070851e-10,8.132396422944055e-10,8.219657177122031e-10,8.309318788590758e-10,8.401527806789488e-10,8.496445214056791e-10,8.594246980742071e-10,8.695127395874636e-10,8.799300732498239e-10,8.90700457834015e-10,9.01850316648023e-10,9.134091816243028e-10,9.254100818978372e-10,9.37890431984556e-10,9.508922538259412e-10,9.64463842123564e-10,9.78660263939446e-10,9.935448019859905e-10,1.0091912860943353e-09,1.0256859805934937e-09,1.0431305819125214e-09,1.0616465484503124e-09,1.0813799855569073e-09,1.1025096391392708e-09,1.1252564435793033e-09,1.149898620766976e-09,1.176793218427008e-09,1.2064089727203964e-09,1.2393785997488749e-09,1.2765849488616254e-09,1.319313880365769e-09,1.36954347862428e-09,1.4305497897382224e-09,1.5083649884672923e-09,1.6160853766322703e-09,1.7921247819074893e-09]);AL=$toNativeArray($kindFloat32,[1,0.9381436705589294,0.900469958782196,0.8717043399810791,0.847785472869873,0.8269932866096497,0.8084216713905334,0.7915276288986206,0.7759568691253662,0.7614634037017822,0.7478685975074768,0.7350381016731262,0.7228676676750183,0.7112747430801392,0.7001926302909851,0.6895664930343628,0.6793505549430847,0.669506311416626,0.6600008606910706,0.6508058309555054,0.6418967247009277,0.633251965045929,0.62485271692276,0.6166821718215942,0.608725368976593,0.6009689569473267,0.5934008955955505,0.5860103368759155,0.5787873864173889,0.5717230439186096,0.5648092031478882,0.5580382943153381,0.5514034032821655,0.5448982119560242,0.5385168790817261,0.5322538614273071,0.526104211807251,0.5200631618499756,0.5141264200210571,0.5082897543907166,0.5025495290756226,0.4969019889831543,0.4913438558578491,0.4858720004558563,0.48048335313796997,0.4751752018928528,0.4699448347091675,0.4647897481918335,0.4597076177597046,0.4546961486339569,0.4497532546520233,0.44487687945365906,0.4400651156902313,0.4353161156177521,0.4306281507015228,0.42599955201148987,0.42142874002456665,0.4169141948223114,0.4124544560909271,0.40804818272590637,0.4036940038204193,0.39939069747924805,0.3951369822025299,0.39093172550201416,0.38677382469177246,0.38266217708587646,0.378595769405365,0.37457355856895447,0.37059465050697327,0.366658091545105,0.362762987613678,0.358908474445343,0.35509374737739563,0.35131800174713135,0.3475804924964905,0.34388044476509094,0.34021714329719543,0.33658990263938904,0.3329980671405792,0.3294409513473511,0.32591795921325684,0.32242849469184875,0.3189719021320343,0.3155476748943329,0.31215524673461914,0.3087940812110901,0.30546361207962036,0.30216339230537415,0.29889291524887085,0.29565170407295227,0.2924392819404602,0.2892552316188812,0.28609907627105713,0.2829704284667969,0.27986884117126465,0.2767939269542694,0.2737452983856201,0.2707225978374481,0.26772540807724,0.26475343108177185,0.2618062496185303,0.258883535861969,0.2559850215911865,0.25311028957366943,0.25025907158851624,0.24743106961250305,0.2446259707212448,0.24184346199035645,0.23908329010009766,0.23634515702724457,0.2336287796497345,0.23093391954898834,0.22826029360294342,0.22560766339302063,0.22297576069831848,0.22036437690258026,0.21777324378490448,0.21520215272903442,0.212650865316391,0.21011915802955627,0.20760682225227356,0.20511364936828613,0.20263944566249847,0.20018397271633148,0.19774706661701202,0.1953285187482834,0.19292815029621124,0.19054576754570007,0.18818120658397675,0.18583425879478455,0.18350479006767273,0.18119260668754578,0.17889754474163055,0.17661945521831512,0.17435817420482635,0.1721135377883911,0.16988539695739746,0.16767361760139465,0.16547803580760956,0.16329853236675262,0.16113494336605072,0.1589871346950531,0.15685498714447021,0.15473836660385132,0.15263713896274567,0.1505511850118637,0.1484803706407547,0.14642459154129028,0.1443837285041809,0.14235764741897583,0.1403462439775467,0.13834942877292633,0.136367067694664,0.13439907133579254,0.1324453204870224,0.1305057406425476,0.12858019769191742,0.12666863203048706,0.12477091699838638,0.12288697808980942,0.1210167184472084,0.11916005611419678,0.11731690168380737,0.11548716574907303,0.11367076635360718,0.11186762899160385,0.11007767915725708,0.1083008274435997,0.10653700679540634,0.10478614270687103,0.1030481606721878,0.10132300108671188,0.0996105819940567,0.09791085124015808,0.09622374176979065,0.09454918652772903,0.09288713335990906,0.09123751521110535,0.08960027992725372,0.08797537535429001,0.08636274188756943,0.0847623273730278,0.08317409455776215,0.08159798383712769,0.08003395050764084,0.07848194986581802,0.07694194465875626,0.07541389018297195,0.07389774918556213,0.07239348441362381,0.070901058614254,0.06942043453454971,0.06795158982276917,0.06649449467658997,0.06504911929368973,0.06361543387174606,0.06219341605901718,0.06078304722905159,0.0593843050301075,0.05799717456102371,0.05662164092063904,0.05525768920779228,0.05390531197190285,0.05256449431180954,0.05123523622751236,0.04991753399372101,0.04861138388514519,0.047316793352365494,0.04603376239538193,0.044762298464775085,0.04350241273641586,0.04225412383675575,0.04101744294166565,0.039792392402887344,0.03857899457216263,0.03737728297710419,0.03618728369474411,0.03500903770327568,0.03384258225560188,0.0326879620552063,0.031545232981443405,0.030414443463087082,0.0292956605553627,0.028188949450850487,0.027094384655356407,0.02601204626262188,0.024942025542259216,0.023884421214461327,0.022839335724711418,0.021806888282299042,0.020787203684449196,0.019780423492193222,0.018786700442433357,0.017806200310587883,0.016839107498526573,0.015885621309280396,0.014945968054234982,0.01402039173990488,0.013109165243804455,0.012212592177093029,0.011331013403832912,0.010464809834957123,0.009614413604140282,0.008780314587056637,0.007963077165186405,0.007163353264331818,0.0063819061033427715,0.005619642324745655,0.004877655766904354,0.004157294984906912,0.003460264764726162,0.0027887988835573196,0.0021459676790982485,0.001536299823783338,0.0009672692976891994,0.0004541343660093844]);}return;}if($f===undefined){$f={$blk:$init};}$f.$s=$s;$f.$r=$r;return $f;};$pkg.$init=$init;return $pkg;})(); $packages["github.com/88250/lute/ast"]=(function(){var $pkg={},$init,B,I,J,K,L,C,D,A,E,F,G,H,M,R,S,X,AB,AC,AD,AE,AF,AG,AH,AI,AJ,AK,Q,Y,Z,O,P,T,U,V,W,AA;B=$packages["bytes"];I=$packages["github.com/88250/lute/editor"];J=$packages["github.com/88250/lute/html"];K=$packages["github.com/88250/lute/lex"];L=$packages["github.com/88250/lute/util"];C=$packages["math/rand"];D=$packages["sort"];A=$packages["strconv"];E=$packages["strings"];F=$packages["sync"];G=$packages["time"];H=$packages["unicode/utf8"];M=$pkg.WalkStatus=$newType(4,$kindInt,"ast.WalkStatus",true,"github.com/88250/lute/ast",true,null);R=$pkg.Node=$newType(0,$kindStruct,"ast.Node",true,"github.com/88250/lute/ast",true,function(ID_,Box_,Path_,Spec_,Type_,Parent_,Previous_,Next_,FirstChild_,LastChild_,Children_,Tokens_,TypeStr_,Data_,Close_,LastLineBlank_,LastLineChecked_,CodeMarkerLen_,IsFencedCodeBlock_,CodeBlockFenceChar_,CodeBlockFenceLen_,CodeBlockFenceOffset_,CodeBlockOpenFence_,CodeBlockInfo_,CodeBlockCloseFence_,HtmlBlockType_,ListData_,TaskListItemChecked_,TableAligns_,TableCellAlign_,TableCellContentWidth_,TableCellContentMaxWidth_,LinkType_,LinkRefLabel_,HeadingLevel_,HeadingSetext_,HeadingNormalizedID_,MathBlockDollarOffset_,FootnotesRefLabel_,FootnotesRefId_,FootnotesRefs_,HtmlEntityTokens_,KramdownIAL_,Properties_,TextMarkType_,TextMarkAHref_,TextMarkATitle_,TextMarkInlineMathContent_,TextMarkInlineMemoContent_,TextMarkBlockRefID_,TextMarkBlockRefSubtype_,TextMarkFileAnnotationRefID_,TextMarkTextContent_,AttributeViewID_,AttributeViewType_,CustomBlockFenceOffset_,CustomBlockInfo_){this.$val=this;if(arguments.length===0){this.ID="";this.Box="";this.Path="";this.Spec="";this.Type=0;this.Parent=AB.nil;this.Previous=AB.nil;this.Next=AB.nil;this.FirstChild=AB.nil;this.LastChild=AB.nil;this.Children=AE.nil;this.Tokens=AF.nil;this.TypeStr="";this.Data="";this.Close=false;this.LastLineBlank=false;this.LastLineChecked=false;this.CodeMarkerLen=0;this.IsFencedCodeBlock=false;this.CodeBlockFenceChar=0;this.CodeBlockFenceLen=0;this.CodeBlockFenceOffset=0;this.CodeBlockOpenFence=AF.nil;this.CodeBlockInfo=AF.nil;this.CodeBlockCloseFence=AF.nil;this.HtmlBlockType=0;this.ListData=AG.nil;this.TaskListItemChecked=false;this.TableAligns=AH.nil;this.TableCellAlign=0;this.TableCellContentWidth=0;this.TableCellContentMaxWidth=0;this.LinkType=0;this.LinkRefLabel=AF.nil;this.HeadingLevel=0;this.HeadingSetext=false;this.HeadingNormalizedID="";this.MathBlockDollarOffset=0;this.FootnotesRefLabel=AF.nil;this.FootnotesRefId="";this.FootnotesRefs=AE.nil;this.HtmlEntityTokens=AF.nil;this.KramdownIAL=AI.nil;this.Properties=false;this.TextMarkType="";this.TextMarkAHref="";this.TextMarkATitle="";this.TextMarkInlineMathContent="";this.TextMarkInlineMemoContent="";this.TextMarkBlockRefID="";this.TextMarkBlockRefSubtype="";this.TextMarkFileAnnotationRefID="";this.TextMarkTextContent="";this.AttributeViewID="";this.AttributeViewType="";this.CustomBlockFenceOffset=0;this.CustomBlockInfo="";return;}this.ID=ID_;this.Box=Box_;this.Path=Path_;this.Spec=Spec_;this.Type=Type_;this.Parent=Parent_;this.Previous=Previous_;this.Next=Next_;this.FirstChild=FirstChild_;this.LastChild=LastChild_;this.Children=Children_;this.Tokens=Tokens_;this.TypeStr=TypeStr_;this.Data=Data_;this.Close=Close_;this.LastLineBlank=LastLineBlank_;this.LastLineChecked=LastLineChecked_;this.CodeMarkerLen=CodeMarkerLen_;this.IsFencedCodeBlock=IsFencedCodeBlock_;this.CodeBlockFenceChar=CodeBlockFenceChar_;this.CodeBlockFenceLen=CodeBlockFenceLen_;this.CodeBlockFenceOffset=CodeBlockFenceOffset_;this.CodeBlockOpenFence=CodeBlockOpenFence_;this.CodeBlockInfo=CodeBlockInfo_;this.CodeBlockCloseFence=CodeBlockCloseFence_;this.HtmlBlockType=HtmlBlockType_;this.ListData=ListData_;this.TaskListItemChecked=TaskListItemChecked_;this.TableAligns=TableAligns_;this.TableCellAlign=TableCellAlign_;this.TableCellContentWidth=TableCellContentWidth_;this.TableCellContentMaxWidth=TableCellContentMaxWidth_;this.LinkType=LinkType_;this.LinkRefLabel=LinkRefLabel_;this.HeadingLevel=HeadingLevel_;this.HeadingSetext=HeadingSetext_;this.HeadingNormalizedID=HeadingNormalizedID_;this.MathBlockDollarOffset=MathBlockDollarOffset_;this.FootnotesRefLabel=FootnotesRefLabel_;this.FootnotesRefId=FootnotesRefId_;this.FootnotesRefs=FootnotesRefs_;this.HtmlEntityTokens=HtmlEntityTokens_;this.KramdownIAL=KramdownIAL_;this.Properties=Properties_;this.TextMarkType=TextMarkType_;this.TextMarkAHref=TextMarkAHref_;this.TextMarkATitle=TextMarkATitle_;this.TextMarkInlineMathContent=TextMarkInlineMathContent_;this.TextMarkInlineMemoContent=TextMarkInlineMemoContent_;this.TextMarkBlockRefID=TextMarkBlockRefID_;this.TextMarkBlockRefSubtype=TextMarkBlockRefSubtype_;this.TextMarkFileAnnotationRefID=TextMarkFileAnnotationRefID_;this.TextMarkTextContent=TextMarkTextContent_;this.AttributeViewID=AttributeViewID_;this.AttributeViewType=AttributeViewType_;this.CustomBlockFenceOffset=CustomBlockFenceOffset_;this.CustomBlockInfo=CustomBlockInfo_;});S=$pkg.ListData=$newType(0,$kindStruct,"ast.ListData",true,"github.com/88250/lute/ast",true,function(Typ_,Tight_,BulletChar_,Start_,Delimiter_,Padding_,MarkerOffset_,Checked_,Marker_,Num_){this.$val=this;if(arguments.length===0){this.Typ=0;this.Tight=false;this.BulletChar=0;this.Start=0;this.Delimiter=0;this.Padding=0;this.MarkerOffset=0;this.Checked=false;this.Marker=AF.nil;this.Num=0;return;}this.Typ=Typ_;this.Tight=Tight_;this.BulletChar=BulletChar_;this.Start=Start_;this.Delimiter=Delimiter_;this.Padding=Padding_;this.MarkerOffset=MarkerOffset_;this.Checked=Checked_;this.Marker=Marker_;this.Num=Num_;});X=$pkg.NodeType=$newType(4,$kindInt,"ast.NodeType",true,"github.com/88250/lute/ast",true,null);AB=$ptrType(R);AC=$sliceType($Int32);AD=$sliceType($String);AE=$sliceType(AB);AF=$sliceType($Uint8);AG=$ptrType(S);AH=$sliceType($Int);AI=$sliceType(AD);AJ=$sliceType(X);AK=$mapType($String,$String);O=function(b,c){var{b,c,d,$s,$r,$c}=$restore(this,{b,c});$s=$s||0;s:while(true){switch($s){case 0:d=P(b,c);$s=1;case 1:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}d;$s=-1;return;}return;}var $f={$blk:O,$c:true,$r,b,c,d,$s};return $f;};$pkg.Walk=O;P=function(b,c){var{b,c,d,e,f,g,h,$s,$r,$c}=$restore(this,{b,c});$s=$s||0;s:while(true){switch($s){case 0:d=0;e=c(b,true);$s=1;case 1:if($c){$c=false;e=e.$blk();}if(e&&e.$blk!==undefined){break s;}d=e;if(d===0){$s=-1;return d;}if(!((d===1))){$s=2;continue;}$s=3;continue;case 2:f=b.FirstChild;case 4:if(!(!(AB.nil===f))){$s=5;continue;}g=P(f,c);$s=6;case 6:if($c){$c=false;g=g.$blk();}if(g&&g.$blk!==undefined){break s;}d=g;if(0===d){d=0;$s=-1;return d;}f=f.Next;$s=4;continue;case 5:case 3:h=c(b,false);$s=7;case 7:if($c){$c=false;h=h.$blk();}if(h&&h.$blk!==undefined){break s;}d=h;$s=-1;return d;}return;}var $f={$blk:P,$c:true,$r,b,c,d,e,f,g,h,$s};return $f;};X.prototype.String=function(){var b,c,d,e,f;b=this.$val;c=(d=$mapIndex(Q,X.keyFor(b)),d!==undefined?[d.v,true]:["",false]);e=c[0];f=c[1];if(f){return e;}return"NodeType("+A.FormatInt((new $Int64(0,b)),10)+")";};$ptrType(X).prototype.String=function(){return new X(this.$get()).String();};T=function(){var{b,c,d,e,f,$s,$r,$c}=$restore(this,{});$s=$s||0;s:while(true){switch($s){case 0:if($pkg.Testing){$s=-1;return"20060102150405-1a2b3c4";}b=G.Now();$s=1;case 1:if($c){$c=false;b=b.$blk();}if(b&&b.$blk!==undefined){break s;}c=$clone(b,G.Time);d=$clone(c,G.Time).Format("20060102150405");$s=2;case 2:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}e=W(7);$s=3;case 3:if($c){$c=false;e=e.$blk();}if(e&&e.$blk!==undefined){break s;}f=d+"-"+e;$s=4;case 4:return f;}return;}var $f={$blk:T,$c:true,$r,b,c,d,e,f,$s};return $f;};$pkg.NewNodeID=T;U=function(b){var b,c,d,e,f,g,h,i,j,k,l,m;if(!((22===b.length))){return false;}if(!((1===E.Count(b,"-")))){return false;}c=E.Split(b,"-");d=(0>=c.$length?($throwRuntimeError("index out of range"),undefined):c.$array[c.$offset+0]);if(!((14===d.length))){return false;}e=d;f=0;while(true){if(!(f=h)){return false;}f+=g[1];}i=(1>=c.$length?($throwRuntimeError("index out of range"),undefined):c.$array[c.$offset+1]);if(!((7===i.length))){return false;}j=i;k=0;while(true){if(!(k=m)&&!(48<=m&&57>=m)){return false;}k+=l[1];}return true;};$pkg.IsNodeIDPattern=U;V=function(){var{b,c,d,e,f,$s,$r,$c}=$restore(this,{});$s=$s||0;s:while(true){switch($s){case 0:b=G.Now();$s=1;case 1:if($c){$c=false;b=b.$blk();}if(b&&b.$blk!==undefined){break s;}c=$clone(b,G.Time).UTC();$s=2;case 2:if($c){$c=false;c=c.$blk();}if(c&&c.$blk!==undefined){break s;}d=$clone(c,G.Time).UnixNano();$s=3;case 3:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}$r=C.Seed(d);$s=4;case 4:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}e=0;while(true){if(!(e<1024)){break;}f=new X(e).String();(Y||$throwRuntimeError("assignment to entry in nil map")).set($String.keyFor(f),{k:f,v:e});e=e+(1)>>0;}$s=-1;return;}return;}var $f={$blk:V,$c:true,$r,b,c,d,e,f,$s};return $f;};W=function(b){var{b,c,d,e,f,g,h,i,$s,$r,$c}=$restore(this,{b});$s=$s||0;s:while(true){switch($s){case 0:c=(new AC($stringToRunes("abcdefghijklmnopqrstuvwxyz0123456789")));d=$makeSlice(AC,b);e=d;f=0;case 1:if(!(f=d.$length)?($throwRuntimeError("index out of range"),undefined):d.$array[d.$offset+g]=(h=i,((h<0||h>=c.$length)?($throwRuntimeError("index out of range"),undefined):c.$array[c.$offset+h])));f++;$s=1;continue;case 2:$s=-1;return($runesToString(d));}return;}var $f={$blk:W,$c:true,$r,b,c,d,e,f,g,h,i,$s};return $f;};R.ptr.prototype.Marker=function(b){var b,c,d,e;c="";d=this;e=d.Type;if((e===(461))||(e===(462))){if(b){c="#";return c;}}else if((e===(18))||(e===(19))){if(b){c="*";return c;}}else if((e===(20))||(e===(21))){if(b){c="_";return c;}}else if((e===(23))||(e===(24))){if(b){c="**";return c;}}else if((e===(25))||(e===(26))){if(b){c="__";return c;}}else if((e===(104))||(e===(105))){if(b){c="~~";return c;}}else if((e===(486))||(e===(487))){if(b){c="^";return c;}}else if((e===(491))||(e===(492))){if(b){c="~";return c;}}else if((e===(305))||(e===(307))){if(b){c="$";return c;}}else if(e===(516)){if(b){c="";return c;}}else if(e===(517)){if(b){c="";return c;}}else if(e===(521)){if(b){c="";return c;}}else if(e===(522)){if(b){c="";return c;}}else if((e===(453))||(e===(454))){if(b){c="==";return c;}}else if(e===(35)){if(b){c="!";return c;}}else if(e===(36)){if(b){c="[";return c;}}else if(e===(37)){if(b){c="]";return c;}}else if(e===(38)){if(b){c="(";return c;}}else if(e===(39)){if(b){c=")";return c;}}c="";return c;};R.prototype.Marker=function(b){return this.$val.Marker(b);};R.ptr.prototype.ContainTextMarkTypes=function(b){var b,c,d,e,f,g,h,i,j;c=this;d=E.Split(c.TextMarkType," ");e=b;f=0;while(true){if(!(f=e.$length)?($throwRuntimeError("index out of range"),undefined):e.$array[e.$offset+f]);h=d;i=0;while(true){if(!(i=h.$length)?($throwRuntimeError("index out of range"),undefined):h.$array[h.$offset+i]);if(g===j){return true;}i++;}f++;}return false;};R.prototype.ContainTextMarkTypes=function(b){return this.$val.ContainTextMarkTypes(b);};R.ptr.prototype.IsTextMarkType=function(b){var b,c,d,e,f,g;c=this;d=E.Split(c.TextMarkType," ");e=d;f=0;while(true){if(!(f=e.$length)?($throwRuntimeError("index out of range"),undefined):e.$array[e.$offset+f]);if(b===g){return true;}f++;}return false;};R.prototype.IsTextMarkType=function(b){return this.$val.IsTextMarkType(b);};R.ptr.prototype.IsNextSameInlineMemo=function(){var b,c,d;b=this;if(AB.nil===b){return false;}c=AB.nil;d=b.Next;while(true){if(!(!(AB.nil===d))){break;}if(AB.nil===b.Next||(456===d.Type)||AB.nil===d.Next||(456===d.Next.Type)){d=d.Next;continue;}if((530===d.Type)&&d.IsTextMarkType("inline-memo")){c=d;break;}d=d.Next;}if(!(AB.nil===c)&&b.TextMarkInlineMemoContent===c.TextMarkInlineMemoContent){return true;}return false;};R.prototype.IsNextSameInlineMemo=function(){return this.$val.IsNextSameInlineMemo();};R.ptr.prototype.IsSameTextMarkType=function(b){var{b,c,d,e,f,g,h,i,$s,$r,$c}=$restore(this,{b});$s=$s||0;s:while(true){switch($s){case 0:c=this;if(""===c.TextMarkType||""===b.TextMarkType){$s=-1;return false;}d=E.Split(c.TextMarkType," ");e=E.Split(b.TextMarkType," ");if(!((d.$length===e.$length))){$s=-1;return false;}$r=D.Strings(d);$s=1;case 1:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$r=D.Strings(e);$s=2;case 2:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}f=d;g=0;while(true){if(!(g=d.$length)?($throwRuntimeError("index out of range"),undefined):d.$array[d.$offset+h])===((h<0||h>=e.$length)?($throwRuntimeError("index out of range"),undefined):e.$array[e.$offset+h]))){$s=-1;return false;}i=((h<0||h>=d.$length)?($throwRuntimeError("index out of range"),undefined):d.$array[d.$offset+h]);if(i===("block-ref")){if(!(c.TextMarkBlockRefID===b.TextMarkBlockRefID)){$s=-1;return false;}}else if(i===("a")){if(!(c.TextMarkAHref===b.TextMarkAHref)||!(b.TextMarkATitle===b.TextMarkATitle)){$s=-1;return false;}}g++;}$s=-1;return true;}return;}var $f={$blk:R.ptr.prototype.IsSameTextMarkType,$c:true,$r,b,c,d,e,f,g,h,i,$s};return $f;};R.prototype.IsSameTextMarkType=function(b){return this.$val.IsSameTextMarkType(b);};R.ptr.prototype.SortTextMarkDataTypes=function(){var{b,c,$s,$r,$c}=$restore(this,{});$s=$s||0;s:while(true){switch($s){case 0:b=this;if(""===b.TextMarkTextContent){$s=-1;return;}c=E.Split(b.TextMarkType," ");$r=D.Strings(c);$s=1;case 1:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}b.TextMarkType=E.Join(c," ");$s=-1;return;}return;}var $f={$blk:R.ptr.prototype.SortTextMarkDataTypes,$c:true,$r,b,c,$s};return $f;};R.prototype.SortTextMarkDataTypes=function(){return this.$val.SortTextMarkDataTypes();};R.ptr.prototype.ClearIALAttrs=function(){var b,c,d,e,f;b=this;c=$subslice(b.KramdownIAL,0,0);d=b.KramdownIAL;e=0;while(true){if(!(e=d.$length)?($throwRuntimeError("index out of range"),undefined):d.$array[d.$offset+e]);if(!("name"===(0>=f.$length?($throwRuntimeError("index out of range"),undefined):f.$array[f.$offset+0]))&&!("alias"===(0>=f.$length?($throwRuntimeError("index out of range"),undefined):f.$array[f.$offset+0]))&&!("memo"===(0>=f.$length?($throwRuntimeError("index out of range"),undefined):f.$array[f.$offset+0]))&&!("bookmark"===(0>=f.$length?($throwRuntimeError("index out of range"),undefined):f.$array[f.$offset+0]))&&!E.HasPrefix((0>=f.$length?($throwRuntimeError("index out of range"),undefined):f.$array[f.$offset+0]),"custom-")){c=$append(c,f);}e++;}b.KramdownIAL=c;};R.prototype.ClearIALAttrs=function(){return this.$val.ClearIALAttrs();};R.ptr.prototype.RemoveIALAttr=function(b){var b,c,d,e,f,g;c=this;d=$subslice(c.KramdownIAL,0,0);e=c.KramdownIAL;f=0;while(true){if(!(f=e.$length)?($throwRuntimeError("index out of range"),undefined):e.$array[e.$offset+f]);if(!(b===(0>=g.$length?($throwRuntimeError("index out of range"),undefined):g.$array[g.$offset+0]))){d=$append(d,g);}f++;}c.KramdownIAL=d;};R.prototype.RemoveIALAttr=function(b){return this.$val.RemoveIALAttr(b);};R.ptr.prototype.SetIALAttr=function(b,c){var b,c,d,e,f,g;d=this;c=J.EscapeAttrVal(c);e=d.KramdownIAL;f=0;while(true){if(!(f=e.$length)?($throwRuntimeError("index out of range"),undefined):e.$array[e.$offset+f]);if(b===(0>=g.$length?($throwRuntimeError("index out of range"),undefined):g.$array[g.$offset+0])){(1>=g.$length?($throwRuntimeError("index out of range"),undefined):g.$array[g.$offset+1]=c);return;}f++;}d.KramdownIAL=$append(d.KramdownIAL,new AD([b,c]));};R.prototype.SetIALAttr=function(b,c){return this.$val.SetIALAttr(b,c);};R.ptr.prototype.IALAttr=function(b){var b,c,d,e,f;c=this;d=c.KramdownIAL;e=0;while(true){if(!(e=d.$length)?($throwRuntimeError("index out of range"),undefined):d.$array[d.$offset+e]);if(b===(0>=f.$length?($throwRuntimeError("index out of range"),undefined):f.$array[f.$offset+0])){return J.UnescapeAttrVal((1>=f.$length?($throwRuntimeError("index out of range"),undefined):f.$array[f.$offset+1]));}e++;}return"";};R.prototype.IALAttr=function(b){return this.$val.IALAttr(b);};R.ptr.prototype.IsEmptyBlockIAL=function(){var b;b=this;if(!((455===b.Type))){return false;}if(L.IsDocIAL(b.Tokens)){return false;}if(!(AB.nil===b.Previous)){if(455===b.Previous.Type){return true;}return false;}return true;};R.prototype.IsEmptyBlockIAL=function(){return this.$val.IsEmptyBlockIAL();};R.ptr.prototype.TokensStr=function(){var b;b=this;return L.BytesToStr(b.Tokens);};R.prototype.TokensStr=function(){return this.$val.TokensStr();};R.ptr.prototype.LastDeepestChild=function(){var b,c;b=AB.nil;c=this;if(AB.nil===c.LastChild){b=c;return b;}b=c.LastChild.LastDeepestChild();return b;};R.prototype.LastDeepestChild=function(){return this.$val.LastDeepestChild();};R.ptr.prototype.FirstDeepestChild=function(){var b,c;b=AB.nil;c=this;if(AB.nil===c.FirstChild){b=c;return b;}b=c.FirstChild.FirstDeepestChild();return b;};R.prototype.FirstDeepestChild=function(){return this.$val.FirstDeepestChild();};R.ptr.prototype.ChildByType=function(b){var b,c,d;c=this;d=c.FirstChild;while(true){if(!(!(AB.nil===d))){break;}if(d.Type===b){return d;}d=d.Next;}return AB.nil;};R.prototype.ChildByType=function(b){return this.$val.ChildByType(b);};R.ptr.prototype.ChildrenByType=function(b){var{b,c,d,$s,$r,$c}=$restore(this,{b});$s=$s||0;s:while(true){switch($s){case 0:b=[b];c=[c];c[0]=AE.nil;d=this;c[0]=new AE([]);$r=O(d,(function(b,c){return function(e,f){var e,f;if(((b[0]===e.Type))&&f){c[0]=$append(c[0],e);}return 2;};})(b,c));$s=1;case 1:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$s=-1;return c[0];}return;}var $f={$blk:R.ptr.prototype.ChildrenByType,$c:true,$r,b,c,d,$s};return $f;};R.prototype.ChildrenByType=function(b){return this.$val.ChildrenByType(b);};R.ptr.prototype.Text=function(){var{b,c,d,$s,$r,$c}=$restore(this,{});$s=$s||0;s:while(true){switch($s){case 0:b=[b];c="";d=this;b[0]=new B.Buffer.ptr(AF.nil,0,0);$r=O(d,(function(b){return function $b(e,f){var{e,f,g,h,i,$s,$r,$c}=$restore(this,{e,f});$s=$s||0;s:while(true){switch($s){case 0:if(!f){$s=-1;return 2;}g=e.Type;if((g===(16))||(g===(40))||(g===(433))||(g===(434))||(g===(543))||(g===(412))){$s=2;continue;}if(g===(530)){$s=3;continue;}$s=4;continue;case 2:h=b[0].Write(e.Tokens);$s=5;case 5:if($c){$c=false;h=h.$blk();}if(h&&h.$blk!==undefined){break s;}h;$s=4;continue;case 3:i=b[0].WriteString(e.TextMarkTextContent);$s=6;case 6:if($c){$c=false;i=i.$blk();}if(i&&i.$blk!==undefined){break s;}i;case 4:case 1:$s=-1;return 2;}return;}var $f={$blk:$b,$c:true,$r,e,f,g,h,i,$s};return $f;};})(b));$s=1;case 1:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}c=b[0].String();$s=-1;return c;}return;}var $f={$blk:R.ptr.prototype.Text,$c:true,$r,b,c,d,$s};return $f;};R.prototype.Text=function(){return this.$val.Text();};R.ptr.prototype.TextLen=function(){var{b,c,d,$s,$r,$c}=$restore(this,{});$s=$s||0;s:while(true){switch($s){case 0:b=[b];c=0;d=this;b[0]=$makeSlice(AF,0,4096);$r=O(d,(function(b){return function(e,f){var e,f,g;if(!f){return 2;}g=e.Type;if((g===(16))||(g===(40))||(g===(433))||(g===(434))||(g===(543))||(g===(412))){b[0]=$appendSlice(b[0],e.Tokens);}else if(g===(530)){b[0]=$appendSlice(b[0],e.TextMarkTextContent);}return 2;};})(b));$s=1;case 1:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}c=H.RuneCount(b[0]);$s=-1;return c;}return;}var $f={$blk:R.ptr.prototype.TextLen,$c:true,$r,b,c,d,$s};return $f;};R.prototype.TextLen=function(){return this.$val.TextLen();};R.ptr.prototype.Content=function(){var{b,c,d,$s,$r,$c}=$restore(this,{});$s=$s||0;s:while(true){switch($s){case 0:b=[b];c="";d=this;b[0]=new B.Buffer.ptr(AF.nil,0,0);$r=O(d,(function(b){return function $b(e,f){var{e,f,g,h,i,j,k,l,m,n,o,p,q,$s,$r,$c}=$restore(this,{e,f});$s=$s||0;s:while(true){switch($s){case 0:if(!f){$s=1;continue;}$s=2;continue;case 1:if(!(AB.nil===e.Next)&&!(AB.nil===e.Next.Next)&&1>0,((h<0||h>=g.$length)?($throwRuntimeError("index out of range"),undefined):g.$array[g.$offset+h]))===10))){$s=3;continue;}$s=4;continue;case 3:i=b[0].WriteByte(10);$s=5;case 5:if($c){$c=false;i=i.$blk();}if(i&&i.$blk!==undefined){break s;}i;case 4:$s=-1;return 2;case 2:j=e.Type;if((j===(16))||(j===(40))||(j===(433))||(j===(434))||(j===(543))||(j===(412))||(j===(29))||(j===(15))||(j===(306))||(j===(302))||(j===(44))||(j===(203))||(j===(201))||(j===(401))||(j===(427))||(j===(497))){$s=7;continue;}if(j===(530)){$s=8;continue;}$s=9;continue;case 7:k=b[0].Write(e.Tokens);$s=10;case 10:if($c){$c=false;k=k.$blk();}if(k&&k.$blk!==undefined){break s;}k;$s=9;continue;case 8:if(!(""===e.TextMarkTextContent)){$s=11;continue;}if(!(""===e.TextMarkInlineMathContent)){$s=12;continue;}$s=13;continue;case 11:if(e.IsTextMarkType("code")){$s=14;continue;}$s=15;continue;case 14:l=b[0].WriteString(J.UnescapeString(e.TextMarkTextContent));$s=17;case 17:if($c){$c=false;l=l.$blk();}if(l&&l.$blk!==undefined){break s;}l;$s=16;continue;case 15:m=b[0].WriteString(e.TextMarkTextContent);$s=18;case 18:if($c){$c=false;m=m.$blk();}if(m&&m.$blk!==undefined){break s;}m;case 16:$s=13;continue;case 12:n=e.TextMarkInlineMathContent;n=E.ReplaceAll(n,"_esc_newline_"," ");o=b[0].WriteString(n);$s=19;case 19:if($c){$c=false;o=o.$blk();}if(o&&o.$blk!==undefined){break s;}o;case 13:if(!(""===e.TextMarkInlineMemoContent)){$s=20;continue;}$s=21;continue;case 20:p=e.TextMarkInlineMemoContent;p=E.ReplaceAll(p,"_esc_newline_"," ");q=b[0].WriteString(p);$s=22;case 22:if($c){$c=false;q=q.$blk();}if(q&&q.$blk!==undefined){break s;}q;case 21:case 9:case 6:$s=-1;return 2;}return;}var $f={$blk:$b,$c:true,$r,e,f,g,h,i,j,k,l,m,n,o,p,q,$s};return $f;};})(b));$s=1;case 1:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}c=b[0].String();$s=-1;return c;}return;}var $f={$blk:R.ptr.prototype.Content,$c:true,$r,b,c,d,$s};return $f;};R.prototype.Content=function(){return this.$val.Content();};R.ptr.prototype.EscapeMarkerContent=function(){var{b,c,d,$s,$r,$c}=$restore(this,{});$s=$s||0;s:while(true){switch($s){case 0:b="";c=this;d=c.Content();$s=1;case 1:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}b=d;b=($bytesToString(K.EscapeProtyleMarkers((new AF($stringToBytes(b))))));$s=-1;return b;}return;}var $f={$blk:R.ptr.prototype.EscapeMarkerContent,$c:true,$r,b,c,d,$s};return $f;};R.prototype.EscapeMarkerContent=function(){return this.$val.EscapeMarkerContent();};R.ptr.prototype.Stat=function(){var{b,c,d,e,f,g,h,i,j,k,$s,$r,$c}=$restore(this,{});$s=$s||0;s:while(true){switch($s){case 0:b=[b];c=[c];d=[d];e=[e];f=0;g=0;d[0]=0;c[0]=0;e[0]=0;h=this;b[0]=$makeSlice(AF,0,8192);$r=O(h,(function(b,c,d,e){return function(i,j){var i,j,k,l,m;if(!j){return 2;}k=i.Type;if((k===(16))||(k===(40))||(k===(433))||(k===(434))||(k===(543))||(k===(412))||(k===(29))||(k===(15))||(k===(306))||(k===(302))||(k===(44))||(k===(203))||(k===(201))||(k===(401))||(k===(427))||(k===(497))){b[0]=$appendSlice(b[0],i.Tokens);}else if(k===(530)){if(0>0;}if(i.IsTextMarkType("block-ref")||i.IsTextMarkType("file-annotation-ref")){e[0]=e[0]+(1)>>0;}}else if(k===(33)){d[0]=d[0]+(1)>>0;}else if(k===(34)){c[0]=c[0]+(1)>>0;}else if(k===(430)){e[0]=e[0]+(1)>>0;}if(i.IsBlock()){b[0]=$append(b[0],32);}return 2;};})(b,c,d,e));$s=1;case 1:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}i=B.TrimSpace(b[0]);$s=2;case 2:if($c){$c=false;i=i.$blk();}if(i&&i.$blk!==undefined){break s;}b[0]=i;k=L.WordCount(L.BytesToStr(b[0]));$s=3;case 3:if($c){$c=false;k=k.$blk();}if(k&&k.$blk!==undefined){break s;}j=k;f=j[0];g=j[1];$s=-1;return[f,g,d[0],c[0],e[0]];}return;}var $f={$blk:R.ptr.prototype.Stat,$c:true,$r,b,c,d,e,f,g,h,i,j,k,$s};return $f;};R.prototype.Stat=function(){return this.$val.Stat();};R.ptr.prototype.TokenLen=function(){var{b,c,$s,$r,$c}=$restore(this,{});$s=$s||0;s:while(true){switch($s){case 0:b=[b];b[0]=0;c=this;$r=O(c,(function(b){return function(d,e){var d,e;if(!e){return 2;}b[0]=b[0]+(K.BytesShowLength(d.Tokens))>>0;return 2;};})(b));$s=1;case 1:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$s=-1;return b[0];}return;}var $f={$blk:R.ptr.prototype.TokenLen,$c:true,$r,b,c,$s};return $f;};R.prototype.TokenLen=function(){return this.$val.TokenLen();};R.ptr.prototype.DocChild=function(){var b,c,d;b=AB.nil;c=this;b=c;d=c;while(true){if(!(!(AB.nil===d))){break;}if(0===d.Type){return b;}b=d;d=d.Parent;}return b;};R.prototype.DocChild=function(){return this.$val.DocChild();};R.ptr.prototype.IsChildBlockOf=function(b,c){var b,c,d,e,f,g;d=this;if(""===d.ID||!d.IsBlock()){return false;}if(c===0){e=d.Parent;while(true){if(!(!(AB.nil===e))){break;}if(e===b){return true;}e=e.Parent;}return false;}f=d.Parent;g=1;while(true){if(!(g>0;}if(!(b===f)){return false;}return true;};R.prototype.IsChildBlockOf=function(b,c){return this.$val.IsChildBlockOf(b,c);};R.ptr.prototype.NextNodeText=function(){var{b,c,d,$s,$r,$c}=$restore(this,{});$s=$s||0;s:while(true){switch($s){case 0:b=this;if(AB.nil===b.Next){$s=-1;return"";}c=b.Next.Text();$s=1;case 1:if($c){$c=false;c=c.$blk();}if(c&&c.$blk!==undefined){break s;}d=c;$s=2;case 2:return d;}return;}var $f={$blk:R.ptr.prototype.NextNodeText,$c:true,$r,b,c,d,$s};return $f;};R.prototype.NextNodeText=function(){return this.$val.NextNodeText();};R.ptr.prototype.PreviousNodeText=function(){var{b,c,d,$s,$r,$c}=$restore(this,{});$s=$s||0;s:while(true){switch($s){case 0:b=this;if(AB.nil===b.Previous){$s=-1;return"";}c=b.Previous.Text();$s=1;case 1:if($c){$c=false;c=c.$blk();}if(c&&c.$blk!==undefined){break s;}d=c;$s=2;case 2:return d;}return;}var $f={$blk:R.ptr.prototype.PreviousNodeText,$c:true,$r,b,c,d,$s};return $f;};R.prototype.PreviousNodeText=function(){return this.$val.PreviousNodeText();};R.ptr.prototype.Unlink=function(){var b;b=this;if(!(AB.nil===b.Previous)){b.Previous.Next=b.Next;}else if(!(AB.nil===b.Parent)){b.Parent.FirstChild=b.Next;}if(!(AB.nil===b.Next)){b.Next.Previous=b.Previous;}else if(!(AB.nil===b.Parent)){b.Parent.LastChild=b.Previous;}b.Parent=AB.nil;b.Next=AB.nil;b.Previous=AB.nil;};R.prototype.Unlink=function(){return this.$val.Unlink();};R.ptr.prototype.AppendTokens=function(b){var b,c;c=this;c.Tokens=$appendSlice(c.Tokens,($bytesToString(b)));};R.prototype.AppendTokens=function(b){return this.$val.AppendTokens(b);};R.ptr.prototype.PrependTokens=function(b){var b,c;c=this;c.Tokens=$appendSlice(b,c.Tokens);};R.prototype.PrependTokens=function(b){return this.$val.PrependTokens(b);};R.ptr.prototype.InsertAfter=function(b){var b,c;c=this;b.Unlink();b.Next=c.Next;if(!(AB.nil===b.Next)){b.Next.Previous=b;}b.Previous=c;c.Next=b;b.Parent=c.Parent;if(!(AB.nil===b.Parent)&&AB.nil===b.Next&&!(AB.nil===b.Parent.LastChild)){b.Parent.LastChild=b;}};R.prototype.InsertAfter=function(b){return this.$val.InsertAfter(b);};R.ptr.prototype.InsertBefore=function(b){var b,c;c=this;b.Unlink();b.Previous=c.Previous;if(!(AB.nil===b.Previous)){b.Previous.Next=b;}b.Next=c;c.Previous=b;b.Parent=c.Parent;if(!(AB.nil===b.Parent)&&AB.nil===b.Previous){b.Parent.FirstChild=b;}};R.prototype.InsertBefore=function(b){return this.$val.InsertBefore(b);};R.ptr.prototype.AppendChild=function(b){var b,c;c=this;b.Unlink();b.Parent=c;if(!(AB.nil===c.LastChild)){c.LastChild.Next=b;b.Previous=c.LastChild;c.LastChild=b;}else{c.FirstChild=b;c.LastChild=b;}};R.prototype.AppendChild=function(b){return this.$val.AppendChild(b);};R.ptr.prototype.PrependChild=function(b){var b,c;c=this;b.Unlink();b.Parent=c;if(!(AB.nil===c.FirstChild)){c.FirstChild.Previous=b;b.Next=c.FirstChild;c.FirstChild=b;}else{c.FirstChild=b;c.LastChild=b;}};R.prototype.PrependChild=function(b){return this.$val.PrependChild(b);};R.ptr.prototype.List=function(){var{b,c,$s,$r,$c}=$restore(this,{});$s=$s||0;s:while(true){switch($s){case 0:b=[b];b[0]=AE.nil;c=this;b[0]=$makeSlice(AE,0,512);$r=O(c,(function(b){return function(d,e){var d,e;if(e){b[0]=$append(b[0],d);}return 2;};})(b));$s=1;case 1:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$s=-1;return b[0];}return;}var $f={$blk:R.ptr.prototype.List,$c:true,$r,b,c,$s};return $f;};R.prototype.List=function(){return this.$val.List();};R.ptr.prototype.ParentIs=function(b,c){var b,c,d,e,f,g,h,i,j;d=this;e=$append(c,b);f=0;g=d.Parent;while(true){if(!(!(AB.nil===g))){break;}h=e;i=0;while(true){if(!(i=h.$length)?($throwRuntimeError("index out of range"),undefined):h.$array[h.$offset+i]);if(j===g.Type){return true;}i++;}f=f+(1)>>0;if(128>0));}b.Tokens=d;b.AppendChild(new B.Node.ptr("","","","",426,CY.nil,CY.nil,CY.nil,CY.nil,CY.nil,CZ.nil,CW.nil,"","",false,false,false,0,false,0,0,0,CW.nil,CW.nil,CW.nil,0,DA.nil,false,DB.nil,0,0,0,0,CW.nil,0,false,"",0,CW.nil,"",CZ.nil,CW.nil,DD.nil,false,"","","","","","","","","","","",0,""));b.AppendChild(new B.Node.ptr("","","","",427,CY.nil,CY.nil,CY.nil,CY.nil,CY.nil,CZ.nil,d,"","",false,false,false,0,false,0,0,0,CW.nil,CW.nil,CW.nil,0,DA.nil,false,DB.nil,0,0,0,0,CW.nil,0,false,"",0,CW.nil,"",CZ.nil,CW.nil,DD.nil,false,"","","","","","","","","","","",0,""));b.AppendChild(new B.Node.ptr("","","","",428,CY.nil,CY.nil,CY.nil,CY.nil,CY.nil,CZ.nil,CW.nil,"","",false,false,false,0,false,0,0,0,CW.nil,CW.nil,CW.nil,0,DA.nil,false,DB.nil,0,0,0,0,CW.nil,0,false,"",0,CW.nil,"",CZ.nil,CW.nil,DD.nil,false,"","","","","","","","","","","",0,""));};AB.prototype.yamlFrontMatterFinalize=function(b){return this.$val.yamlFrontMatterFinalize(b);};AD.ptr.prototype.parseYamlFrontMatter=function(){var b,c,d,e,f;b=this;if(!((45===(c=b.Context.currentLine,(0>=c.$length?($throwRuntimeError("index out of range"),undefined):c.$array[c.$offset+0]))))){return false;}d=0;e=0;while(true){if(!(e=f.$length)?($throwRuntimeError("index out of range"),undefined):f.$array[f.$offset+e]))))){break;}d=d+(1)>>0;e=e+(1)>>0;}return 3===d;};AD.prototype.parseYamlFrontMatter=function(){return this.$val.parseYamlFrontMatter();};O=function(b){var b,c,d,e,f,g,h;if(b.ParseOption.KramdownBlockIAL&&BG(b.currentLine)){c=b.parseKramdownBlockIAL(b.currentLine);if(0=e.$length?($throwRuntimeError("index out of range"),undefined):e.$array[e.$offset+0]))))){return false;}f=0;g=0;while(true){if(!(g=h.$length)?($throwRuntimeError("index out of range"),undefined):h.$array[h.$offset+g]))))){break;}f=f+(1)>>0;g=g+(1)>>0;}return 3===f;};P=function(b,c){var{b,c,d,e,f,g,h,i,j,k,l,$s,$r,$c}=$restore(this,{b,c});$s=$s||0;s:while(true){switch($s){case 0:c=[c];d=[d];e=[e];f=[f];f[0]=CZ.nil;$r=B.Walk(b.Root,(function(c,d,e,f){return function $b(g,h){var{g,h,i,j,k,l,m,n,o,p,q,r,$s,$r,$c}=$restore(this,{g,h});$s=$s||0;s:while(true){switch($s){case 0:i=[i];if(!h){$s=-1;return 2;}if(33===g.Type){$s=1;continue;}$s=2;continue;case 1:i[0]=CZ.nil;$r=B.Walk(g,(function(c,d,e,f,i){return function(j,k){var j,k,l,m;if(!k){return 2;}if(400===j.Type){l=j.ChildByType(401);if(!(CY.nil===l)){m=new B.Node.ptr("","","","",40,CY.nil,CY.nil,CY.nil,CY.nil,CY.nil,CZ.nil,l.Tokens,"","",false,false,false,0,false,0,0,0,CW.nil,CW.nil,CW.nil,0,DA.nil,false,DB.nil,0,0,0,0,CW.nil,0,false,"",0,CW.nil,"",CZ.nil,CW.nil,DD.nil,false,"","","","","","","","","","","",0,"");j.InsertBefore(m);}i[0]=$append(i[0],j);}return 2;};})(c,d,e,f,i));$s=3;case 3:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}j=i[0];k=0;while(true){if(!(k=j.$length)?($throwRuntimeError("index out of range"),undefined):j.$array[j.$offset+k]);l.Unlink();k++;}m=g.ChildByType(34);if(CY.nil===m){$s=-1;return 2;}g.InsertBefore(m);n=g.ChildByType(40);if(CY.nil===n){o=true;$s=6;continue s;}p=A.TrimSpace(n.Tokens);$s=7;case 7:if($c){$c=false;p=p.$blk();}if(p&&p.$blk!==undefined){break s;}o=1>p.$length;case 6:if(o){$s=4;continue;}$s=5;continue;case 4:q=g.ChildByType(36);if(!(CY.nil===q)){r=g.ChildByType(41);if(!(CY.nil===r)){q.InsertAfter(new B.Node.ptr("","","","",40,CY.nil,CY.nil,CY.nil,CY.nil,CY.nil,CZ.nil,r.Tokens,"","",false,false,false,0,false,0,0,0,CW.nil,CW.nil,CW.nil,0,DA.nil,false,DB.nil,0,0,0,0,CW.nil,0,false,"",0,CW.nil,"",CZ.nil,CW.nil,DD.nil,false,"","","","","","","","","","","",0,""));}}case 5:case 2:$s=-1;return 2;}return;}var $f={$blk:$b,$c:true,$r,g,h,i,j,k,l,m,n,o,p,q,r,$s};return $f;};})(c,d,e,f));$s=1;case 1:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}g=f[0];h=0;while(true){if(!(h=g.$length)?($throwRuntimeError("index out of range"),undefined):g.$array[g.$offset+h]);i.Unlink();h++;}f[0]=CZ.nil;e[0]=DC.nil;d[0]=CY.nil;$r=B.Walk(b.Root,(function(c,d,e,f){return function(j,k){var j,k,l,m,n,o,p,q,r,s,t,u,v,w,x;l=j.Type;if(l===(27)){R(j,"code",(e.$ptr||(e.$ptr=new DE(function(){return this.$target[0];},function($v){this.$target[0]=$v;},e))),(f.$ptr||(f.$ptr=new DF(function(){return this.$target[0];},function($v){this.$target[0]=$v;},f))),k);}else if(l===(460)){R(j,"tag",(e.$ptr||(e.$ptr=new DE(function(){return this.$target[0];},function($v){this.$target[0]=$v;},e))),(f.$ptr||(f.$ptr=new DF(function(){return this.$target[0];},function($v){this.$target[0]=$v;},f))),k);}else if(l===(304)){R(j,"inline-math",(e.$ptr||(e.$ptr=new DE(function(){return this.$target[0];},function($v){this.$target[0]=$v;},e))),(f.$ptr||(f.$ptr=new DF(function(){return this.$target[0];},function($v){this.$target[0]=$v;},f))),k);}else if(l===(17)){R(j,"em",(e.$ptr||(e.$ptr=new DE(function(){return this.$target[0];},function($v){this.$target[0]=$v;},e))),(f.$ptr||(f.$ptr=new DF(function(){return this.$target[0];},function($v){this.$target[0]=$v;},f))),k);}else if(l===(22)){R(j,"strong",(e.$ptr||(e.$ptr=new DE(function(){return this.$target[0];},function($v){this.$target[0]=$v;},e))),(f.$ptr||(f.$ptr=new DF(function(){return this.$target[0];},function($v){this.$target[0]=$v;},f))),k);}else if(l===(101)){R(j,"s",(e.$ptr||(e.$ptr=new DE(function(){return this.$target[0];},function($v){this.$target[0]=$v;},e))),(f.$ptr||(f.$ptr=new DF(function(){return this.$target[0];},function($v){this.$target[0]=$v;},f))),k);}else if(l===(450)){R(j,"mark",(e.$ptr||(e.$ptr=new DE(function(){return this.$target[0];},function($v){this.$target[0]=$v;},e))),(f.$ptr||(f.$ptr=new DF(function(){return this.$target[0];},function($v){this.$target[0]=$v;},f))),k);}else if(l===(520)){R(j,"u",(e.$ptr||(e.$ptr=new DE(function(){return this.$target[0];},function($v){this.$target[0]=$v;},e))),(f.$ptr||(f.$ptr=new DF(function(){return this.$target[0];},function($v){this.$target[0]=$v;},f))),k);}else if(l===(490)){R(j,"sub",(e.$ptr||(e.$ptr=new DE(function(){return this.$target[0];},function($v){this.$target[0]=$v;},e))),(f.$ptr||(f.$ptr=new DF(function(){return this.$target[0];},function($v){this.$target[0]=$v;},f))),k);}else if(l===(485)){R(j,"sup",(e.$ptr||(e.$ptr=new DE(function(){return this.$target[0];},function($v){this.$target[0]=$v;},e))),(f.$ptr||(f.$ptr=new DF(function(){return this.$target[0];},function($v){this.$target[0]=$v;},f))),k);}else if(l===(515)){R(j,"kbd",(e.$ptr||(e.$ptr=new DE(function(){return this.$target[0];},function($v){this.$target[0]=$v;},e))),(f.$ptr||(f.$ptr=new DF(function(){return this.$target[0];},function($v){this.$target[0]=$v;},f))),k);}else if(l===(33)){R(j,"a",(e.$ptr||(e.$ptr=new DE(function(){return this.$target[0];},function($v){this.$target[0]=$v;},e))),(f.$ptr||(f.$ptr=new DF(function(){return this.$target[0];},function($v){this.$target[0]=$v;},f))),k);}else if(l===(430)){R(j,"block-ref",(e.$ptr||(e.$ptr=new DE(function(){return this.$target[0];},function($v){this.$target[0]=$v;},e))),(f.$ptr||(f.$ptr=new DF(function(){return this.$target[0];},function($v){this.$target[0]=$v;},f))),k);}else if((l===(16))||(l===(29))||(l===(306))||(l===(40))||(l===(431))||(l===(44))||(l===(400))){if(1>e[0].$length){return 2;}if(k){d[0]=new B.Node.ptr("","","","",530,CY.nil,CY.nil,CY.nil,CY.nil,CY.nil,CZ.nil,CW.nil,"","",false,false,false,0,false,0,0,0,CW.nil,CW.nil,CW.nil,0,DA.nil,false,DB.nil,0,0,0,0,CW.nil,0,false,"",0,CW.nil,"",CZ.nil,CW.nil,DD.nil,false,F.Join(e[0]," "),"","","","","","","",($bytesToString(G.EscapeHTML(j.Tokens))),"","",0,"");if(306===j.Type){d[0].TextMarkTextContent="";d[0].TextMarkInlineMathContent=($bytesToString(G.EscapeHTML(j.Tokens)));if(j.ParentIs(109,DG.nil)&&!c[0]){d[0].TextMarkInlineMathContent=F.ReplaceAll(d[0].TextMarkInlineMathContent,"\\|","|");}}else if(400===j.Type){m=j.ChildByType(401);if(!(CY.nil===m)){d[0].TextMarkTextContent=($bytesToString(G.EscapeHTML(m.Tokens)));}}else if(431===j.Type){d[0].TextMarkBlockRefSubtype="s";d[0].TextMarkTextContent=j.TokensStr();n=j.Parent.ChildByType(433);if(CY.nil===n){n=j.Parent.ChildByType(434);d[0].TextMarkBlockRefSubtype="d";}if(!(CY.nil===n)){d[0].TextMarkTextContent=n.TokensStr();}d[0].TextMarkBlockRefID=j.Parent.ChildByType(431).TokensStr();}else if(j.ParentIs(33,DG.nil)&&!j.ParentIs(34,DG.nil)){o=j.Next;if(!(CY.nil===o)&&(40===o.Type)){j.Next.PrependTokens(j.Tokens);return 2;}p=CY.nil;q=j.Parent;while(true){if(!(!(CY.nil===q))){break;}if(33===q.Type){p=q;break;}q=q.Parent;}if(!(CY.nil===p)){r=p.ChildByType(41);if(!(CY.nil===r)){d[0].TextMarkAHref=($bytesToString(r.Tokens));}s=p.ChildByType(42);if(!(CY.nil===s)){d[0].TextMarkATitle=($bytesToString(s.Tokens));}}}}else{t=j.Next;if(!(CY.nil===t)&&(40===t.Type)){return 2;}d[0].KramdownIAL=j.Parent.KramdownIAL;if(j.IsMarker()){j.Parent.InsertBefore(d[0]);}else{j.InsertBefore(d[0]);if(16===j.Type){f[0]=$append(f[0],j);}}}}else if(l===(530)){if(1>e[0].$length){return 2;}if(k){u=false;v=e[0];w=0;while(true){if(!(w=v.$length)?($throwRuntimeError("index out of range"),undefined):v.$array[v.$offset+w]);if(j.IsTextMarkType(x)){u=true;break;}w++;}if(!u){e[0]=$append(e[0],j.TextMarkType);j.TextMarkType=F.Join(e[0]," ");}}else{if(CY.nil===j.Next||j.Next.IsCloseMarker()){e[0]=$subslice(e[0],0,(e[0].$length-1>>0));}}return 2;}return 2;};})(c,d,e,f));$s=2;case 2:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}j=f[0];k=0;while(true){if(!(k=j.$length)?($throwRuntimeError("index out of range"),undefined):j.$array[j.$offset+k]);l.Unlink();k++;}$s=-1;return;}return;}var $f={$blk:P,$c:true,$r,b,c,d,e,f,g,h,i,j,k,l,$s};return $f;};$pkg.NestedInlines2FlattedSpansHybrid=P;R=function(b,c,d,e,f){var b,c,d,e,f,g,h;if(f){d.$set($append(d.$get(),c));}else{if(0>0)));}e.$set($append(e.$get(),b));g=b.FirstChild;while(true){if(!(!(CY.nil===g))){break;}h=g.Next;if((530===g.Type)||(16===g.Type)){b.InsertBefore(g);}else if(41===g.Type){if(!(CY.nil===b.Previous)&&(530===b.Previous.Type)){b.Previous.TextMarkAHref=($bytesToString(g.Tokens));}}g=h;}}};S=function(b){var{b,c,$s,$r,$c}=$restore(this,{b});$s=$s||0;s:while(true){switch($s){case 0:b=[b];c=[c];c[0]=(function(b,c){return function $b(d){var{d,e,f,g,h,$s,$r,$c}=$restore(this,{d});$s=$s||0;s:while(true){switch($s){case 0:e=CZ.nil;f=AA("",(new CW($stringToBytes(d))),b[0].Context.ParseOption);$s=1;case 1:if($c){$c=false;f=f.$blk();}if(f&&f.$blk!==undefined){break s;}g=f;h=g.Root.FirstChild.FirstChild;while(true){if(!(!(CY.nil===h))){break;}e=$append(e,h);h=h.Next;}$s=-1;return e;}return;}var $f={$blk:$b,$c:true,$r,d,e,f,g,h,$s};return $f;};})(b,c);$r=B.Walk(b[0].Root,(function(b,c){return function $b(d,e){var{aa,ab,ac,ad,ae,af,ag,ah,ai,aj,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,$s,$r,$c}=$restore(this,{d,e});$s=$s||0;s:while(true){switch($s){case 0:if(!e){$s=-1;return 2;}if(530===d.Type){$s=1;continue;}$s=2;continue;case 1:f=d.TextMarkType;if(f===("sup")){$s=4;continue;}if(f===("sub")){$s=5;continue;}if(f===("em")){$s=6;continue;}if(f===("strong")){$s=7;continue;}if(f===("mark")){$s=8;continue;}if(f===("s")){$s=9;continue;}$s=10;continue;case 4:d.Type=485;d.PrependChild(new B.Node.ptr("","","","",486,CY.nil,CY.nil,CY.nil,CY.nil,CY.nil,CZ.nil,CW.nil,"","",false,false,false,0,false,0,0,0,CW.nil,CW.nil,CW.nil,0,DA.nil,false,DB.nil,0,0,0,0,CW.nil,0,false,"",0,CW.nil,"",CZ.nil,CW.nil,DD.nil,false,"","","","","","","","","","","",0,""));g=c[0](d.TextMarkTextContent);$s=11;case 11:if($c){$c=false;g=g.$blk();}if(g&&g.$blk!==undefined){break s;}h=g;i=h;j=0;while(true){if(!(j=i.$length)?($throwRuntimeError("index out of range"),undefined):i.$array[i.$offset+j]);d.AppendChild(k);j++;}d.AppendChild(new B.Node.ptr("","","","",487,CY.nil,CY.nil,CY.nil,CY.nil,CY.nil,CZ.nil,CW.nil,"","",false,false,false,0,false,0,0,0,CW.nil,CW.nil,CW.nil,0,DA.nil,false,DB.nil,0,0,0,0,CW.nil,0,false,"",0,CW.nil,"",CZ.nil,CW.nil,DD.nil,false,"","","","","","","","","","","",0,""));$s=10;continue;case 5:d.Type=490;d.PrependChild(new B.Node.ptr("","","","",491,CY.nil,CY.nil,CY.nil,CY.nil,CY.nil,CZ.nil,CW.nil,"","",false,false,false,0,false,0,0,0,CW.nil,CW.nil,CW.nil,0,DA.nil,false,DB.nil,0,0,0,0,CW.nil,0,false,"",0,CW.nil,"",CZ.nil,CW.nil,DD.nil,false,"","","","","","","","","","","",0,""));l=c[0](d.TextMarkTextContent);$s=12;case 12:if($c){$c=false;l=l.$blk();}if(l&&l.$blk!==undefined){break s;}m=l;n=m;o=0;while(true){if(!(o=n.$length)?($throwRuntimeError("index out of range"),undefined):n.$array[n.$offset+o]);d.AppendChild(p);o++;}d.AppendChild(new B.Node.ptr("","","","",492,CY.nil,CY.nil,CY.nil,CY.nil,CY.nil,CZ.nil,CW.nil,"","",false,false,false,0,false,0,0,0,CW.nil,CW.nil,CW.nil,0,DA.nil,false,DB.nil,0,0,0,0,CW.nil,0,false,"",0,CW.nil,"",CZ.nil,CW.nil,DD.nil,false,"","","","","","","","","","","",0,""));$s=10;continue;case 6:d.Type=17;d.PrependChild(new B.Node.ptr("","","","",18,CY.nil,CY.nil,CY.nil,CY.nil,CY.nil,CZ.nil,CW.nil,"","",false,false,false,0,false,0,0,0,CW.nil,CW.nil,CW.nil,0,DA.nil,false,DB.nil,0,0,0,0,CW.nil,0,false,"",0,CW.nil,"",CZ.nil,CW.nil,DD.nil,false,"","","","","","","","","","","",0,""));q=c[0](d.TextMarkTextContent);$s=13;case 13:if($c){$c=false;q=q.$blk();}if(q&&q.$blk!==undefined){break s;}r=q;s=r;t=0;while(true){if(!(t=s.$length)?($throwRuntimeError("index out of range"),undefined):s.$array[s.$offset+t]);d.AppendChild(u);t++;}d.AppendChild(new B.Node.ptr("","","","",19,CY.nil,CY.nil,CY.nil,CY.nil,CY.nil,CZ.nil,CW.nil,"","",false,false,false,0,false,0,0,0,CW.nil,CW.nil,CW.nil,0,DA.nil,false,DB.nil,0,0,0,0,CW.nil,0,false,"",0,CW.nil,"",CZ.nil,CW.nil,DD.nil,false,"","","","","","","","","","","",0,""));$s=10;continue;case 7:d.Type=22;d.PrependChild(new B.Node.ptr("","","","",23,CY.nil,CY.nil,CY.nil,CY.nil,CY.nil,CZ.nil,CW.nil,"","",false,false,false,0,false,0,0,0,CW.nil,CW.nil,CW.nil,0,DA.nil,false,DB.nil,0,0,0,0,CW.nil,0,false,"",0,CW.nil,"",CZ.nil,CW.nil,DD.nil,false,"","","","","","","","","","","",0,""));v=c[0](d.TextMarkTextContent);$s=14;case 14:if($c){$c=false;v=v.$blk();}if(v&&v.$blk!==undefined){break s;}w=v;x=w;y=0;while(true){if(!(y=x.$length)?($throwRuntimeError("index out of range"),undefined):x.$array[x.$offset+y]);d.AppendChild(z);y++;}d.AppendChild(new B.Node.ptr("","","","",24,CY.nil,CY.nil,CY.nil,CY.nil,CY.nil,CZ.nil,CW.nil,"","",false,false,false,0,false,0,0,0,CW.nil,CW.nil,CW.nil,0,DA.nil,false,DB.nil,0,0,0,0,CW.nil,0,false,"",0,CW.nil,"",CZ.nil,CW.nil,DD.nil,false,"","","","","","","","","","","",0,""));$s=10;continue;case 8:d.Type=450;d.PrependChild(new B.Node.ptr("","","","",453,CY.nil,CY.nil,CY.nil,CY.nil,CY.nil,CZ.nil,CW.nil,"","",false,false,false,0,false,0,0,0,CW.nil,CW.nil,CW.nil,0,DA.nil,false,DB.nil,0,0,0,0,CW.nil,0,false,"",0,CW.nil,"",CZ.nil,CW.nil,DD.nil,false,"","","","","","","","","","","",0,""));aa=c[0](d.TextMarkTextContent);$s=15;case 15:if($c){$c=false;aa=aa.$blk();}if(aa&&aa.$blk!==undefined){break s;}ab=aa;ac=ab;ad=0;while(true){if(!(ad=ac.$length)?($throwRuntimeError("index out of range"),undefined):ac.$array[ac.$offset+ad]);d.AppendChild(ae);ad++;}d.AppendChild(new B.Node.ptr("","","","",454,CY.nil,CY.nil,CY.nil,CY.nil,CY.nil,CZ.nil,CW.nil,"","",false,false,false,0,false,0,0,0,CW.nil,CW.nil,CW.nil,0,DA.nil,false,DB.nil,0,0,0,0,CW.nil,0,false,"",0,CW.nil,"",CZ.nil,CW.nil,DD.nil,false,"","","","","","","","","","","",0,""));$s=10;continue;case 9:d.Type=101;d.PrependChild(new B.Node.ptr("","","","",104,CY.nil,CY.nil,CY.nil,CY.nil,CY.nil,CZ.nil,CW.nil,"","",false,false,false,0,false,0,0,0,CW.nil,CW.nil,CW.nil,0,DA.nil,false,DB.nil,0,0,0,0,CW.nil,0,false,"",0,CW.nil,"",CZ.nil,CW.nil,DD.nil,false,"","","","","","","","","","","",0,""));af=c[0](d.TextMarkTextContent);$s=16;case 16:if($c){$c=false;af=af.$blk();}if(af&&af.$blk!==undefined){break s;}ag=af;ah=ag;ai=0;while(true){if(!(ai=ah.$length)?($throwRuntimeError("index out of range"),undefined):ah.$array[ah.$offset+ai]);d.AppendChild(aj);ai++;}d.AppendChild(new B.Node.ptr("","","","",105,CY.nil,CY.nil,CY.nil,CY.nil,CY.nil,CZ.nil,CW.nil,"","",false,false,false,0,false,0,0,0,CW.nil,CW.nil,CW.nil,0,DA.nil,false,DB.nil,0,0,0,0,CW.nil,0,false,"",0,CW.nil,"",CZ.nil,CW.nil,DD.nil,false,"","","","","","","","","","","",0,""));case 10:case 3:case 2:$s=-1;return 2;}return;}var $f={$blk:$b,$c:true,$r,aa,ab,ac,ad,ae,af,ag,ah,ai,aj,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,$s};return $f;};})(b,c));$s=1;case 1:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$s=-1;return;}return;}var $f={$blk:S,$c:true,$r,b,c,$s};return $f;};$pkg.TextMarks2Inlines=S;AB.ptr.prototype.parseToC=function(b){var{b,c,d,e,f,$s,$r,$c}=$restore(this,{b});$s=$s||0;s:while(true){switch($s){case 0:c=this;d=D.Split(b.Tokens,10);if(!((1===d.$length))){$s=-1;return CY.nil;}e=A.TrimSpace((0>=d.$length?($throwRuntimeError("index out of range"),undefined):d.$array[d.$offset+0]));$s=1;case 1:if($c){$c=false;e=e.$blk();}if(e&&e.$blk!==undefined){break s;}f=e;if(c.ParseOption.VditorWYSIWYG||c.ParseOption.VditorIR||c.ParseOption.VditorSV){f=A.ReplaceAll(f,C.CaretTokens,CW.nil);}if(!A.EqualFold(f,(new CW($stringToBytes("[toc]"))))){$s=-1;return CY.nil;}$s=-1;return new B.Node.ptr("","","","",415,CY.nil,CY.nil,CY.nil,CY.nil,CY.nil,CZ.nil,CW.nil,"","",false,false,false,0,false,0,0,0,CW.nil,CW.nil,CW.nil,0,DA.nil,false,DB.nil,0,0,0,0,CW.nil,0,false,"",0,CW.nil,"",CZ.nil,CW.nil,DD.nil,false,"","","","","","","","","","","",0,"");}return;}var $f={$blk:AB.ptr.prototype.parseToC,$c:true,$r,b,c,d,e,f,$s};return $f;};AB.prototype.parseToC=function(b){return this.$val.parseToC(b);};T=function(b,c){var{b,c,d,e,f,g,h,$s,$r,$c}=$restore(this,{b,c});$s=$s||0;s:while(true){switch($s){case 0:if(b.Context.indented){$s=-1;return 0;}d=b.parseThematicBreak();e=d[0];f=d[1];if(e){$s=1;continue;}$s=2;continue;case 1:$r=b.Context.closeUnmatchedBlocks();$s=3;case 3:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}g=b.Context.addChild(4);$s=4;case 4:if($c){$c=false;g=g.$blk();}if(g&&g.$blk!==undefined){break s;}h=g;h.Tokens=f;b.Context.advanceOffset(b.Context.currentLineLen-b.Context.offset>>0,false);$s=-1;return 2;case 2:$s=-1;return 0;}return;}var $f={$blk:T,$c:true,$r,b,c,d,e,f,g,h,$s};return $f;};$pkg.ThematicBreakStart=T;AD.ptr.prototype.parseThematicBreak=function(){var b,c,d,e,f,g,h,i,j,k,l,m;b=false;c=CW.nil;d=this;e=0;f=0;g=d.Context.currentLine;h=false;i=g.$length;j=d.Context.nextNonspace;while(true){if(!(j<(i-1>>0))){break;}k=((j<0||j>=g.$length)?($throwRuntimeError("index out of range"),undefined):g.$array[g.$offset+j]);if((32===k)||(9===k)){j=j+(1)>>0;continue;}if(!((45===k))&&!((95===k))&&!((42===k))){return[b,c];}if(!((0===f))){if(!((f===k))){return[b,c];}}else{f=k;}e=e+(1)>>0;j=j+(1)>>0;}if((d.Context.ParseOption.VditorWYSIWYG||d.Context.ParseOption.VditorIR||d.Context.ParseOption.VditorSV||d.Context.ParseOption.ProtyleWYSIWYG)&&h){c=C.CaretTokens;}l=3<=e;m=c;b=l;c=m;return[b,c];};AD.prototype.parseThematicBreak=function(){return this.$val.parseThematicBreak();};AD.ptr.prototype.parseText=function(b){var b,c,d,e,f;c=this;d=b.pos;while(true){if(!(b.pos=e.$length)?($throwRuntimeError("index out of range"),undefined):e.$array[e.$offset+f])))){break;}b.pos=b.pos+(1)>>0;}return new B.Node.ptr("","","","",16,CY.nil,CY.nil,CY.nil,CY.nil,CY.nil,CZ.nil,$subslice(b.tokens,d,b.pos),"","",false,false,false,0,false,0,0,0,CW.nil,CW.nil,CW.nil,0,DA.nil,false,DB.nil,0,0,0,0,CW.nil,0,false,"",0,CW.nil,"",CZ.nil,CW.nil,DD.nil,false,"","","","","","","","","","","",0,"");};AD.prototype.parseText=function(b){return this.$val.parseText(b);};AD.ptr.prototype.isMarker=function(b){var b,c;c=this;if(D.IsMarker(b)){return true;}if(c.Context.ParseOption.Sup&&(94===b)){return true;}return false;};AD.prototype.isMarker=function(b){return this.$val.isMarker(b);};AD.ptr.prototype.parseBackslash=function(b,c){var b,c,d,e,f,g,h,i,j,k,l,m,n,o;d=this;if(c.pos===(c.tokensLen-1>>0)){c.pos=c.pos+(1)>>0;return new B.Node.ptr("","","","",16,CY.nil,CY.nil,CY.nil,CY.nil,CY.nil,CZ.nil,U,"","",false,false,false,0,false,0,0,0,CW.nil,CW.nil,CW.nil,0,DA.nil,false,DB.nil,0,0,0,0,CW.nil,0,false,"",0,CW.nil,"",CZ.nil,CW.nil,DD.nil,false,"","","","","","","","","","","",0,"");}c.pos=c.pos+(1)>>0;g=(e=c.tokens,f=c.pos,((f<0||f>=e.$length)?($throwRuntimeError("index out of range"),undefined):e.$array[e.$offset+f]));if(10===g){c.pos=c.pos+(1)>>0;return new B.Node.ptr("","","","",31,CY.nil,CY.nil,CY.nil,CY.nil,CY.nil,CZ.nil,new CW([g]),"","",false,false,false,0,false,0,0,0,CW.nil,CW.nil,CW.nil,0,DA.nil,false,DB.nil,0,0,0,0,CW.nil,0,false,"",0,CW.nil,"",CZ.nil,CW.nil,DD.nil,false,"","","","","","","","","","","",0,"");}if(D.IsASCIIPunct(g)){if((60===g)&&!(CY.nil===d.Context.oldtip)&&(106===d.Context.oldtip.Type)){h=$subslice(c.tokens,c.pos);if(A.HasPrefix(h,(new CW($stringToBytes("
"))))||A.HasPrefix(h,(new CW($stringToBytes("
"))))||A.HasPrefix(h,(new CW($stringToBytes("
"))))){return new B.Node.ptr("","","","",16,CY.nil,CY.nil,CY.nil,CY.nil,CY.nil,CZ.nil,U,"","",false,false,false,0,false,0,0,0,CW.nil,CW.nil,CW.nil,0,DA.nil,false,DB.nil,0,0,0,0,CW.nil,0,false,"",0,CW.nil,"",CZ.nil,CW.nil,DD.nil,false,"","","","","","","","","","","",0,"");}}c.pos=c.pos+(1)>>0;i=new B.Node.ptr("","","","",400,CY.nil,CY.nil,CY.nil,CY.nil,CY.nil,CZ.nil,CW.nil,"","",false,false,false,0,false,0,0,0,CW.nil,CW.nil,CW.nil,0,DA.nil,false,DB.nil,0,0,0,0,CW.nil,0,false,"",0,CW.nil,"",CZ.nil,CW.nil,DD.nil,false,"","","","","","","","","","","",0,"");b.AppendChild(i);i.AppendChild(new B.Node.ptr("","","","",401,CY.nil,CY.nil,CY.nil,CY.nil,CY.nil,CZ.nil,new CW([g]),"","",false,false,false,0,false,0,0,0,CW.nil,CW.nil,CW.nil,0,DA.nil,false,DB.nil,0,0,0,0,CW.nil,0,false,"",0,CW.nil,"",CZ.nil,CW.nil,DD.nil,false,"","","","","","","","","","","",0,""));return CY.nil;}if(d.Context.ParseOption.VditorWYSIWYG||d.Context.ParseOption.VditorIR||d.Context.ParseOption.ProtyleWYSIWYG){j=$subslice(c.tokens,c.pos);k=C.CaretTokens;if(k.$length>0,((m<0||m>=l.$length)?($throwRuntimeError("index out of range"),undefined):l.$array[l.$offset+m]));if(D.IsASCIIPunct(g)){if((60===g)&&!(CY.nil===d.Context.oldtip)&&(106===d.Context.oldtip.Type)){n=$subslice(c.tokens,(c.pos+k.$length>>0));if(A.HasPrefix(n,(new CW($stringToBytes("
"))))||A.HasPrefix(n,(new CW($stringToBytes("
"))))||A.HasPrefix(n,(new CW($stringToBytes("
"))))){return new B.Node.ptr("","","","",16,CY.nil,CY.nil,CY.nil,CY.nil,CY.nil,CZ.nil,U,"","",false,false,false,0,false,0,0,0,CW.nil,CW.nil,CW.nil,0,DA.nil,false,DB.nil,0,0,0,0,CW.nil,0,false,"",0,CW.nil,"",CZ.nil,CW.nil,DD.nil,false,"","","","","","","","","","","",0,"");}}c.pos=c.pos+(k.$length)>>0;c.pos=c.pos+(1)>>0;o=new B.Node.ptr("","","","",400,CY.nil,CY.nil,CY.nil,CY.nil,CY.nil,CZ.nil,CW.nil,"","",false,false,false,0,false,0,0,0,CW.nil,CW.nil,CW.nil,0,DA.nil,false,DB.nil,0,0,0,0,CW.nil,0,false,"",0,CW.nil,"",CZ.nil,CW.nil,DD.nil,false,"","","","","","","","","","","",0,"");b.AppendChild(o);o.AppendChild(new B.Node.ptr("","","","",401,CY.nil,CY.nil,CY.nil,CY.nil,CY.nil,CZ.nil,new CW([g]),"","",false,false,false,0,false,0,0,0,CW.nil,CW.nil,CW.nil,0,DA.nil,false,DB.nil,0,0,0,0,CW.nil,0,false,"",0,CW.nil,"",CZ.nil,CW.nil,DD.nil,false,"","","","","","","","","","","",0,""));if(d.Context.ParseOption.ProtyleWYSIWYG){o.InsertBefore(new B.Node.ptr("","","","",16,CY.nil,CY.nil,CY.nil,CY.nil,CY.nil,CZ.nil,k,"","",false,false,false,0,false,0,0,0,CW.nil,CW.nil,CW.nil,0,DA.nil,false,DB.nil,0,0,0,0,CW.nil,0,false,"",0,CW.nil,"",CZ.nil,CW.nil,DD.nil,false,"","","","","","","","","","","",0,""));}else{b.AppendChild(new B.Node.ptr("","","","",16,CY.nil,CY.nil,CY.nil,CY.nil,CY.nil,CZ.nil,k,"","",false,false,false,0,false,0,0,0,CW.nil,CW.nil,CW.nil,0,DA.nil,false,DB.nil,0,0,0,0,CW.nil,0,false,"",0,CW.nil,"",CZ.nil,CW.nil,DD.nil,false,"","","","","","","","","","","",0,""));}return CY.nil;}}}return new B.Node.ptr("","","","",16,CY.nil,CY.nil,CY.nil,CY.nil,CY.nil,CZ.nil,U,"","",false,false,false,0,false,0,0,0,CW.nil,CW.nil,CW.nil,0,DA.nil,false,DB.nil,0,0,0,0,CW.nil,0,false,"",0,CW.nil,"",CZ.nil,CW.nil,DD.nil,false,"","","","","","","","","","","",0,"");};AD.prototype.parseBackslash=function(b,c){return this.$val.parseBackslash(b,c);};AD.ptr.prototype.parseNewline=function(b,c){var b,c,d,e,f,g,h,i,j,k,l,m,n;d=CY.nil;e=this;f=c.pos;c.pos=c.pos+(1)>>0;g=false;h=b.LastChild;if(!(CY.nil===h)&&(16===h.Type)){i=h.Tokens;j=i.$length;if(32===(k=j-1>>0,((k<0||k>=i.$length)?($throwRuntimeError("index out of range"),undefined):i.$array[i.$offset+k]))){l=D.TrimRight(i);h.Tokens=l[1];if(1>0,((m<0||m>=i.$length)?($throwRuntimeError("index out of range"),undefined):i.$array[i.$offset+m]));}}}d=new B.Node.ptr("","","","",32,CY.nil,CY.nil,CY.nil,CY.nil,CY.nil,CZ.nil,new CW([(n=c.tokens,((f<0||f>=n.$length)?($throwRuntimeError("index out of range"),undefined):n.$array[n.$offset+f]))]),"","",false,false,false,0,false,0,0,0,CW.nil,CW.nil,CW.nil,0,DA.nil,false,DB.nil,0,0,0,0,CW.nil,0,false,"",0,CW.nil,"",CZ.nil,CW.nil,DD.nil,false,"","","","","","","","","","","",0,"");if(g){d.Type=31;}return d;};AD.prototype.parseNewline=function(b,c){return this.$val.parseNewline(b,c);};AD.ptr.prototype.MergeText=function(){var b;b=this;b.mergeText(b.Root);};AD.prototype.MergeText=function(){return this.$val.MergeText();};AD.ptr.prototype.mergeText=function(b){var b,c,d,e;c=this;d=b.FirstChild;while(true){if(!(!(CY.nil===d))){break;}e=d.Next;if(16===d.Type){while(true){if(!(!(CY.nil===e)&&(16===e.Type))){break;}d.AppendTokens(e.Tokens);e.Unlink();e=d.Next;}}else if(40===d.Type){while(true){if(!(!(CY.nil===e)&&(40===e.Type))){break;}d.AppendTokens(e.Tokens);e.Unlink();e=d.Next;}}else{c.mergeText(d);}d=e;}};AD.prototype.mergeText=function(b){return this.$val.mergeText(b);};AB.ptr.prototype.parseTable=function(b){var aa,ab,ac,ad,ae,af,ag,ah,ai,aj,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z;c=CY.nil;d=CY.nil;e=this;f=CW.nil;g=b.Tokens.$length;h=0;i=0;while(true){if(!(ik){return[c,d];}l=e.parseTableDelimRow(D.TrimWhitespace(((k<0||k>=j.$length)?($throwRuntimeError("index out of range"),undefined):j.$array[j.$offset+k])));if(DB.nil===l){return[c,d];}if((2===g)&&(1===l.$length)&&(0===(0>=l.$length?($throwRuntimeError("index out of range"),undefined):l.$array[l.$offset+0]))&&!A.Contains(f,(new CW($stringToBytes("|"))))){return[c,d];}m=CZ.nil;n=0;while(true){if(!(n=j.$length)?($throwRuntimeError("index out of range"),undefined):j.$array[j.$offset+n])),l,true);if(CY.nil===o){return[c,d];}m=$append(m,o);p=o.FirstChild;while(true){if(!(!(CY.nil===p))){break;}q=A.Index(p.Tokens,(new CW($stringToBytes("{:"))));if(!((0===q))){p=p.Next;continue;}r=$subslice(p.Tokens,q);s=e.parseKramdownSpanIAL(r);t=s[0];u=s[1];if(0>0));if(A.Contains(v,(new CW($stringToBytes("span"))))||A.Contains(v,(new CW($stringToBytes("fn__none"))))||A.Contains(v,(new CW($stringToBytes("width:"))))){p.KramdownIAL=u;p.Tokens=$subslice(p.Tokens,v.$length);w=new B.Node.ptr("","","","",456,CY.nil,CY.nil,CY.nil,CY.nil,CY.nil,CZ.nil,v,"","",false,false,false,0,false,0,0,0,CW.nil,CW.nil,CW.nil,0,DA.nil,false,DB.nil,0,0,0,0,CW.nil,0,false,"",0,CW.nil,"",CZ.nil,CW.nil,DD.nil,false,"","","","","","","","","","","",0,"");p.PrependChild(w);}}p=p.Next;}n=n+(1)>>0;}d=new B.Node.ptr("","","","",106,CY.nil,CY.nil,CY.nil,CY.nil,CY.nil,CZ.nil,CW.nil,"","",false,false,false,0,false,0,0,0,CW.nil,CW.nil,CW.nil,0,DA.nil,false,l,0,0,0,0,CW.nil,0,false,"",0,CW.nil,"",CZ.nil,CW.nil,DD.nil,false,"","","","","","","","","","","",0,"");d.TableAligns=l;d.AppendChild(e.newTableHead(m));x=k+1>>0;while(true){if(!(x=j.$length)?($throwRuntimeError("index out of range"),undefined):j.$array[j.$offset+x]));z=e.parseTableRow(y,l,false);if(CY.nil===z){return[c,d];}if(e.ParseOption.KramdownSpanIAL){aa=z.FirstChild;while(true){if(!(!(CY.nil===aa))){break;}ab=A.Index(aa.Tokens,(new CW($stringToBytes("{:"))));if(!((0===ab))){aa=aa.Next;continue;}ac=$subslice(aa.Tokens,ab);ad=e.parseKramdownSpanIAL(ac);ae=ad[0];af=ad[1];if(0>0));if(A.Contains(ag,(new CW($stringToBytes("span"))))||A.Contains(ag,(new CW($stringToBytes("fn__none"))))||A.Contains(ag,(new CW($stringToBytes("width:"))))){aa.KramdownIAL=af;aa.Tokens=$subslice(aa.Tokens,ag.$length);ah=new B.Node.ptr("","","","",456,CY.nil,CY.nil,CY.nil,CY.nil,CY.nil,CZ.nil,ag,"","",false,false,false,0,false,0,0,0,CW.nil,CW.nil,CW.nil,0,DA.nil,false,DB.nil,0,0,0,0,CW.nil,0,false,"",0,CW.nil,"",CZ.nil,CW.nil,DD.nil,false,"","","","","","","","","","","",0,"");aa.PrependChild(ah);}}aa=aa.Next;}}d.AppendChild(z);x=x+(1)>>0;}return[c,d];}else{if((10===(ai=b.Tokens,((i<0||i>=ai.$length)?($throwRuntimeError("index out of range"),undefined):ai.$array[ai.$offset+i])))||(0===i)){if(0===i){f=$subslice(b.Tokens,i);}else{f=$subslice(b.Tokens,(i+1>>0));}aj=e.parseTable0(f);if(!(CY.nil===aj)){if(0>0;i=i+(1)>>0;}return[c,d];};AB.prototype.parseTable=function(b){return this.$val.parseTable(b);};AB.ptr.prototype.parseTable0=function(b){var aa,ab,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z;c=CY.nil;d=this;e=D.Split(b,10);f=e.$length;if(2>f){return c;}g=D.TrimWhitespace((1>=e.$length?($throwRuntimeError("index out of range"),undefined):e.$array[e.$offset+1]));if(2>g.$length){return c;}h=d.parseTableDelimRow(g);if(DB.nil===h){return c;}if((2===f)&&(1===h.$length)&&(0===(0>=h.$length?($throwRuntimeError("index out of range"),undefined):h.$array[h.$offset+0]))&&!A.Contains(b,(new CW($stringToBytes("|"))))){return c;}i=d.parseTableRow(D.TrimWhitespace((0>=e.$length?($throwRuntimeError("index out of range"),undefined):e.$array[e.$offset+0])),h,true);if(CY.nil===i){return c;}if(d.ParseOption.KramdownSpanIAL){j=i.FirstChild;while(true){if(!(!(CY.nil===j))){break;}k=A.LastIndex(j.Tokens,(new CW($stringToBytes("{:"))));if(0>k){j=j.Next;continue;}l=$subslice(j.Tokens,k);m=d.parseKramdownSpanIAL(l);n=m[0];o=m[1];if(0>0));j.Tokens=$subslice(j.Tokens,0,(j.Tokens.$length-p.$length>>0));q=new B.Node.ptr("","","","",456,CY.nil,CY.nil,CY.nil,CY.nil,CY.nil,CZ.nil,p,"","",false,false,false,0,false,0,0,0,CW.nil,CW.nil,CW.nil,0,DA.nil,false,DB.nil,0,0,0,0,CW.nil,0,false,"",0,CW.nil,"",CZ.nil,CW.nil,DD.nil,false,"","","","","","","","","","","",0,"");j.InsertAfter(q);j=j.Next;}j=j.Next;}}c=new B.Node.ptr("","","","",106,CY.nil,CY.nil,CY.nil,CY.nil,CY.nil,CZ.nil,CW.nil,"","",false,false,false,0,false,0,0,0,CW.nil,CW.nil,CW.nil,0,DA.nil,false,h,0,0,0,0,CW.nil,0,false,"",0,CW.nil,"",CZ.nil,CW.nil,DD.nil,false,"","","","","","","","","","","",0,"");c.TableAligns=h;c.AppendChild(d.newTableHead(new CZ([i])));r=2;while(true){if(!(r=e.$length)?($throwRuntimeError("index out of range"),undefined):e.$array[e.$offset+r]));t=d.parseTableRow(s,h,false);if(CY.nil===t){return c;}if(d.ParseOption.KramdownSpanIAL){u=t.FirstChild;while(true){if(!(!(CY.nil===u))){break;}v=A.LastIndex(u.Tokens,(new CW($stringToBytes("{:"))));if(0>v){u=u.Next;continue;}w=$subslice(u.Tokens,v);x=d.parseKramdownSpanIAL(w);y=x[0];z=x[1];if(0>0));u.Tokens=$subslice(u.Tokens,0,(u.Tokens.$length-aa.$length>>0));ab=new B.Node.ptr("","","","",456,CY.nil,CY.nil,CY.nil,CY.nil,CY.nil,CZ.nil,aa,"","",false,false,false,0,false,0,0,0,CW.nil,CW.nil,CW.nil,0,DA.nil,false,DB.nil,0,0,0,0,CW.nil,0,false,"",0,CW.nil,"",CZ.nil,CW.nil,DD.nil,false,"","","","","","","","","","","",0,"");u.InsertAfter(ab);u=u.Next;}u=u.Next;}}c.AppendChild(t);r=r+(1)>>0;}return c;};AB.prototype.parseTable0=function(b){return this.$val.parseTable0(b);};AB.ptr.prototype.newTableHead=function(b){var b,c,d,e,f,g,h,i,j;c=this;d=new B.Node.ptr("","","","",107,CY.nil,CY.nil,CY.nil,CY.nil,CY.nil,CZ.nil,CW.nil,"","",false,false,false,0,false,0,0,0,CW.nil,CW.nil,CW.nil,0,DA.nil,false,DB.nil,0,0,0,0,CW.nil,0,false,"",0,CW.nil,"",CZ.nil,CW.nil,DD.nil,false,"","","","","","","","","","","",0,"");e=b;f=0;while(true){if(!(f=e.$length)?($throwRuntimeError("index out of range"),undefined):e.$array[e.$offset+f]);h=new B.Node.ptr("","","","",108,CY.nil,CY.nil,CY.nil,CY.nil,CY.nil,CZ.nil,CW.nil,"","",false,false,false,0,false,0,0,0,CW.nil,CW.nil,CW.nil,0,DA.nil,false,DB.nil,0,0,0,0,CW.nil,0,false,"",0,CW.nil,"",CZ.nil,CW.nil,DD.nil,false,"","","","","","","","","","","",0,"");d.AppendChild(h);i=g.FirstChild;while(true){if(!(!(CY.nil===i))){break;}j=i.Next;h.AppendChild(i);i=j;}f++;}return d;};AB.prototype.newTableHead=function(b){return this.$val.newTableHead(b);};V=function(b,c,d){var b,c,d,e,f,g,h;if((c+1>>0)>=b.$length||c<1){return false;}e=A.IndexByte($subslice(b,0,c),d);g=0===(f=A.Count($subslice(b,0,c),new CW([d]))%2,f===f?f:$throwRuntimeError("integer divide by zero"));if(g){return false;}h=A.IndexByte($subslice(b,(c+1>>0)),d);return-1h.$length){e=CY.nil;return e;}if(D.IsBlank((0>=h.$length?($throwRuntimeError("index out of range"),undefined):h.$array[h.$offset+0]))){h=$subslice(h,1);}if(h.$length>0&&D.IsBlank((i=h.$length-1>>0,((i<0||i>=h.$length)?($throwRuntimeError("index out of range"),undefined):h.$array[h.$offset+i])))){h=$subslice(h,0,(h.$length-1>>0));}j=h.$length;k=c.$length;if(d&&j>k){e=CY.nil;return e;}l=0;m=CW.nil;while(true){if(!(l=h.$length)?($throwRuntimeError("index out of range"),undefined):h.$array[h.$offset+l]));m=A.ReplaceAll(m,(new CW($stringToBytes("|"))),(new CW($stringToBytes("|"))));n=new B.Node.ptr("","","","",109,CY.nil,CY.nil,CY.nil,CY.nil,CY.nil,CZ.nil,CW.nil,"","",false,false,false,0,false,0,0,0,CW.nil,CW.nil,CW.nil,0,DA.nil,false,DB.nil,((l<0||l>=c.$length)?($throwRuntimeError("index out of range"),undefined):c.$array[c.$offset+l]),0,0,0,CW.nil,0,false,"",0,CW.nil,"",CZ.nil,CW.nil,DD.nil,false,"","","","","","","","","","","",0,"");n.Tokens=m;e.AppendChild(n);l=l+(1)>>0;}while(true){if(!(l=c.$length)?($throwRuntimeError("index out of range"),undefined):c.$array[c.$offset+l]),0,0,0,CW.nil,0,false,"",0,CW.nil,"",CZ.nil,CW.nil,DD.nil,false,"","","","","","","","","","","",0,"");e.AppendChild(o);l=l+(1)>>0;}return e;};AB.prototype.parseTableRow=function(b,c,d){return this.$val.parseTableRow(b,c,d);};AB.ptr.prototype.findTableDelimRow=function(b){var b,c,d,e,f,g,h,i;c=0;d=this;e=b.$length;if(2>e){c=-1;return c;}f=b;g=0;while(true){if(!(g=f.$length)?($throwRuntimeError("index out of range"),undefined):f.$array[f.$offset+g]);if(!(DB.nil===d.parseTableDelimRow(i))){c=h;return c;}g++;}c=-1;return c;};AB.prototype.findTableDelimRow=function(b){return this.$val.findTableDelimRow(b);};AB.ptr.prototype.parseTableDelimRow=function(b){var b,c,d,e,f,g,h,i,j,k,l,m,n,o;c=DB.nil;d=this;e=b.$length;if(1>e){c=DB.nil;return c;}f=0;g=0;while(true){if(!(g=b.$length)?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+g]);if(!((124===f))&&!((45===f))&&!((58===f))&&!((32===f))){c=DB.nil;return c;}g=g+(1)>>0;}h=A.Index(b,(new CW($stringToBytes("\\|"))));if(0=i.$length?($throwRuntimeError("index out of range"),undefined):i.$array[i.$offset+0]))){i=$subslice(i,1);}if(i.$length>0&&D.IsBlank((j=i.$length-1>>0,((j<0||j>=i.$length)?($throwRuntimeError("index out of range"),undefined):i.$array[i.$offset+j])))){i=$subslice(i,0,(i.$length-1>>0));}k=DB.nil;l=i;m=0;while(true){if(!(m=l.$length)?($throwRuntimeError("index out of range"),undefined):l.$array[l.$offset+m]);n=D.TrimWhitespace(n);n=A.ReplaceAll(n,(new CW($stringToBytes("|"))),(new CW($stringToBytes("|"))));if(1>e||CW.nil===n){c=DB.nil;return c;}o=d.tableDelimAlign(n);if(-1===o){c=DB.nil;return c;}k=$append(k,o);m++;}c=k;return c;};AB.prototype.parseTableDelimRow=function(b){return this.$val.parseTableDelimRow(b);};AB.ptr.prototype.tableDelimAlign=function(b){var b,c,d,e,f,g,h,i,j,k,l,m;c=this;d=b.$length;if(1>d){return-1;}e=false;f=false;g=e;h=f;i=(0>=b.$length?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+0]);g=58===i;k=(j=d-1>>0,((j<0||j>=b.$length)?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+j]));h=58===k;l=1;m=0;while(true){if(!(l<(d-1>>0))){break;}m=((l<0||l>=b.$length)?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+l]);if(!((45===m))){return-1;}l=l+(1)>>0;}if(g&&h){return 2;}if(g){return 1;}if(h){return 3;}return 0;};AB.prototype.tableDelimAlign=function(b){return this.$val.tableDelimAlign(b);};W=function(b,c){var{b,c,d,e,f,g,$s,$r,$c}=$restore(this,{b,c});$s=$s||0;s:while(true){switch($s){case 0:if(!b.Context.ParseOption.SuperBlock||b.Context.indented){$s=-1;return 0;}d=b.parseSuperBlock();e=d[0];f=d[1];if(e){$s=1;continue;}$s=2;continue;case 1:$r=b.Context.closeUnmatchedBlocks();$s=3;case 3:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}g=b.Context.addChild(475);$s=4;case 4:if($c){$c=false;g=g.$blk();}if(g&&g.$blk!==undefined){break s;}g;b.Context.addChildMarker(476,CW.nil);b.Context.addChildMarker(477,f);b.Context.offset=b.Context.currentLineLen-1>>0;$s=-1;return 1;case 2:$s=-1;return 0;}return;}var $f={$blk:W,$c:true,$r,b,c,d,e,f,g,$s};return $f;};$pkg.SuperBlockStart=W;X=function(b,c){var{b,c,d,e,$s,$r,$c}=$restore(this,{b,c});$s=$s||0;s:while(true){switch($s){case 0:if(!(CY.nil===c.Tip.LastChild)&&(478===c.Tip.LastChild.Type)&&c.Tip.LastChild.Close){$s=-1;return 1;}d=c.isSuperBlockClose($subslice(c.currentLine,c.nextNonspace));$s=3;case 3:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}if(d){$s=1;continue;}$s=2;continue;case 1:e=c.Tip;while(true){if(!(!(CY.nil===e))){break;}if(475===e.Type){$s=-1;return 3;}e=e.Parent;}case 2:$s=-1;return 0;}return;}var $f={$blk:X,$c:true,$r,b,c,d,e,$s};return $f;};$pkg.SuperBlockContinue=X;AB.ptr.prototype.superBlockFinalize=function(b){var{b,c,d,$s,$r,$c}=$restore(this,{b});$s=$s||0;s:while(true){switch($s){case 0:c=this;d=b.FirstChild;case 1:if(!(!(CY.nil===d))){$s=2;continue;}if(d.Close){d=d.Next;$s=1;continue;}$r=c.finalize(d);$s=3;case 3:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}d=d.Next;$s=1;continue;case 2:$s=-1;return;}return;}var $f={$blk:AB.ptr.prototype.superBlockFinalize,$c:true,$r,b,c,d,$s};return $f;};AB.prototype.superBlockFinalize=function(b){return this.$val.superBlockFinalize(b);};AD.ptr.prototype.parseSuperBlock=function(){var b,c,d,e,f,g,h,i,j,k,l,m;b=false;c=CW.nil;d=this;g=(e=d.Context.currentLine,f=d.Context.nextNonspace,((f<0||f>=e.$length)?($throwRuntimeError("index out of range"),undefined):e.$array[e.$offset+f]));if(!((123===g))){return[b,c];}h=g;i=0;j=d.Context.nextNonspace;while(true){if(!(j=k.$length)?($throwRuntimeError("index out of range"),undefined):k.$array[k.$offset+j]))))){break;}i=i+(1)>>0;j=j+(1)>>0;}if(!((3===i))){return[b,c];}c=$subslice(d.Context.currentLine,(d.Context.nextNonspace+i>>0));c=D.TrimWhitespace(c);if(!A.EqualFold(c,CW.nil)&&!A.EqualFold(c,(new CW($stringToBytes("row"))))&&!A.EqualFold(c,(new CW($stringToBytes("col"))))){return[b,c];}l=true;m=c;b=l;c=m;return[b,c];};AD.prototype.parseSuperBlock=function(){return this.$val.parseSuperBlock();};AB.ptr.prototype.isSuperBlockClose=function(b){var{b,c,d,e,f,g,h,i,j,k,$s,$r,$c}=$restore(this,{b});$s=$s||0;s:while(true){switch($s){case 0:c=false;d=this;b=D.TrimWhitespace(b);if(A.Equal(b,(new CW($stringToBytes("\xE2\x80\xB8}}}"))))){e=new B.Node.ptr("","","","",1,CY.nil,CY.nil,CY.nil,CY.nil,CY.nil,CZ.nil,C.CaretTokens,"","",false,false,false,0,false,0,0,0,CW.nil,CW.nil,CW.nil,0,DA.nil,false,DB.nil,0,0,0,0,CW.nil,0,false,"",0,CW.nil,"",CZ.nil,CW.nil,DD.nil,false,"","","","","","","","","","","",0,"");d.TipAppendChild(e);}f=A.HasSuffix(b,C.CaretTokens);b=A.ReplaceAll(b,C.CaretTokens,CW.nil);if(!A.Equal((new CW($stringToBytes("}}}"))),b)){$s=-1;return c;}if(f){$s=1;continue;}$s=2;continue;case 1:g=d.Tip.ChildrenByType(1);$s=3;case 3:if($c){$c=false;g=g.$blk();}if(g&&g.$blk!==undefined){break s;}h=g;i=h.$length;if(0>0,((j<0||j>=h.$length)?($throwRuntimeError("index out of range"),undefined):h.$array[h.$offset+j]));k.Tokens=$appendSlice(k.Tokens,C.CaretTokens);}case 2:c=true;$s=-1;return c;}return;}var $f={$blk:AB.ptr.prototype.isSuperBlockClose,$c:true,$r,b,c,d,e,f,g,h,i,j,k,$s};return $f;};AB.prototype.isSuperBlockClose=function(b){return this.$val.isSuperBlockClose(b);};Y=function(b,c,d){var{b,c,d,e,$s,$r,$c}=$restore(this,{b,c,d});$s=$s||0;s:while(true){switch($s){case 0:e=DH.nil;e=new AD.ptr(CY.nil,new AB.ptr(DH.nil,d,CY.nil,CY.nil,CW.nil,0,0,0,0,0,0,false,false,false,false,CY.nil,CY.nil),DJ.nil,DK.nil,b,"","","","",DC.nil,new $Int64(0,0),new $Int64(0,0),"");e.Context.Tree=e;e.lexer=D.NewLexer(c);e.Root=new B.Node.ptr("","","","",0,CY.nil,CY.nil,CY.nil,CY.nil,CY.nil,CZ.nil,CW.nil,"","",false,false,false,0,false,0,0,0,CW.nil,CW.nil,CW.nil,0,DA.nil,false,DB.nil,0,0,0,0,CW.nil,0,false,"",0,CW.nil,"",CZ.nil,CW.nil,DD.nil,false,"","","","","","","","","","","",0,"");$r=e.parseBlocks();$s=1;case 1:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$r=e.parseInlines();$s=2;case 2:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$r=e.finalParseBlockIAL();$s=3;case 3:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}e.lexer=DJ.nil;$s=-1;return e;}return;}var $f={$blk:Y,$c:true,$r,b,c,d,e,$s};return $f;};$pkg.Parse=Y;AD.ptr.prototype.finalParseBlockIAL=function(){var{b,c,d,e,f,g,h,i,j,k,l,m,$s,$r,$c}=$restore(this,{});$s=$s||0;s:while(true){switch($s){case 0:b=[b];c=[c];c[0]=this;if(!c[0].Context.ParseOption.KramdownBlockIAL){$s=-1;return;}b[0]=CZ.nil;$r=B.Walk(c[0].Root,(function(b,c){return function $b(d,e){var{d,e,f,g,h,i,j,k,l,$s,$r,$c}=$restore(this,{d,e});$s=$s||0;s:while(true){switch($s){case 0:if(!e||!d.IsBlock()||(455===d.Type)){$s=-1;return 2;}if((5===d.Type)&&!(CY.nil===d.FirstChild)&&CY.nil===d.FirstChild.Next){b[0]=$append(b[0],d);}if(""===d.ID){$s=1;continue;}$s=2;continue;case 1:f=d.IALAttr("id");if(""===f){$s=3;continue;}$s=4;continue;case 3:g=B.NewNodeID();$s=5;case 5:if($c){$c=false;g=g.$blk();}if(g&&g.$blk!==undefined){break s;}f=g;case 4:d.ID=f;if(c[0].Context.ParseOption.ProtyleWYSIWYG&&c[0].Context.ParseOption.Spin&&!((0===d.Type))&&!(CY.nil===d.Next)&&!((455===d.Next.Type))&&!(""===d.Next.ID)){$s=6;continue;}$s=7;continue;case 6:d.ID=d.Next.ID;d.KramdownIAL=d.Next.KramdownIAL;if(""===d.IALAttr("updated")){d.SetIALAttr("updated",$substring(d.ID,0,14));}h=B.NewNodeID();$s=8;case 8:if($c){$c=false;h=h.$blk();}if(h&&h.$blk!==undefined){break s;}d.Next.ID=h;d.Next.KramdownIAL=DD.nil;d.Next.SetIALAttr("id",d.Next.ID);d.Next.SetIALAttr("updated",$substring(d.Next.ID,0,14));if(!(CY.nil===d.Next.Next)&&(455===d.Next.Next.Type)){$s=9;continue;}$s=10;continue;case 9:i=BA(d.Next.KramdownIAL);$s=11;case 11:if($c){$c=false;i=i.$blk();}if(i&&i.$blk!==undefined){break s;}d.Next.Next.Tokens=i;case 10:j=BA(d.KramdownIAL);$s=12;case 12:if($c){$c=false;j=j.$blk();}if(j&&j.$blk!==undefined){break s;}$r=d.InsertAfter(new B.Node.ptr("","","","",455,CY.nil,CY.nil,CY.nil,CY.nil,CY.nil,CZ.nil,j,"","",false,false,false,0,false,0,0,0,CW.nil,CW.nil,CW.nil,0,DA.nil,false,DB.nil,0,0,0,0,CW.nil,0,false,"",0,CW.nil,"",CZ.nil,CW.nil,DD.nil,false,"","","","","","","","","","","",0,""));$s=13;case 13:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$s=-1;return 2;case 7:case 2:k=d.Next;if(CY.nil===k||!((455===k.Type))){if(c[0].Context.ParseOption.ProtyleWYSIWYG){d.SetIALAttr("id",d.ID);d.SetIALAttr("updated",$substring(d.ID,0,14));}$s=-1;return 2;}d.KramdownIAL=BH(k.Tokens);if(""===d.IALAttr("updated")&&c[0].Context.ParseOption.ProtyleWYSIWYG){$s=14;continue;}$s=15;continue;case 14:d.SetIALAttr("updated",$substring(d.ID,0,14));l=BA(d.KramdownIAL);$s=16;case 16:if($c){$c=false;l=l.$blk();}if(l&&l.$blk!==undefined){break s;}k.Tokens=l;case 15:$s=-1;return 2;}return;}var $f={$blk:$b,$c:true,$r,d,e,f,g,h,i,j,k,l,$s};return $f;};})(b,c));$s=1;case 1:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}d=b[0];e=0;case 2:if(!(e=d.$length)?($throwRuntimeError("index out of range"),undefined):d.$array[d.$offset+e]);g=B.NewNodeID();$s=4;case 4:if($c){$c=false;g=g.$blk();}if(g&&g.$blk!==undefined){break s;}h=g;i=(new CW($stringToBytes("{: id=\""+h+"\"}")));j=new B.Node.ptr(h,"","","",1,CY.nil,CY.nil,CY.nil,CY.nil,CY.nil,CZ.nil,CW.nil,"","",false,false,false,0,false,0,0,0,CW.nil,CW.nil,CW.nil,0,DA.nil,false,DB.nil,0,0,0,0,CW.nil,0,false,"",0,CW.nil,"",CZ.nil,CW.nil,DD.nil,false,"","","","","","","","","","","",0,"");j.KramdownIAL=new DD([new DC(["id",h]),new DC(["updated",$substring(h,0,14)])]);j.ID=h;j.InsertAfter(new B.Node.ptr("","","","",455,CY.nil,CY.nil,CY.nil,CY.nil,CY.nil,CZ.nil,i,"","",false,false,false,0,false,0,0,0,CW.nil,CW.nil,CW.nil,0,DA.nil,false,DB.nil,0,0,0,0,CW.nil,0,false,"",0,CW.nil,"",CZ.nil,CW.nil,DD.nil,false,"","","","","","","","","","","",0,""));f.AppendChild(j);e++;$s=2;continue;case 3:k=CY.nil;l="";if(!(CY.nil===c[0].Context.rootIAL)){$s=5;continue;}$s=6;continue;case 5:k=c[0].Context.rootIAL;$s=7;continue;case 6:m=B.NewNodeID();$s=8;case 8:if($c){$c=false;m=m.$blk();}if(m&&m.$blk!==undefined){break s;}l=m;k=new B.Node.ptr("","","","",455,CY.nil,CY.nil,CY.nil,CY.nil,CY.nil,CZ.nil,(new CW($stringToBytes("{: id=\""+l+"\" updated=\""+$substring(l,0,14)+"\" type=\"doc\"}"))),"","",false,false,false,0,false,0,0,0,CW.nil,CW.nil,CW.nil,0,DA.nil,false,DB.nil,0,0,0,0,CW.nil,0,false,"",0,CW.nil,"",CZ.nil,CW.nil,DD.nil,false,"","","","","","","","","","","",0,"");c[0].Root.ID=l;c[0].ID=l;case 7:c[0].Root.AppendChild(k);$s=-1;return;}return;}var $f={$blk:AD.ptr.prototype.finalParseBlockIAL,$c:true,$r,b,c,d,e,f,g,h,i,j,k,l,m,$s};return $f;};AD.prototype.finalParseBlockIAL=function(){return this.$val.finalParseBlockIAL();};AA=function(b,c,d){var{b,c,d,e,$s,$r,$c}=$restore(this,{b,c,d});$s=$s||0;s:while(true){switch($s){case 0:e=DH.nil;e=new AD.ptr(CY.nil,new AB.ptr(DH.nil,d,CY.nil,CY.nil,CW.nil,0,0,0,0,0,0,false,false,false,false,CY.nil,CY.nil),DJ.nil,DK.nil,b,"","","","",DC.nil,new $Int64(0,0),new $Int64(0,0),"");e.Context.Tree=e;e.Root=new B.Node.ptr("","","","",0,CY.nil,CY.nil,CY.nil,CY.nil,CY.nil,CZ.nil,CW.nil,"","",false,false,false,0,false,0,0,0,CW.nil,CW.nil,CW.nil,0,DA.nil,false,DB.nil,0,0,0,0,CW.nil,0,false,"",0,CW.nil,"",CZ.nil,CW.nil,DD.nil,false,"","","","","","","","","","","",0,"");e.Root.AppendChild(new B.Node.ptr("","","","",1,CY.nil,CY.nil,CY.nil,CY.nil,CY.nil,CZ.nil,c,"","",false,false,false,0,false,0,0,0,CW.nil,CW.nil,CW.nil,0,DA.nil,false,DB.nil,0,0,0,0,CW.nil,0,false,"",0,CW.nil,"",CZ.nil,CW.nil,DD.nil,false,"","","","","","","","","","","",0,""));$r=e.parseInlines();$s=1;case 1:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}e.lexer=DJ.nil;$s=-1;return e;}return;}var $f={$blk:AA,$c:true,$r,b,c,d,e,$s};return $f;};$pkg.Inline=AA;AB.ptr.prototype.advanceOffset=function(b,c){var b,c,d,e,f,g,h,i,j,k,l;d=this;e=d.currentLine;f=0;g=0;h=f;i=g;j=0;while(true){if(!(0=e.$length)?($throwRuntimeError("index out of range"),undefined):e.$array[e.$offset+k]));if(9===j){h=4-((l=d.column%4,l===l?l:$throwRuntimeError("integer divide by zero")))>>0;if(c){d.partiallyConsumedTab=h>b;if(d.partiallyConsumedTab){i=b;}else{i=h;d.offset=d.offset+(1)>>0;}d.column=d.column+(i)>>0;b=b-(i)>>0;}else{d.partiallyConsumedTab=false;d.column=d.column+(h)>>0;d.offset=d.offset+(1)>>0;b=b-(1)>>0;}}else{d.partiallyConsumedTab=false;d.offset=d.offset+(1)>>0;d.column=d.column+(1)>>0;b=b-(1)>>0;}}};AB.prototype.advanceOffset=function(b,c){return this.$val.advanceOffset(b,c);};AB.ptr.prototype.advanceNextNonspace=function(){var b;b=this;b.offset=b.nextNonspace;b.column=b.nextNonspaceColumn;b.partiallyConsumedTab=false;};AB.prototype.advanceNextNonspace=function(){return this.$val.advanceNextNonspace();};AB.ptr.prototype.findNextNonspace=function(){var b,c,d,e,f,g;b=this;c=b.offset;d=b.column;e=0;while(true){e=(f=b.currentLine,((c<0||c>=f.$length)?($throwRuntimeError("index out of range"),undefined):f.$array[f.$offset+c]));if(32===e){c=c+(1)>>0;d=d+(1)>>0;}else if(9===e){c=c+(1)>>0;d=d+((4-((g=d%4,g===g?g:$throwRuntimeError("integer divide by zero")))>>0))>>0;}else{break;}}b.blank=10===e;b.nextNonspace=c;b.nextNonspaceColumn=d;b.indent=b.nextNonspaceColumn-b.column>>0;b.indented=4<=b.indent;};AB.prototype.findNextNonspace=function(){return this.$val.findNextNonspace();};AB.ptr.prototype.closeUnmatchedBlocks=function(){var{b,c,$s,$r,$c}=$restore(this,{});$s=$s||0;s:while(true){switch($s){case 0:b=this;if(!b.allClosed){$s=1;continue;}$s=2;continue;case 1:case 3:if(!(!(b.oldtip===b.lastMatchedContainer))){$s=4;continue;}c=b.oldtip.Parent;$r=b.finalize(b.oldtip);$s=5;case 5:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}b.oldtip=c;$s=3;continue;case 4:b.allClosed=true;case 2:$s=-1;return;}return;}var $f={$blk:AB.ptr.prototype.closeUnmatchedBlocks,$c:true,$r,b,c,$s};return $f;};AB.prototype.closeUnmatchedBlocks=function(){return this.$val.closeUnmatchedBlocks();};AB.ptr.prototype.closeSuperBlockChildren=function(){var{b,c,$s,$r,$c}=$restore(this,{});$s=$s||0;s:while(true){switch($s){case 0:b=this;c=b.Tip;case 1:if(!(!(CY.nil===c)&&!((475===c.Type)))){$s=2;continue;}$r=b.finalize(c);$s=3;case 3:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}c=c.Parent;$s=1;continue;case 2:$s=-1;return;}return;}var $f={$blk:AB.ptr.prototype.closeSuperBlockChildren,$c:true,$r,b,c,$s};return $f;};AB.prototype.closeSuperBlockChildren=function(){return this.$val.closeSuperBlockChildren();};AB.ptr.prototype.finalize=function(b){var{b,c,d,e,f,g,$s,$r,$c}=$restore(this,{b});$s=$s||0;s:while(true){switch($s){case 0:c=this;d=b.Parent;b.Close=true;e=b.Type;if(e===(11)){$s=2;continue;}if((e===(9))||(e===(500))||(e===(510))||(e===(505))||(e===(535))){$s=3;continue;}if(e===(1)){$s=4;continue;}if(e===(300)){$s=5;continue;}if(e===(425)){$s=6;continue;}if(e===(7)){$s=7;continue;}if(e===(475)){$s=8;continue;}if(e===(495)){$s=9;continue;}if(e===(560)){$s=10;continue;}$s=11;continue;case 2:c.codeBlockFinalize(b);$s=11;continue;case 3:c.htmlBlockFinalize(b);$s=11;continue;case 4:f=AH(b,c);$s=12;case 12:if($c){$c=false;f=f.$blk();}if(f&&f.$blk!==undefined){break s;}g=f;if(g){$s=-1;return;}$s=11;continue;case 5:$r=c.mathBlockFinalize(b);$s=13;case 13:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$s=11;continue;case 6:c.yamlFrontMatterFinalize(b);$s=11;continue;case 7:$r=c.listFinalize(b);$s=14;case 14:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$s=11;continue;case 8:$r=c.superBlockFinalize(b);$s=15;case 15:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$s=11;continue;case 9:$r=c.gitConflictFinalize(b);$s=16;case 16:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$s=11;continue;case 10:c.customBlockFinalize(b);case 11:case 1:c.Tip=d;$s=-1;return;}return;}var $f={$blk:AB.ptr.prototype.finalize,$c:true,$r,b,c,d,e,f,g,$s};return $f;};AB.prototype.finalize=function(b){return this.$val.finalize(b);};AB.ptr.prototype.addChildMarker=function(b,c){var b,c,d,e;d=CY.nil;e=this;d=new B.Node.ptr("","","","",b,CY.nil,CY.nil,CY.nil,CY.nil,CY.nil,CZ.nil,c,"","",true,false,false,0,false,0,0,0,CW.nil,CW.nil,CW.nil,0,DA.nil,false,DB.nil,0,0,0,0,CW.nil,0,false,"",0,CW.nil,"",CZ.nil,CW.nil,DD.nil,false,"","","","","","","","","","","",0,"");e.Tip.AppendChild(d);return d;};AB.prototype.addChildMarker=function(b,c){return this.$val.addChildMarker(b,c);};AB.ptr.prototype.addChild=function(b){var{b,c,d,$s,$r,$c}=$restore(this,{b});$s=$s||0;s:while(true){switch($s){case 0:c=CY.nil;d=this;case 1:if(!(!d.Tip.CanContain(b))){$s=2;continue;}$r=d.finalize(d.Tip);$s=3;case 3:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$s=1;continue;case 2:c=new B.Node.ptr("","","","",b,CY.nil,CY.nil,CY.nil,CY.nil,CY.nil,CZ.nil,CW.nil,"","",false,false,false,0,false,0,0,0,CW.nil,CW.nil,CW.nil,0,DA.nil,false,DB.nil,0,0,0,0,CW.nil,0,false,"",0,CW.nil,"",CZ.nil,CW.nil,DD.nil,false,"","","","","","","","","","","",0,"");d.Tip.AppendChild(c);d.Tip=c;$s=-1;return c;}return;}var $f={$blk:AB.ptr.prototype.addChild,$c:true,$r,b,c,d,$s};return $f;};AB.prototype.addChild=function(b){return this.$val.addChild(b);};AB.ptr.prototype.listsMatch=function(b,c){var b,c,d;d=this;return(b.Typ===c.Typ)&&(((0===b.Delimiter)&&(0===c.Delimiter))||(b.Delimiter===c.Delimiter))&&(b.BulletChar===c.BulletChar);};AB.prototype.listsMatch=function(b,c){return this.$val.listsMatch(b,c);};AF=function(){return new AE.ptr(true,true,true,true,true,true,true,false,true,$pkg.EmojiAliasUnicode,$pkg.EmojiUnicodeAlias,"https://cdn.jsdelivr.net/npm/vditor/dist/images/emoji",false,false,false,false,true,false,true,true,false,false,false,false,false,false,false,false,false,false,true,true,false,true,true,false,true,false,false,false);};$pkg.NewOptions=AF;AB.ptr.prototype.ParentTip=function(){var b,c;b=this;c=b.Tip.Parent;if(!(CY.nil===c)){b.Tip=b.Tip.Parent;}};AB.prototype.ParentTip=function(){return this.$val.ParentTip();};AB.ptr.prototype.TipAppendChild=function(b){var b,c;c=this;c.Tip.AppendChild(b);};AB.prototype.TipAppendChild=function(b){return this.$val.TipAppendChild(b);};AG=function(b,c){var b,c;if(c.blank){return 1;}return 0;};$pkg.ParagraphContinue=AG;AH=function(b,c){var{aa,ab,ac,ad,ae,af,ag,ah,ai,aj,ak,al,am,an,ao,ap,aq,ar,as,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,$s,$r,$c}=$restore(this,{b,c});$s=$s||0;s:while(true){switch($s){case 0:d=false;if(c.ParseOption.ParagraphBeginningSpace){e=D.TrimRight(b.Tokens);b.Tokens=e[1];}else{b.Tokens=D.TrimWhitespace(b.Tokens);}f=false;g=b.Tokens;while(true){if(!(0=g.$length?($throwRuntimeError("index out of range"),undefined):g.$array[g.$offset+0])))){break;}g=c.parseLinkRefDef(g);if(!(CW.nil===g)){b.Tokens=g;f=true;g=b.Tokens;continue;}break;}if(f&&D.IsBlankLine(b.Tokens)){b.Unlink();}if(c.ParseOption.KramdownBlockIAL&&!(CY.nil===c.Tip.Parent)&&(8===c.Tip.Parent.Type)&&b===c.Tip.Parent.FirstChild){$s=1;continue;}$s=2;continue;case 1:h=BH(b.Tokens);if(!(DD.nil===h)){$s=3;continue;}$s=4;continue;case 3:i=new B.Node.ptr("","","","",1,CY.nil,CY.nil,CY.nil,CY.nil,CY.nil,CZ.nil,CW.nil,"","",false,false,false,0,false,0,0,0,CW.nil,CW.nil,CW.nil,0,DA.nil,false,DB.nil,0,0,0,0,CW.nil,0,false,"",0,CW.nil,"",CZ.nil,CW.nil,h,false,"","","","","","","","","","","",0,"");j=BD(h);i.ID=(k=$mapIndex(j,$String.keyFor("id")),k!==undefined?k.v:"");c.Tip.Parent.AppendChild(i);l=BA(h);$s=5;case 5:if($c){$c=false;l=l.$blk();}if(l&&l.$blk!==undefined){break s;}$r=i.InsertAfter(new B.Node.ptr("","","","",455,CY.nil,CY.nil,CY.nil,CY.nil,CY.nil,CZ.nil,l,"","",false,false,false,0,false,0,0,0,CW.nil,CW.nil,CW.nil,0,DA.nil,false,DB.nil,0,0,0,0,CW.nil,0,false,"",0,CW.nil,"",CZ.nil,CW.nil,DD.nil,false,"","","","","","","","","","","",0,""));$s=6;case 6:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}b.Unlink();$s=-1;return d;case 4:case 2:if(c.ParseOption.GFMTaskListItem){$s=7;continue;}$s=8;continue;case 7:m=b.Parent;if(!(CY.nil===m)&&(8===m.Type)&&m.FirstChild===b){$s=9;continue;}$s=10;continue;case 9:if(3===m.ListData.Typ){$s=11;continue;}$s=12;continue;case 11:n=c.ParseOption.VditorWYSIWYG||c.ParseOption.VditorIR||c.ParseOption.VditorSV||c.ParseOption.ProtyleWYSIWYG;o=3>0));b.KramdownIAL=q;}}if(((3===p.$length)&&(A.EqualFold(p,(new CW($stringToBytes("[x]"))))||A.Equal(p,(new CW($stringToBytes("[ ]"))))))||(3=p.$length?($throwRuntimeError("index out of range"),undefined):p.$array[p.$offset+3]))||((r=C.CaretTokens,(0>=r.$length?($throwRuntimeError("index out of range"),undefined):r.$array[r.$offset+0]))===(3>=p.$length?($throwRuntimeError("index out of range"),undefined):p.$array[p.$offset+3]))||((s=C.CaretTokens,(0>=s.$length?($throwRuntimeError("index out of range"),undefined):s.$array[s.$offset+0]))===(2>=p.$length?($throwRuntimeError("index out of range"),undefined):p.$array[p.$offset+2]))))){$s=15;continue;}$s=16;continue;case 15:t=false;u=false;v=false;w=t;x=u;y=v;if(c.ParseOption.VditorWYSIWYG||c.ParseOption.VditorIR||c.ParseOption.VditorSV||c.ParseOption.ProtyleWYSIWYG){z=A.IndexByte(p,93);if(A.HasPrefix(p,C.CaretTokens)){p=A.ReplaceAll(p,C.CaretTokens,CW.nil);w=true;}else if(A.HasPrefix($subslice(p,(z+1>>0)),C.CaretTokens)){p=A.ReplaceAll(p,C.CaretTokens,CW.nil);x=true;}else if(A.Contains($subslice(p,1,z),C.CaretTokens)){p=A.ReplaceAll(p,C.CaretTokens,CW.nil);y=true;}}aa=new B.Node.ptr("","","","",100,CY.nil,CY.nil,CY.nil,CY.nil,CY.nil,CZ.nil,$subslice(p,0,3),"","",false,false,false,0,false,0,0,0,CW.nil,CW.nil,CW.nil,0,DA.nil,m.ListData.Checked,DB.nil,0,0,0,0,CW.nil,0,false,"",0,CW.nil,"",CZ.nil,CW.nil,DD.nil,false,"","","","","","","","","","","",0,"");if(c.ParseOption.ProtyleWYSIWYG){b.InsertBefore(aa);}else{b.PrependChild(aa);}b.Tokens=$subslice(p,3);if(n){$s=17;continue;}$s=18;continue;case 17:ab=A.TrimSpace(b.Tokens);$s=19;case 19:if($c){$c=false;ab=ab.$blk();}if(ab&&ab.$blk!==undefined){break s;}b.Tokens=ab;if(w||x||y){b.Tokens=$appendSlice((new CW($stringToBytes(" \xE2\x80\xB8"))),b.Tokens);}else{if(!c.ParseOption.ProtyleWYSIWYG){b.Tokens=$appendSlice((new CW($stringToBytes(" "))),b.Tokens);}}case 18:if(0=aj.$length)?($throwRuntimeError("index out of range"),undefined):aj.$array[aj.$offset+ak]);b.InsertAfter(al);ak++;}b.Unlink();}case 21:case 16:case 14:case 12:case 10:case 8:if(c.ParseOption.GFMTable){am=c.parseTable(b);an=am[0];ao=am[1];if(!(CY.nil===ao)){if(!(CY.nil===an)){b.Tokens=an.Tokens;b.InsertAfter(ao);ao.Close=true;c.Tip=ao;d=true;$s=-1;return d;}else{b.Type=106;b.TableAligns=ao.TableAligns;ap=ao.FirstChild;while(true){if(!(!(CY.nil===ap))){break;}aq=ap.Next;b.AppendChild(ap);ap=aq;}}$s=-1;return d;}}if(c.ParseOption.ToC){$s=23;continue;}$s=24;continue;case 23:ar=c.parseToC(b);$s=25;case 25:if($c){$c=false;ar=ar.$blk();}if(ar&&ar.$blk!==undefined){break s;}as=ar;if(!(CY.nil===as)){b.Type=415;$s=-1;return d;}case 24:$s=-1;return d;}return;}var $f={$blk:AH,$c:true,$r,aa,ab,ac,ad,ae,af,ag,ah,ai,aj,ak,al,am,an,ao,ap,aq,ar,as,b,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};return $f;};AI=function(b,c){var{b,c,d,e,f,g,h,$s,$r,$c}=$restore(this,{b,c});$s=$s||0;s:while(true){switch($s){case 0:if(b.Context.indented){$s=-1;return 0;}d=b.parseMathBlock();e=d[0];f=d[1];if(e){$s=1;continue;}$s=2;continue;case 1:$r=b.Context.closeUnmatchedBlocks();$s=3;case 3:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}g=b.Context.addChild(300);$s=4;case 4:if($c){$c=false;g=g.$blk();}if(g&&g.$blk!==undefined){break s;}h=g;h.MathBlockDollarOffset=f;b.Context.advanceNextNonspace();b.Context.advanceOffset(f,false);$s=-1;return 2;case 2:$s=-1;return 0;}return;}var $f={$blk:AI,$c:true,$r,b,c,d,e,f,g,h,$s};return $f;};$pkg.MathBlockStart=AI;AJ=function(b,c){var{b,c,d,e,f,g,$s,$r,$c}=$restore(this,{b,c});$s=$s||0;s:while(true){switch($s){case 0:d=c.currentLine;e=c.indent;if(3>=e&&c.isMathBlockClose($subslice(d,c.nextNonspace))){$s=1;continue;}$s=2;continue;case 1:$r=c.finalize(b);$s=4;case 4:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$s=-1;return 2;case 2:f=b.MathBlockDollarOffset;g=0;while(true){if(!(f>0)){break;}g=D.Peek(d,c.offset);if(!((32===g))&&!((9===g))){break;}c.advanceOffset(1,true);f=f-(1)>>0;}case 3:$s=-1;return 0;}return;}var $f={$blk:AJ,$c:true,$r,b,c,d,e,f,g,$s};return $f;};$pkg.MathBlockContinue=AJ;AB.ptr.prototype.mathBlockFinalize=function(b){var{b,c,d,e,f,g,$s,$r,$c}=$restore(this,{b});$s=$s||0;s:while(true){switch($s){case 0:c=this;if(2>b.Tokens.$length){b.AppendChild(new B.Node.ptr("","","","",301,CY.nil,CY.nil,CY.nil,CY.nil,CY.nil,CZ.nil,CW.nil,"","",false,false,false,0,false,0,0,0,CW.nil,CW.nil,CW.nil,0,DA.nil,false,DB.nil,0,0,0,0,CW.nil,0,false,"",0,CW.nil,"",CZ.nil,CW.nil,DD.nil,false,"","","","","","","","","","","",0,""));b.AppendChild(new B.Node.ptr("","","","",302,CY.nil,CY.nil,CY.nil,CY.nil,CY.nil,CZ.nil,CW.nil,"","",false,false,false,0,false,0,0,0,CW.nil,CW.nil,CW.nil,0,DA.nil,false,DB.nil,0,0,0,0,CW.nil,0,false,"",0,CW.nil,"",CZ.nil,CW.nil,DD.nil,false,"","","","","","","","","","","",0,""));b.AppendChild(new B.Node.ptr("","","","",303,CY.nil,CY.nil,CY.nil,CY.nil,CY.nil,CZ.nil,CW.nil,"","",false,false,false,0,false,0,0,0,CW.nil,CW.nil,CW.nil,0,DA.nil,false,DB.nil,0,0,0,0,CW.nil,0,false,"",0,CW.nil,"",CZ.nil,CW.nil,DD.nil,false,"","","","","","","","","","","",0,""));$s=-1;return;}d=$subslice(b.Tokens,2);d=D.TrimWhitespace(d);if(c.ParseOption.VditorWYSIWYG||c.ParseOption.VditorIR||c.ParseOption.VditorSV||c.ParseOption.ProtyleWYSIWYG){if(A.HasSuffix(d,$pkg.MathBlockMarkerCaret)){d=A.TrimSuffix(d,$pkg.MathBlockMarkerCaret);d=$appendSlice(d,C.CaretTokens);}}if(A.HasSuffix(d,$pkg.MathBlockMarker)){d=$subslice(d,0,(d.$length-2>>0));}if(A.Contains(d,(new CW($stringToBytes("=e.$length)?($throwRuntimeError("index out of range"),undefined):e.$array[e.$offset+f]));if(!((36===g))){return[b,c];}h=g;i=0;j=d.Context.nextNonspace;while(true){if(!(j=k.$length)?($throwRuntimeError("index out of range"),undefined):k.$array[k.$offset+j]))))){break;}i=i+(1)>>0;j=j+(1)>>0;}if(2>i){return[b,c];}l=true;m=d.Context.indent;b=l;c=m;return[b,c];};AD.prototype.parseMathBlock=function(){return this.$val.parseMathBlock();};AB.ptr.prototype.isMathBlockClose=function(b){var b,c,d,e,f,g,h,i;c=this;if(c.ParseOption.KramdownBlockIAL&&BG(b)){d=c.parseKramdownBlockIAL(b);if(0=b.$length?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+0]);if(!((f===36))){return false;}if(2>D.Accept(b,f)){return false;}b=D.TrimWhitespace(b);g=b;h=0;while(true){if(!(h=g.$length)?($throwRuntimeError("index out of range"),undefined):g.$array[g.$offset+h]);if(!((i===36))){return false;}h++;}return true;};AB.prototype.isMathBlockClose=function(b){return this.$val.isMathBlockClose(b);};AK=function(b,c){var{b,c,d,e,f,g,h,i,j,k,l,m,$s,$r,$c}=$restore(this,{b,c});$s=$s||0;s:while(true){switch($s){case 0:if(!((7===c.Type))&&b.Context.indented){$s=-1;return 0;}d=b.parseListMarker(c);e=d[0];f=d[1];if(DA.nil===e){$s=-1;return 0;}$r=b.Context.closeUnmatchedBlocks();$s=1;case 1:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}g=(c.Type===7)&&b.Context.listsMatch(c.ListData,e);if(!((b.Context.Tip.Type===7))||!g){$s=2;continue;}$s=3;continue;case 2:h=b.Context.addChild(7);$s=4;case 4:if($c){$c=false;h=h.$blk();}if(h&&h.$blk!==undefined){break s;}i=h;i.ListData=e;case 3:j=b.Context.addChild(8);$s=5;case 5:if($c){$c=false;j=j.$blk();}if(j&&j.$blk!==undefined){break s;}k=j;k.ListData=e;if(b.Context.ParseOption.KramdownBlockIAL&&!(DD.nil===f)){$s=6;continue;}$s=7;continue;case 6:k.KramdownIAL=f;k.ID=k.IALAttr("id");l=BA(f);$s=8;case 8:if($c){$c=false;l=l.$blk();}if(l&&l.$blk!==undefined){break s;}b.Context.offset=b.Context.offset+(l.$length)>>0;case 7:k.Tokens=e.Marker;if((1===k.ListData.Typ)||((3===k.ListData.Typ)&&(0===k.ListData.BulletChar))){m=k.Previous;if(!(CY.nil===m)){k.ListData.Num=m.ListData.Num+1>>0;}else{k.ListData.Num=e.Start;}}$s=-1;return 1;}return;}var $f={$blk:AK,$c:true,$r,b,c,d,e,f,g,h,i,j,k,l,m,$s};return $f;};$pkg.ListStart=AK;AL=function(b,c){var b,c;if(c.blank){if(CY.nil===b.FirstChild){return 1;}c.advanceNextNonspace();}else if(c.indent>=(b.ListData.MarkerOffset+b.ListData.Padding>>0)){c.advanceOffset(b.ListData.MarkerOffset+b.ListData.Padding>>0,true);}else{return 1;}return 0;};$pkg.ListItemContinue=AL;AB.ptr.prototype.listFinalize=function(b){var{b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,$s,$r,$c}=$restore(this,{b});$s=$s||0;s:while(true){switch($s){case 0:c=this;d=b.FirstChild;while(true){if(!(!(CY.nil===d))){break;}if(AN(d)&&!(CY.nil===d.Next)){b.ListData.Tight=false;break;}e=d.FirstChild;while(true){if(!(!(CY.nil===e))){break;}if(AN(e)&&(!(CY.nil===d.Next)||!(CY.nil===e.Next))){b.ListData.Tight=false;break;}e=e.Next;}d=d.Next;}if(c.ParseOption.KramdownBlockIAL){$s=1;continue;}$s=2;continue;case 1:f=b.FirstChild;case 3:if(!(!(CY.nil===f))){$s=4;continue;}if(CY.nil===f.FirstChild){$s=5;continue;}$s=6;continue;case 5:if(!((455===f.Type))){$s=7;continue;}$s=8;continue;case 7:g=B.NewNodeID();$s=9;case 9:if($c){$c=false;g=g.$blk();}if(g&&g.$blk!==undefined){break s;}h=g;i=(new CW($stringToBytes("{: id=\""+h+"\"}")));f.KramdownIAL=new DD([new DC(["id",h])]);f.ID=h;f.InsertAfter(new B.Node.ptr("","","","",455,CY.nil,CY.nil,CY.nil,CY.nil,CY.nil,CZ.nil,i,"","",false,false,false,0,false,0,0,0,CW.nil,CW.nil,CW.nil,0,DA.nil,false,DB.nil,0,0,0,0,CW.nil,0,false,"",0,CW.nil,"",CZ.nil,CW.nil,DD.nil,false,"","","","","","","","","","","",0,""));j=B.NewNodeID();$s=10;case 10:if($c){$c=false;j=j.$blk();}if(j&&j.$blk!==undefined){break s;}h=j;i=(new CW($stringToBytes("{: id=\""+h+"\"}")));k=new B.Node.ptr(h,"","","",1,CY.nil,CY.nil,CY.nil,CY.nil,CY.nil,CZ.nil,CW.nil,"","",false,false,false,0,false,0,0,0,CW.nil,CW.nil,CW.nil,0,DA.nil,false,DB.nil,0,0,0,0,CW.nil,0,false,"",0,CW.nil,"",CZ.nil,CW.nil,DD.nil,false,"","","","","","","","","","","",0,"");k.KramdownIAL=new DD([new DC(["id",h])]);k.ID=h;k.InsertAfter(new B.Node.ptr("","","","",455,CY.nil,CY.nil,CY.nil,CY.nil,CY.nil,CZ.nil,i,"","",false,false,false,0,false,0,0,0,CW.nil,CW.nil,CW.nil,0,DA.nil,false,DB.nil,0,0,0,0,CW.nil,0,false,"",0,CW.nil,"",CZ.nil,CW.nil,DD.nil,false,"","","","","","","","","","","",0,""));f.AppendChild(k);f=f.Next;case 8:f=f.Next;$s=3;continue;case 6:if(7=l.$length?($throwRuntimeError("index out of range"),undefined):l.$array[l.$offset+0])))){$s=11;continue;}$s=12;continue;case 11:m=c.parseKramdownIALInListItem(f.FirstChild.Tokens);if(0=m.$length?($throwRuntimeError("index out of range"),undefined):m.$array[m.$offset+0]),(1>=n.$length?($throwRuntimeError("index out of range"),undefined):n.$array[n.$offset+1]));o=BA(m);$s=16;case 16:if($c){$c=false;o=o.$blk();}if(o&&o.$blk!==undefined){break s;}p=o;f.InsertAfter(new B.Node.ptr("","","","",455,CY.nil,CY.nil,CY.nil,CY.nil,CY.nil,CZ.nil,p,"","",false,false,false,0,false,0,0,0,CW.nil,CW.nil,CW.nil,0,DA.nil,false,DB.nil,0,0,0,0,CW.nil,0,false,"",0,CW.nil,"",CZ.nil,CW.nil,DD.nil,false,"","","","","","","","","","","",0,""));q=$subslice(f.FirstChild.Tokens,(A.Index(f.FirstChild.Tokens,(new CW($stringToBytes("}"))))+1>>0));q=D.TrimWhitespace(q);f.FirstChild.Tokens=q;f=f.Next;case 15:$s=13;continue;case 12:r=CW.nil;if(DD.nil===f.KramdownIAL){$s=17;continue;}$s=18;continue;case 17:s=B.NewNodeID();$s=20;case 20:if($c){$c=false;s=s.$blk();}if(s&&s.$blk!==undefined){break s;}t=s;r=(new CW($stringToBytes("{: id=\""+t+"\"}")));f.KramdownIAL=new DD([new DC(["id",t])]);f.ID=t;$s=19;continue;case 18:u=BA(f.KramdownIAL);$s=21;case 21:if($c){$c=false;u=u.$blk();}if(u&&u.$blk!==undefined){break s;}r=u;case 19:f.InsertAfter(new B.Node.ptr("","","","",455,CY.nil,CY.nil,CY.nil,CY.nil,CY.nil,CZ.nil,r,"","",false,false,false,0,false,0,0,0,CW.nil,CW.nil,CW.nil,0,DA.nil,false,DB.nil,0,0,0,0,CW.nil,0,false,"",0,CW.nil,"",CZ.nil,CW.nil,DD.nil,false,"","","","","","","","","","","",0,""));case 13:f=f.Next;$s=3;continue;case 4:case 2:$s=-1;return;}return;}var $f={$blk:AB.ptr.prototype.listFinalize,$c:true,$r,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,$s};return $f;};AB.prototype.listFinalize=function(b){return this.$val.listFinalize(b);};AD.ptr.prototype.parseListMarker=function(b){var aa,ab,ac,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z;c=DA.nil;d=DD.nil;e=this;if(4<=e.Context.indent){f=DA.nil;g=DD.nil;c=f;d=g;return[c,d];}h=e.Context.currentLine;i=$subslice(h,e.Context.nextNonspace);c=new B.ListData.ptr(0,true,0,0,0,0,e.Context.indent,false,CW.nil,-1);j=1;k=new CW([(0>=i.$length?($throwRuntimeError("index out of range"),undefined):i.$array[i.$offset+0])]);l=0;if((43===(0>=k.$length?($throwRuntimeError("index out of range"),undefined):k.$array[k.$offset+0]))||(45===(0>=k.$length?($throwRuntimeError("index out of range"),undefined):k.$array[k.$offset+0]))||(42===(0>=k.$length?($throwRuntimeError("index out of range"),undefined):k.$array[k.$offset+0]))){c.BulletChar=(0>=k.$length?($throwRuntimeError("index out of range"),undefined):k.$array[k.$offset+0]);}else{m=e.parseOrderedListMarker(i);k=m[0];l=m[1];if(!(CW.nil===k)){if(!((b.Type===1))||A.Equal(AM,k)){c.Typ=1;n=I.Atoi(E.BytesToStr(k));c.Start=n[0];j=k.$length+1>>0;c.Delimiter=l;}else{o=DA.nil;p=DD.nil;c=o;d=p;return[c,d];}}else{q=DA.nil;r=DD.nil;c=q;d=r;return[c,d];}}c.Marker=k;t=(s=e.Context.nextNonspace+j>>0,((s<0||s>=h.$length)?($throwRuntimeError("index out of range"),undefined):h.$array[h.$offset+s]));if(!D.IsWhitespace(t)){u=DA.nil;v=DD.nil;c=u;d=v;return[c,d];}if((b.Type===1)&&(10===t)){w=DA.nil;x=DD.nil;c=w;d=x;return[c,d];}e.Context.advanceNextNonspace();e.Context.advanceOffset(j,true);y=e.Context.column;z=e.Context.offset;while(true){e.Context.advanceOffset(1,true);t=D.Peek(h,e.Context.offset);if((e.Context.column-y>>0)>=5||(0===(t))||(!((32===t))&&!((9===t)))){break;}}t=D.Peek(h,e.Context.offset);aa=(0===t)||(10===t);ab=e.Context.column-y>>0;if(ab>=5||ab<1||aa){c.Padding=j+1>>0;e.Context.column=y;e.Context.offset=z;t=D.Peek(h,e.Context.offset);if((32===t)||(9===t)){e.Context.advanceOffset(1,true);}}else{c.Padding=j+ab>>0;}if(!aa){ac=$subslice(h,e.Context.offset);if(e.Context.ParseOption.KramdownBlockIAL){d=e.Context.parseKramdownIALInListItem(ac);if(0>0));}}if(e.Context.ParseOption.VditorWYSIWYG||e.Context.ParseOption.VditorIR||e.Context.ParseOption.VditorSV){ac=A.ReplaceAll(ac,C.CaretTokens,CW.nil);}if(3<=ac.$length){if((91===(0>=ac.$length?($throwRuntimeError("index out of range"),undefined):ac.$array[ac.$offset+0]))&&((120===(1>=ac.$length?($throwRuntimeError("index out of range"),undefined):ac.$array[ac.$offset+1]))||(88===(1>=ac.$length?($throwRuntimeError("index out of range"),undefined):ac.$array[ac.$offset+1]))||(32===(1>=ac.$length?($throwRuntimeError("index out of range"),undefined):ac.$array[ac.$offset+1])))&&(93===(2>=ac.$length?($throwRuntimeError("index out of range"),undefined):ac.$array[ac.$offset+2]))){c.Typ=3;c.Checked=(120===(1>=ac.$length?($throwRuntimeError("index out of range"),undefined):ac.$array[ac.$offset+1]))||(88===(1>=ac.$length?($throwRuntimeError("index out of range"),undefined):ac.$array[ac.$offset+1]));}}}return[c,d];};AD.prototype.parseListMarker=function(b){return this.$val.parseListMarker(b);};AD.ptr.prototype.parseOrderedListMarker=function(b){var b,c,d,e,f,g,h,i,j;c=CW.nil;d=0;e=this;f=b.$length;g=0;h=0;while(true){if(!(g=b.$length)?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+g]);if(!D.IsDigit(h)||8>0;}if(1>c.$length||(!((46===d))&&!((41===d)))){i=CW.nil;j=0;c=i;d=j;return[c,d];}return[c,d];};AD.prototype.parseOrderedListMarker=function(b){return this.$val.parseOrderedListMarker(b);};AN=function(b){var b,c;while(true){if(!(!(CY.nil===b))){break;}if(b.LastLineBlank){return true;}c=b.Type;if(!b.LastLineChecked&&((c===7)||(c===8))){b.LastLineChecked=true;b=b.LastChild;}else{b.LastLineChecked=true;break;}}return false;};AD.ptr.prototype.FindLinkRefDefLink=function(b){var{b,c,d,$s,$r,$c}=$restore(this,{b});$s=$s||0;s:while(true){switch($s){case 0:b=[b];c=[c];c[0]=CY.nil;d=this;if(!d.Context.ParseOption.LinkRef){$s=-1;return c[0];}if(d.Context.ParseOption.VditorIR||d.Context.ParseOption.VditorSV||d.Context.ParseOption.VditorWYSIWYG||d.Context.ParseOption.ProtyleWYSIWYG){b[0]=A.ReplaceAll(b[0],C.CaretTokens,CW.nil);}$r=B.Walk(d.Root,(function(b,c){return function(e,f){var e,f;if(!f||!((46===e.Type))){return 2;}if(A.EqualFold(e.Tokens,b[0])){c[0]=e.FirstChild;return 0;}return 2;};})(b,c));$s=1;case 1:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$s=-1;return c[0];}return;}var $f={$blk:AD.ptr.prototype.FindLinkRefDefLink,$c:true,$r,b,c,d,$s};return $f;};AD.prototype.FindLinkRefDefLink=function(b){return this.$val.FindLinkRefDefLink(b);};AB.ptr.prototype.parseLinkRefDef=function(b){var aa,ab,ac,ad,ae,af,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z;c=this;if(!c.ParseOption.LinkRef){return CW.nil;}d=D.TrimLeft(b);b=d[1];if(1>b.$length){return CW.nil;}e=c.parseLinkLabel(b);f=e[0];g=e[1];h=e[2];if(2>f||1>h.$length){return CW.nil;}i=g.$length;if(1>i){return CW.nil;}if(!((58===(0>=g.$length?($throwRuntimeError("index out of range"),undefined):g.$array[g.$offset+0])))){return CW.nil;}g=$subslice(g,1);j=D.TrimLeft(g);k=j[0];g=j[1];l=D.StatWhitespace(k);m=l[0];if(1m){return CW.nil;}if(0<(s+t>>0)&&!D.IsBlankLine(g)&&!((10===(0>=g.$length?($throwRuntimeError("index out of range"),undefined):g.$array[g.$offset+0])))){return CW.nil;}y=b;z=D.TrimLeft(g);k=z[0];b=z[1];aa=D.StatWhitespace(k);ab=aa[1];ac=aa[2];if(!D.IsBlankLine(b)&&0<(ab+ac>>0)){g=y;}else{g=b;}ad=c.Tree.newLink(33,h,p,x,1);ae=new B.Node.ptr("","","","",46,CY.nil,CY.nil,CY.nil,CY.nil,CY.nil,CZ.nil,h,"","",false,false,false,0,false,0,0,0,CW.nil,CW.nil,CW.nil,0,DA.nil,false,DB.nil,0,0,0,0,CW.nil,0,false,"",0,CW.nil,"",CZ.nil,CW.nil,DD.nil,false,"","","","","","","","","","","",0,"");ae.AppendChild(ad);af=c.Tip;if(!((45===af.Type))){af=new B.Node.ptr("","","","",45,CY.nil,CY.nil,CY.nil,CY.nil,CY.nil,CZ.nil,CW.nil,"","",false,false,false,0,false,0,0,0,CW.nil,CW.nil,CW.nil,0,DA.nil,false,DB.nil,0,0,0,0,CW.nil,0,false,"",0,CW.nil,"",CZ.nil,CW.nil,DD.nil,false,"","","","","","","","","","","",0,"");}af.AppendChild(ae);c.Tip.Parent.AppendChild(af);return g;};AB.prototype.parseLinkRefDef=function(b){return this.$val.parseLinkRefDef(b);};AB.ptr.prototype.parseLinkTitle=function(b){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r;c=false;d=CW.nil;e=CW.nil;f=CW.nil;g=this;if(1>b.$length){h=true;i=CW.nil;j=b;k=CW.nil;c=h;d=i;e=j;f=k;return[c,d,e,f];}if(91===(0>=b.$length?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+0])){l=true;m=CW.nil;n=b;o=CW.nil;c=l;d=m;e=n;f=o;return[c,d,e,f];}p=g.parseLinkTitleMatch(34,34,b);c=p[0];d=p[1];e=p[2];f=p[3];if(!c){q=g.parseLinkTitleMatch(39,39,b);c=q[0];d=q[1];e=q[2];f=q[3];if(!c){r=g.parseLinkTitleMatch(40,41,b);c=r[0];d=r[1];e=r[2];f=r[3];}}if(!(CW.nil===f)){if(!g.ParseOption.VditorWYSIWYG&&!g.ParseOption.VditorIR&&!g.ParseOption.VditorSV&&!g.ParseOption.ProtyleWYSIWYG){f=G.UnescapeBytes(f);}}return[c,d,e,f];};AB.prototype.parseLinkTitle=function(b){return this.$val.parseLinkTitle(b);};AB.ptr.prototype.parseBlockRefText=function(b){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t;c=false;d=CW.nil;e=CW.nil;f=CW.nil;g="";h=this;if(1>b.$length){i=true;j=CW.nil;k=b;l=CW.nil;m="";c=i;d=j;e=k;f=l;g=m;return[c,d,e,f,g];}if(91===(0>=b.$length?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+0])){n=true;o=CW.nil;p=b;q=CW.nil;r="";c=n;d=o;e=p;f=q;g=r;return[c,d,e,f,g];}s=h.parseLinkTitleMatch(34,34,b);c=s[0];d=s[1];e=s[2];f=s[3];g="s";if(!c){t=h.parseLinkTitleMatch(39,39,b);c=t[0];d=t[1];e=t[2];f=t[3];g="d";}if(!(CW.nil===f)){if(!h.ParseOption.VditorWYSIWYG&&!h.ParseOption.VditorIR&&!h.ParseOption.VditorSV&&!h.ParseOption.ProtyleWYSIWYG){f=G.UnescapeBytes(f);}}return[c,d,e,f,g];};AB.prototype.parseBlockRefText=function(b){return this.$val.parseBlockRefText(b);};AB.ptr.prototype.parseLinkTitleMatch=function(b,c,d){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s;e=false;f=CW.nil;g=CW.nil;h=CW.nil;i=this;g=d;j=d.$length;if(2>j){return[e,f,g,h];}if(!((b===(0>=d.$length?($throwRuntimeError("index out of range"),undefined):d.$array[d.$offset+0])))){return[e,f,g,h];}k=d;j=k.$length;l=false;m=1;n=0;o=0;while(true){if(!(m=k.$length)?($throwRuntimeError("index out of range"),undefined):k.$array[k.$offset+m]);f=$append(f,p);q=J.DecodeRune($subslice(k,m));o=q[0];n=q[1];r=1;while(true){if(!(r>0,((s<0||s>=d.$length)?($throwRuntimeError("index out of range"),undefined):d.$array[d.$offset+s])));r=r+(1)>>0;}h=$appendSlice(h,E.StrToBytes(($encodeRune(o))));if((c===p)&&!D.IsBackslashEscapePunct(d,m)){l=true;h=$subslice(h,0,(h.$length-1>>0));break;}m=m+(n)>>0;}if(!l){f=CW.nil;return[e,f,g,h];}e=true;g=$subslice(d,(m+1>>0));return[e,f,g,h];};AB.prototype.parseLinkTitleMatch=function(b,c,d){return this.$val.parseLinkTitleMatch(b,c,d);};AB.ptr.prototype.parseLinkDest=function(b){var b,c,d,e,f,g,h;c=CW.nil;d=CW.nil;e=CW.nil;f=this;g=f.parseLinkDest1(b);c=g[0];d=g[1];e=g[2];if(CW.nil===c){h=f.parseLinkDest2(b);c=h[0];d=h[1];e=h[2];}if(!(CW.nil===c)){if(!f.ParseOption.VditorWYSIWYG&&!f.ParseOption.VditorIR&&!f.ParseOption.VditorSV&&!f.ParseOption.ProtyleWYSIWYG){e=G.EncodeDestination(G.UnescapeBytes(e));}}return[c,d,e];};AB.prototype.parseLinkDest=function(b){return this.$val.parseLinkDest(b);};AB.ptr.prototype.parseLinkDest2=function(b){var b,c,d,e,f,g,h,i,j,k,l,m,n,o;c=CW.nil;d=CW.nil;e=CW.nil;f=this;d=b;g=b.$length;if(1>g){return[c,d,e];}c=$makeSlice(CW,0,256);e=$makeSlice(CW,0,256);h=0;i=0;j=0;k=0;while(true){if(!(i=b.$length)?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+i]);c=$append(c,l);m=J.DecodeRune($subslice(b,i));k=m[0];j=m[1];n=1;while(true){if(!(n>0,((o<0||o>=b.$length)?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+o])));n=n+(1)>>0;}e=$appendSlice(e,E.StrToBytes(($encodeRune(k))));if(D.IsWhitespace(l)||D.IsControl(l)){e=$subslice(e,0,(e.$length-1>>0));c=$subslice(c,0,(c.$length-1>>0));break;}if((40===l)&&!D.IsBackslashEscapePunct(b,i)){h=h+(1)>>0;}if((41===l)&&!D.IsBackslashEscapePunct(b,i)){h=h-(1)>>0;if(1>h){i=i+(1)>>0;break;}}i=i+(j)>>0;}d=$subslice(b,i);if(g>i&&!D.IsWhitespace(((i<0||i>=b.$length)?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+i]))){c=CW.nil;return[c,d,e];}return[c,d,e];};AB.prototype.parseLinkDest2=function(b){return this.$val.parseLinkDest2(b);};AB.ptr.prototype.parseLinkDest1=function(b){var b,c,d,e,f,g,h,i,j,k,l,m,n,o;c=CW.nil;d=CW.nil;e=CW.nil;f=this;d=b;g=b.$length;if(2>g){return[c,d,e];}if(!((60===(0>=b.$length?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+0])))){return[c,d,e];}c=$makeSlice(CW,0,256);e=$makeSlice(CW,0,256);h=false;i=0;j=0;k=0;while(true){if(!(i=b.$length)?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+i]);c=$append(c,l);j=1;if(0>0,((o<0||o>=b.$length)?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+o])));n=n+(1)>>0;}e=$appendSlice(e,E.StrToBytes(($encodeRune(k))));if((60===l)&&!D.IsBackslashEscapePunct(b,i)){c=CW.nil;return[c,d,e];}}if((62===l)&&!D.IsBackslashEscapePunct(b,i)){h=true;e=$subslice(e,0,(e.$length-1>>0));break;}i=i+(j)>>0;}if(!h){c=CW.nil;return[c,d,e];}d=$subslice(b,(i+1>>0));return[c,d,e];};AB.prototype.parseLinkDest1=function(b){return this.$val.parseLinkDest1(b);};AB.ptr.prototype.parseLinkLabel=function(b){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t;c=0;d=CW.nil;e=CW.nil;f=this;g=b.$length;if(2>g){return[c,d,e];}if(!((91===(0>=b.$length?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+0])))){return[c,d,e];}h=$makeSlice(CW,0,b.$length);h=$append(h,(0>=b.$length?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+0]));i=false;j=1;while(true){if(!(j=b.$length)?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+j]);h=$append(h,k);l=J.DecodeRune($subslice(b,j));m=l[0];n=l[1];o=1;while(true){if(!(o>0,((p<0||p>=b.$length)?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+p])));o=o+(1)>>0;}e=$appendSlice(e,E.StrToBytes(($encodeRune(m))));if((93===k)&&!D.IsBackslashEscapePunct(b,j)){i=true;e=$subslice(e,0,(e.$length-1>>0));d=$subslice(b,(j+1>>0));break;}if((91===k)&&!D.IsBackslashEscapePunct(b,j)){h=CW.nil;return[c,d,e];}j=j+(n)>>0;}if(!i||CW.nil===D.TrimWhitespace(e)||999=e.$length)?($throwRuntimeError("index out of range"),undefined):e.$array[e.$offset+s]);if((r===32)&&s<(q-1>>0)&&((t=s+1>>0,((t<0||t>=e.$length)?($throwRuntimeError("index out of range"),undefined):e.$array[e.$offset+t]))===32)){e=$appendSlice($subslice(e,0,s),$subslice(e,(s+1>>0)));q=q-(1)>>0;}s=s+(1)>>0;}}c=h.$length;return[c,d,e];};AB.prototype.parseLinkLabel=function(b){return this.$val.parseLinkLabel(b);};AD.ptr.prototype.parseInlines=function(){var{b,$s,$r,$c}=$restore(this,{});$s=$s||0;s:while(true){switch($s){case 0:b=this;$r=b.walkParseInline(b.Root);$s=1;case 1:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}if(b.Context.ParseOption.KramdownSpanIAL){$s=2;continue;}$s=3;continue;case 2:$r=b.parseKramdownSpanIAL();$s=4;case 4:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}case 3:$s=-1;return;}return;}var $f={$blk:AD.ptr.prototype.parseInlines,$c:true,$r,b,$s};return $f;};AD.prototype.parseInlines=function(){return this.$val.parseInlines();};AD.ptr.prototype.walkParseInline=function(b){var{b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,$s,$r,$c}=$restore(this,{b});$s=$s||0;s:while(true){switch($s){case 0:c=this;if(CY.nil===b){$s=-1;return;}d=b.Type;if(475===d){if(!(CY.nil===b.LastChild)&&(477===b.LastChild.Type)){b.Type=1;b.Tokens=$appendSlice((new CW($stringToBytes("{{{"))),b.LastChild.Tokens);b.FirstChild.Unlink();b.LastChild.Unlink();d=1;}}if((1===d)||(2===d)||(109===d)){$s=1;continue;}if(11===d){$s=2;continue;}$s=3;continue;case 1:e=b.Tokens;if(1===d){if(CW.nil===e){if(!((8===b.Parent.Type))||c.Context.ParseOption.VditorWYSIWYG||c.Context.ParseOption.VditorIR||c.Context.ParseOption.VditorSV){f=b.Next;b.Unlink();b.Next=f;}$s=-1;return;}else{g=c.Context.parseKramdownIALInListItem(e);if(0=g.$length?($throwRuntimeError("index out of range"),undefined):g.$array[g.$offset+0]),(1>=h.$length?($throwRuntimeError("index out of range"),undefined):h.$array[h.$offset+1])));i=b.Next;b.Unlink();b.Next=i;$s=-1;return;}}}}j=e.$length;if(1>j){$s=-1;return;}k=new AC.ptr(e,j,0,DM.nil,DM.nil);$r=c.parseInline(b,k);$s=4;case 4:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}c.processEmphasis(DM.nil,k);c.mergeText(b);if(c.Context.ParseOption.GFMAutoLink&&!c.Context.ParseOption.VditorWYSIWYG&&!c.Context.ParseOption.VditorIR&&!c.Context.ParseOption.VditorSV&&!c.Context.ParseOption.ProtyleWYSIWYG){c.parseGFMAutoEmailLink(b);c.parseGFMAutoLink(b);}if(c.Context.ParseOption.Emoji){$s=5;continue;}$s=6;continue;case 5:$r=c.emoji(b);$s=7;case 7:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}case 6:$s=-1;return;case 2:if(b.IsFencedCodeBlock){l=new B.Node.ptr("","","","",12,CY.nil,CY.nil,CY.nil,CY.nil,CY.nil,CZ.nil,b.CodeBlockOpenFence,"","",false,false,false,0,false,0,b.CodeBlockFenceLen,0,CW.nil,CW.nil,CW.nil,0,DA.nil,false,DB.nil,0,0,0,0,CW.nil,0,false,"",0,CW.nil,"",CZ.nil,CW.nil,DD.nil,false,"","","","","","","","","","","",0,"");b.PrependChild(l);m=new B.Node.ptr("","","","",14,CY.nil,CY.nil,CY.nil,CY.nil,CY.nil,CZ.nil,CW.nil,"","",false,false,false,0,false,0,0,0,CW.nil,b.CodeBlockInfo,CW.nil,0,DA.nil,false,DB.nil,0,0,0,0,CW.nil,0,false,"",0,CW.nil,"",CZ.nil,CW.nil,DD.nil,false,"","","","","","","","","","","",0,"");b.AppendChild(m);n=new B.Node.ptr("","","","",15,CY.nil,CY.nil,CY.nil,CY.nil,CY.nil,CZ.nil,b.Tokens,"","",false,false,false,0,false,0,0,0,CW.nil,CW.nil,CW.nil,0,DA.nil,false,DB.nil,0,0,0,0,CW.nil,0,false,"",0,CW.nil,"",CZ.nil,CW.nil,DD.nil,false,"","","","","","","","","","","",0,"");b.AppendChild(n);if(CW.nil===b.CodeBlockCloseFence){b.CodeBlockCloseFence=b.CodeBlockOpenFence;}o=new B.Node.ptr("","","","",13,CY.nil,CY.nil,CY.nil,CY.nil,CY.nil,CZ.nil,b.CodeBlockCloseFence,"","",false,false,false,0,false,0,b.CodeBlockFenceLen,0,CW.nil,CW.nil,CW.nil,0,DA.nil,false,DB.nil,0,0,0,0,CW.nil,0,false,"",0,CW.nil,"",CZ.nil,CW.nil,DD.nil,false,"","","","","","","","","","","",0,"");b.AppendChild(o);}else{p=new B.Node.ptr("","","","",15,CY.nil,CY.nil,CY.nil,CY.nil,CY.nil,CZ.nil,b.Tokens,"","",false,false,false,0,false,0,0,0,CW.nil,CW.nil,CW.nil,0,DA.nil,false,DB.nil,0,0,0,0,CW.nil,0,false,"",0,CW.nil,"",CZ.nil,CW.nil,DD.nil,false,"","","","","","","","","","","",0,"");b.AppendChild(p);}b.Tokens=CW.nil;case 3:q=b.FirstChild;case 8:if(!(!(CY.nil===q))){$s=9;continue;}$r=c.walkParseInline(q);$s=10;case 10:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}q=q.Next;$s=8;continue;case 9:$s=-1;return;}return;}var $f={$blk:AD.ptr.prototype.walkParseInline,$c:true,$r,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,$s};return $f;};AD.prototype.walkParseInline=function(b){return this.$val.walkParseInline(b);};AD.ptr.prototype.parseInlineMath=function(b){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r;c=CY.nil;d=this;if(3>b.tokensLen||!d.Context.ParseOption.InlineMath){b.pos=b.pos+(1)>>0;c=new B.Node.ptr("","","","",16,CY.nil,CY.nil,CY.nil,CY.nil,CY.nil,CZ.nil,AO,"","",false,false,false,0,false,0,0,0,CW.nil,CW.nil,CW.nil,0,DA.nil,false,DB.nil,0,0,0,0,CW.nil,0,false,"",0,CW.nil,"",CZ.nil,CW.nil,DD.nil,false,"","","","","","","","","","","",0,"");return c;}e=b.pos;f=e;g=0;while(true){if(!(f=h.$length)?($throwRuntimeError("index out of range"),undefined):h.$array[h.$offset+f]))))){break;}g=g+(1)>>0;f=f+(1)>>0;}if(2<=g){if(d.Context.ParseOption.ProtyleWYSIWYG){b.pos=b.pos+(1)>>0;c=new B.Node.ptr("","","","",16,CY.nil,CY.nil,CY.nil,CY.nil,CY.nil,CZ.nil,AO,"","",false,false,false,0,false,0,0,0,CW.nil,CW.nil,CW.nil,0,DA.nil,false,DB.nil,0,0,0,0,CW.nil,0,false,"",0,CW.nil,"",CZ.nil,CW.nil,DD.nil,false,"","","","","","","","","","","",0,"");return c;}i=false;j=f+g>>0;k=0;while(true){if(!(j=l.$length)?($throwRuntimeError("index out of range"),undefined):l.$array[l.$offset+j]));if((36===k)&&j<(b.tokensLen-1>>0)&&(36===(m=b.tokens,n=j+1>>0,((n<0||n>=m.$length)?($throwRuntimeError("index out of range"),undefined):m.$array[m.$offset+n])))){i=true;break;}j=j+(1)>>0;}if(i){c=new B.Node.ptr("","","","",300,CY.nil,CY.nil,CY.nil,CY.nil,CY.nil,CZ.nil,CW.nil,"","",false,false,false,0,false,0,0,0,CW.nil,CW.nil,CW.nil,0,DA.nil,false,DB.nil,0,0,0,0,CW.nil,0,false,"",0,CW.nil,"",CZ.nil,CW.nil,DD.nil,false,"","","","","","","","","","","",0,"");c.AppendChild(new B.Node.ptr("","","","",301,CY.nil,CY.nil,CY.nil,CY.nil,CY.nil,CZ.nil,CW.nil,"","",false,false,false,0,false,0,0,0,CW.nil,CW.nil,CW.nil,0,DA.nil,false,DB.nil,0,0,0,0,CW.nil,0,false,"",0,CW.nil,"",CZ.nil,CW.nil,DD.nil,false,"","","","","","","","","","","",0,""));c.AppendChild(new B.Node.ptr("","","","",302,CY.nil,CY.nil,CY.nil,CY.nil,CY.nil,CZ.nil,$subslice(b.tokens,f,j),"","",false,false,false,0,false,0,0,0,CW.nil,CW.nil,CW.nil,0,DA.nil,false,DB.nil,0,0,0,0,CW.nil,0,false,"",0,CW.nil,"",CZ.nil,CW.nil,DD.nil,false,"","","","","","","","","","","",0,""));c.AppendChild(new B.Node.ptr("","","","",303,CY.nil,CY.nil,CY.nil,CY.nil,CY.nil,CZ.nil,CW.nil,"","",false,false,false,0,false,0,0,0,CW.nil,CW.nil,CW.nil,0,DA.nil,false,DB.nil,0,0,0,0,CW.nil,0,false,"",0,CW.nil,"",CZ.nil,CW.nil,DD.nil,false,"","","","","","","","","","","",0,""));b.pos=j+2>>0;return c;}}if(!d.Context.ParseOption.InlineMathAllowDigitAfterOpenMarker&&b.tokensLen>(e+1>>0)&&D.IsDigit((o=b.tokens,p=e+1>>0,((p<0||p>=o.$length)?($throwRuntimeError("index out of range"),undefined):o.$array[o.$offset+p])))){b.pos=b.pos+(3)>>0;c=new B.Node.ptr("","","","",16,CY.nil,CY.nil,CY.nil,CY.nil,CY.nil,CZ.nil,$subslice(b.tokens,e,(e+3>>0)),"","",false,false,false,0,false,0,0,0,CW.nil,CW.nil,CW.nil,0,DA.nil,false,DB.nil,0,0,0,0,CW.nil,0,false,"",0,CW.nil,"",CZ.nil,CW.nil,DD.nil,false,"","","","","","","","","","","",0,"");return c;}q=d.matchInlineMathEnd($subslice(b.tokens,(e+1>>0)));if(1>q){b.pos=b.pos+(1)>>0;c=new B.Node.ptr("","","","",16,CY.nil,CY.nil,CY.nil,CY.nil,CY.nil,CZ.nil,AO,"","",false,false,false,0,false,0,0,0,CW.nil,CW.nil,CW.nil,0,DA.nil,false,DB.nil,0,0,0,0,CW.nil,0,false,"",0,CW.nil,"",CZ.nil,CW.nil,DD.nil,false,"","","","","","","","","","","",0,"");return c;}if(d.Context.ParseOption.TextMark){if(A.Contains($subslice(b.tokens,(e+1>>0),((e+q>>0)+1>>0)),(new CW($stringToBytes(">0;c=new B.Node.ptr("","","","",16,CY.nil,CY.nil,CY.nil,CY.nil,CY.nil,CZ.nil,AO,"","",false,false,false,0,false,0,0,0,CW.nil,CW.nil,CW.nil,0,DA.nil,false,DB.nil,0,0,0,0,CW.nil,0,false,"",0,CW.nil,"",CZ.nil,CW.nil,DD.nil,false,"","","","","","","","","","","",0,"");return c;}}q=(e+q>>0)+2>>0;r=$subslice(b.tokens,(e+1>>0),(q-1>>0));if(1>D.TrimWhitespace(r).$length){b.pos=b.pos+(1)>>0;c=new B.Node.ptr("","","","",16,CY.nil,CY.nil,CY.nil,CY.nil,CY.nil,CZ.nil,AO,"","",false,false,false,0,false,0,0,0,CW.nil,CW.nil,CW.nil,0,DA.nil,false,DB.nil,0,0,0,0,CW.nil,0,false,"",0,CW.nil,"",CZ.nil,CW.nil,DD.nil,false,"","","","","","","","","","","",0,"");return c;}c=new B.Node.ptr("","","","",304,CY.nil,CY.nil,CY.nil,CY.nil,CY.nil,CZ.nil,CW.nil,"","",false,false,false,0,false,0,0,0,CW.nil,CW.nil,CW.nil,0,DA.nil,false,DB.nil,0,0,0,0,CW.nil,0,false,"",0,CW.nil,"",CZ.nil,CW.nil,DD.nil,false,"","","","","","","","","","","",0,"");c.AppendChild(new B.Node.ptr("","","","",305,CY.nil,CY.nil,CY.nil,CY.nil,CY.nil,CZ.nil,CW.nil,"","",false,false,false,0,false,0,0,0,CW.nil,CW.nil,CW.nil,0,DA.nil,false,DB.nil,0,0,0,0,CW.nil,0,false,"",0,CW.nil,"",CZ.nil,CW.nil,DD.nil,false,"","","","","","","","","","","",0,""));c.AppendChild(new B.Node.ptr("","","","",306,CY.nil,CY.nil,CY.nil,CY.nil,CY.nil,CZ.nil,r,"","",false,false,false,0,false,0,0,0,CW.nil,CW.nil,CW.nil,0,DA.nil,false,DB.nil,0,0,0,0,CW.nil,0,false,"",0,CW.nil,"",CZ.nil,CW.nil,DD.nil,false,"","","","","","","","","","","",0,""));c.AppendChild(new B.Node.ptr("","","","",307,CY.nil,CY.nil,CY.nil,CY.nil,CY.nil,CZ.nil,CW.nil,"","",false,false,false,0,false,0,0,0,CW.nil,CW.nil,CW.nil,0,DA.nil,false,DB.nil,0,0,0,0,CW.nil,0,false,"",0,CW.nil,"",CZ.nil,CW.nil,DD.nil,false,"","","","","","","","","","","",0,""));b.pos=q;return c;};AD.prototype.parseInlineMath=function(b){return this.$val.parseInlineMath(b);};AD.ptr.prototype.matchInlineMathEnd=function(b){var b,c,d,e,f,g;c=0;d=this;e=b.$length;while(true){if(!(c=b.$length)?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+c]))&&0>0,((f<0||f>=b.$length)?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+f]))))){if(c<(e-1>>0)){if(!D.IsDigit((g=c+1>>0,((g<0||g>=b.$length)?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+g])))||d.Context.ParseOption.InlineMathAllowDigitAfterOpenMarker){c=c;return c;}}else{c=c;return c;}}else if(10===((c<0||c>=b.$length)?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+c])){c=-1;return c;}c=c+(1)>>0;}c=-1;return c;};AD.prototype.matchInlineMathEnd=function(b){return this.$val.matchInlineMathEnd(b);};AB.ptr.prototype.parseInlineLinkDest=function(b){var{aa,ab,ac,ad,ae,af,ag,ah,ai,aj,ak,al,am,an,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,$s,$r,$c}=$restore(this,{b});$s=$s||0;s:while(true){switch($s){case 0:c=CW.nil;d=CW.nil;e=CW.nil;f=this;d=b;g=b.$length;if(2>g){$s=-1;return[c,d,e];}c=$makeSlice(CW,0,256);e=$makeSlice(CW,0,256);h=60===(1>=b.$length?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+1]);if(h){i=false;c=$append(c,(0>=b.$length?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+0]),(1>=b.$length?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+1]));j=2;k=1;l=0;m=CW.nil;n=CW.nil;o=m;p=n;while(true){if(!(j=b.$length)?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+j]);if(10===q){c=CW.nil;$s=-1;return[c,d,e];}if(q<128){c=$append(c,q);o=new CW([q]);}else{o=new CW([]);r=J.DecodeRune($subslice(b,j));l=r[0];k=r[1];p=E.StrToBytes(($encodeRune(l)));c=$appendSlice(c,p);o=$appendSlice(o,p);}e=$appendSlice(e,o);if((62===q)&&!D.IsBackslashEscapePunct(b,j)){e=$subslice(e,0,(e.$length-1>>0));i=true;break;}j=j+(k)>>0;}if(!i||g<=(j+1>>0)){c=CW.nil;$s=-1;return[c,d,e];}if((62===(s=j+1>>0,((s<0||s>=b.$length)?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+s])))||(41===(t=j+1>>0,((t<0||t>=b.$length)?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+t])))){c=$append(c,(u=j+1>>0,((u<0||u>=b.$length)?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+u])));d=$subslice(b,(j+2>>0));}else{d=$subslice(b,(j+1>>0));}}else{v=0;w=0;x=1;y=0;z=CW.nil;aa=CW.nil;ab=z;ac=aa;ad=false;while(true){if(!(w=b.$length)?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+w]);if(ae<128){c=$append(c,ae);ab=new CW([ae]);}else{ab=new CW([]);af=J.DecodeRune($subslice(b,w));y=af[0];x=af[1];ac=E.StrToBytes(($encodeRune(y)));c=$appendSlice(c,ac);ab=$appendSlice(ab,ac);}e=$appendSlice(e,ab);if(!ad&&!D.IsWhitespace(ae)&&0>0));c=$subslice(c,0,(c.$length-1>>0));v=v-(1)>>0;break;}}else{if(ad&&D.IsWhitespace(ae)&&(w+1>>0)>0,((ag<0||ag>=b.$length)?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+ag]));if((34===ah)||(39===ah)){e=$subslice(e,0,(e.$length-x>>0));c=$subslice(c,0,(c.$length-1>>0));v=v-(1)>>0;break;}}}if((40===ae)&&!D.IsBackslashEscapePunct(b,w)){v=v+(1)>>0;}if((41===ae)&&!D.IsBackslashEscapePunct(b,w)){v=v-(1)>>0;if(1>v){if(40===(0>=e.$length?($throwRuntimeError("index out of range"),undefined):e.$array[e.$offset+0])){e=$subslice(e,1);}e=$subslice(e,0,(e.$length-1>>0));break;}}w=w+(x)>>0;}d=$subslice(b,w);if(g>w&&(!((41===((w<0||w>=b.$length)?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+w])))&&!((32===((w<0||w>=b.$length)?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+w])))&&!((10===((w<0||w>=b.$length)?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+w]))))){c=CW.nil;$s=-1;return[c,d,e];}if(!((0===v))){c=CW.nil;$s=-1;return[c,d,e];}}if(!(f.ParseOption.ProtyleWYSIWYG||!f.ParseOption.DataImage)){ai=false;$s=3;continue s;}aj=A.ToLower(e);$s=4;case 4:if($c){$c=false;aj=aj.$blk();}if(aj&&aj.$blk!==undefined){break s;}ak=A.HasPrefix(aj,(new CW($stringToBytes("data:image"))));$s=5;case 5:if($c){$c=false;ak=ak.$blk();}if(ak&&ak.$blk!==undefined){break s;}ai=ak;case 3:if(ai){$s=1;continue;}$s=2;continue;case 1:al=CW.nil;am=CW.nil;an=CW.nil;c=al;d=am;e=an;$s=-1;return[c,d,e];case 2:if(!(CW.nil===c)){if((!f.ParseOption.VditorWYSIWYG&&!f.ParseOption.VditorIR&&!f.ParseOption.VditorSV&&!f.ParseOption.ProtyleWYSIWYG)&&!f.ParseOption.ImgPathAllowSpace){e=G.EncodeDestination(G.UnescapeBytes(e));}}$s=-1;return[c,d,e];}return;}var $f={$blk:AB.ptr.prototype.parseInlineLinkDest,$c:true,$r,aa,ab,ac,ad,ae,af,ag,ah,ai,aj,ak,al,am,an,b,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};return $f;};AB.prototype.parseInlineLinkDest=function(b){return this.$val.parseInlineLinkDest(b);};AD.ptr.prototype.parseInlineHTML=function(b){var{aa,ab,ac,ad,ae,af,ag,ah,ai,aj,ak,al,am,an,ao,ap,aq,ar,as,at,au,av,aw,ax,ay,az,b,ba,bb,bc,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,$s,$r,$c}=$restore(this,{b});$s=$s||0;s:while(true){switch($s){case 0:c=CY.nil;d=this;e=b.tokens;f=false;g=false;if(d.Context.ParseOption.VditorWYSIWYG||d.Context.ParseOption.VditorIR||d.Context.ParseOption.VditorSV||d.Context.ParseOption.ProtyleWYSIWYG){h=A.Index(e,C.CaretTokens);f=h>b.pos;if(f){g=A.Contains(e,(new CW($stringToBytes(" \xE2\x80\xB8"))));e=A.ReplaceAll(e,C.CaretTokens,(new CW($stringToBytes("caretreplacement"))));e=A.ReplaceAll(e,(new CW($stringToBytes("\"caretreplacement"))),(new CW($stringToBytes("\" caretreplacement"))));}}i=b.pos;c=new B.Node.ptr("","","","",16,CY.nil,CY.nil,CY.nil,CY.nil,CY.nil,CZ.nil,new CW([(j=b.pos,((j<0||j>=e.$length)?($throwRuntimeError("index out of range"),undefined):e.$array[e.$offset+j]))]),"","",false,false,false,0,false,0,0,0,CW.nil,CW.nil,CW.nil,0,DA.nil,false,DB.nil,0,0,0,0,CW.nil,0,false,"",0,CW.nil,"",CZ.nil,CW.nil,DD.nil,false,"","","","","","","","","","","",0,"");if(3>b.tokensLen||b.tokensLen<=(i+1>>0)){b.pos=b.pos+(1)>>0;$s=-1;return c;}k=CW.nil;k=$append(k,((i<0||i>=e.$length)?($throwRuntimeError("index out of range"),undefined):e.$array[e.$offset+i]));if((47===(l=i+1>>0,((l<0||l>=e.$length)?($throwRuntimeError("index out of range"),undefined):e.$array[e.$offset+l])))&&1<(b.tokensLen-((i+1>>0))>>0)){k=$append(k,(m=i+1>>0,((m<0||m>=e.$length)?($throwRuntimeError("index out of range"),undefined):e.$array[e.$offset+m])));n=d.parseTagName($subslice(e,(b.pos+2>>0)));o=n[0];p=n[1];if(1>p.$length){b.pos=b.pos+(1)>>0;$s=-1;return c;}k=$appendSlice(k,p);e=o;}else{q=d.parseTagName($subslice(e,(b.pos+1>>0)));r=q[0];s=q[1];if(0>0;$s=-1;return c;}e=v;k=$appendSlice(k,w);if(1>w.$length){break;}}}else{x=d.parseHTMLComment($subslice(e,(b.pos+1>>0)));y=x[0];z=x[1];aa=x[2];if(y){k=$appendSlice(k,aa);e=z;b.pos=b.pos+(k.$length)>>0;c=new B.Node.ptr("","","","",10,CY.nil,CY.nil,CY.nil,CY.nil,CY.nil,CZ.nil,k,"","",false,false,false,0,false,0,0,0,CW.nil,CW.nil,CW.nil,0,DA.nil,false,DB.nil,0,0,0,0,CW.nil,0,false,"",0,CW.nil,"",CZ.nil,CW.nil,DD.nil,false,"","","","","","","","","","","",0,"");$s=-1;return c;}else{ab=d.parseProcessingInstruction($subslice(e,(b.pos+1>>0)));ac=ab[0];ad=ab[1];ae=ab[2];if(ac){k=$appendSlice(k,ae);e=ad;b.pos=b.pos+(k.$length)>>0;c=new B.Node.ptr("","","","",10,CY.nil,CY.nil,CY.nil,CY.nil,CY.nil,CZ.nil,k,"","",false,false,false,0,false,0,0,0,CW.nil,CW.nil,CW.nil,0,DA.nil,false,DB.nil,0,0,0,0,CW.nil,0,false,"",0,CW.nil,"",CZ.nil,CW.nil,DD.nil,false,"","","","","","","","","","","",0,"");$s=-1;return c;}else{af=d.parseDeclaration($subslice(e,(b.pos+1>>0)));ag=af[0];ah=af[1];ai=af[2];if(ag){k=$appendSlice(k,ai);e=ah;b.pos=b.pos+(k.$length)>>0;c=new B.Node.ptr("","","","",10,CY.nil,CY.nil,CY.nil,CY.nil,CY.nil,CZ.nil,k,"","",false,false,false,0,false,0,0,0,CW.nil,CW.nil,CW.nil,0,DA.nil,false,DB.nil,0,0,0,0,CW.nil,0,false,"",0,CW.nil,"",CZ.nil,CW.nil,DD.nil,false,"","","","","","","","","","","",0,"");$s=-1;return c;}else{aj=d.parseCDATA($subslice(e,(b.pos+1>>0)));ak=aj[0];al=aj[1];am=aj[2];if(ak){k=$appendSlice(k,am);e=al;b.pos=b.pos+(k.$length)>>0;c=new B.Node.ptr("","","","",10,CY.nil,CY.nil,CY.nil,CY.nil,CY.nil,CZ.nil,k,"","",false,false,false,0,false,0,0,0,CW.nil,CW.nil,CW.nil,0,DA.nil,false,DB.nil,0,0,0,0,CW.nil,0,false,"",0,CW.nil,"",CZ.nil,CW.nil,DD.nil,false,"","","","","","","","","","","",0,"");$s=-1;return c;}else{b.pos=b.pos+(1)>>0;$s=-1;return c;}}}}}}an=D.TrimLeft(e);ao=an[0];e=an[1];ap=e.$length;if(1>ap){b.pos=i+1>>0;$s=-1;return c;}if(((62===(0>=e.$length?($throwRuntimeError("index out of range"),undefined):e.$array[e.$offset+0])))||(1=e.$length?($throwRuntimeError("index out of range"),undefined):e.$array[e.$offset+0]))&&(62===(1>=e.$length?($throwRuntimeError("index out of range"),undefined):e.$array[e.$offset+1])))){$s=1;continue;}$s=2;continue;case 1:k=$appendSlice(k,ao);k=$append(k,(0>=e.$length?($throwRuntimeError("index out of range"),undefined):e.$array[e.$offset+0]));if(47===(0>=e.$length?($throwRuntimeError("index out of range"),undefined):e.$array[e.$offset+0])){k=$append(k,(1>=e.$length?($throwRuntimeError("index out of range"),undefined):e.$array[e.$offset+1]));}if((d.Context.ParseOption.VditorWYSIWYG||d.Context.ParseOption.VditorIR||d.Context.ParseOption.VditorSV)&&f||d.Context.ParseOption.ProtyleWYSIWYG){if(!A.Contains(k,(new CW($stringToBytes("caretreplacement "))))&&!g){k=A.ReplaceAll(k,(new CW($stringToBytes("\" caretreplacement"))),(new CW($stringToBytes("\"caretreplacement"))));}k=A.ReplaceAll(k,(new CW($stringToBytes("caretreplacement"))),C.CaretTokens);}b.pos=b.pos+(k.$length)>>0;if(d.Context.ParseOption.ProtyleWYSIWYG){$s=3;continue;}$s=4;continue;case 3:if(A.EqualFold(k,(new CW($stringToBytes("
"))))||A.EqualFold(k,(new CW($stringToBytes("
"))))||A.EqualFold(k,(new CW($stringToBytes("
"))))){$s=5;continue;}if(A.HasPrefix(k,(new CW($stringToBytes(""))))){$s=7;continue;}if(A.EqualFold(k,(new CW($stringToBytes(""))))){$s=8;continue;}if(A.EqualFold(k,(new CW($stringToBytes(""))))){$s=9;continue;}if(A.EqualFold(k,(new CW($stringToBytes(""))))){$s=10;continue;}if(A.EqualFold(k,(new CW($stringToBytes(""))))){$s=11;continue;}if(A.EqualFold(k,(new CW($stringToBytes(""))))){$s=12;continue;}if(A.EqualFold(k,(new CW($stringToBytes(""))))){$s=13;continue;}if(A.EqualFold(k,(new CW($stringToBytes(""))))){$s=14;continue;}if(A.EqualFold(k,(new CW($stringToBytes(""))))){$s=15;continue;}if(A.EqualFold(k,(new CW($stringToBytes(""))))){$s=16;continue;}if(A.EqualFold(k,(new CW($stringToBytes(""))))){$s=17;continue;}if(A.EqualFold(k,(new CW($stringToBytes(""))))){$s=18;continue;}$s=19;continue;case 5:c=new B.Node.ptr("","","","",525,CY.nil,CY.nil,CY.nil,CY.nil,CY.nil,CZ.nil,CW.nil,"","",false,false,false,0,false,0,0,0,CW.nil,CW.nil,CW.nil,0,DA.nil,false,DB.nil,0,0,0,0,CW.nil,0,false,"",0,CW.nil,"",CZ.nil,CW.nil,DD.nil,false,"","","","","","","","","","","",0,"");$s=-1;return c;case 6:aq=d.processSpanTag(k,"",b);$s=20;case 20:if($c){$c=false;aq=aq.$blk();}if(aq&&aq.$blk!==undefined){break s;}c=aq;$s=-1;return c;case 7:ar=d.processSpanTag(k,"","",b);$s=21;case 21:if($c){$c=false;ar=ar.$blk();}if(ar&&ar.$blk!==undefined){break s;}c=ar;$s=-1;return c;case 8:as=d.processSpanTag(k,"","",b);$s=22;case 22:if($c){$c=false;as=as.$blk();}if(as&&as.$blk!==undefined){break s;}c=as;$s=-1;return c;case 9:at=d.processSpanTag(k,"","",b);$s=23;case 23:if($c){$c=false;at=at.$blk();}if(at&&at.$blk!==undefined){break s;}c=at;$s=-1;return c;case 10:au=d.processSpanTag(k,"","",b);$s=24;case 24:if($c){$c=false;au=au.$blk();}if(au&&au.$blk!==undefined){break s;}c=au;$s=-1;return c;case 11:av=d.processSpanTag(k,"","",b);$s=25;case 25:if($c){$c=false;av=av.$blk();}if(av&&av.$blk!==undefined){break s;}c=av;$s=-1;return c;case 12:aw=d.processSpanTag(k,"","",b);$s=26;case 26:if($c){$c=false;aw=aw.$blk();}if(aw&&aw.$blk!==undefined){break s;}c=aw;$s=-1;return c;case 13:ax=d.processSpanTag(k,"","",b);$s=27;case 27:if($c){$c=false;ax=ax.$blk();}if(ax&&ax.$blk!==undefined){break s;}c=ax;$s=-1;return c;case 14:ay=d.processSpanTag(k,"","",b);$s=28;case 28:if($c){$c=false;ay=ay.$blk();}if(ay&&ay.$blk!==undefined){break s;}c=ay;$s=-1;return c;case 15:az=d.processSpanTag(k,"","",b);$s=29;case 29:if($c){$c=false;az=az.$blk();}if(az&&az.$blk!==undefined){break s;}c=az;$s=-1;return c;case 16:ba=d.processSpanTag(k,"","",b);$s=30;case 30:if($c){$c=false;ba=ba.$blk();}if(ba&&ba.$blk!==undefined){break s;}c=ba;$s=-1;return c;case 17:bb=d.processSpanTag(k,"","",b);$s=31;case 31:if($c){$c=false;bb=bb.$blk();}if(bb&&bb.$blk!==undefined){break s;}c=bb;$s=-1;return c;case 18:bc=d.processSpanTag(k,"","",b);$s=32;case 32:if($c){$c=false;bc=bc.$blk();}if(bc&&bc.$blk!==undefined){break s;}c=bc;$s=-1;return c;case 19:case 4:c=new B.Node.ptr("","","","",10,CY.nil,CY.nil,CY.nil,CY.nil,CY.nil,CZ.nil,k,"","",false,false,false,0,false,0,0,0,CW.nil,CW.nil,CW.nil,0,DA.nil,false,DB.nil,0,0,0,0,CW.nil,0,false,"",0,CW.nil,"",CZ.nil,CW.nil,DD.nil,false,"","","","","","","","","","","",0,"");$s=-1;return c;case 2:b.pos=i+1>>0;$s=-1;return c;}return;}var $f={$blk:AD.ptr.prototype.parseInlineHTML,$c:true,$r,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,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};return $f;};AD.prototype.parseInlineHTML=function(b){return this.$val.parseInlineHTML(b);};AD.ptr.prototype.processSpanTag=function(b,c,d,e){var{b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,$s,$r,$c}=$restore(this,{b,c,d,e});$s=$s||0;s:while(true){switch($s){case 0:f=CY.nil;g=this;h=$subslice(e.tokens,e.pos);if(1>h.$length){$s=-1;return f;}i=A.Index(h,(new CW($stringToBytes(d))));if(-1===i){f=new B.Node.ptr("","","","",10,CY.nil,CY.nil,CY.nil,CY.nil,CY.nil,CZ.nil,b,"","",false,false,false,0,false,0,0,0,CW.nil,CW.nil,CW.nil,0,DA.nil,false,DB.nil,0,0,0,0,CW.nil,0,false,"",0,CW.nil,"",CZ.nil,CW.nil,DD.nil,false,"","","","","","","","","","","",0,"");$s=-1;return f;}j=d.length;k=i+j>>0;if(h.$length=o.$length?($throwRuntimeError("index out of range"),undefined):o.$array[o.$offset+0]);q="";r=c.length;if(""===c||""===c||""===c||""===c||""===c||""===c||""===c||""===c||""===c||""===c||""===c||""===c){if(!g.Context.ParseOption.HTMLTag2TextMark){f=new B.Node.ptr("","","","",10,CY.nil,CY.nil,CY.nil,CY.nil,CY.nil,CZ.nil,b,"","",false,false,false,0,false,0,0,0,CW.nil,CW.nil,CW.nil,0,DA.nil,false,DB.nil,0,0,0,0,CW.nil,0,false,"",0,CW.nil,"",CZ.nil,CW.nil,DD.nil,false,"","","","","","","","","","","",0,"");$s=-1;return f;}q=p.Data;if("b"===q){q="strong";}else if("i"===q){q="em";}else if("del"===q||"strike"===q){q="s";}}else{q=($bytesToString($subslice(b,(r+1>>0))));q=$substring(q,0,F.Index(q,"\""));}f=new B.Node.ptr("","","","",530,CY.nil,CY.nil,CY.nil,CY.nil,CY.nil,CZ.nil,CW.nil,"","",false,false,false,0,false,0,0,0,CW.nil,CW.nil,CW.nil,0,DA.nil,false,DB.nil,0,0,0,0,CW.nil,0,false,"",0,CW.nil,"",CZ.nil,CW.nil,DD.nil,false,q,"","","","","","","","","","",0,"");$r=AU(f,p,g.Context.ParseOption);$s=2;case 2:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}e.pos=e.pos+((i+j>>0))>>0;$s=-1;return f;}return;}var $f={$blk:AD.ptr.prototype.processSpanTag,$c:true,$r,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,$s};return $f;};AD.prototype.processSpanTag=function(b,c,d,e){return this.$val.processSpanTag(b,c,d,e);};AD.ptr.prototype.parseCDATA=function(b){var b,c,d,e,f,g,h,i,j,k;c=false;d=CW.nil;e=CW.nil;f=this;d=b;if(8>b.$length){return[c,d,e];}if(!((33===(0>=b.$length?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+0])))){return[c,d,e];}if(!((91===(1>=b.$length?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+1])))){return[c,d,e];}if(!((67===(2>=b.$length?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+2])))||!((68===(3>=b.$length?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+3])))||!((65===(4>=b.$length?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+4])))||!((84===(5>=b.$length?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+5])))||!((65===(6>=b.$length?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+6])))){return[c,d,e];}if(!((91===(7>=b.$length?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+7])))){return[c,d,e];}e=$appendSlice(e,$subslice(b,0,7));b=$subslice(b,7);g=0;h=0;i=b.$length;while(true){if(!(h=b.$length)?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+h]);e=$append(e,g);if(h<=(i-3>>0)&&(93===g)&&(93===(j=h+1>>0,((j<0||j>=b.$length)?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+j])))&&(62===(k=h+2>>0,((k<0||k>=b.$length)?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+k])))){break;}h=h+(1)>>0;}b=$subslice(b,h);if(3>b.$length){return[c,d,e];}if(!((93===(0>=b.$length?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+0])))||!((93===(1>=b.$length?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+1])))||!((62===(2>=b.$length?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+2])))){return[c,d,e];}e=$append(e,(1>=b.$length?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+1]),(2>=b.$length?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+2]));c=true;d=$subslice(b,3);return[c,d,e];};AD.prototype.parseCDATA=function(b){return this.$val.parseCDATA(b);};AD.ptr.prototype.parseDeclaration=function(b){var b,c,d,e,f,g,h,i,j,k;c=false;d=CW.nil;e=CW.nil;f=this;d=b;if(2>b.$length){return[c,d,e];}if(!((33===(0>=b.$length?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+0])))){return[c,d,e];}g=0;h=0;i=$subslice(b,1);j=0;while(true){if(!(j=i.$length)?($throwRuntimeError("index out of range"),undefined):i.$array[i.$offset+j]);if(D.IsWhitespace(g)){break;}if(!(65<=g&&90>=g)){return[c,d,e];}j++;}e=$append(e,(0>=b.$length?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+0]),(1>=b.$length?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+1]));b=$subslice(b,2);k=b.$length;while(true){if(!(h=b.$length)?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+h]);e=$append(e,g);if(62===g){break;}h=h+(1)>>0;}b=$subslice(b,h);if(1>b.$length||!((62===(0>=b.$length?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+0])))){return[c,d,e];}c=true;d=$subslice(b,1);return[c,d,e];};AD.prototype.parseDeclaration=function(b){return this.$val.parseDeclaration(b);};AD.ptr.prototype.parseProcessingInstruction=function(b){var b,c,d,e,f,g,h,i,j;c=false;d=CW.nil;e=CW.nil;f=this;d=b;if(!((63===(0>=b.$length?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+0])))){return[c,d,e];}e=$append(e,(0>=b.$length?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+0]));b=$subslice(b,1);g=0;h=0;i=b.$length;while(true){if(!(h=b.$length)?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+h]);e=$append(e,g);if(h<=(i-2>>0)&&(63===g)&&(62===(j=h+1>>0,((j<0||j>=b.$length)?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+j])))){break;}h=h+(1)>>0;}b=$subslice(b,h);if(1>b.$length){return[c,d,e];}if(!((63===(0>=b.$length?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+0])))||!((62===(1>=b.$length?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+1])))){return[c,d,e];}e=$append(e,(1>=b.$length?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+1]));c=true;d=$subslice(b,2);return[c,d,e];};AD.prototype.parseProcessingInstruction=function(b){return this.$val.parseProcessingInstruction(b);};AD.ptr.prototype.parseHTMLComment=function(b){var b,c,d,e,f,g,h,i,j;c=false;d=CW.nil;e=CW.nil;f=this;d=b;if(3>b.$length){return[c,d,e];}if(!((33===(0>=b.$length?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+0])))||!((45===(1>=b.$length?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+1])))||!((45===(2>=b.$length?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+2])))){return[c,d,e];}g=b.$length;h=0;while(true){if(!(h=b.$length)?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+h]));if(h<=(g-3>>0)&&(45===((h<0||h>=b.$length)?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+h]))&&(45===(i=h+1>>0,((i<0||i>=b.$length)?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+i])))&&(62===(j=h+2>>0,((j<0||j>=b.$length)?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+j])))){break;}h=h+(1)>>0;}b=$subslice(b,h);if(3>b.$length||!((45===(0>=b.$length?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+0])))||!((45===(1>=b.$length?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+1])))||!((62===(2>=b.$length?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+2])))){return[c,d,e];}e=$append(e,(1>=b.$length?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+1]),(2>=b.$length?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+2]));c=true;d=$subslice(b,3);return[c,d,e];};AD.prototype.parseHTMLComment=function(b){return this.$val.parseHTMLComment(b);};AP=function(b){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p;c=false;d=CW.nil;e=CW.nil;f=CW.nil;g=CW.nil;c=true;d=b;h=CW.nil;i=0;j=0;k=b;l=0;while(true){if(!(l=k.$length)?($throwRuntimeError("index out of range"),undefined):k.$array[k.$offset+l]);if(!D.IsWhitespace(j)){break;}h=$append(h,j);l++;}if(1>h.$length){return[c,d,e,f,g];}b=$subslice(b,i);m=CW.nil;n=AR(b);b=n[0];m=n[1];if(1>m.$length){return[c,d,e,f,g];}o=CW.nil;p=AQ(b);c=p[0];b=p[1];o=p[2];if(!c){return[c,d,e,f,g];}d=b;e=$appendSlice(e,h);e=$appendSlice(e,m);e=$appendSlice(e,o);if(!(CW.nil===o)){f=m;g=$subslice(o,2,(o.$length-1>>0));}return[c,d,e,f,g];};$pkg.TagAttr=AP;AQ=function(b){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r;c=false;d=CW.nil;e=CW.nil;c=true;d=b;f=0;g=0;h=b;i=0;while(true){if(!(i=h.$length)?($throwRuntimeError("index out of range"),undefined):h.$array[h.$offset+i]);if(!D.IsWhitespace(g)){break;}e=$append(e,g);i++;}if(!((61===g))){e=CW.nil;return[c,d,e];}e=$append(e,g);b=$subslice(b,(f+1>>0));if(1>b.$length){c=false;return[c,d,e];}j=b;k=0;while(true){if(!(k=j.$length)?($throwRuntimeError("index out of range"),undefined):j.$array[j.$offset+k]);if(!D.IsWhitespace(g)){break;}e=$append(e,g);k++;}g=((f<0||f>=b.$length)?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+f]);e=$append(e,g);b=$subslice(b,(f+1>>0));l=false;if(34===g){m=b;n=0;while(true){if(!(n=m.$length)?($throwRuntimeError("index out of range"),undefined):m.$array[m.$offset+n]);e=$append(e,g);if(34===g){l=true;break;}n++;}}else if(39===g){o=b;p=0;while(true){if(!(p=o.$length)?($throwRuntimeError("index out of range"),undefined):o.$array[o.$offset+p]);e=$append(e,g);if(39===g){l=true;break;}p++;}}else{q=b;r=0;while(true){if(!(r=q.$length)?($throwRuntimeError("index out of range"),undefined):q.$array[q.$offset+r]);if(62===g){f=f-(1)>>0;break;}e=$append(e,g);if(D.IsWhitespace(g)){break;}if((34===g)||(39===g)||(61===g)||(60===g)||(62===g)||(96===g)){l=false;break;}l=true;r++;}}if(!l){c=false;e=CW.nil;return[c,d,e];}d=$subslice(b,(f+1>>0));return[c,d,e];};AR=function(b){var b,c,d,e,f,g,h;c=CW.nil;d=CW.nil;c=b;if(!D.IsASCIILetter((0>=b.$length?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+0]))&&!((95===(0>=b.$length?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+0])))&&!((58===(0>=b.$length?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+0])))){return[c,d];}d=$append(d,(0>=b.$length?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+0]));b=$subslice(b,1);e=0;f=0;g=b;h=0;while(true){if(!(h=g.$length)?($throwRuntimeError("index out of range"),undefined):g.$array[g.$offset+h]);if(!D.IsASCIILetterNumHyphen(f)&&!((95===f))&&!((46===f))&&!((58===f))){break;}d=$append(d,f);h++;}if(1>d.$length){return[c,d];}c=$subslice(b,e);return[c,d];};AD.ptr.prototype.parseTagName=function(b){var b,c,d,e,f,g,h,i;c=CW.nil;d=CW.nil;e=this;if(1>b.$length){return[c,d];}f=0;g=((f<0||f>=b.$length)?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+f]);if(!D.IsASCIILetter(g)){h=b;i=CW.nil;c=h;d=i;return[c,d];}d=$append(d,g);f=1;while(true){if(!(f=b.$length)?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+f]);if(!D.IsASCIILetterNumHyphen(g)){break;}d=$append(d,g);f=f+(1)>>0;}c=$subslice(b,f);return[c,d];};AD.prototype.parseTagName=function(b){return this.$val.parseTagName(b);};AS=function(b,c){var{aa,ab,ac,ad,ae,af,ag,ah,ai,aj,ak,al,am,an,ao,ap,aq,ar,as,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,$s,$r,$c}=$restore(this,{b,c});$s=$s||0;s:while(true){switch($s){case 0:if(CY.nil===b||DN.nil===c){$s=-1;return;}d=false;e=E.DomAttrValue(c,"style");if(!(""===e)){$s=1;continue;}$s=2;continue;case 1:f=AV(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=BA(b.KramdownIAL);$s=4;case 4:if($c){$c=false;g=g.$blk();}if(g&&g.$blk!==undefined){break s;}h=g;i=new B.Node.ptr("","","","",456,CY.nil,CY.nil,CY.nil,CY.nil,CY.nil,CZ.nil,h,"","",false,false,false,0,false,0,0,0,CW.nil,CW.nil,CW.nil,0,DA.nil,false,DB.nil,0,0,0,0,CW.nil,0,false,"",0,CW.nil,"",CZ.nil,CW.nil,DD.nil,false,"","","","","","","","","","","",0,"");if(109===b.Type){b.PrependChild(i);}else{b.InsertAfter(i);}d=true;case 2:j=E.DomCustomAttrs(c);if(!(false===j)){$s=5;continue;}$s=6;continue;case 5:if(!d){$s=7;continue;}$s=8;continue;case 7:k=j;l=0;m=k?k.keys():undefined;n=k?k.size:0;while(true){if(!(l=e.$length)?($throwRuntimeError("index out of range"),undefined):e.$array[e.$offset+f]);h=c;i=0;while(true){if(!(i=h.$length)?($throwRuntimeError("index out of range"),undefined):h.$array[h.$offset+i]);if(g===j){return true;}i++;}f++;}return false;};$pkg.ContainTextMark=AT;AU=function(b,c,d){var{aa,ab,ac,ad,ae,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,$s,$r,$c}=$restore(this,{b,c,d});$s=$s||0;s:while(true){switch($s){case 0:b.Type=530;e=E.DomAttrValue(c,"data-type");if(""===e){if(c.DataAtom===40708){e="text";}else{if(!(""===b.TextMarkType)){e=b.TextMarkType;}else{e=new K.Atom(c.DataAtom).String();if("b"===e){e="strong";}else if("i"===e){e="em";}else if("del"===e||"strike"===e){e="s";}}}}b.TextMarkType=e;b.Tokens=CW.nil;f=F.Split(e," ");g=DC.nil;h=f;i=0;while(true){if(!(i=h.$length)?($throwRuntimeError("index out of range"),undefined):h.$array[h.$offset+i]);if("a"===k||"inline-memo"===k||"block-ref"===k||"file-annotation-ref"===k||"inline-math"===k){g=$append(g,k);f=$appendSlice($subslice(f,0,j),$subslice(f,(j+1>>0)));break;}i++;}f=$appendSlice(g,f);l=false;m=f;n=0;case 1:if(!(n=m.$length)?($throwRuntimeError("index out of range"),undefined):m.$array[m.$offset+n]);p=o;if(p===("a")){$s=4;continue;}if(p===("inline-math")){$s=5;continue;}if(p===("block-ref")){$s=6;continue;}if(p===("file-annotation-ref")){$s=7;continue;}if(p===("inline-memo")){$s=8;continue;}if(!l){$s=9;continue;}$s=10;continue;case 4:q=E.GetTextMarkAData(c);b.TextMarkAHref=q[0];b.TextMarkATitle=q[1];r=E.GetTextMarkTextData(c);$s=11;case 11:if($c){$c=false;r=r.$blk();}if(r&&r.$blk!==undefined){break s;}b.TextMarkTextContent=r;$s=10;continue;case 5:b.TextMarkInlineMathContent=E.GetTextMarkInlineMathData(c);l=true;$s=10;continue;case 6:s=E.GetTextMarkBlockRefData(c);b.TextMarkBlockRefID=s[0];b.TextMarkBlockRefSubtype=s[1];t=E.GetTextMarkTextData(c);$s=12;case 12:if($c){$c=false;t=t.$blk();}if(t&&t.$blk!==undefined){break s;}b.TextMarkTextContent=t;$s=10;continue;case 7:b.TextMarkFileAnnotationRefID=E.GetTextMarkFileAnnotationRefData(c);u=E.GetTextMarkTextData(c);$s=13;case 13:if($c){$c=false;u=u.$blk();}if(u&&u.$blk!==undefined){break s;}b.TextMarkTextContent=u;$s=10;continue;case 8:v=E.GetTextMarkTextData(c);$s=14;case 14:if($c){$c=false;v=v.$blk();}if(v&&v.$blk!==undefined){break s;}b.TextMarkTextContent=v;b.TextMarkInlineMemoContent=E.GetTextMarkInlineMemoData(c);w=AA("",(new CW($stringToBytes(b.TextMarkInlineMemoContent))),d);$s=15;case 15:if($c){$c=false;w=w.$blk();}if(w&&w.$blk!==undefined){break s;}x=w;if(!(DH.nil===x)){$s=16;continue;}$s=17;continue;case 16:y=x.Root.Content();$s=18;case 18:if($c){$c=false;y=y.$blk();}if(y&&y.$blk!==undefined){break s;}z=F.ReplaceAll(y,"\n","_esc_newline_");$s=19;case 19:if($c){$c=false;z=z.$blk();}if(z&&z.$blk!==undefined){break s;}b.TextMarkInlineMemoContent=z;b.TextMarkInlineMemoContent=F.ReplaceAll(b.TextMarkInlineMemoContent,"\"",""");case 17:$s=10;continue;case 9:aa=E.GetTextMarkTextDataWithoutEscapeSingleQuote(c);$s=20;case 20:if($c){$c=false;aa=aa.$blk();}if(aa&&aa.$blk!==undefined){break s;}b.TextMarkTextContent=aa;if(b.ContainTextMarkTypes(new DC(["strong","em","s","mark","sup","sub"]))){$s=21;continue;}$s=22;continue;case 21:ab=AW(b.TextMarkTextContent);ac=ab[0];ad=ab[1];if(!(""===ac)){b.InsertBefore(new B.Node.ptr("","","","",16,CY.nil,CY.nil,CY.nil,CY.nil,CY.nil,CZ.nil,(new CW($stringToBytes(ac))),"","",false,false,false,0,false,0,0,0,CW.nil,CW.nil,CW.nil,0,DA.nil,false,DB.nil,0,0,0,0,CW.nil,0,false,"",0,CW.nil,"",CZ.nil,CW.nil,DD.nil,false,"","","","","","","","","","","",0,""));}if(!(""===ad)){b.InsertAfter(new B.Node.ptr("","","","",16,CY.nil,CY.nil,CY.nil,CY.nil,CY.nil,CZ.nil,(new CW($stringToBytes(ad))),"","",false,false,false,0,false,0,0,0,CW.nil,CW.nil,CW.nil,0,DA.nil,false,DB.nil,0,0,0,0,CW.nil,0,false,"",0,CW.nil,"",CZ.nil,CW.nil,DD.nil,false,"","","","","","","","","","","",0,""));}ae=F.TrimSpace(b.TextMarkTextContent);$s=23;case 23:if($c){$c=false;ae=ae.$blk();}if(ae&&ae.$blk!==undefined){break s;}b.TextMarkTextContent=ae;case 22:if(b.ParentIs(109,DG.nil)&&b.IsTextMarkType("code")){b.TextMarkTextContent=F.ReplaceAll(b.TextMarkTextContent,"|","|");}case 10:case 3:n++;$s=1;continue;case 2:$r=AS(b,c);$s=24;case 24:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$s=-1;return;}return;}var $f={$blk:AU,$c:true,$r,aa,ab,ac,ad,ae,b,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};return $f;};$pkg.SetTextMarkNode=AU;AV=function(b){var{b,c,d,e,f,$s,$r,$c}=$restore(this,{b});$s=$s||0;s:while(true){switch($s){case 0:c="";d=F.TrimSpace(b);$s=1;case 1:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}c=d;c=F.ReplaceAll(c,"\n","");e=F.Fields(c);$s=2;case 2:if($c){$c=false;e=e.$blk();}if(e&&e.$blk!==undefined){break s;}f=F.Join(e," ");$s=3;case 3:if($c){$c=false;f=f.$blk();}if(f&&f.$blk!==undefined){break s;}c=f;$s=-1;return c;}return;}var $f={$blk:AV,$c:true,$r,b,c,d,e,f,$s};return $f;};$pkg.StyleValue=AV;AW=function(b){var b,c,d,e,f,g,h,i;c="";d="";e=b;f=0;while(true){if(!(f>0;while(true){if(!(i>=0)){break;}if(!((32===b.charCodeAt(i)))&&!((9===b.charCodeAt(i)))&&!((10===b.charCodeAt(i)))){break;}d=($encodeRune(b.charCodeAt(i)))+d;i=i-(1)>>0;}return[c,d];};AX=function(b,c){var{b,c,d,e,f,g,h,i,j,k,l,m,n,o,$s,$r,$c}=$restore(this,{b,c});$s=$s||0;s:while(true){switch($s){case 0:if(!b.Context.ParseOption.KramdownBlockIAL||b.Context.indented){$s=-1;return 0;}if((8===b.Context.Tip.Type)&&CY.nil===b.Context.Tip.FirstChild){$s=-1;return 0;}d=b.parseKramdownBlockIAL();if(!(DD.nil===d)){$s=1;continue;}$s=2;continue;case 1:$r=b.Context.closeUnmatchedBlocks();$s=3;case 3:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}b.Context.offset=b.Context.currentLineLen;if(E.IsDocIAL2(d)){b.Context.rootIAL=new B.Node.ptr("","","","",455,CY.nil,CY.nil,CY.nil,CY.nil,CY.nil,CZ.nil,$subslice(b.Context.currentLine,b.Context.nextNonspace),"","",false,false,false,0,false,0,0,0,CW.nil,CW.nil,CW.nil,0,DA.nil,false,DB.nil,0,0,0,0,CW.nil,0,false,"",0,CW.nil,"",CZ.nil,CW.nil,DD.nil,false,"","","","","","","","","","","",0,"");b.Root.KramdownIAL=d;b.Root.ID=(e=(0>=d.$length?($throwRuntimeError("index out of range"),undefined):d.$array[d.$offset+0]),(1>=e.$length?($throwRuntimeError("index out of range"),undefined):e.$array[e.$offset+1]));b.ID=b.Root.ID;$s=-1;return 2;}f=b.Context.lastMatchedContainer;if(b.Context.allClosed){$s=4;continue;}$s=5;continue;case 4:if((0===f.Type)||(8===f.Type)||(5===f.Type)||(475===f.Type)){$s=6;continue;}$s=7;continue;case 6:f=b.Context.Tip.LastChild;if(CY.nil===f){f=b.Context.lastMatchedContainer;}if(((477===f.Type)||(455===f.Type))&&!(CY.nil===f.Parent)){$s=8;continue;}if(6===f.Type){$s=9;continue;}if(0===f.Type){$s=10;continue;}$s=11;continue;case 8:g=BA(d);$s=12;case 12:if($c){$c=false;g=g.$blk();}if(g&&g.$blk!==undefined){break s;}h=g;if(!A.HasPrefix(f.Tokens,h)){i=new B.Node.ptr("","","","",1,CY.nil,CY.nil,CY.nil,CY.nil,CY.nil,CZ.nil,(new CW($stringToBytes(" "))),"","",false,false,false,0,false,0,0,0,CW.nil,CW.nil,CW.nil,0,DA.nil,false,DB.nil,0,0,0,0,CW.nil,0,false,"",0,CW.nil,"",CZ.nil,CW.nil,DD.nil,false,"","","","","","","","","","","",0,"");f.InsertAfter(i);b.Context.Tip=i;f=i;}$s=11;continue;case 9:j=new B.Node.ptr("","","","",1,CY.nil,CY.nil,CY.nil,CY.nil,CY.nil,CZ.nil,(new CW($stringToBytes(" "))),"","",false,false,false,0,false,0,0,0,CW.nil,CW.nil,CW.nil,0,DA.nil,false,DB.nil,0,0,0,0,CW.nil,0,false,"",0,CW.nil,"",CZ.nil,CW.nil,DD.nil,false,"","","","","","","","","","","",0,"");f.InsertAfter(j);b.Context.Tip=j;f=j;$s=11;continue;case 10:k=new B.Node.ptr("","","","",1,CY.nil,CY.nil,CY.nil,CY.nil,CY.nil,CZ.nil,(new CW($stringToBytes(" "))),"","",false,false,false,0,false,0,0,0,CW.nil,CW.nil,CW.nil,0,DA.nil,false,DB.nil,0,0,0,0,CW.nil,0,false,"",0,CW.nil,"",CZ.nil,CW.nil,DD.nil,false,"","","","","","","","","","","",0,"");f.AppendChild(k);b.Context.Tip=k;f=k;case 11:case 7:case 5:f.KramdownIAL=d;l=BE(d);f.ID=(m=$mapIndex(l,$String.keyFor("id")),m!==undefined?m.v:"");n=b.Context.addChild(455);$s=13;case 13:if($c){$c=false;n=n.$blk();}if(n&&n.$blk!==undefined){break s;}o=n;o.Tokens=$subslice(b.Context.currentLine,b.Context.nextNonspace);$s=-1;return 2;case 2:$s=-1;return 0;}return;}var $f={$blk:AX,$c:true,$r,b,c,d,e,f,g,h,i,j,k,l,m,n,o,$s};return $f;};$pkg.IALStart=AX;BA=function(b){var{b,c,d,e,f,g,h,i,j,k,l,m,n,$s,$r,$c}=$restore(this,{b});$s=$s||0;s:while(true){switch($s){case 0:c=new A.Buffer.ptr(CW.nil,0,0);d=c.WriteString("{: ");$s=1;case 1:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}d;e=b;f=0;case 2:if(!(f=e.$length)?($throwRuntimeError("index out of range"),undefined):e.$array[e.$offset+f]);i=c.WriteString((0>=h.$length?($throwRuntimeError("index out of range"),undefined):h.$array[h.$offset+0]));$s=4;case 4:if($c){$c=false;i=i.$blk();}if(i&&i.$blk!==undefined){break s;}i;j=c.WriteString("=\"");$s=5;case 5:if($c){$c=false;j=j.$blk();}if(j&&j.$blk!==undefined){break s;}j;k=c.WriteString((1>=h.$length?($throwRuntimeError("index out of range"),undefined):h.$array[h.$offset+1]));$s=6;case 6:if($c){$c=false;k=k.$blk();}if(k&&k.$blk!==undefined){break s;}k;l=c.WriteByte(34);$s=7;case 7:if($c){$c=false;l=l.$blk();}if(l&&l.$blk!==undefined){break s;}l;if(g<(b.$length-1>>0)){$s=8;continue;}$s=9;continue;case 8:m=c.WriteByte(32);$s=10;case 10:if($c){$c=false;m=m.$blk();}if(m&&m.$blk!==undefined){break s;}m;case 9:f++;$s=2;continue;case 3:n=c.WriteByte(125);$s=11;case 11:if($c){$c=false;n=n.$blk();}if(n&&n.$blk!==undefined){break s;}n;$s=-1;return c.Bytes();}return;}var $f={$blk:BA,$c:true,$r,b,c,d,e,f,g,h,i,j,k,l,m,n,$s};return $f;};$pkg.IAL2Tokens=BA;BD=function(b){var b,c,d,e,f,g;c=false;c=$makeMap($String.keyFor,[]);d=b;e=0;while(true){if(!(e=d.$length)?($throwRuntimeError("index out of range"),undefined):d.$array[d.$offset+e]);g=(0>=f.$length?($throwRuntimeError("index out of range"),undefined):f.$array[f.$offset+0]);(c||$throwRuntimeError("assignment to entry in nil map")).set($String.keyFor(g),{k:g,v:G.UnescapeAttrVal((1>=f.$length?($throwRuntimeError("index out of range"),undefined):f.$array[f.$offset+1]))});e++;}return c;};$pkg.IAL2Map=BD;BE=function(b){var b,c,d,e,f,g;c=false;c=$makeMap($String.keyFor,[]);d=b;e=0;while(true){if(!(e=d.$length)?($throwRuntimeError("index out of range"),undefined):d.$array[d.$offset+e]);g=(0>=f.$length?($throwRuntimeError("index out of range"),undefined):f.$array[f.$offset+0]);(c||$throwRuntimeError("assignment to entry in nil map")).set($String.keyFor(g),{k:g,v:(1>=f.$length?($throwRuntimeError("index out of range"),undefined):f.$array[f.$offset+1])});e++;}return c;};$pkg.IAL2MapUnEsc=BE;BG=function(b){var b;if(7>=b.$length){return false;}return A.Contains(b,(new CW($stringToBytes("id=\""))));};BH=function(b){var b,c,d,e,f,g,h,i;c=DD.nil;b=A.TrimRight(b," \n");b=A.TrimPrefix(b,(new CW($stringToBytes("{:"))));b=A.TrimSuffix(b,(new CW($stringToBytes("}"))));b=A.ReplaceAll(b,(new CW($stringToBytes("\n"))),(new CW($stringToBytes("_esc_newline_"))));while(true){d=AP(b);e=d[0];f=d[1];g=d[2];h=d[3];i=d[4];if(!e){break;}b=f;if(1>g.$length){break;}i=A.ReplaceAll(i,(new CW($stringToBytes("_esc_newline_"))),(new CW($stringToBytes("\n"))));c=$append(c,new DC([E.BytesToStr(h),E.BytesToStr(i)]));}return c;};$pkg.Tokens2IAL=BH;AD.ptr.prototype.parseKramdownBlockIAL=function(){var b,c,d;b=DD.nil;c=this;d=$subslice(c.Context.currentLine,c.Context.nextNonspace);b=c.Context.parseKramdownBlockIAL(d);return b;};AD.prototype.parseKramdownBlockIAL=function(){return this.$val.parseKramdownBlockIAL();};AD.ptr.prototype.parseKramdownSpanIAL=function(){var{b,$s,$r,$c}=$restore(this,{});$s=$s||0;s:while(true){switch($s){case 0:b=[b];b[0]=this;$r=B.Walk(b[0].Root,(function(b){return function(c,d){var c,d,e,f,g,h,i,j;if(!d){return 2;}switch(0){default:e=c.Type;if((e===(17))||(e===(22))||(e===(27))||(e===(101))||(e===(460))||(e===(450))||(e===(34))||(e===(530))){break;}else{return 2;}}if(CY.nil===c.Next||!((16===c.Next.Type))){return 2;}f=c.Next.Tokens;g=b[0].Context.parseKramdownSpanIAL(f);h=g[0];i=g[1];if(0>0));if(1>c.Next.Tokens.$length){c.Next.Unlink();}j=new B.Node.ptr("","","","",456,CY.nil,CY.nil,CY.nil,CY.nil,CY.nil,CZ.nil,$subslice(f,0,(h+1>>0)),"","",false,false,false,0,false,0,0,0,CW.nil,CW.nil,CW.nil,0,DA.nil,false,DB.nil,0,0,0,0,CW.nil,0,false,"",0,CW.nil,"",CZ.nil,CW.nil,DD.nil,false,"","","","","","","","","","","",0,"");c.InsertAfter(j);}return 2;};})(b));$s=1;case 1:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$s=-1;return;}return;}var $f={$blk:AD.ptr.prototype.parseKramdownSpanIAL,$c:true,$r,b,$s};return $f;};AD.prototype.parseKramdownSpanIAL=function(){return this.$val.parseKramdownSpanIAL();};AB.ptr.prototype.parseKramdownBlockIAL=function(b){var b,c,d,e,f;c=DD.nil;d=this;e=A.Index(b,(new CW($stringToBytes("{:"))));if(0===e){b=$subslice(b,(e+2>>0));f=A.LastIndex(b,BR);if(3>f){return c;}if(!A.Equal($subslice(b,f),(new CW($stringToBytes("}\n"))))){return c;}c=BH(b);}return c;};AB.prototype.parseKramdownBlockIAL=function(b){return this.$val.parseKramdownBlockIAL(b);};AB.ptr.prototype.parseKramdownSpanIAL=function(b){var b,c,d,e,f,g,h,i,j,k,l,m,n,o;c=0;d=DD.nil;e=this;c=A.Index(b,BR);f=A.Index(b,(new CW($stringToBytes("{:"))));if((0===f)&&(f+2>>0)>0));g=A.Index(b,BR);if(3>g){return[c,d];}b=$subslice(b,0,g);while(true){h=AP(b);i=h[0];j=h[1];k=h[2];l=h[3];m=h[4];if(!i){break;}b=j;if(1>k.$length){break;}n=F.ReplaceAll(E.BytesToStr(l),"\xE2\x80\xB8","");o=F.ReplaceAll(E.BytesToStr(m),"\xE2\x80\xB8","");d=$append(d,new DC([n,o]));}}return[c,d];};AB.prototype.parseKramdownSpanIAL=function(b){return this.$val.parseKramdownSpanIAL(b);};AB.ptr.prototype.parseKramdownIALInListItem=function(b){var b,c,d,e,f,g,h,i,j,k,l;c=DD.nil;d=this;e=A.Index(b,(new CW($stringToBytes("{:"))));if(0===e){b=$subslice(b,(e+2>>0));f=A.Index(b,BR);if(3>f){return c;}b=$subslice(b,0,A.Index(b,(new CW($stringToBytes("}")))));while(true){g=AP(b);h=g[0];i=g[1];j=g[2];k=g[3];l=g[4];if(!h){break;}b=i;if(1>j.$length){break;}c=$append(c,new DC([E.BytesToStr(k),E.BytesToStr(l)]));}}return c;};AB.prototype.parseKramdownIALInListItem=function(b){return this.$val.parseKramdownIALInListItem(b);};AD.ptr.prototype.parseInline=function(b,c){var{b,c,d,e,f,g,h,i,j,k,l,m,$s,$r,$c}=$restore(this,{b,c});$s=$s||0;s:while(true){switch($s){case 0:d=this;case 1:if(!(c.pos=e.$length)?($throwRuntimeError("index out of range"),undefined):e.$array[e.$offset+f]));h=CY.nil;i=g;if(i===(92)){$s=4;continue;}if(i===(96)){$s=5;continue;}if((i===(42))||(i===(95))||(i===(126))||(i===(61))||(i===(35))){$s=6;continue;}if(i===(94)){$s=7;continue;}if(i===(10)){$s=8;continue;}if(i===(60)){$s=9;continue;}if(i===(91)){$s=10;continue;}if(i===(93)){$s=11;continue;}if(i===(38)){$s=12;continue;}if(i===(33)){$s=13;continue;}if(i===(36)){$s=14;continue;}if(i===(123)){$s=15;continue;}if(i===(40)){$s=16;continue;}$s=17;continue;case 4:h=d.parseBackslash(b,c);$s=18;continue;case 5:j=d.parseCodeSpan(b,c);$s=19;case 19:if($c){$c=false;j=j.$blk();}if(j&&j.$blk!==undefined){break s;}h=j;$s=18;continue;case 6:d.handleDelim(b,c);$s=18;continue;case 7:if(d.Context.ParseOption.Sup){d.handleDelim(b,c);}else{h=d.parseText(c);}$s=18;continue;case 8:h=d.parseNewline(b,c);$s=18;continue;case 9:h=d.parseAutolink(c);if(CY.nil===h){$s=20;continue;}$s=21;continue;case 20:h=d.parseAutoEmailLink(c);if(CY.nil===h){$s=22;continue;}$s=23;continue;case 22:k=d.parseFileAnnotationRef(c);$s=24;case 24:if($c){$c=false;k=k.$blk();}if(k&&k.$blk!==undefined){break s;}h=k;if(CY.nil===h){$s=25;continue;}$s=26;continue;case 25:l=d.parseInlineHTML(c);$s=27;case 27:if($c){$c=false;l=l.$blk();}if(l&&l.$blk!==undefined){break s;}h=l;if(d.Context.ParseOption.ProtyleWYSIWYG&&!(CY.nil===h)&&(10===h.Type)){h.Type=16;}case 26:case 23:case 21:$s=18;continue;case 10:h=d.parseOpenBracket(c);$s=18;continue;case 11:m=d.parseCloseBracket(c);$s=28;case 28:if($c){$c=false;m=m.$blk();}if(m&&m.$blk!==undefined){break s;}h=m;$s=18;continue;case 12:h=d.parseEntity(c);$s=18;continue;case 13:h=d.parseBang(c);$s=18;continue;case 14:h=d.parseInlineMath(c);$s=18;continue;case 15:h=d.parseHeadingID(b,c);$s=18;continue;case 16:h=d.parseBlockRef(c);$s=18;continue;case 17:h=d.parseText(c);case 18:case 3:if(!(CY.nil===h)){b.AppendChild(h);}$s=1;continue;case 2:b.Tokens=CW.nil;$s=-1;return;}return;}var $f={$blk:AD.ptr.prototype.parseInline,$c:true,$r,b,c,d,e,f,g,h,i,j,k,l,m,$s};return $f;};AD.prototype.parseInline=function(b,c){return this.$val.parseInline(b,c);};AD.ptr.prototype.parseEntity=function(b){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r;c=CY.nil;d=this;g=new CW([(e=b.tokens,f=b.pos,((f<0||f>=e.$length)?($throwRuntimeError("index out of range"),undefined):e.$array[e.$offset+f]))]);if(2>b.tokensLen||b.tokensLen<=(b.pos+1>>0)){b.pos=b.pos+(1)>>0;c=new B.Node.ptr("","","","",16,CY.nil,CY.nil,CY.nil,CY.nil,CY.nil,CZ.nil,g,"","",false,false,false,0,false,0,0,0,CW.nil,CW.nil,CW.nil,0,DA.nil,false,DB.nil,0,0,0,0,CW.nil,0,false,"",0,CW.nil,"",CZ.nil,CW.nil,DD.nil,false,"","","","","","","","","","","",0,"");return c;}h=b.pos;i=false;if(3>0,((k<0||k>=j.$length)?($throwRuntimeError("index out of range"),undefined):j.$array[j.$offset+k]));}l=b.pos;m=0;n=false;while(true){if(!(l=o.$length)?($throwRuntimeError("index out of range"),undefined):o.$array[o.$offset+l]));if(D.IsWhitespace(m)){break;}if(59===m){l=l+(1)>>0;n=true;break;}l=l+(1)>>0;}if(!n){b.pos=b.pos+(1)>>0;c=new B.Node.ptr("","","","",16,CY.nil,CY.nil,CY.nil,CY.nil,CY.nil,CZ.nil,g,"","",false,false,false,0,false,0,0,0,CW.nil,CW.nil,CW.nil,0,DA.nil,false,DB.nil,0,0,0,0,CW.nil,0,false,"",0,CW.nil,"",CZ.nil,CW.nil,DD.nil,false,"","","","","","","","","","","",0,"");return c;}p=E.BytesToStr($subslice(b.tokens,h,l));if(i){q=p.length;if(10q){b.pos=b.pos+(1)>>0;c=new B.Node.ptr("","","","",16,CY.nil,CY.nil,CY.nil,CY.nil,CY.nil,CZ.nil,g,"","",false,false,false,0,false,0,0,0,CW.nil,CW.nil,CW.nil,0,DA.nil,false,DB.nil,0,0,0,0,CW.nil,0,false,"",0,CW.nil,"",CZ.nil,CW.nil,DD.nil,false,"","","","","","","","","","","",0,"");return c;}if(((120===p.charCodeAt(2))||(88===p.charCodeAt(2)))&&5>q){b.pos=b.pos+(1)>>0;c=new B.Node.ptr("","","","",16,CY.nil,CY.nil,CY.nil,CY.nil,CY.nil,CZ.nil,g,"","",false,false,false,0,false,0,0,0,CW.nil,CW.nil,CW.nil,0,DA.nil,false,DB.nil,0,0,0,0,CW.nil,0,false,"",0,CW.nil,"",CZ.nil,CW.nil,DD.nil,false,"","","","","","","","","","","",0,"");return c;}}r=G.HtmlUnescapeString(p);if(r===p){b.pos=b.pos+(1)>>0;c=new B.Node.ptr("","","","",16,CY.nil,CY.nil,CY.nil,CY.nil,CY.nil,CZ.nil,g,"","",false,false,false,0,false,0,0,0,CW.nil,CW.nil,CW.nil,0,DA.nil,false,DB.nil,0,0,0,0,CW.nil,0,false,"",0,CW.nil,"",CZ.nil,CW.nil,DD.nil,false,"","","","","","","","","","","",0,"");return c;}b.pos=b.pos+((l-h>>0))>>0;c=new B.Node.ptr("","","","",44,CY.nil,CY.nil,CY.nil,CY.nil,CY.nil,CZ.nil,E.StrToBytes(r),"","",false,false,false,0,false,0,0,0,CW.nil,CW.nil,CW.nil,0,DA.nil,false,DB.nil,0,0,0,0,CW.nil,0,false,"",0,CW.nil,"",CZ.nil,E.StrToBytes(p),DD.nil,false,"","","","","","","","","","","",0,"");return c;};AD.prototype.parseEntity=function(b){return this.$val.parseEntity(b);};AD.ptr.prototype.parseCloseBracket=function(b){var{aa,ab,ac,ad,ae,af,ag,ah,ai,aj,ak,al,am,an,ao,ap,aq,ar,as,at,au,av,aw,ax,ay,az,b,ba,bb,bc,bd,be,bf,bg,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,$s,$r,$c}=$restore(this,{b});$s=$s||0;s:while(true){switch($s){case 0:c=this;f=new CW([(d=b.tokens,e=b.pos,((e<0||e>=d.$length)?($throwRuntimeError("index out of range"),undefined):d.$array[d.$offset+e]))]);b.pos=b.pos+(1)>>0;g=b.pos;h=b.brackets;if(DM.nil===h){$s=-1;return new B.Node.ptr("","","","",16,CY.nil,CY.nil,CY.nil,CY.nil,CY.nil,CZ.nil,f,"","",false,false,false,0,false,0,0,0,CW.nil,CW.nil,CW.nil,0,DA.nil,false,DB.nil,0,0,0,0,CW.nil,0,false,"",0,CW.nil,"",CZ.nil,CW.nil,DD.nil,false,"","","","","","","","","","","",0,"");}if(!h.active){c.removeBracket(b);$s=-1;return new B.Node.ptr("","","","",16,CY.nil,CY.nil,CY.nil,CY.nil,CY.nil,CZ.nil,f,"","",false,false,false,0,false,0,0,0,CW.nil,CW.nil,CW.nil,0,DA.nil,false,DB.nil,0,0,0,0,CW.nil,0,false,"",0,CW.nil,"",CZ.nil,CW.nil,DD.nil,false,"","","","","","","","","","","",0,"");}i=h.image;j=CW.nil;k=CW.nil;l=CW.nil;m=CW.nil;n=CW.nil;o=j;p=k;q=l;r=m;s=n;t=b.pos;u=false;if((b.pos+1>>0)=v.$length)?($throwRuntimeError("index out of range"),undefined):v.$array[v.$offset+w])))){$s=1;continue;}$s=2;continue;case 1:b.pos=b.pos+(1)>>0;x=false;y=CW.nil;z=CW.nil;aa=y;ab=z;case 3:ac=D.Spnl($subslice(b.tokens,(b.pos-1>>0)));x=ac[0];aa=ac[1];ab=ac[2];if(!x){$s=4;continue;}b.pos=b.pos+(aa.$length)>>0;ae=c.Context.parseInlineLinkDest(ab);$s=5;case 5:if($c){$c=false;ae=ae.$blk();}if(ae&&ae.$blk!==undefined){break s;}ad=ae;aa=ad[0];ab=ad[1];p=ad[2];if(CW.nil===aa){$s=4;continue;}if(c.Context.ParseOption.VditorWYSIWYG||c.Context.ParseOption.VditorIR||c.Context.ParseOption.VditorSV||c.Context.ParseOption.ProtyleWYSIWYG){if(!i&&CY.nil===h.node.Next){$s=4;continue;}}b.pos=b.pos+(aa.$length)>>0;o=$subslice(aa,0,1);s=$subslice(aa,(aa.$length-1>>0));u=41===(af=aa.$length-1>>0,((af<0||af>=aa.$length)?($throwRuntimeError("index out of range"),undefined):aa.$array[aa.$offset+af]));if(u&&1=ab.$length?($throwRuntimeError("index out of range"),undefined):ab.$array[ab.$offset+0]))&&!((34===(1>=ab.$length?($throwRuntimeError("index out of range"),undefined):ab.$array[ab.$offset+1])));}if(u){b.pos=b.pos-(1)>>0;$s=4;continue;}if(1>ab.$length||!D.IsWhitespace((0>=ab.$length?($throwRuntimeError("index out of range"),undefined):ab.$array[ab.$offset+0]))){$s=4;continue;}ag=D.Spnl(ab);x=ag[0];aa=ag[1];ab=ag[2];if(!x){$s=4;continue;}q=aa;b.pos=b.pos+(aa.$length)>>0;u=41===(0>=ab.$length?($throwRuntimeError("index out of range"),undefined):ab.$array[ab.$offset+0]);s=$subslice(ab,0,1);if(u){$s=4;continue;}b.pos=b.pos+(1)>>0;ah=false;ai=c.Context.parseLinkTitle(ab);ah=ai[0];aa=ai[1];ab=ai[2];r=ai[3];if(!ah){$s=4;continue;}b.pos=b.pos+(aa.$length)>>0;aj=D.Spnl(ab);x=aj[0];aa=aj[1];ab=aj[2];b.pos=b.pos+(aa.$length)>>0;u=x&&0>0)),ab);}else{r=C.CaretTokens;ab=$subslice(ab,C.CaretTokens.$length);b.pos=b.pos+(3)>>0;}}else if(A.HasPrefix(ab,(new CW($stringToBytes(")\xE2\x80\xB8"))))){if(0===r.$length){r=C.CaretTokens;ab=A.ReplaceAll(ab,C.CaretTokens,CW.nil);b.pos=b.pos+(3)>>0;}}}u=41===(0>=ab.$length?($throwRuntimeError("index out of range"),undefined):ab.$array[ab.$offset+0]);}s=$subslice(ab,0);$s=4;continue;case 4:if(!u){b.pos=t;}case 2:ak=CW.nil;al=0;if(!u){$s=6;continue;}$s=7;continue;case 6:am=b.pos;an=c.Context.parseLinkLabel($subslice(b.tokens,am));ao=an[0];ap=an[2];if(2>0;}else if(!h.bracketAfter){aq=h.index;if(91===(ar=b.tokens,((aq<0||aq>=ar.$length)?($throwRuntimeError("index out of range"),undefined):ar.$array[ar.$offset+aq]))){aq=aq+(1)>>0;}ak=$subslice(b.tokens,aq,(g-1>>0));b.pos=b.pos+(2)>>0;}if(0===ao){b.pos=g;}if(!(CW.nil===ak)){$s=8;continue;}$s=9;continue;case 8:if(c.Context.ParseOption.Footnotes){$s=10;continue;}$s=11;continue;case 10:at=c.FindFootnotesDef(ak);$s=12;case 12:if($c){$c=false;at=at.$blk();}if(at&&at.$blk!==undefined){break s;}as=at;au=as[0];av=as[1];if(!(CY.nil===av)){c.removeBracket(b);if(c.Context.ParseOption.Sup&&!(CY.nil===h.node.Next.Next)){h.node.Next.Next.Unlink();h.node.Next.Unlink();}else{h.node.Next.Unlink();}h.node.Unlink();aw=I.Itoa(au);ax=av.FootnotesRefs.$length;if(0>0));}ay=new B.Node.ptr("","","","",412,CY.nil,CY.nil,CY.nil,CY.nil,CY.nil,CZ.nil,ak,"","",false,false,false,0,false,0,0,0,CW.nil,CW.nil,CW.nil,0,DA.nil,false,DB.nil,0,0,0,0,CW.nil,0,false,"",0,A.ReplaceAll(ak,C.CaretTokens,CW.nil),aw,CZ.nil,CW.nil,DD.nil,false,"","","","","","","","","","","",0,"");av.FootnotesRefs=$append(av.FootnotesRefs,ay);$s=-1;return ay;}case 11:az=c.FindLinkRefDefLink(ak);$s=13;case 13:if($c){$c=false;az=az.$blk();}if(az&&az.$blk!==undefined){break s;}ba=az;if(!(CY.nil===ba)){p=ba.ChildByType(41).Tokens;bb=ba.ChildByType(42);if(!(CY.nil===bb)){r=bb.Tokens;}u=true;al=3;}case 9:case 7:if(u){bc=new B.Node.ptr("","","","",33,CY.nil,CY.nil,CY.nil,CY.nil,CY.nil,CZ.nil,CW.nil,"","",false,false,false,0,false,0,0,0,CW.nil,CW.nil,CW.nil,0,DA.nil,false,DB.nil,0,0,0,al,ak,0,false,"",0,CW.nil,"",CZ.nil,CW.nil,DD.nil,false,"","","","","","","","","","","",0,"");if(i){bc.Type=34;bc.AppendChild(new B.Node.ptr("","","","",35,CY.nil,CY.nil,CY.nil,CY.nil,CY.nil,CZ.nil,$subslice(h.node.Tokens,0,1),"","",false,false,false,0,false,0,0,0,CW.nil,CW.nil,CW.nil,0,DA.nil,false,DB.nil,0,0,0,0,CW.nil,0,false,"",0,CW.nil,"",CZ.nil,CW.nil,DD.nil,false,"","","","","","","","","","","",0,""));h.node.Tokens=$subslice(h.node.Tokens,1);}bc.AppendChild(new B.Node.ptr("","","","",36,CY.nil,CY.nil,CY.nil,CY.nil,CY.nil,CZ.nil,h.node.Tokens,"","",false,false,false,0,false,0,0,0,CW.nil,CW.nil,CW.nil,0,DA.nil,false,DB.nil,0,0,0,0,CW.nil,0,false,"",0,CW.nil,"",CZ.nil,CW.nil,DD.nil,false,"","","","","","","","","","","",0,""));bd=CY.nil;be=CY.nil;bf=bd;bg=be;bf=h.node.Next;while(true){if(!(!(CY.nil===bf))){break;}bg=bf.Next;bf.Unlink();if(16===bf.Type){bf.Type=40;}bc.AppendChild(bf);bf=bg;}bc.AppendChild(new B.Node.ptr("","","","",37,CY.nil,CY.nil,CY.nil,CY.nil,CY.nil,CZ.nil,f,"","",false,false,false,0,false,0,0,0,CW.nil,CW.nil,CW.nil,0,DA.nil,false,DB.nil,0,0,0,0,CW.nil,0,false,"",0,CW.nil,"",CZ.nil,CW.nil,DD.nil,false,"","","","","","","","","","","",0,""));bc.AppendChild(new B.Node.ptr("","","","",38,CY.nil,CY.nil,CY.nil,CY.nil,CY.nil,CZ.nil,o,"","",false,false,false,0,false,0,0,0,CW.nil,CW.nil,CW.nil,0,DA.nil,false,DB.nil,0,0,0,0,CW.nil,0,false,"",0,CW.nil,"",CZ.nil,CW.nil,DD.nil,false,"","","","","","","","","","","",0,""));bc.AppendChild(new B.Node.ptr("","","","",41,CY.nil,CY.nil,CY.nil,CY.nil,CY.nil,CZ.nil,p,"","",false,false,false,0,false,0,0,0,CW.nil,CW.nil,CW.nil,0,DA.nil,false,DB.nil,0,0,0,0,CW.nil,0,false,"",0,CW.nil,"",CZ.nil,CW.nil,DD.nil,false,"","","","","","","","","","","",0,""));if(!(CW.nil===q)){bc.AppendChild(new B.Node.ptr("","","","",43,CY.nil,CY.nil,CY.nil,CY.nil,CY.nil,CZ.nil,q,"","",false,false,false,0,false,0,0,0,CW.nil,CW.nil,CW.nil,0,DA.nil,false,DB.nil,0,0,0,0,CW.nil,0,false,"",0,CW.nil,"",CZ.nil,CW.nil,DD.nil,false,"","","","","","","","","","","",0,""));}if(0>0;c=new B.Node.ptr("","","","",16,CY.nil,CY.nil,CY.nil,CY.nil,CY.nil,CZ.nil,$subslice(b.tokens,e,b.pos),"","",false,false,false,0,false,0,0,0,CW.nil,CW.nil,CW.nil,0,DA.nil,false,DB.nil,0,0,0,0,CW.nil,0,false,"",0,CW.nil,"",CZ.nil,CW.nil,DD.nil,false,"","","","","","","","","","","",0,"");d.addBracket(c,b.pos-1>>0,false,b);return c;};AD.prototype.parseOpenBracket=function(b){return this.$val.parseOpenBracket(b);};AD.ptr.prototype.addBracket=function(b,c,d,e){var b,c,d,e,f;f=this;if(!(DM.nil===e.brackets)){e.brackets.bracketAfter=true;}e.brackets=new CA.ptr(b,0,0,0,false,false,e.brackets,DM.nil,true,d,false,c,e.delimiters);};AD.prototype.addBracket=function(b,c,d,e){return this.$val.addBracket(b,c,d,e);};AD.ptr.prototype.removeBracket=function(b){var b,c;c=this;b.brackets=b.brackets.previous;};AD.prototype.removeBracket=function(b){return this.$val.removeBracket(b);};AD.ptr.prototype.parseBang=function(b){var b,c,d,e,f,g;c=CY.nil;d=this;e=b.pos;b.pos=b.pos+(1)>>0;if(b.pos=f.$length)?($throwRuntimeError("index out of range"),undefined):f.$array[f.$offset+g])))){b.pos=b.pos+(1)>>0;c=new B.Node.ptr("","","","",16,CY.nil,CY.nil,CY.nil,CY.nil,CY.nil,CZ.nil,$subslice(b.tokens,e,b.pos),"","",false,false,false,0,false,0,0,0,CW.nil,CW.nil,CW.nil,0,DA.nil,false,DB.nil,0,0,0,0,CW.nil,0,false,"",0,CW.nil,"",CZ.nil,CW.nil,DD.nil,false,"","","","","","","","","","","",0,"");d.addBracket(c,e+2>>0,true,b);return c;}c=new B.Node.ptr("","","","",16,CY.nil,CY.nil,CY.nil,CY.nil,CY.nil,CZ.nil,$subslice(b.tokens,e,b.pos),"","",false,false,false,0,false,0,0,0,CW.nil,CW.nil,CW.nil,0,DA.nil,false,DB.nil,0,0,0,0,CW.nil,0,false,"",0,CW.nil,"",CZ.nil,CW.nil,DD.nil,false,"","","","","","","","","","","",0,"");return c;};AD.prototype.parseBang=function(b){return this.$val.parseBang(b);};BI=function(b,c){var{b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,$s,$r,$c}=$restore(this,{b,c});$s=$s||0;s:while(true){switch($s){case 0:if(b.Context.indented){$s=-1;return 0;}if(!((60===D.Peek(b.Context.currentLine,b.Context.nextNonspace)))){$s=-1;return 0;}if(b.Context.ParseOption.VditorWYSIWYG){if(A.Contains(b.Context.currentLine,(new CW($stringToBytes("vditor-comment"))))){$s=-1;return 0;}}if(b.Context.ParseOption.ProtyleWYSIWYG){if(A.Contains(b.Context.currentLine,(new CW($stringToBytes(""))))){$s=7;continue;}if(A.HasPrefix(d,(new CW($stringToBytes(""))))){$s=8;continue;}if(A.HasPrefix(d,(new CW($stringToBytes(""))))){$s=9;continue;}if(A.HasPrefix(d,(new CW($stringToBytes(""))))){$s=10;continue;}$s=11;continue;case 7:if(A.Contains(d,(new CW($stringToBytes("data-subtype=\"widget\""))))){$s=12;continue;}$s=13;continue;case 12:g=b.Context.addChild(535);$s=15;case 15:if($c){$c=false;g=g.$blk();}if(g&&g.$blk!==undefined){break s;}g;$s=14;continue;case 13:h=b.Context.addChild(500);$s=16;case 16:if($c){$c=false;h=h.$blk();}if(h&&h.$blk!==undefined){break s;}h;case 14:$s=-1;return 2;case 8:i=b.Context.addChild(510);$s=17;case 17:if($c){$c=false;i=i.$blk();}if(i&&i.$blk!==undefined){break s;}i;$s=-1;return 2;case 9:j=b.Context.addChild(505);$s=18;case 18:if($c){$c=false;j=j.$blk();}if(j&&j.$blk!==undefined){break s;}j;$s=-1;return 2;case 10:k=b.Context.addChild(550);$s=19;case 19:if($c){$c=false;k=k.$blk();}if(k&&k.$blk!==undefined){break s;}l=k;m=A.Index(d,(new CW($stringToBytes("data-av-type=\""))))+14>>0;n=m+A.Index($subslice(d,m),(new CW($stringToBytes("\""))))>>0;l.AttributeViewType=($bytesToString($subslice(d,m,n)));o=A.Index(d,(new CW($stringToBytes("data-av-id=\""))));if(0>0;p=o+A.Index($subslice(d,o),(new CW($stringToBytes("\""))))>>0;l.AttributeViewID=($bytesToString($subslice(d,o,p)));$s=22;continue;case 21:q=B.NewNodeID();$s=23;case 23:if($c){$c=false;q=q.$blk();}if(q&&q.$blk!==undefined){break s;}l.AttributeViewID=q;case 22:$s=-1;return 2;case 11:case 5:if(b.Context.ParseOption.ProtyleWYSIWYG){r=D.TrimLeft(b.Context.currentLine);s=r[1];if(!A.HasPrefix(s,(new CW($stringToBytes(">0))){break;}if((45===((j<0||j>=b.$length)?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+j]))&&(45===(k=j+1>>0,((k<0||k>=b.$length)?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+k])))&&(62===(l=j+2>>0,((l<0||l>=b.$length)?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+l])))){return true;}j=j+(1)>>0;}}else if(h===(3)){m=0;while(true){if(!(m<(g-2>>0))){break;}if((63===((m<0||m>=b.$length)?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+m]))&&(62===(n=m+1>>0,((n<0||n>=b.$length)?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+n])))){return true;}m=m+(1)>>0;}}else if(h===(4)){return A.Contains(b,BP);}else if(h===(5)){o=0;while(true){if(!(o<(g-2>>0))){break;}if((93===((o<0||o>=b.$length)?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+o]))&&(93===(p=o+1>>0,((p<0||p>=b.$length)?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+p])))){return true;}o=o+(1)>>0;}}return false;};AD.prototype.isHTMLBlockClose=function(b,c){return this.$val.isHTMLBlockClose(b,c);};AD.ptr.prototype.parseHTML=function(b){var b,c,d,e,f,g,h,i,j,k,l,m;c=0;d=this;e=D.TrimLeft(b);b=e[1];f=b.$length;if(3>f){return c;}if(!((60===(0>=b.$length?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+0])))){return c;}c=1;g=D.AcceptTokenss(b,BK);if(0<=g){if(D.IsWhitespace(((g<0||g>=b.$length)?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+g]))||(62===((g<0||g>=b.$length)?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+g]))){return c;}}h=D.AcceptTokenss(b,BM);if(0<=h){if(D.IsWhitespace(((h<0||h>=b.$length)?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+h]))||(62===((h<0||h>=b.$length)?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+h]))){c=6;return c;}if((47===((h<0||h>=b.$length)?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+h]))&&(62===(i=h+1>>0,((i<0||i>=b.$length)?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+i])))){c=6;return c;}}j=D.TrimWhitespace(b);k=d.isOpenTag(j);if(k&&!((d.Context.Tip.Type===1))){c=7;return c;}l=d.isCloseTag(j);if(l&&!((d.Context.Tip.Type===1))){c=7;return c;}if(0===A.Index(b,E.StrToBytes("