@feedmepos/mf-miniprogram-v2 0.1.0-dev.43 → 0.1.0-dev.44
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -2,13 +2,13 @@ var gl = Object.defineProperty;
|
|
|
2
2
|
var bl = (n, t, e) => t in n ? gl(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e;
|
|
3
3
|
var B = (n, t, e) => bl(n, typeof t != "symbol" ? t + "" : t, e);
|
|
4
4
|
import { defineComponent as ut, ref as ae, computed as z, resolveComponent as Ue, openBlock as g, createElementBlock as x, normalizeClass as Re, createElementVNode as m, createVNode as X, toDisplayString as M, createTextVNode as Ze, createCommentVNode as U, watch as Tt, createBlock as Ie, Fragment as De, renderList as Oe, normalizeStyle as Vt, reactive as pr, nextTick as Dn, onBeforeUnmount as Sr, withModifiers as hr, unref as j, withDirectives as mr, vModelText as yr, renderSlot as vl, onMounted as Gn, withCtx as kt, onScopeDispose as kl, withKeys as wl } from "vue";
|
|
5
|
-
import { useCoreStore as
|
|
5
|
+
import { useCoreStore as Tr, FeedMeAuth as xl } from "@feedmepos/mf-common";
|
|
6
6
|
import { useDialog as Bs } from "@feedmepos/ui-library";
|
|
7
7
|
import { _ as Ft } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
8
|
-
function
|
|
8
|
+
function oa() {
|
|
9
9
|
return { async: !1, breaks: !1, extensions: null, gfm: !0, hooks: null, pedantic: !1, renderer: null, silent: !1, tokenizer: null, walkTokens: null };
|
|
10
10
|
}
|
|
11
|
-
var _n =
|
|
11
|
+
var _n = oa();
|
|
12
12
|
function js(n) {
|
|
13
13
|
_n = n;
|
|
14
14
|
}
|
|
@@ -33,8 +33,8 @@ var _l = ((n = "") => {
|
|
|
33
33
|
} catch {
|
|
34
34
|
return !1;
|
|
35
35
|
}
|
|
36
|
-
})(), wt = { codeRemoveIndent: /^(?: {1,4}| {0,3}\t)/gm, outputLinkReplace: /\\([\[\]])/g, indentCodeCompensation: /^(\s+)(?:```)/, beginningSpace: /^\s+/, endingHash: /#$/, startingSpaceChar: /^ /, endingSpaceChar: / $/, nonSpaceChar: /[^ ]/, newLineCharGlobal: /\n/g, tabCharGlobal: /\t/g, multipleSpaceGlobal: /\s+/g, blankLine: /^[ \t]*$/, doubleBlankLine: /\n[ \t]*\n[ \t]*$/, blockquoteStart: /^ {0,3}>/, blockquoteSetextReplace: /\n {0,3}((?:=+|-+) *)(?=\n|$)/g, blockquoteSetextReplace2: /^ {0,3}>[ \t]?/gm, listReplaceNesting: /^ {1,4}(?=( {4})*[^ ])/g, listIsTask: /^\[[ xX]\] +\S/, listReplaceTask: /^\[[ xX]\] +/, listTaskCheckbox: /\[[ xX]\]/, anyLine: /\n.*\n/, hrefBrackets: /^<(.*)>$/, tableDelimiter: /[:|]/, tableAlignChars: /^\||\| *$/g, tableRowBlankLine: /\n[ \t]*$/, tableAlignRight: /^ *-+: *$/, tableAlignCenter: /^ *:-+: *$/, tableAlignLeft: /^ *:-+ *$/, startATag: /^<a /i, endATag: /^<\/a>/i, startPreScriptTag: /^<(pre|code|kbd|script)(\s|>)/i, endPreScriptTag: /^<\/(pre|code|kbd|script)(\s|>)/i, startAngleBracket: /^</, endAngleBracket: />$/, pedanticHrefTitle: /^([^'"]*[^\s])\s+(['"])(.*)\2/, unicodeAlphaNumeric: /[\p{L}\p{N}]/u, escapeTest: /[&<>"']/, escapeReplace: /[&<>"']/g, escapeTestNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/, escapeReplaceNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g, caret: /(^|[^\[])\^/g, percentDecode: /%25/g, findPipe: /\|/g, splitPipe: / \|/, slashPipe: /\\\|/g, carriageReturn: /\r\n|\r/g, spaceLine: /^ +$/gm, notSpaceStart: /^\S*/, endingNewline: /\n$/, listItemRegex: (n) => new RegExp(`^( {0,3}${n})((?:[ ][^\\n]*)?(?:\\n|$))`), nextBulletRegex: In((n) => new RegExp(`^ {0,${n}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)), hrRegex: In((n) => new RegExp(`^ {0,${n}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)), fencesBeginRegex: In((n) => new RegExp(`^ {0,${n}}(?:\`\`\`|~~~)`)), headingBeginRegex: In((n) => new RegExp(`^ {0,${n}}#`)), htmlBeginRegex: In((n) => new RegExp(`^ {0,${n}}<(?:[a-z].*>|!--)`, "i")), blockquoteBeginRegex: In((n) => new RegExp(`^ {0,${n}}>`)) }, Sl = /^(?:[ \t]*(?:\n|$))+/, Tl = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, El = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, Yn = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, Il = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,
|
|
37
|
-
]`).replace("lheading", Us).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex() }, ql = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, zl = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, Ws = /^( {2,}|\\)\n(?!\s*$)/, Bl = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, an = /[\p{P}\p{S}]/u, Mn = /[\s\p{P}\p{S}]/u, Qn = /[^\s\p{P}\p{S}]/u, jl = Pe(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, Mn).getRegex(), Fl = /[\p{Pi}\p{Ps}"']/u, Gs = /(?!~)[\p{P}\p{S}]/u, Ul = /(?!~)[\s\p{P}\p{S}]/u, Hl = /(?:[^\s\p{P}\p{S}]|~)/u, Wl = Pe(/link|precode-code|html/, "g").replace("link", /\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-", _l ? "(?<!`)()" : "(^^|[^`])").replace("code", /(?<b>`+)[^`]+\k<b>(?!`)/).replace("html", /<(?! )[^<>]*?>/).getRegex(), Vs = /^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/, Gl = Pe(Vs, "u").replace(/punct/g, an).getRegex(), Vl = Pe(Vs, "u").replace(/punct/g, Gs).getRegex(), Kl = /^(?:\*+(?:((?!\*)(?!openQuote)punct)|([^\s*]))?)|^_+(?:((?!_)(?!openQuote)punct)|([^\s_]))?/, Zl = Pe(Kl, "u").replace(/openQuote/g, Fl).replace(/punct/g, an).getRegex(), Ks = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", Yl = Pe(Ks, "gu").replace(/notPunctSpace/g, Qn).replace(/punctSpace/g, Mn).replace(/punct/g, an).getRegex(), Ql = Pe(Ks, "gu").replace(/notPunctSpace/g, Hl).replace(/punctSpace/g, Ul).replace(/punct/g, Gs).getRegex(), Xl = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)[\\s](\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|(?:(?!\\*)punct|notPunctSpace)(\\*+)(?!\\*)(?=notPunctSpace)", Jl = Pe(Xl, "gu").replace(/notPunctSpace/g, Qn).replace(/punctSpace/g, Mn).replace(/punct/g, an).getRegex(), eo = Pe("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, Qn).replace(/punctSpace/g, Mn).replace(/punct/g, an).getRegex(), to = "^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)[\\s](_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)|(?:(?!_)punct|notPunctSpace)(_+)(?!_)(?=notPunctSpace)", no = Pe(to, "gu").replace(/notPunctSpace/g, Qn).replace(/punctSpace/g, Mn).replace(/punct/g, an).getRegex(), ro = Pe(/^~~?(?:((?!~)punct)|[^\s~])/, "u").replace(/punct/g, an).getRegex(), ao = "^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)", so = Pe(ao, "gu").replace(/notPunctSpace/g, Qn).replace(/punctSpace/g, Mn).replace(/punct/g, an).getRegex(), io = Pe(/\\(punct)/, "gu").replace(/punct/g, an).getRegex(), lo = Pe(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("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])?)+(?![-_])/).getRegex(), oo = Pe(
|
|
36
|
+
})(), wt = { codeRemoveIndent: /^(?: {1,4}| {0,3}\t)/gm, outputLinkReplace: /\\([\[\]])/g, indentCodeCompensation: /^(\s+)(?:```)/, beginningSpace: /^\s+/, endingHash: /#$/, startingSpaceChar: /^ /, endingSpaceChar: / $/, nonSpaceChar: /[^ ]/, newLineCharGlobal: /\n/g, tabCharGlobal: /\t/g, multipleSpaceGlobal: /\s+/g, blankLine: /^[ \t]*$/, doubleBlankLine: /\n[ \t]*\n[ \t]*$/, blockquoteStart: /^ {0,3}>/, blockquoteSetextReplace: /\n {0,3}((?:=+|-+) *)(?=\n|$)/g, blockquoteSetextReplace2: /^ {0,3}>[ \t]?/gm, listReplaceNesting: /^ {1,4}(?=( {4})*[^ ])/g, listIsTask: /^\[[ xX]\] +\S/, listReplaceTask: /^\[[ xX]\] +/, listTaskCheckbox: /\[[ xX]\]/, anyLine: /\n.*\n/, hrefBrackets: /^<(.*)>$/, tableDelimiter: /[:|]/, tableAlignChars: /^\||\| *$/g, tableRowBlankLine: /\n[ \t]*$/, tableAlignRight: /^ *-+: *$/, tableAlignCenter: /^ *:-+: *$/, tableAlignLeft: /^ *:-+ *$/, startATag: /^<a /i, endATag: /^<\/a>/i, startPreScriptTag: /^<(pre|code|kbd|script)(\s|>)/i, endPreScriptTag: /^<\/(pre|code|kbd|script)(\s|>)/i, startAngleBracket: /^</, endAngleBracket: />$/, pedanticHrefTitle: /^([^'"]*[^\s])\s+(['"])(.*)\2/, unicodeAlphaNumeric: /[\p{L}\p{N}]/u, escapeTest: /[&<>"']/, escapeReplace: /[&<>"']/g, escapeTestNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/, escapeReplaceNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g, caret: /(^|[^\[])\^/g, percentDecode: /%25/g, findPipe: /\|/g, splitPipe: / \|/, slashPipe: /\\\|/g, carriageReturn: /\r\n|\r/g, spaceLine: /^ +$/gm, notSpaceStart: /^\S*/, endingNewline: /\n$/, listItemRegex: (n) => new RegExp(`^( {0,3}${n})((?:[ ][^\\n]*)?(?:\\n|$))`), nextBulletRegex: In((n) => new RegExp(`^ {0,${n}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)), hrRegex: In((n) => new RegExp(`^ {0,${n}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)), fencesBeginRegex: In((n) => new RegExp(`^ {0,${n}}(?:\`\`\`|~~~)`)), headingBeginRegex: In((n) => new RegExp(`^ {0,${n}}#`)), htmlBeginRegex: In((n) => new RegExp(`^ {0,${n}}<(?:[a-z].*>|!--)`, "i")), blockquoteBeginRegex: In((n) => new RegExp(`^ {0,${n}}>`)) }, Sl = /^(?:[ \t]*(?:\n|$))+/, Tl = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, El = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, Yn = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, Il = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, ca = / {0,3}(?:[*+-]|\d{1,9}[.)])/, Fs = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, Us = Pe(Fs).replace(/bull/g, ca).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}(?:\s|$)/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex(), Al = Pe(Fs).replace(/bull/g, ca).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}(?:\s|$)/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(), ua = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table|[ \t]+\n)[^\n]+)*)/, Cl = /^[^\n]+/, da = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, $l = Pe(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", da).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), Rl = Pe(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g, ca).getRegex(), Er = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", fa = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, Nl = Pe("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n*|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>[^\\n]*\\n*|$)|<![A-Z][\\s\\S]*?(?:>[^\\n]*\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>[^\\n]*\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))", "i").replace("comment", fa).replace("tag", Er).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), Hs = (n) => Pe(ua).replace("hr", Yn).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~~~)[^\\n]*\\n").replace("list", n).replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", Er).getRegex(), Dl = Hs(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/), Ol = Hs(/ {0,3}(?:[*+-]|\d{1,9}[.)])(?:[ \t]|\n|$)/), Pl = Pe(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", Ol).getRegex(), pa = { blockquote: Pl, code: Tl, def: $l, fences: El, heading: Il, hr: Yn, html: Nl, lheading: Us, list: Rl, newline: Sl, paragraph: Dl, table: vn, text: Cl }, Pa = Pe("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", Yn).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~~~)[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", Er).getRegex(), Ml = { ...pa, lheading: Al, table: Pa, paragraph: Pe(ua).replace("hr", Yn).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", Pa).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~~~)[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", Er).getRegex() }, Ll = { ...pa, html: Pe(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", fa).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(), def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/, heading: /^(#{1,6})(.*)(?:\n+|$)/, fences: vn, lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/, paragraph: Pe(ua).replace("hr", Yn).replace("heading", ` *#{1,6} *[^
|
|
37
|
+
]`).replace("lheading", Us).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex() }, ql = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, zl = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, Ws = /^( {2,}|\\)\n(?!\s*$)/, Bl = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, an = /[\p{P}\p{S}]/u, Mn = /[\s\p{P}\p{S}]/u, Qn = /[^\s\p{P}\p{S}]/u, jl = Pe(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, Mn).getRegex(), Fl = /[\p{Pi}\p{Ps}"']/u, Gs = /(?!~)[\p{P}\p{S}]/u, Ul = /(?!~)[\s\p{P}\p{S}]/u, Hl = /(?:[^\s\p{P}\p{S}]|~)/u, Wl = Pe(/link|precode-code|html/, "g").replace("link", /\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-", _l ? "(?<!`)()" : "(^^|[^`])").replace("code", /(?<b>`+)[^`]+\k<b>(?!`)/).replace("html", /<(?! )[^<>]*?>/).getRegex(), Vs = /^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/, Gl = Pe(Vs, "u").replace(/punct/g, an).getRegex(), Vl = Pe(Vs, "u").replace(/punct/g, Gs).getRegex(), Kl = /^(?:\*+(?:((?!\*)(?!openQuote)punct)|([^\s*]))?)|^_+(?:((?!_)(?!openQuote)punct)|([^\s_]))?/, Zl = Pe(Kl, "u").replace(/openQuote/g, Fl).replace(/punct/g, an).getRegex(), Ks = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", Yl = Pe(Ks, "gu").replace(/notPunctSpace/g, Qn).replace(/punctSpace/g, Mn).replace(/punct/g, an).getRegex(), Ql = Pe(Ks, "gu").replace(/notPunctSpace/g, Hl).replace(/punctSpace/g, Ul).replace(/punct/g, Gs).getRegex(), Xl = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)[\\s](\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|(?:(?!\\*)punct|notPunctSpace)(\\*+)(?!\\*)(?=notPunctSpace)", Jl = Pe(Xl, "gu").replace(/notPunctSpace/g, Qn).replace(/punctSpace/g, Mn).replace(/punct/g, an).getRegex(), eo = Pe("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, Qn).replace(/punctSpace/g, Mn).replace(/punct/g, an).getRegex(), to = "^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)[\\s](_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)|(?:(?!_)punct|notPunctSpace)(_+)(?!_)(?=notPunctSpace)", no = Pe(to, "gu").replace(/notPunctSpace/g, Qn).replace(/punctSpace/g, Mn).replace(/punct/g, an).getRegex(), ro = Pe(/^~~?(?:((?!~)punct)|[^\s~])/, "u").replace(/punct/g, an).getRegex(), ao = "^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)", so = Pe(ao, "gu").replace(/notPunctSpace/g, Qn).replace(/punctSpace/g, Mn).replace(/punct/g, an).getRegex(), io = Pe(/\\(punct)/, "gu").replace(/punct/g, an).getRegex(), lo = Pe(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("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])?)+(?![-_])/).getRegex(), oo = Pe(fa).replace("(?:-->|$)", "-->").getRegex(), co = Pe("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", oo).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), gr = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/, uo = Pe(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label", gr).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]+|(?=\))/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), Zs = Pe(/^!?\[(label)\]\[(ref)\]/).replace("label", gr).replace("ref", da).getRegex(), Ys = Pe(/^!?\[(ref)\](?:\[\])?/).replace("ref", da).getRegex(), fo = Pe("reflink|nolink(?!\\()", "g").replace("reflink", Zs).replace("nolink", Ys).getRegex(), Ma = /[hH][tT][tT][pP][sS]?|[fF][tT][pP]/, ha = { _backpedal: vn, anyPunctuation: io, autolink: lo, blockSkip: Wl, br: Ws, code: zl, del: vn, delLDelim: vn, delRDelim: vn, emStrongLDelim: Gl, emStrongRDelimAst: Yl, emStrongRDelimUnd: eo, escape: ql, link: uo, nolink: Ys, punctuation: jl, reflink: Zs, reflinkSearch: fo, tag: co, text: Bl, url: vn }, po = { ...ha, emStrongLDelim: Zl, emStrongRDelimAst: Jl, emStrongRDelimUnd: no, link: Pe(/^!?\[(label)\]\((.*?)\)/).replace("label", gr).getRegex(), reflink: Pe(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", gr).getRegex() }, Yr = { ...ha, emStrongRDelimAst: Ql, emStrongLDelim: Vl, delLDelim: ro, delRDelim: so, url: Pe(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol", Ma).replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(), _backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/, del: /^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/, text: Pe(/^(`+|~+|[^`~])(?:(?=[`~])|(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol", Ma).getRegex() }, ho = { ...Yr, br: Pe(Ws).replace("{2,}", "*").getRegex(), text: Pe(Yr.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex() }, nr = { normal: pa, gfm: Ml, pedantic: Ll }, Bn = { normal: ha, gfm: Yr, breaks: ho, pedantic: po }, mo = { "&": "&", "<": "<", ">": ">", '"': """, "'": "'" }, La = (n) => mo[n];
|
|
38
38
|
function Qt(n, t) {
|
|
39
39
|
if (t) {
|
|
40
40
|
if (wt.escapeTest.test(n)) return n.replace(wt.escapeReplace, La);
|
|
@@ -775,7 +775,7 @@ ${n}</tr>
|
|
|
775
775
|
text(n) {
|
|
776
776
|
return "tokens" in n && n.tokens ? this.parser.parseInline(n.tokens) : "escaped" in n && n.escaped ? n.text : Qt(n.text);
|
|
777
777
|
}
|
|
778
|
-
},
|
|
778
|
+
}, ma = class {
|
|
779
779
|
strong({ text: n }) {
|
|
780
780
|
return n;
|
|
781
781
|
}
|
|
@@ -811,7 +811,7 @@ ${n}</tr>
|
|
|
811
811
|
B(this, "options");
|
|
812
812
|
B(this, "renderer");
|
|
813
813
|
B(this, "textRenderer");
|
|
814
|
-
this.options = t || _n, this.options.renderer = this.options.renderer || new vr(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new
|
|
814
|
+
this.options = t || _n, this.options.renderer = this.options.renderer || new vr(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new ma();
|
|
815
815
|
}
|
|
816
816
|
static parse(t, e) {
|
|
817
817
|
return new Xr(e).parse(t);
|
|
@@ -985,13 +985,13 @@ ${n}</tr>
|
|
|
985
985
|
}
|
|
986
986
|
}, B(ur, "passThroughHooks", /* @__PURE__ */ new Set(["preprocess", "postprocess", "processAllTokens", "emStrongMask"])), B(ur, "passThroughHooksRespectAsync", /* @__PURE__ */ new Set(["preprocess", "postprocess", "processAllTokens"])), ur), Qs = class {
|
|
987
987
|
constructor(...n) {
|
|
988
|
-
B(this, "defaults",
|
|
988
|
+
B(this, "defaults", oa());
|
|
989
989
|
B(this, "options", this.setOptions);
|
|
990
990
|
B(this, "parse", this.parseMarkdown(!0));
|
|
991
991
|
B(this, "parseInline", this.parseMarkdown(!1));
|
|
992
992
|
B(this, "Parser", Gt);
|
|
993
993
|
B(this, "Renderer", vr);
|
|
994
|
-
B(this, "TextRenderer",
|
|
994
|
+
B(this, "TextRenderer", ma);
|
|
995
995
|
B(this, "Lexer", Wt);
|
|
996
996
|
B(this, "Tokenizer", br);
|
|
997
997
|
B(this, "Hooks", Hn);
|
|
@@ -1151,7 +1151,7 @@ function Ke(n, t) {
|
|
|
1151
1151
|
Ke.options = Ke.setOptions = function(n) {
|
|
1152
1152
|
return wn.setOptions(n), Ke.defaults = wn.defaults, js(Ke.defaults), Ke;
|
|
1153
1153
|
};
|
|
1154
|
-
Ke.getDefaults =
|
|
1154
|
+
Ke.getDefaults = oa;
|
|
1155
1155
|
Ke.defaults = _n;
|
|
1156
1156
|
function vo(...n) {
|
|
1157
1157
|
return wn.use(...n), Ke.defaults = wn.defaults, js(Ke.defaults), Ke;
|
|
@@ -1164,7 +1164,7 @@ Ke.parseInline = wn.parseInline;
|
|
|
1164
1164
|
Ke.Parser = Gt;
|
|
1165
1165
|
Ke.parser = Gt.parse;
|
|
1166
1166
|
Ke.Renderer = vr;
|
|
1167
|
-
Ke.TextRenderer =
|
|
1167
|
+
Ke.TextRenderer = ma;
|
|
1168
1168
|
Ke.Lexer = Wt;
|
|
1169
1169
|
Ke.lexer = Wt.lex;
|
|
1170
1170
|
Ke.Tokenizer = br;
|
|
@@ -1332,7 +1332,7 @@ const Ka = (n = {}) => {
|
|
|
1332
1332
|
const t = { children: [] };
|
|
1333
1333
|
return Object.assign(t, n), t;
|
|
1334
1334
|
};
|
|
1335
|
-
class
|
|
1335
|
+
class ya {
|
|
1336
1336
|
constructor() {
|
|
1337
1337
|
this.rootNode = Ka(), this.stack = [this.rootNode];
|
|
1338
1338
|
}
|
|
@@ -1380,11 +1380,11 @@ class ga {
|
|
|
1380
1380
|
*/
|
|
1381
1381
|
static _collapse(t) {
|
|
1382
1382
|
typeof t != "string" && t.children && (t.children.every((e) => typeof e == "string") ? t.children = [t.children.join("")] : t.children.forEach((e) => {
|
|
1383
|
-
|
|
1383
|
+
ya._collapse(e);
|
|
1384
1384
|
}));
|
|
1385
1385
|
}
|
|
1386
1386
|
}
|
|
1387
|
-
class Ao extends
|
|
1387
|
+
class Ao extends ya {
|
|
1388
1388
|
/**
|
|
1389
1389
|
* @param {*} options
|
|
1390
1390
|
*/
|
|
@@ -1438,7 +1438,7 @@ function Ro(n) {
|
|
|
1438
1438
|
const t = n[n.length - 1];
|
|
1439
1439
|
return typeof t == "object" && t.constructor === Object ? (n.splice(n.length - 1, 1), t) : {};
|
|
1440
1440
|
}
|
|
1441
|
-
function
|
|
1441
|
+
function ga(...n) {
|
|
1442
1442
|
return "(" + (Ro(n).capture ? "" : "?:") + n.map((r) => Vn(r)).join("|") + ")";
|
|
1443
1443
|
}
|
|
1444
1444
|
function ri(n) {
|
|
@@ -1449,7 +1449,7 @@ function No(n, t) {
|
|
|
1449
1449
|
return e && e.index === 0;
|
|
1450
1450
|
}
|
|
1451
1451
|
const Do = /\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;
|
|
1452
|
-
function
|
|
1452
|
+
function ba(n, { joinWith: t }) {
|
|
1453
1453
|
let e = 0;
|
|
1454
1454
|
return n.map((r) => {
|
|
1455
1455
|
e += 1;
|
|
@@ -1466,7 +1466,7 @@ function va(n, { joinWith: t }) {
|
|
|
1466
1466
|
return o;
|
|
1467
1467
|
}).map((r) => `(${r})`).join(t);
|
|
1468
1468
|
}
|
|
1469
|
-
const Oo = /\b\B/, ai = "[a-zA-Z]\\w*",
|
|
1469
|
+
const Oo = /\b\B/, ai = "[a-zA-Z]\\w*", va = "[a-zA-Z_]\\w*", si = "\\b\\d+(\\.\\d+)?", ii = "(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)", li = "\\b(0b[01]+)", Po = "!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~", Mo = (n = {}) => {
|
|
1470
1470
|
const t = /^#![ ]*\//;
|
|
1471
1471
|
return n.binary && (n.begin = Sn(
|
|
1472
1472
|
t,
|
|
@@ -1500,7 +1500,7 @@ const Oo = /\b\B/, ai = "[a-zA-Z]\\w*", ka = "[a-zA-Z_]\\w*", si = "\\b\\d+(\\.\
|
|
|
1500
1500
|
contains: [Kn]
|
|
1501
1501
|
}, zo = {
|
|
1502
1502
|
begin: /\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/
|
|
1503
|
-
},
|
|
1503
|
+
}, Ir = function(n, t, e = {}) {
|
|
1504
1504
|
const r = mn(
|
|
1505
1505
|
{
|
|
1506
1506
|
scope: "comment",
|
|
@@ -1519,7 +1519,7 @@ const Oo = /\b\B/, ai = "[a-zA-Z]\\w*", ka = "[a-zA-Z_]\\w*", si = "\\b\\d+(\\.\
|
|
|
1519
1519
|
excludeBegin: !0,
|
|
1520
1520
|
relevance: 0
|
|
1521
1521
|
});
|
|
1522
|
-
const a =
|
|
1522
|
+
const a = ga(
|
|
1523
1523
|
// list of common 1 and 2 letter words in English
|
|
1524
1524
|
"I",
|
|
1525
1525
|
"a",
|
|
@@ -1566,7 +1566,7 @@ const Oo = /\b\B/, ai = "[a-zA-Z]\\w*", ka = "[a-zA-Z_]\\w*", si = "\\b\\d+(\\.\
|
|
|
1566
1566
|
// look for 3 words in a row
|
|
1567
1567
|
}
|
|
1568
1568
|
), r;
|
|
1569
|
-
}, Bo =
|
|
1569
|
+
}, Bo = Ir("//", "$"), jo = Ir("/\\*", "\\*/"), Fo = Ir("#", "$"), Uo = {
|
|
1570
1570
|
scope: "number",
|
|
1571
1571
|
begin: si,
|
|
1572
1572
|
relevance: 0
|
|
@@ -1597,11 +1597,11 @@ const Oo = /\b\B/, ai = "[a-zA-Z]\\w*", ka = "[a-zA-Z_]\\w*", si = "\\b\\d+(\\.\
|
|
|
1597
1597
|
relevance: 0
|
|
1598
1598
|
}, Ko = {
|
|
1599
1599
|
scope: "title",
|
|
1600
|
-
begin:
|
|
1600
|
+
begin: va,
|
|
1601
1601
|
relevance: 0
|
|
1602
1602
|
}, Zo = {
|
|
1603
1603
|
// excludes method names from keyword processing
|
|
1604
|
-
begin: "\\.\\s*" +
|
|
1604
|
+
begin: "\\.\\s*" + va,
|
|
1605
1605
|
relevance: 0
|
|
1606
1606
|
}, Yo = function(n) {
|
|
1607
1607
|
return Object.assign(
|
|
@@ -1624,7 +1624,7 @@ var rr = /* @__PURE__ */ Object.freeze({
|
|
|
1624
1624
|
BACKSLASH_ESCAPE: Kn,
|
|
1625
1625
|
BINARY_NUMBER_MODE: Wo,
|
|
1626
1626
|
BINARY_NUMBER_RE: li,
|
|
1627
|
-
COMMENT:
|
|
1627
|
+
COMMENT: Ir,
|
|
1628
1628
|
C_BLOCK_COMMENT_MODE: jo,
|
|
1629
1629
|
C_LINE_COMMENT_MODE: Bo,
|
|
1630
1630
|
C_NUMBER_MODE: Ho,
|
|
@@ -1642,7 +1642,7 @@ var rr = /* @__PURE__ */ Object.freeze({
|
|
|
1642
1642
|
RE_STARTERS_RE: Po,
|
|
1643
1643
|
SHEBANG: Mo,
|
|
1644
1644
|
TITLE_MODE: Vo,
|
|
1645
|
-
UNDERSCORE_IDENT_RE:
|
|
1645
|
+
UNDERSCORE_IDENT_RE: va,
|
|
1646
1646
|
UNDERSCORE_TITLE_MODE: Ko
|
|
1647
1647
|
});
|
|
1648
1648
|
function Qo(n, t) {
|
|
@@ -1655,7 +1655,7 @@ function Jo(n, t) {
|
|
|
1655
1655
|
t && n.beginKeywords && (n.begin = "\\b(" + n.beginKeywords.split(" ").join("|") + ")(?!\\.)(?=\\b|\\s)", n.__beforeBegin = Qo, n.keywords = n.keywords || n.beginKeywords, delete n.beginKeywords, n.relevance === void 0 && (n.relevance = 0));
|
|
1656
1656
|
}
|
|
1657
1657
|
function ec(n, t) {
|
|
1658
|
-
Array.isArray(n.illegal) && (n.illegal =
|
|
1658
|
+
Array.isArray(n.illegal) && (n.illegal = ga(...n.illegal));
|
|
1659
1659
|
}
|
|
1660
1660
|
function tc(n, t) {
|
|
1661
1661
|
if (n.match) {
|
|
@@ -1735,7 +1735,7 @@ function oc(n) {
|
|
|
1735
1735
|
throw kn("skip, excludeBegin, returnBegin not compatible with beginScope: {}"), kr;
|
|
1736
1736
|
if (typeof n.beginScope != "object" || n.beginScope === null)
|
|
1737
1737
|
throw kn("beginScope must be object"), kr;
|
|
1738
|
-
ci(n, n.begin, { key: "beginScope" }), n.begin =
|
|
1738
|
+
ci(n, n.begin, { key: "beginScope" }), n.begin = ba(n.begin, { joinWith: "" });
|
|
1739
1739
|
}
|
|
1740
1740
|
}
|
|
1741
1741
|
function cc(n) {
|
|
@@ -1744,7 +1744,7 @@ function cc(n) {
|
|
|
1744
1744
|
throw kn("skip, excludeEnd, returnEnd not compatible with endScope: {}"), kr;
|
|
1745
1745
|
if (typeof n.endScope != "object" || n.endScope === null)
|
|
1746
1746
|
throw kn("endScope must be object"), kr;
|
|
1747
|
-
ci(n, n.end, { key: "endScope" }), n.end =
|
|
1747
|
+
ci(n, n.end, { key: "endScope" }), n.end = ba(n.end, { joinWith: "" });
|
|
1748
1748
|
}
|
|
1749
1749
|
}
|
|
1750
1750
|
function uc(n) {
|
|
@@ -1771,7 +1771,7 @@ function fc(n) {
|
|
|
1771
1771
|
compile() {
|
|
1772
1772
|
this.regexes.length === 0 && (this.exec = () => null);
|
|
1773
1773
|
const s = this.regexes.map((l) => l[1]);
|
|
1774
|
-
this.matcherRe = t(
|
|
1774
|
+
this.matcherRe = t(ba(s, { joinWith: "|" }), !0), this.lastIndex = 0;
|
|
1775
1775
|
}
|
|
1776
1776
|
/** @param {string} s */
|
|
1777
1777
|
exec(s) {
|
|
@@ -2277,7 +2277,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), pe = q, V = R), O ===
|
|
|
2277
2277
|
}, n.versionString = hc, n.regex = {
|
|
2278
2278
|
concat: Sn,
|
|
2279
2279
|
lookahead: ni,
|
|
2280
|
-
either:
|
|
2280
|
+
either: ga,
|
|
2281
2281
|
optional: $o,
|
|
2282
2282
|
anyNumberOfTimes: Co
|
|
2283
2283
|
};
|
|
@@ -4562,7 +4562,7 @@ function Ii(n) {
|
|
|
4562
4562
|
]
|
|
4563
4563
|
};
|
|
4564
4564
|
}
|
|
4565
|
-
function
|
|
4565
|
+
function ka(n) {
|
|
4566
4566
|
const t = n.regex, e = t.concat(/[\p{L}_]/u, t.optional(/[\p{L}0-9_.-]*:/u), /[\p{L}0-9_.-]*/u), r = /[\p{L}0-9._:-]+/u, a = {
|
|
4567
4567
|
className: "symbol",
|
|
4568
4568
|
begin: /&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/
|
|
@@ -6302,9 +6302,9 @@ ct.registerLanguage("typescript", _i);
|
|
|
6302
6302
|
ct.registerLanguage("ts", _i);
|
|
6303
6303
|
ct.registerLanguage("javascript", Ii);
|
|
6304
6304
|
ct.registerLanguage("js", Ii);
|
|
6305
|
-
ct.registerLanguage("vue",
|
|
6306
|
-
ct.registerLanguage("html",
|
|
6307
|
-
ct.registerLanguage("xml",
|
|
6305
|
+
ct.registerLanguage("vue", ka);
|
|
6306
|
+
ct.registerLanguage("html", ka);
|
|
6307
|
+
ct.registerLanguage("xml", ka);
|
|
6308
6308
|
ct.registerLanguage("css", cu);
|
|
6309
6309
|
ct.registerLanguage("json", uu);
|
|
6310
6310
|
ct.registerLanguage("bash", Ai);
|
|
@@ -6542,7 +6542,7 @@ const pu = { class: "min-w-0 flex-1 truncate text-[11px] leading-[16px] text-fm-
|
|
|
6542
6542
|
{ value: "center", label: "Center" },
|
|
6543
6543
|
{ value: "flex-end", label: "End", aliases: ["end"] },
|
|
6544
6544
|
{ value: "baseline", label: "Baseline" }
|
|
6545
|
-
],
|
|
6545
|
+
], wa = [
|
|
6546
6546
|
{ key: "color", label: "Text", control: "color" },
|
|
6547
6547
|
{ key: "backgroundColor", label: "Background", control: "color" },
|
|
6548
6548
|
{ key: "borderColor", label: "Border", control: "color" },
|
|
@@ -6567,7 +6567,7 @@ const pu = { class: "min-w-0 flex-1 truncate text-[11px] leading-[16px] text-fm-
|
|
|
6567
6567
|
{ key: "gap", label: "Gap", control: "length", units: ["px", "rem", "%"], min: 0, max: 400, step: 1, presets: ["0px", "4px", "8px", "12px", "16px", "24px", "32px"] },
|
|
6568
6568
|
{ key: "justifyContent", label: "Justify", control: "choice", options: Nu },
|
|
6569
6569
|
{ key: "alignItems", label: "Align items", control: "choice", options: Du }
|
|
6570
|
-
], Ou = new Map(
|
|
6570
|
+
], Ou = new Map(wa.map((n) => [n.key, n]));
|
|
6571
6571
|
function nn(n) {
|
|
6572
6572
|
return Ou.get(n);
|
|
6573
6573
|
}
|
|
@@ -6580,7 +6580,7 @@ const gs = [
|
|
|
6580
6580
|
{ key: "spacing", label: "Spacing", keys: ["padding", "margin"], defaultOpen: !1 },
|
|
6581
6581
|
{ key: "effects", label: "Effects", keys: ["opacity"], defaultOpen: !1 }
|
|
6582
6582
|
], Pu = /* @__PURE__ */ new Set(["img", "svg", "video", "picture", "canvas", "image", "use", "path", "figure"]), Mu = /* @__PURE__ */ new Set(["button", "a", "input", "select", "textarea", "option"]), Lu = /* @__PURE__ */ new Set(["span", "p", "h1", "h2", "h3", "h4", "h5", "h6", "strong", "em", "b", "i", "small", "label", "li", "td", "th", "legend", "figcaption", "blockquote"]);
|
|
6583
|
-
function
|
|
6583
|
+
function Ar(n) {
|
|
6584
6584
|
const t = ((n == null ? void 0 : n.tag) ?? "").toLowerCase();
|
|
6585
6585
|
return Pu.has(t) ? "media" : Mu.has(t) ? "control" : Lu.has(t) || n != null && n.canEditText ? "text" : "container";
|
|
6586
6586
|
}
|
|
@@ -6599,7 +6599,7 @@ function zu(n) {
|
|
|
6599
6599
|
}
|
|
6600
6600
|
function Bu(n, t) {
|
|
6601
6601
|
var r;
|
|
6602
|
-
return ["width", "height", "padding", "margin"].includes(t) ? (((r = n == null ? void 0 : n.computed) == null ? void 0 : r.display) ?? "").trim() === "inline" &&
|
|
6602
|
+
return ["width", "height", "padding", "margin"].includes(t) ? (((r = n == null ? void 0 : n.computed) == null ? void 0 : r.display) ?? "").trim() === "inline" && Ar(n) !== "media" : !1;
|
|
6603
6603
|
}
|
|
6604
6604
|
const ju = /^[^<>;{}]{0,200}$/;
|
|
6605
6605
|
function Zn(n) {
|
|
@@ -6640,7 +6640,7 @@ function na(n) {
|
|
|
6640
6640
|
const t = (e) => Math.min(255, Math.max(0, Math.round(e))).toString(16).padStart(2, "0");
|
|
6641
6641
|
return `#${t(n.r)}${t(n.g)}${t(n.b)}`;
|
|
6642
6642
|
}
|
|
6643
|
-
function
|
|
6643
|
+
function Cr(n) {
|
|
6644
6644
|
const t = ta(String(n ?? ""));
|
|
6645
6645
|
return !t || t.a === 0 ? null : na(t);
|
|
6646
6646
|
}
|
|
@@ -6670,9 +6670,9 @@ function sr(n) {
|
|
|
6670
6670
|
function Hu(n) {
|
|
6671
6671
|
const t = (n == null ? void 0 : n.computed) ?? {};
|
|
6672
6672
|
return Object.fromEntries(
|
|
6673
|
-
|
|
6673
|
+
wa.map(({ key: e, control: r }) => {
|
|
6674
6674
|
const a = Zn(t[e] ?? "");
|
|
6675
|
-
return r === "color" && a.startsWith("color(") ? [e,
|
|
6675
|
+
return r === "color" && a.startsWith("color(") ? [e, Cr(a) ?? a] : [e, a];
|
|
6676
6676
|
})
|
|
6677
6677
|
);
|
|
6678
6678
|
}
|
|
@@ -6683,14 +6683,14 @@ function Wu(n, t, e) {
|
|
|
6683
6683
|
const r = (a = n.options) == null ? void 0 : a.find((o) => o.value === e);
|
|
6684
6684
|
return !((i = r == null ? void 0 : r.aliases) != null && i.includes(t));
|
|
6685
6685
|
}
|
|
6686
|
-
function
|
|
6687
|
-
return
|
|
6686
|
+
function xa(n, t) {
|
|
6687
|
+
return wa.flatMap((e) => {
|
|
6688
6688
|
const r = Zn(n[e.key] ?? ""), a = Zn(t[e.key] ?? "");
|
|
6689
6689
|
return Wu(e, r, a) ? [e.key] : [];
|
|
6690
6690
|
});
|
|
6691
6691
|
}
|
|
6692
6692
|
function Gu(n, t, e) {
|
|
6693
|
-
const r =
|
|
6693
|
+
const r = xa(n, t), a = {};
|
|
6694
6694
|
for (const i of r) a[i] = t[i] ?? "";
|
|
6695
6695
|
for (const i of e) r.includes(i) || (a[i] = "");
|
|
6696
6696
|
return { styles: a, appliedKeys: r };
|
|
@@ -6700,7 +6700,7 @@ function Vu(n, t, e) {
|
|
|
6700
6700
|
if (n.control === "font") return e.find((r) => r.kind === "font" && r.value === t);
|
|
6701
6701
|
}
|
|
6702
6702
|
function bs(n, t, e = []) {
|
|
6703
|
-
return
|
|
6703
|
+
return xa(n, t).map((r) => {
|
|
6704
6704
|
const a = Zn(t[r] ?? ""), i = Vu(nn(r), a, e);
|
|
6705
6705
|
return {
|
|
6706
6706
|
property: r,
|
|
@@ -6725,7 +6725,7 @@ function Zu(n) {
|
|
|
6725
6725
|
}
|
|
6726
6726
|
function Yu(n) {
|
|
6727
6727
|
var i, o, s;
|
|
6728
|
-
const t = n.element, e =
|
|
6728
|
+
const t = n.element, e = Ar(t), r = Zu(t), a = [
|
|
6729
6729
|
`#${n.id} — route ${n.route} — viewport/device ${n.device}`,
|
|
6730
6730
|
` target: ${t ? `<${t.tag}>` : "unknown element"} (${e})`,
|
|
6731
6731
|
` selector hint: ${(t == null ? void 0 : t.selector) || "(unavailable)"}`,
|
|
@@ -6779,7 +6779,7 @@ const Qu = { class: "flex min-w-0 flex-col gap-6" }, Xu = {
|
|
|
6779
6779
|
},
|
|
6780
6780
|
setup(n) {
|
|
6781
6781
|
function t(e) {
|
|
6782
|
-
return
|
|
6782
|
+
return Cr(e) ? e : null;
|
|
6783
6783
|
}
|
|
6784
6784
|
return (e, r) => {
|
|
6785
6785
|
const a = Ue("FmIcon");
|
|
@@ -6917,24 +6917,23 @@ function rn(n) {
|
|
|
6917
6917
|
const t = md();
|
|
6918
6918
|
return t ? `${t}${n.startsWith("/") ? n : `/${n}`}` : n;
|
|
6919
6919
|
}
|
|
6920
|
-
function
|
|
6921
|
-
return
|
|
6920
|
+
function _a() {
|
|
6921
|
+
return Tr().currentBusiness.value;
|
|
6922
6922
|
}
|
|
6923
6923
|
function xn() {
|
|
6924
|
-
|
|
6925
|
-
return (n
|
|
6924
|
+
var n;
|
|
6925
|
+
return ((n = _a()) == null ? void 0 : n._id) ?? ra;
|
|
6926
6926
|
}
|
|
6927
6927
|
function aa() {
|
|
6928
6928
|
var n;
|
|
6929
|
-
return (n =
|
|
6929
|
+
return ((n = _a()) == null ? void 0 : n.url) ?? void 0;
|
|
6930
6930
|
}
|
|
6931
6931
|
function yd() {
|
|
6932
|
-
|
|
6933
|
-
return (n
|
|
6932
|
+
var n;
|
|
6933
|
+
return ((n = _a()) == null ? void 0 : n.name) ?? xn();
|
|
6934
6934
|
}
|
|
6935
6935
|
function Oi() {
|
|
6936
|
-
|
|
6937
|
-
return (n == null ? void 0 : n.country) ?? (n == null ? void 0 : n.countryCode) ?? (n == null ? void 0 : n.country_code);
|
|
6936
|
+
return Tr().currentCountry.value;
|
|
6938
6937
|
}
|
|
6939
6938
|
function gd() {
|
|
6940
6939
|
var r;
|
|
@@ -6949,7 +6948,7 @@ function Ye(n) {
|
|
|
6949
6948
|
}
|
|
6950
6949
|
function vs() {
|
|
6951
6950
|
var t;
|
|
6952
|
-
return ((t =
|
|
6951
|
+
return ((t = Tr().sessionUser.value) == null ? void 0 : t.token) || xl.token || "";
|
|
6953
6952
|
}
|
|
6954
6953
|
async function Pi() {
|
|
6955
6954
|
let n = vs();
|
|
@@ -8941,7 +8940,7 @@ const up = { class: "flex h-full min-w-0 flex-col bg-fm-color-neutral-white" },
|
|
|
8941
8940
|
},
|
|
8942
8941
|
emits: ["update"],
|
|
8943
8942
|
setup(n, { emit: t }) {
|
|
8944
|
-
const e = n, r = t, a = ae(!1), i = z(() =>
|
|
8943
|
+
const e = n, r = t, a = ae(!1), i = z(() => Cr(e.value)), o = z(() => e.presets.find((E) => xr(e.value, E.value)) ?? null), s = z(() => e.value.trim() || "transparent"), l = z(() => {
|
|
8945
8944
|
const E = e.value.trim();
|
|
8946
8945
|
return E ? i.value ? i.value : E === "transparent" ? "transparent" : E : "none";
|
|
8947
8946
|
}), d = z(() => !!e.value.trim() && !i.value), u = typeof window < "u" && "EyeDropper" in window;
|
|
@@ -9427,7 +9426,7 @@ const up = { class: "flex h-full min-w-0 flex-col bg-fm-color-neutral-white" },
|
|
|
9427
9426
|
},
|
|
9428
9427
|
emits: ["change", "reset", "resetAll"],
|
|
9429
9428
|
setup(n, { emit: t }) {
|
|
9430
|
-
const e = n, r = t, a = z(() => e.presets.filter((I) => I.kind === "color")), i = z(() => e.presets.filter((I) => I.kind === "font")), o = z(() => new Set(
|
|
9429
|
+
const e = n, r = t, a = z(() => e.presets.filter((I) => I.kind === "color")), i = z(() => e.presets.filter((I) => I.kind === "font")), o = z(() => new Set(xa(e.beforeValues, e.values))), s = z(() => !!e.element.canEditText && e.textValue !== e.beforeText), l = z(() => o.value.size + (s.value ? 1 : 0)), d = z(() => Ar(e.element)), u = z(() => zu(d.value)), k = z(() => {
|
|
9431
9430
|
var _;
|
|
9432
9431
|
if (d.value !== "media") return null;
|
|
9433
9432
|
const I = e.element.attrs ?? {};
|
|
@@ -9444,7 +9443,7 @@ const up = { class: "flex h-full min-w-0 flex-col bg-fm-color-neutral-white" },
|
|
|
9444
9443
|
}
|
|
9445
9444
|
function v(I) {
|
|
9446
9445
|
const _ = e.beforeValues[I] ?? "";
|
|
9447
|
-
return `Reset to ${(nn(I).control === "color" ?
|
|
9446
|
+
return `Reset to ${(nn(I).control === "color" ? Cr(_) ?? _ : _) || "unset"}`;
|
|
9448
9447
|
}
|
|
9449
9448
|
function w(I) {
|
|
9450
9449
|
return Bu(e.element, I) ? `${nn(I).label} — CSS ignores this on an inline element; set Display to block or inline-block first` : nn(I).label;
|
|
@@ -10377,7 +10376,7 @@ const gm = { class: "relative flex h-full min-w-0 flex-col bg-fm-color-neutral-w
|
|
|
10377
10376
|
mr(m("textarea", {
|
|
10378
10377
|
"onUpdate:modelValue": S[4] || (S[4] = (Ce) => J.value.feedback = Ce),
|
|
10379
10378
|
rows: "1",
|
|
10380
|
-
placeholder: fe.value && j(
|
|
10379
|
+
placeholder: fe.value && j(Ar)(fe.value) === "media" ? "Describe the change, or paste/drop the replacement image…" : "Describe what should change here…",
|
|
10381
10380
|
class: "max-h-[124px] w-full resize-none overflow-y-auto rounded-md border border-fm-color-neutral-gray-200 px-[9px] pb-[29px] pt-[7px] fm-typo-en-body-sm-400 outline-none focus:border-fm-color-primary",
|
|
10382
10381
|
onInput: Jt,
|
|
10383
10382
|
onPaste: S[5] || (S[5] = (Ce) => Ct(Ce, J.value)),
|
|
@@ -18284,7 +18283,7 @@ const Gb = ["aria-label", "title"], Vb = { class: "flex flex-col gap-[4px]" }, K
|
|
|
18284
18283
|
}, zs = "mpv2:sidebar-collapsed", Kr = "mpv2:chat-column-width", Ck = 440, cr = 320, Zr = 720, $k = 360, Rk = 30 * 60 * 1e3, Nk = /* @__PURE__ */ ut({
|
|
18285
18284
|
__name: "ControlPlaneView",
|
|
18286
18285
|
setup(n) {
|
|
18287
|
-
const t =
|
|
18286
|
+
const t = Tr(), e = Nb(), r = Wb(), a = Bs(), i = ae("workspace"), o = ae(!1), s = ae(Gi(zs, !1)), l = ae(!1), d = ae(null), u = ae(um(Kr, Ck)), k = ae(!1);
|
|
18288
18287
|
let h = null, E = null, p = null, v = "", w = "", I = null;
|
|
18289
18288
|
const _ = z(() => r.sessions.find((c) => c.status === "active") ?? null), A = ae(!1), C = ae(!1), N = ae(!1), F = ae(!1), se = ae(!1), H = z(
|
|
18290
18289
|
() => r.sessions.find((c) => c.id === e.workspaceSessionId) ?? _.value
|
package/dist/app.js
CHANGED
package/dist/package.json
CHANGED