ep-lib-ts 1.0.14 → 1.0.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/BgAudio-CQwKXzZg.js +4 -0
- package/dist/DisplayBox-CcNmUGIz.js +4 -0
- package/dist/EpAlert-Dp2bLtG_.js +4 -0
- package/dist/EpAudio-DBTNMbNr.js +4 -0
- package/dist/EpBadge-sXYrjVva.js +4 -0
- package/dist/EpBarChart-Dt2TQ2pL.js +4 -0
- package/dist/EpBtn-CnlsYhbX.js +4 -0
- package/dist/EpCard-Di-dSpm8.js +4 -0
- package/dist/EpChip-g37iRYFG.js +4 -0
- package/dist/EpContentSlider-XLFxD3fa.js +4 -0
- package/dist/{EpDarkmode-CZ2UYbUU.js → EpDarkmode-CyMyo8F4.js} +1 -1
- package/dist/EpDivider-BtPKuRNf.js +4 -0
- package/dist/EpEdu-1eSKO6RC.js +4 -0
- package/dist/EpFlex-DjopnMG9.js +4 -0
- package/dist/EpFunnelChart-BvSl-cUX.js +4 -0
- package/dist/EpHeader-_7EeEf2h.js +4 -0
- package/dist/{EpHover-CO8IK2jE.js → EpHover-CApKjVea.js} +1 -1
- package/dist/EpIcon-dOlcfSr3.js +4 -0
- package/dist/EpIframe-BJBUg_4R.js +4 -0
- package/dist/EpImg-BpUQCVHy.js +4 -0
- package/dist/{EpInput-Ct8FxCOs.js → EpInput-CYV7EwjU.js} +1 -1
- package/dist/EpLineChart-CVwoP1ou.js +4 -0
- package/dist/EpLink-Bg65y0-5.js +4 -0
- package/dist/EpLinkVersion-P-F33e5L.js +4 -0
- package/dist/{EpList-4tAmzjlz.js → EpList-CFzC7zPo.js} +1 -1
- package/dist/EpModal-CzkHjlVB.js +4 -0
- package/dist/{EpNothing-ohYOe0Gb.js → EpNothing-njgW1IrK.js} +1 -1
- package/dist/EpPieChart-Cmlk0reA.js +4 -0
- package/dist/EpQuestion-DsbywQDH.js +4 -0
- package/dist/EpQuote-cjooNwUZ.js +4 -0
- package/dist/EpRadio-Cj6azxZv.js +4 -0
- package/dist/EpRadioSummative-BM11cSKd.js +4 -0
- package/dist/EpReading-jM7TJ1y7.js +4 -0
- package/dist/EpResource-C9dJ3p_o.js +4 -0
- package/dist/EpScope-D2T_pJR8.js +4 -0
- package/dist/EpSection-DjUgVIhx.js +4 -0
- package/dist/{EpSelect-BVdUBewR.js → EpSelect-BR_JZuSj.js} +1 -1
- package/dist/EpSkeleton-ClGsRoIl.js +4 -0
- package/dist/EpSoftware-DE2P9_Rw.js +4 -0
- package/dist/EpSpinner--Ns7hMwS.js +4 -0
- package/dist/EpSummativeTable-BEYoim6B.js +4 -0
- package/dist/EpSvg-AheAo2Wt.js +4 -0
- package/dist/EpTable-D2K3CReI.js +4 -0
- package/dist/EpTerm-4FTRB7PE.js +4 -0
- package/dist/EpText-BbMcgXCb.js +4 -0
- package/dist/EpTimeLine-B8PL-3oe.js +4 -0
- package/dist/EpVideo-BUdg9NgK.js +4 -0
- package/dist/EpVideoPanopto-DWIDVFp9.js +4 -0
- package/dist/EpWordDef-D3lXKOa6.js +4 -0
- package/dist/ep-lib-ts.js +1 -1
- package/dist/ep-lib-ts.umd.cjs +3 -3
- package/dist/{index-C4OSmfD3.js → index-BqjVakFO.js} +13 -13
- package/dist/style.css +1 -1
- package/package.json +2 -2
- package/src/components/interactions/EpModal.vue +1 -0
- package/src/components/medias/EpTerm.vue +3 -3
- package/src/components/medias/EpTimeLine.vue +2 -2
- package/src/components/tools/TimelineItem.vue +1 -1
- package/dist/BgAudio-CrgI-9GZ.js +0 -4
- package/dist/DisplayBox-iYzt3d2Z.js +0 -4
- package/dist/EpAlert-Dw3InDeg.js +0 -4
- package/dist/EpAudio-DylDE8eI.js +0 -4
- package/dist/EpBadge-BZ8riAIa.js +0 -4
- package/dist/EpBarChart-DKnh-K2V.js +0 -4
- package/dist/EpBtn-CNsysgQR.js +0 -4
- package/dist/EpCard-CZJvU0iO.js +0 -4
- package/dist/EpChip-BwWnxCzX.js +0 -4
- package/dist/EpContentSlider-ChljCl8Q.js +0 -4
- package/dist/EpDivider-DgP2lHfx.js +0 -4
- package/dist/EpEdu-DF6lAy9Q.js +0 -4
- package/dist/EpFlex-B6n8FE09.js +0 -4
- package/dist/EpFunnelChart-DUzmZZXm.js +0 -4
- package/dist/EpHeader-BNEXlDF-.js +0 -4
- package/dist/EpIcon-CyVPfowv.js +0 -4
- package/dist/EpIframe-OXq79KK1.js +0 -4
- package/dist/EpImg-plVwliSI.js +0 -4
- package/dist/EpLineChart-CgGfhU_a.js +0 -4
- package/dist/EpLink-DV-fAjjB.js +0 -4
- package/dist/EpLinkVersion-v2tgBig1.js +0 -4
- package/dist/EpModal-RMwWs16M.js +0 -4
- package/dist/EpPieChart-DU80yoK-.js +0 -4
- package/dist/EpQuestion-DUwg8BJ-.js +0 -4
- package/dist/EpQuote-BQtFGFnF.js +0 -4
- package/dist/EpRadio-0JcmBNsD.js +0 -4
- package/dist/EpRadioSummative-Bl9jKYil.js +0 -4
- package/dist/EpReading-D-SgFPYA.js +0 -4
- package/dist/EpResource-DU7Zicvf.js +0 -4
- package/dist/EpScope-CwAYxJi2.js +0 -4
- package/dist/EpSection-B59jUaxH.js +0 -4
- package/dist/EpSkeleton-Cy9upeZx.js +0 -4
- package/dist/EpSoftware-D75QGHjA.js +0 -4
- package/dist/EpSpinner-DJRWLqOg.js +0 -4
- package/dist/EpSummativeTable-kzlPZIkv.js +0 -4
- package/dist/EpSvg-zvAzDZlh.js +0 -4
- package/dist/EpTable-DcrwvzAz.js +0 -4
- package/dist/EpTerm-TsB9e7UW.js +0 -4
- package/dist/EpText-CqbCHoKc.js +0 -4
- package/dist/EpTimeLine-DSM1ztgb.js +0 -4
- package/dist/EpVideo-Css82bAf.js +0 -4
- package/dist/EpVideoPanopto-RcyY2FV3.js +0 -4
- package/dist/EpWordDef-D4u2MI7J.js +0 -4
package/dist/ep-lib-ts.umd.cjs
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
`:">",o},En.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},En.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},En.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 Du(t,e,n){this.src=t,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=e}Du.prototype.Token=yt;const of=/\r\n?|\n/g,sf=/\0/g;function lf(t){let e;e=t.src.replace(of,`
|
|
15
15
|
`),e=e.replace(sf,"�"),t.src=e}function cf(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 uf(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 df(t){return/^<a[>\s]/i.test(t)}function pf(t){return/^<\/a\s*>/i.test(t)}function mf(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"&&(df(l.content)&&o>0&&o--,pf(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 h=u[g].url,f=t.md.normalizeLink(h);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 T=new t.Token("link_close","a",-1);T.level=--p,T.markup="linkify",T.info="auto",d.push(T),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=xu(i,s,d)}}}}const wu=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,_f=/\((c|tm|r)\)/i,gf=/\((c|tm|r)\)/ig,hf={c:"©",r:"®",tm:"™"};function bf(t,e){return hf[e.toLowerCase()]}function ff(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(gf,bf)),r.type==="link_open"&&r.info==="auto"&&e--,r.type==="link_close"&&r.info==="auto"&&e++}}function Ef(t){let e=0;for(let n=t.length-1;n>=0;n--){const r=t[n];r.type==="text"&&!e&&wu.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 Sf(t){let e;if(t.md.options.typographer)for(e=t.tokens.length-1;e>=0;e--)t.tokens[e].type==="inline"&&(_f.test(t.tokens[e].content)&&ff(t.tokens[e].children),wu.test(t.tokens[e].content)&&Ef(t.tokens[e].children))}const vf=/['"]/,Mu=/['"]/g,Lu="’";function mr(t,e,n){return t.slice(0,e)+n+t.slice(e+1)}function yf(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;){Mu.lastIndex=c;const d=Mu.exec(l);if(!d)break;let p=!0,m=!0;c=d.index+1;const g=d[0]==="'";let h=32;if(d.index-1>=0)h=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){h=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=Gn(h)||Un(String.fromCharCode(h)),R=Gn(f)||Un(String.fromCharCode(f)),v=jn(h),y=jn(f);if(y?p=!1:R&&(v||E||(p=!1)),v?m=!1:E&&(y||R||(m=!1)),f===34&&d[0]==='"'&&h>=48&&h<=57&&(m=p=!1),p&&m&&(p=E,m=R),!p&&!m){g&&(o.content=mr(o.content,d.index,Lu));continue}if(m)for(n=r.length-1;n>=0;n--){let T=r[n];if(r[n].level<s)break;if(T.single===g&&r[n].level===s){T=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=mr(o.content,d.index,A),t[T.token].content=mr(t[T.token].content,T.pos,N),c+=A.length-1,T.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=mr(o.content,d.index,Lu))}}}function Tf(t){if(t.md.options.typographer)for(let e=t.tokens.length-1;e>=0;e--)t.tokens[e].type!=="inline"||!vf.test(t.tokens[e].content)||yf(t.tokens[e].children,t)}function Cf(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 sa=[["normalize",lf],["block",cf],["inline",uf],["linkify",mf],["replacements",Sf],["smartquotes",Tf],["text_join",Cf]];function la(){this.ruler=new it;for(let t=0;t<sa.length;t++)this.ruler.push(sa[t][0],sa[t][1])}la.prototype.process=function(t){const e=this.ruler.getRules("");for(let n=0,r=e.length;n<r;n++)e[n](t)},la.prototype.State=Du;function Ot(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}Ot.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},Ot.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]},Ot.prototype.skipEmptyLines=function(e){for(let n=this.lineMax;e<n&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e},Ot.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},Ot.prototype.skipSpacesBack=function(e,n){if(e<=n)return e;for(;e>n;)if(!Pe(this.src.charCodeAt(--e)))return e+1;return e},Ot.prototype.skipChars=function(e,n){for(let r=this.src.length;e<r&&this.src.charCodeAt(e)===n;e++);return e},Ot.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},Ot.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("")},Ot.prototype.Token=yt;const Rf=65536;function ca(t,e){const n=t.bMarks[e]+t.tShift[e],r=t.eMarks[e];return t.src.slice(n,r)}function Pu(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 Nf(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 T=t.src.charCodeAt(o);if(T!==124&&T!==45&&T!==58&&!Pe(T))return!1;o++}let c=ca(t,e+1),u=c.split("|");const d=[];for(let T=0;T<u.length;T++){const N=u[T].trim();if(!N){if(T===0||T===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=ca(t,e).trim(),c.indexOf("|")===-1||t.sCount[e]-t.blkIndent>=4)return!1;u=Pu(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"),h=t.push("table_open","table",1),f=[e,0];h.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 T=0;T<u.length;T++){const N=t.push("th_open","th",1);d[T]&&(N.attrs=[["style","text-align:"+d[T]]]);const A=t.push("inline","",0);A.content=u[T].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 T=!1;for(let A=0,D=g.length;A<D;A++)if(g[A](t,i,n,!0)){T=!0;break}if(T||(c=ca(t,i).trim(),!c)||t.sCount[i]-t.blkIndent>=4||(u=Pu(c),u.length&&u[0]===""&&u.shift(),u.length&&u[u.length-1]===""&&u.pop(),y+=p-u.length,y>Rf))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 w=t.push("inline","",0);w.content=u[A]?u[A].trim():"",w.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 Af(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 Of(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 kf(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,h;for(h=e;h<n;h++){const y=t.sCount[h]<t.blkIndent;if(i=t.bMarks[h]+t.tShift[h],o=t.eMarks[h],i>=o)break;if(t.src.charCodeAt(i++)===62&&!y){let N=t.sCount[h]+1,A,D;t.src.charCodeAt(i)===32?(i++,N++,D=!1,A=!0):t.src.charCodeAt(i)===9?(A=!0,(t.bsCount[h]+N)%4===3?(i++,N++,D=!1):D=!0):A=!1;let w=N;for(l.push(t.bMarks[h]),t.bMarks[h]=i;i<o;){const L=t.src.charCodeAt(i);if(Pe(L))L===9?w+=4-(w+t.bsCount[h]+(D?1:0))%4:w++;else break;i++}g=i>=o,c.push(t.bsCount[h]),t.bsCount[h]=t.sCount[h]+1+(A?1:0),u.push(t.sCount[h]),t.sCount[h]=w-N,d.push(t.tShift[h]),t.tShift[h]=i-t.bMarks[h];continue}if(g)break;let T=!1;for(let N=0,A=p.length;N<A;N++)if(p[N](t,h,n,!0)){T=!0;break}if(T){t.lineMax=h,t.blkIndent!==0&&(l.push(t.bMarks[h]),c.push(t.bsCount[h]),d.push(t.tShift[h]),u.push(t.sCount[h]),t.sCount[h]-=t.blkIndent);break}l.push(t.bMarks[h]),c.push(t.bsCount[h]),d.push(t.tShift[h]),u.push(t.sCount[h]),t.sCount[h]=-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,h);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 xf(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 Bu(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 Fu(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 If(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 Df(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=Fu(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=Bu(t,c))>=0)p=!1;else return!1;if(d&&t.skipSpaces(g)>=t.eMarks[c])return!1;if(r)return!0;const h=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(h);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 T=t.sCount[c]+g-(t.bMarks[c]+t.tShift[c]);let N=T;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-T,D>4&&(D=1);const w=T+D;l=t.push("list_item_open","li",1),l.markup=String.fromCharCode(h);const L=[c,0];l.map=L,p&&(l.info=t.src.slice(s,g-1));const j=t.tight,B=t.tShift[c],W=t.sCount[c],fe=t.listIndent;if(t.listIndent=t.blkIndent,t.blkIndent=w,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]=B,t.sCount[c]=W,t.tight=j,l=t.push("list_item_close","li",-1),l.markup=String.fromCharCode(h),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=Fu(t,c),g<0)break;s=t.bMarks[c]+t.tShift[c]}else if(g=Bu(t,c),g<0)break;if(h!==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(h),E[1]=c,t.line=c,t.parentType=y,u&&If(t,f),!0}function wf(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 T=!1;if(t.sCount[v]-t.blkIndent>3&&(T=!0),t.sCount[v]<0&&(T=!0),!T){const D=t.md.block.ruler.getRules("reference"),w=t.parentType;t.parentType="reference";let L=!1;for(let j=0,B=D.length;j<B;j++)if(D[j](t,v,y,!0)){L=!0;break}if(t.parentType=w,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,h=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&&h!==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=pr(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 Mf=["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"],Lf="[a-zA-Z_:][a-zA-Z0-9:._-]*",Pf="(?:"+"[^\"'=<>`\\x00-\\x20]+"+"|"+"'[^']*'"+"|"+'"[^"]*"'+")",ju="<[A-Za-z][A-Za-z0-9\\-]*"+("(?:\\s+"+Lf+"(?:\\s*=\\s*"+Pf+")?)")+"*\\s*\\/?>",Uu="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",Bf="<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->",Ff="<[?][\\s\\S]*?[?]>",jf="<![A-Za-z][^>]*>",Uf="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",Gf=new RegExp("^(?:"+ju+"|"+Uu+"|"+Bf+"|"+Ff+"|"+jf+"|"+Uf+")"),Vf=new RegExp("^(?:"+ju+"|"+Uu+")"),Sn=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+Mf.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(Vf.source+"\\s*$"),/^$/,!1]];function qf(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<Sn.length&&!Sn[l][0].test(s);l++);if(l===Sn.length)return!1;if(r)return Sn[l][2];let c=e+1;if(!Sn[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),Sn[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 zf(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 Yf(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 h=t.eMarks[l];if(g<h&&(s=t.src.charCodeAt(g),(s===45||s===61)&&(g=t.skipChars(g,s),g=t.skipSpaces(g),g>=h))){o=s===61?1:2;break}}if(t.sCount[l]<0)continue;let m=!1;for(let g=0,h=r.length;g<h;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 Hf(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 _r=[["table",Nf,["paragraph","reference"]],["code",Af],["fence",Of,["paragraph","reference","blockquote","list"]],["blockquote",kf,["paragraph","reference","blockquote","list"]],["hr",xf,["paragraph","reference","blockquote","list"]],["list",Df,["paragraph","reference","blockquote"]],["reference",wf],["html_block",qf,["paragraph","reference","blockquote"]],["heading",zf,["paragraph","reference","blockquote"]],["lheading",Yf],["paragraph",Hf]];function gr(){this.ruler=new it;for(let t=0;t<_r.length;t++)this.ruler.push(_r[t][0],_r[t][1],{alt:(_r[t][2]||[]).slice()})}gr.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)}},gr.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)},gr.prototype.State=Ot;function Vn(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}Vn.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},Vn.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},Vn.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=Gn(i)||Un(String.fromCharCode(i)),u=Gn(l)||Un(String.fromCharCode(l)),d=jn(i),p=jn(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}},Vn.prototype.Token=yt;function $f(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 Wf(t,e){let n=t.pos;for(;n<t.posMax&&!$f(t.src.charCodeAt(n));)n++;return n===t.pos?!1:(e||(t.pending+=t.src.slice(t.pos,n)),t.pos=n,!0)}const Kf=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;function Qf(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(Kf);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 Xf(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 ua=[];for(let t=0;t<256;t++)ua.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(t){ua[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&&ua[i]!==0?l.content=o:l.content=s,l.markup=s,l.info="escape"}return t.pos=n+1,!0}function Jf(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 eE(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 Gu(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 tE(t){const e=t.tokens_meta,n=t.tokens_meta.length;Gu(t,t.delimiters);for(let r=0;r<n;r++)e[r]&&e[r].delimiters&&Gu(t,e[r].delimiters)}const Vu={tokenize:eE,postProcess:tE};function nE(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 qu(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 rE(t){const e=t.tokens_meta,n=t.tokens_meta.length;qu(t,t.delimiters);for(let r=0;r<n;r++)e[r]&&e[r].delimiters&&qu(t,e[r].delimiters)}const zu={tokenize:nE,postProcess:rE};function aE(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 h=g+1;if(h<p&&t.src.charCodeAt(h)===40){for(u=!1,h++;h<p&&(n=t.src.charCodeAt(h),!(!Pe(n)&&n!==10));h++);if(h>=p)return!1;if(c=h,i=t.md.helpers.parseLinkDestination(t.src,h,t.posMax),i.ok){for(s=t.md.normalizeLink(i.str),t.md.validateLink(s)?h=i.pos:s="",c=h;h<p&&(n=t.src.charCodeAt(h),!(!Pe(n)&&n!==10));h++);if(i=t.md.helpers.parseLinkTitle(t.src,h,t.posMax),h<p&&c!==h&&i.ok)for(l=i.str,h=i.pos;h<p&&(n=t.src.charCodeAt(h),!(!Pe(n)&&n!==10));h++);}(h>=p||t.src.charCodeAt(h)!==41)&&(u=!0),h++}if(u){if(typeof t.env.references>"u")return!1;if(h<p&&t.src.charCodeAt(h)===91?(c=h+1,h=t.md.helpers.parseLinkLabel(t,h),h>=0?r=t.src.slice(c,h++):h=g+1):h=g+1,r||(r=t.src.slice(m,g)),o=t.env.references[pr(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=h,t.posMax=p,!0}function iE(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,h=t.md.helpers.parseLinkLabel(t,t.pos+1,!1);if(h<0)return!1;if(o=h+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=h+1):o=h+1,i||(i=t.src.slice(g,h)),s=t.env.references[pr(i)],!s)return t.pos=p,!1;d=s.href,c=s.title}if(!e){r=t.src.slice(g,h);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 oE=/^([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])?)*)$/,sE=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;function lE(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(sE.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(oE.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 cE(t){return/^<a[>\s]/i.test(t)}function uE(t){return/^<\/a\s*>/i.test(t)}function dE(t){const e=t|32;return e>=97&&e<=122}function pE(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&&!dE(i))return!1;const o=t.src.slice(r).match(Gf);if(!o)return!1;if(!e){const s=t.push("html_inline","",0);s.content=o[0],cE(s.content)&&t.linkLevel++,uE(s.content)&&t.linkLevel--}return t.pos+=o[0].length,!0}const mE=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,_E=/^&([a-z][a-z0-9]{1,31});/i;function gE(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(mE);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=oa(s)?dr(s):dr(65533),l.markup=o[0],l.info="entity"}return t.pos+=o[0].length,!0}}else{const o=t.src.slice(n).match(_E);if(o){const s=ku(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 Yu(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 hE(t){const e=t.tokens_meta,n=t.tokens_meta.length;Yu(t.delimiters);for(let r=0;r<n;r++)e[r]&&e[r].delimiters&&Yu(e[r].delimiters)}function bE(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 da=[["text",Wf],["linkify",Qf],["newline",Xf],["escape",Zf],["backticks",Jf],["strikethrough",Vu.tokenize],["emphasis",zu.tokenize],["link",aE],["image",iE],["autolink",lE],["html_inline",pE],["entity",gE]],pa=[["balance_pairs",hE],["strikethrough",Vu.postProcess],["emphasis",zu.postProcess],["fragments_join",bE]];function qn(){this.ruler=new it;for(let t=0;t<da.length;t++)this.ruler.push(da[t][0],da[t][1]);this.ruler2=new it;for(let t=0;t<pa.length;t++)this.ruler2.push(pa[t][0],pa[t][1])}qn.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},qn.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()},qn.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)},qn.prototype.State=Vn;function fE(t){const e={};t=t||{},e.src_Any=Cu.source,e.src_Cc=Ru.source,e.src_Z=Au.source,e.src_P=na.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 ma(t){return Array.prototype.slice.call(arguments,1).forEach(function(n){n&&Object.keys(n).forEach(function(r){t[r]=n[r]})}),t}function hr(t){return Object.prototype.toString.call(t)}function EE(t){return hr(t)==="[object String]"}function SE(t){return hr(t)==="[object Object]"}function vE(t){return hr(t)==="[object RegExp]"}function Hu(t){return hr(t)==="[object Function]"}function yE(t){return t.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}const $u={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function TE(t){return Object.keys(t||{}).reduce(function(e,n){return e||$u.hasOwnProperty(n)},!1)}const CE={"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}}},RE="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]",NE="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function AE(t){t.__index__=-1,t.__text_cache__=""}function OE(t){return function(e,n){const r=e.slice(n);return t.test(r)?r.match(t)[0].length:0}}function Wu(){return function(t,e){e.normalize(t)}}function br(t){const e=t.re=fE(t.__opts__),n=t.__tlds__.slice();t.onCompile(),t.__tlds_replaced__||n.push(RE),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,SE(c)){vE(c.validate)?u.validate=OE(c.validate):Hu(c.validate)?u.validate=c.validate:o(l,c),Hu(c.normalize)?u.normalize=c.normalize:c.normalize?o(l,c):u.normalize=Wu();return}if(EE(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:Wu()};const s=Object.keys(t.__compiled__).filter(function(l){return l.length>0&&t.__compiled__[l]}).map(yE).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"),AE(t)}function kE(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 _a(t,e){const n=new kE(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||TE(t)&&(e=t,t={}),this.__opts__=ma({},$u,e),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=ma({},CE,t),this.__compiled__={},this.__tlds__=NE,this.__tlds_replaced__=!1,this.re={},br(this)}ut.prototype.add=function(e,n){return this.__schemas__[e]=n,br(this),this},ut.prototype.set=function(e){return this.__opts__=ma(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(_a(this,r)),r=this.__last_index__);let i=r?e.slice(r):e;for(;this.test(i);)n.push(_a(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,_a(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(),br(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,br(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 vn=2147483647,kt=36,ga=1,zn=26,xE=38,IE=700,Ku=72,Qu=128,Xu="-",DE=/^xn--/,wE=/[^\0-\x7F]/,ME=/[\x2E\u3002\uFF0E\uFF61]/g,LE={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},ha=kt-ga,xt=Math.floor,ba=String.fromCharCode;function $t(t){throw new RangeError(LE[t])}function PE(t,e){const n=[];let r=t.length;for(;r--;)n[r]=e(t[r]);return n}function Zu(t,e){const n=t.split("@");let r="";n.length>1&&(r=n[0]+"@",t=n[1]),t=t.replace(ME,".");const i=t.split("."),o=PE(i,e).join(".");return r+o}function Ju(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 BE=t=>String.fromCodePoint(...t),FE=function(t){return t>=48&&t<58?26+(t-48):t>=65&&t<91?t-65:t>=97&&t<123?t-97:kt},ed=function(t,e){return t+22+75*(t<26)-((e!=0)<<5)},td=function(t,e,n){let r=0;for(t=n?xt(t/IE):t>>1,t+=xt(t/e);t>ha*zn>>1;r+=kt)t=xt(t/ha);return xt(r+(ha+1)*t/(t+xE))},nd=function(t){const e=[],n=t.length;let r=0,i=Qu,o=Ku,s=t.lastIndexOf(Xu);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=kt;;p+=kt){l>=n&&$t("invalid-input");const m=FE(t.charCodeAt(l++));m>=kt&&$t("invalid-input"),m>xt((vn-r)/d)&&$t("overflow"),r+=m*d;const g=p<=o?ga:p>=o+zn?zn:p-o;if(m<g)break;const h=kt-g;d>xt(vn/h)&&$t("overflow"),d*=h}const u=e.length+1;o=td(r-c,u,c==0),xt(r/u)>vn-i&&$t("overflow"),i+=xt(r/u),r%=u,e.splice(r++,0,i)}return String.fromCodePoint(...e)},rd=function(t){const e=[];t=Ju(t);const n=t.length;let r=Qu,i=0,o=Ku;for(const c of t)c<128&&e.push(ba(c));const s=e.length;let l=s;for(s&&e.push(Xu);l<n;){let c=vn;for(const d of t)d>=r&&d<c&&(c=d);const u=l+1;c-r>xt((vn-i)/u)&&$t("overflow"),i+=(c-r)*u,r=c;for(const d of t)if(d<r&&++i>vn&&$t("overflow"),d===r){let p=i;for(let m=kt;;m+=kt){const g=m<=o?ga:m>=o+zn?zn:m-o;if(p<g)break;const h=p-g,f=kt-g;e.push(ba(ed(g+h%f,0))),p=xt(h/f)}e.push(ba(ed(p,0))),o=td(i,u,l===s),i=0,++l}++i,++r}return e.join("")},ad={version:"2.3.1",ucs2:{decode:Ju,encode:BE},decode:nd,encode:rd,toASCII:function(t){return Zu(t,function(e){return wE.test(e)?"xn--"+rd(e):e})},toUnicode:function(t){return Zu(t,function(e){return DE.test(e)?nd(e.slice(4).toLowerCase()):e})}},jE={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"]}}}},UE=/^(vbscript|javascript|file|data):/,GE=/^data:image\/(gif|png|jpeg|webp);/;function VE(t){const e=t.trim().toLowerCase();return UE.test(e)?GE.test(e):!0}const id=["http:","https:","mailto:"];function qE(t){const e=ta(t,!0);if(e.hostname&&(!e.protocol||id.indexOf(e.protocol)>=0))try{e.hostname=ad.toASCII(e.hostname)}catch{}return Fn(ea(e))}function zE(t){const e=ta(t,!0);if(e.hostname&&(!e.protocol||id.indexOf(e.protocol)>=0))try{e.hostname=ad.toUnicode(e.hostname)}catch{}return bn(ea(e),bn.defaultChars+"%")}function _t(t,e){if(!(this instanceof _t))return new _t(t,e);e||ia(t)||(e=t||{},t="default"),this.inline=new qn,this.block=new gr,this.core=new la,this.renderer=new En,this.linkify=new ut,this.validateLink=VE,this.normalizeLink=qE,this.normalizeLinkText=zE,this.utils=ef,this.helpers=ur({},af),this.options={},this.configure(t),e&&this.set(e)}_t.prototype.set=function(t){return ur(this.options,t),this},_t.prototype.configure=function(t){const e=this;if(ia(t)){const n=t;if(t=jE[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},_t.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},_t.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},_t.prototype.use=function(t){const e=[this].concat(Array.prototype.slice.call(arguments,1));return t.apply(t,e),this},_t.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},_t.prototype.render=function(t,e){return e=e||{},this.renderer.render(this.parse(t,e),this.options,e)},_t.prototype.parseInline=function(t,e){const n=new this.core.State(t,this,e);return n.inlineMode=!0,this.core.process(n),n.tokens},_t.prototype.renderInline=function(t,e){return e=e||{},this.renderer.render(this.parseInline(t,e),this.options,e)};var YE=new _t({breaks:!0,linkify:!0,typographer:!0});function Tt(t){return YE.render(t)}const HE=["width","height","viewBox"],$E=["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,$E)],10,HE))}}),fa=Object.freeze(Object.defineProperty({__proto__:null,default:ke},Symbol.toStringTag,{value:"Module"})),WE={bgbase:"bg-base",borderbase:"border border-solid border-base",fillbase:"fill-base",textbase:"text-base",bgbaselight:"bg-base-light",borderbaselight:"border border-solid border-base-light",fillbaselight:"fill-base-light",textbaselight:"text-base-light",bgbasedark:"bg-base-dark",borderbasedark:"border border-solid border-base-dark",fillbasedark:"fill-base-dark",textbasedark:"text-base-dark",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",borderwhite:"border border-solid border-white",bgblack:"bg-black",bordeblack:"border border-solid border-black"};function gt(t,e){const r=`${t}${e}`.replace(/-/g,"");return WE[r]}const KE={base:{default:"bg-base text-black dark:bg-base-dark dark:text-white",outlined:"border-base dark:border-base-dark border text-black dark:text-white"},primary:{default:"bg-primary text-white dark:bg-primary-dark",outlined:"border-primary dark:border-base-dark border text-primary"},secondary:{default:"bg-secondary text-white dark:bg-secondary-dark",outlined:"border-secondary dark:border-secondary-dark border text-secondary"},accent:{default:"bg-accent text-white dark:bg-accent-dark",outlined:"border-accent dark:border-accent-dark border text-accent"},warning:{default:"bg-warning text-white dark:bg-warning-dark",outlined:"border-warning dark:border-warning-dark border text-warning"},success:{default:"bg-success text-white dark:bg-success-dark",outlined:"border-success dark:border-success-dark border text-success"},error:{default:"bg-error text-white dark:bg-error-dark",outlined:"border-error dark:border-error-dark border text-error"},info:{default:"bg-info text-white dark:bg-info-dark",outlined:"border-info dark:border-info-dark border text-info"},question:{default:"bg-question text-white dark:bg-question-dark",outlined:"border-question dark:border-question-dark border text-question"},Question:{default:"bg-question text-white dark:bg-question-dark",outlined:"border-question dark:border-question-dark border text-question"},tip:{default:"bg-tip text-white dark:bg-tip-dark",outlined:"border-tip dark:border-tip-dark border text-tip"}},QE=t=>(a.pushScopeId("data-v-15a122d1"),t=t(),a.popScopeId(),t),XE={class:"text-lg flex items-center"},ZE=[QE(()=>a.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 6v12m6-6H6"},null,-1))],JE={class:"py-4"},eS=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=KE[e.type])==null?void 0:d[i.value]}`}),s=a.computed(()=>`px-4 ${gt("bg",e.type+"light")} dark:bg-dark dark:${gt("border",e.type+"dark")} ${n.value?"":"dark:border-0"}`);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",XE,[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",JE,[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},fr=Wt(eS,[["__scopeId","data-v-15a122d1"]]),Ea=Object.freeze(Object.defineProperty({__proto__:null,default:fr},Symbol.toStringTag,{value:"Module"})),tS={class:"px-2 text-black dark:text-white"},od=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 h=[];e.glossary&&(h=e.glossary);const f=h.find(E=>E.id===m);if(f){const E=p.outerHTML,v=h.filter(A=>A.relation.some(D=>D==m)).map(A=>A.term),y=f.variation,T=f.img?f.img:"",N=`<div style="display:inline"><EpTerm term="${f.term}" word="${g}" variations="${y}" graminfo="${f.graminfo}" src="${T}" 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(()=>$r))},template:`${r.value}`};return a.h(s)},{compact:o}=a.toRefs(e);return(s,l)=>(a.openBlock(),a.createElementBlock("div",tS,[a.unref(o)?(a.openBlock(),a.createBlock(fr,{key:1,outlined:"",title:n.value},{default:a.withCtx(()=>[a.createVNode(i)]),_:1},8,["title"])):(a.openBlock(),a.createBlock(i,{key:0}))]))}}),Sa=Object.freeze(Object.defineProperty({__proto__:null,default:od},Symbol.toStringTag,{value:"Module"})),nS={small:"w-36 h-36",medium:"w-56 h-56",large:"w-72 h-72"};function sd(t){return a.getCurrentScope()?(a.onScopeDispose(t),!0):!1}function Ct(t){return typeof t=="function"?t():a.unref(t)}const ld=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const rS=Object.prototype.toString,aS=t=>rS.call(t)==="[object Object]",sn=()=>{},iS=oS();function oS(){var t,e;return ld&&((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 sS(t,e){function n(...r){return new Promise((i,o)=>{Promise.resolve(t(()=>e.apply(this,r),{fn:e,thisArg:this,args:r})).then(i).catch(o)})}return n}const cd=t=>t();function lS(t=cd){const e=a.ref(!0);function n(){e.value=!1}function r(){e.value=!0}const i=(...o)=>{e.value&&t(...o)};return{isActive:a.readonly(e),pause:n,resume:r,eventFilter:i}}function va(t,e=!1,n="Timeout"){return new Promise((r,i)=>{setTimeout(e?()=>i(n):r,t)})}function cS(t){return a.getCurrentInstance()}function uS(...t){if(t.length!==1)return a.toRef(...t);const e=t[0];return typeof e=="function"?a.readonly(a.customRef(()=>({get:e,set:sn}))):a.ref(e)}function dS(t,e,n={}){const{eventFilter:r=cd,...i}=n;return a.watch(t,sS(r,e),i)}function pS(t,e,n={}){const{eventFilter:r,...i}=n,{eventFilter:o,pause:s,resume:l,isActive:c}=lS(r);return{stop:dS(t,e,{...i,eventFilter:o}),pause:s,resume:l,isActive:c}}function ud(t,e=!0,n){cS()?a.onMounted(t,n):e?t():a.nextTick(t)}function ya(t,e=!1){function n(p,{flush:m="sync",deep:g=!1,timeout:h,throwOnTimeout:f}={}){let E=null;const v=[new Promise(y=>{E=a.watch(t,T=>{p(T)!==e&&(E==null||E(),y(T))},{flush:m,deep:g,immediate:!0})})];return h!=null&&v.push(va(h,f).then(()=>Ct(t)).finally(()=>E==null?void 0:E())),Promise.race(v)}function r(p,m){if(!a.isRef(p))return n(T=>T===p,m);const{flush:g="sync",deep:h=!1,timeout:f,throwOnTimeout:E}=m??{};let R=null;const y=[new Promise(T=>{R=a.watch([t,p],([N,A])=>{e!==(N===A)&&(R==null||R(),T(N))},{flush:g,deep:h,immediate:!0})})];return f!=null&&y.push(va(f,E).then(()=>Ct(t)).finally(()=>(R==null||R(),Ct(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 h=Array.from(g);return h.includes(p)||h.includes(Ct(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(Ct(t))?{toMatch:n,toContains:c,changed:u,changedTimes:d,get not(){return ya(t,!e)}}:{toMatch:n,toBe:r,toBeTruthy:i,toBeNull:o,toBeNaN:l,toBeUndefined:s,changed:u,changedTimes:d,get not(){return ya(t,!e)}}}function mS(t){return ya(t)}function yn(t){var e;const n=Ct(t);return(e=n==null?void 0:n.$el)!=null?e:n}const Tn=ld?window:void 0;function Cn(...t){let e,n,r,i;if(typeof t[0]=="string"||Array.isArray(t[0])?([n,r,i]=t,e=Tn):[e,n,r,i]=t,!e)return sn;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(()=>[yn(e),Ct(i)],([d,p])=>{if(s(),!d)return;const m=aS(p)?{...p}:p;o.push(...n.flatMap(g=>r.map(h=>l(d,g,h,m))))},{immediate:!0,flush:"post"}),u=()=>{c(),s()};return sd(u),u}let dd=!1;function _S(t,e,n={}){const{window:r=Tn,ignore:i=[],capture:o=!0,detectIframe:s=!1}=n;if(!r)return sn;iS&&!dd&&(dd=!0,Array.from(r.document.body.children).forEach(m=>m.addEventListener("click",sn)),r.document.documentElement.addEventListener("click",sn));let l=!0;const c=m=>i.some(g=>{if(typeof g=="string")return Array.from(r.document.querySelectorAll(g)).some(h=>h===m.target||m.composedPath().includes(h));{const h=yn(g);return h&&(m.target===h||m.composedPath().includes(h))}}),d=[Cn(r,"click",m=>{const g=yn(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}),Cn(r,"pointerdown",m=>{const g=yn(t);l=!c(m)&&!!(g&&!m.composedPath().includes(g))},{passive:!0}),s&&Cn(r,"blur",m=>{setTimeout(()=>{var g;const h=yn(t);((g=r.document.activeElement)==null?void 0:g.tagName)==="IFRAME"&&!(h!=null&&h.contains(r.document.activeElement))&&e(m)},0)})].filter(Boolean);return()=>d.forEach(m=>m())}function gS(){const t=a.ref(!1),e=a.getCurrentInstance();return e&&a.onMounted(()=>{t.value=!0},e),t}function hS(t){const e=gS();return a.computed(()=>(e.value,!!t()))}function bS(t,e,n){const{immediate:r=!0,delay:i=0,onError:o=sn,onSuccess:s=sn,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 h(R=0,...v){l&&(d.value=e),g.value=void 0,p.value=!1,m.value=!0,R>0&&await va(R);const y=typeof t=="function"?t(...v):t;try{const T=await y;d.value=T,p.value=!0,s(T)}catch(T){if(g.value=T,o(T),u)throw T}finally{m.value=!1}return d.value}r&&h(i);const f={state:d,isReady:p,isLoading:m,error:g,execute:h};function E(){return new Promise((R,v)=>{mS(m).toBe(!1).then(()=>R(f)).catch(v)})}return{...f,then(R,v){return E().then(R,v)}}}function fS(t,e={}){const{window:n=Tn}=e,r=hS(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function");let i;const o=a.ref(!1),s=u=>{o.value=u.matches},l=()=>{i&&("removeEventListener"in i?i.removeEventListener("change",s):i.removeListener(s))},c=a.watchEffect(()=>{r.value&&(l(),i=n.matchMedia(Ct(t)),"addEventListener"in i?i.addEventListener("change",s):i.addListener(s),o.value=i.matches)});return sd(()=>{c(),l(),i=void 0}),o}const Er=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Sr="__vueuse_ssr_handlers__",ES=SS();function SS(){return Sr in Er||(Er[Sr]=Er[Sr]||{}),Er[Sr]}function pd(t,e){return ES[t]||e}function vS(t){return t==null?"any":t instanceof Set?"set":t instanceof Map?"map":t instanceof Date?"date":typeof t=="boolean"?"boolean":typeof t=="string"?"string":typeof t=="object"?"object":Number.isNaN(t)?"any":"number"}const yS={boolean:{read:t=>t==="true",write:t=>String(t)},object:{read:t=>JSON.parse(t),write:t=>JSON.stringify(t)},number:{read:t=>Number.parseFloat(t),write:t=>String(t)},any:{read:t=>t,write:t=>String(t)},string:{read:t=>t,write:t=>String(t)},map:{read:t=>new Map(JSON.parse(t)),write:t=>JSON.stringify(Array.from(t.entries()))},set:{read:t=>new Set(JSON.parse(t)),write:t=>JSON.stringify(Array.from(t))},date:{read:t=>new Date(t),write:t=>t.toISOString()}},md="vueuse-storage";function TS(t,e,n,r={}){var i;const{flush:o="pre",deep:s=!0,listenToStorageChanges:l=!0,writeDefaults:c=!0,mergeDefaults:u=!1,shallow:d,window:p=Tn,eventFilter:m,onError:g=j=>{console.error(j)},initOnMounted:h}=r,f=(d?a.shallowRef:a.ref)(typeof e=="function"?e():e);if(!n)try{n=pd("getDefaultStorage",()=>{var j;return(j=Tn)==null?void 0:j.localStorage})()}catch(j){g(j)}if(!n)return f;const E=Ct(e),R=vS(E),v=(i=r.serializer)!=null?i:yS[R],{pause:y,resume:T}=pS(f,()=>A(f.value),{flush:o,deep:s,eventFilter:m});p&&l&&ud(()=>{Cn(p,"storage",w),Cn(p,md,L),h&&w()}),h||w();function N(j,B){p&&p.dispatchEvent(new CustomEvent(md,{detail:{key:t,oldValue:j,newValue:B,storageArea:n}}))}function A(j){try{const B=n.getItem(t);if(j==null)N(B,null),n.removeItem(t);else{const W=v.write(j);B!==W&&(n.setItem(t,W),N(B,W))}}catch(B){g(B)}}function D(j){const B=j?j.newValue:n.getItem(t);if(B==null)return c&&E!=null&&n.setItem(t,v.write(E)),E;if(!j&&u){const W=v.read(B);return typeof u=="function"?u(W,E):R==="object"&&!Array.isArray(W)?{...E,...W}:W}else return typeof B!="string"?B:v.read(B)}function w(j){if(!(j&&j.storageArea!==n)){if(j&&j.key==null){f.value=E;return}if(!(j&&j.key!==t)){y();try{(j==null?void 0:j.newValue)!==v.write(f.value)&&(f.value=D(j))}catch(B){g(B)}finally{j?a.nextTick(T):T()}}}}function L(j){w(j.detail)}return f}function CS(t){return fS("(prefers-color-scheme: dark)",t)}function Yn(t={}){const{selector:e="html",attribute:n="class",initialValue:r="auto",window:i=Tn,storage:o,storageKey:s="vueuse-color-scheme",listenToStorageChanges:l=!0,storageRef:c,emitAuto:u,disableTransition:d=!0}=t,p={auto:"",light:"light",dark:"dark",...t.modes||{}},m=CS({window:i}),g=a.computed(()=>m.value?"dark":"light"),h=c||(s==null?uS(r):TS(s,r,o,{window:i,listenToStorageChanges:l})),f=a.computed(()=>h.value==="auto"?g.value:h.value),E=pd("updateHTMLAttrs",(T,N,A)=>{const D=typeof T=="string"?i==null?void 0:i.document.querySelector(T):yn(T);if(!D)return;let w;if(d&&(w=i.document.createElement("style"),w.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),i.document.head.appendChild(w)),N==="class"){const L=A.split(/\s/g);Object.values(p).flatMap(j=>(j||"").split(/\s/g)).filter(Boolean).forEach(j=>{L.includes(j)?D.classList.add(j):D.classList.remove(j)})}else D.setAttribute(N,A);d&&(i.getComputedStyle(w).opacity,document.head.removeChild(w))});function R(T){var N;E(e,n,(N=p[T])!=null?N:T)}function v(T){t.onChanged?t.onChanged(T,R):R(T)}a.watch(f,v,{flush:"post",immediate:!0}),ud(()=>v(f.value));const y=a.computed({get(){return u?h.value:f.value},set(T){h.value=T}});try{return Object.assign(y,{store:h,system:g,state:f})}catch{return y}}async function RS(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 NS(t,e={}){const n=bS(()=>RS(Ct(t)),void 0,{resetOnExecute:!0,...e});return a.watch(()=>Ct(t),()=>n.execute(e.delay),{deep:!0}),n}const AS={compact:"p-0",default:"p-4",comfortable:"p-8"},OS=["src"],kS={key:0,class:"mb-2 flex items-center justify-between dark:text-white"},xS={class:"text-2xl dark:text-white font-bold"},IS={key:0},DS={class:"dark:text-white"},wS={class:"dark:text-white"},Hn=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(()=>AS[e.density]),l=a.computed(()=>`
|
|
16
|
+
`,o.map=[e,t.line],!0}function Of(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 kf(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,h;for(h=e;h<n;h++){const y=t.sCount[h]<t.blkIndent;if(i=t.bMarks[h]+t.tShift[h],o=t.eMarks[h],i>=o)break;if(t.src.charCodeAt(i++)===62&&!y){let N=t.sCount[h]+1,A,D;t.src.charCodeAt(i)===32?(i++,N++,D=!1,A=!0):t.src.charCodeAt(i)===9?(A=!0,(t.bsCount[h]+N)%4===3?(i++,N++,D=!1):D=!0):A=!1;let w=N;for(l.push(t.bMarks[h]),t.bMarks[h]=i;i<o;){const L=t.src.charCodeAt(i);if(Pe(L))L===9?w+=4-(w+t.bsCount[h]+(D?1:0))%4:w++;else break;i++}g=i>=o,c.push(t.bsCount[h]),t.bsCount[h]=t.sCount[h]+1+(A?1:0),u.push(t.sCount[h]),t.sCount[h]=w-N,d.push(t.tShift[h]),t.tShift[h]=i-t.bMarks[h];continue}if(g)break;let T=!1;for(let N=0,A=p.length;N<A;N++)if(p[N](t,h,n,!0)){T=!0;break}if(T){t.lineMax=h,t.blkIndent!==0&&(l.push(t.bMarks[h]),c.push(t.bsCount[h]),d.push(t.tShift[h]),u.push(t.sCount[h]),t.sCount[h]-=t.blkIndent);break}l.push(t.bMarks[h]),c.push(t.bsCount[h]),d.push(t.tShift[h]),u.push(t.sCount[h]),t.sCount[h]=-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,h);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 xf(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 Bu(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 Fu(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 If(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 Df(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=Fu(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=Bu(t,c))>=0)p=!1;else return!1;if(d&&t.skipSpaces(g)>=t.eMarks[c])return!1;if(r)return!0;const h=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(h);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 T=t.sCount[c]+g-(t.bMarks[c]+t.tShift[c]);let N=T;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-T,D>4&&(D=1);const w=T+D;l=t.push("list_item_open","li",1),l.markup=String.fromCharCode(h);const L=[c,0];l.map=L,p&&(l.info=t.src.slice(s,g-1));const j=t.tight,B=t.tShift[c],W=t.sCount[c],fe=t.listIndent;if(t.listIndent=t.blkIndent,t.blkIndent=w,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]=B,t.sCount[c]=W,t.tight=j,l=t.push("list_item_close","li",-1),l.markup=String.fromCharCode(h),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=Fu(t,c),g<0)break;s=t.bMarks[c]+t.tShift[c]}else if(g=Bu(t,c),g<0)break;if(h!==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(h),E[1]=c,t.line=c,t.parentType=y,u&&If(t,f),!0}function wf(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 T=!1;if(t.sCount[v]-t.blkIndent>3&&(T=!0),t.sCount[v]<0&&(T=!0),!T){const D=t.md.block.ruler.getRules("reference"),w=t.parentType;t.parentType="reference";let L=!1;for(let j=0,B=D.length;j<B;j++)if(D[j](t,v,y,!0)){L=!0;break}if(t.parentType=w,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,h=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&&h!==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=pr(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 Mf=["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"],Lf="[a-zA-Z_:][a-zA-Z0-9:._-]*",Pf="(?:"+"[^\"'=<>`\\x00-\\x20]+"+"|"+"'[^']*'"+"|"+'"[^"]*"'+")",ju="<[A-Za-z][A-Za-z0-9\\-]*"+("(?:\\s+"+Lf+"(?:\\s*=\\s*"+Pf+")?)")+"*\\s*\\/?>",Uu="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",Bf="<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->",Ff="<[?][\\s\\S]*?[?]>",jf="<![A-Za-z][^>]*>",Uf="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",Gf=new RegExp("^(?:"+ju+"|"+Uu+"|"+Bf+"|"+Ff+"|"+jf+"|"+Uf+")"),Vf=new RegExp("^(?:"+ju+"|"+Uu+")"),Sn=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+Mf.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(Vf.source+"\\s*$"),/^$/,!1]];function qf(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<Sn.length&&!Sn[l][0].test(s);l++);if(l===Sn.length)return!1;if(r)return Sn[l][2];let c=e+1;if(!Sn[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),Sn[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 zf(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 Yf(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 h=t.eMarks[l];if(g<h&&(s=t.src.charCodeAt(g),(s===45||s===61)&&(g=t.skipChars(g,s),g=t.skipSpaces(g),g>=h))){o=s===61?1:2;break}}if(t.sCount[l]<0)continue;let m=!1;for(let g=0,h=r.length;g<h;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 Hf(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 _r=[["table",Nf,["paragraph","reference"]],["code",Af],["fence",Of,["paragraph","reference","blockquote","list"]],["blockquote",kf,["paragraph","reference","blockquote","list"]],["hr",xf,["paragraph","reference","blockquote","list"]],["list",Df,["paragraph","reference","blockquote"]],["reference",wf],["html_block",qf,["paragraph","reference","blockquote"]],["heading",zf,["paragraph","reference","blockquote"]],["lheading",Yf],["paragraph",Hf]];function gr(){this.ruler=new it;for(let t=0;t<_r.length;t++)this.ruler.push(_r[t][0],_r[t][1],{alt:(_r[t][2]||[]).slice()})}gr.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)}},gr.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)},gr.prototype.State=Ot;function Vn(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}Vn.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},Vn.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},Vn.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=Gn(i)||Un(String.fromCharCode(i)),u=Gn(l)||Un(String.fromCharCode(l)),d=jn(i),p=jn(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}},Vn.prototype.Token=yt;function $f(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 Wf(t,e){let n=t.pos;for(;n<t.posMax&&!$f(t.src.charCodeAt(n));)n++;return n===t.pos?!1:(e||(t.pending+=t.src.slice(t.pos,n)),t.pos=n,!0)}const Kf=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;function Qf(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(Kf);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 Xf(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 ua=[];for(let t=0;t<256;t++)ua.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(t){ua[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&&ua[i]!==0?l.content=o:l.content=s,l.markup=s,l.info="escape"}return t.pos=n+1,!0}function Jf(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 eE(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 Gu(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 tE(t){const e=t.tokens_meta,n=t.tokens_meta.length;Gu(t,t.delimiters);for(let r=0;r<n;r++)e[r]&&e[r].delimiters&&Gu(t,e[r].delimiters)}const Vu={tokenize:eE,postProcess:tE};function nE(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 qu(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 rE(t){const e=t.tokens_meta,n=t.tokens_meta.length;qu(t,t.delimiters);for(let r=0;r<n;r++)e[r]&&e[r].delimiters&&qu(t,e[r].delimiters)}const zu={tokenize:nE,postProcess:rE};function aE(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 h=g+1;if(h<p&&t.src.charCodeAt(h)===40){for(u=!1,h++;h<p&&(n=t.src.charCodeAt(h),!(!Pe(n)&&n!==10));h++);if(h>=p)return!1;if(c=h,i=t.md.helpers.parseLinkDestination(t.src,h,t.posMax),i.ok){for(s=t.md.normalizeLink(i.str),t.md.validateLink(s)?h=i.pos:s="",c=h;h<p&&(n=t.src.charCodeAt(h),!(!Pe(n)&&n!==10));h++);if(i=t.md.helpers.parseLinkTitle(t.src,h,t.posMax),h<p&&c!==h&&i.ok)for(l=i.str,h=i.pos;h<p&&(n=t.src.charCodeAt(h),!(!Pe(n)&&n!==10));h++);}(h>=p||t.src.charCodeAt(h)!==41)&&(u=!0),h++}if(u){if(typeof t.env.references>"u")return!1;if(h<p&&t.src.charCodeAt(h)===91?(c=h+1,h=t.md.helpers.parseLinkLabel(t,h),h>=0?r=t.src.slice(c,h++):h=g+1):h=g+1,r||(r=t.src.slice(m,g)),o=t.env.references[pr(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=h,t.posMax=p,!0}function iE(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,h=t.md.helpers.parseLinkLabel(t,t.pos+1,!1);if(h<0)return!1;if(o=h+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=h+1):o=h+1,i||(i=t.src.slice(g,h)),s=t.env.references[pr(i)],!s)return t.pos=p,!1;d=s.href,c=s.title}if(!e){r=t.src.slice(g,h);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 oE=/^([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])?)*)$/,sE=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;function lE(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(sE.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(oE.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 cE(t){return/^<a[>\s]/i.test(t)}function uE(t){return/^<\/a\s*>/i.test(t)}function dE(t){const e=t|32;return e>=97&&e<=122}function pE(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&&!dE(i))return!1;const o=t.src.slice(r).match(Gf);if(!o)return!1;if(!e){const s=t.push("html_inline","",0);s.content=o[0],cE(s.content)&&t.linkLevel++,uE(s.content)&&t.linkLevel--}return t.pos+=o[0].length,!0}const mE=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,_E=/^&([a-z][a-z0-9]{1,31});/i;function gE(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(mE);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=oa(s)?dr(s):dr(65533),l.markup=o[0],l.info="entity"}return t.pos+=o[0].length,!0}}else{const o=t.src.slice(n).match(_E);if(o){const s=ku(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 Yu(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 hE(t){const e=t.tokens_meta,n=t.tokens_meta.length;Yu(t.delimiters);for(let r=0;r<n;r++)e[r]&&e[r].delimiters&&Yu(e[r].delimiters)}function bE(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 da=[["text",Wf],["linkify",Qf],["newline",Xf],["escape",Zf],["backticks",Jf],["strikethrough",Vu.tokenize],["emphasis",zu.tokenize],["link",aE],["image",iE],["autolink",lE],["html_inline",pE],["entity",gE]],pa=[["balance_pairs",hE],["strikethrough",Vu.postProcess],["emphasis",zu.postProcess],["fragments_join",bE]];function qn(){this.ruler=new it;for(let t=0;t<da.length;t++)this.ruler.push(da[t][0],da[t][1]);this.ruler2=new it;for(let t=0;t<pa.length;t++)this.ruler2.push(pa[t][0],pa[t][1])}qn.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},qn.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()},qn.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)},qn.prototype.State=Vn;function fE(t){const e={};t=t||{},e.src_Any=Cu.source,e.src_Cc=Ru.source,e.src_Z=Au.source,e.src_P=na.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 ma(t){return Array.prototype.slice.call(arguments,1).forEach(function(n){n&&Object.keys(n).forEach(function(r){t[r]=n[r]})}),t}function hr(t){return Object.prototype.toString.call(t)}function EE(t){return hr(t)==="[object String]"}function SE(t){return hr(t)==="[object Object]"}function vE(t){return hr(t)==="[object RegExp]"}function Hu(t){return hr(t)==="[object Function]"}function yE(t){return t.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}const $u={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function TE(t){return Object.keys(t||{}).reduce(function(e,n){return e||$u.hasOwnProperty(n)},!1)}const CE={"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}}},RE="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]",NE="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function AE(t){t.__index__=-1,t.__text_cache__=""}function OE(t){return function(e,n){const r=e.slice(n);return t.test(r)?r.match(t)[0].length:0}}function Wu(){return function(t,e){e.normalize(t)}}function br(t){const e=t.re=fE(t.__opts__),n=t.__tlds__.slice();t.onCompile(),t.__tlds_replaced__||n.push(RE),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,SE(c)){vE(c.validate)?u.validate=OE(c.validate):Hu(c.validate)?u.validate=c.validate:o(l,c),Hu(c.normalize)?u.normalize=c.normalize:c.normalize?o(l,c):u.normalize=Wu();return}if(EE(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:Wu()};const s=Object.keys(t.__compiled__).filter(function(l){return l.length>0&&t.__compiled__[l]}).map(yE).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"),AE(t)}function kE(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 _a(t,e){const n=new kE(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||TE(t)&&(e=t,t={}),this.__opts__=ma({},$u,e),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=ma({},CE,t),this.__compiled__={},this.__tlds__=NE,this.__tlds_replaced__=!1,this.re={},br(this)}ut.prototype.add=function(e,n){return this.__schemas__[e]=n,br(this),this},ut.prototype.set=function(e){return this.__opts__=ma(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(_a(this,r)),r=this.__last_index__);let i=r?e.slice(r):e;for(;this.test(i);)n.push(_a(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,_a(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(),br(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,br(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 vn=2147483647,kt=36,ga=1,zn=26,xE=38,IE=700,Ku=72,Qu=128,Xu="-",DE=/^xn--/,wE=/[^\0-\x7F]/,ME=/[\x2E\u3002\uFF0E\uFF61]/g,LE={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},ha=kt-ga,xt=Math.floor,ba=String.fromCharCode;function $t(t){throw new RangeError(LE[t])}function PE(t,e){const n=[];let r=t.length;for(;r--;)n[r]=e(t[r]);return n}function Zu(t,e){const n=t.split("@");let r="";n.length>1&&(r=n[0]+"@",t=n[1]),t=t.replace(ME,".");const i=t.split("."),o=PE(i,e).join(".");return r+o}function Ju(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 BE=t=>String.fromCodePoint(...t),FE=function(t){return t>=48&&t<58?26+(t-48):t>=65&&t<91?t-65:t>=97&&t<123?t-97:kt},ed=function(t,e){return t+22+75*(t<26)-((e!=0)<<5)},td=function(t,e,n){let r=0;for(t=n?xt(t/IE):t>>1,t+=xt(t/e);t>ha*zn>>1;r+=kt)t=xt(t/ha);return xt(r+(ha+1)*t/(t+xE))},nd=function(t){const e=[],n=t.length;let r=0,i=Qu,o=Ku,s=t.lastIndexOf(Xu);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=kt;;p+=kt){l>=n&&$t("invalid-input");const m=FE(t.charCodeAt(l++));m>=kt&&$t("invalid-input"),m>xt((vn-r)/d)&&$t("overflow"),r+=m*d;const g=p<=o?ga:p>=o+zn?zn:p-o;if(m<g)break;const h=kt-g;d>xt(vn/h)&&$t("overflow"),d*=h}const u=e.length+1;o=td(r-c,u,c==0),xt(r/u)>vn-i&&$t("overflow"),i+=xt(r/u),r%=u,e.splice(r++,0,i)}return String.fromCodePoint(...e)},rd=function(t){const e=[];t=Ju(t);const n=t.length;let r=Qu,i=0,o=Ku;for(const c of t)c<128&&e.push(ba(c));const s=e.length;let l=s;for(s&&e.push(Xu);l<n;){let c=vn;for(const d of t)d>=r&&d<c&&(c=d);const u=l+1;c-r>xt((vn-i)/u)&&$t("overflow"),i+=(c-r)*u,r=c;for(const d of t)if(d<r&&++i>vn&&$t("overflow"),d===r){let p=i;for(let m=kt;;m+=kt){const g=m<=o?ga:m>=o+zn?zn:m-o;if(p<g)break;const h=p-g,f=kt-g;e.push(ba(ed(g+h%f,0))),p=xt(h/f)}e.push(ba(ed(p,0))),o=td(i,u,l===s),i=0,++l}++i,++r}return e.join("")},ad={version:"2.3.1",ucs2:{decode:Ju,encode:BE},decode:nd,encode:rd,toASCII:function(t){return Zu(t,function(e){return wE.test(e)?"xn--"+rd(e):e})},toUnicode:function(t){return Zu(t,function(e){return DE.test(e)?nd(e.slice(4).toLowerCase()):e})}},jE={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"]}}}},UE=/^(vbscript|javascript|file|data):/,GE=/^data:image\/(gif|png|jpeg|webp);/;function VE(t){const e=t.trim().toLowerCase();return UE.test(e)?GE.test(e):!0}const id=["http:","https:","mailto:"];function qE(t){const e=ta(t,!0);if(e.hostname&&(!e.protocol||id.indexOf(e.protocol)>=0))try{e.hostname=ad.toASCII(e.hostname)}catch{}return Fn(ea(e))}function zE(t){const e=ta(t,!0);if(e.hostname&&(!e.protocol||id.indexOf(e.protocol)>=0))try{e.hostname=ad.toUnicode(e.hostname)}catch{}return bn(ea(e),bn.defaultChars+"%")}function _t(t,e){if(!(this instanceof _t))return new _t(t,e);e||ia(t)||(e=t||{},t="default"),this.inline=new qn,this.block=new gr,this.core=new la,this.renderer=new En,this.linkify=new ut,this.validateLink=VE,this.normalizeLink=qE,this.normalizeLinkText=zE,this.utils=ef,this.helpers=ur({},af),this.options={},this.configure(t),e&&this.set(e)}_t.prototype.set=function(t){return ur(this.options,t),this},_t.prototype.configure=function(t){const e=this;if(ia(t)){const n=t;if(t=jE[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},_t.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},_t.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},_t.prototype.use=function(t){const e=[this].concat(Array.prototype.slice.call(arguments,1));return t.apply(t,e),this},_t.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},_t.prototype.render=function(t,e){return e=e||{},this.renderer.render(this.parse(t,e),this.options,e)},_t.prototype.parseInline=function(t,e){const n=new this.core.State(t,this,e);return n.inlineMode=!0,this.core.process(n),n.tokens},_t.prototype.renderInline=function(t,e){return e=e||{},this.renderer.render(this.parseInline(t,e),this.options,e)};var YE=new _t({breaks:!0,linkify:!0,typographer:!0});function Tt(t){return YE.render(t)}const HE=["width","height","viewBox"],$E=["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,$E)],10,HE))}}),fa=Object.freeze(Object.defineProperty({__proto__:null,default:ke},Symbol.toStringTag,{value:"Module"})),WE={bgbase:"bg-base",borderbase:"border border-solid border-base",fillbase:"fill-base",textbase:"text-base",bgbaselight:"bg-base-light",borderbaselight:"border border-solid border-base-light",fillbaselight:"fill-base-light",textbaselight:"text-base-light",bgbasedark:"bg-base-dark",borderbasedark:"border border-solid border-base-dark",fillbasedark:"fill-base-dark",textbasedark:"text-base-dark",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",borderwhite:"border border-solid border-white",bgblack:"bg-black",bordeblack:"border border-solid border-black"};function gt(t,e){const r=`${t}${e}`.replace(/-/g,"");return WE[r]}const KE={base:{default:"bg-base text-black dark:bg-base-dark dark:text-white",outlined:"border-base dark:border-base-dark border text-black dark:text-white"},primary:{default:"bg-primary text-white dark:bg-main-color-400",outlined:"border-primary dark:border-base-dark border text-primary"},secondary:{default:"bg-secondary text-white dark:bg-secondary-dark",outlined:"border-secondary dark:border-secondary-dark border text-secondary"},accent:{default:"bg-accent text-white dark:bg-accent-dark",outlined:"border-accent dark:border-accent-dark border text-accent"},warning:{default:"bg-warning text-white dark:bg-warning-dark",outlined:"border-warning dark:border-warning-dark border text-warning"},success:{default:"bg-success text-white dark:bg-success-dark",outlined:"border-success dark:border-success-dark border text-success"},error:{default:"bg-error text-white dark:bg-error-dark",outlined:"border-error dark:border-error-dark border text-error"},info:{default:"bg-info text-white dark:bg-info-dark",outlined:"border-info dark:border-info-dark border text-info"},question:{default:"bg-question text-white dark:bg-question-dark",outlined:"border-question dark:border-question-dark border text-question"},Question:{default:"bg-question text-white dark:bg-question-dark",outlined:"border-question dark:border-question-dark border text-question"},tip:{default:"bg-tip text-white dark:bg-tip-dark",outlined:"border-tip dark:border-tip-dark border text-tip"}},QE=t=>(a.pushScopeId("data-v-15a122d1"),t=t(),a.popScopeId(),t),XE={class:"text-lg flex items-center"},ZE=[QE(()=>a.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 6v12m6-6H6"},null,-1))],JE={class:"py-4"},eS=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=KE[e.type])==null?void 0:d[i.value]}`}),s=a.computed(()=>`px-4 ${gt("bg",e.type+"light")} dark:bg-dark dark:${gt("border",e.type+"dark")} ${n.value?"":"dark:border-0"}`);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",XE,[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",JE,[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},fr=Wt(eS,[["__scopeId","data-v-15a122d1"]]),Ea=Object.freeze(Object.defineProperty({__proto__:null,default:fr},Symbol.toStringTag,{value:"Module"})),tS={class:"px-2 text-black dark:text-white"},od=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 h=[];e.glossary&&(h=e.glossary);const f=h.find(E=>E.id===m);if(f){const E=p.outerHTML,v=h.filter(A=>A.relation.some(D=>D==m)).map(A=>A.term),y=f.variation,T=f.img?f.img:"",N=`<div style="display:inline"><EpTerm term="${f.term}" word="${g}" variations="${y}" graminfo="${f.graminfo}" src="${T}" 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(()=>$r))},template:`${r.value}`};return a.h(s)},{compact:o}=a.toRefs(e);return(s,l)=>(a.openBlock(),a.createElementBlock("div",tS,[a.unref(o)?(a.openBlock(),a.createBlock(fr,{key:1,outlined:"",title:n.value},{default:a.withCtx(()=>[a.createVNode(i)]),_:1},8,["title"])):(a.openBlock(),a.createBlock(i,{key:0}))]))}}),Sa=Object.freeze(Object.defineProperty({__proto__:null,default:od},Symbol.toStringTag,{value:"Module"})),nS={small:"w-36 h-36",medium:"w-56 h-56",large:"w-72 h-72"};function sd(t){return a.getCurrentScope()?(a.onScopeDispose(t),!0):!1}function Ct(t){return typeof t=="function"?t():a.unref(t)}const ld=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const rS=Object.prototype.toString,aS=t=>rS.call(t)==="[object Object]",sn=()=>{},iS=oS();function oS(){var t,e;return ld&&((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 sS(t,e){function n(...r){return new Promise((i,o)=>{Promise.resolve(t(()=>e.apply(this,r),{fn:e,thisArg:this,args:r})).then(i).catch(o)})}return n}const cd=t=>t();function lS(t=cd){const e=a.ref(!0);function n(){e.value=!1}function r(){e.value=!0}const i=(...o)=>{e.value&&t(...o)};return{isActive:a.readonly(e),pause:n,resume:r,eventFilter:i}}function va(t,e=!1,n="Timeout"){return new Promise((r,i)=>{setTimeout(e?()=>i(n):r,t)})}function cS(t){return a.getCurrentInstance()}function uS(...t){if(t.length!==1)return a.toRef(...t);const e=t[0];return typeof e=="function"?a.readonly(a.customRef(()=>({get:e,set:sn}))):a.ref(e)}function dS(t,e,n={}){const{eventFilter:r=cd,...i}=n;return a.watch(t,sS(r,e),i)}function pS(t,e,n={}){const{eventFilter:r,...i}=n,{eventFilter:o,pause:s,resume:l,isActive:c}=lS(r);return{stop:dS(t,e,{...i,eventFilter:o}),pause:s,resume:l,isActive:c}}function ud(t,e=!0,n){cS()?a.onMounted(t,n):e?t():a.nextTick(t)}function ya(t,e=!1){function n(p,{flush:m="sync",deep:g=!1,timeout:h,throwOnTimeout:f}={}){let E=null;const v=[new Promise(y=>{E=a.watch(t,T=>{p(T)!==e&&(E==null||E(),y(T))},{flush:m,deep:g,immediate:!0})})];return h!=null&&v.push(va(h,f).then(()=>Ct(t)).finally(()=>E==null?void 0:E())),Promise.race(v)}function r(p,m){if(!a.isRef(p))return n(T=>T===p,m);const{flush:g="sync",deep:h=!1,timeout:f,throwOnTimeout:E}=m??{};let R=null;const y=[new Promise(T=>{R=a.watch([t,p],([N,A])=>{e!==(N===A)&&(R==null||R(),T(N))},{flush:g,deep:h,immediate:!0})})];return f!=null&&y.push(va(f,E).then(()=>Ct(t)).finally(()=>(R==null||R(),Ct(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 h=Array.from(g);return h.includes(p)||h.includes(Ct(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(Ct(t))?{toMatch:n,toContains:c,changed:u,changedTimes:d,get not(){return ya(t,!e)}}:{toMatch:n,toBe:r,toBeTruthy:i,toBeNull:o,toBeNaN:l,toBeUndefined:s,changed:u,changedTimes:d,get not(){return ya(t,!e)}}}function mS(t){return ya(t)}function yn(t){var e;const n=Ct(t);return(e=n==null?void 0:n.$el)!=null?e:n}const Tn=ld?window:void 0;function Cn(...t){let e,n,r,i;if(typeof t[0]=="string"||Array.isArray(t[0])?([n,r,i]=t,e=Tn):[e,n,r,i]=t,!e)return sn;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(()=>[yn(e),Ct(i)],([d,p])=>{if(s(),!d)return;const m=aS(p)?{...p}:p;o.push(...n.flatMap(g=>r.map(h=>l(d,g,h,m))))},{immediate:!0,flush:"post"}),u=()=>{c(),s()};return sd(u),u}let dd=!1;function _S(t,e,n={}){const{window:r=Tn,ignore:i=[],capture:o=!0,detectIframe:s=!1}=n;if(!r)return sn;iS&&!dd&&(dd=!0,Array.from(r.document.body.children).forEach(m=>m.addEventListener("click",sn)),r.document.documentElement.addEventListener("click",sn));let l=!0;const c=m=>i.some(g=>{if(typeof g=="string")return Array.from(r.document.querySelectorAll(g)).some(h=>h===m.target||m.composedPath().includes(h));{const h=yn(g);return h&&(m.target===h||m.composedPath().includes(h))}}),d=[Cn(r,"click",m=>{const g=yn(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}),Cn(r,"pointerdown",m=>{const g=yn(t);l=!c(m)&&!!(g&&!m.composedPath().includes(g))},{passive:!0}),s&&Cn(r,"blur",m=>{setTimeout(()=>{var g;const h=yn(t);((g=r.document.activeElement)==null?void 0:g.tagName)==="IFRAME"&&!(h!=null&&h.contains(r.document.activeElement))&&e(m)},0)})].filter(Boolean);return()=>d.forEach(m=>m())}function gS(){const t=a.ref(!1),e=a.getCurrentInstance();return e&&a.onMounted(()=>{t.value=!0},e),t}function hS(t){const e=gS();return a.computed(()=>(e.value,!!t()))}function bS(t,e,n){const{immediate:r=!0,delay:i=0,onError:o=sn,onSuccess:s=sn,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 h(R=0,...v){l&&(d.value=e),g.value=void 0,p.value=!1,m.value=!0,R>0&&await va(R);const y=typeof t=="function"?t(...v):t;try{const T=await y;d.value=T,p.value=!0,s(T)}catch(T){if(g.value=T,o(T),u)throw T}finally{m.value=!1}return d.value}r&&h(i);const f={state:d,isReady:p,isLoading:m,error:g,execute:h};function E(){return new Promise((R,v)=>{mS(m).toBe(!1).then(()=>R(f)).catch(v)})}return{...f,then(R,v){return E().then(R,v)}}}function fS(t,e={}){const{window:n=Tn}=e,r=hS(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function");let i;const o=a.ref(!1),s=u=>{o.value=u.matches},l=()=>{i&&("removeEventListener"in i?i.removeEventListener("change",s):i.removeListener(s))},c=a.watchEffect(()=>{r.value&&(l(),i=n.matchMedia(Ct(t)),"addEventListener"in i?i.addEventListener("change",s):i.addListener(s),o.value=i.matches)});return sd(()=>{c(),l(),i=void 0}),o}const Er=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Sr="__vueuse_ssr_handlers__",ES=SS();function SS(){return Sr in Er||(Er[Sr]=Er[Sr]||{}),Er[Sr]}function pd(t,e){return ES[t]||e}function vS(t){return t==null?"any":t instanceof Set?"set":t instanceof Map?"map":t instanceof Date?"date":typeof t=="boolean"?"boolean":typeof t=="string"?"string":typeof t=="object"?"object":Number.isNaN(t)?"any":"number"}const yS={boolean:{read:t=>t==="true",write:t=>String(t)},object:{read:t=>JSON.parse(t),write:t=>JSON.stringify(t)},number:{read:t=>Number.parseFloat(t),write:t=>String(t)},any:{read:t=>t,write:t=>String(t)},string:{read:t=>t,write:t=>String(t)},map:{read:t=>new Map(JSON.parse(t)),write:t=>JSON.stringify(Array.from(t.entries()))},set:{read:t=>new Set(JSON.parse(t)),write:t=>JSON.stringify(Array.from(t))},date:{read:t=>new Date(t),write:t=>t.toISOString()}},md="vueuse-storage";function TS(t,e,n,r={}){var i;const{flush:o="pre",deep:s=!0,listenToStorageChanges:l=!0,writeDefaults:c=!0,mergeDefaults:u=!1,shallow:d,window:p=Tn,eventFilter:m,onError:g=j=>{console.error(j)},initOnMounted:h}=r,f=(d?a.shallowRef:a.ref)(typeof e=="function"?e():e);if(!n)try{n=pd("getDefaultStorage",()=>{var j;return(j=Tn)==null?void 0:j.localStorage})()}catch(j){g(j)}if(!n)return f;const E=Ct(e),R=vS(E),v=(i=r.serializer)!=null?i:yS[R],{pause:y,resume:T}=pS(f,()=>A(f.value),{flush:o,deep:s,eventFilter:m});p&&l&&ud(()=>{Cn(p,"storage",w),Cn(p,md,L),h&&w()}),h||w();function N(j,B){p&&p.dispatchEvent(new CustomEvent(md,{detail:{key:t,oldValue:j,newValue:B,storageArea:n}}))}function A(j){try{const B=n.getItem(t);if(j==null)N(B,null),n.removeItem(t);else{const W=v.write(j);B!==W&&(n.setItem(t,W),N(B,W))}}catch(B){g(B)}}function D(j){const B=j?j.newValue:n.getItem(t);if(B==null)return c&&E!=null&&n.setItem(t,v.write(E)),E;if(!j&&u){const W=v.read(B);return typeof u=="function"?u(W,E):R==="object"&&!Array.isArray(W)?{...E,...W}:W}else return typeof B!="string"?B:v.read(B)}function w(j){if(!(j&&j.storageArea!==n)){if(j&&j.key==null){f.value=E;return}if(!(j&&j.key!==t)){y();try{(j==null?void 0:j.newValue)!==v.write(f.value)&&(f.value=D(j))}catch(B){g(B)}finally{j?a.nextTick(T):T()}}}}function L(j){w(j.detail)}return f}function CS(t){return fS("(prefers-color-scheme: dark)",t)}function Yn(t={}){const{selector:e="html",attribute:n="class",initialValue:r="auto",window:i=Tn,storage:o,storageKey:s="vueuse-color-scheme",listenToStorageChanges:l=!0,storageRef:c,emitAuto:u,disableTransition:d=!0}=t,p={auto:"",light:"light",dark:"dark",...t.modes||{}},m=CS({window:i}),g=a.computed(()=>m.value?"dark":"light"),h=c||(s==null?uS(r):TS(s,r,o,{window:i,listenToStorageChanges:l})),f=a.computed(()=>h.value==="auto"?g.value:h.value),E=pd("updateHTMLAttrs",(T,N,A)=>{const D=typeof T=="string"?i==null?void 0:i.document.querySelector(T):yn(T);if(!D)return;let w;if(d&&(w=i.document.createElement("style"),w.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),i.document.head.appendChild(w)),N==="class"){const L=A.split(/\s/g);Object.values(p).flatMap(j=>(j||"").split(/\s/g)).filter(Boolean).forEach(j=>{L.includes(j)?D.classList.add(j):D.classList.remove(j)})}else D.setAttribute(N,A);d&&(i.getComputedStyle(w).opacity,document.head.removeChild(w))});function R(T){var N;E(e,n,(N=p[T])!=null?N:T)}function v(T){t.onChanged?t.onChanged(T,R):R(T)}a.watch(f,v,{flush:"post",immediate:!0}),ud(()=>v(f.value));const y=a.computed({get(){return u?h.value:f.value},set(T){h.value=T}});try{return Object.assign(y,{store:h,system:g,state:f})}catch{return y}}async function RS(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 NS(t,e={}){const n=bS(()=>RS(Ct(t)),void 0,{resetOnExecute:!0,...e});return a.watch(()=>Ct(t),()=>n.execute(e.delay),{deep:!0}),n}const AS={compact:"p-0",default:"p-4",comfortable:"p-8"},OS=["src"],kS={key:0,class:"mb-2 flex items-center justify-between dark:text-white"},xS={class:"text-2xl dark:text-white font-bold"},IS={key:0},DS={class:"dark:text-white"},wS={class:"dark:text-white"},Hn=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(()=>AS[e.density]),l=a.computed(()=>`
|
|
17
17
|
${n.value}
|
|
18
18
|
${r.value}
|
|
19
19
|
${i.value}
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
rounded-md
|
|
22
22
|
dark:bg-dark
|
|
23
23
|
datk:text-white
|
|
24
|
-
my-4 `),{title:c,subtitle:u,icon:d,src:p}=a.toRefs(e);return(m,g)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(`${l.value} `)},[a.unref(p)?(a.openBlock(),a.createElementBlock("img",{key:0,src:a.unref(p),class:"w-full rounded-t-md",alt:"header card"},null,8,OS)):a.createCommentVNode("",!0),a.createElementVNode("div",{class:a.normalizeClass(s.value)},[a.unref(c)||a.unref(u)?(a.openBlock(),a.createElementBlock("div",kS,[a.createElementVNode("div",null,[a.createElementVNode("h3",xS,a.toDisplayString(a.unref(c)),1),a.createElementVNode("h4",{class:a.normalizeClass(`text-xs dark:text-white ${o.value}`)},a.toDisplayString(a.unref(u)),3)]),a.unref(d)?(a.openBlock(),a.createElementBlock("div",IS,[a.createVNode(ke,{"icon-path":a.unref(d)},null,8,["icon-path"])])):a.createCommentVNode("",!0)])):a.createCommentVNode("",!0),a.renderSlot(m.$slots,"card-header"),a.createElementVNode("div",DS,[a.renderSlot(m.$slots,"default")]),a.createElementVNode("div",wS,[a.renderSlot(m.$slots,"card-actions")])],2)],2))}}),Ta=Object.freeze(Object.defineProperty({__proto__:null,default:Hn},Symbol.toStringTag,{value:"Module"})),MS={class:"mx-auto"},Rn=a.defineComponent({__name:"EpModal",props:{modelValue:{type:Boolean,default:!1},title:{default:null},subtitle:{default:null},icon:{default:null},persistent:{type:Boolean,default:!1},size:{default:"default"}},emits:["update:modelValue"],setup(t,{emit:e}){const n={compact:"w-[45%]",default:"w-[75%]",comfortable:"w-[85%]"},r=t,i=e,o=()=>{r.persistent||i("update:modelValue",!1)},s=a.computed(()=>n[r.size]),{title:l,subtitle:c,icon:u}=a.toRefs(r);return(d,p)=>(a.openBlock(),a.createBlock(a.Teleport,{to:"body"},[a.createVNode(a.Transition,{name:"modal"},{default:a.withCtx(()=>[d.modelValue?(a.openBlock(),a.createElementBlock("div",{key:0,class:"modal-mask",onClick:a.withModifiers(o,["self"])},[a.createElementVNode("div",{class:a.normalizeClass(`modal-container ${s.value} max-h-screen overflow-auto`)},[a.createElementVNode("div",MS,[a.createVNode(Hn,{title:a.unref(l),subtitle:a.unref(c),icon:a.unref(u)},{default:a.withCtx(()=>[a.renderSlot(d.$slots,"default")]),_:3},8,["title","subtitle","icon"])])],2)])):a.createCommentVNode("",!0)]),_:3})]))}}),Ca=Object.freeze(Object.defineProperty({__proto__:null,default:Rn},Symbol.toStringTag,{value:"Module"})),_d={base:{default:"bg-base text-white hover:bg-base-dark dark:text-dark dark:hover:bg-base-light",outlined:"ring-1 ring-base ring-inset text-base dark:bg-transparent hover:bg-base-light hover:text-base-dark dark:hover:bg-base-light dark:hover:text-dark",text:"uppercase text-base dark:text-base hover:bg-base-light border border-transparent dark:hover:border-base dark:hover:bg-transparent"},primary:{default:"bg-primary text-white hover:bg-
|
|
24
|
+
my-4 `),{title:c,subtitle:u,icon:d,src:p}=a.toRefs(e);return(m,g)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(`${l.value} `)},[a.unref(p)?(a.openBlock(),a.createElementBlock("img",{key:0,src:a.unref(p),class:"w-full rounded-t-md",alt:"header card"},null,8,OS)):a.createCommentVNode("",!0),a.createElementVNode("div",{class:a.normalizeClass(s.value)},[a.unref(c)||a.unref(u)?(a.openBlock(),a.createElementBlock("div",kS,[a.createElementVNode("div",null,[a.createElementVNode("h3",xS,a.toDisplayString(a.unref(c)),1),a.createElementVNode("h4",{class:a.normalizeClass(`text-xs dark:text-white ${o.value}`)},a.toDisplayString(a.unref(u)),3)]),a.unref(d)?(a.openBlock(),a.createElementBlock("div",IS,[a.createVNode(ke,{"icon-path":a.unref(d)},null,8,["icon-path"])])):a.createCommentVNode("",!0)])):a.createCommentVNode("",!0),a.renderSlot(m.$slots,"card-header"),a.createElementVNode("div",DS,[a.renderSlot(m.$slots,"default")]),a.createElementVNode("div",wS,[a.renderSlot(m.$slots,"card-actions")])],2)],2))}}),Ta=Object.freeze(Object.defineProperty({__proto__:null,default:Hn},Symbol.toStringTag,{value:"Module"})),MS={class:"mx-auto"},Rn=a.defineComponent({__name:"EpModal",props:{modelValue:{type:Boolean,default:!1},title:{default:null},subtitle:{default:null},icon:{default:null},persistent:{type:Boolean,default:!1},size:{default:"default"}},emits:["update:modelValue"],setup(t,{emit:e}){const n={compact:"w-[45%]",default:"w-[75%]",comfortable:"w-[85%]"},r=t,i=e,o=()=>{r.persistent||i("update:modelValue",!1)},s=a.computed(()=>n[r.size]),{title:l,subtitle:c,icon:u}=a.toRefs(r);return(d,p)=>(a.openBlock(),a.createBlock(a.Teleport,{to:"body"},[a.createVNode(a.Transition,{name:"modal"},{default:a.withCtx(()=>[d.modelValue?(a.openBlock(),a.createElementBlock("div",{key:0,class:"modal-mask",onClick:a.withModifiers(o,["self"])},[a.createElementVNode("div",{class:a.normalizeClass(`modal-container ${s.value} max-h-screen overflow-auto`)},[a.createElementVNode("div",MS,[a.createVNode(Hn,{title:a.unref(l),subtitle:a.unref(c),icon:a.unref(u)},{default:a.withCtx(()=>[a.renderSlot(d.$slots,"default")]),_:3},8,["title","subtitle","icon"])])],2)])):a.createCommentVNode("",!0)]),_:3})]))}}),Ca=Object.freeze(Object.defineProperty({__proto__:null,default:Rn},Symbol.toStringTag,{value:"Module"})),_d={base:{default:"bg-base text-white hover:bg-base-dark dark:text-dark dark:hover:bg-base-light",outlined:"ring-1 ring-base ring-inset text-base dark:bg-transparent hover:bg-base-light hover:text-base-dark dark:hover:bg-base-light dark:hover:text-dark",text:"uppercase text-base dark:text-base hover:bg-base-light border border-transparent dark:hover:border-base dark:hover:bg-transparent"},primary:{default:"bg-primary text-white hover:bg-main-color-700 dark:text-dark dark:hover:bg-primary-light",outlined:"ring-1 ring-primary ring-inset text-primary dark:bg-transparent hover:bg-primary-light hover:text-main-color-700 dark:hover:bg-primary-light dark:hover:text-dark",text:"uppercase text-primary dark:text-primary hover:bg-primary-light border border-transparent dark:hover:border-primary dark:hover:bg-transparent"},secondary:{default:"bg-secondary text-white hover:bg-secondary-dark dark:text-dark dark:hover:bg-secondary-light",outlined:"ring-1 ring-secondary ring-inset text-secondary dark:bg-transparent hover:bg-secondary-light hover:text-secondary-dark dark:hover:bg-secondary-light dark:hover:text-dark",text:"uppercase text-secondary dark:text-secondary hover:bg-secondary-light border border-transparent dark:hover:border-secondary dark:hover:bg-transparent"},accent:{default:"bg-accent text-white hover:bg-accent-dark dark:text-dark dark:hover:bg-accent-light",outlined:"ring-1 ring-accent ring-inset text-accent dark:bg-transparent hover:bg-accent-light hover:text-accent-dark dark:hover:bg-accent-light dark:hover:text-dark",text:"uppercase text-accent dark:text-accent hover:bg-accent-light border border-transparent dark:hover:border-accent dark:hover:bg-transparent"},info:{default:"bg-info text-white hover:bg-info-dark dark:text-dark dark:hover:bg-info-light",outlined:"ring-1 ring-info ring-inset text-info dark:bg-transparent hover:bg-info-light hover:text-info-dark dark:hover:bg-info-light dark:hover:text-dark",text:"uppercase text-info dark:text-info hover:bg-info-light border border-transparent dark:hover:border-info dark:hover:bg-transparent"},warning:{default:"bg-warning text-white hover:bg-warning-dark dark:text-dark dark:hover:bg-warning-light",outlined:"ring-1 ring-warning ring-inset text-warning dark:bg-transparent hover:bg-warning-light hover:text-warning-dark dark:hover:bg-warning-light dark:hover:text-dark",text:"uppercase text-warning dark:text-warning hover:bg-warning-light border border-transparent dark:hover:border-warning dark:hover:bg-transparent"},success:{default:"bg-success text-white hover:bg-success-dark dark:text-dark dark:hover:bg-success-light",outlined:"ring-1 ring-success ring-inset text-success dark:bg-transparent hover:bg-success-light hover:text-success-dark dark:hover:bg-success-light dark:hover:text-dark",text:"uppercase text-success dark:text-success hover:bg-success-light border border-transparent dark:hover:border-success dark:hover:bg-transparent"},error:{default:"bg-error text-white hover:bg-error-dark dark:text-dark dark:hover:bg-error-light",outlined:"ring-1 ring-error ring-inset text-error dark:bg-transparent hover:bg-error-light hover:text-error-dark dark:hover:bg-error-light dark:hover:text-dark",text:"uppercase text-error dark:text-error hover:bg-error-light border border-transparent dark:hover:border-error dark:hover:bg-transparent"}},LS={small:"px-2 py-1 text-sm",medium:"px-4 py-2",large:"px-8 py-4 text-lg"},PS=["disabled"],BS=["disabled","href"],Je=a.defineComponent({__name:"EpBtn",props:{type:{default:"base"},disabled:{type:Boolean},block:{type:Boolean},rounded:{type:Boolean,default:!1},size:{default:"medium"},appendIcon:{default:null},prependIcon:{default:null},outlined:{type:Boolean},text:{type:Boolean},extraClass:{default:null},href:{}},setup(t){const e=t,n=a.computed(()=>e.outlined?"outlined":"default"),r=a.computed(()=>{var u;return e.text?`${_d[e.type].text}`:`${(u=_d[e.type])==null?void 0:u[n.value]}`}),i=a.computed(()=>`
|
|
25
25
|
transition
|
|
26
26
|
font-medium
|
|
27
27
|
${r.value}
|
|
@@ -300,7 +300,7 @@ l0,-`+(n+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
|
300
300
|
|[ \r ]+
|
|
301
301
|
?)[ \r ]*`,Gi="[̀-ͯ]",t2=new RegExp(Gi+"+$"),n2="("+lp+"+)|"+(e2+"|")+"([!-\\[\\]-‧-豈-]"+(Gi+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(Gi+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+JC)+("|"+ZC+")");class cp{constructor(e,n){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=e,this.settings=n,this.tokenRegex=new RegExp(n2,"g"),this.catcodes={"%":14,"~":13}}setCatcode(e,n){this.catcodes[e]=n}lex(){var e=this.input,n=this.tokenRegex.lastIndex;if(n===e.length)return new ht("EOF",new dt(this,n,n));var r=this.tokenRegex.exec(e);if(r===null||r.index!==n)throw new Y("Unexpected character: '"+e[n]+"'",new ht(e[n],new dt(this,n,n+1)));var i=r[6]||r[3]||(r[2]?"\\ ":" ");if(this.catcodes[i]===14){var o=e.indexOf(`
|
|
302
302
|
`,this.tokenRegex.lastIndex);return o===-1?(this.tokenRegex.lastIndex=e.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=o+1,this.lex()}return new ht(i,new dt(this,n,this.tokenRegex.lastIndex))}}class r2{constructor(e,n){e===void 0&&(e={}),n===void 0&&(n={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=n,this.builtins=e,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new Y("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var e=this.undefStack.pop();for(var n in e)e.hasOwnProperty(n)&&(e[n]==null?delete this.current[n]:this.current[n]=e[n])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(e){return this.current.hasOwnProperty(e)||this.builtins.hasOwnProperty(e)}get(e){return this.current.hasOwnProperty(e)?this.current[e]:this.builtins[e]}set(e,n,r){if(r===void 0&&(r=!1),r){for(var i=0;i<this.undefStack.length;i++)delete this.undefStack[i][e];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][e]=n)}else{var o=this.undefStack[this.undefStack.length-1];o&&!o.hasOwnProperty(e)&&(o[e]=this.current[e])}n==null?delete this.current[e]:this.current[e]=n}}var a2=F0;C("\\noexpand",function(t){var e=t.popToken();return t.isExpandable(e.text)&&(e.noexpand=!0,e.treatAsRelax=!0),{tokens:[e],numArgs:0}}),C("\\expandafter",function(t){var e=t.popToken();return t.expandOnce(!0),{tokens:[e],numArgs:0}}),C("\\@firstoftwo",function(t){var e=t.consumeArgs(2);return{tokens:e[0],numArgs:0}}),C("\\@secondoftwo",function(t){var e=t.consumeArgs(2);return{tokens:e[1],numArgs:0}}),C("\\@ifnextchar",function(t){var e=t.consumeArgs(3);t.consumeSpaces();var n=t.future();return e[0].length===1&&e[0][0].text===n.text?{tokens:e[1],numArgs:0}:{tokens:e[2],numArgs:0}}),C("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),C("\\TextOrMath",function(t){var e=t.consumeArgs(2);return t.mode==="text"?{tokens:e[0],numArgs:0}:{tokens:e[1],numArgs:0}});var up={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};C("\\char",function(t){var e=t.popToken(),n,r="";if(e.text==="'")n=8,e=t.popToken();else if(e.text==='"')n=16,e=t.popToken();else if(e.text==="`")if(e=t.popToken(),e.text[0]==="\\")r=e.text.charCodeAt(1);else{if(e.text==="EOF")throw new Y("\\char` missing argument");r=e.text.charCodeAt(0)}else n=10;if(n){if(r=up[e.text],r==null||r>=n)throw new Y("Invalid base-"+n+" digit "+e.text);for(var i;(i=up[t.future().text])!=null&&i<n;)r*=n,r+=i,t.popToken()}return"\\@char{"+r+"}"});var Vi=(t,e,n)=>{var r=t.consumeArg().tokens;if(r.length!==1)throw new Y("\\newcommand's first argument must be a macro name");var i=r[0].text,o=t.isDefined(i);if(o&&!e)throw new Y("\\newcommand{"+i+"} attempting to redefine "+(i+"; use \\renewcommand"));if(!o&&!n)throw new Y("\\renewcommand{"+i+"} when command "+i+" does not yet exist; use \\newcommand");var s=0;if(r=t.consumeArg().tokens,r.length===1&&r[0].text==="["){for(var l="",c=t.expandNextToken();c.text!=="]"&&c.text!=="EOF";)l+=c.text,c=t.expandNextToken();if(!l.match(/^\s*[0-9]+\s*$/))throw new Y("Invalid number of arguments: "+l);s=parseInt(l),r=t.consumeArg().tokens}return t.macros.set(i,{tokens:r,numArgs:s}),""};C("\\newcommand",t=>Vi(t,!1,!0)),C("\\renewcommand",t=>Vi(t,!0,!1)),C("\\providecommand",t=>Vi(t,!0,!0)),C("\\message",t=>{var e=t.consumeArgs(1)[0];return console.log(e.reverse().map(n=>n.text).join("")),""}),C("\\errmessage",t=>{var e=t.consumeArgs(1)[0];return console.error(e.reverse().map(n=>n.text).join("")),""}),C("\\show",t=>{var e=t.popToken(),n=e.text;return console.log(e,t.macros.get(n),nn[n],Be.math[n],Be.text[n]),""}),C("\\bgroup","{"),C("\\egroup","}"),C("~","\\nobreakspace"),C("\\lq","`"),C("\\rq","'"),C("\\aa","\\r a"),C("\\AA","\\r A"),C("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}"),C("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}"),C("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}"),C("ℬ","\\mathscr{B}"),C("ℰ","\\mathscr{E}"),C("ℱ","\\mathscr{F}"),C("ℋ","\\mathscr{H}"),C("ℐ","\\mathscr{I}"),C("ℒ","\\mathscr{L}"),C("ℳ","\\mathscr{M}"),C("ℛ","\\mathscr{R}"),C("ℭ","\\mathfrak{C}"),C("ℌ","\\mathfrak{H}"),C("ℨ","\\mathfrak{Z}"),C("\\Bbbk","\\Bbb{k}"),C("·","\\cdotp"),C("\\llap","\\mathllap{\\textrm{#1}}"),C("\\rlap","\\mathrlap{\\textrm{#1}}"),C("\\clap","\\mathclap{\\textrm{#1}}"),C("\\mathstrut","\\vphantom{(}"),C("\\underbar","\\underline{\\text{#1}}"),C("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}'),C("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}"),C("\\ne","\\neq"),C("≠","\\neq"),C("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}"),C("∉","\\notin"),C("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}"),C("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}"),C("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}"),C("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}"),C("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}"),C("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}"),C("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}"),C("⟂","\\perp"),C("‼","\\mathclose{!\\mkern-0.8mu!}"),C("∌","\\notni"),C("⌜","\\ulcorner"),C("⌝","\\urcorner"),C("⌞","\\llcorner"),C("⌟","\\lrcorner"),C("©","\\copyright"),C("®","\\textregistered"),C("️","\\textregistered"),C("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}'),C("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}'),C("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}'),C("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}'),C("\\vdots","\\mathord{\\varvdots\\rule{0pt}{15pt}}"),C("⋮","\\vdots"),C("\\varGamma","\\mathit{\\Gamma}"),C("\\varDelta","\\mathit{\\Delta}"),C("\\varTheta","\\mathit{\\Theta}"),C("\\varLambda","\\mathit{\\Lambda}"),C("\\varXi","\\mathit{\\Xi}"),C("\\varPi","\\mathit{\\Pi}"),C("\\varSigma","\\mathit{\\Sigma}"),C("\\varUpsilon","\\mathit{\\Upsilon}"),C("\\varPhi","\\mathit{\\Phi}"),C("\\varPsi","\\mathit{\\Psi}"),C("\\varOmega","\\mathit{\\Omega}"),C("\\substack","\\begin{subarray}{c}#1\\end{subarray}"),C("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax"),C("\\boxed","\\fbox{$\\displaystyle{#1}$}"),C("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;"),C("\\implies","\\DOTSB\\;\\Longrightarrow\\;"),C("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");var dp={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"};C("\\dots",function(t){var e="\\dotso",n=t.expandAfterFuture().text;return n in dp?e=dp[n]:(n.slice(0,4)==="\\not"||n in Be.math&&le.contains(["bin","rel"],Be.math[n].group))&&(e="\\dotsb"),e});var qi={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};C("\\dotso",function(t){var e=t.future().text;return e in qi?"\\ldots\\,":"\\ldots"}),C("\\dotsc",function(t){var e=t.future().text;return e in qi&&e!==","?"\\ldots\\,":"\\ldots"}),C("\\cdots",function(t){var e=t.future().text;return e in qi?"\\@cdots\\,":"\\@cdots"}),C("\\dotsb","\\cdots"),C("\\dotsm","\\cdots"),C("\\dotsi","\\!\\cdots"),C("\\dotsx","\\ldots\\,"),C("\\DOTSI","\\relax"),C("\\DOTSB","\\relax"),C("\\DOTSX","\\relax"),C("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax"),C("\\,","\\tmspace+{3mu}{.1667em}"),C("\\thinspace","\\,"),C("\\>","\\mskip{4mu}"),C("\\:","\\tmspace+{4mu}{.2222em}"),C("\\medspace","\\:"),C("\\;","\\tmspace+{5mu}{.2777em}"),C("\\thickspace","\\;"),C("\\!","\\tmspace-{3mu}{.1667em}"),C("\\negthinspace","\\!"),C("\\negmedspace","\\tmspace-{4mu}{.2222em}"),C("\\negthickspace","\\tmspace-{5mu}{.277em}"),C("\\enspace","\\kern.5em "),C("\\enskip","\\hskip.5em\\relax"),C("\\quad","\\hskip1em\\relax"),C("\\qquad","\\hskip2em\\relax"),C("\\tag","\\@ifstar\\tag@literal\\tag@paren"),C("\\tag@paren","\\tag@literal{({#1})}"),C("\\tag@literal",t=>{if(t.macros.get("\\df@tag"))throw new Y("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"}),C("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}"),C("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)"),C("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}"),C("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"),C("\\newline","\\\\\\relax"),C("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var pp=$(Dt["Main-Regular"][84][1]-.7*Dt["Main-Regular"][65][1]);C("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+pp+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}"),C("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+pp+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}"),C("\\hspace","\\@ifstar\\@hspacer\\@hspace"),C("\\@hspace","\\hskip #1\\relax"),C("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax"),C("\\ordinarycolon",":"),C("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}"),C("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}'),C("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}'),C("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}'),C("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}'),C("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}'),C("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}'),C("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}'),C("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}'),C("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}'),C("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}'),C("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}'),C("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}'),C("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}'),C("∷","\\dblcolon"),C("∹","\\eqcolon"),C("≔","\\coloneqq"),C("≕","\\eqqcolon"),C("⩴","\\Coloneqq"),C("\\ratio","\\vcentcolon"),C("\\coloncolon","\\dblcolon"),C("\\colonequals","\\coloneqq"),C("\\coloncolonequals","\\Coloneqq"),C("\\equalscolon","\\eqqcolon"),C("\\equalscoloncolon","\\Eqqcolon"),C("\\colonminus","\\coloneq"),C("\\coloncolonminus","\\Coloneq"),C("\\minuscolon","\\eqcolon"),C("\\minuscoloncolon","\\Eqcolon"),C("\\coloncolonapprox","\\Colonapprox"),C("\\coloncolonsim","\\Colonsim"),C("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),C("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}"),C("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),C("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}"),C("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}"),C("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}"),C("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}"),C("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}"),C("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}"),C("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}"),C("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}"),C("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}"),C("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}"),C("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}"),C("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}"),C("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}"),C("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}"),C("\\nleqq","\\html@mathml{\\@nleqq}{≰}"),C("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}"),C("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}"),C("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}"),C("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}"),C("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}"),C("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}"),C("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}"),C("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}"),C("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}"),C("\\imath","\\html@mathml{\\@imath}{ı}"),C("\\jmath","\\html@mathml{\\@jmath}{ȷ}"),C("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}"),C("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}"),C("⟦","\\llbracket"),C("⟧","\\rrbracket"),C("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}"),C("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}"),C("⦃","\\lBrace"),C("⦄","\\rBrace"),C("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}"),C("⦵","\\minuso"),C("\\darr","\\downarrow"),C("\\dArr","\\Downarrow"),C("\\Darr","\\Downarrow"),C("\\lang","\\langle"),C("\\rang","\\rangle"),C("\\uarr","\\uparrow"),C("\\uArr","\\Uparrow"),C("\\Uarr","\\Uparrow"),C("\\N","\\mathbb{N}"),C("\\R","\\mathbb{R}"),C("\\Z","\\mathbb{Z}"),C("\\alef","\\aleph"),C("\\alefsym","\\aleph"),C("\\Alpha","\\mathrm{A}"),C("\\Beta","\\mathrm{B}"),C("\\bull","\\bullet"),C("\\Chi","\\mathrm{X}"),C("\\clubs","\\clubsuit"),C("\\cnums","\\mathbb{C}"),C("\\Complex","\\mathbb{C}"),C("\\Dagger","\\ddagger"),C("\\diamonds","\\diamondsuit"),C("\\empty","\\emptyset"),C("\\Epsilon","\\mathrm{E}"),C("\\Eta","\\mathrm{H}"),C("\\exist","\\exists"),C("\\harr","\\leftrightarrow"),C("\\hArr","\\Leftrightarrow"),C("\\Harr","\\Leftrightarrow"),C("\\hearts","\\heartsuit"),C("\\image","\\Im"),C("\\infin","\\infty"),C("\\Iota","\\mathrm{I}"),C("\\isin","\\in"),C("\\Kappa","\\mathrm{K}"),C("\\larr","\\leftarrow"),C("\\lArr","\\Leftarrow"),C("\\Larr","\\Leftarrow"),C("\\lrarr","\\leftrightarrow"),C("\\lrArr","\\Leftrightarrow"),C("\\Lrarr","\\Leftrightarrow"),C("\\Mu","\\mathrm{M}"),C("\\natnums","\\mathbb{N}"),C("\\Nu","\\mathrm{N}"),C("\\Omicron","\\mathrm{O}"),C("\\plusmn","\\pm"),C("\\rarr","\\rightarrow"),C("\\rArr","\\Rightarrow"),C("\\Rarr","\\Rightarrow"),C("\\real","\\Re"),C("\\reals","\\mathbb{R}"),C("\\Reals","\\mathbb{R}"),C("\\Rho","\\mathrm{P}"),C("\\sdot","\\cdot"),C("\\sect","\\S"),C("\\spades","\\spadesuit"),C("\\sub","\\subset"),C("\\sube","\\subseteq"),C("\\supe","\\supseteq"),C("\\Tau","\\mathrm{T}"),C("\\thetasym","\\vartheta"),C("\\weierp","\\wp"),C("\\Zeta","\\mathrm{Z}"),C("\\argmin","\\DOTSB\\operatorname*{arg\\,min}"),C("\\argmax","\\DOTSB\\operatorname*{arg\\,max}"),C("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits"),C("\\bra","\\mathinner{\\langle{#1}|}"),C("\\ket","\\mathinner{|{#1}\\rangle}"),C("\\braket","\\mathinner{\\langle{#1}\\rangle}"),C("\\Bra","\\left\\langle#1\\right|"),C("\\Ket","\\left|#1\\right\\rangle");var mp=t=>e=>{var n=e.consumeArg().tokens,r=e.consumeArg().tokens,i=e.consumeArg().tokens,o=e.consumeArg().tokens,s=e.macros.get("|"),l=e.macros.get("\\|");e.macros.beginGroup();var c=p=>m=>{t&&(m.macros.set("|",s),i.length&&m.macros.set("\\|",l));var g=p;if(!p&&i.length){var h=m.future();h.text==="|"&&(m.popToken(),g=!0)}return{tokens:g?i:r,numArgs:0}};e.macros.set("|",c(!1)),i.length&&e.macros.set("\\|",c(!0));var u=e.consumeArg().tokens,d=e.expandTokens([...o,...u,...n]);return e.macros.endGroup(),{tokens:d.reverse(),numArgs:0}};C("\\bra@ket",mp(!1)),C("\\bra@set",mp(!0)),C("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}"),C("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}"),C("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}"),C("\\angln","{\\angl n}"),C("\\blue","\\textcolor{##6495ed}{#1}"),C("\\orange","\\textcolor{##ffa500}{#1}"),C("\\pink","\\textcolor{##ff00af}{#1}"),C("\\red","\\textcolor{##df0030}{#1}"),C("\\green","\\textcolor{##28ae7b}{#1}"),C("\\gray","\\textcolor{gray}{#1}"),C("\\purple","\\textcolor{##9d38bd}{#1}"),C("\\blueA","\\textcolor{##ccfaff}{#1}"),C("\\blueB","\\textcolor{##80f6ff}{#1}"),C("\\blueC","\\textcolor{##63d9ea}{#1}"),C("\\blueD","\\textcolor{##11accd}{#1}"),C("\\blueE","\\textcolor{##0c7f99}{#1}"),C("\\tealA","\\textcolor{##94fff5}{#1}"),C("\\tealB","\\textcolor{##26edd5}{#1}"),C("\\tealC","\\textcolor{##01d1c1}{#1}"),C("\\tealD","\\textcolor{##01a995}{#1}"),C("\\tealE","\\textcolor{##208170}{#1}"),C("\\greenA","\\textcolor{##b6ffb0}{#1}"),C("\\greenB","\\textcolor{##8af281}{#1}"),C("\\greenC","\\textcolor{##74cf70}{#1}"),C("\\greenD","\\textcolor{##1fab54}{#1}"),C("\\greenE","\\textcolor{##0d923f}{#1}"),C("\\goldA","\\textcolor{##ffd0a9}{#1}"),C("\\goldB","\\textcolor{##ffbb71}{#1}"),C("\\goldC","\\textcolor{##ff9c39}{#1}"),C("\\goldD","\\textcolor{##e07d10}{#1}"),C("\\goldE","\\textcolor{##a75a05}{#1}"),C("\\redA","\\textcolor{##fca9a9}{#1}"),C("\\redB","\\textcolor{##ff8482}{#1}"),C("\\redC","\\textcolor{##f9685d}{#1}"),C("\\redD","\\textcolor{##e84d39}{#1}"),C("\\redE","\\textcolor{##bc2612}{#1}"),C("\\maroonA","\\textcolor{##ffbde0}{#1}"),C("\\maroonB","\\textcolor{##ff92c6}{#1}"),C("\\maroonC","\\textcolor{##ed5fa6}{#1}"),C("\\maroonD","\\textcolor{##ca337c}{#1}"),C("\\maroonE","\\textcolor{##9e034e}{#1}"),C("\\purpleA","\\textcolor{##ddd7ff}{#1}"),C("\\purpleB","\\textcolor{##c6b9fc}{#1}"),C("\\purpleC","\\textcolor{##aa87ff}{#1}"),C("\\purpleD","\\textcolor{##7854ab}{#1}"),C("\\purpleE","\\textcolor{##543b78}{#1}"),C("\\mintA","\\textcolor{##f5f9e8}{#1}"),C("\\mintB","\\textcolor{##edf2df}{#1}"),C("\\mintC","\\textcolor{##e0e5cc}{#1}"),C("\\grayA","\\textcolor{##f6f7f7}{#1}"),C("\\grayB","\\textcolor{##f0f1f2}{#1}"),C("\\grayC","\\textcolor{##e3e5e6}{#1}"),C("\\grayD","\\textcolor{##d6d8da}{#1}"),C("\\grayE","\\textcolor{##babec2}{#1}"),C("\\grayF","\\textcolor{##888d93}{#1}"),C("\\grayG","\\textcolor{##626569}{#1}"),C("\\grayH","\\textcolor{##3b3e40}{#1}"),C("\\grayI","\\textcolor{##21242c}{#1}"),C("\\kaBlue","\\textcolor{##314453}{#1}"),C("\\kaGreen","\\textcolor{##71B307}{#1}");var _p={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class i2{constructor(e,n,r){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=n,this.expansionCount=0,this.feed(e),this.macros=new r2(a2,n.macros),this.mode=r,this.stack=[]}feed(e){this.lexer=new cp(e,this.settings)}switchMode(e){this.mode=e}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(e){this.stack.push(e)}pushTokens(e){this.stack.push(...e)}scanArgument(e){var n,r,i;if(e){if(this.consumeSpaces(),this.future().text!=="[")return null;n=this.popToken(),{tokens:i,end:r}=this.consumeArg(["]"])}else({tokens:i,start:n,end:r}=this.consumeArg());return this.pushToken(new ht("EOF",r.loc)),this.pushTokens(i),n.range(r,"")}consumeSpaces(){for(;;){var e=this.future();if(e.text===" ")this.stack.pop();else break}}consumeArg(e){var n=[],r=e&&e.length>0;r||this.consumeSpaces();var i=this.future(),o,s=0,l=0;do{if(o=this.popToken(),n.push(o),o.text==="{")++s;else if(o.text==="}"){if(--s,s===-1)throw new Y("Extra }",o)}else if(o.text==="EOF")throw new Y("Unexpected end of input in a macro argument, expected '"+(e&&r?e[l]:"}")+"'",o);if(e&&r)if((s===0||s===1&&e[l]==="{")&&o.text===e[l]){if(++l,l===e.length){n.splice(-l,l);break}}else l=0}while(s!==0||r);return i.text==="{"&&n[n.length-1].text==="}"&&(n.pop(),n.shift()),n.reverse(),{tokens:n,start:i,end:o}}consumeArgs(e,n){if(n){if(n.length!==e+1)throw new Y("The length of delimiters doesn't match the number of args!");for(var r=n[0],i=0;i<r.length;i++){var o=this.popToken();if(r[i]!==o.text)throw new Y("Use of the macro doesn't match its definition",o)}}for(var s=[],l=0;l<e;l++)s.push(this.consumeArg(n&&n[l+1]).tokens);return s}countExpansion(e){if(this.expansionCount+=e,this.expansionCount>this.settings.maxExpand)throw new Y("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(e){var n=this.popToken(),r=n.text,i=n.noexpand?null:this._getExpansion(r);if(i==null||e&&i.unexpandable){if(e&&i==null&&r[0]==="\\"&&!this.isDefined(r))throw new Y("Undefined control sequence: "+r);return this.pushToken(n),!1}this.countExpansion(1);var o=i.tokens,s=this.consumeArgs(i.numArgs,i.delimiters);if(i.numArgs){o=o.slice();for(var l=o.length-1;l>=0;--l){var c=o[l];if(c.text==="#"){if(l===0)throw new Y("Incomplete placeholder at end of macro body",c);if(c=o[--l],c.text==="#")o.splice(l+1,1);else if(/^[1-9]$/.test(c.text))o.splice(l,2,...s[+c.text-1]);else throw new Y("Not a valid argument number",c)}}}return this.pushTokens(o),o.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){var e=this.stack.pop();return e.treatAsRelax&&(e.text="\\relax"),e}throw new Error}expandMacro(e){return this.macros.has(e)?this.expandTokens([new ht(e)]):void 0}expandTokens(e){var n=[],r=this.stack.length;for(this.pushTokens(e);this.stack.length>r;)if(this.expandOnce(!0)===!1){var i=this.stack.pop();i.treatAsRelax&&(i.noexpand=!1,i.treatAsRelax=!1),n.push(i)}return this.countExpansion(n.length),n}expandMacroAsText(e){var n=this.expandMacro(e);return n&&n.map(r=>r.text).join("")}_getExpansion(e){var n=this.macros.get(e);if(n==null)return n;if(e.length===1){var r=this.lexer.catcodes[e];if(r!=null&&r!==13)return}var i=typeof n=="function"?n(this):n;if(typeof i=="string"){var o=0;if(i.indexOf("#")!==-1)for(var s=i.replace(/##/g,"");s.indexOf("#"+(o+1))!==-1;)++o;for(var l=new cp(i,this.settings),c=[],u=l.lex();u.text!=="EOF";)c.push(u),u=l.lex();c.reverse();var d={tokens:c,numArgs:o};return d}return i}isDefined(e){return this.macros.has(e)||nn.hasOwnProperty(e)||Be.math.hasOwnProperty(e)||Be.text.hasOwnProperty(e)||_p.hasOwnProperty(e)}isExpandable(e){var n=this.macros.get(e);return n!=null?typeof n=="string"||typeof n=="function"||!n.unexpandable:nn.hasOwnProperty(e)&&!nn[e].primitive}}var gp=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,Yr=Object.freeze({"₊":"+","₋":"-","₌":"=","₍":"(","₎":")","₀":"0","₁":"1","₂":"2","₃":"3","₄":"4","₅":"5","₆":"6","₇":"7","₈":"8","₉":"9","ₐ":"a","ₑ":"e","ₕ":"h","ᵢ":"i","ⱼ":"j","ₖ":"k","ₗ":"l","ₘ":"m","ₙ":"n","ₒ":"o","ₚ":"p","ᵣ":"r","ₛ":"s","ₜ":"t","ᵤ":"u","ᵥ":"v","ₓ":"x","ᵦ":"β","ᵧ":"γ","ᵨ":"ρ","ᵩ":"ϕ","ᵪ":"χ","⁺":"+","⁻":"-","⁼":"=","⁽":"(","⁾":")","⁰":"0","¹":"1","²":"2","³":"3","⁴":"4","⁵":"5","⁶":"6","⁷":"7","⁸":"8","⁹":"9","ᴬ":"A","ᴮ":"B","ᴰ":"D","ᴱ":"E","ᴳ":"G","ᴴ":"H","ᴵ":"I","ᴶ":"J","ᴷ":"K","ᴸ":"L","ᴹ":"M","ᴺ":"N","ᴼ":"O","ᴾ":"P","ᴿ":"R","ᵀ":"T","ᵁ":"U","ⱽ":"V","ᵂ":"W","ᵃ":"a","ᵇ":"b","ᶜ":"c","ᵈ":"d","ᵉ":"e","ᶠ":"f","ᵍ":"g",ʰ:"h","ⁱ":"i",ʲ:"j","ᵏ":"k",ˡ:"l","ᵐ":"m",ⁿ:"n","ᵒ":"o","ᵖ":"p",ʳ:"r",ˢ:"s","ᵗ":"t","ᵘ":"u","ᵛ":"v",ʷ:"w",ˣ:"x",ʸ:"y","ᶻ":"z","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),zi={"́":{text:"\\'",math:"\\acute"},"̀":{text:"\\`",math:"\\grave"},"̈":{text:'\\"',math:"\\ddot"},"̃":{text:"\\~",math:"\\tilde"},"̄":{text:"\\=",math:"\\bar"},"̆":{text:"\\u",math:"\\breve"},"̌":{text:"\\v",math:"\\check"},"̂":{text:"\\^",math:"\\hat"},"̇":{text:"\\.",math:"\\dot"},"̊":{text:"\\r",math:"\\mathring"},"̋":{text:"\\H"},"̧":{text:"\\c"}},hp={á:"á",à:"à",ä:"ä",ǟ:"ǟ",ã:"ã",ā:"ā",ă:"ă",ắ:"ắ",ằ:"ằ",ẵ:"ẵ",ǎ:"ǎ",â:"â",ấ:"ấ",ầ:"ầ",ẫ:"ẫ",ȧ:"ȧ",ǡ:"ǡ",å:"å",ǻ:"ǻ",ḃ:"ḃ",ć:"ć",ḉ:"ḉ",č:"č",ĉ:"ĉ",ċ:"ċ",ç:"ç",ď:"ď",ḋ:"ḋ",ḑ:"ḑ",é:"é",è:"è",ë:"ë",ẽ:"ẽ",ē:"ē",ḗ:"ḗ",ḕ:"ḕ",ĕ:"ĕ",ḝ:"ḝ",ě:"ě",ê:"ê",ế:"ế",ề:"ề",ễ:"ễ",ė:"ė",ȩ:"ȩ",ḟ:"ḟ",ǵ:"ǵ",ḡ:"ḡ",ğ:"ğ",ǧ:"ǧ",ĝ:"ĝ",ġ:"ġ",ģ:"ģ",ḧ:"ḧ",ȟ:"ȟ",ĥ:"ĥ",ḣ:"ḣ",ḩ:"ḩ",í:"í",ì:"ì",ï:"ï",ḯ:"ḯ",ĩ:"ĩ",ī:"ī",ĭ:"ĭ",ǐ:"ǐ",î:"î",ǰ:"ǰ",ĵ:"ĵ",ḱ:"ḱ",ǩ:"ǩ",ķ:"ķ",ĺ:"ĺ",ľ:"ľ",ļ:"ļ",ḿ:"ḿ",ṁ:"ṁ",ń:"ń",ǹ:"ǹ",ñ:"ñ",ň:"ň",ṅ:"ṅ",ņ:"ņ",ó:"ó",ò:"ò",ö:"ö",ȫ:"ȫ",õ:"õ",ṍ:"ṍ",ṏ:"ṏ",ȭ:"ȭ",ō:"ō",ṓ:"ṓ",ṑ:"ṑ",ŏ:"ŏ",ǒ:"ǒ",ô:"ô",ố:"ố",ồ:"ồ",ỗ:"ỗ",ȯ:"ȯ",ȱ:"ȱ",ő:"ő",ṕ:"ṕ",ṗ:"ṗ",ŕ:"ŕ",ř:"ř",ṙ:"ṙ",ŗ:"ŗ",ś:"ś",ṥ:"ṥ",š:"š",ṧ:"ṧ",ŝ:"ŝ",ṡ:"ṡ",ş:"ş",ẗ:"ẗ",ť:"ť",ṫ:"ṫ",ţ:"ţ",ú:"ú",ù:"ù",ü:"ü",ǘ:"ǘ",ǜ:"ǜ",ǖ:"ǖ",ǚ:"ǚ",ũ:"ũ",ṹ:"ṹ",ū:"ū",ṻ:"ṻ",ŭ:"ŭ",ǔ:"ǔ",û:"û",ů:"ů",ű:"ű",ṽ:"ṽ",ẃ:"ẃ",ẁ:"ẁ",ẅ:"ẅ",ŵ:"ŵ",ẇ:"ẇ",ẘ:"ẘ",ẍ:"ẍ",ẋ:"ẋ",ý:"ý",ỳ:"ỳ",ÿ:"ÿ",ỹ:"ỹ",ȳ:"ȳ",ŷ:"ŷ",ẏ:"ẏ",ẙ:"ẙ",ź:"ź",ž:"ž",ẑ:"ẑ",ż:"ż",Á:"Á",À:"À",Ä:"Ä",Ǟ:"Ǟ",Ã:"Ã",Ā:"Ā",Ă:"Ă",Ắ:"Ắ",Ằ:"Ằ",Ẵ:"Ẵ",Ǎ:"Ǎ",Â:"Â",Ấ:"Ấ",Ầ:"Ầ",Ẫ:"Ẫ",Ȧ:"Ȧ",Ǡ:"Ǡ",Å:"Å",Ǻ:"Ǻ",Ḃ:"Ḃ",Ć:"Ć",Ḉ:"Ḉ",Č:"Č",Ĉ:"Ĉ",Ċ:"Ċ",Ç:"Ç",Ď:"Ď",Ḋ:"Ḋ",Ḑ:"Ḑ",É:"É",È:"È",Ë:"Ë",Ẽ:"Ẽ",Ē:"Ē",Ḗ:"Ḗ",Ḕ:"Ḕ",Ĕ:"Ĕ",Ḝ:"Ḝ",Ě:"Ě",Ê:"Ê",Ế:"Ế",Ề:"Ề",Ễ:"Ễ",Ė:"Ė",Ȩ:"Ȩ",Ḟ:"Ḟ",Ǵ:"Ǵ",Ḡ:"Ḡ",Ğ:"Ğ",Ǧ:"Ǧ",Ĝ:"Ĝ",Ġ:"Ġ",Ģ:"Ģ",Ḧ:"Ḧ",Ȟ:"Ȟ",Ĥ:"Ĥ",Ḣ:"Ḣ",Ḩ:"Ḩ",Í:"Í",Ì:"Ì",Ï:"Ï",Ḯ:"Ḯ",Ĩ:"Ĩ",Ī:"Ī",Ĭ:"Ĭ",Ǐ:"Ǐ",Î:"Î",İ:"İ",Ĵ:"Ĵ",Ḱ:"Ḱ",Ǩ:"Ǩ",Ķ:"Ķ",Ĺ:"Ĺ",Ľ:"Ľ",Ļ:"Ļ",Ḿ:"Ḿ",Ṁ:"Ṁ",Ń:"Ń",Ǹ:"Ǹ",Ñ:"Ñ",Ň:"Ň",Ṅ:"Ṅ",Ņ:"Ņ",Ó:"Ó",Ò:"Ò",Ö:"Ö",Ȫ:"Ȫ",Õ:"Õ",Ṍ:"Ṍ",Ṏ:"Ṏ",Ȭ:"Ȭ",Ō:"Ō",Ṓ:"Ṓ",Ṑ:"Ṑ",Ŏ:"Ŏ",Ǒ:"Ǒ",Ô:"Ô",Ố:"Ố",Ồ:"Ồ",Ỗ:"Ỗ",Ȯ:"Ȯ",Ȱ:"Ȱ",Ő:"Ő",Ṕ:"Ṕ",Ṗ:"Ṗ",Ŕ:"Ŕ",Ř:"Ř",Ṙ:"Ṙ",Ŗ:"Ŗ",Ś:"Ś",Ṥ:"Ṥ",Š:"Š",Ṧ:"Ṧ",Ŝ:"Ŝ",Ṡ:"Ṡ",Ş:"Ş",Ť:"Ť",Ṫ:"Ṫ",Ţ:"Ţ",Ú:"Ú",Ù:"Ù",Ü:"Ü",Ǘ:"Ǘ",Ǜ:"Ǜ",Ǖ:"Ǖ",Ǚ:"Ǚ",Ũ:"Ũ",Ṹ:"Ṹ",Ū:"Ū",Ṻ:"Ṻ",Ŭ:"Ŭ",Ǔ:"Ǔ",Û:"Û",Ů:"Ů",Ű:"Ű",Ṽ:"Ṽ",Ẃ:"Ẃ",Ẁ:"Ẁ",Ẅ:"Ẅ",Ŵ:"Ŵ",Ẇ:"Ẇ",Ẍ:"Ẍ",Ẋ:"Ẋ",Ý:"Ý",Ỳ:"Ỳ",Ÿ:"Ÿ",Ỹ:"Ỹ",Ȳ:"Ȳ",Ŷ:"Ŷ",Ẏ:"Ẏ",Ź:"Ź",Ž:"Ž",Ẑ:"Ẑ",Ż:"Ż",ά:"ά",ὰ:"ὰ",ᾱ:"ᾱ",ᾰ:"ᾰ",έ:"έ",ὲ:"ὲ",ή:"ή",ὴ:"ὴ",ί:"ί",ὶ:"ὶ",ϊ:"ϊ",ΐ:"ΐ",ῒ:"ῒ",ῑ:"ῑ",ῐ:"ῐ",ό:"ό",ὸ:"ὸ",ύ:"ύ",ὺ:"ὺ",ϋ:"ϋ",ΰ:"ΰ",ῢ:"ῢ",ῡ:"ῡ",ῠ:"ῠ",ώ:"ώ",ὼ:"ὼ",Ύ:"Ύ",Ὺ:"Ὺ",Ϋ:"Ϋ",Ῡ:"Ῡ",Ῠ:"Ῠ",Ώ:"Ώ",Ὼ:"Ὼ"};class Hr{constructor(e,n){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new i2(e,n,this.mode),this.settings=n,this.leftrightDepth=0}expect(e,n){if(n===void 0&&(n=!0),this.fetch().text!==e)throw new Y("Expected '"+e+"', got '"+this.fetch().text+"'",this.fetch());n&&this.consume()}consume(){this.nextToken=null}fetch(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(e){this.mode=e,this.gullet.switchMode(e)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var e=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),e}finally{this.gullet.endGroups()}}subparse(e){var n=this.nextToken;this.consume(),this.gullet.pushToken(new ht("}")),this.gullet.pushTokens(e);var r=this.parseExpression(!1);return this.expect("}"),this.nextToken=n,r}parseExpression(e,n){for(var r=[];;){this.mode==="math"&&this.consumeSpaces();var i=this.fetch();if(Hr.endOfExpression.indexOf(i.text)!==-1||n&&i.text===n||e&&nn[i.text]&&nn[i.text].infix)break;var o=this.parseAtom(n);if(o){if(o.type==="internal")continue}else break;r.push(o)}return this.mode==="text"&&this.formLigatures(r),this.handleInfixNodes(r)}handleInfixNodes(e){for(var n=-1,r,i=0;i<e.length;i++)if(e[i].type==="infix"){if(n!==-1)throw new Y("only one infix operator per group",e[i].token);n=i,r=e[i].replaceWith}if(n!==-1&&r){var o,s,l=e.slice(0,n),c=e.slice(n+1);l.length===1&&l[0].type==="ordgroup"?o=l[0]:o={type:"ordgroup",mode:this.mode,body:l},c.length===1&&c[0].type==="ordgroup"?s=c[0]:s={type:"ordgroup",mode:this.mode,body:c};var u;return r==="\\\\abovefrac"?u=this.callFunction(r,[o,e[n],s],[]):u=this.callFunction(r,[o,s],[]),[u]}else return e}handleSupSubscript(e){var n=this.fetch(),r=n.text;this.consume(),this.consumeSpaces();var i=this.parseGroup(e);if(!i)throw new Y("Expected group after '"+r+"'",n);return i}formatUnsupportedCmd(e){for(var n=[],r=0;r<e.length;r++)n.push({type:"textord",mode:"text",text:e[r]});var i={type:"text",mode:this.mode,body:n},o={type:"color",mode:this.mode,color:this.settings.errorColor,body:[i]};return o}parseAtom(e){var n=this.parseGroup("atom",e);if(this.mode==="text")return n;for(var r,i;;){this.consumeSpaces();var o=this.fetch();if(o.text==="\\limits"||o.text==="\\nolimits"){if(n&&n.type==="op"){var s=o.text==="\\limits";n.limits=s,n.alwaysHandleSupSub=!0}else if(n&&n.type==="operatorname")n.alwaysHandleSupSub&&(n.limits=o.text==="\\limits");else throw new Y("Limit controls must follow a math operator",o);this.consume()}else if(o.text==="^"){if(r)throw new Y("Double superscript",o);r=this.handleSupSubscript("superscript")}else if(o.text==="_"){if(i)throw new Y("Double subscript",o);i=this.handleSupSubscript("subscript")}else if(o.text==="'"){if(r)throw new Y("Double superscript",o);var l={type:"textord",mode:this.mode,text:"\\prime"},c=[l];for(this.consume();this.fetch().text==="'";)c.push(l),this.consume();this.fetch().text==="^"&&c.push(this.handleSupSubscript("superscript")),r={type:"ordgroup",mode:this.mode,body:c}}else if(Yr[o.text]){var u=gp.test(o.text),d=[];for(d.push(new ht(Yr[o.text])),this.consume();;){var p=this.fetch().text;if(!Yr[p]||gp.test(p)!==u)break;d.unshift(new ht(Yr[p])),this.consume()}var m=this.subparse(d);u?i={type:"ordgroup",mode:"math",body:m}:r={type:"ordgroup",mode:"math",body:m}}else break}return r||i?{type:"supsub",mode:this.mode,base:n,sup:r,sub:i}:n}parseFunction(e,n){var r=this.fetch(),i=r.text,o=nn[i];if(!o)return null;if(this.consume(),n&&n!=="atom"&&!o.allowedInArgument)throw new Y("Got function '"+i+"' with no arguments"+(n?" as "+n:""),r);if(this.mode==="text"&&!o.allowedInText)throw new Y("Can't use function '"+i+"' in text mode",r);if(this.mode==="math"&&o.allowedInMath===!1)throw new Y("Can't use function '"+i+"' in math mode",r);var{args:s,optArgs:l}=this.parseArguments(i,o);return this.callFunction(i,s,l,r,e)}callFunction(e,n,r,i,o){var s={funcName:e,parser:this,token:i,breakOnTokenText:o},l=nn[e];if(l&&l.handler)return l.handler(s,n,r);throw new Y("No function handler for "+e)}parseArguments(e,n){var r=n.numArgs+n.numOptionalArgs;if(r===0)return{args:[],optArgs:[]};for(var i=[],o=[],s=0;s<r;s++){var l=n.argTypes&&n.argTypes[s],c=s<n.numOptionalArgs;(n.primitive&&l==null||n.type==="sqrt"&&s===1&&o[0]==null)&&(l="primitive");var u=this.parseGroupOfType("argument to '"+e+"'",l,c);if(c)o.push(u);else if(u!=null)i.push(u);else throw new Y("Null argument, please report this as a bug")}return{args:i,optArgs:o}}parseGroupOfType(e,n,r){switch(n){case"color":return this.parseColorGroup(r);case"size":return this.parseSizeGroup(r);case"url":return this.parseUrlGroup(r);case"math":case"text":return this.parseArgumentGroup(r,n);case"hbox":{var i=this.parseArgumentGroup(r,"text");return i!=null?{type:"styling",mode:i.mode,body:[i],style:"text"}:null}case"raw":{var o=this.parseStringGroup("raw",r);return o!=null?{type:"raw",mode:"text",string:o.text}:null}case"primitive":{if(r)throw new Y("A primitive argument cannot be optional");var s=this.parseGroup(e);if(s==null)throw new Y("Expected group as "+e,this.fetch());return s}case"original":case null:case void 0:return this.parseArgumentGroup(r);default:throw new Y("Unknown group type as "+e,this.fetch())}}consumeSpaces(){for(;this.fetch().text===" ";)this.consume()}parseStringGroup(e,n){var r=this.gullet.scanArgument(n);if(r==null)return null;for(var i="",o;(o=this.fetch()).text!=="EOF";)i+=o.text,this.consume();return this.consume(),r.text=i,r}parseRegexGroup(e,n){for(var r=this.fetch(),i=r,o="",s;(s=this.fetch()).text!=="EOF"&&e.test(o+s.text);)i=s,o+=i.text,this.consume();if(o==="")throw new Y("Invalid "+n+": '"+r.text+"'",r);return r.range(i,o)}parseColorGroup(e){var n=this.parseStringGroup("color",e);if(n==null)return null;var r=/^(#[a-f0-9]{3}|#?[a-f0-9]{6}|[a-z]+)$/i.exec(n.text);if(!r)throw new Y("Invalid color: '"+n.text+"'",n);var i=r[0];return/^[0-9a-f]{6}$/i.test(i)&&(i="#"+i),{type:"color-token",mode:this.mode,color:i}}parseSizeGroup(e){var n,r=!1;if(this.gullet.consumeSpaces(),!e&&this.gullet.future().text!=="{"?n=this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size"):n=this.parseStringGroup("size",e),!n)return null;!e&&n.text.length===0&&(n.text="0pt",r=!0);var i=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(n.text);if(!i)throw new Y("Invalid size: '"+n.text+"'",n);var o={number:+(i[1]+i[2]),unit:i[3]};if(!Qd(o))throw new Y("Invalid unit: '"+o.unit+"'",n);return{type:"size",mode:this.mode,value:o,isBlank:r}}parseUrlGroup(e){this.gullet.lexer.setCatcode("%",13),this.gullet.lexer.setCatcode("~",12);var n=this.parseStringGroup("url",e);if(this.gullet.lexer.setCatcode("%",14),this.gullet.lexer.setCatcode("~",13),n==null)return null;var r=n.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:r}}parseArgumentGroup(e,n){var r=this.gullet.scanArgument(e);if(r==null)return null;var i=this.mode;n&&this.switchMode(n),this.gullet.beginGroup();var o=this.parseExpression(!1,"EOF");this.expect("EOF"),this.gullet.endGroup();var s={type:"ordgroup",mode:this.mode,loc:r.loc,body:o};return n&&this.switchMode(i),s}parseGroup(e,n){var r=this.fetch(),i=r.text,o;if(i==="{"||i==="\\begingroup"){this.consume();var s=i==="{"?"}":"\\endgroup";this.gullet.beginGroup();var l=this.parseExpression(!1,s),c=this.fetch();this.expect(s),this.gullet.endGroup(),o={type:"ordgroup",mode:this.mode,loc:dt.range(r,c),body:l,semisimple:i==="\\begingroup"||void 0}}else if(o=this.parseFunction(n,e)||this.parseSymbol(),o==null&&i[0]==="\\"&&!_p.hasOwnProperty(i)){if(this.settings.throwOnError)throw new Y("Undefined control sequence: "+i,r);o=this.formatUnsupportedCmd(i),this.consume()}return o}formLigatures(e){for(var n=e.length-1,r=0;r<n;++r){var i=e[r],o=i.text;o==="-"&&e[r+1].text==="-"&&(r+1<n&&e[r+2].text==="-"?(e.splice(r,3,{type:"textord",mode:"text",loc:dt.range(i,e[r+2]),text:"---"}),n-=2):(e.splice(r,2,{type:"textord",mode:"text",loc:dt.range(i,e[r+1]),text:"--"}),n-=1)),(o==="'"||o==="`")&&e[r+1].text===o&&(e.splice(r,2,{type:"textord",mode:"text",loc:dt.range(i,e[r+1]),text:o+o}),n-=1)}}parseSymbol(){var e=this.fetch(),n=e.text;if(/^\\verb[^a-zA-Z]/.test(n)){this.consume();var r=n.slice(5),i=r.charAt(0)==="*";if(i&&(r=r.slice(1)),r.length<2||r.charAt(0)!==r.slice(-1))throw new Y(`\\verb assertion failed --
|
|
303
|
-
please report what input caused this bug`);return r=r.slice(1,-1),{type:"verb",mode:"text",body:r,star:i}}hp.hasOwnProperty(n[0])&&!Be[this.mode][n[0]]&&(this.settings.strict&&this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+n[0]+'" used in math mode',e),n=hp[n[0]]+n.slice(1));var o=t2.exec(n);o&&(n=n.substring(0,o.index),n==="i"?n="ı":n==="j"&&(n="ȷ"));var s;if(Be[this.mode][n]){this.settings.strict&&this.mode==="math"&&gi.indexOf(n)>=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+n[0]+'" used in math mode',e);var l=Be[this.mode][n].group,c=dt.range(e),u;if($T.hasOwnProperty(l)){var d=l;u={type:"atom",mode:this.mode,family:d,loc:c,text:n}}else u={type:l,mode:this.mode,loc:c,text:n};s=u}else if(n.charCodeAt(0)>=128)this.settings.strict&&(Yd(n.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+n[0]+'" used in math mode',e):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+n[0]+'"'+(" ("+n.charCodeAt(0)+")"),e)),s={type:"textord",mode:"text",loc:dt.range(e),text:n};else return null;if(this.consume(),o)for(var p=0;p<o[0].length;p++){var m=o[0][p];if(!zi[m])throw new Y("Unknown accent ' "+m+"'",e);var g=zi[m][this.mode]||zi[m].text;if(!g)throw new Y("Accent "+m+" unsupported in "+this.mode+" mode",e);s={type:"accent",mode:this.mode,loc:dt.range(e),label:g,isStretchy:!1,isShifty:!0,base:s}}return s}}Hr.endOfExpression=["}","\\endgroup","\\end","\\right","&"];var Yi=function(e,n){if(!(typeof e=="string"||e instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var r=new Hr(e,n);delete r.gullet.macros.current["\\df@tag"];var i=r.parse();if(delete r.gullet.macros.current["\\current@color"],delete r.gullet.macros.current["\\color"],r.gullet.macros.get("\\df@tag")){if(!n.displayMode)throw new Y("\\tag works only in display equations");i=[{type:"tag",mode:"text",body:i,tag:r.subparse([new ht("\\df@tag")])}]}return i},bp=function(e,n,r){n.textContent="";var i=Hi(e,r).toNode();n.appendChild(i)};typeof document<"u"&&document.compatMode!=="CSS1Compat"&&(typeof console<"u"&&console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."),bp=function(){throw new Y("KaTeX doesn't work in quirks mode.")});var o2=function(e,n){var r=Hi(e,n).toMarkup();return r},s2=function(e,n){var r=new ai(n);return Yi(e,r)},fp=function(e,n,r){if(r.throwOnError||!(e instanceof Y))throw e;var i=M.makeSpan(["katex-error"],[new ft(n)]);return i.setAttribute("title",e.toString()),i.setAttribute("style","color:"+r.errorColor),i},Hi=function(e,n){var r=new ai(n);try{var i=Yi(e,r);return hC(i,e,r)}catch(o){return fp(o,e,r)}},l2=function(e,n){var r=new ai(n);try{var i=Yi(e,r);return bC(i,e,r)}catch(o){return fp(o,e,r)}},c2={version:"0.16.10",render:bp,renderToString:o2,ParseError:Y,SETTINGS_SCHEMA:Cr,__parse:s2,__renderToDomTree:Hi,__renderToHTMLTree:l2,__setFontMetrics:UT,__defineSymbol:_,__defineFunction:Q,__defineMacro:C,__domTree:{Span:Qn,Anchor:ui,SymbolNode:ft,SvgNode:Ft,PathNode:Zt,LineNode:di}};const u2=["innerHTML"],Ep=Wt(a.defineComponent({__name:"EpKatex",props:{content:{},center:{type:Boolean,default:!1},title:{},intentions:{},hideIcon:{type:Boolean},type:{},mandateLevel:{}},setup(t){const e=t,n=a.ref();a.onMounted(()=>{n.value&&c2.render(String.raw`${e.content}`,n.value,{throwOnError:!1,output:"html"})});const r=a.computed(()=>e.intentions?vt(e.intentions)?e.intentions:Tt(e.intentions):null),{center:i}=a.toRefs(e);return(o,s)=>(a.openBlock(),a.createBlock(Xe,{title:o.title,type:o.type,hideIcon:o.hideIcon,icon:a.unref(r1),mandateLevel:o.mandateLevel},a.createSlots({content:a.withCtx(()=>[a.createElementVNode("div",{class:a.normalizeClass(`p-4 ${a.unref(i)?"flex justify-center":""}`)},[a.createElementVNode("div",{ref_key:"renderKatex",ref:n},null,512)],2)]),_:2},[r.value?{name:"intentions",fn:a.withCtx(()=>[a.createElementVNode("div",{innerHTML:r.value},null,8,u2)]),key:"0"}:void 0]),1032,["title","type","hideIcon","icon","mandateLevel"]))}}),[["__scopeId","data-v-f9e5d352"]]),$i=Object.freeze(Object.defineProperty({__proto__:null,default:Ep},Symbol.toStringTag,{value:"Module"})),d2=["innerHTML"],p2={class:"flex justify-center"},m2={class:"w-4/5"},_2={class:"font-medium tracking-wider"},Wi=a.defineComponent({__name:"EpLink",props:{url:{},title:{},intentions:{default:""},mandateLevel:{},labelIntentions:{default:"Intentions d'écoute"},type:{default:"primary"},hideIcon:{type:Boolean,default:!1},labelCard:{},icon:{}},setup(t){const e=t,n=a.computed(()=>e.icon?e.icon:c1),r=a.computed(()=>`absolute ${gt("bg",e.type+"dark")} bottom-0 w-0 left-1/2 h-full -translate-x-1/2 transition-all ease-in-out duration-300 group-hover:w-[105%] -z-[1] group-focus:w-[105%]`),{url:i,title:o,intentions:s,mandateLevel:l,hideIcon:c}=a.toRefs(e);return(u,d)=>(a.openBlock(),a.createBlock(Xe,{title:u.labelCard,icon:n.value,flat:"",type:u.type,hideIcon:a.unref(c),mandateLevel:a.unref(l)},a.createSlots({content:a.withCtx(()=>[a.createElementVNode("div",p2,[a.createElementVNode("div",m2,[a.createVNode(Je,{block:"",rounded:"",type:u.type,prependIcon:n.value,href:a.unref(i),extraClass:"group font-medium tracking-wide relative inline-flex justify-center overflow-hidden z-10 transition-all duration-300 ease-in-out "},{default:a.withCtx(()=>[a.createElementVNode("div",null,[a.createElementVNode("span",_2,a.toDisplayString(a.unref(o)),1),a.createElementVNode("span",{class:a.normalizeClass(r.value)},null,2)])]),_:1},8,["type","prependIcon","href"])])])]),_:2},[a.unref(Qe)(a.unref(s))?{name:"intentions",fn:a.withCtx(()=>[a.createElementVNode("div",{innerHTML:a.unref(Qe)(a.unref(s))},null,8,d2)]),key:"0"}:void 0]),1032,["title","icon","type","hideIcon","mandateLevel"]))}}),Ki=Object.freeze(Object.defineProperty({__proto__:null,default:Wi},Symbol.toStringTag,{value:"Module"})),g2={key:0},h2={key:1},b2={key:2},Sp=a.defineComponent({__name:"EpLinkVersion",props:{type:{},link:{},big:{type:Boolean,default:!1},customHeight:{},labels:{default:()=>({noData:"no data"})}},setup(t){const e=t,{type:n,link:r,big:i,customHeight:o}=a.toRefs(e);return(s,l)=>a.unref(n)==="button"?(a.openBlock(),a.createElementBlock("div",g2,[a.createVNode(Wi,{title:a.unref(r).title,url:a.unref(r).url},null,8,["title","url"])])):a.unref(n)==="iframe"?(a.openBlock(),a.createElementBlock("div",h2,[a.createVNode(ni,{title:a.unref(r).title,src:a.unref(r).url,big:a.unref(i),"custom-height":a.unref(o)},null,8,["title","src","big","custom-height"])])):(a.openBlock(),a.createElementBlock("div",b2,a.toDisplayString(s.labels.noData),1))}}),Qi=Object.freeze(Object.defineProperty({__proto__:null,default:Sp},Symbol.toStringTag,{value:"Module"})),f2=["innerHTML"],E2={class:"flex flex-col items-center border rounded-lg bg-base-light md:flex-row mt-2 dark:bg-dark"},S2=["src","alt"],v2={key:1,class:"h-96 w-full rounded-t-lg md:h-auto md:w-56 md:rounded-none md:rounded-l-lg flex justify-center items-center text-base-dark dark:text-white"},y2={class:"w-full"},T2={class:"w-full px-5"},C2={class:"flex justify-between items-center rounded-t-md p-2"},R2="https://live.staticflickr.com/4868/45940268562_c5f7fdd06b_q.jpg",vp=a.defineComponent({__name:"EpSoftware",props:{url:{},cover:{default:""},title:{},mandateLevel:{},intentions:{default:""},version_link:{},hideCover:{type:Boolean,default:!1},version:{},type:{default:"base"},hideIcon:{type:Boolean,default:!1},labelCard:{},labels:{default:()=>({acceder:"Accéder au logiciel"})}},setup(t){const e=t,n=a.computed(()=>!(e.cover===R2||e.cover.trim().length===0)),{title:r,intentions:i,cover:o,hideCover:s,version:l,labelCard:c,hideIcon:u,mandateLevel:d,url:p}=a.toRefs(e);return(m,g)=>(a.openBlock(),a.createBlock(Xe,{title:a.unref(c),icon:a.unref(Ed),flat:"",type:m.type,hideIcon:a.unref(u),mandateLevel:a.unref(d)},a.createSlots({content:a.withCtx(()=>[a.createElementVNode("div",E2,[a.unref(s)?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[n.value?(a.openBlock(),a.createElementBlock("img",{key:0,class:"object-cover h-24 w-full rounded-t-lg object-cover md:h-auto md:w-24 md:rounded-none md:rounded-l-lg",src:a.unref(o),alt:`image de la lecture ${a.unref(r)}`},null,8,S2)):(a.openBlock(),a.createElementBlock("div",v2,[a.createVNode(ke,{"icon-path":a.unref(Ed),size:"95"},null,8,["icon-path"])]))],64)),a.createElementVNode("div",y2,[a.createElementVNode("div",T2,[a.createElementVNode("div",C2,[a.createElementVNode("h4",null,[a.createTextVNode(a.toDisplayString(a.unref(r))+" ",1),a.unref(l)?(a.openBlock(),a.createBlock(cn,{key:0,size:"small",type:"base"},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(a.unref(l)),1)]),_:1})):a.createCommentVNode("",!0)]),a.unref(p)?(a.openBlock(),a.createBlock(Je,{key:0,rounded:"",type:"base",prependIcon:a.unref(vd),href:a.unref(p)},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(m.labels.acceder),1)]),_:1},8,["prependIcon","href"])):a.createCommentVNode("",!0)])])])])]),actions:a.withCtx(()=>[]),_:2},[a.unref(Qe)(a.unref(i))?{name:"intentions",fn:a.withCtx(()=>[a.createElementVNode("div",{innerHTML:a.unref(Qe)(a.unref(i))},null,8,f2)]),key:"0"}:void 0]),1032,["title","icon","type","hideIcon","mandateLevel"]))}}),Xi=Object.freeze(Object.defineProperty({__proto__:null,default:vp},Symbol.toStringTag,{value:"Module"})),N2=["innerHTML"],A2={class:"flex"},O2=["innerHTML"],yp=a.defineComponent({__name:"EpSvg",props:{desc:{},title:{},content:{},mandateLevel:{},type:{},cols:{default:"6"}},setup(t){const e=t,n=["basis-6/12","basis-1/12","basis-2/12","basis-3/12","basis-4/12","basis-5/12","basis-6/12","basis-7/12","basis-8/12","basis-9/12","basis-10/12","basis-11/12","basis-full"],r=a.computed(()=>n[+e.cols]),i=a.computed(()=>e.desc?Qe(e.desc):null),{title:o,content:s}=a.toRefs(e);return(l,c)=>(a.openBlock(),a.createBlock(Xe,{title:a.unref(o),icon:a.unref(fd),flat:"",type:l.type,mandateLevel:l.mandateLevel},a.createSlots({content:a.withCtx(()=>[a.createElementVNode("div",A2,[a.unref(s)?(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(`mx-auto ${r.value}`)},[a.createElementVNode("div",{innerHTML:a.unref(s),class:"w-full"},null,8,O2)],2)):a.createCommentVNode("",!0)])]),_:2},[i.value?{name:"intentions",fn:a.withCtx(()=>[a.createElementVNode("div",{innerHTML:i.value},null,8,N2)]),key:"0"}:void 0]),1032,["title","icon","type","mandateLevel"]))}}),Zi=Object.freeze(Object.defineProperty({__proto__:null,default:yp},Symbol.toStringTag,{value:"Module"})),k2=a.createElementVNode("span",{class:"absolute top-0 left-0 flex w-full h-0 mb-0 transition-all duration-300 ease-out transform translate-y-0 bg-primary dark:bg-primary-ligth group-hover:h-full opacity-90"},null,-1),x2={class:"relative group-hover:text-primary-light"},I2={class:"mb-2 flex items-center justify-between"},D2={class:"font-bold text-2xl"},w2={class:"text-sm font-light text-error italic"},M2={key:0,class:"text-xs"},L2={class:"mb-4 flex items-center justify-between"},P2={class:"text-primary font-bold"},B2={key:0,class:"text-xs"},F2={class:"font-bold"},j2={key:2,class:"text-sm mt-2"},U2={class:"mr-2 font-bold"},G2={key:3,class:"text-sm mt-2"},V2={class:"mr-2 font-bold"},q2={class:"flex justify-end"},Tp=a.defineComponent({__name:"EpTerm",props:{term:{default:"test"},word:{},definition:{},variations:{default:""},domain:{},graminfo:{},relations:{default:""},src:{},labels:{default:()=>({definition:"Définition",domaine:"Domaine",variations:"Variations",relations:"Relations",close:"Fermer"})}},setup(t){const e=t,n=a.ref(!1),r=a.computed(()=>e.term!==e.word?`(${e.word})`:null),i=a.computed(()=>{var E;let h=null,f=(E=e.variations)==null?void 0:E.trim();return(f==null?void 0:f.length)>0&&(h=f.split(",")),h}),o=a.computed(()=>{var E;let h=null,f=(E=e.relations)==null?void 0:E.trim();return(f==null?void 0:f.length)>0&&(h=f.split(",")),h}),s=hu.useRouter(),l=h=>{s.hasRoute("glossary")&&s.push({path:"/glossary",query:{word:h}})},c=a.computed(()=>e.domain==="null"?null:e.domain),u=()=>{n.value=!n.value},{term:d,graminfo:p,labels:m,src:g}=a.toRefs(e);return(h,f)=>(a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createElementVNode("span",{onClick:u,class:"cursor-pointer border-primary dark:border-primary-light border dark:text-primary-light text-primary px-2 py-1 rounded group overflow-hidden relative"},[k2,a.createElementVNode("span",x2,[a.createTextVNode(a.toDisplayString(h.word)+" ",1),a.createVNode(ke,{"icon-path":a.unref(bd),size:"18"},null,8,["icon-path"])])]),a.createVNode(Rn,{modelValue:n.value,"onUpdate:modelValue":f[1]||(f[1]=E=>n.value=E),size:"compact"},{default:a.withCtx(()=>[a.createElementVNode("div",I2,[a.createElementVNode("div",null,[a.createElementVNode("h3",D2,[a.createTextVNode(a.toDisplayString(a.unref(d))+" ",1),a.createElementVNode("span",w2,a.toDisplayString(a.unref(p)),1)]),r.value?(a.openBlock(),a.createElementBlock("h4",M2,a.toDisplayString(r.value),1)):a.createCommentVNode("",!0)]),a.createElementVNode("div",null,[a.createVNode(ke,{"icon-path":a.unref(bd)},null,8,["icon-path"])])]),a.createVNode(Kt,{color:"primary",margin:"mb-2"}),a.createElementVNode("div",L2,[a.createElementVNode("h3",P2,a.toDisplayString(a.unref(m).definition),1),c.value?(a.openBlock(),a.createElementBlock("span",B2,[a.createTextVNode(a.toDisplayString(a.unref(m).domaine)+" : ",1),a.createElementVNode("span",F2,a.toDisplayString(c.value),1)])):a.createCommentVNode("",!0)]),a.createElementVNode("div",null,[a.renderSlot(h.$slots,"default")]),a.unref(g)?(a.openBlock(),a.createBlock(ln,{key:0,src:a.unref(g)},null,8,["src"])):a.createCommentVNode("",!0),i.value||o.value?(a.openBlock(),a.createBlock(Kt,{key:1})):a.createCommentVNode("",!0),i.value?(a.openBlock(),a.createElementBlock("div",j2,[a.createElementVNode("span",U2,a.toDisplayString(a.unref(m).variations)+" :",1),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(i.value,(E,R)=>(a.openBlock(),a.createElementBlock("span",{key:`variation-${R}`},a.toDisplayString(E)+a.toDisplayString(i.value.length>R+1?", ":"."),1))),128))])):a.createCommentVNode("",!0),o.value?(a.openBlock(),a.createElementBlock("div",G2,[a.createElementVNode("span",V2,a.toDisplayString(a.unref(m).relations)+" :",1),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(o.value,(E,R)=>(a.openBlock(),a.createBlock(Je,{key:`relation-${R}`,size:"small",rounded:"","extra-class":"mr-2",onClick:v=>l(E)},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(E),1)]),_:2},1032,["onClick"]))),128))])):a.createCommentVNode("",!0),a.createElementVNode("div",q2,[a.createVNode(Je,{type:"error",outlined:"",onClick:f[0]||(f[0]=E=>n.value=!1),rounded:""},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(a.unref(m).close),1)]),_:1})])]),_:3},8,["modelValue"])],64))}}),$r=Object.freeze(Object.defineProperty({__proto__:null,default:Tp},Symbol.toStringTag,{value:"Module"})),Wr={noTag:{bg:"bg-white",text:"text-black",border:"border-grey-900"},"blue-grey":{bg:"bg-blue-grey",text:"text-blue-grey",border:"border-blue-grey"},red:{bg:"bg-red-600",text:"text-red-600",border:"border-red-600"},pink:{bg:"bg-pink-600",text:"text-pink-600",border:"border-pink-600"},purple:{bg:"bg-purple-600",text:"text-purple-600",border:"border-purple-600"},"deep-purple":{bg:"bg-deep-purple",text:"text-deep-purple",border:"border-deep-purple"},indigo:{bg:"bg-indigo-600",text:"text-indigo-600",border:"border-indigo-600"},blue:{bg:"bg-blue-600",text:"text-blue-600",border:"border-blue-600"},cyan:{bg:"bg-cyan-600",text:"text-cyan-600",border:"border-cyan-600"},teal:{bg:"bg-teal-600",text:"text-teal-600",border:"border-teal-600"},green:{bg:"bg-green-600",text:"text-green-600",border:"border-green-600"},"light-green":{bg:"bg-light-green",text:"text-light-green",border:"border-light-green"},lime:{bg:"bg-lime-600",text:"text-lime-600",border:"border-lime-600"},"light-blue":{bg:"bg-light-blue",text:"text-light-blue",border:"border-light-blue"},"deep-orange":{bg:"bg-deep-orange",text:"text-deep-orange",border:"border-deep-orange"},orange:{bg:"bg-orange-600",text:"text-orange-600",border:"border-orange-600"},brown:{bg:"bg-brown",text:"text-brown",border:"border-brown"}},z2={key:0,class:"font-bold"},Y2={key:1,class:"text-xs ml-1"},H2={key:2,class:"mx-4"},$2={key:3,class:"font-bold"},W2={key:4,class:"text-xs ml-1"},K2={key:0,class:"flex-1"},Q2=["innerHTML"],Cp=Wt(a.defineComponent({__name:"TimelineItem",props:{title:{default:"En savoir plus"},date:{},event:{},collapse:{type:Boolean,default:!1}},setup(t){const e=t,n=a.ref(!0),r=a.ref();a.onMounted(()=>{var p=r.value;n.value&&(p.style.maxHeight=p.scrollHeight+"px")});function i(){n.value=!n.value;var p=r.value;p.style.maxHeight?p.style.maxHeight=null:p.style.maxHeight=p.scrollHeight+"px",p.style.transition||(p.style.transition="max-height 0.2s ease-out")}const o=a.computed(()=>e.event.start_date?u(e.event.start_date):null),s=a.computed(()=>e.event.end_date?u(e.event.end_date):null),l=a.computed(()=>e.event.media.url.trim()!==""?e.event.media.url:null),c=a.computed(()=>e.event.tag?Wr[e.event.tag.color]:Wr.noTag),u=p=>{const m=p.day?`${p.day}/`:"",g=p.month?`${p.month}/`:"",h=p.year,f=p.hour,E=p.minute?`:${p.minute}`:"";return{date:m+g+h,hour:f+E}},{event:d}=a.toRefs(e);return(p,m)=>{var g,h,f,E,R,v,y;return a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(`cursor-pointer ml-10 relative flex items-center p-2 ${c.value.border} border border-2 rounded-r-lg mb-8 flex-col md:flex-row space-y-4 md:space-y-0`),onClick:i},[a.createElementVNode("div",{class:a.normalizeClass(`w-5 h-5 bg-white border-2 ${c.value.border} absolute -left-12 transform -translate-x-2/4 rounded-full z-10 mt-2 md:mt-0`)},null,2),a.createElementVNode("div",{class:a.normalizeClass(`w-10 border ${c.value.border} absolute -left-10 z-0`)},null,2),a.createElementVNode("div",null,[a.createElementVNode("div",{class:a.normalizeClass(`${c.value.text} text-sm`)},[(g=o.value)!=null&&g.date.trim()?(a.openBlock(),a.createElementBlock("span",z2,a.toDisplayString(o.value.date),1)):a.createCommentVNode("",!0),(h=o.value)!=null&&h.hour.trim()?(a.openBlock(),a.createElementBlock("span",Y2,a.toDisplayString(o.value.hour),1)):a.createCommentVNode("",!0),(f=s.value)!=null&&f.date.trim()?(a.openBlock(),a.createElementBlock("span",H2,"-")):a.createCommentVNode("",!0),(E=s.value)!=null&&E.date.trim()?(a.openBlock(),a.createElementBlock("span",$2,a.toDisplayString(s.value.date),1)):a.createCommentVNode("",!0),(R=s.value)!=null&&R.hour.trim()?(a.openBlock(),a.createElementBlock("span",W2,a.toDisplayString(s.value.hour),1)):a.createCommentVNode("",!0)],2),a.createElementVNode("h2",{class:a.normalizeClass(`text-2xl ${c.value.text}`)},a.toDisplayString((v=a.unref(d).text)==null?void 0:v.headline),3),a.createElementVNode("div",{ref_key:"collapsible",ref:r,class:"content"},[a.createElementVNode("div",{class:a.normalizeClass(`${l.value?"flex":""} py-4`)},[l.value?(a.openBlock(),a.createElementBlock("div",K2,[a.createVNode(ln,{noModal:"",cols:"8",src:l.value,alt:(y=a.unref(d).text)==null?void 0:y.headline},null,8,["src","alt"])])):a.createCommentVNode("",!0),a.createElementVNode("div",{class:"flex-1",innerHTML:a.unref(Qe)(a.unref(d).text.text)},null,8,Q2)],2)],512)])],2)}}}),[["__scopeId","data-v-fba69535"]]),Ji=Object.freeze(Object.defineProperty({__proto__:null,default:Cp},Symbol.toStringTag,{value:"Module"})),X2={class:"w-10/12 mx-auto relative dark:bg-gray-300"},Z2={class:"text-2xl mb-2"},J2={class:"my-4 px-2"},eR=["onClick"],tR={class:"border-l-4 pl-1 transition-all"},Rp=a.defineComponent({__name:"EpTimeLine",props:{tags:{},events:{},title:{}},setup(t){const e=t,n=a.ref();a.onMounted(()=>{e.tags&&(n.value=e.tags.map(c=>({...c,active:!1})))});const r=c=>{const u=Wr[c];return u||Wr.noTag},i=a.computed(()=>{var c;return((c=n.value)==null?void 0:c.filter(u=>u.active))||[]}),o=a.computed(()=>i.value.length===0?e.events:e.events.filter(u=>{if(u.tag)return i.value.some(d=>{var p;return d.id===((p=u.tag)==null?void 0:p.id)})})),s=c=>{c.active=!c.active},{title:l}=a.toRefs(e);return(c,u)=>{var d,p;return a.openBlock(),a.createElementBlock("div",null,[a.createElementVNode("div",X2,[a.createElementVNode("h3",Z2,a.toDisplayString((d=a.unref(l))==null?void 0:d.text.headline),1),a.createElementVNode("p",null,a.toDisplayString((p=a.unref(l))==null?void 0:p.text.text),1),a.createElementVNode("div",J2,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.value,m=>(a.openBlock(),a.createElementBlock("span",{key:m.id,onClick:g=>s(m),class:a.normalizeClass(`mr-2 mb-2 inline-block cursor-pointer text-sm px-2 py-1 rounded border ${r(m.color).border} ${m.active?"text-white":r(m.color).text} ${m.active?r(m.color).bg:""}`)},[a.createTextVNode(a.toDisplayString(m.title)+" ",1),a.createVNode(ke,{"icon-path":m.active?a.unref(XS):a.unref(QS),size:"14"},null,8,["icon-path"])],10,eR))),128))]),a.createElementVNode("div",tR,[a.createVNode(a.TransitionGroup,{name:"list",tag:"div"},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(o.value,(m,g)=>(a.openBlock(),a.createBlock(Cp,{key:`${g}-card-${m.id}`,event:m},null,8,["event"]))),128))]),_:1})])])])}}}),eo=Object.freeze(Object.defineProperty({__proto__:null,default:Rp},Symbol.toStringTag,{value:"Module"})),nR=["innerHTML"],rR={class:"max-w-screen-sm mx-auto"},aR=["src"],iR=["src"],Np=a.defineComponent({__name:"EpVideo",props:{src:{},title:{},intentions:{},credits:{},mandateLevel:{},type:{default:"base"},hideIcon:{type:Boolean,default:!1},labels:{default:()=>({intentions:"Intentions d'écoute"})}},setup(t){const e=t,n=a.ref(),r=a.computed(()=>!!(e.src.endsWith(".mp4")||e.src.endsWith(".ogg")||e.src.endsWith(".webm"))),i=a.computed(()=>{const p=e.src;if(!r.value&&p.includes("https://vimeo.com/"))return p.replace("https://vimeo.com/","https://player.vimeo.com/video/");if(!r.value&&p.includes("https://www.youtube.com/watch?"))return p.replace("https://www.youtube.com/watch?v=","https://www.youtube.com/embed/");if(!r.value&&p.includes("https://youtu.be/")){const m=s(p);if(m)return`https://www.youtube.com/embed/${m}`}return p}),o=a.computed(()=>e.intentions?vt(e.intentions)?e.intentions:Tt(e.intentions):null),s=p=>{const m=p.match(/\/([^\/]+)$/);return m?m[1]:null},{src:l,title:c,hideIcon:u,type:d}=a.toRefs(e);return(p,m)=>(a.openBlock(),a.createBlock(Xe,{title:a.unref(c),type:a.unref(d),hideIcon:a.unref(u),icon:a.unref(yd),mandateLevel:p.mandateLevel},a.createSlots({content:a.withCtx(()=>[a.createElementVNode("div",rR,[r.value?(a.openBlock(),a.createElementBlock("video",{key:0,ref_key:"video",ref:n,controls:"",src:a.unref(l),width:"640",controlsList:"nodownload"},null,8,aR)):(a.openBlock(),a.createElementBlock("iframe",{key:1,src:i.value,width:"100%",height:"360",frameborder:"0",allowfullscreen:""},null,8,iR))])]),_:2},[o.value&&o.value.length>0?{name:"intentions",fn:a.withCtx(()=>[a.createElementVNode("div",{innerHTML:o.value},null,8,nR)]),key:"0"}:void 0]),1032,["title","type","hideIcon","icon","mandateLevel"]))}}),to=Object.freeze(Object.defineProperty({__proto__:null,default:Np},Symbol.toStringTag,{value:"Module"})),oR=["innerHTML"],sR=["src","height"],Ap=a.defineComponent({__name:"EpVideoPanopto",props:{src:{},title:{},intentions:{},credits:{},mandateLevel:{},labelIntentions:{default:"Intentions d'écoute"},type:{default:"base"},hideIcon:{type:Boolean,default:!1},big:{type:Boolean}},setup(t){const e=t,n=a.computed(()=>e.intentions?vt(e.intentions)?e.intentions:Tt(e.intentions):null),r=a.computed(()=>e.big?"650":"360"),{src:i,title:o,hideIcon:s,type:l}=a.toRefs(e);return(c,u)=>(a.openBlock(),a.createBlock(Xe,{title:a.unref(o),type:a.unref(l),hideIcon:a.unref(s),icon:a.unref(yd),mandateLevel:c.mandateLevel},a.createSlots({content:a.withCtx(()=>[a.createElementVNode("div",{class:a.normalizeClass(c.big?"":"max-w-screen-sm mx-auto")},[a.createElementVNode("iframe",{src:a.unref(i),width:"100%",height:r.value,frameborder:"0",allowfullscreen:""},null,8,sR)],2)]),_:2},[n.value?{name:"intentions",fn:a.withCtx(()=>[a.createElementVNode("div",{innerHTML:n.value},null,8,oR)]),key:"0"}:void 0]),1032,["title","type","hideIcon","icon","mandateLevel"]))}}),no=Object.freeze(Object.defineProperty({__proto__:null,default:Ap},Symbol.toStringTag,{value:"Module"})),lR={class:"dark:bg-dark"},cR={key:0},uR={class:"h-min border border-base rounded-lg divide-y"},dR={class:"text-xl font-semibold p-2"},pR={class:"flex justify-between"},mR={class:"text-sm font-medium bg-base-light dark:text-dark p-2"},_R={class:"px-2 py-1"},gR={class:"text-sm font-medium bg-base-light dark:text-dark p-2"},hR={class:"px-2 py-1"},bR={class:"text-sm font-medium bg-base-light dark:text-dark p-2"},fR={class:"px-2 py-1"},ER=["innerHTML"],SR={key:1,class:"flex"},vR=["innerHTML"],yR=["src","alt"],TR={key:0},CR={class:"text-sm font-medium bg-base-light dark:text-dark p-2"},RR={class:"p-2"},NR=["onClick"],AR={key:1},Op=a.defineComponent({__name:"EpWordDef",props:{term:{},glossary:{},labels:{default:()=>({information:"Information grammaticale",domain:"Domaine",relations:"Relations",definition:"La definition n'est pas disponible",variations:"Variation(s)"})}},setup(t){const e=t,n=a.computed(()=>e.glossary.find(u=>u.id===e.term.id)),r=a.computed(()=>n.value?n.value.domain||n.value.variation.length>0?"w-1/3":"w-full":""),i=a.computed(()=>n.value?n.value.variation.length>0?"w-1/4":"w-3/4":""),o=a.computed(()=>n.value?n.value.domain?"w-2/4":"w-3/4":""),s=u=>e.glossary.filter(p=>u.some(m=>p.id===m)).map(p=>({id:p.id,term:p.term})),l=hu.useRouter(),c=u=>{l.hasRoute("glossary")&&l.push({path:"/glossary",query:{word:u}})};return(u,d)=>(a.openBlock(),a.createElementBlock("div",lR,[n.value?(a.openBlock(),a.createElementBlock("div",cR,[a.createElementVNode("div",uR,[a.createElementVNode("h2",dR,a.toDisplayString(n.value.term),1),a.createElementVNode("div",pR,[a.createElementVNode("div",{class:a.normalizeClass(r.value)},[a.createElementVNode("p",mR,a.toDisplayString(u.labels.information),1),a.createElementVNode("div",_R,a.toDisplayString(n.value.graminfo),1)],2),n.value.domain?(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(i.value)},[a.createElementVNode("p",gR,a.toDisplayString(u.labels.domain),1),a.createElementVNode("div",hR,a.toDisplayString(n.value.domain),1)],2)):a.createCommentVNode("",!0),n.value.variation.length>0?(a.openBlock(),a.createElementBlock("div",{key:1,class:a.normalizeClass(o.value)},[a.createElementVNode("p",bR,a.toDisplayString(u.labels.variations),1),a.createElementVNode("div",fR,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.value.variation,(p,m)=>(a.openBlock(),a.createElementBlock("span",{key:`v-${m}`},a.toDisplayString(p)+a.toDisplayString(n.value.variation.length>m+1?", ":"."),1))),128))])],2)):a.createCommentVNode("",!0)]),n.value.img?(a.openBlock(),a.createElementBlock("div",SR,[a.createElementVNode("div",{class:"px-2 py-6",innerHTML:a.unref(Qe)(n.value.definition)},null,8,vR),a.createElementVNode("img",{class:"h-60",src:n.value.img,alt:`Image du terme ${n.value.term}`},null,8,yR)])):(a.openBlock(),a.createElementBlock("div",{key:0,class:"px-2 py-6",innerHTML:a.unref(Qe)(n.value.definition)},null,8,ER)),a.createElementVNode("div",null,[n.value.relation.length>0?(a.openBlock(),a.createElementBlock("div",TR,[a.createElementVNode("p",CR,a.toDisplayString(u.labels.relations),1),a.createElementVNode("div",RR,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(s(n.value.relation),(p,m)=>(a.openBlock(),a.createElementBlock("button",{key:`relation-${m}`,class:"p-1 border rounded mr-1",onClick:g=>c(p.term)},a.toDisplayString(p.term),9,NR))),128))])])):a.createCommentVNode("",!0)])])])):(a.openBlock(),a.createElementBlock("div",AR,a.toDisplayString(u.labels.definition),1))]))}}),ro=Object.freeze(Object.defineProperty({__proto__:null,default:Op},Symbol.toStringTag,{value:"Module"})),OR={},kR={class:"duotone-filters h-0",xmlns:"http://www.w3.org/2000/svg"},xR=[a.createStaticVNode(`<filter id="duotone-bluered"><feColorMatrix type="matrix" result="grayscale" values="1 0 0 0 0
|
|
303
|
+
please report what input caused this bug`);return r=r.slice(1,-1),{type:"verb",mode:"text",body:r,star:i}}hp.hasOwnProperty(n[0])&&!Be[this.mode][n[0]]&&(this.settings.strict&&this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+n[0]+'" used in math mode',e),n=hp[n[0]]+n.slice(1));var o=t2.exec(n);o&&(n=n.substring(0,o.index),n==="i"?n="ı":n==="j"&&(n="ȷ"));var s;if(Be[this.mode][n]){this.settings.strict&&this.mode==="math"&&gi.indexOf(n)>=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+n[0]+'" used in math mode',e);var l=Be[this.mode][n].group,c=dt.range(e),u;if($T.hasOwnProperty(l)){var d=l;u={type:"atom",mode:this.mode,family:d,loc:c,text:n}}else u={type:l,mode:this.mode,loc:c,text:n};s=u}else if(n.charCodeAt(0)>=128)this.settings.strict&&(Yd(n.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+n[0]+'" used in math mode',e):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+n[0]+'"'+(" ("+n.charCodeAt(0)+")"),e)),s={type:"textord",mode:"text",loc:dt.range(e),text:n};else return null;if(this.consume(),o)for(var p=0;p<o[0].length;p++){var m=o[0][p];if(!zi[m])throw new Y("Unknown accent ' "+m+"'",e);var g=zi[m][this.mode]||zi[m].text;if(!g)throw new Y("Accent "+m+" unsupported in "+this.mode+" mode",e);s={type:"accent",mode:this.mode,loc:dt.range(e),label:g,isStretchy:!1,isShifty:!0,base:s}}return s}}Hr.endOfExpression=["}","\\endgroup","\\end","\\right","&"];var Yi=function(e,n){if(!(typeof e=="string"||e instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var r=new Hr(e,n);delete r.gullet.macros.current["\\df@tag"];var i=r.parse();if(delete r.gullet.macros.current["\\current@color"],delete r.gullet.macros.current["\\color"],r.gullet.macros.get("\\df@tag")){if(!n.displayMode)throw new Y("\\tag works only in display equations");i=[{type:"tag",mode:"text",body:i,tag:r.subparse([new ht("\\df@tag")])}]}return i},bp=function(e,n,r){n.textContent="";var i=Hi(e,r).toNode();n.appendChild(i)};typeof document<"u"&&document.compatMode!=="CSS1Compat"&&(typeof console<"u"&&console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."),bp=function(){throw new Y("KaTeX doesn't work in quirks mode.")});var o2=function(e,n){var r=Hi(e,n).toMarkup();return r},s2=function(e,n){var r=new ai(n);return Yi(e,r)},fp=function(e,n,r){if(r.throwOnError||!(e instanceof Y))throw e;var i=M.makeSpan(["katex-error"],[new ft(n)]);return i.setAttribute("title",e.toString()),i.setAttribute("style","color:"+r.errorColor),i},Hi=function(e,n){var r=new ai(n);try{var i=Yi(e,r);return hC(i,e,r)}catch(o){return fp(o,e,r)}},l2=function(e,n){var r=new ai(n);try{var i=Yi(e,r);return bC(i,e,r)}catch(o){return fp(o,e,r)}},c2={version:"0.16.10",render:bp,renderToString:o2,ParseError:Y,SETTINGS_SCHEMA:Cr,__parse:s2,__renderToDomTree:Hi,__renderToHTMLTree:l2,__setFontMetrics:UT,__defineSymbol:_,__defineFunction:Q,__defineMacro:C,__domTree:{Span:Qn,Anchor:ui,SymbolNode:ft,SvgNode:Ft,PathNode:Zt,LineNode:di}};const u2=["innerHTML"],Ep=Wt(a.defineComponent({__name:"EpKatex",props:{content:{},center:{type:Boolean,default:!1},title:{},intentions:{},hideIcon:{type:Boolean},type:{},mandateLevel:{}},setup(t){const e=t,n=a.ref();a.onMounted(()=>{n.value&&c2.render(String.raw`${e.content}`,n.value,{throwOnError:!1,output:"html"})});const r=a.computed(()=>e.intentions?vt(e.intentions)?e.intentions:Tt(e.intentions):null),{center:i}=a.toRefs(e);return(o,s)=>(a.openBlock(),a.createBlock(Xe,{title:o.title,type:o.type,hideIcon:o.hideIcon,icon:a.unref(r1),mandateLevel:o.mandateLevel},a.createSlots({content:a.withCtx(()=>[a.createElementVNode("div",{class:a.normalizeClass(`p-4 ${a.unref(i)?"flex justify-center":""}`)},[a.createElementVNode("div",{ref_key:"renderKatex",ref:n},null,512)],2)]),_:2},[r.value?{name:"intentions",fn:a.withCtx(()=>[a.createElementVNode("div",{innerHTML:r.value},null,8,u2)]),key:"0"}:void 0]),1032,["title","type","hideIcon","icon","mandateLevel"]))}}),[["__scopeId","data-v-f9e5d352"]]),$i=Object.freeze(Object.defineProperty({__proto__:null,default:Ep},Symbol.toStringTag,{value:"Module"})),d2=["innerHTML"],p2={class:"flex justify-center"},m2={class:"w-4/5"},_2={class:"font-medium tracking-wider"},Wi=a.defineComponent({__name:"EpLink",props:{url:{},title:{},intentions:{default:""},mandateLevel:{},labelIntentions:{default:"Intentions d'écoute"},type:{default:"primary"},hideIcon:{type:Boolean,default:!1},labelCard:{},icon:{}},setup(t){const e=t,n=a.computed(()=>e.icon?e.icon:c1),r=a.computed(()=>`absolute ${gt("bg",e.type+"dark")} bottom-0 w-0 left-1/2 h-full -translate-x-1/2 transition-all ease-in-out duration-300 group-hover:w-[105%] -z-[1] group-focus:w-[105%]`),{url:i,title:o,intentions:s,mandateLevel:l,hideIcon:c}=a.toRefs(e);return(u,d)=>(a.openBlock(),a.createBlock(Xe,{title:u.labelCard,icon:n.value,flat:"",type:u.type,hideIcon:a.unref(c),mandateLevel:a.unref(l)},a.createSlots({content:a.withCtx(()=>[a.createElementVNode("div",p2,[a.createElementVNode("div",m2,[a.createVNode(Je,{block:"",rounded:"",type:u.type,prependIcon:n.value,href:a.unref(i),extraClass:"group font-medium tracking-wide relative inline-flex justify-center overflow-hidden z-10 transition-all duration-300 ease-in-out "},{default:a.withCtx(()=>[a.createElementVNode("div",null,[a.createElementVNode("span",_2,a.toDisplayString(a.unref(o)),1),a.createElementVNode("span",{class:a.normalizeClass(r.value)},null,2)])]),_:1},8,["type","prependIcon","href"])])])]),_:2},[a.unref(Qe)(a.unref(s))?{name:"intentions",fn:a.withCtx(()=>[a.createElementVNode("div",{innerHTML:a.unref(Qe)(a.unref(s))},null,8,d2)]),key:"0"}:void 0]),1032,["title","icon","type","hideIcon","mandateLevel"]))}}),Ki=Object.freeze(Object.defineProperty({__proto__:null,default:Wi},Symbol.toStringTag,{value:"Module"})),g2={key:0},h2={key:1},b2={key:2},Sp=a.defineComponent({__name:"EpLinkVersion",props:{type:{},link:{},big:{type:Boolean,default:!1},customHeight:{},labels:{default:()=>({noData:"no data"})}},setup(t){const e=t,{type:n,link:r,big:i,customHeight:o}=a.toRefs(e);return(s,l)=>a.unref(n)==="button"?(a.openBlock(),a.createElementBlock("div",g2,[a.createVNode(Wi,{title:a.unref(r).title,url:a.unref(r).url},null,8,["title","url"])])):a.unref(n)==="iframe"?(a.openBlock(),a.createElementBlock("div",h2,[a.createVNode(ni,{title:a.unref(r).title,src:a.unref(r).url,big:a.unref(i),"custom-height":a.unref(o)},null,8,["title","src","big","custom-height"])])):(a.openBlock(),a.createElementBlock("div",b2,a.toDisplayString(s.labels.noData),1))}}),Qi=Object.freeze(Object.defineProperty({__proto__:null,default:Sp},Symbol.toStringTag,{value:"Module"})),f2=["innerHTML"],E2={class:"flex flex-col items-center border rounded-lg bg-base-light md:flex-row mt-2 dark:bg-dark"},S2=["src","alt"],v2={key:1,class:"h-96 w-full rounded-t-lg md:h-auto md:w-56 md:rounded-none md:rounded-l-lg flex justify-center items-center text-base-dark dark:text-white"},y2={class:"w-full"},T2={class:"w-full px-5"},C2={class:"flex justify-between items-center rounded-t-md p-2"},R2="https://live.staticflickr.com/4868/45940268562_c5f7fdd06b_q.jpg",vp=a.defineComponent({__name:"EpSoftware",props:{url:{},cover:{default:""},title:{},mandateLevel:{},intentions:{default:""},version_link:{},hideCover:{type:Boolean,default:!1},version:{},type:{default:"base"},hideIcon:{type:Boolean,default:!1},labelCard:{},labels:{default:()=>({acceder:"Accéder au logiciel"})}},setup(t){const e=t,n=a.computed(()=>!(e.cover===R2||e.cover.trim().length===0)),{title:r,intentions:i,cover:o,hideCover:s,version:l,labelCard:c,hideIcon:u,mandateLevel:d,url:p}=a.toRefs(e);return(m,g)=>(a.openBlock(),a.createBlock(Xe,{title:a.unref(c),icon:a.unref(Ed),flat:"",type:m.type,hideIcon:a.unref(u),mandateLevel:a.unref(d)},a.createSlots({content:a.withCtx(()=>[a.createElementVNode("div",E2,[a.unref(s)?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[n.value?(a.openBlock(),a.createElementBlock("img",{key:0,class:"object-cover h-24 w-full rounded-t-lg object-cover md:h-auto md:w-24 md:rounded-none md:rounded-l-lg",src:a.unref(o),alt:`image de la lecture ${a.unref(r)}`},null,8,S2)):(a.openBlock(),a.createElementBlock("div",v2,[a.createVNode(ke,{"icon-path":a.unref(Ed),size:"95"},null,8,["icon-path"])]))],64)),a.createElementVNode("div",y2,[a.createElementVNode("div",T2,[a.createElementVNode("div",C2,[a.createElementVNode("h4",null,[a.createTextVNode(a.toDisplayString(a.unref(r))+" ",1),a.unref(l)?(a.openBlock(),a.createBlock(cn,{key:0,size:"small",type:"base"},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(a.unref(l)),1)]),_:1})):a.createCommentVNode("",!0)]),a.unref(p)?(a.openBlock(),a.createBlock(Je,{key:0,rounded:"",type:"base",prependIcon:a.unref(vd),href:a.unref(p)},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(m.labels.acceder),1)]),_:1},8,["prependIcon","href"])):a.createCommentVNode("",!0)])])])])]),actions:a.withCtx(()=>[]),_:2},[a.unref(Qe)(a.unref(i))?{name:"intentions",fn:a.withCtx(()=>[a.createElementVNode("div",{innerHTML:a.unref(Qe)(a.unref(i))},null,8,f2)]),key:"0"}:void 0]),1032,["title","icon","type","hideIcon","mandateLevel"]))}}),Xi=Object.freeze(Object.defineProperty({__proto__:null,default:vp},Symbol.toStringTag,{value:"Module"})),N2=["innerHTML"],A2={class:"flex"},O2=["innerHTML"],yp=a.defineComponent({__name:"EpSvg",props:{desc:{},title:{},content:{},mandateLevel:{},type:{},cols:{default:"6"}},setup(t){const e=t,n=["basis-6/12","basis-1/12","basis-2/12","basis-3/12","basis-4/12","basis-5/12","basis-6/12","basis-7/12","basis-8/12","basis-9/12","basis-10/12","basis-11/12","basis-full"],r=a.computed(()=>n[+e.cols]),i=a.computed(()=>e.desc?Qe(e.desc):null),{title:o,content:s}=a.toRefs(e);return(l,c)=>(a.openBlock(),a.createBlock(Xe,{title:a.unref(o),icon:a.unref(fd),flat:"",type:l.type,mandateLevel:l.mandateLevel},a.createSlots({content:a.withCtx(()=>[a.createElementVNode("div",A2,[a.unref(s)?(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(`mx-auto ${r.value}`)},[a.createElementVNode("div",{innerHTML:a.unref(s),class:"w-full"},null,8,O2)],2)):a.createCommentVNode("",!0)])]),_:2},[i.value?{name:"intentions",fn:a.withCtx(()=>[a.createElementVNode("div",{innerHTML:i.value},null,8,N2)]),key:"0"}:void 0]),1032,["title","icon","type","mandateLevel"]))}}),Zi=Object.freeze(Object.defineProperty({__proto__:null,default:yp},Symbol.toStringTag,{value:"Module"})),k2=a.createElementVNode("span",{class:"absolute top-0 left-0 flex w-full h-0 mb-0 transition-all duration-300 ease-out transform translate-y-0 bg-primary dark:bg-main-color-500 group-hover:h-full opacity-90"},null,-1),x2={class:"relative group-hover:text-white"},I2={class:"mb-2 flex items-center justify-between"},D2={class:"font-bold text-2xl"},w2={class:"text-sm font-light text-error italic"},M2={key:0,class:"text-xs"},L2={class:"mb-4 flex items-center justify-between"},P2={class:"text-primary font-bold"},B2={key:0,class:"text-xs"},F2={class:"font-bold"},j2={key:2,class:"text-sm mt-2"},U2={class:"mr-2 font-bold"},G2={key:3,class:"text-sm mt-2"},V2={class:"mr-2 font-bold"},q2={class:"flex justify-end"},Tp=a.defineComponent({__name:"EpTerm",props:{term:{default:"test"},word:{},definition:{},variations:{default:""},domain:{},graminfo:{},relations:{default:""},src:{},labels:{default:()=>({definition:"Définition",domaine:"Domaine",variations:"Variations",relations:"Relations",close:"Fermer"})}},setup(t){const e=t,n=a.ref(!1),r=a.computed(()=>e.term!==e.word?`(${e.word})`:null),i=a.computed(()=>{var E;let h=null,f=(E=e.variations)==null?void 0:E.trim();return(f==null?void 0:f.length)>0&&(h=f.split(",")),h}),o=a.computed(()=>{var E;let h=null,f=(E=e.relations)==null?void 0:E.trim();return(f==null?void 0:f.length)>0&&(h=f.split(",")),h}),s=hu.useRouter(),l=h=>{s.hasRoute("glossary")&&s.push({path:"/glossary",query:{word:h}})},c=a.computed(()=>e.domain==="null"?null:e.domain),u=()=>{n.value=!n.value},{term:d,graminfo:p,labels:m,src:g}=a.toRefs(e);return(h,f)=>(a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createElementVNode("span",{onClick:u,class:"cursor-pointer border-primary dark:border-main-color-500 border dark:text-main-color-500 text-primary px-2 py-1 rounded group overflow-hidden relative"},[k2,a.createElementVNode("span",x2,[a.createTextVNode(a.toDisplayString(h.word)+" ",1),a.createVNode(ke,{"icon-path":a.unref(bd),size:"18"},null,8,["icon-path"])])]),a.createVNode(Rn,{modelValue:n.value,"onUpdate:modelValue":f[1]||(f[1]=E=>n.value=E),size:"compact"},{default:a.withCtx(()=>[a.createElementVNode("div",I2,[a.createElementVNode("div",null,[a.createElementVNode("h3",D2,[a.createTextVNode(a.toDisplayString(a.unref(d))+" ",1),a.createElementVNode("span",w2,a.toDisplayString(a.unref(p)),1)]),r.value?(a.openBlock(),a.createElementBlock("h4",M2,a.toDisplayString(r.value),1)):a.createCommentVNode("",!0)]),a.createElementVNode("div",null,[a.createVNode(ke,{"icon-path":a.unref(bd)},null,8,["icon-path"])])]),a.createVNode(Kt,{color:"primary",margin:"mb-2"}),a.createElementVNode("div",L2,[a.createElementVNode("h3",P2,a.toDisplayString(a.unref(m).definition),1),c.value?(a.openBlock(),a.createElementBlock("span",B2,[a.createTextVNode(a.toDisplayString(a.unref(m).domaine)+" : ",1),a.createElementVNode("span",F2,a.toDisplayString(c.value),1)])):a.createCommentVNode("",!0)]),a.createElementVNode("div",null,[a.renderSlot(h.$slots,"default")]),a.unref(g)?(a.openBlock(),a.createBlock(ln,{key:0,src:a.unref(g)},null,8,["src"])):a.createCommentVNode("",!0),i.value||o.value?(a.openBlock(),a.createBlock(Kt,{key:1})):a.createCommentVNode("",!0),i.value?(a.openBlock(),a.createElementBlock("div",j2,[a.createElementVNode("span",U2,a.toDisplayString(a.unref(m).variations)+" :",1),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(i.value,(E,R)=>(a.openBlock(),a.createElementBlock("span",{key:`variation-${R}`},a.toDisplayString(E)+a.toDisplayString(i.value.length>R+1?", ":"."),1))),128))])):a.createCommentVNode("",!0),o.value?(a.openBlock(),a.createElementBlock("div",G2,[a.createElementVNode("span",V2,a.toDisplayString(a.unref(m).relations)+" :",1),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(o.value,(E,R)=>(a.openBlock(),a.createBlock(Je,{key:`relation-${R}`,size:"small",rounded:"","extra-class":"mr-2",onClick:v=>l(E)},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(E),1)]),_:2},1032,["onClick"]))),128))])):a.createCommentVNode("",!0),a.createElementVNode("div",q2,[a.createVNode(Je,{type:"error",outlined:"",onClick:f[0]||(f[0]=E=>n.value=!1),rounded:""},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(a.unref(m).close),1)]),_:1})])]),_:3},8,["modelValue"])],64))}}),$r=Object.freeze(Object.defineProperty({__proto__:null,default:Tp},Symbol.toStringTag,{value:"Module"})),Wr={noTag:{bg:"bg-white",text:"text-black",border:"border-grey-900"},"blue-grey":{bg:"bg-blue-grey",text:"text-blue-grey",border:"border-blue-grey"},red:{bg:"bg-red-600",text:"text-red-600",border:"border-red-600"},pink:{bg:"bg-pink-600",text:"text-pink-600",border:"border-pink-600"},purple:{bg:"bg-purple-600",text:"text-purple-600",border:"border-purple-600"},"deep-purple":{bg:"bg-deep-purple",text:"text-deep-purple",border:"border-deep-purple"},indigo:{bg:"bg-indigo-600",text:"text-indigo-600",border:"border-indigo-600"},blue:{bg:"bg-blue-600",text:"text-blue-600",border:"border-blue-600"},cyan:{bg:"bg-cyan-600",text:"text-cyan-600",border:"border-cyan-600"},teal:{bg:"bg-teal-600",text:"text-teal-600",border:"border-teal-600"},green:{bg:"bg-green-600",text:"text-green-600",border:"border-green-600"},"light-green":{bg:"bg-light-green",text:"text-light-green",border:"border-light-green"},lime:{bg:"bg-lime-600",text:"text-lime-600",border:"border-lime-600"},"light-blue":{bg:"bg-light-blue",text:"text-light-blue",border:"border-light-blue"},"deep-orange":{bg:"bg-deep-orange",text:"text-deep-orange",border:"border-deep-orange"},orange:{bg:"bg-orange-600",text:"text-orange-600",border:"border-orange-600"},brown:{bg:"bg-brown",text:"text-brown",border:"border-brown"}},z2={key:0,class:"font-bold"},Y2={key:1,class:"text-xs ml-1"},H2={key:2,class:"mx-4"},$2={key:3,class:"font-bold"},W2={key:4,class:"text-xs ml-1"},K2={key:0,class:"flex-1"},Q2=["innerHTML"],Cp=Wt(a.defineComponent({__name:"TimelineItem",props:{title:{default:"En savoir plus"},date:{},event:{},collapse:{type:Boolean,default:!1}},setup(t){const e=t,n=a.ref(!0),r=a.ref();a.onMounted(()=>{var p=r.value;n.value&&(p.style.maxHeight=p.scrollHeight+"px")});function i(){n.value=!n.value;var p=r.value;p.style.maxHeight?p.style.maxHeight=null:p.style.maxHeight=p.scrollHeight+"px",p.style.transition||(p.style.transition="max-height 0.2s ease-out")}const o=a.computed(()=>e.event.start_date?u(e.event.start_date):null),s=a.computed(()=>e.event.end_date?u(e.event.end_date):null),l=a.computed(()=>e.event.media.url.trim()!==""?e.event.media.url:null),c=a.computed(()=>e.event.tag?Wr[e.event.tag.color]:Wr.noTag),u=p=>{const m=p.day?`${p.day}/`:"",g=p.month?`${p.month}/`:"",h=p.year,f=p.hour,E=p.minute?`:${p.minute}`:"";return{date:m+g+h,hour:f+E}},{event:d}=a.toRefs(e);return(p,m)=>{var g,h,f,E,R,v,y;return a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(`cursor-pointer ml-10 relative flex items-center p-2 ${c.value.border} border border-2 rounded-r-lg mb-8 flex-col md:flex-row space-y-4 md:space-y-0`),onClick:i},[a.createElementVNode("div",{class:a.normalizeClass(`w-5 h-5 bg-white dark:bg-dark border-2 ${c.value.border} absolute -left-12 transform -translate-x-2/4 rounded-full z-10 mt-2 md:mt-0`)},null,2),a.createElementVNode("div",{class:a.normalizeClass(`w-10 border ${c.value.border} absolute -left-10 z-0`)},null,2),a.createElementVNode("div",null,[a.createElementVNode("div",{class:a.normalizeClass(`${c.value.text} text-sm`)},[(g=o.value)!=null&&g.date.trim()?(a.openBlock(),a.createElementBlock("span",z2,a.toDisplayString(o.value.date),1)):a.createCommentVNode("",!0),(h=o.value)!=null&&h.hour.trim()?(a.openBlock(),a.createElementBlock("span",Y2,a.toDisplayString(o.value.hour),1)):a.createCommentVNode("",!0),(f=s.value)!=null&&f.date.trim()?(a.openBlock(),a.createElementBlock("span",H2,"-")):a.createCommentVNode("",!0),(E=s.value)!=null&&E.date.trim()?(a.openBlock(),a.createElementBlock("span",$2,a.toDisplayString(s.value.date),1)):a.createCommentVNode("",!0),(R=s.value)!=null&&R.hour.trim()?(a.openBlock(),a.createElementBlock("span",W2,a.toDisplayString(s.value.hour),1)):a.createCommentVNode("",!0)],2),a.createElementVNode("h2",{class:a.normalizeClass(`text-2xl ${c.value.text}`)},a.toDisplayString((v=a.unref(d).text)==null?void 0:v.headline),3),a.createElementVNode("div",{ref_key:"collapsible",ref:r,class:"content"},[a.createElementVNode("div",{class:a.normalizeClass(`${l.value?"flex":""} py-4`)},[l.value?(a.openBlock(),a.createElementBlock("div",K2,[a.createVNode(ln,{noModal:"",cols:"8",src:l.value,alt:(y=a.unref(d).text)==null?void 0:y.headline},null,8,["src","alt"])])):a.createCommentVNode("",!0),a.createElementVNode("div",{class:"flex-1",innerHTML:a.unref(Qe)(a.unref(d).text.text)},null,8,Q2)],2)],512)])],2)}}}),[["__scopeId","data-v-54b64397"]]),Ji=Object.freeze(Object.defineProperty({__proto__:null,default:Cp},Symbol.toStringTag,{value:"Module"})),X2={class:"w-10/12 mx-auto relative dark:bg-dark"},Z2={class:"text-2xl mb-2"},J2={class:"my-4 px-2"},eR=["onClick"],tR={class:"border-l-4 pl-1 transition-all dark:border-l-base-dark"},Rp=a.defineComponent({__name:"EpTimeLine",props:{tags:{},events:{},title:{}},setup(t){const e=t,n=a.ref();a.onMounted(()=>{e.tags&&(n.value=e.tags.map(c=>({...c,active:!1})))});const r=c=>{const u=Wr[c];return u||Wr.noTag},i=a.computed(()=>{var c;return((c=n.value)==null?void 0:c.filter(u=>u.active))||[]}),o=a.computed(()=>i.value.length===0?e.events:e.events.filter(u=>{if(u.tag)return i.value.some(d=>{var p;return d.id===((p=u.tag)==null?void 0:p.id)})})),s=c=>{c.active=!c.active},{title:l}=a.toRefs(e);return(c,u)=>{var d,p;return a.openBlock(),a.createElementBlock("div",null,[a.createElementVNode("div",X2,[a.createElementVNode("h3",Z2,a.toDisplayString((d=a.unref(l))==null?void 0:d.text.headline),1),a.createElementVNode("p",null,a.toDisplayString((p=a.unref(l))==null?void 0:p.text.text),1),a.createElementVNode("div",J2,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.value,m=>(a.openBlock(),a.createElementBlock("span",{key:m.id,onClick:g=>s(m),class:a.normalizeClass(`mr-2 mb-2 inline-block cursor-pointer text-sm px-2 py-1 rounded border ${r(m.color).border} ${m.active?"text-white":r(m.color).text} ${m.active?r(m.color).bg:""}`)},[a.createTextVNode(a.toDisplayString(m.title)+" ",1),a.createVNode(ke,{"icon-path":m.active?a.unref(XS):a.unref(QS),size:"14"},null,8,["icon-path"])],10,eR))),128))]),a.createElementVNode("div",tR,[a.createVNode(a.TransitionGroup,{name:"list",tag:"div"},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(o.value,(m,g)=>(a.openBlock(),a.createBlock(Cp,{key:`${g}-card-${m.id}`,event:m},null,8,["event"]))),128))]),_:1})])])])}}}),eo=Object.freeze(Object.defineProperty({__proto__:null,default:Rp},Symbol.toStringTag,{value:"Module"})),nR=["innerHTML"],rR={class:"max-w-screen-sm mx-auto"},aR=["src"],iR=["src"],Np=a.defineComponent({__name:"EpVideo",props:{src:{},title:{},intentions:{},credits:{},mandateLevel:{},type:{default:"base"},hideIcon:{type:Boolean,default:!1},labels:{default:()=>({intentions:"Intentions d'écoute"})}},setup(t){const e=t,n=a.ref(),r=a.computed(()=>!!(e.src.endsWith(".mp4")||e.src.endsWith(".ogg")||e.src.endsWith(".webm"))),i=a.computed(()=>{const p=e.src;if(!r.value&&p.includes("https://vimeo.com/"))return p.replace("https://vimeo.com/","https://player.vimeo.com/video/");if(!r.value&&p.includes("https://www.youtube.com/watch?"))return p.replace("https://www.youtube.com/watch?v=","https://www.youtube.com/embed/");if(!r.value&&p.includes("https://youtu.be/")){const m=s(p);if(m)return`https://www.youtube.com/embed/${m}`}return p}),o=a.computed(()=>e.intentions?vt(e.intentions)?e.intentions:Tt(e.intentions):null),s=p=>{const m=p.match(/\/([^\/]+)$/);return m?m[1]:null},{src:l,title:c,hideIcon:u,type:d}=a.toRefs(e);return(p,m)=>(a.openBlock(),a.createBlock(Xe,{title:a.unref(c),type:a.unref(d),hideIcon:a.unref(u),icon:a.unref(yd),mandateLevel:p.mandateLevel},a.createSlots({content:a.withCtx(()=>[a.createElementVNode("div",rR,[r.value?(a.openBlock(),a.createElementBlock("video",{key:0,ref_key:"video",ref:n,controls:"",src:a.unref(l),width:"640",controlsList:"nodownload"},null,8,aR)):(a.openBlock(),a.createElementBlock("iframe",{key:1,src:i.value,width:"100%",height:"360",frameborder:"0",allowfullscreen:""},null,8,iR))])]),_:2},[o.value&&o.value.length>0?{name:"intentions",fn:a.withCtx(()=>[a.createElementVNode("div",{innerHTML:o.value},null,8,nR)]),key:"0"}:void 0]),1032,["title","type","hideIcon","icon","mandateLevel"]))}}),to=Object.freeze(Object.defineProperty({__proto__:null,default:Np},Symbol.toStringTag,{value:"Module"})),oR=["innerHTML"],sR=["src","height"],Ap=a.defineComponent({__name:"EpVideoPanopto",props:{src:{},title:{},intentions:{},credits:{},mandateLevel:{},labelIntentions:{default:"Intentions d'écoute"},type:{default:"base"},hideIcon:{type:Boolean,default:!1},big:{type:Boolean}},setup(t){const e=t,n=a.computed(()=>e.intentions?vt(e.intentions)?e.intentions:Tt(e.intentions):null),r=a.computed(()=>e.big?"650":"360"),{src:i,title:o,hideIcon:s,type:l}=a.toRefs(e);return(c,u)=>(a.openBlock(),a.createBlock(Xe,{title:a.unref(o),type:a.unref(l),hideIcon:a.unref(s),icon:a.unref(yd),mandateLevel:c.mandateLevel},a.createSlots({content:a.withCtx(()=>[a.createElementVNode("div",{class:a.normalizeClass(c.big?"":"max-w-screen-sm mx-auto")},[a.createElementVNode("iframe",{src:a.unref(i),width:"100%",height:r.value,frameborder:"0",allowfullscreen:""},null,8,sR)],2)]),_:2},[n.value?{name:"intentions",fn:a.withCtx(()=>[a.createElementVNode("div",{innerHTML:n.value},null,8,oR)]),key:"0"}:void 0]),1032,["title","type","hideIcon","icon","mandateLevel"]))}}),no=Object.freeze(Object.defineProperty({__proto__:null,default:Ap},Symbol.toStringTag,{value:"Module"})),lR={class:"dark:bg-dark"},cR={key:0},uR={class:"h-min border border-base rounded-lg divide-y"},dR={class:"text-xl font-semibold p-2"},pR={class:"flex justify-between"},mR={class:"text-sm font-medium bg-base-light dark:text-dark p-2"},_R={class:"px-2 py-1"},gR={class:"text-sm font-medium bg-base-light dark:text-dark p-2"},hR={class:"px-2 py-1"},bR={class:"text-sm font-medium bg-base-light dark:text-dark p-2"},fR={class:"px-2 py-1"},ER=["innerHTML"],SR={key:1,class:"flex"},vR=["innerHTML"],yR=["src","alt"],TR={key:0},CR={class:"text-sm font-medium bg-base-light dark:text-dark p-2"},RR={class:"p-2"},NR=["onClick"],AR={key:1},Op=a.defineComponent({__name:"EpWordDef",props:{term:{},glossary:{},labels:{default:()=>({information:"Information grammaticale",domain:"Domaine",relations:"Relations",definition:"La definition n'est pas disponible",variations:"Variation(s)"})}},setup(t){const e=t,n=a.computed(()=>e.glossary.find(u=>u.id===e.term.id)),r=a.computed(()=>n.value?n.value.domain||n.value.variation.length>0?"w-1/3":"w-full":""),i=a.computed(()=>n.value?n.value.variation.length>0?"w-1/4":"w-3/4":""),o=a.computed(()=>n.value?n.value.domain?"w-2/4":"w-3/4":""),s=u=>e.glossary.filter(p=>u.some(m=>p.id===m)).map(p=>({id:p.id,term:p.term})),l=hu.useRouter(),c=u=>{l.hasRoute("glossary")&&l.push({path:"/glossary",query:{word:u}})};return(u,d)=>(a.openBlock(),a.createElementBlock("div",lR,[n.value?(a.openBlock(),a.createElementBlock("div",cR,[a.createElementVNode("div",uR,[a.createElementVNode("h2",dR,a.toDisplayString(n.value.term),1),a.createElementVNode("div",pR,[a.createElementVNode("div",{class:a.normalizeClass(r.value)},[a.createElementVNode("p",mR,a.toDisplayString(u.labels.information),1),a.createElementVNode("div",_R,a.toDisplayString(n.value.graminfo),1)],2),n.value.domain?(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(i.value)},[a.createElementVNode("p",gR,a.toDisplayString(u.labels.domain),1),a.createElementVNode("div",hR,a.toDisplayString(n.value.domain),1)],2)):a.createCommentVNode("",!0),n.value.variation.length>0?(a.openBlock(),a.createElementBlock("div",{key:1,class:a.normalizeClass(o.value)},[a.createElementVNode("p",bR,a.toDisplayString(u.labels.variations),1),a.createElementVNode("div",fR,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.value.variation,(p,m)=>(a.openBlock(),a.createElementBlock("span",{key:`v-${m}`},a.toDisplayString(p)+a.toDisplayString(n.value.variation.length>m+1?", ":"."),1))),128))])],2)):a.createCommentVNode("",!0)]),n.value.img?(a.openBlock(),a.createElementBlock("div",SR,[a.createElementVNode("div",{class:"px-2 py-6",innerHTML:a.unref(Qe)(n.value.definition)},null,8,vR),a.createElementVNode("img",{class:"h-60",src:n.value.img,alt:`Image du terme ${n.value.term}`},null,8,yR)])):(a.openBlock(),a.createElementBlock("div",{key:0,class:"px-2 py-6",innerHTML:a.unref(Qe)(n.value.definition)},null,8,ER)),a.createElementVNode("div",null,[n.value.relation.length>0?(a.openBlock(),a.createElementBlock("div",TR,[a.createElementVNode("p",CR,a.toDisplayString(u.labels.relations),1),a.createElementVNode("div",RR,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(s(n.value.relation),(p,m)=>(a.openBlock(),a.createElementBlock("button",{key:`relation-${m}`,class:"p-1 border rounded mr-1",onClick:g=>c(p.term)},a.toDisplayString(p.term),9,NR))),128))])])):a.createCommentVNode("",!0)])])])):(a.openBlock(),a.createElementBlock("div",AR,a.toDisplayString(u.labels.definition),1))]))}}),ro=Object.freeze(Object.defineProperty({__proto__:null,default:Op},Symbol.toStringTag,{value:"Module"})),OR={},kR={class:"duotone-filters h-0",xmlns:"http://www.w3.org/2000/svg"},xR=[a.createStaticVNode(`<filter id="duotone-bluered"><feColorMatrix type="matrix" result="grayscale" values="1 0 0 0 0
|
|
304
304
|
1 0 0 0 0
|
|
305
305
|
1 0 0 0 0
|
|
306
306
|
0 0 0 1 0"></feColorMatrix><feComponentTransfer color-interpolation-filters="sRGB" result="duotone"><feFuncR type="table" tableValues="0.0 0.9608"></feFuncR><feFuncG type="table" tableValues="0.2784 0.2627"></feFuncG><feFuncB type="table" tableValues="0.5255 0.2118"></feFuncB><feFuncA type="table" tableValues="0 1"></feFuncA></feComponentTransfer></filter><filter id="duotone-dark-blue"><feColorMatrix type="matrix" result="gray" values="0.2126 0.7152 0.0722 0 0
|