markstream-vue 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +73 -0
- package/README.zh-CN.md +74 -0
- package/dist/index.cjs +319 -0
- package/dist/index.css +1 -0
- package/dist/index.d.ts +966 -0
- package/dist/index.js +13740 -0
- package/dist/index.tailwind.css +1 -0
- package/dist/tailwind.ts +0 -0
- package/dist/workers/katexRenderer.worker.js +44 -0
- package/dist/workers/mermaidParser.worker.js +92 -0
- package/license +21 -0
- package/package.json +164 -0
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,319 @@
|
|
|
1
|
+
"use strict";var hs=Object.create;var Vr=Object.defineProperty,ps=Object.defineProperties,ms=Object.getOwnPropertyDescriptor,gs=Object.getOwnPropertyDescriptors,ks=Object.getOwnPropertyNames,nr=Object.getOwnPropertySymbols,vs=Object.getPrototypeOf,jr=Object.prototype.hasOwnProperty,Fo=Object.prototype.propertyIsEnumerable;var zr=(e,t,n)=>t in e?Vr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,re=(e,t)=>{for(var n in t||(t={}))jr.call(t,n)&&zr(e,n,t[n]);if(nr)for(var n of nr(t))Fo.call(t,n)&&zr(e,n,t[n]);return e},He=(e,t)=>ps(e,gs(t));var Hr=(e,t)=>{var n={};for(var o in e)jr.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&nr)for(var o of nr(e))t.indexOf(o)<0&&Fo.call(e,o)&&(n[o]=e[o]);return n};var ws=(e,t,n,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of ks(t))!jr.call(e,r)&&r!==n&&Vr(e,r,{get:()=>t[r],enumerable:!(o=ms(t,r))||o.enumerable});return e};var Hn=(e,t,n)=>(n=e!=null?hs(vs(e)):{},ws(t||!e||!e.__esModule?Vr(n,"default",{value:e,enumerable:!0}):n,e));var X=(e,t,n)=>zr(e,typeof t!="symbol"?t+"":t,n);var te=(e,t,n)=>new Promise((o,r)=>{var i=u=>{try{a(n.next(u))}catch(c){r(c)}},s=u=>{try{a(n.throw(u))}catch(c){r(c)}},a=u=>u.done?o(u.value):Promise.resolve(u.value).then(i,s);a((n=n.apply(e,t)).next())});Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("vue");var ys=Object.create,fo=Object.defineProperty,xs=Object.getOwnPropertyDescriptor,Ki=Object.getOwnPropertyNames,bs=Object.getPrototypeOf,_s=Object.prototype.hasOwnProperty,Xi=(e,t)=>function(){return t||(0,e[Ki(e)[0]])((t={exports:{}}).exports,t),t.exports},Zi=e=>{let t={};for(var n in e)fo(t,n,{get:e[n],enumerable:!0});return t},Cs=(e,t,n,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(var r=Ki(t),i=0,s=r.length,a;i<s;i++)a=r[i],!_s.call(e,a)&&a!==n&&fo(e,a,{get:(u=>t[u]).bind(null,a),enumerable:!(o=xs(t,a))||o.enumerable});return e},Yi=(e,t,n)=>(n=e!=null?ys(bs(e)):{},Cs(fo(n,"default",{value:e,enumerable:!0}),e));function Es(e,t,n,o){const r=Number(e[t].meta.id+1).toString();let i="";return typeof o.docId=="string"&&(i=`-${o.docId}-`),i+r}function Ss(e,t){let n=Number(e[t].meta.id+1).toString();return e[t].meta.subId>0&&(n+=`:${e[t].meta.subId}`),`[${n}]`}function Ms(e,t,n,o,r){const i=r.rules.footnote_anchor_name(e,t,n,o,r),s=r.rules.footnote_caption(e,t,n,o,r);let a=i;return e[t].meta.subId>0&&(a+=`:${e[t].meta.subId}`),`<sup class="footnote-ref"><a href="#fn${i}" id="fnref${a}">${s}</a></sup>`}function As(e,t,n){return(n.xhtmlOut?`<hr class="footnotes-sep" />
|
|
2
|
+
`:`<hr class="footnotes-sep">
|
|
3
|
+
`)+`<section class="footnotes">
|
|
4
|
+
<ol class="footnotes-list">
|
|
5
|
+
`}function Bs(){return`</ol>
|
|
6
|
+
</section>
|
|
7
|
+
`}function Ds(e,t,n,o,r){let i=r.rules.footnote_anchor_name(e,t,n,o,r);return e[t].meta.subId>0&&(i+=`:${e[t].meta.subId}`),`<li id="fn${i}" class="footnote-item">`}function Ts(){return`</li>
|
|
8
|
+
`}function $s(e,t,n,o,r){let i=r.rules.footnote_anchor_name(e,t,n,o,r);return e[t].meta.subId>0&&(i+=`:${e[t].meta.subId}`),` <a href="#fnref${i}" class="footnote-backref">↩︎</a>`}function Ns(e){const t=e.helpers.parseLinkLabel,n=e.utils.isSpace;e.renderer.rules.footnote_ref=Ms,e.renderer.rules.footnote_block_open=As,e.renderer.rules.footnote_block_close=Bs,e.renderer.rules.footnote_open=Ds,e.renderer.rules.footnote_close=Ts,e.renderer.rules.footnote_anchor=$s,e.renderer.rules.footnote_caption=Ss,e.renderer.rules.footnote_anchor_name=Es;function o(a,u,c,f){const d=a.bMarks[u]+a.tShift[u],h=a.eMarks[u];if(d+4>h||a.src.charCodeAt(d)!==91||a.src.charCodeAt(d+1)!==94)return!1;let p;for(p=d+2;p<h;p++){if(a.src.charCodeAt(p)===32)return!1;if(a.src.charCodeAt(p)===93)break}if(p===d+2||p+1>=h||a.src.charCodeAt(++p)!==58)return!1;if(f)return!0;p++,a.env.footnotes||(a.env.footnotes={}),a.env.footnotes.refs||(a.env.footnotes.refs={});const m=a.src.slice(d+2,p-2);a.env.footnotes.refs[`:${m}`]=-1;const g=new a.Token("footnote_reference_open","",1);g.meta={label:m},g.level=a.level++,a.tokens.push(g);const k=a.bMarks[u],_=a.tShift[u],y=a.sCount[u],w=a.parentType,x=p,S=a.sCount[u]+p-(a.bMarks[u]+a.tShift[u]);let M=S;for(;p<h;){const T=a.src.charCodeAt(p);if(n(T))T===9?M+=4-M%4:M++;else break;p++}a.tShift[u]=p-x,a.sCount[u]=M-S,a.bMarks[u]=x,a.blkIndent+=4,a.parentType="footnote",a.sCount[u]<a.blkIndent&&(a.sCount[u]+=a.blkIndent),a.md.block.tokenize(a,u,c,!0),a.parentType=w,a.blkIndent-=4,a.tShift[u]=_,a.sCount[u]=y,a.bMarks[u]=k;const D=new a.Token("footnote_reference_close","",-1);return D.level=--a.level,a.tokens.push(D),!0}function r(a,u){const c=a.posMax,f=a.pos;if(f+2>=c||a.src.charCodeAt(f)!==94||a.src.charCodeAt(f+1)!==91)return!1;const d=f+2,h=t(a,f+1);if(h<0)return!1;if(!u){a.env.footnotes||(a.env.footnotes={}),a.env.footnotes.list||(a.env.footnotes.list=[]);const p=a.env.footnotes.list.length,m=[];a.md.inline.parse(a.src.slice(d,h),a.md,a.env,m);const g=a.push("footnote_ref","",0);g.meta={id:p},a.env.footnotes.list[p]={content:a.src.slice(d,h),tokens:m}}return a.pos=h+1,a.posMax=c,!0}function i(a,u){const c=a.posMax,f=a.pos;if(f+3>c||!a.env.footnotes||!a.env.footnotes.refs||a.src.charCodeAt(f)!==91||a.src.charCodeAt(f+1)!==94)return!1;let d;for(d=f+2;d<c;d++){if(a.src.charCodeAt(d)===32||a.src.charCodeAt(d)===10)return!1;if(a.src.charCodeAt(d)===93)break}if(d===f+2||d>=c)return!1;d++;const h=a.src.slice(f+2,d-1);if(typeof a.env.footnotes.refs[`:${h}`]=="undefined")return!1;if(!u){a.env.footnotes.list||(a.env.footnotes.list=[]);let p;a.env.footnotes.refs[`:${h}`]<0?(p=a.env.footnotes.list.length,a.env.footnotes.list[p]={label:h,count:0},a.env.footnotes.refs[`:${h}`]=p):p=a.env.footnotes.refs[`:${h}`];const m=a.env.footnotes.list[p].count;a.env.footnotes.list[p].count++;const g=a.push("footnote_ref","",0);g.meta={id:p,subId:m,label:h}}return a.pos=d,a.posMax=c,!0}function s(a){let u,c,f,d=!1;const h={};if(!a.env.footnotes||(a.tokens=a.tokens.filter(function(m){return m.type==="footnote_reference_open"?(d=!0,c=[],f=m.meta.label,!1):m.type==="footnote_reference_close"?(d=!1,h[":"+f]=c,!1):(d&&c.push(m),!d)}),!a.env.footnotes.list))return;const p=a.env.footnotes.list;a.tokens.push(new a.Token("footnote_block_open","",1));for(let m=0,g=p.length;m<g;m++){const k=new a.Token("footnote_open","",1);if(k.meta={id:m,label:p[m].label},a.tokens.push(k),p[m].tokens){u=[];const w=new a.Token("paragraph_open","p",1);w.block=!0,u.push(w);const x=new a.Token("inline","",0);x.children=p[m].tokens,x.content=p[m].content,u.push(x);const S=new a.Token("paragraph_close","p",-1);S.block=!0,u.push(S)}else p[m].label&&(u=h[`:${p[m].label}`]);u&&(a.tokens=a.tokens.concat(u));let _;a.tokens[a.tokens.length-1].type==="paragraph_close"?_=a.tokens.pop():_=null;const y=p[m].count>0?p[m].count:1;for(let w=0;w<y;w++){const x=new a.Token("footnote_anchor","",0);x.meta={id:m,subId:w,label:p[m].label},a.tokens.push(x)}_&&a.tokens.push(_),a.tokens.push(new a.Token("footnote_close","",-1))}a.tokens.push(new a.Token("footnote_block_close","",-1))}e.block.ruler.before("reference","footnote_def",o,{alt:["paragraph","reference"]}),e.inline.ruler.after("image","footnote_inline",r),e.inline.ruler.after("footnote_inline","footnote_ref",i),e.core.ruler.after("inline","footnote_tail",s)}function Is(e){function t(o,r){const i=o.pos,s=o.src.charCodeAt(i);if(r||s!==43)return!1;const a=o.scanDelims(o.pos,!0);let u=a.length;const c=String.fromCharCode(s);if(u<2)return!1;if(u%2){const f=o.push("text","",0);f.content=c,u--}for(let f=0;f<u;f+=2){const d=o.push("text","",0);d.content=c+c,!(!a.can_open&&!a.can_close)&&o.delimiters.push({marker:s,length:0,jump:f/2,token:o.tokens.length-1,end:-1,open:a.can_open,close:a.can_close})}return o.pos+=a.length,!0}function n(o,r){let i;const s=[],a=r.length;for(let u=0;u<a;u++){const c=r[u];if(c.marker!==43||c.end===-1)continue;const f=r[c.end];i=o.tokens[c.token],i.type="ins_open",i.tag="ins",i.nesting=1,i.markup="++",i.content="",i=o.tokens[f.token],i.type="ins_close",i.tag="ins",i.nesting=-1,i.markup="++",i.content="",o.tokens[f.token-1].type==="text"&&o.tokens[f.token-1].content==="+"&&s.push(f.token-1)}for(;s.length;){const u=s.pop();let c=u+1;for(;c<o.tokens.length&&o.tokens[c].type==="ins_close";)c++;c--,u!==c&&(i=o.tokens[c],o.tokens[c]=o.tokens[u],o.tokens[u]=i)}}e.inline.ruler.before("emphasis","ins",t),e.inline.ruler2.before("emphasis","ins",function(o){const r=o.tokens_meta,i=(o.tokens_meta||[]).length;n(o,o.delimiters);for(let s=0;s<i;s++)r[s]&&r[s].delimiters&&n(o,r[s].delimiters)})}function Fs(e){function t(o,r){const i=o.pos,s=o.src.charCodeAt(i);if(r||s!==61)return!1;const a=o.scanDelims(o.pos,!0);let u=a.length;const c=String.fromCharCode(s);if(u<2)return!1;if(u%2){const f=o.push("text","",0);f.content=c,u--}for(let f=0;f<u;f+=2){const d=o.push("text","",0);d.content=c+c,!(!a.can_open&&!a.can_close)&&o.delimiters.push({marker:s,length:0,jump:f/2,token:o.tokens.length-1,end:-1,open:a.can_open,close:a.can_close})}return o.pos+=a.length,!0}function n(o,r){const i=[],s=r.length;for(let a=0;a<s;a++){const u=r[a];if(u.marker!==61||u.end===-1)continue;const c=r[u.end],f=o.tokens[u.token];f.type="mark_open",f.tag="mark",f.nesting=1,f.markup="==",f.content="";const d=o.tokens[c.token];d.type="mark_close",d.tag="mark",d.nesting=-1,d.markup="==",d.content="",o.tokens[c.token-1].type==="text"&&o.tokens[c.token-1].content==="="&&i.push(c.token-1)}for(;i.length;){const a=i.pop();let u=a+1;for(;u<o.tokens.length&&o.tokens[u].type==="mark_close";)u++;if(u--,a!==u){const c=o.tokens[u];o.tokens[u]=o.tokens[a],o.tokens[a]=c}}}e.inline.ruler.before("emphasis","mark",t),e.inline.ruler2.before("emphasis","mark",function(o){let r;const i=o.tokens_meta,s=(o.tokens_meta||[]).length;for(n(o,o.delimiters),r=0;r<s;r++)i[r]&&i[r].delimiters&&n(o,i[r].delimiters)})}const Rs=/\\([ \\!"#$%&'()*+,./:;<=>?@[\]^_`{|}~-])/g;function Ls(e,t){const n=e.posMax,o=e.pos;if(e.src.charCodeAt(o)!==126||t||o+2>=n)return!1;e.pos=o+1;let r=!1;for(;e.pos<n;){if(e.src.charCodeAt(e.pos)===126){r=!0;break}e.md.inline.skipToken(e)}if(!r||o+1===e.pos)return e.pos=o,!1;const i=e.src.slice(o+1,e.pos);if(i.match(/(^|[^\\])(\\\\)*\s/))return e.pos=o,!1;e.posMax=e.pos,e.pos=o+1;const s=e.push("sub_open","sub",1);s.markup="~";const a=e.push("text","",0);a.content=i.replace(Rs,"$1");const u=e.push("sub_close","sub",-1);return u.markup="~",e.pos=e.posMax+1,e.posMax=n,!0}function Os(e){e.inline.ruler.after("emphasis","sub",Ls)}const Ps=/\\([ \\!"#$%&'()*+,./:;<=>?@[\]^_`{|}~-])/g;function zs(e,t){const n=e.posMax,o=e.pos;if(e.src.charCodeAt(o)!==94||t||o+2>=n)return!1;e.pos=o+1;let r=!1;for(;e.pos<n;){if(e.src.charCodeAt(e.pos)===94){r=!0;break}e.md.inline.skipToken(e)}if(!r||o+1===e.pos)return e.pos=o,!1;const i=e.src.slice(o+1,e.pos);if(i.match(/(^|[^\\])(\\\\)*\s/))return e.pos=o,!1;e.posMax=e.pos,e.pos=o+1;const s=e.push("sup_open","sup",1);s.markup="^";const a=e.push("text","",0);a.content=i.replace(Ps,"$1");const u=e.push("sup_close","sup",-1);return u.markup="^",e.pos=e.posMax+1,e.posMax=n,!0}function Vs(e){e.inline.ruler.after("emphasis","sup",zs)}var js=Xi({"../../node_modules/.pnpm/markdown-it-task-checkbox@1.0.6/node_modules/markdown-it-task-checkbox/index.js":((e,t)=>{t.exports=function(g,k){k=Object.assign({},{disabled:!0,divWrap:!1,divClass:"checkbox",idPrefix:"cbx_",ulClass:"task-list",liClass:"task-list-item"},k),g.core.ruler.after("inline","github-task-lists",function(_){for(var y=_.tokens,w=0,x=2;x<y.length;x++)r(y,x)&&(i(y[x],w,k,_.Token),w+=1,n(y[x-2],"class",k.liClass),n(y[o(y,x-2)],"class",k.ulClass))})};function n(g,k,_){var y=g.attrIndex(k),w=[k,_];y<0?g.attrPush(w):g.attrs[y]=w}function o(g,k){for(var _=g[k].level-1,y=k-1;y>=0;y--)if(g[y].level===_)return y;return-1}function r(g,k){return d(g[k])&&h(g[k-1])&&p(g[k-2])&&m(g[k])}function i(g,k,_,y){var w=_.idPrefix+k;g.children[0].content=g.children[0].content.slice(3),g.children.unshift(a(w,y)),g.children.push(u(y)),g.children.unshift(s(g,w,_,y)),_.divWrap&&(g.children.unshift(c(_,y)),g.children.push(f(y)))}function s(g,k,_,y){var w=new y("checkbox_input","input",0);return w.attrs=[["type","checkbox"],["id",k]],/^\[[xX]\][ \u00A0]/.test(g.content)===!0&&w.attrs.push(["checked","true"]),_.disabled===!0&&w.attrs.push(["disabled","true"]),w}function a(g,k){var _=new k("label_open","label",1);return _.attrs=[["for",g]],_}function u(g){return new g("label_close","label",-1)}function c(g,k){var _=new k("checkbox_open","div",0);return _.attrs=[["class",g.divClass]],_}function f(g){return new g("checkbox_close","div",-1)}function d(g){return g.type==="inline"}function h(g){return g.type==="paragraph_open"}function p(g){return g.type==="list_item_open"}function m(g){return/^\[[xX \u00A0]\][ \u00A0]/.test(g.content)}})}),Ro=Yi(js()),Hs=Object.defineProperty,Gi=e=>{let t={};for(var n in e)Hs(t,n,{get:e[n],enumerable:!0});return t},Ji=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Qi=/[\0-\x1F\x7F-\x9F]/,qs=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/,ho=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,el=/[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/,tl=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,nl=Zi({Any:()=>Ji,Cc:()=>Qi,Cf:()=>qs,P:()=>ho,S:()=>el,Z:()=>tl});function Ws(e){const t={};e=e||{},t.src_Any=Ji.source,t.src_Cc=Qi.source,t.src_Z=tl.source,t.src_P=ho.source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");const n="[><|]";return t.src_pseudo_letter="(?:(?!"+n+"|"+t.src_ZPCc+")"+t.src_Any+")",t.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]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|"+n+"|"+t.src_ZPCc+")(?!"+(e["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+`|[><|]|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!`+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+t.src_ZCc+"|[.]|$)|"+(e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+t.src_ZCc+"|$)|;(?!"+t.src_ZCc+"|$)|\\!+(?!"+t.src_ZCc+"|[!]|$)|\\?(?!"+t.src_ZCc+"|[?]|$))+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy="(^|"+n+'|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}function Gr(e){return Array.prototype.slice.call(arguments,1).forEach(function(t){t&&Object.keys(t).forEach(function(n){e[n]=t[n]})}),e}function Er(e){return Object.prototype.toString.call(e)}function Us(e){return Er(e)==="[object String]"}function Ks(e){return Er(e)==="[object Object]"}function Xs(e){return Er(e)==="[object RegExp]"}function Lo(e){return Er(e)==="[object Function]"}function Zs(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}const rl={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function Ys(e){return Object.keys(e||{}).reduce(function(t,n){return t||rl.hasOwnProperty(n)},!1)}const Gs={"http:":{validate:function(e,t,n){const o=e.slice(t);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(o)?o.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,n){const o=e.slice(t);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(o)?t>=3&&e[t-3]===":"||t>=3&&e[t-3]==="/"?0:o.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){const o=e.slice(t);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(o)?o.match(n.re.mailto)[0].length:0}}},Js="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]",Qs="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function ea(e){e.__index__=-1,e.__text_cache__=""}function ta(e){return function(t,n){const o=t.slice(n);return e.test(o)?o.match(e)[0].length:0}}function Oo(){return function(e,t){t.normalize(e)}}function gr(e){const t=e.re=Ws(e.__opts__),n=e.__tlds__.slice();e.onCompile(),e.__tlds_replaced__||n.push(Js),n.push(t.src_xn),t.src_tlds=n.join("|");function o(a){return a.replace("%TLDS%",t.src_tlds)}t.email_fuzzy=RegExp(o(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(o(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(o(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(o(t.tpl_host_fuzzy_test),"i");const r=[];e.__compiled__={};function i(a,u){throw new Error('(LinkifyIt) Invalid schema "'+a+'": '+u)}Object.keys(e.__schemas__).forEach(function(a){const u=e.__schemas__[a];if(u===null)return;const c={validate:null,link:null};if(e.__compiled__[a]=c,Ks(u)){Xs(u.validate)?c.validate=ta(u.validate):Lo(u.validate)?c.validate=u.validate:i(a,u),Lo(u.normalize)?c.normalize=u.normalize:u.normalize?i(a,u):c.normalize=Oo();return}if(Us(u)){r.push(a);return}i(a,u)}),r.forEach(function(a){e.__compiled__[e.__schemas__[a]]&&(e.__compiled__[a].validate=e.__compiled__[e.__schemas__[a]].validate,e.__compiled__[a].normalize=e.__compiled__[e.__schemas__[a]].normalize)}),e.__compiled__[""]={validate:null,normalize:Oo()};const s=Object.keys(e.__compiled__).filter(function(a){return a.length>0&&e.__compiled__[a]}).map(Zs).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+s+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+s+")","ig"),e.re.schema_at_start=RegExp("^"+e.re.schema_search.source,"i"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),ea(e)}function na(e,t){const n=e.__index__,o=e.__last_index__,r=e.__text_cache__.slice(n,o);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=o+t,this.raw=r,this.text=r,this.url=r}function Jr(e,t){const n=new na(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function wt(e,t){if(!(this instanceof wt))return new wt(e,t);t||Ys(e)&&(t=e,e={}),this.__opts__=Gr({},rl,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=Gr({},Gs,e),this.__compiled__={},this.__tlds__=Qs,this.__tlds_replaced__=!1,this.re={},gr(this)}wt.prototype.add=function(t,n){return this.__schemas__[t]=n,gr(this),this};wt.prototype.set=function(t){return this.__opts__=Gr(this.__opts__,t),this};wt.prototype.test=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return!1;let n,o,r,i,s,a,u,c,f;if(this.re.schema_test.test(t)){for(u=this.re.schema_search,u.lastIndex=0;(n=u.exec(t))!==null;)if(i=this.testSchemaAt(t,n[2],u.lastIndex),i){this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+i;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(c=t.search(this.re.host_fuzzy_test),c>=0&&(this.__index__<0||c<this.__index__)&&(o=t.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(s=o.index+o[1].length,(this.__index__<0||s<this.__index__)&&(this.__schema__="",this.__index__=s,this.__last_index__=o.index+o[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(f=t.indexOf("@"),f>=0&&(r=t.match(this.re.email_fuzzy))!==null&&(s=r.index+r[1].length,a=r.index+r[0].length,(this.__index__<0||s<this.__index__||s===this.__index__&&a>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=s,this.__last_index__=a))),this.__index__>=0};wt.prototype.pretest=function(t){return this.re.pretest.test(t)};wt.prototype.testSchemaAt=function(t,n,o){return this.__compiled__[n.toLowerCase()]?this.__compiled__[n.toLowerCase()].validate(t,o,this):0};wt.prototype.match=function(t){const n=[];let o=0;this.__index__>=0&&this.__text_cache__===t&&(n.push(Jr(this,o)),o=this.__last_index__);let r=o?t.slice(o):t;for(;this.test(r);)n.push(Jr(this,o)),r=r.slice(this.__last_index__),o+=this.__last_index__;return n.length?n:null};wt.prototype.matchAtStart=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return null;const n=this.re.schema_at_start.exec(t);if(!n)return null;const o=this.testSchemaAt(t,n[2],n[0].length);return o?(this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+o,Jr(this,0)):null};wt.prototype.tlds=function(t,n){return t=Array.isArray(t)?t:[t],n?(this.__tlds__=this.__tlds__.concat(t).sort().filter(function(o,r,i){return o!==i[r-1]}).reverse(),gr(this),this):(this.__tlds__=t.slice(),this.__tlds_replaced__=!0,gr(this),this)};wt.prototype.normalize=function(t){t.schema||(t.url="http://"+t.url),t.schema==="mailto:"&&!/^mailto:/i.test(t.url)&&(t.url="mailto:"+t.url)};wt.prototype.onCompile=function(){};var ol=wt,ra=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏઑඡ༉༦ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲϏϢϸontourIntegraìȹoɴ\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲy;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱còJTabcdfgorstרׯؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ߂ߐĀiyޱrc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣসে্ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४ĀnrࢃgleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpwਖਛgȀLRlr৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼અઋp;椅y;䐜Ādl੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑඞcy;䐊cute;䅃ƀaeyહાron;䅇dil;䅅;䐝ƀgswે૰ativeƀMTV૨ediumSpace;怋hiĀcn૦ëeryThiîtedĀGLଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷreak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater;EFGLSTஶஷ扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨setĀ;Eೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂෛ෧ขภยา฿ไlig;䅒cute耻Ó䃓Āiyීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲcr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬืde耻Õ䃕es;樷ml耻Ö䃖erĀBP๋Āar๐๓r;怾acĀek๚;揞et;掴arenthesis;揜ҀacfhilorsງຊຏຒດຝະrtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ檻cedesȀ;EST່້扺qual;檯lantEqual;扼ilde;找me;怳Ādpuct;戏ortionĀ;aȥl;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL憒ar;懥eftArrow;懄eiling;按oǵ\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄቕቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHcቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗ĀeiቻDzኀ\0ኇefore;戴a;䎘ĀcnኘkSpace;쀀 Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtèa;䎖r;愨pf;愤cr;쀀𝒵ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒;Eaeiopᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;eᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;eᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰᝃᝈ០៦ᠹᡐᜍ᥈ᥰot;櫭ĀcrᛶkȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀakoᠦᠵĀcn៲ᠣkƀlst֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ;敛;敘;攘;攔;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģbar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;elƀ;bhᥨᥩᥫ䁜;槅sub;柈ŬᥴlĀ;e怢t»pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭒\0᯽\0ᰌƀcprᦲute;䄇̀;abcdsᦿᧀᧄ᧕᧙戩nd;橄rcup;橉Āau᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r;Ecefms᩠ᩢᩫ᪤᪪旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ\0\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»eóɍǧ\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯delprvw᭠᭬᭷ᮂᮬᯔarrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;pᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰻᰿ᱝᱩᱵᲞᲬᲷᴍᵻᶑᶫᶻ᷆᷍ròar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂᳖᳜᳠mƀ;oș᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄĀDoḆᴴoôĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»ṺƀaeiἒἚls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧\0耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₥₰₴⃰℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽ƀ;qsؾٌlanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqrⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0proør;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼ròòΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonóquigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roøurĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨íistĀ;sடr;쀀𝔫ȀEest⩦⩹⩼ƀ;qs⩭ƀ;qs⩴lanôií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast⭕⭚⭟lleìl;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖchimpqu⮽⯍⯙⬄⯤⯯Ȁ;cerല⯆ഷ⯉uå;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭ååഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñĀ;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;cⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācrir;榿;쀀𝔬ͯ\0\0\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕⶥⶨrò᪀Āirⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔǒr;榷rp;榹;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ\0\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ脀¶;l䂶leìЃɩ\0\0m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳ᤈ⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t⾴ïrel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⋢⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔ABHabcdefhilmnoprstuxけさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstwガクシスゼゾダッデナp;極Ā;fゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ìâヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘rrowĀ;tㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowóarpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓ròaòՑ;怏oustĀ;a㈞掱che»mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì耻䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;qኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫwar;椪lig耻ß䃟㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rëƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproøim»ኬsðኞĀas㚺㚮ðrn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈadempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xôheadĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roðtré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜtré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),oa=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0))),qr;const ia=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),la=(qr=String.fromCodePoint)!==null&&qr!==void 0?qr:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t};function sa(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=ia.get(e))!==null&&t!==void 0?t:e}var Ke;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(Ke||(Ke={}));const aa=32;var Qt;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(Qt||(Qt={}));function Qr(e){return e>=Ke.ZERO&&e<=Ke.NINE}function ca(e){return e>=Ke.UPPER_A&&e<=Ke.UPPER_F||e>=Ke.LOWER_A&&e<=Ke.LOWER_F}function ua(e){return e>=Ke.UPPER_A&&e<=Ke.UPPER_Z||e>=Ke.LOWER_A&&e<=Ke.LOWER_Z||Qr(e)}function da(e){return e===Ke.EQUALS||ua(e)}var We;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(We||(We={}));var Jt;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(Jt||(Jt={}));var fa=class{constructor(e,t,n){this.decodeTree=e,this.emitCodePoint=t,this.errors=n,this.state=We.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Jt.Strict}startEntity(e){this.decodeMode=e,this.state=We.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,t){switch(this.state){case We.EntityStart:return e.charCodeAt(t)===Ke.NUM?(this.state=We.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1)):(this.state=We.NamedEntity,this.stateNamedEntity(e,t));case We.NumericStart:return this.stateNumericStart(e,t);case We.NumericDecimal:return this.stateNumericDecimal(e,t);case We.NumericHex:return this.stateNumericHex(e,t);case We.NamedEntity:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){return t>=e.length?-1:(e.charCodeAt(t)|aa)===Ke.LOWER_X?(this.state=We.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=We.NumericDecimal,this.stateNumericDecimal(e,t))}addToNumericResult(e,t,n,o){if(t!==n){const r=n-t;this.result=this.result*Math.pow(o,r)+parseInt(e.substr(t,r),o),this.consumed+=r}}stateNumericHex(e,t){const n=t;for(;t<e.length;){const o=e.charCodeAt(t);if(Qr(o)||ca(o))t+=1;else return this.addToNumericResult(e,n,t,16),this.emitNumericEntity(o,3)}return this.addToNumericResult(e,n,t,16),-1}stateNumericDecimal(e,t){const n=t;for(;t<e.length;){const o=e.charCodeAt(t);if(Qr(o))t+=1;else return this.addToNumericResult(e,n,t,10),this.emitNumericEntity(o,2)}return this.addToNumericResult(e,n,t,10),-1}emitNumericEntity(e,t){var n;if(this.consumed<=t)return(n=this.errors)===null||n===void 0||n.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(e===Ke.SEMI)this.consumed+=1;else if(this.decodeMode===Jt.Strict)return 0;return this.emitCodePoint(sa(this.result),this.consumed),this.errors&&(e!==Ke.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(e,t){const{decodeTree:n}=this;let o=n[this.treeIndex],r=(o&Qt.VALUE_LENGTH)>>14;for(;t<e.length;t++,this.excess++){const i=e.charCodeAt(t);if(this.treeIndex=ha(n,o,this.treeIndex+Math.max(1,r),i),this.treeIndex<0)return this.result===0||this.decodeMode===Jt.Attribute&&(r===0||da(i))?0:this.emitNotTerminatedNamedEntity();if(o=n[this.treeIndex],r=(o&Qt.VALUE_LENGTH)>>14,r!==0){if(i===Ke.SEMI)return this.emitNamedEntityData(this.treeIndex,r,this.consumed+this.excess);this.decodeMode!==Jt.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var e;const{result:t,decodeTree:n}=this,o=(n[t]&Qt.VALUE_LENGTH)>>14;return this.emitNamedEntityData(t,o,this.consumed),(e=this.errors)===null||e===void 0||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,t,n){const{decodeTree:o}=this;return this.emitCodePoint(t===1?o[e]&~Qt.VALUE_LENGTH:o[e+1],n),t===3&&this.emitCodePoint(o[e+2],n),n}end(){var e;switch(this.state){case We.NamedEntity:return this.result!==0&&(this.decodeMode!==Jt.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case We.NumericDecimal:return this.emitNumericEntity(0,2);case We.NumericHex:return this.emitNumericEntity(0,3);case We.NumericStart:return(e=this.errors)===null||e===void 0||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case We.EntityStart:return 0}}};function il(e){let t="";const n=new fa(e,o=>t+=la(o));return function(r,i){let s=0,a=0;for(;(a=r.indexOf("&",a))>=0;){t+=r.slice(s,a),n.startEntity(i);const c=n.write(r,a+1);if(c<0){s=a+n.end();break}s=a+c,a=c===0?s+1:s}const u=t+r.slice(s);return t="",u}}function ha(e,t,n,o){const r=(t&Qt.BRANCH_LENGTH)>>7,i=t&Qt.JUMP_TABLE;if(r===0)return i!==0&&o===i?n:-1;if(i){const u=o-i;return u<0||u>=r?-1:e[n+u]-1}let s=n,a=s+r-1;for(;s<=a;){const u=s+a>>>1,c=e[u];if(c<o)s=u+1;else if(c>o)a=u-1;else return e[u+r]}return-1}const pa=il(ra);il(oa);function ma(e,t=Jt.Legacy){return pa(e,t)}const Po={};function ga(e){let t=Po[e];if(t)return t;t=Po[e]=[];for(let n=0;n<128;n++){const o=String.fromCharCode(n);t.push(o)}for(let n=0;n<e.length;n++){const o=e.charCodeAt(n);t[o]="%"+("0"+o.toString(16).toUpperCase()).slice(-2)}return t}function Sr(e,t){typeof t!="string"&&(t=Sr.defaultChars);const n=ga(t);return e.replace(/(%[a-f0-9]{2})+/gi,function(o){let r="";for(let i=0,s=o.length;i<s;i+=3){const a=parseInt(o.slice(i+1,i+3),16);if(a<128){r+=n[a];continue}if((a&224)===192&&i+3<s){const u=parseInt(o.slice(i+4,i+6),16);if((u&192)===128){const c=a<<6&1984|u&63;c<128?r+="��":r+=String.fromCharCode(c),i+=3;continue}}if((a&240)===224&&i+6<s){const u=parseInt(o.slice(i+4,i+6),16),c=parseInt(o.slice(i+7,i+9),16);if((u&192)===128&&(c&192)===128){const f=a<<12&61440|u<<6&4032|c&63;f<2048||f>=55296&&f<=57343?r+="���":r+=String.fromCharCode(f),i+=6;continue}}if((a&248)===240&&i+9<s){const u=parseInt(o.slice(i+4,i+6),16),c=parseInt(o.slice(i+7,i+9),16),f=parseInt(o.slice(i+10,i+12),16);if((u&192)===128&&(c&192)===128&&(f&192)===128){let d=a<<18&1835008|u<<12&258048|c<<6&4032|f&63;d<65536||d>1114111?r+="����":(d-=65536,r+=String.fromCharCode(55296+(d>>10),56320+(d&1023))),i+=9;continue}}r+="�"}return r})}Sr.defaultChars=";/?:@&=+$,#";Sr.componentChars="";var eo=Sr;const zo={};function ka(e){let t=zo[e];if(t)return t;t=zo[e]=[];for(let n=0;n<128;n++){const o=String.fromCharCode(n);/^[0-9a-z]$/i.test(o)?t.push(o):t.push("%"+("0"+n.toString(16).toUpperCase()).slice(-2))}for(let n=0;n<e.length;n++)t[e.charCodeAt(n)]=e[n];return t}function Mr(e,t,n){typeof t!="string"&&(n=t,t=Mr.defaultChars),typeof n=="undefined"&&(n=!0);const o=ka(t);let r="";for(let i=0,s=e.length;i<s;i++){const a=e.charCodeAt(i);if(n&&a===37&&i+2<s&&/^[0-9a-f]{2}$/i.test(e.slice(i+1,i+3))){r+=e.slice(i,i+3),i+=2;continue}if(a<128){r+=o[a];continue}if(a>=55296&&a<=57343){if(a>=55296&&a<=56319&&i+1<s){const u=e.charCodeAt(i+1);if(u>=56320&&u<=57343){r+=encodeURIComponent(e[i]+e[i+1]),i++;continue}}r+="%EF%BF%BD";continue}r+=encodeURIComponent(e[i])}return r}Mr.defaultChars=";/?:@&=+$,-_.!~*'()#";Mr.componentChars="-_.!~*'()";var ll=Mr;function po(e){let t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&e.hostname.indexOf(":")!==-1?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",t+=e.search||"",t+=e.hash||"",t}function kr(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}const va=/^([a-z0-9.+-]+:)/i,wa=/:[0-9]*$/,ya=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,xa=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r",`
|
|
9
|
+
`," "]),ba=["'"].concat(xa),Vo=["%","/","?",";","#"].concat(ba),jo=["/","?","#"],_a=255,Ho=/^[+a-z0-9A-Z_-]{0,63}$/,Ca=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,qo={javascript:!0,"javascript:":!0},Wo={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function Ea(e,t){if(e&&e instanceof kr)return e;const n=new kr;return n.parse(e,t),n}kr.prototype.parse=function(e,t){let n,o,r,i=e;if(i=i.trim(),!t&&e.split("#").length===1){const c=ya.exec(i);if(c)return this.pathname=c[1],c[2]&&(this.search=c[2]),this}let s=va.exec(i);if(s&&(s=s[0],n=s.toLowerCase(),this.protocol=s,i=i.substr(s.length)),(t||s||i.match(/^\/\/[^@\/]+@[^@\/]+/))&&(r=i.substr(0,2)==="//",r&&!(s&&qo[s])&&(i=i.substr(2),this.slashes=!0)),!qo[s]&&(r||s&&!Wo[s])){let c=-1;for(let m=0;m<jo.length;m++)o=i.indexOf(jo[m]),o!==-1&&(c===-1||o<c)&&(c=o);let f,d;c===-1?d=i.lastIndexOf("@"):d=i.lastIndexOf("@",c),d!==-1&&(f=i.slice(0,d),i=i.slice(d+1),this.auth=f),c=-1;for(let m=0;m<Vo.length;m++)o=i.indexOf(Vo[m]),o!==-1&&(c===-1||o<c)&&(c=o);c===-1&&(c=i.length),i[c-1]===":"&&c--;const h=i.slice(0,c);i=i.slice(c),this.parseHost(h),this.hostname=this.hostname||"";const p=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!p){const m=this.hostname.split(/\./);for(let g=0,k=m.length;g<k;g++){const _=m[g];if(_&&!_.match(Ho)){let y="";for(let w=0,x=_.length;w<x;w++)_.charCodeAt(w)>127?y+="x":y+=_[w];if(!y.match(Ho)){const w=m.slice(0,g),x=m.slice(g+1),S=_.match(Ca);S&&(w.push(S[1]),x.unshift(S[2])),x.length&&(i=x.join(".")+i),this.hostname=w.join(".");break}}}}this.hostname.length>_a&&(this.hostname=""),p&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}const a=i.indexOf("#");a!==-1&&(this.hash=i.substr(a),i=i.slice(0,a));const u=i.indexOf("?");return u!==-1&&(this.search=i.substr(u),i=i.slice(0,u)),i&&(this.pathname=i),Wo[n]&&this.hostname&&!this.pathname&&(this.pathname=""),this};kr.prototype.parseHost=function(e){let t=wa.exec(e);t&&(t=t[0],t!==":"&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};var mo=Ea,sl=Zi({decode:()=>eo,encode:()=>ll,format:()=>po,parse:()=>mo}),Sa=Xi({"../../node_modules/.pnpm/punycode.js@2.3.1/node_modules/punycode.js/punycode.js":((e,t)=>{const d=/^xn--/,h=/[^\0-\x7F]/,p=/[\x2E\u3002\uFF0E\uFF61]/g,m={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},g=35,k=Math.floor,_=String.fromCharCode;function y(P){throw new RangeError(m[P])}function w(P,L){const V=[];let j=P.length;for(;j--;)V[j]=L(P[j]);return V}function x(P,L){const V=P.split("@");let j="";V.length>1&&(j=V[0]+"@",P=V[1]),P=P.replace(p,".");const q=w(P.split("."),L).join(".");return j+q}function S(P){const L=[];let V=0;const j=P.length;for(;V<j;){const q=P.charCodeAt(V++);if(q>=55296&&q<=56319&&V<j){const Y=P.charCodeAt(V++);(Y&64512)==56320?L.push(((q&1023)<<10)+(Y&1023)+65536):(L.push(q),V--)}else L.push(q)}return L}const M=P=>String.fromCodePoint(...P),D=function(P){return P>=48&&P<58?26+(P-48):P>=65&&P<91?P-65:P>=97&&P<123?P-97:36},T=function(P,L){return P+22+75*(P<26)-((L!=0)<<5)},b=function(P,L,V){let j=0;for(P=V?k(P/700):P>>1,P+=k(P/L);P>g*26>>1;j+=36)P=k(P/g);return k(j+(g+1)*P/(P+38))},z=function(P){const L=[],V=P.length;let j=0,q=128,Y=72,ee=P.lastIndexOf("-");ee<0&&(ee=0);for(let Q=0;Q<ee;++Q)P.charCodeAt(Q)>=128&&y("not-basic"),L.push(P.charCodeAt(Q));for(let Q=ee>0?ee+1:0;Q<V;){const oe=j;for(let ie=1,le=36;;le+=36){Q>=V&&y("invalid-input");const O=D(P.charCodeAt(Q++));O>=36&&y("invalid-input"),O>k((2147483647-j)/ie)&&y("overflow"),j+=O*ie;const F=le<=Y?1:le>=Y+26?26:le-Y;if(O<F)break;const H=36-F;ie>k(2147483647/H)&&y("overflow"),ie*=H}const ne=L.length+1;Y=b(j-oe,ne,oe==0),k(j/ne)>2147483647-q&&y("overflow"),q+=k(j/ne),j%=ne,L.splice(j++,0,q)}return String.fromCodePoint(...L)},$=function(P){const L=[];P=S(P);const V=P.length;let j=128,q=0,Y=72;for(const oe of P)oe<128&&L.push(_(oe));const ee=L.length;let Q=ee;for(ee&&L.push("-");Q<V;){let oe=2147483647;for(const ie of P)ie>=j&&ie<oe&&(oe=ie);const ne=Q+1;oe-j>k((2147483647-q)/ne)&&y("overflow"),q+=(oe-j)*ne,j=oe;for(const ie of P)if(ie<j&&++q>2147483647&&y("overflow"),ie===j){let le=q;for(let O=36;;O+=36){const F=O<=Y?1:O>=Y+26?26:O-Y;if(le<F)break;const H=le-F,se=36-F;L.push(_(T(F+H%se,0))),le=k(H/se)}L.push(_(T(le,0))),Y=b(q,ne,Q===ee),q=0,++Q}++q,++j}return L.join("")},G={version:"2.3.1",ucs2:{decode:S,encode:M},decode:z,encode:$,toASCII:function(P){return x(P,function(L){return h.test(L)?"xn--"+$(L):L})},toUnicode:function(P){return x(P,function(L){return d.test(L)?z(L.slice(4).toLowerCase()):L})}};t.exports=G})}),al=Yi(Sa()),Ma=Gi({arrayReplaceAt:()=>cl,assign:()=>$a,countLines:()=>Ut,escapeHtml:()=>qa,escapeRE:()=>Ua,fromCodePoint:()=>dl,has:()=>Ta,isMdAsciiPunct:()=>ro,isPunctChar:()=>no,isSpace:()=>Na,isString:()=>Ba,isValidEntityCode:()=>ul,isWhiteSpace:()=>to,lib:()=>Ka,mdurl:()=>sl,normalizeReference:()=>Ia,ucmicro:()=>nl,unescapeAll:()=>Pa,unescapeMd:()=>Oa});function Aa(e){return Object.prototype.toString.call(e)}function Ba(e){return Aa(e)==="[object String]"}const Da=Object.prototype.hasOwnProperty;function Ta(e,t){return Da.call(e,t)}function $a(e,...t){return t.forEach(n=>{if(n){if(typeof n!="object")throw new TypeError(`${String(n)}must be object`);Object.keys(n).forEach(o=>{e[o]=n[o]})}}),e}function Na(e){return e===9||e===32}function to(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}function no(e){return ho.test(e)||el.test(e)}function ro(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function Ia(e){return e=e.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(e=e.replace(/ẞ/g,"ß")),e.toLowerCase().toUpperCase()}function cl(e,t,n){return[...e.slice(0,t),...n,...e.slice(t+1)]}function ul(e){return!(e>=55296&&e<=57343||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534||e>=0&&e<=8||e===11||e>=14&&e<=31||e>=127&&e<=159||e>1114111)}function dl(e){if(e>65535){e-=65536;const t=55296+(e>>10),n=56320+(e&1023);return String.fromCharCode(t,n)}return String.fromCharCode(e)}const fl=/\\([!"#$%&'()*+,\-\./:;<=>?@[\\\]^_`{|}~])/g,Fa=new RegExp(`${fl.source}|${/&([a-z#][a-z0-9]{1,31});/gi.source}`,"gi"),Ra=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function La(e,t){if(t.charCodeAt(0)===35&&Ra.test(t)){const o=t[1].toLowerCase()==="x"?Number.parseInt(t.slice(2),16):Number.parseInt(t.slice(1),10);return ul(o)?dl(o):e}const n=ma(e);return n!==e?n:e}function Oa(e){return e.includes("\\")?e.replace(fl,"$1"):e}function Pa(e){return!e.includes("\\")&&!e.includes("&")?e:e.replace(Fa,(t,n,o)=>n||La(t,o))}const za=/[&<>"]/,Va=/[&<>"]/g,ja={"&":"&","<":"<",">":">",'"':"""};function Ha(e){return ja[e]}function qa(e){return za.test(e)?e.replace(Va,Ha):e}const Wa=/[.?*+^$[\]\\(){}|-]/g;function Ua(e){return e.replace(Wa,"\\$&")}const Ka={mdurl:sl,ucmicro:nl};function Ut(e){if(e.length===0)return 0;let t=0,n=-1;for(;(n=e.indexOf(`
|
|
10
|
+
`,n+1))!==-1;)t++;return t}function go(e,t,n){let o,r=t;const i={ok:!1,pos:0,str:""};if(e.charCodeAt(r)===60){for(r++;r<n;){if(o=e.charCodeAt(r),o===10||o===60)return i;if(o===62)return i.pos=r+1,i.str=e.slice(t+1,r),i.ok=!0,i;if(o===92&&r+1<n){r+=2;continue}r++}return i}let s=0;for(;r<n&&(o=e.charCodeAt(r),!(o===32||o<32||o===127));){if(o===92&&r+1<n){if(e.charCodeAt(r+1)===32)break;r+=2;continue}if(o===40&&(s++,s>32))return i;if(o===41){if(s===0)break;s--}r++}return t===r||s!==0||(i.str=e.slice(t,r),i.pos=r,i.ok=!0),i}var hl=go;function ko(e,t,n){let o=1,r=!1,i,s;const a=e.posMax,u=e.pos;for(e.pos=t+1;e.pos<a;){if(i=e.src.charCodeAt(e.pos),i===93&&(o--,o===0)){r=!0;break}if(s=e.pos,e.md.inline.skipToken(e),i===91){if(s===e.pos-1)o++;else if(n)return e.pos=u,-1}}let c=-1;return r&&(c=e.pos),e.pos=u,c}var vr=ko;function vo(e,t,n,o){let r,i=t;const s={ok:!1,can_continue:!1,pos:0,str:"",marker:0};if(o)s.str=o.str,s.marker=o.marker;else{if(i>=n)return s;let a=e.charCodeAt(i);if(a!==34&&a!==39&&a!==40)return s;t++,i++,a===40&&(a=41),s.marker=a}for(;i<n;){if(r=e.charCodeAt(i),r===s.marker)return s.pos=i+1,s.str+=e.slice(t,i),s.ok=!0,s;if(r===40&&s.marker===41)return s;r===92&&i+1<n&&i++,i++}return s.can_continue=!0,s.str+=e.slice(t,i),s}var pl=vo;function Ar(e,t){if(!e.attrs)return-1;for(let n=0;n<e.attrs.length;n++)if(e.attrs[n][0]===t)return n;return-1}function wo(e,t){e.attrs||(e.attrs=[]),e.attrs.push(t)}function Xa(e,t,n){const o=Ar(e,t),r=[t,n];o<0?wo(e,r):e.attrs[o]=r}function Za(e,t){const n=Ar(e,t);return n>=0?e.attrs[n][1]:null}function Ya(e,t,n){const o=Ar(e,t);o<0?wo(e,[t,n]):e.attrs[o][1]=`${e.attrs[o][1]} ${n}`}var Ga=Gi({attrGet:()=>Za,attrIndex:()=>Ar,attrJoin:()=>Ya,attrPush:()=>wo,attrSet:()=>Xa,parseLinkDestination:()=>go,parseLinkLabel:()=>ko,parseLinkTitle:()=>vo});const Ja=/^(?:vbscript|javascript|file|data):/,Qa=/^data:image\/(?:gif|png|jpeg|webp);/,ml=["http:","https:","mailto:"];function gl(e){const t=e.trim().toLowerCase();return Ja.test(t)?Qa.test(t):!0}function kl(e){const t=mo(e,!0);if(t.hostname&&(!t.protocol||ml.includes(t.protocol)))try{t.hostname=al.default.toASCII(t.hostname)}catch(n){}return ll(po(t))}function vl(e){const t=mo(e,!0);if(t.hostname&&(!t.protocol||ml.includes(t.protocol)))try{t.hostname=al.default.toUnicode(t.hostname)}catch(n){}return eo(po(t),`${eo.defaultChars}%`)}var mt=class{constructor(e,t,n){X(this,"type");X(this,"tag");X(this,"attrs");X(this,"map");X(this,"nesting");X(this,"level");X(this,"children");X(this,"content");X(this,"markup");X(this,"info");X(this,"meta");X(this,"block");X(this,"hidden");this.type=e,this.tag=t,this.attrs=null,this.map=null,this.nesting=n,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}attrIndex(e){if(!this.attrs)return-1;const t=this.attrs;for(let n=0,o=t.length;n<o;n++)if(t[n][0]===e)return n;return-1}attrPush(e){this.attrs?this.attrs.push(e):this.attrs=[e]}attrSet(e,t){const n=this.attrIndex(e),o=[e,t];n<0?this.attrPush(o):this.attrs[n]=o}attrGet(e){const t=this.attrIndex(e);let n=null;return t>=0&&(n=this.attrs[t][1]),n}attrJoin(e,t){const n=this.attrIndex(e);n<0?this.attrPush([e,t]):this.attrs[n][1]=`${this.attrs[n][1]} ${t}`}};function ec(e){if(e.inlineMode){const t=new mt("inline","",0);t.content=e.src,t.map=[0,1],t.children=[],t.level=0,e.tokens.push(t)}else e.md&&e.md.block&&e.md.block.parse(e.src,e.md,e.env,e.tokens)}function tc(e){const t=e.tokens;for(let n=0,o=t.length;n<o;n++){const r=t[n];r.type==="inline"&&e.md&&(r.children||(r.children=[]),e.md.inline.parse(r.content,e.md,e.env,r.children))}}function nc(e){return/^<a[>\s]/i.test(e)}function rc(e){return/^<\/a\s*>/i.test(e)}function oc(e){var n,o;const t=e.tokens;if((o=(n=e.md)==null?void 0:n.options)!=null&&o.linkify)for(let r=0;r<t.length;r++){const i=t[r];if(i.type!=="inline"||!e.md.linkify.pretest(i.content))continue;let s=i.children||[],a=0;for(let u=s.length-1;u>=0;u--){const c=s[u];if(c.type==="link_close"){for(u--;u>=0&&s[u].level!==c.level&&s[u].type!=="link_open";)u--;continue}if(c.type==="html_inline"&&(nc(c.content)&&a>0&&a--,rc(c.content)&&a++),a>0||c.type!=="text"||!e.md.linkify.test(c.content))continue;const f=c.content;let d=e.md.linkify.match(f)||[];if(d.length===0)continue;const h=[];let p=c.level,m=0;d.length>0&&d[0].index===0&&u>0&&s[u-1].type==="text_special"&&(d=d.slice(1));for(let g=0;g<d.length;g++){const k=d[g],_=e.md.normalizeLink(k.url);if(!e.md.validateLink(_))continue;let y=k.text;k.schema?k.schema==="mailto:"&&!/^mailto:/i.test(y)?y=e.md.normalizeLinkText(`mailto:${y}`).replace(/^mailto:/,""):y=e.md.normalizeLinkText(y):y=e.md.normalizeLinkText(`http://${y}`).replace(/^http:\/\//,"");const w=k.index;if(w>m){const D=new mt("text","",0);D.content=f.slice(m,w),D.level=p,h.push(D)}const x=new mt("link_open","a",1);x.attrs=[["href",_]],x.level=p++,x.markup="linkify",x.info="auto",h.push(x);const S=new mt("text","",0);S.content=y,S.level=p,h.push(S);const M=new mt("link_close","a",-1);M.level=--p,M.markup="linkify",M.info="auto",h.push(M),m=k.lastIndex}if(m!==0){if(m<f.length){const g=new mt("text","",0);g.content=f.slice(m),g.level=p,h.push(g)}i.children=s=cl(s,u,h)}}}}const ic=/\r\n?|\n/g,lc=/\0/g;function sc(e){if(!e||typeof e.src!="string")return;let t=e.src.replace(ic,`
|
|
11
|
+
`);t=t.replace(lc,"�"),e.src=t}function ac(e){var t,n;(n=(t=e.md)==null?void 0:t.options)!=null&&n.typographer&&(e.tokens||[]).forEach(o=>{o.type==="inline"&&Array.isArray(o.children)&&o.children.forEach(r=>{r.type==="text"&&typeof r.content=="string"&&(r.content=r.content.replace(/\.\.\./g,"…").replace(/---/g,"—").replace(/--/g,"–"))})})}var cc=class{constructor(){X(this,"rules",[]);X(this,"cache",null)}invalidateCache(){this.cache=null}push(e,t){const n=this.rules.findIndex(o=>o.name===e);n>=0&&this.rules.splice(n,1),this.rules.push({name:e,fn:t,enabled:!0}),this.invalidateCache()}at(e,t){const n=this.rules.findIndex(o=>o.name===e);if(n<0)throw new Error(`Parser rule not found: ${e}`);this.rules[n].fn=t,this.invalidateCache()}before(e,t,n){const o=this.rules.findIndex(i=>i.name===e);if(o<0)throw new Error(`Parser rule not found: ${e}`);const r=this.rules.findIndex(i=>i.name===t);r>=0&&this.rules.splice(r,1),this.rules.splice(o,0,{name:t,fn:n,enabled:!0}),this.invalidateCache()}after(e,t,n){const o=this.rules.findIndex(i=>i.name===e);if(o<0)throw new Error(`Parser rule not found: ${e}`);const r=this.rules.findIndex(i=>i.name===t);r>=0&&this.rules.splice(r,1),this.rules.splice(o+1,0,{name:t,fn:n,enabled:!0}),this.invalidateCache()}enable(e,t){const n=Array.isArray(e)?e:[e],o=[];for(const r of n){const i=this.rules.findIndex(s=>s.name===r);if(i<0){if(!t)throw new Error(`Rules manager: invalid rule name ${r}`);continue}this.rules[i].enabled||(this.rules[i].enabled=!0,o.push(r))}return o.length&&this.invalidateCache(),o}disable(e,t){const n=Array.isArray(e)?e:[e],o=[];for(const r of n){const i=this.rules.findIndex(s=>s.name===r);if(i<0){if(!t)throw new Error(`Rules manager: invalid rule name ${r}`);continue}this.rules[i].enabled&&(this.rules[i].enabled=!1,o.push(r))}return o.length&&this.invalidateCache(),o}enableOnly(e){const t=new Set(e);let n=!1;for(const o of this.rules){const r=t.has(o.name);o.enabled!==r&&(o.enabled=r,n=!0)}n&&this.invalidateCache()}compileCache(){this.cache=this.rules.filter(e=>e.enabled).map(e=>e.fn)}getRules(e=""){return this.cache||this.compileCache(),this.cache}};const uc=/['"]/,Uo=/['"]/g,Ko="’";function rr(e,t,n){return e.slice(0,t)+n+e.slice(t+1)}function dc(e,t){let n;const o=[],r=t.md&&t.md.options&&t.md.options.quotes||"“”‘’";for(let i=0;i<e.length;i++){const s=e[i],a=e[i].level;for(n=o.length-1;n>=0&&!(o[n].level<=a);n--);if(o.length=n+1,s.type!=="text")continue;let u=s.content,c=0,f=u.length;e:for(;c<f;){Uo.lastIndex=c;const d=Uo.exec(u);if(!d)break;let h=!0,p=!0;c=d.index+1;const m=d[0]==="'";let g=32;if(d.index-1>=0)g=u.charCodeAt(d.index-1);else for(n=i-1;n>=0&&!(e[n].type==="softbreak"||e[n].type==="hardbreak");n--)if(e[n].content){g=e[n].content.charCodeAt(e[n].content.length-1);break}let k=32;if(c<f)k=u.charCodeAt(c);else for(n=i+1;n<e.length&&!(e[n].type==="softbreak"||e[n].type==="hardbreak");n++)if(e[n].content){k=e[n].content.charCodeAt(0);break}const _=ro(g)||no(String.fromCharCode(g)),y=ro(k)||no(String.fromCharCode(k)),w=to(g),x=to(k);if(x?h=!1:y&&(w||_||(h=!1)),w?p=!1:_&&(x||y||(p=!1)),k===34&&d[0]==='"'&&g>=48&&g<=57&&(p=h=!1),h&&p&&(h=_,p=y),!h&&!p){m&&(s.content=rr(s.content,d.index,Ko));continue}if(p)for(n=o.length-1;n>=0;n--){let S=o[n];if(o[n].level<a)break;if(S.single===m&&o[n].level===a){S=o[n];let M,D;m?(M=r[2]||"‘",D=r[3]||"’"):(M=r[0]||"“",D=r[1]||"”"),s.content=rr(s.content,d.index,D),e[S.token].content=rr(e[S.token].content,S.pos,M),c+=D.length-1,S.token===i&&(c+=M.length-1),u=s.content,f=u.length,o.length=n;continue e}}h?o.push({token:i,pos:d.index,single:m,level:a}):p&&m&&(s.content=rr(s.content,d.index,Ko))}}}function fc(e){if(e.md.options.typographer)for(let t=e.tokens.length-1;t>=0;t--){const n=e.tokens[t];if(n.type!=="inline")continue;const o=typeof n.content=="string"?n.content:(n.children||[]).map(r=>r.content||"").join("");!uc.test(o)||!n.children||dc(n.children,e)}}function hc(e){(e.tokens||[]).forEach(t=>{if(t.type==="inline"&&Array.isArray(t.children)){const n=[];for(let o=0;o<t.children.length;o++){const r=t.children[o];if(r.type==="text"){let i=r.content||"";for(;o+1<t.children.length&&t.children[o+1].type==="text";)o++,i+=t.children[o].content||"";const s=new mt("text","",0);s.content=i,s.level=r.level,n.push(s)}else n.push(r)}t.children=n}})}function pc(e){switch(e){case 9:case 32:return!0}return!1}function mc(e,t,n,o){let r=e.bMarks[t]+e.tShift[t],i=e.eMarks[t];const s=e.lineMax;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(r)!==62)return!1;if(o)return!0;const a=[],u=[],c=[],f=[],d=e.md.block.ruler.getRules("blockquote"),h=e.parentType;e.parentType="blockquote";let p=!1,m;for(m=t;m<n;m++){const w=e.sCount[m]<e.blkIndent;if(r=e.bMarks[m]+e.tShift[m],i=e.eMarks[m],r>=i)break;if(e.src.charCodeAt(r++)===62&&!w){let S=e.sCount[m]+1,M,D;e.src.charCodeAt(r)===32?(r++,S++,D=!1,M=!0):e.src.charCodeAt(r)===9?(M=!0,(e.bsCount[m]+S)%4===3?(r++,S++,D=!1):D=!0):M=!1;let T=S;for(a.push(e.bMarks[m]),e.bMarks[m]=r;r<i;){const b=e.src.charCodeAt(r);if(pc(b))b===9?T+=4-(T+e.bsCount[m]+(D?1:0))%4:T++;else break;r++}p=r>=i,u.push(e.bsCount[m]),e.bsCount[m]=e.sCount[m]+1+(M?1:0),c.push(e.sCount[m]),e.sCount[m]=T-S,f.push(e.tShift[m]),e.tShift[m]=r-e.bMarks[m];continue}if(p)break;let x=!1;for(let S=0,M=d.length;S<M;S++)if(d[S](e,m,n,!0)){x=!0;break}if(x){e.lineMax=m,e.blkIndent!==0&&(a.push(e.bMarks[m]),u.push(e.bsCount[m]),f.push(e.tShift[m]),c.push(e.sCount[m]),e.sCount[m]-=e.blkIndent);break}a.push(e.bMarks[m]),u.push(e.bsCount[m]),f.push(e.tShift[m]),c.push(e.sCount[m]),e.sCount[m]=-1}const g=e.blkIndent;e.blkIndent=0;const k=e.push("blockquote_open","blockquote",1);k.markup=">";const _=[t,0];k.map=_,e.md.block.tokenize(e,t,m);const y=e.push("blockquote_close","blockquote",-1);y.markup=">",e.lineMax=s,e.parentType=h,_[1]=e.line;for(let w=0;w<f.length;w++)e.bMarks[w+t]=a[w],e.tShift[w+t]=f[w],e.sCount[w+t]=c[w],e.bsCount[w+t]=u[w];return e.blkIndent=g,!0}function gc(e,t,n){if(e.sCount[t]-e.blkIndent<4)return!1;let o=t+1,r=o;for(;o<n;){if(e.isEmpty(o)){o++;continue}if(e.sCount[o]-e.blkIndent>=4){o++,r=o;continue}break}e.line=r;const i=e.push("code_block","code",0);return i.content=`${e.getLines(t,r,4+e.blkIndent,!1)}
|
|
12
|
+
`,i.map=[t,e.line],!0}function kc(e,t,n,o){let r=e.bMarks[t]+e.tShift[t],i=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||r+3>i)return!1;const s=e.src.charCodeAt(r);if(s!==126&&s!==96)return!1;let a=r;r=e.skipChars(r,s);let u=r-a;if(u<3)return!1;const c=e.src.slice(a,r),f=e.src.slice(r,i);if(s===96&&f.includes(String.fromCharCode(s)))return!1;if(o)return!0;let d=t,h=!1;for(;d++,!(d>=n||(r=a=e.bMarks[d]+e.tShift[d],i=e.eMarks[d],r<i&&e.sCount[d]<e.blkIndent));)if(e.src.charCodeAt(r)===s&&!(e.sCount[d]-e.blkIndent>=4)&&(r=e.skipChars(r,s),!(r-a<u)&&(r=e.skipSpaces(r),!(r<i)))){h=!0;break}u=e.sCount[t],e.line=d+(h?1:0);const p=e.push("fence","code",0);return p.info=f,p.content=e.getLines(t+1,d,u,!0),p.markup=c,p.map=[t,e.line],!0}function Xo(e){switch(e){case 9:case 32:return!0}return!1}function vc(e,t,n,o){let r=e.bMarks[t]+e.tShift[t],i=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let s=e.src.charCodeAt(r);if(s!==35||r>=i)return!1;let a=1;for(s=e.src.charCodeAt(++r);s===35&&r<i&&a<=6;)a++,s=e.src.charCodeAt(++r);if(a>6||r<i&&!Xo(s))return!1;if(o)return!0;i=e.skipSpacesBack(i,r);const u=e.skipCharsBack(i,35,r);u>r&&Xo(e.src.charCodeAt(u-1))&&(i=u),e.line=t+1;const c=e.push("heading_open",`h${String(a)}`,1);c.markup="########".slice(0,a),c.map=[t,e.line];const f=e.push("inline","",0);f.content=e.src.slice(r,i).trim(),f.map=[t,e.line],f.children=[];const d=e.push("heading_close",`h${String(a)}`,-1);return d.markup="########".slice(0,a),!0}function wc(e){switch(e){case 9:case 32:return!0}return!1}function yc(e,t,n,o){const r=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let i=e.bMarks[t]+e.tShift[t];const s=e.src.charCodeAt(i++);if(s!==42&&s!==45&&s!==95)return!1;let a=1;for(;i<r;){const c=e.src.charCodeAt(i++);if(c!==s&&!wc(c))return!1;c===s&&a++}if(a<3)return!1;if(o)return!0;e.line=t+1;const u=e.push("hr","hr",0);return u.map=[t,e.line],u.markup=new Array(a+1).join(String.fromCharCode(s)),!0}var xc=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"];const bc=`<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^"'=<>\`\\x00-\\x20]+|'[^']*'|"[^"]*"))?)*\\s*\\/?>`,_c="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",Cc=new RegExp(`^(?:${bc}|${_c})`),_n=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp(`^</?(${xc.join("|")})(?=(\\s|/?>|$))`,"i"),/^$/,!0],[new RegExp(`${Cc.source}\\s*$`),/^$/,!1]];function Ec(e,t,n,o){let r=e.bMarks[t]+e.tShift[t],i=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(r)!==60)return!1;let s=e.src.slice(r,i),a=0;for(;a<_n.length&&!_n[a][0].test(s);a++);if(a===_n.length)return!1;if(o)return _n[a][2];let u=t+1;if(!_n[a][1].test(s)){for(;u<n&&!(e.sCount[u]<e.blkIndent);u++)if(r=e.bMarks[u]+e.tShift[u],i=e.eMarks[u],s=e.src.slice(r,i),_n[a][1].test(s)){s.length!==0&&u++;break}}e.line=u;const c=e.push("html_block","",0);return c.map=[t,u],c.content=e.getLines(t,u,e.blkIndent,!0),!0}function Sc(e,t,n){const o=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;const r=e.parentType;e.parentType="paragraph";let i=0,s,a=t+1;for(;a<n&&!e.isEmpty(a);a++){if(e.sCount[a]-e.blkIndent>3)continue;if(e.sCount[a]>=e.blkIndent){let p=e.bMarks[a]+e.tShift[a];const m=e.eMarks[a];if(p<m&&(s=e.src.charCodeAt(p),(s===45||s===61)&&(p=e.skipChars(p,s),p=e.skipSpaces(p),p>=m))){i=s===61?1:2;break}}if(e.sCount[a]<0)continue;let h=!1;for(let p=0,m=o.length;p<m;p++)if(o[p](e,a,n,!0)){h=!0;break}if(h)break}if(!i)return!1;const u=e.getLines(t,a,e.blkIndent,!1).trim();e.line=a+1;const c=e.push("heading_open",`h${String(i)}`,1);c.markup=String.fromCharCode(s),c.map=[t,e.line];const f=e.push("inline","",0);f.content=u,f.map=[t,e.line-1],f.children=[];const d=e.push("heading_close",`h${String(i)}`,-1);return d.markup=String.fromCharCode(s),e.parentType=r,!0}function wl(e){switch(e){case 9:case 32:return!0}return!1}function Zo(e,t){const n=e.eMarks[t];let o=e.bMarks[t]+e.tShift[t];const r=e.src.charCodeAt(o++);return r!==42&&r!==45&&r!==43||o<n&&!wl(e.src.charCodeAt(o))?-1:o}function Yo(e,t){const n=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];let r=n;if(r+1>=o)return-1;let i=e.src.charCodeAt(r++);if(i<48||i>57)return-1;for(;;){if(r>=o)return-1;if(i=e.src.charCodeAt(r++),i>=48&&i<=57){if(r-n>=10)return-1;continue}if(i===41||i===46)break;return-1}return r<o&&(i=e.src.charCodeAt(r),!wl(i))?-1:r}function Mc(e,t){const n=e.level+2;for(let o=t+2,r=e.tokens.length-2;o<r;o++)e.tokens[o].level===n&&e.tokens[o].type==="paragraph_open"&&(e.tokens[o+2].hidden=!0,e.tokens[o].hidden=!0,o+=2)}function Ac(e,t,n,o){let r,i,s=0,a=t,u=!0;if(e.sCount[a]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[a]-e.listIndent>=4&&e.sCount[a]<e.blkIndent)return!1;let c=!1;o&&e.parentType==="paragraph"&&e.sCount[a]>=e.blkIndent&&(c=!0);let f,d,h;if((h=Yo(e,a))>=0){if(f=!0,s=e.bMarks[a]+e.tShift[a],d=Number(e.src.slice(s,h-1)),c&&d!==1)return!1}else if((h=Zo(e,a))>=0)f=!1;else return!1;if(c&&e.skipSpaces(h)>=e.eMarks[a])return!1;if(o)return!0;const p=e.src.charCodeAt(h-1),m=e.tokens.length;if(f){const w=e.push("ordered_list_open","ol",1);d!==void 0&&d!==1&&(w.attrs=[["start",String(d)]])}else e.push("bullet_list_open","ul",1);const g=[a,0];e.tokens[e.tokens.length-1].map=g,e.tokens[e.tokens.length-1].markup=String.fromCharCode(p);let k=!1;const _=e.md.block.ruler.getRules("list"),y=e.parentType;for(e.parentType="list";a<n;){i=h,r=e.eMarks[a];const w=e.sCount[a]+h-(e.bMarks[a]+e.tShift[a]);let x=w;for(;i<r;){const P=e.src.charCodeAt(i);if(P===9)x+=4-(x+e.bsCount[a])%4;else if(P===32)x++;else break;i++}const S=i;let M;S>=r?M=1:M=x-w,M>4&&(M=1);const D=w+M,T=e.push("list_item_open","li",1);T.markup=String.fromCharCode(p);const b=[a,0];T.map=b,f&&(T.info=e.src.slice(s,h-1));const z=e.tight,$=e.tShift[a],U=e.sCount[a],K=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=D,e.tight=!0,e.tShift[a]=S-e.bMarks[a],e.sCount[a]=x,S>=r&&e.isEmpty(a+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,a,n,!0),(!e.tight||k)&&(u=!1),k=e.line-a>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=K,e.tShift[a]=$,e.sCount[a]=U,e.tight=z,e.push("list_item_close","li",-1).markup=String.fromCharCode(p),a=e.line,b[1]=a,a>=n||e.sCount[a]<e.blkIndent||e.sCount[a]-e.blkIndent>=4)break;let G=!1;for(let P=0,L=_.length;P<L;P++)if(_[P](e,a,n,!0)){G=!0;break}if(G)break;if(f){if(h=Yo(e,a),h<0)break;s=e.bMarks[a]+e.tShift[a]}else if(h=Zo(e,a),h<0)break;if(p!==e.src.charCodeAt(h-1))break}return f?e.push("ordered_list_close","ol",-1).markup=String.fromCharCode(p):e.push("bullet_list_close","ul",-1).markup=String.fromCharCode(p),g[1]=a,e.line=a,e.parentType=y,u&&Mc(e,m),!0}function Bc(e,t,n){const o=e.md.block.ruler.getRules("paragraph"),r=e.parentType;let i=t+1;for(e.parentType="paragraph";i<n&&!e.isEmpty(i);i++){if(e.sCount[i]-e.blkIndent>3||e.sCount[i]<0)continue;let c=!1;for(let f=0,d=o.length;f<d;f++)if(o[f](e,i,n,!0)){c=!0;break}if(c)break}const s=e.getLines(t,i,e.blkIndent,!1).trim();e.line=i;const a=e.push("paragraph_open","p",1);a.map=[t,e.line];const u=e.push("inline","",0);return u.content=s,u.map=[t,e.line],u.children=[],e.push("paragraph_close","p",-1),e.parentType=r,!0}function or(e){switch(e){case 9:case 32:return!0}return!1}function Dc(e){return e=e.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ".toLowerCase()&&(e=e.toLowerCase()),e.toLowerCase().toUpperCase().toLowerCase()}function Tc(e,t,n,o){let r=e.bMarks[t]+e.tShift[t],i=e.eMarks[t],s=t+1;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(r)!==91)return!1;function a(y){const w=e.lineMax;if(y>=w||e.isEmpty(y))return null;let x=!1;if(e.sCount[y]-e.blkIndent>3&&(x=!0),e.sCount[y]<0&&(x=!0),!x){const D=e.md.block.ruler.getRules("reference"),T=e.parentType;e.parentType="reference";let b=!1;for(let z=0,$=D.length;z<$;z++)if(D[z](e,y,w,!0)){b=!0;break}if(e.parentType=T,b)return null}const S=e.bMarks[y]+e.tShift[y],M=e.eMarks[y];return e.src.slice(S,M+1)}let u=e.src.slice(r,i+1);i=u.length;let c=-1;for(r=1;r<i;r++){const y=u.charCodeAt(r);if(y===91)return!1;if(y===93){c=r;break}else if(y===10){const w=a(s);w!==null&&(u+=w,i=u.length,s++)}else if(y===92&&(r++,r<i&&u.charCodeAt(r)===10)){const w=a(s);w!==null&&(u+=w,i=u.length,s++)}}if(c<0||u.charCodeAt(c+1)!==58)return!1;for(r=c+2;r<i;r++){const y=u.charCodeAt(r);if(y===10){const w=a(s);w!==null&&(u+=w,i=u.length,s++)}else if(!or(y))break}const f=e.md.helpers.parseLinkDestination(u,r,i);if(!f.ok)return!1;const d=e.md.normalizeLink(f.str);if(!e.md.validateLink(d))return!1;r=f.pos;const h=r,p=s,m=r;for(;r<i;r++){const y=u.charCodeAt(r);if(y===10){const w=a(s);w!==null&&(u+=w,i=u.length,s++)}else if(!or(y))break}let g=e.md.helpers.parseLinkTitle(u,r,i);for(;g.can_continue;){const y=a(s);if(y===null)break;u+=y,r=i,i=u.length,s++,g=e.md.helpers.parseLinkTitle(u,r,i,g)}let k;for(r<i&&m!==r&&g.ok?(k=g.str,r=g.pos):(k="",r=h,s=p);r<i&&or(u.charCodeAt(r));)r++;if(r<i&&u.charCodeAt(r)!==10&&k)for(k="",r=h,s=p;r<i&&or(u.charCodeAt(r));)r++;if(r<i&&u.charCodeAt(r)!==10)return!1;const _=Dc(u.slice(1,c));return _?(o||(typeof e.env.references=="undefined"&&(e.env.references={}),typeof e.env.references[_]=="undefined"&&(e.env.references[_]={title:k,href:d}),e.line=s),!0):!1}function Wr(e){switch(e){case 9:case 32:return!0}return!1}const $c=65536;function Ur(e,t){const n=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];return e.src.slice(n,o)}function Go(e){const t=[],n=e.length;let o=0,r=e.charCodeAt(o),i=!1,s=0,a="";for(;o<n;)r===124&&(i?(a+=e.substring(s,o-1),s=o):(t.push(a+e.substring(s,o)),a="",s=o+1)),i=r===92,o++,r=e.charCodeAt(o);return t.push(a+e.substring(s)),t}function Nc(e,t,n,o){if(t+2>n)return!1;let r=t+1;if(e.sCount[r]<e.blkIndent||e.sCount[r]-e.blkIndent>=4)return!1;let i=e.bMarks[r]+e.tShift[r];if(i>=e.eMarks[r])return!1;const s=e.src.charCodeAt(i++);if(s!==124&&s!==45&&s!==58||i>=e.eMarks[r])return!1;const a=e.src.charCodeAt(i++);if(a!==124&&a!==45&&a!==58&&!Wr(a)||s===45&&Wr(a))return!1;for(;i<e.eMarks[r];){const x=e.src.charCodeAt(i);if(x!==124&&x!==45&&x!==58&&!Wr(x))return!1;i++}let u=Ur(e,t+1),c=u.split("|");const f=[];for(let x=0;x<c.length;x++){const S=c[x].trim();if(!S){if(x===0||x===c.length-1)continue;return!1}if(!/^:?-+:?$/.test(S))return!1;S.charCodeAt(S.length-1)===58?f.push(S.charCodeAt(0)===58?"center":"right"):S.charCodeAt(0)===58?f.push("left"):f.push("")}if(u=Ur(e,t).trim(),!u.includes("|")||e.sCount[t]-e.blkIndent>=4)return!1;c=Go(u),c.length&&c[0]===""&&c.shift(),c.length&&c[c.length-1]===""&&c.pop();const d=c.length;if(d===0||d!==f.length)return!1;if(o)return!0;const h=e.parentType;e.parentType="table";const p=e.md.block.ruler.getRules("blockquote"),m=e.push("table_open","table",1),g=[t,0];m.map=g;const k=e.push("thead_open","thead",1);k.map=[t,t+1];const _=e.push("tr_open","tr",1);_.map=[t,t+1];for(let x=0;x<c.length;x++){const S=e.push("th_open","th",1);f[x]&&(S.attrs=[["style",`text-align:${f[x]}`]]);const M=e.push("inline","",0);M.content=c[x].trim(),M.children=[],e.push("th_close","th",-1)}e.push("tr_close","tr",-1),e.push("thead_close","thead",-1);let y,w=0;for(r=t+2;r<n&&!(e.sCount[r]<e.blkIndent);r++){let x=!1;for(let M=0,D=p.length;M<D;M++)if(p[M](e,r,n,!0)){x=!0;break}if(x||(u=Ur(e,r).trim(),!u)||e.sCount[r]-e.blkIndent>=4||(c=Go(u),c.length&&c[0]===""&&c.shift(),c.length&&c[c.length-1]===""&&c.pop(),w+=d-c.length,w>$c))break;if(r===t+2){const M=e.push("tbody_open","tbody",1);M.map=y=[t+2,0]}const S=e.push("tr_open","tr",1);S.map=[r,r+1];for(let M=0;M<d;M++){const D=e.push("td_open","td",1);f[M]&&(D.attrs=[["style",`text-align:${f[M]}`]]);const T=e.push("inline","",0);T.content=c[M]?c[M].trim():"",T.children=[],e.push("td_close","td",-1)}e.push("tr_close","tr",-1)}return y&&(e.push("tbody_close","tbody",-1),y[1]=r),e.push("table_close","table",-1),g[1]=r,e.parentType=h,e.line=r,!0}var Ic=class{constructor(){X(this,"_rules",[]);X(this,"cache",null)}invalidateCache(){this.cache=null}push(e,t,n){this._rules.push({name:e,enabled:!0,fn:t,alt:(n==null?void 0:n.alt)||[]}),this.invalidateCache()}before(e,t,n,o){const r=this._rules.findIndex(s=>s.name===e);if(r<0)throw new Error(`Parser rule not found: ${e}`);const i=this._rules.findIndex(s=>s.name===t);i>=0&&this._rules.splice(i,1),this._rules.splice(r,0,{name:t,enabled:!0,fn:n,alt:(o==null?void 0:o.alt)||[]}),this.invalidateCache()}after(e,t,n,o){const r=this._rules.findIndex(s=>s.name===e);if(r<0)throw new Error(`Parser rule not found: ${e}`);const i=this._rules.findIndex(s=>s.name===t);i>=0&&this._rules.splice(i,1),this._rules.splice(r+1,0,{name:t,enabled:!0,fn:n,alt:(o==null?void 0:o.alt)||[]}),this.invalidateCache()}getRules(e){var n;const t=e||"";return this.cache||this.compileCache(),(n=this.cache.get(t))!=null?n:[]}at(e,t,n){const o=this._rules.findIndex(r=>r.name===e);if(o===-1)throw new Error(`Parser rule not found: ${e}`);this._rules[o].fn=t,n!=null&&n.alt&&(this._rules[o].alt=n.alt),this.invalidateCache()}enable(e,t){const n=Array.isArray(e)?e:[e],o=[];return n.forEach(r=>{const i=this._rules.findIndex(s=>s.name===r);if(i===-1){if(t)return;throw new Error(`Rules manager: invalid rule name ${r}`)}this._rules[i].enabled||(this._rules[i].enabled=!0,o.push(r))}),o.length&&this.invalidateCache(),o}disable(e,t){const n=Array.isArray(e)?e:[e],o=[];return n.forEach(r=>{const i=this._rules.findIndex(s=>s.name===r);if(i===-1){if(t)return;throw new Error(`Rules manager: invalid rule name ${r}`)}this._rules[i].enabled&&(this._rules[i].enabled=!1,o.push(r))}),o.length&&this.invalidateCache(),o}enableOnly(e){const t=new Set(e);let n=!1;for(const o of this._rules){const r=t.has(o.name);o.enabled!==r&&(o.enabled=r,n=!0)}n&&this.invalidateCache()}compileCache(){const e=new Set([""]);for(const n of this._rules)if(n.enabled)for(const o of n.alt)e.add(o);const t=new Map;for(const n of e){const o=[];for(const r of this._rules)r.enabled&&(n!==""&&!r.alt.includes(n)||o.push(r.fn));t.set(n,o)}this.cache=t}};function ir(e){switch(e){case 9:case 32:return!0}return!1}var Fc=class{constructor(e,t,n,o){X(this,"src");X(this,"md");X(this,"env");X(this,"tokens");X(this,"Token");X(this,"bMarks",[]);X(this,"eMarks",[]);X(this,"tShift",[]);X(this,"sCount",[]);X(this,"bsCount",[]);X(this,"blkIndent",0);X(this,"line",0);X(this,"lineMax",0);X(this,"tight",!1);X(this,"ddIndent",-1);X(this,"listIndent",-1);X(this,"parentType","root");X(this,"level",0);this.src=e,this.md=t,this.env=n,this.tokens=o,this.Token=mt;const r=this.src;let i=0,s=0,a=0,u=!1;for(let c=0,f=r.length;c<f;c++){const d=r.charCodeAt(c);if(!u)if(ir(d)){i++,d===9?s+=4-s%4:s++;continue}else u=!0;(d===10||c===f-1)&&(d!==10&&c++,this.bMarks.push(a),this.eMarks.push(c),this.tShift.push(i),this.sCount.push(s),this.bsCount.push(0),u=!1,i=0,s=0,a=c+1)}this.bMarks.push(r.length),this.eMarks.push(r.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}push(e,t,n){const o=new mt(e,t,n);return o.level=this.level,o.content="",o.block=!0,n<0&&this.level--,o.level=this.level,n>0&&this.level++,this.tokens.push(o),o}isEmpty(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]}skipEmptyLines(e){for(let t=this.lineMax;e<t&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e}skipSpaces(e){for(let t=this.src.length;e<t&&ir(this.src.charCodeAt(e));e++);return e}skipSpacesBack(e,t){if(e<=t)return e;for(;e>t;)if(!ir(this.src.charCodeAt(--e)))return e+1;return e}skipChars(e,t){for(let n=this.src.length;e<n&&this.src.charCodeAt(e)===t;e++);return e}skipCharsBack(e,t,n){if(e<=n)return e;for(;e>n;)if(t!==this.src.charCodeAt(--e))return e+1;return e}getLines(e,t,n,o){if(e>=t)return"";const r=new Array(t-e);for(let i=0,s=e;s<t;s++,i++){let a=0;const u=this.bMarks[s];let c=u,f;for(s+1<t||o?f=this.eMarks[s]+1:f=this.eMarks[s];c<f&&a<n;){const d=this.src.charCodeAt(c);if(ir(d))d===9?a+=4-(a+this.bsCount[s])%4:a++;else if(c-u<this.tShift[s])a++;else break;c++}a>n?r[i]=new Array(a-n+1).join(" ")+this.src.slice(c,f):r[i]=this.src.slice(c,f)}return r.join("")}};const lr=[["table",Nc,["paragraph","reference"]],["code",gc],["fence",kc,["paragraph","reference","blockquote","list"]],["blockquote",mc,["paragraph","reference","blockquote","list"]],["hr",yc,["paragraph","reference","blockquote","list"]],["list",Ac,["paragraph","reference","blockquote"]],["reference",Tc],["html_block",Ec,["paragraph","reference","blockquote"]],["heading",vc,["paragraph","reference","blockquote"]],["lheading",Sc],["paragraph",Bc]];var Rc=class{constructor(){X(this,"ruler");this.ruler=new Ic;for(let e=0;e<lr.length;e++)this.ruler.push(lr[e][0],lr[e][1],{alt:(lr[e][2]||[]).slice()})}tokenize(e,t,n){const o=this.ruler.getRules(""),r=o.length,i=e.md.options.maxNesting;let s=t,a=!1;for(;s<n&&(e.line=s=e.skipEmptyLines(s),!(s>=n||e.sCount[s]<e.blkIndent));){if(e.level>=i){e.line=n;break}const u=e.line;let c=!1;for(let f=0;f<r;f++)if(c=o[f](e,s,n,!1),c){if(u>=e.line)throw new Error("block rule didn't increment state.line");break}if(!c)throw new Error("none of the block rules matched");e.tight=!a,e.isEmpty(e.line-1)&&(a=!0),s=e.line,s<n&&e.isEmpty(s)&&(a=!0,s++,e.line=s)}}parse(e,t,n,o){if(!e)return;const r=new Fc(e,t,n,o);this.tokenize(r,r.line,r.lineMax)}};const Lc=/^[\w.!#$%&'*+/=?^`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i,Oc=/^[a-z][a-z0-9+.-]{1,31}:[^<>\x00-\x20]*$/i;function Pc(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==60)return!1;const o=e.pos,r=e.posMax;for(;;){if(++n>=r)return!1;const s=e.src.charCodeAt(n);if(s===60)return!1;if(s===62)break}const i=e.src.slice(o+1,n);if(Oc.test(i)){const s=e.md.normalizeLink(i);if(!e.md.validateLink(s))return!1;if(!t){const a=e.push("link_open","a",1);a.attrs=[["href",s]],a.markup="autolink",a.info="auto";const u=e.push("text","",0);u.content=e.md.normalizeLinkText(i);const c=e.push("link_close","a",-1);c.markup="autolink",c.info="auto"}return e.pos+=i.length+2,!0}if(Lc.test(i)){const s=e.md.normalizeLink(`mailto:${i}`);if(!e.md.validateLink(s))return!1;if(!t){const a=e.push("link_open","a",1);a.attrs=[["href",s]],a.markup="autolink",a.info="auto";const u=e.push("text","",0);u.content=e.md.normalizeLinkText(i);const c=e.push("link_close","a",-1);c.markup="autolink",c.info="auto"}return e.pos+=i.length+2,!0}return!1}var zc=Pc;function Vc(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==96)return!1;const o=n;n++;const r=e.posMax;for(;n<r&&e.src.charCodeAt(n)===96;)n++;const i=e.src.slice(o,n),s=i.length;if(e.backticksScanned&&(e.backticks[s]||0)<=o)return t||(e.pending+=i),e.pos+=s,!0;let a=n,u;for(;(u=e.src.indexOf("`",a))!==-1;){for(a=u+1;a<r&&e.src.charCodeAt(a)===96;)a++;const c=a-u;if(c===s){if(!t){const f=e.push("code_inline","code",0);f.markup=i,f.content=e.src.slice(n,u).replace(/\n/g," ").replace(/^ (.+) $/,"$1")}return e.pos=a,!0}e.backticks[c]=u}return e.backticksScanned=!0,t||(e.pending+=i),e.pos+=s,!0}var jc=Vc;function Jo(e){const t={},n=e.length;if(!n)return;let o=0,r=-2;const i=[];for(let s=0;s<n;s++){const a=e[s];if(i.push(0),(e[o].marker!==a.marker||r!==a.token-1)&&(o=s),r=a.token,a.length=a.length||0,!a.close)continue;Object.prototype.hasOwnProperty.call(t,a.marker)||(t[a.marker]=[-1,-1,-1,-1,-1,-1]);const u=t[a.marker][(a.open?3:0)+a.length%3];let c=o-i[o]-1,f=c;for(;c>u;c-=i[c]+1){const d=e[c];if(d.marker===a.marker&&d.open&&d.end<0){let h=!1;if((d.close||a.open)&&(d.length+a.length)%3===0&&(d.length%3!==0||a.length%3!==0)&&(h=!0),!h){const p=c>0&&!e[c-1].open?i[c-1]+1:0;i[s]=s-c+p,i[c]=p,a.open=!1,d.end=s,d.close=!1,f=-1,r=-2;break}}}f!==-1&&(t[a.marker][(a.open?3:0)+(a.length||0)%3]=f)}}function Hc(e){const t=e.tokens_meta,n=e.tokens_meta.length;Jo(e.delimiters);for(let o=0;o<n;o++)t[o]&&t[o].delimiters&&Jo(t[o].delimiters)}var qc=Hc;function Wc(e,t){const n=e.pos,o=e.src.charCodeAt(n);if(t||o!==95&&o!==42)return!1;const r=e.scanDelims(e.pos,o===42);if(!r||r.length===0)return!1;for(let i=0;i<r.length;i++){const s=e.push("text","",0);s.content=String.fromCharCode(o),e.delimiters.push({marker:o,length:r.length,token:e.tokens.length-1,end:-1,open:r.can_open,close:r.can_close})}return e.pos+=r.length,!0}function Qo(e,t){const n=t.length;for(let o=n-1;o>=0;o--){const r=t[o];if(r.marker!==95&&r.marker!==42||r.end===-1)continue;const i=t[r.end],s=o>0&&t[o-1].end===r.end+1&&t[o-1].marker===r.marker&&t[o-1].token===r.token-1&&t[r.end+1].token===i.token+1,a=String.fromCharCode(r.marker),u=e.tokens[r.token];u.type=s?"strong_open":"em_open",u.tag=s?"strong":"em",u.nesting=1,u.markup=s?a+a:a,u.content="";const c=e.tokens[i.token];c.type=s?"strong_close":"em_close",c.tag=s?"strong":"em",c.nesting=-1,c.markup=s?a+a:a,c.content="",s&&(e.tokens[t[o-1].token].content="",e.tokens[t[r.end+1].token].content="",o--)}}function Uc(e){const t=e.tokens_meta,n=e.tokens_meta.length;Qo(e,e.delimiters);for(let o=0;o<n;o++)t[o]&&t[o].delimiters&&Qo(e,t[o].delimiters)}const ei={tokenize:Wc,postProcess:Uc},Kc=/^&#(x[a-f0-9]{1,6}|\d{1,7});/i,Xc=/^&([a-z][a-z0-9]{1,31});/i,ti={amp:"&",lt:"<",gt:">",quot:'"',apos:"'",nbsp:" "};function Zc(e){return!(e>=55296&&e<=57343||e>=1114111)}function ni(e){return String.fromCodePoint(e)}function Yc(e){const t=e.match(/^&([a-z][a-z0-9]{1,31});/i);return t&&ti[t[1]]?ti[t[1]]:e}function Gc(e,t){const n=e.pos,o=e.posMax;if(e.src.charCodeAt(n)!==38||n+1>=o)return!1;if(e.src.charCodeAt(n+1)===35){const r=e.src.slice(n).match(Kc);if(r){if(!t){const i=r[1][0].toLowerCase()==="x"?Number.parseInt(r[1].slice(1),16):Number.parseInt(r[1],10),s=e.push("text_special","",0);s.content=Zc(i)?ni(i):ni(65533),s.markup=r[0],s.info="entity"}return e.pos+=r[0].length,!0}}else{const r=e.src.slice(n).match(Xc);if(r){const i=Yc(r[0]);if(i!==r[0]){if(!t){const s=e.push("text_special","",0);s.content=i,s.markup=r[0],s.info="entity"}return e.pos+=r[0].length,!0}}}return!1}var Jc=Gc;const Qc=[92,96,42,95,123,125,91,93,40,41,35,43,45,46,33,124];function eu(e,t){const{pos:n,posMax:o,src:r}=e;if(r.charCodeAt(n)!==92)return!1;const i=n+1;if(i>=o)return!1;const s=r.charCodeAt(i);return s===10?(t||e.push("hardbreak","br",0),e.pos+=2,!0):s<128&&Qc.includes(s)?(t||(e.pending+=r[i]),e.pos+=2,!0):!1}var tu=eu;function nu(e){var s;let t,n,o=0;const r=e.tokens,i=e.tokens.length;for(t=n=0;t<i;t++){const a=r[t];a&&(a.nesting&&a.nesting<0&&o--,a.level=o,a.nesting&&a.nesting>0&&o++,a.type==="text"&&t+1<i&&((s=r[t+1])==null?void 0:s.type)==="text"?r[t+1].content=a.content+r[t+1].content:(t!==n&&(r[n]=a),n++))}t!==n&&(r.length=n)}var ru=nu;const ou=/^<\/?[a-z][a-z0-9-]*(?:\s+[a-z_:][\w:.-]*(?:\s*=\s*(?:[^"'=<>`\s]+|'[^']*'|"[^"]*"))?)*\s*\/?>/i;function iu(e){return/^<a[>\s]/i.test(e)}function lu(e){return/^<\/a\s*>/i.test(e)}function su(e){const t=e|32;return t>=97&&t<=122}function au(e,t){if(!e.md.options.html)return!1;const n=e.posMax,o=e.pos;if(e.src.charCodeAt(o)!==60||o+2>=n)return!1;const r=e.src.charCodeAt(o+1);if(r!==33&&r!==63&&r!==47&&!su(r))return!1;const i=e.src.slice(o).match(ou);if(!i)return!1;if(!t){const s=e.push("html_inline","",0);s.content=i[0],iu(s.content)&&e.linkLevel++,lu(s.content)&&e.linkLevel--}return e.pos+=i[0].length,!0}var cu=au;function uu(e,t){let n,o,r,i,s,a,u,c,f="";const d=e.pos,h=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91)return!1;const p=e.pos+2,m=vr(e,e.pos+1,!1);if(m<0)return!1;if(i=m+1,i<h&&e.src.charCodeAt(i)===40){for(i++;i<h&&(n=e.src.charCodeAt(i),!(n!==32&&n!==10));i++);if(i>=h)return!1;if(c=i,a=hl(e.src,i,e.posMax),a.ok){for(f=e.md.normalizeLink(a.str),e.md.validateLink(f)?i=a.pos:f="";i<h&&(n=e.src.charCodeAt(i),!(n!==32&&n!==10));i++);if(a=pl(e.src,i,e.posMax),i<h&&a.ok)for(u=a.str,i=a.pos;i<h&&(n=e.src.charCodeAt(i),!(n!==32&&n!==10));i++);else u=""}if(i>=h||e.src.charCodeAt(i)!==41)return e.pos=d,!1;i++}else{if(typeof e.env.references=="undefined")return!1;if(i<h&&e.src.charCodeAt(i)===91?(c=i+1,i=vr(e,i),i>=0?r=e.src.slice(c,i++):i=m+1):i=m+1,r||(r=e.src.slice(p,m)),s=e.env.references[r&&r.toLowerCase()],!s)return e.pos=d,!1;f=s.href,u=s.title}if(!t){o=e.src.slice(p,m);const g=[];e.md.inline.parse(o,e.md,e.env,g);const k=e.push("image","img",0);k.attrs=[["src",f],["alt",""]],k.children=g,k.content=o,u&&k.attrs.push(["title",u])}return e.pos=i,e.posMax=h,!0}var du=uu;function fu(e,t){let n,o,r,i,s="",a="",u=e.pos,c=!0;if(e.src.charCodeAt(e.pos)!==91)return!1;const f=e.pos,d=e.posMax,h=e.pos+1,p=vr(e,e.pos,!0);if(p<0)return!1;let m=p+1;if(m<d&&e.src.charCodeAt(m)===40){for(c=!1,m++;m<d&&(n=e.src.charCodeAt(m),!(n!==32&&n!==10));m++);if(m>=d)return!1;if(u=m,r=hl(e.src,m,e.posMax),r.ok){for(s=e.md.normalizeLink(r.str),e.md.validateLink(s)?m=r.pos:s="";m<d&&(n=e.src.charCodeAt(m),!(n!==32&&n!==10));m++);if(r=pl(e.src,m,e.posMax),m<d&&r.ok)for(a=r.str,m=r.pos;m<d&&(n=e.src.charCodeAt(m),!(n!==32&&n!==10));m++);}(m>=d||e.src.charCodeAt(m)!==41)&&(c=!0),m++}if(c){if(typeof e.env.references=="undefined")return!1;if(m<d&&e.src.charCodeAt(m)===91?(u=m+1,m=vr(e,m),m>=0?o=e.src.slice(u,m++):m=p+1):m=p+1,o||(o=e.src.slice(h,p)),i=e.env.references[o&&o.toLowerCase()],!i)return e.pos=f,!1;s=i.href,a=i.title}if(!t){e.pos=h,e.posMax=p;const g=e.push("link_open","a",1),k=[["href",s]];g.attrs=k,a&&k.push(["title",a]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push("link_close","a",-1)}return e.pos=m,e.posMax=d,!0}var hu=fu;const pu=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;function mu(e,t){if(!e.md.options.linkify||e.linkLevel>0)return!1;const n=e.pos,o=e.posMax;if(n+3>o||e.src.charCodeAt(n)!==58||e.src.charCodeAt(n+1)!==47||e.src.charCodeAt(n+2)!==47)return!1;const r=e.pending.match(pu);if(!r)return!1;const i=r[1],s=e.md.linkify.matchAtStart(e.src.slice(n-i.length));if(!s)return!1;let a=s.url;if(a.length<=i.length)return!1;a=a.replace(/\*+$/,"");const u=e.md.normalizeLink(a);if(!e.md.validateLink(u))return!1;if(!t){e.pending=e.pending.slice(0,-i.length);const c=e.push("link_open","a",1);c.attrs=[["href",u]],c.markup="linkify",c.info="auto";const f=e.push("text","",0);f.content=e.md.normalizeLinkText(a);const d=e.push("link_close","a",-1);d.markup="linkify",d.info="auto"}return e.pos+=a.length-i.length,!0}function gu(e,t){const{pos:n,src:o,posMax:r}=e;if(o.charCodeAt(n)!==10)return!1;const i=e.pending.length-1,s=r;if(!t)if(i>=0&&e.pending.charCodeAt(i)===32)if(i>=1&&e.pending.charCodeAt(i-1)===32){let a=i-1;for(;a>=1&&e.pending.charCodeAt(a-1)===32;)a--;e.pending=e.pending.slice(0,a),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(e.pos++;e.pos<s&&o.charCodeAt(e.pos)===32;)e.pos++;return!0}var ku=gu;function vu(e,t){const n=e.pos,o=e.src.charCodeAt(n);if(t||o!==126)return!1;const r=e.scanDelims(e.pos,!0);if(!r)return!1;let i=r.length;const s=String.fromCharCode(o);if(i<2)return!1;let a;i%2&&(a=e.push("text","",0),a.content=s,i--);for(let u=0;u<i;u+=2)a=e.push("text","",0),a.content=s+s,e.delimiters.push({marker:o,length:0,token:e.tokens.length-1,end:-1,open:r.can_open,close:r.can_close});return e.pos+=r.length,!0}function ri(e,t){let n;const o=[],r=t.length;for(let i=0;i<r;i++){const s=t[i];if(s.marker!==126||s.end===-1)continue;const a=t[s.end];n=e.tokens[s.token],n.type="s_open",n.tag="s",n.nesting=1,n.markup="~~",n.content="",n=e.tokens[a.token],n.type="s_close",n.tag="s",n.nesting=-1,n.markup="~~",n.content="",e.tokens[a.token-1].type==="text"&&e.tokens[a.token-1].content==="~"&&o.push(a.token-1)}for(;o.length;){const i=o.pop();let s=i+1;for(;s<e.tokens.length&&e.tokens[s].type==="s_close";)s++;s--,i!==s&&(n=e.tokens[s],e.tokens[s]=e.tokens[i],e.tokens[i]=n)}}function wu(e){const t=e.delimiters;ri(e,t);const n=e.tokens_meta;if(n)for(let o=0;o<n.length;o++)n[o]&&n[o].delimiters&&ri(e,n[o].delimiters)}const oi={tokenize:vu,postProcess:wu};function yu(e){switch(e){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}function xu(e,t){let n=e.pos;for(;n<e.posMax&&!yu(e.src.charCodeAt(n));)n++;return n===e.pos?!1:(t||(e.pending+=e.src.slice(e.pos,n)),e.pos=n,!0)}var bu=xu,ii=class{constructor(){X(this,"rules",[]);X(this,"cache",null)}invalidateCache(){this.cache=null}push(e,t,n){const o=this.rules.findIndex(r=>r.name===e);o>=0&&this.rules.splice(o,1),this.rules.push({name:e,fn:t,alt:(n==null?void 0:n.alt)||[],enabled:!0}),this.invalidateCache()}at(e){return this.rules.find(t=>t.name===e)}before(e,t,n,o){const r=this.rules.findIndex(s=>s.name===e);if(r<0)throw new Error(`Parser rule not found: ${e}`);const i=this.rules.findIndex(s=>s.name===t);i>=0&&this.rules.splice(i,1),this.rules.splice(r,0,{name:t,fn:n,alt:(o==null?void 0:o.alt)||[],enabled:!0}),this.invalidateCache()}after(e,t,n,o){const r=this.rules.findIndex(s=>s.name===e);if(r<0)throw new Error(`Parser rule not found: ${e}`);const i=this.rules.findIndex(s=>s.name===t);i>=0&&this.rules.splice(i,1),this.rules.splice(r+1,0,{name:t,fn:n,alt:(o==null?void 0:o.alt)||[],enabled:!0}),this.invalidateCache()}enable(e,t){const n=Array.isArray(e)?e:[e],o=[];for(const r of n){const i=this.rules.findIndex(s=>s.name===r);if(i<0){if(!t)throw new Error(`Rules manager: invalid rule name ${r}`);continue}this.rules[i].enabled||(this.rules[i].enabled=!0,o.push(r))}return o.length&&this.invalidateCache(),o}disable(e,t){const n=Array.isArray(e)?e:[e],o=[];for(const r of n){const i=this.rules.findIndex(s=>s.name===r);if(i<0){if(!t)throw new Error(`Rules manager: invalid rule name ${r}`);continue}this.rules[i].enabled&&(this.rules[i].enabled=!1,o.push(r))}return o.length&&this.invalidateCache(),o}enableOnly(e){const t=new Set(e);let n=!1;for(const o of this.rules){const r=t.has(o.name);o.enabled!==r&&(o.enabled=r,n=!0)}n&&this.invalidateCache()}getRules(e){var n;const t=e||"";return this.cache||this.compileCache(),(n=this.cache.get(t))!=null?n:[]}compileCache(){var n;const e=new Set([""]);for(const o of this.rules)if(o.enabled&&o.alt)for(const r of o.alt)e.add(r);const t=new Map;for(const o of e){const r=[];for(const i of this.rules)i.enabled&&(o!==""&&!((n=i.alt)!=null&&n.includes(o))||r.push(i.fn));t.set(o,r)}this.cache=t}},_u=class{constructor(e,t,n,o){X(this,"src");X(this,"md");X(this,"env");X(this,"outTokens");X(this,"tokens");X(this,"tokens_meta");X(this,"pos");X(this,"posMax");X(this,"level");X(this,"pending");X(this,"pendingLevel");X(this,"cache");X(this,"delimiters");X(this,"_prev_delimiters");X(this,"backticks");X(this,"backticksScanned");X(this,"linkLevel");X(this,"Token");this.src=e,this.md=t,this.env=n,this.outTokens=o,this.tokens=o,this.tokens_meta=new Array(o.length),this.pos=0,this.posMax=e.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0,this.Token=mt}pushPending(){const e=new mt("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.tokens_meta.push(null),this.pending="",e}push(e,t,n){this.pending&&this.pushPending();const o=new mt(e,t,n);o.level=this.level;let r=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()||[]),o.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],r={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(o),this.tokens_meta.push(r),o}scanDelims(e,t){const{src:n,posMax:o}=this,r=n.charCodeAt(e);let i=e,s=0;for(;i<o&&n.charCodeAt(i)===r;)s++,i++;if(s<1)return null;const a=e>0?n.charCodeAt(e-1):32,u=i<o?n.charCodeAt(i):32,c=a===32||a===10,f=u===32||u===10,d=a===32,h=u===32;let p=!0,m=!0;return h?p=!1:f&&(d||c||(p=!1)),d?m=!1:c&&(h||f||(m=!1)),t||(p=p&&(!c||d),m=m&&(!f||h)),{can_open:p,can_close:m,length:s}}},Cu=class{constructor(){X(this,"ruler");X(this,"ruler2");this.ruler=new ii,this.ruler2=new ii,this.ruler.push("text",bu),this.ruler.push("linkify",mu),this.ruler.push("newline",ku),this.ruler.push("escape",tu),this.ruler.push("backticks",jc),this.ruler.push("strikethrough",oi.tokenize),this.ruler.push("emphasis",ei.tokenize),this.ruler.push("link",hu),this.ruler.push("image",du),this.ruler.push("autolink",zc),this.ruler.push("html_inline",cu),this.ruler.push("entity",Jc),this.ruler2.push("balance_pairs",qc),this.ruler2.push("strikethrough",oi.postProcess),this.ruler2.push("emphasis",ei.postProcess),this.ruler2.push("fragments_join",ru)}skipToken(e){var a,u;const t=e.pos,n=this.ruler.getRules(""),o=n.length,r=e.posMax,i=((u=(a=e.md)==null?void 0:a.options)==null?void 0:u.maxNesting)||100;if(typeof e.cache[t]!="undefined"){e.pos=e.cache[t];return}let s=!1;if(e.level<i){for(let c=0;c<o;c++)if(e.level++,s=n[c](e,!0),e.level--,s){if(t>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}else e.pos=r;s||e.pos++,e.cache[t]=e.pos}tokenize(e){var i,s;const t=this.ruler.getRules(""),n=t.length,o=e.posMax,r=((s=(i=e.md)==null?void 0:i.options)==null?void 0:s.maxNesting)||100;for(;e.pos<o;){const a=e.pos;let u=!1;if(e.level<r){for(let c=0;c<n;c++)if(u=t[c](e,!1),u){if(a>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}if(u){if(e.pos>=o)break;continue}e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()}parse(e,t,n,o){const r=new _u(e,t,n,o);this.tokenize(r);const i=this.ruler2.getRules(""),s=i.length;for(let a=0;a<s;a++)i[a](r,!1)}},Eu=class{constructor(e,t,n={}){X(this,"src");X(this,"env");X(this,"tokens");X(this,"inlineMode");X(this,"md");X(this,"Token");this.src=e||"",this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t,this.Token=mt}};const li=[["normalize",sc],["block",ec],["inline",tc],["linkify",oc],["replacements",ac],["smartquotes",fc],["text_join",hc]],Su={html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",maxNesting:100},Mu={parseLinkLabel:ko,parseLinkDestination:go,parseLinkTitle:vo};function Au(){return re({},Su)}function Bu(){return re({},Mu)}var Du=class{constructor(){X(this,"fallbackParser");X(this,"lastState",null);X(this,"block");X(this,"inline");X(this,"ruler");X(this,"linkifyInstance",null);X(this,"cachedCoreRules",null);this.block=new Rc,this.inline=new Cu,this.ruler=new cc;for(let e=0;e<li.length;e++){const[t,n]=li[e];this.ruler.push(t,n)}this.fallbackParser={block:this.block,inline:this.inline,core:this,options:Au(),helpers:Bu(),normalizeLink:kl,normalizeLinkText:vl,validateLink:gl,linkify:null}}resolveParser(e){return e||(this.linkifyInstance||(this.linkifyInstance=new ol),this.fallbackParser.block!==this.block&&(this.fallbackParser.block=this.block),this.fallbackParser.inline!==this.inline&&(this.fallbackParser.inline=this.inline),this.fallbackParser.core=this,this.fallbackParser.linkify=this.linkifyInstance,this.fallbackParser)}createState(e,t={},n){return new Eu(e,this.resolveParser(n),t)}process(e){this.cachedCoreRules||(this.cachedCoreRules=this.ruler.getRules(""));const t=this.cachedCoreRules;for(let n=0;n<t.length;n++)t[n](e)}parse(e,t={},n){if(typeof e!="string")throw new TypeError("Input data should be a String");const o=this.createState(e,t,n);return this.process(o),this.lastState=o,o}getTokens(){return this.lastState?this.lastState.tokens:[]}},Tu={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1}},$u={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},Nu={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"]},inline2:{rules:["balance_pairs","fragments_join"]}}};const Iu=/[&<>"]/,Fu=/[&<>"]/g,Ru={"&":"&","<":"<",">":">",'"':"""};function Lu(e){return Ru[e]||e}function Cn(e){return Iu.test(e)?e.replace(Fu,Lu):e}const Ou=new RegExp(`${/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g.source}|${/&([a-z#][a-z0-9]{1,31});/gi.source}`,"gi"),Pu=/^#(?:x[a-f0-9]{1,8}|\d{1,8})$/i;function zu(e){return!e.includes("\\")&&!e.includes("&")?e:e.replace(Ou,(t,n,o)=>{if(n)return n;if(Pu.test(o)){const r=o[1].toLowerCase()==="x"?Number.parseInt(o.slice(2),16):Number.parseInt(o.slice(1),10);return r>=55296&&r<=57343||r>=128&&r<=159?"�":String.fromCodePoint(r)}return t})}const yo=e=>!!e&&(typeof e=="object"||typeof e=="function")&&typeof e.then=="function",si=(e,t)=>{if(yo(e))throw new TypeError(`Renderer rule "${t}" returned a Promise. Use renderAsync() instead.`);return e},ai=e=>yo(e)?e:Promise.resolve(e),Kr=(e,t,n,o,r,i)=>{if(t.startsWith("<pre"))return`${t}
|
|
13
|
+
`;if(n){const s=typeof e.attrIndex=="function"?e.attrIndex("class"):-1,a=e.attrs?e.attrs.map(f=>f.slice()):[],u=`${r.langPrefix||"language-"}${o}`;s<0?a.push(["class",u]):a[s][1]+=` ${u}`;const c=He(re({},e),{attrs:a});return`<pre><code${i.renderAttrs(c)}>${t}</code></pre>
|
|
14
|
+
`}return`<pre><code${i.renderAttrs(e)}>${t}</code></pre>
|
|
15
|
+
`},Vu={langPrefix:"language-",xhtmlOut:!1,breaks:!1},sr=Object.prototype.hasOwnProperty,ju={code_inline(e,t,n,o,r){const i=e[t];return`<code${r.renderAttrs(i)}>${Cn(i.content)}</code>`},code_block(e,t,n,o,r){const i=e[t];return`<pre${r.renderAttrs(i)}><code>${Cn(i.content)}</code></pre>
|
|
16
|
+
`},fence(e,t,n,o,r){const i=e[t],s=i.info?zu(i.info).trim():"";let a="",u="";if(s){const h=s.split(/(\s+)/g);a=h[0],u=h.slice(2).join("")}const c=n.highlight,f=()=>Cn(i.content);if(!c)return Kr(i,f(),s,a,n,r);const d=c(i.content,a,u);return yo(d)?d.then(h=>Kr(i,h||f(),s,a,n,r)):Kr(i,d||f(),s,a,n,r)},image(e,t,n,o,r){const i=e[t],s=r.renderInlineAsText(i.children||[],n,o);if(typeof i.attrIndex=="function"){const a=i.attrIndex("alt");a>=0&&i.attrs?i.attrs[a][1]=s:i.attrs?i.attrs.push(["alt",s]):i.attrs=[["alt",s]]}return r.renderToken(e,t,n)},hardbreak(e,t,n){return n.xhtmlOut?`<br />
|
|
17
|
+
`:`<br>
|
|
18
|
+
`},softbreak(e,t,n){return n.breaks?n.xhtmlOut?`<br />
|
|
19
|
+
`:`<br>
|
|
20
|
+
`:`
|
|
21
|
+
`},text(e,t){return Cn(e[t].content)},html_block(e,t){return e[t].content},html_inline(e,t){return e[t].content}};var Hu=class{constructor(e={}){X(this,"rules");X(this,"baseOptions");X(this,"normalizedBase");X(this,"bufferPool");this.baseOptions=re({},e),this.normalizedBase=this.buildNormalizedBase(),this.rules=re({},ju),this.bufferPool=[]}set(e){return this.baseOptions=re(re({},this.baseOptions),e),this.normalizedBase=this.buildNormalizedBase(),this}render(e,t={},n={}){if(!Array.isArray(e))throw new TypeError("render expects token array as first argument");const o=this.mergeOptions(t),r=this.acquireBuffer();for(let s=0;s<e.length;s++){const a=e[s];if(a.type==="inline"){this.pushInlineTokens(a.children||[],o,n,r);continue}const u=this.rules[a.type];u?r.push(si(u(e,s,o,n,this),a.type)):r.push(this.renderToken(e,s,o))}const i=r.join("");return this.releaseBuffer(r),i}renderAsync(o){return te(this,arguments,function*(e,t={},n={}){if(!Array.isArray(e))throw new TypeError("render expects token array as first argument");const r=this.mergeOptions(t),i=this.acquireBuffer();for(let a=0;a<e.length;a++){const u=e[a];if(u.type==="inline"){yield this.pushInlineTokensAsync(u.children||[],r,n,i);continue}const c=this.rules[u.type];c?i.push(yield ai(c(e,a,r,n,this))):i.push(this.renderToken(e,a,r))}const s=i.join("");return this.releaseBuffer(i),s})}renderInline(e,t={},n={}){const o=this.mergeOptions(t),r=this.acquireBuffer();this.pushInlineTokens(e,o,n,r);const i=r.join("");return this.releaseBuffer(r),i}renderInlineAsync(o){return te(this,arguments,function*(e,t={},n={}){const r=this.mergeOptions(t),i=this.acquireBuffer();yield this.pushInlineTokensAsync(e,r,n,i);const s=i.join("");return this.releaseBuffer(i),s})}renderInlineAsText(e,t={},n={}){const o=this.mergeOptions(t),r=this.acquireBuffer();this.renderInlineAsTextInternal(e,o,n,r);const i=r.join("");return this.releaseBuffer(r),i}renderAttrs(e){if(!e.attrs||e.attrs.length===0)return"";let t="";for(let n=0;n<e.attrs.length;n++){const o=e.attrs[n];t+=` ${Cn(o[0])}="${Cn(o[1])}"`}return t}renderToken(e,t,n){const o=e[t];if(o.hidden)return"";let r="";o.block&&o.nesting!==-1&&t>0&&e[t-1].hidden&&(r+=`
|
|
22
|
+
`),r+=o.nesting===-1?`</${o.tag}`:`<${o.tag}`,r+=this.renderAttrs(o),o.nesting===0&&n.xhtmlOut&&(r+=" /");let i=!1;if(o.block&&(i=!0,o.nesting===1&&t+1<e.length)){const s=e[t+1];(s.type==="inline"||s.hidden||s.nesting===-1&&s.tag===o.tag)&&(i=!1)}return r+=i?`>
|
|
23
|
+
`:">",r}mergeOptions(e){const t=this.normalizedBase;if(!e)return t;let n=null;const o=()=>(n||(n=re({},t)),n);if(sr.call(e,"highlight")&&e.highlight!==t.highlight&&(o().highlight=e.highlight),sr.call(e,"langPrefix")){const r=e.langPrefix;r!==t.langPrefix&&(o().langPrefix=r)}if(sr.call(e,"xhtmlOut")){const r=e.xhtmlOut;r!==t.xhtmlOut&&(o().xhtmlOut=r)}if(sr.call(e,"breaks")){const r=e.breaks;r!==t.breaks&&(o().breaks=r)}return n||t}buildNormalizedBase(){return Object.freeze(re(re({},Vu),this.baseOptions))}pushInlineTokens(e,t,n,o){for(let r=0;r<e.length;r++){const i=e[r],s=this.rules[i.type];s?o.push(si(s(e,r,t,n,this),i.type)):o.push(this.renderToken(e,r,t))}}pushInlineTokensAsync(e,t,n,o){return te(this,null,function*(){for(let r=0;r<e.length;r++){const i=e[r],s=this.rules[i.type];s?o.push(yield ai(s(e,r,t,n,this))):o.push(this.renderToken(e,r,t))}})}renderInlineAsTextInternal(e,t,n,o){for(let r=0;r<e.length;r++){const i=e[r];switch(i.type){case"text":o.push(i.content);break;case"image":this.renderInlineAsTextInternal(i.children||[],t,n,o);break;case"html_inline":case"html_block":o.push(i.content);break;case"softbreak":case"hardbreak":o.push(`
|
|
24
|
+
`);break}}}acquireBuffer(){const e=this.bufferPool.pop();return e?(e.length=0,e):[]}releaseBuffer(e){e.length=0,this.bufferPool.push(e)}},qu=Hu;const Wu={maxChunkChars:1e4,maxChunkLines:200,fenceAware:!0,maxChunks:void 0};function En(e,t,n={},o){const r=re(re({},Wu),o||{});let i=Uu(t,r);if(r.maxChunks&&i.length>r.maxChunks){const u=r.maxChunks-1,c=i.slice(0,u),f=i.slice(u).join(`
|
|
25
|
+
`);i=[...c,f]}let s=0;const a=[];try{n.__mdtsChunkInfo={count:i.length,maxChunkChars:r.maxChunkChars,maxChunkLines:r.maxChunkLines}}catch(u){}for(const u of i){const c=e.core.parse(u,n,e).tokens;s!==0&&c.length&&Ku(c,s),a.push(...c),s+=Ut(u)}return a}function Uu(e,t){const n=e.split(`
|
|
26
|
+
`),o=[];let r=[],i=0,s=0,a=0,u=0,c=null;function f(){r.length>0&&(o.push(r.join(`
|
|
27
|
+
`)),r=[],i=0,s=0)}for(let d=0;d<n.length;d++){const h=n[d],p=h.trim();if(t.fenceAware){let k=0;for(;k<h.length;){const y=h.charCodeAt(k);if(y===32||y===9)k++;else break}const _=h[k];if(_==="`"||_==="~"){let y=k;for(;y<h.length&&h[y]===_;)y++;const w=y-k;w>=3&&(c?c.marker===_&&w>=c.length&&(c=null):c={marker:_,length:w})}}r.push(h);const m=h.length+1;i+=m,s+=1,p.length===0?(a=0,u=0):(a+=1,u+=m);const g=p.length===0;if((i>=t.maxChunkChars||s>=t.maxChunkLines)&&!c)if(g)f();else{const k=Math.max(10,Math.floor(t.maxChunkLines*.5)),_=Math.max(t.maxChunkChars,8e3);(a>=k||u>=_)&&f()}}return f(),o}function Ku(e,t){if(t===0)return;const n=[...e];for(;n.length;){const o=n.pop();if(o.map&&(o.map[0]+=t,o.map[1]+=t),o.children)for(let r=o.children.length-1;r>=0;r--)n.push(o.children[r])}}const Xu=[];function ci(){return{total:0,cacheHits:0,appendHits:0,fullParses:0,resets:0,chunkedParses:0,lastMode:"idle"}}var Zu=class{constructor(e){X(this,"core");X(this,"cache",null);X(this,"stats",ci());X(this,"MIN_SIZE_FOR_OPTIMIZATION",1e3);X(this,"DEFAULT_SKIP_CACHE_CHARS",6e5);X(this,"DEFAULT_SKIP_CACHE_LINES",1e4);X(this,"MAX_CHUNKS_FOR_FALLBACK",24);X(this,"MAX_CHUNKED_DOC_CHARS",12e4);this.core=e}reset(){this.cache=null,this.stats.resets+=1,this.stats.lastMode="reset"}resetStats(){const{resets:e}=this.stats;this.stats=ci(),this.stats.resets=e}parse(e,t,n){var _,y,w,x,S,M,D,T,b,z,$,U,K,G,P,L,V,j,q,Y,ee,Q,oe,ne,ie;const o=t,r=this.cache;if(!r||o&&o!==r.env){const le=o!=null?o:{},O=!!((_=n.options)!=null&&_.streamChunkedFallback),F=((y=n.options)==null?void 0:y.streamChunkAdaptive)!==!1,H=(x=(w=n.options)==null?void 0:w.streamChunkTargetChunks)!=null?x:8,se=(S=n.options)==null?void 0:S.streamChunkSizeChars,ge=(M=n.options)==null?void 0:M.streamChunkSizeLines,Be=((D=n.options)==null?void 0:D.autoTuneChunks)!==!1,ae=(b=(T=n.options)==null?void 0:T.streamChunkFenceAware)!=null?b:!0,xe=($=(z=n.options)==null?void 0:z.streamSkipCacheAboveChars)!=null?$:this.DEFAULT_SKIP_CACHE_CHARS,Fe=(K=(U=n.options)==null?void 0:U.streamSkipCacheAboveLines)!=null?K:this.DEFAULT_SKIP_CACHE_LINES;let _e,Re=e.length>=xe;if(!Re&&Fe!==void 0&&(_e=Ut(e),Re=_e>=Fe),Re){const fe=this.core.parse(e,le,n).tokens;return this.stats.total+=1,this.stats.fullParses+=1,this.stats.lastMode="full",fe}else if(O&&e.length<this.MAX_CHUNKED_DOC_CHARS){const fe=(je,bt,Ge)=>je<bt?bt:je>Ge?Ge:je;_e===void 0&&(_e=Ut(e));let ke=F?fe(Math.ceil(e.length/H),8e3,32e3):se!=null?se:1e4,qe=F?fe(Math.ceil(_e/H),150,350):ge!=null?ge:200;Be&&!se&&!ge&&(e.length<=5e3?(ke=16e3,qe=250):e.length<=2e4?(ke=16e3,qe=200):e.length<=5e4?(ke=16e3,qe=250):e.length<=1e5?(ke=1e4,qe=200):(ke=2e4,qe=200));const yt=e.length>0&&e.charCodeAt(e.length-1)===10,xt=Math.ceil(e.length/ke);if((e.length>=ke*2||_e>=qe*2)&&yt&&xt<=this.MAX_CHUNKS_FOR_FALLBACK){const je=En(n,e,le,{maxChunkChars:ke,maxChunkLines:qe,fenceAware:ae});return this.cache={src:e,tokens:je,env:le,lineCount:_e},this.stats.total+=1,this.stats.chunkedParses=(this.stats.chunkedParses||0)+1,this.stats.lastMode="chunked",je}}const De=this.core.parse(e,le,n).tokens;return this.cache={src:e,tokens:De,env:le,lineCount:_e},this.stats.total+=1,this.stats.fullParses+=1,this.stats.lastMode="full",De}if(e===r.src)return this.stats.total+=1,this.stats.cacheHits+=1,this.stats.lastMode="cache",r.tokens;const i=(P=(G=n.options)==null?void 0:G.streamOptimizationMinSize)!=null?P:this.MIN_SIZE_FOR_OPTIMIZATION;if(r.src.length<i&&e.length<i*1.5&&!e.startsWith(r.src)){const le=o!=null?o:r.env,O=this.core.parse(e,le,n).tokens;return this.cache={src:e,tokens:O,env:le,lineCount:Ut(e)},this.stats.total+=1,this.stats.fullParses+=1,this.stats.lastMode="full",O}const s=this.getAppendedSegment(r.src,e);if(s){const le=(L=r.lineCount)!=null?L:Ut(r.src);let O=3;s.length>5e3?O=8:s.length>1e3?O=6:s.length>200&&(O=4),O=Math.min(O,le);let F=null;if(O>0){const H=r.src.split(`
|
|
28
|
+
`),se=Math.max(0,H.length-O),ge=H.slice(se).join(`
|
|
29
|
+
`)+s;try{const Be=this.core.parse(ge,r.env,n).tokens,ae=Be.findIndex(xe=>xe.map&&xe.map[0]>=O);if(ae!==-1){const xe=Be.slice(ae),Fe=le-O;Fe!==0&&this.shiftTokenLines(xe,Fe),F={tokens:xe}}}catch(Be){F=null}}if(!F){const H=this.core.parse(s,r.env,n),se=le;se>0&&this.shiftTokenLines(H.tokens,se),F=H}if(r.tokens.length>0&&F.tokens.length>0){const H=r.tokens[r.tokens.length-1],se=F.tokens[0];try{H.type==="inline"&&se.type==="inline"&&(se.children&&se.children.length>0&&(H.children||(H.children=[]),H.children.push(...se.children)),H.content=(H.content||"")+(se.content||""),F.tokens.shift())}catch(ge){}}return F.tokens.length>0&&r.tokens.push(...F.tokens),r.src=e,r.lineCount=le+Ut(s),this.stats.total+=1,this.stats.appendHits+=1,this.stats.lastMode="append",r.tokens}const a=o!=null?o:r.env,u=!!((V=n.options)!=null&&V.streamChunkedFallback),c=((j=n.options)==null?void 0:j.streamChunkAdaptive)!==!1,f=(Y=(q=n.options)==null?void 0:q.streamChunkTargetChunks)!=null?Y:8,d=(ee=n.options)==null?void 0:ee.streamChunkSizeChars,h=(Q=n.options)==null?void 0:Q.streamChunkSizeLines,p=((oe=n.options)==null?void 0:oe.autoTuneChunks)!==!1,m=(ie=(ne=n.options)==null?void 0:ne.streamChunkFenceAware)!=null?ie:!0;let g=r.lineCount;if(u&&e.length<this.MAX_CHUNKED_DOC_CHARS){g===void 0&&(g=Ut(e));const le=(ge,Be,ae)=>ge<Be?Be:ge>ae?ae:ge;let O=c?le(Math.ceil(e.length/f),8e3,32e3):d!=null?d:1e4,F=c?le(Math.ceil(g/f),150,350):h!=null?h:200;p&&!d&&!h&&(e.length<=5e3?(O=16e3,F=250):e.length<=2e4?(O=16e3,F=200):e.length<=5e4?(O=16e3,F=250):e.length<=1e5?(O=1e4,F=200):(O=2e4,F=200));const H=e.length>0&&e.charCodeAt(e.length-1)===10,se=Math.ceil(e.length/O);if((e.length>=O*2||g>=F*2)&&H&&se<=this.MAX_CHUNKS_FOR_FALLBACK){const ge=En(n,e,a,{maxChunkChars:O,maxChunkLines:F,fenceAware:m});return this.cache={src:e,tokens:ge,env:a,lineCount:g},this.stats.total+=1,this.stats.chunkedParses=(this.stats.chunkedParses||0)+1,this.stats.lastMode="chunked",ge}}const k=this.core.parse(e,a,n).tokens;return this.cache={src:e,tokens:k,env:a,lineCount:g},this.stats.total+=1,this.stats.fullParses+=1,this.stats.lastMode="full",k}getAppendedSegment(e,t){if(!t.startsWith(e)||!e.endsWith(`
|
|
30
|
+
`))return null;const n=t.slice(e.length);if(!n||!n.includes(`
|
|
31
|
+
`)||!n.endsWith(`
|
|
32
|
+
`))return null;let o=0;for(let s=0;s<n.length;s++)n.charCodeAt(s)===10&&o++;if(o<2)return null;const r=n.indexOf(`
|
|
33
|
+
`),i=(r===-1?n:n.slice(0,r)).trim();if(i.length===0)return null;if(/^[-=]+$/.test(i)){const s=e.slice(0,-1),a=s.lastIndexOf(`
|
|
34
|
+
`);if(s.slice(a+1).trim().length>0)return null}return this.endsInsideOpenFence(e)?null:n}endsInsideOpenFence(e){const n=e.length>4e3?e.length-4e3:0,o=e.slice(n).split(`
|
|
35
|
+
`);let r=null;for(let i=0;i<o.length;i++){const s=o[i];let a=0;for(;a<s.length;){const c=s.charCodeAt(a);if(c===32||c===9)a++;else break}const u=s[a];if(u==="`"||u==="~"){let c=a;for(;c<s.length&&s[c]===u;)c++;const f=c-a;f>=3&&(r?r.marker===u&&f>=r.length&&(r=null):r={marker:u,length:f})}}return r!==null}peek(){var e,t;return(t=(e=this.cache)==null?void 0:e.tokens)!=null?t:Xu}getStats(){return re({},this.stats)}shiftTokenLines(e,t){if(t===0)return;const n=[...e];for(;n.length>0;){const o=n.pop();if(o.map&&(o.map[0]+=t,o.map[1]+=t),o.children)for(let r=o.children.length-1;r>=0;r--)n.push(o.children[r])}}};const ui={default:$u,zero:Nu,commonmark:Tu};function Yu(e,t){var g,k,_,y;let n={html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100,stream:!1,streamOptimizationMinSize:1e3,streamChunkedFallback:!1,streamChunkSizeChars:1e4,streamChunkSizeLines:200,streamChunkFenceAware:!0,streamChunkAdaptive:!0,streamChunkTargetChunks:8,streamSkipCacheAboveChars:6e5,streamSkipCacheAboveLines:1e4,fullChunkedFallback:!1,fullChunkThresholdChars:2e4,fullChunkThresholdLines:400,fullChunkSizeChars:1e4,fullChunkSizeLines:200,fullChunkFenceAware:!0,fullChunkAdaptive:!0,fullChunkTargetChunks:8,fullChunkMaxChunks:void 0,autoTuneChunks:!0},o="default",r;!t&&typeof e!="string"?(r=e,o="default"):typeof e=="string"&&(o=e,r=t);const i=ui[o];if(!i)throw new Error(`Wrong \`markdown-it\` preset "${o}", check name`);if(i!=null&&i.options&&(n=re(re({},n),i.options)),r&&(n=re(re({},n),r)),typeof n.quotes=="string"){const w=n.quotes;w.length>=4?n.quotes=[w[0],w[1],w[2],w[3]]:n.quotes=["“","”","‘","’"]}const s=new Du;let a=null;const u=()=>(a||(a=new qu(n)),a);let c=null;const f=()=>(c||(c=new Zu(s)),c);let d=null;const h=()=>(d||(d=new ol),d),p={core:s,block:s.block,inline:s.inline,get linkify(){const w=h();return Object.defineProperty(this,"linkify",{value:w,writable:!0,configurable:!0}),w},get renderer(){const w=u();return Object.defineProperty(this,"renderer",{value:w,writable:!0,configurable:!0}),w},options:n,set(w){return this.options=re(re({},this.options),w),a&&a.set(w),typeof w.stream=="boolean"&&(this.stream.enabled=w.stream,c&&(c.reset(),c.resetStats())),this},configure(w){var S,M,D,T;const x=typeof w=="string"?ui[w]:w;if(!x)throw new Error("Wrong `markdown-it` preset, can't be empty");if(x.options&&this.set(x.options),x.components){const b=x.components;(S=b.core)!=null&&S.rules&&this.core.ruler.enableOnly(b.core.rules),(M=b.block)!=null&&M.rules&&this.block.ruler.enableOnly(b.block.rules),(D=b.inline)!=null&&D.rules&&this.inline.ruler.enableOnly(b.inline.rules),(T=b.inline2)!=null&&T.rules&&this.inline.ruler2.enableOnly(b.inline2.rules)}return this},enable(w,x){var T,b,z,$;const S=Array.isArray(w)?w:[w],M=[(T=this.core)==null?void 0:T.ruler,(b=this.block)==null?void 0:b.ruler,(z=this.inline)==null?void 0:z.ruler,($=this.inline)==null?void 0:$.ruler2];let D=0;for(const U of M){if(!U)continue;const K=U.enable(S,!0);D+=K.length}if(!x&&D<S.length)throw new Error("Rules manager: invalid rule name in list");return this},disable(w,x){var T,b,z,$;const S=Array.isArray(w)?w:[w],M=[(T=this.core)==null?void 0:T.ruler,(b=this.block)==null?void 0:b.ruler,(z=this.inline)==null?void 0:z.ruler,($=this.inline)==null?void 0:$.ruler2];let D=0;for(const U of M){if(!U)continue;const K=U.disable(S,!0);D+=K.length}if(!x&&D<S.length)throw new Error("Rules manager: invalid rule name in list");return this},use(w,...x){const S=typeof w=="function"?w:w&&typeof w.default=="function"?w.default:void 0;if(!S)throw new TypeError("MarkdownIt.use: plugin must be a function");const M=[this,...x],D=w;return S.apply(D,M),this},render(w,x={}){const S=this.parse(w,x);return u().render(S,this.options,x)},renderAsync(S){return te(this,arguments,function*(w,x={}){const M=this.parse(w,x);return u().renderAsync(M,this.options,x)})},renderInline(w,x={}){const S=this.parseInline(w,x);return u().render(S,this.options,x)},validateLink:gl,normalizeLink:kl,normalizeLinkText:vl,utils:Ma,helpers:re({},Ga),parse(w,x={}){var S,M,D,T,b,z,$;if(typeof w!="string")throw new TypeError("Input data should be a String");if(!this.stream.enabled&&!this.options.fullChunkedFallback)return s.parse(w,x,this).tokens;if(!this.stream.enabled){const U=w.length;if(this.options.fullChunkedFallback){const K=Ut(w),G=this.options.autoTuneChunks!==!1,P=this.options.fullChunkSizeChars||this.options.fullChunkSizeLines;if(G&&!P){const L=(S=this.options.fullChunkFenceAware)!=null?S:!0;if(U<=5e3)return En(this,w,x,{maxChunkChars:32e3,maxChunkLines:150,fenceAware:L,maxChunks:8});if(U<=2e4)return En(this,w,x,{maxChunkChars:24e3,maxChunkLines:200,fenceAware:L,maxChunks:12});if(!(U<=1e5)){if(U<=2e5)return En(this,w,x,{maxChunkChars:2e4,maxChunkLines:150,fenceAware:L,maxChunks:12})}}if(U>=((M=this.options.fullChunkThresholdChars)!=null?M:2e4)||K>=((D=this.options.fullChunkThresholdLines)!=null?D:400)){const L=(ne,ie,le)=>ne<ie?ie:ne>le?le:ne,V=this.options.fullChunkAdaptive!==!1,j=(T=this.options.fullChunkTargetChunks)!=null?T:8,q=L(Math.ceil(U/j),8e3,32e3),Y=L(Math.ceil(K/j),150,350),ee=V?q:(b=this.options.fullChunkSizeChars)!=null?b:1e4,Q=V?Y:(z=this.options.fullChunkSizeLines)!=null?z:200,oe=V?Math.max(6,Math.min(12,j)):this.options.fullChunkMaxChunks;return En(this,w,x,{maxChunkChars:ee,maxChunkLines:Q,fenceAware:($=this.options.fullChunkFenceAware)!=null?$:!0,maxChunks:oe})}}}return s.parse(w,x,this).tokens},parseInline(w,x={}){if(typeof w!="string")throw new TypeError("Input data should be a String");const S=s.createState(w,x,this);return S.inlineMode=!0,s.process(S),S.tokens}};if(p.stream={enabled:!!n.stream,parse(w,x){return p.stream.enabled?f().parse(w,x,p):s.parse(w,x!=null?x:{},p).tokens},reset(){f().reset()},peek(){return c?c.peek():[]},stats(){return c?c.getStats():{total:0,cacheHits:0,appendHits:0,fullParses:0,resets:0,chunkedParses:0,lastMode:"idle"}},resetStats(){c&&c.resetStats()}},o==="zero"&&(i!=null&&i.components)){const w=i.components;(g=w.core)!=null&&g.rules&&p.core.ruler.enableOnly(w.core.rules),(k=w.block)!=null&&k.rules&&p.block.ruler.enableOnly(w.block.rules),(_=w.inline)!=null&&_.rules&&p.inline.ruler.enableOnly(w.inline.rules),(y=w.inline2)!=null&&y.rules&&p.inline.ruler2.enableOnly(w.inline2.rules)}return p}var Gu=Yu;let yl;function xl(e){yl=e}function Ju(){return yl}function Qu(e,t,n){function o(h){return h.trim().split(" ",2)[0]===t}function r(h,p,m,g,k){return h[p].nesting===1&&h[p].attrJoin("class",t),k.renderToken(h,p,m,g,k)}n=n||{};const i=3,s=n.marker||":",a=s.charCodeAt(0),u=s.length,c=n.validate||o,f=n.render||r;function d(h,p,m,g){let k,_=!1,y=h.bMarks[p]+h.tShift[p],w=h.eMarks[p];if(a!==h.src.charCodeAt(y))return!1;for(k=y+1;k<=w&&s[(k-y)%u]===h.src[k];k++);const x=Math.floor((k-y)/u);if(x<i)return!1;k-=(k-y)%u;const S=h.src.slice(y,k),M=h.src.slice(k,w);if(!c(M,S))return!1;if(g)return!0;let D=p;for(;D++,!(D>=m||(y=h.bMarks[D]+h.tShift[D],w=h.eMarks[D],y<w&&h.sCount[D]<h.blkIndent));)if(a===h.src.charCodeAt(y)&&!(h.sCount[D]-h.blkIndent>=4)){for(k=y+1;k<=w&&s[(k-y)%u]===h.src[k];k++);if(!(Math.floor((k-y)/u)<x)&&(k-=(k-y)%u,k=h.skipSpaces(k),!(k<w))){_=!0;break}}const T=h.parentType,b=h.lineMax;h.parentType="container",h.lineMax=D;const z=h.push("container_"+t+"_open","div",1);z.markup=S,z.block=!0,z.info=M,z.map=[p,D],h.md.block.tokenize(h,p+1,D);const $=h.push("container_"+t+"_close","div",-1);return $.markup=h.src.slice(y,k),$.block=!0,h.parentType=T,h.lineMax=b,h.line=D+(_?1:0),!0}e.block.ruler.before("fence","container_"+t,d,{alt:["paragraph","reference","blockquote","list"]}),e.renderer.rules["container_"+t+"_open"]=f,e.renderer.rules["container_"+t+"_close"]=f}function bl(e){["admonition","info","warning","error","tip","danger","note","caution"].forEach(t=>{e.use(Qu,t,{render(n,o){return n[o].nesting===1?`<div class="vmr-container vmr-container-${t}">`:`</div>
|
|
36
|
+
`}})}),e.block.ruler.before("fence","vmr_container_fallback",(t,n,o,r)=>{const i=t,s=i.bMarks[n]+i.tShift[n],a=i.eMarks[n],u=i.src.slice(s,a).match(/^:::\s*(\w+)/);if(!u)return!1;if(r)return!0;const c=u[1];let f=n+1,d=!1;for(;f<=o;){const m=i.bMarks[f]+i.tShift[f],g=i.eMarks[f];if(i.src.slice(m,g).trim()===":::"){d=!0;break}f++}if(!d)return!1;i.push("vmr_container_open","div",1).attrSet("class",`vmr-container vmr-container-${c}`);const h=[];for(let m=n+1;m<f;m++){const g=i.bMarks[m]+i.tShift[m],k=i.eMarks[m];h.push(i.src.slice(g,k))}i.push("paragraph_open","p",1);const p=i.push("inline","",0);return p.content=h.join(`
|
|
37
|
+
`),p.map=[n+1,f],p.children=[],i.md.inline.parse(p.content,i.md,i.env,p.children),i.push("paragraph_close","p",-1),i.push("vmr_container_close","div",-1),i.line=f+1,!0})}const ed=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]);function td(e){e.core.ruler.push("fix_html_inline_tokens",t=>{var r,i,s,a,u,c,f,d,h,p,m,g,k,_,y,w,x,S,M;const n=(r=t.tokens)!=null?r:[],o=[];for(let D=0;D<n.length;D++){const T=n[D];if(T.type==="html_block"){const b=((a=(s=(i=T.content)==null?void 0:i.match(/<([^\s>/]+)/))==null?void 0:s[1])!=null?a:"").toLowerCase();/<\s*\/\s*[^\s>]+\s*>/.test(T.content||"")?o.length>0&&o[o.length-1][0]===b&&o.pop():o.push([b,D]);continue}else if(o.length>0){if(T.type==="paragraph_open"||T.type==="paragraph_close"){n.splice(D,1),D--;continue}const b=T.content||"",z=new RegExp(`<\\s*\\/\\s*${o[o.length-1][0]}\\s*>`,"i").test(b);if(b){const[,$]=o[o.length-1],U=n[$];U.content=`${U.content||""}
|
|
38
|
+
${b}`,U.loading!==!1&&(U.loading=!z)}z&&o.pop(),n.splice(D,1),D--}else continue}for(let D=0;D<n.length;D++){const T=n[D];if(T.type==="html_block"){const K=((f=(c=(u=T.content)==null?void 0:u.match(/<([^\s>/]+)/))==null?void 0:c[1])!=null?f:"").toLowerCase();if(K.startsWith("!")||K.startsWith("?")){T.loading=!1;continue}if(["br","hr","img","input","link","meta","div","p","ul","li"].includes(K))continue;T.type="inline";const G=(d=T.content)!=null&&d.toLowerCase().includes(`</${K}>`)?!1:T.loading!==void 0?T.loading:!0;T.children=[{type:"html_block",content:T.content,tag:K,loading:G}];continue}if(!T||T.type!=="inline")continue;if(T.children.length===2&&T.children[0].type==="html_inline"){const K=(m=(p=(h=T.children[0].content)==null?void 0:h.match(/<([^\s>/]+)/))==null?void 0:p[1])!=null?m:"";["a","span","strong","em","b","i","u"].includes(K)?(T.children[0].loading=!0,T.children[0].tag=K,T.children.push({type:"html_inline",tag:K,loading:!0,content:`</${K}>`})):T.children=[{type:"html_block",loading:!0,tag:K,content:T.children[0].content+T.children[1].content}];continue}else if(T.children.length===3&&T.children[0].type==="html_inline"&&T.children[2].type==="html_inline"){const K=(_=(k=(g=T.children[0].content)==null?void 0:g.match(/<([^\s>/]+)/))==null?void 0:k[1])!=null?_:"";if(["a","span","strong","em","b","i","u"].includes(K))continue;T.children=[{type:"html_block",loading:!1,tag:K,content:T.children.map(G=>G.content).join("")}];continue}if(!((y=T.content)!=null&&y.startsWith("<"))||((w=T.children)==null?void 0:w.length)!==1)continue;const b=String(T.content),z=(M=(S=(x=b.match(/<([^\s>/]+)/))==null?void 0:x[1])==null?void 0:S.toLowerCase())!=null?M:"";if(!z)continue;const $=/\/\s*>\s*$/.test(b)||ed.has(z),U=T;if($){U.children=[{type:"html_inline",content:b}];continue}U.children.length=0}})}const nd=/^\[([^\]]*)\]\(([^)\s]*)/;function rd(e){const t=(n,o)=>{var m,g;const r=n,i=r.pos;if(r.src[i]!=="["||i>0&&r.src[i-1]==="!")return!1;const s=r.src.slice(i),a=nd.exec(s);if(!a)return!1;if(o)return!0;const u=(m=a[1])!=null?m:"",c=(g=a[2])!=null?g:"";if(u.includes("*")||u.includes(":"))return!1;const f=s.indexOf(")"),d=f!==-1,h=r.push("link_open","a",1);h.attrs=[["href",c]];const p=r.push("text","",0);return p.content=u,d?(r.push("link_close","a",-1),r.pos+=f+1):r.pos+=a[0].length,!0};e.inline.ruler.before("link","fix_link_inline",t)}function Bt(e){return{type:"text",content:e,raw:e}}function fn(e,t){t===1?e.push({type:"em_open",tag:"em",nesting:1}):t===2?e.push({type:"strong_open",tag:"strong",nesting:1}):t===3&&(e.push({type:"strong_open",tag:"strong",nesting:1}),e.push({type:"em_open",tag:"em",nesting:1}))}function hn(e,t){t===1?e.push({type:"em_close",tag:"em",nesting:-1}):t===2?e.push({type:"strong_close",tag:"strong",nesting:-1}):t===3&&(e.push({type:"em_close",tag:"em",nesting:-1}),e.push({type:"strong_close",tag:"strong",nesting:-1}))}function Gt(e,t,n){return{type:"link",loading:n,href:t,title:"",text:e,children:[{type:"text",content:e,raw:e}],raw:`[${e}](${t})`}}function od(e){e.core.ruler.after("inline","fix_link_tokens",t=>{var o;const n=(o=t.tokens)!=null?o:[];for(let r=0;r<n.length;r++){const i=n[r];if(i&&i.type==="inline"&&Array.isArray(i.children))try{i.children=id(i.children)}catch(s){console.error("[applyFixLinkTokens] failed to fix inline children",s)}}})}function id(e){var t,n,o,r,i,s,a,u,c,f,d,h,p,m,g,k,_,y,w,x,S,M,D,T,b,z,$,U,K,G,P,L,V,j,q,Y,ee,Q,oe,ne,ie,le,O,F,H,se,ge,Be,ae,xe,Fe,_e,Re,De,fe,ke,qe,yt,xt,je,bt,Ge,jt,_t,Ct,Qe,Nt,Et,It,St,N,v,C,B,J,W,ve,be,Ce,pe,Ee,we,ht,Ft,Rt,Le,Oe,pt,Mt,Ht,Zt,qt,an,cn,R,E,I,Z,me,ce,ye,Se,Je,Pe,Wt,tr,un,Io;if(e.length<4)return e;for(let A=0;A<=e.length-1;A++){A<0&&(A=0);const Ae=e[A];if(!Ae)break;if((Ae==null?void 0:Ae.type)==="em_open"&&((t=e[A-1])==null?void 0:t.type)==="text"&&((n=e[A-1].content)!=null&&n.endsWith("*"))){const ue=((o=e[A-1].content)==null?void 0:o.replace(/(\*+)$/,""))||"";e[A-1].content=ue,Ae.type="strong_open",Ae.tag="strong",Ae.markup="**";for(let he=A+1;he<e.length;he++)if(((r=e[he])==null?void 0:r.type)==="em_close"){e[he].type="strong_close",e[he].tag="strong",e[he].markup="**";break}}else if((Ae==null?void 0:Ae.type)==="text"&&((i=Ae.content)!=null&&i.endsWith("("))&&((s=e[A+1])==null?void 0:s.type)==="link_open"){const ue=Ae.content.match(/\[([^\]]+)\]/);if(ue){let he=Ae.content.slice(0,ue.index);const Ie=he.match(/(\*+)$/),de=[];if(Ie){he=he.slice(0,Ie.index),he&&de.push(Bt(he));const $e=ue[1],Te=Ie[1].length;fn(de,Te);let ze=((a=e[A+2])==null?void 0:a.content)||"";if(((u=e[A+4])==null?void 0:u.type)==="text"&&!((c=e[A+4].content)!=null&&c.startsWith(")"))&&(ze+=((f=e[A+4])==null?void 0:f.content)||"",e[A+4].content=""),de.push(Gt($e,ze,!((h=(d=e[A+4])==null?void 0:d.content)!=null&&h.startsWith(")")))),hn(de,Te),((p=e[A+4])==null?void 0:p.type)==="text"){const Ne=(m=e[A+4].content)==null?void 0:m.replace(/^\)\**/,"");Ne&&de.push(Bt(Ne)),e.splice(A,5,...de)}else e.splice(A,4,...de)}else{he&&de.push(Bt(he));let $e=ue[1];const Te=$e.match(/^\*+/);if(Te){const Ne=Te[0].length;$e=$e.replace(/^\*+/,"").replace(/\*+$/,"");let Yt=((g=e[A+2])==null?void 0:g.content)||"";if(((k=e[A+4])==null?void 0:k.type)==="text"&&!((_=e[A+4].content)!=null&&_.startsWith(")"))&&(Yt+=((y=e[A+4])==null?void 0:y.content)||"",e[A+4].content=""),fn(de,Ne),de.push(Gt($e,Yt,!((x=(w=e[A+4])==null?void 0:w.content)!=null&&x.startsWith(")")))),hn(de,Ne),((S=e[A+4])==null?void 0:S.type)==="text"){const dn=(M=e[A+4].content)==null?void 0:M.replace(/^\)/,"");dn&&de.push(Bt(dn)),e.splice(A,5,...de)}else e.splice(A,4,...de);A===0?A=de.length-1:A-=de.length-1;continue}let ze=((D=e[A+2])==null?void 0:D.content)||"";if(((T=e[A+4])==null?void 0:T.type)==="text"&&!((b=e[A+4].content)!=null&&b.startsWith(")"))&&(ze+=((z=e[A+4])==null?void 0:z.content)||"",e[A+4].content=""),de.push(Gt($e,ze,!((U=($=e[A+4])==null?void 0:$.content)!=null&&U.startsWith(")")))),((K=e[A+4])==null?void 0:K.type)==="text"){const Ne=(G=e[A+4].content)==null?void 0:G.replace(/^\)/,"");Ne&&de.push(Bt(Ne)),e.splice(A,5,...de)}else e.splice(A,4,...de)}A-=de.length-1;continue}}else if(Ae.type==="link_open"&&Ae.markup==="linkify"&&((P=e[A-1])==null?void 0:P.type)==="text"&&((L=e[A-1].content)!=null&&L.endsWith("("))){if(((V=e[A-2])==null?void 0:V.type)==="link_close"){const ue=[],he=e[A-3].content||"";let Ie=((q=(j=Ae.attrs)==null?void 0:j.find(de=>de[0]==="href"))==null?void 0:q[1])||"";if(((Y=e[A+3])==null?void 0:Y.type)==="text"){const de=((Q=(ee=e[A+3])==null?void 0:ee.content)!=null?Q:"").indexOf(")"),$e=de===-1;de===-1&&(Ie+=((ne=(oe=e[A+3])==null?void 0:oe.content)==null?void 0:ne.slice(0,de))||"",e[A+3].content=""),ue.push(Gt(he,Ie,$e));const Te=(ie=e[A+3].content)==null?void 0:ie.replace(/^\)\**/,"");Te&&ue.push(Bt(Te)),e.splice(A-4,8,...ue)}else ue.push({type:"link",loading:!0,href:Ie,title:"",text:he,children:[{type:"text",content:Ie,raw:Ie}],raw:`[${he}](${Ie})`}),e.splice(A-4,7,...ue);continue}else if(e[A-1].content==="]("&&((le=e[A-3])==null?void 0:le.type)==="text"&&((O=e[A-3].content)!=null&&O.endsWith(")")))if(((F=e[A-2])==null?void 0:F.type)==="strong_open"){const[ue,he]=((H=e[A-3].content)==null?void 0:H.split("[**"))||[];e[A+1].content=he||"",e[A-3].content=ue||"",e[A-1].content=""}else if(((se=e[A-2])==null?void 0:se.type)==="em_open"){const[ue,he]=((ge=e[A-3].content)==null?void 0:ge.split("[*"))||[];e[A+1].content=he||"",e[A-3].content=ue||"",e[A-1].content=""}else{const[ue,he]=((Be=e[A-3].content)==null?void 0:Be.split("["))||[];e[A+1].content=he||"",e[A-3].content=ue||"",e[A-1].content=""}}if(Ae.type==="link_close"&&Ae.nesting===-1&&((ae=e[A+1])==null?void 0:ae.type)==="text"&&((xe=e[A-1])==null?void 0:xe.type)==="text"){let ue=!0;const he=e[A-1].content||"";let Ie=((_e=(Fe=e[A-2].attrs)==null?void 0:Fe[0])==null?void 0:_e[1])||"",de=3,$e=2;const Te=(((Re=e[A-3])==null?void 0:Re.content)||"").match(/^(\*+)$/),ze=[];if(Te){$e+=1;const Ne=Te[1].length;fn(ze,Ne)}if((Ae.markup===""||e[A+1].type==="text"&&(e[A+1].content==="."||e[A+1].content==="?"))&&(ue=!1),Ae.markup==="linkify"&&((De=e[A+1])==null?void 0:De.type)==="text"&&!((ke=(fe=e[A+1])==null?void 0:fe.content)!=null&&ke.startsWith(" "))){const Ne=((yt=(qe=e[A+1])==null?void 0:qe.content)!=null?yt:"").indexOf(")");Ne===-1?(Ie+=((je=(xt=e[A+1])==null?void 0:xt.content)==null?void 0:je.slice(0,Ne))||"",e[A+1].content=""):ue=!1,de+=1}else if(e[A+1].type==="text"&&((Ge=(bt=e[A+1])==null?void 0:bt.content)!=null&&Ge.startsWith("]("))){de+=1;for(let Ne=A+1;Ne<e.length;Ne++){const Yt=Te?Te[1].length:e[A-3].markup.length,dn=e[Ne];if(Yt===1&&dn.type==="em_close"){ue=!1;break}else if(Yt===2&&dn.type==="strong_close"){ue=!1;break}else if(Yt===3&&(dn.type==="em_close"||dn.type==="strong_close")){ue=!1;break}de+=1}}if(ze.push({type:"link",loading:ue,href:Ie,title:"",text:he,children:[{type:"text",content:he,raw:he}],raw:`[${he}](${Ie})`}),Te){const Ne=Te[1].length;hn(ze,Ne)}e.splice(A-$e,de,...ze),A-=ze.length-1;continue}else if((jt=Ae.content)!=null&&jt.startsWith("](")&&((_t=e[A-1].markup)!=null&&_t.includes("*"))&&((Ct=e[A-4])==null?void 0:Ct.type)==="text"&&((Qe=e[A-4].content)!=null&&Qe.endsWith("["))){const ue=e[A-1].markup.length,he=[],Ie=e[A-4].content.slice(0,e[A-4].content.length-ue);Ie&&he.push(Bt(Ie)),fn(he,ue);const de=e[A-2].content||"";let $e=Ae.content.slice(2),Te=!0;if(((Nt=e[A+1])==null?void 0:Nt.type)==="text"){const ze=((It=(Et=e[A+1])==null?void 0:Et.content)!=null?It:"").indexOf(")");Te=ze===-1,ze===-1&&($e+=((N=(St=e[A+1])==null?void 0:St.content)==null?void 0:N.slice(0,ze))||"",e[A+1].content="")}if(he.push(Gt(de,$e,Te)),hn(he,ue),((v=e[A+1])==null?void 0:v.type)==="text"){const ze=(C=e[A+1].content)==null?void 0:C.replace(/^\)\**/,"");ze&&he.push(Bt(ze)),e.splice(A-4,8,...he)}else((B=e[A+1])==null?void 0:B.type)==="link_open"?e.splice(A-4,10,...he):e.splice(A-4,7,...he);A-=he.length-1;continue}else if((J=Ae.content)!=null&&J.startsWith("](")&&e[A-1].type==="strong_close"&&((W=e[A-4])==null?void 0:W.type)==="text"&&((be=(ve=e[A-4])==null?void 0:ve.content)!=null&&be.includes("**["))){A++;const ue=[],he=e[A-4].content.split("**[")[0];he&&ue.push(Bt(he)),fn(ue,2);const Ie=e[A-2].content||"";let de=Ae.content.slice(2),$e=!0;if(((Ce=e[A+1])==null?void 0:Ce.type)==="text"){const Te=((Ee=(pe=e[A+1])==null?void 0:pe.content)!=null?Ee:"").indexOf(")");$e=Te===-1,Te===-1&&(de+=((ht=(we=e[A+1])==null?void 0:we.content)==null?void 0:ht.slice(0,Te))||"",e[A+1].content="")}if(ue.push(Gt(Ie,de,$e)),hn(ue,2),((Ft=e[A+1])==null?void 0:Ft.type)==="text"){const Te=(Rt=e[A+1].content)==null?void 0:Rt.replace(/^\)\**/,"");Te&&ue.push(Bt(Te)),e.splice(A-4,8,...ue)}else((Le=e[A+1])==null?void 0:Le.type)==="link_open"?e.splice(A-4,10,...ue):e.splice(A-4,7,...ue);A-=ue.length-1;continue}else if(Ae.type==="strong_close"&&((Oe=e[A+1])==null?void 0:Oe.type)==="text"&&((pt=e[A+1].content)!=null&&pt.includes("]("))&&e[A-1].type==="text"&&/\[.*$/.test(e[A-1].content||"")){const ue=[],[he,Ie]=((Mt=e[A-1].content)==null?void 0:Mt.split("["))||["",""];he&&ue.push(Bt(he)),fn(ue,2);let[de,$e]=e[A+1].content.split("](");de=Ie+de;let Te=4;if(((Ht=e[A+2])==null?void 0:Ht.type)==="link_open"){const Ne=(qt=(Zt=e[A+2].attrs)==null?void 0:Zt.find(Yt=>Yt[0]==="href"))==null?void 0:qt[1];((an=e[A+5])==null?void 0:an.type)==="text"&&e[A+5].content==="."?($e=(Ne||$e)+e[A+5].content,e[A+5].content=""):$e=Ne||$e,Te+=3}let ze=!0;if(Ae.nesting===-1&&(de=de.replace(/\*+$/,"")),((cn=e[A+2])==null?void 0:cn.type)==="text"){const Ne=((E=(R=e[A+2])==null?void 0:R.content)!=null?E:"").indexOf(")");ze=Ne===-1,Ne===-1&&($e+=((Z=(I=e[A+2])==null?void 0:I.content)==null?void 0:Z.slice(0,Ne))||"",e[A+2].content="")}ue.push(Gt(de,$e,ze)),hn(ue,2),e.splice(A-2,Te,...ue)}if(Ae.type==="text"&&/\*+\[[^\]]*$/.test(Ae.content||"")&&((me=e[A+1])==null?void 0:me.type)==="strong_open"&&((ce=e[A+2])==null?void 0:ce.type)==="text"&&e[A+2].content==="]("&&((ye=e[A+3])==null?void 0:ye.type)==="link_open"&&((Se=e[A+5])==null?void 0:Se.type)==="link_close"&&((Je=e[A+6])==null?void 0:Je.type)==="text"&&e[A+6].content===")"&&((Pe=e[A+7])==null?void 0:Pe.type)==="strong_close"){const ue=(Ae.content||"").match(/^(\*+)\[(.*)$/);if(ue){const he=(ue[2]||"")+ue[1];let Ie=((un=(tr=(Wt=e[A+3])==null?void 0:Wt.attrs)==null?void 0:tr.find($e=>$e[0]==="href"))==null?void 0:un[1])||"";!Ie&&((Io=e[A+4])==null?void 0:Io.type)==="text"&&(Ie=e[A+4].content||"");const de=[];fn(de,2),de.push(Gt(he,Ie,!1)),hn(de,2),e.splice(A,9,...de),A-=de.length-1;continue}}}return e}function ld(e){e.core.ruler.after("inline","fix_list_item_tokens",t=>{var o;const n=(o=t.tokens)!=null?o:[];for(let r=0;r<n.length;r++){const i=n[r];if(i&&i.type==="inline"&&Array.isArray(i.children))try{i.children=sd(i.children)}catch(s){console.error("[applyFixListItem] failed to fix inline children",s)}}})}function sd(e){var o,r;const t=e[e.length-1],n=String((o=t==null?void 0:t.content)!=null?o:"");return(t==null?void 0:t.type)==="text"&&/^\s*\d+\.\s*$/.test(n)&&((r=e[e.length-2])==null?void 0:r.tag)==="br"&&e.splice(e.length-1,1),e}function ad(e){e.core.ruler.after("inline","fix_strong_tokens",t=>{var o;const n=(o=t.tokens)!=null?o:[];for(let r=0;r<n.length;r++){const i=n[r];if(i&&i.type==="inline"&&Array.isArray(i.children))try{i.children=cd(i.children)}catch(s){console.error("[applyFixStrongTokens] failed to fix inline children",s)}}})}function cd(e){var s,a,u,c,f,d;const t=[...e];if(e.length<4)return t;const n=e.length-4,o=e[n];if(!o)return t;const r=e[n+1],i=String((s=o.content)!=null?s:"");if(o.type==="link_open"&&((a=e[n-1])==null?void 0:a.type)==="em_open"&&((u=e[n-2])==null?void 0:u.type)==="text"&&((c=e[n-2].content)!=null&&c.endsWith("*"))){const h=String((f=e[n-2].content)!=null?f:"").slice(0,-1),p=[{type:"strong_open",tag:"strong",attrs:null,map:null,children:null,content:"",markup:"**",info:"",meta:null},e[n],e[n+1],e[n+2],{type:"strong_close",tag:"strong",attrs:null,map:null,children:null,content:"",markup:"**",info:"",meta:null}];h&&p.unshift({type:"text",content:h,raw:h}),t.splice(n-2,6,...p)}else if(o.type==="text"&&i.endsWith("*")&&r.type==="em_open"){const h=e[n+2],p=(h==null?void 0:h.type)==="text"?4:3,m=[{type:"strong_open",tag:"strong",attrs:null,map:null,children:null,content:"",markup:"**",info:"",meta:null},{type:"text",content:(h==null?void 0:h.type)==="text"?String((d=h.content)!=null?d:""):""},{type:"strong_close",tag:"strong",attrs:null,map:null,children:null,content:"",markup:"**",info:"",meta:null}],g=i.slice(0,-1);return g&&m.unshift({type:"text",content:g,raw:g}),t.splice(n,p,...m),t}return t}function ud(e){e.core.ruler.after("block","fix_table_tokens",t=>{var o;const n=t;try{const r=dd((o=n.tokens)!=null?o:[]);Array.isArray(r)&&(n.tokens=r)}catch(r){console.error("[applyFixTableTokens] failed to fix table tokens",r)}})}function di(){return[{type:"table_open",tag:"table",attrs:null,map:null,children:null,content:"",markup:"",info:"",level:0,loading:!0,meta:null},{type:"thead_open",tag:"thead",attrs:null,block:!0,level:1,children:null},{type:"tr_open",tag:"tr",attrs:null,block:!0,level:2,children:null}]}function fi(){return[{type:"tr_close",tag:"tr",attrs:null,block:!0,level:2,children:null},{type:"thead_close",tag:"thead",attrs:null,block:!0,level:1,children:null},{type:"table_close",tag:"table",attrs:null,map:null,children:null,content:"",markup:"",info:"",level:0,meta:null}]}function hi(e){return[{type:"th_open",tag:"th",attrs:null,block:!0,level:3,children:null},{type:"inline",tag:"",children:[{tag:"",type:"text",block:!1,content:e,children:null}],content:e,level:4,attrs:null,block:!0},{type:"th_close",tag:"th",attrs:null,block:!0,level:3,children:null}]}function dd(e){var r,i,s,a;const t=[...e];if(e.length<3)return t;const n=e.length-2,o=e[n];if(o.type==="inline"){const u=String((r=o.content)!=null?r:""),c=String((a=(s=(i=o.children)==null?void 0:i[0])==null?void 0:s.content)!=null?a:"");if(/^\|(?:[^|\n]+\|?)+/.test(u)){const f=c.slice(1).split("|").map(h=>h.trim()).filter(Boolean).flatMap(h=>hi(h)),d=[...di(),...f,...fi()];t.splice(n-1,3,...d)}else if(/^\|(?:[^|\n]+\|)+\n\|:?-/.test(u)){const f=c.slice(1,-1).split("|").map(h=>h.trim()).flatMap(h=>hi(h)),d=[...di(),...f,...fi()];t.splice(n-1,3,...d)}else/^\|(?:[^|\n:]+\|)+\n\|:?$/.test(u)&&(o.content=u.slice(0,-2),o.children.splice(2,1))}return t}function _l(e,t,n,o){const r=e.length;if(n==="$$"&&o==="$$"){let c=t;for(;c<r-1;){if(e[c]==="$"&&e[c+1]==="$"){let f=c-1,d=0;for(;f>=0&&e[f]==="\\";)d++,f--;if(d%2===0)return c}c++}return-1}const i=n[n.length-1],s=o;let a=0,u=t;for(;u<r;){if(e.slice(u,u+s.length)===s){let f=u-1,d=0;for(;f>=0&&e[f]==="\\";)d++,f--;if(d%2===0){if(a===0)return u;a--,u+=s.length;continue}}const c=e[u];if(c==="\\"){u+=2;continue}c===i?a++:c===s[s.length-1]&&a>0&&a--,u++}return-1}var fd=_l;const Cl=["mathbf","boldsymbol","mathbb","mathcal","mathfrak","mathrm","mathit","mathsf","vec","hat","bar","tilde","overline","underline","mathscr","mathnormal","operatorname","mathbf*"],Xn=Cl.map(e=>e.replace(/[.*+?^${}()|[\\]"\]/g,"\\$&")).join("|"),hd=/\\[a-z]+/i,El="(?:\\\\|\\u0008)",pd=new RegExp(`${El}(?:${Xn})\\s*\\{[^}]+\\}`,"i"),md=new RegExp(`(?:${El})?(?:${Xn})s*{`,"i"),gd=/\\(?:text|frac|left|right|times)/,kd=new RegExp("(?:^|[^+])\\+(?!\\+)|[=\\-*/^<>]|\\\\times|\\\\pm|\\\\cdot|\\\\le|\\\\ge|\\\\neq"),vd=/\b[A-Z]{2,}-[A-Z]{2,}\b/i,wd=/[A-Z]+\s*\([^)]+\)/i,yd=/\b(?:sin|cos|tan|log|ln|exp|sqrt|frac|sum|lim|int|prod)\b/,xd=/\b\d{4}\/\d{1,2}\/\d{1,2}(?:[ T]\d{1,2}:\d{2}(?::\d{2})?)?\b/;function hr(e){if(!e)return!1;const t=e.replace(/\u0008/g,"\\b"),n=t.trim();if(xd.test(n)||n.includes("**"))return!1;if(n.length>2e3)return!0;const o=hd.test(t),r=pd.test(t),i=md.test(t),s=gd.test(t),a=/(?:^|[^\w\\])(?:[A-Z]|\\[A-Z]+)_(?:\{[^}]+\}|[A-Z0-9\\])/i.test(t)||/(?:^|[^\w\\])(?:[A-Z]|\\[A-Z]+)\^(?:\{[^}]+\}|[A-Z0-9\\])/i.test(t),u=kd.test(t)&&!vd.test(t),c=wd.test(t),f=yd.test(t),d=/^\([a-z]\)$/i.test(n)||/^[a-z]$/i.test(n),h=/^(?:[A-Z][a-z]?(?:_\{?\d+\}?|\^\{?\d+\}?)?)+$/.test(n);return o||r||i||s||a||u||c||f||d||h}const xo=["ldots","cdots","quad","in","end","infty","perp","mid","operatorname","to","rightarrow","leftarrow","math","mathrm","mathbf","mathit","mathbb","mathcal","mathfrak","alpha","beta","gamma","delta","epsilon","lambda","sum","prod","int","sqrt","fbox","boxed","color","rule","edef","fcolorbox","hline","hdashline","cdot","times","pm","le","ge","neq","sin","cos","tan","log","ln","exp","lim","frac","text","left","right"],Sl=xo.slice().sort((e,t)=>t.length-e.length).map(e=>e.replace(/[.*+?^${}()|[\\]\\\]/g,"\\$&")).join("|"),Ml="[ \r\b\f\v]",bd=/span\{([^}]+)\}/,_d=/\\operatorname\{span\}\{((?:[^{}]|\{[^}]*\})+)\}/,Cd=/(^|[^\\])\\\r?\n/g,Ed=/(^|[^\\])\\$/g,Sd=new RegExp(`(${Ml})|(${Sl})\\b`,"g"),pi=new Map,mi=new Map;function Md(e){if(!e)return Sd;const t=[...e];t.sort((s,a)=>a.length-s.length);const n=t.join(""),o=pi.get(n);if(o)return o;const r=`(?:${t.map(s=>s.replace(/[.*+?^${}()|[\\]\\"\]/g,"\\$&")).join("|")})`,i=new RegExp(`(${Ml})|(${r})\\b`,"g");return pi.set(n,i),i}function Ad(e,t){const n=e?[]:[...t!=null?t:[]];e||n.sort((a,u)=>u.length-a.length);const o=e?"__default__":n.join(""),r=mi.get(o);if(r)return r;const i=e?[Xn,Sl].filter(Boolean).join("|"):[n.map(a=>a.replace(/[.*+?^${}()|[\\]\\\]/g,"\\$&")).join("|"),Xn].filter(Boolean).join("|"),s=new RegExp(`(^|[^\\\\\\w])(${i})\\s*\\{`,"g");return mi.set(o,s),s}const gi={" ":"t","\r":"r","\b":"b","\f":"f","\v":"v"};function ki(e){const t=/(^|[^\\])(__|\*\*)/g;let n=0;for(;t.exec(e)!==null;)n++;return n}function pn(e,t){var c,f;const n=(c=t==null?void 0:t.commands)!=null?c:xo,o=(f=t==null?void 0:t.escapeExclamation)!=null?f:!0,r=(t==null?void 0:t.commands)==null,i=Md(r?void 0:n);let s=e.replace(i,(d,h,p,m,g)=>{if(h!==void 0&&gi[h]!==void 0)return`\\${gi[h]}`;if(p&&n.includes(p)){const k=g&&typeof m=="number"?g[m-1]:void 0;return k==="\\"||k&&/\w/.test(k)?d:`\\${p}`}return d});o&&(s=s.replace(/(^|[^\\])!/g,"$1\\!"));let a=s;const u=Ad(r,r?void 0:n);return a=a.replace(u,(d,h,p)=>`${h}\\${p}{`),a=a.replace(bd,"span\\{$1\\}").replace(_d,"\\operatorname{span}\\{$1\\}"),a=a.replace(Cd,`$1\\\\
|
|
39
|
+
`),a=a.replace(Ed,"$1\\\\"),a}function Al(e,t){const n=(r,i)=>{const s=r,a=!!(t!=null&&t.strictDelimiters);if(/^\*[^*]+/.test(s.src))return!1;const u=[["$","$"],["\\(","\\)"]];let c=0,f=0;for(const[d,h]of u){const p=s.src;let m=!1;const g=k=>{if((k==="undefined"||k==null)&&(k=""),k==="\\"){s.pos=s.pos+k.length,c=s.pos;return}if(k==="\\)"||k==="\\("){const y=s.push("text_special","",0);y.content=k==="\\)"?")":"(",y.markup=k,s.pos=s.pos+k.length,c=s.pos;return}if(!k)return;const _=s.push("text","",0);_.content=k,s.pos=s.pos+k.length,c=s.pos};for(;!(c>=p.length);){const k=p.indexOf(d,c);if(k===-1)break;if(k>0){let x=k-1;for(;x>=0&&p[x]===" ";)x--;if(x>=0&&p[x]==="]")return!1}const _=fd(p,k+d.length,d,h);if(_===-1){const x=p.slice(k+d.length);if(x.includes(d)){c=p.indexOf(d,k+d.length);continue}if(_===-1){if(!a&&hr(x)&&!x.includes("`")){if(c=k+d.length,m=!0,!i){s.pending="";const S=ki(f?p.slice(f,c):p.slice(0,c))%2===1;if(f)g(p.slice(f,c));else{let M=p.slice(0,c);M.endsWith(d)&&(M=M.slice(0,M.length-d.length)),g(M)}if(S){const M=s.push("strong_open","",0);M.markup=p.slice(0,k+2);const D=s.push("math_inline","math",0);D.content=pn(x,t),D.markup=d==="$$"?"$$":d==="\\("?"\\(\\)":d==="$"?"$":"()",D.raw=`${d}${x}${h}`,D.loading=!0,M.content=x,s.push("strong_close","",0)}else{const M=s.push("math_inline","math",0);M.content=pn(x,t),M.markup=d==="$$"?"$$":d==="\\("?"\\(\\)":d==="$"?"$":"()",M.raw=`${d}${x}${h}`,M.loading=!0}s.pos=p.length}c=p.length,f=c}break}}const y=p.slice(k+d.length,_),w=y.includes("`");if(a?w:w||d!=="$"&&!hr(y)){c=_+h.length;const x=p.slice(s.pos,c);s.pending||g(x);continue}if(m=!0,!i){const x=p.slice(0,k);let S=p.slice(0,c)?p.slice(f,k):x;const M=ki(S)%2===1;if(k!==s.pos&&M&&(S=s.pending+p.slice(s.pos,k)),s.pending!==S)if(s.pending="",M){const D=S.match(/(\*+)/),T=S.slice(D.index+D[0].length);g(S.slice(0,D.index));const b=s.push("strong_open","",0);b.markup=D[0];const z=s.push("text","",0);z.content=T,s.push("strong_close","",0)}else g(S);if(M){const D=s.push("strong_open","",0);D.markup="**";const T=s.push("math_inline","math",0);T.content=pn(y,t),T.markup=d==="$$"?"$$":d==="\\("?"\\(\\)":d==="$"?"$":"()",T.raw=`${d}${y}${h}`,T.loading=!1;const b=p.slice(_+h.length),z=b.startsWith("*");if(z&&s.push("strong_close","",0),b){const $=s.push("text","",0);$.content=(b==null?"":String(b)).replace(/^\*+/,"")}z||s.push("strong_close","",0),s.pos=p.length,c=p.length,f=c;continue}else{const D=s.push("math_inline","math",0);D.content=pn(y,t),D.markup=d==="$$"?"$$":d==="\\("?"\\(\\)":d==="$"?"$":"()",D.raw=`${d}${y}${h}`,D.loading=!1}}c=_+h.length,f=c,s.pos=c}if(m)return i?s.pos=c:(c<p.length&&g(p.slice(c)),s.pos=p.length),!0}return!1},o=(r,i,s,a)=>{const u=r,c=t==null?void 0:t.strictDelimiters,f=c?[["\\[","\\]"],["$$","$$"]]:[["\\[","\\]"],["[","]"],["$$","$$"]],d=u.bMarks[i]+u.tShift[i],h=u.src.slice(d,u.eMarks[i]).trim();let p=!1,m="",g="";for(const[S,M]of f)if(h.startsWith(S))if(S.includes("["))if(t!=null&&t.strictDelimiters){if(h.replace("\\","")==="["){if(i+1<s){p=!0,m=S,g=M;break}continue}}else if(h.replace("\\","")==="["){if(i+1<s){p=!0,m=S,g=M;break}continue}else{const D=u.tokens[u.tokens.length-1];if(D&&D.type==="list_item_open"&&D.mark==="-"&&h.slice(S.length,h.indexOf("]")).trim()==="x")continue;if(h.replace("\\","").startsWith("[")&&!h.includes("](")){const T=h.indexOf("]");if(h.slice(T).trim()!=="]")continue;if(hr(h.slice(S.length,T))){p=!0,m=S,g=M;break}continue}}else{p=!0,m=S,g=M;break}if(!p)return!1;if(a)return!0;if(h.includes(g)&&h.indexOf(g)>m.length){const S=h.indexOf(m),M=h.indexOf(g,S+m.length),D=h.slice(S+m.length,M),T=u.push("math_block","math",0);return T.content=pn(D),T.markup=m==="$$"?"$$":m==="["?"[]":"\\[\\]",T.map=[i,i+1],T.raw=`${m}${D}${g}`,T.block=!0,T.loading=!1,u.line=i+1,!0}let k=i,_="",y=!1;const w=h===m?"":h.slice(m.length);if(w.includes(g)){const S=w.indexOf(g);_=w.slice(0,S),y=!0,k=i}else for(w&&(_=w),k=i+1;k<s;k++){const S=u.bMarks[k]+u.tShift[k],M=u.eMarks[k],D=u.src.slice(S-1,M);if(D.trim()===g){y=!0;break}else if(D.includes(g)){y=!0;const T=D.indexOf(g);_+=(_?`
|
|
40
|
+
`:"")+D.slice(0,T);break}_+=(_?`
|
|
41
|
+
`:"")+D}if(c&&!y)return!1;const x=u.push("math_block","math",0);return x.content=pn(_),x.markup=m==="$$"?"$$":m==="["?"[]":"\\[\\]",x.raw=`${m}${_}${_.startsWith(`
|
|
42
|
+
`)?`
|
|
43
|
+
`:""}${g}`,x.map=[i,k+1],x.block=!0,x.loading=!y,u.line=k+1,!0};e.inline.ruler.before("escape","math",n),e.block.ruler.before("paragraph","math_block",o,{alt:["paragraph","reference","blockquote","list"]})}function Bd(e){const t=e.renderer.rules.image||function(n,o,r,i,s){const a=n,u=s;return u.renderToken?u.renderToken(a,o,r):""};e.renderer.rules.image=(n,o,r,i,s)=>{var u,c;const a=n;return(c=(u=a[o]).attrSet)==null||c.call(u,"loading","lazy"),t(a,o,r,i,s)},e.renderer.rules.fence=e.renderer.rules.fence||((n,o)=>{var s,a;const r=n[o],i=String((s=r.info)!=null?s:"").trim();return`<pre class="${i?`language-${e.utils.escapeHtml(i.split(/\s+/g)[0])}`:""}"><code>${e.utils.escapeHtml(String((a=r.content)!=null?a:""))}</code></pre>`})}function Dd(e={}){var n,o,r,i,s;const t=new Gu(re({html:!0,linkify:!0,typographer:!0,stream:!0},(n=e.markdownItOptions)!=null?n:{}));return((o=e.enableMath)==null||o)&&Al(t,re(re({},(r=Ju())!=null?r:{}),(i=e.mathOptions)!=null?i:{})),((s=e.enableContainers)==null||s)&&bl(t),rd(t),od(t),ad(t),ld(t),ud(t),Bd(t),td(t),t}function Td(e){var n;const t=(n=e.meta)!=null?n:{};return{type:"checkbox",checked:t.checked===!0,raw:t.checked?"[x]":"[ ]"}}function $d(e){const t=e,n=t.attrGet?t.attrGet("checked"):void 0,o=n===""||n==="true";return{type:"checkbox_input",checked:o,raw:o?"[x]":"[ ]"}}function Nd(e){var n,o;const t=String((n=e.content)!=null?n:"");return{type:"emoji",name:t,markup:String((o=e.markup)!=null?o:""),raw:`:${t}:`}}function ar(e,t,n){var a,u,c;const o=[];let r="",i=t+1;const s=[];for(;i<e.length&&e[i].type!=="em_close";)r+=String((c=(u=e[i].content)!=null?u:(a=e[i])==null?void 0:a.text)!=null?c:""),s.push(e[i]),i++;return o.push(...Ve(s,void 0,void 0,{requireClosingStrong:n==null?void 0:n.requireClosingStrong})),{node:{type:"emphasis",children:o,raw:`*${r}*`},nextIndex:i<e.length?i+1:e.length}}const vi=/\r?\n[ \t]*`+\s*$/,Id=["diff ","index ","--- ","+++ ","@@ "],Fd=/\r?\n/;function Rd(e){const t=[],n=[];for(const o of e.split(Fd)){const r=o;Id.some(i=>r.startsWith(i))||(r.length>=2&&r[0]==="-"&&r[1]===" "?t.push(` ${r.slice(1)}`):r.length>=2&&r[0]==="+"&&r[1]===" "?n.push(` ${r.slice(1)}`):(t.push(r),n.push(r)))}return{original:t.join(`
|
|
44
|
+
`),updated:n.join(`
|
|
45
|
+
`)}}function zn(e){var u,c,f;const t=Array.isArray(e.map)&&e.map.length===2,n=(u=e.meta)!=null?u:{},o=typeof n.closed=="boolean"?n.closed:void 0,r=String((c=e.info)!=null?c:""),i=r.startsWith("diff"),s=i?(()=>{var p;const d=r,h=d.indexOf(" ");return h===-1?"":String((p=d.slice(h+1))!=null?p:"")})():r;let a=String((f=e.content)!=null?f:"");if(vi.test(a)&&(a=a.replace(vi,"")),i){const{original:d,updated:h}=Rd(a);return{type:"code_block",language:s,code:String(h!=null?h:""),raw:String(a!=null?a:""),diff:i,loading:o===!0?!1:o===!1?!0:!t,originalCode:d,updatedCode:h}}return{type:"code_block",language:s,code:String(a!=null?a:""),raw:String(a!=null?a:""),diff:i,loading:o===!0?!1:o===!1?!0:!t}}function Ld(e){var n,o,r;const t=(n=e.meta)!=null?n:{};return{type:"footnote_reference",id:String((o=t.label)!=null?o:""),raw:`[^${String((r=t.label)!=null?r:"")}]`}}function Od(){return{type:"hardbreak",raw:`\\
|
|
46
|
+
`}}function Pd(e,t,n){var a;const o=[];let r="",i=t+1;const s=[];for(;i<e.length&&e[i].type!=="mark_close";)r+=String((a=e[i].content)!=null?a:""),s.push(e[i]),i++;return o.push(...Ve(s,void 0,void 0,{requireClosingStrong:n==null?void 0:n.requireClosingStrong})),{node:{type:"highlight",children:o,raw:`==${r}==`},nextIndex:i<e.length?i+1:e.length}}function zd(e,t,n){var c,f,d;let o=String((c=e.content)!=null?c:"").trim();const r=t[n+1],i=t[n+2],s=o.match(/^<\s*([\w-]+)/),a=s?s[1].toLowerCase():"";function u(h){const p=h.match(/>([\s\S]*?)<\s*\/\s*[\w-]+>/);return p?p[1]:""}if(a==="a"){let h=!1;if((!r||(r==null?void 0:r.type)==="text"&&(!i||i.type!=="html_inline")||!r)&&(h=!0),(r==null?void 0:r.type)==="text"&&((i==null?void 0:i.type)==="html_inline"||!i)){const p=o.match(/href\s*=\s*"([^"]+)"|href\s*=\s*'([^']+)'|href\s*=\s*([^\s>]+)/i),m=p?p[1]||p[2]||p[3]:"";let g=n+1;r.type==="text"&&(o=(d=(f=r.content)==null?void 0:f.replace(/<[^>]*$/,""))!=null?d:"",g=n+2),(i==null?void 0:i.type)==="html_inline"&&r.type==="text"&&(g=n+3);const k=o||m||"";return[{type:"link",href:String(m!=null?m:""),title:null,text:o,children:[{type:"text",content:k,raw:k}],loading:h,raw:o},g]}}if(a==="p"||a==="div"){const h=u(o)||"";return[{type:"paragraph",children:[{type:"text",content:h,raw:h}],raw:o},n+1]}return[{type:"inline_code",code:o,raw:o},n+1]}function wi(e,t=!1){var f,d,h,p,m,g,k,_,y;let n=(f=e.attrs)!=null?f:[],o=null;if((!n||n.length===0)&&Array.isArray(e.children))for(const w of e.children){const x=w==null?void 0:w.attrs;if(Array.isArray(x)&&x.length>0){n=x,o=w;break}}const r=String((h=(d=n.find(w=>w[0]==="src"))==null?void 0:d[1])!=null?h:""),i=(p=n.find(w=>w[0]==="alt"))==null?void 0:p[1];let s="";i!=null&&String(i).length>0?s=String(i):(o==null?void 0:o.content)!=null&&String(o.content).length>0?s=String(o.content):Array.isArray(o==null?void 0:o.children)&&((m=o.children[0])!=null&&m.content)?s=String(o.children[0].content):Array.isArray(e.children)&&((g=e.children[0])!=null&&g.content)?s=String(e.children[0].content):e.content!=null&&String(e.content).length>0&&(s=String(e.content));const a=(_=(k=n.find(w=>w[0]==="title"))==null?void 0:k[1])!=null?_:null,u=a===null?null:String(a),c=String((y=e.content)!=null?y:"");return{type:"image",src:r,alt:s,title:u,raw:c,loading:t}}function Vd(e){var n;const t=String((n=e.content)!=null?n:"");return{type:"inline_code",code:t,raw:t}}function jd(e,t,n){var a;const o=[];let r="",i=t+1;const s=[];for(;i<e.length&&e[i].type!=="ins_close";)r+=String((a=e[i].content)!=null?a:""),s.push(e[i]),i++;return o.push(...Ve(s,void 0,void 0,{requireClosingStrong:n==null?void 0:n.requireClosingStrong})),{node:{type:"insert",children:o,raw:`++${String(r)}++`},nextIndex:i<e.length?i+1:e.length}}function Hd(e,t,n){var h,p,m,g,k,_;const o=(h=e[t].attrs)!=null?h:[],r=String((m=(p=o.find(y=>y[0]==="href"))==null?void 0:p[1])!=null?m:""),i=(k=(g=o.find(y=>y[0]==="title"))==null?void 0:g[1])!=null?k:null,s=i===null?null:String(i);let a=t+1;const u=[];let c=!0;for(;a<e.length&&e[a].type!=="link_close";)u.push(e[a]),a++;((_=e[a])==null?void 0:_.type)==="link_close"&&(c=!1);const f=Ve(u,void 0,void 0,{requireClosingStrong:n==null?void 0:n.requireClosingStrong}),d=f.map(y=>{var x,S;const w=y;return"content"in y?String((x=w.content)!=null?x:""):String((S=w.raw)!=null?S:"")}).join("");return{node:{type:"link",href:r,title:s,text:d,children:f,raw:`[${d}](${r}${s?` "${s}"`:""})`,loading:c},nextIndex:a<e.length?a+1:e.length}}function yi(e){var t;return{type:"math_inline",content:String((t=e.content)!=null?t:""),loading:!!e.loading,raw:e.raw}}function qd(e){var t,n,o;return{type:"reference",id:String((t=e.content)!=null?t:""),raw:String((o=e.markup)!=null?o:`[${(n=e.content)!=null?n:""}]`)}}function xi(e,t,n){var a;const o=[];let r="",i=t+1;const s=[];for(;i<e.length&&e[i].type!=="s_close";)r+=String((a=e[i].content)!=null?a:""),s.push(e[i]),i++;return o.push(...Ve(s,void 0,void 0,{requireClosingStrong:n==null?void 0:n.requireClosingStrong})),{node:{type:"strikethrough",children:o,raw:`~~${r}~~`},nextIndex:i<e.length?i+1:e.length}}function cr(e,t,n,o){var c;const r=[];let i="",s=t+1;const a=[];let u=1;for(;s<e.length;){if(e[s].type==="strong_close"){if(u===1)break;u--}e[s].type==="strong_open"&&u++,i+=String((c=e[s].content)!=null?c:""),a.push(e[s]),s++}return r.push(...Ve(a,n,void 0,{requireClosingStrong:o==null?void 0:o.requireClosingStrong})),{node:{type:"strong",children:r,raw:`**${String(i)}**`},nextIndex:s<e.length?s+1:e.length}}function Wd(e,t,n){var c,f;const o=[];let r="",i=t+1;const s=[];for(;i<e.length&&e[i].type!=="sub_close";)r+=String((c=e[i].content)!=null?c:""),s.push(e[i]),i++;o.push(...Ve(s,void 0,void 0,{requireClosingStrong:n==null?void 0:n.requireClosingStrong}));const a=String((f=e[t].content)!=null?f:""),u=r||a;return{node:{type:"subscript",children:o.length>0?o:[{type:"text",content:u,raw:u}],raw:`~${u}~`},nextIndex:i<e.length?i+1:e.length}}function Ud(e,t,n){var a,u,c,f;const o=[];let r="",i=t+1;const s=[];for(;i<e.length&&e[i].type!=="sup_close";)r+=String((a=e[i].content)!=null?a:""),s.push(e[i]),i++;return o.push(...Ve(s,void 0,void 0,{requireClosingStrong:n==null?void 0:n.requireClosingStrong})),{node:{type:"superscript",children:o.length>0?o:[{type:"text",content:r||String((u=e[t].content)!=null?u:""),raw:r||String((c=e[t].content)!=null?c:"")}],raw:`^${r||String((f=e[t].content)!=null?f:"")}^`},nextIndex:i<e.length?i+1:e.length}}function Kd(e){var n;const t=String((n=e.content)!=null?n:"");return{type:"text",content:t,raw:t}}const Xd=/\*\*([\s\S]*?)\*\*/;function Xr(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}const Zd=/^(?:https?:\/\/|mailto:|ftp:\/\/)/i,Yd=/:\/\//;function Gd(e){return e?Zd.test(e)||Yd.test(e):!1}function Ve(e,t,n,o){if(!e||e.length===0)return[];const r=[];let i=null;const s=e.some(b=>{var z;return b.type==="code_inline"&&/[^\x00-\x7F]/.test(String((z=b.content)!=null?z:""))}),a=typeof t=="string"&&/`/.test(t),u=e.some(b=>{var z,$;return b.type==="math_inline"&&/`/.test(String(($=(z=b.raw)!=null?z:b.content)!=null?$:""))});if(a&&(s||u))return Qd(String(t!=null?t:""));let c=0;const f=o==null?void 0:o.requireClosingStrong;function d(){i=null}function h(b,z){var $,U;if(/[^~]*~{2,}[^~]+/.test(b)){let K=b.indexOf("~~");K===-1&&(K=0);const G=b.slice(0,K);G&&(i?(i.content+=G,i.raw+=G):(i={type:"text",content:String(G!=null?G:""),raw:String(($=z.content)!=null?$:"")},r.push(i)));const{node:P}=xi([{type:"s_open",tag:"s",content:"",markup:"*",info:"",meta:null},{type:"text",tag:"",content:b.slice(K).replace(/~/g,""),markup:"",info:"",meta:null},{type:"s_close",tag:"s",content:"",markup:"*",info:"",meta:null}],0);return d(),k(P),c++,!0}if(/\*\*/.test(b)&&!b.endsWith("**")){const K=b.indexOf("**"),G=K>-1?b.slice(0,K):"";if(G&&_(G,G),K===-1)return c++,!0;const P=Xd.exec(b);let L="",V="";if(P&&typeof P.index=="number")L=P[1],V=b.slice(P.index+P[0].length);else{if(f)return _(b,b),c++,!0;L=b.slice(K+2),V=""}const{node:j}=cr([{type:"strong_open",tag:"strong",content:"",markup:"*",info:"",meta:null},{type:"text",tag:"",content:L,markup:"",info:"",meta:null},{type:"strong_close",tag:"strong",content:"",markup:"*",info:"",meta:null}],0,t,o);return d(),k(j),V&&(y({type:"text",content:V,raw:V}),c--),c++,!0}if(/[^*]*\*[^*]+/.test(b)){let K=b.indexOf("*");K===-1&&(K=0);const G=b.slice(0,K);G&&(i?(i.content+=G,i.raw+=G):(i={type:"text",content:String(G!=null?G:""),raw:String((U=z.content)!=null?U:"")},r.push(i)));const{node:P}=ar([{type:"em_open",tag:"em",content:"",markup:"*",info:"",meta:null},{type:"text",tag:"",content:b.slice(K).replace(/\*/g,""),markup:"",info:"",meta:null},{type:"em_close",tag:"em",content:"",markup:"*",info:"",meta:null}],0,o);return d(),k(P),c++,!0}return!1}function p(b,z){var q,Y;if(!b.includes("`"))return!1;const $=b.indexOf("`");let U=1;for(let ee=$+1;ee<b.length&&b[ee]==="`";ee++)U++;const K="`".repeat(U),G=$+U,P=b.indexOf(K,G);if(P===-1){if(U===1){const Q=b.slice(0,$),oe=b.slice($+1);return Q&&(h(Q,z)?c--:_(Q,Q)),m({type:"inline_code",code:oe,raw:String(oe)}),c++,!0}let ee=b;for(let Q=c+1;Q<e.length;Q++)ee+=String(((q=e[Q].content)!=null?q:"")+((Y=e[Q].markup)!=null?Y:""));return c=e.length-1,_(ee,ee),c++,!0}d();const L=b.slice(0,$),V=b.slice($+U,P),j=b.slice(P+U);return L&&(h(L,z)?c--:_(L,L)),m({type:"inline_code",code:V,raw:String(V!=null?V:"")}),j&&(y({type:"text",content:j,raw:j}),c--),c++,!0}function m(b){d(),r.push(b)}function g(b){d(),r.push(b)}function k(b){m(b)}function _(b,z){var $;i?(i.content+=b,i.raw+=z!=null?z:b):(i={type:"text",content:String(b!=null?b:""),raw:String(($=z!=null?z:b)!=null?$:"")},r.push(i))}for(;c<e.length;){const b=e[c];y(b)}function y(b){var z,$,U,K,G,P,L,V,j;switch(b.type){case"text":w(b);break;case"softbreak":i?(i.content+=`
|
|
47
|
+
`,i.raw+=`
|
|
48
|
+
`):(i={type:"text",content:`
|
|
49
|
+
`,raw:`
|
|
50
|
+
`},r.push(i)),c++;break;case"code_inline":k(Vd(b)),c++;break;case"html_inline":{const[q,Y]=zd(b,e,c);k(q),c=Y;break}case"link_open":x(b);break;case"image":d(),k(wi(b)),c++;break;case"strong_open":{d();const{node:q,nextIndex:Y}=cr(e,c,b.content,o);k(q),c=Y;break}case"em_open":{d();const{node:q,nextIndex:Y}=ar(e,c,o);k(q),c=Y;break}case"s_open":{d();const{node:q,nextIndex:Y}=xi(e,c,o);k(q),c=Y;break}case"mark_open":{d();const{node:q,nextIndex:Y}=Pd(e,c,o);k(q),c=Y;break}case"ins_open":{d();const{node:q,nextIndex:Y}=jd(e,c,o);k(q),c=Y;break}case"sub_open":{d();const{node:q,nextIndex:Y}=Wd(e,c,o);k(q),c=Y;break}case"sup_open":{d();const{node:q,nextIndex:Y}=Ud(e,c,o);k(q),c=Y;break}case"sub":d(),k({type:"subscript",children:[{type:"text",content:String((z=b.content)!=null?z:""),raw:String(($=b.content)!=null?$:"")}],raw:`~${String((U=b.content)!=null?U:"")}~`}),c++;break;case"sup":d(),k({type:"superscript",children:[{type:"text",content:String((K=b.content)!=null?K:""),raw:String((G=b.content)!=null?G:"")}],raw:`^${String((P=b.content)!=null?P:"")}^`}),c++;break;case"emoji":{d();const q=e[c-1];(q==null?void 0:q.type)==="text"&&/\|:-+/.test(String((L=q.content)!=null?L:""))?_("",""):k(Nd(b)),c++;break}case"checkbox":d(),k(Td(b)),c++;break;case"checkbox_input":d(),k($d(b)),c++;break;case"footnote_ref":d(),k(Ld(b)),c++;break;case"hardbreak":d(),k(Od()),c++;break;case"fence":d(),k(zn(e[c])),c++;break;case"math_inline":d(),!b.content&&b.markup==="$"&&((V=e[c+1])==null?void 0:V.type)==="text"&&((j=e[c+2])==null?void 0:j.type)==="math_inline"?(k(yi(He(re({},b),{content:e[c+1].content}))),c+=2):k(yi(b)),c++;break;case"reference":S(b);break;default:g(b),c++;break}}function w(b){var P,L,V,j,q,Y,ee;let z=r.length-1,$=String((P=b.content)!=null?P:"").replace(/\\/g,"");if(b.content==="<"||$==="1"&&((L=e[c-1])==null?void 0:L.tag)==="br"){c++;return}for($.startsWith(")")&&((V=r[r.length-1])==null?void 0:V.type)==="link"&&($=$.slice(1)),Array.from($.matchAll(/\$/g)).length===1&&$.endsWith("$")&&($=$.slice(0,-1)),$.endsWith("undefined")&&!(t!=null&&t.endsWith("undefined"))&&($=$.slice(0,-9));z>=0;z--){const Q=r[z];if(Q.type==="text"){i=null,$=Q.content+$;continue}break}z<r.length-1&&r.splice(z+1);const U=e[c+1];if((n==null?void 0:n.type)==="list_item_open"&&/^\d$/.test($)){c++;return}if($==="`"||$==="|"||$==="$"||/^\*+$/.test($)){c++;return}if(!U&&/[^\]]\s*\(\s*$/.test($)&&($=$.replace(/\(\s*$/,"")),T($))return;const K=e[c-1];if($==="["&&!((j=U==null?void 0:U.markup)!=null&&j.includes("*"))||$==="]"&&!((q=K==null?void 0:K.markup)!=null&&q.includes("*"))){c++;return}if(p($,b)||D($,b)||((Y=e[c+1])==null?void 0:Y.type)!=="link_open"&&M($)||h($,b))return;if(!$){c++;return}const G=Kd(He(re({},b),{content:$}));if(i)i.content+=G.content.replace(/(\*+|\(|\\)$/,""),i.raw+=G.raw;else{const Q=(K==null?void 0:K.tag)==="br"&&((ee=e[c-2])==null?void 0:ee.content)==="[";e[c+1]||(G.content=G.content.replace(/(\*+|\(|\\)$/,"")),i=G,i.center=Q,r.push(i)}c++}function x(b){var P,L,V,j,q,Y,ee,Q,oe,ne,ie,le,O,F,H,se,ge,Be;d();const z=(L=(P=b.attrs)==null?void 0:P.find(([ae])=>ae==="href"))==null?void 0:L[1];if(t&&e[c+1].type==="text"){let ae=String((j=(V=e[c+1])==null?void 0:V.content)!=null?j:"");const xe=Xr(ae);if(!new RegExp(`\\[${xe}\\s*\\]`).test(t)){const Fe=(ee=(Y=(q=b.attrs)==null?void 0:q.find(([_e])=>_e==="href"))==null?void 0:Y[1])!=null?ee:"";if(!t.includes("[")&&Gd(String(Fe))){d(),m({type:"link",href:String(Fe),title:null,text:ae,children:[{type:"text",content:ae,raw:ae}],loading:!1}),c+=3;return}if(((Q=e[c+2])==null?void 0:Q.type)==="strong_open"){for(c+=2;c<e.length-1&&e[c]&&((oe=e[c])==null?void 0:oe.type)!=="link_close";)ae+=String(((ne=e[c])==null?void 0:ne.markup)||((ie=e[c])==null?void 0:ie.content)||""),c++;m({type:"link",href:String(Fe),title:null,text:ae,children:[{type:"text",content:ae,raw:ae}],loading:!1}),c+=1}else _(ae,ae),c+=3;return}}if(t&&z){const ae=new RegExp(`\\(\\s*${Xr(z)}\\s*\\)`),xe=r.length>0?r[r.length-1]:void 0,Fe=!ae.test(t);if(Fe&&xe){let _e="";if(xe&&(xe.type==="link"?_e=String((le=xe.text)!=null?le:""):xe.type==="text"?_e=String((O=xe.content)!=null?O:""):xe.content&&typeof xe.content=="string"&&(_e=String((F=xe.content)!=null?F:"").slice(1,-1))),new RegExp(`\\[${Xr(_e)}\\s*\\]\\(`).test(t)){const Re=String(_e!=null?_e:"");d();const De={type:"link",href:"",title:null,text:Re,children:[{type:"text",content:Re,raw:Re}],loading:Fe};r.splice(r.length-1,1,De),c+=3,String((se=(H=e[c])==null?void 0:H.content)!=null?se:"")==="."&&c++;return}}}const{node:$,nextIndex:U}=Hd(e,c,{requireClosingStrong:f});c=U;const K=(Be=(ge=b.attrs)==null?void 0:ge.find(([ae])=>ae==="href"))==null?void 0:Be[1],G=String(K!=null?K:"");if(t&&G){const ae=t.indexOf("](");if(ae!==-1){const xe=t.indexOf(")",ae+2);xe===-1?$.loading=!0:$.loading&&t.slice(ae+2,xe).includes(G)&&($.loading=!1)}}m($)}function S(b){var P,L,V,j,q,Y,ee,Q;d();const z=e[c+1],$=e[c-1],U=r[r.length-1],K=(z==null?void 0:z.type)==="text"&&!String((P=z.content)!=null?P:"").startsWith("("),G=($==null?void 0:$.type)==="text"&&/\]$|^\s*$/.test(String((L=$.content)!=null?L:""));K||G?k(qd(b)):z&&z.type==="text"?z.content=String((V=b.markup)!=null?V:"")+String((j=z.content)!=null?j:""):U&&U.type==="text"&&(U.content=String((q=U.content)!=null?q:"")+String((Y=b.markup)!=null?Y:""),U.raw=String((ee=U.raw)!=null?ee:"")+String((Q=b.markup)!=null?Q:"")),c++}function M(b,z){var G;const $=b.indexOf("[");if($===-1)return!1;let U=b.slice(0,$);const K=b.indexOf("](",$);if(K!==-1){const P=e[c+2];let L=b.slice($+1,K);if(L.includes("[")){const oe=L.indexOf("[");U+=b.slice(0,$+oe+1);const ne=$+oe+1;L=b.slice(ne+1,K)}const V=e[c+1];if(b.endsWith("](")&&(V==null?void 0:V.type)==="link_open"&&P){const oe=e[c+4];let ne=4,ie=!0;return(oe==null?void 0:oe.type)==="text"&&oe.content===")"?(ne++,ie=!1):(oe==null?void 0:oe.type)==="text"&&oe.content==="."&&c++,U&&_(U,U),m({type:"link",href:String((G=P.content)!=null?G:""),title:null,text:L,children:[{type:"text",content:L,raw:L}],loading:ie}),c+=ne,!0}const j=b.indexOf(")",K),q=j!==-1?b.slice(K+2,j):"",Y=j===-1;let ee=U.match(/\*+$/);if(ee&&(U=U.replace(/\*+$/,"")),U&&_(U,U),ee||(ee=L.match(/^\*+/)),!f&&ee){const oe=ee[0].length;L=L.replace(/^\*+/,"").replace(/\*+$/,"");const ne=[];if(oe===1?ne.push({type:"em_open",tag:"em",nesting:1}):oe===2?ne.push({type:"strong_open",tag:"strong",nesting:1}):oe===3&&(ne.push({type:"strong_open",tag:"strong",nesting:1}),ne.push({type:"em_open",tag:"em",nesting:1})),ne.push({type:"link",href:q,title:null,text:L,children:[{type:"text",content:L,raw:L}],loading:Y}),oe===1){ne.push({type:"em_close",tag:"em",nesting:-1});const{node:ie}=ar(ne,0,o);k(ie)}else if(oe===2){ne.push({type:"strong_close",tag:"strong",nesting:-1});const{node:ie}=cr(ne,0,void 0,o);k(ie)}else if(oe===3){ne.push({type:"em_close",tag:"em",nesting:-1}),ne.push({type:"strong_close",tag:"strong",nesting:-1});const{node:ie}=cr(ne,0,void 0,o);k(ie)}else{const{node:ie}=ar(ne,0,o);k(ie)}}else m({type:"link",href:q,title:null,text:L,children:[{type:"text",content:L,raw:L}],loading:Y});const Q=j!==-1?b.slice(j+1):"";return Q&&(y({type:"text",content:Q,raw:Q}),c--),c++,!0}return!1}function D(b,z){const $=b.indexOf("![");if($===-1)return!1;const U=b.slice(0,$);return i?i.content+=U:i={type:"text",content:U,raw:U},r.push(i),i=null,m(wi(z,!0)),c++,!0}function T(b){if(!(b!=null&&b.startsWith("[")&&(n==null?void 0:n.type)==="list_item_open"))return!1;const z=b.slice(1).match(/[^\s\]]/);if(z===null)return c++,!0;if(z&&/x/i.test(z[0])){const $=z[0]==="x"||z[0]==="X";return m({type:"checkbox_input",checked:$,raw:$?"[x]":"[ ]"}),c++,!0}return!1}return Jd(t,r)}function Jd(e,t){if(!e)return t;const n=e.trim(),o=/^\[([\s\S]+?)\]\(([^)]+)\)$/.exec(n);if(!o)return t;const r=o[1],i=o[2],s=t.filter(u=>u.type==="link"),a=s.find(u=>String(u.href||"")===i&&String(u.text||"")===r)||s.find(u=>String(u.href||"")===i);return a?[a]:t}function Qd(e){const t=[],n=[{type:"root",children:t}];let o=0;function r(){return n[n.length-1].children}function i(s){if(!s)return;const a=r()[r().length-1];a&&a.type==="text"?(a.content+=s,a.raw+=s):r().push({type:"text",content:s,raw:s})}for(;o<e.length;){if(e[o]==="*"&&e[o+1]==="*"){const u=n.length>1&&n[n.length-1].type==="strong";if(o+=2,u){const c=n.pop().children;r().push({type:"strong",children:c,raw:`**${c.map(f=>{var d;return(d=f.raw)!=null?d:""}).join("")}**`})}else n.push({type:"strong",children:[]});continue}if(e[o]==="`"){let u=1,c=o+1;for(;c<e.length&&e[c]==="`";)u++,c++;const f="`".repeat(u),d=o+u,h=e.indexOf(f,d);if(h===-1){i(e.slice(o));break}const p=e.slice(d,h);r().push({type:"inline_code",code:p,raw:p}),o=h+u;continue}let s=e.indexOf("`",o);const a=e.indexOf("**",o);a!==-1&&(s===-1||a<s)&&(s=a),s===-1&&(s=e.length),i(e.slice(o,s)),o=s}for(;n.length>1;)i(`**${n.pop().children.map(s=>{var a,u;return(u=(a=s.raw)!=null?a:s.content)!=null?u:""}).join("")}`);return t}function Bl(e,t,n){var i,s;const o=[];let r=t+1;for(;r<e.length&&e[r].type!=="blockquote_close";)if(e[r].type==="paragraph_open"){const a=e[r+1];o.push({type:"paragraph",children:Ve(a.children||[],String((i=a.content)!=null?i:""),void 0,{requireClosingStrong:n==null?void 0:n.requireClosingStrong}),raw:String((s=a.content)!=null?s:"")}),r+=3}else if(e[r].type==="bullet_list_open"||e[r].type==="ordered_list_open"){const[a,u]=Br(e,r);o.push(a),r=u}else r++;return[{type:"blockquote",children:o,raw:o.map(a=>a.raw).join(`
|
|
51
|
+
`)},r+1]}function bo(e){var r,i,s,a,u;if((r=e.info)!=null&&r.startsWith("diff"))return zn(e);const t=String((i=e.content)!=null?i:""),n=t.match(/ type="application\/vnd\.ant\.([^"]+)"/);n!=null&&n[1]&&(e.content=t.replace(/<antArtifact[^>]*>/g,"").replace(/<\/antArtifact>/g,""));const o=Array.isArray(e.map)&&e.map.length===2;return{type:"code_block",language:n?n[1]:String((s=e.info)!=null?s:""),code:String((a=e.content)!=null?a:""),raw:String((u=e.content)!=null?u:""),loading:!o}}function Dl(e,t,n){var a,u;const o=[];let r=t+1,i=[],s=[];for(;r<e.length&&e[r].type!=="dl_close";)if(e[r].type==="dt_open"){const c=e[r+1];i=Ve(c.children||[],void 0,void 0,{requireClosingStrong:n==null?void 0:n.requireClosingStrong}),r+=3}else if(e[r].type==="dd_open"){let c=r+1;for(s=[];c<e.length&&e[c].type!=="dd_close";)if(e[c].type==="paragraph_open"){const f=e[c+1];s.push({type:"paragraph",children:Ve(f.children||[],String((a=f.content)!=null?a:""),void 0,{requireClosingStrong:n==null?void 0:n.requireClosingStrong}),raw:String((u=f.content)!=null?u:"")}),c+=3}else c++;i.length>0&&(o.push({type:"definition_item",term:i,definition:s,raw:`${i.map(f=>f.raw).join("")}: ${s.map(f=>f.raw).join(`
|
|
52
|
+
`)}`}),i=[]),r=c+1}else r++;return[{type:"definition_list",items:o,raw:o.map(c=>c.raw).join(`
|
|
53
|
+
`)},r+1]}function Tl(e,t,n){var a,u,c,f;const o=(a=e[t].meta)!=null?a:{},r=String((u=o==null?void 0:o.label)!=null?u:"0"),i=[];let s=t+1;for(;s<e.length&&e[s].type!=="footnote_close";)if(e[s].type==="paragraph_open"){const d=e[s+1];i.push({type:"paragraph",children:Ve(d.children||[],String((c=d.content)!=null?c:""),void 0,{requireClosingStrong:n==null?void 0:n.requireClosingStrong}),raw:String((f=d.content)!=null?f:"")}),s+=3}else s++;return[{type:"footnote",id:r,children:i,raw:`[^${r}]: ${i.map(d=>d.raw).join(`
|
|
54
|
+
`)}`},s+1]}function $l(e,t,n){var u,c,f;const o=e[t],r=String((c=(u=o.tag)==null?void 0:u.substring(1))!=null?c:"1"),i=Number.parseInt(r,10),s=e[t+1],a=String((f=s.content)!=null?f:"");return{type:"heading",level:i,text:a,children:Ve(s.children||[],a,void 0,{requireClosingStrong:n==null?void 0:n.requireClosingStrong}),raw:a}}function _o(e){var t,n;return{type:"math_block",content:String((t=e.content)!=null?t:""),loading:!!e.loading,raw:String((n=e.raw)!=null?n:"")}}function ef(e){if(!e)return"left";for(const t of e){if(!t)continue;const[n,o]=t;if(!o)continue;const r=String(o).trim().toLowerCase();if(n==="style"){const i=/text-align\s*:\s*(left|right|center)/i.exec(r);if(i)return i[1].toLowerCase()}}return"left"}function Nl(e,t,n){var a,u;let o=t+1,r=null;const i=[];let s=!1;for(;o<e.length&&e[o].type!=="table_close";)if(e[o].type==="thead_open")s=!0,o++;else if(e[o].type==="thead_close")s=!1,o++;else if(e[o].type==="tbody_open"||e[o].type==="tbody_close")o++;else if(e[o].type==="tr_open"){const c=[];let f=o+1;for(;f<e.length&&e[f].type!=="tr_close";)if(e[f].type==="th_open"||e[f].type==="td_open"){const h=e[f].type==="th_open",p=e[f+1],m=String((a=p.content)!=null?a:""),g=ef(e[f].attrs);c.push({type:"table_cell",header:h||s,children:Ve(p.children||[],m,void 0,{requireClosingStrong:n==null?void 0:n.requireClosingStrong}),raw:m,align:g}),f+=3}else f++;const d={type:"table_row",cells:c,raw:c.map(h=>h.raw).join("|")};s?r=d:i.push(d),o=f+1}else o++;return r||(r={type:"table_row",cells:[],raw:""}),[{type:"table",header:r,rows:i,loading:(u=e[t].loading)!=null?u:!1,raw:[r,...i].map(c=>c.raw).join(`
|
|
55
|
+
`)},o+1]}function Il(){return{type:"thematic_break",raw:"---"}}function Br(e,t,n){var s,a,u,c,f;const o=e[t],r=[];let i=t+1;for(;i<e.length&&e[i].type!=="bullet_list_close"&&e[i].type!=="ordered_list_close";)if(e[i].type==="list_item_open"){const d=[];let h=i+1;for(;h<e.length&&e[h].type!=="list_item_close";)if(e[h].type==="paragraph_open"){const p=e[h+1],m=e[h-1],g=String((s=p.content)!=null?s:"");/\n\d+$/.test(g)&&(p.content=g.replace(/\n\d+$/,""),(a=p.children)==null||a.splice(-1,1)),d.push({type:"paragraph",children:Ve(p.children||[],String((u=p.content)!=null?u:""),m,{requireClosingStrong:n==null?void 0:n.requireClosingStrong}),raw:String((c=p.content)!=null?c:"")}),h+=3}else if(e[h].type==="blockquote_open"){const[p,m]=Bl(e,h);d.push(p),h=m}else if(e[h].type==="bullet_list_open"||e[h].type==="ordered_list_open"){const[p,m]=Fl(e,h,n);d.push(p),h=m}else if(e[h].type==="code_block")d.push(bo(e[h])),h+=1;else if(e[h].type==="fence")d.push(zn(e[h])),h+=1;else if(e[h].type==="math_block")d.push(_o(e[h])),h+=1;else if(e[h].type==="table_open"){const[p,m]=Nl(e,h);d.push(p),h=m}else if(e[h].type==="dl_open"){const[p,m]=Dl(e,h);d.push(p),h=m}else if(e[h].type==="footnote_open"){const[p,m]=Tl(e,h);d.push(p),h=m}else if(e[h].type==="heading_open"){const p=$l(e,h);d.push(p),h+=3}else if(e[h].type==="hr")d.push(Il()),h+=1;else if(e[h].type==="container_open"){const p=/^::: ?(warning|info|note|tip|danger|caution) ?(.*)$/.exec(String((f=e[h].info)!=null?f:""));if(p){const[m,g]=Rl(e,h,p);d.push(m),h=g}else h+=1}else h+=1;r.push({type:"list_item",children:d,raw:d.map(p=>p.raw).join("")}),i=h+1}else i+=1;return[{type:"list",ordered:o.type==="ordered_list_open",start:(()=>{if(o.attrs&&o.attrs.length){const d=o.attrs.find(h=>h[0]==="start");if(d){const h=Number(d[1]);return Number.isFinite(h)&&h!==0?h:1}}})(),items:r,raw:r.map(d=>d.raw).join(`
|
|
56
|
+
`)},i+1]}function Fl(e,t,n){var s,a;const o=e[t],r=[];let i=t+1;for(;i<e.length&&e[i].type!=="bullet_list_close"&&e[i].type!=="ordered_list_close";)if(e[i].type==="list_item_open"){const u=[];let c=i+1;for(;c<e.length&&e[c].type!=="list_item_close";)if(e[c].type==="paragraph_open"){const f=e[c+1],d=e[c-1];u.push({type:"paragraph",children:Ve(f.children||[],String((s=f.content)!=null?s:""),d,{requireClosingStrong:n==null?void 0:n.requireClosingStrong}),raw:String((a=f.content)!=null?a:"")}),c+=3}else if(e[c].type==="bullet_list_open"||e[c].type==="ordered_list_open"){const[f,d]=Fl(e,c,n);u.push(f),c=d}else e[c].type==="code_block"?(u.push(bo(e[c])),c+=1):e[c].type==="fence"?(u.push(zn(e[c])),c+=1):(e[c].type==="math_block"&&u.push(_o(e[c])),c+=1);r.push({type:"list_item",children:u,raw:u.map(f=>f.raw).join("")}),i=c+1}else i+=1;return[{type:"list",ordered:o.type==="ordered_list_open",start:(()=>{if(o.attrs&&o.attrs.length){const u=o.attrs.find(c=>c[0]==="start");if(u){const c=Number(u[1]);return Number.isFinite(c)&&c!==0?c:1}}})(),items:r,raw:r.map(u=>u.raw).join(`
|
|
57
|
+
`)},i+1]}function Rl(e,t,n,o){var u,c,f,d;const r=String((u=n[1])!=null?u:"note"),i=String((c=n[2])!=null?c:r.charAt(0).toUpperCase()+r.slice(1)),s=[];let a=t+1;for(;a<e.length&&e[a].type!=="container_close";)if(e[a].type==="paragraph_open"){const h=e[a+1];h&&s.push({type:"paragraph",children:Ve(h.children||[],String((f=h.content)!=null?f:""),void 0,{requireClosingStrong:o==null?void 0:o.requireClosingStrong}),raw:String((d=h.content)!=null?d:"")}),a+=3}else if(e[a].type==="bullet_list_open"||e[a].type==="ordered_list_open"){const[h,p]=Br(e,a,o);s.push(h),a=p}else a++;return[{type:"admonition",kind:r,title:i,children:s,raw:`:::${r} ${i}
|
|
58
|
+
${s.map(h=>h.raw).join(`
|
|
59
|
+
`)}
|
|
60
|
+
:::`},a+1]}function tf(e,t,n){var f,d,h,p;const o=e[t];let r="note",i="";const s=o.type.match(/^container_(\w+)_open$/);if(s){r=s[1];const m=String((f=o.info)!=null?f:"").trim();if(m&&!m.startsWith(":::")){const g=m.replace(new RegExp(`^${r}`),"").trim();g&&(i=g)}}else{const m=String((d=o.info)!=null?d:"").trim(),g=/^:{1,3}\s*(warning|info|note|tip|danger|caution)\s*(.*)$/i.exec(m);g&&(r=g[1],i=String((h=g[2])!=null?h:""))}i||(i=r.charAt(0).toUpperCase()+r.slice(1));const a=[];let u=t+1;const c=new RegExp(`^container_${r}_close$`);for(;u<e.length&&e[u].type!=="container_close"&&!c.test(e[u].type);)if(e[u].type==="paragraph_open"){const m=e[u+1];if(m){const g=m.children||[];let k=-1;for(let y=g.length-1;y>=0;y--){const w=g[y];if(w.type==="text"&&/:+/.test(w.content)){k=y;break}}const _=k!==-1?g.slice(0,k):g;a.push({type:"paragraph",children:Ve(_||[],void 0,void 0,{requireClosingStrong:n==null?void 0:n.requireClosingStrong}),raw:String((p=m.content)!=null?p:"").replace(/\n:+$/,"").replace(/\n\s*:::\s*$/,"")})}u+=3}else if(e[u].type==="bullet_list_open"||e[u].type==="ordered_list_open"){const[m,g]=Br(e,u,n);a.push(m),u=g}else u++;return[{type:"admonition",kind:r,title:i,children:a,raw:`:::${r} ${i}
|
|
61
|
+
${a.map(m=>m.raw).join(`
|
|
62
|
+
`)}
|
|
63
|
+
:::`},u+1]}function nf(){return{type:"hardbreak",raw:`\\
|
|
64
|
+
`}}const rf=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]),bi=new Map;function of(e){var u,c;const t=String((u=e.content)!=null?u:"");if(/^\s*<!--/.test(t)||/^\s*<!/.test(t)||/^\s*<\?/.test(t))return{type:"html_block",content:t,raw:t,tag:"",loading:!1};const n=(((c=t.match(/^\s*<([A-Z][\w:-]*)/i))==null?void 0:c[1])||"").toLowerCase();if(!n)return{type:"html_block",content:t,raw:t,tag:"",loading:!1};const o=/^\s*<[^>]*\/\s*>/.test(t),r=rf.has(n);let i=bi.get(n);i||(i=new RegExp(`<\\/\\s*${n}\\b`,"i"),bi.set(n,i));const s=i.test(t),a=!(r||o||s);return{type:"html_block",content:a?`${t.replace(/<[^>]*$/,"")}
|
|
65
|
+
</${n}>`:t,raw:t,tag:n,loading:a}}function lf(e,t,n){var i;const o=e[t+1],r=String((i=o.content)!=null?i:"");return{type:"paragraph",children:Ve(o.children||[],r,void 0,{requireClosingStrong:n==null?void 0:n.requireClosingStrong}),raw:r}}function Ll(e,t,n={}){let o=(e!=null?e:"").toString().replace(/([^\\])\right/g,"$1\\right");o.endsWith("- *")&&(o=o.replace(/- \*$/,"- \\*")),/\n\s*-\s*$/.test(o)?o=o.replace(/\n\s*-\s*$/,`
|
|
66
|
+
`):/\n[[(]\n*$/.test(o)&&(o=o.replace(/(\n\[|\n\()+\n*$/g,`
|
|
67
|
+
`));const r=t.parse(o,{});if(!r||!Array.isArray(r))return[];const i=n.preTransformTokens,s=n.postTransformTokens;let a=r;i&&typeof i=="function"&&(a=i(a)||a);let u=oo(a,n);if(s&&typeof s=="function"){const c=s(a);if(Array.isArray(c)){const f=c[0],d=f==null?void 0:f.type;f&&typeof d=="string"?u=oo(c):u=c}}return u}function oo(e,t){var r,i;if(!e||!Array.isArray(e))return[];const n=[];let o=0;for(;o<e.length;){const s=e[o];switch(s.type){case"container_warning_open":case"container_info_open":case"container_note_open":case"container_tip_open":case"container_danger_open":case"container_caution_open":case"container_error_open":{const[a,u]=tf(e,o,t);n.push(a),o=u;break}case"heading_open":n.push($l(e,o,t)),o+=3;break;case"paragraph_open":n.push(lf(e,o,t)),o+=3;break;case"html_block":n.push(of(s)),o+=1;break;case"code_block":n.push(bo(e[o])),o+=1;break;case"fence":n.push(zn(e[o])),o+=1;break;case"bullet_list_open":case"ordered_list_open":{const[a,u]=Br(e,o,t);n.push(a),o=u;break}case"hr":n.push(Il()),o+=1;break;case"blockquote_open":{const[a,u]=Bl(e,o,t);n.push(a),o=u;break}case"table_open":{const[a,u]=Nl(e,o,t);n.push(a),o=u;break}case"dl_open":{const[a,u]=Dl(e,o,t);n.push(a),o=u;break}case"footnote_open":{const[a,u]=Tl(e,o,t);n.push(a),o=u;break}case"container_open":{const a=/^::: ?(warning|info|note|tip|danger|caution|error) ?(.*)$/.exec(String((r=s.info)!=null?r:""));if(a){const[u,c]=Rl(e,o,a,t);n.push(u),o=c}else o+=1;break}case"hardbreak":n.push(nf()),o++;break;case"math_block":n.push(_o(e[o])),o+=1;break;case"inline":n.push(...Ve(s.children||[],String((i=s.content)!=null?i:""),void 0,{requireClosingStrong:t==null?void 0:t.requireClosingStrong})),o+=1;break;default:o+=1;break}}return n}const wr=[];function sf(e){wr.push(e)}function af(){wr.length=0}function Ol(e=`editor-${Date.now()}`,t={}){var c;const n=Dd(t),o={"common.copy":"Copy"};let r;if(typeof t.i18n=="function")r=t.i18n;else if(t.i18n&&typeof t.i18n=="object"){const f=t.i18n;r=d=>{var h,p;return(p=(h=f[d])!=null?h:o[d])!=null?p:d}}else r=f=>{var d;return(d=o[f])!=null?d:f};if(Array.isArray(t.plugin))for(const f of t.plugin){const d=f;if(Array.isArray(d)){const h=d[0],p=d[1];typeof h=="function"&&n.use(h,p)}else typeof d=="function"&&n.use(d)}if(Array.isArray(t.apply))for(const f of t.apply)try{f(n)}catch(d){console.error("[getMarkdown] apply function threw an error",d)}if(wr.length)for(const f of wr)if(Array.isArray(f)){const d=f[0],h=f[1];typeof d=="function"&&n.use(d,h)}else typeof f=="function"&&n.use(f);n.use(Os),n.use(Vs),n.use(Fs);const i=(c=Ro.default)!=null?c:Ro;n.use(i),n.use(Is),n.use(Ns),n.core.ruler.after("block","mark_fence_closed",f=>{var p,m;const d=f,h=d.src.split(/\r?\n/);for(const g of d.tokens){if(g.type!=="fence"||!g.map||!g.markup)continue;const k=g.map[0],_=g.map[1],y=g.markup,w=y[0],x=y.length,S=(p=h[Math.max(0,_-1)])!=null?p:"";let M=0;for(;M<S.length&&(S[M]===" "||S[M]===" ");)M++;let D=0;for(;M+D<S.length&&S[M+D]===w;)D++;let T=M+D;for(;T<S.length&&(S[T]===" "||S[T]===" ");)T++;const b=_>k+1&&D>=x&&T===S.length,z=g;z.meta=(m=z.meta)!=null?m:{},z.meta.unclosed=!b,z.meta.closed=!!b}});const s=(f,d)=>{const h=f,p=h.pos;if(h.src[p]!=="~")return!1;const m=h.src[p-1],g=h.src[p+1];if(/\d/.test(m)&&/\d/.test(g)){if(!d){const k=h.push("text","",0);k.content="~"}return h.pos+=1,!0}return!1};n.inline.ruler.before("sub","wave",s),n.renderer.rules.fence=(f,d)=>{var _,y;const h=f[d],p=String((_=h.info)!=null?_:"").trim(),m=String((y=h.content)!=null?y:""),g=btoa(unescape(encodeURIComponent(m))),k=String(p!=null?p:"text");return`<div class="code-block" data-code="${g}" data-lang="${k}" id="${`editor-${e}-${d}-${k}`}">
|
|
68
|
+
<div class="code-header">
|
|
69
|
+
<span class="code-lang">${k.toUpperCase()}</span>
|
|
70
|
+
<button class="copy-button" data-code="${g}">${r("common.copy")}</button>
|
|
71
|
+
</div>
|
|
72
|
+
<div class="code-editor"></div>
|
|
73
|
+
</div>`};const a=/^\[(\d+)\]/,u=(f,d)=>{const h=f;if(h.src[h.pos]!=="[")return!1;const p=a.exec(h.src.slice(h.pos));if(!p)return!1;if(!d){const m=p[1],g=h.push("reference","span",0);g.content=m,g.markup=p[0]}return h.pos+=p[0].length,!0};return n.inline.ruler.before("escape","reference",u),n.renderer.rules.reference=(f,d)=>{var m;const p=String((m=f[d].content)!=null?m:"");return`<span class="reference-link" data-reference-id="${p}" role="button" tabindex="0" title="Click to view reference">${p}</span>`},n}const cf=["cite"],uf=l.defineComponent({__name:"BlockquoteNode",props:{node:{},indexKey:{},typewriter:{type:Boolean}},emits:["copy"],setup(e){return(t,n)=>(l.openBlock(),l.createElementBlock("blockquote",{class:"blockquote",dir:"auto",cite:e.node.cite},[l.withMemo([e.node.children],()=>l.createVNode(l.unref(st),{"index-key":`blockquote-${e.indexKey}`,nodes:e.node.children||[],typewriter:e.typewriter,onCopy:n[0]||(n[0]=o=>t.$emit("copy",o))},null,8,["index-key","nodes","typewriter"]),n,1)],8,cf))}}),Me=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n},Sn=Me(uf,[["__scopeId","data-v-adfdba00"]]);Sn.install=e=>{e.component(Sn.__name,Sn)};const df={class:"checkbox-node"},ff=["checked"],hf=l.defineComponent({__name:"CheckboxNode",props:{node:{}},setup(e){return(t,n)=>(l.openBlock(),l.createElementBlock("span",df,[l.createElementVNode("input",{type:"checkbox",checked:e.node.checked,disabled:"",class:"checkbox-input"},null,8,ff)]))}}),Dt=Me(hf,[["__scopeId","data-v-8dc6c46f"]]);Dt.install=e=>{e.component(Dt.__name,Dt)};const pf={class:"definition-list"},mf={class:"definition-term"},gf={class:"definition-desc"},kf=l.defineComponent({__name:"DefinitionListNode",props:{node:{},indexKey:{},typewriter:{type:Boolean}},emits:["copy"],setup(e){return(t,n)=>(l.openBlock(),l.createElementBlock("dl",pf,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.node.items,(o,r)=>(l.openBlock(),l.createElementBlock(l.Fragment,{key:r},[l.createElementVNode("dt",mf,[l.createVNode(l.unref(st),{"index-key":`definition-term-${e.indexKey}-${r}`,nodes:o.term,typewriter:e.typewriter,onCopy:n[0]||(n[0]=i=>t.$emit("copy",i))},null,8,["index-key","nodes","typewriter"])]),l.createElementVNode("dd",gf,[l.createVNode(l.unref(st),{"index-key":`definition-desc-${e.indexKey}-${r}`,nodes:o.definition,typewriter:e.typewriter,onCopy:n[1]||(n[1]=i=>t.$emit("copy",i))},null,8,["index-key","nodes","typewriter"])])],64))),128))]))}}),Mn=Me(kf,[["__scopeId","data-v-5a21f288"]]);Mn.install=e=>{e.component(Mn.__name,Mn)};const vf={class:"emoji-node"},wf=l.defineComponent({__name:"EmojiNode",props:{node:{}},setup(e){return(t,n)=>(l.openBlock(),l.createElementBlock("span",vf,l.toDisplayString(e.node.name),1))}}),et=Me(wf,[["__scopeId","data-v-de55dc97"]]);et.install=e=>{e.component(et.__name,et)};const Zn="__global__",gn={};function yf(e,t){typeof e=="string"?gn[e]=t||{}:gn[Zn]=e||{}}function gt(e){return e?gn[e]||gn[Zn]||{}:gn[Zn]||{}}function xf(e){if(e===Zn)throw new Error("removeCustomComponents: use clearGlobalCustomComponents() to clear the global mapping");delete gn[e]}function bf(){delete gn[Zn]}const _f=["title"],Cf=l.defineComponent({__name:"FootnoteReferenceNode",props:{node:{}},setup(e){const n=`#footnote-${e.node.id}`;function o(){if(typeof document=="undefined")return;const r=document.querySelector(n);r?r.scrollIntoView({behavior:"smooth"}):console.warn(`Element with href: ${n} not found`)}return(r,i)=>(l.openBlock(),l.createElementBlock("sup",{class:"footnote-reference",onClick:o},[l.createElementVNode("span",{href:n,title:`查看脚注 ${e.node.id}`,class:"footnote-link cursor-pointer"},"["+l.toDisplayString(e.node.id)+"]",9,_f)]))}}),at=Me(Cf,[["__scopeId","data-v-7c1ed642"]]);at.install=e=>{e.component(at.__name,at)};const Ef={class:"inline px-1 py-0.5 rounded text-xs font-mono bg-secondary whitespace-normal break-words max-w-full before:content-[''] after:content-['']"},tt=l.defineComponent({__name:"InlineCodeNode",props:{node:{}},setup(e){return(t,n)=>(l.openBlock(),l.createElementBlock("code",Ef,l.toDisplayString(e.node.code),1))}});tt.install=e=>{e.component(tt.__name,tt)};const yr=Math.min,kn=Math.max,xr=Math.round,ur=Math.floor,Ot=e=>({x:e,y:e}),Sf={left:"right",right:"left",bottom:"top",top:"bottom"},Mf={start:"end",end:"start"};function _i(e,t,n){return kn(e,yr(t,n))}function Dr(e,t){return typeof e=="function"?e(t):e}function wn(e){return e.split("-")[0]}function Tr(e){return e.split("-")[1]}function Pl(e){return e==="x"?"y":"x"}function zl(e){return e==="y"?"height":"width"}const Af=new Set(["top","bottom"]);function en(e){return Af.has(wn(e))?"y":"x"}function Vl(e){return Pl(en(e))}function Bf(e,t,n){n===void 0&&(n=!1);const o=Tr(e),r=Vl(e),i=zl(r);let s=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=br(s)),[s,br(s)]}function Df(e){const t=br(e);return[io(e),t,io(t)]}function io(e){return e.replace(/start|end/g,t=>Mf[t])}const Ci=["left","right"],Ei=["right","left"],Tf=["top","bottom"],$f=["bottom","top"];function Nf(e,t,n){switch(e){case"top":case"bottom":return n?t?Ei:Ci:t?Ci:Ei;case"left":case"right":return t?Tf:$f;default:return[]}}function If(e,t,n,o){const r=Tr(e);let i=Nf(wn(e),n==="start",o);return r&&(i=i.map(s=>s+"-"+r),t&&(i=i.concat(i.map(io)))),i}function br(e){return e.replace(/left|right|bottom|top/g,t=>Sf[t])}function Ff(e){return re({top:0,right:0,bottom:0,left:0},e)}function Rf(e){return typeof e!="number"?Ff(e):{top:e,right:e,bottom:e,left:e}}function _r(e){const{x:t,y:n,width:o,height:r}=e;return{width:o,height:r,top:n,left:t,right:t+o,bottom:n+r,x:t,y:n}}function Si(e,t,n){let{reference:o,floating:r}=e;const i=en(t),s=Vl(t),a=zl(s),u=wn(t),c=i==="y",f=o.x+o.width/2-r.width/2,d=o.y+o.height/2-r.height/2,h=o[a]/2-r[a]/2;let p;switch(u){case"top":p={x:f,y:o.y-r.height};break;case"bottom":p={x:f,y:o.y+o.height};break;case"right":p={x:o.x+o.width,y:d};break;case"left":p={x:o.x-r.width,y:d};break;default:p={x:o.x,y:o.y}}switch(Tr(t)){case"start":p[s]-=h*(n&&c?-1:1);break;case"end":p[s]+=h*(n&&c?-1:1);break}return p}const Lf=(e,t,n)=>te(null,null,function*(){const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:s}=n,a=i.filter(Boolean),u=yield s.isRTL==null?void 0:s.isRTL(t);let c=yield s.getElementRects({reference:e,floating:t,strategy:r}),{x:f,y:d}=Si(c,o,u),h=o,p={},m=0;for(let g=0;g<a.length;g++){const{name:k,fn:_}=a[g],{x:y,y:w,data:x,reset:S}=yield _({x:f,y:d,initialPlacement:o,placement:h,strategy:r,middlewareData:p,rects:c,platform:s,elements:{reference:e,floating:t}});f=y!=null?y:f,d=w!=null?w:d,p=He(re({},p),{[k]:re(re({},p[k]),x)}),S&&m<=50&&(m++,typeof S=="object"&&(S.placement&&(h=S.placement),S.rects&&(c=S.rects===!0?yield s.getElementRects({reference:e,floating:t,strategy:r}):S.rects),{x:f,y:d}=Si(c,h,u)),g=-1)}return{x:f,y:d,placement:h,strategy:r,middlewareData:p}});function jl(e,t){return te(this,null,function*(){var n;t===void 0&&(t={});const{x:o,y:r,platform:i,rects:s,elements:a,strategy:u}=e,{boundary:c="clippingAncestors",rootBoundary:f="viewport",elementContext:d="floating",altBoundary:h=!1,padding:p=0}=Dr(t,e),m=Rf(p),k=a[h?d==="floating"?"reference":"floating":d],_=_r(yield i.getClippingRect({element:(n=yield i.isElement==null?void 0:i.isElement(k))==null||n?k:k.contextElement||(yield i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:c,rootBoundary:f,strategy:u})),y=d==="floating"?{x:o,y:r,width:s.floating.width,height:s.floating.height}:s.reference,w=yield i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating),x=(yield i.isElement==null?void 0:i.isElement(w))?(yield i.getScale==null?void 0:i.getScale(w))||{x:1,y:1}:{x:1,y:1},S=_r(i.convertOffsetParentRelativeRectToViewportRelativeRect?yield i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:y,offsetParent:w,strategy:u}):y);return{top:(_.top-S.top+m.top)/x.y,bottom:(S.bottom-_.bottom+m.bottom)/x.y,left:(_.left-S.left+m.left)/x.x,right:(S.right-_.right+m.right)/x.x}})}const Of=function(e){return e===void 0&&(e={}),{name:"flip",options:e,fn(n){return te(this,null,function*(){var o,r;const{placement:i,middlewareData:s,rects:a,initialPlacement:u,platform:c,elements:f}=n,P=Dr(e,n),{mainAxis:d=!0,crossAxis:h=!0,fallbackPlacements:p,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:k=!0}=P,_=Hr(P,["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"]);if((o=s.arrow)!=null&&o.alignmentOffset)return{};const y=wn(i),w=en(u),x=wn(u)===u,S=yield c.isRTL==null?void 0:c.isRTL(f.floating),M=p||(x||!k?[br(u)]:Df(u)),D=g!=="none";!p&&D&&M.push(...If(u,k,g,S));const T=[u,...M],b=yield jl(n,_),z=[];let $=((r=s.flip)==null?void 0:r.overflows)||[];if(d&&z.push(b[y]),h){const L=Bf(i,a,S);z.push(b[L[0]],b[L[1]])}if($=[...$,{placement:i,overflows:z}],!z.every(L=>L<=0)){var U,K;const L=(((U=s.flip)==null?void 0:U.index)||0)+1,V=T[L];if(V&&(!(h==="alignment"?w!==en(V):!1)||$.every(Y=>en(Y.placement)===w?Y.overflows[0]>0:!0)))return{data:{index:L,overflows:$},reset:{placement:V}};let j=(K=$.filter(q=>q.overflows[0]<=0).sort((q,Y)=>q.overflows[1]-Y.overflows[1])[0])==null?void 0:K.placement;if(!j)switch(m){case"bestFit":{var G;const q=(G=$.filter(Y=>{if(D){const ee=en(Y.placement);return ee===w||ee==="y"}return!0}).map(Y=>[Y.placement,Y.overflows.filter(ee=>ee>0).reduce((ee,Q)=>ee+Q,0)]).sort((Y,ee)=>Y[1]-ee[1])[0])==null?void 0:G[0];q&&(j=q);break}case"initialPlacement":j=u;break}if(i!==j)return{reset:{placement:j}}}return{}})}}},Pf=new Set(["left","top"]);function zf(e,t){return te(this,null,function*(){const{placement:n,platform:o,elements:r}=e,i=yield o.isRTL==null?void 0:o.isRTL(r.floating),s=wn(n),a=Tr(n),u=en(n)==="y",c=Pf.has(s)?-1:1,f=i&&u?-1:1,d=Dr(t,e);let{mainAxis:h,crossAxis:p,alignmentAxis:m}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&typeof m=="number"&&(p=a==="end"?m*-1:m),u?{x:p*f,y:h*c}:{x:h*c,y:p*f}})}const Vf=function(e){return e===void 0&&(e=0),{name:"offset",options:e,fn(n){return te(this,null,function*(){var o,r;const{x:i,y:s,placement:a,middlewareData:u}=n,c=yield zf(n,e);return a===((o=u.offset)==null?void 0:o.placement)&&(r=u.arrow)!=null&&r.alignmentOffset?{}:{x:i+c.x,y:s+c.y,data:He(re({},c),{placement:a})}})}}},jf=function(e){return e===void 0&&(e={}),{name:"shift",options:e,fn(n){return te(this,null,function*(){const{x:o,y:r,placement:i}=n,_=Dr(e,n),{mainAxis:s=!0,crossAxis:a=!1,limiter:u={fn:y=>{let{x:w,y:x}=y;return{x:w,y:x}}}}=_,c=Hr(_,["mainAxis","crossAxis","limiter"]),f={x:o,y:r},d=yield jl(n,c),h=en(wn(i)),p=Pl(h);let m=f[p],g=f[h];if(s){const y=p==="y"?"top":"left",w=p==="y"?"bottom":"right",x=m+d[y],S=m-d[w];m=_i(x,m,S)}if(a){const y=h==="y"?"top":"left",w=h==="y"?"bottom":"right",x=g+d[y],S=g-d[w];g=_i(x,g,S)}const k=u.fn(He(re({},n),{[p]:m,[h]:g}));return He(re({},k),{data:{x:k.x-o,y:k.y-r,enabled:{[p]:s,[h]:a}}})})}}};function $r(){return typeof window!="undefined"}function Vn(e){return Hl(e)?(e.nodeName||"").toLowerCase():"#document"}function kt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function zt(e){var t;return(t=(Hl(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Hl(e){return $r()?e instanceof Node||e instanceof kt(e).Node:!1}function Tt(e){return $r()?e instanceof Element||e instanceof kt(e).Element:!1}function Pt(e){return $r()?e instanceof HTMLElement||e instanceof kt(e).HTMLElement:!1}function Mi(e){return!$r()||typeof ShadowRoot=="undefined"?!1:e instanceof ShadowRoot||e instanceof kt(e).ShadowRoot}const Hf=new Set(["inline","contents"]);function Qn(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=$t(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!Hf.has(r)}const qf=new Set(["table","td","th"]);function Wf(e){return qf.has(Vn(e))}const Uf=[":popover-open",":modal"];function Nr(e){return Uf.some(t=>{try{return e.matches(t)}catch(n){return!1}})}const Kf=["transform","translate","scale","rotate","perspective"],Xf=["transform","translate","scale","rotate","perspective","filter"],Zf=["paint","layout","strict","content"];function Co(e){const t=Eo(),n=Tt(e)?$t(e):e;return Kf.some(o=>n[o]?n[o]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||Xf.some(o=>(n.willChange||"").includes(o))||Zf.some(o=>(n.contain||"").includes(o))}function Yf(e){let t=sn(e);for(;Pt(t)&&!Pn(t);){if(Co(t))return t;if(Nr(t))return null;t=sn(t)}return null}function Eo(){return typeof CSS=="undefined"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Gf=new Set(["html","body","#document"]);function Pn(e){return Gf.has(Vn(e))}function $t(e){return kt(e).getComputedStyle(e)}function Ir(e){return Tt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function sn(e){if(Vn(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Mi(e)&&e.host||zt(e);return Mi(t)?t.host:t}function ql(e){const t=sn(e);return Pn(t)?e.ownerDocument?e.ownerDocument.body:e.body:Pt(t)&&Qn(t)?t:ql(t)}function Yn(e,t,n){var o;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=ql(e),i=r===((o=e.ownerDocument)==null?void 0:o.body),s=kt(r);if(i){const a=lo(s);return t.concat(s,s.visualViewport||[],Qn(r)?r:[],a&&n?Yn(a):[])}return t.concat(r,Yn(r,[],n))}function lo(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Wl(e){const t=$t(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=Pt(e),i=r?e.offsetWidth:n,s=r?e.offsetHeight:o,a=xr(n)!==i||xr(o)!==s;return a&&(n=i,o=s),{width:n,height:o,$:a}}function So(e){return Tt(e)?e:e.contextElement}function An(e){const t=So(e);if(!Pt(t))return Ot(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:i}=Wl(t);let s=(i?xr(n.width):n.width)/o,a=(i?xr(n.height):n.height)/r;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const Jf=Ot(0);function Ul(e){const t=kt(e);return!Eo()||!t.visualViewport?Jf:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Qf(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==kt(e)?!1:t}function yn(e,t,n,o){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=So(e);let s=Ot(1);t&&(o?Tt(o)&&(s=An(o)):s=An(e));const a=Qf(i,n,o)?Ul(i):Ot(0);let u=(r.left+a.x)/s.x,c=(r.top+a.y)/s.y,f=r.width/s.x,d=r.height/s.y;if(i){const h=kt(i),p=o&&Tt(o)?kt(o):o;let m=h,g=lo(m);for(;g&&o&&p!==m;){const k=An(g),_=g.getBoundingClientRect(),y=$t(g),w=_.left+(g.clientLeft+parseFloat(y.paddingLeft))*k.x,x=_.top+(g.clientTop+parseFloat(y.paddingTop))*k.y;u*=k.x,c*=k.y,f*=k.x,d*=k.y,u+=w,c+=x,m=kt(g),g=lo(m)}}return _r({width:f,height:d,x:u,y:c})}function Fr(e,t){const n=Ir(e).scrollLeft;return t?t.left+n:yn(zt(e)).left+n}function Kl(e,t){const n=e.getBoundingClientRect(),o=n.left+t.scrollLeft-Fr(e,n),r=n.top+t.scrollTop;return{x:o,y:r}}function eh(e){let{elements:t,rect:n,offsetParent:o,strategy:r}=e;const i=r==="fixed",s=zt(o),a=t?Nr(t.floating):!1;if(o===s||a&&i)return n;let u={scrollLeft:0,scrollTop:0},c=Ot(1);const f=Ot(0),d=Pt(o);if((d||!d&&!i)&&((Vn(o)!=="body"||Qn(s))&&(u=Ir(o)),Pt(o))){const p=yn(o);c=An(o),f.x=p.x+o.clientLeft,f.y=p.y+o.clientTop}const h=s&&!d&&!i?Kl(s,u):Ot(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-u.scrollLeft*c.x+f.x+h.x,y:n.y*c.y-u.scrollTop*c.y+f.y+h.y}}function th(e){return Array.from(e.getClientRects())}function nh(e){const t=zt(e),n=Ir(e),o=e.ownerDocument.body,r=kn(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),i=kn(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let s=-n.scrollLeft+Fr(e);const a=-n.scrollTop;return $t(o).direction==="rtl"&&(s+=kn(t.clientWidth,o.clientWidth)-r),{width:r,height:i,x:s,y:a}}const Ai=25;function rh(e,t){const n=kt(e),o=zt(e),r=n.visualViewport;let i=o.clientWidth,s=o.clientHeight,a=0,u=0;if(r){i=r.width,s=r.height;const f=Eo();(!f||f&&t==="fixed")&&(a=r.offsetLeft,u=r.offsetTop)}const c=Fr(o);if(c<=0){const f=o.ownerDocument,d=f.body,h=getComputedStyle(d),p=f.compatMode==="CSS1Compat"&&parseFloat(h.marginLeft)+parseFloat(h.marginRight)||0,m=Math.abs(o.clientWidth-d.clientWidth-p);m<=Ai&&(i-=m)}else c<=Ai&&(i+=c);return{width:i,height:s,x:a,y:u}}const oh=new Set(["absolute","fixed"]);function ih(e,t){const n=yn(e,!0,t==="fixed"),o=n.top+e.clientTop,r=n.left+e.clientLeft,i=Pt(e)?An(e):Ot(1),s=e.clientWidth*i.x,a=e.clientHeight*i.y,u=r*i.x,c=o*i.y;return{width:s,height:a,x:u,y:c}}function Bi(e,t,n){let o;if(t==="viewport")o=rh(e,n);else if(t==="document")o=nh(zt(e));else if(Tt(t))o=ih(t,n);else{const r=Ul(e);o={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return _r(o)}function Xl(e,t){const n=sn(e);return n===t||!Tt(n)||Pn(n)?!1:$t(n).position==="fixed"||Xl(n,t)}function lh(e,t){const n=t.get(e);if(n)return n;let o=Yn(e,[],!1).filter(a=>Tt(a)&&Vn(a)!=="body"),r=null;const i=$t(e).position==="fixed";let s=i?sn(e):e;for(;Tt(s)&&!Pn(s);){const a=$t(s),u=Co(s);!u&&a.position==="fixed"&&(r=null),(i?!u&&!r:!u&&a.position==="static"&&!!r&&oh.has(r.position)||Qn(s)&&!u&&Xl(e,s))?o=o.filter(f=>f!==s):r=a,s=sn(s)}return t.set(e,o),o}function sh(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const s=[...n==="clippingAncestors"?Nr(t)?[]:lh(t,this._c):[].concat(n),o],a=s[0],u=s.reduce((c,f)=>{const d=Bi(t,f,r);return c.top=kn(d.top,c.top),c.right=yr(d.right,c.right),c.bottom=yr(d.bottom,c.bottom),c.left=kn(d.left,c.left),c},Bi(t,a,r));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function ah(e){const{width:t,height:n}=Wl(e);return{width:t,height:n}}function ch(e,t,n){const o=Pt(t),r=zt(t),i=n==="fixed",s=yn(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const u=Ot(0);function c(){u.x=Fr(r)}if(o||!o&&!i)if((Vn(t)!=="body"||Qn(r))&&(a=Ir(t)),o){const p=yn(t,!0,i,t);u.x=p.x+t.clientLeft,u.y=p.y+t.clientTop}else r&&c();i&&!o&&r&&c();const f=r&&!o&&!i?Kl(r,a):Ot(0),d=s.left+a.scrollLeft-u.x-f.x,h=s.top+a.scrollTop-u.y-f.y;return{x:d,y:h,width:s.width,height:s.height}}function Zr(e){return $t(e).position==="static"}function Di(e,t){if(!Pt(e)||$t(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return zt(e)===n&&(n=n.ownerDocument.body),n}function Zl(e,t){const n=kt(e);if(Nr(e))return n;if(!Pt(e)){let r=sn(e);for(;r&&!Pn(r);){if(Tt(r)&&!Zr(r))return r;r=sn(r)}return n}let o=Di(e,t);for(;o&&Wf(o)&&Zr(o);)o=Di(o,t);return o&&Pn(o)&&Zr(o)&&!Co(o)?n:o||Yf(e)||n}const uh=function(e){return te(this,null,function*(){const t=this.getOffsetParent||Zl,n=this.getDimensions,o=yield n(e.floating);return{reference:ch(e.reference,yield t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}})};function dh(e){return $t(e).direction==="rtl"}const fh={convertOffsetParentRelativeRectToViewportRelativeRect:eh,getDocumentElement:zt,getClippingRect:sh,getOffsetParent:Zl,getElementRects:uh,getClientRects:th,getDimensions:ah,getScale:An,isElement:Tt,isRTL:dh};function Yl(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function hh(e,t){let n=null,o;const r=zt(e);function i(){var a;clearTimeout(o),(a=n)==null||a.disconnect(),n=null}function s(a,u){a===void 0&&(a=!1),u===void 0&&(u=1),i();const c=e.getBoundingClientRect(),{left:f,top:d,width:h,height:p}=c;if(a||t(),!h||!p)return;const m=ur(d),g=ur(r.clientWidth-(f+h)),k=ur(r.clientHeight-(d+p)),_=ur(f),w={rootMargin:-m+"px "+-g+"px "+-k+"px "+-_+"px",threshold:kn(0,yr(1,u))||1};let x=!0;function S(M){const D=M[0].intersectionRatio;if(D!==u){if(!x)return s();D?s(!1,D):o=setTimeout(()=>{s(!1,1e-7)},1e3)}D===1&&!Yl(c,e.getBoundingClientRect())&&s(),x=!1}try{n=new IntersectionObserver(S,He(re({},w),{root:r.ownerDocument}))}catch(M){n=new IntersectionObserver(S,w)}n.observe(e)}return s(!0),i}function Ti(e,t,n,o){o===void 0&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:u=!1}=o,c=So(e),f=r||i?[...c?Yn(c):[],...Yn(t)]:[];f.forEach(_=>{r&&_.addEventListener("scroll",n,{passive:!0}),i&&_.addEventListener("resize",n)});const d=c&&a?hh(c,n):null;let h=-1,p=null;s&&(p=new ResizeObserver(_=>{let[y]=_;y&&y.target===c&&p&&(p.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var w;(w=p)==null||w.observe(t)})),n()}),c&&!u&&p.observe(c),p.observe(t));let m,g=u?yn(e):null;u&&k();function k(){const _=yn(e);g&&!Yl(g,_)&&n(),g=_,m=requestAnimationFrame(k)}return n(),()=>{var _;f.forEach(y=>{r&&y.removeEventListener("scroll",n),i&&y.removeEventListener("resize",n)}),d==null||d(),(_=p)==null||_.disconnect(),p=null,u&&cancelAnimationFrame(m)}}const ph=Vf,mh=jf,gh=Of,kh=(e,t,n)=>{const o=new Map,r=re({platform:fh},n),i=He(re({},r.platform),{_c:o});return Lf(e,t,He(re({},r),{platform:i}))},vh=["id"],wh=l.defineComponent({__name:"Tooltip",props:{visible:{type:Boolean},anchorEl:{},content:{},placement:{},offset:{},originX:{},originY:{},id:{},isDark:{type:[Boolean,null]}},setup(e){const t=e,n=l.computed(()=>{if(t.isDark!==void 0&&t.isDark!==null)return!!t.isDark;if(typeof document!="undefined")try{if(document.documentElement.classList.contains("dark")||window!=null&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches)return!0}catch(u){}return!1}),o=l.ref(null),r=l.ref({transform:"translate3d(0px, 0px, 0px)",left:"0px",top:"0px"}),i=l.ref(!1);let s=null;function a(){return te(this,null,function*(){var d,h;if(!t.anchorEl||!o.value)return;const u=[ph((d=t.offset)!=null?d:8),gh(),mh({padding:8})],{x:c,y:f}=yield kh(t.anchorEl,o.value,{placement:(h=t.placement)!=null?h:"top",middleware:u,strategy:"fixed"});r.value.transform=`translate3d(${Math.round(c)}px, ${Math.round(f)}px, 0)`,r.value.left="0px",r.value.top="0px"})}return l.watch(()=>t.visible,u=>te(null,null,function*(){if(u)if(i.value=!1,yield l.nextTick(),t.anchorEl&&o.value)try{const c=t.anchorEl.getBoundingClientRect();yield a();const f=r.value.transform;if(t.originX!=null&&t.originY!=null){const d=Math.abs(Number(t.originX)-c.left),h=Math.abs(Number(t.originY)-c.top);Math.hypot(d,h)>120?(r.value.transform=`translate3d(${Math.round(t.originX)}px, ${Math.round(t.originY)}px, 0)`,yield l.nextTick(),i.value=!0,yield l.nextTick(),r.value.transform=f):i.value=!0}else i.value=!0;s=Ti(t.anchorEl,o.value,a)}catch(c){yield a(),i.value=!0,s=Ti(t.anchorEl,o.value,a)}else i.value=!0;else i.value=!1,s&&(s(),s=null)})),l.watch([()=>t.anchorEl,()=>t.placement,()=>t.content],()=>te(null,null,function*(){t.visible&&t.anchorEl&&o.value&&(yield l.nextTick(),yield a())})),l.onBeforeUnmount(()=>{s&&s()}),(u,c)=>(l.openBlock(),l.createBlock(l.Teleport,{to:"body"},[l.createVNode(l.Transition,{name:"tooltip",appear:""},{default:l.withCtx(()=>[l.withDirectives(l.createElementVNode("div",{id:t.id,ref_key:"tooltip",ref:o,style:l.normalizeStyle({position:"fixed",left:r.value.left,top:r.value.top,transform:r.value.transform}),class:l.normalizeClass(["z-[9999] inline-block text-base py-2 px-3 rounded-md shadow-md whitespace-nowrap pointer-events-none tooltip-element border",[n.value?"bg-gray-900 text-white border-gray-700 border is-dark":"bg-white text-gray-900 border-gray-200 border"]]),role:"tooltip"},l.toDisplayString(e.content),15,vh),[[l.vShow,e.visible&&i.value]])]),_:1})]))}}),yh=Me(wh,[["__scopeId","data-v-993f63aa"]]),Mo=l.ref(!1),Gl=l.ref(""),Jl=l.ref("top"),Un=l.ref(null),Gn=l.ref(null),Ao=l.ref(null),Bo=l.ref(null),Ql=l.ref(null);let pr=null,mr=null;function es(){pr&&(clearTimeout(pr),pr=null),mr&&(clearTimeout(mr),mr=null)}let $i=!1;function xh(){if($i||typeof document=="undefined")return;$i=!0;const e=document.createElement("div");e.setAttribute("data-singleton-tooltip","1"),document.body.appendChild(e);const t={setup(){return()=>{var n;return l.h(yh,{visible:Mo.value,"anchor-el":Un.value,content:Gl.value,placement:Jl.value,id:Gn.value,originX:Ao.value,originY:Bo.value,isDark:(n=Ql.value)!=null?n:void 0})}}};l.createApp(t).mount(e)}function xn(e,t,n="top",o=!1,r,i){if(!e)return;xh(),es();const s=()=>{var a,u;Gn.value=`tooltip-${Date.now()}-${Math.floor(Math.random()*1e3)}`,Un.value=e,Gl.value=t,Jl.value=n,Ao.value=(a=r==null?void 0:r.x)!=null?a:null,Bo.value=(u=r==null?void 0:r.y)!=null?u:null,Ql.value=typeof i=="boolean"?i:null,Mo.value=!0;try{e.setAttribute("aria-describedby",Gn.value)}catch(c){}};o?s():pr=setTimeout(s,80)}function Rr(e=!1){es();const t=()=>{if(Un.value&&Gn.value)try{Un.value.removeAttribute("aria-describedby")}catch(n){}Mo.value=!1,Un.value=null,Gn.value=null,Ao.value=null,Bo.value=null};e?t():mr=setTimeout(t,120)}let dr=null,Ni=!1;function er(){return te(this,null,function*(){if(dr)return dr;if(Ni)return null;try{return dr=yield import("katex"),dr}catch(e){return Ni=!0,null}})}const Yr=l.shallowRef(!1);let Ii=null;function ts(){return Ii||(Ii=er().then(e=>{Yr.value=!!e}).catch(()=>{Yr.value=!1})),l.readonly(Yr)}const bh=l.defineComponent({__name:"TextNode",props:{node:{}},emits:["copy"],setup(e){const t=ts();return(n,o)=>(l.openBlock(),l.createElementBlock("span",{class:l.normalizeClass([[l.unref(t)&&e.node.center?"text-node-center":""],"whitespace-pre-wrap break-words text-node"])},l.toDisplayString(e.node.content),3))}}),Xe=Me(bh,[["__scopeId","data-v-56f30838"]]);Xe.install=e=>{e.component(Xe.__name,Xe)};const Vt=l.defineAsyncComponent(()=>te(null,null,function*(){var t,n;if(typeof globalThis!="undefined"&&typeof globalThis.process!="undefined"&&((n=(t=globalThis.process)==null?void 0:t.env)==null?void 0:n.NODE_ENV)==="test")return o=>{var r,i;return l.h(Xe,He(re({},o),{node:He(re({},o.node),{content:(i=o.node.raw)!=null?i:`$${(r=o.node.content)!=null?r:""}$`})}))};try{if(yield er())return(yield Promise.resolve().then(()=>pm)).default}catch(o){console.warn('[vue-markdown-render] Optional peer dependencies for MathInlineNode are missing. Falling back to text rendering. To enable full math rendering features, please install "katex".',o)}return o=>{var r,i;return l.h(Xe,He(re({},o),{node:He(re({},o.node),{content:(i=o.node.raw)!=null?i:`$${(r=o.node.content)!=null?r:""}$`})}))}})),_h=l.defineAsyncComponent(()=>te(null,null,function*(){try{if(yield er())return(yield Promise.resolve().then(()=>dm)).default}catch(e){console.warn('[vue-markdown-render] Optional peer dependencies for MathBlockNode are missing. Falling back to text rendering. To enable full math rendering features, please install "katex".',e)}return e=>{var t,n;return l.h(Xe,He(re({},e),{node:He(re({},e.node),{content:(n=e.node.raw)!=null?n:`$$${(t=e.node.content)!=null?t:""}$$`})}))}})),nt=l.defineComponent({__name:"ReferenceNode",props:{node:{},messageId:{},threadId:{}},emits:["click","mouseEnter","mouseLeave"],setup(e){return(t,n)=>(l.openBlock(),l.createElementBlock("span",{class:"reference-node cursor-pointer bg-accent text-xs rounded-md px-1.5 mx-0.5 hover:bg-secondary",role:"button",tabindex:"0",onClick:n[0]||(n[0]=o=>t.$emit("click",o,e.node.id,e.messageId,e.threadId)),onMouseenter:n[1]||(n[1]=o=>t.$emit("mouseEnter",o,e.node.id,e.messageId,e.threadId)),onMouseleave:n[2]||(n[2]=o=>t.$emit("mouseLeave",o,e.node.id,e.messageId,e.threadId))},l.toDisplayString(e.node.id),33))}});nt.install=e=>{e.component(nt.__name,nt)};const Ch={class:"superscript-node"},Eh={key:1},Sh=l.defineComponent({__name:"SuperscriptNode",props:{node:{},customId:{},indexKey:{}},setup(e){const t=e,n=re({text:Xe,inline_code:tt,link:it,strong:rt,emphasis:vt,footnote_reference:at,strikethrough:ot,highlight:ft,insert:dt,subscript:ut,emoji:et,math_inline:Vt,reference:nt},gt(t.customId));return(o,r)=>(l.openBlock(),l.createElementBlock("sup",Ch,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.node.children,(i,s)=>(l.openBlock(),l.createElementBlock(l.Fragment,{key:`${e.indexKey||"superscript"}-${s}`},[n[i.type]?(l.openBlock(),l.createBlock(l.resolveDynamicComponent(n[i.type]),{key:0,node:i,"custom-id":t.customId,"index-key":`${e.indexKey||"superscript"}-${s}`},null,8,["node","custom-id","index-key"])):(l.openBlock(),l.createElementBlock("span",Eh,l.toDisplayString(i.content||i.raw),1))],64))),128))]))}}),ct=Me(Sh,[["__scopeId","data-v-0ca396bb"]]);ct.install=e=>{e.component(ct.__name,ct)};const Mh={class:"subscript-node"},Ah={key:1},Bh=l.defineComponent({__name:"SubscriptNode",props:{node:{},customId:{},indexKey:{}},setup(e){const t=e,n=re({text:Xe,inline_code:tt,link:it,strong:rt,emphasis:vt,footnote_reference:at,strikethrough:ot,highlight:ft,insert:dt,superscript:ct,emoji:et,math_inline:Vt,reference:nt},gt(t.customId));return(o,r)=>(l.openBlock(),l.createElementBlock("sub",Mh,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.node.children,(i,s)=>(l.openBlock(),l.createElementBlock(l.Fragment,{key:`${e.indexKey||"subscript"}-${s}`},[n[i.type]?(l.openBlock(),l.createBlock(l.resolveDynamicComponent(n[i.type]),{key:0,node:i,"custom-id":t.customId,"index-key":`${e.indexKey||"subscript"}-${s}`},null,8,["node","custom-id","index-key"])):(l.openBlock(),l.createElementBlock("span",Ah,l.toDisplayString(i.content||i.raw),1))],64))),128))]))}}),ut=Me(Bh,[["__scopeId","data-v-5e1f04df"]]);ut.install=e=>{e.component(ut.__name,ut)};const Dh={class:"strong-node"},Th=l.defineComponent({__name:"StrongNode",props:{node:{},customId:{},indexKey:{}},setup(e){const t=e,n=re({text:Xe,inline_code:tt,link:it,emphasis:vt,strikethrough:ot,highlight:ft,insert:dt,subscript:ut,superscript:ct,emoji:et,footnote_reference:at,math_inline:Vt,reference:nt},gt(t.customId));return(o,r)=>(l.openBlock(),l.createElementBlock("strong",Dh,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.node.children,(i,s)=>(l.openBlock(),l.createBlock(l.resolveDynamicComponent(n[i.type]),{key:`${e.indexKey||"strong"}-${s}`,"index-key":`${e.indexKey||"strong"}-${s}`,node:i,"custom-id":t.customId},null,8,["index-key","node","custom-id"]))),128))]))}}),rt=Me(Th,[["__scopeId","data-v-53b6c7df"]]);rt.install=e=>{e.component(rt.__name,rt)};const $h={class:"strikethrough-node"},Nh=l.defineComponent({__name:"StrikethroughNode",props:{node:{},customId:{},indexKey:{}},setup(e){const t=e,n=re({text:Xe,inline_code:tt,link:it,strong:rt,emphasis:vt,highlight:ft,insert:dt,subscript:ut,superscript:ct,emoji:et,footnote_reference:at,math_inline:Vt,reference:nt},gt(t.customId));return(o,r)=>(l.openBlock(),l.createElementBlock("del",$h,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.node.children,(i,s)=>(l.openBlock(),l.createBlock(l.resolveDynamicComponent(n[i.type]),{key:`${e.indexKey||"strikethrough"}-${s}`,node:i,"custom-id":t.customId,"index-key":`${e.indexKey||"strikethrough"}-${s}`},null,8,["node","custom-id","index-key"]))),128))]))}}),ot=Me(Nh,[["__scopeId","data-v-3716d25c"]]);ot.install=e=>{e.component(ot.__name,ot)};const Ih=["href","title","aria-label","aria-hidden"],Fh=["aria-hidden"],Rh={class:"link-text-wrapper relative inline-flex"},Lh={class:"leading-[normal] link-text"},Oh={class:"leading-[normal] link-text"},Ph=l.defineComponent({__name:"LinkNode",props:{node:{},indexKey:{},customId:{},showTooltip:{type:Boolean,default:!0},color:{},underlineHeight:{},underlineBottom:{},animationDuration:{},animationOpacity:{},animationTiming:{},animationIteration:{}},setup(e){const t=e,n=l.computed(()=>{var u,c,f,d,h,p;const a=t.underlineBottom!==void 0?typeof t.underlineBottom=="number"?`${t.underlineBottom}px`:String(t.underlineBottom):"-3px";return{"--link-color":(u=t.color)!=null?u:"#0366d6","--underline-height":`${(c=t.underlineHeight)!=null?c:2}px`,"--underline-bottom":a,"--underline-opacity":String((f=t.animationOpacity)!=null?f:.9),"--underline-duration":`${(d=t.animationDuration)!=null?d:.8}s`,"--underline-timing":(h=t.animationTiming)!=null?h:"linear","--underline-iteration":typeof t.animationIteration=="number"?String(t.animationIteration):(p=t.animationIteration)!=null?p:"infinite"}}),o={text:Xe,strong:rt,strikethrough:ot,emphasis:vt},r=l.useAttrs();function i(a){var d,h,p,m,g,k;if(!t.showTooltip)return;const u=a,c=(u==null?void 0:u.clientX)!=null&&(u==null?void 0:u.clientY)!=null?{x:u.clientX,y:u.clientY}:void 0,f=(k=(g=(p=(d=t.node)==null?void 0:d.href)!=null?p:(h=t.node)==null?void 0:h.title)!=null?g:(m=t.node)==null?void 0:m.text)!=null?k:"";xn(a.currentTarget,f,"top",!1,c)}function s(){t.showTooltip&&Rr()}return(a,u)=>{var c,f,d,h;return e.node.loading?(l.openBlock(),l.createElementBlock("span",l.mergeProps({key:1,class:"link-loading inline-flex items-baseline gap-1.5","aria-hidden":e.node.loading?"false":"true"},l.unref(r),{style:n.value}),[l.createElementVNode("span",Rh,[l.createElementVNode("span",Lh,[l.createElementVNode("span",Oh,l.toDisplayString(e.node.text),1)]),u[1]||(u[1]=l.createElementVNode("span",{class:"underline-anim","aria-hidden":"true"},null,-1))])],16,Fh)):(l.openBlock(),l.createElementBlock("a",l.mergeProps({key:0,class:"link-node",href:e.node.href,title:t.showTooltip?void 0:String((f=(c=e.node.href)!=null?c:e.node.title)!=null?f:""),"aria-label":`Link: ${(h=(d=e.node.href)!=null?d:e.node.title)!=null?h:e.node.text}`,"aria-hidden":e.node.loading?"true":"false",target:"_blank",rel:"noopener noreferrer"},l.unref(r),{style:n.value,onMouseenter:u[0]||(u[0]=p=>i(p)),onMouseleave:s}),[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.node.children,(p,m)=>(l.openBlock(),l.createBlock(l.resolveDynamicComponent(o[p.type]),{key:`${e.indexKey||"emphasis"}-${m}`,node:p,"custom-id":t.customId,"index-key":`${e.indexKey||"link-text"}-${m}`},null,8,["node","custom-id","index-key"]))),128))],16,Ih))}}}),it=Me(Ph,[["__scopeId","data-v-95c2e66f"]]);it.install=e=>{e.component(it.__name,it)};const zh={class:"insert-node"},Vh=l.defineComponent({__name:"InsertNode",props:{node:{},customId:{},indexKey:{}},setup(e){const t=e,n=re({text:Xe,inline_code:tt,link:it,strong:rt,emphasis:vt,strikethrough:ot,highlight:ft,subscript:ut,superscript:ct,emoji:et,footnote_reference:at,math_inline:Vt,reference:nt},gt(t.customId));return(o,r)=>(l.openBlock(),l.createElementBlock("ins",zh,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.node.children,(i,s)=>(l.openBlock(),l.createBlock(l.resolveDynamicComponent(n[i.type]),{key:`${e.indexKey||"insert"}-${s}`,node:i,"custom-id":t.customId,"index-key":`${e.indexKey||"insert"}-${s}`},null,8,["node","custom-id","index-key"]))),128))]))}}),dt=Me(Vh,[["__scopeId","data-v-b8737de3"]]);dt.install=e=>{e.component(dt.__name,dt)};const jh={class:"highlight-node"},Hh=l.defineComponent({__name:"HighlightNode",props:{node:{},customId:{},indexKey:{}},setup(e){const t=e,n=re({text:Xe,inline_code:tt,link:it,strong:rt,emphasis:vt,strikethrough:ot,insert:dt,subscript:ut,superscript:ct,emoji:et,footnote_reference:at,math_inline:Vt,reference:nt},gt(t.customId));return(o,r)=>(l.openBlock(),l.createElementBlock("mark",jh,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.node.children,(i,s)=>(l.openBlock(),l.createBlock(l.resolveDynamicComponent(n[i.type]),{key:`${e.indexKey||"highlight"}-${s}`,node:i,"custom-id":t.customId,"index-key":`${e.indexKey||"highlight"}-${s}`},null,8,["node","custom-id","index-key"]))),128))]))}}),ft=Me(Hh,[["__scopeId","data-v-fc52b444"]]);ft.install=e=>{e.component(ft.__name,ft)};const qh={class:"emphasis-node"},Wh=l.defineComponent({__name:"EmphasisNode",props:{node:{},customId:{},indexKey:{}},setup(e){const t=e,n=re({text:Xe,inline_code:tt,link:it,strong:rt,strikethrough:ot,highlight:ft,insert:dt,subscript:ut,superscript:ct,emoji:et,footnote_reference:at,math_inline:Vt,reference:nt},gt(t.customId));return(o,r)=>(l.openBlock(),l.createElementBlock("em",qh,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.node.children,(i,s)=>(l.openBlock(),l.createBlock(l.resolveDynamicComponent(n[i.type]),{key:`${e.indexKey||"emphasis"}-${s}`,node:i,"custom-id":t.customId,"index-key":`${e.indexKey||"emphasis"}-${s}`},null,8,["node","custom-id","index-key"]))),128))]))}}),vt=Me(Wh,[["__scopeId","data-v-c25e2822"]]);vt.install=e=>{e.component(vt.__name,vt)};const Uh=["id"],Kh={class:"font-semibold mr-2 text-[#0366d6]"},Xh={class:"flex-1"},Bn=l.defineComponent({__name:"FootnoteNode",props:{node:{},indexKey:{},typewriter:{type:Boolean}},emits:["copy"],setup(e){return(t,n)=>(l.openBlock(),l.createElementBlock("div",{id:`footnote-${e.node.id}`,class:"flex mt-2 mb-2 text-sm leading-relaxed border-t border-[#eaecef] pt-2"},[l.createElementVNode("span",Kh,"["+l.toDisplayString(e.node.id)+"]",1),l.createElementVNode("div",Xh,[l.withMemo([e.node.children],()=>l.createVNode(l.unref(st),{"index-key":`footnote-${e.indexKey}`,nodes:e.node.children,typewriter:e.typewriter,onCopy:n[0]||(n[0]=o=>t.$emit("copy",o))},null,8,["index-key","nodes","typewriter"]),n,1)])],8,Uh))}});Bn.install=e=>{e.component(Bn.__name,Bn)};const Zh={class:"hard-break"},Yh=l.defineComponent({__name:"HardBreakNode",props:{node:{}},setup(e){return(t,n)=>(l.openBlock(),l.createElementBlock("br",Zh))}}),tn=Me(Yh,[["__scopeId","data-v-50c58f70"]]);tn.install=e=>{e.component(tn.__name,tn)};function Gh(e){return(e.split(".").pop()||e).replace(/[_-]/g," ").replace(/([A-Z])/g," $1").replace(/\s+/g," ").replace(/\b\w/g,n=>n.toUpperCase()).trim()}const ns={"common.copy":"Copy","common.copySuccess":"Copied","common.decrease":"Decrease","common.reset":"Reset","common.increase":"Increase","common.expand":"Expand","common.collapse":"Collapse","common.preview":"Preview","common.source":"Source","common.export":"Export","common.open":"Open","common.zoomIn":"Zoom in","common.zoomOut":"Zoom out","common.resetZoom":"Reset zoom","image.loadError":"Image failed to load","image.loading":"Loading image..."};function Jh(e){Object.assign(ns,e)}function Lr(){try{const t=globalThis.$vueI18nUse||null;if(t&&typeof t=="function")try{const n=t();if(n&&typeof n.t=="function")return{t:n.t.bind(n)}}catch(n){}}catch(t){}const e=t=>{var n;return(n=ns[t])!=null?n:Gh(t)};return te(null,null,function*(){try{const t=yield import("vue-i18n"),n=t.useI18n||t.default&&t.default.useI18n;if(n&&typeof n=="function")try{const o=n();if(o&&typeof o.t=="function")try{globalThis.$vueI18nUse=()=>o}catch(r){}}catch(o){}}catch(t){}}),{t:e}}const rs=Symbol("ViewportPriority");function Qh(e,t){const n=typeof window!="undefined"&&typeof document!="undefined",o=typeof t=="boolean"?l.ref(t):t;let r=null;const i=new WeakMap;function s(){var c;if(r||!n)return r;if(typeof IntersectionObserver=="undefined")return null;const u=(c=e())!=null?c:null;return r=new IntersectionObserver(f=>{for(const d of f){const h=i.get(d.target);if(!h)continue;if(d.isIntersecting||d.intersectionRatio>0){if(!h.visible.value){h.visible.value=!0;try{h.resolve()}catch(m){}}r==null||r.unobserve(d.target),i.delete(d.target)}}},{root:u,rootMargin:"300px",threshold:0}),r}const a=(u,c)=>{const f=l.ref(!1);let d=!1,h;const p=new Promise(k=>{h=()=>{d||(d=!0,k())}}),m=()=>{try{r==null||r.unobserve(u)}catch(k){}i.delete(u)};if(!n||!o.value)return f.value=!0,h(),{isVisible:f,whenVisible:p,destroy:m};const g=s();return g?(i.set(u,{resolve:h,visible:f}),g.observe(u),{isVisible:f,whenVisible:p,destroy:m}):(f.value=!0,h(),{isVisible:f,whenVisible:p,destroy:m})};return l.provide(rs,a),a}function jn(){const e=l.inject(rs,void 0);if(e)return e;const t=new WeakMap;let n=null;const o=()=>n||(typeof window=="undefined"||typeof IntersectionObserver=="undefined"?null:(n=new IntersectionObserver(i=>{for(const s of i){const a=t.get(s.target);if(!a)continue;if(s.isIntersecting||s.intersectionRatio>0){if(!a.visible.value){a.visible.value=!0;try{a.resolve()}catch(c){}}n==null||n.unobserve(s.target),t.delete(s.target)}}},{root:null,rootMargin:"300px",threshold:0}),n));return i=>{const s=l.ref(!1);let a=!1,u;const c=new Promise(h=>{u=()=>{a||(a=!0,h())}}),f=()=>{try{n==null||n.unobserve(i)}catch(h){}t.delete(i)},d=o();return d?(t.set(i,{resolve:u,visible:s}),d.observe(i),{isVisible:s,whenVisible:c,destroy:f}):(s.value=!0,u(),{isVisible:s,whenVisible:c,destroy:f})}}const e1={class:"relative inline-block"},t1=["src","alt","title","loading","tabindex","aria-label"],n1={class:"text-sm whitespace-nowrap"},r1={key:1,class:"text-sm text-gray-500"},o1={key:"error",class:"px-4 py-2 bg-gray-100 flex items-center justify-center rounded-lg gap-2 text-red-500"},i1={class:"text-sm whitespace-nowrap"},l1={key:0,class:"mt-2 text-sm text-gray-500 italic"},s1=l.defineComponent({__name:"ImageNode",props:{node:{},fallbackSrc:{default:""},showCaption:{type:Boolean,default:!1},lazy:{type:Boolean,default:!0},svgMinHeight:{default:"12rem"},usePlaceholder:{type:Boolean,default:!0}},emits:["load","error","click"],setup(e,{emit:t}){const n=e,o=t,r=l.ref(!1),i=l.ref(!1),s=l.ref(!1),a=l.ref(null),u=jn(),c=l.ref(null),f=l.ref(typeof window=="undefined");typeof window!="undefined"&&l.watch(()=>a.value,y=>{var x;if((x=c.value)==null||x.destroy(),c.value=null,!y){f.value=!1;return}const w=u(y,{rootMargin:"400px"});c.value=w,f.value=w.isVisible.value,w.whenVisible.then(()=>{f.value=!0})},{immediate:!0}),l.onBeforeUnmount(()=>{var y;(y=c.value)==null||y.destroy(),c.value=null});const d=l.computed(()=>i.value&&n.fallbackSrc?n.fallbackSrc:n.node.src),h=l.computed(()=>!n.lazy||f.value),p=l.computed(()=>/\.svg(?:\?|$)/i.test(d.value));function m(){n.fallbackSrc&&!s.value?(s.value=!0,i.value=!0):(i.value=!0,o("error",n.node.src))}function g(){r.value=!0,i.value=!1,o("load",d.value)}function k(y){y.preventDefault(),!(!r.value||i.value)&&o("click",[y,d.value])}const{t:_}=Lr();return l.watch(d,()=>{r.value=!1,i.value=!1}),(y,w)=>(l.openBlock(),l.createElementBlock("figure",{ref_key:"figureRef",ref:a,class:"text-center my-8"},[l.createElementVNode("div",e1,[l.createVNode(l.Transition,{name:"img-switch",mode:"out-in"},{default:l.withCtx(()=>{var x,S,M,D,T;return[!e.node.loading&&!i.value&&h.value?(l.openBlock(),l.createElementBlock("img",{key:"image",src:d.value,alt:String((S=(x=n.node.alt)!=null?x:n.node.title)!=null?S:""),title:String((D=(M=n.node.title)!=null?M:n.node.alt)!=null?D:""),class:l.normalizeClass(["max-w-96 h-auto rounded-lg transition-opacity duration-200 ease-in-out",{"opacity-0":!r.value,"opacity-100":r.value,"cursor-pointer":r.value}]),style:l.normalizeStyle(p.value?{minHeight:n.svgMinHeight,width:"100%",height:"auto",objectFit:"contain"}:void 0),loading:n.lazy?"lazy":"eager",decoding:"async",tabindex:r.value?0:-1,"aria-label":(T=n.node.alt)!=null?T:l.unref(_)("image.preview"),onError:m,onLoad:g,onClick:k},null,46,t1)):i.value?!e.node.loading&&!n.fallbackSrc?(l.openBlock(),l.createElementBlock("div",o1,[l.renderSlot(y.$slots,"error",{node:n.node,displaySrc:d.value,imageLoaded:r.value,hasError:i.value,fallbackSrc:n.fallbackSrc,lazy:n.lazy,isSvg:p.value},()=>[w[1]||(w[1]=l.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24"},[l.createElementVNode("path",{fill:"currentColor",d:"M2 2h20v10h-2V4H4v9.586l5-5L14.414 14L13 15.414l-4-4l-5 5V20h8v2H2zm13.547 5a1 1 0 1 0 0 2a1 1 0 0 0 0-2m-3 1a3 3 0 1 1 6 0a3 3 0 0 1-6 0m3.625 6.757L19 17.586l2.828-2.829l1.415 1.415L20.414 19l2.829 2.828l-1.415 1.415L19 20.414l-2.828 2.829l-1.415-1.415L17.586 19l-2.829-2.828z"})],-1)),l.createElementVNode("span",i1,l.toDisplayString(l.unref(_)("image.loadError")),1)],!0)])):l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock("div",{key:"placeholder",class:"placeholder-layer max-w-96 inline-flex items-center justify-center gap-2",style:l.normalizeStyle(p.value?{minHeight:n.svgMinHeight,width:"100%"}:{minHeight:"6rem"})},[n.usePlaceholder?l.renderSlot(y.$slots,"placeholder",{key:0,node:n.node,displaySrc:d.value,imageLoaded:r.value,hasError:i.value,fallbackSrc:n.fallbackSrc,lazy:n.lazy,isSvg:p.value},()=>[w[0]||(w[0]=l.createElementVNode("div",{class:"w-4 h-4 rounded-full border-2 border-solid border-current border-t-transparent animate-spin","aria-hidden":"true"},null,-1)),l.createElementVNode("span",n1,l.toDisplayString(l.unref(_)("image.loading")),1)],!0):(l.openBlock(),l.createElementBlock("span",r1,l.toDisplayString(e.node.raw),1))],4))]}),_:3})]),n.showCaption&&n.node.alt?(l.openBlock(),l.createElementBlock("figcaption",l1,l.toDisplayString(n.node.alt),1)):l.createCommentVNode("",!0)],512))}}),nn=Me(s1,[["__scopeId","data-v-7ca79b66"]]);nn.install=e=>{e.component(nn.__name,nn)};const a1=l.defineComponent({__name:"HeadingNode",props:{node:{},customId:{},indexKey:{}},setup(e){const t=e,n=re({text:Xe,inline_code:tt,link:it,image:nn,strong:rt,emphasis:vt,strikethrough:ot,highlight:ft,insert:dt,subscript:ut,superscript:ct,emoji:et,checkbox:Dt,checkbox_input:Dt,footnote_reference:at,hardbreak:tn,math_inline:Vt,reference:nt},gt(t.customId));return(o,r)=>l.withMemo([e.node.children],()=>(l.openBlock(),l.createBlock(l.resolveDynamicComponent(`h${e.node.level}`),{class:l.normalizeClass(["heading-node",[`heading-${e.node.level}`]]),dir:"auto"},{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.node.children,(i,s,a,u)=>{const c=[i];if(u&&u.key===`${e.indexKey||"heading"}-${s}`&&l.isMemoSame(u,c))return u;const f=(l.openBlock(),l.createBlock(l.resolveDynamicComponent(n[i.type]),{key:`${e.indexKey||"heading"}-${s}`,"custom-id":t.customId,node:i,"index-key":`${e.indexKey||"heading"}-${s}`},null,8,["custom-id","node","index-key"]));return f.memo=c,f},r,0),128))]),_:1},8,["class"])),r,2)}}),so=Me(a1,[["__scopeId","data-v-d8e179e9"]]),Or=so;Or.install=e=>{e.component(so.__name,so)};const c1=l.defineComponent({__name:"ListItemNode",props:{item:{},indexKey:{},value:{},typewriter:{type:Boolean}},emits:["copy"],setup(e){const t=e,n=l.computed(()=>t.value==null?{}:{value:t.value});return(o,r)=>(l.openBlock(),l.createElementBlock("li",l.mergeProps({class:"list-item pl-1.5 my-2",dir:"auto"},n.value),[l.withMemo([t.item.children],()=>l.createVNode(l.unref(st),{"index-key":`list-item-${t.indexKey}`,nodes:t.item.children,typewriter:t.typewriter,"batch-rendering":!1,onCopy:r[0]||(r[0]=i=>o.$emit("copy",i))},null,8,["index-key","nodes","typewriter"]),r,1)],16))}}),Dn=Me(c1,[["__scopeId","data-v-e7aa2cc3"]]);Dn.install=e=>{e.component(Dn.__name,Dn)};const u1=l.defineComponent({__name:"ListNode",props:{node:{},customId:{},indexKey:{},typewriter:{type:Boolean}},emits:["copy"],setup(e){return(t,n)=>(l.openBlock(),l.createBlock(l.resolveDynamicComponent(e.node.ordered?"ol":"ul"),{class:l.normalizeClass(["list-node",{"list-decimal":e.node.ordered,"list-disc":!e.node.ordered}])},{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.node.items,(o,r,i,s)=>{var c;const a=[o];if(s&&s.key===`${e.indexKey||"list"}-${r}`&&l.isMemoSame(s,a))return s;const u=(l.openBlock(),l.createBlock(l.unref(Dn),{key:`${e.indexKey||"list"}-${r}`,item:o,"custom-id":e.customId,"index-key":`${e.indexKey||"list"}-${r}`,typewriter:e.typewriter,value:e.node.ordered?((c=e.node.start)!=null?c:1)+r:void 0,onCopy:n[0]||(n[0]=f=>t.$emit("copy",f))},null,8,["item","custom-id","index-key","typewriter","value"]));return u.memo=a,u},n,1),128))]),_:1},8,["class"]))}}),Tn=Me(u1,[["__scopeId","data-v-79057d57"]]);Tn.install=e=>{e.component(Tn.__name,Tn)};const d1="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2016%2016'%20width='16'%20height='16'%3e%3cpath%20fill='none'%20stroke='%23ca9ee6'%20stroke-linecap='round'%20stroke-linejoin='round'%20d='M1.5%202.5c0%206%202.25%205.75%204%207%20.83.67%201.17%202%201%204h3c-.17-2%20.17-3.33%201-4%201.75-1.25%204-1%204-7C12%202.5%2010%203%208%207%206%203%204%202.5%201.5%202.5'%20/%3e%3c/svg%3e";function Wn(e){try{if(typeof globalThis!="undefined"&&typeof globalThis.requestAnimationFrame=="function")return globalThis.requestAnimationFrame(e)}catch(t){}return globalThis.setTimeout(e,0)}let Ye=null,rn=null;const Ue=new Map,f1=5;let Cr=f1,ao=!1;function h1(e){ao=!!e}function p1(e){Number.isFinite(e)&&e>0&&(Cr=Math.floor(e))}function m1(){return{inFlight:Ue.size,max:Cr}}const os="WORKER_BUSY";function g1(e){Ye=e,rn=null;const t=e;Ye.onmessage=n=>{if(Ye!==t)return;const{id:o,ok:r,result:i,error:s}=n.data,a=Ue.get(o);a&&(r===!1||s?a.reject(new Error(s||"Unknown error")):a.resolve(i))},Ye.onerror=n=>{var o,r;if(Ye===t){if(Ue.size===0){(o=console.debug)==null||o.call(console,"[mermaidWorkerClient] Worker error (no pending):",(n==null?void 0:n.message)||n);return}try{ao?console.error("[mermaidWorkerClient] Worker error:",(n==null?void 0:n.message)||n):(r=console.debug)==null||r.call(console,"[mermaidWorkerClient] Worker error:",(n==null?void 0:n.message)||n)}catch(i){}for(const[i,s]of Ue.entries())s.reject(new Error(`Worker error: ${n.message}`));Ue.clear()}},Ye.onmessageerror=n=>{var o,r;if(Ye===t){if(Ue.size===0){(o=console.debug)==null||o.call(console,"[mermaidWorkerClient] Worker messageerror (no pending):",n);return}try{ao?console.error("[mermaidWorkerClient] Worker messageerror:",n):(r=console.debug)==null||r.call(console,"[mermaidWorkerClient] Worker messageerror:",n)}catch(i){}for(const[i,s]of Ue.entries())s.reject(new Error("Worker messageerror"));Ue.clear()}}}function k1(){var e;if(Ye)try{for(const[t,n]of Ue.entries())n.reject(new Error("Worker cleared"));Ue.clear(),(e=Ye.terminate)==null||e.call(Ye)}catch(t){}Ye=null,rn=null}function v1(){return Ye||(rn=new Error("[mermaidWorkerClient] No worker instance set. Please inject a Worker via setMermaidWorker()."),rn.name="WorkerInitError",rn.code="WORKER_INIT_ERROR",null)}function is(e,t,n=1400){if(rn)return Promise.reject(rn);const o=v1();if(!o)return Promise.reject(rn);if(Ue.size>=Cr){const r=new Error("Worker busy");return r.name="WorkerBusy",r.code=os,r.inFlight=Ue.size,r.max=Cr,Promise.reject(r)}return new Promise((r,i)=>{const s=Math.random().toString(36).slice(2);let a=!1,u;const c=()=>{a||(a=!0,u!=null&&globalThis.clearTimeout(u),Ue.delete(s))},f={resolve:d=>{c(),r(d)},reject:d=>{c(),i(d)}};Ue.set(s,f);try{o.postMessage({id:s,action:e,payload:t})}catch(d){Ue.delete(s),i(d);return}u=globalThis.setTimeout(()=>{const d=new Error("Worker call timed out");d.name="WorkerTimeout",d.code="WORKER_TIMEOUT";const h=Ue.get(s);h&&h.reject(d)},n)})}function ls(e,t,n=1400){return te(this,null,function*(){try{return yield is("canParse",{code:e,theme:t},n)}catch(o){return Promise.reject(o)}})}function ss(e,t,n=1400){return te(this,null,function*(){try{return yield is("findPrefix",{code:e,theme:t},n)}catch(o){return Promise.reject(o)}})}function co(){if(Ye)try{for(const[e,t]of Ue.entries())t.reject(new Error("Worker terminated"));Ue.clear(),Ye.terminate()}finally{Ye=null}}let Ze=null;function w1(){return te(this,null,function*(){if(Ze)return Ze;try{const e=yield import("mermaid"),t=e&&e.default?e.default:e;if(t&&(typeof t.render=="function"||typeof t.parse=="function"||typeof t.initialize=="function"))Ze=t;else if(t&&t.mermaidAPI&&(typeof t.mermaidAPI.render=="function"||typeof t.mermaidAPI.parse=="function")){const n=t.mermaidAPI;Ze=He(re({},t),{render:n.render.bind(n),parse:n.parse?n.parse.bind(n):void 0,initialize:o=>typeof t.initialize=="function"?t.initialize(o):n.initialize?n.initialize(o):void 0})}else e.mermaid&&typeof e.mermaid.render=="function"?Ze=e.mermaid:Ze=t}catch(e){throw new Error('Optional dependency "mermaid" is not installed. Please install it to enable mermaid diagrams.')}try{const e=Ze==null?void 0:Ze.initialize;Ze.initialize=t=>{const n=re({suppressErrorRendering:!0},t||{});if(typeof e=="function")return e.call(Ze,n);if(Ze!=null&&Ze.mermaidAPI&&typeof Ze.mermaidAPI.initialize=="function")return Ze.mermaidAPI.initialize(n)}}catch(e){}return Ze})}const y1={class:"flex items-center space-x-2"},x1=["src"],b1={class:"flex items-center space-x-1"},_1={class:"flex items-center space-x-1"},C1={class:"flex items-center space-x-1"},E1=["aria-pressed"],S1={key:0,xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},M1={key:1,xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},A1=["disabled"],B1=["disabled"],D1={key:0,xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"0.75rem",height:"0.75rem",viewBox:"0 0 24 24"},T1={key:1,xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"0.75rem",height:"0.75rem",viewBox:"0 0 24 24"},$1={key:1,class:"relative"},N1={class:"absolute top-2 right-2 z-10 rounded-lg"},I1={class:"flex items-center gap-2 backdrop-blur rounded-lg"},F1={class:"absolute top-6 right-6 z-50 flex items-center gap-2"},R1=300,L1=500,O1=l.defineComponent({__name:"MermaidBlockNode",props:{node:{},maxHeight:{default:"500px"},loading:{type:Boolean,default:!0},isDark:{type:Boolean},workerTimeoutMs:{default:1400},parseTimeoutMs:{default:1800},renderTimeoutMs:{default:2500},fullRenderTimeoutMs:{default:4e3}},emits:["copy"],setup(e,{emit:t}){var an,cn;const n=e,o=t,{t:r}=Lr();let i=null;const s=l.ref(!1);typeof window!="undefined"&&te(null,null,function*(){var R;i=yield w1(),s.value=!!i,(R=i==null?void 0:i.initialize)==null||R.call(i,{startOnLoad:!1,securityLevel:"loose"})});const a=l.ref(!1),u=l.ref(!1),c=l.ref(),f=l.ref(),d=l.ref(),h=l.ref(),p=l.ref(null),m=jn(),g=l.ref(null),k=l.ref(typeof window=="undefined"),_=l.ref(),y=l.computed(()=>n.node.code.replace(/\]::([^:])/g,"]:::$1").replace(/:::subgraphNode$/gm,"::subgraphNode"));function w(R){const E=y.value,Z=`%%{init: {"theme": "${R==="dark"?"dark":"default"}"}}%%
|
|
74
|
+
`;return E.trim().startsWith("%%{")?E:Z+E}const x=l.ref(1),S=l.ref(0),M=l.ref(0),D=l.ref(!1),T=l.ref({x:0,y:0}),b=l.ref(!1),z=l.ref(!1),$=l.ref(!1),U=l.ref(null),K=l.ref(0),G=l.ref(!1);let P=null;const L=l.ref("360px");let V=null;const j=l.ref(!1),q=l.ref(!1),Y=l.ref({}),ee=l.ref(null),Q=l.ref(""),oe=l.ref(0);let ne=null;const ie=l.ref(!1),le=l.ref({zoom:1,translateX:0,translateY:0,containerHeight:"360px"}),O=l.computed(()=>{var R,E,I,Z;return{worker:(R=n.workerTimeoutMs)!=null?R:1400,parse:(E=n.parseTimeoutMs)!=null?E:1800,render:(I=n.renderTimeoutMs)!=null?I:2500,fullRender:(Z=n.fullRenderTimeoutMs)!=null?Z:4e3}}),F=(an=globalThis.cancelIdleCallback)!=null?an:(R=>clearTimeout(R));let H=null,se=null,ge=!1,Be=800,ae=null,xe=0,Fe=!0;typeof window!="undefined"&&l.watch(()=>c.value,R=>{var I;if((I=g.value)==null||I.destroy(),g.value=null,!R){k.value=!1;return}const E=m(R,{rootMargin:"400px"});g.value=E,k.value=E.isVisible.value,E.whenVisible.then(()=>{k.value=!0})},{immediate:!0}),l.onBeforeUnmount(()=>{var R;(R=g.value)==null||R.destroy(),g.value=null});function _e(R,E){const I=E==null?void 0:E.timeoutMs,Z=E==null?void 0:E.signal;if(Z!=null&&Z.aborted)return Promise.reject(new DOMException("Aborted","AbortError"));let me=null,ce=!1,ye=null;return new Promise((Se,Je)=>{const Pe=()=>{me!=null&&clearTimeout(me),ye&&Z&&Z.removeEventListener("abort",ye)};I&&I>0&&(me=globalThis.setTimeout(()=>{ce||(ce=!0,Pe(),Je(new Error("Operation timed out")))},I)),Z&&(ye=()=>{ce||(ce=!0,Pe(),Je(new DOMException("Aborted","AbortError")))},Z.addEventListener("abort",ye)),R().then(Wt=>{ce||(ce=!0,Pe(),Se(Wt))}).catch(Wt=>{ce||(ce=!0,Pe(),Je(Wt))})})}function Re(R){if(typeof document=="undefined"||!d.value)return;const E=document.createElement("div");E.className="text-red-500 p-4",E.textContent="Failed to render diagram: ";const I=document.createElement("span");I.textContent=R instanceof Error?R.message:"Unknown error",E.appendChild(I),d.value.innerHTML="",d.value.appendChild(E),L.value="360px",ie.value=!0,pt()}function De(R){const E=R;return!E||E.disabled}function fe(R,E,I="top"){if(De(R.currentTarget))return;const Z=R,me=(Z==null?void 0:Z.clientX)!=null&&(Z==null?void 0:Z.clientY)!=null?{x:Z.clientX,y:Z.clientY}:void 0;xn(R.currentTarget,E,I,!1,me,n.isDark)}function ke(){Rr()}function qe(R){if(De(R.currentTarget))return;const E=a.value?r("common.copied")||"Copied":r("common.copy")||"Copy",I=R,Z=(I==null?void 0:I.clientX)!=null&&(I==null?void 0:I.clientY)!=null?{x:I.clientX,y:I.clientY}:void 0;xn(R.currentTarget,E,"top",!1,Z,n.isDark)}function yt(R,E){const Z=`%%{init: {"theme": "${E==="dark"?"dark":"default"}"}}%%
|
|
75
|
+
`;return R.trimStart().startsWith("%%{")?R:Z+R}function xt(){return Fe&&!b.value&&!j.value&&!ie.value}function je(R){const E=R.split(/\r?\n/);for(;E.length>0;){const Z=E[E.length-1].trimEnd();if(Z===""){E.pop();continue}if(/^[-=~>|<\s]+$/.test(Z.trim())||/(?:--|==|~~|->|<-|-\||-\)|-x|o-|\|-|\.-)\s*$/.test(Z)||/[-|><]$/.test(Z)||/(?:graph|flowchart|sequenceDiagram|classDiagram|stateDiagram|erDiagram|gantt)\s*$/i.test(Z)){E.pop();continue}break}return E.join(`
|
|
76
|
+
`)}function bt(R,E,I){return te(this,null,function*(){var ye,Se;if(!i)return;const Z=i,me=yt(R,E);if(typeof Z.parse=="function")return yield _e(()=>Z.parse(me),{timeoutMs:(ye=I==null?void 0:I.timeoutMs)!=null?ye:O.value.parse,signal:I==null?void 0:I.signal}),!0;const ce=`mermaid-parse-${Math.random().toString(36).slice(2,9)}`;return yield _e(()=>i.render(ce,me),{timeoutMs:(Se=I==null?void 0:I.timeoutMs)!=null?Se:O.value.render,signal:I==null?void 0:I.signal}),!0})}function Ge(R,E,I){return te(this,null,function*(){var Z;try{return yield ls(R,E,(Z=I==null?void 0:I.timeoutMs)!=null?Z:O.value.worker)}catch(me){return yield bt(R,E,I)}})}function jt(R,E,I){return te(this,null,function*(){var me;try{if(yield Ge(R,E,I))return{fullOk:!0,prefixOk:!1}}catch(ce){if((ce==null?void 0:ce.name)==="AbortError")throw ce}let Z=je(R);if(Z&&Z.trim()&&Z!==R)try{try{const ye=yield ss(R,E,(me=I==null?void 0:I.timeoutMs)!=null?me:O.value.worker);ye&&ye.trim()&&(Z=ye)}catch(ye){}if(yield Ge(Z,E,I))return{fullOk:!1,prefixOk:!0,prefix:Z}}catch(ce){if((ce==null?void 0:ce.name)==="AbortError")throw ce}return{fullOk:!1,prefixOk:!1}})}const _t=l.computed(()=>b.value||$.value||u.value);function Ct(R){if(!c.value||!d.value)return;const E=d.value.querySelector("svg");if(!E)return;let I=0,Z=0;const me=E.getAttribute("viewBox"),ce=E.getAttribute("width"),ye=E.getAttribute("height");if(me){const Se=me.split(" ");Se.length===4&&(I=Number.parseFloat(Se[2]),Z=Number.parseFloat(Se[3]))}if((!I||!Z)&&ce&&ye&&(I=Number.parseFloat(ce),Z=Number.parseFloat(ye)),Number.isNaN(I)||Number.isNaN(Z)||I<=0||Z<=0)try{const Se=E.getBBox();Se&&Se.width>0&&Se.height>0&&(I=Se.width,Z=Se.height)}catch(Se){console.error("Failed to get SVG BBox:",Se);return}if(I>0&&Z>0){const Se=Z/I;let Pe=(R!=null?R:c.value.clientWidth)*Se;Pe>Z&&(Pe=Z),L.value=`${Pe}px`}}const Qe=l.ref(!1),Nt=l.computed(()=>({transform:`translate(${S.value}px, ${M.value}px) scale(${x.value})`}));function Et(R){R.key==="Escape"&&Qe.value&&St()}function It(){if(Qe.value=!0,typeof document!="undefined")try{document.body.style.overflow="hidden"}catch(R){}if(typeof window!="undefined")try{window.addEventListener("keydown",Et)}catch(R){}l.nextTick(()=>{if(c.value&&h.value){const R=c.value.cloneNode(!0);R.classList.add("fullscreen");const E=R.querySelector("[data-mermaid-wrapper]");E&&(p.value=E,E.style.transform=Nt.value.transform),h.value.innerHTML="",h.value.appendChild(R)}})}function St(){if(Qe.value=!1,h.value&&(h.value.innerHTML=""),p.value=null,typeof document!="undefined")try{document.body.style.overflow=""}catch(R){}if(typeof window!="undefined")try{window.removeEventListener("keydown",Et)}catch(R){}}function N(R,E){let I=null;return(...Z)=>{I&&clearTimeout(I),I=setTimeout(()=>R(...Z),E)}}function v(){if(!b.value||!s.value)return;const R=y.value.length;R!==K.value&&(G.value=!0,K.value=R,P&&clearTimeout(P),P=setTimeout(()=>{G.value&&b.value&&y.value.trim()&&(G.value=!1,we("preview"))},L1))}l.watch(Nt,R=>{Qe.value&&p.value&&(p.value.style.transform=R.transform)},{immediate:!0});function C(){x.value<3&&(x.value+=.1)}function B(){x.value>.5&&(x.value-=.1)}function J(){x.value=1,S.value=0,M.value=0}function W(R){D.value=!0,R instanceof MouseEvent?T.value={x:R.clientX-S.value,y:R.clientY-M.value}:T.value={x:R.touches[0].clientX-S.value,y:R.touches[0].clientY-M.value}}function ve(R){if(!D.value)return;let E,I;R instanceof MouseEvent?(E=R.clientX,I=R.clientY):(E=R.touches[0].clientX,I=R.touches[0].clientY),S.value=E-T.value.x,M.value=I-T.value.y}function be(){D.value=!1}function Ce(R){if(R.ctrlKey||R.metaKey){if(R.preventDefault(),!c.value)return;const E=c.value.getBoundingClientRect(),I=R.clientX-E.left,Z=R.clientY-E.top,me=E.width/2,ce=E.height/2,ye=I-me,Se=Z-ce,Je=(ye-S.value)/x.value,Pe=(Se-M.value)/x.value,tr=-R.deltaY*.01,un=Math.min(Math.max(x.value+tr,.5),3);un!==x.value&&(S.value=ye-Je*un,M.value=Se-Pe*un,x.value=un)}}function pe(){return te(this,null,function*(){try{typeof navigator!="undefined"&&navigator.clipboard&&typeof navigator.clipboard.writeText=="function"&&(yield navigator.clipboard.writeText(y.value)),a.value=!0,o("copy",y.value),setTimeout(()=>{a.value=!1},1e3)}catch(R){console.error("Failed to copy:",R)}})}function Ee(){return te(this,null,function*(){var R;try{const E=(R=d.value)==null?void 0:R.querySelector("svg");if(!E){console.error("SVG element not found");return}const I=new XMLSerializer().serializeToString(E),Z=new Blob([I],{type:"image/svg+xml;charset=utf-8"}),me=URL.createObjectURL(Z);if(typeof document!="undefined"){const ce=document.createElement("a");ce.href=me,ce.download=`mermaid-diagram-${Date.now()}.svg`;try{document.body.appendChild(ce),ce.click(),document.body.removeChild(ce)}catch(ye){}URL.revokeObjectURL(me)}}catch(E){console.error("Failed to export SVG:",E)}})}function we(R){return te(this,null,function*(){const E=_.value;if(!E){z.value=!0,b.value=R==="source";return}const I=E.getBoundingClientRect().height;E.style.height=`${I}px`,E.style.overflow="hidden",z.value=!0,b.value=R==="source",yield l.nextTick();const Z=E.scrollHeight;E.style.transition="height 180ms ease",E.offsetHeight,E.style.height=`${Z}px`;const me=()=>{E.style.transition="",E.style.height="",E.style.overflow="",E.removeEventListener("transitionend",ce)};function ce(){me()}E.addEventListener("transitionend",ce),setTimeout(()=>me(),220)})}function ht(){return te(this,null,function*(){if($.value)return U.value;if(!d.value&&(yield l.nextTick(),!d.value)){console.warn("Mermaid container not ready");return}return $.value=!0,U.value=te(null,null,function*(){var R;if(i){d.value&&(d.value.style.opacity="0");try{const E=`mermaid-${Date.now()}-${Math.random().toString(36).substring(2,11)}`;!j.value&&!q.value&&((R=i.initialize)==null||R.call(i,{securityLevel:"loose",startOnLoad:!1}));const I=n.isDark?"dark":"light",Z=w(I),me=yield _e(()=>i.render(E,Z),{timeoutMs:O.value.fullRender}),ce=me==null?void 0:me.svg,ye=me==null?void 0:me.bindFunctions;if(d.value){d.value.innerHTML=ce,ye==null||ye(d.value),!j.value&&!q.value&&(Ct(),j.value=!0,le.value={zoom:x.value,translateX:S.value,translateY:M.value,containerHeight:L.value});const Se=n.isDark?"dark":"light";Y.value[Se]=ce,q.value&&(q.value=!1),ie.value=!1}}catch(E){console.error("Failed to render mermaid diagram:",E),n.loading===!1&&Re(E)}finally{yield l.nextTick(),d.value&&(d.value.style.opacity="1"),$.value=!1,U.value=null}}}),U.value})}function Ft(R){return te(this,null,function*(){if(xt()&&!(!d.value&&(yield l.nextTick(),!d.value))&&!$.value){$.value=!0;try{if(!i)return;const E=`mermaid-partial-${Date.now()}-${Math.random().toString(36).slice(2,9)}`,I=n.isDark?"dark":"light",Z=je(R),me=Z&&Z.trim()?Z:R,ce=yt(me,I);d.value&&(d.value.style.opacity="0");const ye=yield _e(()=>i.render(E,ce),{timeoutMs:O.value.render}),Se=ye==null?void 0:ye.svg,Je=ye==null?void 0:ye.bindFunctions;d.value&&Se&&(d.value.innerHTML=Se,Je==null||Je(d.value),Ct())}catch(E){}finally{yield l.nextTick(),d.value&&(d.value.style.opacity="1"),$.value=!1}}})}const Rt=(cn=globalThis.requestIdleCallback)!=null?cn:((R,E)=>setTimeout(()=>R({didTimeout:!0}),16));function Le(){return te(this,null,function*(){var Se,Je;const R=Date.now(),E=++oe.value;ne&&ne.abort(),ne=new AbortController;const I=ne.signal,Z=n.isDark?"dark":"light",me=y.value,ce=me.replace(/\s+/g,"");if(!me.trim()){d.value&&(d.value.innerHTML=""),ee.value=null,Q.value="",ie.value=!1;return}if(ce===Q.value)return;try{const Pe=yield jt(me,Z,{signal:I,timeoutMs:O.value.worker});if(Pe.fullOk){yield ht(),oe.value===E&&(ee.value=(Je=(Se=d.value)==null?void 0:Se.innerHTML)!=null?Je:null,Q.value=ce,ie.value=!1);return}const Wt=xe&&R<=xe;if(Pe.prefixOk&&Pe.prefix&&xt()&&!Wt){yield Ft(Pe.prefix);return}}catch(Pe){if((Pe==null?void 0:Pe.name)==="AbortError")return}if(oe.value!==E||ie.value)return;const ye=Y.value[Z];ye&&d.value&&(d.value.innerHTML=ye)})}const Oe=N(()=>{Rt(()=>{Le()},{timeout:500})},R1);function pt(){ge&&(ge=!1,Be=800,Fe=!1,ae&&(ae.abort(),ae=null),H&&(globalThis.clearTimeout(H),H=null),se&&(F(se),se=null),xe=Date.now())}function Mt(){if(pt(),ne){try{ne.abort()}catch(R){}ne=null}if(ae){try{ae.abort()}catch(R){}ae=null}co()}function Ht(R=800){ge&&(H&&globalThis.clearTimeout(H),H=globalThis.setTimeout(()=>{se=Rt(()=>te(null,null,function*(){if(!ge)return;if(b.value||j.value){pt();return}const E=n.isDark?"dark":"light",I=y.value;if(!I.trim()){Ht(Be);return}ae&&ae.abort(),ae=new AbortController;try{if((yield Ge(I,E,{signal:ae.signal,timeoutMs:O.value.worker}))&&(yield ht(),j.value)){pt();return}}catch(Z){}Be=Math.min(Math.floor(Be*1.5),4e3),Ht(Be)}),{timeout:500})},R))}function Zt(){ge||b.value||j.value||(ge=!0,xe=0,Fe=!0,Ht(500))}l.watch(()=>y.value,()=>{j.value=!1,Y.value={},Oe(),!b.value&&s.value&&Zt(),v()}),l.watch(()=>n.isDark,()=>te(null,null,function*(){if(!j.value||ie.value)return;const R=n.isDark?"dark":"light";if(Y.value[R]){d.value&&(d.value.innerHTML=Y.value[R]);return}const E={zoom:x.value,translateX:S.value,translateY:M.value,containerHeight:L.value},I=x.value!==1||S.value!==0||M.value!==0;q.value=!0,I&&(x.value=1,S.value=0,M.value=0,yield l.nextTick()),yield ht(),I&&(yield l.nextTick(),x.value=E.zoom,S.value=E.translateX,M.value=E.translateY,L.value=E.containerHeight,le.value=E)})),l.watch(()=>b.value,R=>te(null,null,function*(){if(R)pt(),j.value&&(le.value={zoom:x.value,translateX:S.value,translateY:M.value,containerHeight:L.value});else{if(ie.value)return;const E=n.isDark?"dark":"light";if(j.value&&Y.value[E]){yield l.nextTick(),d.value&&(d.value.innerHTML=Y.value[E]),x.value=le.value.zoom,S.value=le.value.translateX,M.value=le.value.translateY,L.value=le.value.containerHeight;return}if(yield l.nextTick(),!s.value)return;yield Le(),Zt()}})),l.watch(()=>n.loading,(R,E)=>te(null,null,function*(){if(E===!0&&R===!1){const I=y.value.trim();if(!I)return Mt();const Z=n.isDark?"dark":"light",me=I.replace(/\s+/g,"");if(j.value&&me===Q.value){yield l.nextTick(),d.value&&!d.value.querySelector("svg")&&Y.value[Z]&&(d.value.innerHTML=Y.value[Z]),Mt();return}try{yield Ge(I,Z,{timeoutMs:O.value.worker}),yield ht(),Q.value=me,ie.value=!1,Mt()}catch(ce){Mt(),Re(ce)}}})),l.watch(c,R=>{V&&V.disconnect(),R&&!j.value&&!q.value&&(V=new ResizeObserver(E=>{E&&E.length>0&&!j.value&&!q.value&&Wn(()=>{const I=E[0].contentRect.width;Ct(I)})}),V.observe(R))},{immediate:!0}),l.onMounted(()=>te(null,null,function*(){yield l.nextTick(),z.value||(b.value=!s.value),k.value&&(Oe(),K.value=y.value.length)})),l.watch(()=>s.value,R=>{z.value||(b.value=!R)}),l.watch(()=>k.value,R=>{R&&(j.value||(Oe(),K.value=y.value.length),!n.loading&&!j.value&&Oe())},{immediate:!1}),l.onUnmounted(()=>{P&&clearTimeout(P),V&&V.disconnect(),ne&&(ne.abort(),ne=null),co(),pt()}),l.watch(()=>u.value,R=>te(null,null,function*(){R?(pt(),ne&&ne.abort()):j.value||(yield l.nextTick(),Oe(),b.value||Zt())}),{immediate:!1});const qt=l.computed(()=>n.isDark?"mermaid-action-btn p-2 text-xs rounded text-gray-400 hover:bg-gray-700 hover:text-gray-200":"mermaid-action-btn p-2 text-xs rounded text-gray-600 hover:bg-gray-200 hover:text-gray-700");return(R,E)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(["my-4 rounded-lg border overflow-hidden shadow-sm",[n.isDark?"border-gray-700/30":"border-gray-200",{"is-rendering":n.loading}]])},[l.createElementVNode("div",{class:l.normalizeClass(["mermaid-block-header flex justify-between items-center px-4 py-2.5 border-b",n.isDark?"bg-gray-800 border-gray-700/30":"bg-gray-50 border-gray-200"])},[l.createElementVNode("div",y1,[l.createElementVNode("img",{src:l.unref(d1),class:"w-4 h-4 my-0",alt:"Mermaid"},null,8,x1),l.createElementVNode("span",{class:l.normalizeClass(["text-sm font-medium font-mono",n.isDark?"text-gray-400":"text-gray-600"])},"Mermaid",2)]),s.value?(l.openBlock(),l.createElementBlock("div",{key:0,class:l.normalizeClass(["flex items-center space-x-1 rounded-md p-0.5",n.isDark?"bg-gray-700":"bg-gray-100"])},[l.createElementVNode("button",{class:l.normalizeClass(["px-2.5 py-1 text-xs rounded transition-colors",[b.value?n.isDark?"text-gray-400 hover:text-gray-200":"text-gray-500 hover:text-gray-700":n.isDark?"bg-gray-600 text-gray-200 shadow-sm":"bg-white text-gray-700 shadow-sm"]]),onClick:E[0]||(E[0]=I=>we("preview")),onMouseenter:E[1]||(E[1]=I=>fe(I,l.unref(r)("common.preview")||"Preview")),onFocus:E[2]||(E[2]=I=>fe(I,l.unref(r)("common.preview")||"Preview")),onMouseleave:ke,onBlur:ke},[l.createElementVNode("div",b1,[E[21]||(E[21]=l.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[l.createElementVNode("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[l.createElementVNode("path",{d:"M2.062 12.348a1 1 0 0 1 0-.696a10.75 10.75 0 0 1 19.876 0a1 1 0 0 1 0 .696a10.75 10.75 0 0 1-19.876 0"}),l.createElementVNode("circle",{cx:"12",cy:"12",r:"3"})])],-1)),l.createElementVNode("span",null,l.toDisplayString(l.unref(r)("common.preview")||"Preview"),1)])],34),l.createElementVNode("button",{class:l.normalizeClass(["px-2.5 py-1 text-xs rounded transition-colors",[b.value?n.isDark?"bg-gray-600 text-gray-200 shadow-sm":"bg-white text-gray-700 shadow-sm":n.isDark?"text-gray-400 hover:text-gray-200":"text-gray-500 hover:text-gray-700"]]),onClick:E[3]||(E[3]=I=>we("source")),onMouseenter:E[4]||(E[4]=I=>fe(I,l.unref(r)("common.source")||"Source")),onFocus:E[5]||(E[5]=I=>fe(I,l.unref(r)("common.source")||"Source")),onMouseleave:ke,onBlur:ke},[l.createElementVNode("div",_1,[E[22]||(E[22]=l.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[l.createElementVNode("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m16 18l6-6l-6-6M8 6l-6 6l6 6"})],-1)),l.createElementVNode("span",null,l.toDisplayString(l.unref(r)("common.source")||"Source"),1)])],34)],2)):l.createCommentVNode("",!0),l.createElementVNode("div",C1,[l.createElementVNode("button",{class:l.normalizeClass(qt.value),"aria-pressed":u.value,onClick:E[6]||(E[6]=I=>u.value=!u.value),onMouseenter:E[7]||(E[7]=I=>fe(I,u.value?l.unref(r)("common.expand")||"Expand":l.unref(r)("common.collapse")||"Collapse")),onFocus:E[8]||(E[8]=I=>fe(I,u.value?l.unref(r)("common.expand")||"Expand":l.unref(r)("common.collapse")||"Collapse")),onMouseleave:ke,onBlur:ke},[(l.openBlock(),l.createElementBlock("svg",{style:l.normalizeStyle({rotate:u.value?"0deg":"90deg"}),xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[...E[23]||(E[23]=[l.createElementVNode("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m9 18l6-6l-6-6"},null,-1)])],4))],42,E1),l.createElementVNode("button",{class:l.normalizeClass(qt.value),onClick:pe,onMouseenter:E[9]||(E[9]=I=>qe(I)),onFocus:E[10]||(E[10]=I=>qe(I)),onMouseleave:ke,onBlur:ke},[a.value?(l.openBlock(),l.createElementBlock("svg",M1,[...E[25]||(E[25]=[l.createElementVNode("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M20 6L9 17l-5-5"},null,-1)])])):(l.openBlock(),l.createElementBlock("svg",S1,[...E[24]||(E[24]=[l.createElementVNode("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[l.createElementVNode("rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2"}),l.createElementVNode("path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"})],-1)])]))],34),s.value?(l.openBlock(),l.createElementBlock("button",{key:0,class:l.normalizeClass(`${qt.value} ${_t.value?"opacity-50 cursor-not-allowed":""}`),disabled:_t.value,onClick:Ee,onMouseenter:E[11]||(E[11]=I=>fe(I,l.unref(r)("common.export")||"Export")),onFocus:E[12]||(E[12]=I=>fe(I,l.unref(r)("common.export")||"Export")),onMouseleave:ke,onBlur:ke},[...E[26]||(E[26]=[l.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[l.createElementVNode("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[l.createElementVNode("path",{d:"M12 15V3m9 12v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),l.createElementVNode("path",{d:"m7 10l5 5l5-5"})])],-1)])],42,A1)):l.createCommentVNode("",!0),s.value?(l.openBlock(),l.createElementBlock("button",{key:1,class:l.normalizeClass(`${qt.value} ${_t.value?"opacity-50 cursor-not-allowed":""}`),disabled:_t.value,onClick:It,onMouseenter:E[13]||(E[13]=I=>fe(I,Qe.value?l.unref(r)("common.minimize")||"Minimize":l.unref(r)("common.open")||"Open")),onFocus:E[14]||(E[14]=I=>fe(I,Qe.value?l.unref(r)("common.minimize")||"Minimize":l.unref(r)("common.open")||"Open")),onMouseleave:ke,onBlur:ke},[Qe.value?(l.openBlock(),l.createElementBlock("svg",T1,[...E[28]||(E[28]=[l.createElementVNode("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m14 10l7-7m-1 7h-6V4M3 21l7-7m-6 0h6v6"},null,-1)])])):(l.openBlock(),l.createElementBlock("svg",D1,[...E[27]||(E[27]=[l.createElementVNode("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15 3h6v6m0-6l-7 7M3 21l7-7m-1 7H3v-6"},null,-1)])]))],42,B1)):l.createCommentVNode("",!0)])],2),l.withDirectives(l.createElementVNode("div",{ref_key:"modeContainerRef",ref:_},[b.value?(l.openBlock(),l.createElementBlock("div",{key:0,class:l.normalizeClass(["p-4",n.isDark?"bg-gray-900":"bg-gray-50"])},[l.createElementVNode("pre",{class:l.normalizeClass(["text-sm font-mono whitespace-pre-wrap",n.isDark?"text-gray-300":"text-gray-700"])},l.toDisplayString(y.value),3)],2)):(l.openBlock(),l.createElementBlock("div",$1,[l.createElementVNode("div",N1,[l.createElementVNode("div",I1,[l.createElementVNode("button",{class:l.normalizeClass(["p-2 text-xs rounded transition-colors",[n.isDark?"text-gray-400 hover:bg-gray-700":"text-gray-600 hover:bg-gray-200"]]),onClick:C,onMouseenter:E[15]||(E[15]=I=>fe(I,l.unref(r)("common.zoomIn")||"Zoom in")),onFocus:E[16]||(E[16]=I=>fe(I,l.unref(r)("common.zoomIn")||"Zoom in")),onMouseleave:ke,onBlur:ke},[...E[29]||(E[29]=[l.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[l.createElementVNode("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[l.createElementVNode("circle",{cx:"11",cy:"11",r:"8"}),l.createElementVNode("path",{d:"m21 21l-4.35-4.35M11 8v6m-3-3h6"})])],-1)])],34),l.createElementVNode("button",{class:l.normalizeClass(["p-2 text-xs rounded transition-colors",[n.isDark?"text-gray-400 hover:bg-gray-700":"text-gray-600 hover:bg-gray-200"]]),onClick:B,onMouseenter:E[17]||(E[17]=I=>fe(I,l.unref(r)("common.zoomOut")||"Zoom out")),onFocus:E[18]||(E[18]=I=>fe(I,l.unref(r)("common.zoomOut")||"Zoom out")),onMouseleave:ke,onBlur:ke},[...E[30]||(E[30]=[l.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[l.createElementVNode("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[l.createElementVNode("circle",{cx:"11",cy:"11",r:"8"}),l.createElementVNode("path",{d:"m21 21l-4.35-4.35M8 11h6"})])],-1)])],34),l.createElementVNode("button",{class:l.normalizeClass(["p-2 text-xs rounded transition-colors",[n.isDark?"text-gray-400 hover:bg-gray-700":"text-gray-600 hover:bg-gray-200"]]),onClick:J,onMouseenter:E[19]||(E[19]=I=>fe(I,l.unref(r)("common.resetZoom")||"Reset zoom")),onFocus:E[20]||(E[20]=I=>fe(I,l.unref(r)("common.resetZoom")||"Reset zoom")),onMouseleave:ke,onBlur:ke},l.toDisplayString(Math.round(x.value*100))+"% ",35)])]),l.createElementVNode("div",{ref_key:"mermaidContainer",ref:c,class:l.normalizeClass(["min-h-[360px] relative transition-all duration-100 overflow-hidden block",n.isDark?"bg-gray-900":"bg-gray-50"]),style:l.normalizeStyle({height:L.value}),onWheel:Ce,onMousedown:W,onMousemove:ve,onMouseup:be,onMouseleave:be,onTouchstartPassive:W,onTouchmovePassive:ve,onTouchendPassive:be},[l.createElementVNode("div",{ref_key:"mermaidWrapper",ref:f,"data-mermaid-wrapper":"",class:l.normalizeClass(["absolute inset-0 cursor-grab",{"cursor-grabbing":D.value}]),style:l.normalizeStyle(Nt.value)},[l.createElementVNode("div",{ref_key:"mermaidContent",ref:d,class:"_mermaid w-full text-center flex items-center justify-center min-h-full"},null,512)],6)],38),(l.openBlock(),l.createBlock(l.Teleport,{to:"body"},[l.createVNode(l.Transition,{name:"mermaid-dialog",appear:""},{default:l.withCtx(()=>[Qe.value?(l.openBlock(),l.createElementBlock("div",{key:0,class:"fixed inset-0 z-50 flex items-center justify-center bg-black/70 p-4",onClick:l.withModifiers(St,["self"])},[l.createElementVNode("div",{class:l.normalizeClass(["dialog-panel relative w-full h-full max-w-full max-h-full rounded shadow-lg overflow-hidden",n.isDark?"bg-gray-900":"bg-white"])},[l.createElementVNode("div",F1,[l.createElementVNode("button",{class:l.normalizeClass(["p-2 text-xs rounded transition-colors",[n.isDark?"text-gray-400 hover:bg-gray-700":"text-gray-600 hover:bg-gray-200"]]),onClick:C},[...E[31]||(E[31]=[l.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[l.createElementVNode("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[l.createElementVNode("circle",{cx:"11",cy:"11",r:"8"}),l.createElementVNode("path",{d:"m21 21l-4.35-4.35M11 8v6m-3-3h6"})])],-1)])],2),l.createElementVNode("button",{class:l.normalizeClass(["p-2 text-xs rounded transition-colors",[n.isDark?"text-gray-400 hover:bg-gray-700":"text-gray-600 hover:bg-gray-200"]]),onClick:B},[...E[32]||(E[32]=[l.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[l.createElementVNode("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[l.createElementVNode("circle",{cx:"11",cy:"11",r:"8"}),l.createElementVNode("path",{d:"m21 21l-4.35-4.35M8 11h6"})])],-1)])],2),l.createElementVNode("button",{class:l.normalizeClass(["p-2 text-xs rounded transition-colors",[n.isDark?"text-gray-400 hover:bg-gray-700":"text-gray-600 hover:bg-gray-200"]]),onClick:J},l.toDisplayString(Math.round(x.value*100))+"% ",3),l.createElementVNode("button",{class:l.normalizeClass(["inline-flex items-center justify-center p-2 rounded transition-colors",[n.isDark?"text-gray-400 hover:bg-gray-700":"text-gray-600 hover:bg-gray-200"]]),onClick:St},[...E[33]||(E[33]=[l.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[l.createElementVNode("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M18 6L6 18M6 6l12 12"})],-1)])],2)]),l.createElementVNode("div",{ref_key:"modalContent",ref:h,class:"w-full h-full flex items-center justify-center p-4 overflow-hidden",onWheel:Ce,onMousedown:W,onMousemove:ve,onMouseup:be,onMouseleave:be,onTouchstart:W,onTouchmove:ve,onTouchend:be},null,544)],2)])):l.createCommentVNode("",!0)]),_:1})]))]))],512),[[l.vShow,!u.value]])],2))}}),vn=Me(O1,[["__scopeId","data-v-d0cb88c1"]]);vn.install=e=>{e.component(vn.__name,vn)};const P1={dir:"auto",class:"paragraph-node"},z1=l.defineComponent({__name:"ParagraphNode",props:{node:{},customId:{},indexKey:{}},setup(e){const t=e,n=re({inline_code:tt,image:nn,link:it,hardbreak:tn,emphasis:vt,strong:rt,strikethrough:ot,highlight:ft,insert:dt,subscript:ut,superscript:ct,emoji:et,checkbox:Dt,math_inline:Vt,checkbox_input:Dt,reference:nt},gt(t.customId)),o=ts();return(r,i)=>(l.openBlock(),l.createElementBlock("p",P1,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.node.children,(s,a)=>(l.openBlock(),l.createElementBlock(l.Fragment,{key:`${e.indexKey||"paragraph"}-${a}`},[s.type!=="text"?(l.openBlock(),l.createBlock(l.resolveDynamicComponent(n[s.type]),{key:0,node:s,"index-key":`${e.indexKey}-${a}`,"custom-id":t.customId},null,8,["node","index-key","custom-id"])):(l.openBlock(),l.createElementBlock("span",{key:1,class:l.normalizeClass([[l.unref(o)&&s.center?"text-node-center":""],"whitespace-pre-wrap break-words text-node"])},l.toDisplayString(s.content),3))],64))),128))]))}}),$n=Me(z1,[["__scopeId","data-v-99e1c125"]]);$n.install=e=>{e.component($n.__name,$n)};const V1=["aria-busy","aria-label","data-language"],j1=["textContent"],on=l.defineComponent({__name:"PreCodeNode",props:{node:{}},setup(e){const t=e,n=l.computed(()=>{var u,c,f;const i=String((c=(u=t.node)==null?void 0:u.language)!=null?c:"");return String((f=String(i).split(/\s+/g)[0])!=null?f:"").toLowerCase().replace(/[^\w-]/g,"")||"plaintext"}),o=l.computed(()=>`language-${n.value}`),r=l.computed(()=>{const i=n.value;return i?`Code block: ${i}`:"Code block"});return(i,s)=>(l.openBlock(),l.createElementBlock("pre",{class:l.normalizeClass([o.value]),"aria-busy":e.node.loading===!0,"aria-label":r.value,"data-language":n.value,tabindex:"0"},[s[0]||(s[0]=l.createTextVNode(" ",-1)),l.createElementVNode("code",{translate:"no",textContent:l.toDisplayString(e.node.code)},null,8,j1),s[1]||(s[1]=l.createTextVNode(`
|
|
77
|
+
`,-1))],10,V1))}});on.install=e=>{e.component(on.__name,on)};const H1={class:"table-node-wrapper"},q1=["aria-busy"],W1={class:"border-[var(--table-border,#cbd5e1)]"},U1={class:"border-b"},K1={key:0,class:"table-node__loading",role:"status","aria-live":"polite"},X1=l.defineComponent({__name:"TableNode",props:{node:{},indexKey:{},isDark:{type:Boolean},typewriter:{type:Boolean}},emits:["copy"],setup(e){const t=e,n=l.computed(()=>{var s,a,u,c;return(c=(u=(a=(s=t.node)==null?void 0:s.header)==null?void 0:a.cells)==null?void 0:u.length)!=null?c:0}),o=l.computed(()=>{const s=n.value||1,a=Math.floor(100/s);return Array.from({length:s}).map((u,c)=>c===s-1?`${100-a*(s-1)}%`:`${a}%`)}),r=l.computed(()=>{var s;return(s=t.node.loading)!=null?s:!1}),i=l.computed(()=>{var s;return(s=t.node.rows)!=null?s:[]});return(s,a)=>(l.openBlock(),l.createElementBlock("div",H1,[l.createElementVNode("table",{class:l.normalizeClass(["w-full my-8 text-sm table-fixed table-node",{"table-node--loading":r.value}]),"aria-busy":r.value},[l.createElementVNode("colgroup",null,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(o.value,(u,c)=>(l.openBlock(),l.createElementBlock("col",{key:`col-${c}`,style:l.normalizeStyle({width:u})},null,4))),128))]),l.createElementVNode("thead",W1,[l.createElementVNode("tr",U1,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.node.header.cells,(u,c)=>(l.openBlock(),l.createElementBlock("th",{key:`header-${c}`,dir:"auto",class:l.normalizeClass(["font-semibold p-[calc(4/7*1em)] overflow-x-auto",[u.align==="right"?"text-right":u.align==="center"?"text-center":"text-left"]])},[l.createVNode(l.unref(st),{nodes:u.children,"index-key":`table-th-${e.indexKey}`,typewriter:t.typewriter,onCopy:a[0]||(a[0]=f=>s.$emit("copy",f))},null,8,["nodes","index-key","typewriter"])],2))),128))])]),l.createElementVNode("tbody",null,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(i.value,(u,c)=>(l.openBlock(),l.createElementBlock("tr",{key:`row-${c}`,class:l.normalizeClass(["border-[var(--table-border,#cbd5e1)]",[c<i.value.length-1?"border-b":""]])},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(u.cells,(f,d)=>(l.openBlock(),l.createElementBlock("td",{key:`cell-${c}-${d}`,class:l.normalizeClass(["p-[calc(4/7*1em)] overflow-x-auto",[f.align==="right"?"text-right":f.align==="center"?"text-center":"text-left"]]),dir:"auto"},[l.createVNode(l.unref(st),{nodes:f.children,"index-key":`table-td-${e.indexKey}`,typewriter:t.typewriter,onCopy:a[1]||(a[1]=h=>s.$emit("copy",h))},null,8,["nodes","index-key","typewriter"])],2))),128))],2))),128))])],10,q1),l.createVNode(l.Transition,{name:"table-node-fade"},{default:l.withCtx(()=>[r.value?(l.openBlock(),l.createElementBlock("div",K1,[l.renderSlot(s.$slots,"loading",{isLoading:r.value},()=>[a[2]||(a[2]=l.createElementVNode("span",{class:"table-node__spinner animate-spin","aria-hidden":"true"},null,-1)),a[3]||(a[3]=l.createElementVNode("span",{class:"sr-only"},"Loading",-1))],!0)])):l.createCommentVNode("",!0)]),_:3})]))}}),Nn=Me(X1,[["__scopeId","data-v-50ef14ca"]]);Nn.install=e=>{e.component(Nn.__name,Nn)};const Z1={},Y1={class:"hr-node"};function G1(e,t){return l.openBlock(),l.createElementBlock("hr",Y1)}const In=Me(Z1,[["render",G1],["__scopeId","data-v-639cbad9"]]);In.install=e=>{e.component(In.__name,In)};const J1={key:1,class:"html-block-node__placeholder"},Q1=l.defineComponent({__name:"HtmlBlockNode",props:{node:{}},setup(e){const t=e,n=l.computed(()=>{const c=t.node.attrs;if(c){if(Array.isArray(c)){const f={};for(const d of c){if(!d||d.length<2)continue;const[h,p]=d;h!=null&&(f[String(h)]=p==null?"":String(p))}return f}return c}}),o=l.ref(null),r=l.ref(typeof window=="undefined"),i=l.ref(t.node.content),s=jn(),a=l.ref(null),u=!!t.node.loading;return typeof window!="undefined"?(l.watch(o,c=>{var d,h;if((h=(d=a.value)==null?void 0:d.destroy)==null||h.call(d),a.value=null,!u){r.value=!0,i.value=t.node.content;return}if(!c){r.value=!1;return}const f=s(c,{rootMargin:"400px"});a.value=f,r.value=f.isVisible.value,f.whenVisible.then(()=>{r.value=!0})},{immediate:!0}),l.watch(()=>t.node.content,c=>{(!u||r.value)&&(i.value=c)})):r.value=!0,l.onBeforeUnmount(()=>{var c,f;(f=(c=a.value)==null?void 0:c.destroy)==null||f.call(c),a.value=null}),(c,f)=>(l.openBlock(),l.createElementBlock("div",l.mergeProps({ref_key:"htmlRef",ref:o,class:"html-block-node"},n.value),[r.value?l.withMemo([i.value],()=>(l.openBlock(),l.createElementBlock("div",{key:0,innerHTML:i.value},null,8,["innerHTML"])),f,0):(l.openBlock(),l.createElementBlock("div",J1,[l.renderSlot(c.$slots,"placeholder",{node:e.node},()=>[f[1]||(f[1]=l.createElementVNode("span",{class:"html-block-node__placeholder-bar"},null,-1)),f[2]||(f[2]=l.createElementVNode("span",{class:"html-block-node__placeholder-bar w-4/5"},null,-1)),f[3]||(f[3]=l.createElementVNode("span",{class:"html-block-node__placeholder-bar w-2/3"},null,-1))],!0)]))],16))}}),e0=Me(Q1,[["__scopeId","data-v-ed22b926"]]),t0={class:"unknown-node"},Fi=l.defineComponent({__name:"FallbackComponent",props:{node:{}},setup(e){return(t,n)=>(l.openBlock(),l.createElementBlock("div",t0,l.toDisplayString(e.node.raw),1))}}),n0=["data-node-index","data-node-type"],r0=l.defineComponent({__name:"NodeRenderer",props:{content:{},nodes:{},parseOptions:{},customMarkdownIt:{},viewportPriority:{type:Boolean},codeBlockStream:{type:Boolean,default:!0},codeBlockDarkTheme:{},codeBlockLightTheme:{},codeBlockMonacoOptions:{},renderCodeBlocksAsPre:{type:Boolean},codeBlockMinWidth:{},codeBlockMaxWidth:{},codeBlockProps:{},themes:{},isDark:{type:Boolean},customId:{},indexKey:{},typewriter:{type:Boolean,default:!0},batchRendering:{type:Boolean,default:!0},initialRenderBatchSize:{default:40},renderBatchSize:{default:80},renderBatchDelay:{default:16},renderBatchBudgetMs:{default:6},renderBatchIdleTimeoutMs:{default:120},deferNodesUntilVisible:{type:Boolean,default:!0},maxLiveNodes:{default:320},liveNodeBuffer:{default:60}},emits:["copy","handleArtifactClick","click","mouseover","mouseout"],setup(e,{emit:t}){var It,St,N;const n=e,o=t,r=l.ref(),i=l.ref(n.viewportPriority!==!1),s=Qh(()=>r.value,i),a=Ol(),u=l.computed(()=>n.customMarkdownIt?n.customMarkdownIt(a):a),c=l.computed(()=>{var v;if((v=n.nodes)!=null&&v.length)return n.nodes;if(n.content){const C=Ll(n.content,u.value,n.parseOptions);return l.markRaw(C)}return[]}),f=typeof window!="undefined",d=f&&typeof window.requestAnimationFrame=="function"?window.requestAnimationFrame.bind(window):null,h=f&&typeof window.cancelAnimationFrame=="function"?window.cancelAnimationFrame.bind(window):null,p=typeof globalThis!="undefined"&&typeof globalThis.process!="undefined"&&((St=(It=globalThis.process)==null?void 0:It.env)==null?void 0:St.NODE_ENV)==="test",m=f&&typeof window.requestIdleCallback=="function",g=l.computed(()=>{var C;const v=Math.trunc((C=n.renderBatchSize)!=null?C:80);return Number.isFinite(v)?Math.max(0,v):0}),k=l.computed(()=>{var C;const v=Math.trunc((C=n.initialRenderBatchSize)!=null?C:g.value);return Number.isFinite(v)?Math.max(0,v):g.value}),_=l.computed(()=>n.batchRendering!==!1&&g.value>0&&f&&!p),y=l.ref(0),w=l.ref({key:n.indexKey,total:0}),x=l.ref({batchSize:g.value,initial:k.value,delay:(N=n.renderBatchDelay)!=null?N:16,enabled:_.value}),S=l.shallowRef([]),M=l.ref(Math.max(1,g.value||1)),D=l.reactive({}),T=new Map,b=new Map,z=l.computed(()=>n.deferNodesUntilVisible!==!1&&i.value!==!1),$=l.computed(()=>{var v;return((v=n.maxLiveNodes)!=null?v:0)>0}),U=l.computed(()=>!!s&&(z.value||$.value)),K=l.computed(()=>{var v;return Math.max(1,(v=n.maxLiveNodes)!=null?v:320)}),G=l.computed(()=>{var v;return Math.max(0,(v=n.liveNodeBuffer)!=null?v:60)}),P=l.ref(0),L=l.reactive({start:0,end:0}),V=new Map,j=l.computed(()=>{if(!$.value)return c.value.length;const v=G.value,C=Math.max(L.end+v,k.value),B=Math.min(c.value.length,C);return Math.max(y.value,B)});function q(v,C,B){return Math.min(Math.max(v,C),B)}function Y(){const v=c.value.length;if(!$.value||v===0){L.start=0,L.end=v;return}const C=Math.min(K.value,v),B=G.value,J=q(P.value-B,0,Math.max(0,v-C));L.start=J,L.end=Math.min(v,J+C)}const ee=l.reactive({}),Q=l.reactive({total:0,count:0});function oe(v,C){if(!Number.isFinite(C)||C<=0)return;const B=ee[v];ee[v]=C,B?Q.total+=C-B:(Q.total+=C,Q.count++)}const ne=l.computed(()=>Q.count>0?Math.max(12,Q.total/Q.count):32);function ie(v,C){var J;if(v>=C)return 0;let B=0;for(let W=v;W<C;W++)B+=(J=ee[W])!=null?J:ne.value;return B}const le=l.computed(()=>{if(!$.value)return S.value.map((J,W)=>({node:J,index:W}));const v=S.value.length,C=q(L.start,0,v),B=q(L.end,C,v);return S.value.slice(C,B).map((J,W)=>({node:J,index:C+W}))}),O=l.computed(()=>$.value?ie(0,Math.min(L.start,S.value.length)):0),F=l.computed(()=>{if(!$.value)return 0;const v=S.value.length,C=Math.min(L.end,v);return ie(C,Math.min(v,y.value))});function H(){const v=c.value.length,C=Math.min(v,y.value);if(C<=0){S.value=[],se(0);return}if(C>=v){S.value=c.value,se(C);return}S.value=c.value.slice(0,C),se(C)}function se(v){if(T.size)for(const[C,B]of T)C>=v&&(B.destroy(),T.delete(C),z.value&&delete D[C],b.delete(C))}function ge(v,C){z.value&&(D[v]=C),C&&(P.value=q(v,0,Math.max(0,c.value.length-1)))}function Be(v){return!z.value||v<k.value?!0:D[v]===!0}function ae(v){const C=T.get(v);C&&(C.destroy(),T.delete(v))}function xe(v,C){if(C?b.set(v,C):b.delete(v),!U.value||!s){ae(v),C?ge(v,!0):z.value&&delete D[v];return}if(v<k.value&&!$.value){ae(v),ge(v,!0);return}if(!C){ae(v),z.value&&delete D[v];return}ae(v);const B=s(C,{rootMargin:"400px"});B&&(T.set(v,B),ge(v,B.isVisible.value),B.whenVisible.then(()=>{ge(v,!0)}).catch(()=>{}))}function Fe(v,C){if(!C){V.delete(v);return}V.set(v,C),queueMicrotask(()=>{oe(v,C.offsetHeight)})}let _e=null,Re=null,De=!1,fe=null,ke=null;function qe(){f&&(_e!=null&&(h==null||h(_e),_e=null),Re!=null&&(window.clearTimeout(Re),Re=null),ke!=null&&typeof window.cancelIdleCallback=="function"&&(window.cancelIdleCallback(ke),ke=null),De=!1,fe=null)}function yt(v,C={}){var be,Ce;if(!_.value)return;const B=j.value;if(y.value>=B)return;const J=Math.max(1,v),W=pe=>{var Rt;_e=null,Re=null,ke=null,De=!1;const Ee=fe!=null?fe:J;fe=null;const we=Math.max(2,(Rt=n.renderBatchBudgetMs)!=null?Rt:6),ht=Le=>{const Oe=typeof performance!="undefined"?performance.now():Date.now();y.value=Math.min(B,y.value+Math.max(1,Le)),H();const Mt=(typeof performance!="undefined"?performance.now():Date.now())-Oe;return je(Mt),Mt};let Ft=Ee;for(;ht(Ft),!(y.value>=B||!pe||(typeof pe.timeRemaining=="function"?pe.timeRemaining():0)<=we*.5);)Ft=Math.max(1,Math.round(M.value));y.value<B&&xt()};if(!f||C.immediate){W();return}const ve=Math.max(0,(be=n.renderBatchDelay)!=null?be:16);if(fe=fe!=null?Math.max(fe,J):J,!De){if(De=!0,!p&&m&&window.requestIdleCallback){const pe=Math.max(0,(Ce=n.renderBatchIdleTimeoutMs)!=null?Ce:120);ke=window.requestIdleCallback(Ee=>{W(Ee)},{timeout:pe});return}if(!d||p){Re=window.setTimeout(()=>W(),ve);return}_e=d(()=>{if(ve===0){W();return}Re=window.setTimeout(()=>W(),ve)})}}function xt(){const v=_.value?Math.max(1,Math.round(M.value)):Math.max(1,g.value);yt(v)}function je(v){var W;if(!_.value)return;const C=Math.max(2,(W=n.renderBatchBudgetMs)!=null?W:6),B=Math.max(1,g.value||1),J=Math.max(1,Math.floor(B/4));v>C*1.2?M.value=Math.max(J,Math.floor(M.value*.7)):v<C*.5&&M.value<B&&(M.value=Math.min(B,Math.ceil(M.value*1.2)))}l.watch([()=>c.value,()=>c.value.length,()=>_.value,()=>g.value,()=>k.value,()=>n.renderBatchDelay,()=>n.indexKey],()=>{var we;const C=c.value.length,B=w.value,J=n.indexKey,W=J!==void 0?J!==B.key:C!==B.total;w.value={key:J,total:C};const ve=x.value,be=(we=n.renderBatchDelay)!=null?we:16,Ce=ve.batchSize!==g.value||ve.initial!==k.value||ve.delay!==be||ve.enabled!==_.value;x.value={batchSize:g.value,initial:k.value,delay:be,enabled:_.value},(W||Ce||!_.value)&&qe(),(W||Ce)&&(M.value=Math.max(1,g.value||1));const pe=j.value;if(!C){y.value=0,H();return}if(!_.value){y.value=pe,H();return}W||Ce?y.value=Math.min(pe,k.value):y.value=Math.min(y.value,pe);const Ee=Math.max(1,k.value||g.value||C);y.value<pe?yt(Ee,{immediate:!f}):H()},{immediate:!0}),l.watch(()=>z.value,v=>{if(!v){for(const C of T.values())C.destroy();T.clear();for(const C of Object.keys(D))delete D[C];for(const[C,B]of b)B&&ge(C,!0);return}for(const[C,B]of b)xe(C,B)},{immediate:!1}),l.watch(()=>y.value,(v,C)=>{$.value&&(typeof C=="number"&&v<=C||v>0&&(P.value=v-1))}),l.watch([P,K,G,()=>c.value.length,$],()=>{Y()},{immediate:!0}),l.watch(()=>j.value,(v,C)=>{_.value&&(typeof C=="number"&&v<=C||v>y.value&&xt())}),l.onBeforeUnmount(()=>{qe();for(const v of T.values())v.destroy();T.clear()});const bt=l.defineAsyncComponent(()=>te(null,null,function*(){try{return(yield Promise.resolve().then(()=>Fp)).default}catch(v){return console.warn('[vue-markdown-render] Optional peer dependencies for CodeBlockNode are missing. Falling back to inline-code rendering (no Monaco). To enable full code block features, please install "stream-monaco".',v),on}})),Ge=l.computed(()=>n.renderCodeBlocksAsPre?on:bt),jt={text:Xe,paragraph:$n,heading:Or,code_block:bt,list:Tn,blockquote:Sn,table:Nn,definition_list:Mn,footnote:Bn,footnote_reference:at,admonition:Fn,hardbreak:tn,link:it,image:nn,thematic_break:In,math_inline:Vt,math_block:_h,strong:rt,emphasis:vt,strikethrough:ot,highlight:ft,insert:dt,subscript:ut,superscript:ct,emoji:et,checkbox:Dt,checkbox_input:Dt,inline_code:tt,reference:nt,html_block:e0};function _t(v){var B;if(!v)return Fi;const C=gt(n.customId)[String(v.type)];if(C)return C;if(v.type==="code_block"){if(String((B=v.language)!=null?B:"").trim().toLowerCase()==="mermaid")return gt(n.customId).mermaid||vn;const W=gt(n.customId).code_block;return W||Ge.value}return jt[String(v.type)]||Fi}function Ct(v){var C;return(v==null?void 0:v.type)==="code_block"&&String((C=v.language)!=null?C:"").trim().toLowerCase()==="mermaid"?{}:v.type==="code_block"?re({stream:n.codeBlockStream,darkTheme:n.codeBlockDarkTheme,lightTheme:n.codeBlockLightTheme,monacoOptions:n.codeBlockMonacoOptions,themes:n.themes,minWidth:n.codeBlockMinWidth,maxWidth:n.codeBlockMaxWidth},n.codeBlockProps||{}):{typewriter:n.typewriter}}function Qe(v){o("click",v)}function Nt(v){var B;(B=v.target)!=null&&B.closest("[data-node-index]")&&o("mouseover",v)}function Et(v){var B;(B=v.target)!=null&&B.closest("[data-node-index]")&&o("mouseout",v)}return(v,C)=>(l.openBlock(),l.createElementBlock("div",{ref_key:"containerRef",ref:r,class:"markdown-renderer",onClick:Qe,onMouseover:Nt,onMouseout:Et},[$.value?(l.openBlock(),l.createElementBlock("div",{key:0,class:"node-spacer",style:l.normalizeStyle({height:`${O.value}px`}),"aria-hidden":"true"},null,4)):l.createCommentVNode("",!0),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(le.value,B=>{var J;return l.openBlock(),l.createElementBlock("div",{key:B.index,ref_for:!0,ref:W=>xe(B.index,W),class:"node-slot","data-node-index":B.index,"data-node-type":B.node.type},[Be(B.index)?(l.openBlock(),l.createElementBlock("div",{key:0,ref_for:!0,ref:W=>Fe(B.index,W),class:"node-content"},[B.node.type!=="code_block"&&n.typewriter!==!1?(l.openBlock(),l.createBlock(l.Transition,{key:0,name:"typewriter",appear:""},{default:l.withCtx(()=>[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(_t(B.node)),l.mergeProps({node:B.node,loading:B.node.loading,"index-key":`${e.indexKey||"markdown-renderer"}-${B.index}`},{ref_for:!0},Ct(B.node),{"custom-id":n.customId,"is-dark":n.isDark,onCopy:C[0]||(C[0]=W=>o("copy",W)),onHandleArtifactClick:C[1]||(C[1]=W=>o("handleArtifactClick",W))}),null,16,["node","loading","index-key","custom-id","is-dark"]))]),_:2},1024)):(l.openBlock(),l.createBlock(l.resolveDynamicComponent(_t(B.node)),l.mergeProps({key:1,node:B.node,loading:B.node.loading,"index-key":`${e.indexKey||"markdown-renderer"}-${B.index}`},{ref_for:!0},Ct(B.node),{"custom-id":n.customId,"is-dark":n.isDark,onCopy:C[2]||(C[2]=W=>o("copy",W)),onHandleArtifactClick:C[3]||(C[3]=W=>o("handleArtifactClick",W))}),null,16,["node","loading","index-key","custom-id","is-dark"]))],512)):(l.openBlock(),l.createElementBlock("div",{key:1,class:"node-placeholder",style:l.normalizeStyle({height:`${(J=ee[B.index])!=null?J:ne.value}px`})},null,4))],8,n0)}),128)),$.value?(l.openBlock(),l.createElementBlock("div",{key:1,class:"node-spacer",style:l.normalizeStyle({height:`${F.value}px`}),"aria-hidden":"true"},null,4)):l.createCommentVNode("",!0)],544))}}),st=Me(r0,[["__scopeId","data-v-080bfb4c"]]);st.install=e=>{var n,o;const t=(o=(n=st.__name)!=null?n:st.name)!=null?o:"NodeRenderer";e.component(t,st)};const o0={key:0,class:"admonition-icon"},i0={class:"admonition-title"},l0=["aria-expanded","aria-controls","title"],s0={key:0},a0={key:1},c0=["id"],u0=l.defineComponent({__name:"AdmonitionNode",props:{node:{},indexKey:{},isDark:{type:Boolean},typewriter:{type:Boolean}},emits:["copy"],setup(e,{emit:t}){var c;const n=e,o=t,r={note:"ℹ️",info:"ℹ️",tip:"💡",warning:"⚠️",danger:"❗",error:"⛔",caution:"⚠️"},i=l.computed(()=>{if(n.node.title&&n.node.title.trim().length)return n.node.title;const f=n.node.kind||"note";return f.charAt(0).toUpperCase()+f.slice(1)}),s=l.ref(n.node.collapsible?!((c=n.node.open)==null||c):!1);function a(){n.node.collapsible&&(s.value=!s.value)}const u=`admonition-${Math.random().toString(36).slice(2,9)}`;return(f,d)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(["admonition",[`admonition-${n.node.kind}`,n.isDark?"is-dark":""]])},[l.createElementVNode("div",{id:u,class:"admonition-header"},[r[n.node.kind]?(l.openBlock(),l.createElementBlock("span",o0,l.toDisplayString(r[n.node.kind]),1)):l.createCommentVNode("",!0),l.createElementVNode("span",i0,l.toDisplayString(i.value),1),n.node.collapsible?(l.openBlock(),l.createElementBlock("button",{key:1,class:"admonition-toggle","aria-expanded":!s.value,"aria-controls":`${u}-content`,title:s.value?"Expand":"Collapse",onClick:a},[s.value?(l.openBlock(),l.createElementBlock("span",s0,"▶")):(l.openBlock(),l.createElementBlock("span",a0,"▼"))],8,l0)):l.createCommentVNode("",!0)]),l.withDirectives(l.createElementVNode("div",{id:`${u}-content`,class:"admonition-content","aria-labelledby":u},[l.withMemo([n.node.children],()=>l.createVNode(l.unref(st),{"index-key":`admonition-${e.indexKey}`,nodes:n.node.children,typewriter:n.typewriter,onCopy:d[0]||(d[0]=h=>o("copy",h))},null,8,["index-key","nodes","typewriter"]),d,1)],8,c0),[[l.vShow,!s.value]])],2))}}),Fn=Me(u0,[["__scopeId","data-v-578c25d2"]]);Fn.install=e=>{e.component(Fn.__name,Fn)};let Ri=!1;function d0(e){return te(this,null,function*(){if(!Ri)return Ri=!0,e.preloadMonacoWorkers()})}let qn=null,Li=!1;function as(){return te(this,null,function*(){if(qn)return qn;if(Li)return null;try{return qn=yield import("stream-monaco"),yield d0(qn),qn}catch(e){return Li=!0,null}})}const f0='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" width="16" height="16"><!-- Icon from VSCode Icons by Roberto Huertas - https://github.com/vscode-icons/vscode-icons/blob/master/LICENSE --><path fill="#0f23c3" d="M24.554 20.075c.209.27 1.356.961 1.37 1.246a7 7 0 0 0-1.4-.324a17 17 0 0 1-1.412-.48a9.2 9.2 0 0 1-2.375-1.3A3.15 3.15 0 0 1 19.3 16.75a1.72 1.72 0 0 1 1.767-1.822a3.6 3.6 0 0 1 1.593.321c.146.066 1.31.606 1.256.809a5.5 5.5 0 0 0-1.41-.112c-.649.244-.4.828-.168 1.311a8 8 0 0 0 1.078 1.554c.164.194.884 1.271 1.138 1.264"/><path fill="#1a1978" d="M24.141 16.276c.128-.59.819-1.384 1.344-.773a4.2 4.2 0 0 1 .578 1.918c.12.656.2 1.327.261 1.982c.038.379.34 1.794.123 2.075a23 23 0 0 1-2.922-2.838a3.76 3.76 0 0 1-.925-1.7c-.1-1.073.879-.73 1.541-.664"/><path fill="#0f23c3" d="M26.3 17.781c.141-.732-.406-2.592-1.067-2.949a.06.06 0 0 0 .044-.007c-.156-.444-1.359 1.116-1.228 1.174c-.316-.138.774-1.984.988-2.16c.7-.578 1.372-.086 1.845.543a6.04 6.04 0 0 1 .733 4.434a4.5 4.5 0 0 1-.421 1.312c-.1.22-.45 1.1-.682 1.174a14.8 14.8 0 0 0-.212-3.521"/><path fill="#d2d2d2" d="M3.687 8.4c.179-.188-.041-1.527.324-1.548c.262-.015.553 1.741.627 1.968a9.2 9.2 0 0 0 1.127 2.329a7.53 7.53 0 0 0 4.016 2.978a4.55 4.55 0 0 0 2.366.2c.931-.208 1.82-.577 2.757-.765c1.35-.27 3.342-.352 4.438.647c.7.641.376.76.043 1.421a2.44 2.44 0 0 0 .178 2.562c.235.342 1.033.827.675 1.094c-.567.424-1.277-.452-1.636-.776c-1.4-1.264-2.711-1.313-4.492-1.074a9 9 0 0 1-4.883-.708A9.47 9.47 0 0 1 3.687 8.4M19.941 30a3.6 3.6 0 0 1-2.325-.817c.469-.092 1.021.025 1.508-.044a9.7 9.7 0 0 0 1.754-.43a10.5 10.5 0 0 0 3.022-1.554a6.55 6.55 0 0 0 2.757-5.214c.149-.088.316 1.034.319 1.091a5.8 5.8 0 0 1-.19 1.727a6.9 6.9 0 0 1-1.423 2.774A7.3 7.3 0 0 1 19.941 30"/><path fill="#d2d2d2" d="M18.962 19.109a5.8 5.8 0 0 1-2.05.859a13.4 13.4 0 0 1-2.224.549a8.86 8.86 0 0 1-4.435-.51a9.94 9.94 0 0 1-3.849-2.4c-.352-.367-2.104-2.417-1.548-3.05c.248-.282.875.846 1 .992a5 5 0 0 0 1.357 1.11a10.9 10.9 0 0 0 4.035 1.456a6.7 6.7 0 0 0 2.34-.094a13 13 0 0 1 1.694-.485a4 4 0 0 1 2.113.457c.344.17 1.523.743 1.567 1.116m9.351-4.031a19.3 19.3 0 0 1-.453 3.774c-.176-.242.016-1.47 0-1.792a6 6 0 0 0-.384-2.087a4.9 4.9 0 0 0-1.376-1.661a15 15 0 0 1-1.27-1.536c-1.837-2.382-3.245-5.211-2.9-8.3c.034-.308.069-1.448.411-1.445c.152 0 .266 1.561.29 1.718a12.5 12.5 0 0 0 1.224 4.116c.67 1.222 1.947 2.023 2.825 3.1a6.58 6.58 0 0 1 1.633 4.113M15.7 26.935a10.85 10.85 0 0 0 6.436-.687a6.94 6.94 0 0 0 4.278-4.418c.319.2-.048 1.529-.128 1.781a5.7 5.7 0 0 1-1.01 1.813a8.9 8.9 0 0 1-3.257 2.514c-1.703.772-5.662 1.652-6.319-1.003"/><path fill="#d2d2d2" d="M19.151 19.376c.367 2.107-2.957 3.124-4.478 3.213c-1.859.11-4.929-.292-6.06-2.031c-.673-1.035.781-.09 1.188.058a8.7 8.7 0 0 0 3.06.5a11.6 11.6 0 0 0 3.305-.5a14 14 0 0 0 1.533-.576c.301-.132 1.124-.691 1.452-.664m4.991 4.084c.4-.945-1.883-1.578-2.445-1.858a4.9 4.9 0 0 1-1.315-.867c-.181-.181-.872-.92-.807-1.219a5 5 0 0 1 1.087-.175a6 6 0 0 1 .855.588a10 10 0 0 0 .964.5a16 16 0 0 0 2.119.771c.308.09 1.549.208 1.727.428c-.04.296-1.97 2.021-2.185 1.832"/><path fill="#d2d2d2" d="M26.1 22.172c.265.43-1.08 1.831-1.363 2.105a9.3 9.3 0 0 1-2.566 1.728a7.8 7.8 0 0 1-2.56.753c-.679.058-1.966-.124-2.141-.979a7 7 0 0 1 1.177-.086c.462-.059.921-.149 1.376-.246a13 13 0 0 0 2.184-.645a11.5 11.5 0 0 0 2.084-1.11a11 11 0 0 0 1.078-.822c.105-.089.617-.702.731-.698m-7.342-10.207c-.1-1.308 2.612-1.3 3.271-1.092a5.98 5.98 0 0 1 2.982 2.475c-1.082.8-2.449.094-3.3-.654a4.3 4.3 0 0 0-1.481-1.029c-.809-.265-.818.094-1.472.3"/><path fill="#d2d2d2" d="M25.783 13.341c-.444-.029-.316.071-.647-.212c-.358-.307-.614-.795-.945-1.141c-.534-.558-1.242-.895-1.723-1.485a7.27 7.27 0 0 1-1.624-4.848c.018-1.489.407.187.551.675a12.3 12.3 0 0 0 1.126 2.708a46 46 0 0 0 3.4 4.321c-.039.002-.097-.021-.138-.018m-5.715 1.415c.033-.625-.911-.792-1.211-1.42c-.164-.343-.211-.569.029-.7c.082-.045.383.012.5-.02c.271-.076.335-.273.581-.4a1.193 1.193 0 0 1 1.633 1.021a1.82 1.82 0 0 1-1.532 1.519"/><path fill="#d2d2d2" d="M20.5 14.745a1.93 1.93 0 0 0 1.323-1.7c.524.139.928.658 1.521.771a2.6 2.6 0 0 0 1.029-.017c.207-.045.54-.274.721-.259c-.033.163-.464.546-.565.717a4.2 4.2 0 0 0-.388.9c-.229.741-.061.739-.709.311a4.3 4.3 0 0 0-1.957-.72c-.266-.026-.881.019-.975-.003m-.595 5.989a2.01 2.01 0 0 1-1.4 1.712c-.205.091-2.018.733-2.032.348c-.007-.2 1.624-.954 1.809-1.11a3.4 3.4 0 0 0 .867-1.071c.055-.112.232-.925.271-.943c.224-.106.488.93.485 1.064m-8.532-8.202a10.6 10.6 0 0 1 3.71-.914a10.3 10.3 0 0 1 1.865.024c.366.039 1.469.054 1.74.343a.255.255 0 0 1-.273.173c-.037.077.251.371.3.425c-.034.034-1.445-.4-1.572-.424a10.6 10.6 0 0 0-2.282-.134a16 16 0 0 0-1.841.194a6.2 6.2 0 0 1-1.647.313m11.139-1.801a1.89 1.89 0 0 1-1.517-.6c-.247-.349-.737-1.692-.385-2.021c.209-.2.384.662.484.846a11 11 0 0 0 1.418 1.775m5.276 8.469a19 19 0 0 1-.749 3.313c-.173-.077-.275-.778-.562-.95a4.1 4.1 0 0 0 .76-1.154c.152-.302.303-1.046.551-1.209m-7.807-7.357c-.132.268-.932 1.1-1.118.481c-.107-.356.876-.841 1.118-.481m-.747.45c.228.006.012-.248.012-.266c-.001-.043-.368.266-.012.266"/></svg>',h0=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
|
|
78
|
+
<path fill="none" stroke="#c6d0f5" stroke-linecap="round" stroke-linejoin="round" d="M14.4561802 11.3673353C13.0276218 14.1261537 11.8858593 15.5 10.8437759 15.5 10.3588459 15.5 9.88231005 15.3491298 9.41749082 15.0543006 8.74000639 14.6241577 7.8668418 14.6059458 7.17068967 15.0074382 6.60881451 15.3319356 6.07177167 15.5 5.56305868 15.5 4.02887542 15.5 1.5 10.9491129 1.5 8.45090396 1.5 5.78581061 2.95006811 3.551507 5.15647301 3.551507 6.19383481 3.551507 7.09007204 4.20001691 7.84308619 4.497206 8.16210316 4.62512517 8.52255587 4.61592787 8.83410596 4.47192 9.44477141 4.18872223 10.2497236 3.551507 11.2503615 3.551507 12.4715175 3.551507 13.5338865 4.33779342 14.4184071 5.47479877 14.5532906 5.64778615 14.5172013 5.89341518 14.3377895 6.02349446 13.3500923 6.736546 12.8746057 7.53893969 12.8746057 8.45090396 12.8746057 9.36404821 13.3502672 10.1652619 14.3377895 10.8793249 14.4946576 10.992887 14.5445377 11.1984946 14.4561802 11.3673353ZM8.5 3C8.5 3 8.3468635 1.3936039 10 1" />
|
|
79
|
+
</svg>
|
|
80
|
+
`,p0=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
|
|
81
|
+
<rect width="8" height="13.001" x="4" y="1.499" fill="none" stroke="#c6d0f5" stroke-linecap="round" stroke-linejoin="round" rx="2.286" ry="2.286" />
|
|
82
|
+
<path fill="none" stroke="#c6d0f5" stroke-linecap="round" stroke-linejoin="round" d="M 4,4.500025 H 1.5 M 4,7.9999993 H 1.5 M 4,11.499973 H 1.5 m 13,-6.999948 H 12 m 2.5,3.4999743 H 12 m 2.5,3.4999737 H 12" />
|
|
83
|
+
</svg>
|
|
84
|
+
`,m0=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
|
|
85
|
+
<path fill="none" stroke="#8caaee" stroke-linecap="round" stroke-linejoin="round" d="m 4.0559072,12.951629 c 2.7459832,2.734744 7.1981158,2.734744 9.9441188,0 l -1.789955,-1.782586 c -1.75742,1.750224 -4.6067879,1.750224 -6.3642294,0 -1.7574416,-1.7502236 -1.7574416,-4.587893 0,-6.338097 1.7574415,-1.750224 4.6068094,-1.750224 6.3642294,0 l 0.894977,-0.8912929 0.894978,-0.891293 c -2.746003,-2.73472867 -7.1981359,-2.73472867 -9.944119,0 -2.7459858,2.7347089 -2.7459858,7.1685599 2e-7,9.9032689 z" clip-rule="evenodd" />
|
|
86
|
+
</svg>
|
|
87
|
+
`,g0=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
|
|
88
|
+
<g fill="none" stroke-linecap="round" stroke-linejoin="round">
|
|
89
|
+
<path stroke="#a6d189" d="M14.17 10.03A6.5 6.5 0 011.81 6.02" />
|
|
90
|
+
<path stroke="#8caaee" d="M1.87 5.85A6.5 6.5 0 0114.22 9.9" />
|
|
91
|
+
<path stroke="#a6d189" d="M6.36 4.9a3.5 3.5 0 103.41 6.12" />
|
|
92
|
+
<path stroke="#8caaee" d="M9.77 11.02a3.5 3.5 0 00-3.03-6.29" />
|
|
93
|
+
<path stroke="#c6d0f5" d="M8 7.5s-1.66 2.48-1.5 3.65" />
|
|
94
|
+
<path stroke="#c6d0f5" d="M1.81 6.02C2.47 5 3.83 4.49 5 4.46c4.06 0 3 5.56 5.03 6.86 1.21.52 3.5-.21 4.15-1.32" />
|
|
95
|
+
</g>
|
|
96
|
+
</svg>
|
|
97
|
+
`,k0=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
|
|
98
|
+
<path fill="none" stroke="#8caaee" stroke-linecap="round" stroke-linejoin="round" d="M6.74 2.24c.32-1.32 2.2-1.32 2.52 0a1.3 1.3 0 001.93.8c1.15-.7 2.48.62 1.77 1.77a1.3 1.3 0 00.8 1.93c1.32.32 1.32 2.2 0 2.52a1.3 1.3 0 00-.8 1.93c.7 1.15-.62 2.48-1.77 1.77a1.3 1.3 0 00-1.93.8c-.32 1.32-2.2 1.32-2.52 0a1.3 1.3 0 00-1.93-.8c-1.15.7-2.48-.62-1.77-1.77a1.3 1.3 0 00-.8-1.93c-1.32-.32-1.32-2.2 0-2.52a1.3 1.3 0 00.8-1.93c-.7-1.15.62-2.48 1.77-1.77a1.3 1.3 0 001.93-.8M10 6.5a2.5 2.5 0 100 3" />
|
|
99
|
+
</svg>
|
|
100
|
+
`,v0=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
|
|
101
|
+
<path fill="none" stroke="#8caaee" stroke-linecap="round" stroke-linejoin="round" d="m 2.5559121,12.951629 c 2.7459832,2.734744 7.1981158,2.734744 9.9441189,0 l -1.789955,-1.782586 c -1.7574201,1.750224 -4.606788,1.750224 -6.3642295,0 -1.7574416,-1.7502236 -1.7574416,-4.587893 0,-6.338097 1.7574415,-1.750224 4.6068094,-1.750224 6.3642295,0 l 0.894977,-0.8912929 0.894978,-0.891293 c -2.7460031,-2.73472867 -7.198136,-2.73472867 -9.9441191,0 -2.74598585,2.7347089 -2.74598585,7.1685599 2e-7,9.9032689 z" clip-rule="evenodd" />
|
|
102
|
+
<path fill="none" stroke="#8caaee" stroke-linecap="round" stroke-linejoin="round" d="M7.5 6v4M5.513524 7.9999996H9.51304M13.486476 5.9999996v4M11.5 7.9999992h3.999516" />
|
|
103
|
+
</svg>
|
|
104
|
+
`,w0=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
|
|
105
|
+
<path fill="none" stroke="#c6d0f5" stroke-linecap="round" stroke-linejoin="round" d="m 15.4712,10.050637 -5.433601,5.433968 c -0.015,0.01505 -0.04554,0.01505 -0.09055,0.01505 L 2.536327,13.517264 c -0.015,0 -0.04501,-0.01505 -0.06055,-0.06072 L 0.50026325,6.0396501 a 0.21432208,0.21495127 0 0 1 0.015,-0.090817 L 5.9483283,0.5154023 c 0.015,-0.0150465 0.04501,-0.0150465 0.09055,-0.0150465 l 7.4101857,1.997972 c 0.015,0 0.04501,0.015046 0.06055,0.060724 l 1.977121,7.4158186 c 0.03001,0.03063 0.01608,0.060724 -0.01554,0.07577 M 8.2121063,4.1480782 0.93801425,6.1154197 q -0.0225,0 0,0.04514 L 6.2655263,11.50371 c 0.015,0.01505 0.015,0 0.04501,0 l 1.962119,-7.2803988 c -0.03054,-0.075233 -0.06055,-0.075233 -0.06055,-0.075233" />
|
|
106
|
+
</svg>
|
|
107
|
+
`,y0=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
|
|
108
|
+
<path fill="none" stroke="#8caaee" d="m 6.665625,1.0107144 c 0.54375,0.090628 0.9125,0.6062693 0.821875,1.1500367 L 7.18125,3.9983098 h 2.971875 L 10.5125,1.8326156 c 0.09063,-0.5437673 0.60625,-0.9125291 1.15,-0.8219012 0.54375,0.090628 0.9125,0.6062693 0.821875,1.1500367 L 12.18125,3.9983098 H 14 c 0.553125,0 1,0.4468892 1,1.0000319 0,0.5531426 -0.446875,1.0000319 -1,1.0000319 H 11.846875 L 11.18125,9.9985013 H 13 c 0.553125,0 1,0.4468897 1,1.0000317 0,0.553143 -0.446875,1.000032 -1,1.000032 H 10.846875 L 10.4875,14.164259 c -0.09063,0.543768 -0.60625,0.912529 -1.15,0.821902 -0.54375,-0.09063 -0.9125,-0.60627 -0.821875,-1.150037 l 0.30625,-1.834434 h -2.975 L 5.4875,14.167384 c -0.090625,0.543768 -0.60625,0.91253 -1.15,0.821902 C 3.79375,14.898658 3.425,14.383016 3.515625,13.839249 L 3.81875,11.998565 H 2 c -0.553125,0 -1,-0.446889 -1,-1.000032 C 1,10.445391 1.446875,9.9985013 2,9.9985013 H 4.153125 L 4.81875,5.9983736 H 3 c -0.553125,0 -1,-0.4468893 -1,-1.0000319 C 2,4.445199 2.446875,3.9983098 3,3.9983098 H 5.153125 L 5.5125,1.8326156 C 5.603125,1.2888483 6.11875,0.9200865 6.6625,1.0107144 Z M 6.846875,5.9983736 6.18125,9.9985013 H 9.153125 L 9.81875,5.9983736 Z" />
|
|
109
|
+
</svg>
|
|
110
|
+
`,x0=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
|
|
111
|
+
<g fill="none" stroke="#ca9ee6" stroke-linecap="round" stroke-linejoin="round">
|
|
112
|
+
<path d="m4 1.5h8c1.38 0 2.5 1.12 2.5 2.5v8c0 1.38-1.12 2.5-2.5 2.5h-8c-1.38 0-2.5-1.12-2.5-2.5v-8c0-1.38 1.12-2.5 2.5-2.5z" />
|
|
113
|
+
<path stroke-width=".814" d="m 10.240861,11.529149 c 0,0.58011 0.437448,1.039154 0.96002,1.035371 l 0.451635,-0.0032 c 0.522572,-0.0036 0.949379,-0.451477 0.949379,-1.032848 0,-0.581372 -0.426807,-1.065638 -0.949379,-1.065638 l -0.451635,3.4e-5 c -0.522572,3.9e-5 -0.949379,-0.4855273 -0.949379,-1.0656374 0,-0.5801104 0.426807,-1.0378931 0.949379,-1.0378931 l 0.451635,2.825e-4 c 0.522572,3.267e-4 0.951743,0.4577827 0.951743,1.0378931 M 6.8003972,11.529149 c 0,0.58011 0.4374474,1.039154 0.9600196,1.035371 l 0.46464,-0.0032 c 0.5225722,-0.0035 0.9363738,-0.451477 0.9363738,-1.031587 0,-0.580111 -0.4090724,-1.065638 -0.9316446,-1.065638 l -0.4693692,3.4e-5 c -0.5225722,3.8e-5 -0.949379,-0.4855272 -0.949379,-1.0656373 0,-0.5801104 0.4268068,-1.0378931 0.949379,-1.0378931 h 0.4516348 c 0.5225722,0 0.9635665,0.4577827 0.9635665,1.0378931 M 3.4072246,11.529149 c 0,0.58011 0.4374474,1.051765 0.9600196,1.051765 H 4.818879 c 0.5225722,0 0.949379,-0.456521 0.949379,-1.037893 m 0.01129,-2.1312747 c 0,-0.5801103 -0.4374474,-1.037893 -0.9600196,-1.037893 L 4.3678939,8.3741358 C 3.8453217,8.3744624 3.4078743,8.8420074 3.4078743,9.4233788 v 2.1186642" />
|
|
114
|
+
</g>
|
|
115
|
+
</svg>
|
|
116
|
+
`,b0=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
|
|
117
|
+
<g fill="none" stroke="#85c1dc" stroke-linecap="round" stroke-linejoin="round">
|
|
118
|
+
<path d="M7 14.5h4.5v-3h3V7L9.17 1.64c-.28-.29-.8-.47-1.17-.29L3.5 3.5 1.35 8c-.18.37 0 .88.3 1.17z" />
|
|
119
|
+
<path d="M3.5 11V3.5H11m-7.5 0 8 8" />
|
|
120
|
+
</g>
|
|
121
|
+
</svg>
|
|
122
|
+
`,_0='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" width="16" height="16"><!-- Icon from VSCode Icons by Roberto Huertas - https://github.com/vscode-icons/vscode-icons/blob/master/LICENSE --><defs><linearGradient id="SVGMV3iTbAN" x1="185.455" x2="181.955" y1="1601.641" y2="1630.224" gradientTransform="translate(-62.523 -666.646)scale(.427)" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#fff"/><stop offset="1" stop-color="#fff" stop-opacity="0"/></linearGradient><linearGradient id="SVGniw2Mvsa" x1="176.136" x2="172.636" y1="1600.5" y2="1629.083" href="#SVGMV3iTbAN"/></defs><path fill="#b03931" d="m3.978 15.462l-.009-6.953a.59.59 0 0 1 .531-.562h.076l6.074-.009a15.7 15.7 0 0 1 6.067.95a8.9 8.9 0 0 1 2.244 1.359a4.47 4.47 0 0 1 2.946-1.083a4.11 4.11 0 0 1 4.276 3.92A4.11 4.11 0 0 1 21.907 17c-.089 0-.177-.008-.265-.012a7 7 0 0 1-.232.953a85 85 0 0 1 8.59 2.6V2H2v13.4q.992.02 1.978.062m22.8-7.944a1.32 1.32 0 0 1 1.374 1.259a1.379 1.379 0 0 1-2.747 0a1.32 1.32 0 0 1 1.375-1.26Z"/><path fill="#b03931" d="M17.861 15.787a4.11 4.11 0 0 0-1.748-3.458a5.8 5.8 0 0 0-1.508-.822a7.4 7.4 0 0 0-1.629-.438a22 22 0 0 0-2.588-.1H7.769l.006 4.737a89 89 0 0 1 9.91 1.408a5 5 0 0 0 .176-1.327m3.132 3.192a7.9 7.9 0 0 1-2.128 2.582a9.7 9.7 0 0 1-3.256 1.71a11.6 11.6 0 0 1-1.971.472h-.015a32 32 0 0 1-3.326.111l-5.625.022a.616.616 0 0 1-.686-.681l-.01-7.734Q2.992 15.42 2 15.4V30h28v-9.456a85 85 0 0 0-8.59-2.6a7 7 0 0 1-.417 1.035"/><path fill="url(#SVGMV3iTbAN)" d="M20.993 18.979a7.9 7.9 0 0 1-2.128 2.582a9.7 9.7 0 0 1-3.256 1.71a11.6 11.6 0 0 1-1.971.472h-.015a32 32 0 0 1-3.326.111l-5.625.022a.616.616 0 0 1-.686-.681l-.01-7.734Q2.992 15.42 2 15.4V30h28v-9.456a85 85 0 0 0-8.59-2.6a7 7 0 0 1-.417 1.035" opacity=".3"/><path fill="#b03931" d="M10.477 20.835a16 16 0 0 0 2.877-.2a7.6 7.6 0 0 0 1.628-.5a5.6 5.6 0 0 0 1.187-.748a4.46 4.46 0 0 0 1.518-2.271a89 89 0 0 0-9.91-1.408l.006 5.133Z"/><path fill="url(#SVGniw2Mvsa)" d="M10.477 20.835a16 16 0 0 0 2.877-.2a7.6 7.6 0 0 0 1.628-.5a5.6 5.6 0 0 0 1.187-.748a4.46 4.46 0 0 0 1.518-2.271a89 89 0 0 0-9.91-1.408l.006 5.133Z" opacity=".3"/><path fill="#fff" d="M20.383 11.746a7 7 0 0 1 1.36 4.148a6.6 6.6 0 0 1-.1 1.1c.088 0 .176.012.265.012a4.11 4.11 0 0 0 4.276-3.92a4.11 4.11 0 0 0-4.276-3.92a4.47 4.47 0 0 0-2.946 1.083a8 8 0 0 1 1.421 1.497"/><ellipse cx="26.78" cy="8.777" fill="#fff" rx="1.374" ry="1.259"/><path fill="#fff" d="m4.673 23.877l5.625-.022a32 32 0 0 0 3.326-.111h.015a11.5 11.5 0 0 0 1.971-.472a9.7 9.7 0 0 0 3.256-1.71a7.9 7.9 0 0 0 2.128-2.582a7 7 0 0 0 .417-1.034a7 7 0 0 0 .332-2.051a7 7 0 0 0-1.36-4.148a8 8 0 0 0-1.421-1.5a8.9 8.9 0 0 0-2.244-1.359a15.7 15.7 0 0 0-6.067-.95l-6.074.009h-.076a.59.59 0 0 0-.532.562l.009 6.952l.01 7.734a.616.616 0 0 0 .685.682m3.1-12.908h2.619a22 22 0 0 1 2.588.1a7.4 7.4 0 0 1 1.629.438a5.8 5.8 0 0 1 1.508.822a4.12 4.12 0 0 1 1.748 3.458a5 5 0 0 1-.175 1.327a4.46 4.46 0 0 1-1.518 2.271a5.6 5.6 0 0 1-1.187.748a7.7 7.7 0 0 1-1.628.5a16 16 0 0 1-2.877.2H7.786L7.78 15.7Z"/></svg>',C0=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
|
|
123
|
+
<path fill="none" stroke="#8caaee" stroke-linecap="round" stroke-linejoin="round" d="M.5 8.5H11l.75-.5a5.35 5.35 0 010-3.5c1 .6 1 1.88 1.74 2 .77-.09 1.23.01 2 .52 0 0-.97 1.77-2.5 1.98-1.93 3.65-4.5 5.5-6.98 5.5C0 14.5.5 8.5.5 8.5m1 0v-2m0 0h8m-6 2v-4m0 0h4m-2-2h2m-2 6v-6m2 6v-6m2 6v-2" />
|
|
124
|
+
</svg>
|
|
125
|
+
`,E0=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
|
|
126
|
+
<path fill="none" stroke="#ca9ee6" stroke-linecap="round" stroke-linejoin="round" d="M8.03 14.5C5 14.5 3.5 12.49 3.5 10.01c0-2.82 2.25-7.02 4.62-8.48a.24.24 0 01.24 0c.08.04.12.12.11.2-.13 1.25.22 2.5.98 3.54.3.43.63.8 1.02 1.27.54.66.94 1.03 1.52 2.08l.01.02c.33.56.5 1.2.5 1.84 0 2.03-1.69 4.02-4.47 4.02" />
|
|
127
|
+
</svg>
|
|
128
|
+
`,S0=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
|
|
129
|
+
<g fill="none" stroke="#e78284" stroke-linecap="round" stroke-linejoin="round">
|
|
130
|
+
<path d="M6.5 5.5c0-1.25 1-2 2-2s2 .75 2 2z" />
|
|
131
|
+
<path d="M13.5 13c.47-.57 1.12-1.24 1.5-2l-2.25-1.25c-.74 1.36-1.76 2.75-3.25 2.75-2.1 0-3-2.3-3-5h8c.05-1.61-.31-3.45-1-4.5M3 13c-1.08-1.3-1.5-3-1.5-5S2.1 4.24 3 3" />
|
|
132
|
+
</g>
|
|
133
|
+
</svg>
|
|
134
|
+
`,M0=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
|
|
135
|
+
<path fill="none" stroke="#ca9ee6" stroke-linecap="round" stroke-linejoin="round" d="M7.5 14.5v-1l-1-1v-3h2l1 2h1v-6h-1l-1 2h-2v-4h5l1 3h1v-5h-11v1l1 1v9l-1 1.25v.75z" />
|
|
136
|
+
</svg>
|
|
137
|
+
`,A0=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
|
|
138
|
+
<path fill="none" stroke="#85c1dc" stroke-linecap="round" stroke-linejoin="round" d="m15.48 8.06-4.85.48m4.85-.48a4.98 4.98 0 01-4.54 5.42 5 5 0 112.95-8.66l-1.7 1.84a2.5 2.5 0 00-4.18 2.06c.05.57.3 1.1.69 1.51.25.27 1 .83 1.78.82.8-.02 1.58-.25 2.07-.81 0 0 .8-.96.68-1.88M2.5 8.5l-2 .01m1.5 2h1.5m-2-3.99 2-.02" />
|
|
139
|
+
</svg>
|
|
140
|
+
`,B0=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
|
|
141
|
+
<g fill="none" stroke="#85c1dc" stroke-linecap="round" stroke-linejoin="round">
|
|
142
|
+
<path d="M11.68 5.38c.4.19.54.68 1.53 3.25 1 2.57-.92 4.07-.92 4.07s-6.73 2.47-6.73 1.63c-.18-.92-1.92-2.08-1.92-2.08s-.52-.63.06-.75c5.89-1.27 6.96-.61 7.3-2" />
|
|
143
|
+
<path d="M7.38 10.63C2.62 10.88 2.48 8.08 2.5 8 3.6 4.6 9.24.91 10.8 1.58 14.07 3.04 9.2 8.96 7 8.5c-4.02-.83 1.5-4 1.5-4" />
|
|
144
|
+
</g>
|
|
145
|
+
</svg>
|
|
146
|
+
`,D0=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
|
|
147
|
+
<path fill="none" stroke="#ca9ee6" stroke-linecap="round" stroke-linejoin="round" d="M12.5 4.5h3m-1.5 3h1.5m-10 6 2.5-5-2.5-5H8l5.6 10h-2.53l-1.52-2.92L8 13.5zm-5 0 2.5-5-2.5-5H3l2.5 5-2.5 5z" />
|
|
148
|
+
</svg>
|
|
149
|
+
`,T0=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
|
|
150
|
+
<g fill="none" stroke-linecap="round" stroke-linejoin="round">
|
|
151
|
+
<path stroke="#ef9f76" d="M1.5 1.5h13L13 13l-5 2-5-2z" />
|
|
152
|
+
<path stroke="#c6d0f5" d="M11 4.5H5l.25 3h5.5l-.25 3-2.5 1-2.5-1-.08-1" />
|
|
153
|
+
</g>
|
|
154
|
+
</svg>
|
|
155
|
+
`,$0=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
|
|
156
|
+
<g fill="none" stroke-linecap="round" stroke-linejoin="round">
|
|
157
|
+
<path stroke="#c6d0f5" d="M10.73 8.41c.57 3 1.59 5.83 2.77 7.09-6.63-3.45-9.76-1.75-10.5 0-.66-3.4-.54-5.74.09-7.78" />
|
|
158
|
+
<path stroke="#e78284" d="M8.5 7c.63.34 1.82 1.07 2.24 1.41-.54-2.9-.64-5.96-.74-7.91-2.13.58-5.73 1.98-6.9 7.22.52-.69 1.72-1.05 2.4-1.22" />
|
|
159
|
+
<path stroke="#e78284" d="M5.5 7A1.5 1.5 0 007 8.5 1.5 1.5 0 008.5 7 1.5 1.5 0 007 5.5 1.5 1.5 0 005.5 7" />
|
|
160
|
+
</g>
|
|
161
|
+
</svg>
|
|
162
|
+
`,N0=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
|
|
163
|
+
<g fill="none" stroke="#99d1db" stroke-linecap="round" stroke-linejoin="round">
|
|
164
|
+
<path d="M8 10.8c4.14 0 7.5-1.25 7.5-2.8S12.14 5.2 8 5.2.5 6.45.5 8s3.36 2.8 7.5 2.8" />
|
|
165
|
+
<path d="M5.52 9.4c2.07 3.5 4.86 5.72 6.23 4.95 1.37-.78.8-4.24-1.27-7.75C8.41 3.1 5.62.88 4.25 1.65c-1.37.78-.8 4.24 1.27 7.75" />
|
|
166
|
+
<path d="M5.52 6.6c-2.07 3.5-2.64 6.97-1.27 7.75 1.37.77 4.16-1.45 6.23-4.95s2.64-6.97 1.27-7.75C10.38.88 7.59 3.1 5.52 6.6" />
|
|
167
|
+
<path d="M8.5 8a.5.5 0 01-.5.5.5.5 0 01-.5-.5.5.5 0 01.5-.5.5.5 0 01.5.5" />
|
|
168
|
+
</g>
|
|
169
|
+
</svg>
|
|
170
|
+
`,I0=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
|
|
171
|
+
<g fill="none" stroke="#e5c890" stroke-linecap="round" stroke-linejoin="round">
|
|
172
|
+
<path d="M4.5 11c0 .828427.6715729 1.5 1.5 1.5.8284271 0 1.5-.671573 1.5-1.5V7.5M12.5 8.75C12.5 8.05964406 11.9627417 7.5 11.3 7.5L10.7 7.5C10.0372583 7.5 9.5 8.05964406 9.5 8.75 9.5 9.44035594 10.0372583 10 10.7 10L11.3 10C11.9627417 10 12.5 10.5596441 12.5 11.25 12.5 11.9403559 11.9627417 12.5 11.3 12.5L10.7 12.5C10.0372583 12.5 9.5 11.9403559 9.5 11.25" />
|
|
173
|
+
<path d="m 4,1.5 h 8 c 1.385,0 2.5,1.115 2.5,2.5 v 8 c 0,1.385 -1.115,2.5 -2.5,2.5 H 4 C 2.615,14.5 1.5,13.385 1.5,12 V 4 C 1.5,2.615 2.615,1.5 4,1.5 Z" />
|
|
174
|
+
</g>
|
|
175
|
+
</svg>
|
|
176
|
+
`,F0=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
|
|
177
|
+
<path fill="none" stroke="#e5c890" stroke-linecap="round" stroke-linejoin="round" d="M4.5 2.5H4c-.75 0-1.5.75-1.5 1.5v2c0 1.1-1 2-1.83 2 .83 0 1.83.9 1.83 2v2c0 .75.75 1.5 1.5 1.5h.5m7-11h.5c.75 0 1.5.75 1.5 1.5v2c0 1.1 1 2 1.83 2-.83 0-1.83.9-1.83 2v2c0 .74-.75 1.5-1.5 1.5h-.5m-6.5-3a.5.5 0 100-1 .5.5 0 000 1m3 0a.5.5 0 100-1 .5.5 0 000 1m3 0a.5.5 0 100-1 .5.5 0 000 1" />
|
|
178
|
+
</svg>
|
|
179
|
+
`,R0=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
|
|
180
|
+
<g fill="none" stroke-linecap="round" stroke-linejoin="round">
|
|
181
|
+
<path stroke="#a6d189" d="M10.5 5a2.5 2.5 0 11-5 0 2.5 2.5 0 015 0" />
|
|
182
|
+
<path stroke="#e78284" d="M6.5 11a2.5 2.5 0 11-5 0 2.5 2.5 0 015 0" />
|
|
183
|
+
<path stroke="#ca9ee6" d="M14.5 11a2.5 2.5 0 11-5 0 2.5 2.5 0 015 0" />
|
|
184
|
+
</g>
|
|
185
|
+
</svg>
|
|
186
|
+
`,L0=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
|
|
187
|
+
<g fill="none" stroke-linecap="round" stroke-linejoin="round">
|
|
188
|
+
<path stroke="#ca9ee6" d="M2.5 13.5h11L8 8" />
|
|
189
|
+
<path stroke="#ef9f76" d="M8.03 2.5h5.47l-8 8" />
|
|
190
|
+
<path stroke="#e78284" d="M2.5 13.5V8" />
|
|
191
|
+
<path stroke="#85c1dc" d="M8 2.5H2.5V8l3-2.5" />
|
|
192
|
+
</g>
|
|
193
|
+
</svg>
|
|
194
|
+
`,O0=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
|
|
195
|
+
<g fill="none" stroke="#e78284" stroke-linecap="round" stroke-linejoin="round">
|
|
196
|
+
<path d="M.5 5.06v6.07C.5 12.41.82 13 2.27 13h5.6c1.04 0 1.63-.51 1.63-1.62 0-.85-.2-1.88-1.5-1.88h-.36C6.4 9.5 6 8.77 6 7.75 6 6.81 6.8 6 7.49 6h2.68" />
|
|
197
|
+
<path d="M3.5 10.5V4.99C3.5 3.89 3.62 3 5 3h9c.97 0 1.5.99 1.5 1.63.12 1.55-.98 1.62-2.1 2.16-.58.26-1.4.52-1.4.98V11" />
|
|
198
|
+
</g>
|
|
199
|
+
</svg>
|
|
200
|
+
`,P0=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
|
|
201
|
+
<g fill="none" stroke-linecap="round" stroke-linejoin="round">
|
|
202
|
+
<path stroke="#c6d0f5" d="M10.5 7A1.5 1.5 0 019 8.5 1.5 1.5 0 017.5 7 1.5 1.5 0 019 5.5 1.5 1.5 0 0110.5 7" />
|
|
203
|
+
<path stroke="#8caaee" d="M7 2.5a6.5 6.5 0 100 13 6.5 6.5 0 000-13m7-2a1.5 1.5 0 100 3 1.5 1.5 0 000-3" />
|
|
204
|
+
</g>
|
|
205
|
+
</svg>
|
|
206
|
+
`,z0=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
|
|
207
|
+
<path fill="none" stroke="#85c1dc" stroke-linecap="round" stroke-linejoin="round" d="m9.25 8.25 2.25 2.25 2.25-2.25M3.5 11V5.5l2.04 3 1.96-3V11m4-.5V5M1.65 2.5h12.7c.59 0 1.15.49 1.15 1v9c0 .51-.56 1-1.15 1H1.65c-.59 0-1.15-.49-1.15-1V3.58c0-.5.56-1.08 1.15-1.08" />
|
|
208
|
+
</svg>
|
|
209
|
+
`,V0=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
|
|
210
|
+
<g fill="none" stroke-linecap="round" stroke-linejoin="round">
|
|
211
|
+
<path stroke="#85c1dc" d="M4 11 .5 8.5 5 7q.78-1.77 1.89-1.89c.74-.07 1.94-1.28 3.61-3.61M5 7l1.5 1.5" />
|
|
212
|
+
<path stroke="#ef9f76" d="m15.5 12.5-5-11C8.5 6.83 6.33 10 4 11c1.67-.33 2.67.83 3 3.5 3.5-1.5 3.5-3.5 5-4s1.5 1.5 3.5 2" />
|
|
213
|
+
</g>
|
|
214
|
+
</svg>
|
|
215
|
+
`,j0=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
|
|
216
|
+
<path fill="none" stroke="#ca9ee6" stroke-linecap="round" stroke-linejoin="round" d="M1.5 2.5c0 6 2.25 5.75 4 7 .83.67 1.17 2 1 4h3c-.17-2 .17-3.33 1-4 1.75-1.25 4-1 4-7C12 2.5 10 3 8 7 6 3 4 2.5 1.5 2.5" />
|
|
217
|
+
</svg>
|
|
218
|
+
`,H0=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
|
|
219
|
+
<path fill="none" stroke="#e5c890" stroke-linecap="round" stroke-linejoin="round" d="M1 7 .5 4.5l1.01.67c.28-.27.47-.48 1.18-.85l.56-1.82L4.5 3.84c.77-.18 1.53-.36 2.4-.33L8 1.5l1.1 2.01c.87-.03 1.63.15 2.4.33l1.25-1.34.56 1.82c.7.37.9.58 1.18.85l1.01-.67L15 7m-1.5 1C13 6.5 11 5.5 8 5.5S3 6.5 2.5 8m11.5.75L13.5 8l-1 1.5-1.5.5-3-1.5L5 10l-1.5-.5-1-1.5-.5.75L1 7l1.25 3.75C3 12.75 6 13.5 8 13.5s5-.75 5.75-2.75L15 7z" />
|
|
220
|
+
</svg>
|
|
221
|
+
`,q0='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" width="16" height="16"><!-- Icon from VSCode Icons by Roberto Huertas - https://github.com/vscode-icons/vscode-icons/blob/master/LICENSE --><path fill="#c2c2c2" d="M11.29 15.976a8.9 8.9 0 0 0 1.039 4.557a4.82 4.82 0 0 0 5.579 2.13a3.79 3.79 0 0 0 2.734-3.181c.095-.535.1-.54.1-.54c1.537.222 4.014.582 5.55.8l-.1.389A9.96 9.96 0 0 1 23.8 24.9a8.35 8.35 0 0 1-4.747 2.378a12.93 12.93 0 0 1-7.322-.725a8.98 8.98 0 0 1-5.106-5.524A14.35 14.35 0 0 1 6.642 10.9a9.32 9.32 0 0 1 7.929-6.24a11.8 11.8 0 0 1 5.9.491a8.47 8.47 0 0 1 5.456 6.1c.083.311.1.369.1.369c-1.709.311-3.821.705-5.518 1.075c-.323-1.695-1.122-3.029-2.831-3.445a4.656 4.656 0 0 0-5.853 3.158a9 9 0 0 0-.341 1.273a11 11 0 0 0-.194 2.295"/><path fill="#c2c2c2" d="M2.033 30V2h5.934v2.227H4.723v23.546h3.244V30zm27.934-.001h-5.934v-2.228h3.244V4.226h-3.244V1.999h5.934z"/></svg>',W0='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" width="16" height="16"><!-- Icon from VSCode Icons by Roberto Huertas - https://github.com/vscode-icons/vscode-icons/blob/master/LICENSE --><path fill="#c2c2c2" d="M19.5 24.833a11.24 11.24 0 0 1-5.13 1.009a8.37 8.37 0 0 1-6.492-2.576A9.75 9.75 0 0 1 5.512 16.4a10.4 10.4 0 0 1 2.659-7.406a9.02 9.02 0 0 1 6.9-2.841a12.2 12.2 0 0 1 4.43.7v4.129a7.5 7.5 0 0 0-4.108-1.142a5.28 5.28 0 0 0-4.075 1.685A6.48 6.48 0 0 0 9.766 16.1a6.37 6.37 0 0 0 1.464 4.4a5.02 5.02 0 0 0 3.941 1.639a8.03 8.03 0 0 0 4.329-1.223Z"/><path fill="#c2c2c2" d="M16.572 15.081V13.24h1.841v1.841h1.84v1.84h-1.84v1.841h-1.841v-1.841h-1.839V15.08zm6.44 0V13.24h1.841v1.841h1.84v1.84h-1.84v1.841h-1.841v-1.841h-1.839V15.08zM2.035 30V2.001h5.933v2.227H4.725v23.545h3.243V30z"/><path fill="#c2c2c2" d="M29.965 29.999h-5.933v-2.228h3.243V4.227h-3.243V2h5.933z"/></svg>',U0=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
|
|
222
|
+
<g fill="none" stroke="#ef9f76" stroke-linecap="round" stroke-linejoin="round">
|
|
223
|
+
<path d="M1.5 8V3c0-.83.67-1.5 1.5-1.5h10c.83 0 1.5.67 1.5 1.5v10c0 .83-.67 1.5-1.5 1.5H9" />
|
|
224
|
+
<path d="m1.5 8 1.14-2.3q.09-.21.36-.24a.8.8 0 01.44.13c.18.12.23.53.28.64.06.1.64 1.23.85 1.23.2 0 .71-1.47.71-1.47s.37-.49.72-.49.55.32.67.49c.12.16.24 1.76.46 2.01s1.32.87 1.67.73c.34-.13.53-.4.63-.73.1-.34-.14-.75 0-1a1.1 1.1 0 011.02-.55c.56.03 2.05.56 2.05 1.05q0 .75-1.5.75c-.48 1.33.28 2.22-3 2.25l1 4" />
|
|
225
|
+
<path d="m4.5 14.5 1.5-4 1 4zm-2 0 1.5-4-1.5-.5-1 1.54V14l1 .49Z" />
|
|
226
|
+
</g>
|
|
227
|
+
</svg>
|
|
228
|
+
`,K0=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
|
|
229
|
+
<path fill="none" stroke="#8caaee" stroke-linecap="round" stroke-linejoin="round" d="M12.5 14.5v-3.34c-1-.66-1-1.35-1-2.66m-3 1 .02 2.53.98 2.47m-4-5v5m9 0V9.23s.17-1.73-1-1.73c0-1.5-.5-6-2.5-6S8.75 4.25 8.75 4.25A3.67 3.67 0 006.5 7.12v-3.5c0-.63-.85-1.32-1.5-1.32-.92 0-1.33.59-1.5 1.2H2.25c-.42.11-.75.59-.75 1 0 .5.28 1 .75 1h1.22l.02 3c.01.75.51 1 1.51 1h4.5" />
|
|
230
|
+
</svg>
|
|
231
|
+
`,X0=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
|
|
232
|
+
<path fill="none" stroke="#8caaee" stroke-linecap="round" stroke-linejoin="round" d="M0.5,12.5 L0.5,13.24 C0.5,14 1.27360724,14.5 2,14.5 C2.9375516,14.5 3.5,14 3.5,13.2445661 L3.5,6.00089968 C3.5,4.28551107 4.99401107,2.52263547 7.14960413,2.5 C9.49387886,2.5 11,4.0579782 11,5.5 C11.1657296,8.48962302 9.57820404,9.63684469 7.49621582,10.5 L7.49621582,14.5 L15.4979764,14.5 L15.4979764,9 C15.5394484,8.36478228 14.9387379,7.15595371 14.1308258,6.5 C13.1942239,5.80827275 12.0584852,5.50253264 11,5.5 M11.5,14.5 L11.5,11.5 M6,6.5 C6.27614237,6.5 6.5,6.27614237 6.5,6 C6.5,5.72385763 6.27614237,5.5 6,5.5 C5.72385763,5.5 5.5,5.72385763 5.5,6 C5.5,6.27614237 5.72385763,6.5 6,6.5 Z" />
|
|
233
|
+
</svg>
|
|
234
|
+
`,Z0=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
|
|
235
|
+
<path fill="none" stroke="#ef9f76" stroke-linecap="round" stroke-linejoin="round" d="M4.5 13.5c-.33.33-.5.67-.5 1s.17.67.5 1c.17-.67.5-1 1-1s.83.33 1 1c.33-.33.5-.83.5-1.5h2c0 .67.17 1.17.5 1.5.17-.67.5-1 1-1s.83.33 1 1c.33-.33.5-.67.5-1s-.17-.67-.5-1l1-1 1.25 1.25c0-2.75 1-2.75 1-5.75a7.1 7.1 0 00-2-5.25A3.64 3.64 0 0113 .5c-1.17 0-2 .42-2.5 1.25A3.08 3.08 0 008 .5c-1 0-1.83.42-2.5 1.25C5 .92 4.17.5 3 .5c.5.83.58 1.58.25 2.25a7.1 7.1 0 00-2 5.25c0 3 1 3 1 5.75L3.5 12.5zm6-5a2 2 0 100-4 2 2 0 000 4m-5 0a2 2 0 100-4 2 2 0 000 4M7 8l1 2.5L9 8m1.5-1.5" />
|
|
236
|
+
</svg>
|
|
237
|
+
`,Y0=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
|
|
238
|
+
<g fill="none" stroke-linecap="round" stroke-linejoin="round">
|
|
239
|
+
<path stroke="#8caaee" d="M8.5 5.5h-3m6 0V3c0-.8-.7-1.5-1.5-1.5H7c-.8 0-1.5.7-1.5 1.5v2.5H3c-.8 0-1.5.7-1.5 1.5v2c0 .8.7 1.5 1.48 1.5" />
|
|
240
|
+
<path stroke="#e5c890" d="M10.5 10.5h-3m-3 0V13c0 .8.7 1.5 1.5 1.5h3c.8 0 1.5-.7 1.5-1.5v-2.5H13c.8 0 1.5-.7 1.5-1.5V7c0-.8-.7-1.5-1.48-1.5H11.5c0 1.5 0 2-1 2h-2" />
|
|
241
|
+
<path stroke="#8caaee" d="M2.98 10.5H4.5c0-1.5 0-2 1-2h2M7.5 3.5v0" />
|
|
242
|
+
<path stroke="#e5c890" d="m 8.5,12.5 v 0" />
|
|
243
|
+
</g>
|
|
244
|
+
</svg>
|
|
245
|
+
`,G0=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
|
|
246
|
+
<g fill="none" stroke-linecap="round" stroke-linejoin="round">
|
|
247
|
+
<path stroke="#838ba7" d="M13.5 9.5c.63-.7 1-1.54 1-2.43 0-2.52-2.91-4.57-6.5-4.57S1.5 4.55 1.5 7.07c0 1.9 1.65 3.53 4 4.22" />
|
|
248
|
+
<path stroke="#8caaee" d="M10.5 9.5c.4 0 .86.34 1 .7l1 3.3m-5 0v-8h3.05c.95 0 1.95 1 1.95 2s-1 2-1.95 2H7.5Z" />
|
|
249
|
+
</g>
|
|
250
|
+
</svg>
|
|
251
|
+
`,J0=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
|
|
252
|
+
<path fill="none" stroke="#e78284" stroke-linecap="round" stroke-linejoin="round" d="M1.5 9.06v2.5c.02.86.36 1.61.9 2.15 1.76 1.76 5.71.65 8.84-2.47 3.12-3.13 4.23-7.08 2.47-8.84a3.1 3.1 0 00-2.15-.9h-2.5M14.5 4l-.25 10.25L4 14.5m4.39-6.11c2.34-2.35 3.29-5.2 2.12-6.37S6.49 1.8 4.14 4.14C1.8 6.5.85 9.34 2.02 10.51s4.02.22 6.37-2.12M5.5 14.5l.25-3.75L11 11l-.25-5.25 3.75-.25" />
|
|
253
|
+
</svg>
|
|
254
|
+
`,Q0=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
|
|
255
|
+
<g fill="none" stroke="#ef9f76" stroke-linecap="round" stroke-linejoin="round">
|
|
256
|
+
<path d="M15.5 9.5Q8 13.505.5 9.5l1-1-1-2 2-.5V4.5h2l.5-2 1.5 1 1.5-2 1.5 2 1.5-1 .5 2h2V6l2 .5-1 2z" />
|
|
257
|
+
<path d="M6.5 7.5a1 1 0 01-1 1 1 1 0 01-1-1 1 1 0 011-1 1 1 0 011 1m5 0a1 1 0 01-1 1 1 1 0 01-1-1 1 1 0 011-1 1 1 0 011 1M4 11.02c-.67.37-1.5.98-1.5 2.23s1.22 1.22 2 1.25v-2M12 11c.67.37 1.5 1 1.5 2.25s-1.22 1.22-2 1.25v-2" />
|
|
258
|
+
</g>
|
|
259
|
+
</svg>
|
|
260
|
+
`,ep=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
|
|
261
|
+
<path fill="none" stroke="#f4b8e4" stroke-linecap="round" stroke-linejoin="round" d="M6.75 6.38c1.85 1.07 3.35.74 4.83-.2 1.5-.95 2.7-2.78 1.3-4.15-.7-.68-3.25-.8-5.62.19-2.36.99-4.59 3.02-4.74 4.11-.31 2.19 3.15 2.88 3.64 4.23s.28 1.98-.2 2.83c-.5.85-1.96 1.62-2.8.68-.83-.95 1.67-2.75 2.98-3.25 1.3-.5 3.1-.4 3.69.25.58.64-.07 1.79-.03 1.79" />
|
|
262
|
+
</svg>
|
|
263
|
+
`,tp=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
|
|
264
|
+
<path fill="none" stroke="#e78284" stroke-linecap="round" stroke-linejoin="round" d="m2.5 2.48 11-.98v3.04l-11 1zm0 5 11-.98v3.04l-11 1zm0 5 11-.98v3.04l-11 1z" />
|
|
265
|
+
</svg>
|
|
266
|
+
`,np=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
|
|
267
|
+
<g fill="none" stroke="#8caaee" stroke-linecap="round" stroke-linejoin="round">
|
|
268
|
+
<path d="M2 15.5c-.7 0-1.5-.8-1.5-1.5V5c0-.7.8-1.5 1.5-1.5h9c.7 0 1.5.8 1.5 1.5v9c0 .7-.8 1.5-1.5 1.5z" />
|
|
269
|
+
<path d="m1.2 3.8 3.04-2.5S5.17.5 5.7.5h8.4c.66 0 1.4.73 1.4 1.4v7.73a2.7 2.7 0 01-.7 1.75l-2.68 3.51M3 8.5l3 2-3 2m4 0h2" />
|
|
270
|
+
</g>
|
|
271
|
+
</svg>
|
|
272
|
+
`,rp=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
|
|
273
|
+
<path fill="none" stroke="#ca9ee6" stroke-linecap="round" stroke-linejoin="round" d="m3 11.5 2.5 4 2.5-4 2.5 4 2.5-4-2.5-4-2.5 4m2.5 4h-5m7.5-4H3m10-7-2.5-4-2.5 4-2.5-4-2.5 4 2.5 4 2.5-4M5.5.5h5M3 4.5h10" />
|
|
274
|
+
</svg>
|
|
275
|
+
`,op=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
|
|
276
|
+
<path fill="none" stroke="#e5c890" stroke-linecap="round" stroke-linejoin="round" d="M8 6.5c3.59 0 6.5-1.4 6.5-2.68S11.59 1.5 8 1.5 1.5 2.54 1.5 3.82 4.41 6.5 8 6.5M14.5 8c0 .83-1.24 1.79-3.25 2.2s-4.49.41-6.5 0S1.5 8.83 1.5 8m13 4.18c0 .83-1.24 1.6-3.25 2-2.01.42-4.49.42-6.5 0-2.01-.4-3.25-1.17-3.25-2m0-8.3v8.3m13-8.3v8.3" />
|
|
277
|
+
</svg>
|
|
278
|
+
`,ip='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="16" height="16"><!-- Icon from Lucide by Lucide Contributors - https://github.com/lucide-icons/lucide/blob/main/LICENSE --><g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="m10 9l-3 3l3 3m4 0l3-3l-3-3"/><rect width="18" height="18" x="3" y="3" rx="2"/></g></svg>',lp=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
|
|
279
|
+
<path fill="none" stroke="#ef9f76" stroke-linecap="round" stroke-linejoin="round" d="m4.54 10 6.92-4m-6.92 4a1.5 1.5 0 10-2.6 1.5 1.5 1.5 0 002.6-1.5M8 4v8m0-8a1.5 1.5 0 100-3 1.5 1.5 0 000 3M4.54 6l6.92 4M4.54 6a1.5 1.5 0 10-2.6-1.5A1.5 1.5 0 004.54 6M8 12a1.5 1.5 0 100 3 1.5 1.5 0 000-3m3.46-2a1.5 1.5 0 102.6 1.5 1.5 1.5 0 00-2.6-1.5m0-4a1.5 1.5 0 102.6-1.5 1.5 1.5 0 00-2.6 1.5" />
|
|
280
|
+
</svg>
|
|
281
|
+
`,sp=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
|
|
282
|
+
<path fill="none" stroke="#ef9f76" stroke-linecap="round" stroke-linejoin="round" d="M14.34 10.2c.34-1.08 1.1-5.07-4.45-8.62a.48.48 0 00-.6.07.44.44 0 00-.02.6c.03.02 2.07 2.5 1.34 5.34-1.26-.86-6.24-4.81-6.24-4.81L7.25 7.5 1.9 4.05S5.68 8.7 8 10.45c-1.12.4-3.56.82-6.78-1.18a.48.48 0 00-.58.06.44.44 0 00-.08.56c.11.18 2.7 4.36 8.14 4.36 1.5 0 2.37-.42 3.08-.77.43-.2.77-.37 1.14-.37.93 0 1.54.92 1.54.93.1.14.27.22.44.21a.46.46 0 00.4-.28c.67-1.55-.49-3.2-.96-3.78h0Z" />
|
|
283
|
+
</svg>
|
|
284
|
+
`,ap=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
|
|
285
|
+
<path fill="none" stroke="#ca9ee6" stroke-linecap="round" stroke-linejoin="round" d="m1.5 6 8 4.25 4-2.25m-12-2V1.5l8 4.25 4-2.25V8m-4-2.25v8.75M5.53 3.82 5.5 12.5l4 2" />
|
|
286
|
+
</svg>
|
|
287
|
+
`,cp=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
|
|
288
|
+
<g fill="none" stroke="#c6d0f5" stroke-linecap="round" stroke-linejoin="round">
|
|
289
|
+
<path d="M13.5 6.5v6a2 2 0 01-2 2h-7a2 2 0 01-2-2v-9c0-1.1.9-2 2-2h4.01" />
|
|
290
|
+
<path d="m8.5 1.5 5 5h-4a1 1 0 01-1-1zm-3 10h5m-5-3h5m-5-3h1" />
|
|
291
|
+
</g>
|
|
292
|
+
</svg>
|
|
293
|
+
`,up=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
|
|
294
|
+
<g fill="none" stroke="#8caaee" stroke-linecap="round" stroke-linejoin="round">
|
|
295
|
+
<path d="M8 11.3c4.14 0 7.5-1.28 7.5-2.86S12.14 5.58 8 5.58.5 6.86.5 8.44s3.36 2.87 7.5 2.87Z" />
|
|
296
|
+
<path d="M5.52 9.87c2.07 3.6 4.86 5.86 6.23 5.07 1.37-.8.8-4.34-1.27-7.93S5.62 1.16 4.25 1.95s-.8 4.34 1.27 7.92" />
|
|
297
|
+
<path d="M5.52 7.01c-2.07 3.59-2.64 7.14-1.27 7.93s4.16-1.48 6.23-5.07c2.07-3.58 2.64-7.13 1.27-7.92-1.37-.8-4.16 1.47-6.23 5.06" />
|
|
298
|
+
<path d="M8.5 8.44a.5.5 0 01-.5.5.5.5 0 01-.5-.5.5.5 0 01.5-.5.5.5 0 01.5.5" />
|
|
299
|
+
</g>
|
|
300
|
+
</svg>
|
|
301
|
+
`,dp=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
|
|
302
|
+
<g fill="none" stroke="#8caaee" stroke-linecap="round" stroke-linejoin="round">
|
|
303
|
+
<path d="M4 1.5h8A2.5 2.5 0 0114.5 4v8a2.5 2.5 0 01-2.5 2.5H4A2.5 2.5 0 011.5 12V4A2.5 2.5 0 014 1.5" />
|
|
304
|
+
<path d="M12.5 8.75c0-.69-.54-1.25-1.2-1.25h-.6c-.66 0-1.2.56-1.2 1.25S10.04 10 10.7 10h.6c.66 0 1.2.56 1.2 1.25s-.54 1.25-1.2 1.25h-.6c-.66 0-1.2-.56-1.2-1.25m-3-3.75v5M5 7.5h3" />
|
|
305
|
+
</g>
|
|
306
|
+
</svg>
|
|
307
|
+
`,fp='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" width="16" height="16"><!-- Icon from VSCode Icons by Roberto Huertas - https://github.com/vscode-icons/vscode-icons/blob/master/LICENSE --><path fill="#00519a" d="M6.67 7.836L9 18.915l2.336-11.079H16l-4.664 16.328H6.672L2 7.836Zm11.661 0h7.6a4.08 4.08 0 0 1 2.9 1.749a3.8 3.8 0 0 1 .571 2.04a4 4 0 0 1-.571 2.034a4.1 4.1 0 0 1-2.341 1.763a4.1 4.1 0 0 1 2.929 1.756a3.8 3.8 0 0 1 .58 2.1a4.66 4.66 0 0 1-.579 2.546a5.05 5.05 0 0 1-3.5 2.338h-7.589ZM23 14.252h1.166a1.754 1.754 0 0 0 0-3.5H23Zm0 7h1.39a2.047 2.047 0 0 0 0-4.089H23Z"/></svg>',hp=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
|
|
308
|
+
<g fill="none" stroke="#a6d189" stroke-linecap="round" stroke-linejoin="round">
|
|
309
|
+
<path d="M1 1.5h5.44L8 4.56 9.56 1.5H15l-6.99 13z" />
|
|
310
|
+
<path d="M12.05 1.73 8 9.28 3.95 1.73" />
|
|
311
|
+
</g>
|
|
312
|
+
</svg>
|
|
313
|
+
`,pp=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
|
|
314
|
+
<path fill="none" stroke="#ef9f76" stroke-linecap="round" stroke-linejoin="round" d="M4.5 4.5 1 8 4.5 11.5M11.5 4.5 15 8 11.5 11.5M9.5 2 6.5 14" />
|
|
315
|
+
</svg>
|
|
316
|
+
`,mp=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
|
|
317
|
+
<path fill="none" stroke="#e78284" stroke-linecap="round" stroke-linejoin="round" d="M2.5 1.5h3l3 4 3-4h3l-9 13h-3L7 8z" />
|
|
318
|
+
</svg>
|
|
319
|
+
`;let uo=null;function cs(e){uo=e!=null?e:null}function Do(e){if(uo){const t=uo(e);if(t!=null&&t!=="")return t}switch(e){case"javascript":case"js":return I0;case"typescript":case"ts":return dp;case"jsx":return N0;case"tsx":return up;case"html":return T0;case"css":return x0;case"scss":return ep;case"json":return F0;case"python":case"py":return Y0;case"ruby":case"rb":return J0;case"go":case"golang":return A0;case"r":return G0;case"java":return $0;case"kotlin":case"kt":return L0;case"c":return m0;case"cpp":case"c++":return v0;case"cs":case"csharp":return y0;case"php":return X0;case"scala":return tp;case"shell":case"sh":case"bash":case"zsh":case"powershell":case"ps1":case"bat":case"batch":case"shellscript":return np;case"sql":return op;case"yaml":case"yml":return mp;case"markdown":case"md":return z0;case"xml":return pp;case"rust":case"rs":return Q0;case"swift":return sp;case"perl":return K0;case"lua":return P0;case"haskell":return D0;case"erlang":return S0;case"clojure":return g0;case"vue":return hp;case"svg":return lp;case"mermaid":return j0;case"dart":return b0;case"assembly":return p0;case"dockerfile":return C0;case"fortran":return M0;case"lisp":return O0;case"ocaml":return U0;case"prolog":return Z0;case"groovy":return B0;case"matlab":return V0;case"cobol":return k0;case"ada":return f0;case"julia":return R0;case"elixir":return E0;case"vb.net":return fp;case"nim":return H0;case"crystal":return w0;case"d":return _0;case"applescript":return h0;case"solidity":return rp;case"objectivec":return q0;case"objectivecpp":return W0;case"terraform":return ap;case"plain":case"text":return cp;default:return ip}}const To={js:"JavaScript",ts:"TypeScript",jsx:"JSX",tsx:"TSX",html:"HTML",css:"CSS",scss:"SCSS",json:"JSON",py:"Python",python:"Python",rb:"Ruby",go:"Go",java:"Java",c:"C",cpp:"C++",cs:"C#",php:"PHP",sh:"Shell",bash:"Bash",sql:"SQL",yaml:"YAML",md:"Markdown","":"Plain Text",plain:"Plain Text"},gp={key:0,class:"code-block-header flex justify-between items-center px-4 py-2.5 border-b border-gray-400/5",style:{color:"var(--vscode-editor-foreground)","background-color":"var(--vscode-editor-background)"}},kp={class:"flex items-center space-x-2"},vp=["innerHTML"],wp={class:"text-sm font-medium font-mono"},yp={class:"flex items-center space-x-2"},xp=["aria-pressed"],bp=["disabled"],_p=["disabled"],Cp=["disabled"],Ep=["aria-label"],Sp={key:0,xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},Mp={key:1,xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},Ap=["aria-pressed"],Bp={key:0,xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},Dp={key:1,xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},Tp=["aria-label"],$p={class:"code-loading-placeholder"},Np={class:"sr-only","aria-live":"polite",role:"status"},Oi=10,Pi=36,zi=1,Vi=0,ji=1.5,fr=1,Ip=l.defineComponent({__name:"CodeBlockNode",props:{node:{},isDark:{type:Boolean},loading:{type:Boolean,default:!0},stream:{type:Boolean,default:!0},darkTheme:{default:void 0},lightTheme:{default:void 0},isShowPreview:{type:Boolean,default:!0},monacoOptions:{},enableFontSizeControl:{type:Boolean,default:!0},minWidth:{default:void 0},maxWidth:{default:void 0},themes:{},showHeader:{type:Boolean,default:!0},showCopyButton:{type:Boolean,default:!0},showExpandButton:{type:Boolean,default:!0},showPreviewButton:{type:Boolean,default:!0},showFontSizeButtons:{type:Boolean,default:!0},customId:{}},emits:["previewCode","copy"],setup(e,{emit:t}){var It,St;const n=e,o=t,{t:r}=Lr(),i=l.ref(null),s=l.ref(null),a=l.ref(!1),u=l.ref(String((It=n.node.language)!=null?It:"")),c=l.ref(!1),f=l.ref(!1),d=l.ref(!1),h=l.ref(!1),p=l.ref(null);let m=0;const g=jn(),k=l.ref(null),_=l.ref(typeof window=="undefined");typeof window!="undefined"&&l.watch(()=>s.value,N=>{var C;if((C=k.value)==null||C.destroy(),k.value=null,!N){_.value=!1;return}const v=g(N,{rootMargin:"400px"});k.value=v,_.value=v.isVisible.value,v.whenVisible.then(()=>{_.value=!0})},{immediate:!0}),l.onBeforeUnmount(()=>{var N;(N=k.value)==null||N.destroy(),k.value=null});let y=null,w=null,x=()=>{},S=()=>{},M=()=>null,D=()=>({getModel:()=>({getLineCount:()=>1}),getOption:()=>14,updateOptions:()=>{}}),T=()=>({getModel:()=>({getLineCount:()=>1}),getOption:()=>14,updateOptions:()=>{}}),b=()=>{},z=()=>{},$=null,U=()=>{var N;return String((N=n.node.language)!=null?N:"plaintext")},K=()=>te(null,null,function*(){});const G=l.computed(()=>n.node.diff),P=l.ref(!1);typeof window!="undefined"&&te(null,null,function*(){try{const N=yield as();if(!N){P.value=!0;return}const v=N.useMonaco,C=N.detectLanguage;if(typeof C=="function"&&(U=C),typeof v=="function"){const B=Ct();if(B&&n.themes&&Array.isArray(n.themes)&&!n.themes.includes(B))throw new Error("Preferred theme not in provided themes array");const J=v(He(re({wordWrap:"on",wrappingIndent:"same",themes:n.themes,theme:B},n.monacoOptions||{}),{onThemeChange(){O()}}));y=J.createEditor||y,w=J.createDiffEditor||w,x=J.updateCode||x,S=J.updateDiff||S,M=J.getEditor||M,D=J.getEditorView||D,T=J.getDiffEditorView||T,b=J.cleanupEditor||b,z=J.safeClean||J.cleanupEditor||z,K=J.setTheme||K,h.value=!0,i.value&&(yield Ge(i.value))}}catch(N){P.value=!0}});const L=l.ref(typeof((St=n.monacoOptions)==null?void 0:St.fontSize)=="number"?n.monacoOptions.fontSize:Number.NaN),V=l.ref(L.value),j=l.computed(()=>{const N=L.value,v=V.value;return typeof N=="number"&&Number.isFinite(N)&&N>0&&typeof v=="number"&&Number.isFinite(v)&&v>0});function q(){try{const N=i.value;if(!N)return null;const v=N.querySelector(".view-lines .view-line");if(v){const C=Math.ceil(v.getBoundingClientRect().height);if(C>0)return C}}catch(N){}return null}function Y(){var N,v,C,B,J;try{const W=G.value?(C=(v=(N=T())==null?void 0:N.getModifiedEditor)==null?void 0:v.call(N))!=null?C:T():D(),ve=M(),be=(B=ve==null?void 0:ve.EditorOption)==null?void 0:B.fontInfo;if(W&&be!=null){const Ce=(J=W.getOption)==null?void 0:J.call(W,be),pe=Ce==null?void 0:Ce.fontSize;if(typeof pe=="number"&&Number.isFinite(pe)&&pe>0)return pe}}catch(W){}try{const W=i.value;if(W){const ve=W.querySelector(".view-lines .view-line");if(ve)try{if(typeof window!="undefined"&&typeof window.getComputedStyle=="function"){const be=window.getComputedStyle(ve).fontSize,Ce=be&&be.match(/^(\d+(?:\.\d+)?)/);if(Ce)return Number.parseFloat(Ce[1])}}catch(be){}}}catch(W){}return null}function ee(N){var B,J;try{const W=M(),ve=(B=W==null?void 0:W.EditorOption)==null?void 0:B.lineHeight;if(ve!=null){const be=(J=N==null?void 0:N.getOption)==null?void 0:J.call(N,ve);if(typeof be=="number"&&be>0)return be}}catch(W){}const v=q();if(v&&v>0)return v;const C=Number.isFinite(V.value)&&V.value>0?V.value:12;return Math.max(12,Math.round(C*1.35))}function Q(){var v;if(Number.isFinite(V.value)&&V.value>0&&Number.isFinite(L.value))return V.value;const N=Y();return typeof((v=n.monacoOptions)==null?void 0:v.fontSize)=="number"?(L.value=n.monacoOptions.fontSize,V.value=n.monacoOptions.fontSize,V.value):N&&N>0?(L.value=N,V.value=N,N):(L.value=12,V.value=12,12)}function oe(){const N=Q(),v=Math.min(Pi,N+zi);V.value=v}function ne(){const N=Q(),v=Math.max(Oi,N-zi);V.value=v}function ie(){Q(),Number.isFinite(L.value)&&(V.value=L.value)}function le(){var N,v,C,B,J,W,ve,be,Ce,pe,Ee;try{const we=G.value?T():D();if(!we)return null;if(G.value&&(we!=null&&we.getOriginalEditor)&&(we!=null&&we.getModifiedEditor)){const Le=(N=we.getOriginalEditor)==null?void 0:N.call(we),Oe=(v=we.getModifiedEditor)==null?void 0:v.call(we),pt=((C=Le==null?void 0:Le.getContentHeight)==null?void 0:C.call(Le))||0,Mt=((B=Oe==null?void 0:Oe.getContentHeight)==null?void 0:B.call(Oe))||0,Ht=Math.max(pt,Mt);if(Ht>0)return Math.ceil(Ht+fr);const Zt=((ve=(W=(J=Le==null?void 0:Le.getModel)==null?void 0:J.call(Le))==null?void 0:W.getLineCount)==null?void 0:ve.call(W))||1,qt=((pe=(Ce=(be=Oe==null?void 0:Oe.getModel)==null?void 0:be.call(Oe))==null?void 0:Ce.getLineCount)==null?void 0:pe.call(Ce))||1,an=Math.max(Zt,qt),cn=Math.max(ee(Le),ee(Oe));return Math.ceil(an*(cn+ji)+Vi+fr)}else if(we!=null&&we.getContentHeight){const Le=we.getContentHeight();if(Le>0)return Math.ceil(Le+fr)}const ht=(Ee=we==null?void 0:we.getModel)==null?void 0:Ee.call(we);let Ft=1;ht&&typeof ht.getLineCount=="function"&&(Ft=ht.getLineCount());const Rt=ee(we);return Math.ceil(Ft*(Rt+ji)+Vi+fr)}catch(we){return null}}function O(){var be,Ce,pe;const N=i.value,v=s.value;if(!N||!v)return;const C=N.querySelector(".monaco-editor")||N;let B=null;try{typeof window!="undefined"&&typeof window.getComputedStyle=="function"&&(B=window.getComputedStyle(C))}catch(Ee){B=null}const J=String((be=B==null?void 0:B.getPropertyValue("--vscode-editor-foreground"))!=null?be:""),W=String((Ce=B==null?void 0:B.getPropertyValue("--vscode-editor-background"))!=null?Ce:""),ve=String((pe=B==null?void 0:B.getPropertyValue("--vscode-editor-hoverHighlightBackground"))!=null?pe:"");if(J&&W)return v.style.setProperty("--vscode-editor-foreground",J.trim()),v.style.setProperty("--vscode-editor-background",W.trim()),v.style.setProperty("--vscode-editor-selectionBackground",ve.trim()),!0}function F(){try{const N=i.value;if(!N)return;const v=N.getBoundingClientRect(),C=window.scrollY+v.top,B=le();if(B!=null&&B>0){const J=v.height;N.style.height=`${Math.ceil(B)}px`,N.style.maxHeight="none";const W=Math.ceil(B)-J;W!==0&&C<window.scrollY&&window.scrollBy(0,W)}}catch(N){}}function H(){var N;try{const v=i.value;if(!v)return;const C=v.getBoundingClientRect(),B=window.scrollY+C.top,J=C.height,W=se();if(m>0&&(m--,p.value!=null)){const pe=Math.min(p.value,W);v.style.height=`${Math.ceil(pe)}px`,v.style.maxHeight=`${Math.ceil(W)}px`,v.style.overflow="auto";const Ee=Math.ceil(pe)-J;Ee!==0&&B<window.scrollY&&window.scrollBy(0,Ee);return}const ve=le();if(ve!=null&&ve>0){const pe=Math.min(ve,W);v.style.height=`${Math.ceil(pe)}px`,v.style.maxHeight=`${Math.ceil(W)}px`,v.style.overflow="auto";const Ee=Math.ceil(pe)-J;Ee!==0&&B<window.scrollY&&window.scrollBy(0,Ee);return}if(p.value!=null){const pe=Math.min(p.value,W);v.style.height=`${Math.ceil(pe)}px`,v.style.maxHeight=`${Math.ceil(W)}px`,v.style.overflow="auto";const Ee=Math.ceil(pe)-J;Ee!==0&&B<window.scrollY&&window.scrollBy(0,Ee);return}const be=Math.ceil(((N=v.getBoundingClientRect)==null?void 0:N.call(v).height)||0);if(be>0){const pe=Math.min(be,W);v.style.height=`${Math.ceil(pe)}px`,v.style.maxHeight=`${Math.ceil(W)}px`,v.style.overflow="auto";const Ee=Math.ceil(pe)-J;Ee!==0&&B<window.scrollY&&window.scrollBy(0,Ee);return}const Ce=Number.parseFloat(v.style.height);if(!Number.isNaN(Ce)&&Ce>0){const pe=Math.ceil(Math.min(Ce,W));v.style.height=`${pe}px`;const Ee=pe-J;Ee!==0&&B<window.scrollY&&window.scrollBy(0,Ee)}else{const pe=Math.ceil(W);v.style.height=`${pe}px`;const Ee=pe-J;Ee!==0&&B<window.scrollY&&window.scrollBy(0,Ee)}v.style.maxHeight=`${Math.ceil(W)}px`,v.style.overflow="auto"}catch(v){}}function se(){var C,B;const N=(B=(C=n.monacoOptions)==null?void 0:C.MAX_HEIGHT)!=null?B:500;if(typeof N=="number")return N;const v=String(N).match(/^(\d+(?:\.\d+)?)/);return v?Number.parseFloat(v[1]):500}const ge=l.computed(()=>{const N=u.value.trim().toLowerCase();return n.isShowPreview&&(N==="html"||N==="svg")}),Be=l.computed(()=>u.value.trim().toLowerCase()==="mermaid");l.watch(()=>n.node.language,N=>{u.value=N}),l.watch(()=>n.node.code,N=>te(null,null,function*(){var v,C;if(n.stream!==!1){if(u.value||(u.value=U(N)),y&&!d.value&&i.value)try{yield Ge(i.value)}catch(B){}G.value?S(String((v=n.node.originalCode)!=null?v:""),String((C=n.node.updatedCode)!=null?C:""),u.value):x(N,u.value),c.value&&Wn(()=>F())}}));const ae=l.computed(()=>{const N=u.value.trim().toLowerCase();return To[N]||N.charAt(0).toUpperCase()+N.slice(1)}),xe=l.computed(()=>{const N=u.value.trim().toLowerCase();return Do(N.split(":")[0])}),Fe=l.computed(()=>{const N={},v=J=>{if(J!=null)return typeof J=="number"?`${J}px`:String(J)},C=v(n.minWidth),B=v(n.maxWidth);return C&&(N.minWidth=C),B&&(N.maxWidth=B),N});function _e(){return te(this,null,function*(){try{typeof navigator!="undefined"&&navigator.clipboard&&typeof navigator.clipboard.writeText=="function"&&(yield navigator.clipboard.writeText(n.node.code)),a.value=!0,o("copy",n.node.code),setTimeout(()=>{a.value=!1},1e3)}catch(N){console.error("复制失败:",N)}})}function Re(N){const v=N;return!v||v.disabled}function De(N,v,C="top"){if(Re(N.currentTarget))return;const B=N,J=(B==null?void 0:B.clientX)!=null&&(B==null?void 0:B.clientY)!=null?{x:B.clientX,y:B.clientY}:void 0;xn(N.currentTarget,v,C,!1,J,n.isDark)}function fe(){Rr()}function ke(N){if(Re(N.currentTarget))return;const v=a.value?r("common.copied")||"Copied":r("common.copy")||"Copy",C=N,B=(C==null?void 0:C.clientX)!=null&&(C==null?void 0:C.clientY)!=null?{x:C.clientX,y:C.clientY}:void 0;xn(N.currentTarget,v,"top",!1,B,n.isDark)}function qe(){c.value=!c.value;const N=G.value?T():D(),v=i.value;!N||!v||(c.value?(je(!0),v.style.maxHeight="none",v.style.overflow="visible",F()):(je(!1),v.style.overflow="auto",H()))}function yt(){var N,v,C;if(f.value=!f.value,f.value){if(i.value){const B=Math.ceil(((v=(N=i.value).getBoundingClientRect)==null?void 0:v.call(N).height)||0);B>0&&(p.value=B)}je(!1)}else{c.value&&je(!0),i.value&&p.value!=null&&(i.value.style.height=`${p.value}px`);const B=G.value?T():D();try{(C=B==null?void 0:B.layout)==null||C.call(B)}catch(J){}m=2,Wn(()=>{c.value?F():H()})}}l.watch(()=>V.value,(N,v)=>{const C=G.value?T():D();C&&typeof N=="number"&&Number.isFinite(N)&&N>0&&(C.updateOptions({fontSize:N}),c.value&&!f.value&&F())},{flush:"post",immediate:!1});function xt(){if(!ge.value)return;const N=(u.value||n.node.language).toLowerCase(),v=N==="html"?"text/html":"image/svg+xml",C=N==="html"?r("artifacts.htmlPreviewTitle")||"HTML Preview":r("artifacts.svgPreviewTitle")||"SVG Preview";o("previewCode",{node:n.node,artifactType:v,artifactTitle:C,id:`temp-${N}-${Date.now()}`})}function je(N){var v,C;try{if(G.value){const B=T();(v=B==null?void 0:B.updateOptions)==null||v.call(B,{automaticLayout:N})}else{const B=D();(C=B==null?void 0:B.updateOptions)==null||C.call(B,{automaticLayout:N})}}catch(B){}}function bt(N){return te(this,null,function*(){var C,B,J;if(!y)return;G.value?(z(),w?yield w(N,String((C=n.node.originalCode)!=null?C:""),String((B=n.node.updatedCode)!=null?B:""),u.value):yield y(N,n.node.code,u.value)):yield y(N,n.node.code,u.value);const v=G.value?T():D();if(typeof((J=n.monacoOptions)==null?void 0:J.fontSize)=="number")v==null||v.updateOptions({fontSize:n.monacoOptions.fontSize,automaticLayout:!1}),L.value=n.monacoOptions.fontSize,V.value=n.monacoOptions.fontSize;else{const W=Y();W&&W>0?(L.value=W,V.value=W):(L.value=12,V.value=12)}!c.value&&!f.value&&H(),n.loading===!1&&(yield l.nextTick(),Wn(()=>{c.value&&!f.value?F():f.value||H()}))})}function Ge(N){return y?$||(d.value=!0,$=te(null,null,function*(){yield bt(N)}).finally(()=>{$=null}),$):null}const jt=l.watch(()=>[i.value,Be.value,G.value,n.stream,n.loading,h.value,_.value],be=>te(null,[be],function*([N,v,C,B,J,W,ve]){if(!N||!y||!ve||B===!1&&J!==!1)return;if(Be.value){b(),jt();return}const Ce=Ge(N);Ce&&(yield Ce,jt())})),_t=l.watch(()=>[n.darkTheme,n.lightTheme,d.value,_.value],()=>{if(!(!d.value||!_.value)){if(Be.value)return _t();Qe()}});function Ct(){return n.isDark?n.darkTheme:n.lightTheme}function Qe(){const N=Ct();N&&K(N)}const Nt=l.watch(()=>[n.monacoOptions,_.value],()=>{var C,B;if(!y||!_.value)return;if(Be.value)return Nt();const N=G.value?T():D(),v=typeof((C=n.monacoOptions)==null?void 0:C.fontSize)=="number"?n.monacoOptions.fontSize:Number.isFinite(V.value)?V.value:void 0;typeof v=="number"&&Number.isFinite(v)&&v>0&&((B=N==null?void 0:N.updateOptions)==null||B.call(N,{fontSize:v})),c.value&&!f.value?F():f.value||H()},{deep:!0}),Et=l.watch(()=>[n.loading,_.value],C=>te(null,[C],function*([N,v]){if(v){if(Be.value){l.nextTick(()=>{Et==null||Et()});return}N||(yield l.nextTick(),Wn(()=>{f.value||(c.value?F():H()),Et()}))}}),{immediate:!0,flush:"post"});return l.onUnmounted(()=>{b()}),(N,v)=>P.value?(l.openBlock(),l.createBlock(l.unref(on),{key:0,node:e.node,loading:n.loading},null,8,["node","loading"])):(l.openBlock(),l.createElementBlock("div",{key:1,ref_key:"container",ref:s,style:l.normalizeStyle(Fe.value),class:l.normalizeClass(["code-block-container my-4 rounded-lg border overflow-hidden shadow-sm",[n.isDark?"border-gray-700/30 bg-gray-900":"border-gray-200 bg-white",{"is-rendering":n.loading,"is-dark":n.isDark}]])},[n.showHeader?(l.openBlock(),l.createElementBlock("div",gp,[l.renderSlot(N.$slots,"header-left",{},()=>[l.createElementVNode("div",kp,[l.createElementVNode("span",{class:"icon-slot h-4 w-4 flex-shrink-0",innerHTML:xe.value},null,8,vp),l.createElementVNode("span",wp,l.toDisplayString(ae.value),1)])],!0),l.renderSlot(N.$slots,"header-right",{},()=>[l.createElementVNode("div",yp,[l.createElementVNode("button",{type:"button",class:"code-action-btn p-2 text-xs rounded-md transition-colors hover:bg-[var(--vscode-editor-selectionBackground)]","aria-pressed":f.value,onClick:yt,onMouseenter:v[0]||(v[0]=C=>De(C,f.value?l.unref(r)("common.expand")||"Expand":l.unref(r)("common.collapse")||"Collapse")),onFocus:v[1]||(v[1]=C=>De(C,f.value?l.unref(r)("common.expand")||"Expand":l.unref(r)("common.collapse")||"Collapse")),onMouseleave:fe,onBlur:fe},[(l.openBlock(),l.createElementBlock("svg",{style:l.normalizeStyle({rotate:f.value?"0deg":"90deg"}),xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[...v[17]||(v[17]=[l.createElementVNode("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m9 18l6-6l-6-6"},null,-1)])],4))],40,xp),n.showFontSizeButtons&&n.enableFontSizeControl?(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[l.createElementVNode("button",{type:"button",class:"code-action-btn p-2 text-xs rounded-md transition-colors hover:bg-[var(--vscode-editor-selectionBackground)]",disabled:Number.isFinite(V.value)?V.value<=Oi:!1,onClick:v[2]||(v[2]=C=>ne()),onMouseenter:v[3]||(v[3]=C=>De(C,l.unref(r)("common.decrease")||"Decrease")),onFocus:v[4]||(v[4]=C=>De(C,l.unref(r)("common.decrease")||"Decrease")),onMouseleave:fe,onBlur:fe},[...v[18]||(v[18]=[l.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[l.createElementVNode("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 12h14"})],-1)])],40,bp),l.createElementVNode("button",{type:"button",class:"code-action-btn p-2 text-xs rounded-md transition-colors hover:bg-[var(--vscode-editor-selectionBackground)]",disabled:!j.value||V.value===L.value,onClick:v[5]||(v[5]=C=>ie()),onMouseenter:v[6]||(v[6]=C=>De(C,l.unref(r)("common.reset")||"Reset")),onFocus:v[7]||(v[7]=C=>De(C,l.unref(r)("common.reset")||"Reset")),onMouseleave:fe,onBlur:fe},[...v[19]||(v[19]=[l.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[l.createElementVNode("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[l.createElementVNode("path",{d:"M3 12a9 9 0 1 0 9-9a9.75 9.75 0 0 0-6.74 2.74L3 8"}),l.createElementVNode("path",{d:"M3 3v5h5"})])],-1)])],40,_p),l.createElementVNode("button",{type:"button",class:"code-action-btn p-2 text-xs rounded-md transition-colors hover:bg-[var(--vscode-editor-selectionBackground)]",disabled:Number.isFinite(V.value)?V.value>=Pi:!1,onClick:v[8]||(v[8]=C=>oe()),onMouseenter:v[9]||(v[9]=C=>De(C,l.unref(r)("common.increase")||"Increase")),onFocus:v[10]||(v[10]=C=>De(C,l.unref(r)("common.increase")||"Increase")),onMouseleave:fe,onBlur:fe},[...v[20]||(v[20]=[l.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[l.createElementVNode("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 12h14m-7-7v14"})],-1)])],40,Cp)],64)):l.createCommentVNode("",!0),n.showCopyButton?(l.openBlock(),l.createElementBlock("button",{key:1,type:"button",class:"code-action-btn p-2 text-xs rounded-md transition-colors hover:bg-[var(--vscode-editor-selectionBackground)]","aria-label":a.value?l.unref(r)("common.copied")||"Copied":l.unref(r)("common.copy")||"Copy",onClick:_e,onMouseenter:v[11]||(v[11]=C=>ke(C)),onFocus:v[12]||(v[12]=C=>ke(C)),onMouseleave:fe,onBlur:fe},[a.value?(l.openBlock(),l.createElementBlock("svg",Mp,[...v[22]||(v[22]=[l.createElementVNode("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M20 6L9 17l-5-5"},null,-1)])])):(l.openBlock(),l.createElementBlock("svg",Sp,[...v[21]||(v[21]=[l.createElementVNode("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[l.createElementVNode("rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2"}),l.createElementVNode("path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"})],-1)])]))],40,Ep)):l.createCommentVNode("",!0),n.showExpandButton?(l.openBlock(),l.createElementBlock("button",{key:2,type:"button",class:"code-action-btn p-2 text-xs rounded-md transition-colors hover:bg-[var(--vscode-editor-selectionBackground)]","aria-pressed":c.value,onClick:qe,onMouseenter:v[13]||(v[13]=C=>De(C,c.value?l.unref(r)("common.collapse")||"Collapse":l.unref(r)("common.expand")||"Expand")),onFocus:v[14]||(v[14]=C=>De(C,c.value?l.unref(r)("common.collapse")||"Collapse":l.unref(r)("common.expand")||"Expand")),onMouseleave:fe,onBlur:fe},[c.value?(l.openBlock(),l.createElementBlock("svg",Bp,[...v[23]||(v[23]=[l.createElementVNode("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15 3h6v6m0-6l-7 7M3 21l7-7m-1 7H3v-6"},null,-1)])])):(l.openBlock(),l.createElementBlock("svg",Dp,[...v[24]||(v[24]=[l.createElementVNode("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m14 10l7-7m-1 7h-6V4M3 21l7-7m-6 0h6v6"},null,-1)])]))],40,Ap)):l.createCommentVNode("",!0),ge.value&&n.showPreviewButton?(l.openBlock(),l.createElementBlock("button",{key:3,type:"button",class:"code-action-btn p-2 text-xs rounded-md transition-colors hover:bg-[var(--vscode-editor-selectionBackground)]","aria-label":l.unref(r)("common.preview")||"Preview",onClick:xt,onMouseenter:v[15]||(v[15]=C=>De(C,l.unref(r)("common.preview")||"Preview")),onFocus:v[16]||(v[16]=C=>De(C,l.unref(r)("common.preview")||"Preview")),onMouseleave:fe,onBlur:fe},[...v[25]||(v[25]=[l.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24"},[l.createElementVNode("g",{fill:"currentColor","fill-rule":"evenodd","clip-rule":"evenodd"},[l.createElementVNode("path",{d:"M23.628 7.41c-.12-1.172-.08-3.583-.9-4.233c-1.921-1.51-6.143-1.11-8.815-1.19c-3.481-.15-7.193.14-10.625.24a.34.34 0 0 0 0 .67c3.472-.05 7.074-.29 10.575-.09c2.471.15 6.653-.14 8.254 1.16c.4.33.41 2.732.49 3.582a42 42 0 0 1 .08 9.005a13.8 13.8 0 0 1-.45 3.001c-2.42 1.4-19.69 2.381-20.72.55a21 21 0 0 1-.65-4.632a41.5 41.5 0 0 1 .12-7.964c.08 0 7.334.33 12.586.24c2.331 0 4.682-.13 6.764-.21a.33.33 0 0 0 0-.66c-7.714-.16-12.897-.43-19.31.05c.11-1.38.48-3.922.38-4.002a.3.3 0 0 0-.42 0c-.37.41-.29 1.77-.36 2.251s-.14 1.07-.2 1.6a45 45 0 0 0-.36 8.645a21.8 21.8 0 0 0 .66 5.002c1.46 2.702 17.248 1.461 20.95.43c1.45-.4 1.69-.8 1.871-1.95c.575-3.809.602-7.68.08-11.496"}),l.createElementVNode("path",{d:"M4.528 5.237a.84.84 0 0 0-.21-1c-.77-.41-1.71.39-1 1.1a.83.83 0 0 0 1.21-.1m2.632-.25c.14-.14.19-.84-.2-1c-.77-.41-1.71.39-1 1.09a.82.82 0 0 0 1.2-.09m2.88 0a.83.83 0 0 0-.21-1c-.77-.41-1.71.39-1 1.09a.82.82 0 0 0 1.21-.09m-4.29 8.735c0 .08.23 2.471.31 2.561a.371.371 0 0 0 .63-.14c0-.09 0 0 .15-1.72a10 10 0 0 0-.11-2.232a5.3 5.3 0 0 1-.26-1.37a.3.3 0 0 0-.54-.24a6.8 6.8 0 0 0-.2 2.33c-1.281-.38-1.121.13-1.131-.42a15 15 0 0 0-.19-1.93c-.16-.17-.36-.17-.51.14a20 20 0 0 0-.43 3.471c.04.773.18 1.536.42 2.272c.26.4.7.22.7-.1c0-.09-.16-.09 0-1.862c.06-1.18-.23-.3 1.16-.76m5.033-2.552c.32-.07.41-.28.39-.37c0-.55-3.322-.34-3.462-.24s-.2.18-.18.28s0 .11 0 .16a3.8 3.8 0 0 0 1.591.361v.82a15 15 0 0 0-.13 3.132c0 .2-.09.94.17 1.16a.34.34 0 0 0 .48 0c.125-.35.196-.718.21-1.09a8 8 0 0 0 .14-3.232c0-.13.05-.7-.1-.89a8 8 0 0 0 .89-.09m5.544-.181a.69.69 0 0 0-.89-.44a2.8 2.8 0 0 0-1.252 1.001a2.3 2.3 0 0 0-.41-.83a1 1 0 0 0-1.6.27a7 7 0 0 0-.35 2.07c0 .571 0 2.642.06 2.762c.14 1.09 1 .51.63.13a17.6 17.6 0 0 1 .38-3.962c.32-1.18.32.2.39.51s.11 1.081.73 1.081s.48-.93 1.401-1.78q.075 1.345 0 2.69a15 15 0 0 0 0 1.811a.34.34 0 0 0 .68 0q.112-.861.11-1.73a16.7 16.7 0 0 0 .12-3.582m1.441-.201c-.05.16-.3 3.002-.31 3.202a6.3 6.3 0 0 0 .21 1.741c.33 1 1.21 1.07 2.291.82a3.7 3.7 0 0 0 1.14-.23c.21-.22.10-.59-.41-.64q-.817.096-1.64.07c-.44-.07-.34 0-.67-4.442q.015-.185 0-.37a.316.316 0 0 0-.23-.38a.316.316 0 0 0-.38.23"})])],-1)])],40,Tp)):l.createCommentVNode("",!0)])],!0)])):l.createCommentVNode("",!0),l.withDirectives(l.createElementVNode("div",{ref_key:"codeEditor",ref:i,class:l.normalizeClass(["code-editor-container",[e.stream?"":"code-height-placeholder"]])},null,2),[[l.vShow,!f.value&&(e.stream?!0:!e.loading)]]),l.withDirectives(l.createElementVNode("div",$p,[l.renderSlot(N.$slots,"loading",{loading:e.loading,stream:e.stream},()=>[v[26]||(v[26]=l.createElementVNode("div",{class:"loading-skeleton"},[l.createElementVNode("div",{class:"skeleton-line"}),l.createElementVNode("div",{class:"skeleton-line"}),l.createElementVNode("div",{class:"skeleton-line short"})],-1))],!0)],512),[[l.vShow,!e.stream&&e.loading]]),l.createElementVNode("span",Np,l.toDisplayString(a.value?l.unref(r)("common.copied")||"Copied":""),1)],6))}}),Rn=Me(Ip,[["__scopeId","data-v-8443b140"]]);Rn.install=e=>{e.component(Rn.__name,Rn)};const Fp=Object.freeze(Object.defineProperty({__proto__:null,default:Rn},Symbol.toStringTag,{value:"Module"})),Rp={key:0,class:"code-block-header flex justify-between items-center px-4 py-2.5 border-b border-gray-400/5",style:{color:"var(--vscode-editor-foreground)","background-color":"var(--vscode-editor-background)"}},Lp={class:"flex items-center space-x-2"},Op=["innerHTML"],Pp={class:"text-sm font-medium font-mono"},zp={class:"flex items-center space-x-2"},Vp=["aria-pressed"],jp=["disabled"],Hp=["disabled"],qp=["disabled"],Wp=["aria-label"],Up={key:0,xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},Kp={key:1,xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},Xp=["aria-pressed"],Zp={key:0,xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"0.75rem",height:"0.75rem",viewBox:"0 0 24 24"},Yp={key:1,xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"0.75rem",height:"0.75rem",viewBox:"0 0 24 24"},Gp=["aria-label"],Jp={class:"code-loading-placeholder"},Hi=10,qi=36,Wi=1,Qp=l.defineComponent({__name:"MarkdownCodeBlockNode",props:{node:{},loading:{type:Boolean,default:!0},stream:{type:Boolean,default:!0},darkTheme:{default:void 0},lightTheme:{default:void 0},isDark:{type:Boolean},isShowPreview:{type:Boolean,default:!0},enableFontSizeControl:{type:Boolean,default:!0},minWidth:{default:void 0},maxWidth:{default:void 0},themes:{},showHeader:{type:Boolean,default:!0},showCopyButton:{type:Boolean,default:!0},showExpandButton:{type:Boolean,default:!0},showPreviewButton:{type:Boolean,default:!0},showFontSizeButtons:{type:Boolean,default:!0}},emits:["previewCode","copy"],setup(e,{emit:t}){var le;const n=e,o=t,{t:r}=Lr(),i=l.ref(String((le=n.node.language)!=null?le:"")),s=l.ref(!1),a=l.ref(!1),u=l.ref(!1),c=l.ref(null),f=l.ref(!0),d=l.ref(0),h=l.ref(14),p=l.ref(h.value),m=l.computed(()=>{const O=h.value,F=p.value;return typeof O=="number"&&Number.isFinite(O)&&O>0&&typeof F=="number"&&Number.isFinite(F)&&F>0}),g=l.computed(()=>{const O=i.value.trim().toLowerCase();return To[O]||O.charAt(0).toUpperCase()+O.slice(1)}),k=l.computed(()=>i.value.trim().toLowerCase()==="mermaid"),_=l.computed(()=>{const O=i.value.trim().toLowerCase();return Do(O.split(":")[0])}),y=l.computed(()=>{const O=i.value.trim().toLowerCase();return n.isShowPreview&&(O==="html"||O==="svg")}),w=l.computed(()=>{const O={},F=ge=>{if(ge!=null)return typeof ge=="number"?`${ge}px`:String(ge)},H=F(n.minWidth),se=F(n.maxWidth);return H&&(O.minWidth=H),se&&(O.maxWidth=se),O}),x=l.computed(()=>({fontSize:`${p.value}px`}));function S(){return n.isDark?n.darkTheme:n.lightTheme}let M,D,T,b=()=>{};function z(){return te(this,null,function*(){if(!D)try{const O=yield import("stream-markdown");if(D=O.createShikiStreamRenderer,T=O.registerHighlight,b=O.disposeHighlighter,T({themes:n.themes}),M=D(c.value,{theme:S()}),!n.loading){const F=i.value.split(":")[0].toLocaleLowerCase().trim();M.updateCode(n.node.code,F)}}catch(O){console.warn("[MarkdownCodeBlockNode] stream-markdown not available:",O)}})}function $(){return te(this,null,function*(){if(k.value){b(),M==null||M.dispose();return}z()})}$(),l.onMounted(()=>{$()}),l.watch(()=>n.themes,()=>te(null,null,function*(){T&&T({themes:n.themes})})),l.watch(()=>[n.node.code,n.node.language],H=>te(null,[H],function*([O,F]){if(F!==i.value&&(i.value=F.trim()),!!c.value){if(k.value){b(),M==null||M.dispose();return}M||(yield $()),!(!M||!O)&&(n.stream===!1&&n.loading||(F=F.split(":")[0].toLocaleLowerCase().trim(),M.updateCode(O,F)))}}));const U=l.watch(()=>[n.darkTheme,n.lightTheme],()=>te(null,null,function*(){if(c.value){if(k.value)return b(),M==null||M.dispose(),U();M||(yield $()),M==null||M.setTheme(S())}}));l.watch(()=>n.node.code,()=>te(null,null,function*(){if(a.value||!f.value)return;yield l.nextTick();const O=c.value;O&&O.scrollHeight>O.clientHeight&&(O.scrollTop=O.scrollHeight)}));function K(O,F=50){return O.scrollHeight-O.scrollTop-O.clientHeight<=F}function G(){const O=c.value;if(!O||a.value)return;const F=O.scrollTop;F<d.value?f.value=!1:K(O)&&(f.value=!0),d.value=F}function P(){return te(this,null,function*(){try{typeof navigator!="undefined"&&navigator.clipboard&&typeof navigator.clipboard.writeText=="function"&&(yield navigator.clipboard.writeText(n.node.code)),s.value=!0,o("copy",n.node.code),setTimeout(()=>{s.value=!1},1e3)}catch(O){console.error("Copy failed:",O)}})}function L(O){const F=O;return!F||F.disabled}function V(O,F,H="top"){if(L(O.currentTarget))return;const se=O,ge=(se==null?void 0:se.clientX)!=null&&(se==null?void 0:se.clientY)!=null?{x:se.clientX,y:se.clientY}:void 0;xn(O.currentTarget,F,H,!1,ge,n.isDark)}function j(){Rr()}function q(O){if(L(O.currentTarget))return;const F=s.value?r("common.copied")||"Copied":r("common.copy")||"Copy",H=O,se=(H==null?void 0:H.clientX)!=null&&(H==null?void 0:H.clientY)!=null?{x:H.clientX,y:H.clientY}:void 0;xn(O.currentTarget,F,"top",!1,se,n.isDark)}function Y(){a.value=!a.value;const O=c.value;O&&(a.value?(O.style.maxHeight="none",O.style.overflow="visible"):(O.style.maxHeight="500px",O.style.overflow="auto",f.value=!0,l.nextTick(()=>{O.scrollHeight>O.clientHeight&&(O.scrollTop=O.scrollHeight)})))}function ee(){u.value=!u.value}function Q(){const O=Math.min(qi,p.value+Wi);p.value=O}function oe(){const O=Math.max(Hi,p.value-Wi);p.value=O}function ne(){p.value=h.value}function ie(){if(!y.value)return;const O=(i.value||n.node.language).toLowerCase(),F=O==="html"?"text/html":"image/svg+xml",H=O==="html"?"HTML Preview":"SVG Preview";o("previewCode",{type:F,content:n.node.code,title:H})}return(O,F)=>k.value?(l.openBlock(),l.createBlock(l.unref(vn),{key:0,node:e.node,"is-dark":n.isDark,loading:n.loading},null,8,["node","is-dark","loading"])):(l.openBlock(),l.createElementBlock("div",{key:1,style:l.normalizeStyle(w.value),class:l.normalizeClass(["code-block-container my-4 rounded-lg border overflow-hidden shadow-sm",[n.isDark?"border-gray-700/30 bg-gray-900":"border-gray-200 bg-white",n.isDark?"is-dark":""]])},[n.showHeader?(l.openBlock(),l.createElementBlock("div",Rp,[l.renderSlot(O.$slots,"header-left",{},()=>[l.createElementVNode("div",Lp,[l.createElementVNode("span",{class:"icon-slot h-4 w-4 flex-shrink-0",innerHTML:_.value},null,8,Op),l.createElementVNode("span",Pp,l.toDisplayString(g.value),1)])],!0),l.renderSlot(O.$slots,"header-right",{},()=>[l.createElementVNode("div",zp,[l.createElementVNode("button",{type:"button",class:"code-action-btn p-2 text-xs rounded-md transition-colors hover:bg-[var(--vscode-editor-selectionBackground)]","aria-pressed":u.value,onClick:ee,onMouseenter:F[0]||(F[0]=H=>V(H,u.value?l.unref(r)("common.expand")||"Expand":l.unref(r)("common.collapse")||"Collapse")),onFocus:F[1]||(F[1]=H=>V(H,u.value?l.unref(r)("common.expand")||"Expand":l.unref(r)("common.collapse")||"Collapse")),onMouseleave:j,onBlur:j},[(l.openBlock(),l.createElementBlock("svg",{style:l.normalizeStyle({rotate:u.value?"0deg":"90deg"}),xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[...F[17]||(F[17]=[l.createElementVNode("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m9 18l6-6l-6-6"},null,-1)])],4))],40,Vp),n.showFontSizeButtons&&n.enableFontSizeControl?(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[l.createElementVNode("button",{type:"button",class:"code-action-btn p-2 text-xs rounded-md transition-colors hover:bg-[var(--vscode-editor-selectionBackground)]",disabled:Number.isFinite(p.value)?p.value<=Hi:!1,onClick:F[2]||(F[2]=H=>oe()),onMouseenter:F[3]||(F[3]=H=>V(H,l.unref(r)("common.decrease")||"Decrease")),onFocus:F[4]||(F[4]=H=>V(H,l.unref(r)("common.decrease")||"Decrease")),onMouseleave:j,onBlur:j},[...F[18]||(F[18]=[l.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[l.createElementVNode("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 12h14"})],-1)])],40,jp),l.createElementVNode("button",{type:"button",class:"code-action-btn p-2 text-xs rounded-md transition-colors hover:bg-[var(--vscode-editor-selectionBackground)]",disabled:!m.value||p.value===h.value,onClick:F[5]||(F[5]=H=>ne()),onMouseenter:F[6]||(F[6]=H=>V(H,l.unref(r)("common.reset")||"Reset")),onFocus:F[7]||(F[7]=H=>V(H,l.unref(r)("common.reset")||"Reset")),onMouseleave:j,onBlur:j},[...F[19]||(F[19]=[l.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[l.createElementVNode("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[l.createElementVNode("path",{d:"M3 12a9 9 0 1 0 9-9a9.75 9.75 0 0 0-6.74 2.74L3 8"}),l.createElementVNode("path",{d:"M3 3v5h5"})])],-1)])],40,Hp),l.createElementVNode("button",{type:"button",class:"code-action-btn p-2 text-xs rounded-md transition-colors hover:bg-[var(--vscode-editor-selectionBackground)]",disabled:Number.isFinite(p.value)?p.value>=qi:!1,onClick:F[8]||(F[8]=H=>Q()),onMouseenter:F[9]||(F[9]=H=>V(H,l.unref(r)("common.increase")||"Increase")),onFocus:F[10]||(F[10]=H=>V(H,l.unref(r)("common.increase")||"Increase")),onMouseleave:j,onBlur:j},[...F[20]||(F[20]=[l.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[l.createElementVNode("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 12h14m-7-7v14"})],-1)])],40,qp)],64)):l.createCommentVNode("",!0),n.showCopyButton?(l.openBlock(),l.createElementBlock("button",{key:1,type:"button",class:"code-action-btn p-2 text-xs rounded-md transition-colors hover:bg-[var(--vscode-editor-selectionBackground)]","aria-label":s.value?l.unref(r)("common.copied")||"Copied":l.unref(r)("common.copy")||"Copy",onClick:P,onMouseenter:F[11]||(F[11]=H=>q(H)),onFocus:F[12]||(F[12]=H=>q(H)),onMouseleave:j,onBlur:j},[s.value?(l.openBlock(),l.createElementBlock("svg",Kp,[...F[22]||(F[22]=[l.createElementVNode("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M20 6L9 17l-5-5"},null,-1)])])):(l.openBlock(),l.createElementBlock("svg",Up,[...F[21]||(F[21]=[l.createElementVNode("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[l.createElementVNode("rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2"}),l.createElementVNode("path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"})],-1)])]))],40,Wp)):l.createCommentVNode("",!0),n.showExpandButton?(l.openBlock(),l.createElementBlock("button",{key:2,type:"button",class:"code-action-btn p-2 text-xs rounded-md transition-colors hover:bg-[var(--vscode-editor-selectionBackground)]","aria-pressed":a.value,onClick:Y,onMouseenter:F[13]||(F[13]=H=>V(H,a.value?l.unref(r)("common.collapse")||"Collapse":l.unref(r)("common.expand")||"Expand")),onFocus:F[14]||(F[14]=H=>V(H,a.value?l.unref(r)("common.collapse")||"Collapse":l.unref(r)("common.expand")||"Expand")),onMouseleave:j,onBlur:j},[a.value?(l.openBlock(),l.createElementBlock("svg",Zp,[...F[23]||(F[23]=[l.createElementVNode("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15 3h6v6m0-6l-7 7M3 21l7-7m-1 7H3v-6"},null,-1)])])):(l.openBlock(),l.createElementBlock("svg",Yp,[...F[24]||(F[24]=[l.createElementVNode("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m14 10l7-7m-1 7h-6V4M3 21l7-7m-6 0h6v6"},null,-1)])]))],40,Xp)):l.createCommentVNode("",!0),y.value&&n.showPreviewButton?(l.openBlock(),l.createElementBlock("button",{key:3,type:"button",class:"code-action-btn p-2 text-xs rounded-md transition-colors hover:bg-[var(--vscode-editor-selectionBackground)]","aria-label":l.unref(r)("common.preview")||"Preview",onClick:ie,onMouseenter:F[15]||(F[15]=H=>V(H,l.unref(r)("common.preview")||"Preview")),onFocus:F[16]||(F[16]=H=>V(H,l.unref(r)("common.preview")||"Preview")),onMouseleave:j,onBlur:j},[...F[25]||(F[25]=[l.createElementVNode("svg",{"data-v-3d59cc65":"",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[l.createElementVNode("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[l.createElementVNode("path",{d:"M2.062 12.348a1 1 0 0 1 0-.696a10.75 10.75 0 0 1 19.876 0a1 1 0 0 1 0 .696a10.75 10.75 0 0 1-19.876 0"}),l.createElementVNode("circle",{cx:"12",cy:"12",r:"3"})])],-1)])],40,Gp)):l.createCommentVNode("",!0)])],!0)])):l.createCommentVNode("",!0),l.withDirectives(l.createElementVNode("div",{ref_key:"codeBlockContent",ref:c,class:"code-block-content",style:l.normalizeStyle(x.value),onScroll:G},null,36),[[l.vShow,!u.value&&(e.stream?!0:!e.loading)]]),l.withDirectives(l.createElementVNode("div",Jp,[l.renderSlot(O.$slots,"loading",{loading:e.loading,stream:e.stream},()=>[F[26]||(F[26]=l.createElementVNode("div",{class:"loading-skeleton"},[l.createElementVNode("div",{class:"skeleton-line"}),l.createElementVNode("div",{class:"skeleton-line"}),l.createElementVNode("div",{class:"skeleton-line short"})],-1))],!0)],512),[[l.vShow,!e.stream&&e.loading]])],6))}}),Kn=Me(Qp,[["__scopeId","data-v-9201c1b9"]]);Kn.install=e=>{e.component(Kn.__name,Kn)};let At=null,ln=null,Ui=!1;const lt=new Map,Kt=new Map,us=200;let bn=5;const mn=new Set;function Jn(){if(lt.size<bn&&mn.size){const e=Array.from(mn);mn.clear();for(const t of e)try{t()}catch(n){}}}let Lt=null;function em(e){At=e,ln=null,At.onmessage=t=>{const{id:n,html:o,error:r}=t.data,i=lt.get(n);if(i)if(lt.delete(n),clearTimeout(i.timeoutId),Jn(),r)i.reject(new Error(r));else{const{content:s,displayMode:a}=t.data;if(s){const u=`${a?"d":"i"}:${s}`;if(Kt.set(u,o),Kt.size>us){const c=Kt.keys().next().value;Kt.delete(c)}}i.resolve(o)}},At.onerror=t=>{console.error("[katexWorkerClient] Worker error:",t);for(const[n,o]of lt.entries())clearTimeout(o.timeoutId),o.reject(new Error(`Worker error: ${t.message}`));lt.clear(),Jn()}}function tm(){var e;At&&((e=At.terminate)==null||e.call(At)),At=null,ln=null}function nm(){return At||(ln=new Error("[katexWorkerClient] No worker instance set. Please inject a Worker via setKaTeXWorker()."),ln.name="WorkerInitError",ln.code="WORKER_INIT_ERROR",null)}function rm(e){Ui=!!e,At&&At.postMessage({type:"init",debug:Ui})}function ds(e,t=!0,n=2e3,o){return te(this,null,function*(){const r=performance.now();if(ln)return Promise.reject(ln);const i=`${t?"d":"i"}:${e}`,s=Kt.get(i);if(s)return Lt&&Lt.recordRender({type:"cache-hit",duration:performance.now()-r,formulaLength:e.length,timestamp:Date.now(),success:!0}),Promise.resolve(s);const a=nm();if(!a)return Promise.reject(ln);if(lt.size>=bn){const u=new Error("Worker busy");return u.name="WorkerBusy",u.code="WORKER_BUSY",u.busy=!0,u.inFlight=lt.size,u.max=bn,Lt&&Lt.recordRender({type:"worker",duration:performance.now()-r,formulaLength:e.length,timestamp:Date.now(),success:!1,error:"busy"}),Promise.reject(u)}return new Promise((u,c)=>{if(o!=null&&o.aborted){const _=new Error("Aborted");_.name="AbortError",c(_);return}const f=Math.random().toString(36).slice(2),d=globalThis.setTimeout(()=>{lt.delete(f);const _=new Error("Worker render timed out");_.name="WorkerTimeout",_.code="WORKER_TIMEOUT",Lt&&Lt.recordRender({type:"worker",duration:performance.now()-r,formulaLength:e.length,timestamp:Date.now(),success:!1,error:"timeout"}),c(_),Jn()},n),h=()=>{globalThis.clearTimeout(d),lt.has(f)&<.delete(f);const _=new Error("Aborted");_.name="AbortError",c(_),Jn()};o&&o.addEventListener("abort",h,{once:!0});const p=u,m=c,g=_=>{Lt&&Lt.recordRender({type:"worker",duration:performance.now()-r,formulaLength:e.length,timestamp:Date.now(),success:!0}),p(_)},k=_=>{Lt&&Lt.recordRender({type:"worker",duration:performance.now()-r,formulaLength:e.length,timestamp:Date.now(),success:!1,error:(_==null?void 0:_.message)||String(_)}),m(_)};lt.set(f,{resolve:g,reject:k,timeoutId:d}),a.postMessage({id:f,content:e,displayMode:t})})})}function $o(e,t=!0,n){const o=`${t?"d":"i"}:${e}`;if(Kt.set(o,n),Kt.size>us){const r=Kt.keys().next().value;Kt.delete(r)}}function om(){return{inFlight:lt.size,max:bn}}function im(e){Number.isFinite(e)&&e>0&&(bn=Math.floor(e))}const Pr="WORKER_BUSY";function lm(){return lt.size>=bn}function fs(e=2e3,t){return lt.size<bn?Promise.resolve():new Promise((n,o)=>{let r=!1,i;const s=()=>{r||(r=!0,i&&globalThis.clearTimeout(i),mn.delete(s),n())};if(mn.add(s),i=globalThis.setTimeout(()=>{if(r)return;r=!0,mn.delete(s);const a=new Error("Wait for worker slot timed out");a.name="WorkerBusyTimeout",a.code="WORKER_BUSY_TIMEOUT",o(a)},e),queueMicrotask(()=>Jn()),t){const a=()=>{if(r)return;r=!0,i&&globalThis.clearTimeout(i),mn.delete(s);const u=new Error("Aborted");u.name="AbortError",o(u)};t.aborted?a():t.addEventListener("abort",a,{once:!0})}})}const Xt={timeout:2e3,waitTimeout:1500,backoffMs:30,maxRetries:1};function sm(e){e.timeout!=null&&(Xt.timeout=Math.max(0,Math.floor(e.timeout))),e.waitTimeout!=null&&(Xt.waitTimeout=Math.max(0,Math.floor(e.waitTimeout))),e.backoffMs!=null&&(Xt.backoffMs=Math.max(0,Math.floor(e.backoffMs))),e.maxRetries!=null&&(Xt.maxRetries=Math.max(0,Math.floor(e.maxRetries)))}function am(){return re({},Xt)}function No(o){return te(this,arguments,function*(e,t=!0,n={}){var f,d,h,p;const r=(f=n.timeout)!=null?f:Xt.timeout,i=(d=n.waitTimeout)!=null?d:Xt.waitTimeout,s=(h=n.backoffMs)!=null?h:Xt.backoffMs,a=(p=n.maxRetries)!=null?p:Xt.maxRetries,u=n.signal;let c=0;for(;;){if(u!=null&&u.aborted){const m=new Error("Aborted");throw m.name="AbortError",m}try{return yield ds(e,t,r,u)}catch(m){if((m==null?void 0:m.code)!==Pr||c>=a)throw m;if(c++,yield fs(i,u).catch(()=>{}),u!=null&&u.aborted){const g=new Error("Aborted");throw g.name="AbortError",g}s>0&&(yield new Promise(g=>globalThis.setTimeout(g,s*c)))}}})}const cm={key:0,class:"math-loading-overlay"},um=l.defineComponent({__name:"MathBlockNode",props:{node:{}},setup(e){const t=e;let n=null;const o=l.ref(null),r=l.ref(null);let i=!1,s=0,a=!1,u=null;const c=jn();let f=null;const d=l.ref(!0);function h(){return te(this,null,function*(){if(!t.node.content||!r.value||a)return;if(!i)try{!f&&o.value&&(f=c(o.value)),yield f==null?void 0:f.whenVisible}catch(g){}u&&(u.abort(),u=null);const p=++s,m=new AbortController;u=m,No(t.node.content,!0,{timeout:3e3,waitTimeout:2e3,maxRetries:1,signal:m.signal}).then(g=>{a||p!==s||r.value&&(r.value.innerHTML=g,i=!0,d.value=!1)}).catch(g=>te(null,null,function*(){if(a||p!==s||!r.value)return;const k=(g==null?void 0:g.code)||(g==null?void 0:g.name);if((k==="WORKER_INIT_ERROR"||(g==null?void 0:g.fallbackToRenderer)||(k===Pr||k==="WORKER_TIMEOUT"))&&(n||(n=yield er()),n)){try{const w=n.renderToString(t.node.content,{throwOnError:t.node.loading,displayMode:!0});r.value.innerHTML=w,i=!0,d.value=!1,$o(t.node.content,!0,w)}catch(w){}return}i||(d.value=!0),t.node.loading||(d.value=!1,r.value.textContent=t.node.raw)}))})}return l.watch(()=>t.node.content,()=>{h()}),l.onMounted(()=>{h()}),l.onBeforeUnmount(()=>{var p;a=!0,u&&(u.abort(),u=null),(p=f==null?void 0:f.destroy)==null||p.call(f),f=null}),(p,m)=>(l.openBlock(),l.createElementBlock("div",{ref_key:"containerEl",ref:o,class:"math-block text-center overflow-x-auto relative min-h-[40px]"},[l.createVNode(l.Transition,{name:"math-fade"},{default:l.withCtx(()=>[d.value?(l.openBlock(),l.createElementBlock("div",cm,[...m[0]||(m[0]=[l.createElementVNode("div",{class:"math-loading-spinner"},null,-1)])])):l.createCommentVNode("",!0)]),_:1}),l.createElementVNode("div",{ref_key:"mathBlockElement",ref:r,class:l.normalizeClass({"math-rendering":d.value})},null,2)],512))}}),Ln=Me(um,[["__scopeId","data-v-2e076ab9"]]);Ln.install=e=>{e.component(Ln.__name,Ln)};const dm=Object.freeze(Object.defineProperty({__proto__:null,default:Ln},Symbol.toStringTag,{value:"Module"})),fm={class:"math-inline__loading",role:"status","aria-live":"polite"},hm=l.defineComponent({__name:"MathInlineNode",props:{node:{}},setup(e){const t=e;let n=null;const o=l.ref(null),r=l.ref(null);let i=!1,s=0,a=!1,u=null;const c=l.ref(!0),f=jn();let d=null;function h(){return te(this,null,function*(){if(!t.node.content||!r.value||a)return;u&&(u.abort(),u=null);const p=++s,m=new AbortController;if(u=m,!i)try{!d&&o.value&&(d=f(o.value)),yield d==null?void 0:d.whenVisible}catch(g){}No(t.node.content,!1,{timeout:1500,waitTimeout:0,maxRetries:0,signal:m.signal}).then(g=>{a||p!==s||r.value&&(r.value.innerHTML=g,c.value=!1,i=!0)}).catch(g=>te(null,null,function*(){if(a||p!==s||!r.value)return;const k=(g==null?void 0:g.code)||(g==null?void 0:g.name);if((k==="WORKER_INIT_ERROR"||(g==null?void 0:g.fallbackToRenderer)||(k===Pr||k==="WORKER_TIMEOUT"))&&(n||(n=yield er()),n)){try{const w=n.renderToString(t.node.content,{throwOnError:t.node.loading,displayMode:!1});c.value=!1,r.value.innerHTML=w,i=!0,$o(t.node.content,!1,w)}catch(w){}return}i||(c.value=!0),t.node.loading||(c.value=!1,r.value.textContent=t.node.raw)}))})}return l.watch(()=>t.node.content,()=>{h()}),l.onMounted(()=>{h()}),l.onBeforeUnmount(()=>{var p;a=!0,u&&(u.abort(),u=null),(p=d==null?void 0:d.destroy)==null||p.call(d),d=null}),(p,m)=>(l.openBlock(),l.createElementBlock("span",{ref_key:"containerEl",ref:o,class:"math-inline-wrapper"},[l.withDirectives(l.createElementVNode("span",{ref_key:"mathElement",ref:r,class:"math-inline"},null,512),[[l.vShow,!c.value]]),c.value?(l.openBlock(),l.createBlock(l.Transition,{key:0,name:"table-node-fade"},{default:l.withCtx(()=>[l.createElementVNode("span",fm,[l.renderSlot(p.$slots,"loading",{isLoading:c.value},()=>[m[0]||(m[0]=l.createElementVNode("span",{class:"math-inline__spinner animate-spin","aria-hidden":"true"},null,-1)),m[1]||(m[1]=l.createElementVNode("span",{class:"sr-only"},"Loading",-1))],!0)])]),_:3})):l.createCommentVNode("",!0)],512))}}),On=Me(hm,[["__scopeId","data-v-6b23009e"]]);On.install=e=>{e.component(On.__name,On)};const pm=Object.freeze(Object.defineProperty({__proto__:null,default:On},Symbol.toStringTag,{value:"Module"})),mm={AdmonitionNode:Fn,BlockquoteNode:Sn,CheckboxNode:Dt,CodeBlockNode:Rn,DefinitionListNode:Mn,EmojiNode:et,FootnoteNode:Bn,FootnoteReferenceNode:at,HardBreakNode:tn,HeadingNode:Or,HighlightNode:ft,ImageNode:nn,InlineCodeNode:tt,PreCodeNode:on,InsertNode:dt,LinkNode:it,ListItemNode:Dn,ListNode:Tn,MathBlockNode:Ln,MathInlineNode:On,MermaidBlockNode:vn,ParagraphNode:$n,StrikethroughNode:ot,StrongNode:rt,SubscriptNode:ut,SuperscriptNode:ct,TableNode:Nn,TextNode:Xe,ThematicBreakNode:In,ReferenceNode:nt,MarkdownCodeBlockNode:Kn},gm={install(e,t){Object.entries(mm).forEach(([n,o])=>{e.component(n,o)}),t!=null&&t.getLanguageIcon&&cs(t.getLanguageIcon),t!=null&&t.mathOptions&&xl(t.mathOptions)}};exports.AdmonitionNode=Fn;exports.BlockquoteNode=Sn;exports.CheckboxNode=Dt;exports.CodeBlockNode=Rn;exports.DefinitionListNode=Mn;exports.ESCAPED_TEX_BRACE_COMMANDS=Xn;exports.EmojiNode=et;exports.FootnoteNode=Bn;exports.FootnoteReferenceNode=at;exports.HardBreakNode=tn;exports.HeadingNode=Or;exports.HighlightNode=ft;exports.ImageNode=nn;exports.InlineCodeNode=tt;exports.InsertNode=dt;exports.KATEX_COMMANDS=xo;exports.LinkNode=it;exports.ListItemNode=Dn;exports.ListNode=Tn;exports.MERMAID_WORKER_BUSY_CODE=os;exports.MarkdownCodeBlockNode=Kn;exports.MarkdownRender=st;exports.MathBlockNode=Ln;exports.MathInlineNode=On;exports.MermaidBlockNode=vn;exports.ParagraphNode=$n;exports.PreCodeNode=on;exports.ReferenceNode=nt;exports.StrikethroughNode=ot;exports.StrongNode=rt;exports.SubscriptNode=ut;exports.SuperscriptNode=ct;exports.TEX_BRACE_COMMANDS=Cl;exports.TableNode=Nn;exports.TextNode=Xe;exports.ThematicBreakNode=In;exports.VueRendererMarkdown=gm;exports.WORKER_BUSY_CODE=Pr;exports.applyContainers=bl;exports.applyMath=Al;exports.canParseOffthread=ls;exports.clearGlobalCustomComponents=bf;exports.clearKaTeXWorker=tm;exports.clearMermaidWorker=k1;exports.clearRegisteredMarkdownPlugins=af;exports.default=st;exports.findMatchingClose=_l;exports.findPrefixOffthread=ss;exports.getCustomNodeComponents=gt;exports.getKaTeXBackpressureDefaults=am;exports.getKaTeXWorkerLoad=om;exports.getLanguageIcon=Do;exports.getMarkdown=Ol;exports.getMermaidWorkerLoad=m1;exports.getUseMonaco=as;exports.isKaTeXWorkerBusy=lm;exports.isMathLike=hr;exports.languageMap=To;exports.normalizeStandaloneBackslashT=pn;exports.parseFenceToken=zn;exports.parseInlineTokens=Ve;exports.parseMarkdownToStructure=Ll;exports.processTokens=oo;exports.registerMarkdownPlugin=sf;exports.removeCustomComponents=xf;exports.renderKaTeXInWorker=ds;exports.renderKaTeXWithBackpressure=No;exports.setCustomComponents=yf;exports.setDefaultI18nMap=Jh;exports.setDefaultMathOptions=xl;exports.setKaTeXBackpressureDefaults=sm;exports.setKaTeXCache=$o;exports.setKaTeXWorker=em;exports.setKaTeXWorkerDebug=rm;exports.setKaTeXWorkerMaxConcurrency=im;exports.setLanguageIconResolver=cs;exports.setMermaidWorker=g1;exports.setMermaidWorkerClientDebug=h1;exports.setMermaidWorkerMaxConcurrency=p1;exports.terminateWorker=co;exports.waitForKaTeXWorkerSlot=fs;
|