ep-lib-ts 1.0.4 → 1.0.5

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.
Files changed (100) hide show
  1. package/dist/BgAudio-Bz6aPUrZ.js +4 -0
  2. package/dist/DisplayBox-B7EYuWTN.js +4 -0
  3. package/dist/EpAlert-DCZ6DiMo.js +4 -0
  4. package/dist/EpAudio-DkM9fjmw.js +4 -0
  5. package/dist/EpBadge-CY0YoXxs.js +4 -0
  6. package/dist/EpBarChart-DJeIqz8f.js +4 -0
  7. package/dist/EpBtn-Bdld4mlP.js +4 -0
  8. package/dist/EpCard-vA65yxkZ.js +4 -0
  9. package/dist/EpChip-DfM8BIuk.js +4 -0
  10. package/dist/EpContentSlider-C_c1OeHV.js +4 -0
  11. package/dist/EpDivider-Ca6DbpJs.js +4 -0
  12. package/dist/EpEdu-CtxBXkGE.js +4 -0
  13. package/dist/EpFlex-BReEWQoW.js +4 -0
  14. package/dist/EpFunnelChart-Ch-dprll.js +4 -0
  15. package/dist/EpHeader-u8-Q9UwT.js +4 -0
  16. package/dist/{EpHover-D3o7-8F6.js → EpHover-CGtVjFli.js} +1 -1
  17. package/dist/EpIcon-CvvMgRw9.js +4 -0
  18. package/dist/EpIframe-BLu6Nhfj.js +4 -0
  19. package/dist/EpImg-DsxiqbDu.js +4 -0
  20. package/dist/{EpInput-DtqEfGYC.js → EpInput-BlwqQ8GO.js} +1 -1
  21. package/dist/EpLineChart-DSoKvkMi.js +4 -0
  22. package/dist/EpLink-6X0q9juy.js +4 -0
  23. package/dist/EpLinkVersion-CTq-NTLq.js +4 -0
  24. package/dist/{EpList-gjrvWauh.js → EpList-CzlKDgP3.js} +1 -1
  25. package/dist/EpModal-CXOvBxNP.js +4 -0
  26. package/dist/{EpNothing-Di7BP_gj.js → EpNothing-CXDeB2Xh.js} +1 -1
  27. package/dist/EpPieChart-vDhYE00b.js +4 -0
  28. package/dist/EpQuestion-D-9FxFL6.js +4 -0
  29. package/dist/EpQuote-H6SRcev1.js +4 -0
  30. package/dist/EpRadio-CE-j3WNH.js +4 -0
  31. package/dist/EpRadioSummative-CzssksYf.js +4 -0
  32. package/dist/EpReading-BwFuRUX0.js +4 -0
  33. package/dist/EpResource-DpdLV5X_.js +4 -0
  34. package/dist/EpScope-TsPj_Kwq.js +4 -0
  35. package/dist/EpSection-DQ1dy14X.js +4 -0
  36. package/dist/{EpSelect-DRPIgo_k.js → EpSelect-DN7s_Aty.js} +1 -1
  37. package/dist/EpSkeleton-BDPfEznW.js +4 -0
  38. package/dist/EpSoftware-ClsoVdd5.js +4 -0
  39. package/dist/EpSpinner-vo13Q_qa.js +4 -0
  40. package/dist/EpSummativeTable-DsqZCxwk.js +4 -0
  41. package/dist/EpSvg-BdM22Kv5.js +4 -0
  42. package/dist/EpTable-C88t_8Ty.js +4 -0
  43. package/dist/EpTerm-BhaC_QJL.js +4 -0
  44. package/dist/EpText-CrZ6bzKd.js +4 -0
  45. package/dist/EpTimeLine-BFgDubiK.js +4 -0
  46. package/dist/EpVideo-IKtqXyPs.js +4 -0
  47. package/dist/EpVideoPanopto-Z2CQoaIu.js +4 -0
  48. package/dist/EpWordDef-CkFC1G8H.js +4 -0
  49. package/dist/components/basics/EpText.vue.d.ts +4 -4
  50. package/dist/components/interactions/EpAccordeon.vue.d.ts +4 -12
  51. package/dist/ep-lib-ts.js +1 -1
  52. package/dist/ep-lib-ts.umd.cjs +1 -1
  53. package/dist/{index-BPsMiFm1.js → index-Skmdww7c.js} +396 -398
  54. package/dist/style.css +1 -1
  55. package/package.json +1 -1
  56. package/src/components/basics/EpText.vue +3 -3
  57. package/src/components/interactions/EpAccordeon.vue +4 -10
  58. package/dist/BgAudio-C9b05zDe.js +0 -4
  59. package/dist/DisplayBox-DwV5vdf4.js +0 -4
  60. package/dist/EpAlert-DEERqegj.js +0 -4
  61. package/dist/EpAudio-D1Pergv3.js +0 -4
  62. package/dist/EpBadge-CXG9CCs-.js +0 -4
  63. package/dist/EpBarChart-DqcfpObW.js +0 -4
  64. package/dist/EpBtn-CjpUqmnk.js +0 -4
  65. package/dist/EpCard-D2Yuf56Q.js +0 -4
  66. package/dist/EpChip-1BDl9148.js +0 -4
  67. package/dist/EpContentSlider-G24sedKV.js +0 -4
  68. package/dist/EpDivider-By54laP-.js +0 -4
  69. package/dist/EpEdu-D_vwhqgL.js +0 -4
  70. package/dist/EpFlex-C8FUteog.js +0 -4
  71. package/dist/EpFunnelChart-vUi3II3g.js +0 -4
  72. package/dist/EpHeader-IOUvF-no.js +0 -4
  73. package/dist/EpIcon-C5N1EmKo.js +0 -4
  74. package/dist/EpIframe-DlYnZzA2.js +0 -4
  75. package/dist/EpImg-DBdJTFxB.js +0 -4
  76. package/dist/EpLineChart-DHRVciuH.js +0 -4
  77. package/dist/EpLink-BA65sB5T.js +0 -4
  78. package/dist/EpLinkVersion-DJWO90l3.js +0 -4
  79. package/dist/EpModal-Bkn0UYrU.js +0 -4
  80. package/dist/EpPieChart-ep1v3gNm.js +0 -4
  81. package/dist/EpQuestion-BIz290OE.js +0 -4
  82. package/dist/EpQuote-C7vFc3nU.js +0 -4
  83. package/dist/EpRadio-DZTarnBT.js +0 -4
  84. package/dist/EpRadioSummative-CorOWGOQ.js +0 -4
  85. package/dist/EpReading-DMtuDG_x.js +0 -4
  86. package/dist/EpResource-BYf45kWh.js +0 -4
  87. package/dist/EpScope-Ba2Q1Ff_.js +0 -4
  88. package/dist/EpSection-DscmvV47.js +0 -4
  89. package/dist/EpSkeleton-CI5AEDN9.js +0 -4
  90. package/dist/EpSoftware-DqR9_72s.js +0 -4
  91. package/dist/EpSpinner-BYYDdBAv.js +0 -4
  92. package/dist/EpSummativeTable-DYj6fOso.js +0 -4
  93. package/dist/EpSvg-qV8Jv7hA.js +0 -4
  94. package/dist/EpTable-CIXtqslP.js +0 -4
  95. package/dist/EpTerm-zVklM1Ty.js +0 -4
  96. package/dist/EpText-DlG9XQYl.js +0 -4
  97. package/dist/EpTimeLine-8okBy26f.js +0 -4
  98. package/dist/EpVideo-CMhul8b_.js +0 -4
  99. package/dist/EpVideoPanopto-CB7xf6qs.js +0 -4
  100. package/dist/EpWordDef-Ctx-w2Ll.js +0 -4
@@ -13,7 +13,7 @@
13
13
  `:">",o},fn.prototype.renderInline=function(t,e,n){let r="";const i=this.rules;for(let o=0,s=t.length;o<s;o++){const l=t[o].type;typeof i[l]<"u"?r+=i[l](t,o,e,n,this):r+=this.renderToken(t,o,e)}return r},fn.prototype.renderInlineAsText=function(t,e,n){let r="";for(let i=0,o=t.length;i<o;i++)switch(t[i].type){case"text":r+=t[i].content;break;case"image":r+=this.renderInlineAsText(t[i].children,e,n);break;case"html_inline":case"html_block":r+=t[i].content;break;case"softbreak":case"hardbreak":r+=`
14
14
  `;break}return r},fn.prototype.render=function(t,e,n){let r="";const i=this.rules;for(let o=0,s=t.length;o<s;o++){const l=t[o].type;l==="inline"?r+=this.renderInline(t[o].children,e,n):typeof i[l]<"u"?r+=i[l](t,o,e,n,this):r+=this.renderToken(t,o,e,n)}return r};function it(){this.__rules__=[],this.__cache__=null}it.prototype.__find__=function(t){for(let e=0;e<this.__rules__.length;e++)if(this.__rules__[e].name===t)return e;return-1},it.prototype.__compile__=function(){const t=this,e=[""];t.__rules__.forEach(function(n){n.enabled&&n.alt.forEach(function(r){e.indexOf(r)<0&&e.push(r)})}),t.__cache__={},e.forEach(function(n){t.__cache__[n]=[],t.__rules__.forEach(function(r){r.enabled&&(n&&r.alt.indexOf(n)<0||t.__cache__[n].push(r.fn))})})},it.prototype.at=function(t,e,n){const r=this.__find__(t),i=n||{};if(r===-1)throw new Error("Parser rule not found: "+t);this.__rules__[r].fn=e,this.__rules__[r].alt=i.alt||[],this.__cache__=null},it.prototype.before=function(t,e,n,r){const i=this.__find__(t),o=r||{};if(i===-1)throw new Error("Parser rule not found: "+t);this.__rules__.splice(i,0,{name:e,enabled:!0,fn:n,alt:o.alt||[]}),this.__cache__=null},it.prototype.after=function(t,e,n,r){const i=this.__find__(t),o=r||{};if(i===-1)throw new Error("Parser rule not found: "+t);this.__rules__.splice(i+1,0,{name:e,enabled:!0,fn:n,alt:o.alt||[]}),this.__cache__=null},it.prototype.push=function(t,e,n){const r=n||{};this.__rules__.push({name:t,enabled:!0,fn:e,alt:r.alt||[]}),this.__cache__=null},it.prototype.enable=function(t,e){Array.isArray(t)||(t=[t]);const n=[];return t.forEach(function(r){const i=this.__find__(r);if(i<0){if(e)return;throw new Error("Rules manager: invalid rule name "+r)}this.__rules__[i].enabled=!0,n.push(r)},this),this.__cache__=null,n},it.prototype.enableOnly=function(t,e){Array.isArray(t)||(t=[t]),this.__rules__.forEach(function(n){n.enabled=!1}),this.enable(t,e)},it.prototype.disable=function(t,e){Array.isArray(t)||(t=[t]);const n=[];return t.forEach(function(r){const i=this.__find__(r);if(i<0){if(e)return;throw new Error("Rules manager: invalid rule name "+r)}this.__rules__[i].enabled=!1,n.push(r)},this),this.__cache__=null,n},it.prototype.getRules=function(t){return this.__cache__===null&&this.__compile__(),this.__cache__[t]||[]};function yt(t,e,n){this.type=t,this.tag=e,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}yt.prototype.attrIndex=function(e){if(!this.attrs)return-1;const n=this.attrs;for(let r=0,i=n.length;r<i;r++)if(n[r][0]===e)return r;return-1},yt.prototype.attrPush=function(e){this.attrs?this.attrs.push(e):this.attrs=[e]},yt.prototype.attrSet=function(e,n){const r=this.attrIndex(e),i=[e,n];r<0?this.attrPush(i):this.attrs[r]=i},yt.prototype.attrGet=function(e){const n=this.attrIndex(e);let r=null;return n>=0&&(r=this.attrs[n][1]),r},yt.prototype.attrJoin=function(e,n){const r=this.attrIndex(e);r<0?this.attrPush([e,n]):this.attrs[r][1]=this.attrs[r][1]+" "+n};function Ou(t,e,n){this.src=t,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=e}Ou.prototype.Token=yt;const Xb=/\r\n?|\n/g,Zb=/\0/g;function Jb(t){let e;e=t.src.replace(Xb,`
15
15
  `),e=e.replace(Zb,"�"),t.src=e}function ef(t){let e;t.inlineMode?(e=new t.Token("inline","",0),e.content=t.src,e.map=[0,1],e.children=[],t.tokens.push(e)):t.md.block.parse(t.src,t.md,t.env,t.tokens)}function tf(t){const e=t.tokens;for(let n=0,r=e.length;n<r;n++){const i=e[n];i.type==="inline"&&t.md.inline.parse(i.content,t.md,t.env,i.children)}}function nf(t){return/^<a[>\s]/i.test(t)}function rf(t){return/^<\/a\s*>/i.test(t)}function af(t){const e=t.tokens;if(t.md.options.linkify)for(let n=0,r=e.length;n<r;n++){if(e[n].type!=="inline"||!t.md.linkify.pretest(e[n].content))continue;let i=e[n].children,o=0;for(let s=i.length-1;s>=0;s--){const l=i[s];if(l.type==="link_close"){for(s--;i[s].level!==l.level&&i[s].type!=="link_open";)s--;continue}if(l.type==="html_inline"&&(nf(l.content)&&o>0&&o--,rf(l.content)&&o++),!(o>0)&&l.type==="text"&&t.md.linkify.test(l.content)){const c=l.content;let u=t.md.linkify.match(c);const d=[];let p=l.level,m=0;u.length>0&&u[0].index===0&&s>0&&i[s-1].type==="text_special"&&(u=u.slice(1));for(let g=0;g<u.length;g++){const b=u[g].url,f=t.md.normalizeLink(b);if(!t.md.validateLink(f))continue;let E=u[g].text;u[g].schema?u[g].schema==="mailto:"&&!/^mailto:/i.test(E)?E=t.md.normalizeLinkText("mailto:"+E).replace(/^mailto:/,""):E=t.md.normalizeLinkText(E):E=t.md.normalizeLinkText("http://"+E).replace(/^http:\/\//,"");const R=u[g].index;if(R>m){const N=new t.Token("text","",0);N.content=c.slice(m,R),N.level=p,d.push(N)}const v=new t.Token("link_open","a",1);v.attrs=[["href",f]],v.level=p++,v.markup="linkify",v.info="auto",d.push(v);const y=new t.Token("text","",0);y.content=E,y.level=p,d.push(y);const C=new t.Token("link_close","a",-1);C.level=--p,C.markup="linkify",C.info="auto",d.push(C),m=u[g].lastIndex}if(m<c.length){const g=new t.Token("text","",0);g.content=c.slice(m),g.level=p,d.push(g)}e[n].children=i=Nu(i,s,d)}}}}const ku=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,of=/\((c|tm|r)\)/i,sf=/\((c|tm|r)\)/ig,lf={c:"©",r:"®",tm:"™"};function cf(t,e){return lf[e.toLowerCase()]}function uf(t){let e=0;for(let n=t.length-1;n>=0;n--){const r=t[n];r.type==="text"&&!e&&(r.content=r.content.replace(sf,cf)),r.type==="link_open"&&r.info==="auto"&&e--,r.type==="link_close"&&r.info==="auto"&&e++}}function df(t){let e=0;for(let n=t.length-1;n>=0;n--){const r=t[n];r.type==="text"&&!e&&ku.test(r.content)&&(r.content=r.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1—").replace(/(^|\s)--(?=\s|$)/mg,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1–")),r.type==="link_open"&&r.info==="auto"&&e--,r.type==="link_close"&&r.info==="auto"&&e++}}function pf(t){let e;if(t.md.options.typographer)for(e=t.tokens.length-1;e>=0;e--)t.tokens[e].type==="inline"&&(of.test(t.tokens[e].content)&&uf(t.tokens[e].children),ku.test(t.tokens[e].content)&&df(t.tokens[e].children))}const _f=/['"]/,xu=/['"]/g,Iu="’";function ur(t,e,n){return t.slice(0,e)+n+t.slice(e+1)}function mf(t,e){let n;const r=[];for(let i=0;i<t.length;i++){const o=t[i],s=t[i].level;for(n=r.length-1;n>=0&&!(r[n].level<=s);n--);if(r.length=n+1,o.type!=="text")continue;let l=o.content,c=0,u=l.length;e:for(;c<u;){xu.lastIndex=c;const d=xu.exec(l);if(!d)break;let p=!0,m=!0;c=d.index+1;const g=d[0]==="'";let b=32;if(d.index-1>=0)b=l.charCodeAt(d.index-1);else for(n=i-1;n>=0&&!(t[n].type==="softbreak"||t[n].type==="hardbreak");n--)if(t[n].content){b=t[n].content.charCodeAt(t[n].content.length-1);break}let f=32;if(c<u)f=l.charCodeAt(c);else for(n=i+1;n<t.length&&!(t[n].type==="softbreak"||t[n].type==="hardbreak");n++)if(t[n].content){f=t[n].content.charCodeAt(0);break}const E=Fn(b)||Bn(String.fromCharCode(b)),R=Fn(f)||Bn(String.fromCharCode(f)),v=Pn(b),y=Pn(f);if(y?p=!1:R&&(v||E||(p=!1)),v?m=!1:E&&(y||R||(m=!1)),f===34&&d[0]==='"'&&b>=48&&b<=57&&(m=p=!1),p&&m&&(p=E,m=R),!p&&!m){g&&(o.content=ur(o.content,d.index,Iu));continue}if(m)for(n=r.length-1;n>=0;n--){let C=r[n];if(r[n].level<s)break;if(C.single===g&&r[n].level===s){C=r[n];let N,A;g?(N=e.md.options.quotes[2],A=e.md.options.quotes[3]):(N=e.md.options.quotes[0],A=e.md.options.quotes[1]),o.content=ur(o.content,d.index,A),t[C.token].content=ur(t[C.token].content,C.pos,N),c+=A.length-1,C.token===i&&(c+=N.length-1),l=o.content,u=l.length,r.length=n;continue e}}p?r.push({token:i,pos:d.index,single:g,level:s}):m&&g&&(o.content=ur(o.content,d.index,Iu))}}}function gf(t){if(t.md.options.typographer)for(let e=t.tokens.length-1;e>=0;e--)t.tokens[e].type!=="inline"||!_f.test(t.tokens[e].content)||mf(t.tokens[e].children,t)}function hf(t){let e,n;const r=t.tokens,i=r.length;for(let o=0;o<i;o++){if(r[o].type!=="inline")continue;const s=r[o].children,l=s.length;for(e=0;e<l;e++)s[e].type==="text_special"&&(s[e].type="text");for(e=n=0;e<l;e++)s[e].type==="text"&&e+1<l&&s[e+1].type==="text"?s[e+1].content=s[e].content+s[e+1].content:(e!==n&&(s[n]=s[e]),n++);e!==n&&(s.length=n)}}const ra=[["normalize",Jb],["block",ef],["inline",tf],["linkify",af],["replacements",pf],["smartquotes",gf],["text_join",hf]];function aa(){this.ruler=new it;for(let t=0;t<ra.length;t++)this.ruler.push(ra[t][0],ra[t][1])}aa.prototype.process=function(t){const e=this.ruler.getRules("");for(let n=0,r=e.length;n<r;n++)e[n](t)},aa.prototype.State=Ou;function At(t,e,n,r){this.src=t,this.md=e,this.env=n,this.tokens=r,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0;const i=this.src;for(let o=0,s=0,l=0,c=0,u=i.length,d=!1;s<u;s++){const p=i.charCodeAt(s);if(!d)if(Pe(p)){l++,p===9?c+=4-c%4:c++;continue}else d=!0;(p===10||s===u-1)&&(p!==10&&s++,this.bMarks.push(o),this.eMarks.push(s),this.tShift.push(l),this.sCount.push(c),this.bsCount.push(0),d=!1,l=0,c=0,o=s+1)}this.bMarks.push(i.length),this.eMarks.push(i.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}At.prototype.push=function(t,e,n){const r=new yt(t,e,n);return r.block=!0,n<0&&this.level--,r.level=this.level,n>0&&this.level++,this.tokens.push(r),r},At.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]},At.prototype.skipEmptyLines=function(e){for(let n=this.lineMax;e<n&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e},At.prototype.skipSpaces=function(e){for(let n=this.src.length;e<n;e++){const r=this.src.charCodeAt(e);if(!Pe(r))break}return e},At.prototype.skipSpacesBack=function(e,n){if(e<=n)return e;for(;e>n;)if(!Pe(this.src.charCodeAt(--e)))return e+1;return e},At.prototype.skipChars=function(e,n){for(let r=this.src.length;e<r&&this.src.charCodeAt(e)===n;e++);return e},At.prototype.skipCharsBack=function(e,n,r){if(e<=r)return e;for(;e>r;)if(n!==this.src.charCodeAt(--e))return e+1;return e},At.prototype.getLines=function(e,n,r,i){if(e>=n)return"";const o=new Array(n-e);for(let s=0,l=e;l<n;l++,s++){let c=0;const u=this.bMarks[l];let d=u,p;for(l+1<n||i?p=this.eMarks[l]+1:p=this.eMarks[l];d<p&&c<r;){const m=this.src.charCodeAt(d);if(Pe(m))m===9?c+=4-(c+this.bsCount[l])%4:c++;else if(d-u<this.tShift[l])c++;else break;d++}c>r?o[s]=new Array(c-r+1).join(" ")+this.src.slice(d,p):o[s]=this.src.slice(d,p)}return o.join("")},At.prototype.Token=yt;const bf=65536;function ia(t,e){const n=t.bMarks[e]+t.tShift[e],r=t.eMarks[e];return t.src.slice(n,r)}function Du(t){const e=[],n=t.length;let r=0,i=t.charCodeAt(r),o=!1,s=0,l="";for(;r<n;)i===124&&(o?(l+=t.substring(s,r-1),s=r):(e.push(l+t.substring(s,r)),l="",s=r+1)),o=i===92,r++,i=t.charCodeAt(r);return e.push(l+t.substring(s)),e}function ff(t,e,n,r){if(e+2>n)return!1;let i=e+1;if(t.sCount[i]<t.blkIndent||t.sCount[i]-t.blkIndent>=4)return!1;let o=t.bMarks[i]+t.tShift[i];if(o>=t.eMarks[i])return!1;const s=t.src.charCodeAt(o++);if(s!==124&&s!==45&&s!==58||o>=t.eMarks[i])return!1;const l=t.src.charCodeAt(o++);if(l!==124&&l!==45&&l!==58&&!Pe(l)||s===45&&Pe(l))return!1;for(;o<t.eMarks[i];){const C=t.src.charCodeAt(o);if(C!==124&&C!==45&&C!==58&&!Pe(C))return!1;o++}let c=ia(t,e+1),u=c.split("|");const d=[];for(let C=0;C<u.length;C++){const N=u[C].trim();if(!N){if(C===0||C===u.length-1)continue;return!1}if(!/^:?-+:?$/.test(N))return!1;N.charCodeAt(N.length-1)===58?d.push(N.charCodeAt(0)===58?"center":"right"):N.charCodeAt(0)===58?d.push("left"):d.push("")}if(c=ia(t,e).trim(),c.indexOf("|")===-1||t.sCount[e]-t.blkIndent>=4)return!1;u=Du(c),u.length&&u[0]===""&&u.shift(),u.length&&u[u.length-1]===""&&u.pop();const p=u.length;if(p===0||p!==d.length)return!1;if(r)return!0;const m=t.parentType;t.parentType="table";const g=t.md.block.ruler.getRules("blockquote"),b=t.push("table_open","table",1),f=[e,0];b.map=f;const E=t.push("thead_open","thead",1);E.map=[e,e+1];const R=t.push("tr_open","tr",1);R.map=[e,e+1];for(let C=0;C<u.length;C++){const N=t.push("th_open","th",1);d[C]&&(N.attrs=[["style","text-align:"+d[C]]]);const A=t.push("inline","",0);A.content=u[C].trim(),A.children=[],t.push("th_close","th",-1)}t.push("tr_close","tr",-1),t.push("thead_close","thead",-1);let v,y=0;for(i=e+2;i<n&&!(t.sCount[i]<t.blkIndent);i++){let C=!1;for(let A=0,D=g.length;A<D;A++)if(g[A](t,i,n,!0)){C=!0;break}if(C||(c=ia(t,i).trim(),!c)||t.sCount[i]-t.blkIndent>=4||(u=Du(c),u.length&&u[0]===""&&u.shift(),u.length&&u[u.length-1]===""&&u.pop(),y+=p-u.length,y>bf))break;if(i===e+2){const A=t.push("tbody_open","tbody",1);A.map=v=[e+2,0]}const N=t.push("tr_open","tr",1);N.map=[i,i+1];for(let A=0;A<p;A++){const D=t.push("td_open","td",1);d[A]&&(D.attrs=[["style","text-align:"+d[A]]]);const M=t.push("inline","",0);M.content=u[A]?u[A].trim():"",M.children=[],t.push("td_close","td",-1)}t.push("tr_close","tr",-1)}return v&&(t.push("tbody_close","tbody",-1),v[1]=i),t.push("table_close","table",-1),f[1]=i,t.parentType=m,t.line=i,!0}function Ef(t,e,n){if(t.sCount[e]-t.blkIndent<4)return!1;let r=e+1,i=r;for(;r<n;){if(t.isEmpty(r)){r++;continue}if(t.sCount[r]-t.blkIndent>=4){r++,i=r;continue}break}t.line=i;const o=t.push("code_block","code",0);return o.content=t.getLines(e,i,4+t.blkIndent,!1)+`
