import{s as m,t as a,f as s,a as i,p,S as l}from"./index.bb94c2e1.js";import{yaml as f}from"./yaml.44f733df.js";import"./index.7a68216a.js";import"./Blocks.1c8a32b7.js";import"./Empty.svelte_svelte_type_style_lang.d7a3af78.js";import"./BlockLabel.fd555cfa.js";import"./Empty.092ff864.js";/* empty css */import"./Copy.fa9f7398.js";import"./Download.e46fa6ff.js";const n=/^---\s*$/m,b={defineNodes:[{name:"Frontmatter",block:!0},"FrontmatterMark"],props:[m({Frontmatter:[a.documentMeta,a.monospace],FrontmatterMark:a.processingInstruction}),s.add({Frontmatter:i,FrontmatterMark:()=>null})],wrap:p(t=>{const{parser:e}=l.define(f);return t.type.name==="Frontmatter"?{parser:e,overlay:[{from:t.from+4,to:t.to-4}]}:null}),parseBlock:[{name:"Frontmatter",before:"HorizontalRule",parse:(t,e)=>{let r;const o=new Array;if(t.lineStart===0&&n.test(e.text)){for(o.push(t.elt("FrontmatterMark",0,4));t.nextLine();)if(n.test(e.text)){r=t.lineStart+4;break}return r!==void 0&&(o.push(t.elt("FrontmatterMark",r-4,r)),t.addElement(t.elt("Frontmatter",0,r,o))),!0}else return!1}}]};export{b as frontmatter}; //# sourceMappingURL=frontmatter.daeef12a.js.map