// Metro module 1287 (f1288). import * as _classCallCheck from "./_classCallCheck"; import * as __createClass from "./_createClass"; import * as _possibleConstructorReturn from "./_possibleConstructorReturn"; import * as _getPrototypeOf from "./_getPrototypeOf"; import * as __inherits from "./_inherits"; import { StringBuilder } from "./StringBuilder"; let c1054_4, c1054_5; let MarkdownBuilder; let env1054 = {}; env1054[3] = function _isNativeReflectConstruct() { let c12949_0; try { c12949_0 = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {})); } catch ($e) {} const _isNativeReflectConstruct2 = function _isNativeReflectConstruct() { return !!c12949_0; }; env1054[3] = _isNativeReflectConstruct2; return _isNativeReflectConstruct2(); }; export function formatToMarkdownString(a0, a1, r6 = c1054_5) { return typeof a0 !== "string" ? this.bindFormatValues(r6, a0, a1)[0] : a0; } c1054_4 = { $b: (a0) => "**" + a0.join("") + "**", $i: (a0) => "*" + a0.join("") + "*", $del: (a0) => "~~" + a0.join("") + "~~", $code: (a0) => "`" + a0.join("") + "`", $link: (a0, a1, a2) => { const [r17] = a2; return "[" + a0.join("") + "](" + r17 + ")"; }, $p: (a0) => a0.join("") + "\n\n" }; MarkdownBuilder = function MarkdownBuilder() { _classCallCheck(this, MarkdownBuilder); const r8 = _getPrototypeOf(MarkdownBuilder); const r23 = _possibleConstructorReturn(this, (0, env1054[3])() ? Reflect.construct(r8, arguments, _getPrototypeOf(this).constructor) : r8.apply(this, arguments)); r23.result = ""; return r23; }; __inherits(MarkdownBuilder, StringBuilder); const builder = __createClass(MarkdownBuilder, [{ key: "pushRichTextTag", value: function pushRichTextTag(a0, a1, a2) { this.result = this.result + c1054_4[a0](a1, "", a2); } }]); c1054_5 = builder; export const markdownFormatter = { format: formatToMarkdownString, builder };