@stackone/malachite 0.3.0 → 0.3.2
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.
- package/dist/index.d.ts +0 -1
- package/dist/index.js +156 -149
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -31,7 +31,7 @@ const P5 = (e) => /* @__PURE__ */ n.createElement("svg", { width: 16, height: 17
|
|
|
31
31
|
onClick: o
|
|
32
32
|
}
|
|
33
33
|
);
|
|
34
|
-
},
|
|
34
|
+
}, S5 = (e) => /* @__PURE__ */ n.createElement("svg", { width: 16, height: 17, viewBox: "0 0 16 17", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ n.createElement("g", { id: "Layer_2" }, /* @__PURE__ */ n.createElement("path", { id: "Vector", d: "M11.8008 10.0085V14.6028", stroke: "#7B7B7B", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ n.createElement("path", { id: "Vector_2", d: "M14.1041 12.302H9.50977", stroke: "#7B7B7B", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ n.createElement("path", { id: "Vector_3", d: "M4.9441 10.0161H3.42029C2.57872 10.0161 1.89648 10.6983 1.89648 11.5399V13.0637C1.89648 13.9053 2.57872 14.5875 3.42029 14.5875H4.9441C5.78568 14.5875 6.46791 13.9053 6.46791 13.0637V11.5399C6.46791 10.6983 5.78568 10.0161 4.9441 10.0161Z", stroke: "#7B7B7B", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ n.createElement("path", { id: "Vector_4", d: "M4.9441 2.39722H3.42029C2.57872 2.39722 1.89648 3.07945 1.89648 3.92103V5.44484C1.89648 6.28641 2.57872 6.96865 3.42029 6.96865H4.9441C5.78568 6.96865 6.46791 6.28641 6.46791 5.44484V3.92103C6.46791 3.07945 5.78568 2.39722 4.9441 2.39722Z", stroke: "#7B7B7B", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ n.createElement("path", { id: "Vector_5", d: "M12.5632 2.39722H11.0394C10.1979 2.39722 9.51562 3.07945 9.51562 3.92103V5.44484C9.51562 6.28641 10.1979 6.96865 11.0394 6.96865H12.5632C13.4048 6.96865 14.0871 6.28641 14.0871 5.44484V3.92103C14.0871 3.07945 13.4048 2.39722 12.5632 2.39722Z", stroke: "#7B7B7B", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }))), K5 = ({
|
|
35
35
|
size: e = 16,
|
|
36
36
|
className: t = "",
|
|
37
37
|
style: r = {},
|
|
@@ -45,7 +45,7 @@ const P5 = (e) => /* @__PURE__ */ n.createElement("svg", { width: 16, height: 17
|
|
|
45
45
|
...r
|
|
46
46
|
};
|
|
47
47
|
return /* @__PURE__ */ c(
|
|
48
|
-
|
|
48
|
+
S5,
|
|
49
49
|
{
|
|
50
50
|
className: t,
|
|
51
51
|
style: a,
|
|
@@ -489,7 +489,7 @@ const P5 = (e) => /* @__PURE__ */ n.createElement("svg", { width: 16, height: 17
|
|
|
489
489
|
onClick: o
|
|
490
490
|
}
|
|
491
491
|
);
|
|
492
|
-
},
|
|
492
|
+
}, S6 = (e) => /* @__PURE__ */ n.createElement("svg", { width: 13, height: 14, viewBox: "0 0 13 14", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ n.createElement("path", { d: "M8.24023 8.67188H9.45898C9.2749 9.8335 8.13232 10.6333 6.64062 10.6333C4.69824 10.6333 3.5874 9.49072 3.5874 7.52295V6.46924C3.5874 4.64746 4.77441 3.44775 6.5708 3.44775C8.37988 3.44775 9.47803 4.64111 9.47803 6.60889V7.35791H4.83789V7.66895C4.83789 8.83691 5.54248 9.58594 6.63428 9.58594C7.45312 9.58594 8.06885 9.23682 8.24023 8.67188ZM6.55811 4.48877C5.48535 4.48877 4.83789 5.2251 4.83789 6.46289H8.22754C8.22754 5.23145 7.60547 4.48877 6.55811 4.48877Z", fill: "#0A0A0A" })), K6 = ({
|
|
493
493
|
size: e = 16,
|
|
494
494
|
className: t = "",
|
|
495
495
|
style: r = {},
|
|
@@ -503,7 +503,7 @@ const P5 = (e) => /* @__PURE__ */ n.createElement("svg", { width: 16, height: 17
|
|
|
503
503
|
...r
|
|
504
504
|
};
|
|
505
505
|
return /* @__PURE__ */ c(
|
|
506
|
-
|
|
506
|
+
S6,
|
|
507
507
|
{
|
|
508
508
|
className: t,
|
|
509
509
|
style: a,
|
|
@@ -931,7 +931,7 @@ const P5 = (e) => /* @__PURE__ */ n.createElement("svg", { width: 16, height: 17
|
|
|
931
931
|
...r
|
|
932
932
|
};
|
|
933
933
|
return /* @__PURE__ */ c(P2, { className: t, style: a, onClick: o });
|
|
934
|
-
},
|
|
934
|
+
}, S2 = (e) => /* @__PURE__ */ n.createElement("svg", { width: "1em", height: "1em", viewBox: "0 0 17 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ n.createElement("g", { id: "Frame" }, /* @__PURE__ */ n.createElement("path", { id: "Vector", d: "M15.5 8.00038C15.5 8.19929 15.421 8.39005 15.2803 8.5307C15.1397 8.67136 14.9489 8.75038 14.75 8.75038H13.2137L10.9206 13.336C10.8583 13.4605 10.7626 13.5652 10.6441 13.6384C10.5257 13.7116 10.3892 13.7504 10.25 13.7504H10.2125C10.0671 13.743 9.92691 13.6935 9.80915 13.6078C9.69139 13.5221 9.60113 13.404 9.54937 13.2679L6.1875 4.44725L4.4325 8.31288C4.37262 8.44353 4.27645 8.55422 4.15545 8.63178C4.03446 8.70935 3.89372 8.75051 3.75 8.75038H1.75C1.55109 8.75038 1.36032 8.67136 1.21967 8.5307C1.07902 8.39005 1 8.19929 1 8.00038C1 7.80146 1.07902 7.6107 1.21967 7.47005C1.36032 7.32939 1.55109 7.25038 1.75 7.25038H3.26688L5.5675 2.18788C5.62886 2.05331 5.72862 1.93989 5.85426 1.86187C5.9799 1.78385 6.12581 1.74472 6.27362 1.7494C6.42144 1.75407 6.56458 1.80235 6.68504 1.88815C6.80549 1.97395 6.8979 2.09345 6.95062 2.23163L10.3431 11.1354L12.0794 7.66288C12.1419 7.53872 12.2378 7.43439 12.3562 7.36155C12.4746 7.28871 12.611 7.25022 12.75 7.25038H14.75C14.9489 7.25038 15.1397 7.32939 15.2803 7.47005C15.421 7.6107 15.5 7.80146 15.5 8.00038Z", fill: "#00AF66" }))), K2 = ({
|
|
935
935
|
size: e = 16,
|
|
936
936
|
className: t = "",
|
|
937
937
|
style: r = {},
|
|
@@ -945,7 +945,7 @@ const P5 = (e) => /* @__PURE__ */ n.createElement("svg", { width: 16, height: 17
|
|
|
945
945
|
...r
|
|
946
946
|
};
|
|
947
947
|
return /* @__PURE__ */ c(
|
|
948
|
-
|
|
948
|
+
S2,
|
|
949
949
|
{
|
|
950
950
|
className: t,
|
|
951
951
|
style: a,
|
|
@@ -1271,7 +1271,7 @@ const P5 = (e) => /* @__PURE__ */ n.createElement("svg", { width: 16, height: 17
|
|
|
1271
1271
|
return /* @__PURE__ */ c(b3, { className: t, style: a, onClick: o });
|
|
1272
1272
|
}, F = {
|
|
1273
1273
|
AccountIcon: Y5,
|
|
1274
|
-
AccountsIcon:
|
|
1274
|
+
AccountsIcon: K5,
|
|
1275
1275
|
AddIcon: R5,
|
|
1276
1276
|
AdvancedLogsIcon: j5,
|
|
1277
1277
|
ApiKeysIcon: T5,
|
|
@@ -1298,7 +1298,7 @@ const P5 = (e) => /* @__PURE__ */ n.createElement("svg", { width: 16, height: 17
|
|
|
1298
1298
|
DownloadIcon: Q6,
|
|
1299
1299
|
EditIcon: H6,
|
|
1300
1300
|
EnableIcon: Y6,
|
|
1301
|
-
EnumIcon:
|
|
1301
|
+
EnumIcon: K6,
|
|
1302
1302
|
ErrorCircleFilled: R6,
|
|
1303
1303
|
ExpandIcon: j6,
|
|
1304
1304
|
EyeClosedIcon: T6,
|
|
@@ -1325,7 +1325,7 @@ const P5 = (e) => /* @__PURE__ */ n.createElement("svg", { width: 16, height: 17
|
|
|
1325
1325
|
PlusIcon: Q2,
|
|
1326
1326
|
PreviewIcon: H2,
|
|
1327
1327
|
ProgrammaticWebhookIcon: Y2,
|
|
1328
|
-
PulseIcon:
|
|
1328
|
+
PulseIcon: K2,
|
|
1329
1329
|
RefreshIcon: R2,
|
|
1330
1330
|
RejectIcon: j2,
|
|
1331
1331
|
ReloadIcon: T2,
|
|
@@ -1359,8 +1359,8 @@ function x(e, t = "") {
|
|
|
1359
1359
|
}, getRegex: () => new RegExp(r, t) };
|
|
1360
1360
|
return o;
|
|
1361
1361
|
}
|
|
1362
|
-
var V = { 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, listReplaceTabs: /^\t+/, listReplaceNesting: /^ {1,4}(?=( {4})*[^ ])/g, listIsTask: /^\[[ xX]\] /, listReplaceTask: /^\[[ 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, unescapeTest: /&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig, caret: /(^|[^\[])\^/g, percentDecode: /%25/g, findPipe: /\|/g, splitPipe: / \|/, slashPipe: /\\\|/g, carriageReturn: /\r\n|\r/g, spaceLine: /^ +$/gm, notSpaceStart: /^\S*/, endingNewline: /\n$/, listItemRegex: (e) => new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`), nextBulletRegex: (e) => new RegExp(`^ {0,${Math.min(3, e - 1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`), hrRegex: (e) => new RegExp(`^ {0,${Math.min(3, e - 1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`), fencesBeginRegex: (e) => new RegExp(`^ {0,${Math.min(3, e - 1)}}(?:\`\`\`|~~~)`), headingBeginRegex: (e) => new RegExp(`^ {0,${Math.min(3, e - 1)}}#`), htmlBeginRegex: (e) => new RegExp(`^ {0,${Math.min(3, e - 1)}}<(?:[a-z].*>|!--)`, "i") }, v3 = /^(?:[ \t]*(?:\n|$))+/, A3 = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, y3 = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, i1 = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, E3 = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, H1 = /(?:[*+-]|\d{1,9}[.)])/, c5 = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, C5 = x(c5).replace(/bull/g, H1).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(), k3 = x(c5).replace(/bull/g, H1).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(), P1 = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, B3 = /^[^\n]+/, Y1 = /(?!\s*\])(?:\\.|[^\[\]\\])+/, M3 = x(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", Y1).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), V3 = x(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, H1).getRegex(), w1 = "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",
|
|
1363
|
-
]`).replace("lheading", C5).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex() }, I3 = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, Q3 = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, h5 = /^( {2,}|\\)\n(?!\s*$)/, G3 = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, f1 = /[\p{P}\p{S}]/u, N1 = /[\s\p{P}\p{S}]/u, d5 = /[^\s\p{P}\p{S}]/u, H3 = x(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, N1).getRegex(), g5 = /(?!~)[\p{P}\p{S}]/u, P3 = /(?!~)[\s\p{P}\p{S}]/u, Y3 = /(?:[^\s\p{P}\p{S}]|~)/u,
|
|
1362
|
+
var V = { 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, listReplaceTabs: /^\t+/, listReplaceNesting: /^ {1,4}(?=( {4})*[^ ])/g, listIsTask: /^\[[ xX]\] /, listReplaceTask: /^\[[ 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, unescapeTest: /&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig, caret: /(^|[^\[])\^/g, percentDecode: /%25/g, findPipe: /\|/g, splitPipe: / \|/, slashPipe: /\\\|/g, carriageReturn: /\r\n|\r/g, spaceLine: /^ +$/gm, notSpaceStart: /^\S*/, endingNewline: /\n$/, listItemRegex: (e) => new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`), nextBulletRegex: (e) => new RegExp(`^ {0,${Math.min(3, e - 1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`), hrRegex: (e) => new RegExp(`^ {0,${Math.min(3, e - 1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`), fencesBeginRegex: (e) => new RegExp(`^ {0,${Math.min(3, e - 1)}}(?:\`\`\`|~~~)`), headingBeginRegex: (e) => new RegExp(`^ {0,${Math.min(3, e - 1)}}#`), htmlBeginRegex: (e) => new RegExp(`^ {0,${Math.min(3, e - 1)}}<(?:[a-z].*>|!--)`, "i") }, v3 = /^(?:[ \t]*(?:\n|$))+/, A3 = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, y3 = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, i1 = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, E3 = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, H1 = /(?:[*+-]|\d{1,9}[.)])/, c5 = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, C5 = x(c5).replace(/bull/g, H1).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(), k3 = x(c5).replace(/bull/g, H1).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(), P1 = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, B3 = /^[^\n]+/, Y1 = /(?!\s*\])(?:\\.|[^\[\]\\])+/, M3 = x(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", Y1).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), V3 = x(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, H1).getRegex(), w1 = "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", S1 = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, L3 = x("^ {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", S1).replace("tag", w1).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), s5 = x(P1).replace("hr", i1).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[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", w1).getRegex(), D3 = x(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", s5).getRegex(), K1 = { blockquote: D3, code: A3, def: M3, fences: y3, heading: E3, hr: i1, html: L3, lheading: C5, list: V3, newline: v3, paragraph: s5, table: o1, text: B3 }, z1 = x("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", i1).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[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", w1).getRegex(), F3 = { ...K1, lheading: k3, table: z1, paragraph: x(P1).replace("hr", i1).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", z1).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", w1).getRegex() }, Z3 = { ...K1, html: x(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", S1).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: o1, lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/, paragraph: x(P1).replace("hr", i1).replace("heading", ` *#{1,6} *[^
|
|
1363
|
+
]`).replace("lheading", C5).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex() }, I3 = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, Q3 = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, h5 = /^( {2,}|\\)\n(?!\s*$)/, G3 = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, f1 = /[\p{P}\p{S}]/u, N1 = /[\s\p{P}\p{S}]/u, d5 = /[^\s\p{P}\p{S}]/u, H3 = x(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, N1).getRegex(), g5 = /(?!~)[\p{P}\p{S}]/u, P3 = /(?!~)[\s\p{P}\p{S}]/u, Y3 = /(?:[^\s\p{P}\p{S}]|~)/u, S3 = /\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<(?! )[^<>]*?>/g, p5 = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/, K3 = x(p5, "u").replace(/punct/g, f1).getRegex(), N3 = x(p5, "u").replace(/punct/g, g5).getRegex(), u5 = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", R3 = x(u5, "gu").replace(/notPunctSpace/g, d5).replace(/punctSpace/g, N1).replace(/punct/g, f1).getRegex(), W3 = x(u5, "gu").replace(/notPunctSpace/g, Y3).replace(/punctSpace/g, P3).replace(/punct/g, g5).getRegex(), j3 = x("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, d5).replace(/punctSpace/g, N1).replace(/punct/g, f1).getRegex(), O3 = x(/\\(punct)/, "gu").replace(/punct/g, f1).getRegex(), T3 = x(/^<(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(), X3 = x(S1).replace("(?:-->|$)", "-->").getRegex(), q3 = x("^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", X3).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), p1 = /(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/, J3 = x(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label", p1).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), m5 = x(/^!?\[(label)\]\[(ref)\]/).replace("label", p1).replace("ref", Y1).getRegex(), w5 = x(/^!?\[(ref)\](?:\[\])?/).replace("ref", Y1).getRegex(), z3 = x("reflink|nolink(?!\\()", "g").replace("reflink", m5).replace("nolink", w5).getRegex(), R1 = { _backpedal: o1, anyPunctuation: O3, autolink: T3, blockSkip: S3, br: h5, code: Q3, del: o1, emStrongLDelim: K3, emStrongRDelimAst: R3, emStrongRDelimUnd: j3, escape: I3, link: J3, nolink: w5, punctuation: H3, reflink: m5, reflinkSearch: z3, tag: q3, text: G3, url: o1 }, U3 = { ...R1, link: x(/^!?\[(label)\]\((.*?)\)/).replace("label", p1).getRegex(), reflink: x(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", p1).getRegex() }, F1 = { ...R1, emStrongRDelimAst: W3, emStrongLDelim: N3, url: x(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/, "i").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~\\]))\1(?=[^~]|$)/, text: /^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/ }, $3 = { ...F1, br: x(h5).replace("{2,}", "*").getRegex(), text: x(F1.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex() }, s1 = { normal: K1, gfm: F3, pedantic: Z3 }, t1 = { normal: R1, gfm: F1, breaks: $3, pedantic: U3 }, _3 = { "&": "&", "<": "<", ">": ">", '"': """, "'": "'" }, U1 = (e) => _3[e];
|
|
1364
1364
|
function G(e, t) {
|
|
1365
1365
|
if (t) {
|
|
1366
1366
|
if (V.escapeTest.test(e)) return e.replace(V.escapeReplace, U1);
|
|
@@ -1482,21 +1482,21 @@ var u1 = class {
|
|
|
1482
1482
|
o = o ? `${o}
|
|
1483
1483
|
${s}` : s, a = a ? `${a}
|
|
1484
1484
|
${d}` : d;
|
|
1485
|
-
let
|
|
1486
|
-
if (this.lexer.state.top = !0, this.lexer.blockTokens(d, l, !0), this.lexer.state.top =
|
|
1487
|
-
let
|
|
1488
|
-
if ((
|
|
1489
|
-
if ((
|
|
1490
|
-
let m =
|
|
1485
|
+
let p = this.lexer.state.top;
|
|
1486
|
+
if (this.lexer.state.top = !0, this.lexer.blockTokens(d, l, !0), this.lexer.state.top = p, r.length === 0) break;
|
|
1487
|
+
let g = l.at(-1);
|
|
1488
|
+
if ((g == null ? void 0 : g.type) === "code") break;
|
|
1489
|
+
if ((g == null ? void 0 : g.type) === "blockquote") {
|
|
1490
|
+
let m = g, w = m.raw + `
|
|
1491
1491
|
` + r.join(`
|
|
1492
1492
|
`), f = this.blockquote(w);
|
|
1493
1493
|
l[l.length - 1] = f, o = o.substring(0, o.length - m.raw.length) + f.raw, a = a.substring(0, a.length - m.text.length) + f.text;
|
|
1494
1494
|
break;
|
|
1495
|
-
} else if ((
|
|
1496
|
-
let m =
|
|
1495
|
+
} else if ((g == null ? void 0 : g.type) === "list") {
|
|
1496
|
+
let m = g, w = m.raw + `
|
|
1497
1497
|
` + r.join(`
|
|
1498
1498
|
`), f = this.list(w);
|
|
1499
|
-
l[l.length - 1] = f, o = o.substring(0, o.length -
|
|
1499
|
+
l[l.length - 1] = f, o = o.substring(0, o.length - g.raw.length) + f.raw, a = a.substring(0, a.length - m.raw.length) + f.raw, r = w.substring(l.at(-1).raw.length).split(`
|
|
1500
1500
|
`);
|
|
1501
1501
|
continue;
|
|
1502
1502
|
}
|
|
@@ -1514,25 +1514,25 @@ ${d}` : d;
|
|
|
1514
1514
|
let h = !1, s = "", d = "";
|
|
1515
1515
|
if (!(t = l.exec(e)) || this.rules.block.hr.test(e)) break;
|
|
1516
1516
|
s = t[0], e = e.substring(s.length);
|
|
1517
|
-
let
|
|
1518
|
-
`, 1)[0].replace(this.rules.other.listReplaceTabs, (M) => " ".repeat(3 * M.length)),
|
|
1519
|
-
`, 1)[0], m = !
|
|
1520
|
-
if (this.options.pedantic ? (w = 2, d =
|
|
1521
|
-
`, e = e.substring(
|
|
1517
|
+
let p = t[2].split(`
|
|
1518
|
+
`, 1)[0].replace(this.rules.other.listReplaceTabs, (M) => " ".repeat(3 * M.length)), g = e.split(`
|
|
1519
|
+
`, 1)[0], m = !p.trim(), w = 0;
|
|
1520
|
+
if (this.options.pedantic ? (w = 2, d = p.trimStart()) : m ? w = t[1].length + 1 : (w = t[2].search(this.rules.other.nonSpaceChar), w = w > 4 ? 1 : w, d = p.slice(w), w += t[1].length), m && this.rules.other.blankLine.test(g) && (s += g + `
|
|
1521
|
+
`, e = e.substring(g.length + 1), h = !0), !h) {
|
|
1522
1522
|
let M = this.rules.other.nextBulletRegex(w), L = this.rules.other.hrRegex(w), k = this.rules.other.fencesBeginRegex(w), D = this.rules.other.headingBeginRegex(w), _ = this.rules.other.htmlBeginRegex(w);
|
|
1523
1523
|
for (; e; ) {
|
|
1524
1524
|
let Z = e.split(`
|
|
1525
1525
|
`, 1)[0], H;
|
|
1526
|
-
if (
|
|
1527
|
-
if (H.search(this.rules.other.nonSpaceChar) >= w || !
|
|
1526
|
+
if (g = Z, this.options.pedantic ? (g = g.replace(this.rules.other.listReplaceNesting, " "), H = g) : H = g.replace(this.rules.other.tabCharGlobal, " "), k.test(g) || D.test(g) || _.test(g) || M.test(g) || L.test(g)) break;
|
|
1527
|
+
if (H.search(this.rules.other.nonSpaceChar) >= w || !g.trim()) d += `
|
|
1528
1528
|
` + H.slice(w);
|
|
1529
1529
|
else {
|
|
1530
|
-
if (m ||
|
|
1530
|
+
if (m || p.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || k.test(p) || D.test(p) || L.test(p)) break;
|
|
1531
1531
|
d += `
|
|
1532
|
-
` +
|
|
1532
|
+
` + g;
|
|
1533
1533
|
}
|
|
1534
|
-
!m && !
|
|
1535
|
-
`, e = e.substring(Z.length + 1),
|
|
1534
|
+
!m && !g.trim() && (m = !0), s += Z + `
|
|
1535
|
+
`, e = e.substring(Z.length + 1), p = H.slice(w);
|
|
1536
1536
|
}
|
|
1537
1537
|
}
|
|
1538
1538
|
a.loose || (C ? a.loose = !0 : this.rules.other.doubleBlankLine.test(s) && (C = !0));
|
|
@@ -1544,7 +1544,7 @@ ${d}` : d;
|
|
|
1544
1544
|
else return;
|
|
1545
1545
|
a.raw = a.raw.trimEnd();
|
|
1546
1546
|
for (let h = 0; h < a.items.length; h++) if (this.lexer.state.top = !1, a.items[h].tokens = this.lexer.blockTokens(a.items[h].text, []), !a.loose) {
|
|
1547
|
-
let s = a.items[h].tokens.filter((
|
|
1547
|
+
let s = a.items[h].tokens.filter((p) => p.type === "space"), d = s.length > 0 && s.some((p) => this.rules.other.anyLine.test(p.raw));
|
|
1548
1548
|
a.loose = d;
|
|
1549
1549
|
}
|
|
1550
1550
|
if (a.loose) for (let h = 0; h < a.items.length; h++) a.items[h].loose = !0;
|
|
@@ -1649,13 +1649,13 @@ ${d}` : d;
|
|
|
1649
1649
|
}
|
|
1650
1650
|
if (i -= C, i > 0) continue;
|
|
1651
1651
|
C = Math.min(C, C + i + h);
|
|
1652
|
-
let d = [...o[0]][0].length,
|
|
1652
|
+
let d = [...o[0]][0].length, p = e.slice(0, a + o.index + d + C);
|
|
1653
1653
|
if (Math.min(a, C) % 2) {
|
|
1654
|
-
let m =
|
|
1655
|
-
return { type: "em", raw:
|
|
1654
|
+
let m = p.slice(1, -1);
|
|
1655
|
+
return { type: "em", raw: p, text: m, tokens: this.lexer.inlineTokens(m) };
|
|
1656
1656
|
}
|
|
1657
|
-
let
|
|
1658
|
-
return { type: "strong", raw:
|
|
1657
|
+
let g = p.slice(2, -2);
|
|
1658
|
+
return { type: "strong", raw: p, text: g, tokens: this.lexer.inlineTokens(g) };
|
|
1659
1659
|
}
|
|
1660
1660
|
}
|
|
1661
1661
|
}
|
|
@@ -1795,9 +1795,9 @@ ${d}` : d;
|
|
|
1795
1795
|
}
|
|
1796
1796
|
let h = t;
|
|
1797
1797
|
if ((C = this.options.extensions) != null && C.startBlock) {
|
|
1798
|
-
let s = 1 / 0, d = t.slice(1),
|
|
1799
|
-
this.options.extensions.startBlock.forEach((
|
|
1800
|
-
|
|
1798
|
+
let s = 1 / 0, d = t.slice(1), p;
|
|
1799
|
+
this.options.extensions.startBlock.forEach((g) => {
|
|
1800
|
+
p = g.call({ lexer: this }, d), typeof p == "number" && p >= 0 && (s = Math.min(s, p));
|
|
1801
1801
|
}), s < 1 / 0 && s >= 0 && (h = t.substring(0, s + 1));
|
|
1802
1802
|
}
|
|
1803
1803
|
if (this.state.top && (i = this.tokenizer.paragraph(h))) {
|
|
@@ -1841,7 +1841,7 @@ ${d}` : d;
|
|
|
1841
1841
|
for (; t; ) {
|
|
1842
1842
|
l || (C = ""), l = !1;
|
|
1843
1843
|
let d;
|
|
1844
|
-
if ((h = (i = this.options.extensions) == null ? void 0 : i.inline) != null && h.some((
|
|
1844
|
+
if ((h = (i = this.options.extensions) == null ? void 0 : i.inline) != null && h.some((g) => (d = g.call({ lexer: this }, t, r)) ? (t = t.substring(d.raw.length), r.push(d), !0) : !1)) continue;
|
|
1845
1845
|
if (d = this.tokenizer.escape(t)) {
|
|
1846
1846
|
t = t.substring(d.raw.length), r.push(d);
|
|
1847
1847
|
continue;
|
|
@@ -1856,8 +1856,8 @@ ${d}` : d;
|
|
|
1856
1856
|
}
|
|
1857
1857
|
if (d = this.tokenizer.reflink(t, this.tokens.links)) {
|
|
1858
1858
|
t = t.substring(d.raw.length);
|
|
1859
|
-
let
|
|
1860
|
-
d.type === "text" && (
|
|
1859
|
+
let g = r.at(-1);
|
|
1860
|
+
d.type === "text" && (g == null ? void 0 : g.type) === "text" ? (g.raw += d.raw, g.text += d.text) : r.push(d);
|
|
1861
1861
|
continue;
|
|
1862
1862
|
}
|
|
1863
1863
|
if (d = this.tokenizer.emStrong(t, o, C)) {
|
|
@@ -1884,25 +1884,25 @@ ${d}` : d;
|
|
|
1884
1884
|
t = t.substring(d.raw.length), r.push(d);
|
|
1885
1885
|
continue;
|
|
1886
1886
|
}
|
|
1887
|
-
let
|
|
1887
|
+
let p = t;
|
|
1888
1888
|
if ((s = this.options.extensions) != null && s.startInline) {
|
|
1889
|
-
let
|
|
1889
|
+
let g = 1 / 0, m = t.slice(1), w;
|
|
1890
1890
|
this.options.extensions.startInline.forEach((f) => {
|
|
1891
|
-
w = f.call({ lexer: this }, m), typeof w == "number" && w >= 0 && (
|
|
1892
|
-
}),
|
|
1891
|
+
w = f.call({ lexer: this }, m), typeof w == "number" && w >= 0 && (g = Math.min(g, w));
|
|
1892
|
+
}), g < 1 / 0 && g >= 0 && (p = t.substring(0, g + 1));
|
|
1893
1893
|
}
|
|
1894
|
-
if (d = this.tokenizer.inlineText(
|
|
1894
|
+
if (d = this.tokenizer.inlineText(p)) {
|
|
1895
1895
|
t = t.substring(d.raw.length), d.raw.slice(-1) !== "_" && (C = d.raw.slice(-1)), l = !0;
|
|
1896
|
-
let
|
|
1897
|
-
(
|
|
1896
|
+
let g = r.at(-1);
|
|
1897
|
+
(g == null ? void 0 : g.type) === "text" ? (g.raw += d.raw, g.text += d.text) : r.push(d);
|
|
1898
1898
|
continue;
|
|
1899
1899
|
}
|
|
1900
1900
|
if (t) {
|
|
1901
|
-
let
|
|
1901
|
+
let g = "Infinite loop on byte: " + t.charCodeAt(0);
|
|
1902
1902
|
if (this.options.silent) {
|
|
1903
|
-
console.error(
|
|
1903
|
+
console.error(g);
|
|
1904
1904
|
break;
|
|
1905
|
-
} else throw new Error(
|
|
1905
|
+
} else throw new Error(g);
|
|
1906
1906
|
}
|
|
1907
1907
|
}
|
|
1908
1908
|
return r;
|
|
@@ -2310,7 +2310,7 @@ ${e}</tr>
|
|
|
2310
2310
|
if (["options", "block"].includes(l)) continue;
|
|
2311
2311
|
let C = l, i = r.hooks[C], h = a[C];
|
|
2312
2312
|
h1.passThroughHooks.has(l) ? a[C] = (s) => {
|
|
2313
|
-
if (this.defaults.async) return Promise.resolve(i.call(a, s)).then((
|
|
2313
|
+
if (this.defaults.async) return Promise.resolve(i.call(a, s)).then((p) => h.call(a, p));
|
|
2314
2314
|
let d = i.call(a, s);
|
|
2315
2315
|
return h.call(a, d);
|
|
2316
2316
|
} : a[C] = (...s) => {
|
|
@@ -2466,9 +2466,9 @@ var a7 = class {
|
|
|
2466
2466
|
this.renderer.elIdList.push(0);
|
|
2467
2467
|
const i = o.rows.map((s) => {
|
|
2468
2468
|
this.renderer.elIdList.push(0);
|
|
2469
|
-
const d = s.map((
|
|
2469
|
+
const d = s.map((p, g) => this.renderer.tableCell(this.parseInline(p.tokens), {
|
|
2470
2470
|
header: !1,
|
|
2471
|
-
align: r.align[
|
|
2471
|
+
align: r.align[g]
|
|
2472
2472
|
}));
|
|
2473
2473
|
return this.renderer.elIdList.pop(), this.renderer.tableRow(d);
|
|
2474
2474
|
});
|
|
@@ -2514,13 +2514,13 @@ var a7 = class {
|
|
|
2514
2514
|
});
|
|
2515
2515
|
return this.renderer.elIdList.pop(), t;
|
|
2516
2516
|
}
|
|
2517
|
-
}, n7 = a7,
|
|
2517
|
+
}, n7 = a7, K, y, B, Q1, a5, l7 = (a5 = class {
|
|
2518
2518
|
constructor(e = {}) {
|
|
2519
2519
|
L1(this, y);
|
|
2520
2520
|
v(this, "elIdList", []);
|
|
2521
|
-
L1(this,
|
|
2521
|
+
L1(this, K);
|
|
2522
2522
|
const { renderer: t } = e;
|
|
2523
|
-
q1(this,
|
|
2523
|
+
q1(this, K, e), t && typeof t == "object" && Object.entries(t).forEach(([r, o]) => {
|
|
2524
2524
|
const a = r, l = o;
|
|
2525
2525
|
!this[a] || a === "elementId" || a === "elIdList" || typeof l != "function" || Object.defineProperty(this, a, {
|
|
2526
2526
|
value(...C) {
|
|
@@ -2542,14 +2542,14 @@ var a7 = class {
|
|
|
2542
2542
|
return E(this, y, B).call(this, "p", e);
|
|
2543
2543
|
}
|
|
2544
2544
|
link(e, t) {
|
|
2545
|
-
const r = r5(e, e1(this,
|
|
2545
|
+
const r = r5(e, e1(this, K).baseURL), o = e1(this, K).openLinksInNewTab ? "_blank" : null;
|
|
2546
2546
|
return E(this, y, B).call(this, "a", t, {
|
|
2547
2547
|
href: r,
|
|
2548
2548
|
target: o
|
|
2549
2549
|
});
|
|
2550
2550
|
}
|
|
2551
2551
|
image(e, t, r = null) {
|
|
2552
|
-
const o = r5(e, e1(this,
|
|
2552
|
+
const o = r5(e, e1(this, K).baseURL);
|
|
2553
2553
|
return E(this, y, B).call(this, "img", null, {
|
|
2554
2554
|
src: o,
|
|
2555
2555
|
alt: t,
|
|
@@ -2557,7 +2557,7 @@ var a7 = class {
|
|
|
2557
2557
|
});
|
|
2558
2558
|
}
|
|
2559
2559
|
codespan(e, t = null) {
|
|
2560
|
-
const r = t ? `${e1(this,
|
|
2560
|
+
const r = t ? `${e1(this, K).langPrefix}${t}` : null;
|
|
2561
2561
|
return E(this, y, B).call(this, "code", e, { className: r });
|
|
2562
2562
|
}
|
|
2563
2563
|
code(e, t) {
|
|
@@ -2616,7 +2616,7 @@ var a7 = class {
|
|
|
2616
2616
|
br() {
|
|
2617
2617
|
return E(this, y, B).call(this, "br");
|
|
2618
2618
|
}
|
|
2619
|
-
},
|
|
2619
|
+
}, K = new WeakMap(), y = new WeakSet(), B = function(e, t = null, r = {}) {
|
|
2620
2620
|
const o = {
|
|
2621
2621
|
key: `marked-react-${this.elementId}`,
|
|
2622
2622
|
suppressHydrationWarning: !0
|
|
@@ -2757,7 +2757,7 @@ const x5 = ({
|
|
|
2757
2757
|
default:
|
|
2758
2758
|
return 400;
|
|
2759
2759
|
}
|
|
2760
|
-
},
|
|
2760
|
+
}, g = {
|
|
2761
2761
|
color: ((m) => {
|
|
2762
2762
|
switch (m) {
|
|
2763
2763
|
case "primary":
|
|
@@ -2787,12 +2787,12 @@ const x5 = ({
|
|
|
2787
2787
|
display: C ? "block" : void 0,
|
|
2788
2788
|
...h
|
|
2789
2789
|
};
|
|
2790
|
-
return /* @__PURE__ */ c("span", { className: i, style:
|
|
2790
|
+
return /* @__PURE__ */ c("span", { className: i, style: g, title: l, children: t });
|
|
2791
2791
|
}, p7 = ({
|
|
2792
2792
|
color: e,
|
|
2793
2793
|
size: t
|
|
2794
2794
|
}) => ({
|
|
2795
|
-
blockquote: (
|
|
2795
|
+
blockquote: (p) => /* @__PURE__ */ b(d1, { children: [
|
|
2796
2796
|
/* @__PURE__ */ c("br", {}),
|
|
2797
2797
|
/* @__PURE__ */ c(
|
|
2798
2798
|
"div",
|
|
@@ -2803,40 +2803,48 @@ const x5 = ({
|
|
|
2803
2803
|
borderRadius: "20px",
|
|
2804
2804
|
border: "1px solid var(--malachite-card-border)"
|
|
2805
2805
|
},
|
|
2806
|
-
children: Array.isArray(
|
|
2806
|
+
children: Array.isArray(p) ? p[0] : p
|
|
2807
2807
|
}
|
|
2808
2808
|
),
|
|
2809
2809
|
/* @__PURE__ */ c("br", {})
|
|
2810
2810
|
] }),
|
|
2811
|
-
paragraph: (
|
|
2811
|
+
paragraph: (p) => /* @__PURE__ */ c(
|
|
2812
2812
|
"div",
|
|
2813
2813
|
{
|
|
2814
2814
|
style: { marginBottom: "16px" },
|
|
2815
|
-
children:
|
|
2815
|
+
children: p
|
|
2816
2816
|
},
|
|
2817
2817
|
`paragraph-${Math.random().toString(36).substr(2, 9)}`
|
|
2818
2818
|
),
|
|
2819
|
-
codespan: (
|
|
2820
|
-
heading: (
|
|
2821
|
-
|
|
2819
|
+
codespan: (p) => /* @__PURE__ */ c(x5, { size: t, children: Array.isArray(p) ? p[0] : p }, `paragraph-${Math.random().toString(36).substr(2, 9)}`),
|
|
2820
|
+
heading: (p, g) => /* @__PURE__ */ b(d1, { children: [
|
|
2821
|
+
g === 1 ? /* @__PURE__ */ c(v5, { children: Array.isArray(p) ? p[0] : p }, `paragraph-${Math.random().toString(36).substr(2, 9)}`) : /* @__PURE__ */ c(A5, { children: Array.isArray(p) ? p[0] : p }, `paragraph-${Math.random().toString(36).substr(2, 9)}`),
|
|
2822
2822
|
/* @__PURE__ */ c("br", {})
|
|
2823
2823
|
] }),
|
|
2824
2824
|
br: () => /* @__PURE__ */ c("br", {}),
|
|
2825
|
-
text: (
|
|
2826
|
-
|
|
2825
|
+
text: (p) => /* @__PURE__ */ c(
|
|
2826
|
+
z,
|
|
2827
|
+
{
|
|
2828
|
+
color: e,
|
|
2829
|
+
size: t,
|
|
2830
|
+
children: Array.isArray(p) ? p[0] : p
|
|
2831
|
+
},
|
|
2832
|
+
`paragraph-${Math.random().toString(36).substr(2, 9)}`
|
|
2833
|
+
),
|
|
2834
|
+
strong: (p) => /* @__PURE__ */ c(
|
|
2827
2835
|
z,
|
|
2828
2836
|
{
|
|
2829
2837
|
fontWeight: "bold",
|
|
2830
2838
|
color: e,
|
|
2831
2839
|
size: t,
|
|
2832
|
-
children: Array.isArray(
|
|
2840
|
+
children: Array.isArray(p) ? p[0] : p
|
|
2833
2841
|
},
|
|
2834
|
-
|
|
2842
|
+
`paragraph-${Math.random().toString(36).substr(2, 9)}`
|
|
2835
2843
|
),
|
|
2836
|
-
link: (
|
|
2844
|
+
link: (p, g) => /* @__PURE__ */ c(
|
|
2837
2845
|
"a",
|
|
2838
2846
|
{
|
|
2839
|
-
href:
|
|
2847
|
+
href: p,
|
|
2840
2848
|
target: "_blank",
|
|
2841
2849
|
rel: "noopener noreferrer",
|
|
2842
2850
|
style: {
|
|
@@ -2850,13 +2858,13 @@ const x5 = ({
|
|
|
2850
2858
|
onMouseLeave: (m) => {
|
|
2851
2859
|
m.currentTarget.style.color = "var(--malachite-text-link-foreground)";
|
|
2852
2860
|
},
|
|
2853
|
-
children:
|
|
2861
|
+
children: g
|
|
2854
2862
|
},
|
|
2855
|
-
`
|
|
2863
|
+
`paragraph-${Math.random().toString(36).substr(2, 9)}`
|
|
2856
2864
|
),
|
|
2857
|
-
listItem: (
|
|
2858
|
-
const
|
|
2859
|
-
return /* @__PURE__ */ c("li", { style: { padding: "4px 0px" }, children:
|
|
2865
|
+
listItem: (p) => {
|
|
2866
|
+
const g = `list-item-${Math.random().toString(36).substr(2, 9)}`;
|
|
2867
|
+
return /* @__PURE__ */ c("li", { style: { padding: "4px 0px" }, children: p }, g);
|
|
2860
2868
|
}
|
|
2861
2869
|
}), u7 = (e) => {
|
|
2862
2870
|
const t = e.split(`
|
|
@@ -2920,7 +2928,7 @@ const x5 = ({
|
|
|
2920
2928
|
fullWidth: h = !1,
|
|
2921
2929
|
className: s = ""
|
|
2922
2930
|
}) => {
|
|
2923
|
-
const d = e === "vertical" ? "column" : "row",
|
|
2931
|
+
const d = e === "vertical" ? "column" : "row", p = J1(() => {
|
|
2924
2932
|
switch (o) {
|
|
2925
2933
|
case "center":
|
|
2926
2934
|
return "center";
|
|
@@ -2935,7 +2943,7 @@ const x5 = ({
|
|
|
2935
2943
|
default:
|
|
2936
2944
|
return "center";
|
|
2937
2945
|
}
|
|
2938
|
-
}, [o]),
|
|
2946
|
+
}, [o]), g = J1(() => {
|
|
2939
2947
|
switch (a) {
|
|
2940
2948
|
case "space-between":
|
|
2941
2949
|
return "space-between";
|
|
@@ -2954,8 +2962,8 @@ const x5 = ({
|
|
|
2954
2962
|
className: `flex ${s}`.trim(),
|
|
2955
2963
|
style: {
|
|
2956
2964
|
flexDirection: d,
|
|
2957
|
-
alignItems:
|
|
2958
|
-
justifyContent:
|
|
2965
|
+
alignItems: p,
|
|
2966
|
+
justifyContent: g,
|
|
2959
2967
|
gap: `${t}px`,
|
|
2960
2968
|
padding: l,
|
|
2961
2969
|
height: i ? "100%" : void 0,
|
|
@@ -2975,7 +2983,7 @@ const x5 = ({
|
|
|
2975
2983
|
m.stopPropagation(), i.current && clearTimeout(i.current), i.current = setTimeout(() => {
|
|
2976
2984
|
C(!0);
|
|
2977
2985
|
}, r * 1e3);
|
|
2978
|
-
},
|
|
2986
|
+
}, p = (m) => {
|
|
2979
2987
|
m.stopPropagation(), i.current && clearTimeout(i.current), C(!1);
|
|
2980
2988
|
};
|
|
2981
2989
|
return n1(() => () => {
|
|
@@ -2986,7 +2994,7 @@ const x5 = ({
|
|
|
2986
2994
|
ref: s,
|
|
2987
2995
|
className: "relative flex items-center",
|
|
2988
2996
|
onMouseEnter: d,
|
|
2989
|
-
onMouseLeave:
|
|
2997
|
+
onMouseLeave: p,
|
|
2990
2998
|
children: [
|
|
2991
2999
|
o ? /* @__PURE__ */ c("span", { children: t }) : t,
|
|
2992
3000
|
/* @__PURE__ */ c("div", { ref: h, role: "tooltip", style: (() => {
|
|
@@ -3065,25 +3073,24 @@ const x5 = ({
|
|
|
3065
3073
|
label: e,
|
|
3066
3074
|
hint: t,
|
|
3067
3075
|
tooltip: r,
|
|
3068
|
-
|
|
3069
|
-
|
|
3070
|
-
|
|
3071
|
-
|
|
3072
|
-
|
|
3073
|
-
|
|
3074
|
-
|
|
3075
|
-
children: d
|
|
3076
|
+
name: o,
|
|
3077
|
+
description: a,
|
|
3078
|
+
required: l = !1,
|
|
3079
|
+
loading: C = !1,
|
|
3080
|
+
formControl: i,
|
|
3081
|
+
loadingComponent: h,
|
|
3082
|
+
children: s
|
|
3076
3083
|
}) => {
|
|
3077
|
-
const
|
|
3084
|
+
const d = i ? /* @__PURE__ */ c(w7, { control: i, name: o, children: s }) : s;
|
|
3078
3085
|
return /* @__PURE__ */ b(a1, { direction: "vertical", size: 4, align: "stretch", children: [
|
|
3079
|
-
(e ?? t ??
|
|
3086
|
+
(e ?? t ?? a) && /* @__PURE__ */ b(a1, { direction: "vertical", size: 0, align: "stretch", children: [
|
|
3080
3087
|
/* @__PURE__ */ b("div", { className: "flex justify-between items-start", children: [
|
|
3081
|
-
/* @__PURE__ */ c(x7, { text: e, required:
|
|
3088
|
+
/* @__PURE__ */ c(x7, { text: e, required: l, tooltip: r }),
|
|
3082
3089
|
t && /* @__PURE__ */ c(f7, { text: t })
|
|
3083
3090
|
] }),
|
|
3084
|
-
|
|
3091
|
+
a && /* @__PURE__ */ c(b7, { text: a })
|
|
3085
3092
|
] }),
|
|
3086
|
-
|
|
3093
|
+
C ? h : d
|
|
3087
3094
|
] });
|
|
3088
3095
|
}, f7 = ({ text: e }) => /* @__PURE__ */ c(z, { size: "xsmall", color: "dimmed", className: "pr-2 relative top-[3px]", children: e }), b7 = ({ text: e }) => /* @__PURE__ */ c("div", { className: "pl-2", children: /* @__PURE__ */ c(j1, { color: "dimmed", size: "small", text: e ?? "" }) }), x7 = ({
|
|
3089
3096
|
text: e,
|
|
@@ -3176,15 +3183,15 @@ const x5 = ({
|
|
|
3176
3183
|
tooltip: h,
|
|
3177
3184
|
children: s,
|
|
3178
3185
|
className: d = "",
|
|
3179
|
-
...
|
|
3180
|
-
},
|
|
3186
|
+
...p
|
|
3187
|
+
}, g) => {
|
|
3181
3188
|
const m = [
|
|
3182
3189
|
v7(t),
|
|
3183
3190
|
A7(e),
|
|
3184
3191
|
C ? "w-full" : "",
|
|
3185
3192
|
i ? "max-w-full" : "",
|
|
3186
3193
|
d
|
|
3187
|
-
].filter(Boolean).join(" "), f = /* @__PURE__ */ c("button", { ref:
|
|
3194
|
+
].filter(Boolean).join(" "), f = /* @__PURE__ */ c("button", { ref: g, disabled: o || r, className: m, ...p, children: r ? /* @__PURE__ */ b("span", { className: "flex items-center justify-center", children: [
|
|
3188
3195
|
/* @__PURE__ */ c(y7, {}),
|
|
3189
3196
|
s
|
|
3190
3197
|
] }) : a && l === "start" ? /* @__PURE__ */ b("span", { className: "flex items-center justify-center", children: [
|
|
@@ -3229,8 +3236,8 @@ const C8 = ({ buttons: e, className: t = "" }) => /* @__PURE__ */ c("div", { cla
|
|
|
3229
3236
|
align: h,
|
|
3230
3237
|
fullHeight: s = !1,
|
|
3231
3238
|
border: d = "base",
|
|
3232
|
-
alignSelf:
|
|
3233
|
-
height:
|
|
3239
|
+
alignSelf: p,
|
|
3240
|
+
height: g,
|
|
3234
3241
|
footer: m,
|
|
3235
3242
|
className: w = "",
|
|
3236
3243
|
style: f = {}
|
|
@@ -3240,7 +3247,7 @@ const C8 = ({ buttons: e, className: t = "" }) => /* @__PURE__ */ c("div", { cla
|
|
|
3240
3247
|
C ? "card-dimmed" : "",
|
|
3241
3248
|
d === "rounded" ? "card-rounded" : "",
|
|
3242
3249
|
s ? "h-full" : "",
|
|
3243
|
-
|
|
3250
|
+
g ? "flex flex-col" : "",
|
|
3244
3251
|
o === "small" ? "text-sm" : "",
|
|
3245
3252
|
w
|
|
3246
3253
|
].filter(Boolean).join(" "), L = {
|
|
@@ -3248,13 +3255,13 @@ const C8 = ({ buttons: e, className: t = "" }) => /* @__PURE__ */ c("div", { cla
|
|
|
3248
3255
|
display: i ? "flex" : void 0,
|
|
3249
3256
|
flexDirection: i,
|
|
3250
3257
|
alignItems: h,
|
|
3251
|
-
...
|
|
3258
|
+
...g && { overflow: "auto", height: "100%" }
|
|
3252
3259
|
}, k = {
|
|
3253
3260
|
width: a,
|
|
3254
3261
|
minWidth: l,
|
|
3255
|
-
alignSelf:
|
|
3262
|
+
alignSelf: p,
|
|
3256
3263
|
...s && { height: "100%" },
|
|
3257
|
-
...
|
|
3264
|
+
...g && { height: g, display: "flex", flexDirection: "column" },
|
|
3258
3265
|
overflow: "hidden",
|
|
3259
3266
|
...f
|
|
3260
3267
|
};
|
|
@@ -3342,7 +3349,7 @@ const C8 = ({ buttons: e, className: t = "" }) => /* @__PURE__ */ c("div", { cla
|
|
|
3342
3349
|
children: /* @__PURE__ */ c("div", { className: "flex-1 flex items-center gap-3", children: /* @__PURE__ */ c("div", { className: "flex-1", children: /* @__PURE__ */ c("div", { className: "flex items-center gap-2.5", children: /* @__PURE__ */ c("span", { className: `text-[15px] font-normal ${a}`, children: e.label }) }) }) })
|
|
3343
3350
|
}
|
|
3344
3351
|
);
|
|
3345
|
-
}, B7 = ({ items: e, onItemSelected: t, selectedItem: r }) => /* @__PURE__ */ c("div", { className: "absolute top-full left-0 right-0 mt-2 bg-[var(--malachite-card-background)] border border-[var(--malachite-card-border)] rounded-xl shadow-[0px_2px_5px_0px_var(--malachite-card-shadow)] z-50 max-h-[400px] overflow-hidden", children: /* @__PURE__ */ c("div", { className: "flex flex-col gap-1 p-[6px] max-h-[400px] overflow-y-auto", children: e.map((o, a) => /* @__PURE__ */ b(g1.Fragment, { children: [
|
|
3352
|
+
}, B7 = ({ items: e, onItemSelected: t, selectedItem: r }) => /* @__PURE__ */ c("div", { className: "absolute top-full left-0 right-0 mt-2 bg-[var(--malachite-card-background)] border border-solid border-[var(--malachite-card-border)] rounded-xl shadow-[0px_2px_5px_0px_var(--malachite-card-shadow)] z-50 max-h-[400px] overflow-hidden", children: /* @__PURE__ */ c("div", { className: "flex flex-col gap-1 p-[6px] max-h-[400px] overflow-y-auto", children: e.map((o, a) => /* @__PURE__ */ b(g1.Fragment, { children: [
|
|
3346
3353
|
/* @__PURE__ */ c(
|
|
3347
3354
|
k7,
|
|
3348
3355
|
{
|
|
@@ -3364,8 +3371,8 @@ const C8 = ({ buttons: e, className: t = "" }) => /* @__PURE__ */ c("div", { cla
|
|
|
3364
3371
|
name: h,
|
|
3365
3372
|
required: s = !1,
|
|
3366
3373
|
loading: d,
|
|
3367
|
-
formControl:
|
|
3368
|
-
description:
|
|
3374
|
+
formControl: p,
|
|
3375
|
+
description: g
|
|
3369
3376
|
}) => {
|
|
3370
3377
|
const [m, w] = N(!1), [f, Q] = N(
|
|
3371
3378
|
e.find((k) => k.id === r)
|
|
@@ -3375,7 +3382,7 @@ const C8 = ({ buttons: e, className: t = "" }) => /* @__PURE__ */ c("div", { cla
|
|
|
3375
3382
|
m && M.current && !M.current.contains(D.target) && w(!1);
|
|
3376
3383
|
};
|
|
3377
3384
|
return document.addEventListener("click", k), () => document.removeEventListener("click", k);
|
|
3378
|
-
}, [m]), /* @__PURE__ */
|
|
3385
|
+
}, [m]), /* @__PURE__ */ c(
|
|
3379
3386
|
O1,
|
|
3380
3387
|
{
|
|
3381
3388
|
label: l,
|
|
@@ -3384,10 +3391,10 @@ const C8 = ({ buttons: e, className: t = "" }) => /* @__PURE__ */ c("div", { cla
|
|
|
3384
3391
|
name: h,
|
|
3385
3392
|
required: s,
|
|
3386
3393
|
loading: d,
|
|
3387
|
-
formControl:
|
|
3388
|
-
description:
|
|
3394
|
+
formControl: p,
|
|
3395
|
+
description: g,
|
|
3389
3396
|
loadingComponent: /* @__PURE__ */ c(E5, { size: "medium" }),
|
|
3390
|
-
children: [
|
|
3397
|
+
children: /* @__PURE__ */ b("div", { ref: M, className: "relative w-full", children: [
|
|
3391
3398
|
/* @__PURE__ */ c(
|
|
3392
3399
|
E7,
|
|
3393
3400
|
{
|
|
@@ -3409,7 +3416,7 @@ const C8 = ({ buttons: e, className: t = "" }) => /* @__PURE__ */ c("div", { cla
|
|
|
3409
3416
|
selectedItem: f
|
|
3410
3417
|
}
|
|
3411
3418
|
)
|
|
3412
|
-
]
|
|
3419
|
+
] })
|
|
3413
3420
|
}
|
|
3414
3421
|
);
|
|
3415
3422
|
};
|
|
@@ -3426,7 +3433,7 @@ const d8 = ({
|
|
|
3426
3433
|
children: h,
|
|
3427
3434
|
className: s = ""
|
|
3428
3435
|
}) => {
|
|
3429
|
-
const
|
|
3436
|
+
const p = r ? ((w) => {
|
|
3430
3437
|
switch (w) {
|
|
3431
3438
|
case "small":
|
|
3432
3439
|
return 8;
|
|
@@ -3440,7 +3447,7 @@ const d8 = ({
|
|
|
3440
3447
|
flexDirection: o === "vertical" ? "column" : "row",
|
|
3441
3448
|
justifyContent: e,
|
|
3442
3449
|
alignItems: t,
|
|
3443
|
-
gap:
|
|
3450
|
+
gap: p ? `${p}px` : void 0,
|
|
3444
3451
|
height: a ? "100%" : void 0,
|
|
3445
3452
|
flex: l ? 1 : void 0,
|
|
3446
3453
|
width: C || void 0
|
|
@@ -4115,7 +4122,7 @@ function T1() {
|
|
|
4115
4122
|
function B5(e) {
|
|
4116
4123
|
typeof window < "u" && localStorage.setItem(k5, e);
|
|
4117
4124
|
}
|
|
4118
|
-
function
|
|
4125
|
+
function S7(e) {
|
|
4119
4126
|
typeof window < "u" && localStorage.setItem(x1, JSON.stringify(e));
|
|
4120
4127
|
}
|
|
4121
4128
|
function l1(e, t) {
|
|
@@ -4125,8 +4132,8 @@ function l1(e, t) {
|
|
|
4125
4132
|
...t.colors.destructive
|
|
4126
4133
|
}), t.colors.success && (r.colors.success = { ...r.colors.success, ...t.colors.success }), t.colors.warning && (r.colors.warning = { ...r.colors.warning, ...t.colors.warning }), t.colors.error && (r.colors.error = { ...r.colors.error, ...t.colors.error }), t.colors.buttonList && (r.colors.buttonList = { ...r.colors.buttonList, ...t.colors.buttonList }), t.colors.text && (r.colors.text = { ...r.colors.text, ...t.colors.text })), r;
|
|
4127
4134
|
}
|
|
4128
|
-
function
|
|
4129
|
-
|
|
4135
|
+
function K7(e) {
|
|
4136
|
+
S7(e);
|
|
4130
4137
|
const t = c1(), o = l1(t === "dark" ? U : u, e);
|
|
4131
4138
|
I(o, document.documentElement), $.forEach((a) => {
|
|
4132
4139
|
I(o, a);
|
|
@@ -4148,7 +4155,7 @@ function u8() {
|
|
|
4148
4155
|
return c1() === "dark" ? (M5(), "light") : (V5(), "dark");
|
|
4149
4156
|
}
|
|
4150
4157
|
function m8(e) {
|
|
4151
|
-
|
|
4158
|
+
K7(e);
|
|
4152
4159
|
}
|
|
4153
4160
|
function w8() {
|
|
4154
4161
|
const e = c1();
|
|
@@ -4418,8 +4425,8 @@ const R7 = ({ children: e }) => {
|
|
|
4418
4425
|
description: h,
|
|
4419
4426
|
loading: s = !1,
|
|
4420
4427
|
readOnly: d = !1,
|
|
4421
|
-
type:
|
|
4422
|
-
size:
|
|
4428
|
+
type: p = "text",
|
|
4429
|
+
size: g = "medium",
|
|
4423
4430
|
defaultValue: m,
|
|
4424
4431
|
disabled: w,
|
|
4425
4432
|
prefixValue: f,
|
|
@@ -4445,7 +4452,7 @@ const R7 = ({ children: e }) => {
|
|
|
4445
4452
|
default:
|
|
4446
4453
|
return "h-10 py-[10px] text-[15px] leading-[1.4]";
|
|
4447
4454
|
}
|
|
4448
|
-
}, y1 =
|
|
4455
|
+
}, y1 = p === "password" ? Z ? "text" : "password" : p, E1 = a || f || Q, k1 = i || k && w && R || (L == null ? void 0 : L.length) || p === "password", B1 = [
|
|
4449
4456
|
"relative",
|
|
4450
4457
|
"flex items-center",
|
|
4451
4458
|
"w-full",
|
|
@@ -4458,7 +4465,7 @@ const R7 = ({ children: e }) => {
|
|
|
4458
4465
|
i ? "shadow-error" : "shadow-default",
|
|
4459
4466
|
i ? "border-[var(--malachite-destructive-border)]" : "border-[var(--malachite-card-border)]",
|
|
4460
4467
|
i ? "focus-within:border-[var(--malachite-destructive-border-hover)] hover:border-[var(--malachite-destructive-border-hover)]" : "focus-within:border-[var(--malachite-primary-border-hover)] hover:border-[var(--malachite-primary-border-hover)]",
|
|
4461
|
-
T(
|
|
4468
|
+
T(g).split(" ").find((W) => W.startsWith("h-")) || "h-10"
|
|
4462
4469
|
].filter(Boolean).join(" ");
|
|
4463
4470
|
return /* @__PURE__ */ c(
|
|
4464
4471
|
O1,
|
|
@@ -4471,7 +4478,7 @@ const R7 = ({ children: e }) => {
|
|
|
4471
4478
|
loading: s,
|
|
4472
4479
|
formControl: M,
|
|
4473
4480
|
description: h,
|
|
4474
|
-
loadingComponent: /* @__PURE__ */ c(E5, { size:
|
|
4481
|
+
loadingComponent: /* @__PURE__ */ c(E5, { size: g }),
|
|
4475
4482
|
children: /* @__PURE__ */ b("div", { className: B1, children: [
|
|
4476
4483
|
E1 && /* @__PURE__ */ c("div", { className: "flex items-center pl-3 pr-1 flex-shrink-0 pointer-events-none", children: /* @__PURE__ */ c(
|
|
4477
4484
|
W7,
|
|
@@ -4492,14 +4499,14 @@ const R7 = ({ children: e }) => {
|
|
|
4492
4499
|
disabled: w || d,
|
|
4493
4500
|
readOnly: d,
|
|
4494
4501
|
autoComplete: "off",
|
|
4495
|
-
className: `flex-1 bg-transparent border-none outline-none text-[var(--malachite-text-primary)] placeholder:text-[var(--malachite-text-placeholder)] disabled:text-[var(--malachite-text-dimmed)] disabled:cursor-not-allowed ${T(
|
|
4502
|
+
className: `flex-1 bg-transparent border-none outline-none text-[var(--malachite-text-primary)] placeholder:text-[var(--malachite-text-placeholder)] disabled:text-[var(--malachite-text-dimmed)] disabled:cursor-not-allowed ${T(g).split(" ")} px-[16px] py-[12px]`,
|
|
4496
4503
|
name: l
|
|
4497
4504
|
}
|
|
4498
4505
|
),
|
|
4499
4506
|
k1 && /* @__PURE__ */ b(
|
|
4500
4507
|
"div",
|
|
4501
4508
|
{
|
|
4502
|
-
className: `flex items-center pl-1 flex-shrink-0 ${
|
|
4509
|
+
className: `flex items-center pl-1 flex-shrink-0 ${p === "password" ? "pr-0" : "pr-3"}`,
|
|
4503
4510
|
children: [
|
|
4504
4511
|
/* @__PURE__ */ c(
|
|
4505
4512
|
j7,
|
|
@@ -4508,7 +4515,7 @@ const R7 = ({ children: e }) => {
|
|
|
4508
4515
|
disabled: w,
|
|
4509
4516
|
defaultValue: R,
|
|
4510
4517
|
onCopyClick: k,
|
|
4511
|
-
type:
|
|
4518
|
+
type: p,
|
|
4512
4519
|
showPassword: Z,
|
|
4513
4520
|
onTogglePassword: () => H(!Z)
|
|
4514
4521
|
}
|
|
@@ -4581,8 +4588,8 @@ const R7 = ({ children: e }) => {
|
|
|
4581
4588
|
description: h,
|
|
4582
4589
|
loading: s = !1,
|
|
4583
4590
|
readOnly: d = !1,
|
|
4584
|
-
size:
|
|
4585
|
-
defaultValue:
|
|
4591
|
+
size: p = "medium",
|
|
4592
|
+
defaultValue: g,
|
|
4586
4593
|
disabled: m,
|
|
4587
4594
|
prefixValue: w,
|
|
4588
4595
|
prefixSecondaryValue: f,
|
|
@@ -4597,11 +4604,11 @@ const R7 = ({ children: e }) => {
|
|
|
4597
4604
|
maxLength: H,
|
|
4598
4605
|
resize: R = "vertical"
|
|
4599
4606
|
}) => {
|
|
4600
|
-
const [v1, A1] = N(
|
|
4601
|
-
const X =
|
|
4607
|
+
const [v1, A1] = N(g || ""), T = D !== void 0 ? D : v1, y1 = D !== void 0, E1 = (S) => {
|
|
4608
|
+
const X = S.target.value;
|
|
4602
4609
|
y1 || A1(X), k == null || k(X);
|
|
4603
|
-
}, k1 = (
|
|
4604
|
-
switch (
|
|
4610
|
+
}, k1 = (S) => {
|
|
4611
|
+
switch (S) {
|
|
4605
4612
|
case "small":
|
|
4606
4613
|
return "text-sm";
|
|
4607
4614
|
case "medium":
|
|
@@ -4611,16 +4618,16 @@ const R7 = ({ children: e }) => {
|
|
|
4611
4618
|
default:
|
|
4612
4619
|
return "text-[15px] leading-[1.4]";
|
|
4613
4620
|
}
|
|
4614
|
-
}, B1 = (
|
|
4621
|
+
}, B1 = (S, X) => {
|
|
4615
4622
|
const M1 = {
|
|
4616
4623
|
small: 20,
|
|
4617
4624
|
medium: 22,
|
|
4618
4625
|
large: 24
|
|
4619
|
-
}[
|
|
4626
|
+
}[S], L5 = {
|
|
4620
4627
|
small: 16,
|
|
4621
4628
|
medium: 24,
|
|
4622
4629
|
large: 24
|
|
4623
|
-
}[
|
|
4630
|
+
}[S];
|
|
4624
4631
|
return `${M1 * X + L5}px`;
|
|
4625
4632
|
}, W = a || w || f, C1 = i || L && m && T || (M == null ? void 0 : M.length);
|
|
4626
4633
|
return /* @__PURE__ */ c(
|
|
@@ -4634,9 +4641,9 @@ const R7 = ({ children: e }) => {
|
|
|
4634
4641
|
loading: s,
|
|
4635
4642
|
formControl: Q,
|
|
4636
4643
|
description: h,
|
|
4637
|
-
loadingComponent: /* @__PURE__ */ c(T7, { size:
|
|
4644
|
+
loadingComponent: /* @__PURE__ */ c(T7, { size: p, rows: Z }),
|
|
4638
4645
|
children: (() => {
|
|
4639
|
-
const
|
|
4646
|
+
const S = [
|
|
4640
4647
|
"relative",
|
|
4641
4648
|
"flex",
|
|
4642
4649
|
"w-full",
|
|
@@ -4658,7 +4665,7 @@ const R7 = ({ children: e }) => {
|
|
|
4658
4665
|
"placeholder:text-[var(--malachite-text-placeholder)]",
|
|
4659
4666
|
"disabled:text-[var(--malachite-text-dimmed)]",
|
|
4660
4667
|
"disabled:cursor-not-allowed",
|
|
4661
|
-
k1(
|
|
4668
|
+
k1(p),
|
|
4662
4669
|
"px-[16px]",
|
|
4663
4670
|
"py-[12px]",
|
|
4664
4671
|
R === "none" ? "resize-none" : R === "vertical" ? "resize-y" : R === "horizontal" ? "resize-x" : "resize"
|
|
@@ -4666,19 +4673,19 @@ const R7 = ({ children: e }) => {
|
|
|
4666
4673
|
"textarea",
|
|
4667
4674
|
{
|
|
4668
4675
|
placeholder: o,
|
|
4669
|
-
value: m ?
|
|
4676
|
+
value: m ? g : T,
|
|
4670
4677
|
onChange: E1,
|
|
4671
4678
|
onBlur: _,
|
|
4672
4679
|
disabled: m || !!w || !!f || d,
|
|
4673
4680
|
readOnly: d,
|
|
4674
4681
|
rows: Z,
|
|
4675
4682
|
maxLength: H,
|
|
4676
|
-
style: { minHeight: B1(
|
|
4683
|
+
style: { minHeight: B1(p, Z) },
|
|
4677
4684
|
className: X,
|
|
4678
4685
|
name: l
|
|
4679
4686
|
}
|
|
4680
4687
|
);
|
|
4681
|
-
return /* @__PURE__ */ b("div", { className:
|
|
4688
|
+
return /* @__PURE__ */ b("div", { className: S, children: [
|
|
4682
4689
|
W && /* @__PURE__ */ c("div", { className: "flex pt-3 pl-3 pr-1 flex-shrink-0 pointer-events-none", children: /* @__PURE__ */ c(
|
|
4683
4690
|
X7,
|
|
4684
4691
|
{
|
|
@@ -4987,7 +4994,7 @@ export {
|
|
|
4987
4994
|
m8 as applyCustomTheme,
|
|
4988
4995
|
V5 as applyDarkTheme,
|
|
4989
4996
|
M5 as applyLightTheme,
|
|
4990
|
-
|
|
4997
|
+
K7 as applyTheme,
|
|
4991
4998
|
U as darkTheme,
|
|
4992
4999
|
u as defaultTheme,
|
|
4993
5000
|
f8 as getCurrentTheme,
|