Files
livecodingfr/_app/immutable/nodes/2.588af664.js
Bubobubobubobubo 7901a0ab67 deploy: 534c3e7515
2023-11-03 16:47:52 +00:00

48 lines
73 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

var fn=Object.defineProperty;var dn=(a,e,n)=>e in a?fn(a,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):a[e]=n;var B=(a,e,n)=>(dn(a,typeof e!="symbol"?e+"":e,n),n),gn=(a,e,n)=>{if(!e.has(a))throw TypeError("Cannot "+n)};var vt=(a,e,n)=>{if(e.has(a))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(a):e.set(a,n)};var nt=(a,e,n)=>(gn(a,e,"access private method"),n);import{s as Y,n as V,o as mn,f as Ne,r as kn}from"../chunks/scheduler.63274e7e.js";import{S as J,i as ee,g as x,y as _t,s as E,H as xn,h as b,j as q,z as wt,f as d,c as z,A as bn,k as m,a as I,x as g,r as ne,B as S,u as ie,v as se,d as D,t as O,w as le,m as X,n as W,o as ge,e as Qt,p as Ze,b as Qe,C as Xe,q as Ft,D as F}from"../chunks/index.cd69a05d.js";function he(a){return(a==null?void 0:a.length)!==void 0?a:Array.from(a)}function $t(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}let Re=$t();function on(a){Re=a}const cn=/[&<>"']/,vn=new RegExp(cn.source,"g"),un=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,_n=new RegExp(un.source,"g"),wn={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Ut=a=>wn[a];function te(a,e){if(e){if(cn.test(a))return a.replace(vn,Ut)}else if(un.test(a))return a.replace(_n,Ut);return a}const yn=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function Cn(a){return a.replace(yn,(e,n)=>(n=n.toLowerCase(),n==="colon"?":":n.charAt(0)==="#"?n.charAt(1)==="x"?String.fromCharCode(parseInt(n.substring(2),16)):String.fromCharCode(+n.substring(1)):""))}const $n=/(^|[^\[])\^/g;function P(a,e){a=typeof a=="string"?a:a.source,e=e||"";const n={replace:(t,s)=>(s=typeof s=="object"&&"source"in s?s.source:s,s=s.replace($n,"$1"),a=a.replace(t,s),n),getRegex:()=>new RegExp(a,e)};return n}function Gt(a){try{a=encodeURI(a).replace(/%25/g,"%")}catch{return null}return a}const lt={exec:()=>null};function Kt(a,e){const n=a.replace(/\|/g,(r,l,i)=>{let o=!1,c=l;for(;--c>=0&&i[c]==="\\";)o=!o;return o?"|":" |"}),t=n.split(/ \|/);let s=0;if(t[0].trim()||t.shift(),t.length>0&&!t[t.length-1].trim()&&t.pop(),e)if(t.length>e)t.splice(e);else for(;t.length<e;)t.push("");for(;s<t.length;s++)t[s]=t[s].trim().replace(/\\\|/g,"|");return t}function st(a,e,n){const t=a.length;if(t===0)return"";let s=0;for(;s<t;){const r=a.charAt(t-s-1);if(r===e&&!n)s++;else if(r!==e&&n)s++;else break}return a.slice(0,t-s)}function Tn(a,e){if(a.indexOf(e[1])===-1)return-1;let n=0;for(let t=0;t<a.length;t++)if(a[t]==="\\")t++;else if(a[t]===e[0])n++;else if(a[t]===e[1]&&(n--,n<0))return t;return-1}function Xt(a,e,n,t){const s=e.href,r=e.title?te(e.title):null,l=a[1].replace(/\\([\[\]])/g,"$1");if(a[0].charAt(0)!=="!"){t.state.inLink=!0;const i={type:"link",raw:n,href:s,title:r,text:l,tokens:t.inlineTokens(l)};return t.state.inLink=!1,i}return{type:"image",raw:n,href:s,title:r,text:te(l)}}function An(a,e){const n=a.match(/^(\s+)(?:```)/);if(n===null)return e;const t=n[1];return e.split(`
`).map(s=>{const r=s.match(/^\s+/);if(r===null)return s;const[l]=r;return l.length>=t.length?s.slice(t.length):s}).join(`
`)}class rt{constructor(e){B(this,"options");B(this,"rules");B(this,"lexer");this.options=e||Re}space(e){const n=this.rules.block.newline.exec(e);if(n&&n[0].length>0)return{type:"space",raw:n[0]}}code(e){const n=this.rules.block.code.exec(e);if(n){const t=n[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:n[0],codeBlockStyle:"indented",text:this.options.pedantic?t:st(t,`
`)}}}fences(e){const n=this.rules.block.fences.exec(e);if(n){const t=n[0],s=An(t,n[3]||"");return{type:"code",raw:t,lang:n[2]?n[2].trim().replace(this.rules.inline._escapes,"$1"):n[2],text:s}}}heading(e){const n=this.rules.block.heading.exec(e);if(n){let t=n[2].trim();if(/#$/.test(t)){const s=st(t,"#");(this.options.pedantic||!s||/ $/.test(s))&&(t=s.trim())}return{type:"heading",raw:n[0],depth:n[1].length,text:t,tokens:this.lexer.inline(t)}}}hr(e){const n=this.rules.block.hr.exec(e);if(n)return{type:"hr",raw:n[0]}}blockquote(e){const n=this.rules.block.blockquote.exec(e);if(n){const t=st(n[0].replace(/^ *>[ \t]?/gm,""),`
`),s=this.lexer.state.top;this.lexer.state.top=!0;const r=this.lexer.blockTokens(t);return this.lexer.state.top=s,{type:"blockquote",raw:n[0],tokens:r,text:t}}}list(e){let n=this.rules.block.list.exec(e);if(n){let t=n[1].trim();const s=t.length>1,r={type:"list",raw:"",ordered:s,start:s?+t.slice(0,-1):"",loose:!1,items:[]};t=s?`\\d{1,9}\\${t.slice(-1)}`:`\\${t}`,this.options.pedantic&&(t=s?t:"[*+-]");const l=new RegExp(`^( {0,3}${t})((?:[ ][^\\n]*)?(?:\\n|$))`);let i="",o="",c=!1;for(;e;){let u=!1;if(!(n=l.exec(e))||this.rules.block.hr.test(e))break;i=n[0],e=e.substring(i.length);let h=n[2].split(`
`,1)[0].replace(/^\t+/,R=>" ".repeat(3*R.length)),p=e.split(`
`,1)[0],T=0;this.options.pedantic?(T=2,o=h.trimStart()):(T=n[2].search(/[^ ]/),T=T>4?1:T,o=h.slice(T),T+=n[1].length);let _=!1;if(!h&&/^ *$/.test(p)&&(i+=p+`
`,e=e.substring(p.length+1),u=!0),!u){const R=new RegExp(`^ {0,${Math.min(3,T-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),v=new RegExp(`^ {0,${Math.min(3,T-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),y=new RegExp(`^ {0,${Math.min(3,T-1)}}(?:\`\`\`|~~~)`),M=new RegExp(`^ {0,${Math.min(3,T-1)}}#`);for(;e;){const f=e.split(`
`,1)[0];if(p=f,this.options.pedantic&&(p=p.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),y.test(p)||M.test(p)||R.test(p)||v.test(e))break;if(p.search(/[^ ]/)>=T||!p.trim())o+=`
`+p.slice(T);else{if(_||h.search(/[^ ]/)>=4||y.test(h)||M.test(h)||v.test(h))break;o+=`
`+p}!_&&!p.trim()&&(_=!0),i+=f+`
`,e=e.substring(f.length+1),h=p.slice(T)}}r.loose||(c?r.loose=!0:/\n *\n *$/.test(i)&&(c=!0));let k=null,w;this.options.gfm&&(k=/^\[[ xX]\] /.exec(o),k&&(w=k[0]!=="[ ] ",o=o.replace(/^\[[ xX]\] +/,""))),r.items.push({type:"list_item",raw:i,task:!!k,checked:w,loose:!1,text:o,tokens:[]}),r.raw+=i}r.items[r.items.length-1].raw=i.trimEnd(),r.items[r.items.length-1].text=o.trimEnd(),r.raw=r.raw.trimEnd();for(let u=0;u<r.items.length;u++)if(this.lexer.state.top=!1,r.items[u].tokens=this.lexer.blockTokens(r.items[u].text,[]),!r.loose){const h=r.items[u].tokens.filter(T=>T.type==="space"),p=h.length>0&&h.some(T=>/\n.*\n/.test(T.raw));r.loose=p}if(r.loose)for(let u=0;u<r.items.length;u++)r.items[u].loose=!0;return r}}html(e){const n=this.rules.block.html.exec(e);if(n)return{type:"html",block:!0,raw:n[0],pre:n[1]==="pre"||n[1]==="script"||n[1]==="style",text:n[0]}}def(e){const n=this.rules.block.def.exec(e);if(n){const t=n[1].toLowerCase().replace(/\s+/g," "),s=n[2]?n[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline._escapes,"$1"):"",r=n[3]?n[3].substring(1,n[3].length-1).replace(this.rules.inline._escapes,"$1"):n[3];return{type:"def",tag:t,raw:n[0],href:s,title:r}}}table(e){const n=this.rules.block.table.exec(e);if(n){if(!/[:|]/.test(n[2]))return;const t={type:"table",raw:n[0],header:Kt(n[1]).map(s=>({text:s,tokens:[]})),align:n[2].replace(/^\||\| *$/g,"").split("|"),rows:n[3]&&n[3].trim()?n[3].replace(/\n[ \t]*$/,"").split(`
`):[]};if(t.header.length===t.align.length){let s=t.align.length,r,l,i,o;for(r=0;r<s;r++){const c=t.align[r];c&&(/^ *-+: *$/.test(c)?t.align[r]="right":/^ *:-+: *$/.test(c)?t.align[r]="center":/^ *:-+ *$/.test(c)?t.align[r]="left":t.align[r]=null)}for(s=t.rows.length,r=0;r<s;r++)t.rows[r]=Kt(t.rows[r],t.header.length).map(c=>({text:c,tokens:[]}));for(s=t.header.length,l=0;l<s;l++)t.header[l].tokens=this.lexer.inline(t.header[l].text);for(s=t.rows.length,l=0;l<s;l++)for(o=t.rows[l],i=0;i<o.length;i++)o[i].tokens=this.lexer.inline(o[i].text);return t}}}lheading(e){const n=this.rules.block.lheading.exec(e);if(n)return{type:"heading",raw:n[0],depth:n[2].charAt(0)==="="?1:2,text:n[1],tokens:this.lexer.inline(n[1])}}paragraph(e){const n=this.rules.block.paragraph.exec(e);if(n){const t=n[1].charAt(n[1].length-1)===`
`?n[1].slice(0,-1):n[1];return{type:"paragraph",raw:n[0],text:t,tokens:this.lexer.inline(t)}}}text(e){const n=this.rules.block.text.exec(e);if(n)return{type:"text",raw:n[0],text:n[0],tokens:this.lexer.inline(n[0])}}escape(e){const n=this.rules.inline.escape.exec(e);if(n)return{type:"escape",raw:n[0],text:te(n[1])}}tag(e){const n=this.rules.inline.tag.exec(e);if(n)return!this.lexer.state.inLink&&/^<a /i.test(n[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(n[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(n[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(n[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:n[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:n[0]}}link(e){const n=this.rules.inline.link.exec(e);if(n){const t=n[2].trim();if(!this.options.pedantic&&/^</.test(t)){if(!/>$/.test(t))return;const l=st(t.slice(0,-1),"\\");if((t.length-l.length)%2===0)return}else{const l=Tn(n[2],"()");if(l>-1){const o=(n[0].indexOf("!")===0?5:4)+n[1].length+l;n[2]=n[2].substring(0,l),n[0]=n[0].substring(0,o).trim(),n[3]=""}}let s=n[2],r="";if(this.options.pedantic){const l=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(s);l&&(s=l[1],r=l[3])}else r=n[3]?n[3].slice(1,-1):"";return s=s.trim(),/^</.test(s)&&(this.options.pedantic&&!/>$/.test(t)?s=s.slice(1):s=s.slice(1,-1)),Xt(n,{href:s&&s.replace(this.rules.inline._escapes,"$1"),title:r&&r.replace(this.rules.inline._escapes,"$1")},n[0],this.lexer)}}reflink(e,n){let t;if((t=this.rules.inline.reflink.exec(e))||(t=this.rules.inline.nolink.exec(e))){let s=(t[2]||t[1]).replace(/\s+/g," ");if(s=n[s.toLowerCase()],!s){const r=t[0].charAt(0);return{type:"text",raw:r,text:r}}return Xt(t,s,t[0],this.lexer)}}emStrong(e,n,t=""){let s=this.rules.inline.emStrong.lDelim.exec(e);if(!s||s[3]&&t.match(/[\p{L}\p{N}]/u))return;if(!(s[1]||s[2]||"")||!t||this.rules.inline.punctuation.exec(t)){const l=[...s[0]].length-1;let i,o,c=l,u=0;const h=s[0][0]==="*"?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(h.lastIndex=0,n=n.slice(-1*e.length+l);(s=h.exec(n))!=null;){if(i=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!i)continue;if(o=[...i].length,s[3]||s[4]){c+=o;continue}else if((s[5]||s[6])&&l%3&&!((l+o)%3)){u+=o;continue}if(c-=o,c>0)continue;o=Math.min(o,o+c+u);const p=[...s[0]][0].length,T=e.slice(0,l+s.index+p+o);if(Math.min(l,o)%2){const k=T.slice(1,-1);return{type:"em",raw:T,text:k,tokens:this.lexer.inlineTokens(k)}}const _=T.slice(2,-2);return{type:"strong",raw:T,text:_,tokens:this.lexer.inlineTokens(_)}}}}codespan(e){const n=this.rules.inline.code.exec(e);if(n){let t=n[2].replace(/\n/g," ");const s=/[^ ]/.test(t),r=/^ /.test(t)&&/ $/.test(t);return s&&r&&(t=t.substring(1,t.length-1)),t=te(t,!0),{type:"codespan",raw:n[0],text:t}}}br(e){const n=this.rules.inline.br.exec(e);if(n)return{type:"br",raw:n[0]}}del(e){const n=this.rules.inline.del.exec(e);if(n)return{type:"del",raw:n[0],text:n[2],tokens:this.lexer.inlineTokens(n[2])}}autolink(e){const n=this.rules.inline.autolink.exec(e);if(n){let t,s;return n[2]==="@"?(t=te(n[1]),s="mailto:"+t):(t=te(n[1]),s=t),{type:"link",raw:n[0],text:t,href:s,tokens:[{type:"text",raw:t,text:t}]}}}url(e){let n;if(n=this.rules.inline.url.exec(e)){let t,s;if(n[2]==="@")t=te(n[0]),s="mailto:"+t;else{let r;do r=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])[0];while(r!==n[0]);t=te(n[0]),n[1]==="www."?s="http://"+n[0]:s=n[0]}return{type:"link",raw:n[0],text:t,href:s,tokens:[{type:"text",raw:t,text:t}]}}}inlineText(e){const n=this.rules.inline.text.exec(e);if(n){let t;return this.lexer.state.inRawBlock?t=n[0]:t=te(n[0]),{type:"text",raw:n[0],text:t}}}}const L={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:lt,lheading:/^(?!bull )((?:.|\n(?!\s*?\n|bull ))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/};L._label=/(?!\s*\])(?:\\.|[^\[\]\\])+/;L._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/;L.def=P(L.def).replace("label",L._label).replace("title",L._title).getRegex();L.bullet=/(?:[*+-]|\d{1,9}[.)])/;L.listItemStart=P(/^( *)(bull) */).replace("bull",L.bullet).getRegex();L.list=P(L.list).replace(/bull/g,L.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+L.def.source+")").getRegex();L._tag="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|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul";L._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/;L.html=P(L.html,"i").replace("comment",L._comment).replace("tag",L._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex();L.lheading=P(L.lheading).replace(/bull/g,L.bullet).getRegex();L.paragraph=P(L._paragraph).replace("hr",L.hr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",L._tag).getRegex();L.blockquote=P(L.blockquote).replace("paragraph",L.paragraph).getRegex();L.normal={...L};L.gfm={...L.normal,table:"^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"};L.gfm.table=P(L.gfm.table).replace("hr",L.hr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",L._tag).getRegex();L.gfm.paragraph=P(L._paragraph).replace("hr",L.hr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",L.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",L._tag).getRegex();L.pedantic={...L.normal,html:P(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",L._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:lt,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:P(L.normal._paragraph).replace("hr",L.hr).replace("heading",` *#{1,6} *[^
]`).replace("lheading",L.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()};const $={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:lt,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,rDelimAst:/^[^_*]*?__[^_*]*?\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\*)[punct](\*+)(?=[\s]|$)|[^punct\s](\*+)(?!\*)(?=[punct\s]|$)|(?!\*)[punct\s](\*+)(?=[^punct\s])|[\s](\*+)(?!\*)(?=[punct])|(?!\*)[punct](\*+)(?!\*)(?=[punct])|[^punct\s](\*+)(?=[^punct\s])/,rDelimUnd:/^[^_*]*?\*\*[^_*]*?_[^_*]*?(?=\*\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\s]|$)|[^punct\s](_+)(?!_)(?=[punct\s]|$)|(?!_)[punct\s](_+)(?=[^punct\s])|[\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:lt,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^((?![*_])[\spunctuation])/};$._punctuation="\\p{P}$+<=>`^|~";$.punctuation=P($.punctuation,"u").replace(/punctuation/g,$._punctuation).getRegex();$.blockSkip=/\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g;$.anyPunctuation=/\\[punct]/g;$._escapes=/\\([punct])/g;$._comment=P(L._comment).replace("(?:-->|$)","-->").getRegex();$.emStrong.lDelim=P($.emStrong.lDelim,"u").replace(/punct/g,$._punctuation).getRegex();$.emStrong.rDelimAst=P($.emStrong.rDelimAst,"gu").replace(/punct/g,$._punctuation).getRegex();$.emStrong.rDelimUnd=P($.emStrong.rDelimUnd,"gu").replace(/punct/g,$._punctuation).getRegex();$.anyPunctuation=P($.anyPunctuation,"gu").replace(/punct/g,$._punctuation).getRegex();$._escapes=P($._escapes,"gu").replace(/punct/g,$._punctuation).getRegex();$._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/;$._email=/[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])?)+(?![-_])/;$.autolink=P($.autolink).replace("scheme",$._scheme).replace("email",$._email).getRegex();$._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/;$.tag=P($.tag).replace("comment",$._comment).replace("attribute",$._attribute).getRegex();$._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/;$._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/;$._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/;$.link=P($.link).replace("label",$._label).replace("href",$._href).replace("title",$._title).getRegex();$.reflink=P($.reflink).replace("label",$._label).replace("ref",L._label).getRegex();$.nolink=P($.nolink).replace("ref",L._label).getRegex();$.reflinkSearch=P($.reflinkSearch,"g").replace("reflink",$.reflink).replace("nolink",$.nolink).getRegex();$.normal={...$};$.pedantic={...$.normal,strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:P(/^!?\[(label)\]\((.*?)\)/).replace("label",$._label).getRegex(),reflink:P(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",$._label).getRegex()};$.gfm={...$.normal,escape:P($.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/};$.gfm.url=P($.gfm.url,"i").replace("email",$.gfm._extended_email).getRegex();$.breaks={...$.gfm,br:P($.br).replace("{2,}","*").getRegex(),text:P($.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()};class pe{constructor(e){B(this,"tokens");B(this,"options");B(this,"state");B(this,"tokenizer");B(this,"inlineQueue");this.tokens=[],this.tokens.links=Object.create(null),this.options=e||Re,this.options.tokenizer=this.options.tokenizer||new rt,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const n={block:L.normal,inline:$.normal};this.options.pedantic?(n.block=L.pedantic,n.inline=$.pedantic):this.options.gfm&&(n.block=L.gfm,this.options.breaks?n.inline=$.breaks:n.inline=$.gfm),this.tokenizer.rules=n}static get rules(){return{block:L,inline:$}}static lex(e,n){return new pe(n).lex(e)}static lexInline(e,n){return new pe(n).inlineTokens(e)}lex(e){e=e.replace(/\r\n|\r/g,`
`),this.blockTokens(e,this.tokens);let n;for(;n=this.inlineQueue.shift();)this.inlineTokens(n.src,n.tokens);return this.tokens}blockTokens(e,n=[]){this.options.pedantic?e=e.replace(/\t/g," ").replace(/^ +$/gm,""):e=e.replace(/^( *)(\t+)/gm,(i,o,c)=>o+" ".repeat(c.length));let t,s,r,l;for(;e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(i=>(t=i.call({lexer:this},e,n))?(e=e.substring(t.raw.length),n.push(t),!0):!1))){if(t=this.tokenizer.space(e)){e=e.substring(t.raw.length),t.raw.length===1&&n.length>0?n[n.length-1].raw+=`
`:n.push(t);continue}if(t=this.tokenizer.code(e)){e=e.substring(t.raw.length),s=n[n.length-1],s&&(s.type==="paragraph"||s.type==="text")?(s.raw+=`
`+t.raw,s.text+=`
`+t.text,this.inlineQueue[this.inlineQueue.length-1].src=s.text):n.push(t);continue}if(t=this.tokenizer.fences(e)){e=e.substring(t.raw.length),n.push(t);continue}if(t=this.tokenizer.heading(e)){e=e.substring(t.raw.length),n.push(t);continue}if(t=this.tokenizer.hr(e)){e=e.substring(t.raw.length),n.push(t);continue}if(t=this.tokenizer.blockquote(e)){e=e.substring(t.raw.length),n.push(t);continue}if(t=this.tokenizer.list(e)){e=e.substring(t.raw.length),n.push(t);continue}if(t=this.tokenizer.html(e)){e=e.substring(t.raw.length),n.push(t);continue}if(t=this.tokenizer.def(e)){e=e.substring(t.raw.length),s=n[n.length-1],s&&(s.type==="paragraph"||s.type==="text")?(s.raw+=`
`+t.raw,s.text+=`
`+t.raw,this.inlineQueue[this.inlineQueue.length-1].src=s.text):this.tokens.links[t.tag]||(this.tokens.links[t.tag]={href:t.href,title:t.title});continue}if(t=this.tokenizer.table(e)){e=e.substring(t.raw.length),n.push(t);continue}if(t=this.tokenizer.lheading(e)){e=e.substring(t.raw.length),n.push(t);continue}if(r=e,this.options.extensions&&this.options.extensions.startBlock){let i=1/0;const o=e.slice(1);let c;this.options.extensions.startBlock.forEach(u=>{c=u.call({lexer:this},o),typeof c=="number"&&c>=0&&(i=Math.min(i,c))}),i<1/0&&i>=0&&(r=e.substring(0,i+1))}if(this.state.top&&(t=this.tokenizer.paragraph(r))){s=n[n.length-1],l&&s.type==="paragraph"?(s.raw+=`
`+t.raw,s.text+=`
`+t.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=s.text):n.push(t),l=r.length!==e.length,e=e.substring(t.raw.length);continue}if(t=this.tokenizer.text(e)){e=e.substring(t.raw.length),s=n[n.length-1],s&&s.type==="text"?(s.raw+=`
`+t.raw,s.text+=`
`+t.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=s.text):n.push(t);continue}if(e){const i="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(i);break}else throw new Error(i)}}return this.state.top=!0,n}inline(e,n=[]){return this.inlineQueue.push({src:e,tokens:n}),n}inlineTokens(e,n=[]){let t,s,r,l=e,i,o,c;if(this.tokens.links){const u=Object.keys(this.tokens.links);if(u.length>0)for(;(i=this.tokenizer.rules.inline.reflinkSearch.exec(l))!=null;)u.includes(i[0].slice(i[0].lastIndexOf("[")+1,-1))&&(l=l.slice(0,i.index)+"["+"a".repeat(i[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(i=this.tokenizer.rules.inline.blockSkip.exec(l))!=null;)l=l.slice(0,i.index)+"["+"a".repeat(i[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(i=this.tokenizer.rules.inline.anyPunctuation.exec(l))!=null;)l=l.slice(0,i.index)+"++"+l.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;e;)if(o||(c=""),o=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(u=>(t=u.call({lexer:this},e,n))?(e=e.substring(t.raw.length),n.push(t),!0):!1))){if(t=this.tokenizer.escape(e)){e=e.substring(t.raw.length),n.push(t);continue}if(t=this.tokenizer.tag(e)){e=e.substring(t.raw.length),s=n[n.length-1],s&&t.type==="text"&&s.type==="text"?(s.raw+=t.raw,s.text+=t.text):n.push(t);continue}if(t=this.tokenizer.link(e)){e=e.substring(t.raw.length),n.push(t);continue}if(t=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(t.raw.length),s=n[n.length-1],s&&t.type==="text"&&s.type==="text"?(s.raw+=t.raw,s.text+=t.text):n.push(t);continue}if(t=this.tokenizer.emStrong(e,l,c)){e=e.substring(t.raw.length),n.push(t);continue}if(t=this.tokenizer.codespan(e)){e=e.substring(t.raw.length),n.push(t);continue}if(t=this.tokenizer.br(e)){e=e.substring(t.raw.length),n.push(t);continue}if(t=this.tokenizer.del(e)){e=e.substring(t.raw.length),n.push(t);continue}if(t=this.tokenizer.autolink(e)){e=e.substring(t.raw.length),n.push(t);continue}if(!this.state.inLink&&(t=this.tokenizer.url(e))){e=e.substring(t.raw.length),n.push(t);continue}if(r=e,this.options.extensions&&this.options.extensions.startInline){let u=1/0;const h=e.slice(1);let p;this.options.extensions.startInline.forEach(T=>{p=T.call({lexer:this},h),typeof p=="number"&&p>=0&&(u=Math.min(u,p))}),u<1/0&&u>=0&&(r=e.substring(0,u+1))}if(t=this.tokenizer.inlineText(r)){e=e.substring(t.raw.length),t.raw.slice(-1)!=="_"&&(c=t.raw.slice(-1)),o=!0,s=n[n.length-1],s&&s.type==="text"?(s.raw+=t.raw,s.text+=t.text):n.push(t);continue}if(e){const u="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(u);break}else throw new Error(u)}}return n}}class it{constructor(e){B(this,"options");this.options=e||Re}code(e,n,t){var r;const s=(r=(n||"").match(/^\S*/))==null?void 0:r[0];return e=e.replace(/\n$/,"")+`
`,s?'<pre><code class="language-'+te(s)+'">'+(t?e:te(e,!0))+`</code></pre>
`:"<pre><code>"+(t?e:te(e,!0))+`</code></pre>
`}blockquote(e){return`<blockquote>
${e}</blockquote>
`}html(e,n){return e}heading(e,n,t){return`<h${n}>${e}</h${n}>
`}hr(){return`<hr>
`}list(e,n,t){const s=n?"ol":"ul",r=n&&t!==1?' start="'+t+'"':"";return"<"+s+r+`>
`+e+"</"+s+`>
`}listitem(e,n,t){return`<li>${e}</li>
`}checkbox(e){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph(e){return`<p>${e}</p>
`}table(e,n){return n&&(n=`<tbody>${n}</tbody>`),`<table>
<thead>
`+e+`</thead>
`+n+`</table>
`}tablerow(e){return`<tr>
${e}</tr>
`}tablecell(e,n){const t=n.header?"th":"td";return(n.align?`<${t} align="${n.align}">`:`<${t}>`)+e+`</${t}>
`}strong(e){return`<strong>${e}</strong>`}em(e){return`<em>${e}</em>`}codespan(e){return`<code>${e}</code>`}br(){return"<br>"}del(e){return`<del>${e}</del>`}link(e,n,t){const s=Gt(e);if(s===null)return t;e=s;let r='<a href="'+e+'"';return n&&(r+=' title="'+n+'"'),r+=">"+t+"</a>",r}image(e,n,t){const s=Gt(e);if(s===null)return t;e=s;let r=`<img src="${e}" alt="${t}"`;return n&&(r+=` title="${n}"`),r+=">",r}text(e){return e}}class Tt{strong(e){return e}em(e){return e}codespan(e){return e}del(e){return e}html(e){return e}text(e){return e}link(e,n,t){return""+t}image(e,n,t){return""+t}br(){return""}}class fe{constructor(e){B(this,"options");B(this,"renderer");B(this,"textRenderer");this.options=e||Re,this.options.renderer=this.options.renderer||new it,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Tt}static parse(e,n){return new fe(n).parse(e)}static parseInline(e,n){return new fe(n).parseInline(e)}parse(e,n=!0){let t="";for(let s=0;s<e.length;s++){const r=e[s];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[r.type]){const l=r,i=this.options.extensions.renderers[l.type].call({parser:this},l);if(i!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(l.type)){t+=i||"";continue}}switch(r.type){case"space":continue;case"hr":{t+=this.renderer.hr();continue}case"heading":{const l=r;t+=this.renderer.heading(this.parseInline(l.tokens),l.depth,Cn(this.parseInline(l.tokens,this.textRenderer)));continue}case"code":{const l=r;t+=this.renderer.code(l.text,l.lang,!!l.escaped);continue}case"table":{const l=r;let i="",o="";for(let u=0;u<l.header.length;u++)o+=this.renderer.tablecell(this.parseInline(l.header[u].tokens),{header:!0,align:l.align[u]});i+=this.renderer.tablerow(o);let c="";for(let u=0;u<l.rows.length;u++){const h=l.rows[u];o="";for(let p=0;p<h.length;p++)o+=this.renderer.tablecell(this.parseInline(h[p].tokens),{header:!1,align:l.align[p]});c+=this.renderer.tablerow(o)}t+=this.renderer.table(i,c);continue}case"blockquote":{const l=r,i=this.parse(l.tokens);t+=this.renderer.blockquote(i);continue}case"list":{const l=r,i=l.ordered,o=l.start,c=l.loose;let u="";for(let h=0;h<l.items.length;h++){const p=l.items[h],T=p.checked,_=p.task;let k="";if(p.task){const w=this.renderer.checkbox(!!T);c?p.tokens.length>0&&p.tokens[0].type==="paragraph"?(p.tokens[0].text=w+" "+p.tokens[0].text,p.tokens[0].tokens&&p.tokens[0].tokens.length>0&&p.tokens[0].tokens[0].type==="text"&&(p.tokens[0].tokens[0].text=w+" "+p.tokens[0].tokens[0].text)):p.tokens.unshift({type:"text",text:w+" "}):k+=w+" "}k+=this.parse(p.tokens,c),u+=this.renderer.listitem(k,_,!!T)}t+=this.renderer.list(u,i,o);continue}case"html":{const l=r;t+=this.renderer.html(l.text,l.block);continue}case"paragraph":{const l=r;t+=this.renderer.paragraph(this.parseInline(l.tokens));continue}case"text":{let l=r,i=l.tokens?this.parseInline(l.tokens):l.text;for(;s+1<e.length&&e[s+1].type==="text";)l=e[++s],i+=`
`+(l.tokens?this.parseInline(l.tokens):l.text);t+=n?this.renderer.paragraph(i):i;continue}default:{const l='Token with "'+r.type+'" type was not found.';if(this.options.silent)return console.error(l),"";throw new Error(l)}}}return t}parseInline(e,n){n=n||this.renderer;let t="";for(let s=0;s<e.length;s++){const r=e[s];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[r.type]){const l=this.options.extensions.renderers[r.type].call({parser:this},r);if(l!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(r.type)){t+=l||"";continue}}switch(r.type){case"escape":{const l=r;t+=n.text(l.text);break}case"html":{const l=r;t+=n.html(l.text);break}case"link":{const l=r;t+=n.link(l.href,l.title,this.parseInline(l.tokens,n));break}case"image":{const l=r;t+=n.image(l.href,l.title,l.text);break}case"strong":{const l=r;t+=n.strong(this.parseInline(l.tokens,n));break}case"em":{const l=r;t+=n.em(this.parseInline(l.tokens,n));break}case"codespan":{const l=r;t+=n.codespan(l.text);break}case"br":{t+=n.br();break}case"del":{const l=r;t+=n.del(this.parseInline(l.tokens,n));break}case"text":{const l=r;t+=n.text(l.text);break}default:{const l='Token with "'+r.type+'" type was not found.';if(this.options.silent)return console.error(l),"";throw new Error(l)}}}return t}}class Ke{constructor(e){B(this,"options");this.options=e||Re}preprocess(e){return e}postprocess(e){return e}}B(Ke,"passThroughHooks",new Set(["preprocess","postprocess"]));var We,yt,at,hn;class En{constructor(...e){vt(this,We);vt(this,at);B(this,"defaults",$t());B(this,"options",this.setOptions);B(this,"parse",nt(this,We,yt).call(this,pe.lex,fe.parse));B(this,"parseInline",nt(this,We,yt).call(this,pe.lexInline,fe.parseInline));B(this,"Parser",fe);B(this,"parser",fe.parse);B(this,"Renderer",it);B(this,"TextRenderer",Tt);B(this,"Lexer",pe);B(this,"lexer",pe.lex);B(this,"Tokenizer",rt);B(this,"Hooks",Ke);this.use(...e)}walkTokens(e,n){var s,r;let t=[];for(const l of e)switch(t=t.concat(n.call(this,l)),l.type){case"table":{const i=l;for(const o of i.header)t=t.concat(this.walkTokens(o.tokens,n));for(const o of i.rows)for(const c of o)t=t.concat(this.walkTokens(c.tokens,n));break}case"list":{const i=l;t=t.concat(this.walkTokens(i.items,n));break}default:{const i=l;(r=(s=this.defaults.extensions)==null?void 0:s.childTokens)!=null&&r[i.type]?this.defaults.extensions.childTokens[i.type].forEach(o=>{t=t.concat(this.walkTokens(i[o],n))}):i.tokens&&(t=t.concat(this.walkTokens(i.tokens,n)))}}return t}use(...e){const n=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(t=>{const s={...t};if(s.async=this.defaults.async||s.async||!1,t.extensions&&(t.extensions.forEach(r=>{if(!r.name)throw new Error("extension name required");if("renderer"in r){const l=n.renderers[r.name];l?n.renderers[r.name]=function(...i){let o=r.renderer.apply(this,i);return o===!1&&(o=l.apply(this,i)),o}:n.renderers[r.name]=r.renderer}if("tokenizer"in r){if(!r.level||r.level!=="block"&&r.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const l=n[r.level];l?l.unshift(r.tokenizer):n[r.level]=[r.tokenizer],r.start&&(r.level==="block"?n.startBlock?n.startBlock.push(r.start):n.startBlock=[r.start]:r.level==="inline"&&(n.startInline?n.startInline.push(r.start):n.startInline=[r.start]))}"childTokens"in r&&r.childTokens&&(n.childTokens[r.name]=r.childTokens)}),s.extensions=n),t.renderer){const r=this.defaults.renderer||new it(this.defaults);for(const l in t.renderer){const i=t.renderer[l],o=l,c=r[o];r[o]=(...u)=>{let h=i.apply(r,u);return h===!1&&(h=c.apply(r,u)),h||""}}s.renderer=r}if(t.tokenizer){const r=this.defaults.tokenizer||new rt(this.defaults);for(const l in t.tokenizer){const i=t.tokenizer[l],o=l,c=r[o];r[o]=(...u)=>{let h=i.apply(r,u);return h===!1&&(h=c.apply(r,u)),h}}s.tokenizer=r}if(t.hooks){const r=this.defaults.hooks||new Ke;for(const l in t.hooks){const i=t.hooks[l],o=l,c=r[o];Ke.passThroughHooks.has(l)?r[o]=u=>{if(this.defaults.async)return Promise.resolve(i.call(r,u)).then(p=>c.call(r,p));const h=i.call(r,u);return c.call(r,h)}:r[o]=(...u)=>{let h=i.apply(r,u);return h===!1&&(h=c.apply(r,u)),h}}s.hooks=r}if(t.walkTokens){const r=this.defaults.walkTokens,l=t.walkTokens;s.walkTokens=function(i){let o=[];return o.push(l.call(this,i)),r&&(o=o.concat(r.call(this,i))),o}}this.defaults={...this.defaults,...s}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}}We=new WeakSet,yt=function(e,n){return(t,s)=>{const r={...s},l={...this.defaults,...r};this.defaults.async===!0&&r.async===!1&&(l.silent||console.warn("marked(): The async option was set to true by an extension. The async: false option sent to parse will be ignored."),l.async=!0);const i=nt(this,at,hn).call(this,!!l.silent,!!l.async);if(typeof t>"u"||t===null)return i(new Error("marked(): input parameter is undefined or null"));if(typeof t!="string")return i(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));if(l.hooks&&(l.hooks.options=l),l.async)return Promise.resolve(l.hooks?l.hooks.preprocess(t):t).then(o=>e(o,l)).then(o=>l.walkTokens?Promise.all(this.walkTokens(o,l.walkTokens)).then(()=>o):o).then(o=>n(o,l)).then(o=>l.hooks?l.hooks.postprocess(o):o).catch(i);try{l.hooks&&(t=l.hooks.preprocess(t));const o=e(t,l);l.walkTokens&&this.walkTokens(o,l.walkTokens);let c=n(o,l);return l.hooks&&(c=l.hooks.postprocess(c)),c}catch(o){return i(o)}}},at=new WeakSet,hn=function(e,n){return t=>{if(t.message+=`
Please report this to https://github.com/markedjs/marked.`,e){const s="<p>An error occurred:</p><pre>"+te(t.message+"",!0)+"</pre>";return n?Promise.resolve(s):s}if(n)return Promise.reject(t);throw t}};const Ie=new En;function H(a,e){return Ie.parse(a,e)}H.options=H.setOptions=function(a){return Ie.setOptions(a),H.defaults=Ie.defaults,on(H.defaults),H};H.getDefaults=$t;H.defaults=Re;H.use=function(...a){return Ie.use(...a),H.defaults=Ie.defaults,on(H.defaults),H};H.walkTokens=function(a,e){return Ie.walkTokens(a,e)};H.parseInline=Ie.parseInline;H.Parser=fe;H.parser=fe.parse;H.Renderer=it;H.TextRenderer=Tt;H.Lexer=pe;H.lexer=pe.lex;H.Tokenizer=rt;H.Hooks=Ke;H.parse=H;H.options;H.setOptions;H.use;H.walkTokens;H.parseInline;fe.parse;pe.lex;function zn(a){let e,n,t,s,r,l;return{c(){e=x("div"),n=_t("svg"),t=_t("path"),s=E(),r=x("span"),l=new xn(!1),this.h()},l(i){e=b(i,"DIV",{class:!0});var o=q(e);n=wt(o,"svg",{xmlns:!0,fill:!0,viewBox:!0,class:!0});var c=q(n);t=wt(c,"path",{"stroke-linecap":!0,"stroke-linejoin":!0,"stroke-width":!0,d:!0}),q(t).forEach(d),c.forEach(d),s=z(o),r=b(o,"SPAN",{class:!0});var u=q(r);l=bn(u,!1),u.forEach(d),o.forEach(d),this.h()},h(){m(t,"stroke-linecap","round"),m(t,"stroke-linejoin","round"),m(t,"stroke-width","2"),m(t,"d","M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"),m(n,"xmlns","http://www.w3.org/2000/svg"),m(n,"fill","none"),m(n,"viewBox","0 0 24 24"),m(n,"class","stroke-current shrink-0 w-6 h-6"),l.a=null,m(r,"class","text-2xl"),m(e,"class","alert bg-base-300 dark:bg-base-300")},m(i,o){I(i,e,o),g(e,n),g(n,t),g(e,s),g(e,r),l.m(a[0],r)},p(i,[o]){o&1&&l.p(i[0])},i:V,o:V,d(i){i&&d(e)}}}function In(a,e,n){let{info:t}=e,{markdown:s}=e;return mn(()=>{s&&H(t)}),a.$$set=r=>{"info"in r&&n(0,t=r.info),"markdown"in r&&n(1,s=r.markdown)},[t,s]}class ot extends J{constructor(e){super(),ee(this,e,In,zn,Y,{info:0,markdown:1})}}function Rn(a){let e,n="Quest-ce que le live-coding ?",t,s,r,l,i='Historiquement, le <em>live coding</em> est un type de création porté par le collectif <a href="https://toplap.org" rel="nofollow">TOPLAP</a>. Il existe de nombreux groupes en Europe et dans le monde qui promeuvent ce type de pratiques : <a href="https://toplap.cat/en/home" rel="nofollow">TOPLAP Barcelona</a>, <a href="https://livecode.nyc/" rel="nofollow">Livecode NYC</a>, parmi dautres. La pratique du <em>live coding</em> sest popularisée au travers du <a href="">Manifeste TOPLAP</a> et des <a href="https://algorave.com" rel="nofollow">Algoraves</a> (<em>algorithmic rave parties</em>). Il est pourtant délicat de limiter la pratique à ces seuls exemples.',o,c,u="À propos de ce site",h,p,T='Ce site est une collection de ressources. Il est conçu pour combler le vide qui existe aujourdhui dans la communauté francophone du <em>live coding</em>. Il peut être édité et modifié par tout le monde à <a href="https://github.com/Bubobubobubobubo/livecodingfr" rel="nofollow">cette adresse</a>. Rajoutez vos logiciels, vos coordonnées ou toute information qui vous semble importante.',_,k,w="Comment contribuer ?",R,v,y='Le site est hébergé sur <a href="https://github.com/Bubobubobubobubo/livecodingfr" rel="nofollow">GitHub</a>. Pour ajouter une information au site, veuillez créer une <a href="https://docs.github.com/fr/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/creating-a-pull-request" rel="nofollow">Pull Request</a>. Vous pouvez aussi contacter lun des membres qui se chargera de transmettre linformation.',M;return s=new ot({props:{info:"Le <i>live coding</i> est une pratique artistique qui fait de l'acte de programmation un geste expressif et performatif. Les <i>live coders</i> considèrent l'interface de programmation comme un instrument de musique. Le <i>live coding</i> est un art au croisement entre synthèse sonore, improvisation musicale et musique algorithmique générative.<br><br> Le <i>live coding</i> est au croisement de plusieurs arts et encourage des approches transdisciplinaires de la création : musique, arts visuels, informatique, jeux vidéos, danse, etc. Plus largement, le <i>live coding</i> est un domaine critique qui encourage les artistes à repenser leur rapport à l'informatique. Le <i>live coding</i> est traversé par la culture <i>hacker</i>, par la philosophie du logiciel libre et <i>open source</i>. Il souhaite également développer une nouvelle forme d'expressivité au sein des arts, en considérant l'ordinateur comme une interface pour la <i>programmation exploratoire</i> ou <i>programmation conversationnelle</i>.",markdown:"false"}}),{c(){e=x("h1"),e.textContent=n,t=E(),ne(s.$$.fragment),r=E(),l=x("p"),l.innerHTML=i,o=E(),c=x("h1"),c.textContent=u,h=E(),p=x("p"),p.innerHTML=T,_=E(),k=x("h1"),k.textContent=w,R=E(),v=x("p"),v.innerHTML=y},l(f){e=b(f,"H1",{"data-svelte-h":!0}),S(e)!=="svelte-z12tl4"&&(e.textContent=n),t=z(f),ie(s.$$.fragment,f),r=z(f),l=b(f,"P",{"data-svelte-h":!0}),S(l)!=="svelte-1scfhnp"&&(l.innerHTML=i),o=z(f),c=b(f,"H1",{"data-svelte-h":!0}),S(c)!=="svelte-9nyscp"&&(c.textContent=u),h=z(f),p=b(f,"P",{"data-svelte-h":!0}),S(p)!=="svelte-c8sr0y"&&(p.innerHTML=T),_=z(f),k=b(f,"H1",{"data-svelte-h":!0}),S(k)!=="svelte-15qmnqt"&&(k.textContent=w),R=z(f),v=b(f,"P",{"data-svelte-h":!0}),S(v)!=="svelte-1ht7736"&&(v.innerHTML=y)},m(f,C){I(f,e,C),I(f,t,C),se(s,f,C),I(f,r,C),I(f,l,C),I(f,o,C),I(f,c,C),I(f,h,C),I(f,p,C),I(f,_,C),I(f,k,C),I(f,R,C),I(f,v,C),M=!0},p:V,i(f){M||(D(s.$$.fragment,f),M=!0)},o(f){O(s.$$.fragment,f),M=!1},d(f){f&&(d(e),d(t),d(r),d(l),d(o),d(c),d(h),d(p),d(_),d(k),d(R),d(v)),le(s,f)}}}class qn extends J{constructor(e){super(),ee(this,e,null,Rn,Y,{})}}function Ln(a){let e,n,t,s=a[2][1]+"",r,l,i,o,c=a[2][0]+"",u,h,p,T,_=a[2][2]+"",k,w,R,v,y,M,f,C;return{c(){e=x("div"),n=x("div"),t=x("div"),r=X(s),l=E(),i=x("div"),o=x("span"),u=X(c),h=E(),p=x("div"),T=x("span"),k=X(_),w=E(),R=x("div"),v=x("h3"),y=X(a[0]),M=E(),f=x("p"),C=X(a[1]),this.h()},l(A){e=b(A,"DIV",{class:!0});var j=q(e);n=b(j,"DIV",{class:!0});var re=q(n);t=b(re,"DIV",{class:!0});var oe=q(t);r=W(oe,s),oe.forEach(d),l=z(re),i=b(re,"DIV",{class:!0});var U=q(i);o=b(U,"SPAN",{class:!0});var Fe=q(o);u=W(Fe,c),Fe.forEach(d),U.forEach(d),h=z(re),p=b(re,"DIV",{class:!0});var qe=q(p);T=b(qe,"SPAN",{class:!0});var ae=q(T);k=W(ae,_),ae.forEach(d),qe.forEach(d),re.forEach(d),w=z(j),R=b(j,"DIV",{class:!0});var Ce=q(R);v=b(Ce,"H3",{class:!0});var $e=q(v);y=W($e,a[0]),$e.forEach(d),M=z(Ce),f=b(Ce,"P",{class:!0});var Te=q(f);C=W(Te,a[1]),Te.forEach(d),Ce.forEach(d),j.forEach(d),this.h()},h(){m(t,"class","bg-red-800 text-white py-1"),m(o,"class","text-4xl font-bold"),m(i,"class","pt-1 border-l border-r"),m(T,"class","text-xs font-bold"),m(p,"class","pb-2 px-2 border-l border-r border-b rounded-b flex justify-between"),m(n,"class","w-42 block rounded-t overflow-hidden bg-white text-center min-w-max"),m(v,"class","pl-4 flex"),m(f,"class","pl-4"),m(R,"class","block"),m(e,"class","flex flex-row")},m(A,j){I(A,e,j),g(e,n),g(n,t),g(t,r),g(n,l),g(n,i),g(i,o),g(o,u),g(n,h),g(n,p),g(p,T),g(T,k),g(e,w),g(e,R),g(R,v),g(v,y),g(R,M),g(R,f),g(f,C)},p(A,[j]){j&1&&ge(y,A[0]),j&2&&ge(C,A[1])},i:V,o:V,d(A){A&&d(e)}}}function Sn(a,e,n){let{date:t}=e,{title:s}=e,{description:r}=e,l=t.split(" ");return a.$$set=i=>{"date"in i&&n(3,t=i.date),"title"in i&&n(0,s=i.title),"description"in i&&n(1,r=i.description)},[s,r,l,t]}class pn extends J{constructor(e){super(),ee(this,e,Sn,Ln,Y,{date:3,title:0,description:1})}}function Wt(a,e,n){const t=a.slice();return t[2]=e[n].title,t[3]=e[n].description,t[4]=e[n].date,t[6]=n,t}function Yt(a,e,n){const t=a.slice();return t[2]=e[n].title,t[3]=e[n].description,t[4]=e[n].date,t[6]=n,t}function Jt(a){let e,n;return e=new pn({props:{date:a[4],description:a[3],title:a[2]}}),{c(){ne(e.$$.fragment)},l(t){ie(e.$$.fragment,t)},m(t,s){se(e,t,s),n=!0},p:V,i(t){n||(D(e.$$.fragment,t),n=!0)},o(t){O(e.$$.fragment,t),n=!1},d(t){le(e,t)}}}function en(a){let e,n;return e=new pn({props:{date:a[4],description:a[3],title:a[2]}}),{c(){ne(e.$$.fragment)},l(t){ie(e.$$.fragment,t)},m(t,s){se(e,t,s),n=!0},p:V,i(t){n||(D(e.$$.fragment,t),n=!0)},o(t){O(e.$$.fragment,t),n=!1},d(t){le(e,t)}}}function Mn(a){let e,n="Évènements",t,s,r,l,i="À venir",o,c,u,h="Passés",p,T,_;s=new ot({props:{info:"Cette page recense tout les évènements dédiés au <i>live coding</i> organisés par la scène francophone. Ajoutez vos évènements. N'oubliez pas de fournir un lien si possible. Renseignez les évènements pour archivage !",markdown:"false"}});let k=he(a[0]),w=[];for(let f=0;f<k.length;f+=1)w[f]=Jt(Yt(a,k,f));const R=f=>O(w[f],1,1,()=>{w[f]=null});let v=he(a[0]),y=[];for(let f=0;f<v.length;f+=1)y[f]=en(Wt(a,v,f));const M=f=>O(y[f],1,1,()=>{y[f]=null});return{c(){e=x("h1"),e.textContent=n,t=E(),ne(s.$$.fragment),r=E(),l=x("h2"),l.textContent=i,o=E();for(let f=0;f<w.length;f+=1)w[f].c();c=E(),u=x("h2"),u.textContent=h,p=E();for(let f=0;f<y.length;f+=1)y[f].c();T=Qt()},l(f){e=b(f,"H1",{"data-svelte-h":!0}),S(e)!=="svelte-vpqc01"&&(e.textContent=n),t=z(f),ie(s.$$.fragment,f),r=z(f),l=b(f,"H2",{"data-svelte-h":!0}),S(l)!=="svelte-15ogma4"&&(l.textContent=i),o=z(f);for(let C=0;C<w.length;C+=1)w[C].l(f);c=z(f),u=b(f,"H2",{"data-svelte-h":!0}),S(u)!=="svelte-a252xn"&&(u.textContent=h),p=z(f);for(let C=0;C<y.length;C+=1)y[C].l(f);T=Qt()},m(f,C){I(f,e,C),I(f,t,C),se(s,f,C),I(f,r,C),I(f,l,C),I(f,o,C);for(let A=0;A<w.length;A+=1)w[A]&&w[A].m(f,C);I(f,c,C),I(f,u,C),I(f,p,C);for(let A=0;A<y.length;A+=1)y[A]&&y[A].m(f,C);I(f,T,C),_=!0},p(f,[C]){if(C&1){k=he(f[0]);let A;for(A=0;A<k.length;A+=1){const j=Yt(f,k,A);w[A]?(w[A].p(j,C),D(w[A],1)):(w[A]=Jt(j),w[A].c(),D(w[A],1),w[A].m(c.parentNode,c))}for(Ze(),A=k.length;A<w.length;A+=1)R(A);Qe()}if(C&1){v=he(f[0]);let A;for(A=0;A<v.length;A+=1){const j=Wt(f,v,A);y[A]?(y[A].p(j,C),D(y[A],1)):(y[A]=en(j),y[A].c(),D(y[A],1),y[A].m(T.parentNode,T))}for(Ze(),A=v.length;A<y.length;A+=1)M(A);Qe()}},i(f){if(!_){D(s.$$.fragment,f);for(let C=0;C<k.length;C+=1)D(w[C]);for(let C=0;C<v.length;C+=1)D(y[C]);_=!0}},o(f){O(s.$$.fragment,f),w=w.filter(Boolean);for(let C=0;C<w.length;C+=1)O(w[C]);y=y.filter(Boolean);for(let C=0;C<y.length;C+=1)O(y[C]);_=!1},d(f){f&&(d(e),d(t),d(r),d(l),d(o),d(c),d(u),d(p),d(T)),le(s,f),Xe(w,f),Xe(y,f)}}}function jn(a){return[[{date:"1 jan 2023",description:"Description de l'évènement",title:"Template pour un évènement"}]]}class Pn extends J{constructor(e){super(),ee(this,e,jn,Mn,Y,{})}}function Hn(a){let e,n="Contact",t,s,r,l,i="Contacter un artiste",o,c,u="<li>Consulter le site web sur la page <strong>Membres</strong>.</li>",h,p,T="Contacter un collectif",_,k,w="<li>Consulter le site web sur la page <strong>Réseaux</strong>.</li>",R;return s=new ot({props:{info:"<b>Livecoding.fr</b> n'est pas ni un collectif ni une organisation. L'objectif de ce site est uniquement de centraliser l'information et de donner plus de visibilité à la scène <i>live coding</i> francophone.",markdown:"false"}}),{c(){e=x("h1"),e.textContent=n,t=E(),ne(s.$$.fragment),r=E(),l=x("h2"),l.textContent=i,o=E(),c=x("ul"),c.innerHTML=u,h=E(),p=x("h2"),p.textContent=T,_=E(),k=x("ul"),k.innerHTML=w},l(v){e=b(v,"H1",{"data-svelte-h":!0}),S(e)!=="svelte-tbczl2"&&(e.textContent=n),t=z(v),ie(s.$$.fragment,v),r=z(v),l=b(v,"H2",{"data-svelte-h":!0}),S(l)!=="svelte-xszhwq"&&(l.textContent=i),o=z(v),c=b(v,"UL",{"data-svelte-h":!0}),S(c)!=="svelte-1vm6ar4"&&(c.innerHTML=u),h=z(v),p=b(v,"H2",{"data-svelte-h":!0}),S(p)!=="svelte-10qj64p"&&(p.textContent=T),_=z(v),k=b(v,"UL",{"data-svelte-h":!0}),S(k)!=="svelte-annlzk"&&(k.innerHTML=w)},m(v,y){I(v,e,y),I(v,t,y),se(s,v,y),I(v,r,y),I(v,l,y),I(v,o,y),I(v,c,y),I(v,h,y),I(v,p,y),I(v,_,y),I(v,k,y),R=!0},p:V,i(v){R||(D(s.$$.fragment,v),R=!0)},o(v){O(s.$$.fragment,v),R=!1},d(v){v&&(d(e),d(t),d(r),d(l),d(o),d(c),d(h),d(p),d(_),d(k)),le(s,v)}}}class Dn extends J{constructor(e){super(),ee(this,e,null,Hn,Y,{})}}function Bn(a){let e,n,t,s,r,l,i,o,c=a[4](a[0],50)+"",u,h,p,T,_,k,w,R,v;return{c(){e=x("div"),n=x("a"),t=x("img"),r=E(),l=x("div"),i=x("a"),o=x("h5"),u=X(c),h=E(),p=x("p"),T=X(a[1]),_=E(),k=x("a"),w=X(`En savoir plus
`),R=x("svg"),v=_t("path"),this.h()},l(y){e=b(y,"DIV",{class:!0});var M=q(e);n=b(M,"A",{href:!0});var f=q(n);t=b(f,"IMG",{class:!0,src:!0,alt:!0}),f.forEach(d),r=z(M),l=b(M,"DIV",{class:!0});var C=q(l);i=b(C,"A",{href:!0});var A=q(i);o=b(A,"H5",{class:!0});var j=q(o);u=W(j,c),j.forEach(d),A.forEach(d),h=z(C),p=b(C,"P",{class:!0});var re=q(p);T=W(re,a[1]),re.forEach(d),_=z(C),k=b(C,"A",{href:!0,class:!0});var oe=q(k);w=W(oe,`En savoir plus
`),R=b(oe,"SVG",{class:!0,"aria-hidden":!0,xmlns:!0,fill:!0,viewBox:!0});var U=q(R);v=wt(U,"path",{stroke:!0,"stroke-linecap":!0,"stroke-linejoin":!0,"stroke-width":!0,d:!0}),q(v).forEach(d),U.forEach(d),oe.forEach(d),C.forEach(d),M.forEach(d),this.h()},h(){m(t,"class","rounded-t-lg h-48 w-80 object-cover"),Ne(t.src,s=a[2])||m(t,"src",s),m(t,"alt",""),m(n,"href","#"),m(o,"class","mb-2 text-lg font-bold tracking-tight text-gray-900 dark:text-white"),m(i,"href","#"),m(p,"class","mb-3 font-normal text-gray-700 dark:text-gray-400"),m(v,"stroke","currentColor"),m(v,"stroke-linecap","round"),m(v,"stroke-linejoin","round"),m(v,"stroke-width","2"),m(v,"d","M1 5h12m0 0L9 1m4 4L9 9"),m(R,"class","w-3.5 h-3.5 ml-2"),m(R,"aria-hidden","true"),m(R,"xmlns",a[3]),m(R,"fill","none"),m(R,"viewBox","0 0 14 10"),m(k,"href",a[3]),m(k,"class","inline-flex items-center btn btn-primary text-sm font-medium text-center"),m(l,"class","p-5"),m(e,"class","max-w-sm w-80 h-fit bg-base-300 dark:bg-base-300 border border-gray-300 rounded-lg shadow-md dark:border-gray-700")},m(y,M){I(y,e,M),g(e,n),g(n,t),g(e,r),g(e,l),g(l,i),g(i,o),g(o,u),g(l,h),g(l,p),g(p,T),g(l,_),g(l,k),g(k,w),g(k,R),g(R,v)},p(y,[M]){M&4&&!Ne(t.src,s=y[2])&&m(t,"src",s),M&1&&c!==(c=y[4](y[0],50)+"")&&ge(u,c),M&2&&ge(T,y[1]),M&8&&m(R,"xmlns",y[3]),M&8&&m(k,"href",y[3])},i:V,o:V,d(y){y&&d(e)}}}function On(a,e,n){let{title:t}=e,{description:s}=e,{image:r}=e,{link:l}=e;const i=(o,c)=>o.length>c?o.slice(0,c-3)+"...":o;return a.$$set=o=>{"title"in o&&n(0,t=o.title),"description"in o&&n(1,s=o.description),"image"in o&&n(2,r=o.image),"link"in o&&n(3,l=o.link)},[t,s,r,l,i]}class Vn extends J{constructor(e){super(),ee(this,e,On,Bn,Y,{title:0,description:1,image:2,link:3})}}function tn(a,e,n){const t=a.slice();return t[1]=e[n].title,t[2]=e[n].picture,t[3]=e[n].link,t[4]=e[n].author,t[6]=n,t}function nn(a){let e,n;return e=new Vn({props:{title:a[1],description:a[4],image:a[2],link:a[3]}}),{c(){ne(e.$$.fragment)},l(t){ie(e.$$.fragment,t)},m(t,s){se(e,t,s),n=!0},p:V,i(t){n||(D(e.$$.fragment,t),n=!0)},o(t){O(e.$$.fragment,t),n=!1},d(t){le(e,t)}}}function Nn(a){let e,n="Presse",t,s,r,l=he(a[0]),i=[];for(let c=0;c<l.length;c+=1)i[c]=nn(tn(a,l,c));const o=c=>O(i[c],1,1,()=>{i[c]=null});return{c(){e=x("h1"),e.textContent=n,t=E(),s=x("div");for(let c=0;c<i.length;c+=1)i[c].c();this.h()},l(c){e=b(c,"H1",{"data-svelte-h":!0}),S(e)!=="svelte-5h4cy"&&(e.textContent=n),t=z(c),s=b(c,"DIV",{class:!0});var u=q(s);for(let h=0;h<i.length;h+=1)i[h].l(u);u.forEach(d),this.h()},h(){m(s,"class","grid grid-cols-2 md:grid-cols-3 grid-rows-3 md:grid-rows-2 gap-8 mx-auto gap-4")},m(c,u){I(c,e,u),I(c,t,u),I(c,s,u);for(let h=0;h<i.length;h+=1)i[h]&&i[h].m(s,null);r=!0},p(c,[u]){if(u&1){l=he(c[0]);let h;for(h=0;h<l.length;h+=1){const p=tn(c,l,h);i[h]?(i[h].p(p,u),D(i[h],1)):(i[h]=nn(p),i[h].c(),D(i[h],1),i[h].m(s,null))}for(Ze(),h=l.length;h<i.length;h+=1)o(h);Qe()}},i(c){if(!r){for(let u=0;u<l.length;u+=1)D(i[u]);r=!0}},o(c){i=i.filter(Boolean);for(let u=0;u<i.length;u+=1)O(i[u]);r=!1},d(c){c&&(d(e),d(t),d(s)),Xe(i,c)}}}function Zn(a){return[[{title:"Aux « algoraves », on danse sur une musique codée en direct",picture:"https://img.lemde.fr/2019/04/12/0/0/5122/3467/800/0/75/0/f22d969_x_FC8S1alEp4TYxEfX9-vnhW.jpg",link:"https://www.lemonde.fr/pixels/article/2019/04/13/aux-algoraves-on-danse-sur-une-musique-codee-en-direct_5449894_4408996.html",author:"Bruno Lus (Le Monde)"},{title:"OK Computer: Live coding creates music for dancing or dreaming in France's biggest algorave",picture:"https://static.euronews.com/articles/stories/07/52/54/80/1200x675_cmsv2_eb8921b9-1953-5db0-853f-6479b45a22c6-7525480.jpg",link:"https://www.euronews.com/culture/2023/05/03/ok-computer-live-coding-creates-music-for-dancing-or-dreaming-in-frances-biggest-algorave",author:"Gaël Camba (Euronews)"},{title:"Live coding : de la musique codée en direct pour danser ou rêver",picture:"https://static.euronews.com/articles/stories/07/52/54/80/1200x675_cmsv2_2c54c051-fb9c-5807-8429-da05ee6ef77d-7525480.jpg",link:"https://fr.euronews.com/culture/2023/04/26/live-coding-de-la-musique-codee-en-direct-pour-danser-ou-rever#:~:text=Live%20coding%20:%20de%20la%20musique%20cod%C3%A9e%20en%20direct%20pour%20danser%20ou%20r%C3%AAver,-Francesco%20Corvi%20se&text=Entre%20technique%20exp%C3%A9rimentale%20et%20composition,en%20programmant%20du%20code%20informatique.",author:"Gaël Camba (Euronews)"},{title:"Culture numérique : la Micro-folie sillonnera le territoire Barséquanais",picture:"",link:"https://www.lest-eclair.fr/id531959/article/2023-10-20/la-micro-folie-sillonnera-le-territoire-barsequanais",author:"??? (L'Est Éclair)"},{title:"Quest-ce que lalgorave, ce nouveau clubbing où ...",picture:"https://trxprds3.s3.amazonaws.com/uploads/2020/03/by-dan-hett.jpg",link:"https://www.traxmag.com/algorave-live-coding-dancefloor/",author:"Loïc Hecht (Trax Magazine)"}]]}class Qn extends J{constructor(e){super(),ee(this,e,Zn,Nn,Y,{})}}function Fn(a){let e,n,t,s,r,l,i,o,c,u,h,p,T,_,k,w;return{c(){e=x("div"),n=x("div"),t=E(),s=x("div"),r=x("img"),i=E(),o=x("h5"),c=X(a[1]),u=E(),h=x("span"),p=X(a[3]),T=E(),_=x("div"),k=x("a"),w=X("Site"),this.h()},l(R){e=b(R,"DIV",{class:!0});var v=q(e);n=b(v,"DIV",{class:!0}),q(n).forEach(d),t=z(v),s=b(v,"DIV",{class:!0});var y=q(s);r=b(y,"IMG",{class:!0,src:!0,alt:!0}),i=z(y),o=b(y,"H5",{class:!0});var M=q(o);c=W(M,a[1]),M.forEach(d),u=z(y),h=b(y,"SPAN",{class:!0});var f=q(h);p=W(f,a[3]),f.forEach(d),T=z(y),_=b(y,"DIV",{class:!0});var C=q(_);k=b(C,"A",{href:!0,class:!0});var A=q(k);w=W(A,"Site"),A.forEach(d),C.forEach(d),y.forEach(d),v.forEach(d),this.h()},h(){m(n,"class","flex justify-end px-4 pt-4"),m(r,"class","w-24 h-24 mb-3 rounded-full shadow-lg"),Ne(r.src,l=a[0])||m(r,"src",l),m(r,"alt","Portrait"),m(o,"class","mb-1 text-xl font-medium text-gray-900 dark:text-white"),m(h,"class","text-sm text-gray-500 dark:text-gray-400"),m(k,"href",a[2]),m(k,"class","btn btn-tertiary"),m(_,"class","flex mt-4 space-x-3 md:mt-6"),m(s,"class","flex flex-col items-center pb-10"),m(e,"class","mx-2 w-full max-w-sm bg-base-300 dark:bg-base-300 border border-gray-200 rounded-lg shadow dark:border-gray-700")},m(R,v){I(R,e,v),g(e,n),g(e,t),g(e,s),g(s,r),g(s,i),g(s,o),g(o,c),g(s,u),g(s,h),g(h,p),g(s,T),g(s,_),g(_,k),g(k,w)},p(R,[v]){v&1&&!Ne(r.src,l=R[0])&&m(r,"src",l),v&2&&ge(c,R[1]),v&8&&ge(p,R[3]),v&4&&m(k,"href",R[2])},i:V,o:V,d(R){R&&d(e)}}}function Un(a,e,n){let{image:t}=e,{name:s}=e,{mail:r}=e,{site:l}=e,{description:i}=e;return a.$$set=o=>{"image"in o&&n(0,t=o.image),"name"in o&&n(1,s=o.name),"mail"in o&&n(4,r=o.mail),"site"in o&&n(2,l=o.site),"description"in o&&n(3,i=o.description)},[t,s,l,i,r]}class Gn extends J{constructor(e){super(),ee(this,e,Un,Fn,Y,{image:0,name:1,mail:4,site:2,description:3})}}function sn(a,e,n){const t=a.slice();return t[1]=e[n].name,t[2]=e[n].description,t[3]=e[n].image,t[4]=e[n].site,t[5]=e[n].mail,t[7]=n,t}function ln(a){let e,n;return e=new Gn({props:{name:a[1],description:a[2],image:a[3],site:a[4],mail:a[5]}}),{c(){ne(e.$$.fragment)},l(t){ie(e.$$.fragment,t)},m(t,s){se(e,t,s),n=!0},p:V,i(t){n||(D(e.$$.fragment,t),n=!0)},o(t){O(e.$$.fragment,t),n=!1},d(t){le(e,t)}}}function Kn(a){let e,n="Membres",t,s,r,l=he(a[0]),i=[];for(let c=0;c<l.length;c+=1)i[c]=ln(sn(a,l,c));const o=c=>O(i[c],1,1,()=>{i[c]=null});return{c(){e=x("h1"),e.textContent=n,t=E(),s=x("div");for(let c=0;c<i.length;c+=1)i[c].c();this.h()},l(c){e=b(c,"H1",{"data-svelte-h":!0}),S(e)!=="svelte-mdaw1"&&(e.textContent=n),t=z(c),s=b(c,"DIV",{class:!0});var u=q(s);for(let h=0;h<i.length;h+=1)i[h].l(u);u.forEach(d),this.h()},h(){m(s,"class","grid grid-cols-2 md:grid-cols-3 grid-rows-3 md:grid-rows-2 gap-4 h-5/6 w-4/5 mx-auto")},m(c,u){I(c,e,u),I(c,t,u),I(c,s,u);for(let h=0;h<i.length;h+=1)i[h]&&i[h].m(s,null);r=!0},p(c,[u]){if(u&1){l=he(c[0]);let h;for(h=0;h<l.length;h+=1){const p=sn(c,l,h);i[h]?(i[h].p(p,u),D(i[h],1)):(i[h]=ln(p),i[h].c(),D(i[h],1),i[h].m(s,null))}for(Ze(),h=l.length;h<i.length;h+=1)o(h);Qe()}},i(c){if(!r){for(let u=0;u<l.length;u+=1)D(i[u]);r=!0}},o(c){i=i.filter(Boolean);for(let u=0;u<i.length;u+=1)O(i[u]);r=!1},d(c){c&&(d(e),d(t),d(s)),Xe(i,c)}}}function Xn(a){return[[{name:"Raphaël Forment",description:"BuboBubo",image:"https://avatars.githubusercontent.com/u/45191785?s=400&u=3ee9062082ce04b6f08f811e657797fe9528d106&v=4",site:"https://raphaelforment.fr",mail:""},{name:"Rémi Georges",description:"Ralt144Mi",image:"https://avatars.githubusercontent.com/u/75539795?v=4",site:"https://remigeorges.fr/",mail:""},{name:"Agathe Herrou",description:"th4",image:"https://club.tidalcycles.org/user_avatar/club.tidalcycles.org/th4/144/505_2.png",site:"https://th4music.net",mail:""},{name:"Raphaël Bastide",description:"",image:"https://radicalnetworks.org/archives/2018/participants/raphael-bastide/raphaelbastide.jpg",site:"https://raphaelbastide.com",mail:""}]]}class Wn extends J{constructor(e){super(),ee(this,e,Xn,Kn,Y,{})}}function Yn(a){let e,n,t,s,r,l,i,o,c,u,h,p,T;return{c(){e=x("a"),n=x("img"),s=E(),r=x("div"),l=x("h5"),i=X(a[0]),o=E(),c=x("p"),u=X(a[1]),h=E(),p=x("p"),T=X(a[4]),this.h()},l(_){e=b(_,"A",{href:!0,class:!0});var k=q(e);n=b(k,"IMG",{class:!0,src:!0,alt:!0}),s=z(k),r=b(k,"DIV",{class:!0});var w=q(r);l=b(w,"H5",{class:!0});var R=q(l);i=W(R,a[0]),R.forEach(d),o=z(w),c=b(w,"P",{class:!0});var v=q(c);u=W(v,a[1]),v.forEach(d),h=z(w),p=b(w,"P",{class:!0});var y=q(p);T=W(y,a[4]),y.forEach(d),w.forEach(d),k.forEach(d),this.h()},h(){m(n,"class","object-cover w-full rounded-t-lg h-96 md:h-auto md:w-48 md:rounded-none md:rounded-l-lg"),Ne(n.src,t=a[3])||m(n,"src",t),m(n,"alt",""),m(l,"class","mb-2 text-2xl font-bold tracking-tight text-gray-900 dark:text-white"),m(c,"class","text-right"),m(p,"class","mb-3 font-normal text-gray-700 dark:text-gray-400"),m(r,"class","flex flex-col justify-between p-4 leading-normal"),m(e,"href",a[2]),m(e,"class","flex flex-col items-center rounded-lg shadow md:flex-row dark:hover:bg-base-100 hover:bg-base-100 bg-base-300 dark:bg-base-300")},m(_,k){I(_,e,k),g(e,n),g(e,s),g(e,r),g(r,l),g(l,i),g(r,o),g(r,c),g(c,u),g(r,h),g(r,p),g(p,T)},p(_,[k]){k&8&&!Ne(n.src,t=_[3])&&m(n,"src",t),k&1&&ge(i,_[0]),k&2&&ge(u,_[1]),k&16&&ge(T,_[4]),k&4&&m(e,"href",_[2])},i:V,o:V,d(_){_&&d(e)}}}function Jn(a,e,n){let{name:t}=e,{creator:s}=e,{link:r}=e,{image:l}=e,{description:i}=e;return a.$$set=o=>{"name"in o&&n(0,t=o.name),"creator"in o&&n(1,s=o.creator),"link"in o&&n(2,r=o.link),"image"in o&&n(3,l=o.image),"description"in o&&n(4,i=o.description)},[t,s,r,l,i]}class Ct extends J{constructor(e){super(),ee(this,e,Jn,Yn,Y,{name:0,creator:1,link:2,image:3,description:4})}}function rn(a,e,n){const t=a.slice();return t[1]=e[n].name,t[2]=e[n].creator,t[3]=e[n].description,t[4]=e[n].image,t[5]=e[n].link,t}function an(a){let e,n;return e=new Ct({props:{name:a[1],creator:a[2],description:a[3],image:a[4],link:a[5]}}),{c(){ne(e.$$.fragment)},l(t){ie(e.$$.fragment,t)},m(t,s){se(e,t,s),n=!0},p:V,i(t){n||(D(e.$$.fragment,t),n=!0)},o(t){O(e.$$.fragment,t),n=!1},d(t){le(e,t)}}}function es(a){let e,n="Outils",t,s,r='Si vous souhaitez consulter une liste fréquemment mise à jour de logiciels et dinterfaces pour le <em>live coding</em>, consulter <a href="https://github.com/toplap/awesome-livecoding" rel="nofollow">Awesome LiveCoding</a>. Pour élargir un petit peu, consultez également <a href="https://github.com/noteflakes/awesome-music" rel="nofollow">Awesome Music</a>.',l,i,o,c="Éditez le site pour rajouter votre outil ! <strong>Toutes les contributions sont acceptées !</strong>",u,h=he(a[0]),p=[];for(let _=0;_<h.length;_+=1)p[_]=an(rn(a,h,_));const T=_=>O(p[_],1,1,()=>{p[_]=null});return{c(){e=x("h1"),e.textContent=n,t=E(),s=x("p"),s.innerHTML=r,l=E();for(let _=0;_<p.length;_+=1)p[_].c();i=E(),o=x("p"),o.innerHTML=c},l(_){e=b(_,"H1",{"data-svelte-h":!0}),S(e)!=="svelte-16n948e"&&(e.textContent=n),t=z(_),s=b(_,"P",{"data-svelte-h":!0}),S(s)!=="svelte-spp4tf"&&(s.innerHTML=r),l=z(_);for(let k=0;k<p.length;k+=1)p[k].l(_);i=z(_),o=b(_,"P",{"data-svelte-h":!0}),S(o)!=="svelte-1bomrdb"&&(o.innerHTML=c)},m(_,k){I(_,e,k),I(_,t,k),I(_,s,k),I(_,l,k);for(let w=0;w<p.length;w+=1)p[w]&&p[w].m(_,k);I(_,i,k),I(_,o,k),u=!0},p(_,[k]){if(k&1){h=he(_[0]);let w;for(w=0;w<h.length;w+=1){const R=rn(_,h,w);p[w]?(p[w].p(R,k),D(p[w],1)):(p[w]=an(R),p[w].c(),D(p[w],1),p[w].m(i.parentNode,i))}for(Ze(),w=h.length;w<p.length;w+=1)T(w);Qe()}},i(_){if(!u){for(let k=0;k<h.length;k+=1)D(p[k]);u=!0}},o(_){p=p.filter(Boolean);for(let k=0;k<p.length;k+=1)O(p[k]);u=!1},d(_){_&&(d(e),d(t),d(s),d(l),d(i),d(o)),Xe(p,_)}}}function ts(a){return[[{name:"Sardine",creator:"Raphaël Forment",description:"Sardine est un logiciel libre et open source pour Python 3.10+. Sardine transforme Python en un instrument de musique. C'est un framework pour live coder et contrôler du matérial audio depuis Python. Sardine peut se synchroniser à d'autres logiciels ou instances du même logiciel.",image:"https://sardine.raphaelforment.fr/sardine_logo.svg#center",link:"https://sardine.raphaelforment.fr"},{name:"Été",creator:"Raphaël Bastide",description:"Été mélange live coding (écriture musicale temps réel au travers du code) et percussions. Le programme considère le clavier comme un instrument percussif. Le musicien peut écrire des instructions algorithmiques et des instructions percussives très précises au sein du même environnement de programmation. Été est une expérimentation qui essaie de lier dans un même programme le temps dédié à la composition algorithmique et celui dédié à l'improvisation spontanée.",image:"https://gitlab.com/uploads/-/system/project/avatar/35391245/Screenshot_2023-09-19_16-09-44.jpg",link:"https://raphaelbastide.com/ete/"},{name:"Cordelia",creator:"Jacopo Greco d'Alceo",description:"A method, a tender affection, winter 2023.",image:"https://avatars.githubusercontent.com/u/92983918?v=4",link:"https://github.com/jacopogrecodalceo/CORDELIA"},{name:"Topos",creator:"Raphaël Forment",description:"Topos est un séquenceur algorithmique expérimental dans le web sequencer programmé par BuboBubo (Raphaël Forment) et Amiika (Miika Alonen). Il est écrit en TypeScript, avec Vite. Ce projet est basé sur le Monome Teletype de Brian Crabtree et Kelli Cain. Nous espérons respecter le même esprit de partage et d'expérimentation que les concepteurs originels ! Comment rendre le Teletype plus accessible tout en étendant ses capacités sur le web ?",image:"https://raphaelforment.fr/img/inline_annotation.png",link:"https://topos.raphaelforment.fr"},{name:"OSCII",creator:"Adel Faure",description:"OSCII est un logiciel pour dessiner et live coder des visuels en text-mode. OSCII produit également du son grâce à WebAudio.",image:"https://i1.sndcdn.com/avatars-1Kjtq0wbLSNSpNQH-AqRXfQ-t500x500.jpg",link:"https://gitlab.com/adelfaure/oscii"},{name:"Cascade",creator:"Raphaël Bastide",description:"Cascade est un environnement de live-coding pour le navigateur web. Il transforme les règles du langage CSS en sons !",image:"https://raphaelbastide.com/cascade/website/img/poster.svg",link:"https://raphaelbastide.com/cascade/"}]]}class ns extends J{constructor(e){super(),ee(this,e,ts,es,Y,{})}}function ss(a){let e,n="Réseaux",t,s,r,l,i,o,c;return s=new ot({props:{info:"Il existe plusieurs collectifs et groupes qui promeuvent la pratique du <i>live coding</i>. Cette page est un recensement des groupes connus. Si vous êtes actifs, ajoutez quelque chose ici.",markdown:"false"}}),l=new Ct({props:{name:"Cookie Collective",creator:"Paris",description:" Le Cookie Collective rassemble des artistes impliqués dans la création numérique temps réel.Cela couvre le domaine du jeu vidéo, des installations artistiques, du mapping vidéo, la demoscene, les algoraves, etc. Nous organisons des jams au cours desquelles les artistes réalisent des créations sonores ou visuelles devant un public. Nous publions des fanzines qui mettent l'accent sur nos manières de créer. Nous accueillons tout ceux qui partagent un intérêt commun pour la création temps réel. Contactez nous ou rejoignez le serveur Discord.",image:"https://www.cookie.paris/image.jpg",link:"https://cookie.paris"}}),o=new Ct({props:{name:"Digital Audio Community",creator:"Lyon",description:"Creative Code Lyon est une communauté lyonnaise dédiée à la programmation créative. En son sein existe un petit groupe, nommé le DAC (Digital Audio Community). Il se réunit toutes les deux semaines au Laboratoire Ouvert Lyonnais (LOL) pour discuter de synthèse sonore, de live coding, de création sonore. Pour nous contacter, rejoignez le serveur Discord !",image:"https://scontent-cdg4-3.xx.fbcdn.net/v/t39.30808-6/325617656_5771358802943616_8147684973704857965_n.jpg?_nc_cat=106&ccb=1-7&_nc_sid=5f2048&_nc_ohc=Cujn9ocml5QAX8S0sxA&_nc_ht=scontent-cdg4-3.xx&oh=00_AfC1nrCZnzRiCGGCfhJnH9QciEYvNRbhfsS5T0mKqzyRdQ&oe=65496DE6",link:"https://discord.gg/B2e5a3Y3uk"}}),{c(){e=x("h1"),e.textContent=n,t=E(),ne(s.$$.fragment),r=E(),ne(l.$$.fragment),i=E(),ne(o.$$.fragment)},l(u){e=b(u,"H1",{"data-svelte-h":!0}),S(e)!=="svelte-21klql"&&(e.textContent=n),t=z(u),ie(s.$$.fragment,u),r=z(u),ie(l.$$.fragment,u),i=z(u),ie(o.$$.fragment,u)},m(u,h){I(u,e,h),I(u,t,h),se(s,u,h),I(u,r,h),se(l,u,h),I(u,i,h),se(o,u,h),c=!0},p:V,i(u){c||(D(s.$$.fragment,u),D(l.$$.fragment,u),D(o.$$.fragment,u),c=!0)},o(u){O(s.$$.fragment,u),O(l.$$.fragment,u),O(o.$$.fragment,u),c=!1},d(u){u&&(d(e),d(t),d(r),d(i)),le(s,u),le(l,u),le(o,u)}}}class ls extends J{constructor(e){super(),ee(this,e,null,ss,Y,{})}}function rs(a){let e,n="Ressources",t,s,r="Sites internet",l,i,o='<li><a href="https://ressources.labomedia.org/live_coding" rel="nofollow">Labomedia</a></li>';return{c(){e=x("h1"),e.textContent=n,t=E(),s=x("h2"),s.textContent=r,l=E(),i=x("ul"),i.innerHTML=o},l(c){e=b(c,"H1",{"data-svelte-h":!0}),S(e)!=="svelte-1cbhex0"&&(e.textContent=n),t=z(c),s=b(c,"H2",{"data-svelte-h":!0}),S(s)!=="svelte-bg310f"&&(s.textContent=r),l=z(c),i=b(c,"UL",{"data-svelte-h":!0}),S(i)!=="svelte-ba8787"&&(i.innerHTML=o)},m(c,u){I(c,e,u),I(c,t,u),I(c,s,u),I(c,l,u),I(c,i,u)},p:V,i:V,o:V,d(c){c&&(d(e),d(t),d(s),d(l),d(i))}}}class is extends J{constructor(e){super(),ee(this,e,null,rs,Y,{})}}function as(a){let e,n,t,s,r,l="livecoding.fr",i,o,c='<button type="button" class="text-gray-100 hover:text-gray-400 focus:outline-none focus:text-gray-400"><svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-6 h-6"><path stroke-linecap="round" stroke-linejoin="round" d="M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"></path></svg></button>',u,h,p,T="Évènements",_,k,w="Membres",R,v,y="Outils",M,f,C="Réseaux",A,j,re="Ressources",oe,U,Fe="Presse",qe,ae,Ce="Contact",$e,Te,de,ce,Le,ct,Ae,N,ut,me,Ee,ht,Z,Se,ke,At="Évènements",pt,Me,xe,Et="Membres",ft,je,be,zt="Outils",dt,Pe,ve,It="Réseaux",gt,He,_e,Rt="Ressources",mt,De,we,qt="Presse",kt,Be,ye,Lt="Contact",xt,ze,St='<p class="indent-4 text-bold text-white">Raphaël Forment</p> <p><a class="pl-4" href="https://github.com/Bubobubobubobubo/livecodingfr">GitHub</a></p>',Ue,bt,Mt;var Oe=a[0];function jt(Q,ue){return{}}return Oe&&(N=Ft(Oe,jt())),{c(){e=x("div"),n=x("div"),t=x("nav"),s=x("div"),r=x("a"),r.textContent=l,i=E(),o=x("div"),o.innerHTML=c,u=E(),h=x("div"),p=x("a"),p.textContent=T,_=E(),k=x("a"),k.textContent=w,R=E(),v=x("a"),v.textContent=y,M=E(),f=x("a"),f.textContent=C,A=E(),j=x("a"),j.textContent=re,oe=E(),U=x("a"),U.textContent=Fe,qe=E(),ae=x("a"),ae.textContent=Ce,Te=E(),de=x("main"),ce=x("div"),Le=x("input"),ct=E(),Ae=x("div"),N&&ne(N.$$.fragment),ut=E(),me=x("div"),Ee=x("label"),ht=E(),Z=x("ul"),Se=x("li"),ke=x("a"),ke.textContent=At,pt=E(),Me=x("li"),xe=x("a"),xe.textContent=Et,ft=E(),je=x("li"),be=x("a"),be.textContent=zt,dt=E(),Pe=x("li"),ve=x("a"),ve.textContent=It,gt=E(),He=x("li"),_e=x("a"),_e.textContent=Rt,mt=E(),De=x("li"),we=x("a"),we.textContent=qt,kt=E(),Be=x("li"),ye=x("a"),ye.textContent=Lt,xt=E(),ze=x("footer"),ze.innerHTML=St,this.h()},l(Q){e=b(Q,"DIV",{});var ue=q(e);n=b(ue,"DIV",{class:!0});var Ge=q(n);t=b(Ge,"NAV",{class:!0});var Ye=q(t);s=b(Ye,"DIV",{class:!0});var Je=q(s);r=b(Je,"A",{class:!0,"data-svelte-h":!0}),S(r)!=="svelte-99ytaw"&&(r.textContent=l),i=z(Je),o=b(Je,"DIV",{class:!0,"data-svelte-h":!0}),S(o)!=="svelte-glwq61"&&(o.innerHTML=c),Je.forEach(d),u=z(Ye),h=b(Ye,"DIV",{class:!0});var G=q(h);p=b(G,"A",{class:!0,"data-svelte-h":!0}),S(p)!=="svelte-9oawtf"&&(p.textContent=T),_=z(G),k=b(G,"A",{class:!0,"data-svelte-h":!0}),S(k)!=="svelte-1ashbak"&&(k.textContent=w),R=z(G),v=b(G,"A",{class:!0,"data-svelte-h":!0}),S(v)!=="svelte-cuugrw"&&(v.textContent=y),M=z(G),f=b(G,"A",{class:!0,"data-svelte-h":!0}),S(f)!=="svelte-1vq424k"&&(f.textContent=C),A=z(G),j=b(G,"A",{class:!0,"data-svelte-h":!0}),S(j)!=="svelte-fckt8g"&&(j.textContent=re),oe=z(G),U=b(G,"A",{class:!0,"data-svelte-h":!0}),S(U)!=="svelte-dcpiuw"&&(U.textContent=Fe),qe=z(G),ae=b(G,"A",{class:!0,"data-svelte-h":!0}),S(ae)!=="svelte-15n2veg"&&(ae.textContent=Ce),G.forEach(d),Ye.forEach(d),Ge.forEach(d),ue.forEach(d),Te=z(Q),de=b(Q,"MAIN",{class:!0});var et=q(de);ce=b(et,"DIV",{class:!0});var Ve=q(ce);Le=b(Ve,"INPUT",{id:!0,type:!0,class:!0}),ct=z(Ve),Ae=b(Ve,"DIV",{class:!0});var Pt=q(Ae);N&&ie(N.$$.fragment,Pt),Pt.forEach(d),ut=z(Ve),me=b(Ve,"DIV",{class:!0});var tt=q(me);Ee=b(tt,"LABEL",{for:!0,"aria-label":!0,class:!0}),q(Ee).forEach(d),ht=z(tt),Z=b(tt,"UL",{class:!0});var K=q(Z);Se=b(K,"LI",{class:!0});var Ht=q(Se);ke=b(Ht,"A",{class:!0,"data-svelte-h":!0}),S(ke)!=="svelte-1g32o0x"&&(ke.textContent=At),Ht.forEach(d),pt=z(K),Me=b(K,"LI",{class:!0});var Dt=q(Me);xe=b(Dt,"A",{class:!0,"data-svelte-h":!0}),S(xe)!=="svelte-qe766e"&&(xe.textContent=Et),Dt.forEach(d),ft=z(K),je=b(K,"LI",{class:!0});var Bt=q(je);be=b(Bt,"A",{class:!0,"data-svelte-h":!0}),S(be)!=="svelte-thybk0"&&(be.textContent=zt),Bt.forEach(d),dt=z(K),Pe=b(K,"LI",{class:!0});var Ot=q(Pe);ve=b(Ot,"A",{class:!0,"data-svelte-h":!0}),S(ve)!=="svelte-6i6cjy"&&(ve.textContent=It),Ot.forEach(d),gt=z(K),He=b(K,"LI",{class:!0});var Vt=q(He);_e=b(Vt,"A",{class:!0,"data-svelte-h":!0}),S(_e)!=="svelte-tga1wo"&&(_e.textContent=Rt),Vt.forEach(d),mt=z(K),De=b(K,"LI",{class:!0});var Nt=q(De);we=b(Nt,"A",{class:!0,"data-svelte-h":!0}),S(we)!=="svelte-nrqka0"&&(we.textContent=qt),Nt.forEach(d),kt=z(K),Be=b(K,"LI",{class:!0});var Zt=q(Be);ye=b(Zt,"A",{class:!0,"data-svelte-h":!0}),S(ye)!=="svelte-v3eok0"&&(ye.textContent=Lt),Zt.forEach(d),K.forEach(d),tt.forEach(d),Ve.forEach(d),xt=z(et),ze=b(et,"FOOTER",{class:!0,"data-svelte-h":!0}),S(ze)!=="svelte-12gpjdo"&&(ze.innerHTML=St),et.forEach(d),this.h()},h(){m(r,"class","text-3xl font-extrabold text-transparent bg-clip-text bg-gradient-to-r from-orange-300 to-orange-200 uppercase"),m(o,"class","flex md:hidden"),m(s,"class","flex items-center justify-between"),m(p,"class","text-gray-100 hover:text-orange-300 flex md:hidden"),m(k,"class","text-gray-100 hover:text-orange-300 flex md:hidden"),m(v,"class","text-gray-100 hover:text-orange-300 flex md:hidden"),m(f,"class","text-gray-100 hover:text-orange-300 flex md:hidden"),m(j,"class","text-gray-100 hover:text-orange-300 flex md:hidden"),m(U,"class","text-gray-100 hover:text-orange-300 flex md:hidden"),m(ae,"class","text-gray-100 hover:text-orange-300 flex md:hidden"),m(h,"class",$e="flex-col mt-8 space-y-4 md:flex md:space-y-0 md:flex-row md:items-center md:space-x-10 md:mt-0 "+(a[1]?"flex":"hidden")),m(t,"class","pl-8 py-2 md:flex md:justify-between md:items-center pr-8"),m(n,"class","bg-neutral-800 dark:bg-base-300"),m(Le,"id","my-drawer-2"),m(Le,"type","checkbox"),m(Le,"class","drawer-toggle"),m(Ae,"class","drawer-content space-y-4 flex flex-col lg:px-16 px-4 py-8"),m(Ee,"for","my-drawer-2"),m(Ee,"aria-label","close sidebar"),m(Ee,"class","drawer-overlay"),m(ke,"class","text-white hover:text-orange-300"),m(Se,"class","text-xl"),m(xe,"class","text-white hover:text-orange-300"),m(Me,"class","text-xl"),m(be,"class","text-white hover:text-orange-300"),m(je,"class","text-xl"),m(ve,"class","text-white hover:text-orange-300"),m(Pe,"class","text-xl"),m(_e,"class","text-white hover:text-orange-300"),m(He,"class","text-xl"),m(we,"class","text-white hover:text-orange-300"),m(De,"class","text-xl"),m(ye,"class","text-white hover:text-orange-300"),m(Be,"class","text-xl"),m(Z,"class","menu p-4 w-40 min-h-full bg-neutral-800 dark:bg-base-300 text-base-content"),m(me,"class","drawer-side"),m(ce,"class","drawer lg:drawer-open"),m(ze,"class","footer ml-0 pl-0 pb-4 pt-4 bg-neutral-800 dark:bg-base-300 justify-between pr-16"),m(de,"class","bg-gray-100 dark:bg-base-100")},m(Q,ue){I(Q,e,ue),g(e,n),g(n,t),g(t,s),g(s,r),g(s,i),g(s,o),g(t,u),g(t,h),g(h,p),g(h,_),g(h,k),g(h,R),g(h,v),g(h,M),g(h,f),g(h,A),g(h,j),g(h,oe),g(h,U),g(h,qe),g(h,ae),I(Q,Te,ue),I(Q,de,ue),g(de,ce),g(ce,Le),g(ce,ct),g(ce,Ae),N&&se(N,Ae,null),g(ce,ut),g(ce,me),g(me,Ee),g(me,ht),g(me,Z),g(Z,Se),g(Se,ke),g(Z,pt),g(Z,Me),g(Me,xe),g(Z,ft),g(Z,je),g(je,be),g(Z,dt),g(Z,Pe),g(Pe,ve),g(Z,gt),g(Z,He),g(He,_e),g(Z,mt),g(Z,De),g(De,we),g(Z,kt),g(Z,Be),g(Be,ye),g(de,xt),g(de,ze),Ue=!0,bt||(Mt=[F(r,"click",a[4]),F(o,"click",a[2]),F(p,"click",a[5]),F(k,"click",a[6]),F(v,"click",a[7]),F(f,"click",a[8]),F(j,"click",a[9]),F(U,"click",a[10]),F(ae,"click",a[11]),F(ke,"click",a[12]),F(xe,"click",a[13]),F(be,"click",a[14]),F(ve,"click",a[15]),F(_e,"click",a[16]),F(we,"click",a[17]),F(ye,"click",a[18])],bt=!0)},p(Q,[ue]){if((!Ue||ue&2&&$e!==($e="flex-col mt-8 space-y-4 md:flex md:space-y-0 md:flex-row md:items-center md:space-x-10 md:mt-0 "+(Q[1]?"flex":"hidden")))&&m(h,"class",$e),ue&1&&Oe!==(Oe=Q[0])){if(N){Ze();const Ge=N;O(Ge.$$.fragment,1,0,()=>{le(Ge,1)}),Qe()}Oe?(N=Ft(Oe,jt()),ne(N.$$.fragment),D(N.$$.fragment,1),se(N,Ae,null)):N=null}},i(Q){Ue||(N&&D(N.$$.fragment,Q),Ue=!0)},o(Q){N&&O(N.$$.fragment,Q),Ue=!1},d(Q){Q&&(d(e),d(Te),d(de)),N&&le(N),bt=!1,kn(Mt)}}}function os(a,e,n){const t={accueil:qn,evenements:Pn,membres:Wn,outils:ns,réseaux:ls,presse:Qn,ressources:is,contact:Dn};let s=t.accueil,r=!1;function l(){n(1,r=!r)}function i(A){const j=A.toLowerCase();t[j]&&n(0,s=t[j])}return[s,r,l,i,()=>i("Accueil"),()=>i("Evenements"),()=>i("Membres"),()=>i("Outils"),()=>i("Réseaux"),()=>i("Ressources"),()=>i("Presse"),()=>i("Contact"),()=>i("Evenements"),()=>i("Membres"),()=>i("Outils"),()=>i("Réseaux"),()=>i("Ressources"),()=>i("Presse"),()=>i("Contact")]}class ps extends J{constructor(e){super(),ee(this,e,os,as,Y,{})}}export{ps as component};