@feedmepos/mf-miniprogram-v2 0.1.0-dev.17 → 0.1.0-dev.18
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.
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var ee = (t, e, n) =>
|
|
4
|
-
import { defineComponent as at, ref as ce, computed as ne, resolveComponent as Me, openBlock as x, createElementBlock as I, normalizeClass as Be, createElementVNode as m, createVNode as V, toDisplayString as H, createTextVNode as je, createCommentVNode as re, Fragment as $e, renderList as De, reactive as In, normalizeStyle as pn, createBlock as Se, watch as Mt, nextTick as hn, onBeforeUnmount as Fn, withModifiers as Cn, withDirectives as On, vModelText as $n, renderSlot as
|
|
5
|
-
import { useCoreStore as yr, FeedMeAuth as
|
|
6
|
-
import { useDialog as
|
|
1
|
+
var ca = Object.defineProperty;
|
|
2
|
+
var ua = (t, e, n) => e in t ? ca(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
|
|
3
|
+
var ee = (t, e, n) => ua(t, typeof e != "symbol" ? e + "" : e, n);
|
|
4
|
+
import { defineComponent as at, ref as ce, computed as ne, resolveComponent as Me, openBlock as x, createElementBlock as I, normalizeClass as Be, createElementVNode as m, createVNode as V, toDisplayString as H, createTextVNode as je, createCommentVNode as re, Fragment as $e, renderList as De, reactive as In, normalizeStyle as pn, createBlock as Se, watch as Mt, nextTick as hn, onBeforeUnmount as Fn, withModifiers as Cn, withDirectives as On, vModelText as $n, renderSlot as da, onMounted as mn, unref as $, withCtx as it, withKeys as fa } from "vue";
|
|
5
|
+
import { useCoreStore as yr, FeedMeAuth as pa } from "@feedmepos/mf-common";
|
|
6
|
+
import { useDialog as ha } from "@feedmepos/ui-library";
|
|
7
7
|
import { _ as zt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
8
8
|
function _r() {
|
|
9
9
|
return { async: !1, breaks: !1, extensions: null, gfm: !0, hooks: null, pedantic: !1, renderer: null, silent: !1, tokenizer: null, walkTokens: null };
|
|
@@ -27,14 +27,14 @@ function we(t, e = "") {
|
|
|
27
27
|
}, getRegex: () => new RegExp(n, e) };
|
|
28
28
|
return r;
|
|
29
29
|
}
|
|
30
|
-
var
|
|
30
|
+
var ma = ((t = "") => {
|
|
31
31
|
try {
|
|
32
32
|
return !!new RegExp("(?<=1)(?<!1)" + t);
|
|
33
33
|
} catch {
|
|
34
34
|
return !1;
|
|
35
35
|
}
|
|
36
|
-
})(), Xe = { 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: (t) => new RegExp(`^( {0,3}${t})((?:[ ][^\\n]*)?(?:\\n|$))`), nextBulletRegex: Wt((t) => new RegExp(`^ {0,${t}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)), hrRegex: Wt((t) => new RegExp(`^ {0,${t}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)), fencesBeginRegex: Wt((t) => new RegExp(`^ {0,${t}}(?:\`\`\`|~~~)`)), headingBeginRegex: Wt((t) => new RegExp(`^ {0,${t}}#`)), htmlBeginRegex: Wt((t) => new RegExp(`^ {0,${t}}<(?:[a-z].*>|!--)`, "i")), blockquoteBeginRegex: Wt((t) => new RegExp(`^ {0,${t}}>`)) },
|
|
37
|
-
]`).replace("lheading", Ws).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex() },
|
|
36
|
+
})(), Xe = { 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: (t) => new RegExp(`^( {0,3}${t})((?:[ ][^\\n]*)?(?:\\n|$))`), nextBulletRegex: Wt((t) => new RegExp(`^ {0,${t}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)), hrRegex: Wt((t) => new RegExp(`^ {0,${t}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)), fencesBeginRegex: Wt((t) => new RegExp(`^ {0,${t}}(?:\`\`\`|~~~)`)), headingBeginRegex: Wt((t) => new RegExp(`^ {0,${t}}#`)), htmlBeginRegex: Wt((t) => new RegExp(`^ {0,${t}}<(?:[a-z].*>|!--)`, "i")), blockquoteBeginRegex: Wt((t) => new RegExp(`^ {0,${t}}>`)) }, ga = /^(?:[ \t]*(?:\n|$))+/, ba = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, ya = /^ {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+|$)/, _a = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, xr = / {0,3}(?:[*+-]|\d{1,9}[.)])/, Gs = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, Ws = we(Gs).replace(/bull/g, xr).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}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex(), xa = we(Gs).replace(/bull/g, xr).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}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(), vr = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, va = /^[^\n]+/, wr = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, wa = we(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", wr).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), ka = we(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g, xr).getRegex(), Un = "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", kr = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, Ea = we("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\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", kr).replace("tag", Un).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), Ks = we(vr).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)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", Un).getRegex(), Ta = we(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", Ks).getRegex(), Er = { blockquote: Ta, code: ba, def: wa, fences: ya, heading: _a, hr: yn, html: Ea, lheading: Ws, list: ka, newline: ga, paragraph: Ks, table: $t, text: va }, Zr = we("^ *([^\\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)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", Un).getRegex(), Sa = { ...Er, lheading: xa, table: Zr, paragraph: we(vr).replace("hr", yn).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", Zr).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", Un).getRegex() }, Aa = { ...Er, html: we(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", kr).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: $t, lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/, paragraph: we(vr).replace("hr", yn).replace("heading", ` *#{1,6} *[^
|
|
37
|
+
]`).replace("lheading", Ws).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex() }, Ra = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, Na = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, qs = /^( {2,}|\\)\n(?!\s*$)/, Ia = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, Qt = /[\p{P}\p{S}]/u, jn = /[\s\p{P}\p{S}]/u, Tr = /[^\s\p{P}\p{S}]/u, Ca = we(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, jn).getRegex(), Vs = /(?!~)[\p{P}\p{S}]/u, Oa = /(?!~)[\s\p{P}\p{S}]/u, $a = /(?:[^\s\p{P}\p{S}]|~)/u, Ma = we(/link|precode-code|html/, "g").replace("link", /\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-", ma ? "(?<!`)()" : "(^^|[^`])").replace("code", /(?<b>`+)[^`]+\k<b>(?!`)/).replace("html", /<(?! )[^<>]*?>/).getRegex(), Zs = /^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/, La = we(Zs, "u").replace(/punct/g, Qt).getRegex(), Pa = we(Zs, "u").replace(/punct/g, Vs).getRegex(), Ys = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", Da = we(Ys, "gu").replace(/notPunctSpace/g, Tr).replace(/punctSpace/g, jn).replace(/punct/g, Qt).getRegex(), za = we(Ys, "gu").replace(/notPunctSpace/g, $a).replace(/punctSpace/g, Oa).replace(/punct/g, Vs).getRegex(), Ba = we("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, Tr).replace(/punctSpace/g, jn).replace(/punct/g, Qt).getRegex(), Fa = we(/^~~?(?:((?!~)punct)|[^\s~])/, "u").replace(/punct/g, Qt).getRegex(), Ua = "^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)", ja = we(Ua, "gu").replace(/notPunctSpace/g, Tr).replace(/punctSpace/g, jn).replace(/punct/g, Qt).getRegex(), Ha = we(/\\(punct)/, "gu").replace(/punct/g, Qt).getRegex(), Ga = we(/^<(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(), Wa = we(kr).replace("(?:-->|$)", "-->").getRegex(), Ka = we("^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", Wa).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), Mn = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/, qa = we(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label", Mn).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), Xs = we(/^!?\[(label)\]\[(ref)\]/).replace("label", Mn).replace("ref", wr).getRegex(), Js = we(/^!?\[(ref)\](?:\[\])?/).replace("ref", wr).getRegex(), Va = we("reflink|nolink(?!\\()", "g").replace("reflink", Xs).replace("nolink", Js).getRegex(), Yr = /[hH][tT][tT][pP][sS]?|[fF][tT][pP]/, Sr = { _backpedal: $t, anyPunctuation: Ha, autolink: Ga, blockSkip: Ma, br: qs, code: Na, del: $t, delLDelim: $t, delRDelim: $t, emStrongLDelim: La, emStrongRDelimAst: Da, emStrongRDelimUnd: Ba, escape: Ra, link: qa, nolink: Js, punctuation: Ca, reflink: Xs, reflinkSearch: Va, tag: Ka, text: Ia, url: $t }, Za = { ...Sr, link: we(/^!?\[(label)\]\((.*?)\)/).replace("label", Mn).getRegex(), reflink: we(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", Mn).getRegex() }, dr = { ...Sr, emStrongRDelimAst: za, emStrongLDelim: Pa, delLDelim: Fa, delRDelim: ja, url: we(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol", Yr).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: we(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol", Yr).getRegex() }, Ya = { ...dr, br: we(qs).replace("{2,}", "*").getRegex(), text: we(dr.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex() }, En = { normal: Er, gfm: Sa, pedantic: Aa }, an = { normal: Sr, gfm: dr, breaks: Ya, pedantic: Za }, Xa = { "&": "&", "<": "<", ">": ">", '"': """, "'": "'" }, Xr = (t) => Xa[t];
|
|
38
38
|
function bt(t, e) {
|
|
39
39
|
if (e) {
|
|
40
40
|
if (Xe.escapeTest.test(t)) return t.replace(Xe.escapeReplace, Xr);
|
|
@@ -76,7 +76,7 @@ function es(t) {
|
|
|
76
76
|
return e.length - n <= 2 ? t : e.slice(0, n + 1).join(`
|
|
77
77
|
`);
|
|
78
78
|
}
|
|
79
|
-
function
|
|
79
|
+
function Ja(t, e) {
|
|
80
80
|
if (t.indexOf(e[1]) === -1) return -1;
|
|
81
81
|
let n = 0;
|
|
82
82
|
for (let r = 0; r < t.length; r++) if (t[r] === "\\") r++;
|
|
@@ -84,7 +84,7 @@ function Xa(t, e) {
|
|
|
84
84
|
else if (t[r] === e[1] && (n--, n < 0)) return r;
|
|
85
85
|
return n > 0 ? -2 : -1;
|
|
86
86
|
}
|
|
87
|
-
function
|
|
87
|
+
function Qa(t, e = 0) {
|
|
88
88
|
let n = e, r = "";
|
|
89
89
|
for (let s of t) if (s === " ") {
|
|
90
90
|
let i = 4 - n % 4;
|
|
@@ -98,7 +98,7 @@ function ts(t, e, n, r, s) {
|
|
|
98
98
|
let l = { type: t[0].charAt(0) === "!" ? "image" : "link", raw: n, href: i, title: o, text: a, tokens: r.inlineTokens(a) };
|
|
99
99
|
return r.state.inLink = !1, l;
|
|
100
100
|
}
|
|
101
|
-
function
|
|
101
|
+
function eo(t, e, n) {
|
|
102
102
|
let r = t.match(n.other.indentCodeCompensation);
|
|
103
103
|
if (r === null) return e;
|
|
104
104
|
let s = r[1];
|
|
@@ -132,7 +132,7 @@ var Ln = class {
|
|
|
132
132
|
fences(t) {
|
|
133
133
|
let e = this.rules.block.fences.exec(t);
|
|
134
134
|
if (e) {
|
|
135
|
-
let n = e[0], r =
|
|
135
|
+
let n = e[0], r = eo(n, e[3] || "", this.rules);
|
|
136
136
|
return { type: "code", raw: n, lang: e[2] ? e[2].trim().replace(this.rules.inline.anyPunctuation, "$1") : e[2], text: r };
|
|
137
137
|
}
|
|
138
138
|
}
|
|
@@ -203,7 +203,7 @@ ${f}` : f;
|
|
|
203
203
|
let l = !1, u = "", f = "";
|
|
204
204
|
if (!(e = i.exec(t)) || this.rules.block.hr.test(t)) break;
|
|
205
205
|
u = e[0], t = t.substring(u.length);
|
|
206
|
-
let g =
|
|
206
|
+
let g = Qa(e[2].split(`
|
|
207
207
|
`, 1)[0], e[1].length), p = t.split(`
|
|
208
208
|
`, 1)[0], w = !g.trim(), d = 0;
|
|
209
209
|
if (this.options.pedantic ? (d = 2, f = g.trimStart()) : w ? d = e[1].length + 1 : (d = g.search(this.rules.other.nonSpaceChar), d = d > 4 ? 1 : d, f = g.slice(d), d += e[1].length), w && this.rules.other.blankLine.test(p) && (u += p + `
|
|
@@ -323,7 +323,7 @@ ${f}` : f;
|
|
|
323
323
|
let i = kt(n.slice(0, -1), "\\");
|
|
324
324
|
if ((n.length - i.length) % 2 === 0) return;
|
|
325
325
|
} else {
|
|
326
|
-
let i =
|
|
326
|
+
let i = Ja(e[2], "()");
|
|
327
327
|
if (i === -2) return;
|
|
328
328
|
if (i > -1) {
|
|
329
329
|
let o = (e[0].indexOf("!") === 0 ? 5 : 4) + e[1].length + i;
|
|
@@ -1172,7 +1172,7 @@ Re.walkTokens;
|
|
|
1172
1172
|
Re.parseInline;
|
|
1173
1173
|
pt.parse;
|
|
1174
1174
|
ft.lex;
|
|
1175
|
-
function
|
|
1175
|
+
function to(t) {
|
|
1176
1176
|
if (typeof t == "function" && (t = {
|
|
1177
1177
|
highlight: t
|
|
1178
1178
|
}), !t || typeof t.highlight != "function")
|
|
@@ -1209,22 +1209,22 @@ function rs(t) {
|
|
|
1209
1209
|
typeof e == "string" && e !== t.text && (t.escaped = !0, t.text = e);
|
|
1210
1210
|
};
|
|
1211
1211
|
}
|
|
1212
|
-
const ei = /[&<>"']/,
|
|
1212
|
+
const ei = /[&<>"']/, no = new RegExp(ei.source, "g"), ti = /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/, ro = new RegExp(ti.source, "g"), so = {
|
|
1213
1213
|
"&": "&",
|
|
1214
1214
|
"<": "<",
|
|
1215
1215
|
">": ">",
|
|
1216
1216
|
'"': """,
|
|
1217
1217
|
"'": "'"
|
|
1218
|
-
}, ss = (t) =>
|
|
1218
|
+
}, ss = (t) => so[t];
|
|
1219
1219
|
function is(t, e) {
|
|
1220
1220
|
if (e) {
|
|
1221
1221
|
if (ei.test(t))
|
|
1222
|
-
return t.replace(
|
|
1222
|
+
return t.replace(no, ss);
|
|
1223
1223
|
} else if (ti.test(t))
|
|
1224
|
-
return t.replace(
|
|
1224
|
+
return t.replace(ro, ss);
|
|
1225
1225
|
return t;
|
|
1226
1226
|
}
|
|
1227
|
-
function
|
|
1227
|
+
function io(t) {
|
|
1228
1228
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
1229
1229
|
}
|
|
1230
1230
|
function ni(t) {
|
|
@@ -1261,7 +1261,7 @@ function St(t, ...e) {
|
|
|
1261
1261
|
}), /** @type {T} */
|
|
1262
1262
|
n;
|
|
1263
1263
|
}
|
|
1264
|
-
const
|
|
1264
|
+
const ao = "</span>", os = (t) => !!t.scope, oo = (t, { prefix: e }) => {
|
|
1265
1265
|
if (t.startsWith("language:"))
|
|
1266
1266
|
return t.replace("language:", "language-");
|
|
1267
1267
|
if (t.includes(".")) {
|
|
@@ -1273,7 +1273,7 @@ const io = "</span>", os = (t) => !!t.scope, ao = (t, { prefix: e }) => {
|
|
|
1273
1273
|
}
|
|
1274
1274
|
return `${e}${t}`;
|
|
1275
1275
|
};
|
|
1276
|
-
class
|
|
1276
|
+
class lo {
|
|
1277
1277
|
/**
|
|
1278
1278
|
* Creates a new HTMLRenderer
|
|
1279
1279
|
*
|
|
@@ -1296,7 +1296,7 @@ class oo {
|
|
|
1296
1296
|
* @param {Node} node */
|
|
1297
1297
|
openNode(e) {
|
|
1298
1298
|
if (!os(e)) return;
|
|
1299
|
-
const n =
|
|
1299
|
+
const n = oo(
|
|
1300
1300
|
e.scope,
|
|
1301
1301
|
{ prefix: this.classPrefix }
|
|
1302
1302
|
);
|
|
@@ -1307,7 +1307,7 @@ class oo {
|
|
|
1307
1307
|
*
|
|
1308
1308
|
* @param {Node} node */
|
|
1309
1309
|
closeNode(e) {
|
|
1310
|
-
os(e) && (this.buffer +=
|
|
1310
|
+
os(e) && (this.buffer += ao);
|
|
1311
1311
|
}
|
|
1312
1312
|
/**
|
|
1313
1313
|
* returns the accumulated buffer
|
|
@@ -1380,7 +1380,7 @@ class Rr {
|
|
|
1380
1380
|
}));
|
|
1381
1381
|
}
|
|
1382
1382
|
}
|
|
1383
|
-
class
|
|
1383
|
+
class co extends Rr {
|
|
1384
1384
|
/**
|
|
1385
1385
|
* @param {*} options
|
|
1386
1386
|
*/
|
|
@@ -1409,7 +1409,7 @@ class lo extends Rr {
|
|
|
1409
1409
|
n && (r.scope = `language:${n}`), this.add(r);
|
|
1410
1410
|
}
|
|
1411
1411
|
toHTML() {
|
|
1412
|
-
return new
|
|
1412
|
+
return new lo(this, this.options).value();
|
|
1413
1413
|
}
|
|
1414
1414
|
finalize() {
|
|
1415
1415
|
return this.closeAllNodes(), !0;
|
|
@@ -1421,30 +1421,30 @@ function gn(t) {
|
|
|
1421
1421
|
function si(t) {
|
|
1422
1422
|
return Ft("(?=", t, ")");
|
|
1423
1423
|
}
|
|
1424
|
-
function
|
|
1424
|
+
function uo(t) {
|
|
1425
1425
|
return Ft("(?:", t, ")*");
|
|
1426
1426
|
}
|
|
1427
|
-
function
|
|
1427
|
+
function fo(t) {
|
|
1428
1428
|
return Ft("(?:", t, ")?");
|
|
1429
1429
|
}
|
|
1430
1430
|
function Ft(...t) {
|
|
1431
1431
|
return t.map((n) => gn(n)).join("");
|
|
1432
1432
|
}
|
|
1433
|
-
function
|
|
1433
|
+
function po(t) {
|
|
1434
1434
|
const e = t[t.length - 1];
|
|
1435
1435
|
return typeof e == "object" && e.constructor === Object ? (t.splice(t.length - 1, 1), e) : {};
|
|
1436
1436
|
}
|
|
1437
1437
|
function Nr(...t) {
|
|
1438
|
-
return "(" + (
|
|
1438
|
+
return "(" + (po(t).capture ? "" : "?:") + t.map((r) => gn(r)).join("|") + ")";
|
|
1439
1439
|
}
|
|
1440
1440
|
function ii(t) {
|
|
1441
1441
|
return new RegExp(t.toString() + "|").exec("").length - 1;
|
|
1442
1442
|
}
|
|
1443
|
-
function
|
|
1443
|
+
function ho(t, e) {
|
|
1444
1444
|
const n = t && t.exec(e);
|
|
1445
1445
|
return n && n.index === 0;
|
|
1446
1446
|
}
|
|
1447
|
-
const
|
|
1447
|
+
const mo = /\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;
|
|
1448
1448
|
function Ir(t, { joinWith: e }) {
|
|
1449
1449
|
let n = 0;
|
|
1450
1450
|
return t.map((r) => {
|
|
@@ -1452,7 +1452,7 @@ function Ir(t, { joinWith: e }) {
|
|
|
1452
1452
|
const s = n;
|
|
1453
1453
|
let i = gn(r), o = "";
|
|
1454
1454
|
for (; i.length > 0; ) {
|
|
1455
|
-
const a =
|
|
1455
|
+
const a = mo.exec(i);
|
|
1456
1456
|
if (!a) {
|
|
1457
1457
|
o += i;
|
|
1458
1458
|
break;
|
|
@@ -1462,7 +1462,7 @@ function Ir(t, { joinWith: e }) {
|
|
|
1462
1462
|
return o;
|
|
1463
1463
|
}).map((r) => `(${r})`).join(e);
|
|
1464
1464
|
}
|
|
1465
|
-
const
|
|
1465
|
+
const go = /\b\B/, ai = "[a-zA-Z]\\w*", Cr = "[a-zA-Z_]\\w*", oi = "\\b\\d+(\\.\\d+)?", li = "(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)", ci = "\\b(0b[01]+)", bo = "!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~", yo = (t = {}) => {
|
|
1466
1466
|
const e = /^#![ ]*\//;
|
|
1467
1467
|
return t.binary && (t.begin = Ft(
|
|
1468
1468
|
e,
|
|
@@ -1482,19 +1482,19 @@ const mo = /\b\B/, ai = "[a-zA-Z]\\w*", Cr = "[a-zA-Z_]\\w*", oi = "\\b\\d+(\\.\
|
|
|
1482
1482
|
}, bn = {
|
|
1483
1483
|
begin: "\\\\[\\s\\S]",
|
|
1484
1484
|
relevance: 0
|
|
1485
|
-
},
|
|
1485
|
+
}, _o = {
|
|
1486
1486
|
scope: "string",
|
|
1487
1487
|
begin: "'",
|
|
1488
1488
|
end: "'",
|
|
1489
1489
|
illegal: "\\n",
|
|
1490
1490
|
contains: [bn]
|
|
1491
|
-
},
|
|
1491
|
+
}, xo = {
|
|
1492
1492
|
scope: "string",
|
|
1493
1493
|
begin: '"',
|
|
1494
1494
|
end: '"',
|
|
1495
1495
|
illegal: "\\n",
|
|
1496
1496
|
contains: [bn]
|
|
1497
|
-
},
|
|
1497
|
+
}, vo = {
|
|
1498
1498
|
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/
|
|
1499
1499
|
}, Hn = function(t, e, n = {}) {
|
|
1500
1500
|
const r = St(
|
|
@@ -1562,19 +1562,19 @@ const mo = /\b\B/, ai = "[a-zA-Z]\\w*", Cr = "[a-zA-Z_]\\w*", oi = "\\b\\d+(\\.\
|
|
|
1562
1562
|
// look for 3 words in a row
|
|
1563
1563
|
}
|
|
1564
1564
|
), r;
|
|
1565
|
-
},
|
|
1565
|
+
}, wo = Hn("//", "$"), ko = Hn("/\\*", "\\*/"), Eo = Hn("#", "$"), To = {
|
|
1566
1566
|
scope: "number",
|
|
1567
1567
|
begin: oi,
|
|
1568
1568
|
relevance: 0
|
|
1569
|
-
},
|
|
1569
|
+
}, So = {
|
|
1570
1570
|
scope: "number",
|
|
1571
1571
|
begin: li,
|
|
1572
1572
|
relevance: 0
|
|
1573
|
-
},
|
|
1573
|
+
}, Ao = {
|
|
1574
1574
|
scope: "number",
|
|
1575
1575
|
begin: ci,
|
|
1576
1576
|
relevance: 0
|
|
1577
|
-
},
|
|
1577
|
+
}, Ro = {
|
|
1578
1578
|
scope: "regexp",
|
|
1579
1579
|
begin: /\/(?=[^/\n]*\/)/,
|
|
1580
1580
|
end: /\/[gimuy]*/,
|
|
@@ -1587,19 +1587,19 @@ const mo = /\b\B/, ai = "[a-zA-Z]\\w*", Cr = "[a-zA-Z_]\\w*", oi = "\\b\\d+(\\.\
|
|
|
1587
1587
|
contains: [bn]
|
|
1588
1588
|
}
|
|
1589
1589
|
]
|
|
1590
|
-
},
|
|
1590
|
+
}, No = {
|
|
1591
1591
|
scope: "title",
|
|
1592
1592
|
begin: ai,
|
|
1593
1593
|
relevance: 0
|
|
1594
|
-
},
|
|
1594
|
+
}, Io = {
|
|
1595
1595
|
scope: "title",
|
|
1596
1596
|
begin: Cr,
|
|
1597
1597
|
relevance: 0
|
|
1598
|
-
},
|
|
1598
|
+
}, Co = {
|
|
1599
1599
|
// excludes method names from keyword processing
|
|
1600
1600
|
begin: "\\.\\s*" + Cr,
|
|
1601
1601
|
relevance: 0
|
|
1602
|
-
},
|
|
1602
|
+
}, Oo = function(t) {
|
|
1603
1603
|
return Object.assign(
|
|
1604
1604
|
t,
|
|
1605
1605
|
{
|
|
@@ -1616,53 +1616,53 @@ const mo = /\b\B/, ai = "[a-zA-Z]\\w*", Cr = "[a-zA-Z_]\\w*", oi = "\\b\\d+(\\.\
|
|
|
1616
1616
|
};
|
|
1617
1617
|
var Tn = /* @__PURE__ */ Object.freeze({
|
|
1618
1618
|
__proto__: null,
|
|
1619
|
-
APOS_STRING_MODE:
|
|
1619
|
+
APOS_STRING_MODE: _o,
|
|
1620
1620
|
BACKSLASH_ESCAPE: bn,
|
|
1621
|
-
BINARY_NUMBER_MODE:
|
|
1621
|
+
BINARY_NUMBER_MODE: Ao,
|
|
1622
1622
|
BINARY_NUMBER_RE: ci,
|
|
1623
1623
|
COMMENT: Hn,
|
|
1624
|
-
C_BLOCK_COMMENT_MODE:
|
|
1625
|
-
C_LINE_COMMENT_MODE:
|
|
1626
|
-
C_NUMBER_MODE:
|
|
1624
|
+
C_BLOCK_COMMENT_MODE: ko,
|
|
1625
|
+
C_LINE_COMMENT_MODE: wo,
|
|
1626
|
+
C_NUMBER_MODE: So,
|
|
1627
1627
|
C_NUMBER_RE: li,
|
|
1628
|
-
END_SAME_AS_BEGIN:
|
|
1629
|
-
HASH_COMMENT_MODE:
|
|
1628
|
+
END_SAME_AS_BEGIN: Oo,
|
|
1629
|
+
HASH_COMMENT_MODE: Eo,
|
|
1630
1630
|
IDENT_RE: ai,
|
|
1631
|
-
MATCH_NOTHING_RE:
|
|
1632
|
-
METHOD_GUARD:
|
|
1633
|
-
NUMBER_MODE:
|
|
1631
|
+
MATCH_NOTHING_RE: go,
|
|
1632
|
+
METHOD_GUARD: Co,
|
|
1633
|
+
NUMBER_MODE: To,
|
|
1634
1634
|
NUMBER_RE: oi,
|
|
1635
|
-
PHRASAL_WORDS_MODE:
|
|
1636
|
-
QUOTE_STRING_MODE:
|
|
1637
|
-
REGEXP_MODE:
|
|
1638
|
-
RE_STARTERS_RE:
|
|
1639
|
-
SHEBANG:
|
|
1640
|
-
TITLE_MODE:
|
|
1635
|
+
PHRASAL_WORDS_MODE: vo,
|
|
1636
|
+
QUOTE_STRING_MODE: xo,
|
|
1637
|
+
REGEXP_MODE: Ro,
|
|
1638
|
+
RE_STARTERS_RE: bo,
|
|
1639
|
+
SHEBANG: yo,
|
|
1640
|
+
TITLE_MODE: No,
|
|
1641
1641
|
UNDERSCORE_IDENT_RE: Cr,
|
|
1642
|
-
UNDERSCORE_TITLE_MODE:
|
|
1642
|
+
UNDERSCORE_TITLE_MODE: Io
|
|
1643
1643
|
});
|
|
1644
|
-
function Oo(t, e) {
|
|
1645
|
-
t.input[t.index - 1] === "." && e.ignoreMatch();
|
|
1646
|
-
}
|
|
1647
1644
|
function $o(t, e) {
|
|
1648
|
-
t.
|
|
1645
|
+
t.input[t.index - 1] === "." && e.ignoreMatch();
|
|
1649
1646
|
}
|
|
1650
1647
|
function Mo(t, e) {
|
|
1651
|
-
|
|
1648
|
+
t.className !== void 0 && (t.scope = t.className, delete t.className);
|
|
1652
1649
|
}
|
|
1653
1650
|
function Lo(t, e) {
|
|
1654
|
-
|
|
1651
|
+
e && t.beginKeywords && (t.begin = "\\b(" + t.beginKeywords.split(" ").join("|") + ")(?!\\.)(?=\\b|\\s)", t.__beforeBegin = $o, t.keywords = t.keywords || t.beginKeywords, delete t.beginKeywords, t.relevance === void 0 && (t.relevance = 0));
|
|
1655
1652
|
}
|
|
1656
1653
|
function Po(t, e) {
|
|
1654
|
+
Array.isArray(t.illegal) && (t.illegal = Nr(...t.illegal));
|
|
1655
|
+
}
|
|
1656
|
+
function Do(t, e) {
|
|
1657
1657
|
if (t.match) {
|
|
1658
1658
|
if (t.begin || t.end) throw new Error("begin & end are not supported with match");
|
|
1659
1659
|
t.begin = t.match, delete t.match;
|
|
1660
1660
|
}
|
|
1661
1661
|
}
|
|
1662
|
-
function
|
|
1662
|
+
function zo(t, e) {
|
|
1663
1663
|
t.relevance === void 0 && (t.relevance = 1);
|
|
1664
1664
|
}
|
|
1665
|
-
const
|
|
1665
|
+
const Bo = (t, e) => {
|
|
1666
1666
|
if (!t.beforeMatch) return;
|
|
1667
1667
|
if (t.starts) throw new Error("beforeMatch cannot be used with starts");
|
|
1668
1668
|
const n = Object.assign({}, t);
|
|
@@ -1674,7 +1674,7 @@ const zo = (t, e) => {
|
|
|
1674
1674
|
Object.assign(n, { endsParent: !0 })
|
|
1675
1675
|
]
|
|
1676
1676
|
}, t.relevance = 0, delete n.beforeMatch;
|
|
1677
|
-
},
|
|
1677
|
+
}, Fo = [
|
|
1678
1678
|
"of",
|
|
1679
1679
|
"and",
|
|
1680
1680
|
"for",
|
|
@@ -1689,8 +1689,8 @@ const zo = (t, e) => {
|
|
|
1689
1689
|
// common variable name
|
|
1690
1690
|
"value"
|
|
1691
1691
|
// common variable name
|
|
1692
|
-
],
|
|
1693
|
-
function ui(t, e, n =
|
|
1692
|
+
], Uo = "keyword";
|
|
1693
|
+
function ui(t, e, n = Uo) {
|
|
1694
1694
|
const r = /* @__PURE__ */ Object.create(null);
|
|
1695
1695
|
return typeof t == "string" ? s(n, t.split(" ")) : Array.isArray(t) ? s(n, t) : Object.keys(t).forEach(function(i) {
|
|
1696
1696
|
Object.assign(
|
|
@@ -1701,15 +1701,15 @@ function ui(t, e, n = Fo) {
|
|
|
1701
1701
|
function s(i, o) {
|
|
1702
1702
|
e && (o = o.map((a) => a.toLowerCase())), o.forEach(function(a) {
|
|
1703
1703
|
const l = a.split("|");
|
|
1704
|
-
r[l[0]] = [i,
|
|
1704
|
+
r[l[0]] = [i, jo(l[0], l[1])];
|
|
1705
1705
|
});
|
|
1706
1706
|
}
|
|
1707
1707
|
}
|
|
1708
|
-
function
|
|
1709
|
-
return e ? Number(e) :
|
|
1708
|
+
function jo(t, e) {
|
|
1709
|
+
return e ? Number(e) : Ho(t) ? 0 : 1;
|
|
1710
1710
|
}
|
|
1711
|
-
function
|
|
1712
|
-
return
|
|
1711
|
+
function Ho(t) {
|
|
1712
|
+
return Fo.includes(t.toLowerCase());
|
|
1713
1713
|
}
|
|
1714
1714
|
const cs = {}, Lt = (t) => {
|
|
1715
1715
|
console.error(t);
|
|
@@ -1725,7 +1725,7 @@ function di(t, e, { key: n }) {
|
|
|
1725
1725
|
o[a + r] = s[a], i[a + r] = !0, r += ii(e[a - 1]);
|
|
1726
1726
|
t[n] = o, t[n]._emit = i, t[n]._multi = !0;
|
|
1727
1727
|
}
|
|
1728
|
-
function
|
|
1728
|
+
function Go(t) {
|
|
1729
1729
|
if (Array.isArray(t.begin)) {
|
|
1730
1730
|
if (t.skip || t.excludeBegin || t.returnBegin)
|
|
1731
1731
|
throw Lt("skip, excludeBegin, returnBegin not compatible with beginScope: {}"), Dn;
|
|
@@ -1734,7 +1734,7 @@ function Ho(t) {
|
|
|
1734
1734
|
di(t, t.begin, { key: "beginScope" }), t.begin = Ir(t.begin, { joinWith: "" });
|
|
1735
1735
|
}
|
|
1736
1736
|
}
|
|
1737
|
-
function
|
|
1737
|
+
function Wo(t) {
|
|
1738
1738
|
if (Array.isArray(t.end)) {
|
|
1739
1739
|
if (t.skip || t.excludeEnd || t.returnEnd)
|
|
1740
1740
|
throw Lt("skip, excludeEnd, returnEnd not compatible with endScope: {}"), Dn;
|
|
@@ -1743,13 +1743,13 @@ function Go(t) {
|
|
|
1743
1743
|
di(t, t.end, { key: "endScope" }), t.end = Ir(t.end, { joinWith: "" });
|
|
1744
1744
|
}
|
|
1745
1745
|
}
|
|
1746
|
-
function Wo(t) {
|
|
1747
|
-
t.scope && typeof t.scope == "object" && t.scope !== null && (t.beginScope = t.scope, delete t.scope);
|
|
1748
|
-
}
|
|
1749
1746
|
function Ko(t) {
|
|
1750
|
-
|
|
1747
|
+
t.scope && typeof t.scope == "object" && t.scope !== null && (t.beginScope = t.scope, delete t.scope);
|
|
1751
1748
|
}
|
|
1752
1749
|
function qo(t) {
|
|
1750
|
+
Ko(t), typeof t.beginScope == "string" && (t.beginScope = { _wrap: t.beginScope }), typeof t.endScope == "string" && (t.endScope = { _wrap: t.endScope }), Go(t), Wo(t);
|
|
1751
|
+
}
|
|
1752
|
+
function Vo(t) {
|
|
1753
1753
|
function e(o, a) {
|
|
1754
1754
|
return new RegExp(
|
|
1755
1755
|
gn(o),
|
|
@@ -1822,26 +1822,26 @@ function qo(t) {
|
|
|
1822
1822
|
);
|
|
1823
1823
|
if (o.isCompiled) return l;
|
|
1824
1824
|
[
|
|
1825
|
-
|
|
1825
|
+
Mo,
|
|
1826
1826
|
// do this early so compiler extensions generally don't have to worry about
|
|
1827
1827
|
// the distinction between match/begin
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1828
|
+
Do,
|
|
1829
|
+
qo,
|
|
1830
|
+
Bo
|
|
1831
1831
|
].forEach((f) => f(o, a)), t.compilerExtensions.forEach((f) => f(o, a)), o.__beforeBegin = null, [
|
|
1832
|
-
|
|
1832
|
+
Lo,
|
|
1833
1833
|
// do this later so compiler extensions that come earlier have access to the
|
|
1834
1834
|
// raw array if they wanted to perhaps manipulate it, etc.
|
|
1835
|
-
|
|
1835
|
+
Po,
|
|
1836
1836
|
// default to 1 relevance if not specified
|
|
1837
|
-
|
|
1837
|
+
zo
|
|
1838
1838
|
].forEach((f) => f(o, a)), o.isCompiled = !0;
|
|
1839
1839
|
let u = null;
|
|
1840
1840
|
return typeof o.keywords == "object" && o.keywords.$pattern && (o.keywords = Object.assign({}, o.keywords), u = o.keywords.$pattern, delete o.keywords.$pattern), u = u || /\w+/, o.keywords && (o.keywords = ui(o.keywords, t.case_insensitive)), l.keywordPatternRe = e(u, !0), a && (o.begin || (o.begin = /\B|\b/), l.beginRe = e(l.begin), !o.end && !o.endsWithParent && (o.end = /\B|\b/), o.end && (l.endRe = e(l.end)), l.terminatorEnd = gn(l.end) || "", o.endsWithParent && a.terminatorEnd && (l.terminatorEnd += (o.end ? "|" : "") + a.terminatorEnd)), o.illegal && (l.illegalRe = e(
|
|
1841
1841
|
/** @type {RegExp | string} */
|
|
1842
1842
|
o.illegal
|
|
1843
1843
|
)), o.contains || (o.contains = []), o.contains = [].concat(...o.contains.map(function(f) {
|
|
1844
|
-
return
|
|
1844
|
+
return Zo(f === "self" ? o : f);
|
|
1845
1845
|
})), o.contains.forEach(function(f) {
|
|
1846
1846
|
i(
|
|
1847
1847
|
/** @type Mode */
|
|
@@ -1860,18 +1860,18 @@ function qo(t) {
|
|
|
1860
1860
|
function fi(t) {
|
|
1861
1861
|
return t ? t.endsWithParent || fi(t.starts) : !1;
|
|
1862
1862
|
}
|
|
1863
|
-
function
|
|
1863
|
+
function Zo(t) {
|
|
1864
1864
|
return t.variants && !t.cachedVariants && (t.cachedVariants = t.variants.map(function(e) {
|
|
1865
1865
|
return St(t, { variants: null }, e);
|
|
1866
1866
|
})), t.cachedVariants ? t.cachedVariants : fi(t) ? St(t, { starts: t.starts ? St(t.starts) : null }) : Object.isFrozen(t) ? St(t) : t;
|
|
1867
1867
|
}
|
|
1868
|
-
var
|
|
1869
|
-
class
|
|
1868
|
+
var Yo = "11.11.1";
|
|
1869
|
+
class Xo extends Error {
|
|
1870
1870
|
constructor(e, n) {
|
|
1871
1871
|
super(e), this.name = "HTMLInjectionError", this.html = n;
|
|
1872
1872
|
}
|
|
1873
1873
|
}
|
|
1874
|
-
const Qn = ri, ds = St, fs = Symbol("nomatch"),
|
|
1874
|
+
const Qn = ri, ds = St, fs = Symbol("nomatch"), Jo = 7, pi = function(t) {
|
|
1875
1875
|
const e = /* @__PURE__ */ Object.create(null), n = /* @__PURE__ */ Object.create(null), r = [];
|
|
1876
1876
|
let s = !0;
|
|
1877
1877
|
const i = "Could not find the language '{}', did you forget to load/include a language module?", o = { disableAutodetect: !0, name: "Plain text", contains: [] };
|
|
@@ -1885,7 +1885,7 @@ const Qn = ri, ds = St, fs = Symbol("nomatch"), Xo = 7, pi = function(t) {
|
|
|
1885
1885
|
languages: null,
|
|
1886
1886
|
// beta configuration options, subject to change, welcome to discuss
|
|
1887
1887
|
// https://github.com/highlightjs/highlight.js/issues/1086
|
|
1888
|
-
__emitter:
|
|
1888
|
+
__emitter: co
|
|
1889
1889
|
};
|
|
1890
1890
|
function l(S) {
|
|
1891
1891
|
return a.noHighlightRe.test(S);
|
|
@@ -1930,7 +1930,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ge = S, ae = z), G ==
|
|
|
1930
1930
|
const _e = oe.case_insensitive ? q[0].toLowerCase() : q[0], Ce = ie(X, _e);
|
|
1931
1931
|
if (Ce) {
|
|
1932
1932
|
const [Ye, xt] = Ce;
|
|
1933
|
-
if (Ae.addText(fe), fe = "", ge[_e] = (ge[_e] || 0) + 1, ge[_e] <=
|
|
1933
|
+
if (Ae.addText(fe), fe = "", ge[_e] = (ge[_e] || 0) + 1, ge[_e] <= Jo && (_t += xt), Ye.startsWith("_"))
|
|
1934
1934
|
fe += q[0];
|
|
1935
1935
|
else {
|
|
1936
1936
|
const jt = oe.classNameAliases[Ye] || Ye;
|
|
@@ -1978,7 +1978,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ge = S, ae = z), G ==
|
|
|
1978
1978
|
return U.scope && typeof U.scope == "string" && Ae.openNode(oe.classNameAliases[U.scope] || U.scope), U.beginScope && (U.beginScope._wrap ? (J(xe, oe.classNameAliases[U.beginScope._wrap] || U.beginScope._wrap), xe = "") : U.beginScope._multi && (Te(U.beginScope, q), xe = "")), X = Object.create(U, { parent: { value: X } }), X;
|
|
1979
1979
|
}
|
|
1980
1980
|
function v(U, q, fe) {
|
|
1981
|
-
let _e =
|
|
1981
|
+
let _e = ho(U.endRe, fe);
|
|
1982
1982
|
if (_e) {
|
|
1983
1983
|
if (U["on:end"]) {
|
|
1984
1984
|
const Ce = new as(U);
|
|
@@ -2052,7 +2052,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ge = S, ae = z), G ==
|
|
|
2052
2052
|
const oe = te(S);
|
|
2053
2053
|
if (!oe)
|
|
2054
2054
|
throw Lt(i.replace("{}", S)), new Error('Unknown language: "' + S + '"');
|
|
2055
|
-
const tt =
|
|
2055
|
+
const tt = Vo(oe);
|
|
2056
2056
|
let ot = "", X = ae || tt;
|
|
2057
2057
|
const ht = {}, Ae = new a.__emitter(a);
|
|
2058
2058
|
Q();
|
|
@@ -2151,7 +2151,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ge = S, ae = z), G ==
|
|
|
2151
2151
|
return;
|
|
2152
2152
|
}
|
|
2153
2153
|
if (S.children.length > 0 && (a.ignoreUnescapedHTML || (console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."), console.warn("https://github.com/highlightjs/highlight.js/wiki/security"), console.warn("The element with unescaped HTML:"), console.warn(S)), a.throwUnescapedHTML))
|
|
2154
|
-
throw new
|
|
2154
|
+
throw new Xo(
|
|
2155
2155
|
"One of your code blocks includes unescaped HTML.",
|
|
2156
2156
|
S.innerHTML
|
|
2157
2157
|
);
|
|
@@ -2270,32 +2270,32 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ge = S, ae = z), G ==
|
|
|
2270
2270
|
s = !1;
|
|
2271
2271
|
}, t.safeMode = function() {
|
|
2272
2272
|
s = !0;
|
|
2273
|
-
}, t.versionString =
|
|
2273
|
+
}, t.versionString = Yo, t.regex = {
|
|
2274
2274
|
concat: Ft,
|
|
2275
2275
|
lookahead: si,
|
|
2276
2276
|
either: Nr,
|
|
2277
|
-
optional:
|
|
2278
|
-
anyNumberOfTimes:
|
|
2277
|
+
optional: fo,
|
|
2278
|
+
anyNumberOfTimes: uo
|
|
2279
2279
|
};
|
|
2280
2280
|
for (const S in Tn)
|
|
2281
2281
|
typeof Tn[S] == "object" && ni(Tn[S]);
|
|
2282
2282
|
return Object.assign(t, Tn), t;
|
|
2283
2283
|
}, Jt = pi({});
|
|
2284
2284
|
Jt.newInstance = () => pi({});
|
|
2285
|
-
var
|
|
2285
|
+
var Qo = Jt;
|
|
2286
2286
|
Jt.HighlightJS = Jt;
|
|
2287
2287
|
Jt.default = Jt;
|
|
2288
|
-
const We = /* @__PURE__ */
|
|
2288
|
+
const We = /* @__PURE__ */ io(Qo);
|
|
2289
2289
|
/*! @license DOMPurify 3.4.11 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.11/LICENSE */
|
|
2290
2290
|
function ps(t, e) {
|
|
2291
2291
|
(e == null || e > t.length) && (e = t.length);
|
|
2292
2292
|
for (var n = 0, r = Array(e); n < e; n++) r[n] = t[n];
|
|
2293
2293
|
return r;
|
|
2294
2294
|
}
|
|
2295
|
-
function
|
|
2295
|
+
function el(t) {
|
|
2296
2296
|
if (Array.isArray(t)) return t;
|
|
2297
2297
|
}
|
|
2298
|
-
function
|
|
2298
|
+
function tl(t, e) {
|
|
2299
2299
|
var n = t == null ? null : typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"];
|
|
2300
2300
|
if (n != null) {
|
|
2301
2301
|
var r, s, i, o, a = [], l = !0, u = !1;
|
|
@@ -2313,21 +2313,21 @@ function el(t, e) {
|
|
|
2313
2313
|
return a;
|
|
2314
2314
|
}
|
|
2315
2315
|
}
|
|
2316
|
-
function
|
|
2316
|
+
function nl() {
|
|
2317
2317
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
2318
2318
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
2319
2319
|
}
|
|
2320
|
-
function nl(t, e) {
|
|
2321
|
-
return Qo(t) || el(t, e) || rl(t, e) || tl();
|
|
2322
|
-
}
|
|
2323
2320
|
function rl(t, e) {
|
|
2321
|
+
return el(t) || tl(t, e) || sl(t, e) || nl();
|
|
2322
|
+
}
|
|
2323
|
+
function sl(t, e) {
|
|
2324
2324
|
if (t) {
|
|
2325
2325
|
if (typeof t == "string") return ps(t, e);
|
|
2326
2326
|
var n = {}.toString.call(t).slice(8, -1);
|
|
2327
2327
|
return n === "Object" && t.constructor && (n = t.constructor.name), n === "Map" || n === "Set" ? Array.from(t) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? ps(t, e) : void 0;
|
|
2328
2328
|
}
|
|
2329
2329
|
}
|
|
2330
|
-
const hi = Object.entries, hs = Object.setPrototypeOf,
|
|
2330
|
+
const hi = Object.entries, hs = Object.setPrototypeOf, il = Object.isFrozen, al = Object.getPrototypeOf, ol = Object.getOwnPropertyDescriptor;
|
|
2331
2331
|
let Ve = Object.freeze, Ze = Object.seal, Zt = Object.create, mi = typeof Reflect < "u" && Reflect, hr = mi.apply, mr = mi.construct;
|
|
2332
2332
|
Ve || (Ve = function(e) {
|
|
2333
2333
|
return e;
|
|
@@ -2345,7 +2345,7 @@ mr || (mr = function(e) {
|
|
|
2345
2345
|
r[s - 1] = arguments[s];
|
|
2346
2346
|
return new e(...r);
|
|
2347
2347
|
});
|
|
2348
|
-
const on = Fe(Array.prototype.forEach),
|
|
2348
|
+
const on = Fe(Array.prototype.forEach), ll = Fe(Array.prototype.lastIndexOf), ms = Fe(Array.prototype.pop), qt = Fe(Array.prototype.push), cl = Fe(Array.prototype.splice), Tt = Array.isArray, fn = Fe(String.prototype.toLowerCase), er = Fe(String.prototype.toString), gs = Fe(String.prototype.match), ln = Fe(String.prototype.replace), bs = Fe(String.prototype.indexOf), ul = Fe(String.prototype.trim), dl = Fe(Number.prototype.toString), fl = Fe(Boolean.prototype.toString), ys = typeof BigInt > "u" ? null : Fe(BigInt.prototype.toString), _s = typeof Symbol > "u" ? null : Fe(Symbol.prototype.toString), Ge = Fe(Object.prototype.hasOwnProperty), cn = Fe(Object.prototype.toString), Ke = Fe(RegExp.prototype.test), Ot = pl(TypeError);
|
|
2349
2349
|
function Fe(t) {
|
|
2350
2350
|
return function(e) {
|
|
2351
2351
|
e instanceof RegExp && (e.lastIndex = 0);
|
|
@@ -2354,7 +2354,7 @@ function Fe(t) {
|
|
|
2354
2354
|
return hr(t, e, r);
|
|
2355
2355
|
};
|
|
2356
2356
|
}
|
|
2357
|
-
function
|
|
2357
|
+
function pl(t) {
|
|
2358
2358
|
return function() {
|
|
2359
2359
|
for (var e = arguments.length, n = new Array(e), r = 0; r < e; r++)
|
|
2360
2360
|
n[r] = arguments[r];
|
|
@@ -2370,13 +2370,13 @@ function ve(t, e) {
|
|
|
2370
2370
|
let s = e[r];
|
|
2371
2371
|
if (typeof s == "string") {
|
|
2372
2372
|
const i = n(s);
|
|
2373
|
-
i !== s && (
|
|
2373
|
+
i !== s && (il(e) || (e[r] = i), s = i);
|
|
2374
2374
|
}
|
|
2375
2375
|
t[s] = !0;
|
|
2376
2376
|
}
|
|
2377
2377
|
return t;
|
|
2378
2378
|
}
|
|
2379
|
-
function
|
|
2379
|
+
function hl(t) {
|
|
2380
2380
|
for (let e = 0; e < t.length; e++)
|
|
2381
2381
|
Ge(t, e) || (t[e] = null);
|
|
2382
2382
|
return t;
|
|
@@ -2384,20 +2384,20 @@ function pl(t) {
|
|
|
2384
2384
|
function et(t) {
|
|
2385
2385
|
const e = Zt(null);
|
|
2386
2386
|
for (const r of hi(t)) {
|
|
2387
|
-
var n =
|
|
2387
|
+
var n = rl(r, 2);
|
|
2388
2388
|
const s = n[0], i = n[1];
|
|
2389
|
-
Ge(t, s) && (Tt(i) ? e[s] =
|
|
2389
|
+
Ge(t, s) && (Tt(i) ? e[s] = hl(i) : i && typeof i == "object" && i.constructor === Object ? e[s] = et(i) : e[s] = i);
|
|
2390
2390
|
}
|
|
2391
2391
|
return e;
|
|
2392
2392
|
}
|
|
2393
|
-
function
|
|
2393
|
+
function ml(t) {
|
|
2394
2394
|
switch (typeof t) {
|
|
2395
2395
|
case "string":
|
|
2396
2396
|
return t;
|
|
2397
2397
|
case "number":
|
|
2398
|
-
return ul(t);
|
|
2399
|
-
case "boolean":
|
|
2400
2398
|
return dl(t);
|
|
2399
|
+
case "boolean":
|
|
2400
|
+
return fl(t);
|
|
2401
2401
|
case "bigint":
|
|
2402
2402
|
return ys ? ys(t) : "0";
|
|
2403
2403
|
case "symbol":
|
|
@@ -2421,34 +2421,34 @@ function hl(t) {
|
|
|
2421
2421
|
}
|
|
2422
2422
|
function yt(t, e) {
|
|
2423
2423
|
for (; t !== null; ) {
|
|
2424
|
-
const r =
|
|
2424
|
+
const r = ol(t, e);
|
|
2425
2425
|
if (r) {
|
|
2426
2426
|
if (r.get)
|
|
2427
2427
|
return Fe(r.get);
|
|
2428
2428
|
if (typeof r.value == "function")
|
|
2429
2429
|
return Fe(r.value);
|
|
2430
2430
|
}
|
|
2431
|
-
t =
|
|
2431
|
+
t = al(t);
|
|
2432
2432
|
}
|
|
2433
2433
|
function n() {
|
|
2434
2434
|
return null;
|
|
2435
2435
|
}
|
|
2436
2436
|
return n;
|
|
2437
2437
|
}
|
|
2438
|
-
function
|
|
2438
|
+
function gl(t) {
|
|
2439
2439
|
try {
|
|
2440
2440
|
return Ke(t, ""), !0;
|
|
2441
2441
|
} catch {
|
|
2442
2442
|
return !1;
|
|
2443
2443
|
}
|
|
2444
2444
|
}
|
|
2445
|
-
const xs = Ve(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "search", "section", "select", "shadow", "slot", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), tr = Ve(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "enterkeyhint", "exportparts", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "inputmode", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "part", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), nr = Ve(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]),
|
|
2445
|
+
const xs = Ve(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "search", "section", "select", "shadow", "slot", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), tr = Ve(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "enterkeyhint", "exportparts", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "inputmode", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "part", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), nr = Ve(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), bl = Ve(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), rr = Ve(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), yl = Ve(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), vs = Ve(["#text"]), ws = Ve(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "command", "commandfor", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "exportparts", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inert", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "part", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "slot", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns"]), sr = Ve(["accent-height", "accumulate", "additive", "alignment-baseline", "amplitude", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "exponent", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "intercept", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "mask-type", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "slope", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "tablevalues", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), ks = Ve(["accent", "accentunder", "align", "bevelled", "close", "columnalign", "columnlines", "columnspacing", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lquote", "lspace", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), Sn = Ve(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), _l = Ze(/{{[\w\W]*|^[\w\W]*}}/g), xl = Ze(/<%[\w\W]*|^[\w\W]*%>/g), vl = Ze(/\${[\w\W]*/g), wl = Ze(/^data-[\-\w.\u00B7-\uFFFF]+$/), kl = Ze(/^aria-[\-\w]+$/), Es = Ze(
|
|
2446
2446
|
/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
|
|
2447
2447
|
// eslint-disable-line no-useless-escape
|
|
2448
|
-
),
|
|
2448
|
+
), El = Ze(/^(?:\w+script|data):/i), Tl = Ze(
|
|
2449
2449
|
/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
|
|
2450
2450
|
// eslint-disable-line no-control-regex
|
|
2451
|
-
),
|
|
2451
|
+
), Sl = Ze(/^html$/i), Al = Ze(/^[a-z][.\w]*(-[.\w]+)+$/i), Ts = Ze(/<[/\w!]/g), Rl = Ze(/<[/\w]/g), Nl = Ze(/<\/no(script|embed|frames)/i), Il = Ze(/\/>/i), gt = {
|
|
2452
2452
|
element: 1,
|
|
2453
2453
|
attribute: 2,
|
|
2454
2454
|
text: 3,
|
|
@@ -2464,9 +2464,9 @@ const xs = Ve(["a", "abbr", "acronym", "address", "area", "article", "aside", "a
|
|
|
2464
2464
|
documentFragment: 11,
|
|
2465
2465
|
notation: 12
|
|
2466
2466
|
// Deprecated
|
|
2467
|
-
},
|
|
2467
|
+
}, Cl = function() {
|
|
2468
2468
|
return typeof window > "u" ? null : window;
|
|
2469
|
-
},
|
|
2469
|
+
}, Ol = function(e, n) {
|
|
2470
2470
|
if (typeof e != "object" || typeof e.createPolicy != "function")
|
|
2471
2471
|
return null;
|
|
2472
2472
|
let r = null;
|
|
@@ -2501,7 +2501,7 @@ const xs = Ve(["a", "abbr", "acronym", "address", "area", "article", "aside", "a
|
|
|
2501
2501
|
return Ge(e, n) && Tt(e[n]) ? ve(s.base ? et(s.base) : {}, e[n], s.transform) : r;
|
|
2502
2502
|
};
|
|
2503
2503
|
function gi() {
|
|
2504
|
-
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] :
|
|
2504
|
+
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Cl();
|
|
2505
2505
|
const e = (F) => gi(F);
|
|
2506
2506
|
if (e.version = "3.4.11", e.removed = [], !t || !t.document || t.document.nodeType !== gt.document || !t.Element)
|
|
2507
2507
|
return e.isSupported = !1, e;
|
|
@@ -2534,11 +2534,11 @@ function gi() {
|
|
|
2534
2534
|
pe--;
|
|
2535
2535
|
}
|
|
2536
2536
|
}, de = function() {
|
|
2537
|
-
return ue || (te =
|
|
2537
|
+
return ue || (te = Ol(g, s), ue = !0), te;
|
|
2538
2538
|
}, he = n, S = he.implementation, z = he.createNodeIterator, G = he.createDocumentFragment, ae = he.getElementsByTagName, ge = r.importNode;
|
|
2539
2539
|
let ie = Ss();
|
|
2540
2540
|
e.isSupported = typeof hi == "function" && typeof N == "function" && S && S.createHTMLDocument !== void 0;
|
|
2541
|
-
const Ne =
|
|
2541
|
+
const Ne = _l, C = xl, M = vl, J = wl, Te = kl, Ie = El, v = Tl, R = Al;
|
|
2542
2542
|
let j = Es, O = null;
|
|
2543
2543
|
const Q = ve({}, [...xs, ...tr, ...nr, ...rr, ...vs]);
|
|
2544
2544
|
let K = null;
|
|
@@ -2622,26 +2622,26 @@ function gi() {
|
|
|
2622
2622
|
let Oe = null;
|
|
2623
2623
|
const nn = ve({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), Nt = "http://www.w3.org/1998/Math/MathML", It = "http://www.w3.org/2000/svg", nt = "http://www.w3.org/1999/xhtml";
|
|
2624
2624
|
let W = nt, rt = !1, Kn = null;
|
|
2625
|
-
const
|
|
2625
|
+
const qi = ve({}, [Nt, It, nt], er), Dr = Ve(["mi", "mo", "mn", "ms", "mtext"]);
|
|
2626
2626
|
let qn = ve({}, Dr);
|
|
2627
2627
|
const zr = Ve(["annotation-xml"]);
|
|
2628
2628
|
let Vn = ve({}, zr);
|
|
2629
|
-
const
|
|
2629
|
+
const Vi = ve({}, ["title", "style", "font", "a", "script"]);
|
|
2630
2630
|
let rn = null;
|
|
2631
|
-
const
|
|
2631
|
+
const Zi = ["application/xhtml+xml", "text/html"], Yi = "text/html";
|
|
2632
2632
|
let Pe = null, Ht = null;
|
|
2633
|
-
const
|
|
2633
|
+
const Xi = n.createElement("form"), Br = function(c) {
|
|
2634
2634
|
return c instanceof RegExp || c instanceof Function;
|
|
2635
2635
|
}, Zn = function() {
|
|
2636
2636
|
let c = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
2637
2637
|
if (Ht && Ht === c)
|
|
2638
2638
|
return;
|
|
2639
2639
|
(!c || typeof c != "object") && (c = {}), c = et(c), rn = // eslint-disable-next-line unicorn/prefer-includes
|
|
2640
|
-
|
|
2640
|
+
Zi.indexOf(c.PARSER_MEDIA_TYPE) === -1 ? Yi : c.PARSER_MEDIA_TYPE, Pe = rn === "application/xhtml+xml" ? er : fn, O = Et(c, "ALLOWED_TAGS", Q, {
|
|
2641
2641
|
transform: Pe
|
|
2642
2642
|
}), K = Et(c, "ALLOWED_ATTR", be, {
|
|
2643
2643
|
transform: Pe
|
|
2644
|
-
}), Kn = Et(c, "ALLOWED_NAMESPACES",
|
|
2644
|
+
}), Kn = Et(c, "ALLOWED_NAMESPACES", qi, {
|
|
2645
2645
|
transform: er
|
|
2646
2646
|
}), Oe = Et(c, "ADD_URI_SAFE_ATTR", nn, {
|
|
2647
2647
|
transform: Pe,
|
|
@@ -2655,7 +2655,7 @@ function gi() {
|
|
|
2655
2655
|
transform: Pe
|
|
2656
2656
|
}), ot = Et(c, "FORBID_ATTR", et({}), {
|
|
2657
2657
|
transform: Pe
|
|
2658
|
-
}), mt = Ge(c, "USE_PROFILES") ? c.USE_PROFILES && typeof c.USE_PROFILES == "object" ? et(c.USE_PROFILES) : c.USE_PROFILES : !1, ht = c.ALLOW_ARIA_ATTR !== !1, Ae = c.ALLOW_DATA_ATTR !== !1, xe = c.ALLOW_UNKNOWN_PROTOCOLS || !1, _t = c.ALLOW_SELF_CLOSE_IN_ATTR !== !1, Ue = c.SAFE_FOR_TEMPLATES || !1, ct = c.SAFE_FOR_XML !== !1, Je = c.WHOLE_DOCUMENT || !1, Ce = c.RETURN_DOM || !1, Ye = c.RETURN_DOM_FRAGMENT || !1, xt = c.RETURN_TRUSTED_TYPE || !1, _e = c.FORCE_BODY || !1, jt = c.SANITIZE_DOM !== !1, _n = c.SANITIZE_NAMED_PROPS || !1, tn = c.KEEP_CONTENT !== !1, At = c.IN_PLACE || !1, j =
|
|
2658
|
+
}), mt = Ge(c, "USE_PROFILES") ? c.USE_PROFILES && typeof c.USE_PROFILES == "object" ? et(c.USE_PROFILES) : c.USE_PROFILES : !1, ht = c.ALLOW_ARIA_ATTR !== !1, Ae = c.ALLOW_DATA_ATTR !== !1, xe = c.ALLOW_UNKNOWN_PROTOCOLS || !1, _t = c.ALLOW_SELF_CLOSE_IN_ATTR !== !1, Ue = c.SAFE_FOR_TEMPLATES || !1, ct = c.SAFE_FOR_XML !== !1, Je = c.WHOLE_DOCUMENT || !1, Ce = c.RETURN_DOM || !1, Ye = c.RETURN_DOM_FRAGMENT || !1, xt = c.RETURN_TRUSTED_TYPE || !1, _e = c.FORCE_BODY || !1, jt = c.SANITIZE_DOM !== !1, _n = c.SANITIZE_NAMED_PROPS || !1, tn = c.KEEP_CONTENT !== !1, At = c.IN_PLACE || !1, j = gl(c.ALLOWED_URI_REGEXP) ? c.ALLOWED_URI_REGEXP : Es, W = typeof c.NAMESPACE == "string" ? c.NAMESPACE : nt, qn = Ge(c, "MATHML_TEXT_INTEGRATION_POINTS") && c.MATHML_TEXT_INTEGRATION_POINTS && typeof c.MATHML_TEXT_INTEGRATION_POINTS == "object" ? et(c.MATHML_TEXT_INTEGRATION_POINTS) : ve({}, Dr), Vn = Ge(c, "HTML_INTEGRATION_POINTS") && c.HTML_INTEGRATION_POINTS && typeof c.HTML_INTEGRATION_POINTS == "object" ? et(c.HTML_INTEGRATION_POINTS) : ve({}, zr);
|
|
2659
2659
|
const y = Ge(c, "CUSTOM_ELEMENT_HANDLING") && c.CUSTOM_ELEMENT_HANDLING && typeof c.CUSTOM_ELEMENT_HANDLING == "object" ? et(c.CUSTOM_ELEMENT_HANDLING) : Zt(null);
|
|
2660
2660
|
if (oe = Zt(null), Ge(y, "tagNameCheck") && Br(y.tagNameCheck) && (oe.tagNameCheck = y.tagNameCheck), Ge(y, "attributeNameCheck") && Br(y.attributeNameCheck) && (oe.attributeNameCheck = y.attributeNameCheck), Ge(y, "allowCustomizedBuiltInElements") && typeof y.allowCustomizedBuiltInElements == "boolean" && (oe.allowCustomizedBuiltInElements = y.allowCustomizedBuiltInElements), Ze(oe), Ue && (Ae = !1), Ye && (Ce = !0), mt && (O = ve({}, vs), K = Zt(null), mt.html === !0 && (ve(O, xs), ve(K, ws)), mt.svg === !0 && (ve(O, tr), ve(K, sr), ve(K, Sn)), mt.svgFilters === !0 && (ve(O, nr), ve(K, sr), ve(K, Sn)), mt.mathMl === !0 && (ve(O, rr), ve(K, ks), ve(K, Sn))), X.tagCheck = null, X.attributeCheck = null, Ge(c, "ADD_TAGS") && (typeof c.ADD_TAGS == "function" ? X.tagCheck = c.ADD_TAGS : Tt(c.ADD_TAGS) && (O === Q && (O = et(O)), ve(O, c.ADD_TAGS, Pe))), Ge(c, "ADD_ATTR") && (typeof c.ADD_ATTR == "function" ? X.attributeCheck = c.ADD_ATTR : Tt(c.ADD_ATTR) && (K === be && (K = et(K)), ve(K, c.ADD_ATTR, Pe))), Ge(c, "ADD_URI_SAFE_ATTR") && Tt(c.ADD_URI_SAFE_ATTR) && ve(Oe, c.ADD_URI_SAFE_ATTR, Pe), Ge(c, "FORBID_CONTENTS") && Tt(c.FORBID_CONTENTS) && (k === D && (k = et(k)), ve(k, c.FORBID_CONTENTS, Pe)), Ge(c, "ADD_FORBID_CONTENTS") && Tt(c.ADD_FORBID_CONTENTS) && (k === D && (k = et(k)), ve(k, c.ADD_FORBID_CONTENTS, Pe)), tn && (O["#text"] = !0), Je && ve(O, ["html", "head", "body"]), O.table && (ve(O, ["tbody"]), delete tt.tbody), c.TRUSTED_TYPES_POLICY) {
|
|
2661
2661
|
if (typeof c.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
@@ -2671,20 +2671,20 @@ function gi() {
|
|
|
2671
2671
|
}
|
|
2672
2672
|
} else c.TRUSTED_TYPES_POLICY === null ? (T = void 0, Z = "") : (T === void 0 && (T = de()), T && typeof Z == "string" && (Z = P("")));
|
|
2673
2673
|
Ve && Ve(c), Ht = c;
|
|
2674
|
-
}, Fr = ve({}, [...tr, ...nr, ...
|
|
2674
|
+
}, Fr = ve({}, [...tr, ...nr, ...bl]), Ur = ve({}, [...rr, ...yl]), Ji = function(c, y, B) {
|
|
2675
2675
|
return y.namespaceURI === nt ? c === "svg" : y.namespaceURI === Nt ? c === "svg" && (B === "annotation-xml" || qn[B]) : !!Fr[c];
|
|
2676
|
-
}, Ji = function(c, y, B) {
|
|
2677
|
-
return y.namespaceURI === nt ? c === "math" : y.namespaceURI === It ? c === "math" && Vn[B] : !!Ur[c];
|
|
2678
2676
|
}, Qi = function(c, y, B) {
|
|
2679
|
-
return y.namespaceURI ===
|
|
2680
|
-
}, ea = function(c) {
|
|
2677
|
+
return y.namespaceURI === nt ? c === "math" : y.namespaceURI === It ? c === "math" && Vn[B] : !!Ur[c];
|
|
2678
|
+
}, ea = function(c, y, B) {
|
|
2679
|
+
return y.namespaceURI === It && !Vn[B] || y.namespaceURI === Nt && !qn[B] ? !1 : !Ur[c] && (Vi[c] || !Fr[c]);
|
|
2680
|
+
}, ta = function(c) {
|
|
2681
2681
|
let y = N(c);
|
|
2682
2682
|
(!y || !y.tagName) && (y = {
|
|
2683
2683
|
namespaceURI: W,
|
|
2684
2684
|
tagName: "template"
|
|
2685
2685
|
});
|
|
2686
2686
|
const B = fn(c.tagName), Y = fn(y.tagName);
|
|
2687
|
-
return Kn[c.namespaceURI] ? c.namespaceURI === It ?
|
|
2687
|
+
return Kn[c.namespaceURI] ? c.namespaceURI === It ? Ji(B, y, Y) : c.namespaceURI === Nt ? Qi(B, y, Y) : c.namespaceURI === nt ? ea(B, y, Y) : !!(rn === "application/xhtml+xml" && Kn[c.namespaceURI]) : !1;
|
|
2688
2688
|
}, wt = function(c) {
|
|
2689
2689
|
qt(e.removed, {
|
|
2690
2690
|
element: c
|
|
@@ -2741,7 +2741,7 @@ function gi() {
|
|
|
2741
2741
|
y.setAttribute(c, "");
|
|
2742
2742
|
} catch {
|
|
2743
2743
|
}
|
|
2744
|
-
},
|
|
2744
|
+
}, na = function(c) {
|
|
2745
2745
|
const y = E(c);
|
|
2746
2746
|
if (y)
|
|
2747
2747
|
for (let B = y.length - 1; B >= 0; --B) {
|
|
@@ -2752,11 +2752,11 @@ function gi() {
|
|
|
2752
2752
|
} catch {
|
|
2753
2753
|
}
|
|
2754
2754
|
}
|
|
2755
|
-
},
|
|
2755
|
+
}, ra = function(c) {
|
|
2756
2756
|
const y = [c];
|
|
2757
2757
|
for (; y.length > 0; ) {
|
|
2758
2758
|
const B = y.pop();
|
|
2759
|
-
(A ? A(B) : B.nodeType) === gt.element &&
|
|
2759
|
+
(A ? A(B) : B.nodeType) === gt.element && na(B);
|
|
2760
2760
|
const ye = b(B);
|
|
2761
2761
|
if (ye)
|
|
2762
2762
|
for (let Ee = ye.length - 1; Ee >= 0; --Ee)
|
|
@@ -2861,9 +2861,9 @@ function gi() {
|
|
|
2861
2861
|
B.call(e, c, y, Ht);
|
|
2862
2862
|
});
|
|
2863
2863
|
}
|
|
2864
|
-
const
|
|
2865
|
-
return !!(ct && c.hasChildNodes() && !sn(c.firstElementChild) && Ke(Ts, c.textContent) && Ke(Ts, c.innerHTML) || ct && c.namespaceURI === nt && y === "style" && sn(c.firstElementChild) || c.nodeType === gt.processingInstruction || ct && c.nodeType === gt.comment && Ke(
|
|
2866
|
-
},
|
|
2864
|
+
const sa = function(c, y) {
|
|
2865
|
+
return !!(ct && c.hasChildNodes() && !sn(c.firstElementChild) && Ke(Ts, c.textContent) && Ke(Ts, c.innerHTML) || ct && c.namespaceURI === nt && y === "style" && sn(c.firstElementChild) || c.nodeType === gt.processingInstruction || ct && c.nodeType === gt.comment && Ke(Rl, c.data));
|
|
2866
|
+
}, ia = function(c, y) {
|
|
2867
2867
|
if (!tt[y] && qr(y) && (oe.tagNameCheck instanceof RegExp && Ke(oe.tagNameCheck, y) || oe.tagNameCheck instanceof Function && oe.tagNameCheck(y)))
|
|
2868
2868
|
return !1;
|
|
2869
2869
|
if (tn && !k[y]) {
|
|
@@ -2884,11 +2884,11 @@ function gi() {
|
|
|
2884
2884
|
if (vt(ie.uponSanitizeElement, c, {
|
|
2885
2885
|
tagName: y,
|
|
2886
2886
|
allowedTags: O
|
|
2887
|
-
}),
|
|
2887
|
+
}), sa(c, y))
|
|
2888
2888
|
return wt(c), !0;
|
|
2889
2889
|
if (tt[y] || !(X.tagCheck instanceof Function && X.tagCheck(y)) && !O[y])
|
|
2890
|
-
return
|
|
2891
|
-
if ((A ? A(c) : c.nodeType) === gt.element && !
|
|
2890
|
+
return ia(c, y);
|
|
2891
|
+
if ((A ? A(c) : c.nodeType) === gt.element && !ta(c) || (y === "noscript" || y === "noembed" || y === "noframes") && Ke(Nl, c.innerHTML))
|
|
2892
2892
|
return wt(c), !0;
|
|
2893
2893
|
if (Ue && c.nodeType === gt.text) {
|
|
2894
2894
|
const Y = vn(c.textContent);
|
|
@@ -2898,7 +2898,7 @@ function gi() {
|
|
|
2898
2898
|
}
|
|
2899
2899
|
return vt(ie.afterSanitizeElements, c, null), !1;
|
|
2900
2900
|
}, Kr = function(c, y, B) {
|
|
2901
|
-
if (ot[y] || jt && (y === "id" || y === "name") && (B in n || B in
|
|
2901
|
+
if (ot[y] || jt && (y === "id" || y === "name") && (B in n || B in Xi))
|
|
2902
2902
|
return !1;
|
|
2903
2903
|
const Y = K[y] || X.attributeCheck instanceof Function && X.attributeCheck(y, c);
|
|
2904
2904
|
if (!(Ae && Ke(J, y))) {
|
|
@@ -2925,9 +2925,9 @@ function gi() {
|
|
|
2925
2925
|
}
|
|
2926
2926
|
}
|
|
2927
2927
|
return !0;
|
|
2928
|
-
},
|
|
2929
|
-
return !
|
|
2930
|
-
},
|
|
2928
|
+
}, aa = ve({}, ["annotation-xml", "color-profile", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "missing-glyph"]), qr = function(c) {
|
|
2929
|
+
return !aa[fn(c)] && Ke(R, c);
|
|
2930
|
+
}, oa = function(c, y, B, Y) {
|
|
2931
2931
|
if (T && typeof g == "object" && typeof g.getAttributeType == "function" && !B)
|
|
2932
2932
|
switch (g.getAttributeType(c, y)) {
|
|
2933
2933
|
case "TrustedHTML":
|
|
@@ -2936,7 +2936,7 @@ function gi() {
|
|
|
2936
2936
|
return se(Y);
|
|
2937
2937
|
}
|
|
2938
2938
|
return Y;
|
|
2939
|
-
},
|
|
2939
|
+
}, la = function(c, y, B, Y) {
|
|
2940
2940
|
try {
|
|
2941
2941
|
B ? c.setAttributeNS(B, y, Y) : c.setAttribute(y, Y), wn(c) ? wt(c) : ms(e.removed);
|
|
2942
2942
|
} catch {
|
|
@@ -2958,7 +2958,7 @@ function gi() {
|
|
|
2958
2958
|
const ye = Pe(c.nodeName);
|
|
2959
2959
|
for (; Y--; ) {
|
|
2960
2960
|
const Ee = y[Y], He = Ee.name, ze = Ee.namespaceURI, lt = Ee.value, ut = Pe(He), Jn = lt;
|
|
2961
|
-
let Qe = He === "value" ? Jn :
|
|
2961
|
+
let Qe = He === "value" ? Jn : ul(Jn);
|
|
2962
2962
|
if (B.attrName = ut, B.attrValue = Qe, B.keepAttr = !0, B.forceKeepAttr = void 0, vt(ie.uponSanitizeAttribute, c, B), Qe = B.attrValue, _n && (ut === "id" || ut === "name") && bs(Qe, xn) !== 0 && (Ct(He, c), Qe = xn + Qe), ct && Ke(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, Qe)) {
|
|
2963
2963
|
Ct(He, c);
|
|
2964
2964
|
continue;
|
|
@@ -2972,7 +2972,7 @@ function gi() {
|
|
|
2972
2972
|
Ct(He, c);
|
|
2973
2973
|
continue;
|
|
2974
2974
|
}
|
|
2975
|
-
if (!_t && Ke(
|
|
2975
|
+
if (!_t && Ke(Il, Qe)) {
|
|
2976
2976
|
Ct(He, c);
|
|
2977
2977
|
continue;
|
|
2978
2978
|
}
|
|
@@ -2980,7 +2980,7 @@ function gi() {
|
|
|
2980
2980
|
Ct(He, c);
|
|
2981
2981
|
continue;
|
|
2982
2982
|
}
|
|
2983
|
-
Qe =
|
|
2983
|
+
Qe = oa(ye, ut, ze, Qe), Qe !== Jn && la(c, He, ze, Qe);
|
|
2984
2984
|
}
|
|
2985
2985
|
}
|
|
2986
2986
|
vt(ie.afterSanitizeAttributes, c, null);
|
|
@@ -3035,7 +3035,7 @@ function gi() {
|
|
|
3035
3035
|
};
|
|
3036
3036
|
return e.sanitize = function(F) {
|
|
3037
3037
|
let c = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, y = null, B = null, Y = null, ye = null;
|
|
3038
|
-
if (rt = !F, rt && (F = "<!-->"), typeof F != "string" && !sn(F) && (F =
|
|
3038
|
+
if (rt = !F, rt && (F = "<!-->"), typeof F != "string" && !sn(F) && (F = ml(F), typeof F != "string"))
|
|
3039
3039
|
throw Ot("dirty is not a string, aborting");
|
|
3040
3040
|
if (!e.isSupported)
|
|
3041
3041
|
return F;
|
|
@@ -3074,7 +3074,7 @@ function gi() {
|
|
|
3074
3074
|
}
|
|
3075
3075
|
if (Ee)
|
|
3076
3076
|
return on(e.removed, (lt) => {
|
|
3077
|
-
lt.element &&
|
|
3077
|
+
lt.element && ra(lt.element);
|
|
3078
3078
|
}), Ue && Yn(F), F;
|
|
3079
3079
|
if (Ce) {
|
|
3080
3080
|
if (Ue && Yn(y), Ye)
|
|
@@ -3085,7 +3085,7 @@ function gi() {
|
|
|
3085
3085
|
return (K.shadowroot || K.shadowrootmode) && (ye = ge.call(r, ye, !0)), ye;
|
|
3086
3086
|
}
|
|
3087
3087
|
let ze = Je ? y.outerHTML : y.innerHTML;
|
|
3088
|
-
return Je && O["!doctype"] && y.ownerDocument && y.ownerDocument.doctype && y.ownerDocument.doctype.name && Ke(
|
|
3088
|
+
return Je && O["!doctype"] && y.ownerDocument && y.ownerDocument.doctype && y.ownerDocument.doctype.name && Ke(Sl, y.ownerDocument.doctype.name) && (ze = "<!DOCTYPE " + y.ownerDocument.doctype.name + `>
|
|
3089
3089
|
` + ze), Ue && (ze = vn(ze)), T && xt ? P(ze) : ze;
|
|
3090
3090
|
}, e.setConfig = function() {
|
|
3091
3091
|
let F = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
@@ -3101,8 +3101,8 @@ function gi() {
|
|
|
3101
3101
|
}, e.removeHook = function(F, c) {
|
|
3102
3102
|
if (Ge(ie, F)) {
|
|
3103
3103
|
if (c !== void 0) {
|
|
3104
|
-
const y =
|
|
3105
|
-
return y === -1 ? void 0 :
|
|
3104
|
+
const y = ll(ie[F], c);
|
|
3105
|
+
return y === -1 ? void 0 : cl(ie[F], y, 1)[0];
|
|
3106
3106
|
}
|
|
3107
3107
|
return ms(ie[F]);
|
|
3108
3108
|
}
|
|
@@ -3259,7 +3259,7 @@ const zn = "[A-Za-z$_][0-9A-Za-z$_]*", yi = [
|
|
|
3259
3259
|
xi,
|
|
3260
3260
|
vi
|
|
3261
3261
|
);
|
|
3262
|
-
function
|
|
3262
|
+
function $l(t) {
|
|
3263
3263
|
const e = t.regex, n = (G, { after: ae }) => {
|
|
3264
3264
|
const ge = "</" + G[0].slice(1);
|
|
3265
3265
|
return G.input.indexOf(ge, ae) !== -1;
|
|
@@ -3769,7 +3769,7 @@ function Ol(t) {
|
|
|
3769
3769
|
};
|
|
3770
3770
|
}
|
|
3771
3771
|
function Ti(t) {
|
|
3772
|
-
const e = t.regex, n =
|
|
3772
|
+
const e = t.regex, n = $l(t), r = zn, s = [
|
|
3773
3773
|
"any",
|
|
3774
3774
|
"void",
|
|
3775
3775
|
"number",
|
|
@@ -3863,7 +3863,7 @@ function Ti(t) {
|
|
|
3863
3863
|
]
|
|
3864
3864
|
}), n;
|
|
3865
3865
|
}
|
|
3866
|
-
const As = "[A-Za-z$_][0-9A-Za-z$_]*",
|
|
3866
|
+
const As = "[A-Za-z$_][0-9A-Za-z$_]*", Ml = [
|
|
3867
3867
|
"as",
|
|
3868
3868
|
// for exports
|
|
3869
3869
|
"in",
|
|
@@ -3908,7 +3908,7 @@ const As = "[A-Za-z$_][0-9A-Za-z$_]*", $l = [
|
|
|
3908
3908
|
"extends",
|
|
3909
3909
|
// It's reached stage 3, which is "recommended for implementation":
|
|
3910
3910
|
"using"
|
|
3911
|
-
],
|
|
3911
|
+
], Ll = [
|
|
3912
3912
|
"true",
|
|
3913
3913
|
"false",
|
|
3914
3914
|
"null",
|
|
@@ -3992,7 +3992,7 @@ const As = "[A-Za-z$_][0-9A-Za-z$_]*", $l = [
|
|
|
3992
3992
|
"encodeURIComponent",
|
|
3993
3993
|
"escape",
|
|
3994
3994
|
"unescape"
|
|
3995
|
-
],
|
|
3995
|
+
], Pl = [
|
|
3996
3996
|
"arguments",
|
|
3997
3997
|
"this",
|
|
3998
3998
|
"super",
|
|
@@ -4004,7 +4004,7 @@ const As = "[A-Za-z$_][0-9A-Za-z$_]*", $l = [
|
|
|
4004
4004
|
"module",
|
|
4005
4005
|
"global"
|
|
4006
4006
|
// Node.js
|
|
4007
|
-
],
|
|
4007
|
+
], Dl = [].concat(
|
|
4008
4008
|
Ri,
|
|
4009
4009
|
Si,
|
|
4010
4010
|
Ai
|
|
@@ -4050,10 +4050,10 @@ function Ni(t) {
|
|
|
4050
4050
|
}
|
|
4051
4051
|
}, a = {
|
|
4052
4052
|
$pattern: As,
|
|
4053
|
-
keyword:
|
|
4054
|
-
literal:
|
|
4055
|
-
built_in:
|
|
4056
|
-
"variable.language":
|
|
4053
|
+
keyword: Ml,
|
|
4054
|
+
literal: Ll,
|
|
4055
|
+
built_in: Dl,
|
|
4056
|
+
"variable.language": Pl
|
|
4057
4057
|
}, l = "[0-9](_?[0-9])*", u = `\\.(${l})`, f = "0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*", g = {
|
|
4058
4058
|
className: "number",
|
|
4059
4059
|
variants: [
|
|
@@ -4734,7 +4734,7 @@ function Or(t) {
|
|
|
4734
4734
|
]
|
|
4735
4735
|
};
|
|
4736
4736
|
}
|
|
4737
|
-
const
|
|
4737
|
+
const zl = (t) => ({
|
|
4738
4738
|
IMPORTANT: {
|
|
4739
4739
|
scope: "meta",
|
|
4740
4740
|
begin: "!important"
|
|
@@ -4767,7 +4767,7 @@ const Dl = (t) => ({
|
|
|
4767
4767
|
className: "attr",
|
|
4768
4768
|
begin: /--[A-Za-z_][A-Za-z0-9_-]*/
|
|
4769
4769
|
}
|
|
4770
|
-
}),
|
|
4770
|
+
}), Bl = [
|
|
4771
4771
|
"a",
|
|
4772
4772
|
"abbr",
|
|
4773
4773
|
"address",
|
|
@@ -4845,7 +4845,7 @@ const Dl = (t) => ({
|
|
|
4845
4845
|
"ul",
|
|
4846
4846
|
"var",
|
|
4847
4847
|
"video"
|
|
4848
|
-
],
|
|
4848
|
+
], Fl = [
|
|
4849
4849
|
"defs",
|
|
4850
4850
|
"g",
|
|
4851
4851
|
"marker",
|
|
@@ -4887,10 +4887,10 @@ const Dl = (t) => ({
|
|
|
4887
4887
|
"tspan",
|
|
4888
4888
|
"foreignObject",
|
|
4889
4889
|
"clipPath"
|
|
4890
|
-
], Fl = [
|
|
4891
|
-
...zl,
|
|
4892
|
-
...Bl
|
|
4893
4890
|
], Ul = [
|
|
4891
|
+
...Bl,
|
|
4892
|
+
...Fl
|
|
4893
|
+
], jl = [
|
|
4894
4894
|
"any-hover",
|
|
4895
4895
|
"any-pointer",
|
|
4896
4896
|
"aspect-ratio",
|
|
@@ -4925,7 +4925,7 @@ const Dl = (t) => ({
|
|
|
4925
4925
|
"max-width",
|
|
4926
4926
|
"min-height",
|
|
4927
4927
|
"max-height"
|
|
4928
|
-
].sort().reverse(),
|
|
4928
|
+
].sort().reverse(), Hl = [
|
|
4929
4929
|
"active",
|
|
4930
4930
|
"any-link",
|
|
4931
4931
|
"blank",
|
|
@@ -4999,7 +4999,7 @@ const Dl = (t) => ({
|
|
|
4999
4999
|
"visited",
|
|
5000
5000
|
"where"
|
|
5001
5001
|
// where()
|
|
5002
|
-
].sort().reverse(),
|
|
5002
|
+
].sort().reverse(), Gl = [
|
|
5003
5003
|
"after",
|
|
5004
5004
|
"backdrop",
|
|
5005
5005
|
"before",
|
|
@@ -5014,7 +5014,7 @@ const Dl = (t) => ({
|
|
|
5014
5014
|
"selection",
|
|
5015
5015
|
"slotted",
|
|
5016
5016
|
"spelling-error"
|
|
5017
|
-
].sort().reverse(),
|
|
5017
|
+
].sort().reverse(), Wl = [
|
|
5018
5018
|
"accent-color",
|
|
5019
5019
|
"align-content",
|
|
5020
5020
|
"align-items",
|
|
@@ -5531,8 +5531,8 @@ const Dl = (t) => ({
|
|
|
5531
5531
|
"z-index",
|
|
5532
5532
|
"zoom"
|
|
5533
5533
|
].sort().reverse();
|
|
5534
|
-
function
|
|
5535
|
-
const e = t.regex, n =
|
|
5534
|
+
function Kl(t) {
|
|
5535
|
+
const e = t.regex, n = zl(t), r = { begin: /-(webkit|moz|ms|o)-(?=[a-z])/ }, s = "and or not only", i = /@-?\w[\w]*(-\w+)*/, o = "[a-zA-Z-][a-zA-Z0-9_-]*", a = [
|
|
5536
5536
|
t.APOS_STRING_MODE,
|
|
5537
5537
|
t.QUOTE_STRING_MODE
|
|
5538
5538
|
];
|
|
@@ -5566,8 +5566,8 @@ function Wl(t) {
|
|
|
5566
5566
|
{
|
|
5567
5567
|
className: "selector-pseudo",
|
|
5568
5568
|
variants: [
|
|
5569
|
-
{ begin: ":(" +
|
|
5570
|
-
{ begin: ":(:)?(" +
|
|
5569
|
+
{ begin: ":(" + Hl.join("|") + ")" },
|
|
5570
|
+
{ begin: ":(:)?(" + Gl.join("|") + ")" }
|
|
5571
5571
|
]
|
|
5572
5572
|
},
|
|
5573
5573
|
// we may actually need this (12/2020)
|
|
@@ -5579,7 +5579,7 @@ function Wl(t) {
|
|
|
5579
5579
|
n.CSS_VARIABLE,
|
|
5580
5580
|
{
|
|
5581
5581
|
className: "attribute",
|
|
5582
|
-
begin: "\\b(" +
|
|
5582
|
+
begin: "\\b(" + Wl.join("|") + ")\\b"
|
|
5583
5583
|
},
|
|
5584
5584
|
// attribute values
|
|
5585
5585
|
{
|
|
@@ -5634,7 +5634,7 @@ function Wl(t) {
|
|
|
5634
5634
|
keywords: {
|
|
5635
5635
|
$pattern: /[a-z-]+/,
|
|
5636
5636
|
keyword: s,
|
|
5637
|
-
attribute:
|
|
5637
|
+
attribute: jl.join(" ")
|
|
5638
5638
|
},
|
|
5639
5639
|
contains: [
|
|
5640
5640
|
{
|
|
@@ -5649,12 +5649,12 @@ function Wl(t) {
|
|
|
5649
5649
|
},
|
|
5650
5650
|
{
|
|
5651
5651
|
className: "selector-tag",
|
|
5652
|
-
begin: "\\b(" +
|
|
5652
|
+
begin: "\\b(" + Ul.join("|") + ")\\b"
|
|
5653
5653
|
}
|
|
5654
5654
|
]
|
|
5655
5655
|
};
|
|
5656
5656
|
}
|
|
5657
|
-
function
|
|
5657
|
+
function ql(t) {
|
|
5658
5658
|
const e = {
|
|
5659
5659
|
className: "attr",
|
|
5660
5660
|
begin: /"(\\.|[^\\"\r\n])*"(?=\s*:)/,
|
|
@@ -6243,7 +6243,7 @@ function Ci(t) {
|
|
|
6243
6243
|
contains: b
|
|
6244
6244
|
};
|
|
6245
6245
|
}
|
|
6246
|
-
function
|
|
6246
|
+
function Vl(t) {
|
|
6247
6247
|
return {
|
|
6248
6248
|
name: "Plain text",
|
|
6249
6249
|
aliases: [
|
|
@@ -6253,7 +6253,7 @@ function ql(t) {
|
|
|
6253
6253
|
disableAutodetect: !0
|
|
6254
6254
|
};
|
|
6255
6255
|
}
|
|
6256
|
-
We.registerLanguage("plaintext",
|
|
6256
|
+
We.registerLanguage("plaintext", Vl);
|
|
6257
6257
|
We.registerLanguage("typescript", Ti);
|
|
6258
6258
|
We.registerLanguage("ts", Ti);
|
|
6259
6259
|
We.registerLanguage("javascript", Ni);
|
|
@@ -6261,14 +6261,14 @@ We.registerLanguage("js", Ni);
|
|
|
6261
6261
|
We.registerLanguage("vue", Or);
|
|
6262
6262
|
We.registerLanguage("html", Or);
|
|
6263
6263
|
We.registerLanguage("xml", Or);
|
|
6264
|
-
We.registerLanguage("css",
|
|
6265
|
-
We.registerLanguage("json",
|
|
6264
|
+
We.registerLanguage("css", Kl);
|
|
6265
|
+
We.registerLanguage("json", ql);
|
|
6266
6266
|
We.registerLanguage("bash", Ii);
|
|
6267
6267
|
We.registerLanguage("sh", Ii);
|
|
6268
6268
|
We.registerLanguage("yaml", Ci);
|
|
6269
6269
|
We.registerLanguage("yml", Ci);
|
|
6270
6270
|
const Oi = new Qs(
|
|
6271
|
-
|
|
6271
|
+
to({
|
|
6272
6272
|
langPrefix: "hljs language-",
|
|
6273
6273
|
highlight(t, e) {
|
|
6274
6274
|
const n = We.getLanguage(e) ? e : "plaintext";
|
|
@@ -6277,20 +6277,20 @@ const Oi = new Qs(
|
|
|
6277
6277
|
})
|
|
6278
6278
|
);
|
|
6279
6279
|
Oi.setOptions({ breaks: !0 });
|
|
6280
|
-
function
|
|
6280
|
+
function Zl(t) {
|
|
6281
6281
|
return bi.sanitize(Oi.parse(t, { async: !1 }));
|
|
6282
6282
|
}
|
|
6283
6283
|
function Rs(t, e) {
|
|
6284
6284
|
const n = We.getLanguage(e) ? e : "plaintext";
|
|
6285
6285
|
return bi.sanitize(We.highlight(t, { language: n }).value);
|
|
6286
6286
|
}
|
|
6287
|
-
const
|
|
6287
|
+
const Yl = { class: "min-w-0 flex-1 truncate text-[11px] leading-[16px] text-fm-color-typo-tertiary" }, Xl = { class: "tool-card__name min-w-0 max-w-[96px] truncate font-mono text-[10px] leading-[14px] text-fm-color-typo-tertiary" }, Jl = {
|
|
6288
6288
|
key: 0,
|
|
6289
6289
|
class: "min-w-0 px-[6px] pb-[6px]"
|
|
6290
|
-
},
|
|
6290
|
+
}, Ql = ["innerHTML"], ec = {
|
|
6291
6291
|
key: 0,
|
|
6292
6292
|
class: "mt-[6px]"
|
|
6293
|
-
},
|
|
6293
|
+
}, tc = { class: "mb-[3px] text-[10px] font-semibold uppercase leading-[14px] text-fm-color-typo-tertiary" }, nc = ["innerHTML"], rc = /* @__PURE__ */ at({
|
|
6294
6294
|
__name: "ToolCallCard",
|
|
6295
6295
|
props: {
|
|
6296
6296
|
part: {}
|
|
@@ -6340,8 +6340,8 @@ const Zl = { class: "min-w-0 flex-1 truncate text-[11px] leading-[16px] text-fm-
|
|
|
6340
6340
|
color: a.value.color,
|
|
6341
6341
|
size: "sm"
|
|
6342
6342
|
}, null, 8, ["name", "color"]),
|
|
6343
|
-
m("span",
|
|
6344
|
-
m("span",
|
|
6343
|
+
m("span", Yl, H(s.value), 1),
|
|
6344
|
+
m("span", Xl, H(t.part.tool), 1),
|
|
6345
6345
|
m("span", {
|
|
6346
6346
|
class: Be(["inline-flex shrink-0 items-center gap-[4px] text-[10px] font-medium leading-[14px]", i.value])
|
|
6347
6347
|
}, [
|
|
@@ -6351,44 +6351,44 @@ const Zl = { class: "min-w-0 flex-1 truncate text-[11px] leading-[16px] text-fm-
|
|
|
6351
6351
|
je(" " + H(r.value), 1)
|
|
6352
6352
|
], 2)
|
|
6353
6353
|
], 2),
|
|
6354
|
-
n.value ? (x(), I("div",
|
|
6354
|
+
n.value ? (x(), I("div", Jl, [
|
|
6355
6355
|
m("div", null, [
|
|
6356
6356
|
w[1] || (w[1] = m("div", { class: "mb-[3px] text-[10px] font-semibold uppercase leading-[14px] text-fm-color-typo-tertiary" }, "Input", -1)),
|
|
6357
6357
|
m("pre", {
|
|
6358
6358
|
class: "tool-card__block hljs",
|
|
6359
6359
|
innerHTML: u.value
|
|
6360
|
-
}, null, 8,
|
|
6360
|
+
}, null, 8, Ql)
|
|
6361
6361
|
]),
|
|
6362
|
-
f.value ? (x(), I("div",
|
|
6363
|
-
m("div",
|
|
6362
|
+
f.value ? (x(), I("div", ec, [
|
|
6363
|
+
m("div", tc, H(r.value === "error" ? "Error" : "Output"), 1),
|
|
6364
6364
|
m("pre", {
|
|
6365
6365
|
class: "tool-card__block hljs",
|
|
6366
6366
|
innerHTML: g.value
|
|
6367
|
-
}, null, 8,
|
|
6367
|
+
}, null, 8, nc)
|
|
6368
6368
|
])) : re("", !0)
|
|
6369
6369
|
])) : re("", !0)
|
|
6370
6370
|
], 2);
|
|
6371
6371
|
};
|
|
6372
6372
|
}
|
|
6373
|
-
}),
|
|
6373
|
+
}), sc = /* @__PURE__ */ zt(rc, [["__scopeId", "data-v-af62b4a2"]]), ic = ["innerHTML"], ac = /* @__PURE__ */ at({
|
|
6374
6374
|
__name: "MarkdownContent",
|
|
6375
6375
|
props: {
|
|
6376
6376
|
text: {}
|
|
6377
6377
|
},
|
|
6378
6378
|
setup(t) {
|
|
6379
|
-
const e = t, n = ne(() =>
|
|
6379
|
+
const e = t, n = ne(() => Zl(e.text));
|
|
6380
6380
|
return (r, s) => (x(), I("div", {
|
|
6381
6381
|
class: "md-content",
|
|
6382
6382
|
innerHTML: n.value
|
|
6383
|
-
}, null, 8,
|
|
6383
|
+
}, null, 8, ic));
|
|
6384
6384
|
}
|
|
6385
|
-
}), Ns = /* @__PURE__ */ zt(
|
|
6385
|
+
}), Ns = /* @__PURE__ */ zt(ac, [["__scopeId", "data-v-900daa0d"]]), oc = { class: "flex min-w-0 flex-col gap-6" }, lc = { class: "flex items-center gap-[6px] fm-typo-en-body-sm-600" }, cc = { class: "fm-typo-en-body-md-400" }, uc = { class: "mt-2 flex min-w-0 flex-wrap items-center gap-x-6 gap-y-1 text-[11px] leading-[15px] opacity-80" }, dc = { class: "min-w-0 truncate" }, fc = {
|
|
6386
6386
|
key: 0,
|
|
6387
6387
|
class: "min-w-0 truncate font-mono"
|
|
6388
|
-
},
|
|
6388
|
+
}, pc = {
|
|
6389
6389
|
key: 1,
|
|
6390
6390
|
class: "shrink-0"
|
|
6391
|
-
},
|
|
6391
|
+
}, hc = /* @__PURE__ */ at({
|
|
6392
6392
|
__name: "AnnotationMessage",
|
|
6393
6393
|
props: {
|
|
6394
6394
|
items: {}
|
|
@@ -6396,8 +6396,8 @@ const Zl = { class: "min-w-0 flex-1 truncate text-[11px] leading-[16px] text-fm-
|
|
|
6396
6396
|
setup(t) {
|
|
6397
6397
|
return (e, n) => {
|
|
6398
6398
|
const r = Me("FmIcon");
|
|
6399
|
-
return x(), I("div",
|
|
6400
|
-
m("div",
|
|
6399
|
+
return x(), I("div", oc, [
|
|
6400
|
+
m("div", lc, [
|
|
6401
6401
|
V(r, {
|
|
6402
6402
|
name: "edit_note",
|
|
6403
6403
|
size: "sm",
|
|
@@ -6409,25 +6409,25 @@ const Zl = { class: "min-w-0 flex-1 truncate text-[11px] leading-[16px] text-fm-
|
|
|
6409
6409
|
key: s.id,
|
|
6410
6410
|
class: "min-w-0 rounded-md bg-white/15 px-[8px] py-[6px]"
|
|
6411
6411
|
}, [
|
|
6412
|
-
m("div",
|
|
6413
|
-
m("div",
|
|
6414
|
-
m("span",
|
|
6415
|
-
s.route && s.route !== "/" ? (x(), I("span",
|
|
6416
|
-
s.device ? (x(), I("span",
|
|
6412
|
+
m("div", cc, H(s.note), 1),
|
|
6413
|
+
m("div", uc, [
|
|
6414
|
+
m("span", dc, H(s.label), 1),
|
|
6415
|
+
s.route && s.route !== "/" ? (x(), I("span", fc, H(s.route), 1)) : re("", !0),
|
|
6416
|
+
s.device ? (x(), I("span", pc, H(s.device), 1)) : re("", !0)
|
|
6417
6417
|
])
|
|
6418
6418
|
]))), 128))
|
|
6419
6419
|
]);
|
|
6420
6420
|
};
|
|
6421
6421
|
}
|
|
6422
6422
|
}), gr = "69cde0740c0106001ca83dff";
|
|
6423
|
-
function
|
|
6423
|
+
function mc(t) {
|
|
6424
6424
|
return t.replace(/\/+$/, "");
|
|
6425
6425
|
}
|
|
6426
|
-
function
|
|
6427
|
-
return
|
|
6426
|
+
function gc() {
|
|
6427
|
+
return mc("https://miniprogram-v2-control-plane.feedme-dev.workers.dev");
|
|
6428
6428
|
}
|
|
6429
6429
|
function Yt(t) {
|
|
6430
|
-
const e =
|
|
6430
|
+
const e = gc();
|
|
6431
6431
|
return e ? `${e}${t.startsWith("/") ? t : `/${t}`}` : t;
|
|
6432
6432
|
}
|
|
6433
6433
|
function Gn() {
|
|
@@ -6441,11 +6441,11 @@ function br() {
|
|
|
6441
6441
|
var t;
|
|
6442
6442
|
return (t = Gn()) == null ? void 0 : t.slug;
|
|
6443
6443
|
}
|
|
6444
|
-
function
|
|
6444
|
+
function bc() {
|
|
6445
6445
|
const t = Gn();
|
|
6446
6446
|
return (t == null ? void 0 : t.name) ?? (t == null ? void 0 : t.slug) ?? Dt();
|
|
6447
6447
|
}
|
|
6448
|
-
function
|
|
6448
|
+
function $i() {
|
|
6449
6449
|
const t = Gn();
|
|
6450
6450
|
return (t == null ? void 0 : t.country) ?? (t == null ? void 0 : t.countryCode) ?? (t == null ? void 0 : t.country_code);
|
|
6451
6451
|
}
|
|
@@ -6462,9 +6462,9 @@ function qe(t) {
|
|
|
6462
6462
|
}
|
|
6463
6463
|
function Is() {
|
|
6464
6464
|
var e;
|
|
6465
|
-
return ((e = yr().sessionUser.value) == null ? void 0 : e.token) ||
|
|
6465
|
+
return ((e = yr().sessionUser.value) == null ? void 0 : e.token) || pa.token || "";
|
|
6466
6466
|
}
|
|
6467
|
-
async function
|
|
6467
|
+
async function Mi() {
|
|
6468
6468
|
let t = Is();
|
|
6469
6469
|
const e = Date.now() + 5e3;
|
|
6470
6470
|
for (; !t && Date.now() < e; )
|
|
@@ -6472,8 +6472,11 @@ async function $i() {
|
|
|
6472
6472
|
return t ? `Bearer ${t}` : null;
|
|
6473
6473
|
}
|
|
6474
6474
|
async function Xt(t, e = {}) {
|
|
6475
|
-
|
|
6476
|
-
|
|
6475
|
+
var i;
|
|
6476
|
+
const n = new Request(t, e), r = await Mi();
|
|
6477
|
+
r && n.headers.set("Authorization", r);
|
|
6478
|
+
const s = (i = $i()) == null ? void 0 : i.trim().toUpperCase();
|
|
6479
|
+
return s && ["MY", "SG", "ID", "MO", "TH"].includes(s) && n.headers.set("x-feedme-country", s), fetch(n);
|
|
6477
6480
|
}
|
|
6478
6481
|
async function st(t, e = {}) {
|
|
6479
6482
|
const n = new Headers(e.headers);
|
|
@@ -6524,13 +6527,13 @@ const Ut = [
|
|
|
6524
6527
|
{ path: "brand", label: "Brand", group: "Fonts", hint: "Logo / wordmark contexts" },
|
|
6525
6528
|
{ path: "heading", label: "Heading", group: "Fonts" },
|
|
6526
6529
|
{ path: "body", label: "Body", group: "Fonts" }
|
|
6527
|
-
],
|
|
6530
|
+
], Li = /^#([0-9a-f]{3}|[0-9a-f]{6})$/i;
|
|
6528
6531
|
function $r(t) {
|
|
6529
|
-
return
|
|
6532
|
+
return Li.test(t.trim());
|
|
6530
6533
|
}
|
|
6531
6534
|
function _c(t) {
|
|
6532
6535
|
const e = t.trim().toLowerCase();
|
|
6533
|
-
if (!
|
|
6536
|
+
if (!Li.test(e)) return "#000000";
|
|
6534
6537
|
if (e.length === 7) return e;
|
|
6535
6538
|
const [n, r, s] = e.slice(1);
|
|
6536
6539
|
return `#${n}${n}${r}${r}${s}${s}`;
|
|
@@ -6585,7 +6588,7 @@ const le = In({
|
|
|
6585
6588
|
revertKit: null,
|
|
6586
6589
|
appliedProposal: null
|
|
6587
6590
|
});
|
|
6588
|
-
async function
|
|
6591
|
+
async function Pi(t) {
|
|
6589
6592
|
const e = await fetch(Mr(t));
|
|
6590
6593
|
if (e.status === 404) return null;
|
|
6591
6594
|
if (!e.ok) throw new Error(`GET brandkit failed: HTTP ${e.status}`);
|
|
@@ -6595,14 +6598,14 @@ function Lr(t) {
|
|
|
6595
6598
|
le.colors = Os(t, "colors", Ut), le.fonts = Os(t, "fonts", en), le.savedColors = { ...le.colors }, le.savedFonts = { ...le.fonts }, le.loaded = !0;
|
|
6596
6599
|
}
|
|
6597
6600
|
let Vt = null;
|
|
6598
|
-
function
|
|
6601
|
+
function Di(t = !1) {
|
|
6599
6602
|
const e = Dt();
|
|
6600
6603
|
if (le.loaded && !t && le.businessId === e) return Promise.resolve();
|
|
6601
6604
|
if ((Vt == null ? void 0 : Vt.businessId) === e) return Vt.promise;
|
|
6602
6605
|
const n = (async () => {
|
|
6603
6606
|
le.loading = !0, le.error = null;
|
|
6604
6607
|
try {
|
|
6605
|
-
Lr(await
|
|
6608
|
+
Lr(await Pi(e)), le.businessId !== e && (le.revertKit = null, le.appliedProposal = null), le.businessId = e;
|
|
6606
6609
|
} catch (r) {
|
|
6607
6610
|
le.error = qe(r);
|
|
6608
6611
|
} finally {
|
|
@@ -6611,7 +6614,7 @@ function Pi(t = !1) {
|
|
|
6611
6614
|
})();
|
|
6612
6615
|
return Vt = { businessId: e, promise: n }, n;
|
|
6613
6616
|
}
|
|
6614
|
-
function
|
|
6617
|
+
function zi() {
|
|
6615
6618
|
const t = Ut.filter(
|
|
6616
6619
|
(n) => le.colors[n.path] !== le.savedColors[n.path]
|
|
6617
6620
|
).map((n) => n.path), e = en.filter(
|
|
@@ -6620,7 +6623,7 @@ function Di() {
|
|
|
6620
6623
|
return { colorPaths: t, fontPaths: e };
|
|
6621
6624
|
}
|
|
6622
6625
|
const wc = ne(() => {
|
|
6623
|
-
const { colorPaths: t, fontPaths: e } =
|
|
6626
|
+
const { colorPaths: t, fontPaths: e } = zi();
|
|
6624
6627
|
return t.length + e.length;
|
|
6625
6628
|
}), kc = ne(
|
|
6626
6629
|
() => Ut.some((t) => {
|
|
@@ -6629,11 +6632,11 @@ const wc = ne(() => {
|
|
|
6629
6632
|
})
|
|
6630
6633
|
);
|
|
6631
6634
|
async function Ec() {
|
|
6632
|
-
const t = Dt(), { colorPaths: e, fontPaths: n } =
|
|
6635
|
+
const t = Dt(), { colorPaths: e, fontPaths: n } = zi();
|
|
6633
6636
|
if (!(!e.length && !n.length)) {
|
|
6634
6637
|
le.saving = !0, le.error = null;
|
|
6635
6638
|
try {
|
|
6636
|
-
const r = await
|
|
6639
|
+
const r = await Pi(t) ?? {}, s = $s(r), i = $s(r);
|
|
6637
6640
|
(!i.colors || typeof i.colors != "object") && (i.colors = {}), (!i.fonts || typeof i.fonts != "object") && (i.fonts = {});
|
|
6638
6641
|
for (const a of e) Cs(i.colors, a, (le.colors[a] ?? "").trim());
|
|
6639
6642
|
for (const a of n) Cs(i.fonts, a, (le.fonts[a] ?? "").trim());
|
|
@@ -6670,7 +6673,7 @@ async function Tc() {
|
|
|
6670
6673
|
}
|
|
6671
6674
|
}
|
|
6672
6675
|
async function Sc(t) {
|
|
6673
|
-
le.panelOpen = !0, await
|
|
6676
|
+
le.panelOpen = !0, await Di();
|
|
6674
6677
|
for (const e of Ut) {
|
|
6675
6678
|
const n = t.colors[e.path];
|
|
6676
6679
|
n && (le.colors[e.path] = n);
|
|
@@ -6689,7 +6692,7 @@ function Pr() {
|
|
|
6689
6692
|
state: le,
|
|
6690
6693
|
dirtyCount: wc,
|
|
6691
6694
|
hasInvalidColor: kc,
|
|
6692
|
-
load:
|
|
6695
|
+
load: Di,
|
|
6693
6696
|
save: Ec,
|
|
6694
6697
|
revertLastSave: Tc,
|
|
6695
6698
|
applyProposal: Sc,
|
|
@@ -6842,7 +6845,7 @@ const Wc = /* @__PURE__ */ at({
|
|
|
6842
6845
|
const e = t, n = ne(() => jc(e.text)), r = ne(
|
|
6843
6846
|
() => n.value ? null : Gc(e.text)
|
|
6844
6847
|
);
|
|
6845
|
-
return (s, i) => n.value ? (x(), Se(
|
|
6848
|
+
return (s, i) => n.value ? (x(), Se(hc, {
|
|
6846
6849
|
key: 0,
|
|
6847
6850
|
items: n.value
|
|
6848
6851
|
}, null, 8, ["items"])) : r.value ? (x(!0), I($e, { key: 1 }, De(r.value, (o, a) => (x(), I($e, { key: a }, [
|
|
@@ -7540,7 +7543,7 @@ const Qc = { class: "diff-card my-[6px] min-w-0 max-w-full overflow-hidden round
|
|
|
7540
7543
|
u.kind === "text" ? (x(), Se(Wc, {
|
|
7541
7544
|
key: 0,
|
|
7542
7545
|
text: u.text
|
|
7543
|
-
}, null, 8, ["text"])) : u.kind === "tool" ? (x(), Se(
|
|
7546
|
+
}, null, 8, ["text"])) : u.kind === "tool" ? (x(), Se(sc, {
|
|
7544
7547
|
key: 1,
|
|
7545
7548
|
part: u
|
|
7546
7549
|
}, null, 8, ["part"])) : u.kind === "file" && u.mime.startsWith("image/") ? (x(), I("img", {
|
|
@@ -7778,7 +7781,7 @@ const Qc = { class: "diff-card my-[6px] min-w-0 max-w-full overflow-hidden round
|
|
|
7778
7781
|
return (s, i) => (x(), I("span", {
|
|
7779
7782
|
class: Be(["inline-flex shrink-0 items-center gap-4 fm-typo-en-body-xs-600 leading-[16px]", [n[t.variant], r.value]])
|
|
7780
7783
|
}, [
|
|
7781
|
-
|
|
7784
|
+
da(s.$slots, "default")
|
|
7782
7785
|
], 2));
|
|
7783
7786
|
}
|
|
7784
7787
|
}), ju = { class: "brandkit-panel flex flex-col overflow-hidden rounded-lg border border-fm-color-neutral-gray-200 bg-fm-color-neutral-white shadow-lg" }, Hu = { class: "flex h-[44px] shrink-0 items-center justify-between gap-8 border-b border-fm-color-neutral-gray-100 px-[10px]" }, Gu = { class: "inline-flex min-w-0 items-center gap-6 truncate fm-typo-en-body-sm-600 text-fm-color-typo-primary" }, Wu = {
|
|
@@ -8556,7 +8559,7 @@ ${Te}`;
|
|
|
8556
8559
|
default:
|
|
8557
8560
|
return "&";
|
|
8558
8561
|
}
|
|
8559
|
-
},
|
|
8562
|
+
}, Bi = ({ allowReserved: t, explode: e, name: n, style: r, value: s }) => {
|
|
8560
8563
|
if (!e) {
|
|
8561
8564
|
const a = (t ? s : s.map((l) => encodeURIComponent(l))).join(jd(r));
|
|
8562
8565
|
switch (r) {
|
|
@@ -8582,7 +8585,7 @@ ${Te}`;
|
|
|
8582
8585
|
if (typeof n == "object")
|
|
8583
8586
|
throw new Error("Deeply-nested arrays/objects aren’t supported. Provide your own `querySerializer()` to handle these.");
|
|
8584
8587
|
return `${e}=${t ? n : encodeURIComponent(n)}`;
|
|
8585
|
-
},
|
|
8588
|
+
}, Fi = ({ allowReserved: t, explode: e, name: n, style: r, value: s, valueOnly: i }) => {
|
|
8586
8589
|
if (s instanceof Date)
|
|
8587
8590
|
return i ? s.toISOString() : `${n}=${s.toISOString()}`;
|
|
8588
8591
|
if (r !== "deepObject" && !e) {
|
|
@@ -8619,11 +8622,11 @@ ${Te}`;
|
|
|
8619
8622
|
if (l == null)
|
|
8620
8623
|
continue;
|
|
8621
8624
|
if (Array.isArray(l)) {
|
|
8622
|
-
n = n.replace(s,
|
|
8625
|
+
n = n.replace(s, Bi({ explode: i, name: o, style: a, value: l }));
|
|
8623
8626
|
continue;
|
|
8624
8627
|
}
|
|
8625
8628
|
if (typeof l == "object") {
|
|
8626
|
-
n = n.replace(s,
|
|
8629
|
+
n = n.replace(s, Fi({
|
|
8627
8630
|
explode: i,
|
|
8628
8631
|
name: o,
|
|
8629
8632
|
style: a,
|
|
@@ -8649,14 +8652,14 @@ ${Te}`;
|
|
|
8649
8652
|
e && (o = Wd({ path: e, url: o }));
|
|
8650
8653
|
let a = n ? r(n) : "";
|
|
8651
8654
|
return a.startsWith("?") && (a = a.substring(1)), a && (o += `?${a}`), o;
|
|
8652
|
-
},
|
|
8655
|
+
}, Ui = ({ allowReserved: t, array: e, object: n } = {}) => (s) => {
|
|
8653
8656
|
const i = [];
|
|
8654
8657
|
if (s && typeof s == "object")
|
|
8655
8658
|
for (const o in s) {
|
|
8656
8659
|
const a = s[o];
|
|
8657
8660
|
if (a != null)
|
|
8658
8661
|
if (Array.isArray(a)) {
|
|
8659
|
-
const l =
|
|
8662
|
+
const l = Bi({
|
|
8660
8663
|
allowReserved: t,
|
|
8661
8664
|
explode: !0,
|
|
8662
8665
|
name: o,
|
|
@@ -8666,7 +8669,7 @@ ${Te}`;
|
|
|
8666
8669
|
});
|
|
8667
8670
|
l && i.push(l);
|
|
8668
8671
|
} else if (typeof a == "object") {
|
|
8669
|
-
const l =
|
|
8672
|
+
const l = Fi({
|
|
8670
8673
|
allowReserved: t,
|
|
8671
8674
|
explode: !0,
|
|
8672
8675
|
name: o,
|
|
@@ -8728,13 +8731,13 @@ ${Te}`;
|
|
|
8728
8731
|
baseUrl: t.baseUrl,
|
|
8729
8732
|
path: t.path,
|
|
8730
8733
|
query: t.query,
|
|
8731
|
-
querySerializer: typeof t.querySerializer == "function" ? t.querySerializer :
|
|
8734
|
+
querySerializer: typeof t.querySerializer == "function" ? t.querySerializer : Ui(t.querySerializer),
|
|
8732
8735
|
url: t.url
|
|
8733
8736
|
}), Bs = (t, e) => {
|
|
8734
8737
|
var r;
|
|
8735
8738
|
const n = { ...t, ...e };
|
|
8736
|
-
return (r = n.baseUrl) != null && r.endsWith("/") && (n.baseUrl = n.baseUrl.substring(0, n.baseUrl.length - 1)), n.headers =
|
|
8737
|
-
},
|
|
8739
|
+
return (r = n.baseUrl) != null && r.endsWith("/") && (n.baseUrl = n.baseUrl.substring(0, n.baseUrl.length - 1)), n.headers = ji(t.headers, e.headers), n;
|
|
8740
|
+
}, ji = (...t) => {
|
|
8738
8741
|
const e = new Headers();
|
|
8739
8742
|
for (const n of t) {
|
|
8740
8743
|
if (!n || typeof n != "object")
|
|
@@ -8781,7 +8784,7 @@ const Yd = () => ({
|
|
|
8781
8784
|
error: new ar(),
|
|
8782
8785
|
request: new ar(),
|
|
8783
8786
|
response: new ar()
|
|
8784
|
-
}), Xd =
|
|
8787
|
+
}), Xd = Ui({
|
|
8785
8788
|
allowReserved: !1,
|
|
8786
8789
|
array: {
|
|
8787
8790
|
explode: !0,
|
|
@@ -8793,20 +8796,20 @@ const Yd = () => ({
|
|
|
8793
8796
|
}
|
|
8794
8797
|
}), Jd = {
|
|
8795
8798
|
"Content-Type": "application/json"
|
|
8796
|
-
},
|
|
8799
|
+
}, Hi = (t = {}) => ({
|
|
8797
8800
|
...Fd,
|
|
8798
8801
|
headers: Jd,
|
|
8799
8802
|
parseAs: "auto",
|
|
8800
8803
|
querySerializer: Xd,
|
|
8801
8804
|
...t
|
|
8802
|
-
}),
|
|
8803
|
-
let e = Bs(
|
|
8805
|
+
}), Gi = (t = {}) => {
|
|
8806
|
+
let e = Bs(Hi(), t);
|
|
8804
8807
|
const n = () => ({ ...e }), r = (l) => (e = Bs(e, l), n()), s = Yd(), i = async (l) => {
|
|
8805
8808
|
const u = {
|
|
8806
8809
|
...e,
|
|
8807
8810
|
...l,
|
|
8808
8811
|
fetch: l.fetch ?? e.fetch ?? globalThis.fetch,
|
|
8809
|
-
headers:
|
|
8812
|
+
headers: ji(e.headers, l.headers),
|
|
8810
8813
|
serializedBody: void 0
|
|
8811
8814
|
};
|
|
8812
8815
|
u.security && await Zd({
|
|
@@ -8904,7 +8907,7 @@ const Yd = () => ({
|
|
|
8904
8907
|
setConfig: r,
|
|
8905
8908
|
trace: a("TRACE")
|
|
8906
8909
|
};
|
|
8907
|
-
}, Qd = Hi(
|
|
8910
|
+
}, Qd = Gi(Hi({
|
|
8908
8911
|
baseUrl: "http://localhost:4096"
|
|
8909
8912
|
}));
|
|
8910
8913
|
class Le {
|
|
@@ -9488,7 +9491,7 @@ class mf extends Le {
|
|
|
9488
9491
|
});
|
|
9489
9492
|
}
|
|
9490
9493
|
}
|
|
9491
|
-
class
|
|
9494
|
+
class Wi extends Le {
|
|
9492
9495
|
/**
|
|
9493
9496
|
* Remove OAuth credentials for an MCP server
|
|
9494
9497
|
*/
|
|
@@ -9546,7 +9549,7 @@ class Gi extends Le {
|
|
|
9546
9549
|
class gf extends Le {
|
|
9547
9550
|
constructor() {
|
|
9548
9551
|
super(...arguments);
|
|
9549
|
-
ee(this, "auth", new
|
|
9552
|
+
ee(this, "auth", new Wi({ client: this._client }));
|
|
9550
9553
|
}
|
|
9551
9554
|
/**
|
|
9552
9555
|
* Get MCP server status
|
|
@@ -9779,7 +9782,7 @@ class wf extends Le {
|
|
|
9779
9782
|
ee(this, "lsp", new bf({ client: this._client }));
|
|
9780
9783
|
ee(this, "formatter", new yf({ client: this._client }));
|
|
9781
9784
|
ee(this, "tui", new xf({ client: this._client }));
|
|
9782
|
-
ee(this, "auth", new
|
|
9785
|
+
ee(this, "auth", new Wi({ client: this._client }));
|
|
9783
9786
|
ee(this, "event", new vf({ client: this._client }));
|
|
9784
9787
|
}
|
|
9785
9788
|
/**
|
|
@@ -9838,7 +9841,7 @@ function Sf(t) {
|
|
|
9838
9841
|
...t.headers,
|
|
9839
9842
|
"x-opencode-directory": encodeURIComponent(t.directory)
|
|
9840
9843
|
});
|
|
9841
|
-
const e =
|
|
9844
|
+
const e = Gi(t);
|
|
9842
9845
|
return e.interceptors.request.use((n) => Tf(n, t == null ? void 0 : t.directory)), e.interceptors.error.use(kf), new wf({ client: e });
|
|
9843
9846
|
}
|
|
9844
9847
|
const Af = 200, Rf = 50, Nf = 4 * 60 * 1e3;
|
|
@@ -10096,7 +10099,7 @@ function Cf() {
|
|
|
10096
10099
|
if (!K.ok) throw new Error(await K.text());
|
|
10097
10100
|
const { previewUrl: be, sessionId: oe, rawOpencodeSessionId: tt } = await K.json();
|
|
10098
10101
|
n.value = be, i.value = oe;
|
|
10099
|
-
const ot = tt ?? oe, X = await
|
|
10102
|
+
const ot = tt ?? oe, X = await Mi(), ht = {
|
|
10100
10103
|
"x-miniprogram-business-id": v.businessId ?? "",
|
|
10101
10104
|
"x-miniprogram-session-id": oe
|
|
10102
10105
|
};
|
|
@@ -10248,7 +10251,7 @@ function Df(t) {
|
|
|
10248
10251
|
}
|
|
10249
10252
|
}
|
|
10250
10253
|
const zf = ["preview", "published", "rolled_back"];
|
|
10251
|
-
function
|
|
10254
|
+
function Ki(t) {
|
|
10252
10255
|
return zf.includes(t.status);
|
|
10253
10256
|
}
|
|
10254
10257
|
function Bf(t) {
|
|
@@ -10285,8 +10288,8 @@ function jf() {
|
|
|
10285
10288
|
method: "POST",
|
|
10286
10289
|
body: JSON.stringify({
|
|
10287
10290
|
businessSlug: br(),
|
|
10288
|
-
businessName:
|
|
10289
|
-
country:
|
|
10291
|
+
businessName: bc(),
|
|
10292
|
+
country: $i()
|
|
10290
10293
|
}),
|
|
10291
10294
|
signal: AbortSignal.timeout(18e4)
|
|
10292
10295
|
}
|
|
@@ -10325,7 +10328,7 @@ function jf() {
|
|
|
10325
10328
|
)).previewUrl;
|
|
10326
10329
|
}
|
|
10327
10330
|
async function N(P) {
|
|
10328
|
-
a.value = P &&
|
|
10331
|
+
a.value = P && Ki(P) ? await b(P.id) : null;
|
|
10329
10332
|
}
|
|
10330
10333
|
async function _(P) {
|
|
10331
10334
|
const se = r.value.find((de) => de.id === P);
|
|
@@ -10534,7 +10537,7 @@ const Hf = ["aria-label", "title"], Gf = { class: "flex flex-col gap-[4px]" }, W
|
|
|
10534
10537
|
}, js = "mpv2:sidebar-collapsed", cr = "mpv2:chat-column-width", ch = 440, Rn = 320, ur = 720, uh = 360, dh = 30 * 60 * 1e3, fh = /* @__PURE__ */ at({
|
|
10535
10538
|
__name: "ControlPlaneView",
|
|
10536
10539
|
setup(t) {
|
|
10537
|
-
const e = yr(), n = Cf(), r = jf(), s =
|
|
10540
|
+
const e = yr(), n = Cf(), r = jf(), s = ha(), i = ce("workspace"), o = ce(!1), a = ce(ge(js, !1)), l = ce(!1), u = ce(null), f = ce(ie(cr, ch)), g = ce(!1);
|
|
10538
10541
|
let p = null, w = null, d = null, h = "", b = "";
|
|
10539
10542
|
const N = ne(() => r.sessions.find((k) => k.status === "active") ?? null), _ = ce(!1), E = ce(!1), A = ce(!1), L = ce(!1), T = ne(
|
|
10540
10543
|
() => r.sessions.find((k) => k.id === n.workspaceSessionId) ?? N.value
|
|
@@ -11237,7 +11240,7 @@ const Hf = ["aria-label", "title"], Gf = { class: "flex flex-col gap-[4px]" }, W
|
|
|
11237
11240
|
V(Oe, {
|
|
11238
11241
|
icon: "open_in_new",
|
|
11239
11242
|
variant: "tertiary",
|
|
11240
|
-
disabled: !$(
|
|
11243
|
+
disabled: !$(Ki)(W),
|
|
11241
11244
|
onClick: (rt) => U(W)
|
|
11242
11245
|
}, null, 8, ["disabled", "onClick"]),
|
|
11243
11246
|
V(Oe, {
|
|
@@ -11295,7 +11298,7 @@ const Hf = ["aria-label", "title"], Gf = { class: "flex flex-col gap-[4px]" }, W
|
|
|
11295
11298
|
tabindex: "0",
|
|
11296
11299
|
class: Be(["flex w-full cursor-pointer items-center justify-between gap-16 rounded-lg border bg-fm-color-neutral-white p-16 text-left transition hover:bg-fm-color-neutral-gray-100", W.status === "active" ? "border-fm-color-system-success-300" : "border-fm-color-neutral-gray-100"]),
|
|
11297
11300
|
onClick: (rt) => _e(W),
|
|
11298
|
-
onKeydown:
|
|
11301
|
+
onKeydown: fa((rt) => _e(W), ["enter"])
|
|
11299
11302
|
}, [
|
|
11300
11303
|
m("div", nh, [
|
|
11301
11304
|
m("div", rh, [
|