=0?o=e.src.slice(T,a++):a=l+1):a=l+1,o||(o=e.src.slice(s,l)),f=e.env.references[Kl(o)],!f)return e.pos=x,!1;h=f.href,d=f.title}return r||(e.pos=s,e.posMax=l,p=e.push("link_open","a",1),p.attrs=n=[["href",h]],d&&n.push(["title",d]),e.md.inline.tokenize(e),p=e.push("link_close","a",-1)),e.pos=a,e.posMax=k,!0}});var ji=b((Vc,Vi)=>{"use strict";var Ql=I().normalizeReference,Wr=I().isSpace;Vi.exports=function(e,r){var n,i,o,l,s,a,c,f,p,h,d,x,k,T="",v=e.pos,_=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91||(a=e.pos+2,s=e.md.helpers.parseLinkLabel(e,e.pos+1,!1),s<0))return!1;if(c=s+1,c<_&&e.src.charCodeAt(c)===40){for(c++;c<_&&(i=e.src.charCodeAt(c),!(!Wr(i)&&i!==10));c++);if(c>=_)return!1;for(k=c,p=e.md.helpers.parseLinkDestination(e.src,c,e.posMax),p.ok&&(T=e.md.normalizeLink(p.str),e.md.validateLink(T)?c=p.pos:T=""),k=c;c<_&&(i=e.src.charCodeAt(c),!(!Wr(i)&&i!==10));c++);if(p=e.md.helpers.parseLinkTitle(e.src,c,e.posMax),c<_&&k!==c&&p.ok)for(h=p.str,c=p.pos;c<_&&(i=e.src.charCodeAt(c),!(!Wr(i)&&i!==10));c++);else h="";if(c>=_||e.src.charCodeAt(c)!==41)return e.pos=v,!1;c++}else{if(typeof e.env.references>"u")return!1;if(c<_&&e.src.charCodeAt(c)===91?(k=c+1,c=e.md.helpers.parseLinkLabel(e,c),c>=0?l=e.src.slice(k,c++):c=s+1):c=s+1,l||(l=e.src.slice(a,s)),f=e.env.references[Ql(l)],!f)return e.pos=v,!1;T=f.href,h=f.title}return r||(o=e.src.slice(a,s),e.md.inline.parse(o,e.md,e.env,x=[]),d=e.push("image","img",0),d.attrs=n=[["src",T],["alt",""]],d.children=x,d.content=o,h&&n.push(["title",h])),e.pos=c,e.posMax=_,!0}});var Zi=b((jc,Wi)=>{"use strict";var ea=/^([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,ra=/^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/;Wi.exports=function(e,r){var n,i,o,l,s,a,c=e.pos;if(e.src.charCodeAt(c)!==60)return!1;for(s=e.pos,a=e.posMax;;){if(++c>=a||(l=e.src.charCodeAt(c),l===60))return!1;if(l===62)break}return n=e.src.slice(s+1,c),ra.test(n)?(i=e.md.normalizeLink(n),e.md.validateLink(i)?(r||(o=e.push("link_open","a",1),o.attrs=[["href",i]],o.markup="autolink",o.info="auto",o=e.push("text","",0),o.content=e.md.normalizeLinkText(n),o=e.push("link_close","a",-1),o.markup="autolink",o.info="auto"),e.pos+=n.length+2,!0):!1):ea.test(n)?(i=e.md.normalizeLink("mailto:"+n),e.md.validateLink(i)?(r||(o=e.push("link_open","a",1),o.attrs=[["href",i]],o.markup="autolink",o.info="auto",o=e.push("text","",0),o.content=e.md.normalizeLinkText(n),o=e.push("link_close","a",-1),o.markup="autolink",o.info="auto"),e.pos+=n.length+2,!0):!1):!1}});var Yi=b((Wc,$i)=>{"use strict";var ta=zr().HTML_TAG_RE;function na(t){var e=t|32;return e>=97&&e<=122}$i.exports=function(e,r){var n,i,o,l,s=e.pos;return!e.md.options.html||(o=e.posMax,e.src.charCodeAt(s)!==60||s+2>=o)||(n=e.src.charCodeAt(s+1),n!==33&&n!==63&&n!==47&&!na(n))||(i=e.src.slice(s).match(ta),!i)?!1:(r||(l=e.push("html_inline","",0),l.content=e.src.slice(s,s+i[0].length)),e.pos+=i[0].length,!0)}});var Qi=b((Zc,Ki)=>{"use strict";var Xi=Tr(),ia=I().has,oa=I().isValidEntityCode,Ji=I().fromCodePoint,sa=/^((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,la=/^&([a-z][a-z0-9]{1,31});/i;Ki.exports=function(e,r){var n,i,o,l=e.pos,s=e.posMax;if(e.src.charCodeAt(l)!==38)return!1;if(l+1{"use strict";function eo(t,e){var r,n,i,o,l,s,a,c,f={},p=e.length;if(p){var h=0,d=-2,x=[];for(r=0;rl;n-=x[n]+1)if(o=e[n],o.marker===i.marker&&o.open&&o.end<0&&(a=!1,(o.close||i.open)&&(o.length+i.length)%3===0&&(o.length%3!==0||i.length%3!==0)&&(a=!0),!a)){c=n>0&&!e[n-1].open?x[n-1]+1:0,x[r]=r-n+c,x[n]=c,i.open=!1,o.end=r,o.close=!1,s=-1,d=-2;break}s!==-1&&(f[i.marker][(i.open?3:0)+(i.length||0)%3]=s)}}}ro.exports=function(e){var r,n=e.tokens_meta,i=e.tokens_meta.length;for(eo(e,e.delimiters),r=0;r{"use strict";no.exports=function(e){var r,n,i=0,o=e.tokens,l=e.tokens.length;for(r=n=0;r0&&i++,o[r].type==="text"&&r+1{"use strict";var Zr=nr(),oo=I().isWhiteSpace,so=I().isPunctChar,lo=I().isMdAsciiPunct;function Pe(t,e,r,n){this.src=t,this.env=r,this.md=e,this.tokens=n,this.tokens_meta=Array(n.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1}Pe.prototype.pushPending=function(){var t=new Zr("text","",0);return t.content=this.pending,t.level=this.pendingLevel,this.tokens.push(t),this.pending="",t};Pe.prototype.push=function(t,e,r){this.pending&&this.pushPending();var n=new Zr(t,e,r),i=null;return r<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),n.level=this.level,r>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],i={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(n),this.tokens_meta.push(i),n};Pe.prototype.scanDelims=function(t,e){var r=t,n,i,o,l,s,a,c,f,p,h=!0,d=!0,x=this.posMax,k=this.src.charCodeAt(t);for(n=t>0?this.src.charCodeAt(t-1):32;r{"use strict";var uo=rr(),$r=[["text",Mi()],["newline",Li()],["escape",Ni()],["backticks",Pi()],["strikethrough",Hr().tokenize],["emphasis",Vr().tokenize],["link",Gi()],["image",ji()],["autolink",Zi()],["html_inline",Yi()],["entity",Qi()]],Yr=[["balance_pairs",to()],["strikethrough",Hr().postProcess],["emphasis",Vr().postProcess],["text_collapse",io()]];function Be(){var t;for(this.ruler=new uo,t=0;t<$r.length;t++)this.ruler.push($r[t][0],$r[t][1]);for(this.ruler2=new uo,t=0;t=o)break;continue}t.pending+=t.src[t.pos++]}t.pending&&t.pushPending()};Be.prototype.parse=function(t,e,r,n){var i,o,l,s=new this.State(t,e,r,n);for(this.tokenize(s),o=this.ruler2.getRules(""),l=o.length,i=0;i{"use strict";ho.exports=function(t){var e={};e.src_Any=qr().source,e.src_Cc=Fr().source,e.src_Z=Rr().source,e.src_P=Xe().source,e.src_ZPCc=[e.src_Z,e.src_P,e.src_Cc].join("|"),e.src_ZCc=[e.src_Z,e.src_Cc].join("|");var r="[><\uFF5C]";return e.src_pseudo_letter="(?:(?!"+r+"|"+e.src_ZPCc+")"+e.src_Any+")",e.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",e.src_auth="(?:(?:(?!"+e.src_ZCc+"|[@/\\[\\]()]).)+@)?",e.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",e.src_host_terminator="(?=$|"+r+"|"+e.src_ZPCc+")(?!-|_|:\\d|\\.-|\\.(?!$|"+e.src_ZPCc+"))",e.src_path="(?:[/?#](?:(?!"+e.src_ZCc+"|"+r+`|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!`+e.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+e.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+e.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+e.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+e.src_ZCc+"|[']).)+\\'|\\'(?="+e.src_pseudo_letter+"|[-]).|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+e.src_ZCc+"|[.]).|"+(t&&t["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+e.src_ZCc+").|;(?!"+e.src_ZCc+").|\\!+(?!"+e.src_ZCc+"|[!]).|\\?(?!"+e.src_ZCc+"|[?]).)+|\\/)?",e.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',e.src_xn="xn--[a-z0-9\\-]{1,59}",e.src_domain_root="(?:"+e.src_xn+"|"+e.src_pseudo_letter+"{1,63})",e.src_domain="(?:"+e.src_xn+"|(?:"+e.src_pseudo_letter+")|(?:"+e.src_pseudo_letter+"(?:-|"+e.src_pseudo_letter+"){0,61}"+e.src_pseudo_letter+"))",e.src_host="(?:(?:(?:(?:"+e.src_domain+")\\.)*"+e.src_domain+"))",e.tpl_host_fuzzy="(?:"+e.src_ip4+"|(?:(?:(?:"+e.src_domain+")\\.)+(?:%TLDS%)))",e.tpl_host_no_ip_fuzzy="(?:(?:(?:"+e.src_domain+")\\.)+(?:%TLDS%))",e.src_host_strict=e.src_host+e.src_host_terminator,e.tpl_host_fuzzy_strict=e.tpl_host_fuzzy+e.src_host_terminator,e.src_host_port_strict=e.src_host+e.src_port+e.src_host_terminator,e.tpl_host_port_fuzzy_strict=e.tpl_host_fuzzy+e.src_port+e.src_host_terminator,e.tpl_host_port_no_ip_fuzzy_strict=e.tpl_host_no_ip_fuzzy+e.src_port+e.src_host_terminator,e.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+e.src_ZPCc+"|>|$))",e.tpl_email_fuzzy="(^|"+r+'|"|\\(|'+e.src_ZCc+")("+e.src_email_name+"@"+e.tpl_host_fuzzy_strict+")",e.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|\uFF5C]|"+e.src_ZPCc+"))((?![$+<=>^`|\uFF5C])"+e.tpl_host_port_fuzzy_strict+e.src_path+")",e.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|\uFF5C]|"+e.src_ZPCc+"))((?![$+<=>^`|\uFF5C])"+e.tpl_host_port_no_ip_fuzzy_strict+e.src_path+")",e}});var Ao=b((Qc,ko)=>{"use strict";function Xr(t){var e=Array.prototype.slice.call(arguments,1);return e.forEach(function(r){r&&Object.keys(r).forEach(function(n){t[n]=r[n]})}),t}function cr(t){return Object.prototype.toString.call(t)}function aa(t){return cr(t)==="[object String]"}function ca(t){return cr(t)==="[object Object]"}function ua(t){return cr(t)==="[object RegExp]"}function go(t){return cr(t)==="[object Function]"}function fa(t){return t.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var bo={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function pa(t){return Object.keys(t||{}).reduce(function(e,r){return e||bo.hasOwnProperty(r)},!1)}var ha={"http:":{validate:function(t,e,r){var n=t.slice(e);return r.re.http||(r.re.http=new RegExp("^\\/\\/"+r.re.src_auth+r.re.src_host_port_strict+r.re.src_path,"i")),r.re.http.test(n)?n.match(r.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(t,e,r){var n=t.slice(e);return r.re.no_http||(r.re.no_http=new RegExp("^"+r.re.src_auth+"(?:localhost|(?:(?:"+r.re.src_domain+")\\.)+"+r.re.src_domain_root+")"+r.re.src_port+r.re.src_host_terminator+r.re.src_path,"i")),r.re.no_http.test(n)?e>=3&&t[e-3]===":"||e>=3&&t[e-3]==="/"?0:n.match(r.re.no_http)[0].length:0}},"mailto:":{validate:function(t,e,r){var n=t.slice(e);return r.re.mailto||(r.re.mailto=new RegExp("^"+r.re.src_email_name+"@"+r.re.src_host_strict,"i")),r.re.mailto.test(n)?n.match(r.re.mailto)[0].length:0}}},da="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",ma="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|\u0440\u0444".split("|");function ga(t){t.__index__=-1,t.__text_cache__=""}function _a(t){return function(e,r){var n=e.slice(r);return t.test(n)?n.match(t)[0].length:0}}function _o(){return function(t,e){e.normalize(t)}}function ar(t){var e=t.re=mo()(t.__opts__),r=t.__tlds__.slice();t.onCompile(),t.__tlds_replaced__||r.push(da),r.push(e.src_xn),e.src_tlds=r.join("|");function n(s){return s.replace("%TLDS%",e.src_tlds)}e.email_fuzzy=RegExp(n(e.tpl_email_fuzzy),"i"),e.link_fuzzy=RegExp(n(e.tpl_link_fuzzy),"i"),e.link_no_ip_fuzzy=RegExp(n(e.tpl_link_no_ip_fuzzy),"i"),e.host_fuzzy_test=RegExp(n(e.tpl_host_fuzzy_test),"i");var i=[];t.__compiled__={};function o(s,a){throw new Error('(LinkifyIt) Invalid schema "'+s+'": '+a)}Object.keys(t.__schemas__).forEach(function(s){var a=t.__schemas__[s];if(a!==null){var c={validate:null,link:null};if(t.__compiled__[s]=c,ca(a)){ua(a.validate)?c.validate=_a(a.validate):go(a.validate)?c.validate=a.validate:o(s,a),go(a.normalize)?c.normalize=a.normalize:a.normalize?o(s,a):c.normalize=_o();return}if(aa(a)){i.push(s);return}o(s,a)}}),i.forEach(function(s){t.__compiled__[t.__schemas__[s]]&&(t.__compiled__[s].validate=t.__compiled__[t.__schemas__[s]].validate,t.__compiled__[s].normalize=t.__compiled__[t.__schemas__[s]].normalize)}),t.__compiled__[""]={validate:null,normalize:_o()};var l=Object.keys(t.__compiled__).filter(function(s){return s.length>0&&t.__compiled__[s]}).map(fa).join("|");t.re.schema_test=RegExp("(^|(?!_)(?:[><\uFF5C]|"+e.src_ZPCc+"))("+l+")","i"),t.re.schema_search=RegExp("(^|(?!_)(?:[><\uFF5C]|"+e.src_ZPCc+"))("+l+")","ig"),t.re.pretest=RegExp("("+t.re.schema_test.source+")|("+t.re.host_fuzzy_test.source+")|@","i"),ga(t)}function xa(t,e){var r=t.__index__,n=t.__last_index__,i=t.__text_cache__.slice(r,n);this.schema=t.__schema__.toLowerCase(),this.index=r+e,this.lastIndex=n+e,this.raw=i,this.text=i,this.url=i}function xo(t,e){var r=new xa(t,e);return t.__compiled__[r.schema].normalize(r,t),r}function X(t,e){if(!(this instanceof X))return new X(t,e);e||pa(t)&&(e=t,t={}),this.__opts__=Xr({},bo,e),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=Xr({},ha,t),this.__compiled__={},this.__tlds__=ma,this.__tlds_replaced__=!1,this.re={},ar(this)}X.prototype.add=function(e,r){return this.__schemas__[e]=r,ar(this),this};X.prototype.set=function(e){return this.__opts__=Xr(this.__opts__,e),this};X.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var r,n,i,o,l,s,a,c,f;if(this.re.schema_test.test(e)){for(a=this.re.schema_search,a.lastIndex=0;(r=a.exec(e))!==null;)if(o=this.testSchemaAt(e,r[2],a.lastIndex),o){this.__schema__=r[2],this.__index__=r.index+r[1].length,this.__last_index__=r.index+r[0].length+o;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(c=e.search(this.re.host_fuzzy_test),c>=0&&(this.__index__<0||c=0&&(i=e.match(this.re.email_fuzzy))!==null&&(l=i.index+i[1].length,s=i.index+i[0].length,(this.__index__<0||lthis.__last_index__)&&(this.__schema__="mailto:",this.__index__=l,this.__last_index__=s))),this.__index__>=0};X.prototype.pretest=function(e){return this.re.pretest.test(e)};X.prototype.testSchemaAt=function(e,r,n){return this.__compiled__[r.toLowerCase()]?this.__compiled__[r.toLowerCase()].validate(e,n,this):0};X.prototype.match=function(e){var r=0,n=[];this.__index__>=0&&this.__text_cache__===e&&(n.push(xo(this,r)),r=this.__last_index__);for(var i=r?e.slice(r):e;this.test(i);)n.push(xo(this,r)),i=i.slice(this.__last_index__),r+=this.__last_index__;return n.length?n:null};X.prototype.tlds=function(e,r){return e=Array.isArray(e)?e:[e],r?(this.__tlds__=this.__tlds__.concat(e).sort().filter(function(n,i,o){return n!==o[i-1]}).reverse(),ar(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,ar(this),this)};X.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),e.schema==="mailto:"&&!/^mailto:/i.test(e.url)&&(e.url="mailto:"+e.url)};X.prototype.onCompile=function(){};ko.exports=X});var qo=b((eu,So)=>{"use strict";var vo="-",ba=/^xn--/,ka=/[^\0-\x7F]/,Aa=/[\x2E\u3002\uFF0E\uFF61]/g,Ca={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Jr=35,ie=Math.floor,Kr=String.fromCharCode;function ce(t){throw new RangeError(Ca[t])}function va(t,e){let r=[],n=t.length;for(;n--;)r[n]=e(t[n]);return r}function Eo(t,e){let r=t.split("@"),n="";r.length>1&&(n=r[0]+"@",t=r[1]),t=t.replace(Aa,".");let i=t.split("."),o=va(i,e).join(".");return n+o}function yo(t){let e=[],r=0,n=t.length;for(;r=55296&&i<=56319&&rString.fromCodePoint(...t),ya=function(t){return t>=48&&t<58?26+(t-48):t>=65&&t<91?t-65:t>=97&&t<123?t-97:36},Co=function(t,e){return t+22+75*(t<26)-((e!=0)<<5)},wo=function(t,e,r){let n=0;for(t=r?ie(t/700):t>>1,t+=ie(t/e);t>Jr*26>>1;n+=36)t=ie(t/Jr);return ie(n+(Jr+1)*t/(t+38))},Do=function(t){let e=[],r=t.length,n=0,i=128,o=72,l=t.lastIndexOf(vo);l<0&&(l=0);for(let s=0;s=128&&ce("not-basic"),e.push(t.charCodeAt(s));for(let s=l>0?l+1:0;s=r&&ce("invalid-input");let h=ya(t.charCodeAt(s++));h>=36&&ce("invalid-input"),h>ie((2147483647-n)/f)&&ce("overflow"),n+=h*f;let d=p<=o?1:p>=o+26?26:p-o;if(hie(2147483647/x)&&ce("overflow"),f*=x}let c=e.length+1;o=wo(n-a,c,a==0),ie(n/c)>2147483647-i&&ce("overflow"),i+=ie(n/c),n%=c,e.splice(n++,0,i)}return String.fromCodePoint(...e)},To=function(t){let e=[];t=yo(t);let r=t.length,n=128,i=0,o=72;for(let a of t)a<128&&e.push(Kr(a));let l=e.length,s=l;for(l&&e.push(vo);s=n&&fie((2147483647-i)/c)&&ce("overflow"),i+=(a-n)*c,n=a;for(let f of t)if(f2147483647&&ce("overflow"),f===n){let p=i;for(let h=36;;h+=36){let d=h<=o?1:h>=o+26?26:h-o;if(p{"use strict";Fo.exports={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"\u201C\u201D\u2018\u2019",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}}});var Io=b((tu,Mo)=>{"use strict";Mo.exports={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"\u201C\u201D\u2018\u2019",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","text_collapse"]}}}});var Oo=b((nu,Lo)=>{"use strict";Lo.exports={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"\u201C\u201D\u2018\u2019",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","text_collapse"]}}}});var Bo=b((iu,Po)=>{"use strict";var Ue=I(),Sa=An(),qa=vn(),Fa=$n(),Ra=Fi(),Ma=po(),Ia=Ao(),he=Sr(),No=qo(),La={default:Ro(),zero:Io(),commonmark:Oo()},Oa=/^(vbscript|javascript|file|data):/,Na=/^data:image\/(gif|png|jpeg|webp);/;function za(t){var e=t.trim().toLowerCase();return Oa.test(e)?!!Na.test(e):!0}var zo=["http:","https:","mailto:"];function Pa(t){var e=he.parse(t,!0);if(e.hostname&&(!e.protocol||zo.indexOf(e.protocol)>=0))try{e.hostname=No.toASCII(e.hostname)}catch{}return he.encode(he.format(e))}function Ba(t){var e=he.parse(t,!0);if(e.hostname&&(!e.protocol||zo.indexOf(e.protocol)>=0))try{e.hostname=No.toUnicode(e.hostname)}catch{}return he.decode(he.format(e),he.decode.defaultChars+"%")}function J(t,e){if(!(this instanceof J))return new J(t,e);e||Ue.isString(t)||(e=t||{},t="default"),this.inline=new Ma,this.block=new Ra,this.core=new Fa,this.renderer=new qa,this.linkify=new Ia,this.validateLink=za,this.normalizeLink=Pa,this.normalizeLinkText=Ba,this.utils=Ue,this.helpers=Ue.assign({},Sa),this.options={},this.configure(t),e&&this.set(e)}J.prototype.set=function(t){return Ue.assign(this.options,t),this};J.prototype.configure=function(t){var e=this,r;if(Ue.isString(t)&&(r=t,t=La[r],!t))throw new Error('Wrong `markdown-it` preset "'+r+'", check name');if(!t)throw new Error("Wrong `markdown-it` preset, can't be empty");return t.options&&e.set(t.options),t.components&&Object.keys(t.components).forEach(function(n){t.components[n].rules&&e[n].ruler.enableOnly(t.components[n].rules),t.components[n].rules2&&e[n].ruler2.enableOnly(t.components[n].rules2)}),this};J.prototype.enable=function(t,e){var r=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach(function(i){r=r.concat(this[i].ruler.enable(t,!0))},this),r=r.concat(this.inline.ruler2.enable(t,!0));var n=t.filter(function(i){return r.indexOf(i)<0});if(n.length&&!e)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+n);return this};J.prototype.disable=function(t,e){var r=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach(function(i){r=r.concat(this[i].ruler.disable(t,!0))},this),r=r.concat(this.inline.ruler2.disable(t,!0));var n=t.filter(function(i){return r.indexOf(i)<0});if(n.length&&!e)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+n);return this};J.prototype.use=function(t){var e=[this].concat(Array.prototype.slice.call(arguments,1));return t.apply(t,e),this};J.prototype.parse=function(t,e){if(typeof t!="string")throw new Error("Input data should be a String");var r=new this.core.State(t,this,e);return this.core.process(r),r.tokens};J.prototype.render=function(t,e){return e=e||{},this.renderer.render(this.parse(t,e),this.options,e)};J.prototype.parseInline=function(t,e){var r=new this.core.State(t,this,e);return r.inlineMode=!0,this.core.process(r),r.tokens};J.prototype.renderInline=function(t,e){return e=e||{},this.renderer.render(this.parseInline(t,e),this.options,e)};Po.exports=J});var Ho=b((ou,Uo)=>{"use strict";Uo.exports=Bo()});var Go=Ot(Nt()),Vo=Ot(Ho()),Ua=Object.freeze(["a","abbr","b","bdo","blockquote","br","caption","cite","code","col","colgroup","dd","del","details","dfn","div","dl","dt","em","figcaption","figure","h1","h2","h3","h4","h5","h6","hr","i","img","ins","kbd","label","li","mark","ol","p","pre","q","rp","rt","ruby","samp","small","small","source","span","strike","strong","sub","summary","sup","table","tbody","td","tfoot","th","thead","time","tr","tt","u","ul","var","video","wbr"]),Ha=Object.freeze(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Ga={ALLOWED_TAGS:[...Ua,...Ha]},su=t=>{let e=new Vo.default({html:!0,linkify:!0,highlight:(i,o)=>o?`${e.utils.escapeHtml(i)}
`:e.utils.escapeHtml(i)});e.linkify.set({fuzzyLink:!1}),Va(e),ja(e);let r=document.createElement("style");r.textContent=`
.emptyMarkdownCell::before {
content: "${document.documentElement.style.getPropertyValue("--notebook-cell-markup-empty-content")}";
font-style: italic;
opacity: 0.6;
}
img {
max-width: 100%;
max-height: 100%;
}
a {
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
a:focus,
input:focus,
select:focus,
textarea:focus {
outline: 1px solid -webkit-focus-ring-color;
outline-offset: -1px;
}
hr {
border: 0;
height: 2px;
border-bottom: 2px solid;
}
h2, h3, h4, h5, h6 {
font-weight: normal;
}
h1 {
font-size: 2.3em;
}
h2 {
font-size: 2em;
}
h3 {
font-size: 1.7em;
}
h3 {
font-size: 1.5em;
}
h4 {
font-size: 1.3em;
}
h5 {
font-size: 1.2em;
}
h1,
h2,
h3 {
font-weight: normal;
}
div {
width: 100%;
}
/* Adjust margin of first item in markdown cell */
*:first-child {
margin-top: 0px;
}
/* h1 tags don't need top margin */
h1:first-child {
margin-top: 0;
}
/* Removes bottom margin when only one item exists in markdown cell */
#preview > *:only-child,
#preview > *:last-child {
margin-bottom: 0;
padding-bottom: 0;
}
/* makes all markdown cells consistent */
div {
min-height: var(--notebook-markdown-min-height);
}
table {
border-collapse: collapse;
border-spacing: 0;
}
table th,
table td {
border: 1px solid;
}
table > thead > tr > th {
text-align: left;
border-bottom: 1px solid;
}
table > thead > tr > th,
table > thead > tr > td,
table > tbody > tr > th,
table > tbody > tr > td {
padding: 5px 10px;
}
table > tbody > tr + tr > td {
border-top: 1px solid;
}
blockquote {
margin: 0 7px 0 5px;
padding: 0 16px 0 10px;
border-left-width: 5px;
border-left-style: solid;
}
code {
font-size: 1em;
font-family: var(--vscode-editor-font-family);
}
pre code {
line-height: 1.357em;
white-space: pre-wrap;
padding: 0;
}
li p {
margin-bottom: 0.7em;
}
ul,
ol {
margin-bottom: 0.7em;
}
`;let n=document.createElement("template");return n.classList.add("markdown-style"),n.content.appendChild(r),document.head.appendChild(n),{renderOutputItem:(i,o)=>{let l;if(o.shadowRoot)l=o.shadowRoot.getElementById("preview");else{let a=o.attachShadow({mode:"open"}),c=document.getElementById("_defaultStyles");a.appendChild(c.cloneNode(!0));for(let f of document.getElementsByClassName("markdown-style"))f instanceof HTMLTemplateElement?a.appendChild(f.content.cloneNode(!0)):a.appendChild(f.cloneNode(!0));l=document.createElement("div"),l.id="preview",a.appendChild(l)}let s=i.text();if(s.trim().length===0)l.innerText="",l.classList.add("emptyMarkdownCell");else{l.classList.remove("emptyMarkdownCell");let a=i.mime.startsWith("text/x-")?`\`\`\`${i.mime.substr(7)}
${s}
\`\`\``:i.mime.startsWith("application/")?`\`\`\`${i.mime.substr(12)}
${s}
\`\`\``:s,c=e.render(a,{outputItem:i});l.innerHTML=t.workspace.isTrusted?c:Go.sanitize(c,Ga)}},extendMarkdownIt:i=>{try{i(e)}catch(o){console.error("Error extending markdown-it",o)}}}};function Va(t){let e=new Map,r=t.renderer.rules.heading_open;t.renderer.rules.heading_open=(i,o,l,s,a)=>{let c=i[o+1].children.reduce((p,h)=>p+h.content,""),f=Qr(c);if(e.has(f)){let p=e.get(f);e.set(f,p+1),f=Qr(f+"-"+(p+1))}else e.set(f,0);return i[o].attrSet("id",f),r?r(i,o,l,s,a):a.renderToken(i,o,l)};let n=t.render;t.render=function(){return e.clear(),n.apply(this,arguments)}}function ja(t){let e=t.renderer.rules.link_open;t.renderer.rules.link_open=(r,n,i,o,l)=>{let s=r[n],a=s.attrGet("href");return typeof a=="string"&&a.startsWith("#")&&s.attrSet("href","#"+Qr(a.slice(1))),e?e(r,n,i,o,l):l.renderToken(r,n,i)}}function Qr(t){return encodeURI(t.trim().toLowerCase().replace(/\s+/g,"-").replace(/[\]\[\!\/\'\"\#\$\%\&\(\)\*\+\,\.\/\:\;\<\=\>\?\@\\\^\{\|\}\~\`。,、;:?!…—·ˉ¨‘’“”々~‖∶"'`|〃〔〕〈〉《》「」『』.〖〗【】()[]{}]/g,"").replace(/^\-+/,"").replace(/\-+$/,""))}export{su as activate};
/*! Bundled license information:
dompurify/dist/purify.js:
(*! @license DOMPurify 3.1.7 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.1.7/LICENSE *)
*/
A
Eo