"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[50681],{50681:(t,e,n)=>{n.r(e),n.d(e,{buildMetadata:()=>a,buildMetadataMarkdown:()=>u,exportAsMarkdown:()=>p,exportAsMarkdownBlob:()=>d,renderFrontmatter:()=>o});var r=n(38106);function c(t){if(""===t)return'""';if(!(/[:#&*!|>'"%@`{}\[\],\\]/.test(t)||/^[\s-]/.test(t)||/\s$/.test(t)||/[\n\r]/.test(t)))return t;let e=t.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r");return'"'.concat(e,'"')}function a(t){var e,n,c,a;let o=void 0===t.version||null===t.version?"":"number"==typeof t.version?"v".concat(t.version):String(t.version);return{title:null!=(e=t.title)?e:"",type:null!=(n=t.type)?n:"",version:o,author:null!=(c=t.createdByName)?c:"",created:t.createdAt?(0,r.r)(t.createdAt):"",updated:t.updatedAt?(0,r.r)(t.updatedAt):"",project:null!=(a=t.projectName)?a:""}}function o(t){return["---","title: ".concat(c(t.title)),"type: ".concat(c(t.type)),"version: ".concat(c(t.version)),"author: ".concat(c(t.author)),"created: ".concat(c(t.created)),"updated: ".concat(c(t.updated)),"project: ".concat(c(t.project)),"---"].join("\n")}function u(t){let e=a(t),n=[];e.type&&n.push("| **Type** | ".concat(e.type," |")),e.version&&n.push("| **Version** | ".concat(e.version," |")),e.author&&n.push("| **Author** | ".concat(e.author," |")),e.created&&n.push("| **Created** | ".concat(e.created," |")),e.updated&&n.push("| **Updated** | ".concat(e.updated," |")),e.project&&n.push("| **Project** | ".concat(e.project," |"));let r=n.length>0?"| | |\n|---|---|\n".concat(n.join("\n"),"\n"):"";return"# ".concat(e.title,"\n\n").concat(r)}function p(t){var e;let n=o(a(t)),r=null!=(e=t.content)?e:"";return"".concat(n,"\n\n").concat(r)}function d(t){return new Blob([p(t)],{type:"text/markdown;charset=utf-8"})}}}]);