UNPKG

@dcodegroup-au/dsg-vue

Version:

Front-end Vue/Tailwind DSG for UntitledUI.

35 lines 299 kB
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const fe=require("vue"),Mi=require("./_commonjsHelpers-DwGv2jUC.cjs"),ki=require("./DsgLabel.vue_vue_type_style_index_0_lang-DAM6oT0f.cjs");var Tt={exports:{}};/*! * Vditor v3.11.2 - A markdown editor written in TypeScript. * * MIT License * * Copyright (c) 2018-present B3log 开源, b3log.org * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. * */var Ti=Tt.exports,Un;function _i(){return Un||(Un=1,(function(ve,Jt){(function(rt,Y){ve.exports=Y()})(Ti,function(){return(()=>{var pt={173:(Z=>{var E=function(){this.Diff_Timeout=1,this.Diff_EditCost=4,this.Match_Threshold=.5,this.Match_Distance=1e3,this.Patch_DeleteThreshold=.5,this.Patch_Margin=4,this.Match_MaxBits=32},M=-1,D=1,A=0;E.Diff=function(c,l){return[c,l]},E.prototype.diff_main=function(c,l,y,p){typeof p>"u"&&(this.Diff_Timeout<=0?p=Number.MAX_VALUE:p=new Date().getTime()+this.Diff_Timeout*1e3);var m=p;if(c==null||l==null)throw new Error("Null input. (diff_main)");if(c==l)return c?[new E.Diff(A,c)]:[];typeof y>"u"&&(y=!0);var d=y,v=this.diff_commonPrefix(c,l),w=c.substring(0,v);c=c.substring(v),l=l.substring(v),v=this.diff_commonSuffix(c,l);var b=c.substring(c.length-v);c=c.substring(0,c.length-v),l=l.substring(0,l.length-v);var g=this.diff_compute_(c,l,d,m);return w&&g.unshift(new E.Diff(A,w)),b&&g.push(new E.Diff(A,b)),this.diff_cleanupMerge(g),g},E.prototype.diff_compute_=function(c,l,y,p){var m;if(!c)return[new E.Diff(D,l)];if(!l)return[new E.Diff(M,c)];var d=c.length>l.length?c:l,v=c.length>l.length?l:c,w=d.indexOf(v);if(w!=-1)return m=[new E.Diff(D,d.substring(0,w)),new E.Diff(A,v),new E.Diff(D,d.substring(w+v.length))],c.length>l.length&&(m[0][0]=m[2][0]=M),m;if(v.length==1)return[new E.Diff(M,c),new E.Diff(D,l)];var b=this.diff_halfMatch_(c,l);if(b){var g=b[0],s=b[1],C=b[2],_=b[3],x=b[4],L=this.diff_main(g,C,y,p),P=this.diff_main(s,_,y,p);return L.concat([new E.Diff(A,x)],P)}return y&&c.length>100&&l.length>100?this.diff_lineMode_(c,l,p):this.diff_bisect_(c,l,p)},E.prototype.diff_lineMode_=function(c,l,y){var p=this.diff_linesToChars_(c,l);c=p.chars1,l=p.chars2;var m=p.lineArray,d=this.diff_main(c,l,!1,y);this.diff_charsToLines_(d,m),this.diff_cleanupSemantic(d),d.push(new E.Diff(A,""));for(var v=0,w=0,b=0,g="",s="";v<d.length;){switch(d[v][0]){case D:b++,s+=d[v][1];break;case M:w++,g+=d[v][1];break;case A:if(w>=1&&b>=1){d.splice(v-w-b,w+b),v=v-w-b;for(var C=this.diff_main(g,s,!1,y),_=C.length-1;_>=0;_--)d.splice(v,0,C[_]);v=v+C.length}b=0,w=0,g="",s="";break}v++}return d.pop(),d},E.prototype.diff_bisect_=function(c,l,y){for(var p=c.length,m=l.length,d=Math.ceil((p+m)/2),v=d,w=2*d,b=new Array(w),g=new Array(w),s=0;s<w;s++)b[s]=-1,g[s]=-1;b[v+1]=0,g[v+1]=0;for(var C=p-m,_=C%2!=0,x=0,L=0,P=0,F=0,z=0;z<d&&!(new Date().getTime()>y);z++){for(var Q=-z+x;Q<=z-L;Q+=2){var ne=v+Q,oe;Q==-z||Q!=z&&b[ne-1]<b[ne+1]?oe=b[ne+1]:oe=b[ne-1]+1;for(var ge=oe-Q;oe<p&&ge<m&&c.charAt(oe)==l.charAt(ge);)oe++,ge++;if(b[ne]=oe,oe>p)L+=2;else if(ge>m)x+=2;else if(_){var de=v+C-Q;if(de>=0&&de<w&&g[de]!=-1){var le=p-g[de];if(oe>=le)return this.diff_bisectSplit_(c,l,oe,ge,y)}}}for(var Ee=-z+P;Ee<=z-F;Ee+=2){var de=v+Ee,le;Ee==-z||Ee!=z&&g[de-1]<g[de+1]?le=g[de+1]:le=g[de-1]+1;for(var _e=le-Ee;le<p&&_e<m&&c.charAt(p-le-1)==l.charAt(m-_e-1);)le++,_e++;if(g[de]=le,le>p)F+=2;else if(_e>m)P+=2;else if(!_){var ne=v+C-Ee;if(ne>=0&&ne<w&&b[ne]!=-1){var oe=b[ne],ge=v+oe-ne;if(le=p-le,oe>=le)return this.diff_bisectSplit_(c,l,oe,ge,y)}}}}return[new E.Diff(M,c),new E.Diff(D,l)]},E.prototype.diff_bisectSplit_=function(c,l,y,p,m){var d=c.substring(0,y),v=l.substring(0,p),w=c.substring(y),b=l.substring(p),g=this.diff_main(d,v,!1,m),s=this.diff_main(w,b,!1,m);return g.concat(s)},E.prototype.diff_linesToChars_=function(c,l){var y=[],p={};y[0]="";function m(b){for(var g="",s=0,C=-1,_=y.length;C<b.length-1;){C=b.indexOf(` `,s),C==-1&&(C=b.length-1);var x=b.substring(s,C+1);(p.hasOwnProperty?p.hasOwnProperty(x):p[x]!==void 0)?g+=String.fromCharCode(p[x]):(_==d&&(x=b.substring(s),C=b.length),g+=String.fromCharCode(_),p[x]=_,y[_++]=x),s=C+1}return g}var d=4e4,v=m(c);d=65535;var w=m(l);return{chars1:v,chars2:w,lineArray:y}},E.prototype.diff_charsToLines_=function(c,l){for(var y=0;y<c.length;y++){for(var p=c[y][1],m=[],d=0;d<p.length;d++)m[d]=l[p.charCodeAt(d)];c[y][1]=m.join("")}},E.prototype.diff_commonPrefix=function(c,l){if(!c||!l||c.charAt(0)!=l.charAt(0))return 0;for(var y=0,p=Math.min(c.length,l.length),m=p,d=0;y<m;)c.substring(d,m)==l.substring(d,m)?(y=m,d=y):p=m,m=Math.floor((p-y)/2+y);return m},E.prototype.diff_commonSuffix=function(c,l){if(!c||!l||c.charAt(c.length-1)!=l.charAt(l.length-1))return 0;for(var y=0,p=Math.min(c.length,l.length),m=p,d=0;y<m;)c.substring(c.length-m,c.length-d)==l.substring(l.length-m,l.length-d)?(y=m,d=y):p=m,m=Math.floor((p-y)/2+y);return m},E.prototype.diff_commonOverlap_=function(c,l){var y=c.length,p=l.length;if(y==0||p==0)return 0;y>p?c=c.substring(y-p):y<p&&(l=l.substring(0,y));var m=Math.min(y,p);if(c==l)return m;for(var d=0,v=1;;){var w=c.substring(m-v),b=l.indexOf(w);if(b==-1)return d;v+=b,(b==0||c.substring(m-v)==l.substring(0,v))&&(d=v,v++)}},E.prototype.diff_halfMatch_=function(c,l){if(this.Diff_Timeout<=0)return null;var y=c.length>l.length?c:l,p=c.length>l.length?l:c;if(y.length<4||p.length*2<y.length)return null;var m=this;function d(L,P,F){for(var z=L.substring(F,F+Math.floor(L.length/4)),Q=-1,ne="",oe,ge,de,le;(Q=P.indexOf(z,Q+1))!=-1;){var Ee=m.diff_commonPrefix(L.substring(F),P.substring(Q)),_e=m.diff_commonSuffix(L.substring(0,F),P.substring(0,Q));ne.length<_e+Ee&&(ne=P.substring(Q-_e,Q)+P.substring(Q,Q+Ee),oe=L.substring(0,F-_e),ge=L.substring(F+Ee),de=P.substring(0,Q-_e),le=P.substring(Q+Ee))}return ne.length*2>=L.length?[oe,ge,de,le,ne]:null}var v=d(y,p,Math.ceil(y.length/4)),w=d(y,p,Math.ceil(y.length/2)),b;if(!v&&!w)return null;w?v?b=v[4].length>w[4].length?v:w:b=w:b=v;var g,s,C,_;c.length>l.length?(g=b[0],s=b[1],C=b[2],_=b[3]):(C=b[0],_=b[1],g=b[2],s=b[3]);var x=b[4];return[g,s,C,_,x]},E.prototype.diff_cleanupSemantic=function(c){for(var l=!1,y=[],p=0,m=null,d=0,v=0,w=0,b=0,g=0;d<c.length;)c[d][0]==A?(y[p++]=d,v=b,w=g,b=0,g=0,m=c[d][1]):(c[d][0]==D?b+=c[d][1].length:g+=c[d][1].length,m&&m.length<=Math.max(v,w)&&m.length<=Math.max(b,g)&&(c.splice(y[p-1],0,new E.Diff(M,m)),c[y[p-1]+1][0]=D,p--,p--,d=p>0?y[p-1]:-1,v=0,w=0,b=0,g=0,m=null,l=!0)),d++;for(l&&this.diff_cleanupMerge(c),this.diff_cleanupSemanticLossless(c),d=1;d<c.length;){if(c[d-1][0]==M&&c[d][0]==D){var s=c[d-1][1],C=c[d][1],_=this.diff_commonOverlap_(s,C),x=this.diff_commonOverlap_(C,s);_>=x?(_>=s.length/2||_>=C.length/2)&&(c.splice(d,0,new E.Diff(A,C.substring(0,_))),c[d-1][1]=s.substring(0,s.length-_),c[d+1][1]=C.substring(_),d++):(x>=s.length/2||x>=C.length/2)&&(c.splice(d,0,new E.Diff(A,s.substring(0,x))),c[d-1][0]=D,c[d-1][1]=C.substring(0,C.length-x),c[d+1][0]=M,c[d+1][1]=s.substring(x),d++),d++}d++}},E.prototype.diff_cleanupSemanticLossless=function(c){function l(x,L){if(!x||!L)return 6;var P=x.charAt(x.length-1),F=L.charAt(0),z=P.match(E.nonAlphaNumericRegex_),Q=F.match(E.nonAlphaNumericRegex_),ne=z&&P.match(E.whitespaceRegex_),oe=Q&&F.match(E.whitespaceRegex_),ge=ne&&P.match(E.linebreakRegex_),de=oe&&F.match(E.linebreakRegex_),le=ge&&x.match(E.blanklineEndRegex_),Ee=de&&L.match(E.blanklineStartRegex_);return le||Ee?5:ge||de?4:z&&!ne&&oe?3:ne||oe?2:z||Q?1:0}for(var y=1;y<c.length-1;){if(c[y-1][0]==A&&c[y+1][0]==A){var p=c[y-1][1],m=c[y][1],d=c[y+1][1],v=this.diff_commonSuffix(p,m);if(v){var w=m.substring(m.length-v);p=p.substring(0,p.length-v),m=w+m.substring(0,m.length-v),d=w+d}for(var b=p,g=m,s=d,C=l(p,m)+l(m,d);m.charAt(0)===d.charAt(0);){p+=m.charAt(0),m=m.substring(1)+d.charAt(0),d=d.substring(1);var _=l(p,m)+l(m,d);_>=C&&(C=_,b=p,g=m,s=d)}c[y-1][1]!=b&&(b?c[y-1][1]=b:(c.splice(y-1,1),y--),c[y][1]=g,s?c[y+1][1]=s:(c.splice(y+1,1),y--))}y++}},E.nonAlphaNumericRegex_=/[^a-zA-Z0-9]/,E.whitespaceRegex_=/\s/,E.linebreakRegex_=/[\r\n]/,E.blanklineEndRegex_=/\n\r?\n$/,E.blanklineStartRegex_=/^\r?\n\r?\n/,E.prototype.diff_cleanupEfficiency=function(c){for(var l=!1,y=[],p=0,m=null,d=0,v=!1,w=!1,b=!1,g=!1;d<c.length;)c[d][0]==A?(c[d][1].length<this.Diff_EditCost&&(b||g)?(y[p++]=d,v=b,w=g,m=c[d][1]):(p=0,m=null),b=g=!1):(c[d][0]==M?g=!0:b=!0,m&&(v&&w&&b&&g||m.length<this.Diff_EditCost/2&&v+w+b+g==3)&&(c.splice(y[p-1],0,new E.Diff(M,m)),c[y[p-1]+1][0]=D,p--,m=null,v&&w?(b=g=!0,p=0):(p--,d=p>0?y[p-1]:-1,b=g=!1),l=!0)),d++;l&&this.diff_cleanupMerge(c)},E.prototype.diff_cleanupMerge=function(c){c.push(new E.Diff(A,""));for(var l=0,y=0,p=0,m="",d="",v;l<c.length;)switch(c[l][0]){case D:p++,d+=c[l][1],l++;break;case M:y++,m+=c[l][1],l++;break;case A:y+p>1?(y!==0&&p!==0&&(v=this.diff_commonPrefix(d,m),v!==0&&(l-y-p>0&&c[l-y-p-1][0]==A?c[l-y-p-1][1]+=d.substring(0,v):(c.splice(0,0,new E.Diff(A,d.substring(0,v))),l++),d=d.substring(v),m=m.substring(v)),v=this.diff_commonSuffix(d,m),v!==0&&(c[l][1]=d.substring(d.length-v)+c[l][1],d=d.substring(0,d.length-v),m=m.substring(0,m.length-v))),l-=y+p,c.splice(l,y+p),m.length&&(c.splice(l,0,new E.Diff(M,m)),l++),d.length&&(c.splice(l,0,new E.Diff(D,d)),l++),l++):l!==0&&c[l-1][0]==A?(c[l-1][1]+=c[l][1],c.splice(l,1)):l++,p=0,y=0,m="",d="";break}c[c.length-1][1]===""&&c.pop();var w=!1;for(l=1;l<c.length-1;)c[l-1][0]==A&&c[l+1][0]==A&&(c[l][1].substring(c[l][1].length-c[l-1][1].length)==c[l-1][1]?(c[l][1]=c[l-1][1]+c[l][1].substring(0,c[l][1].length-c[l-1][1].length),c[l+1][1]=c[l-1][1]+c[l+1][1],c.splice(l-1,1),w=!0):c[l][1].substring(0,c[l+1][1].length)==c[l+1][1]&&(c[l-1][1]+=c[l+1][1],c[l][1]=c[l][1].substring(c[l+1][1].length)+c[l+1][1],c.splice(l+1,1),w=!0)),l++;w&&this.diff_cleanupMerge(c)},E.prototype.diff_xIndex=function(c,l){var y=0,p=0,m=0,d=0,v;for(v=0;v<c.length&&(c[v][0]!==D&&(y+=c[v][1].length),c[v][0]!==M&&(p+=c[v][1].length),!(y>l));v++)m=y,d=p;return c.length!=v&&c[v][0]===M?d:d+(l-m)},E.prototype.diff_prettyHtml=function(c){for(var l=[],y=/&/g,p=/</g,m=/>/g,d=/\n/g,v=0;v<c.length;v++){var w=c[v][0],b=c[v][1],g=b.replace(y,"&amp;").replace(p,"&lt;").replace(m,"&gt;").replace(d,"&para;<br>");switch(w){case D:l[v]='<ins style="background:#e6ffe6;">'+g+"</ins>";break;case M:l[v]='<del style="background:#ffe6e6;">'+g+"</del>";break;case A:l[v]="<span>"+g+"</span>";break}}return l.join("")},E.prototype.diff_text1=function(c){for(var l=[],y=0;y<c.length;y++)c[y][0]!==D&&(l[y]=c[y][1]);return l.join("")},E.prototype.diff_text2=function(c){for(var l=[],y=0;y<c.length;y++)c[y][0]!==M&&(l[y]=c[y][1]);return l.join("")},E.prototype.diff_levenshtein=function(c){for(var l=0,y=0,p=0,m=0;m<c.length;m++){var d=c[m][0],v=c[m][1];switch(d){case D:y+=v.length;break;case M:p+=v.length;break;case A:l+=Math.max(y,p),y=0,p=0;break}}return l+=Math.max(y,p),l},E.prototype.diff_toDelta=function(c){for(var l=[],y=0;y<c.length;y++)switch(c[y][0]){case D:l[y]="+"+encodeURI(c[y][1]);break;case M:l[y]="-"+c[y][1].length;break;case A:l[y]="="+c[y][1].length;break}return l.join(" ").replace(/%20/g," ")},E.prototype.diff_fromDelta=function(c,l){for(var y=[],p=0,m=0,d=l.split(/\t/g),v=0;v<d.length;v++){var w=d[v].substring(1);switch(d[v].charAt(0)){case"+":try{y[p++]=new E.Diff(D,decodeURI(w))}catch{throw new Error("Illegal escape in diff_fromDelta: "+w)}break;case"-":case"=":var b=parseInt(w,10);if(isNaN(b)||b<0)throw new Error("Invalid number in diff_fromDelta: "+w);var g=c.substring(m,m+=b);d[v].charAt(0)=="="?y[p++]=new E.Diff(A,g):y[p++]=new E.Diff(M,g);break;default:if(d[v])throw new Error("Invalid diff operation in diff_fromDelta: "+d[v])}}if(m!=c.length)throw new Error("Delta length ("+m+") does not equal source text length ("+c.length+").");return y},E.prototype.match_main=function(c,l,y){if(c==null||l==null||y==null)throw new Error("Null input. (match_main)");return y=Math.max(0,Math.min(y,c.length)),c==l?0:c.length?c.substring(y,y+l.length)==l?y:this.match_bitap_(c,l,y):-1},E.prototype.match_bitap_=function(c,l,y){if(l.length>this.Match_MaxBits)throw new Error("Pattern too long for this browser.");var p=this.match_alphabet_(l),m=this;function d(oe,ge){var de=oe/l.length,le=Math.abs(y-ge);return m.Match_Distance?de+le/m.Match_Distance:le?1:de}var v=this.Match_Threshold,w=c.indexOf(l,y);w!=-1&&(v=Math.min(d(0,w),v),w=c.lastIndexOf(l,y+l.length),w!=-1&&(v=Math.min(d(0,w),v)));var b=1<<l.length-1;w=-1;for(var g,s,C=l.length+c.length,_,x=0;x<l.length;x++){for(g=0,s=C;g<s;)d(x,y+s)<=v?g=s:C=s,s=Math.floor((C-g)/2+g);C=s;var L=Math.max(1,y-s+1),P=Math.min(y+s,c.length)+l.length,F=Array(P+2);F[P+1]=(1<<x)-1;for(var z=P;z>=L;z--){var Q=p[c.charAt(z-1)];if(x===0?F[z]=(F[z+1]<<1|1)&Q:F[z]=(F[z+1]<<1|1)&Q|((_[z+1]|_[z])<<1|1)|_[z+1],F[z]&b){var ne=d(x,z-1);if(ne<=v)if(v=ne,w=z-1,w>y)L=Math.max(1,2*y-w);else break}}if(d(x+1,y)>v)break;_=F}return w},E.prototype.match_alphabet_=function(c){for(var l={},y=0;y<c.length;y++)l[c.charAt(y)]=0;for(var y=0;y<c.length;y++)l[c.charAt(y)]|=1<<c.length-y-1;return l},E.prototype.patch_addContext_=function(c,l){if(l.length!=0){if(c.start2===null)throw Error("patch not initialized");for(var y=l.substring(c.start2,c.start2+c.length1),p=0;l.indexOf(y)!=l.lastIndexOf(y)&&y.length<this.Match_MaxBits-this.Patch_Margin-this.Patch_Margin;)p+=this.Patch_Margin,y=l.substring(c.start2-p,c.start2+c.length1+p);p+=this.Patch_Margin;var m=l.substring(c.start2-p,c.start2);m&&c.diffs.unshift(new E.Diff(A,m));var d=l.substring(c.start2+c.length1,c.start2+c.length1+p);d&&c.diffs.push(new E.Diff(A,d)),c.start1-=m.length,c.start2-=m.length,c.length1+=m.length+d.length,c.length2+=m.length+d.length}},E.prototype.patch_make=function(c,l,y){var p,m;if(typeof c=="string"&&typeof l=="string"&&typeof y>"u")p=c,m=this.diff_main(p,l,!0),m.length>2&&(this.diff_cleanupSemantic(m),this.diff_cleanupEfficiency(m));else if(c&&typeof c=="object"&&typeof l>"u"&&typeof y>"u")m=c,p=this.diff_text1(m);else if(typeof c=="string"&&l&&typeof l=="object"&&typeof y>"u")p=c,m=l;else if(typeof c=="string"&&typeof l=="string"&&y&&typeof y=="object")p=c,m=y;else throw new Error("Unknown call format to patch_make.");if(m.length===0)return[];for(var d=[],v=new E.patch_obj,w=0,b=0,g=0,s=p,C=p,_=0;_<m.length;_++){var x=m[_][0],L=m[_][1];switch(!w&&x!==A&&(v.start1=b,v.start2=g),x){case D:v.diffs[w++]=m[_],v.length2+=L.length,C=C.substring(0,g)+L+C.substring(g);break;case M:v.length1+=L.length,v.diffs[w++]=m[_],C=C.substring(0,g)+C.substring(g+L.length);break;case A:L.length<=2*this.Patch_Margin&&w&&m.length!=_+1?(v.diffs[w++]=m[_],v.length1+=L.length,v.length2+=L.length):L.length>=2*this.Patch_Margin&&w&&(this.patch_addContext_(v,s),d.push(v),v=new E.patch_obj,w=0,s=C,b=g);break}x!==D&&(b+=L.length),x!==M&&(g+=L.length)}return w&&(this.patch_addContext_(v,s),d.push(v)),d},E.prototype.patch_deepCopy=function(c){for(var l=[],y=0;y<c.length;y++){var p=c[y],m=new E.patch_obj;m.diffs=[];for(var d=0;d<p.diffs.length;d++)m.diffs[d]=new E.Diff(p.diffs[d][0],p.diffs[d][1]);m.start1=p.start1,m.start2=p.start2,m.length1=p.length1,m.length2=p.length2,l[y]=m}return l},E.prototype.patch_apply=function(c,l){if(c.length==0)return[l,[]];c=this.patch_deepCopy(c);var y=this.patch_addPadding(c);l=y+l+y,this.patch_splitMax(c);for(var p=0,m=[],d=0;d<c.length;d++){var v=c[d].start2+p,w=this.diff_text1(c[d].diffs),b,g=-1;if(w.length>this.Match_MaxBits?(b=this.match_main(l,w.substring(0,this.Match_MaxBits),v),b!=-1&&(g=this.match_main(l,w.substring(w.length-this.Match_MaxBits),v+w.length-this.Match_MaxBits),(g==-1||b>=g)&&(b=-1))):b=this.match_main(l,w,v),b==-1)m[d]=!1,p-=c[d].length2-c[d].length1;else{m[d]=!0,p=b-v;var s;if(g==-1?s=l.substring(b,b+w.length):s=l.substring(b,g+this.Match_MaxBits),w==s)l=l.substring(0,b)+this.diff_text2(c[d].diffs)+l.substring(b+w.length);else{var C=this.diff_main(w,s,!1);if(w.length>this.Match_MaxBits&&this.diff_levenshtein(C)/w.length>this.Patch_DeleteThreshold)m[d]=!1;else{this.diff_cleanupSemanticLossless(C);for(var _=0,x,L=0;L<c[d].diffs.length;L++){var P=c[d].diffs[L];P[0]!==A&&(x=this.diff_xIndex(C,_)),P[0]===D?l=l.substring(0,b+x)+P[1]+l.substring(b+x):P[0]===M&&(l=l.substring(0,b+x)+l.substring(b+this.diff_xIndex(C,_+P[1].length))),P[0]!==M&&(_+=P[1].length)}}}}}return l=l.substring(y.length,l.length-y.length),[l,m]},E.prototype.patch_addPadding=function(c){for(var l=this.Patch_Margin,y="",p=1;p<=l;p++)y+=String.fromCharCode(p);for(var p=0;p<c.length;p++)c[p].start1+=l,c[p].start2+=l;var m=c[0],d=m.diffs;if(d.length==0||d[0][0]!=A)d.unshift(new E.Diff(A,y)),m.start1-=l,m.start2-=l,m.length1+=l,m.length2+=l;else if(l>d[0][1].length){var v=l-d[0][1].length;d[0][1]=y.substring(d[0][1].length)+d[0][1],m.start1-=v,m.start2-=v,m.length1+=v,m.length2+=v}if(m=c[c.length-1],d=m.diffs,d.length==0||d[d.length-1][0]!=A)d.push(new E.Diff(A,y)),m.length1+=l,m.length2+=l;else if(l>d[d.length-1][1].length){var v=l-d[d.length-1][1].length;d[d.length-1][1]+=y.substring(0,v),m.length1+=v,m.length2+=v}return y},E.prototype.patch_splitMax=function(c){for(var l=this.Match_MaxBits,y=0;y<c.length;y++)if(!(c[y].length1<=l)){var p=c[y];c.splice(y--,1);for(var m=p.start1,d=p.start2,v="";p.diffs.length!==0;){var w=new E.patch_obj,b=!0;for(w.start1=m-v.length,w.start2=d-v.length,v!==""&&(w.length1=w.length2=v.length,w.diffs.push(new E.Diff(A,v)));p.diffs.length!==0&&w.length1<l-this.Patch_Margin;){var g=p.diffs[0][0],s=p.diffs[0][1];g===D?(w.length2+=s.length,d+=s.length,w.diffs.push(p.diffs.shift()),b=!1):g===M&&w.diffs.length==1&&w.diffs[0][0]==A&&s.length>2*l?(w.length1+=s.length,m+=s.length,b=!1,w.diffs.push(new E.Diff(g,s)),p.diffs.shift()):(s=s.substring(0,l-w.length1-this.Patch_Margin),w.length1+=s.length,m+=s.length,g===A?(w.length2+=s.length,d+=s.length):b=!1,w.diffs.push(new E.Diff(g,s)),s==p.diffs[0][1]?p.diffs.shift():p.diffs[0][1]=p.diffs[0][1].substring(s.length))}v=this.diff_text2(w.diffs),v=v.substring(v.length-this.Patch_Margin);var C=this.diff_text1(p.diffs).substring(0,this.Patch_Margin);C!==""&&(w.length1+=C.length,w.length2+=C.length,w.diffs.length!==0&&w.diffs[w.diffs.length-1][0]===A?w.diffs[w.diffs.length-1][1]+=C:w.diffs.push(new E.Diff(A,C))),b||c.splice(++y,0,w)}}},E.prototype.patch_toText=function(c){for(var l=[],y=0;y<c.length;y++)l[y]=c[y];return l.join("")},E.prototype.patch_fromText=function(c){var l=[];if(!c)return l;for(var y=c.split(` `),p=0,m=/^@@ -(\d+),?(\d*) \+(\d+),?(\d*) @@$/;p<y.length;){var d=y[p].match(m);if(!d)throw new Error("Invalid patch string: "+y[p]);var v=new E.patch_obj;for(l.push(v),v.start1=parseInt(d[1],10),d[2]===""?(v.start1--,v.length1=1):d[2]=="0"?v.length1=0:(v.start1--,v.length1=parseInt(d[2],10)),v.start2=parseInt(d[3],10),d[4]===""?(v.start2--,v.length2=1):d[4]=="0"?v.length2=0:(v.start2--,v.length2=parseInt(d[4],10)),p++;p<y.length;){var w=y[p].charAt(0);try{var b=decodeURI(y[p].substring(1))}catch{throw new Error("Illegal escape in patch_fromText: "+b)}if(w=="-")v.diffs.push(new E.Diff(M,b));else if(w=="+")v.diffs.push(new E.Diff(D,b));else if(w==" ")v.diffs.push(new E.Diff(A,b));else{if(w=="@")break;if(w!=="")throw new Error('Invalid patch mode "'+w+'" in: '+b)}p++}}return l},E.patch_obj=function(){this.diffs=[],this.start1=null,this.start2=null,this.length1=0,this.length2=0},E.patch_obj.prototype.toString=function(){var c,l;this.length1===0?c=this.start1+",0":this.length1==1?c=this.start1+1:c=this.start1+1+","+this.length1,this.length2===0?l=this.start2+",0":this.length2==1?l=this.start2+1:l=this.start2+1+","+this.length2;for(var y=["@@ -"+c+" +"+l+` @@ `],p,m=0;m<this.diffs.length;m++){switch(this.diffs[m][0]){case D:p="+";break;case M:p="-";break;case A:p=" ";break}y[m+1]=p+encodeURI(this.diffs[m][1])+` `}return y.join("").replace(/%20/g," ")},Z.exports=E,Z.exports.diff_match_patch=E,Z.exports.DIFF_DELETE=M,Z.exports.DIFF_INSERT=D,Z.exports.DIFF_EQUAL=A}),408:((Z,E,M)=>{M.d(E,{default:()=>qe});var D=M(135),A=M(840),c=M(775),l=M(428),y=M(325),p=M(483),m=M(999),d=function(I){I===void 0&&(I=document);var re=function(W){var j=document.createElement("img");j.src=W.getAttribute("data-src"),j.addEventListener("load",function(){!W.getAttribute("style")&&!W.getAttribute("class")&&!W.getAttribute("width")&&!W.getAttribute("height")&&j.naturalHeight>j.naturalWidth&&j.naturalWidth/j.naturalHeight<document.querySelector(".vditor-reset").clientWidth/(window.innerHeight-40)&&j.naturalHeight>window.innerHeight-40&&(W.style.height=window.innerHeight-40+"px"),W.src=j.src}),W.removeAttribute("data-src")};if(!("IntersectionObserver"in window))return I.querySelectorAll("img").forEach(function(W){W.getAttribute("data-src")&&re(W)}),!1;window.vditorImageIntersectionObserver?(window.vditorImageIntersectionObserver.disconnect(),I.querySelectorAll("img").forEach(function(W){window.vditorImageIntersectionObserver.observe(W)})):(window.vditorImageIntersectionObserver=new IntersectionObserver(function(W){W.forEach(function(j){(typeof j.isIntersecting>"u"?j.intersectionRatio!==0:j.isIntersecting)&&j.target.getAttribute("data-src")&&re(j.target)})}),I.querySelectorAll("img").forEach(function(W){window.vditorImageIntersectionObserver.observe(W)}))},v=M(472),w=M(280),b=M(637),g=M(825),s=M(11),C=M(194),_=M(436),x=M(229),L=M(145),P=M(538),F=M(413),z=M(106),Q=M(673),ne=function(I){document.querySelectorAll(".vditor-anchor").forEach(function(re){I===1&&re.classList.add("vditor-anchor--left"),re.onclick=function(){var W=re.getAttribute("href").substr(1),j=document.getElementById("vditorAnchor-"+W).offsetTop;document.querySelector("html").scrollTop=j}}),window.onhashchange=function(){var re=document.getElementById("vditorAnchor-"+decodeURIComponent(window.location.hash.substr(1)));re&&(document.querySelector("html").scrollTop=re.offsetTop)}},oe=M(214),ge=M(810),de=function(I,re){if(re===void 0&&(re="zh_CN"),!(typeof speechSynthesis>"u"||typeof SpeechSynthesisUtterance>"u")){var W=function(){var ke=speechSynthesis.getVoices(),X,pe;return ke.forEach(function(He){He.lang===re.replace("_","-")&&(X=He),He.default&&(pe=He)}),X||(X=pe),X},j='<svg><use xlink:href="#vditor-icon-play"></use></svg>',he='<svg><use xlink:href="#vditor-icon-pause"></use></svg>';document.getElementById("vditorIconScript")||(j='<svg viewBox="0 0 32 32"><path d="M3.436 0l25.128 16-25.128 16v-32z"></path></svg>',he='<svg viewBox="0 0 32 32"><path d="M20.617 0h9.128v32h-9.128v-32zM2.255 32v-32h9.128v32h-9.128z"></path></svg>');var K=document.querySelector(".vditor-speech");K||(K=document.createElement("button"),K.className="vditor-speech",I.insertAdjacentElement("beforeend",K),speechSynthesis.onvoiceschanged!==void 0&&(speechSynthesis.onvoiceschanged=W));var ye=W(),ie=new SpeechSynthesisUtterance;ie.voice=ye,ie.onend=ie.onerror=function(){K.style.display="none",speechSynthesis.cancel(),K.classList.remove("vditor-speech--current"),K.innerHTML=j},I.addEventListener(window.ontouchstart!==void 0?"touchend":"click",function(ke){var X=ke.target;if(X.classList.contains("vditor-speech")||X.parentElement.classList.contains("vditor-speech")){K.classList.contains("vditor-speech--current")?speechSynthesis.speaking&&(speechSynthesis.paused?(speechSynthesis.resume(),K.innerHTML=he):(speechSynthesis.pause(),K.innerHTML=j)):(ie.text=K.getAttribute("data-text"),speechSynthesis.speak(ie),K.classList.add("vditor-speech--current"),K.innerHTML=he),(0,ge.Hc)(window.vditorSpeechRange),I.focus();return}if(K.style.display="none",speechSynthesis.cancel(),K.classList.remove("vditor-speech--current"),K.innerHTML=j,getSelection().rangeCount!==0){var pe=getSelection().getRangeAt(0),He=pe.toString().trim();if(He){window.vditorSpeechRange=pe.cloneRange();var Re=pe.getBoundingClientRect();K.innerHTML=j,K.style.display="block",K.style.top=Re.top+Re.height+document.querySelector("html").scrollTop-20+"px",window.ontouchstart!==void 0?K.style.left=ke.changedTouches[ke.changedTouches.length-1].pageX+2+"px":K.style.left=ke.clientX+2+"px",K.setAttribute("data-text",He)}}})}},le=function(I,re,W,j){function he(K){return K instanceof W?K:new W(function(ye){ye(K)})}return new(W||(W=Promise))(function(K,ye){function ie(pe){try{X(j.next(pe))}catch(He){ye(He)}}function ke(pe){try{X(j.throw(pe))}catch(He){ye(He)}}function X(pe){pe.done?K(pe.value):he(pe.value).then(ie,ke)}X((j=j.apply(I,re||[])).next())})},Ee=function(I,re){var W={label:0,sent:function(){if(K[0]&1)throw K[1];return K[1]},trys:[],ops:[]},j,he,K,ye;return ye={next:ie(0),throw:ie(1),return:ie(2)},typeof Symbol=="function"&&(ye[Symbol.iterator]=function(){return this}),ye;function ie(X){return function(pe){return ke([X,pe])}}function ke(X){if(j)throw new TypeError("Generator is already executing.");for(;ye&&(ye=0,X[0]&&(W=0)),W;)try{if(j=1,he&&(K=X[0]&2?he.return:X[0]?he.throw||((K=he.return)&&K.call(he),0):he.next)&&!(K=K.call(he,X[1])).done)return K;switch(he=0,K&&(X=[X[0]&2,K.value]),X[0]){case 0:case 1:K=X;break;case 4:return W.label++,{value:X[1],done:!1};case 5:W.label++,he=X[1],X=[0];continue;case 7:X=W.ops.pop(),W.trys.pop();continue;default:if(K=W.trys,!(K=K.length>0&&K[K.length-1])&&(X[0]===6||X[0]===2)){W=0;continue}if(X[0]===3&&(!K||X[1]>K[0]&&X[1]<K[3])){W.label=X[1];break}if(X[0]===6&&W.label<K[1]){W.label=K[1],K=X;break}if(K&&W.label<K[2]){W.label=K[2],W.ops.push(X);break}K[2]&&W.ops.pop(),W.trys.pop();continue}X=re.call(I,W)}catch(pe){X=[6,pe],he=0}finally{j=K=0}if(X[0]&5)throw X[1];return{value:X[0]?X[1]:void 0,done:!0}}},_e=function(I){var re,W={anchor:0,cdn:L.g.CDN,customEmoji:{},emojiPath:"".concat(L.g.CDN,"/dist/images/emoji"),hljs:L.g.HLJS_OPTIONS,icon:"ant",lang:"zh_CN",markdown:L.g.MARKDOWN_OPTIONS,math:L.g.MATH_OPTIONS,mode:"light",speech:{enable:!1},render:{media:{enable:!0}},theme:L.g.THEME_OPTIONS};return I.cdn&&(!((re=I.theme)===null||re===void 0)&&re.path||(W.theme.path="".concat(I.cdn,"/dist/css/content-theme")),I.emojiPath||(W.emojiPath="".concat(I.cdn,"/dist/images/emoji"))),(0,Q.T)(W,I)},Se=function(I,re){var W=_e(re);return(0,F.G)("".concat(W.cdn,"/dist/js/lute/lute.min.js"),"vditorLuteScript").then(function(){var j=(0,oe.X)({autoSpace:W.markdown.autoSpace,gfmAutoLink:W.markdown.gfmAutoLink,codeBlockPreview:W.markdown.codeBlockPreview,emojiSite:W.emojiPath,emojis:W.customEmoji,fixTermTypo:W.markdown.fixTermTypo,footnotes:W.markdown.footnotes,headingAnchor:W.anchor!==0,inlineMathDigit:W.math.inlineDigit,lazyLoadImage:W.lazyLoadImage,linkBase:W.markdown.linkBase,linkPrefix:W.markdown.linkPrefix,listStyle:W.markdown.listStyle,mark:W.markdown.mark,mathBlockPreview:W.markdown.mathBlockPreview,paragraphBeginningSpace:W.markdown.paragraphBeginningSpace,sanitize:W.markdown.sanitize,toc:W.markdown.toc});return re?.renderers&&j.SetJSRenderers({renderers:{Md2HTML:re.renderers}}),j.SetHeadingID(!0),j.Md2HTML(I)})},k=function(I,re,W){return le(void 0,void 0,void 0,function(){var j,he,K,ye;return Ee(this,function(ie){switch(ie.label){case 0:return j=_e(W),[4,Se(re,j)];case 1:if(he=ie.sent(),j.transform&&(he=j.transform(he)),I.innerHTML=he,I.classList.add("vditor-reset"),j.i18n)return[3,5];if(["de_DE","en_US","es_ES","fr_FR","ja_JP","ko_KR","pt_BR","ru_RU","sv_SE","vi_VN","zh_CN","zh_TW"].includes(j.lang))return[3,2];throw new Error("options.lang error, see https://ld246.com/article/1549638745630#options");case 2:return K="vditorI18nScript",ye=K+j.lang,document.querySelectorAll('head script[id^="'.concat(K,'"]')).forEach(function(ke){ke.id!==ye&&document.head.removeChild(ke)}),[4,(0,F.G)("".concat(j.cdn,"/dist/js/i18n/").concat(j.lang,".js"),ye)];case 3:ie.sent(),ie.label=4;case 4:return[3,6];case 5:window.VditorI18n=j.i18n,ie.label=6;case 6:return j.icon?[4,(0,F.G)("".concat(j.cdn,"/dist/js/icons/").concat(j.icon,".js"),"vditorIconScript")]:[3,8];case 7:ie.sent(),ie.label=8;case 8:return(0,P.Z)(j.theme.current,j.theme.path),j.anchor===1&&I.classList.add("vditor-reset--anchor"),(0,l.O)(I,j.hljs),(0,m.s)(j.hljs,I,j.cdn),(0,v.H)(I,{cdn:j.cdn,math:j.math}),(0,b.i)(I,j.cdn,j.mode),(0,g.J)(I,j.cdn,j.mode),(0,s.K)(I,j.cdn),(0,y.P)(I,j.cdn),(0,p.v)(I,j.cdn),(0,c.p)(I,j.cdn,j.mode),(0,C.P)(I,j.cdn,j.mode),(0,x.B)(I,j.cdn),(0,D.Q)(I,j.cdn),j.render.media.enable&&(0,w.Y)(I),j.speech.enable&&de(I),j.anchor!==0&&ne(j.anchor),j.after&&j.after(),j.lazyLoadImage&&d(I),I.addEventListener("click",function(ke){var X=(0,z.lG)(ke.target,"SPAN");if(X&&(0,z.fb)(X,"vditor-toc")){var pe=I.querySelector("#"+X.getAttribute("data-target-id"));pe&&window.scrollTo(window.scrollX,pe.offsetTop);return}}),[2]}})})},Be=M(190),ht=M(580),mt=(function(){function I(){}return I.adapterRender=A,I.previewImage=Be.E,I.codeRender=l.O,I.graphvizRender=p.v,I.highlightRender=m.s,I.mathRender=v.H,I.mermaidRender=b.i,I.SMILESRender=g.J,I.markmapRender=s.K,I.flowchartRender=y.P,I.chartRender=c.p,I.abcRender=D.Q,I.mindmapRender=C.P,I.plantumlRender=x.B,I.outlineRender=_.k,I.mediaRender=w.Y,I.speechRender=de,I.lazyLoadImageRender=d,I.md2html=Se,I.preview=k,I.setCodeTheme=ht.Y,I.setContentTheme=P.Z,I})();const qe=mt}),145:((Z,E,M)=>{M.d(E,{H:()=>D,g:()=>A});var D="3.11.2",A=(function(){function c(){}return c.ZWSP="​",c.DROP_EDITOR="application/editor",c.MOBILE_WIDTH=520,c.CLASS_MENU_DISABLED="vditor-menu--disabled",c.EDIT_TOOLBARS=["emoji","headings","bold","italic","strike","link","list","ordered-list","outdent","indent","check","line","quote","code","inline-code","insert-after","insert-before","upload","record","table"],c.CODE_THEME=["a11y-dark","agate","an-old-hope","androidstudio","arta","atom-one-dark","atom-one-dark-reasonable","base16/3024","base16/apathy","base16/apprentice","base16/ashes","base16/atelier-cave","base16/atelier-dune","base16/atelier-estuary","base16/atelier-forest","base16/atelier-heath","base16/atelier-lakeside","base16/atelier-plateau","base16/atelier-savanna","base16/atelier-seaside","base16/atelier-sulphurpool","base16/atlas","base16/bespin","base16/black-metal","base16/black-metal-bathory","base16/black-metal-burzum","base16/black-metal-dark-funeral","base16/black-metal-gorgoroth","base16/black-metal-immortal","base16/black-metal-khold","base16/black-metal-marduk","base16/black-metal-mayhem","base16/black-metal-nile","base16/black-metal-venom","base16/brewer","base16/bright","base16/brogrammer","base16/brush-trees-dark","base16/chalk","base16/circus","base16/classic-dark","base16/codeschool","base16/colors","base16/danqing","base16/darcula","base16/dark-violet","base16/darkmoss","base16/darktooth","base16/decaf","base16/default-dark","base16/dracula","base16/edge-dark","base16/eighties","base16/embers","base16/equilibrium-dark","base16/equilibrium-gray-dark","base16/espresso","base16/eva","base16/eva-dim","base16/flat","base16/framer","base16/gigavolt","base16/google-dark","base16/grayscale-dark","base16/green-screen","base16/gruvbox-dark-hard","base16/gruvbox-dark-medium","base16/gruvbox-dark-pale","base16/gruvbox-dark-soft","base16/hardcore","base16/harmonic16-dark","base16/heetch-dark","base16/helios","base16/hopscotch","base16/horizon-dark","base16/humanoid-dark","base16/ia-dark","base16/icy-dark","base16/ir-black","base16/isotope","base16/kimber","base16/london-tube","base16/macintosh","base16/marrakesh","base16/materia","base16/material","base16/material-darker","base16/material-palenight","base16/material-vivid","base16/mellow-purple","base16/mocha","base16/monokai","base16/nebula","base16/nord","base16/nova","base16/ocean","base16/oceanicnext","base16/onedark","base16/outrun-dark","base16/papercolor-dark","base16/paraiso","base16/pasque","base16/phd","base16/pico","base16/pop","base16/porple","base16/qualia","base16/railscasts","base16/rebecca","base16/ros-pine","base16/ros-pine-moon","base16/sandcastle","base16/seti-ui","base16/silk-dark","base16/snazzy","base16/solar-flare","base16/solarized-dark","base16/spacemacs","base16/summercamp","base16/summerfruit-dark","base16/synth-midnight-terminal-dark","base16/tango","base16/tender","base16/tomorrow-night","base16/twilight","base16/unikitty-dark","base16/vulcan","base16/windows-10","base16/windows-95","base16/windows-high-contrast","base16/windows-nt","base16/woodland","base16/xcode-dusk","base16/zenburn","codepen-embed","dark","devibeans","far","felipec","github-dark","github-dark-dimmed","gml","gradient-dark","hybrid","ir-black","isbl-editor-dark","kimbie-dark","lioshi","monokai","monokai-sublime","night-owl","nnfx-dark","nord","obsidian","panda-syntax-dark","paraiso-dark","pojoaque","qtcreator-dark","rainbow","shades-of-purple","srcery","stackoverflow-dark","sunburst","tomorrow-night-blue","tomorrow-night-bright","tokyo-night-dark","vs2015","xt256","ant-design","a11y-light","arduino-light","ascetic","atom-one-light","base16/atelier-cave-light","base16/atelier-dune-light","base16/atelier-estuary-light","base16/atelier-forest-light","base16/atelier-heath-light","base16/atelier-lakeside-light","base16/atelier-plateau-light","base16/atelier-savanna-light","base16/atelier-seaside-light","base16/atelier-sulphurpool-light","base16/brush-trees","base16/classic-light","base16/cupcake","base16/cupertino","base16/default-light","base16/dirtysea","base16/edge-light","base16/equilibrium-gray-light","base16/equilibrium-light","base16/fruit-soda","base16/github","base16/google-light","base16/grayscale-light","base16/gruvbox-light-hard","base16/gruvbox-light-medium","base16/gruvbox-light-soft","base16/harmonic16-light","base16/heetch-light","base16/humanoid-light","base16/horizon-light","base16/ia-light","base16/material-lighter","base16/mexico-light","base16/one-light","base16/papercolor-light","base16/ros-pine-dawn","base16/sagelight","base16/shapeshifter","base16/silk-light","base16/solar-flare-light","base16/solarized-light","base16/summerfruit-light","base16/synth-midnight-terminal-light","base16/tomorrow","base16/unikitty-light","base16/windows-10-light","base16/windows-95-light","base16/windows-high-contrast-light","brown-paper","base16/windows-nt-light","color-brewer","docco","foundation","github","googlecode","gradient-light","grayscale","idea","intellij-light","isbl-editor-light","kimbie-light","lightfair","magula","mono-blue","nnfx-light","panda-syntax-light","paraiso-light","purebasic","qtcreator-light","routeros","school-book","stackoverflow-light","tokyo-night-light","vs","xcode","default"],c.ALIAS_CODE_LANGUAGES=["abc","plantuml","mermaid","flowchart","echarts","mindmap","graphviz","math","markmap","smiles","js","ts","html","toml","c#","bat"],c.CDN="https://unpkg.com/vditor@".concat("3.11.2"),c.MARKDOWN_OPTIONS={autoSpace:!1,gfmAutoLink:!0,codeBlockPreview:!0,fixTermTypo:!1,footnotes:!0,linkBase:"",linkPrefix:"",listStyle:!1,mark:!1,mathBlockPreview:!0,paragraphBeginningSpace:!1,sanitize:!0,toc:!1},c.HLJS_OPTIONS={enable:!0,lineNumber:!1,defaultLang:"",style:"github"},c.MATH_OPTIONS={engine:"KaTeX",inlineDigit:!1,macros:{}},c.THEME_OPTIONS={current:"light",list:{"ant-design":"Ant Design",dark:"Dark",light:"Light",wechat:"WeChat"},path:"".concat(c.CDN,"/dist/css/content-theme")},c})()}),825:((Z,E,M)=>{M.d(E,{J:()=>y});var D=M(145),A=M(413),c=M(840),l=M(494),y=function(p,m,d){p===void 0&&(p=document),m===void 0&&(m=D.g.CDN);var v=c.SMILESRenderAdapter.getElements(p);v.length>0&&(0,A.G)("".concat(m,"/dist/js/smiles-drawer/smiles-drawer.min.js?v=2.1.7"),"vditorAbcjsScript").then(function(){var w=new SmiDrawer({},{});v.forEach(function(b){var g=c.SMILESRenderAdapter.getCode(b).trim();if(!(b.getAttribute("data-processed")==="true"||g.trim()==="")){var s="smiles"+(0,l.Wb)();b.innerHTML='<svg id="'.concat(s,'"></svg>'),w.draw(g,"#"+s,d==="dark"?"dark":void 0),b.setAttribute("data-processed","true")}})})}}),135:((Z,E,M)=>{M.d(E,{Q:()=>l});var D=M(145),A=M(413),c=M(840),l=function(y,p){y===void 0&&(y=document),p===void 0&&(p=D.g.CDN);var m=c.abcRenderAdapter.getElements(y);m.length>0&&(0,A.G)("".concat(p,"/dist/js/abcjs/abcjs_basic.min.js"),"vditorAbcjsScript").then(function(){m.forEach(function(d){d.parentElement.classList.contains("vditor-wysiwyg__pre")||d.parentElement.classList.contains("vditor-ir__marker--pre")||d.getAttribute("data-processed")!=="true"&&(ABCJS.renderAbc(d,c.abcRenderAdapter.getCode(d).trim()),d.style.overflowX="auto",d.setAttribute("data-processed","true"))})})}}),840:((Z,E,M)=>{M.r(E),M.d(E,{mathRenderAdapter:()=>D,SMILESRenderAdapter:()=>A,mermaidRenderAdapter:()=>c,markmapRenderAdapter:()=>l,mindmapRenderAdapter:()=>y,chartRenderAdapter:()=>p,abcRenderAdapter:()=>m,graphvizRenderAdapter:()=>d,flowchartRenderAdapter:()=>v,plantumlRenderAdapter:()=>w});var D={getCode:function(b){return b.textContent},getElements:function(b){return b.querySelectorAll(".language-math")}},A={getCode:function(b){return b.textContent},getElements:function(b){return b.querySelectorAll(".language-smiles")}},c={getCode:function(b){return b.textContent},getElements:function(b){return b.querySelectorAll(".language-mermaid")}},l={getCode:function(b){return b.textContent},getElements:function(b){return b.querySelectorAll(".language-markmap")}},y={getCode:function(b){return b.getAttribute("data-code")},getElements:function(b){return b.querySelectorAll(".language-mindmap")}},p={getCode:function(b){return b.innerText},getElements:function(b){return b.querySelectorAll(".language-echarts")}},m={getCode:function(b){return b.textContent},getElements:function(b){return b.querySelectorAll(".language-abc")}},d={getCode:function(b){return b.textContent},getElements:function(b){return b.querySelectorAll(".language-graphviz")}},v={getCode:function(b){return b.textContent},getElements:function(b){return b.querySelectorAll(".language-flowchart")}},w={getCode:function(b){return b.textContent},getElements:function(b){return b.querySelectorAll(".language-plantuml")}}}),775:((Z,E,M)=>{M.d(E,{p:()=>m});var D=M(145),A=M(413),c=M(840),l=M(494),y=function(d,v,w,b){function g(s){return s instanceof w?s:new w(function(C){C(s)})}return new(w||(w=Promise))(function(s,C){function _(P){try{L(b.next(P))}catch(F){C(F)}}function x(P){try{L(b.throw(P))}catch(F){C(F)}}function L(P){P.done?s(P.value):g(P.value).then(_,x)}L((b=b.apply(d,v||[])).next())})},p=function(d,v){var w={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},b,g,s,C;return C={next:_(0),throw:_(1),return:_(2)},typeof Symbol=="function"&&(C[Symbol.iterator]=function(){return this}),C;function _(L){return function(P){return x([L,P])}}function x(L){if(b)throw new TypeError("Generator is already executing.");for(;C&&(C=0,L[0]&&(w=0)),w;)try{if(b=1,g&&(s=L[0]&2?g.return:L[0]?g.throw||((s=g.return)&&s.call(g),0):g.next)&&!(s=s.call(g,L[1])).done)return s;switch(g=0,s&&(L=[L[0]&2,s.value]),L[0]){case 0:case 1:s=L;break;case 4:return w.label++,{value:L[1],done:!1};case 5:w.label++,g=L[1],L=[0];continue;case 7:L=w.ops.pop(),w.trys.pop();continue;default:if(s=w.trys,!(s=s.length>0&&s[s.length-1])&&(L[0]===6||L[0]===2)){w=0;continue}if(L[0]===3&&(!s||L[1]>s[0]&&L[1]<s[3])){w.label=L[1];break}if(L[0]===6&&w.label<s[1]){w.label=s[1],s=L;break}if(s&&w.label<s[2]){w.label=s[2],w.ops.push(L);break}s[2]&&w.ops.pop(),w.trys.pop();continue}L=v.call(d,w)}catch(P){L=[6,P],g=0}finally{b=s=0}if(L[0]&5)throw L[1];return{value:L[0]?L[1]:void 0,done:!0}}},m=function(d,v,w){d===void 0&&(d=document),v===void 0&&(v=D.g.CDN);var b=c.chartRenderAdapter.getElements(d);b.length>0&&(0,A.G)("".concat(v,"/dist/js/echarts/echarts.min.js?v=5.5.1"),"vditorEchartsScript").then(function(){b.forEach(function(g){return y(void 0,void 0,void 0,function(){var s,C,_;return p(this,function(x){switch(x.label){case 0:if(g.parentElement.classList.contains("vditor-wysiwyg__pre")||g.parentElement.classList.contains("vditor-ir__marker--pre"))return[2];if(s=c.chartRenderAdapter.getCode(g).trim(),!s)return[2];x.label=1;case 1:return x.trys.push([1,3,,4]),g.getAttribute("data-processed")==="true"?[2]:[4,(0,l.Qf)(s)];case 2:return C=x.sent(),echarts.init(g,w==="dark"?"dark":void 0).setOption(C),g.setAttribute("data-processed","true"),[3,4];case 3:return _=x.sent(),g.className="vditor-reset--error",g.innerHTML="echarts render error: <br>".concat(_),[3,4];case 4:return[2]}})})})})}}),428:((Z,E,M)=>{M.d(E,{O:()=>c});var D=M(105),A=M(145),c=function(l,y){Array.from(l.querySelectorAll("pre > code")).filter(function(p,m){return!(p.parentElement.classList.contains("vditor-wysiwyg__pre")||p.parentElement.classList.contains("vditor-ir__marker--pre")||p.classList.contains("language-mermaid")||p.classList.contains("language-flowchart")||p.classList.contains("language-echarts")||p.classList.contains("language-mindmap")||p.classList.contains("language-plantuml")||p.classList.contains("language-markmap")||p.classList.contains("language-abc")||p.classList.contains("language-graphviz")||p.classList.contains("language-math")||p.classList.contains("language-smiles")||p.style.maxHeight.indexOf("px")>-1||l.classList.contains("vditor-preview")&&m>5)}).forEach(function(p){var m,d,v,w=p.innerText;if(p.classList.contains("highlight-chroma")){var b=p.cloneNode(!0);b.querySelectorAll(".highlight-ln").forEach(function(_){_.remove()}),w=b.innerText}else w.endsWith(` `)&&(w=w.substr(0,w.length-1));var g='<svg><use xlink:href="#vditor-icon-copy"></use></svg>';document.getElementById("vditorIconScript")||(g='<svg viewBox="0 0 32 32"><path d="M22.545-0h-17.455c-1.6 0-2.909 1.309-2.909 2.909v20.364h2.909v-20.364h17.455v-2.909zM26.909 5.818h-16c-1.6 0-2.909 1.309-2.909 2.909v20.364c0 1.6 1.309 2.909 2.909 2.909h16c1.6 0 2.909-1.309 2.909-2.909v-20.364c0-1.6-1.309-2.909-2.909-2.909zM26.909 29.091h-16v-20.364h16v20.364z"></path></svg>');var s=document.createElement("div");s.className="vditor-copy",s.innerHTML='<span aria-label="'.concat(((m=window.VditorI18n)===null||m===void 0?void 0:m.copy)||"复制",`" onmouseover="this.setAttribute('aria-label', '`).concat(((d=window.VditorI18n)===null||d===void 0?void 0:d.copy)||"复制",`')" class="vditor-tooltipped vditor-tooltipped__w" onclick="event.stopPropagation();this.previousElementSibling.select();document.execCommand('copy');this.setAttribute('aria-label', '`).concat(((v=window.VditorI18n)===null||v===void 0?void 0:v.copied)||"已复制",`');this.previousElementSibling.blur()">`).concat(g,"</span>");var C=document.createElement("textarea");C.value=(0,D.X)(w),s.insertAdjacentElement("afterbegin",C),y&&y.renderMenu&&y.renderMenu(p,s),p.before(s),p.style.maxHeight=window.outerHeight-40+"px",p.insertAdjacentHTML("afterend",'<span style="position: absolute">'.concat(A.g.ZWSP,"</span>"))})}}),325:((Z,E,M)=>{M.d(E,{P:()=>l});var D=M(145),A=M(413),c=M(840),l=function(y,p){p===void 0&&(p=D.g.CDN);var m=c.flowchartRenderAdapter.getElements(y);m.length!==0&&(0,A.G)("".concat(p,"/dist/js/flowchart.js/flowchart.min.js"),"vditorFlowchartScript").then(function(){m.forEach(function(d){if(d.getAttribute("data-processed")!=="true"){var v=flowchart.parse(c.flowchartRenderAdapter.getCode(d));d.innerHTML="",v.drawSVG(d),d.setAttribute("data-processed","true")}})})}}),483:((Z,E,M)=>{M.d(E,{v:()=>l});var D=M(145),A=M(413),c=M(840),l=function(y,p){p===void 0&&(p=D.g.CDN);var m=c.graphvizRenderAdapter.getElements(y);m.length!==0&&(0,A.G)("".concat(p,"/dist/js/graphviz/viz.js"),"vditorGraphVizScript").then(function(){m.forEach(function(d){var v=c.graphvizRenderAdapter.getCode(d);if(!(d.parentElement.classList.contains("vditor-wysiwyg__pre")||d.parentElement.classList.contains("vditor-ir__marker--pre"))&&!(d.getAttribute("data-processed")==="true"||v.trim()==="")){try{var w=new Blob(["importScripts('".concat(document.getElementById("vditorGraphVizScript").src.replace("viz.js","full.render.js"),"');")],{type:"application/javascript"}),b=window.URL||window.webkitURL,g=b.createObjectURL(w),s=new Worker(g);new Viz({worker:s}).renderSVGElement(v).then(function(C){d.innerHTML=C.outerHTML}).catch(function(C){d.innerHTML="graphviz render error: <br>".concat(C),d.className="vditor-reset--error"})}catch(C){console.error("graphviz error",C)}d.setAttribute("data-processed","true")}})})}}),999:((Z,E,M)=>{M.d(E,{s:()=>l});var D=M(145),A=M(413),c=M(290),l=function(y,p,m){p===void 0&&(p=document),m===void 0&&(m=D.g.CDN);var d=y.style;D.g.CODE_THEME.includes(d)||(d="github");var v=document.getElementById("vditorHljsStyle"),w="".concat(m,"/dist/js/highlight.js/styles/").concat(d,".min.css");if(v&&v.getAttribute("href")!==w&&v.remove(),(0,c.c)("".concat(m,"/dist/js/highlight.js/styles/").concat(d,".min.css"),"vditorHljsStyle"),y.enable!==!1){var b=p.querySelectorAll("pre > code");b.length!==0&&(0,A.G)("".concat(m,"/dist/js/highlight.js/highlight.min.js?v=11.7.0"),"vditorHljsScript").then(function(){(0,A.G)("".concat(m,"/dist/js/highlight.js/third-languages.js?v=1.0.1"),"vditorHljsThirdScript").then(function(){p.querySelectorAll("pre > code").forEach(function(g){if(!(g.parentElement.classList.contains("vditor-ir__marker--pre")||g.parentElement.classList.contains("vditor-wysiwyg__pre"))&&!(g.classList.contains("language-mermaid")||g.classList.contains("language-flowchart")||g.classList.contains("language-echarts")||g.classList.contains("language-mindmap")||g.classList.contains("language-plantuml")||g.classList.contains("language-smiles")||g.classList.contains("language-abc")||g.classList.contains("language-graphviz")||g.classList.contains("language-math"))){y.defaultLang!==""&&g.className.indexOf("language-")===-1&&g.classList.add("language-"+y.defaultLang);var s=g.className.replace("language-","");if(window.hljs.getLanguage(s)||(s="plaintext"),g.innerHTML=window.hljs.highlight(g.textContent,{language:s,ignoreIllegals:!0}).value,g.classList.add("hljs"),!!y.lineNumber){g.classList.add("vditor-linenumber");var C=g.querySelector(".vditor-linenumber__temp");C||(C=document.createElement("div"),C.className="vditor-linenumber__temp",g.insertAdjacentElement("beforeend",C));var _=getComputedStyle(g).whiteSpace,x=!1;(_==="pre-wrap"||_==="pre-line")&&(x=!0);var L="",P=g.textContent.split(/\r\n|\r|\n/g);P.pop(),P.map(function(F){var z="";x&&(C.textContent=F||` `,z=' style="height:'.concat(C.getBoundingClientRect().height,'px"')),L+="<span".concat(z,"></span>")}),C.style.display="none",L='<span class="vditor-linenumber__rows">'.concat(L,"</span>"),g.insertAdjacentHTML("beforeend",L)}}})})})}}}),11:((Z,E,M)=>{M.d(E,{K:()=>m});var D=M(145),A=M(413),c=M(840),l={},y=function(d,v){var w=d.transform(v),b=Object.keys(w.features).filter(function(x){return!l[x]});b.forEach(function(x){l[x]=!0});var g=d.getAssets(b),s=g.styles,C=g.scripts,_=window.markmap;return s&&_.loadCSS(s),C&&_.loadJS(C),w},p=function(d,v){var w=window.markmap,b=w.Transformer,g=w.Markmap,s=w.deriveOptions;w.globalCSS;var C=new b;d.innerHTML='<svg style="width:100%"></svg>';var _=d.firstChild,x=g.create(_,null),L=y(C,v),P=L.root,F=L.frontmatter,z=F?.markmap,Q=s(z);x.setData(P,Q),x.fit()},m=function(d,v){d===void 0&&(d=document),v===void 0&&(v=D.g.CDN);var w=c.markmapRenderAdapter.getElements(d);w.length!==0&&(0,A.G)("".concat(v,"/dist/js/markmap/markmap.min.js"),"vditorMarkerScript").then(function(){w.forEach(function(b){var g=c.markmapRenderAdapter.getCode(b);if(!(b.getAttribute("data-processed")==="true"||g.trim()==="")){var s=document.createElement("div");s.className="language-markmap",b.parentNode.appendChild(s),p(s,g),b.parentNode.childNodes[0].nodeName=="CODE"&&b.parentNode.removeChild(b.parentNode.childNodes[0])}})})}}),472:((Z,E,M)=>{M.d(E,{H:()=>p});var D=M(145),A=M(413),c=M(290),l=M(105),y=M(840),p=function(m,d){m===void 0&&(m=document);var v=y.mathRenderAdapter.getElements(m);if(v.length!==0){var w={cdn:D.g.CDN,math:{engine:"KaTeX",inlineDigit:!1,macros:{}}};if(d&&d.math&&(d.math=Object.assign({},w.math,d.math)),d=Object.assign({},w,d),d.math.engine==="KaTeX")(0,c.c)("".concat(d.cdn,"/dist/js/katex/katex.min.css?v=0.16.9"),"vditorKatexStyle"),(0,A.G)("".concat(d.cdn,"/dist/js/katex/katex.min.js?v=0.16.9"),"vditorKatexScript").then(function(){(0,A.G)("".concat(d.cdn,"/dist/js/katex/mhchem.min.js?v=0.16.9"),"vditorKatexChemScript").then(function(){v.forEach(function(s){if(!(s.parentElement.classList.contains("vditor-wysiwyg__pre")||s.parentElement.classList.contains("vditor-ir__marker--pre"))&&!s.getAttribute("data-math")){var C=(0,l.X)(y.mathRenderAdapter.getCode(s));s.setAttribute("data-math",C);try{s.innerHTML=katex.renderToString(C,{displayMode:s.tagName==="DIV",output:"html",macros:d.math.macros})}catch(_){s.innerHTML=_.message,s.className="language-math vditor-reset--error"}s.addEventListener("copy",function(_){_.stopPropagation(),_.preventDefault();var x=_.currentTarget.closest(".language-math");_.clipboardData.setData("text/html",x.innerHTML),_.clipboardData.setData("text/plain",x.getAttribute("data-math"))})}})})});else if(d.math.engine==="MathJax"){var b=function(s){if(s.length!==0){var C=0,_=s[s.length-1],x=function(){var L=s[C++];L===_?L():L(x)};x()}};window.MathJax||(window.MathJax={loader:{paths:{mathjax:"".concat(d.cdn,"/dist/js/mathjax")}},startup:{typeset:!1},tex:{macros:d.math.macros}},Object.assign(window.MathJax,d.math.mathJaxOptions)),(0,A.J)("".concat(d.cdn,"/dist/js/mathjax/tex-svg-full.js"),"protyleMathJaxScript");var g=function(s,C){var _=(0,l.X)(s.textContent).trim(),x=window.MathJax.getMetricsFor(s);x.display