2023-01-27 05:46:04 +01:00
import { o as Pt , S as B , i as H , s as F , e as E , b , g as N , t as _ , d as U , f as p , h as d , J as Fe , K as me , L as Gt , M as _e , w as P , x as Z , y as I , N as ke , O as $e , z , v as Q , a as ee , c as te , q as A , r as W , u as ae , B as ne , P as Zt , C as X , k as y , l as T , m as M , n as w , D as j , E as V , F as G , Q as ze , H as C , R as Jt , T as Kt , U as en , V as tn , W as nn } from "./index-f20f18da.js" ; function rn ( ) { const a = console . warn ; console . warn = e => { e . includes ( "unknown prop" ) || e . includes ( "unexpected slot" ) || a ( e ) } , Pt ( ( ) => { console . warn = a } ) } function Qe ( a , e , n ) { const r = a . slice ( ) ; return r [ 18 ] = e [ n ] , r } function Xe ( a , e , n ) { const r = a . slice ( ) ; return r [ 18 ] = e [ n ] , r } function je ( a , e , n ) { const r = a . slice ( ) ; return r [ 10 ] = e [ n ] , r } function Ve ( a , e , n ) { const r = a . slice ( ) ; return r [ 13 ] = e [ n ] , r [ 15 ] = n , r } function Ge ( a , e , n ) { const r = a . slice ( ) ; return r [ 16 ] = e [ n ] , r [ 15 ] = n , r } function Ze ( a , e , n ) { const r = a . slice ( ) ; return r [ 7 ] = e [ n ] , r } function ln ( a ) { let e , n , r , t ; const i = [ un , on , sn ] , l = [ ] ; function o ( s , u ) { return s [ 0 ] === "table" ? 0 : s [ 0 ] === "list" ? 1 : 2 } return e = o ( a ) , n = l [ e ] = i [ e ] ( a ) , { c ( ) { n . c ( ) , r = E ( ) } , l ( s ) { n . l ( s ) , r = E ( ) } , m ( s , u ) { l [ e ] . m ( s , u ) , b ( s , r , u ) , t = ! 0 } , p ( s , u ) { let f = e ; e = o ( s ) , e === f ? l [ e ] . p ( s , u ) : ( N ( ) , _ ( l [ f ] , 1 , 1 , ( ) => { l [ f ] = null } ) , U ( ) , n = l [ e ] , n ? n . p ( s , u ) : ( n = l [ e ] = i [ e ] ( s ) , n . c ( ) ) , p ( n , 1 ) , n . m ( r . parentNode , r ) ) } , i ( s ) { t || ( p ( n ) , t = ! 0 ) } , o ( s ) { _ ( n ) , t = ! 1 } , d ( s ) { l [ e ] . d ( s ) , s && d ( r ) } } } function an ( a ) { let e , n , r = a [ 1 ] , t = [ ] ; for ( let l = 0 ; l < r . length ; l += 1 ) t [ l ] = rt ( Ze ( a , r , l ) ) ; const i = l => _ ( t [ l ] , 1 , 1 , ( ) => { t [ l ] = null } ) ; return { c ( ) { for ( let l = 0 ; l < t . length ; l += 1 ) t [ l ] . c ( ) ; e = E ( ) } , l ( l ) { for ( let o = 0 ; o < t . length ; o += 1 ) t [ o ] . l ( l ) ; e = E ( ) } , m ( l , o ) { for ( let s = 0 ; s < t . length ; s += 1 ) t [ s ] . m ( l , o ) ; b ( l , e , o ) , n = ! 0 } , p ( l , o ) { if ( o & 34 ) { r = l [ 1 ] ; let s ; for ( s = 0 ; s < r . length ; s += 1 ) { const u = Ze ( l , r , s ) ; t [ s ] ? ( t [ s ] . p ( u , o ) , p ( t [ s ] , 1 ) ) : ( t [ s ] = rt ( u ) , t [ s ] . c ( ) , p ( t [ s ] , 1 ) , t [ s ] . m ( e . parentNode , e ) ) } for ( N ( ) , s = r . length ; s < t . length ; s += 1 ) i ( s ) ; U ( ) } } , i ( l ) { if ( ! n ) { for ( let o = 0 ; o < r . length ; o += 1 ) p ( t [ o ] ) ; n = ! 0 } } , o ( l ) { t = t . filter ( Boolean ) ; for ( let o = 0 ; o < t . length ; o += 1 ) _ ( t [ o ] ) ; n = ! 1 } , d ( l ) { _e ( t , l ) , l && d ( e ) } } } function sn ( a ) { let e , n , r ; const t = [ a [ 6 ] ] ; var i = a [ 5 ] [ a [ 0 ] ] ; function l ( o ) { let s = { $$slots : { default : [ hn ] } , $$scope : { ctx : o } } ; for ( let u = 0 ; u < t . length ; u += 1 ) s = me ( s , t [ u ] ) ; return { props : s } } return i && ( e = Q ( i , l ( a ) ) ) , { c ( ) { e && P ( e . $$ . fragment ) , n = E ( ) } , l ( o ) { e && Z ( e . $$ . fragment , o ) , n = E ( ) } , m ( o , s ) { e && I ( e , o , s ) , b ( o , n , s ) , r = ! 0 } , p ( o , s ) { const u = s & 64 ? ke ( t , [ $e ( o [ 6 ] ) ] ) : { } ; if ( s & 8388706 && ( u . $$scope = { dirty : s , ctx : o } ) , i !== ( i = o [ 5 ] [ o [ 0 ] ] ) ) { if ( e ) { N ( ) ; const f = e ; _ ( f . $$ . fragment , 1 , 0 , ( ) => { z ( f , 1 ) } ) , U ( ) } i ? ( e = Q ( i , l ( o ) ) , P ( e . $$ . fragment ) , p ( e . $$ . fragment , 1 ) , I ( e , n . parentNode , n ) ) : e = null } else i && e . $set ( u ) } , i ( o ) { r || ( e && p ( e . $$ . fragment , o ) , r = ! 0 ) } , o ( o ) { e && _ ( e . $$ . fragment , o ) , r = ! 1 } , d ( o ) { o && d ( n ) , e && z ( e , o ) } } } function on ( a ) { let e , n , r , t ; const i = [ mn , dn ] , l = [ ] ; function o ( s , u ) { return s [ 4 ] ? 0 : 1 } return e = o ( a ) , n = l [ e ] = i [ e ] ( a ) , { c ( ) { n . c ( ) , r = E ( ) } , l ( s ) { n . l ( s ) , r = E ( ) } , m ( s , u ) { l [ e ] . m ( s , u ) , b ( s , r , u ) , t = ! 0 } , p ( s , u ) { let f = e ; e = o ( s ) , e === f ? l [ e ] . p ( s , u ) : ( N ( ) , _ ( l [ f ] , 1 , 1 , ( ) => { l [ f ] = null } ) , U ( ) , n = l [ e ] , n ? n . p ( s , u ) : ( n = l [ e ] = i [ e ] ( s ) , n . c ( ) ) , p ( n , 1 ) , n . m ( r . parentNode , r ) ) } , i ( s ) { t || ( p ( n ) , t = ! 0 ) } , o ( s ) { _ ( n ) , t = ! 1 } , d ( s ) { l [ e ] . d ( s ) , s && d ( r ) } } } function un ( a ) { let e , n , r ; var t = a [ 5 ] . table ; function i ( l ) { return { props : { $$slots : { default : [ Sn ] } , $$scope : { ctx : l } } } } return t && ( e = Q ( t , i ( a ) ) ) , { c ( ) { e && P ( e . $$ . fragment ) , n = E ( ) } , l ( l ) { e && Z ( e . $$ . fragment , l ) , n = E ( ) } , m ( l , o ) { e && I ( e , l , o ) , b ( l , n , o ) , r = ! 0 } , p ( l , o ) { const s = { } ; if ( o & 8388716 && ( s . $$scope = { dirty : o , ctx : l } ) , t !== ( t = l [ 5 ] . table ) ) { if ( e ) { N ( ) ; const u = e ; _ ( u . $$ . fragment , 1 , 0 , ( ) => { z ( u , 1 ) } ) , U ( ) } t ? ( e = Q ( t , i ( l ) ) , P ( e . $$ . fragment ) , p ( e . $$ . fragment , 1 ) , I ( e , n . parentNode , n ) ) : e = null } else t && e . $set ( s ) } , i ( l ) { r || ( e && p ( e . $$ . fragment , l ) , r = ! 0 ) } , o ( l ) { e && _ ( e . $$ . fragment , l ) , r = ! 1 } , d ( l ) { l && d ( n ) , e && z ( e , l ) } } } function fn ( a ) { let e = a [ 6 ] . raw + "" , n ; return { c ( ) { n = A ( e ) } , l ( r ) { n = W ( r , e ) } , m ( r , t ) { b ( r , n , t ) } , p ( r , t ) { t & 64 && e !== ( e = r [ 6 ] . raw + "" ) && ae ( n , e ) } , i : ne , o : ne , d ( r ) { r && d ( n ) } } } function cn ( a ) { let e , n ; return e = new be ( { props : { tokens : a [ 1 ] , renderers : a [ 5 ] } } ) , { c ( ) { P ( e . $$ . fragment ) } , l ( r ) { Z ( e . $$ . fragment , r ) } , m ( r , t ) { I ( e , r , t ) , n = ! 0 } , p ( r , t ) { const i = { } ; t & 2 && ( i . tokens = r [ 1 ] ) , t & 32 && ( i . renderers = r [ 5 ] ) , e . $set ( i ) } , i ( r ) { n || ( p ( e . $$ . fragment , r ) , n = ! 0 ) } , o ( r ) { _ ( e . $$ . fragment , r ) , n = ! 1 } , d ( r ) { z ( e , r ) } } } function hn ( a ) { let e , n , r , t ; const i = [ cn , fn ] , l = [ ] ; function o ( s , u ) { return s [ 1 ] ? 0 : 1 } return e = o ( a ) , n = l [ e ] = i [ e ] ( a ) , { c ( ) { n . c ( ) , r = E ( ) } , l ( s
2023-01-27 05:28:16 +01:00
` ).map(t=>{const i=t.match(/^ \s +/);if(i===null)return t;const[l]=i;return l.length>=r.length?t.slice(r.length):t}).join( `
` )}class qe{constructor(e){this.options=e||ye}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 r=n[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:n[0],codeBlockStyle:"indented",text:this.options.pedantic?r:Ce(r, `
` )}}}fences(e){const n=this.rules.block.fences.exec(e);if(n){const r=n[0],t=Yn(r,n[3]||"");return{type:"code",raw:r,lang:n[2]?n[2].trim().replace(this.rules.inline._escapes," $ 1"):n[2],text:t}}}heading(e){const n=this.rules.block.heading.exec(e);if(n){let r=n[2].trim();if(/# $ /.test(r)){const t=Ce(r,"#");(this.options.pedantic||!t||/ $ /.test(t))&&(r=t.trim())}return{type:"heading",raw:n[0],depth:n[1].length,text:r,tokens:this.lexer.inline(r)}}}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 r=n[0].replace(/^ *>[ \t ]?/gm,""),t=this.lexer.state.top;this.lexer.state.top=!0;const i=this.lexer.blockTokens(r);return this.lexer.state.top=t,{type:"blockquote",raw:n[0],tokens:i,text:r}}}list(e){let n=this.rules.block.list.exec(e);if(n){let r,t,i,l,o,s,u,f,h,m,c,g,v=n[1].trim();const S=v.length>1, $ ={type:"list",raw:"",ordered:S,start:S?+v.slice(0,-1):"",loose:!1,items:[]};v=S? ` \ \ d { 1 , 9 } \ \ $ { v . slice ( - 1 ) } ` : ` \ \ $ { v } ` ,this.options.pedantic&&(v=S?v:"[*+-]");const x=new RegExp( ` ^ ( { 0 , 3 } $ { v } ) ( ( ? : [ ] [ ^ \ \ n ] * ) ? ( ? : \ \ n | $ ) ) ` );for(;e&&(g=!1,!(!(n=x.exec(e))||this.rules.block.hr.test(e)));){if(r=n[0],e=e.substring(r.length),f=n[2].split( `
` ,1)[0].replace(/^ \t +/,re=>" ".repeat(3*re.length)),h=e.split( `
` ,1)[0],this.options.pedantic?(l=2,c=f.trimLeft()):(l=n[2].search(/[^ ]/),l=l>4?1:l,c=f.slice(l),l+=n[1].length),s=!1,!f&&/^ * $ /.test(h)&&(r+=h+ `
` ,e=e.substring(h.length+1),g=!0),!g){const re=new RegExp( ` ^ { 0 , $ { Math . min ( 3 , l - 1 ) } } ( ? : [ * + - ] | \ \ d { 1 , 9 } [ . ) ] ) ( ( ? : [ ] [ ^ \ \ n ] * ) ? ( ? : \ \ n | $ ) ) ` ),se=new RegExp( ` ^ { 0 , $ { Math . min ( 3 , l - 1 ) } } ( ( ? : - * ) { 3 , } | ( ? : _ * ) { 3 , } | ( ? : \ \ * * ) { 3 , } ) ( ? : \ \ n + | $ ) ` ),ie=new RegExp( ` ^ { 0 , $ { Math . min ( 3 , l - 1 ) } } ( ? : \ ` \` \` |~~~) ` ) , oe = new RegExp ( ` ^ {0, ${ Math . min ( 3 , l - 1 ) } }# ` ) ; for ( ; e && ( m = e . split ( `
` ,1)[0],h=m,this.options.pedantic&&(h=h.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!(ie.test(h)||oe.test(h)||re.test(h)||se.test(e)));){if(h.search(/[^ ]/)>=l||!h.trim())c+= `
` +h.slice(l);else{if(s||f.search(/[^ ]/)>=4||ie.test(f)||oe.test(f)||se.test(f))break;c+= `
` +h}!s&&!h.trim()&&(s=!0),r+=m+ `
` ,e=e.substring(m.length+1),f=h.slice(l)}} $ .loose||(u? $ .loose=!0:/ \n * \n * $ /.test(r)&&(u=!0)),this.options.gfm&&(t=/^ \[ [ xX] \] /.exec(c),t&&(i=t[0]!=="[ ] ",c=c.replace(/^ \[ [ xX] \] +/,""))), $ .items.push({type:"list_item",raw:r,task:!!t,checked:i,loose:!1,text:c}), $ .raw+=r} $ .items[ $ .items.length-1].raw=r.trimRight(), $ .items[ $ .items.length-1].text=c.trimRight(), $ .raw= $ .raw.trimRight();const J= $ .items.length;for(o=0;o<J;o++)if(this.lexer.state.top=!1, $ .items[o].tokens=this.lexer.blockTokens( $ .items[o].text,[]),! $ .loose){const re= $ .items[o].tokens.filter(ie=>ie.type==="space"),se=re.length>0&&re.some(ie=>/ \n .* \n /.test(ie.raw)); $ .loose=se}if( $ .loose)for(o=0;o<J;o++) $ .items[o].loose=!0;return $ }}html(e){const n=this.rules.block.html.exec(e);if(n){const r={type:"html",raw:n[0],pre:!this.options.sanitizer&&(n[1]==="pre"||n[1]==="script"||n[1]==="style"),text:n[0]};if(this.options.sanitize){const t=this.options.sanitizer?this.options.sanitizer(n[0]):K(n[0]);r.type="paragraph",r.text=t,r.tokens=this.lexer.inline(t)}return r}}def(e){const n=this.rules.block.def.exec(e);if(n){const r=n[1].toLowerCase().replace(/ \s +/g," "),t=n[2]?n[2].replace(/^<(.*)> $ /," $ 1").replace(this.rules.inline._escapes," $ 1"):"",i=n[3]?n[3].substring(1,n[3].length-1).replace(this.rules.inline._escapes," $ 1"):n[3];return{type:"def",tag:r,raw:n[0],href:t,title:i}}}table(e){const n=this.rules.block.table.exec(e);if(n){const r={type:"table",header:at(n[1]).map(t=>({text:t})),align:n[2].replace(/^ *| \| * $ /g,"").split(/ * \| */),rows:n[3]&&n[3].trim()?n[3].replace(/ \n [ \t ]* $ /,"").split( `
` ):[]};if(r.header.length===r.align.length){r.raw=n[0];let t=r.align.length,i,l,o,s;for(i=0;i<t;i++)/^ *-+: * $ /.test(r.align[i])?r.align[i]="right":/^ *:-+: * $ /.test(r.align[i])?r.align[i]="center":/^ *:-+ * $ /.test(r.align[i])?r.align[i]="left":r.align[i]=null;for(t=r.rows.length,i=0;i<t;i++)r.rows[i]=at(r.rows[i],r.header.length).map(u=>({text:u}));for(t=r.header.length,l=0;l<t;l++)r.header[l].tokens=this.lexer.inline(r.header[l].text);for(t=r.rows.length,l=0;l<t;l++)for(s=r.rows[l],o=0;o<s.length;o++)s[o].tokens=this.lexer.inline(s[o].text);return r}}}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 r=n[1].charAt(n[1].length-1)=== `
` ?n[1].slice(0,-1):n[1];return{type:"paragraph",raw:n[0],text:r,tokens:this.lexer.inline(r)}}}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:K(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:this.options.sanitize?"text":"html",raw:n[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(n[0]):K(n[0]):n[0]}}link(e){const n=this.rules.inline.link.exec(e);if(n){const r=n[2].trim();if(!this.options.pedantic&&/^</.test(r)){if(!/> $ /.test(r))return;const l=Ce(r.slice(0,-1)," \\ ");if((r.length-l.length)%2===0)return}else{const l=Ln(n[2],"()");if(l>-1){const s=(n[0].indexOf("!")===0?5:4)+n[1].length+l;n[2]=n[2].substring(0,l),n[0]=n[0].substring(0,s).trim(),n[3]=""}}let t=n[2],i="";if(this.options.pedantic){const l=/^([^'"]*[^ \s ]) \s +(['"])(.*) \2 /.exec(t);l&&(t=l[1],i=l[3])}else i=n[3]?n[3].slice(1,-1):"";return t=t.trim(),/^</.test(t)&&(this.options.pedantic&&!/> $ /.test(r)?t=t.slice(1):t=t.slice(1,-1)),ot(n,{href:t&&t.replace(this.rules.inline._escapes," $ 1"),title:i&&i.replace(this.rules.inline._escapes," $ 1")},n[0],this.lexer)}}reflink(e,n){let r;if((r=this.rules.inline.reflink.exec(e))||(r=this.rules.inline.nolink.exec(e))){let t=(r[2]||r[1]).replace(/ \s +/g," ");if(t=n[t.toLowerCase()],!t){const i=r[0].charAt(0);return{type:"text",raw:i,text:i}}return ot(r,t,r[0],this.lexer)}}emStrong(e,n,r=""){let t=this.rules.inline.emStrong.lDelim.exec(e);if(!t||t[3]&&r.match(/[ \p {L} \p {N}]/u))return;const i=t[1]||t[2]||"";if(!i||i&&(r===""||this.rules.inline.punctuation.exec(r))){const l=t[0].length-1;let o,s,u=l,f=0;const h=t[0][0]==="*"?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(h.lastIndex=0,n=n.slice(-1*e.length+l);(t=h.exec(n))!=null;){if(o=t[1]||t[2]||t[3]||t[4]||t[5]||t[6],!o)continue;if(s=o.length,t[3]||t[4]){u+=s;continue}else if((t[5]||t[6])&&l%3&&!((l+s)%3)){f+=s;continue}if(u-=s,u>0)continue;s=Math.min(s,s+u+f);const m=e.slice(0,l+t.index+(t[0].length-o.length)+s);if(Math.min(l,s)%2){const g=m.slice(1,-1);return{type:"em",raw:m,text:g,tokens:this.lexer.inlineTokens(g)}}const c=m.slice(2,-2);return{type:"strong",raw:m,text:c,tokens:this.lexer.inlineTokens(c)}}}}codespan(e){const n=this.rules.inline.code.exec(e);if(n){let r=n[2].replace(/ \n /g," ");const t=/[^ ]/.test(r),i=/^ /.test(r)&&/ $ /.test(r);return t&&i&&(r=r.substring(1,r.length-1)),r=K(r,!0),{type:"codespan",raw:n[0],text:r}}}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,n){const r=this.rules.inline.autolink.exec(e);if(r){let t,i;return r[2]==="@"?(t=K(this.options.mangle?n(r[1]):r[1]),i="mailto:"+t):(t=K(r[1]),i=t),{type:"link",raw:r[0],text:t,href:i,tokens:[{type:"text",raw:t,text:t}]}}}url(e,n){let r;if(r=this.rules.inline.url.exec(e)){let t,i;if(r[2]==="@")t=K(this.options.mangle?n(r[0]):r[0]),i="mailto:"+t;else{let l;do l=r[0],r[0]=this.rules.inline._backpedal.exec(r[0])[0];while(l!==r[0]);t=K(r[0]),r[1]==="www."?i="http://"+r[0]:i=r[0]}return{type:"link",raw:r[0],text:t,href:i,tokens:[{type:"text",raw:t,text:t}]}}}inlineText(e,n){const r=this.rules.inline.text.exec(e);if(r){let t;return this.lexer.state.inRawBlock?t=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(r[0]):K(r[0]):r[0]:t=K(this.options.smartypants?n(r[0]):r[0]),{type:"text",raw:r[0],text:t}}}}const D={newline:/^(?: *(?: \n | $ ))+/,code:/^( {4}[^ \n ]+(?: \n (?: *(?: \n | $
] ` ).replace("lheading",D.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});const k={escape:/^ \\ ([!"# $ %&'()*+, \- ./:;<=>?@ \[ \] \\ ^_ ` { | } ~ ] ) / , autolink : /^<(scheme:[^\s\x00-\x1f<>]*|email)>/ , url : Re , 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 : Re , text : /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/ , punctuation : /^([\spunctuation])/ } ; k . _punctuation = "!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~" ; k . punctuation = Y ( k . punctuation ) . replace ( /punctuation/g , k . _punctuation ) . getRegex ( ) ; k . blockSkip = /\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g ; k . escapedEmSt = /(?:^|[^\\])(?:\\\\)*\\[*_]/g ; k . _comment = Y ( D . _comment ) . replace ( "(?:-->|$)" , "-->" ) . getRegex ( ) ; k . emStrong . lDelim = Y ( k . emStrong . lDelim ) . replace ( /punct/g , k . _punctuation ) . getRegex ( ) ; k . emStrong . rDelimAst = Y ( k . emStrong . rDelimAst , "g" ) . replace ( /punct/g , k . _punctuation ) . getRegex ( ) ; k . emStrong . rDelimUnd = Y ( k . emStrong . rDelimUnd , "g" ) . replace ( /punct/g , k . _punctuation ) . getRegex ( ) ; k . _escapes = /\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g ; k . _scheme = /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/ ; k . _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])?)+(?![-_])/ ; k . autolink = Y ( k . autolink ) . replace ( "scheme" , k . _scheme ) . replace ( "email" , k . _email ) . getRegex ( ) ; k . _attribute = /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/ ; k . tag = Y ( k . tag ) . replace ( "comment" , k . _comment ) . replace ( "attribute" , k . _attribute ) . getRegex ( ) ; k . _label = /(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/ ; k . _href = /<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/ ; k . _title = /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/ ; k . link = Y ( k . link ) . replace ( "label" , k . _label ) . replace ( "href" , k . _href ) . replace ( "title" , k . _title ) . getRegex ( ) ; k . reflink = Y ( k . reflink ) . replace ( "label" , k . _label ) . replace ( "ref" , D . _label ) . getRegex ( ) ; k . nolink = Y ( k . nolink ) . replace ( "ref" , D . _label ) . getRegex ( ) ; k . reflinkSearch = Y ( k . reflinkSearch , "g" ) . replace ( "reflink" , k . reflink ) . replace ( "nolink" , k . nolink ) . getRegex ( ) ; k . normal = ue ( { } , k ) ; k . pedantic = ue ( { } , k . 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 : Y ( /^!?\[(label)\]\((.*?)\)/ ) . replace ( "label" , k . _label ) . getRegex ( ) , reflink : Y ( /^!?\[(label)\]\s*\[([^\]]*)\]/ ) . replace ( "label" , k . _label ) . getRegex ( ) } ) ; k . gfm = ue ( { } , k . normal , { escape : Y ( k . 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.!#$%&'*+\/=?_`{\|}~-]+@)))/ } ) ; k . gfm . url = Y ( k . gfm . url , "i"
` ),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,(o,s,u)=>s+" ".repeat(u.length));let r,t,i,l;for(;e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(o=>(r=o.call({lexer:this},e,n))?(e=e.substring(r.raw.length),n.push(r),!0):!1))){if(r=this.tokenizer.space(e)){e=e.substring(r.raw.length),r.raw.length===1&&n.length>0?n[n.length-1].raw+= `
` :n.push(r);continue}if(r=this.tokenizer.code(e)){e=e.substring(r.raw.length),t=n[n.length-1],t&&(t.type==="paragraph"||t.type==="text")?(t.raw+= `
` +r.raw,t.text+= `
` +r.text,this.inlineQueue[this.inlineQueue.length-1].src=t.text):n.push(r);continue}if(r=this.tokenizer.fences(e)){e=e.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.heading(e)){e=e.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.hr(e)){e=e.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.blockquote(e)){e=e.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.list(e)){e=e.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.html(e)){e=e.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.def(e)){e=e.substring(r.raw.length),t=n[n.length-1],t&&(t.type==="paragraph"||t.type==="text")?(t.raw+= `
` +r.raw,t.text+= `
` +r.raw,this.inlineQueue[this.inlineQueue.length-1].src=t.text):this.tokens.links[r.tag]||(this.tokens.links[r.tag]={href:r.href,title:r.title});continue}if(r=this.tokenizer.table(e)){e=e.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.lheading(e)){e=e.substring(r.raw.length),n.push(r);continue}if(i=e,this.options.extensions&&this.options.extensions.startBlock){let o=1/0;const s=e.slice(1);let u;this.options.extensions.startBlock.forEach(function(f){u=f.call({lexer:this},s),typeof u=="number"&&u>=0&&(o=Math.min(o,u))}),o<1/0&&o>=0&&(i=e.substring(0,o+1))}if(this.state.top&&(r=this.tokenizer.paragraph(i))){t=n[n.length-1],l&&t.type==="paragraph"?(t.raw+= `
` +r.raw,t.text+= `
` +r.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=t.text):n.push(r),l=i.length!==e.length,e=e.substring(r.raw.length);continue}if(r=this.tokenizer.text(e)){e=e.substring(r.raw.length),t=n[n.length-1],t&&t.type==="text"?(t.raw+= `
` +r.raw,t.text+= `
` +r.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=t.text):n.push(r);continue}if(e){const o="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(o);break}else throw new Error(o)}}return this.state.top=!0,n}inline(e,n=[]){return this.inlineQueue.push({src:e,tokens:n}),n}inlineTokens(e,n=[]){let r,t,i,l=e,o,s,u;if(this.tokens.links){const f=Object.keys(this.tokens.links);if(f.length>0)for(;(o=this.tokenizer.rules.inline.reflinkSearch.exec(l))!=null;)f.includes(o[0].slice(o[0].lastIndexOf("[")+1,-1))&&(l=l.slice(0,o.index)+"["+st("a",o[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(o=this.tokenizer.rules.inline.blockSkip.exec(l))!=null;)l=l.slice(0,o.index)+"["+st("a",o[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(o=this.tokenizer.rules.inline.escapedEmSt.exec(l))!=null;)l=l.slice(0,o.index+o[0].length-2)+"++"+l.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex),this.tokenizer.rules.inline.escapedEmSt.lastIndex--;for(;e;)if(s||(u=""),s=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(f=>(r=f.call({lexer:this},e,n))?(e=e.substring(r.raw.length),n.push(r),!0):!1))){if(r=this.tokenizer.escape(e)){e=e.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.tag(e)){e=e.substring(r.raw.length),t=n[n.length-1],t&&r.type==="text"&&t.type==="text"?(t.raw+=r.raw,t.text+=r.text):n.push(r);continue}if(r=this.tokenizer.link(e)){e=e.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(r.raw.length),t=n[n.length-1],t&&r.type==="text"&&t.type==="text"?(t.raw+=r.raw,t.text+=r.text):n.push(r);continue}if(r=this.tokenizer.emStrong(e,l,u)){e=e.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.codespan(e)){e=e.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.br(e)){e=e.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.del(e)){e=e.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.autolink(e,ut)){e=e.substring(r.raw.length),n.push(r);continue}if(!this.state.inLink&&(r=this.tokenizer.url(e,ut))){e=e.substring(r.raw.length),n.push(r);continue}if(i=e,this.options.extensions&&this.options.extensions.startInline){let f=1/0;const h=e.slice(1);let m;this.options.extensions.startInline.forEach(function(c){m=c.call({lexer:this},h),typeof m=="number"&&m>=0&&(f=Math.min(f,m))}),f<1/0&&f>=0&&(i=e.substring(0,f+1))}if(r=this.tokenizer.inlineText(i,qn)){e=e.substring(r.raw.length),r.raw.slice(-1)!=="_"&&(u=r.raw.slice(-1)),s=!0,t=n[n.length-1],t&&t.type==="text"?(t.raw+=r.raw,t.text+=r.text):n.push(r);continue}if(e){const f="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(f);break}else throw new Error(f)}}return n}}class Be{constructor(e){this.options=e||ye}code(e,n,r){const t=(n||"").match(/ \S */)[0];if(this.options.highlight){const i=this.options.highlight(e,t);i!=null&&i!==e&&(r=!0,e=i)}return e=e.replace(/ \n $ /,"")+ `
` ,t?'<pre><code class="'+this.options.langPrefix+K(t)+'">'+(r?e:K(e,!0))+ ` < / c o d e > < / p r e >
` :"<pre><code>"+(r?e:K(e,!0))+ ` < / c o d e > < / p r e >
` }blockquote(e){return ` < blockquote >
$ { e } < / b l o c k q u o t e >
` }html(e){return e}heading(e,n,r,t){if(this.options.headerIds){const i=this.options.headerPrefix+t.slug(r);return ` < h$ { n } id = "${i}" > $ { e } < / h $ { n } >
` }return ` < h$ { n } > $ { e } < / h $ { n } >
` }hr(){return this.options.xhtml? ` < hr / >
` : ` < hr >
` }list(e,n,r){const t=n?"ol":"ul",i=n&&r!==1?' start="'+r+'"':"";return"<"+t+i+ ` >
` +e+"</"+t+ ` >
` }listitem(e){return ` < li > $ { e } < / l i >
` }checkbox(e){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "}paragraph(e){return ` < p > $ { e } < / p >
` }table(e,n){return n&&(n= ` < tbody > $ { n } < / t b o d y > ` ) , ` < t a b l e >
< thead >
` +e+ ` < / t h e a d >
` +n+ ` < / t a b l e >
` }tablerow(e){return ` < tr >
$ { e } < / t r >
` }tablecell(e,n){const r=n.header?"th":"td";return(n.align? ` < $ { r } align = "${n.align}" > ` : ` < $ { r } > ` )+e+ ` < / $ { r } >
2023-01-27 05:46:04 +01:00
` }strong(e){return ` < strong > $ { e } < / s t r o n g > ` } e m ( e ) { r e t u r n ` < e m > $ { e } < / e m > ` } c o d e s p a n ( e ) { r e t u r n ` < c o d e > $ { e } < / c o d e > ` } b r ( ) { r e t u r n t h i s . o p t i o n s . x h t m l ? " < b r / > " : " < b r > " } d e l ( e ) { r e t u r n ` < d e l > $ { e } < / d e l > ` } l i n k ( e , n , r ) { i f ( e = l t ( t h i s . o p t i o n s . s a n i t i z e , t h i s . o p t i o n s . b a s e U r l , e ) , e = = = n u l l ) r e t u r n r ; l e t t = ' < a h r e f = " ' + e + ' " ' ; r e t u r n n & & ( t + = ' t i t l e = " ' + n + ' " ' ) , t + = " > " + r + " < / a > " , t } i m a g e ( e , n , r ) { i f ( e = l t ( t h i s . o p t i o n s . s a n i t i z e , t h i s . o p t i o n s . b a s e U r l , e ) , e = = = n u l l ) r e t u r n r ; l e t t = ` < i m g s r c = " $ { e } " a l t = " $ { r } " ` ; r e t u r n n & & ( t + = ` t i t l e = " $ { n } " ` ) , t + = t h i s . o p t i o n s . x h t m l ? " / > " : " > " , t } t e x t ( e ) { r e t u r n e } } c l a s s A t { s t r o n g ( e ) { r e t u r n e } e m ( e ) { r e t u r n e } c o d e s p a n ( e ) { r e t u r n e } d e l ( e ) { r e t u r n e } h t m l ( e ) { r e t u r n e } t e x t ( e ) { r e t u r n e } l i n k ( e , n , r ) { r e t u r n " " + r } i m a g e ( e , n , r ) { r e t u r n " " + r } b r ( ) { r e t u r n " " } } c l a s s H e { c o n s t r u c t o r ( ) { t h i s . s e e n = { } } s e r i a l i z e ( e ) { r e t u r n e . t o L o w e r C a s e ( ) . t r i m ( ) . r e p l a c e ( / < [ ! \ / a - z ] . * ? > / i g , " " ) . r e p l a c e ( / [ \ u 2 0 0 0 - \ u 2 0 6 F \ u 2 E 0 0 - \ u 2 E 7 F \ \ ' ! " # $ % & ( ) * + , . / : ; < = > ? @ [ \ ] ^ ` { | } ~ ] / g , " " ) . r e p l a c e ( / \ s / g , " - " ) } g e t N e x t S a f e S l u g ( e , n ) { l e t r = e , t = 0 ; i f ( t h i s . s e e n . h a s O w n P r o p e r t y ( r ) ) { t = t h i s . s e e n [ e ] ; d o t + + , r = e + " - " + t ; w h i l e ( t h i s . s e e n . h a s O w n P r o p e r t y ( r ) ) } r e t u r n n | | ( t h i s . s e e n [ e ] = t , t h i s . s e e n [ r ] = 0 ) , r } s l u g ( e , n = { } ) { c o n s t r = t h i s . s e r i a l i z e ( e ) ; r e t u r n t h i s . g e t N e x t S a f e S l u g ( r , n . d r y r u n ) } } c l a s s f e { c o n s t r u c t o r ( e ) { t h i s . o p t i o n s = e | | y e , t h i s . o p t i o n s . r e n d e r e r = t h i s . o p t i o n s . r e n d e r e r | | n e w B e , t h i s . r e n d e r e r = t h i s . o p t i o n s . r e n d e r e r , t h i s . r e n d e r e r . o p t i o n s = t h i s . o p t i o n s , t h i s . t e x t R e n d e r e r = n e w A t , t h i s . s l u g g e r = n e w H e } s t a t i c p a r s e ( e , n ) { r e t u r n n e w f e ( n ) . p a r s e ( e ) } s t a t i c p a r s e I n l i n e ( e , n ) { r e t u r n n e w f e ( n ) . p a r s e I n l i n e ( e ) } p a r s e ( e , n = ! 0 ) { l e t r = " " , t , i , l , o , s , u , f , h , m , c , g , v , S , $ , x , J , r e , s e , i e ; c o n s t o e = e . l e n g t h ; f o r ( t = 0 ; t < o e ; t + + ) { i f ( c = e [ t ] , t h i s . o p t i o n s . e x t e n s i o n s & & t h i s . o p t i o n s . e x t e n s i o n s . r e n d e r e r s & & t h i s . o p t i o n s . e x t e n s i o n s . r e n d e r e r s [ c . t y p e ] & & ( i e = t h i s . o p t i o n s . e x t e n s i o n s . r e n d e r e r s [ c . t y p e ] . c a l l ( { p a r s e r : t h i s } , c ) , i e ! = = ! 1 | | ! [ " s p a c e " , " h r " , " h e a d i n g " , " c o d e " , " t a b l e " , " b l o c k q u o t e " , " l i s t " , " h t m l " , " p a r a g r a p h " , " t e x t " ] . i n c l u d e s ( c . t y p e ) ) ) { r + = i e | | " " ; c o n t i n u e } s w i t c h ( c . t y p e ) { c a s e " s p a c e " : c o n t i n u e ; c a s e " h r " : { r + = t h i s . r e n d e r e r . h r ( ) ; c o n t i n u e } c a s e " h e a d i n g " : { r + = t h i s . r e n d e r e r . h e a d i n g ( t h i s . p a r s e I n l i n e ( c . t o k e n s ) , c . d e p t h , N t ( t h i s . p a r s e I n l i n e ( c . t o k e n s , t h i s . t e x t R e n d e r e r ) ) , t h i s . s l u g g e r ) ; c o n t i n u e } c a s e " c o d e " : { r + = t h i s . r e n d e r e r . c o d e ( c . t e x t , c . l a n g , c . e s c a p e d ) ; c o n t i n u e } c a s e " t a b l e " : { f o r ( h = " " , f = " " , o = c . h e a d e r . l e n g t h , i = 0 ; i < o ; i + + ) f + = t h i s . r e n d e r e r . t a b l e c e l l ( t h i s . p a r s e I n l i n e ( c . h e a d e r [ i ] . t o k e n s ) , { h e a d e r : ! 0 , a l i g n : c . a l i g n [ i ] } ) ; f o r ( h + = t h i s . r e n d e r e r . t a b l e r o w ( f ) , m = " " , o = c . r o w s . l e n g t h , i = 0 ; i < o ; i + + ) { f o r ( u = c . r o w s [ i ] , f = " " , s = u . l e n g t h , l = 0 ; l < s ; l + + ) f + = t h i s . r e n d e r e r . t a b l e c e l l ( t h i s . p a r s e I n l i n e ( u [ l ] . t o k e n s ) , { h e a d e r : ! 1 , a l i g n : c . a l i g n [ l ] } ) ; m + = t h i s . r e n d e r e r . t a b l e r o w ( f ) } r + = t h i s . r e n d e r e r . t a b l e ( h , m ) ; c o n t i n u e } c a s e " b l o c k q u o t e " : { m = t h i s . p a r s e ( c . t o k e n s ) , r + = t h i s . r e n d e r e r . b l o c k q u o t e ( m ) ; c o n t i n u e } c a s e " l i s t " : { f o r ( g = c . o r d e r e d , v = c . s t a r t , S = c . l o o s e , o = c . i t e m s . l e n g t h , m = " " , i = 0 ; i < o ; i + + ) x = c . i t e m s [ i ] , J = x . c h e c k e d , r e = x . t a s k , $ = " " , x . t a s k & & ( s e = t h i s . r e n d e r e r . c h e c k b o x ( J ) , S ? x . t o k e n s . l e n g t h > 0 & & x . t o k e n s [ 0 ] . t y p e = = = " p a r a g r a p h " ? ( x . t o k e n s [ 0 ] . t e x t = s e + " " + x . t o k e n s [ 0 ] . t e x t , x . t o k e n s [ 0 ] . t o k e n s & & x . t o k e n s [ 0 ] . t o k e n s . l e n g t h > 0 & & x . t o k e n s [ 0 ] . t o k e n s [ 0 ] . t y p e = = = " t e x t " & & ( x . t o k e n s [ 0 ] . t o k e n s [ 0 ] . t e x t = s e + " " + x . t o k e n s [ 0 ] . t o k e n s [ 0 ] . t e x t ) ) : x . t o k e n s . u n s h i f t ( { t y p e : " t e x t " , t e x t : s e } ) : $ + = s e ) , $ + = t h i s . p a r s e ( x . t o k e n s , S ) , m + = t h i s . r e n d e r e r . l i s t i t e m ( $ , r e , J ) ; r + = t h i s . r e n d e r e r . l i s t ( m , g , v ) ; c o n t i n u e } c a s e " h t m l " : { r + = t h i s . r e n d e r e r . h t m l ( c . t e x t ) ; c o n t i n u e } c a s e " p a r a g r a p h " : { r + = t h i s . r e n d e r e r . p a r a g r a p h ( t h i s . p a r s e I n l i n e ( c . t o k e n s ) ) ; c o n t i n u e } c a s e " t e x t " : { f o r ( m = c . t o k e n s ? t h i s . p a r s e I n l i n e ( c . t o k e n s ) : c . t e x t ; t + 1 < o e & & e [ t + 1 ] . t y p e = = = " t e x t " ; ) c = e [ + + t ] , m + = `
2023-01-27 05:28:16 +01:00
` +(c.tokens?this.parseInline(c.tokens):c.text);r+=n?this.renderer.paragraph(m):m;continue}default:{const we='Token with "'+c.type+'" type was not found.';if(this.options.silent){console.error(we);return}else throw new Error(we)}}}return r}parseInline(e,n){n=n||this.renderer;let r="",t,i,l;const o=e.length;for(t=0;t<o;t++){if(i=e[t],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[i.type]&&(l=this.options.extensions.renderers[i.type].call({parser:this},i),l!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(i.type))){r+=l||"";continue}switch(i.type){case"escape":{r+=n.text(i.text);break}case"html":{r+=n.html(i.text);break}case"link":{r+=n.link(i.href,i.title,this.parseInline(i.tokens,n));break}case"image":{r+=n.image(i.href,i.title,i.text);break}case"strong":{r+=n.strong(this.parseInline(i.tokens,n));break}case"em":{r+=n.em(this.parseInline(i.tokens,n));break}case"codespan":{r+=n.codespan(i.text);break}case"br":{r+=n.br();break}case"del":{r+=n.del(this.parseInline(i.tokens,n));break}case"text":{r+=n.text(i.text);break}default:{const s='Token with "'+i.type+'" type was not found.';if(this.options.silent){console.error(s);return}else throw new Error(s)}}}return r}}function O(a,e,n){if(typeof a>"u"||a===null)throw new Error("marked(): input parameter is undefined or null");if(typeof a!="string")throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(a)+", string expected");if(typeof e=="function"&&(n=e,e=null),e=ue({},O.defaults,e||{}),Ut(e),n){const t=e.highlight;let i;try{i=ce.lex(a,e)}catch(s){return n(s)}const l=function(s){let u;if(!s)try{e.walkTokens&&O.walkTokens(i,e.walkTokens),u=fe.parse(i,e)}catch(f){s=f}return e.highlight=t,s?n(s):n(null,u)};if(!t||t.length<3||(delete e.highlight,!i.length))return l();let o=0;O.walkTokens(i,function(s){s.type==="code"&&(o++,setTimeout(()=>{t(s.text,s.lang,function(u,f){if(u)return l(u);f!=null&&f!==s.text&&(s.text=f,s.escaped=!0),o--,o===0&&l()})},0))}),o===0&&l();return}function r(t){if(t.message+= `
Please report this to https : //github.com/markedjs/marked.`,e.silent)return"<p>An error occurred:</p><pre>"+K(t.message+"",!0)+"</pre>";throw t}try{const t=ce.lex(a,e);if(e.walkTokens){if(e.async)return Promise.all(O.walkTokens(t,e.walkTokens)).then(()=>fe.parse(t,e)).catch(r);O.walkTokens(t,e.walkTokens)}return fe.parse(t,e)}catch(t){r(t)}}O.options=O.setOptions=function(a){return ue(O.defaults,a),En(O.defaults),O};O.getDefaults=It;O.defaults=ye;O.use=function(...a){const e=O.defaults.extensions||{renderers:{},childTokens:{}};a.forEach(n=>{const r=ue({},n);if(r.async=O.defaults.async||r.async,n.extensions&&(n.extensions.forEach(t=>{if(!t.name)throw new Error("extension name required");if(t.renderer){const i=e.renderers[t.name];i?e.renderers[t.name]=function(...l){let o=t.renderer.apply(this,l);return o===!1&&(o=i.apply(this,l)),o}:e.renderers[t.name]=t.renderer}if(t.tokenizer){if(!t.level||t.level!=="block"&&t.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");e[t.level]?e[t.level].unshift(t.tokenizer):e[t.level]=[t.tokenizer],t.start&&(t.level==="block"?e.startBlock?e.startBlock.push(t.start):e.startBlock=[t.start]:t.level==="inline"&&(e.startInline?e.startInline.push(t.start):e.startInline=[t.start]))}t.childTokens&&(e.childTokens[t.name]=t.childTokens)}),r.extensions=e),n.renderer){const t=O.defaults.renderer||new Be;for(const i in n.renderer){const l=t[i];t[i]=(...o)=>{let s=n.renderer[i].apply(t,o);return s===!1&&(s=l.apply(t,o)),s}}r.renderer=t}if(n.tokenizer){const t=O.defaults.tokenizer||new qe;for(const i in n.tokenizer){const l=t[i];t[i]=(...o)=>{let s=n.tokenizer[i].apply(t,o);return s===!1&&(s=l.apply(t,o)),s}}r.tokenizer=t}if(n.walkTokens){const t=O.defaults.walkTokens;r.walkTokens=function(i){let l=[];return l.push(n.walkTokens.call(this,i)),t&&(l=l.concat(t.call(this,i))),l}}O.setOptions(r)})};O.walkTokens=function(a,e){let n=[];for(const r of a)switch(n=n.concat(e.call(O,r)),r.type){case"table":{for(const t of r.header)n=n.concat(O.walkTokens(t.tokens,e));for(const t of r.rows)for(const i of t)n=n.concat(O.walkTokens(i.tokens,e));break}case"list":{n=n.concat(O.walkTokens(r.items,e));break}default:O.defaults.extensions&&O.defaults.extensions.childTokens&&O.defaults.extensions.childTokens[r.type]?O.defaults.extensions.childTokens[r.type].forEach(function(t){n=n.concat(O.walkTokens(r[t],e))}):r.tokens&&(n=n.concat(O.walkTokens(r.tokens,e)))}return n};O.parseInline=function(a,e){if(typeof a>"u"||a===null)throw new Error("marked.parseInline(): input parameter is undefined or null");if(typeof a!="string")throw new Error("marked.parseInline(): input parameter is of type "+Object.prototype.toString.call(a)+", string expected");e=ue({},O.defaults,e||{}),Ut(e);try{const n=ce.lexInline(a,e);return e.walkTokens&&O.walkTokens(n,e.walkTokens),fe.parseInline(n,e)}catch(n){if(n.message+=`
2023-01-27 05:46:04 +01:00
Please report this to https : //github.com/markedjs/marked.`,e.silent)return"<p>An error occurred:</p><pre>"+K(n.message+"",!0)+"</pre>";throw n}};O.Parser=fe;O.parser=fe.parse;O.Renderer=Be;O.TextRenderer=At;O.Lexer=ce;O.lexer=ce.lex;O.Tokenizer=qe;O.Slugger=He;O.parse=O;O.options;O.setOptions;O.use;O.walkTokens;O.parseInline;fe.parse;ce.lex;const Wt={};function Bn(a){let e;return{c(){e=A(a[1])},l(n){e=W(n,a[1])},m(n,r){b(n,e,r)},p(n,r){r&2&&ae(e,n[1])},i:ne,o:ne,d(n){n&&d(e)}}}function Hn(a){let e,n;const r=a[5].default,t=X(r,a,a[4],null);return{c(){e=y("h6"),t&&t.c(),this.h()},l(i){e=T(i,"H6",{id:!0});var l=M(e);t&&t.l(l),l.forEach(d),this.h()},h(){w(e,"id",a[2])},m(i,l){b(i,e,l),t&&t.m(e,null),n=!0},p(i,l){t&&t.p&&(!n||l&16)&&j(t,r,i,i[4],n?G(r,i[4],l,null):V(i[4]),null),(!n||l&4)&&w(e,"id",i[2])},i(i){n||(p(t,i),n=!0)},o(i){_(t,i),n=!1},d(i){i&&d(e),t&&t.d(i)}}}function Fn(a){let e,n;const r=a[5].default,t=X(r,a,a[4],null);return{c(){e=y("h5"),t&&t.c(),this.h()},l(i){e=T(i,"H5",{id:!0});var l=M(e);t&&t.l(l),l.forEach(d),this.h()},h(){w(e,"id",a[2])},m(i,l){b(i,e,l),t&&t.m(e,null),n=!0},p(i,l){t&&t.p&&(!n||l&16)&&j(t,r,i,i[4],n?G(r,i[4],l,null):V(i[4]),null),(!n||l&4)&&w(e,"id",i[2])},i(i){n||(p(t,i),n=!0)},o(i){_(t,i),n=!1},d(i){i&&d(e),t&&t.d(i)}}}function Qn(a){let e,n;const r=a[5].default,t=X(r,a,a[4],null);return{c(){e=y("h4"),t&&t.c(),this.h()},l(i){e=T(i,"H4",{id:!0});var l=M(e);t&&t.l(l),l.forEach(d),this.h()},h(){w(e,"id",a[2])},m(i,l){b(i,e,l),t&&t.m(e,null),n=!0},p(i,l){t&&t.p&&(!n||l&16)&&j(t,r,i,i[4],n?G(r,i[4],l,null):V(i[4]),null),(!n||l&4)&&w(e,"id",i[2])},i(i){n||(p(t,i),n=!0)},o(i){_(t,i),n=!1},d(i){i&&d(e),t&&t.d(i)}}}function Xn(a){let e,n;const r=a[5].default,t=X(r,a,a[4],null);return{c(){e=y("h3"),t&&t.c(),this.h()},l(i){e=T(i,"H3",{id:!0});var l=M(e);t&&t.l(l),l.forEach(d),this.h()},h(){w(e,"id",a[2])},m(i,l){b(i,e,l),t&&t.m(e,null),n=!0},p(i,l){t&&t.p&&(!n||l&16)&&j(t,r,i,i[4],n?G(r,i[4],l,null):V(i[4]),null),(!n||l&4)&&w(e,"id",i[2])},i(i){n||(p(t,i),n=!0)},o(i){_(t,i),n=!1},d(i){i&&d(e),t&&t.d(i)}}}function jn(a){let e,n;const r=a[5].default,t=X(r,a,a[4],null);return{c(){e=y("h2"),t&&t.c(),this.h()},l(i){e=T(i,"H2",{id:!0});var l=M(e);t&&t.l(l),l.forEach(d),this.h()},h(){w(e,"id",a[2])},m(i,l){b(i,e,l),t&&t.m(e,null),n=!0},p(i,l){t&&t.p&&(!n||l&16)&&j(t,r,i,i[4],n?G(r,i[4],l,null):V(i[4]),null),(!n||l&4)&&w(e,"id",i[2])},i(i){n||(p(t,i),n=!0)},o(i){_(t,i),n=!1},d(i){i&&d(e),t&&t.d(i)}}}function Vn(a){let e,n;const r=a[5].default,t=X(r,a,a[4],null);return{c(){e=y("h1"),t&&t.c(),this.h()},l(i){e=T(i,"H1",{id:!0});var l=M(e);t&&t.l(l),l.forEach(d),this.h()},h(){w(e,"id",a[2])},m(i,l){b(i,e,l),t&&t.m(e,null),n=!0},p(i,l){t&&t.p&&(!n||l&16)&&j(t,r,i,i[4],n?G(r,i[4],l,null):V(i[4]),null),(!n||l&4)&&w(e,"id",i[2])},i(i){n||(p(t,i),n=!0)},o(i){_(t,i),n=!1},d(i){i&&d(e),t&&t.d(i)}}}function Gn(a){let e,n,r,t;const i=[Vn,jn,Xn,Qn,Fn,Hn,Bn],l=[];function o(s,u){return s[0]===1?0:s[0]===2?1:s[0]===3?2:s[0]===4?3:s[0]===5?4:s[0]===6?5:6}return e=o(a),n=l[e]=i[e](a),{c(){n.c(),r=E()},l(s){n.l(s),r=E()},m(s,u){l[e].m(s,u),b(s,r,u),t=!0},p(s,[u]){let f=e;e=o(s),e===f?l[e].p(s,u):(N(),_(l[f],1,1,()=>{l[f]=null}),U(),n=l[e],n?n.p(s,u):(n=l[e]=i[e](s),n.c()),p(n,1),n.m(r.parentNode,r))},i(s){t||(p(n),t=!0)},o(s){_(n),t=!1},d(s){l[e].d(s),s&&d(r)}}}function Zn(a,e,n){let r,{$$slots:t={},$$scope:i}=e,{depth:l}=e,{raw:o}=e,{text:s}=e;const{slug:u,getOptions:f}=Zt(Wt),h=f();return a.$$set=m=>{"depth"in m&&n(0,l=m.depth),"raw"in m&&n(1,o=m.raw),"text"in m&&n(3,s=m.text),"$$scope"in m&&n(4,i=m.$$scope)},a.$$.update=()=>{a.$$.dirty&8&&n(2,r=h.headerIds?h.headerPrefix+u(s):void 0)},[l,o,r,s,i,t]}class Jn extends B{constructor(e){super(),H(this,e,Zn,Gn,F,{depth:0,raw:1,text:3})}}function Kn(a){let e,n;const r=a[1].default,t=X(r,a,a[0],null);return{c(){e=y("p"),t&&t.c()},l(i){e=T(i,"P",{});var l=M(e);t&&t.l(l),l.forEach(d)},m(i,l){b(i,e,l),t&&t.m(e,null),n=!0},p(i,[l]){t&&t.p&&(!n||l&1)&&j(t,r,i,i[0],n?G(r,i[0],l,null):V(i[0]),null)},i(i){n||(p(t,i),n=!0)},o(i){_(t,i),n=!1},d(i){i&&d(e),t&&t.d(i)}}}function er(a,e,n){let
| ` ),u=y("button"),f=A("Toggle JSON source"),this.h()},l(c){e=W(c," | ID: "),n=T(c,"A",{href:!0,class:!0,target:!0});var g=M(n);t=W(g,r),g.forEach(d),l=W(c," ["),o=W(c,a[1]),s=W(c, ` ]
| ` ),u=T(c,"BUTTON",{class:!0});var v=M(u);f=W(v,"Toggle JSON source"),v.forEach(d),this.h()},h(){w(n,"href",i="https://github.com/utxo-foundation/prague-blockchain-week/tree/main/data/23/events/"+a[0].id),w(n,"class","underline hover:no-underline"),w(n,"target","_blank"),w(u,"class","cursor-pointer underline hover:no-underline")},m(c,g){b(c,e,g),b(c,n,g),C(n,t),b(c,l,g),b(c,o,g),b(c,s,g),b(c,u,g),C(u,f),h||(m=nn(u,"click",a[4]),h=!0)},p(c,g){g&1&&r!==(r=c[0].id+"")&&ae(t,r),g&1&&i!==(i="https://github.com/utxo-foundation/prague-blockchain-week/tree/main/data/23/events/"+c[0].id)&&w(n,"href",i),g&2&&ae(o,c[1])},d(c){c&&d(e),c&&d(n),c&&d(l),c&&d(o),c&&d(s),c&&d(u),h=!1,m()}}}function xt(a){let e,n,r,t,i=JSON.stringify(a[0],null,2)+"",l;return{c(){e=y("h2"),n=A("JSON source-code"),r=ee(),t=y("div"),l=A(i),this.h()},l(o){e=T(o,"H2",{class:!0});var s=M(e);n=W(s,"JSON source-code"),s.forEach(d),r=te(o),t=T(o,"DIV",{class:!0});var u=M(t);l=W(u,i),u.forEach(d),this.h()},h(){w(e,"class","text-2xl uppercase font-bold mt-10 text-gray-500"),w(t,"class","mt-4 font-mono whitespace-pre-wrap p-4 rounded-md bg-slate-200 text-sm text-black")},m(o,s){b(o,e,s),C(e,n),b(o,r,s),b(o,t,s),C(t,l)},p(o,s){s&1&&i!==(i=JSON.stringify(o[0],null,2)+"")&&ae(l,i)},d(o){o&&d(e),o&&d(r),o&&d(t)}}}function Yl(a){let e,n,r,t,i,l,o,s,u,f,h,m,c,g=a[2]&&Ot(a);return{c(){e=y("div"),n=y("div"),r=y("div"),t=A("⚙ This page is automatically generated using the structured dataset which can be consumed as a single JSON file → "),i=y("a"),l=A("data.prgblockweek.com/23/index.json"),o=A( ` .
` ),s=y("div"),u=A( `
📖 The source data GitHub repository → ` ),f=y("a"),h=A("utxo-foundation/prague-blockchain-week"),m=A( ` .
Go ahead and do PRs ! ` ),c=ee(),g&&g.c(),this.h()},l(v){e=T(v,"DIV",{class:!0});var S=M(e);n=T(S,"DIV",{class:!0});var $ =M(n);r=T( $ ,"DIV",{});var x=M(r);t=W(x,"⚙ This page is automatically generated using the structured dataset which can be consumed as a single JSON file → "),i=T(x,"A",{href:!0,class:!0,target:!0});var J=M(i);l=W(J,"data.prgblockweek.com/23/index.json"),J.forEach(d),o=W(x, ` .
` ),s=T(x,"DIV",{class:!0}),M(s).forEach(d),u=W(x, `
📖 The source data GitHub repository → ` ),f=T(x,"A",{href:!0,class:!0,target:!0});var re=M(f);h=W(re,"utxo-foundation/prague-blockchain-week"),re.forEach(d),m=W(x, ` .
2023-01-27 05:28:16 +01:00
Go ahead and do PRs ! ` ),x.forEach(d), $ .forEach(d),c=te(S),g&&g.l(S),S.forEach(d),this.h()},h(){w(i,"href","https://data.prgblockweek.com/23/index.json"),w(i,"class","underline hover:no-underline"),w(i,"target","_blank"),w(s,"class","h-4"),w(f,"href","https://github.com/utxo-foundation/prague-blockchain-week"),w(f,"class","underline hover:no-underline"),w(f,"target","_blank"),w(n,"class","bg-gray-100 p-4 text-lg text-gray-600"),w(e,"class","mt-20")},m(v,S){b(v,e,S),C(e,n),C(n,r),C(r,t),C(r,i),C(i,l),C(r,o),C(r,s),C(r,u),C(r,f),C(f,h),C(r,m),C(e,c),g&&g.m(e,null)},p(v,[S]){v[2]?g?g.p(v,S):(g=Ot(v),g.c(),g.m(e,null)):g&&(g.d(1),g=null)},i:ne,o:ne,d(v){v&&d(e),g&&g.d()}}}function ql(a,e,n){let{item:r}=e,{col:t}=e,{bundle:i}=e,l=!1;const o=()=>(n(3,l=!l),!1);return a. $ $ set=s=>{"item"in s&&n(0,r=s.item),"col"in s&&n(1,t=s.col),"bundle"in s&&n(2,i=s.bundle)},[r,t,i,l,o]}class jl extends B{constructor(e){super(),H(this,e,ql,Yl,F,{item:0,col:1,bundle:2})}}export{Xl as C,jl as F,Lt as S,Fl as b,bt as f,Ql as g};