16
- `,o.map=[e,t.line],!0}function Sf(t,e,n,r){let i=t.bMarks[e]+t.tShift[e],o=t.eMarks[e];if(t.sCount[e]-t.blkIndent>=4||i+3>o)return!1;const s=t.src.charCodeAt(i);if(s!==126&&s!==96)return!1;let l=i;i=t.skipChars(i,s);let c=i-l;if(c<3)return!1;const u=t.src.slice(l,i),d=t.src.slice(i,o);if(s===96&&d.indexOf(String.fromCharCode(s))>=0)return!1;if(r)return!0;let p=e,m=!1;for(;p++,!(p>=n||(i=l=t.bMarks[p]+t.tShift[p],o=t.eMarks[p],i<o&&t.sCount[p]<t.blkIndent));)if(t.src.charCodeAt(i)===s&&!(t.sCount[p]-t.blkIndent>=4)&&(i=t.skipChars(i,s),!(i-l<c)&&(i=t.skipSpaces(i),!(i<o)))){m=!0;break}c=t.sCount[e],t.line=p+(m?1:0);const g=t.push("fence","code",0);return g.info=d,g.content=t.getLines(e+1,p,c,!0),g.markup=u,g.map=[e,t.line],!0}function vf(t,e,n,r){let i=t.bMarks[e]+t.tShift[e],o=t.eMarks[e];const s=t.lineMax;if(t.sCount[e]-t.blkIndent>=4||t.src.charCodeAt(i)!==62)return!1;if(r)return!0;const l=[],c=[],u=[],d=[],p=t.md.block.ruler.getRules("blockquote"),m=t.parentType;t.parentType="blockquote";let g=!1,b;for(b=e;b<n;b++){const y=t.sCount[b]<t.blkIndent;if(i=t.bMarks[b]+t.tShift[b],o=t.eMarks[b],i>=o)break;if(t.src.charCodeAt(i++)===62&&!y){let N=t.sCount[b]+1,A,D;t.src.charCodeAt(i)===32?(i++,N++,D=!1,A=!0):t.src.charCodeAt(i)===9?(A=!0,(t.bsCount[b]+N)%4===3?(i++,N++,D=!1):D=!0):A=!1;let M=N;for(l.push(t.bMarks[b]),t.bMarks[b]=i;i<o;){const L=t.src.charCodeAt(i);if(Pe(L))L===9?M+=4-(M+t.bsCount[b]+(D?1:0))%4:M++;else break;i++}g=i>=o,c.push(t.bsCount[b]),t.bsCount[b]=t.sCount[b]+1+(A?1:0),u.push(t.sCount[b]),t.sCount[b]=M-N,d.push(t.tShift[b]),t.tShift[b]=i-t.bMarks[b];continue}if(g)break;let C=!1;for(let N=0,A=p.length;N<A;N++)if(p[N](t,b,n,!0)){C=!0;break}if(C){t.lineMax=b,t.blkIndent!==0&&(l.push(t.bMarks[b]),c.push(t.bsCount[b]),d.push(t.tShift[b]),u.push(t.sCount[b]),t.sCount[b]-=t.blkIndent);break}l.push(t.bMarks[b]),c.push(t.bsCount[b]),d.push(t.tShift[b]),u.push(t.sCount[b]),t.sCount[b]=-1}const f=t.blkIndent;t.blkIndent=0;const E=t.push("blockquote_open","blockquote",1);E.markup=">";const R=[e,0];E.map=R,t.md.block.tokenize(t,e,b);const v=t.push("blockquote_close","blockquote",-1);v.markup=">",t.lineMax=s,t.parentType=m,R[1]=t.line;for(let y=0;y<d.length;y++)t.bMarks[y+e]=l[y],t.tShift[y+e]=d[y],t.sCount[y+e]=u[y],t.bsCount[y+e]=c[y];return t.blkIndent=f,!0}function yf(t,e,n,r){const i=t.eMarks[e];if(t.sCount[e]-t.blkIndent>=4)return!1;let o=t.bMarks[e]+t.tShift[e];const s=t.src.charCodeAt(o++);if(s!==42&&s!==45&&s!==95)return!1;let l=1;for(;o<i;){const u=t.src.charCodeAt(o++);if(u!==s&&!Pe(u))return!1;u===s&&l++}if(l<3)return!1;if(r)return!0;t.line=e+1;const c=t.push("hr","hr",0);return c.map=[e,t.line],c.markup=Array(l+1).join(String.fromCharCode(s)),!0}function wu(t,e){const n=t.eMarks[e];let r=t.bMarks[e]+t.tShift[e];const i=t.src.charCodeAt(r++);if(i!==42&&i!==45&&i!==43)return-1;if(r<n){const o=t.src.charCodeAt(r);if(!Pe(o))return-1}return r}function Mu(t,e){const n=t.bMarks[e]+t.tShift[e],r=t.eMarks[e];let i=n;if(i+1>=r)return-1;let o=t.src.charCodeAt(i++);if(o<48||o>57)return-1;for(;;){if(i>=r)return-1;if(o=t.src.charCodeAt(i++),o>=48&&o<=57){if(i-n>=10)return-1;continue}if(o===41||o===46)break;return-1}return i<r&&(o=t.src.charCodeAt(i),!Pe(o))?-1:i}function Tf(t,e){const n=t.level+2;for(let r=e+2,i=t.tokens.length-2;r<i;r++)t.tokens[r].level===n&&t.tokens[r].type==="paragraph_open"&&(t.tokens[r+2].hidden=!0,t.tokens[r].hidden=!0,r+=2)}function Cf(t,e,n,r){let i,o,s,l,c=e,u=!0;if(t.sCount[c]-t.blkIndent>=4||t.listIndent>=0&&t.sCount[c]-t.listIndent>=4&&t.sCount[c]<t.blkIndent)return!1;let d=!1;r&&t.parentType==="paragraph"&&t.sCount[c]>=t.blkIndent&&(d=!0);let p,m,g;if((g=Mu(t,c))>=0){if(p=!0,s=t.bMarks[c]+t.tShift[c],m=Number(t.src.slice(s,g-1)),d&&m!==1)return!1}else if((g=wu(t,c))>=0)p=!1;else return!1;if(d&&t.skipSpaces(g)>=t.eMarks[c])return!1;if(r)return!0;const b=t.src.charCodeAt(g-1),f=t.tokens.length;p?(l=t.push("ordered_list_open","ol",1),m!==1&&(l.attrs=[["start",m]])):l=t.push("bullet_list_open","ul",1);const E=[c,0];l.map=E,l.markup=String.fromCharCode(b);let R=!1;const v=t.md.block.ruler.getRules("list"),y=t.parentType;for(t.parentType="list";c<n;){o=g,i=t.eMarks[c];const C=t.sCount[c]+g-(t.bMarks[c]+t.tShift[c]);let N=C;for(;o<i;){const re=t.src.charCodeAt(o);if(re===9)N+=4-(N+t.bsCount[c])%4;else if(re===32)N++;else break;o++}const A=o;let D;A>=i?D=1:D=N-C,D>4&&(D=1);const M=C+D;l=t.push("list_item_open","li",1),l.markup=String.fromCharCode(b);const L=[c,0];l.map=L,p&&(l.info=t.src.slice(s,g-1));const $=t.tight,j=t.tShift[c],ee=t.sCount[c],fe=t.listIndent;if(t.listIndent=t.blkIndent,t.blkIndent=M,t.tight=!0,t.tShift[c]=A-t.bMarks[c],t.sCount[c]=N,A>=i&&t.isEmpty(c+1)?t.line=Math.min(t.line+2,n):t.md.block.tokenize(t,c,n,!0),(!t.tight||R)&&(u=!1),R=t.line-c>1&&t.isEmpty(t.line-1),t.blkIndent=t.listIndent,t.listIndent=fe,t.tShift[c]=j,t.sCount[c]=ee,t.tight=$,l=t.push("list_item_close","li",-1),l.markup=String.fromCharCode(b),c=t.line,L[1]=c,c>=n||t.sCount[c]<t.blkIndent||t.sCount[c]-t.blkIndent>=4)break;let ie=!1;for(let re=0,Ee=v.length;re<Ee;re++)if(v[re](t,c,n,!0)){ie=!0;break}if(ie)break;if(p){if(g=Mu(t,c),g<0)break;s=t.bMarks[c]+t.tShift[c]}else if(g=wu(t,c),g<0)break;if(b!==t.src.charCodeAt(g-1))break}return p?l=t.push("ordered_list_close","ol",-1):l=t.push("bullet_list_close","ul",-1),l.markup=String.fromCharCode(b),E[1]=c,t.line=c,t.parentType=y,u&&Tf(t,f),!0}function Rf(t,e,n,r){let i=t.bMarks[e]+t.tShift[e],o=t.eMarks[e],s=e+1;if(t.sCount[e]-t.blkIndent>=4||t.src.charCodeAt(i)!==91)return!1;function l(v){const y=t.lineMax;if(v>=y||t.isEmpty(v))return null;let C=!1;if(t.sCount[v]-t.blkIndent>3&&(C=!0),t.sCount[v]<0&&(C=!0),!C){const D=t.md.block.ruler.getRules("reference"),M=t.parentType;t.parentType="reference";let L=!1;for(let $=0,j=D.length;$<j;$++)if(D[$](t,v,y,!0)){L=!0;break}if(t.parentType=M,L)return null}const N=t.bMarks[v]+t.tShift[v],A=t.eMarks[v];return t.src.slice(N,A+1)}let c=t.src.slice(i,o+1);o=c.length;let u=-1;for(i=1;i<o;i++){const v=c.charCodeAt(i);if(v===91)return!1;if(v===93){u=i;break}else if(v===10){const y=l(s);y!==null&&(c+=y,o=c.length,s++)}else if(v===92&&(i++,i<o&&c.charCodeAt(i)===10)){const y=l(s);y!==null&&(c+=y,o=c.length,s++)}}if(u<0||c.charCodeAt(u+1)!==58)return!1;for(i=u+2;i<o;i++){const v=c.charCodeAt(i);if(v===10){const y=l(s);y!==null&&(c+=y,o=c.length,s++)}else if(!Pe(v))break}const d=t.md.helpers.parseLinkDestination(c,i,o);if(!d.ok)return!1;const p=t.md.normalizeLink(d.str);if(!t.md.validateLink(p))return!1;i=d.pos;const m=i,g=s,b=i;for(;i<o;i++){const v=c.charCodeAt(i);if(v===10){const y=l(s);y!==null&&(c+=y,o=c.length,s++)}else if(!Pe(v))break}let f=t.md.helpers.parseLinkTitle(c,i,o);for(;f.can_continue;){const v=l(s);if(v===null)break;c+=v,i=o,o=c.length,s++,f=t.md.helpers.parseLinkTitle(c,i,o,f)}let E;for(i<o&&b!==i&&f.ok?(E=f.str,i=f.pos):(E="",i=m,s=g);i<o;){const v=c.charCodeAt(i);if(!Pe(v))break;i++}if(i<o&&c.charCodeAt(i)!==10&&E)for(E="",i=m,s=g;i<o;){const v=c.charCodeAt(i);if(!Pe(v))break;i++}if(i<o&&c.charCodeAt(i)!==10)return!1;const R=cr(c.slice(1,u));return R?(r||(typeof t.env.references>"u"&&(t.env.references={}),typeof t.env.references[R]>"u"&&(t.env.references[R]={title:E,href:p}),t.line=s),!0):!1}const Nf=["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"],Af="[a-zA-Z_:][a-zA-Z0-9:._-]*",Of="(?:"+"[^\"'=<>`\\x00-\\x20]+"+"|"+"'[^']*'"+"|"+'"[^"]*"'+")",Lu="<[A-Za-z][A-Za-z0-9\\-]*"+("(?:\\s+"+Af+"(?:\\s*=\\s*"+Of+")?)")+"*\\s*\\/?>",Pu="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",kf="<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->",xf="<[?][\\s\\S]*?[?]>",If="<![A-Za-z][^>]*>",Df="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",wf=new RegExp("^(?:"+Lu+"|"+Pu+"|"+kf+"|"+xf+"|"+If+"|"+Df+")"),Mf=new RegExp("^(?:"+Lu+"|"+Pu+")"),En=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+Nf.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(Mf.source+"\\s*$"),/^$/,!1]];function Lf(t,e,n,r){let i=t.bMarks[e]+t.tShift[e],o=t.eMarks[e];if(t.sCount[e]-t.blkIndent>=4||!t.md.options.html||t.src.charCodeAt(i)!==60)return!1;let s=t.src.slice(i,o),l=0;for(;l<En.length&&!En[l][0].test(s);l++);if(l===En.length)return!1;if(r)return En[l][2];let c=e+1;if(!En[l][1].test(s)){for(;c<n&&!(t.sCount[c]<t.blkIndent);c++)if(i=t.bMarks[c]+t.tShift[c],o=t.eMarks[c],s=t.src.slice(i,o),En[l][1].test(s)){s.length!==0&&c++;break}}t.line=c;const u=t.push("html_block","",0);return u.map=[e,c],u.content=t.getLines(e,c,t.blkIndent,!0),!0}function Pf(t,e,n,r){let i=t.bMarks[e]+t.tShift[e],o=t.eMarks[e];if(t.sCount[e]-t.blkIndent>=4)return!1;let s=t.src.charCodeAt(i);if(s!==35||i>=o)return!1;let l=1;for(s=t.src.charCodeAt(++i);s===35&&i<o&&l<=6;)l++,s=t.src.charCodeAt(++i);if(l>6||i<o&&!Pe(s))return!1;if(r)return!0;o=t.skipSpacesBack(o,i);const c=t.skipCharsBack(o,35,i);c>i&&Pe(t.src.charCodeAt(c-1))&&(o=c),t.line=e+1;const u=t.push("heading_open","h"+String(l),1);u.markup="########".slice(0,l),u.map=[e,t.line];const d=t.push("inline","",0);d.content=t.src.slice(i,o).trim(),d.map=[e,t.line],d.children=[];const p=t.push("heading_close","h"+String(l),-1);return p.markup="########".slice(0,l),!0}function Bf(t,e,n){const r=t.md.block.ruler.getRules("paragraph");if(t.sCount[e]-t.blkIndent>=4)return!1;const i=t.parentType;t.parentType="paragraph";let o=0,s,l=e+1;for(;l<n&&!t.isEmpty(l);l++){if(t.sCount[l]-t.blkIndent>3)continue;if(t.sCount[l]>=t.blkIndent){let g=t.bMarks[l]+t.tShift[l];const b=t.eMarks[l];if(g<b&&(s=t.src.charCodeAt(g),(s===45||s===61)&&(g=t.skipChars(g,s),g=t.skipSpaces(g),g>=b))){o=s===61?1:2;break}}if(t.sCount[l]<0)continue;let m=!1;for(let g=0,b=r.length;g<b;g++)if(r[g](t,l,n,!0)){m=!0;break}if(m)break}if(!o)return!1;const c=t.getLines(e,l,t.blkIndent,!1).trim();t.line=l+1;const u=t.push("heading_open","h"+String(o),1);u.markup=String.fromCharCode(s),u.map=[e,t.line];const d=t.push("inline","",0);d.content=c,d.map=[e,t.line-1],d.children=[];const p=t.push("heading_close","h"+String(o),-1);return p.markup=String.fromCharCode(s),t.parentType=i,!0}function Ff(t,e,n){const r=t.md.block.ruler.getRules("paragraph"),i=t.parentType;let o=e+1;for(t.parentType="paragraph";o<n&&!t.isEmpty(o);o++){if(t.sCount[o]-t.blkIndent>3||t.sCount[o]<0)continue;let u=!1;for(let d=0,p=r.length;d<p;d++)if(r[d](t,o,n,!0)){u=!0;break}if(u)break}const s=t.getLines(e,o,t.blkIndent,!1).trim();t.line=o;const l=t.push("paragraph_open","p",1);l.map=[e,t.line];const c=t.push("inline","",0);return c.content=s,c.map=[e,t.line],c.children=[],t.push("paragraph_close","p",-1),t.parentType=i,!0}const dr=[["table",ff,["paragraph","reference"]],["code",Ef],["fence",Sf,["paragraph","reference","blockquote","list"]],["blockquote",vf,["paragraph","reference","blockquote","list"]],["hr",yf,["paragraph","reference","blockquote","list"]],["list",Cf,["paragraph","reference","blockquote"]],["reference",Rf],["html_block",Lf,["paragraph","reference","blockquote"]],["heading",Pf,["paragraph","reference","blockquote"]],["lheading",Bf],["paragraph",Ff]];function pr(){this.ruler=new it;for(let t=0;t<dr.length;t++)this.ruler.push(dr[t][0],dr[t][1],{alt:(dr[t][2]||[]).slice()})}pr.prototype.tokenize=function(t,e,n){const r=this.ruler.getRules(""),i=r.length,o=t.md.options.maxNesting;let s=e,l=!1;for(;s<n&&(t.line=s=t.skipEmptyLines(s),!(s>=n||t.sCount[s]<t.blkIndent));){if(t.level>=o){t.line=n;break}const c=t.line;let u=!1;for(let d=0;d<i;d++)if(u=r[d](t,s,n,!1),u){if(c>=t.line)throw new Error("block rule didn't increment state.line");break}if(!u)throw new Error("none of the block rules matched");t.tight=!l,t.isEmpty(t.line-1)&&(l=!0),s=t.line,s<n&&t.isEmpty(s)&&(l=!0,s++,t.line=s)}},pr.prototype.parse=function(t,e,n,r){if(!t)return;const i=new this.State(t,e,n,r);this.tokenize(i,i.line,i.lineMax)},pr.prototype.State=At;function jn(t,e,n,r){this.src=t,this.env=n,this.md=e,this.tokens=r,this.tokens_meta=Array(r.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0}jn.prototype.pushPending=function(){const t=new yt("text","",0);return t.content=this.pending,t.level=this.pendingLevel,this.tokens.push(t),this.pending="",t},jn.prototype.push=function(t,e,n){this.pending&&this.pushPending();const r=new yt(t,e,n);let i=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),r.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],i={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(r),this.tokens_meta.push(i),r},jn.prototype.scanDelims=function(t,e){const n=this.posMax,r=this.src.charCodeAt(t),i=t>0?this.src.charCodeAt(t-1):32;let o=t;for(;o<n&&this.src.charCodeAt(o)===r;)o++;const s=o-t,l=o<n?this.src.charCodeAt(o):32,c=Fn(i)||Bn(String.fromCharCode(i)),u=Fn(l)||Bn(String.fromCharCode(l)),d=Pn(i),p=Pn(l),m=!p&&(!u||d||c),g=!d&&(!c||p||u);return{can_open:m&&(e||!g||c),can_close:g&&(e||!m||u),length:s}},jn.prototype.Token=yt;function jf(t){switch(t){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 Uf(t,e){let n=t.pos;for(;n<t.posMax&&!jf(t.src.charCodeAt(n));)n++;return n===t.pos?!1:(e||(t.pending+=t.src.slice(t.pos,n)),t.pos=n,!0)}const Gf=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;function Vf(t,e){if(!t.md.options.linkify||t.linkLevel>0)return!1;const n=t.pos,r=t.posMax;if(n+3>r||t.src.charCodeAt(n)!==58||t.src.charCodeAt(n+1)!==47||t.src.charCodeAt(n+2)!==47)return!1;const i=t.pending.match(Gf);if(!i)return!1;const o=i[1],s=t.md.linkify.matchAtStart(t.src.slice(n-o.length));if(!s)return!1;let l=s.url;if(l.length<=o.length)return!1;l=l.replace(/\*+$/,"");const c=t.md.normalizeLink(l);if(!t.md.validateLink(c))return!1;if(!e){t.pending=t.pending.slice(0,-o.length);const u=t.push("link_open","a",1);u.attrs=[["href",c]],u.markup="linkify",u.info="auto";const d=t.push("text","",0);d.content=t.md.normalizeLinkText(l);const p=t.push("link_close","a",-1);p.markup="linkify",p.info="auto"}return t.pos+=l.length-o.length,!0}function qf(t,e){let n=t.pos;if(t.src.charCodeAt(n)!==10)return!1;const r=t.pending.length-1,i=t.posMax;if(!e)if(r>=0&&t.pending.charCodeAt(r)===32)if(r>=1&&t.pending.charCodeAt(r-1)===32){let o=r-1;for(;o>=1&&t.pending.charCodeAt(o-1)===32;)o--;t.pending=t.pending.slice(0,o),t.push("hardbreak","br",0)}else t.pending=t.pending.slice(0,-1),t.push("softbreak","br",0);else t.push("softbreak","br",0);for(n++;n<i&&Pe(t.src.charCodeAt(n));)n++;return t.pos=n,!0}const oa=[];for(let t=0;t<256;t++)oa.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(t){oa[t.charCodeAt(0)]=1});function zf(t,e){let n=t.pos;const r=t.posMax;if(t.src.charCodeAt(n)!==92||(n++,n>=r))return!1;let i=t.src.charCodeAt(n);if(i===10){for(e||t.push("hardbreak","br",0),n++;n<r&&(i=t.src.charCodeAt(n),!!Pe(i));)n++;return t.pos=n,!0}let o=t.src[n];if(i>=55296&&i<=56319&&n+1<r){const l=t.src.charCodeAt(n+1);l>=56320&&l<=57343&&(o+=t.src[n+1],n++)}const s="\\"+o;if(!e){const l=t.push("text_special","",0);i<256&&oa[i]!==0?l.content=o:l.content=s,l.markup=s,l.info="escape"}return t.pos=n+1,!0}function Yf(t,e){let n=t.pos;if(t.src.charCodeAt(n)!==96)return!1;const i=n;n++;const o=t.posMax;for(;n<o&&t.src.charCodeAt(n)===96;)n++;const s=t.src.slice(i,n),l=s.length;if(t.backticksScanned&&(t.backticks[l]||0)<=i)return e||(t.pending+=s),t.pos+=l,!0;let c=n,u;for(;(u=t.src.indexOf("`",c))!==-1;){for(c=u+1;c<o&&t.src.charCodeAt(c)===96;)c++;const d=c-u;if(d===l){if(!e){const p=t.push("code_inline","code",0);p.markup=s,p.content=t.src.slice(n,u).replace(/\n/g," ").replace(/^ (.+) $/,"$1")}return t.pos=c,!0}t.backticks[d]=u}return t.backticksScanned=!0,e||(t.pending+=s),t.pos+=l,!0}function Hf(t,e){const n=t.pos,r=t.src.charCodeAt(n);if(e||r!==126)return!1;const i=t.scanDelims(t.pos,!0);let o=i.length;const s=String.fromCharCode(r);if(o<2)return!1;let l;o%2&&(l=t.push("text","",0),l.content=s,o--);for(let c=0;c<o;c+=2)l=t.push("text","",0),l.content=s+s,t.delimiters.push({marker:r,length:0,token:t.tokens.length-1,end:-1,open:i.can_open,close:i.can_close});return t.pos+=i.length,!0}function Bu(t,e){let n;const r=[],i=e.length;for(let o=0;o<i;o++){const s=e[o];if(s.marker!==126||s.end===-1)continue;const l=e[s.end];n=t.tokens[s.token],n.type="s_open",n.tag="s",n.nesting=1,n.markup="~~",n.content="",n=t.tokens[l.token],n.type="s_close",n.tag="s",n.nesting=-1,n.markup="~~",n.content="",t.tokens[l.token-1].type==="text"&&t.tokens[l.token-1].content==="~"&&r.push(l.token-1)}for(;r.length;){const o=r.pop();let s=o+1;for(;s<t.tokens.length&&t.tokens[s].type==="s_close";)s++;s--,o!==s&&(n=t.tokens[s],t.tokens[s]=t.tokens[o],t.tokens[o]=n)}}function $f(t){const e=t.tokens_meta,n=t.tokens_meta.length;Bu(t,t.delimiters);for(let r=0;r<n;r++)e[r]&&e[r].delimiters&&Bu(t,e[r].delimiters)}const Fu={tokenize:Hf,postProcess:$f};function Wf(t,e){const n=t.pos,r=t.src.charCodeAt(n);if(e||r!==95&&r!==42)return!1;const i=t.scanDelims(t.pos,r===42);for(let o=0;o<i.length;o++){const s=t.push("text","",0);s.content=String.fromCharCode(r),t.delimiters.push({marker:r,length:i.length,token:t.tokens.length-1,end:-1,open:i.can_open,close:i.can_close})}return t.pos+=i.length,!0}function ju(t,e){const n=e.length;for(let r=n-1;r>=0;r--){const i=e[r];if(i.marker!==95&&i.marker!==42||i.end===-1)continue;const o=e[i.end],s=r>0&&e[r-1].end===i.end+1&&e[r-1].marker===i.marker&&e[r-1].token===i.token-1&&e[i.end+1].token===o.token+1,l=String.fromCharCode(i.marker),c=t.tokens[i.token];c.type=s?"strong_open":"em_open",c.tag=s?"strong":"em",c.nesting=1,c.markup=s?l+l:l,c.content="";const u=t.tokens[o.token];u.type=s?"strong_close":"em_close",u.tag=s?"strong":"em",u.nesting=-1,u.markup=s?l+l:l,u.content="",s&&(t.tokens[e[r-1].token].content="",t.tokens[e[i.end+1].token].content="",r--)}}function Kf(t){const e=t.tokens_meta,n=t.tokens_meta.length;ju(t,t.delimiters);for(let r=0;r<n;r++)e[r]&&e[r].delimiters&&ju(t,e[r].delimiters)}const Uu={tokenize:Wf,postProcess:Kf};function Qf(t,e){let n,r,i,o,s="",l="",c=t.pos,u=!0;if(t.src.charCodeAt(t.pos)!==91)return!1;const d=t.pos,p=t.posMax,m=t.pos+1,g=t.md.helpers.parseLinkLabel(t,t.pos,!0);if(g<0)return!1;let b=g+1;if(b<p&&t.src.charCodeAt(b)===40){for(u=!1,b++;b<p&&(n=t.src.charCodeAt(b),!(!Pe(n)&&n!==10));b++);if(b>=p)return!1;if(c=b,i=t.md.helpers.parseLinkDestination(t.src,b,t.posMax),i.ok){for(s=t.md.normalizeLink(i.str),t.md.validateLink(s)?b=i.pos:s="",c=b;b<p&&(n=t.src.charCodeAt(b),!(!Pe(n)&&n!==10));b++);if(i=t.md.helpers.parseLinkTitle(t.src,b,t.posMax),b<p&&c!==b&&i.ok)for(l=i.str,b=i.pos;b<p&&(n=t.src.charCodeAt(b),!(!Pe(n)&&n!==10));b++);}(b>=p||t.src.charCodeAt(b)!==41)&&(u=!0),b++}if(u){if(typeof t.env.references>"u")return!1;if(b<p&&t.src.charCodeAt(b)===91?(c=b+1,b=t.md.helpers.parseLinkLabel(t,b),b>=0?r=t.src.slice(c,b++):b=g+1):b=g+1,r||(r=t.src.slice(m,g)),o=t.env.references[cr(r)],!o)return t.pos=d,!1;s=o.href,l=o.title}if(!e){t.pos=m,t.posMax=g;const f=t.push("link_open","a",1),E=[["href",s]];f.attrs=E,l&&E.push(["title",l]),t.linkLevel++,t.md.inline.tokenize(t),t.linkLevel--,t.push("link_close","a",-1)}return t.pos=b,t.posMax=p,!0}function Xf(t,e){let n,r,i,o,s,l,c,u,d="";const p=t.pos,m=t.posMax;if(t.src.charCodeAt(t.pos)!==33||t.src.charCodeAt(t.pos+1)!==91)return!1;const g=t.pos+2,b=t.md.helpers.parseLinkLabel(t,t.pos+1,!1);if(b<0)return!1;if(o=b+1,o<m&&t.src.charCodeAt(o)===40){for(o++;o<m&&(n=t.src.charCodeAt(o),!(!Pe(n)&&n!==10));o++);if(o>=m)return!1;for(u=o,l=t.md.helpers.parseLinkDestination(t.src,o,t.posMax),l.ok&&(d=t.md.normalizeLink(l.str),t.md.validateLink(d)?o=l.pos:d=""),u=o;o<m&&(n=t.src.charCodeAt(o),!(!Pe(n)&&n!==10));o++);if(l=t.md.helpers.parseLinkTitle(t.src,o,t.posMax),o<m&&u!==o&&l.ok)for(c=l.str,o=l.pos;o<m&&(n=t.src.charCodeAt(o),!(!Pe(n)&&n!==10));o++);else c="";if(o>=m||t.src.charCodeAt(o)!==41)return t.pos=p,!1;o++}else{if(typeof t.env.references>"u")return!1;if(o<m&&t.src.charCodeAt(o)===91?(u=o+1,o=t.md.helpers.parseLinkLabel(t,o),o>=0?i=t.src.slice(u,o++):o=b+1):o=b+1,i||(i=t.src.slice(g,b)),s=t.env.references[cr(i)],!s)return t.pos=p,!1;d=s.href,c=s.title}if(!e){r=t.src.slice(g,b);const f=[];t.md.inline.parse(r,t.md,t.env,f);const E=t.push("image","img",0),R=[["src",d],["alt",""]];E.attrs=R,E.children=f,E.content=r,c&&R.push(["title",c])}return t.pos=o,t.posMax=m,!0}const Zf=/^([a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,Jf=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;function eE(t,e){let n=t.pos;if(t.src.charCodeAt(n)!==60)return!1;const r=t.pos,i=t.posMax;for(;;){if(++n>=i)return!1;const s=t.src.charCodeAt(n);if(s===60)return!1;if(s===62)break}const o=t.src.slice(r+1,n);if(Jf.test(o)){const s=t.md.normalizeLink(o);if(!t.md.validateLink(s))return!1;if(!e){const l=t.push("link_open","a",1);l.attrs=[["href",s]],l.markup="autolink",l.info="auto";const c=t.push("text","",0);c.content=t.md.normalizeLinkText(o);const u=t.push("link_close","a",-1);u.markup="autolink",u.info="auto"}return t.pos+=o.length+2,!0}if(Zf.test(o)){const s=t.md.normalizeLink("mailto:"+o);if(!t.md.validateLink(s))return!1;if(!e){const l=t.push("link_open","a",1);l.attrs=[["href",s]],l.markup="autolink",l.info="auto";const c=t.push("text","",0);c.content=t.md.normalizeLinkText(o);const u=t.push("link_close","a",-1);u.markup="autolink",u.info="auto"}return t.pos+=o.length+2,!0}return!1}function tE(t){return/^<a[>\s]/i.test(t)}function nE(t){return/^<\/a\s*>/i.test(t)}function rE(t){const e=t|32;return e>=97&&e<=122}function aE(t,e){if(!t.md.options.html)return!1;const n=t.posMax,r=t.pos;if(t.src.charCodeAt(r)!==60||r+2>=n)return!1;const i=t.src.charCodeAt(r+1);if(i!==33&&i!==63&&i!==47&&!rE(i))return!1;const o=t.src.slice(r).match(wf);if(!o)return!1;if(!e){const s=t.push("html_inline","",0);s.content=o[0],tE(s.content)&&t.linkLevel++,nE(s.content)&&t.linkLevel--}return t.pos+=o[0].length,!0}const iE=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,oE=/^&([a-z][a-z0-9]{1,31});/i;function sE(t,e){const n=t.pos,r=t.posMax;if(t.src.charCodeAt(n)!==38||n+1>=r)return!1;if(t.src.charCodeAt(n+1)===35){const o=t.src.slice(n).match(iE);if(o){if(!e){const s=o[1][0].toLowerCase()==="x"?parseInt(o[1].slice(1),16):parseInt(o[1],10),l=t.push("text_special","",0);l.content=na(s)?lr(s):lr(65533),l.markup=o[0],l.info="entity"}return t.pos+=o[0].length,!0}}else{const o=t.src.slice(n).match(oE);if(o){const s=Ru(o[0]);if(s!==o[0]){if(!e){const l=t.push("text_special","",0);l.content=s,l.markup=o[0],l.info="entity"}return t.pos+=o[0].length,!0}}}return!1}function Gu(t){const e={},n=t.length;if(!n)return;let r=0,i=-2;const o=[];for(let s=0;s<n;s++){const l=t[s];if(o.push(0),(t[r].marker!==l.marker||i!==l.token-1)&&(r=s),i=l.token,l.length=l.length||0,!l.close)continue;e.hasOwnProperty(l.marker)||(e[l.marker]=[-1,-1,-1,-1,-1,-1]);const c=e[l.marker][(l.open?3:0)+l.length%3];let u=r-o[r]-1,d=u;for(;u>c;u-=o[u]+1){const p=t[u];if(p.marker===l.marker&&p.open&&p.end<0){let m=!1;if((p.close||l.open)&&(p.length+l.length)%3===0&&(p.length%3!==0||l.length%3!==0)&&(m=!0),!m){const g=u>0&&!t[u-1].open?o[u-1]+1:0;o[s]=s-u+g,o[u]=g,l.open=!1,p.end=s,p.close=!1,d=-1,i=-2;break}}}d!==-1&&(e[l.marker][(l.open?3:0)+(l.length||0)%3]=d)}}function lE(t){const e=t.tokens_meta,n=t.tokens_meta.length;Gu(t.delimiters);for(let r=0;r<n;r++)e[r]&&e[r].delimiters&&Gu(e[r].delimiters)}function cE(t){let e,n,r=0;const i=t.tokens,o=t.tokens.length;for(e=n=0;e<o;e++)i[e].nesting<0&&r--,i[e].level=r,i[e].nesting>0&&r++,i[e].type==="text"&&e+1<o&&i[e+1].type==="text"?i[e+1].content=i[e].content+i[e+1].content:(e!==n&&(i[n]=i[e]),n++);e!==n&&(i.length=n)}const sa=[["text",Uf],["linkify",Vf],["newline",qf],["escape",zf],["backticks",Yf],["strikethrough",Fu.tokenize],["emphasis",Uu.tokenize],["link",Qf],["image",Xf],["autolink",eE],["html_inline",aE],["entity",sE]],la=[["balance_pairs",lE],["strikethrough",Fu.postProcess],["emphasis",Uu.postProcess],["fragments_join",cE]];function Un(){this.ruler=new it;for(let t=0;t<sa.length;t++)this.ruler.push(sa[t][0],sa[t][1]);this.ruler2=new it;for(let t=0;t<la.length;t++)this.ruler2.push(la[t][0],la[t][1])}Un.prototype.skipToken=function(t){const e=t.pos,n=this.ruler.getRules(""),r=n.length,i=t.md.options.maxNesting,o=t.cache;if(typeof o[e]<"u"){t.pos=o[e];return}let s=!1;if(t.level<i){for(let l=0;l<r;l++)if(t.level++,s=n[l](t,!0),t.level--,s){if(e>=t.pos)throw new Error("inline rule didn't increment state.pos");break}}else t.pos=t.posMax;s||t.pos++,o[e]=t.pos},Un.prototype.tokenize=function(t){const e=this.ruler.getRules(""),n=e.length,r=t.posMax,i=t.md.options.maxNesting;for(;t.pos<r;){const o=t.pos;let s=!1;if(t.level<i){for(let l=0;l<n;l++)if(s=e[l](t,!1),s){if(o>=t.pos)throw new Error("inline rule didn't increment state.pos");break}}if(s){if(t.pos>=r)break;continue}t.pending+=t.src[t.pos++]}t.pending&&t.pushPending()},Un.prototype.parse=function(t,e,n,r){const i=new this.State(t,e,n,r);this.tokenize(i);const o=this.ruler2.getRules(""),s=o.length;for(let l=0;l<s;l++)o[l](i)},Un.prototype.State=jn;function uE(t){const e={};t=t||{},e.src_Any=Su.source,e.src_Cc=vu.source,e.src_Z=Tu.source,e.src_P=Zr.source,e.src_ZPCc=[e.src_Z,e.src_P,e.src_Cc].join("|"),e.src_ZCc=[e.src_Z,e.src_Cc].join("|");const n="[><|]";return e.src_pseudo_letter="(?:(?!"+n+"|"+e.src_ZPCc+")"+e.src_Any+")",e.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",e.src_auth="(?:(?:(?!"+e.src_ZCc+"|[@/\\[\\]()]).)+@)?",e.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",e.src_host_terminator="(?=$|"+n+"|"+e.src_ZPCc+")(?!"+(t["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+e.src_ZPCc+"))",e.src_path="(?:[/?#](?:(?!"+e.src_ZCc+"|"+n+`|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!`+e.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+e.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+e.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+e.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+e.src_ZCc+"|[']).)+\\'|\\'(?="+e.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+e.src_ZCc+"|[.]|$)|"+(t["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+e.src_ZCc+"|$)|;(?!"+e.src_ZCc+"|$)|\\!+(?!"+e.src_ZCc+"|[!]|$)|\\?(?!"+e.src_ZCc+"|[?]|$))+|\\/)?",e.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',e.src_xn="xn--[a-z0-9\\-]{1,59}",e.src_domain_root="(?:"+e.src_xn+"|"+e.src_pseudo_letter+"{1,63})",e.src_domain="(?:"+e.src_xn+"|(?:"+e.src_pseudo_letter+")|(?:"+e.src_pseudo_letter+"(?:-|"+e.src_pseudo_letter+"){0,61}"+e.src_pseudo_letter+"))",e.src_host="(?:(?:(?:(?:"+e.src_domain+")\\.)*"+e.src_domain+"))",e.tpl_host_fuzzy="(?:"+e.src_ip4+"|(?:(?:(?:"+e.src_domain+")\\.)+(?:%TLDS%)))",e.tpl_host_no_ip_fuzzy="(?:(?:(?:"+e.src_domain+")\\.)+(?:%TLDS%))",e.src_host_strict=e.src_host+e.src_host_terminator,e.tpl_host_fuzzy_strict=e.tpl_host_fuzzy+e.src_host_terminator,e.src_host_port_strict=e.src_host+e.src_port+e.src_host_terminator,e.tpl_host_port_fuzzy_strict=e.tpl_host_fuzzy+e.src_port+e.src_host_terminator,e.tpl_host_port_no_ip_fuzzy_strict=e.tpl_host_no_ip_fuzzy+e.src_port+e.src_host_terminator,e.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+e.src_ZPCc+"|>|$))",e.tpl_email_fuzzy="(^|"+n+'|"|\\(|'+e.src_ZCc+")("+e.src_email_name+"@"+e.tpl_host_fuzzy_strict+")",e.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+e.src_ZPCc+"))((?![$+<=>^`||])"+e.tpl_host_port_fuzzy_strict+e.src_path+")",e.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+e.src_ZPCc+"))((?![$+<=>^`||])"+e.tpl_host_port_no_ip_fuzzy_strict+e.src_path+")",e}function ca(t){return Array.prototype.slice.call(arguments,1).forEach(function(n){n&&Object.keys(n).forEach(function(r){t[r]=n[r]})}),t}function _r(t){return Object.prototype.toString.call(t)}function dE(t){return _r(t)==="[object String]"}function pE(t){return _r(t)==="[object Object]"}function _E(t){return _r(t)==="[object RegExp]"}function Vu(t){return _r(t)==="[object Function]"}function mE(t){return t.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}const qu={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function gE(t){return Object.keys(t||{}).reduce(function(e,n){return e||qu.hasOwnProperty(n)},!1)}const hE={"http:":{validate:function(t,e,n){const r=t.slice(e);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(r)?r.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(t,e,n){const r=t.slice(e);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(r)?e>=3&&t[e-3]===":"||e>=3&&t[e-3]==="/"?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(t,e,n){const r=t.slice(e);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(r)?r.match(n.re.mailto)[0].length:0}}},bE="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]",fE="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function EE(t){t.__index__=-1,t.__text_cache__=""}function SE(t){return function(e,n){const r=e.slice(n);return t.test(r)?r.match(t)[0].length:0}}function zu(){return function(t,e){e.normalize(t)}}function mr(t){const e=t.re=uE(t.__opts__),n=t.__tlds__.slice();t.onCompile(),t.__tlds_replaced__||n.push(bE),n.push(e.src_xn),e.src_tlds=n.join("|");function r(l){return l.replace("%TLDS%",e.src_tlds)}e.email_fuzzy=RegExp(r(e.tpl_email_fuzzy),"i"),e.link_fuzzy=RegExp(r(e.tpl_link_fuzzy),"i"),e.link_no_ip_fuzzy=RegExp(r(e.tpl_link_no_ip_fuzzy),"i"),e.host_fuzzy_test=RegExp(r(e.tpl_host_fuzzy_test),"i");const i=[];t.__compiled__={};function o(l,c){throw new Error('(LinkifyIt) Invalid schema "'+l+'": '+c)}Object.keys(t.__schemas__).forEach(function(l){const c=t.__schemas__[l];if(c===null)return;const u={validate:null,link:null};if(t.__compiled__[l]=u,pE(c)){_E(c.validate)?u.validate=SE(c.validate):Vu(c.validate)?u.validate=c.validate:o(l,c),Vu(c.normalize)?u.normalize=c.normalize:c.normalize?o(l,c):u.normalize=zu();return}if(dE(c)){i.push(l);return}o(l,c)}),i.forEach(function(l){t.__compiled__[t.__schemas__[l]]&&(t.__compiled__[l].validate=t.__compiled__[t.__schemas__[l]].validate,t.__compiled__[l].normalize=t.__compiled__[t.__schemas__[l]].normalize)}),t.__compiled__[""]={validate:null,normalize:zu()};const s=Object.keys(t.__compiled__).filter(function(l){return l.length>0&&t.__compiled__[l]}).map(mE).join("|");t.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+e.src_ZPCc+"))("+s+")","i"),t.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+e.src_ZPCc+"))("+s+")","ig"),t.re.schema_at_start=RegExp("^"+t.re.schema_search.source,"i"),t.re.pretest=RegExp("("+t.re.schema_test.source+")|("+t.re.host_fuzzy_test.source+")|@","i"),EE(t)}function vE(t,e){const n=t.__index__,r=t.__last_index__,i=t.__text_cache__.slice(n,r);this.schema=t.__schema__.toLowerCase(),this.index=n+e,this.lastIndex=r+e,this.raw=i,this.text=i,this.url=i}function ua(t,e){const n=new vE(t,e);return t.__compiled__[n.schema].normalize(n,t),n}function ut(t,e){if(!(this instanceof ut))return new ut(t,e);e||gE(t)&&(e=t,t={}),this.__opts__=ca({},qu,e),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=ca({},hE,t),this.__compiled__={},this.__tlds__=fE,this.__tlds_replaced__=!1,this.re={},mr(this)}ut.prototype.add=function(e,n){return this.__schemas__[e]=n,mr(this),this},ut.prototype.set=function(e){return this.__opts__=ca(this.__opts__,e),this},ut.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;let n,r,i,o,s,l,c,u,d;if(this.re.schema_test.test(e)){for(c=this.re.schema_search,c.lastIndex=0;(n=c.exec(e))!==null;)if(o=this.testSchemaAt(e,n[2],c.lastIndex),o){this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+o;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(u=e.search(this.re.host_fuzzy_test),u>=0&&(this.__index__<0||u<this.__index__)&&(r=e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(s=r.index+r[1].length,(this.__index__<0||s<this.__index__)&&(this.__schema__="",this.__index__=s,this.__last_index__=r.index+r[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(d=e.indexOf("@"),d>=0&&(i=e.match(this.re.email_fuzzy))!==null&&(s=i.index+i[1].length,l=i.index+i[0].length,(this.__index__<0||s<this.__index__||s===this.__index__&&l>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=s,this.__last_index__=l))),this.__index__>=0},ut.prototype.pretest=function(e){return this.re.pretest.test(e)},ut.prototype.testSchemaAt=function(e,n,r){return this.__compiled__[n.toLowerCase()]?this.__compiled__[n.toLowerCase()].validate(e,r,this):0},ut.prototype.match=function(e){const n=[];let r=0;this.__index__>=0&&this.__text_cache__===e&&(n.push(ua(this,r)),r=this.__last_index__);let i=r?e.slice(r):e;for(;this.test(i);)n.push(ua(this,r)),i=i.slice(this.__last_index__),r+=this.__last_index__;return n.length?n:null},ut.prototype.matchAtStart=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return null;const n=this.re.schema_at_start.exec(e);if(!n)return null;const r=this.testSchemaAt(e,n[2],n[0].length);return r?(this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+r,ua(this,0)):null},ut.prototype.tlds=function(e,n){return e=Array.isArray(e)?e:[e],n?(this.__tlds__=this.__tlds__.concat(e).sort().filter(function(r,i,o){return r!==o[i-1]}).reverse(),mr(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,mr(this),this)},ut.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),e.schema==="mailto:"&&!/^mailto:/i.test(e.url)&&(e.url="mailto:"+e.url)},ut.prototype.onCompile=function(){};const Sn=2147483647,Ot=36,da=1,Gn=26,yE=38,TE=700,Yu=72,Hu=128,$u="-",CE=/^xn--/,RE=/[^\0-\x7F]/,NE=/[\x2E\u3002\uFF0E\uFF61]/g,AE={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},pa=Ot-da,kt=Math.floor,_a=String.fromCharCode;function $t(t){throw new RangeError(AE[t])}function OE(t,e){const n=[];let r=t.length;for(;r--;)n[r]=e(t[r]);return n}function Wu(t,e){const n=t.split("@");let r="";n.length>1&&(r=n[0]+"@",t=n[1]),t=t.replace(NE,".");const i=t.split("."),o=OE(i,e).join(".");return r+o}function Ku(t){const e=[];let n=0;const r=t.length;for(;n<r;){const i=t.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){const o=t.charCodeAt(n++);(o&64512)==56320?e.push(((i&1023)<<10)+(o&1023)+65536):(e.push(i),n--)}else e.push(i)}return e}const kE=t=>String.fromCodePoint(...t),xE=function(t){return t>=48&&t<58?26+(t-48):t>=65&&t<91?t-65:t>=97&&t<123?t-97:Ot},Qu=function(t,e){return t+22+75*(t<26)-((e!=0)<<5)},Xu=function(t,e,n){let r=0;for(t=n?kt(t/TE):t>>1,t+=kt(t/e);t>pa*Gn>>1;r+=Ot)t=kt(t/pa);return kt(r+(pa+1)*t/(t+yE))},Zu=function(t){const e=[],n=t.length;let r=0,i=Hu,o=Yu,s=t.lastIndexOf($u);s<0&&(s=0);for(let l=0;l<s;++l)t.charCodeAt(l)>=128&&$t("not-basic"),e.push(t.charCodeAt(l));for(let l=s>0?s+1:0;l<n;){const c=r;for(let d=1,p=Ot;;p+=Ot){l>=n&&$t("invalid-input");const m=xE(t.charCodeAt(l++));m>=Ot&&$t("invalid-input"),m>kt((Sn-r)/d)&&$t("overflow"),r+=m*d;const g=p<=o?da:p>=o+Gn?Gn:p-o;if(m<g)break;const b=Ot-g;d>kt(Sn/b)&&$t("overflow"),d*=b}const u=e.length+1;o=Xu(r-c,u,c==0),kt(r/u)>Sn-i&&$t("overflow"),i+=kt(r/u),r%=u,e.splice(r++,0,i)}return String.fromCodePoint(...e)},Ju=function(t){const e=[];t=Ku(t);const n=t.length;let r=Hu,i=0,o=Yu;for(const c of t)c<128&&e.push(_a(c));const s=e.length;let l=s;for(s&&e.push($u);l<n;){let c=Sn;for(const d of t)d>=r&&d<c&&(c=d);const u=l+1;c-r>kt((Sn-i)/u)&&$t("overflow"),i+=(c-r)*u,r=c;for(const d of t)if(d<r&&++i>Sn&&$t("overflow"),d===r){let p=i;for(let m=Ot;;m+=Ot){const g=m<=o?da:m>=o+Gn?Gn:m-o;if(p<g)break;const b=p-g,f=Ot-g;e.push(_a(Qu(g+b%f,0))),p=kt(b/f)}e.push(_a(Qu(p,0))),o=Xu(i,u,l===s),i=0,++l}++i,++r}return e.join("")},ed={version:"2.3.1",ucs2:{decode:Ku,encode:kE},decode:Zu,encode:Ju,toASCII:function(t){return Wu(t,function(e){return RE.test(e)?"xn--"+Ju(e):e})},toUnicode:function(t){return Wu(t,function(e){return CE.test(e)?Zu(e.slice(4).toLowerCase()):e})}},IE={default:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},zero:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}},commonmark:{options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","fragments_join"]}}}},DE=/^(vbscript|javascript|file|data):/,wE=/^data:image\/(gif|png|jpeg|webp);/;function ME(t){const e=t.trim().toLowerCase();return DE.test(e)?wE.test(e):!0}const td=["http:","https:","mailto:"];function LE(t){const e=Xr(t,!0);if(e.hostname&&(!e.protocol||td.indexOf(e.protocol)>=0))try{e.hostname=ed.toASCII(e.hostname)}catch{}return Ln(Qr(e))}function PE(t){const e=Xr(t,!0);if(e.hostname&&(!e.protocol||td.indexOf(e.protocol)>=0))try{e.hostname=ed.toUnicode(e.hostname)}catch{}return hn(Qr(e),hn.defaultChars+"%")}function mt(t,e){if(!(this instanceof mt))return new mt(t,e);e||ta(t)||(e=t||{},t="default"),this.inline=new Un,this.block=new pr,this.core=new aa,this.renderer=new fn,this.linkify=new ut,this.validateLink=ME,this.normalizeLink=LE,this.normalizeLinkText=PE,this.utils=Hb,this.helpers=sr({},Qb),this.options={},this.configure(t),e&&this.set(e)}mt.prototype.set=function(t){return sr(this.options,t),this},mt.prototype.configure=function(t){const e=this;if(ta(t)){const n=t;if(t=IE[n],!t)throw new Error('Wrong `markdown-it` preset "'+n+'", check name')}if(!t)throw new Error("Wrong `markdown-it` preset, can't be empty");return t.options&&e.set(t.options),t.components&&Object.keys(t.components).forEach(function(n){t.components[n].rules&&e[n].ruler.enableOnly(t.components[n].rules),t.components[n].rules2&&e[n].ruler2.enableOnly(t.components[n].rules2)}),this},mt.prototype.enable=function(t,e){let n=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach(function(i){n=n.concat(this[i].ruler.enable(t,!0))},this),n=n.concat(this.inline.ruler2.enable(t,!0));const r=t.filter(function(i){return n.indexOf(i)<0});if(r.length&&!e)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+r);return this},mt.prototype.disable=function(t,e){let n=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach(function(i){n=n.concat(this[i].ruler.disable(t,!0))},this),n=n.concat(this.inline.ruler2.disable(t,!0));const r=t.filter(function(i){return n.indexOf(i)<0});if(r.length&&!e)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+r);return this},mt.prototype.use=function(t){const e=[this].concat(Array.prototype.slice.call(arguments,1));return t.apply(t,e),this},mt.prototype.parse=function(t,e){if(typeof t!="string")throw new Error("Input data should be a String");const n=new this.core.State(t,this,e);return this.core.process(n),n.tokens},mt.prototype.render=function(t,e){return e=e||{},this.renderer.render(this.parse(t,e),this.options,e)},mt.prototype.parseInline=function(t,e){const n=new this.core.State(t,this,e);return n.inlineMode=!0,this.core.process(n),n.tokens},mt.prototype.renderInline=function(t,e){return e=e||{},this.renderer.render(this.parseInline(t,e),this.options,e)};var BE=new mt({breaks:!0,linkify:!0,typographer:!0});function Tt(t){return BE.render(t)}const FE=["width","height","viewBox"],jE=["d"],ke=a.defineComponent({__name:"EpIcon",props:{size:{default:32},viewBox:{default:"0 0 24 24"},iconPath:{},extraClass:{}},setup(t){const e=t,{size:n,viewBox:r,iconPath:i,extraClass:o}=a.toRefs(e);return(s,l)=>(a.openBlock(),a.createElementBlock("svg",{width:a.unref(n),height:a.unref(n),viewBox:a.unref(r),color:"currentColor",fill:"currentColor",class:a.normalizeClass(`inline ${a.unref(o)}`)},[a.createElementVNode("path",{d:a.unref(i)},null,8,jE)],10,FE))}}),ma=Object.freeze(Object.defineProperty({__proto__:null,default:ke},Symbol.toStringTag,{value:"Module"})),UE={bgprimary:"bg-primary",borderprimary:"border border-solid border-primary",fillprimary:"fill-primary",textprimary:"text-primary",bgprimarylight:"bg-primary-light",borderprimarylight:"border border-solid border-primary-light",fillprimarylight:"fill-primary-light",textprimarylight:"text-primary-light",bgprimarydark:"bg-primary-dark",borderprimarydark:"border border-solid border-primary-dark",fillprimarydark:"fill-primary-dark",textprimarydark:"text-primary-dark",bgsecondary:"bg-secondary",bordersecondary:"border border-solid border-secondary",fillsecondary:"fill-secondary",textsecondary:"text-secondary",bgsecondarylight:"bg-secondary-light",bordersecondarylight:"border border-solid border-secondary-light",fillsecondarylight:"fill-secondary-light",textsecondarylight:"text-secondary-light",bgsecondarydark:"bg-secondary-dark",bordersecondarydark:"border border-solid border-secondary-dark",fillsecondarydark:"fill-secondary-dark",textsecondarydark:"text-secondary-dark",bgaccent:"bg-accent",borderaccent:"border border-solid border-accent",fillaccent:"fill-accent",textaccent:"text-accent",bgaccentlight:"bg-accent-light",borderaccentlight:"border border-solid border-accent-light",fillaccentlight:"fill-accent-light",textaccentlight:"text-accent-light",bgaccentdark:"bg-accent-dark",borderaccentdark:"border border-solid border-accent-dark",fillaccentdark:"fill-accent-dark",textaccentdark:"text-accent-dark",bgerror:"bg-error",bordererror:"border border-solid border-error",fillerror:"fill-error",texterror:"text-error",bgerrorlight:"bg-error-light",bordererrorlight:"border border-solid border-error-light",fillerrorlight:"fill-error-light",texterrorlight:"text-error-light",bgerrordark:"bg-error-dark",bordererrordark:"border border-solid border-error-dark",fillerrordark:"fill-error-dark",texterrordark:"text-error-dark",bgwarning:"bg-warning",borderwarning:"border border-solid border-warning",fillwarning:"fill-warning",textwarning:"text-warning",bgwarninglight:"bg-warning-light",borderwarninglight:"border border-solid border-warning-light",fillwarninglight:"fill-warning-light",textwarninglight:"text-warning-light",bgwarningdark:"bg-warning-dark",borderwarningdark:"border border-solid border-warning-dark",fillwarningdark:"fill-warning-dark",textwarningdark:"text-warning-dark",bgsuccess:"bg-success",bordersuccess:"border border-solid border-success",fillsuccess:"fill-success",textsuccess:"text-success",bgsuccesslight:"bg-success-light",bordersuccesslight:"border border-solid border-success-light",fillsuccesslight:"fill-success-light",textsuccesslight:"text-success-light",bgsuccessdark:"bg-success-dark",bordersuccessdark:"border border-solid border-success-dark",fillsuccessdark:"fill-success-dark",textsuccessdark:"text-success-dark",bginfo:"bg-info",borderinfo:"border border-solid border-info",fillinfo:"fill-info",textinfo:"text-info",bginfolight:"bg-info-light",borderinfolight:"border border-solid border-info-light",fillinfolight:"fill-info-light",textinfolight:"text-info-light",bginfodark:"bg-info-dark",borderinfodark:"border border-solid border-info-dark",fillinfodark:"fill-info-dark",textinfodark:"text-info-dark",bgquestion:"bg-question",borderquestion:"border border-solid border-question",fillquestion:"fill-question",textquestion:"text-question",bgquestionlight:"bg-question-light",borderquestionlight:"border border-solid border-question-light",fillquestionlight:"fill-question-light",textquestionlight:"text-question-light",bgquestiondark:"bg-question-dark",borderquestiondark:"border border-solid border-question-dark",fillquestiondark:"fill-question-dark",textquestiondark:"text-question-dark",bgtip:"bg-tip",bordertip:"border border-solid border-tip",filltip:"fill-tip",texttip:"text-tip",bgtiplight:"bg-tip-light",bordertiplight:"border border-solid border-tip-light",filltiplight:"fill-tip-light",texttiplight:"text-tip-light",bgtipdark:"bg-tip-dark",bordertipdark:"border border-solid border-tip-dark",filltipdark:"fill-tip-dark",texttipdark:"text-tip-dark",bgwhite:"bg-white",fillwhite:"fill-white",textwhite:"text-white",borderwhite:"border border-solid border-white",bgblack:"bg-black",fillblack:"fill-black",borderblack:"border border-solid border-black",textblack:"text-black",bgbase:"bg-gray-500",bgbaselight:"bg-gray-200",fillbase:"fill-gray-500",borderbase:"border border-solid border-gray-500",textbase:"text-gray-500"};function gt(t,e){const r=`${t}${e}`.replace(/-/g,"");return UE[r]}const GE={base:{default:"bg-gray-100 text-black dark:bg-gray-300",outlined:"border-gray-400 border text-black dark:bg-gray-300"},primary:{default:"bg-primary text-white dark:bg-primary-dark",outlined:"border-primary border text-primary dark:bg-primary-dark"},secondary:{default:"bg-secondary text-white dark:bg-second-dark",outlined:"border-secondary border text-secondary dark:bg-second-dark"},accent:{default:"bg-accent text-white dark:bg-accent-dark",outlined:"border-accent border text-accent dark:bg-accent-dark"},warning:{default:"bg-warning text-white dark:bg-warning-dark",outlined:"border-warning border text-warning dark:bg-warning-dark"},success:{default:"bg-success text-white dark:bg-success-dark",outlined:"border-success border text-success dark:bg-success-dark"},error:{default:"bg-error text-white dark:bg-error-dark",outlined:"border-error border text-error dark:g-error-dark"},info:{default:"bg-info text-white dark:bg-info-dark",outlined:"border-info border text-info dark:bg-info-dark"},question:{default:"bg-question text-white dark:bg-question-dark",outlined:"border-question border text-question dark:bg-question-dark"},Question:{default:"bg-question text-white dark:bg-question-dark",outlined:"border-question border text-question dark:bg-question-dark"},tip:{default:"bg-tip text-white dark:bg-tip-dark",outlined:"border-tip border text-tip dark:bg-tip-dark"}},VE=t=>(a.pushScopeId("data-v-cbe63e9f"),t=t(),a.popScopeId(),t),qE={class:"text-lg flex items-center"},zE=[VE(()=>a.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 6v12m6-6H6"},null,-1))],YE={class:"py-4"},HE=a.defineComponent({__name:"EpAccordeon",props:{type:{default:"base"},icon:{},open:{type:Boolean,default:!1},outlined:{type:Boolean,default:!1},labels:{default:()=>({title:"En savoir plus"})}},setup(t){const e=t,n=a.ref(e.open),r=a.ref(),i=a.computed(()=>e.outlined?"outlined":"default"),o=a.computed(()=>{var d;return`flex justify-between items-center px-4 py-2 cursor-pointer ${(d=GE[e.type])==null?void 0:d[i.value]}`}),s=a.computed(()=>`px-4 ${gt("bg",e.type+"light")} dark:${gt("bg",e.type+"dark")}`);a.onMounted(()=>{var d=r.value;e.open&&(d.style.maxHeight=d.scrollHeight+"px")});function l(){n.value=!n.value;var d=r.value;d.style.maxHeight?d.style.maxHeight=null:d.style.maxHeight=d.scrollHeight+"px",d.style.transition||(d.style.transition="max-height 0.2s ease-out")}const{labels:c,icon:u}=a.toRefs(e);return(d,p)=>(a.openBlock(),a.createElementBlock("div",null,[a.createElementVNode("div",{class:a.normalizeClass(o.value),onClick:l},[a.createElementVNode("h3",qE,[a.unref(u)?(a.openBlock(),a.createBlock(ke,{key:0,"icon-path":a.unref(u),size:"28",extraClass:"mr-2"},null,8,["icon-path"])):a.createCommentVNode("",!0),a.createTextVNode(a.toDisplayString(a.unref(c).title),1)]),(a.openBlock(),a.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:a.normalizeClass(`mx-4 my-3 h-6 w-6 transition-all duration-200 ${n.value?"rotate-45":""}`)},zE,2))],2),a.createElementVNode("div",{ref_key:"collapsible",ref:r,class:a.normalizeClass(`${s.value} content`)},[a.createElementVNode("div",YE,[a.renderSlot(d.$slots,"default",{},void 0,!0)])],2)]))}}),Wt=(t,e)=>{const n=t.__vccOpts||t;for(const[r,i]of e)n[r]=i;return n},gr=Wt(HE,[["__scopeId","data-v-cbe63e9f"]]),ga=Object.freeze(Object.defineProperty({__proto__:null,default:gr},Symbol.toStringTag,{value:"Module"})),$E={class:"px-2 text-black dark:text-white"},nd=a.defineComponent({__name:"EpText",props:{glossary:{},content:{},title:{},compact:{type:Boolean,default:!1},labels:{default:()=>({enSavoirPlus:"En savoir plus"})}},setup(t){const e=t,n=a.computed(()=>e.title?e.title:e.labels.enSavoirPlus),r=a.computed(()=>{if(!e.content)return"<div></div>";if(!vt(e.content))return Tt(e.content);if(!e.glossary)return e.content;const s=document.createElement("DIV"),c=e.content.trim().replace(/<p>/g,'<div style="margin-bottom: 1em;">').replace(/<\/p>/g,"</div>");s.innerHTML=c;let u=s.outerHTML;const d=s.querySelectorAll(".ep_glossary_item");return d.length>0&&d.forEach(p=>{const m=p.getAttribute("data-id"),g=p.innerHTML;let b=[];e.glossary&&(b=e.glossary);const f=b.find(E=>E.id===m);if(f){const E=p.outerHTML,v=b.filter(A=>A.relation.some(D=>D==m)).map(A=>A.term),y=f.variation,C=f.img?f.img:"",N=`<div style="display:inline"><EpTerm term="${f.term}" word="${g}" variations="${y}" graminfo="${f.graminfo}" src="${C}" domain="${f.domain}" relations="${v}"> ${f.definition}</EpTerm> </div>`;u=u.replace(E,N)}}),s.innerHTML=u,s.innerHTML}),i=()=>{const s={components:{epterm:a.defineAsyncComponent(()=>Promise.resolve().then(()=>qr))},template:`${r.value}`};return a.h(s)},{compact:o}=a.toRefs(e);return(s,l)=>(a.openBlock(),a.createElementBlock("div",$E,[a.unref(o)?(a.openBlock(),a.createBlock(gr,{key:1,outlined:"",title:n.value},{default:a.withCtx(()=>[a.createVNode(i)]),_:1},8,["title"])):(a.openBlock(),a.createBlock(i,{key:0}))]))}}),ha=Object.freeze(Object.defineProperty({__proto__:null,default:nd},Symbol.toStringTag,{value:"Module"})),WE={small:"w-36 h-36",medium:"w-56 h-56",large:"w-72 h-72"};function KE(t){return a.getCurrentScope()?(a.onScopeDispose(t),!0):!1}function Lt(t){return typeof t=="function"?t():a.unref(t)}const rd=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const QE=Object.prototype.toString,XE=t=>QE.call(t)==="[object Object]",vn=()=>{},ZE=JE();function JE(){var t,e;return rd&&((t=window==null?void 0:window.navigator)==null?void 0:t.userAgent)&&(/iP(ad|hone|od)/.test(window.navigator.userAgent)||((e=window==null?void 0:window.navigator)==null?void 0:e.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function ba(t,e=!1,n="Timeout"){return new Promise((r,i)=>{setTimeout(e?()=>i(n):r,t)})}function fa(t,e=!1){function n(p,{flush:m="sync",deep:g=!1,timeout:b,throwOnTimeout:f}={}){let E=null;const v=[new Promise(y=>{E=a.watch(t,C=>{p(C)!==e&&(E==null||E(),y(C))},{flush:m,deep:g,immediate:!0})})];return b!=null&&v.push(ba(b,f).then(()=>Lt(t)).finally(()=>E==null?void 0:E())),Promise.race(v)}function r(p,m){if(!a.isRef(p))return n(C=>C===p,m);const{flush:g="sync",deep:b=!1,timeout:f,throwOnTimeout:E}=m??{};let R=null;const y=[new Promise(C=>{R=a.watch([t,p],([N,A])=>{e!==(N===A)&&(R==null||R(),C(N))},{flush:g,deep:b,immediate:!0})})];return f!=null&&y.push(ba(f,E).then(()=>Lt(t)).finally(()=>(R==null||R(),Lt(t)))),Promise.race(y)}function i(p){return n(m=>!!m,p)}function o(p){return r(null,p)}function s(p){return r(void 0,p)}function l(p){return n(Number.isNaN,p)}function c(p,m){return n(g=>{const b=Array.from(g);return b.includes(p)||b.includes(Lt(p))},m)}function u(p){return d(1,p)}function d(p=1,m){let g=-1;return n(()=>(g+=1,g>=p),m)}return Array.isArray(Lt(t))?{toMatch:n,toContains:c,changed:u,changedTimes:d,get not(){return fa(t,!e)}}:{toMatch:n,toBe:r,toBeTruthy:i,toBeNull:o,toBeNaN:l,toBeUndefined:s,changed:u,changedTimes:d,get not(){return fa(t,!e)}}}function e1(t){return fa(t)}function Vn(t){var e;const n=Lt(t);return(e=n==null?void 0:n.$el)!=null?e:n}const ad=rd?window:void 0;function hr(...t){let e,n,r,i;if(typeof t[0]=="string"||Array.isArray(t[0])?([n,r,i]=t,e=ad):[e,n,r,i]=t,!e)return vn;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const o=[],s=()=>{o.forEach(d=>d()),o.length=0},l=(d,p,m,g)=>(d.addEventListener(p,m,g),()=>d.removeEventListener(p,m,g)),c=a.watch(()=>[Vn(e),Lt(i)],([d,p])=>{if(s(),!d)return;const m=XE(p)?{...p}:p;o.push(...n.flatMap(g=>r.map(b=>l(d,g,b,m))))},{immediate:!0,flush:"post"}),u=()=>{c(),s()};return KE(u),u}let id=!1;function t1(t,e,n={}){const{window:r=ad,ignore:i=[],capture:o=!0,detectIframe:s=!1}=n;if(!r)return vn;ZE&&!id&&(id=!0,Array.from(r.document.body.children).forEach(m=>m.addEventListener("click",vn)),r.document.documentElement.addEventListener("click",vn));let l=!0;const c=m=>i.some(g=>{if(typeof g=="string")return Array.from(r.document.querySelectorAll(g)).some(b=>b===m.target||m.composedPath().includes(b));{const b=Vn(g);return b&&(m.target===b||m.composedPath().includes(b))}}),d=[hr(r,"click",m=>{const g=Vn(t);if(!(!g||g===m.target||m.composedPath().includes(g))){if(m.detail===0&&(l=!c(m)),!l){l=!0;return}e(m)}},{passive:!0,capture:o}),hr(r,"pointerdown",m=>{const g=Vn(t);l=!c(m)&&!!(g&&!m.composedPath().includes(g))},{passive:!0}),s&&hr(r,"blur",m=>{setTimeout(()=>{var g;const b=Vn(t);((g=r.document.activeElement)==null?void 0:g.tagName)==="IFRAME"&&!(b!=null&&b.contains(r.document.activeElement))&&e(m)},0)})].filter(Boolean);return()=>d.forEach(m=>m())}function n1(t,e,n){const{immediate:r=!0,delay:i=0,onError:o=vn,onSuccess:s=vn,resetOnExecute:l=!0,shallow:c=!0,throwError:u}=n??{},d=c?a.shallowRef(e):a.ref(e),p=a.ref(!1),m=a.ref(!1),g=a.shallowRef(void 0);async function b(R=0,...v){l&&(d.value=e),g.value=void 0,p.value=!1,m.value=!0,R>0&&await ba(R);const y=typeof t=="function"?t(...v):t;try{const C=await y;d.value=C,p.value=!0,s(C)}catch(C){if(g.value=C,o(C),u)throw C}finally{m.value=!1}return d.value}r&&b(i);const f={state:d,isReady:p,isLoading:m,error:g,execute:b};function E(){return new Promise((R,v)=>{e1(m).toBe(!1).then(()=>R(f)).catch(v)})}return{...f,then(R,v){return E().then(R,v)}}}async function r1(t){return new Promise((e,n)=>{const r=new Image,{src:i,srcset:o,sizes:s,class:l,loading:c,crossorigin:u,referrerPolicy:d}=t;r.src=i,o&&(r.srcset=o),s&&(r.sizes=s),l&&(r.className=l),c&&(r.loading=c),u&&(r.crossOrigin=u),d&&(r.referrerPolicy=d),r.onload=()=>e(r),r.onerror=n})}function a1(t,e={}){const n=n1(()=>r1(Lt(t)),void 0,{resetOnExecute:!0,...e});return a.watch(()=>Lt(t),()=>n.execute(e.delay),{deep:!0}),n}const i1={compact:"p-0",default:"p-4",comfortable:"p-8"},o1=["src"],s1={key:0,class:"mb-2 flex items-center justify-between dark:text-white"},l1={class:"text-2xl dark:text-white font-bold"},c1={key:0},u1={class:"dark:text-white"},d1={class:"dark:text-white"},qn=a.defineComponent({__name:"EpCard",props:{title:{default:null},subtitle:{default:null},outlined:{type:Boolean,default:!1},flat:{type:Boolean,default:!1},icon:{default:null},color:{default:null},src:{default:null},maxWidth:{default:"max-w-full"},density:{default:"default"}},setup(t){const e=t,n=a.computed(()=>e.flat?"":"shadow-lg"),r=a.computed(()=>e.outlined&&e.color?`border solid ${gt("border",e.color)}`:e.outlined?"border solid border-primary dark:border-white":"dark:border dark:solid dar:border-white"),i=a.computed(()=>e.color&&!e.outlined?`${gt("bg",e.color)}`:"bg-white text-black"),o=a.computed(()=>e.color&&!e.outlined?"text-white":"text-gray-600"),s=a.computed(()=>i1[e.density]),l=a.computed(()=>`
16
+ `,o.map=[e,t.line],!0}function Sf(t,e,n,r){let i=t.bMarks[e]+t.tShift[e],o=t.eMarks[e];if(t.sCount[e]-t.blkIndent>=4||i+3>o)return!1;const s=t.src.charCodeAt(i);if(s!==126&&s!==96)return!1;let l=i;i=t.skipChars(i,s);let c=i-l;if(c<3)return!1;const u=t.src.slice(l,i),d=t.src.slice(i,o);if(s===96&&d.indexOf(String.fromCharCode(s))>=0)return!1;if(r)return!0;let p=e,m=!1;for(;p++,!(p>=n||(i=l=t.bMarks[p]+t.tShift[p],o=t.eMarks[p],i<o&&t.sCount[p]<t.blkIndent));)if(t.src.charCodeAt(i)===s&&!(t.sCount[p]-t.blkIndent>=4)&&(i=t.skipChars(i,s),!(i-l<c)&&(i=t.skipSpaces(i),!(i<o)))){m=!0;break}c=t.sCount[e],t.line=p+(m?1:0);const g=t.push("fence","code",0);return g.info=d,g.content=t.getLines(e+1,p,c,!0),g.markup=u,g.map=[e,t.line],!0}function vf(t,e,n,r){let i=t.bMarks[e]+t.tShift[e],o=t.eMarks[e];const s=t.lineMax;if(t.sCount[e]-t.blkIndent>=4||t.src.charCodeAt(i)!==62)return!1;if(r)return!0;const l=[],c=[],u=[],d=[],p=t.md.block.ruler.getRules("blockquote"),m=t.parentType;t.parentType="blockquote";let g=!1,b;for(b=e;b<n;b++){const y=t.sCount[b]<t.blkIndent;if(i=t.bMarks[b]+t.tShift[b],o=t.eMarks[b],i>=o)break;if(t.src.charCodeAt(i++)===62&&!y){let N=t.sCount[b]+1,A,D;t.src.charCodeAt(i)===32?(i++,N++,D=!1,A=!0):t.src.charCodeAt(i)===9?(A=!0,(t.bsCount[b]+N)%4===3?(i++,N++,D=!1):D=!0):A=!1;let M=N;for(l.push(t.bMarks[b]),t.bMarks[b]=i;i<o;){const L=t.src.charCodeAt(i);if(Pe(L))L===9?M+=4-(M+t.bsCount[b]+(D?1:0))%4:M++;else break;i++}g=i>=o,c.push(t.bsCount[b]),t.bsCount[b]=t.sCount[b]+1+(A?1:0),u.push(t.sCount[b]),t.sCount[b]=M-N,d.push(t.tShift[b]),t.tShift[b]=i-t.bMarks[b];continue}if(g)break;let C=!1;for(let N=0,A=p.length;N<A;N++)if(p[N](t,b,n,!0)){C=!0;break}if(C){t.lineMax=b,t.blkIndent!==0&&(l.push(t.bMarks[b]),c.push(t.bsCount[b]),d.push(t.tShift[b]),u.push(t.sCount[b]),t.sCount[b]-=t.blkIndent);break}l.push(t.bMarks[b]),c.push(t.bsCount[b]),d.push(t.tShift[b]),u.push(t.sCount[b]),t.sCount[b]=-1}const f=t.blkIndent;t.blkIndent=0;const E=t.push("blockquote_open","blockquote",1);E.markup=">";const R=[e,0];E.map=R,t.md.block.tokenize(t,e,b);const v=t.push("blockquote_close","blockquote",-1);v.markup=">",t.lineMax=s,t.parentType=m,R[1]=t.line;for(let y=0;y<d.length;y++)t.bMarks[y+e]=l[y],t.tShift[y+e]=d[y],t.sCount[y+e]=u[y],t.bsCount[y+e]=c[y];return t.blkIndent=f,!0}function yf(t,e,n,r){const i=t.eMarks[e];if(t.sCount[e]-t.blkIndent>=4)return!1;let o=t.bMarks[e]+t.tShift[e];const s=t.src.charCodeAt(o++);if(s!==42&&s!==45&&s!==95)return!1;let l=1;for(;o<i;){const u=t.src.charCodeAt(o++);if(u!==s&&!Pe(u))return!1;u===s&&l++}if(l<3)return!1;if(r)return!0;t.line=e+1;const c=t.push("hr","hr",0);return c.map=[e,t.line],c.markup=Array(l+1).join(String.fromCharCode(s)),!0}function wu(t,e){const n=t.eMarks[e];let r=t.bMarks[e]+t.tShift[e];const i=t.src.charCodeAt(r++);if(i!==42&&i!==45&&i!==43)return-1;if(r<n){const o=t.src.charCodeAt(r);if(!Pe(o))return-1}return r}function Mu(t,e){const n=t.bMarks[e]+t.tShift[e],r=t.eMarks[e];let i=n;if(i+1>=r)return-1;let o=t.src.charCodeAt(i++);if(o<48||o>57)return-1;for(;;){if(i>=r)return-1;if(o=t.src.charCodeAt(i++),o>=48&&o<=57){if(i-n>=10)return-1;continue}if(o===41||o===46)break;return-1}return i<r&&(o=t.src.charCodeAt(i),!Pe(o))?-1:i}function Tf(t,e){const n=t.level+2;for(let r=e+2,i=t.tokens.length-2;r<i;r++)t.tokens[r].level===n&&t.tokens[r].type==="paragraph_open"&&(t.tokens[r+2].hidden=!0,t.tokens[r].hidden=!0,r+=2)}function Cf(t,e,n,r){let i,o,s,l,c=e,u=!0;if(t.sCount[c]-t.blkIndent>=4||t.listIndent>=0&&t.sCount[c]-t.listIndent>=4&&t.sCount[c]<t.blkIndent)return!1;let d=!1;r&&t.parentType==="paragraph"&&t.sCount[c]>=t.blkIndent&&(d=!0);let p,m,g;if((g=Mu(t,c))>=0){if(p=!0,s=t.bMarks[c]+t.tShift[c],m=Number(t.src.slice(s,g-1)),d&&m!==1)return!1}else if((g=wu(t,c))>=0)p=!1;else return!1;if(d&&t.skipSpaces(g)>=t.eMarks[c])return!1;if(r)return!0;const b=t.src.charCodeAt(g-1),f=t.tokens.length;p?(l=t.push("ordered_list_open","ol",1),m!==1&&(l.attrs=[["start",m]])):l=t.push("bullet_list_open","ul",1);const E=[c,0];l.map=E,l.markup=String.fromCharCode(b);let R=!1;const v=t.md.block.ruler.getRules("list"),y=t.parentType;for(t.parentType="list";c<n;){o=g,i=t.eMarks[c];const C=t.sCount[c]+g-(t.bMarks[c]+t.tShift[c]);let N=C;for(;o<i;){const re=t.src.charCodeAt(o);if(re===9)N+=4-(N+t.bsCount[c])%4;else if(re===32)N++;else break;o++}const A=o;let D;A>=i?D=1:D=N-C,D>4&&(D=1);const M=C+D;l=t.push("list_item_open","li",1),l.markup=String.fromCharCode(b);const L=[c,0];l.map=L,p&&(l.info=t.src.slice(s,g-1));const $=t.tight,j=t.tShift[c],ee=t.sCount[c],fe=t.listIndent;if(t.listIndent=t.blkIndent,t.blkIndent=M,t.tight=!0,t.tShift[c]=A-t.bMarks[c],t.sCount[c]=N,A>=i&&t.isEmpty(c+1)?t.line=Math.min(t.line+2,n):t.md.block.tokenize(t,c,n,!0),(!t.tight||R)&&(u=!1),R=t.line-c>1&&t.isEmpty(t.line-1),t.blkIndent=t.listIndent,t.listIndent=fe,t.tShift[c]=j,t.sCount[c]=ee,t.tight=$,l=t.push("list_item_close","li",-1),l.markup=String.fromCharCode(b),c=t.line,L[1]=c,c>=n||t.sCount[c]<t.blkIndent||t.sCount[c]-t.blkIndent>=4)break;let ie=!1;for(let re=0,Ee=v.length;re<Ee;re++)if(v[re](t,c,n,!0)){ie=!0;break}if(ie)break;if(p){if(g=Mu(t,c),g<0)break;s=t.bMarks[c]+t.tShift[c]}else if(g=wu(t,c),g<0)break;if(b!==t.src.charCodeAt(g-1))break}return p?l=t.push("ordered_list_close","ol",-1):l=t.push("bullet_list_close","ul",-1),l.markup=String.fromCharCode(b),E[1]=c,t.line=c,t.parentType=y,u&&Tf(t,f),!0}function Rf(t,e,n,r){let i=t.bMarks[e]+t.tShift[e],o=t.eMarks[e],s=e+1;if(t.sCount[e]-t.blkIndent>=4||t.src.charCodeAt(i)!==91)return!1;function l(v){const y=t.lineMax;if(v>=y||t.isEmpty(v))return null;let C=!1;if(t.sCount[v]-t.blkIndent>3&&(C=!0),t.sCount[v]<0&&(C=!0),!C){const D=t.md.block.ruler.getRules("reference"),M=t.parentType;t.parentType="reference";let L=!1;for(let $=0,j=D.length;$<j;$++)if(D[$](t,v,y,!0)){L=!0;break}if(t.parentType=M,L)return null}const N=t.bMarks[v]+t.tShift[v],A=t.eMarks[v];return t.src.slice(N,A+1)}let c=t.src.slice(i,o+1);o=c.length;let u=-1;for(i=1;i<o;i++){const v=c.charCodeAt(i);if(v===91)return!1;if(v===93){u=i;break}else if(v===10){const y=l(s);y!==null&&(c+=y,o=c.length,s++)}else if(v===92&&(i++,i<o&&c.charCodeAt(i)===10)){const y=l(s);y!==null&&(c+=y,o=c.length,s++)}}if(u<0||c.charCodeAt(u+1)!==58)return!1;for(i=u+2;i<o;i++){const v=c.charCodeAt(i);if(v===10){const y=l(s);y!==null&&(c+=y,o=c.length,s++)}else if(!Pe(v))break}const d=t.md.helpers.parseLinkDestination(c,i,o);if(!d.ok)return!1;const p=t.md.normalizeLink(d.str);if(!t.md.validateLink(p))return!1;i=d.pos;const m=i,g=s,b=i;for(;i<o;i++){const v=c.charCodeAt(i);if(v===10){const y=l(s);y!==null&&(c+=y,o=c.length,s++)}else if(!Pe(v))break}let f=t.md.helpers.parseLinkTitle(c,i,o);for(;f.can_continue;){const v=l(s);if(v===null)break;c+=v,i=o,o=c.length,s++,f=t.md.helpers.parseLinkTitle(c,i,o,f)}let E;for(i<o&&b!==i&&f.ok?(E=f.str,i=f.pos):(E="",i=m,s=g);i<o;){const v=c.charCodeAt(i);if(!Pe(v))break;i++}if(i<o&&c.charCodeAt(i)!==10&&E)for(E="",i=m,s=g;i<o;){const v=c.charCodeAt(i);if(!Pe(v))break;i++}if(i<o&&c.charCodeAt(i)!==10)return!1;const R=cr(c.slice(1,u));return R?(r||(typeof t.env.references>"u"&&(t.env.references={}),typeof t.env.references[R]>"u"&&(t.env.references[R]={title:E,href:p}),t.line=s),!0):!1}const Nf=["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"],Af="[a-zA-Z_:][a-zA-Z0-9:._-]*",Of="(?:"+"[^\"'=<>`\\x00-\\x20]+"+"|"+"'[^']*'"+"|"+'"[^"]*"'+")",Lu="<[A-Za-z][A-Za-z0-9\\-]*"+("(?:\\s+"+Af+"(?:\\s*=\\s*"+Of+")?)")+"*\\s*\\/?>",Pu="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",kf="<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->",xf="<[?][\\s\\S]*?[?]>",If="<![A-Za-z][^>]*>",Df="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",wf=new RegExp("^(?:"+Lu+"|"+Pu+"|"+kf+"|"+xf+"|"+If+"|"+Df+")"),Mf=new RegExp("^(?:"+Lu+"|"+Pu+")"),En=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+Nf.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(Mf.source+"\\s*$"),/^$/,!1]];function Lf(t,e,n,r){let i=t.bMarks[e]+t.tShift[e],o=t.eMarks[e];if(t.sCount[e]-t.blkIndent>=4||!t.md.options.html||t.src.charCodeAt(i)!==60)return!1;let s=t.src.slice(i,o),l=0;for(;l<En.length&&!En[l][0].test(s);l++);if(l===En.length)return!1;if(r)return En[l][2];let c=e+1;if(!En[l][1].test(s)){for(;c<n&&!(t.sCount[c]<t.blkIndent);c++)if(i=t.bMarks[c]+t.tShift[c],o=t.eMarks[c],s=t.src.slice(i,o),En[l][1].test(s)){s.length!==0&&c++;break}}t.line=c;const u=t.push("html_block","",0);return u.map=[e,c],u.content=t.getLines(e,c,t.blkIndent,!0),!0}function Pf(t,e,n,r){let i=t.bMarks[e]+t.tShift[e],o=t.eMarks[e];if(t.sCount[e]-t.blkIndent>=4)return!1;let s=t.src.charCodeAt(i);if(s!==35||i>=o)return!1;let l=1;for(s=t.src.charCodeAt(++i);s===35&&i<o&&l<=6;)l++,s=t.src.charCodeAt(++i);if(l>6||i<o&&!Pe(s))return!1;if(r)return!0;o=t.skipSpacesBack(o,i);const c=t.skipCharsBack(o,35,i);c>i&&Pe(t.src.charCodeAt(c-1))&&(o=c),t.line=e+1;const u=t.push("heading_open","h"+String(l),1);u.markup="########".slice(0,l),u.map=[e,t.line];const d=t.push("inline","",0);d.content=t.src.slice(i,o).trim(),d.map=[e,t.line],d.children=[];const p=t.push("heading_close","h"+String(l),-1);return p.markup="########".slice(0,l),!0}function Bf(t,e,n){const r=t.md.block.ruler.getRules("paragraph");if(t.sCount[e]-t.blkIndent>=4)return!1;const i=t.parentType;t.parentType="paragraph";let o=0,s,l=e+1;for(;l<n&&!t.isEmpty(l);l++){if(t.sCount[l]-t.blkIndent>3)continue;if(t.sCount[l]>=t.blkIndent){let g=t.bMarks[l]+t.tShift[l];const b=t.eMarks[l];if(g<b&&(s=t.src.charCodeAt(g),(s===45||s===61)&&(g=t.skipChars(g,s),g=t.skipSpaces(g),g>=b))){o=s===61?1:2;break}}if(t.sCount[l]<0)continue;let m=!1;for(let g=0,b=r.length;g<b;g++)if(r[g](t,l,n,!0)){m=!0;break}if(m)break}if(!o)return!1;const c=t.getLines(e,l,t.blkIndent,!1).trim();t.line=l+1;const u=t.push("heading_open","h"+String(o),1);u.markup=String.fromCharCode(s),u.map=[e,t.line];const d=t.push("inline","",0);d.content=c,d.map=[e,t.line-1],d.children=[];const p=t.push("heading_close","h"+String(o),-1);return p.markup=String.fromCharCode(s),t.parentType=i,!0}function Ff(t,e,n){const r=t.md.block.ruler.getRules("paragraph"),i=t.parentType;let o=e+1;for(t.parentType="paragraph";o<n&&!t.isEmpty(o);o++){if(t.sCount[o]-t.blkIndent>3||t.sCount[o]<0)continue;let u=!1;for(let d=0,p=r.length;d<p;d++)if(r[d](t,o,n,!0)){u=!0;break}if(u)break}const s=t.getLines(e,o,t.blkIndent,!1).trim();t.line=o;const l=t.push("paragraph_open","p",1);l.map=[e,t.line];const c=t.push("inline","",0);return c.content=s,c.map=[e,t.line],c.children=[],t.push("paragraph_close","p",-1),t.parentType=i,!0}const dr=[["table",ff,["paragraph","reference"]],["code",Ef],["fence",Sf,["paragraph","reference","blockquote","list"]],["blockquote",vf,["paragraph","reference","blockquote","list"]],["hr",yf,["paragraph","reference","blockquote","list"]],["list",Cf,["paragraph","reference","blockquote"]],["reference",Rf],["html_block",Lf,["paragraph","reference","blockquote"]],["heading",Pf,["paragraph","reference","blockquote"]],["lheading",Bf],["paragraph",Ff]];function pr(){this.ruler=new it;for(let t=0;t<dr.length;t++)this.ruler.push(dr[t][0],dr[t][1],{alt:(dr[t][2]||[]).slice()})}pr.prototype.tokenize=function(t,e,n){const r=this.ruler.getRules(""),i=r.length,o=t.md.options.maxNesting;let s=e,l=!1;for(;s<n&&(t.line=s=t.skipEmptyLines(s),!(s>=n||t.sCount[s]<t.blkIndent));){if(t.level>=o){t.line=n;break}const c=t.line;let u=!1;for(let d=0;d<i;d++)if(u=r[d](t,s,n,!1),u){if(c>=t.line)throw new Error("block rule didn't increment state.line");break}if(!u)throw new Error("none of the block rules matched");t.tight=!l,t.isEmpty(t.line-1)&&(l=!0),s=t.line,s<n&&t.isEmpty(s)&&(l=!0,s++,t.line=s)}},pr.prototype.parse=function(t,e,n,r){if(!t)return;const i=new this.State(t,e,n,r);this.tokenize(i,i.line,i.lineMax)},pr.prototype.State=At;function jn(t,e,n,r){this.src=t,this.env=n,this.md=e,this.tokens=r,this.tokens_meta=Array(r.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0}jn.prototype.pushPending=function(){const t=new yt("text","",0);return t.content=this.pending,t.level=this.pendingLevel,this.tokens.push(t),this.pending="",t},jn.prototype.push=function(t,e,n){this.pending&&this.pushPending();const r=new yt(t,e,n);let i=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),r.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],i={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(r),this.tokens_meta.push(i),r},jn.prototype.scanDelims=function(t,e){const n=this.posMax,r=this.src.charCodeAt(t),i=t>0?this.src.charCodeAt(t-1):32;let o=t;for(;o<n&&this.src.charCodeAt(o)===r;)o++;const s=o-t,l=o<n?this.src.charCodeAt(o):32,c=Fn(i)||Bn(String.fromCharCode(i)),u=Fn(l)||Bn(String.fromCharCode(l)),d=Pn(i),p=Pn(l),m=!p&&(!u||d||c),g=!d&&(!c||p||u);return{can_open:m&&(e||!g||c),can_close:g&&(e||!m||u),length:s}},jn.prototype.Token=yt;function jf(t){switch(t){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 Uf(t,e){let n=t.pos;for(;n<t.posMax&&!jf(t.src.charCodeAt(n));)n++;return n===t.pos?!1:(e||(t.pending+=t.src.slice(t.pos,n)),t.pos=n,!0)}const Gf=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;function Vf(t,e){if(!t.md.options.linkify||t.linkLevel>0)return!1;const n=t.pos,r=t.posMax;if(n+3>r||t.src.charCodeAt(n)!==58||t.src.charCodeAt(n+1)!==47||t.src.charCodeAt(n+2)!==47)return!1;const i=t.pending.match(Gf);if(!i)return!1;const o=i[1],s=t.md.linkify.matchAtStart(t.src.slice(n-o.length));if(!s)return!1;let l=s.url;if(l.length<=o.length)return!1;l=l.replace(/\*+$/,"");const c=t.md.normalizeLink(l);if(!t.md.validateLink(c))return!1;if(!e){t.pending=t.pending.slice(0,-o.length);const u=t.push("link_open","a",1);u.attrs=[["href",c]],u.markup="linkify",u.info="auto";const d=t.push("text","",0);d.content=t.md.normalizeLinkText(l);const p=t.push("link_close","a",-1);p.markup="linkify",p.info="auto"}return t.pos+=l.length-o.length,!0}function qf(t,e){let n=t.pos;if(t.src.charCodeAt(n)!==10)return!1;const r=t.pending.length-1,i=t.posMax;if(!e)if(r>=0&&t.pending.charCodeAt(r)===32)if(r>=1&&t.pending.charCodeAt(r-1)===32){let o=r-1;for(;o>=1&&t.pending.charCodeAt(o-1)===32;)o--;t.pending=t.pending.slice(0,o),t.push("hardbreak","br",0)}else t.pending=t.pending.slice(0,-1),t.push("softbreak","br",0);else t.push("softbreak","br",0);for(n++;n<i&&Pe(t.src.charCodeAt(n));)n++;return t.pos=n,!0}const oa=[];for(let t=0;t<256;t++)oa.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(t){oa[t.charCodeAt(0)]=1});function zf(t,e){let n=t.pos;const r=t.posMax;if(t.src.charCodeAt(n)!==92||(n++,n>=r))return!1;let i=t.src.charCodeAt(n);if(i===10){for(e||t.push("hardbreak","br",0),n++;n<r&&(i=t.src.charCodeAt(n),!!Pe(i));)n++;return t.pos=n,!0}let o=t.src[n];if(i>=55296&&i<=56319&&n+1<r){const l=t.src.charCodeAt(n+1);l>=56320&&l<=57343&&(o+=t.src[n+1],n++)}const s="\\"+o;if(!e){const l=t.push("text_special","",0);i<256&&oa[i]!==0?l.content=o:l.content=s,l.markup=s,l.info="escape"}return t.pos=n+1,!0}function Yf(t,e){let n=t.pos;if(t.src.charCodeAt(n)!==96)return!1;const i=n;n++;const o=t.posMax;for(;n<o&&t.src.charCodeAt(n)===96;)n++;const s=t.src.slice(i,n),l=s.length;if(t.backticksScanned&&(t.backticks[l]||0)<=i)return e||(t.pending+=s),t.pos+=l,!0;let c=n,u;for(;(u=t.src.indexOf("`",c))!==-1;){for(c=u+1;c<o&&t.src.charCodeAt(c)===96;)c++;const d=c-u;if(d===l){if(!e){const p=t.push("code_inline","code",0);p.markup=s,p.content=t.src.slice(n,u).replace(/\n/g," ").replace(/^ (.+) $/,"$1")}return t.pos=c,!0}t.backticks[d]=u}return t.backticksScanned=!0,e||(t.pending+=s),t.pos+=l,!0}function Hf(t,e){const n=t.pos,r=t.src.charCodeAt(n);if(e||r!==126)return!1;const i=t.scanDelims(t.pos,!0);let o=i.length;const s=String.fromCharCode(r);if(o<2)return!1;let l;o%2&&(l=t.push("text","",0),l.content=s,o--);for(let c=0;c<o;c+=2)l=t.push("text","",0),l.content=s+s,t.delimiters.push({marker:r,length:0,token:t.tokens.length-1,end:-1,open:i.can_open,close:i.can_close});return t.pos+=i.length,!0}function Bu(t,e){let n;const r=[],i=e.length;for(let o=0;o<i;o++){const s=e[o];if(s.marker!==126||s.end===-1)continue;const l=e[s.end];n=t.tokens[s.token],n.type="s_open",n.tag="s",n.nesting=1,n.markup="~~",n.content="",n=t.tokens[l.token],n.type="s_close",n.tag="s",n.nesting=-1,n.markup="~~",n.content="",t.tokens[l.token-1].type==="text"&&t.tokens[l.token-1].content==="~"&&r.push(l.token-1)}for(;r.length;){const o=r.pop();let s=o+1;for(;s<t.tokens.length&&t.tokens[s].type==="s_close";)s++;s--,o!==s&&(n=t.tokens[s],t.tokens[s]=t.tokens[o],t.tokens[o]=n)}}function $f(t){const e=t.tokens_meta,n=t.tokens_meta.length;Bu(t,t.delimiters);for(let r=0;r<n;r++)e[r]&&e[r].delimiters&&Bu(t,e[r].delimiters)}const Fu={tokenize:Hf,postProcess:$f};function Wf(t,e){const n=t.pos,r=t.src.charCodeAt(n);if(e||r!==95&&r!==42)return!1;const i=t.scanDelims(t.pos,r===42);for(let o=0;o<i.length;o++){const s=t.push("text","",0);s.content=String.fromCharCode(r),t.delimiters.push({marker:r,length:i.length,token:t.tokens.length-1,end:-1,open:i.can_open,close:i.can_close})}return t.pos+=i.length,!0}function ju(t,e){const n=e.length;for(let r=n-1;r>=0;r--){const i=e[r];if(i.marker!==95&&i.marker!==42||i.end===-1)continue;const o=e[i.end],s=r>0&&e[r-1].end===i.end+1&&e[r-1].marker===i.marker&&e[r-1].token===i.token-1&&e[i.end+1].token===o.token+1,l=String.fromCharCode(i.marker),c=t.tokens[i.token];c.type=s?"strong_open":"em_open",c.tag=s?"strong":"em",c.nesting=1,c.markup=s?l+l:l,c.content="";const u=t.tokens[o.token];u.type=s?"strong_close":"em_close",u.tag=s?"strong":"em",u.nesting=-1,u.markup=s?l+l:l,u.content="",s&&(t.tokens[e[r-1].token].content="",t.tokens[e[i.end+1].token].content="",r--)}}function Kf(t){const e=t.tokens_meta,n=t.tokens_meta.length;ju(t,t.delimiters);for(let r=0;r<n;r++)e[r]&&e[r].delimiters&&ju(t,e[r].delimiters)}const Uu={tokenize:Wf,postProcess:Kf};function Qf(t,e){let n,r,i,o,s="",l="",c=t.pos,u=!0;if(t.src.charCodeAt(t.pos)!==91)return!1;const d=t.pos,p=t.posMax,m=t.pos+1,g=t.md.helpers.parseLinkLabel(t,t.pos,!0);if(g<0)return!1;let b=g+1;if(b<p&&t.src.charCodeAt(b)===40){for(u=!1,b++;b<p&&(n=t.src.charCodeAt(b),!(!Pe(n)&&n!==10));b++);if(b>=p)return!1;if(c=b,i=t.md.helpers.parseLinkDestination(t.src,b,t.posMax),i.ok){for(s=t.md.normalizeLink(i.str),t.md.validateLink(s)?b=i.pos:s="",c=b;b<p&&(n=t.src.charCodeAt(b),!(!Pe(n)&&n!==10));b++);if(i=t.md.helpers.parseLinkTitle(t.src,b,t.posMax),b<p&&c!==b&&i.ok)for(l=i.str,b=i.pos;b<p&&(n=t.src.charCodeAt(b),!(!Pe(n)&&n!==10));b++);}(b>=p||t.src.charCodeAt(b)!==41)&&(u=!0),b++}if(u){if(typeof t.env.references>"u")return!1;if(b<p&&t.src.charCodeAt(b)===91?(c=b+1,b=t.md.helpers.parseLinkLabel(t,b),b>=0?r=t.src.slice(c,b++):b=g+1):b=g+1,r||(r=t.src.slice(m,g)),o=t.env.references[cr(r)],!o)return t.pos=d,!1;s=o.href,l=o.title}if(!e){t.pos=m,t.posMax=g;const f=t.push("link_open","a",1),E=[["href",s]];f.attrs=E,l&&E.push(["title",l]),t.linkLevel++,t.md.inline.tokenize(t),t.linkLevel--,t.push("link_close","a",-1)}return t.pos=b,t.posMax=p,!0}function Xf(t,e){let n,r,i,o,s,l,c,u,d="";const p=t.pos,m=t.posMax;if(t.src.charCodeAt(t.pos)!==33||t.src.charCodeAt(t.pos+1)!==91)return!1;const g=t.pos+2,b=t.md.helpers.parseLinkLabel(t,t.pos+1,!1);if(b<0)return!1;if(o=b+1,o<m&&t.src.charCodeAt(o)===40){for(o++;o<m&&(n=t.src.charCodeAt(o),!(!Pe(n)&&n!==10));o++);if(o>=m)return!1;for(u=o,l=t.md.helpers.parseLinkDestination(t.src,o,t.posMax),l.ok&&(d=t.md.normalizeLink(l.str),t.md.validateLink(d)?o=l.pos:d=""),u=o;o<m&&(n=t.src.charCodeAt(o),!(!Pe(n)&&n!==10));o++);if(l=t.md.helpers.parseLinkTitle(t.src,o,t.posMax),o<m&&u!==o&&l.ok)for(c=l.str,o=l.pos;o<m&&(n=t.src.charCodeAt(o),!(!Pe(n)&&n!==10));o++);else c="";if(o>=m||t.src.charCodeAt(o)!==41)return t.pos=p,!1;o++}else{if(typeof t.env.references>"u")return!1;if(o<m&&t.src.charCodeAt(o)===91?(u=o+1,o=t.md.helpers.parseLinkLabel(t,o),o>=0?i=t.src.slice(u,o++):o=b+1):o=b+1,i||(i=t.src.slice(g,b)),s=t.env.references[cr(i)],!s)return t.pos=p,!1;d=s.href,c=s.title}if(!e){r=t.src.slice(g,b);const f=[];t.md.inline.parse(r,t.md,t.env,f);const E=t.push("image","img",0),R=[["src",d],["alt",""]];E.attrs=R,E.children=f,E.content=r,c&&R.push(["title",c])}return t.pos=o,t.posMax=m,!0}const Zf=/^([a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,Jf=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;function eE(t,e){let n=t.pos;if(t.src.charCodeAt(n)!==60)return!1;const r=t.pos,i=t.posMax;for(;;){if(++n>=i)return!1;const s=t.src.charCodeAt(n);if(s===60)return!1;if(s===62)break}const o=t.src.slice(r+1,n);if(Jf.test(o)){const s=t.md.normalizeLink(o);if(!t.md.validateLink(s))return!1;if(!e){const l=t.push("link_open","a",1);l.attrs=[["href",s]],l.markup="autolink",l.info="auto";const c=t.push("text","",0);c.content=t.md.normalizeLinkText(o);const u=t.push("link_close","a",-1);u.markup="autolink",u.info="auto"}return t.pos+=o.length+2,!0}if(Zf.test(o)){const s=t.md.normalizeLink("mailto:"+o);if(!t.md.validateLink(s))return!1;if(!e){const l=t.push("link_open","a",1);l.attrs=[["href",s]],l.markup="autolink",l.info="auto";const c=t.push("text","",0);c.content=t.md.normalizeLinkText(o);const u=t.push("link_close","a",-1);u.markup="autolink",u.info="auto"}return t.pos+=o.length+2,!0}return!1}function tE(t){return/^<a[>\s]/i.test(t)}function nE(t){return/^<\/a\s*>/i.test(t)}function rE(t){const e=t|32;return e>=97&&e<=122}function aE(t,e){if(!t.md.options.html)return!1;const n=t.posMax,r=t.pos;if(t.src.charCodeAt(r)!==60||r+2>=n)return!1;const i=t.src.charCodeAt(r+1);if(i!==33&&i!==63&&i!==47&&!rE(i))return!1;const o=t.src.slice(r).match(wf);if(!o)return!1;if(!e){const s=t.push("html_inline","",0);s.content=o[0],tE(s.content)&&t.linkLevel++,nE(s.content)&&t.linkLevel--}return t.pos+=o[0].length,!0}const iE=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,oE=/^&([a-z][a-z0-9]{1,31});/i;function sE(t,e){const n=t.pos,r=t.posMax;if(t.src.charCodeAt(n)!==38||n+1>=r)return!1;if(t.src.charCodeAt(n+1)===35){const o=t.src.slice(n).match(iE);if(o){if(!e){const s=o[1][0].toLowerCase()==="x"?parseInt(o[1].slice(1),16):parseInt(o[1],10),l=t.push("text_special","",0);l.content=na(s)?lr(s):lr(65533),l.markup=o[0],l.info="entity"}return t.pos+=o[0].length,!0}}else{const o=t.src.slice(n).match(oE);if(o){const s=Ru(o[0]);if(s!==o[0]){if(!e){const l=t.push("text_special","",0);l.content=s,l.markup=o[0],l.info="entity"}return t.pos+=o[0].length,!0}}}return!1}function Gu(t){const e={},n=t.length;if(!n)return;let r=0,i=-2;const o=[];for(let s=0;s<n;s++){const l=t[s];if(o.push(0),(t[r].marker!==l.marker||i!==l.token-1)&&(r=s),i=l.token,l.length=l.length||0,!l.close)continue;e.hasOwnProperty(l.marker)||(e[l.marker]=[-1,-1,-1,-1,-1,-1]);const c=e[l.marker][(l.open?3:0)+l.length%3];let u=r-o[r]-1,d=u;for(;u>c;u-=o[u]+1){const p=t[u];if(p.marker===l.marker&&p.open&&p.end<0){let m=!1;if((p.close||l.open)&&(p.length+l.length)%3===0&&(p.length%3!==0||l.length%3!==0)&&(m=!0),!m){const g=u>0&&!t[u-1].open?o[u-1]+1:0;o[s]=s-u+g,o[u]=g,l.open=!1,p.end=s,p.close=!1,d=-1,i=-2;break}}}d!==-1&&(e[l.marker][(l.open?3:0)+(l.length||0)%3]=d)}}function lE(t){const e=t.tokens_meta,n=t.tokens_meta.length;Gu(t.delimiters);for(let r=0;r<n;r++)e[r]&&e[r].delimiters&&Gu(e[r].delimiters)}function cE(t){let e,n,r=0;const i=t.tokens,o=t.tokens.length;for(e=n=0;e<o;e++)i[e].nesting<0&&r--,i[e].level=r,i[e].nesting>0&&r++,i[e].type==="text"&&e+1<o&&i[e+1].type==="text"?i[e+1].content=i[e].content+i[e+1].content:(e!==n&&(i[n]=i[e]),n++);e!==n&&(i.length=n)}const sa=[["text",Uf],["linkify",Vf],["newline",qf],["escape",zf],["backticks",Yf],["strikethrough",Fu.tokenize],["emphasis",Uu.tokenize],["link",Qf],["image",Xf],["autolink",eE],["html_inline",aE],["entity",sE]],la=[["balance_pairs",lE],["strikethrough",Fu.postProcess],["emphasis",Uu.postProcess],["fragments_join",cE]];function Un(){this.ruler=new it;for(let t=0;t<sa.length;t++)this.ruler.push(sa[t][0],sa[t][1]);this.ruler2=new it;for(let t=0;t<la.length;t++)this.ruler2.push(la[t][0],la[t][1])}Un.prototype.skipToken=function(t){const e=t.pos,n=this.ruler.getRules(""),r=n.length,i=t.md.options.maxNesting,o=t.cache;if(typeof o[e]<"u"){t.pos=o[e];return}let s=!1;if(t.level<i){for(let l=0;l<r;l++)if(t.level++,s=n[l](t,!0),t.level--,s){if(e>=t.pos)throw new Error("inline rule didn't increment state.pos");break}}else t.pos=t.posMax;s||t.pos++,o[e]=t.pos},Un.prototype.tokenize=function(t){const e=this.ruler.getRules(""),n=e.length,r=t.posMax,i=t.md.options.maxNesting;for(;t.pos<r;){const o=t.pos;let s=!1;if(t.level<i){for(let l=0;l<n;l++)if(s=e[l](t,!1),s){if(o>=t.pos)throw new Error("inline rule didn't increment state.pos");break}}if(s){if(t.pos>=r)break;continue}t.pending+=t.src[t.pos++]}t.pending&&t.pushPending()},Un.prototype.parse=function(t,e,n,r){const i=new this.State(t,e,n,r);this.tokenize(i);const o=this.ruler2.getRules(""),s=o.length;for(let l=0;l<s;l++)o[l](i)},Un.prototype.State=jn;function uE(t){const e={};t=t||{},e.src_Any=Su.source,e.src_Cc=vu.source,e.src_Z=Tu.source,e.src_P=Zr.source,e.src_ZPCc=[e.src_Z,e.src_P,e.src_Cc].join("|"),e.src_ZCc=[e.src_Z,e.src_Cc].join("|");const n="[><|]";return e.src_pseudo_letter="(?:(?!"+n+"|"+e.src_ZPCc+")"+e.src_Any+")",e.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",e.src_auth="(?:(?:(?!"+e.src_ZCc+"|[@/\\[\\]()]).)+@)?",e.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",e.src_host_terminator="(?=$|"+n+"|"+e.src_ZPCc+")(?!"+(t["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+e.src_ZPCc+"))",e.src_path="(?:[/?#](?:(?!"+e.src_ZCc+"|"+n+`|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!`+e.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+e.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+e.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+e.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+e.src_ZCc+"|[']).)+\\'|\\'(?="+e.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+e.src_ZCc+"|[.]|$)|"+(t["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+e.src_ZCc+"|$)|;(?!"+e.src_ZCc+"|$)|\\!+(?!"+e.src_ZCc+"|[!]|$)|\\?(?!"+e.src_ZCc+"|[?]|$))+|\\/)?",e.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',e.src_xn="xn--[a-z0-9\\-]{1,59}",e.src_domain_root="(?:"+e.src_xn+"|"+e.src_pseudo_letter+"{1,63})",e.src_domain="(?:"+e.src_xn+"|(?:"+e.src_pseudo_letter+")|(?:"+e.src_pseudo_letter+"(?:-|"+e.src_pseudo_letter+"){0,61}"+e.src_pseudo_letter+"))",e.src_host="(?:(?:(?:(?:"+e.src_domain+")\\.)*"+e.src_domain+"))",e.tpl_host_fuzzy="(?:"+e.src_ip4+"|(?:(?:(?:"+e.src_domain+")\\.)+(?:%TLDS%)))",e.tpl_host_no_ip_fuzzy="(?:(?:(?:"+e.src_domain+")\\.)+(?:%TLDS%))",e.src_host_strict=e.src_host+e.src_host_terminator,e.tpl_host_fuzzy_strict=e.tpl_host_fuzzy+e.src_host_terminator,e.src_host_port_strict=e.src_host+e.src_port+e.src_host_terminator,e.tpl_host_port_fuzzy_strict=e.tpl_host_fuzzy+e.src_port+e.src_host_terminator,e.tpl_host_port_no_ip_fuzzy_strict=e.tpl_host_no_ip_fuzzy+e.src_port+e.src_host_terminator,e.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+e.src_ZPCc+"|>|$))",e.tpl_email_fuzzy="(^|"+n+'|"|\\(|'+e.src_ZCc+")("+e.src_email_name+"@"+e.tpl_host_fuzzy_strict+")",e.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+e.src_ZPCc+"))((?![$+<=>^`||])"+e.tpl_host_port_fuzzy_strict+e.src_path+")",e.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+e.src_ZPCc+"))((?![$+<=>^`||])"+e.tpl_host_port_no_ip_fuzzy_strict+e.src_path+")",e}function ca(t){return Array.prototype.slice.call(arguments,1).forEach(function(n){n&&Object.keys(n).forEach(function(r){t[r]=n[r]})}),t}function _r(t){return Object.prototype.toString.call(t)}function dE(t){return _r(t)==="[object String]"}function pE(t){return _r(t)==="[object Object]"}function _E(t){return _r(t)==="[object RegExp]"}function Vu(t){return _r(t)==="[object Function]"}function mE(t){return t.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}const qu={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function gE(t){return Object.keys(t||{}).reduce(function(e,n){return e||qu.hasOwnProperty(n)},!1)}const hE={"http:":{validate:function(t,e,n){const r=t.slice(e);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(r)?r.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(t,e,n){const r=t.slice(e);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(r)?e>=3&&t[e-3]===":"||e>=3&&t[e-3]==="/"?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(t,e,n){const r=t.slice(e);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(r)?r.match(n.re.mailto)[0].length:0}}},bE="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]",fE="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function EE(t){t.__index__=-1,t.__text_cache__=""}function SE(t){return function(e,n){const r=e.slice(n);return t.test(r)?r.match(t)[0].length:0}}function zu(){return function(t,e){e.normalize(t)}}function mr(t){const e=t.re=uE(t.__opts__),n=t.__tlds__.slice();t.onCompile(),t.__tlds_replaced__||n.push(bE),n.push(e.src_xn),e.src_tlds=n.join("|");function r(l){return l.replace("%TLDS%",e.src_tlds)}e.email_fuzzy=RegExp(r(e.tpl_email_fuzzy),"i"),e.link_fuzzy=RegExp(r(e.tpl_link_fuzzy),"i"),e.link_no_ip_fuzzy=RegExp(r(e.tpl_link_no_ip_fuzzy),"i"),e.host_fuzzy_test=RegExp(r(e.tpl_host_fuzzy_test),"i");const i=[];t.__compiled__={};function o(l,c){throw new Error('(LinkifyIt) Invalid schema "'+l+'": '+c)}Object.keys(t.__schemas__).forEach(function(l){const c=t.__schemas__[l];if(c===null)return;const u={validate:null,link:null};if(t.__compiled__[l]=u,pE(c)){_E(c.validate)?u.validate=SE(c.validate):Vu(c.validate)?u.validate=c.validate:o(l,c),Vu(c.normalize)?u.normalize=c.normalize:c.normalize?o(l,c):u.normalize=zu();return}if(dE(c)){i.push(l);return}o(l,c)}),i.forEach(function(l){t.__compiled__[t.__schemas__[l]]&&(t.__compiled__[l].validate=t.__compiled__[t.__schemas__[l]].validate,t.__compiled__[l].normalize=t.__compiled__[t.__schemas__[l]].normalize)}),t.__compiled__[""]={validate:null,normalize:zu()};const s=Object.keys(t.__compiled__).filter(function(l){return l.length>0&&t.__compiled__[l]}).map(mE).join("|");t.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+e.src_ZPCc+"))("+s+")","i"),t.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+e.src_ZPCc+"))("+s+")","ig"),t.re.schema_at_start=RegExp("^"+t.re.schema_search.source,"i"),t.re.pretest=RegExp("("+t.re.schema_test.source+")|("+t.re.host_fuzzy_test.source+")|@","i"),EE(t)}function vE(t,e){const n=t.__index__,r=t.__last_index__,i=t.__text_cache__.slice(n,r);this.schema=t.__schema__.toLowerCase(),this.index=n+e,this.lastIndex=r+e,this.raw=i,this.text=i,this.url=i}function ua(t,e){const n=new vE(t,e);return t.__compiled__[n.schema].normalize(n,t),n}function ut(t,e){if(!(this instanceof ut))return new ut(t,e);e||gE(t)&&(e=t,t={}),this.__opts__=ca({},qu,e),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=ca({},hE,t),this.__compiled__={},this.__tlds__=fE,this.__tlds_replaced__=!1,this.re={},mr(this)}ut.prototype.add=function(e,n){return this.__schemas__[e]=n,mr(this),this},ut.prototype.set=function(e){return this.__opts__=ca(this.__opts__,e),this},ut.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;let n,r,i,o,s,l,c,u,d;if(this.re.schema_test.test(e)){for(c=this.re.schema_search,c.lastIndex=0;(n=c.exec(e))!==null;)if(o=this.testSchemaAt(e,n[2],c.lastIndex),o){this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+o;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(u=e.search(this.re.host_fuzzy_test),u>=0&&(this.__index__<0||u<this.__index__)&&(r=e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(s=r.index+r[1].length,(this.__index__<0||s<this.__index__)&&(this.__schema__="",this.__index__=s,this.__last_index__=r.index+r[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(d=e.indexOf("@"),d>=0&&(i=e.match(this.re.email_fuzzy))!==null&&(s=i.index+i[1].length,l=i.index+i[0].length,(this.__index__<0||s<this.__index__||s===this.__index__&&l>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=s,this.__last_index__=l))),this.__index__>=0},ut.prototype.pretest=function(e){return this.re.pretest.test(e)},ut.prototype.testSchemaAt=function(e,n,r){return this.__compiled__[n.toLowerCase()]?this.__compiled__[n.toLowerCase()].validate(e,r,this):0},ut.prototype.match=function(e){const n=[];let r=0;this.__index__>=0&&this.__text_cache__===e&&(n.push(ua(this,r)),r=this.__last_index__);let i=r?e.slice(r):e;for(;this.test(i);)n.push(ua(this,r)),i=i.slice(this.__last_index__),r+=this.__last_index__;return n.length?n:null},ut.prototype.matchAtStart=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return null;const n=this.re.schema_at_start.exec(e);if(!n)return null;const r=this.testSchemaAt(e,n[2],n[0].length);return r?(this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+r,ua(this,0)):null},ut.prototype.tlds=function(e,n){return e=Array.isArray(e)?e:[e],n?(this.__tlds__=this.__tlds__.concat(e).sort().filter(function(r,i,o){return r!==o[i-1]}).reverse(),mr(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,mr(this),this)},ut.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),e.schema==="mailto:"&&!/^mailto:/i.test(e.url)&&(e.url="mailto:"+e.url)},ut.prototype.onCompile=function(){};const Sn=2147483647,Ot=36,da=1,Gn=26,yE=38,TE=700,Yu=72,Hu=128,$u="-",CE=/^xn--/,RE=/[^\0-\x7F]/,NE=/[\x2E\u3002\uFF0E\uFF61]/g,AE={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},pa=Ot-da,kt=Math.floor,_a=String.fromCharCode;function $t(t){throw new RangeError(AE[t])}function OE(t,e){const n=[];let r=t.length;for(;r--;)n[r]=e(t[r]);return n}function Wu(t,e){const n=t.split("@");let r="";n.length>1&&(r=n[0]+"@",t=n[1]),t=t.replace(NE,".");const i=t.split("."),o=OE(i,e).join(".");return r+o}function Ku(t){const e=[];let n=0;const r=t.length;for(;n<r;){const i=t.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){const o=t.charCodeAt(n++);(o&64512)==56320?e.push(((i&1023)<<10)+(o&1023)+65536):(e.push(i),n--)}else e.push(i)}return e}const kE=t=>String.fromCodePoint(...t),xE=function(t){return t>=48&&t<58?26+(t-48):t>=65&&t<91?t-65:t>=97&&t<123?t-97:Ot},Qu=function(t,e){return t+22+75*(t<26)-((e!=0)<<5)},Xu=function(t,e,n){let r=0;for(t=n?kt(t/TE):t>>1,t+=kt(t/e);t>pa*Gn>>1;r+=Ot)t=kt(t/pa);return kt(r+(pa+1)*t/(t+yE))},Zu=function(t){const e=[],n=t.length;let r=0,i=Hu,o=Yu,s=t.lastIndexOf($u);s<0&&(s=0);for(let l=0;l<s;++l)t.charCodeAt(l)>=128&&$t("not-basic"),e.push(t.charCodeAt(l));for(let l=s>0?s+1:0;l<n;){const c=r;for(let d=1,p=Ot;;p+=Ot){l>=n&&$t("invalid-input");const m=xE(t.charCodeAt(l++));m>=Ot&&$t("invalid-input"),m>kt((Sn-r)/d)&&$t("overflow"),r+=m*d;const g=p<=o?da:p>=o+Gn?Gn:p-o;if(m<g)break;const b=Ot-g;d>kt(Sn/b)&&$t("overflow"),d*=b}const u=e.length+1;o=Xu(r-c,u,c==0),kt(r/u)>Sn-i&&$t("overflow"),i+=kt(r/u),r%=u,e.splice(r++,0,i)}return String.fromCodePoint(...e)},Ju=function(t){const e=[];t=Ku(t);const n=t.length;let r=Hu,i=0,o=Yu;for(const c of t)c<128&&e.push(_a(c));const s=e.length;let l=s;for(s&&e.push($u);l<n;){let c=Sn;for(const d of t)d>=r&&d<c&&(c=d);const u=l+1;c-r>kt((Sn-i)/u)&&$t("overflow"),i+=(c-r)*u,r=c;for(const d of t)if(d<r&&++i>Sn&&$t("overflow"),d===r){let p=i;for(let m=Ot;;m+=Ot){const g=m<=o?da:m>=o+Gn?Gn:m-o;if(p<g)break;const b=p-g,f=Ot-g;e.push(_a(Qu(g+b%f,0))),p=kt(b/f)}e.push(_a(Qu(p,0))),o=Xu(i,u,l===s),i=0,++l}++i,++r}return e.join("")},ed={version:"2.3.1",ucs2:{decode:Ku,encode:kE},decode:Zu,encode:Ju,toASCII:function(t){return Wu(t,function(e){return RE.test(e)?"xn--"+Ju(e):e})},toUnicode:function(t){return Wu(t,function(e){return CE.test(e)?Zu(e.slice(4).toLowerCase()):e})}},IE={default:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},zero:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}},commonmark:{options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","fragments_join"]}}}},DE=/^(vbscript|javascript|file|data):/,wE=/^data:image\/(gif|png|jpeg|webp);/;function ME(t){const e=t.trim().toLowerCase();return DE.test(e)?wE.test(e):!0}const td=["http:","https:","mailto:"];function LE(t){const e=Xr(t,!0);if(e.hostname&&(!e.protocol||td.indexOf(e.protocol)>=0))try{e.hostname=ed.toASCII(e.hostname)}catch{}return Ln(Qr(e))}function PE(t){const e=Xr(t,!0);if(e.hostname&&(!e.protocol||td.indexOf(e.protocol)>=0))try{e.hostname=ed.toUnicode(e.hostname)}catch{}return hn(Qr(e),hn.defaultChars+"%")}function mt(t,e){if(!(this instanceof mt))return new mt(t,e);e||ta(t)||(e=t||{},t="default"),this.inline=new Un,this.block=new pr,this.core=new aa,this.renderer=new fn,this.linkify=new ut,this.validateLink=ME,this.normalizeLink=LE,this.normalizeLinkText=PE,this.utils=Hb,this.helpers=sr({},Qb),this.options={},this.configure(t),e&&this.set(e)}mt.prototype.set=function(t){return sr(this.options,t),this},mt.prototype.configure=function(t){const e=this;if(ta(t)){const n=t;if(t=IE[n],!t)throw new Error('Wrong `markdown-it` preset "'+n+'", check name')}if(!t)throw new Error("Wrong `markdown-it` preset, can't be empty");return t.options&&e.set(t.options),t.components&&Object.keys(t.components).forEach(function(n){t.components[n].rules&&e[n].ruler.enableOnly(t.components[n].rules),t.components[n].rules2&&e[n].ruler2.enableOnly(t.components[n].rules2)}),this},mt.prototype.enable=function(t,e){let n=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach(function(i){n=n.concat(this[i].ruler.enable(t,!0))},this),n=n.concat(this.inline.ruler2.enable(t,!0));const r=t.filter(function(i){return n.indexOf(i)<0});if(r.length&&!e)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+r);return this},mt.prototype.disable=function(t,e){let n=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach(function(i){n=n.concat(this[i].ruler.disable(t,!0))},this),n=n.concat(this.inline.ruler2.disable(t,!0));const r=t.filter(function(i){return n.indexOf(i)<0});if(r.length&&!e)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+r);return this},mt.prototype.use=function(t){const e=[this].concat(Array.prototype.slice.call(arguments,1));return t.apply(t,e),this},mt.prototype.parse=function(t,e){if(typeof t!="string")throw new Error("Input data should be a String");const n=new this.core.State(t,this,e);return this.core.process(n),n.tokens},mt.prototype.render=function(t,e){return e=e||{},this.renderer.render(this.parse(t,e),this.options,e)},mt.prototype.parseInline=function(t,e){const n=new this.core.State(t,this,e);return n.inlineMode=!0,this.core.process(n),n.tokens},mt.prototype.renderInline=function(t,e){return e=e||{},this.renderer.render(this.parseInline(t,e),this.options,e)};var BE=new mt({breaks:!0,linkify:!0,typographer:!0});function Tt(t){return BE.render(t)}const FE=["width","height","viewBox"],jE=["d"],ke=a.defineComponent({__name:"EpIcon",props:{size:{default:32},viewBox:{default:"0 0 24 24"},iconPath:{},extraClass:{}},setup(t){const e=t,{size:n,viewBox:r,iconPath:i,extraClass:o}=a.toRefs(e);return(s,l)=>(a.openBlock(),a.createElementBlock("svg",{width:a.unref(n),height:a.unref(n),viewBox:a.unref(r),color:"currentColor",fill:"currentColor",class:a.normalizeClass(`inline ${a.unref(o)}`)},[a.createElementVNode("path",{d:a.unref(i)},null,8,jE)],10,FE))}}),ma=Object.freeze(Object.defineProperty({__proto__:null,default:ke},Symbol.toStringTag,{value:"Module"})),UE={bgprimary:"bg-primary",borderprimary:"border border-solid border-primary",fillprimary:"fill-primary",textprimary:"text-primary",bgprimarylight:"bg-primary-light",borderprimarylight:"border border-solid border-primary-light",fillprimarylight:"fill-primary-light",textprimarylight:"text-primary-light",bgprimarydark:"bg-primary-dark",borderprimarydark:"border border-solid border-primary-dark",fillprimarydark:"fill-primary-dark",textprimarydark:"text-primary-dark",bgsecondary:"bg-secondary",bordersecondary:"border border-solid border-secondary",fillsecondary:"fill-secondary",textsecondary:"text-secondary",bgsecondarylight:"bg-secondary-light",bordersecondarylight:"border border-solid border-secondary-light",fillsecondarylight:"fill-secondary-light",textsecondarylight:"text-secondary-light",bgsecondarydark:"bg-secondary-dark",bordersecondarydark:"border border-solid border-secondary-dark",fillsecondarydark:"fill-secondary-dark",textsecondarydark:"text-secondary-dark",bgaccent:"bg-accent",borderaccent:"border border-solid border-accent",fillaccent:"fill-accent",textaccent:"text-accent",bgaccentlight:"bg-accent-light",borderaccentlight:"border border-solid border-accent-light",fillaccentlight:"fill-accent-light",textaccentlight:"text-accent-light",bgaccentdark:"bg-accent-dark",borderaccentdark:"border border-solid border-accent-dark",fillaccentdark:"fill-accent-dark",textaccentdark:"text-accent-dark",bgerror:"bg-error",bordererror:"border border-solid border-error",fillerror:"fill-error",texterror:"text-error",bgerrorlight:"bg-error-light",bordererrorlight:"border border-solid border-error-light",fillerrorlight:"fill-error-light",texterrorlight:"text-error-light",bgerrordark:"bg-error-dark",bordererrordark:"border border-solid border-error-dark",fillerrordark:"fill-error-dark",texterrordark:"text-error-dark",bgwarning:"bg-warning",borderwarning:"border border-solid border-warning",fillwarning:"fill-warning",textwarning:"text-warning",bgwarninglight:"bg-warning-light",borderwarninglight:"border border-solid border-warning-light",fillwarninglight:"fill-warning-light",textwarninglight:"text-warning-light",bgwarningdark:"bg-warning-dark",borderwarningdark:"border border-solid border-warning-dark",fillwarningdark:"fill-warning-dark",textwarningdark:"text-warning-dark",bgsuccess:"bg-success",bordersuccess:"border border-solid border-success",fillsuccess:"fill-success",textsuccess:"text-success",bgsuccesslight:"bg-success-light",bordersuccesslight:"border border-solid border-success-light",fillsuccesslight:"fill-success-light",textsuccesslight:"text-success-light",bgsuccessdark:"bg-success-dark",bordersuccessdark:"border border-solid border-success-dark",fillsuccessdark:"fill-success-dark",textsuccessdark:"text-success-dark",bginfo:"bg-info",borderinfo:"border border-solid border-info",fillinfo:"fill-info",textinfo:"text-info",bginfolight:"bg-info-light",borderinfolight:"border border-solid border-info-light",fillinfolight:"fill-info-light",textinfolight:"text-info-light",bginfodark:"bg-info-dark",borderinfodark:"border border-solid border-info-dark",fillinfodark:"fill-info-dark",textinfodark:"text-info-dark",bgquestion:"bg-question",borderquestion:"border border-solid border-question",fillquestion:"fill-question",textquestion:"text-question",bgquestionlight:"bg-question-light",borderquestionlight:"border border-solid border-question-light",fillquestionlight:"fill-question-light",textquestionlight:"text-question-light",bgquestiondark:"bg-question-dark",borderquestiondark:"border border-solid border-question-dark",fillquestiondark:"fill-question-dark",textquestiondark:"text-question-dark",bgtip:"bg-tip",bordertip:"border border-solid border-tip",filltip:"fill-tip",texttip:"text-tip",bgtiplight:"bg-tip-light",bordertiplight:"border border-solid border-tip-light",filltiplight:"fill-tip-light",texttiplight:"text-tip-light",bgtipdark:"bg-tip-dark",bordertipdark:"border border-solid border-tip-dark",filltipdark:"fill-tip-dark",texttipdark:"text-tip-dark",bgwhite:"bg-white",fillwhite:"fill-white",textwhite:"text-white",borderwhite:"border border-solid border-white",bgblack:"bg-black",fillblack:"fill-black",borderblack:"border border-solid border-black",textblack:"text-black",bgbase:"bg-gray-500",bgbaselight:"bg-gray-200",fillbase:"fill-gray-500",borderbase:"border border-solid border-gray-500",textbase:"text-gray-500"};function gt(t,e){const r=`${t}${e}`.replace(/-/g,"");return UE[r]}const GE={base:{default:"bg-gray-100 text-black dark:bg-gray-300",outlined:"border-gray-400 border text-black dark:bg-gray-300"},primary:{default:"bg-primary text-white dark:bg-primary-dark",outlined:"border-primary border text-primary dark:bg-primary-dark"},secondary:{default:"bg-secondary text-white dark:bg-second-dark",outlined:"border-secondary border text-secondary dark:bg-second-dark"},accent:{default:"bg-accent text-white dark:bg-accent-dark",outlined:"border-accent border text-accent dark:bg-accent-dark"},warning:{default:"bg-warning text-white dark:bg-warning-dark",outlined:"border-warning border text-warning dark:bg-warning-dark"},success:{default:"bg-success text-white dark:bg-success-dark",outlined:"border-success border text-success dark:bg-success-dark"},error:{default:"bg-error text-white dark:bg-error-dark",outlined:"border-error border text-error dark:g-error-dark"},info:{default:"bg-info text-white dark:bg-info-dark",outlined:"border-info border text-info dark:bg-info-dark"},question:{default:"bg-question text-white dark:bg-question-dark",outlined:"border-question border text-question dark:bg-question-dark"},Question:{default:"bg-question text-white dark:bg-question-dark",outlined:"border-question border text-question dark:bg-question-dark"},tip:{default:"bg-tip text-white dark:bg-tip-dark",outlined:"border-tip border text-tip dark:bg-tip-dark"}},VE=t=>(a.pushScopeId("data-v-2e3db938"),t=t(),a.popScopeId(),t),qE={class:"text-lg flex items-center"},zE=[VE(()=>a.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 6v12m6-6H6"},null,-1))],YE={class:"py-4"},HE=a.defineComponent({__name:"EpAccordeon",props:{type:{default:"base"},icon:{},open:{type:Boolean,default:!1},outlined:{type:Boolean,default:!1},title:{default:"En savoir plus"}},setup(t){const e=t,n=a.ref(e.open),r=a.ref(),i=a.computed(()=>e.outlined?"outlined":"default"),o=a.computed(()=>{var d;return`flex justify-between items-center px-4 py-2 cursor-pointer ${(d=GE[e.type])==null?void 0:d[i.value]}`}),s=a.computed(()=>`px-4 ${gt("bg",e.type+"light")} dark:${gt("bg",e.type+"dark")}`);a.onMounted(()=>{var d=r.value;e.open&&(d.style.maxHeight=d.scrollHeight+"px")});function l(){n.value=!n.value;var d=r.value;d.style.maxHeight?d.style.maxHeight=null:d.style.maxHeight=d.scrollHeight+"px",d.style.transition||(d.style.transition="max-height 0.2s ease-out")}const{title:c,icon:u}=a.toRefs(e);return(d,p)=>(a.openBlock(),a.createElementBlock("div",null,[a.createElementVNode("div",{class:a.normalizeClass(o.value),onClick:l},[a.createElementVNode("h3",qE,[a.unref(u)?(a.openBlock(),a.createBlock(ke,{key:0,"icon-path":a.unref(u),size:"28",extraClass:"mr-2"},null,8,["icon-path"])):a.createCommentVNode("",!0),a.createTextVNode(a.toDisplayString(a.unref(c)),1)]),(a.openBlock(),a.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:a.normalizeClass(`mx-4 my-3 h-6 w-6 transition-all duration-200 ${n.value?"rotate-45":""}`)},zE,2))],2),a.createElementVNode("div",{ref_key:"collapsible",ref:r,class:a.normalizeClass(`${s.value} content`)},[a.createElementVNode("div",YE,[a.renderSlot(d.$slots,"default",{},void 0,!0)])],2)]))}}),Wt=(t,e)=>{const n=t.__vccOpts||t;for(const[r,i]of e)n[r]=i;return n},gr=Wt(HE,[["__scopeId","data-v-2e3db938"]]),ga=Object.freeze(Object.defineProperty({__proto__:null,default:gr},Symbol.toStringTag,{value:"Module"})),$E={class:"px-2 text-black dark:text-white"},nd=a.defineComponent({__name:"EpText",props:{glossary:{},content:{},title:{},compact:{type:Boolean,default:!1},labels:{default:()=>({title:"En savoir plus"})}},setup(t){const e=t,n=a.computed(()=>e.title?e.title:"En savoir plus"),r=a.computed(()=>{if(!e.content)return"<div></div>";if(!vt(e.content))return Tt(e.content);if(!e.glossary)return e.content;const s=document.createElement("DIV"),c=e.content.trim().replace(/<p>/g,'<div style="margin-bottom: 1em;">').replace(/<\/p>/g,"</div>");s.innerHTML=c;let u=s.outerHTML;const d=s.querySelectorAll(".ep_glossary_item");return d.length>0&&d.forEach(p=>{const m=p.getAttribute("data-id"),g=p.innerHTML;let b=[];e.glossary&&(b=e.glossary);const f=b.find(E=>E.id===m);if(f){const E=p.outerHTML,v=b.filter(A=>A.relation.some(D=>D==m)).map(A=>A.term),y=f.variation,C=f.img?f.img:"",N=`<div style="display:inline"><EpTerm term="${f.term}" word="${g}" variations="${y}" graminfo="${f.graminfo}" src="${C}" domain="${f.domain}" relations="${v}"> ${f.definition}</EpTerm> </div>`;u=u.replace(E,N)}}),s.innerHTML=u,s.innerHTML}),i=()=>{const s={components:{epterm:a.defineAsyncComponent(()=>Promise.resolve().then(()=>qr))},template:`${r.value}`};return a.h(s)},{compact:o}=a.toRefs(e);return(s,l)=>(a.openBlock(),a.createElementBlock("div",$E,[a.unref(o)?(a.openBlock(),a.createBlock(gr,{key:1,outlined:"",title:n.value},{default:a.withCtx(()=>[a.createVNode(i)]),_:1},8,["title"])):(a.openBlock(),a.createBlock(i,{key:0}))]))}}),ha=Object.freeze(Object.defineProperty({__proto__:null,default:nd},Symbol.toStringTag,{value:"Module"})),WE={small:"w-36 h-36",medium:"w-56 h-56",large:"w-72 h-72"};function KE(t){return a.getCurrentScope()?(a.onScopeDispose(t),!0):!1}function Lt(t){return typeof t=="function"?t():a.unref(t)}const rd=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const QE=Object.prototype.toString,XE=t=>QE.call(t)==="[object Object]",vn=()=>{},ZE=JE();function JE(){var t,e;return rd&&((t=window==null?void 0:window.navigator)==null?void 0:t.userAgent)&&(/iP(ad|hone|od)/.test(window.navigator.userAgent)||((e=window==null?void 0:window.navigator)==null?void 0:e.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function ba(t,e=!1,n="Timeout"){return new Promise((r,i)=>{setTimeout(e?()=>i(n):r,t)})}function fa(t,e=!1){function n(p,{flush:m="sync",deep:g=!1,timeout:b,throwOnTimeout:f}={}){let E=null;const v=[new Promise(y=>{E=a.watch(t,C=>{p(C)!==e&&(E==null||E(),y(C))},{flush:m,deep:g,immediate:!0})})];return b!=null&&v.push(ba(b,f).then(()=>Lt(t)).finally(()=>E==null?void 0:E())),Promise.race(v)}function r(p,m){if(!a.isRef(p))return n(C=>C===p,m);const{flush:g="sync",deep:b=!1,timeout:f,throwOnTimeout:E}=m??{};let R=null;const y=[new Promise(C=>{R=a.watch([t,p],([N,A])=>{e!==(N===A)&&(R==null||R(),C(N))},{flush:g,deep:b,immediate:!0})})];return f!=null&&y.push(ba(f,E).then(()=>Lt(t)).finally(()=>(R==null||R(),Lt(t)))),Promise.race(y)}function i(p){return n(m=>!!m,p)}function o(p){return r(null,p)}function s(p){return r(void 0,p)}function l(p){return n(Number.isNaN,p)}function c(p,m){return n(g=>{const b=Array.from(g);return b.includes(p)||b.includes(Lt(p))},m)}function u(p){return d(1,p)}function d(p=1,m){let g=-1;return n(()=>(g+=1,g>=p),m)}return Array.isArray(Lt(t))?{toMatch:n,toContains:c,changed:u,changedTimes:d,get not(){return fa(t,!e)}}:{toMatch:n,toBe:r,toBeTruthy:i,toBeNull:o,toBeNaN:l,toBeUndefined:s,changed:u,changedTimes:d,get not(){return fa(t,!e)}}}function e1(t){return fa(t)}function Vn(t){var e;const n=Lt(t);return(e=n==null?void 0:n.$el)!=null?e:n}const ad=rd?window:void 0;function hr(...t){let e,n,r,i;if(typeof t[0]=="string"||Array.isArray(t[0])?([n,r,i]=t,e=ad):[e,n,r,i]=t,!e)return vn;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const o=[],s=()=>{o.forEach(d=>d()),o.length=0},l=(d,p,m,g)=>(d.addEventListener(p,m,g),()=>d.removeEventListener(p,m,g)),c=a.watch(()=>[Vn(e),Lt(i)],([d,p])=>{if(s(),!d)return;const m=XE(p)?{...p}:p;o.push(...n.flatMap(g=>r.map(b=>l(d,g,b,m))))},{immediate:!0,flush:"post"}),u=()=>{c(),s()};return KE(u),u}let id=!1;function t1(t,e,n={}){const{window:r=ad,ignore:i=[],capture:o=!0,detectIframe:s=!1}=n;if(!r)return vn;ZE&&!id&&(id=!0,Array.from(r.document.body.children).forEach(m=>m.addEventListener("click",vn)),r.document.documentElement.addEventListener("click",vn));let l=!0;const c=m=>i.some(g=>{if(typeof g=="string")return Array.from(r.document.querySelectorAll(g)).some(b=>b===m.target||m.composedPath().includes(b));{const b=Vn(g);return b&&(m.target===b||m.composedPath().includes(b))}}),d=[hr(r,"click",m=>{const g=Vn(t);if(!(!g||g===m.target||m.composedPath().includes(g))){if(m.detail===0&&(l=!c(m)),!l){l=!0;return}e(m)}},{passive:!0,capture:o}),hr(r,"pointerdown",m=>{const g=Vn(t);l=!c(m)&&!!(g&&!m.composedPath().includes(g))},{passive:!0}),s&&hr(r,"blur",m=>{setTimeout(()=>{var g;const b=Vn(t);((g=r.document.activeElement)==null?void 0:g.tagName)==="IFRAME"&&!(b!=null&&b.contains(r.document.activeElement))&&e(m)},0)})].filter(Boolean);return()=>d.forEach(m=>m())}function n1(t,e,n){const{immediate:r=!0,delay:i=0,onError:o=vn,onSuccess:s=vn,resetOnExecute:l=!0,shallow:c=!0,throwError:u}=n??{},d=c?a.shallowRef(e):a.ref(e),p=a.ref(!1),m=a.ref(!1),g=a.shallowRef(void 0);async function b(R=0,...v){l&&(d.value=e),g.value=void 0,p.value=!1,m.value=!0,R>0&&await ba(R);const y=typeof t=="function"?t(...v):t;try{const C=await y;d.value=C,p.value=!0,s(C)}catch(C){if(g.value=C,o(C),u)throw C}finally{m.value=!1}return d.value}r&&b(i);const f={state:d,isReady:p,isLoading:m,error:g,execute:b};function E(){return new Promise((R,v)=>{e1(m).toBe(!1).then(()=>R(f)).catch(v)})}return{...f,then(R,v){return E().then(R,v)}}}async function r1(t){return new Promise((e,n)=>{const r=new Image,{src:i,srcset:o,sizes:s,class:l,loading:c,crossorigin:u,referrerPolicy:d}=t;r.src=i,o&&(r.srcset=o),s&&(r.sizes=s),l&&(r.className=l),c&&(r.loading=c),u&&(r.crossOrigin=u),d&&(r.referrerPolicy=d),r.onload=()=>e(r),r.onerror=n})}function a1(t,e={}){const n=n1(()=>r1(Lt(t)),void 0,{resetOnExecute:!0,...e});return a.watch(()=>Lt(t),()=>n.execute(e.delay),{deep:!0}),n}const i1={compact:"p-0",default:"p-4",comfortable:"p-8"},o1=["src"],s1={key:0,class:"mb-2 flex items-center justify-between dark:text-white"},l1={class:"text-2xl dark:text-white font-bold"},c1={key:0},u1={class:"dark:text-white"},d1={class:"dark:text-white"},qn=a.defineComponent({__name:"EpCard",props:{title:{default:null},subtitle:{default:null},outlined:{type:Boolean,default:!1},flat:{type:Boolean,default:!1},icon:{default:null},color:{default:null},src:{default:null},maxWidth:{default:"max-w-full"},density:{default:"default"}},setup(t){const e=t,n=a.computed(()=>e.flat?"":"shadow-lg"),r=a.computed(()=>e.outlined&&e.color?`border solid ${gt("border",e.color)}`:e.outlined?"border solid border-primary dark:border-white":"dark:border dark:solid dar:border-white"),i=a.computed(()=>e.color&&!e.outlined?`${gt("bg",e.color)}`:"bg-white text-black"),o=a.computed(()=>e.color&&!e.outlined?"text-white":"text-gray-600"),s=a.computed(()=>i1[e.density]),l=a.computed(()=>`
17
17
  ${n.value}
18
18
  ${r.value}
19
19
  ${i.value}