import{u as unreachable}from"./vendor-d-100-DUwYIYiB.js";import{j as jsxRuntimeExports}from"./react-core-lkHtAB4F.js";import{b as bail}from"./vendor-b-98-FqpXQuLt.js";import{e as extend$1}from"./vendor-e-101-D7dDjsNb.js";import{i as isPlainObject}from"./vendor-i-105-DLPNJOh-.js";import{t as trough}from"./vendor-t-116-CEUFdAEd.js";import{V as VFile}from"./vendor-v-118-B42bNtZ1.js";import{f as fromMarkdown,t as toHast,g as gfm,c as gfmFromMarkdown,d as gfmToMarkdown}from"./vendor-m-109-Du2052Hq.js";import{v as visit}from"./vendor-u-117-DC4Cwaa0.js";import{t as toJsxRuntime,u as urlAttributes,r as raw}from"./vendor-h-104-DCFH7znV.js";import{s as stripBomString,a as sectionMatter}from"./vendor-s-115-HsCUIFCF.js";import{k as kindOf}from"./vendor-k-107-l3izQsJJ.js";var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function getAugmentedNamespace(e){if(e.__esModule)return e;var r=e.default;if(typeof r=="function"){var n=function o(){return this instanceof o?Reflect.construct(r,arguments,this.constructor):r.apply(this,arguments)};n.prototype=r.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(o){var t=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(n,o,t.get?t:{enumerable:!0,get:function(){return e[o]}})}),n}function remarkParse(e){const r=this;r.parser=n;function n(o){return fromMarkdown(o,{...r.data("settings"),...e,extensions:r.data("micromarkExtensions")||[],mdastExtensions:r.data("fromMarkdownExtensions")||[]})}}function remarkRehype(e,r){return e&&"run"in e?async function(n,o){const t=toHast(n,{file:o,...r});await e.run(t,o)}:function(n,o){return toHast(n,{file:o,...e||r})}}const CallableInstance=function(e){const o=this.constructor.prototype,t=o[e],l=function(){return t.apply(l,arguments)};return Object.setPrototypeOf(l,o),l},own={}.hasOwnProperty;class Processor extends CallableInstance{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=trough()}copy(){const r=new Processor;let n=-1;for(;++n0){let[d,...h]=p;const E=o[m][1];isPlainObject(E)&&isPlainObject(d)&&(d=extend$1(!0,E,d)),o[m]=[u,d,...h]}}}}const unified=new Processor().freeze();function assertParser(e,r){if(typeof r!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function assertCompiler(e,r){if(typeof r!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function assertUnfrozen(e,r){if(r)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function assertNode(e){if(!isPlainObject(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function assertDone(e,r,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+r+"` instead")}function vfile(e){return looksLikeAVFile(e)?e:new VFile(e)}function looksLikeAVFile(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function looksLikeAValue(e){return typeof e=="string"||isUint8Array(e)}function isUint8Array(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const changelog="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",emptyPlugins=[],emptyRemarkRehypeOptions={allowDangerousHtml:!0},safeProtocol=/^(https?|ircs?|mailto|xmpp)$/i,deprecations=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function Markdown(e){const r=createProcessor(e),n=createFile(e);return post(r.runSync(r.parse(n),n),e)}function createProcessor(e){const r=e.rehypePlugins||emptyPlugins,n=e.remarkPlugins||emptyPlugins,o=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...emptyRemarkRehypeOptions}:emptyRemarkRehypeOptions;return unified().use(remarkParse).use(n).use(remarkRehype,o).use(r)}function createFile(e){const r=e.children||"",n=new VFile;return typeof r=="string"&&(n.value=r),n}function post(e,r){const n=r.allowedElements,o=r.allowElement,t=r.components,l=r.disallowedElements,a=r.skipHtml,c=r.unwrapDisallowed,s=r.urlTransform||defaultUrlTransform;for(const p of deprecations)Object.hasOwn(r,p.from)&&unreachable("Unexpected `"+p.from+"` prop, "+(p.to?"use `"+p.to+"` instead":"remove it")+" (see <"+changelog+"#"+p.id+"> for more info)");return r.className&&(e={type:"element",tagName:"div",properties:{className:r.className},children:e.type==="root"?e.children:[e]}),visit(e,u),toJsxRuntime(e,{Fragment:jsxRuntimeExports.Fragment,components:t,ignoreInvalidStyle:!0,jsx:jsxRuntimeExports.jsx,jsxs:jsxRuntimeExports.jsxs,passKeys:!0,passNode:!0});function u(p,f,m){if(p.type==="raw"&&m&&typeof f=="number")return a?m.children.splice(f,1):m.children[f]={type:"text",value:p.value},f;if(p.type==="element"){let d;for(d in urlAttributes)if(Object.hasOwn(urlAttributes,d)&&Object.hasOwn(p.properties,d)){const h=p.properties[d],E=urlAttributes[d];(E===null||E.includes(p.tagName))&&(p.properties[d]=s(String(h||""),d,p))}}if(p.type==="element"){let d=n?!n.includes(p.tagName):l?l.includes(p.tagName):!1;if(!d&&o&&typeof f=="number"&&(d=!o(p,f,m)),d&&m&&typeof f=="number")return c&&p.children?m.children.splice(f,1,...p.children):m.children.splice(f,1),f}}}function defaultUrlTransform(e){const r=e.indexOf(":"),n=e.indexOf("?"),o=e.indexOf("#"),t=e.indexOf("/");return r===-1||t!==-1&&r>t||n!==-1&&r>n||o!==-1&&r>o||safeProtocol.test(e.slice(0,r))?e:""}const __viteBrowserExternal={},__viteBrowserExternal$1=Object.freeze(Object.defineProperty({__proto__:null,default:__viteBrowserExternal},Symbol.toStringTag,{value:"Module"})),require$$0=getAugmentedNamespace(__viteBrowserExternal$1);var engines$2={exports:{}},jsYaml$1={},loader$1={},common$6={};function isNothing(e){return typeof e>"u"||e===null}function isObject(e){return typeof e=="object"&&e!==null}function toArray(e){return Array.isArray(e)?e:isNothing(e)?[]:[e]}function extend(e,r){var n,o,t,l;if(r)for(l=Object.keys(r),n=0,o=l.length;n0&&`\0\r …\u2028\u2029`.indexOf(this.buffer.charAt(t-1))===-1;)if(t-=1,this.position-t>n/2-1){o=" ... ",t+=5;break}for(l="",a=this.position;an/2-1){l=" ... ",a-=5;break}return c=this.buffer.slice(t,a),common$5.repeat(" ",r)+o+c+l+` `+common$5.repeat(" ",r+this.position-t+o.length)+"^"};Mark$1.prototype.toString=function(r){var n,o="";return this.name&&(o+='in "'+this.name+'" '),o+="at line "+(this.line+1)+", column "+(this.column+1),r||(n=this.getSnippet(),n&&(o+=`: `+n)),o};var mark=Mark$1,YAMLException$3=exception,TYPE_CONSTRUCTOR_OPTIONS=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],YAML_NODE_KINDS=["scalar","sequence","mapping"];function compileStyleAliases(e){var r={};return e!==null&&Object.keys(e).forEach(function(n){e[n].forEach(function(o){r[String(o)]=n})}),r}function Type$h(e,r){if(r=r||{},Object.keys(r).forEach(function(n){if(TYPE_CONSTRUCTOR_OPTIONS.indexOf(n)===-1)throw new YAMLException$3('Unknown option "'+n+'" is met in definition of "'+e+'" YAML type.')}),this.tag=e,this.kind=r.kind||null,this.resolve=r.resolve||function(){return!0},this.construct=r.construct||function(n){return n},this.instanceOf=r.instanceOf||null,this.predicate=r.predicate||null,this.represent=r.represent||null,this.defaultStyle=r.defaultStyle||null,this.styleAliases=compileStyleAliases(r.styleAliases||null),YAML_NODE_KINDS.indexOf(this.kind)===-1)throw new YAMLException$3('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var type=Type$h,common$4=common$6,YAMLException$2=exception,Type$g=type;function compileList(e,r,n){var o=[];return e.include.forEach(function(t){n=compileList(t,r,n)}),e[r].forEach(function(t){n.forEach(function(l,a){l.tag===t.tag&&l.kind===t.kind&&o.push(a)}),n.push(t)}),n.filter(function(t,l){return o.indexOf(l)===-1})}function compileMap(){var e={scalar:{},sequence:{},mapping:{},fallback:{}},r,n;function o(t){e[t.kind][t.tag]=e.fallback[t.tag]=t}for(r=0,n=arguments.length;r=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0"+e.toString(8):"-0"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),common$2=common$6,Type$9=type,YAML_FLOAT_PATTERN=new RegExp("^(?:[-+]?(?:0|[1-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function resolveYamlFloat(e){return!(e===null||!YAML_FLOAT_PATTERN.test(e)||e[e.length-1]==="_")}function constructYamlFloat(e){var r,n,o,t;return r=e.replace(/_/g,"").toLowerCase(),n=r[0]==="-"?-1:1,t=[],"+-".indexOf(r[0])>=0&&(r=r.slice(1)),r===".inf"?n===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:r===".nan"?NaN:r.indexOf(":")>=0?(r.split(":").forEach(function(l){t.unshift(parseFloat(l,10))}),r=0,o=1,t.forEach(function(l){r+=l*o,o*=60}),n*r):n*parseFloat(r,10)}var SCIENTIFIC_WITHOUT_DOT=/^[-+]?[0-9]+e/;function representYamlFloat(e,r){var n;if(isNaN(e))switch(r){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(r){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(r){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(common$2.isNegativeZero(e))return"-0.0";return n=e.toString(10),SCIENTIFIC_WITHOUT_DOT.test(n)?n.replace("e",".e"):n}function isFloat(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||common$2.isNegativeZero(e))}var float=new Type$9("tag:yaml.org,2002:float",{kind:"scalar",resolve:resolveYamlFloat,construct:constructYamlFloat,predicate:isFloat,represent:representYamlFloat,defaultStyle:"lowercase"}),Schema$3=schema,json=new Schema$3({include:[failsafe],implicit:[_null,bool,int,float]}),Schema$2=schema,core=new Schema$2({include:[json]}),Type$8=type,YAML_DATE_REGEXP=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),YAML_TIMESTAMP_REGEXP=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function resolveYamlTimestamp(e){return e===null?!1:YAML_DATE_REGEXP.exec(e)!==null||YAML_TIMESTAMP_REGEXP.exec(e)!==null}function constructYamlTimestamp(e){var r,n,o,t,l,a,c,s=0,u=null,p,f,m;if(r=YAML_DATE_REGEXP.exec(e),r===null&&(r=YAML_TIMESTAMP_REGEXP.exec(e)),r===null)throw new Error("Date resolve error");if(n=+r[1],o=+r[2]-1,t=+r[3],!r[4])return new Date(Date.UTC(n,o,t));if(l=+r[4],a=+r[5],c=+r[6],r[7]){for(s=r[7].slice(0,3);s.length<3;)s+="0";s=+s}return r[9]&&(p=+r[10],f=+(r[11]||0),u=(p*60+f)*6e4,r[9]==="-"&&(u=-u)),m=new Date(Date.UTC(n,o,t,l,a,c,s)),u&&m.setTime(m.getTime()-u),m}function representYamlTimestamp(e){return e.toISOString()}var timestamp=new Type$8("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:resolveYamlTimestamp,construct:constructYamlTimestamp,instanceOf:Date,represent:representYamlTimestamp}),Type$7=type;function resolveYamlMerge(e){return e==="<<"||e===null}var merge=new Type$7("tag:yaml.org,2002:merge",{kind:"scalar",resolve:resolveYamlMerge});function commonjsRequire(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var NodeBuffer;try{var _require$1=commonjsRequire;NodeBuffer=_require$1("buffer").Buffer}catch{}var Type$6=type,BASE64_MAP=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/= \r`;function resolveYamlBinary(e){if(e===null)return!1;var r,n,o=0,t=e.length,l=BASE64_MAP;for(n=0;n64)){if(r<0)return!1;o+=6}return o%8===0}function constructYamlBinary(e){var r,n,o=e.replace(/[\r\n=]/g,""),t=o.length,l=BASE64_MAP,a=0,c=[];for(r=0;r>16&255),c.push(a>>8&255),c.push(a&255)),a=a<<6|l.indexOf(o.charAt(r));return n=t%4*6,n===0?(c.push(a>>16&255),c.push(a>>8&255),c.push(a&255)):n===18?(c.push(a>>10&255),c.push(a>>2&255)):n===12&&c.push(a>>4&255),NodeBuffer?NodeBuffer.from?NodeBuffer.from(c):new NodeBuffer(c):c}function representYamlBinary(e){var r="",n=0,o,t,l=e.length,a=BASE64_MAP;for(o=0;o>18&63],r+=a[n>>12&63],r+=a[n>>6&63],r+=a[n&63]),n=(n<<8)+e[o];return t=l%3,t===0?(r+=a[n>>18&63],r+=a[n>>12&63],r+=a[n>>6&63],r+=a[n&63]):t===2?(r+=a[n>>10&63],r+=a[n>>4&63],r+=a[n<<2&63],r+=a[64]):t===1&&(r+=a[n>>2&63],r+=a[n<<4&63],r+=a[64],r+=a[64]),r}function isBinary(e){return NodeBuffer&&NodeBuffer.isBuffer(e)}var binary=new Type$6("tag:yaml.org,2002:binary",{kind:"scalar",resolve:resolveYamlBinary,construct:constructYamlBinary,predicate:isBinary,represent:representYamlBinary}),Type$5=type,_hasOwnProperty$3=Object.prototype.hasOwnProperty,_toString$2=Object.prototype.toString;function resolveYamlOmap(e){if(e===null)return!0;var r=[],n,o,t,l,a,c=e;for(n=0,o=c.length;n"u"}var _undefined=new Type$2("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:resolveJavascriptUndefined,construct:constructJavascriptUndefined,predicate:isUndefined,represent:representJavascriptUndefined}),Type$1=type;function resolveJavascriptRegExp(e){if(e===null||e.length===0)return!1;var r=e,n=/\/([gim]*)$/.exec(e),o="";return!(r[0]==="/"&&(n&&(o=n[1]),o.length>3||r[r.length-o.length-1]!=="/"))}function constructJavascriptRegExp(e){var r=e,n=/\/([gim]*)$/.exec(e),o="";return r[0]==="/"&&(n&&(o=n[1]),r=r.slice(1,r.length-o.length-1)),new RegExp(r,o)}function representJavascriptRegExp(e){var r="/"+e.source+"/";return e.global&&(r+="g"),e.multiline&&(r+="m"),e.ignoreCase&&(r+="i"),r}function isRegExp(e){return Object.prototype.toString.call(e)==="[object RegExp]"}var regexp=new Type$1("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:resolveJavascriptRegExp,construct:constructJavascriptRegExp,predicate:isRegExp,represent:representJavascriptRegExp}),esprima;try{var _require=commonjsRequire;esprima=_require("esprima")}catch{typeof window<"u"&&(esprima=window.esprima)}var Type=type;function resolveJavascriptFunction(e){if(e===null)return!1;try{var r="("+e+")",n=esprima.parse(r,{range:!0});return!(n.type!=="Program"||n.body.length!==1||n.body[0].type!=="ExpressionStatement"||n.body[0].expression.type!=="ArrowFunctionExpression"&&n.body[0].expression.type!=="FunctionExpression")}catch{return!1}}function constructJavascriptFunction(e){var r="("+e+")",n=esprima.parse(r,{range:!0}),o=[],t;if(n.type!=="Program"||n.body.length!==1||n.body[0].type!=="ExpressionStatement"||n.body[0].expression.type!=="ArrowFunctionExpression"&&n.body[0].expression.type!=="FunctionExpression")throw new Error("Failed to resolve function");return n.body[0].expression.params.forEach(function(l){o.push(l.name)}),t=n.body[0].expression.body.range,n.body[0].expression.body.type==="BlockStatement"?new Function(o,r.slice(t[0]+1,t[1]-1)):new Function(o,"return "+r.slice(t[0],t[1]))}function representJavascriptFunction(e){return e.toString()}function isFunction(e){return Object.prototype.toString.call(e)==="[object Function]"}var _function=new Type("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:resolveJavascriptFunction,construct:constructJavascriptFunction,predicate:isFunction,represent:representJavascriptFunction}),Schema=schema,default_full=Schema.DEFAULT=new Schema({include:[default_safe],explicit:[_undefined,regexp,_function]}),common$1=common$6,YAMLException$1=exception,Mark=mark,DEFAULT_SAFE_SCHEMA$1=default_safe,DEFAULT_FULL_SCHEMA$1=default_full,_hasOwnProperty$1=Object.prototype.hasOwnProperty,CONTEXT_FLOW_IN=1,CONTEXT_FLOW_OUT=2,CONTEXT_BLOCK_IN=3,CONTEXT_BLOCK_OUT=4,CHOMPING_CLIP=1,CHOMPING_STRIP=2,CHOMPING_KEEP=3,PATTERN_NON_PRINTABLE=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,PATTERN_NON_ASCII_LINE_BREAKS=/[\x85\u2028\u2029]/,PATTERN_FLOW_INDICATORS=/[,\[\]\{\}]/,PATTERN_TAG_HANDLE=/^(?:!|!!|![a-z\-]+!)$/i,PATTERN_TAG_URI=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function _class(e){return Object.prototype.toString.call(e)}function is_EOL(e){return e===10||e===13}function is_WHITE_SPACE(e){return e===9||e===32}function is_WS_OR_EOL(e){return e===9||e===32||e===10||e===13}function is_FLOW_INDICATOR(e){return e===44||e===91||e===93||e===123||e===125}function fromHexCode(e){var r;return 48<=e&&e<=57?e-48:(r=e|32,97<=r&&r<=102?r-97+10:-1)}function escapedHexLen(e){return e===120?2:e===117?4:e===85?8:0}function fromDecimalCode(e){return 48<=e&&e<=57?e-48:-1}function simpleEscapeSequence(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?` `:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"…":e===95?" ":e===76?"\u2028":e===80?"\u2029":""}function charFromCodepoint(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}var simpleEscapeCheck=new Array(256),simpleEscapeMap=new Array(256);for(var i=0;i<256;i++)simpleEscapeCheck[i]=simpleEscapeSequence(i)?1:0,simpleEscapeMap[i]=simpleEscapeSequence(i);function State$1(e,r){this.input=e,this.filename=r.filename||null,this.schema=r.schema||DEFAULT_FULL_SCHEMA$1,this.onWarning=r.onWarning||null,this.legacy=r.legacy||!1,this.json=r.json||!1,this.listener=r.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}function generateError(e,r){return new YAMLException$1(r,new Mark(e.filename,e.input,e.position,e.line,e.position-e.lineStart))}function throwError(e,r){throw generateError(e,r)}function throwWarning(e,r){e.onWarning&&e.onWarning.call(null,generateError(e,r))}var directiveHandlers={YAML:function(r,n,o){var t,l,a;r.version!==null&&throwError(r,"duplication of %YAML directive"),o.length!==1&&throwError(r,"YAML directive accepts exactly one argument"),t=/^([0-9]+)\.([0-9]+)$/.exec(o[0]),t===null&&throwError(r,"ill-formed argument of the YAML directive"),l=parseInt(t[1],10),a=parseInt(t[2],10),l!==1&&throwError(r,"unacceptable YAML version of the document"),r.version=o[0],r.checkLineBreaks=a<2,a!==1&&a!==2&&throwWarning(r,"unsupported YAML version of the document")},TAG:function(r,n,o){var t,l;o.length!==2&&throwError(r,"TAG directive accepts exactly two arguments"),t=o[0],l=o[1],PATTERN_TAG_HANDLE.test(t)||throwError(r,"ill-formed tag handle (first argument) of the TAG directive"),_hasOwnProperty$1.call(r.tagMap,t)&&throwError(r,'there is a previously declared suffix for "'+t+'" tag handle'),PATTERN_TAG_URI.test(l)||throwError(r,"ill-formed tag prefix (second argument) of the TAG directive"),r.tagMap[t]=l}};function captureSegment(e,r,n,o){var t,l,a,c;if(r1&&(e.result+=common$1.repeat(` `,r-1))}function readPlainScalar(e,r,n){var o,t,l,a,c,s,u,p,f=e.kind,m=e.result,d;if(d=e.input.charCodeAt(e.position),is_WS_OR_EOL(d)||is_FLOW_INDICATOR(d)||d===35||d===38||d===42||d===33||d===124||d===62||d===39||d===34||d===37||d===64||d===96||(d===63||d===45)&&(t=e.input.charCodeAt(e.position+1),is_WS_OR_EOL(t)||n&&is_FLOW_INDICATOR(t)))return!1;for(e.kind="scalar",e.result="",l=a=e.position,c=!1;d!==0;){if(d===58){if(t=e.input.charCodeAt(e.position+1),is_WS_OR_EOL(t)||n&&is_FLOW_INDICATOR(t))break}else if(d===35){if(o=e.input.charCodeAt(e.position-1),is_WS_OR_EOL(o))break}else{if(e.position===e.lineStart&&testDocumentSeparator(e)||n&&is_FLOW_INDICATOR(d))break;if(is_EOL(d))if(s=e.line,u=e.lineStart,p=e.lineIndent,skipSeparationSpace(e,!1,-1),e.lineIndent>=r){c=!0,d=e.input.charCodeAt(e.position);continue}else{e.position=a,e.line=s,e.lineStart=u,e.lineIndent=p;break}}c&&(captureSegment(e,l,a,!1),writeFoldedLines(e,e.line-s),l=a=e.position,c=!1),is_WHITE_SPACE(d)||(a=e.position+1),d=e.input.charCodeAt(++e.position)}return captureSegment(e,l,a,!1),e.result?!0:(e.kind=f,e.result=m,!1)}function readSingleQuotedScalar(e,r){var n,o,t;if(n=e.input.charCodeAt(e.position),n!==39)return!1;for(e.kind="scalar",e.result="",e.position++,o=t=e.position;(n=e.input.charCodeAt(e.position))!==0;)if(n===39)if(captureSegment(e,o,e.position,!0),n=e.input.charCodeAt(++e.position),n===39)o=e.position,e.position++,t=e.position;else return!0;else is_EOL(n)?(captureSegment(e,o,t,!0),writeFoldedLines(e,skipSeparationSpace(e,!1,r)),o=t=e.position):e.position===e.lineStart&&testDocumentSeparator(e)?throwError(e,"unexpected end of the document within a single quoted scalar"):(e.position++,t=e.position);throwError(e,"unexpected end of the stream within a single quoted scalar")}function readDoubleQuotedScalar(e,r){var n,o,t,l,a,c;if(c=e.input.charCodeAt(e.position),c!==34)return!1;for(e.kind="scalar",e.result="",e.position++,n=o=e.position;(c=e.input.charCodeAt(e.position))!==0;){if(c===34)return captureSegment(e,n,e.position,!0),e.position++,!0;if(c===92){if(captureSegment(e,n,e.position,!0),c=e.input.charCodeAt(++e.position),is_EOL(c))skipSeparationSpace(e,!1,r);else if(c<256&&simpleEscapeCheck[c])e.result+=simpleEscapeMap[c],e.position++;else if((a=escapedHexLen(c))>0){for(t=a,l=0;t>0;t--)c=e.input.charCodeAt(++e.position),(a=fromHexCode(c))>=0?l=(l<<4)+a:throwError(e,"expected hexadecimal character");e.result+=charFromCodepoint(l),e.position++}else throwError(e,"unknown escape sequence");n=o=e.position}else is_EOL(c)?(captureSegment(e,n,o,!0),writeFoldedLines(e,skipSeparationSpace(e,!1,r)),n=o=e.position):e.position===e.lineStart&&testDocumentSeparator(e)?throwError(e,"unexpected end of the document within a double quoted scalar"):(e.position++,o=e.position)}throwError(e,"unexpected end of the stream within a double quoted scalar")}function readFlowCollection(e,r){var n=!0,o,t=e.tag,l,a=e.anchor,c,s,u,p,f,m={},d,h,E,g;if(g=e.input.charCodeAt(e.position),g===91)s=93,f=!1,l=[];else if(g===123)s=125,f=!0,l={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=l),g=e.input.charCodeAt(++e.position);g!==0;){if(skipSeparationSpace(e,!0,r),g=e.input.charCodeAt(e.position),g===s)return e.position++,e.tag=t,e.anchor=a,e.kind=f?"mapping":"sequence",e.result=l,!0;n||throwError(e,"missed comma between flow collection entries"),h=d=E=null,u=p=!1,g===63&&(c=e.input.charCodeAt(e.position+1),is_WS_OR_EOL(c)&&(u=p=!0,e.position++,skipSeparationSpace(e,!0,r))),o=e.line,composeNode(e,r,CONTEXT_FLOW_IN,!1,!0),h=e.tag,d=e.result,skipSeparationSpace(e,!0,r),g=e.input.charCodeAt(e.position),(p||e.line===o)&&g===58&&(u=!0,g=e.input.charCodeAt(++e.position),skipSeparationSpace(e,!0,r),composeNode(e,r,CONTEXT_FLOW_IN,!1,!0),E=e.result),f?storeMappingPair(e,l,m,h,d,E):u?l.push(storeMappingPair(e,null,m,h,d,E)):l.push(d),skipSeparationSpace(e,!0,r),g=e.input.charCodeAt(e.position),g===44?(n=!0,g=e.input.charCodeAt(++e.position)):n=!1}throwError(e,"unexpected end of the stream within a flow collection")}function readBlockScalar(e,r){var n,o,t=CHOMPING_CLIP,l=!1,a=!1,c=r,s=0,u=!1,p,f;if(f=e.input.charCodeAt(e.position),f===124)o=!1;else if(f===62)o=!0;else return!1;for(e.kind="scalar",e.result="";f!==0;)if(f=e.input.charCodeAt(++e.position),f===43||f===45)CHOMPING_CLIP===t?t=f===43?CHOMPING_KEEP:CHOMPING_STRIP:throwError(e,"repeat of a chomping mode identifier");else if((p=fromDecimalCode(f))>=0)p===0?throwError(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):a?throwError(e,"repeat of an indentation width identifier"):(c=r+p-1,a=!0);else break;if(is_WHITE_SPACE(f)){do f=e.input.charCodeAt(++e.position);while(is_WHITE_SPACE(f));if(f===35)do f=e.input.charCodeAt(++e.position);while(!is_EOL(f)&&f!==0)}for(;f!==0;){for(readLineBreak(e),e.lineIndent=0,f=e.input.charCodeAt(e.position);(!a||e.lineIndentc&&(c=e.lineIndent),is_EOL(f)){s++;continue}if(e.lineIndentr)&&s!==0)throwError(e,"bad indentation of a sequence entry");else if(e.lineIndentr)&&(composeNode(e,r,CONTEXT_BLOCK_OUT,!0,t)&&(h?m=e.result:d=e.result),h||(storeMappingPair(e,u,p,f,m,d,l,a),f=m=d=null),skipSeparationSpace(e,!0,-1),g=e.input.charCodeAt(e.position)),e.lineIndent>r&&g!==0)throwError(e,"bad indentation of a mapping entry");else if(e.lineIndentr?s=1:e.lineIndent===r?s=0:e.lineIndentr?s=1:e.lineIndent===r?s=0:e.lineIndent tag; it should be "scalar", not "'+e.kind+'"'),f=0,m=e.implicitTypes.length;f tag; it should be "'+d.kind+'", not "'+e.kind+'"'),d.resolve(e.result)?(e.result=d.construct(e.result),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):throwError(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")):throwError(e,"unknown tag !<"+e.tag+">");return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||p}function readDocument(e){var r=e.position,n,o,t,l=!1,a;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap={},e.anchorMap={};(a=e.input.charCodeAt(e.position))!==0&&(skipSeparationSpace(e,!0,-1),a=e.input.charCodeAt(e.position),!(e.lineIndent>0||a!==37));){for(l=!0,a=e.input.charCodeAt(++e.position),n=e.position;a!==0&&!is_WS_OR_EOL(a);)a=e.input.charCodeAt(++e.position);for(o=e.input.slice(n,e.position),t=[],o.length<1&&throwError(e,"directive name must not be less than one character in length");a!==0;){for(;is_WHITE_SPACE(a);)a=e.input.charCodeAt(++e.position);if(a===35){do a=e.input.charCodeAt(++e.position);while(a!==0&&!is_EOL(a));break}if(is_EOL(a))break;for(n=e.position;a!==0&&!is_WS_OR_EOL(a);)a=e.input.charCodeAt(++e.position);t.push(e.input.slice(n,e.position))}a!==0&&readLineBreak(e),_hasOwnProperty$1.call(directiveHandlers,o)?directiveHandlers[o](e,o,t):throwWarning(e,'unknown document directive "'+o+'"')}if(skipSeparationSpace(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,skipSeparationSpace(e,!0,-1)):l&&throwError(e,"directives end mark is expected"),composeNode(e,e.lineIndent-1,CONTEXT_BLOCK_OUT,!1,!0),skipSeparationSpace(e,!0,-1),e.checkLineBreaks&&PATTERN_NON_ASCII_LINE_BREAKS.test(e.input.slice(r,e.position))&&throwWarning(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&testDocumentSeparator(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,skipSeparationSpace(e,!0,-1));return}if(e.position"u"&&(n=r,r=null);var o=loadDocuments(e,n);if(typeof r!="function")return o;for(var t=0,l=o.length;t"u"&&(n=r,r=null),loadAll(e,r,common$1.extend({schema:DEFAULT_SAFE_SCHEMA$1},n))}function safeLoad(e,r){return load(e,common$1.extend({schema:DEFAULT_SAFE_SCHEMA$1},r))}loader$1.loadAll=loadAll;loader$1.load=load;loader$1.safeLoadAll=safeLoadAll;loader$1.safeLoad=safeLoad;var dumper$1={},common=common$6,YAMLException=exception,DEFAULT_FULL_SCHEMA=default_full,DEFAULT_SAFE_SCHEMA=default_safe,_toString=Object.prototype.toString,_hasOwnProperty=Object.prototype.hasOwnProperty,CHAR_TAB=9,CHAR_LINE_FEED=10,CHAR_CARRIAGE_RETURN=13,CHAR_SPACE=32,CHAR_EXCLAMATION=33,CHAR_DOUBLE_QUOTE=34,CHAR_SHARP=35,CHAR_PERCENT=37,CHAR_AMPERSAND=38,CHAR_SINGLE_QUOTE=39,CHAR_ASTERISK=42,CHAR_COMMA=44,CHAR_MINUS=45,CHAR_COLON=58,CHAR_EQUALS=61,CHAR_GREATER_THAN=62,CHAR_QUESTION=63,CHAR_COMMERCIAL_AT=64,CHAR_LEFT_SQUARE_BRACKET=91,CHAR_RIGHT_SQUARE_BRACKET=93,CHAR_GRAVE_ACCENT=96,CHAR_LEFT_CURLY_BRACKET=123,CHAR_VERTICAL_LINE=124,CHAR_RIGHT_CURLY_BRACKET=125,ESCAPE_SEQUENCES={};ESCAPE_SEQUENCES[0]="\\0";ESCAPE_SEQUENCES[7]="\\a";ESCAPE_SEQUENCES[8]="\\b";ESCAPE_SEQUENCES[9]="\\t";ESCAPE_SEQUENCES[10]="\\n";ESCAPE_SEQUENCES[11]="\\v";ESCAPE_SEQUENCES[12]="\\f";ESCAPE_SEQUENCES[13]="\\r";ESCAPE_SEQUENCES[27]="\\e";ESCAPE_SEQUENCES[34]='\\"';ESCAPE_SEQUENCES[92]="\\\\";ESCAPE_SEQUENCES[133]="\\N";ESCAPE_SEQUENCES[160]="\\_";ESCAPE_SEQUENCES[8232]="\\L";ESCAPE_SEQUENCES[8233]="\\P";var DEPRECATED_BOOLEANS_SYNTAX=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function compileStyleMap(e,r){var n,o,t,l,a,c,s;if(r===null)return{};for(n={},o=Object.keys(r),t=0,l=o.length;t0?e.charCodeAt(l-1):null,m=m&&isPlainSafe(a,c)}else{for(l=0;lo&&e[f+1]!==" ",f=l);else if(!isPrintable(a))return STYLE_DOUBLE;c=l>0?e.charCodeAt(l-1):null,m=m&&isPlainSafe(a,c)}u=u||p&&l-f-1>o&&e[f+1]!==" "}return!s&&!u?m&&!t(e)?STYLE_PLAIN:STYLE_SINGLE:n>9&&needIndentIndicator(e)?STYLE_DOUBLE:u?STYLE_FOLDED:STYLE_LITERAL}function writeScalar(e,r,n,o){e.dump=function(){if(r.length===0)return"''";if(!e.noCompatMode&&DEPRECATED_BOOLEANS_SYNTAX.indexOf(r)!==-1)return"'"+r+"'";var t=e.indent*Math.max(1,n),l=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-t),a=o||e.flowLevel>-1&&n>=e.flowLevel;function c(s){return testImplicitResolving(e,s)}switch(chooseScalarStyle(r,a,e.indent,l,c)){case STYLE_PLAIN:return r;case STYLE_SINGLE:return"'"+r.replace(/'/g,"''")+"'";case STYLE_LITERAL:return"|"+blockHeader(r,e.indent)+dropEndingNewline(indentString(r,t));case STYLE_FOLDED:return">"+blockHeader(r,e.indent)+dropEndingNewline(indentString(foldString(r,l),t));case STYLE_DOUBLE:return'"'+escapeString(r)+'"';default:throw new YAMLException("impossible error: invalid scalar style")}}()}function blockHeader(e,r){var n=needIndentIndicator(e)?String(r):"",o=e[e.length-1]===` `,t=o&&(e[e.length-2]===` `||e===` `),l=t?"+":o?"":"-";return n+l+` `}function dropEndingNewline(e){return e[e.length-1]===` `?e.slice(0,-1):e}function foldString(e,r){for(var n=/(\n+)([^\n]*)/g,o=function(){var u=e.indexOf(` `);return u=u!==-1?u:e.length,n.lastIndex=u,foldLine(e.slice(0,u),r)}(),t=e[0]===` `||e[0]===" ",l,a;a=n.exec(e);){var c=a[1],s=a[2];l=s[0]===" ",o+=c+(!t&&!l&&s!==""?` `:"")+foldLine(s,r),t=l}return o}function foldLine(e,r){if(e===""||e[0]===" ")return e;for(var n=/ [^ ]/g,o,t=0,l,a=0,c=0,s="";o=n.exec(e);)c=o.index,c-t>r&&(l=a>t?a:c,s+=` `+e.slice(t,l),t=l+1),a=c;return s+=` `,e.length-t>r&&a>t?s+=e.slice(t,a)+` `+e.slice(a+1):s+=e.slice(t),s.slice(1)}function escapeString(e){for(var r="",n,o,t,l=0;l=55296&&n<=56319&&(o=e.charCodeAt(l+1),o>=56320&&o<=57343)){r+=encodeHex((n-55296)*1024+o-56320+65536),l++;continue}t=ESCAPE_SEQUENCES[n],r+=!t&&isPrintable(n)?e[l]:t||encodeHex(n)}return r}function writeFlowSequence(e,r,n){var o="",t=e.tag,l,a;for(l=0,a=n.length;l1024&&(p+="? "),p+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),writeNode(e,r,u,!1,!1)&&(p+=e.dump,o+=p));e.tag=t,e.dump="{"+o+"}"}function writeBlockMapping(e,r,n,o){var t="",l=e.tag,a=Object.keys(n),c,s,u,p,f,m;if(e.sortKeys===!0)a.sort();else if(typeof e.sortKeys=="function")a.sort(e.sortKeys);else if(e.sortKeys)throw new YAMLException("sortKeys must be a boolean or a function");for(c=0,s=a.length;c1024,f&&(e.dump&&CHAR_LINE_FEED===e.dump.charCodeAt(0)?m+="?":m+="? "),m+=e.dump,f&&(m+=generateNextLine(e,r)),writeNode(e,r+1,p,!0,f)&&(e.dump&&CHAR_LINE_FEED===e.dump.charCodeAt(0)?m+=":":m+=": ",m+=e.dump,t+=m));e.tag=l,e.dump=t||"{}"}function detectType(e,r,n){var o,t,l,a,c,s;for(t=n?e.explicitTypes:e.implicitTypes,l=0,a=t.length;l tag resolver accepts not "'+s+'" style');e.dump=o}return!0}return!1}function writeNode(e,r,n,o,t,l){e.tag=null,e.dump=n,detectType(e,n,!1)||detectType(e,n,!0);var a=_toString.call(e.dump);o&&(o=e.flowLevel<0||e.flowLevel>r);var c=a==="[object Object]"||a==="[object Array]",s,u;if(c&&(s=e.duplicates.indexOf(n),u=s!==-1),(e.tag!==null&&e.tag!=="?"||u||e.indent!==2&&r>0)&&(t=!1),u&&e.usedDuplicates[s])e.dump="*ref_"+s;else{if(c&&u&&!e.usedDuplicates[s]&&(e.usedDuplicates[s]=!0),a==="[object Object]")o&&Object.keys(e.dump).length!==0?(writeBlockMapping(e,r,e.dump,t),u&&(e.dump="&ref_"+s+e.dump)):(writeFlowMapping(e,r,e.dump),u&&(e.dump="&ref_"+s+" "+e.dump));else if(a==="[object Array]"){var p=e.noArrayIndent&&r>0?r-1:r;o&&e.dump.length!==0?(writeBlockSequence(e,p,e.dump,t),u&&(e.dump="&ref_"+s+e.dump)):(writeFlowSequence(e,p,e.dump),u&&(e.dump="&ref_"+s+" "+e.dump))}else if(a==="[object String]")e.tag!=="?"&&writeScalar(e,e.dump,r,l);else{if(e.skipInvalid)return!1;throw new YAMLException("unacceptable kind of an object to dump "+a)}e.tag!==null&&e.tag!=="?"&&(e.dump="!<"+e.tag+"> "+e.dump)}return!0}function getDuplicateReferences(e,r){var n=[],o=[],t,l;for(inspectNode(e,n,o),t=0,l=o.length;t"u")throw new Error('gray-matter engine "'+e+'" is not registered');return typeof n=="function"&&(n={parse:n}),n};function aliase(e){switch(e.toLowerCase()){case"js":case"javascript":return"javascript";case"coffee":case"coffeescript":case"cson":return"coffee";case"yaml":case"yml":return"yaml";default:return e}}const typeOf$1=kindOf,getEngine$1=engine,defaults$3=defaults$4;var stringify$2=function(e,r,n){if(r==null&&n==null)switch(typeOf$1(e)){case"object":r=e.data,n={};break;case"string":return e;default:throw new TypeError("expected file to be a string or object")}const o=e.content,t=defaults$3(n);if(r==null){if(!t.data)return e;r=t.data}const l=e.language||t.language,a=getEngine$1(l,t);if(typeof a.stringify!="function")throw new TypeError('expected "'+l+'.stringify" to be a function');r=Object.assign({},e.data,r);const c=t.delimiters[0],s=t.delimiters[1],u=a.stringify(r,n).trim();let p="";return u!=="{}"&&(p=newline(c)+newline(u)+newline(s)),typeof e.excerpt=="string"&&e.excerpt!==""&&o.indexOf(e.excerpt.trim())===-1&&(p+=newline(e.excerpt)+newline(s)),p+newline(o)};function newline(e){return e.slice(-1)!==` `?e+` `:e}const defaults$2=defaults$4;var excerpt$1=function(e,r){const n=defaults$2(r);if(e.data==null&&(e.data={}),typeof n.excerpt=="function")return n.excerpt(e,n);const o=e.data.excerpt_separator||n.excerpt_separator;if(o==null&&(n.excerpt===!1||n.excerpt==null))return e;const t=typeof n.excerpt=="string"?n.excerpt:o||n.delimiters[0],l=e.content.indexOf(t);return l!==-1&&(e.excerpt=e.content.slice(0,l)),e};const typeOf=kindOf,stringify$1=stringify$2,utils$1=utils$3;var toFile$1=function(e){return typeOf(e)!=="object"&&(e={content:e}),typeOf(e.data)!=="object"&&(e.data={}),e.contents&&e.content==null&&(e.content=e.contents),utils$1.define(e,"orig",utils$1.toBuffer(e.content)),utils$1.define(e,"language",e.language||""),utils$1.define(e,"matter",e.matter||""),utils$1.define(e,"stringify",function(r,n){return n&&n.language&&(e.language=n.language),stringify$1(e,r,n)}),e.content=utils$1.toString(e.content),e.isEmpty=!1,e.excerpt="",e};const getEngine=engine,defaults$1=defaults$4;var parse$1=function(e,r,n){const o=defaults$1(n),t=getEngine(e,o);if(typeof t.parse!="function")throw new TypeError('expected "'+e+'.parse" to be a function');return t.parse(r,o)};const fs=require$$0,sections=sectionMatter,defaults=defaults$4,stringify=stringify$2,excerpt=excerpt$1,engines=enginesExports,toFile=toFile$1,parse=parse$1,utils=utils$3;function matter(e,r){if(e==="")return{data:{},content:e,excerpt:"",orig:e};let n=toFile(e);const o=matter.cache[n.content];if(!r){if(o)return n=Object.assign({},o),n.orig=o.orig,n;matter.cache[n.content]=n}return parseMatter(n,r)}function parseMatter(e,r){const n=defaults(r),o=n.delimiters[0],t=` `+n.delimiters[1];let l=e.content;n.language&&(e.language=n.language);const a=o.length;if(!utils.startsWith(l,o,a))return excerpt(e,n),e;if(l.charAt(a)===o.slice(-1))return e;l=l.slice(a);const c=l.length,s=matter.language(l,n);s.name&&(e.language=s.name,l=l.slice(s.raw.length));let u=l.indexOf(t);return u===-1&&(u=c),e.matter=l.slice(0,u),e.matter.replace(/^\s*#[^\n]+/gm,"").trim()===""?(e.isEmpty=!0,e.empty=e.content,e.data={}):e.data=parse(e.language,e.matter,n),u===c?e.content="":(e.content=l.slice(u+t.length),e.content[0]==="\r"&&(e.content=e.content.slice(1)),e.content[0]===` `&&(e.content=e.content.slice(1))),excerpt(e,n),(n.sections===!0||typeof n.section=="function")&§ions(e,n.section),e}matter.engines=engines;matter.stringify=function(e,r,n){return typeof e=="string"&&(e=matter(e,n)),stringify(e,r,n)};matter.read=function(e,r){const n=fs.readFileSync(e,"utf8"),o=matter(n,r);return o.path=e,o};matter.test=function(e,r){return utils.startsWith(e,defaults(r).delimiters[0])};matter.language=function(e,r){const o=defaults(r).delimiters[0];matter.test(e)&&(e=e.slice(o.length));const t=e.slice(0,e.search(/\r?\n/));return{raw:t,name:t?t.trim():""}};matter.cache={};matter.clearCache=function(){matter.cache={}};var grayMatter=matter;const matter$1=getDefaultExportFromCjs(grayMatter),emptyOptions={};function remarkGfm(e){const r=this,n=e||emptyOptions,o=r.data(),t=o.micromarkExtensions||(o.micromarkExtensions=[]),l=o.fromMarkdownExtensions||(o.fromMarkdownExtensions=[]),a=o.toMarkdownExtensions||(o.toMarkdownExtensions=[]);t.push(gfm(n)),l.push(gfmFromMarkdown()),a.push(gfmToMarkdown(n))}function rehypeRaw(e){return function(r,n){return raw(r,{...e,file:n})}}export{Markdown as M,getAugmentedNamespace as a,remarkGfm as b,commonjsGlobal as c,getDefaultExportFromCjs as g,matter$1 as m,rehypeRaw as r};