@stackone/malachite 0.30.0 → 0.31.0
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.js +512 -500
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3,11 +3,11 @@ var qe = (e) => {
|
|
|
3
3
|
throw TypeError(e);
|
|
4
4
|
};
|
|
5
5
|
var u6 = (e, r, t) => r in e ? h6(e, r, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[r] = t;
|
|
6
|
-
var Y = (e, r, t) => u6(e, typeof r != "symbol" ? r + "" : r, t),
|
|
7
|
-
var R1 = (e, r, t) => (
|
|
6
|
+
var Y = (e, r, t) => u6(e, typeof r != "symbol" ? r + "" : r, t), de = (e, r, t) => r.has(e) || qe("Cannot " + t);
|
|
7
|
+
var R1 = (e, r, t) => (de(e, r, "read from private field"), t ? t.call(e) : r.get(e)), Ce = (e, r, t) => r.has(e) ? qe("Cannot add the same private member more than once") : r instanceof WeakSet ? r.add(e) : r.set(e, t), Ue = (e, r, t, a) => (de(e, r, "write to private field"), a ? a.call(e, t) : r.set(e, t), t), U = (e, r, t) => (de(e, r, "access private method"), t);
|
|
8
8
|
import { jsx as n, jsxs as k, Fragment as l1 } from "react/jsx-runtime";
|
|
9
9
|
import * as c from "react";
|
|
10
|
-
import D1, { forwardRef as
|
|
10
|
+
import D1, { forwardRef as ke, createElement as g5, Fragment as i1, useState as O, useMemo as N1, useRef as e1, useEffect as a1, createContext as C1, useContext as g1, useReducer as P1, useCallback as O1, useLayoutEffect as J1 } from "react";
|
|
11
11
|
import { Controller as g6 } from "react-hook-form";
|
|
12
12
|
import { createPortal as Z1 } from "react-dom";
|
|
13
13
|
const p6 = (e) => {
|
|
@@ -97,7 +97,7 @@ const p6 = (e) => {
|
|
|
97
97
|
)
|
|
98
98
|
]
|
|
99
99
|
}
|
|
100
|
-
),
|
|
100
|
+
), z1 = ke(
|
|
101
101
|
({
|
|
102
102
|
variant: e,
|
|
103
103
|
size: r = "large",
|
|
@@ -135,7 +135,7 @@ const p6 = (e) => {
|
|
|
135
135
|
return C ? D1.cloneElement(x, { title: C }) : x;
|
|
136
136
|
}
|
|
137
137
|
);
|
|
138
|
-
|
|
138
|
+
z1.displayName = "Button";
|
|
139
139
|
const w6 = (e) => /* @__PURE__ */ c.createElement("svg", { width: 16, height: 17, viewBox: "0 0 16 17", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ c.createElement("g", { id: "Layer_2" }, /* @__PURE__ */ c.createElement("path", { id: "Vector", d: "M7.97085 15.0455C11.6019 15.0455 14.5454 12.1019 14.5454 8.47091C14.5454 4.83989 11.6019 1.89636 7.97085 1.89636C4.33983 1.89636 1.3963 4.83989 1.3963 8.47091C1.3963 12.1019 4.33983 15.0455 7.97085 15.0455Z", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ c.createElement("path", { id: "Vector_2", d: "M8.00038 8.33275C8.98043 8.33275 9.77492 7.53826 9.77492 6.55821C9.77492 5.57815 8.98043 4.78366 8.00038 4.78366C7.02032 4.78366 6.22583 5.57815 6.22583 6.55821C6.22583 7.53826 7.02032 8.33275 8.00038 8.33275Z", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ c.createElement("path", { id: "Vector_3", d: "M11.6796 10.3909C11.2758 9.78486 10.7287 9.28791 10.0867 8.94419C9.44472 8.60047 8.72779 8.42062 7.99958 8.42062C7.27137 8.42062 6.55444 8.60047 5.91245 8.94419C5.27047 9.28791 4.72331 9.78486 4.31958 10.3909", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }))), x6 = ({
|
|
140
140
|
size: e = 16,
|
|
141
141
|
className: r = "",
|
|
@@ -1190,7 +1190,7 @@ const w6 = (e) => /* @__PURE__ */ c.createElement("svg", { width: 16, height: 17
|
|
|
1190
1190
|
...t
|
|
1191
1191
|
};
|
|
1192
1192
|
return /* @__PURE__ */ n(F7, { className: r, style: o, onClick: a });
|
|
1193
|
-
}, P7 = (e) => /* @__PURE__ */ c.createElement("svg", { width: 14, height: 14, viewBox: "0 0 14 14", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ c.createElement("circle", { cx: 6.41, cy: 6.41, r: 4.91, stroke: "currentColor", strokeWidth: 1.2 }), /* @__PURE__ */ c.createElement("path", { d: "M12.5 12.5L9.88 9.88", stroke: "currentColor", strokeWidth: 1.2, strokeLinecap: "round" })),
|
|
1193
|
+
}, P7 = (e) => /* @__PURE__ */ c.createElement("svg", { width: 14, height: 14, viewBox: "0 0 14 14", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ c.createElement("circle", { cx: 6.41, cy: 6.41, r: 4.91, stroke: "currentColor", strokeWidth: 1.2 }), /* @__PURE__ */ c.createElement("path", { d: "M12.5 12.5L9.88 9.88", stroke: "currentColor", strokeWidth: 1.2, strokeLinecap: "round" })), Ae = ({ size: e = 16, className: r = "", style: t = {}, onClick: a }) => {
|
|
1194
1194
|
const o = {
|
|
1195
1195
|
width: typeof e == "number" ? `${e}px` : e,
|
|
1196
1196
|
height: typeof e == "number" ? `${e}px` : e,
|
|
@@ -1515,7 +1515,7 @@ const w6 = (e) => /* @__PURE__ */ c.createElement("svg", { width: 16, height: 17
|
|
|
1515
1515
|
RejectIcon: S7,
|
|
1516
1516
|
ReloadIcon: N7,
|
|
1517
1517
|
RequiredFieldIndicatorIcon: I7,
|
|
1518
|
-
SearchIcon:
|
|
1518
|
+
SearchIcon: Ae,
|
|
1519
1519
|
SecurityIcon: Q7,
|
|
1520
1520
|
SettingsIcon: G7,
|
|
1521
1521
|
SignOutIcon: j7,
|
|
@@ -1531,10 +1531,10 @@ const w6 = (e) => /* @__PURE__ */ c.createElement("svg", { width: 16, height: 17
|
|
|
1531
1531
|
WebhookIcon: i4,
|
|
1532
1532
|
WebhookSigningSecretIcon: s4
|
|
1533
1533
|
};
|
|
1534
|
-
function
|
|
1534
|
+
function Ee() {
|
|
1535
1535
|
return { async: !1, breaks: !1, extensions: null, gfm: !0, hooks: null, pedantic: !1, renderer: null, silent: !1, tokenizer: null, walkTokens: null };
|
|
1536
1536
|
}
|
|
1537
|
-
var M1 =
|
|
1537
|
+
var M1 = Ee();
|
|
1538
1538
|
function m5(e) {
|
|
1539
1539
|
M1 = e;
|
|
1540
1540
|
}
|
|
@@ -1546,8 +1546,8 @@ function K(e, r = "") {
|
|
|
1546
1546
|
}, getRegex: () => new RegExp(t, r) };
|
|
1547
1547
|
return a;
|
|
1548
1548
|
}
|
|
1549
|
-
var o1 = { 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") }, d4 = /^(?:[ \t]*(?:\n|$))+/, C4 = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, h4 = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,
|
|
1550
|
-
]`).replace("lheading", b5).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex() }, y4 = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, k4 = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, w5 = /^( {2,}|\\)\n(?!\s*$)/, A4 = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, le = /[\p{P}\p{S}]/u,
|
|
1549
|
+
var o1 = { 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") }, d4 = /^(?:[ \t]*(?:\n|$))+/, C4 = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, h4 = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, X1 = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, u4 = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, Be = /(?:[*+-]|\d{1,9}[.)])/, f5 = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, b5 = K(f5).replace(/bull/g, Be).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(), g4 = K(f5).replace(/bull/g, Be).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(), Me = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, p4 = /^[^\n]+/, Le = /(?!\s*\])(?:\\.|[^\[\]\\])+/, m4 = K(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", Le).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), f4 = K(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, Be).getRegex(), ne = "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", Ve = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, b4 = K("^ {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", Ve).replace("tag", ne).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), v5 = K(Me).replace("hr", X1).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", ne).getRegex(), v4 = K(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", v5).getRegex(), Se = { blockquote: v4, code: C4, def: m4, fences: h4, heading: u4, hr: X1, html: b4, lheading: b5, list: f4, newline: d4, paragraph: v5, table: j1, text: p4 }, $e = K("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", X1).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", ne).getRegex(), w4 = { ...Se, lheading: g4, table: $e, paragraph: K(Me).replace("hr", X1).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", $e).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", ne).getRegex() }, x4 = { ...Se, html: K(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", Ve).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: j1, lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/, paragraph: K(Me).replace("hr", X1).replace("heading", ` *#{1,6} *[^
|
|
1550
|
+
]`).replace("lheading", b5).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex() }, y4 = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, k4 = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, w5 = /^( {2,}|\\)\n(?!\s*$)/, A4 = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, le = /[\p{P}\p{S}]/u, De = /[\s\p{P}\p{S}]/u, x5 = /[^\s\p{P}\p{S}]/u, E4 = K(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, De).getRegex(), y5 = /(?!~)[\p{P}\p{S}]/u, B4 = /(?!~)[\s\p{P}\p{S}]/u, M4 = /(?:[^\s\p{P}\p{S}]|~)/u, L4 = /\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<(?! )[^<>]*?>/g, k5 = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/, V4 = K(k5, "u").replace(/punct/g, le).getRegex(), S4 = K(k5, "u").replace(/punct/g, y5).getRegex(), A5 = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", D4 = K(A5, "gu").replace(/notPunctSpace/g, x5).replace(/punctSpace/g, De).replace(/punct/g, le).getRegex(), N4 = K(A5, "gu").replace(/notPunctSpace/g, M4).replace(/punctSpace/g, B4).replace(/punct/g, y5).getRegex(), F4 = K("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, x5).replace(/punctSpace/g, De).replace(/punct/g, le).getRegex(), I4 = K(/\\(punct)/, "gu").replace(/punct/g, le).getRegex(), P4 = K(/^<(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(), Z4 = K(Ve).replace("(?:-->|$)", "-->").getRegex(), Q4 = K("^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", Z4).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), re = /(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/, R4 = K(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label", re).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), E5 = K(/^!?\[(label)\]\[(ref)\]/).replace("label", re).replace("ref", Le).getRegex(), B5 = K(/^!?\[(ref)\](?:\[\])?/).replace("ref", Le).getRegex(), G4 = K("reflink|nolink(?!\\()", "g").replace("reflink", E5).replace("nolink", B5).getRegex(), Ne = { _backpedal: j1, anyPunctuation: I4, autolink: P4, blockSkip: L4, br: w5, code: k4, del: j1, emStrongLDelim: V4, emStrongRDelimAst: D4, emStrongRDelimUnd: F4, escape: y4, link: R4, nolink: B5, punctuation: E4, reflink: E5, reflinkSearch: G4, tag: Q4, text: A4, url: j1 }, H4 = { ...Ne, link: K(/^!?\[(label)\]\((.*?)\)/).replace("label", re).getRegex(), reflink: K(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", re).getRegex() }, me = { ...Ne, emStrongRDelimAst: N4, emStrongLDelim: S4, url: K(/^((?: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.!#$%&'*+\/=?_`{\|}~-]+@)))/ }, j4 = { ...me, br: K(w5).replace("{2,}", "*").getRegex(), text: K(me.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex() }, U1 = { normal: Se, gfm: w4, pedantic: x4 }, G1 = { normal: Ne, gfm: me, breaks: j4, pedantic: H4 }, K4 = { "&": "&", "<": "<", ">": ">", '"': """, "'": "'" }, _e = (e) => K4[e];
|
|
1551
1551
|
function f1(e, r) {
|
|
1552
1552
|
if (r) {
|
|
1553
1553
|
if (o1.escapeTest.test(e)) return e.replace(o1.escapeReplace, _e);
|
|
@@ -1609,7 +1609,7 @@ function T4(e, r, t) {
|
|
|
1609
1609
|
}).join(`
|
|
1610
1610
|
`);
|
|
1611
1611
|
}
|
|
1612
|
-
var
|
|
1612
|
+
var te = class {
|
|
1613
1613
|
constructor(e) {
|
|
1614
1614
|
Y(this, "options");
|
|
1615
1615
|
Y(this, "rules");
|
|
@@ -1706,20 +1706,20 @@ ${h}` : h;
|
|
|
1706
1706
|
`, 1)[0], m = !g.trim(), v = 0;
|
|
1707
1707
|
if (this.options.pedantic ? (v = 2, h = g.trimStart()) : m ? v = r[1].length + 1 : (v = r[2].search(this.rules.other.nonSpaceChar), v = v > 4 ? 1 : v, h = g.slice(v), v += r[1].length), m && this.rules.other.blankLine.test(u) && (C += u + `
|
|
1708
1708
|
`, e = e.substring(u.length + 1), d = !0), !d) {
|
|
1709
|
-
let w = this.rules.other.nextBulletRegex(v), x = this.rules.other.hrRegex(v), D = this.rules.other.fencesBeginRegex(v),
|
|
1709
|
+
let w = this.rules.other.nextBulletRegex(v), x = this.rules.other.hrRegex(v), D = this.rules.other.fencesBeginRegex(v), S = this.rules.other.headingBeginRegex(v), F = this.rules.other.htmlBeginRegex(v);
|
|
1710
1710
|
for (; e; ) {
|
|
1711
|
-
let
|
|
1711
|
+
let M = e.split(`
|
|
1712
1712
|
`, 1)[0], Z;
|
|
1713
|
-
if (u =
|
|
1713
|
+
if (u = M, this.options.pedantic ? (u = u.replace(this.rules.other.listReplaceNesting, " "), Z = u) : Z = u.replace(this.rules.other.tabCharGlobal, " "), D.test(u) || S.test(u) || F.test(u) || w.test(u) || x.test(u)) break;
|
|
1714
1714
|
if (Z.search(this.rules.other.nonSpaceChar) >= v || !u.trim()) h += `
|
|
1715
1715
|
` + Z.slice(v);
|
|
1716
1716
|
else {
|
|
1717
|
-
if (m || g.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || D.test(g) ||
|
|
1717
|
+
if (m || g.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || D.test(g) || S.test(g) || x.test(g)) break;
|
|
1718
1718
|
h += `
|
|
1719
1719
|
` + u;
|
|
1720
1720
|
}
|
|
1721
|
-
!m && !u.trim() && (m = !0), C +=
|
|
1722
|
-
`, e = e.substring(
|
|
1721
|
+
!m && !u.trim() && (m = !0), C += M + `
|
|
1722
|
+
`, e = e.substring(M.length + 1), g = Z.slice(v);
|
|
1723
1723
|
}
|
|
1724
1724
|
}
|
|
1725
1725
|
o.loose || (s ? o.loose = !0 : this.rules.other.doubleBlankLine.test(C) && (s = !0));
|
|
@@ -1891,25 +1891,25 @@ ${h}` : h;
|
|
|
1891
1891
|
return { type: "text", raw: r[0], text: r[0], escaped: t };
|
|
1892
1892
|
}
|
|
1893
1893
|
}
|
|
1894
|
-
}, v1 = class
|
|
1894
|
+
}, v1 = class fe {
|
|
1895
1895
|
constructor(r) {
|
|
1896
1896
|
Y(this, "tokens");
|
|
1897
1897
|
Y(this, "options");
|
|
1898
1898
|
Y(this, "state");
|
|
1899
1899
|
Y(this, "tokenizer");
|
|
1900
1900
|
Y(this, "inlineQueue");
|
|
1901
|
-
this.tokens = [], this.tokens.links = /* @__PURE__ */ Object.create(null), this.options = r || M1, this.options.tokenizer = this.options.tokenizer || new
|
|
1902
|
-
let t = { other: o1, block:
|
|
1903
|
-
this.options.pedantic ? (t.block =
|
|
1901
|
+
this.tokens = [], this.tokens.links = /* @__PURE__ */ Object.create(null), this.options = r || M1, this.options.tokenizer = this.options.tokenizer || new te(), this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = { inLink: !1, inRawBlock: !1, top: !0 };
|
|
1902
|
+
let t = { other: o1, block: U1.normal, inline: G1.normal };
|
|
1903
|
+
this.options.pedantic ? (t.block = U1.pedantic, t.inline = G1.pedantic) : this.options.gfm && (t.block = U1.gfm, this.options.breaks ? t.inline = G1.breaks : t.inline = G1.gfm), this.tokenizer.rules = t;
|
|
1904
1904
|
}
|
|
1905
1905
|
static get rules() {
|
|
1906
|
-
return { block:
|
|
1906
|
+
return { block: U1, inline: G1 };
|
|
1907
1907
|
}
|
|
1908
1908
|
static lex(r, t) {
|
|
1909
|
-
return new
|
|
1909
|
+
return new fe(t).lex(r);
|
|
1910
1910
|
}
|
|
1911
1911
|
static lexInline(r, t) {
|
|
1912
|
-
return new
|
|
1912
|
+
return new fe(t).inlineTokens(r);
|
|
1913
1913
|
}
|
|
1914
1914
|
lex(r) {
|
|
1915
1915
|
r = r.replace(o1.carriageReturn, `
|
|
@@ -2094,7 +2094,7 @@ ${h}` : h;
|
|
|
2094
2094
|
}
|
|
2095
2095
|
return t;
|
|
2096
2096
|
}
|
|
2097
|
-
},
|
|
2097
|
+
}, ae = class {
|
|
2098
2098
|
constructor(e) {
|
|
2099
2099
|
Y(this, "options");
|
|
2100
2100
|
Y(this, "parser");
|
|
@@ -2215,7 +2215,7 @@ ${e}</tr>
|
|
|
2215
2215
|
text(e) {
|
|
2216
2216
|
return "tokens" in e && e.tokens ? this.parser.parseInline(e.tokens) : "escaped" in e && e.escaped ? e.text : f1(e.text);
|
|
2217
2217
|
}
|
|
2218
|
-
},
|
|
2218
|
+
}, Fe = class {
|
|
2219
2219
|
strong({ text: e }) {
|
|
2220
2220
|
return e;
|
|
2221
2221
|
}
|
|
@@ -2243,18 +2243,18 @@ ${e}</tr>
|
|
|
2243
2243
|
br() {
|
|
2244
2244
|
return "";
|
|
2245
2245
|
}
|
|
2246
|
-
}, w1 = class
|
|
2246
|
+
}, w1 = class be {
|
|
2247
2247
|
constructor(r) {
|
|
2248
2248
|
Y(this, "options");
|
|
2249
2249
|
Y(this, "renderer");
|
|
2250
2250
|
Y(this, "textRenderer");
|
|
2251
|
-
this.options = r || M1, this.options.renderer = this.options.renderer || new
|
|
2251
|
+
this.options = r || M1, this.options.renderer = this.options.renderer || new ae(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new Fe();
|
|
2252
2252
|
}
|
|
2253
2253
|
static parse(r, t) {
|
|
2254
|
-
return new
|
|
2254
|
+
return new be(t).parse(r);
|
|
2255
2255
|
}
|
|
2256
2256
|
static parseInline(r, t) {
|
|
2257
|
-
return new
|
|
2257
|
+
return new be(t).parseInline(r);
|
|
2258
2258
|
}
|
|
2259
2259
|
parse(r, t = !0) {
|
|
2260
2260
|
var o, l;
|
|
@@ -2385,7 +2385,7 @@ ${e}</tr>
|
|
|
2385
2385
|
}
|
|
2386
2386
|
return a;
|
|
2387
2387
|
}
|
|
2388
|
-
},
|
|
2388
|
+
}, pe, ee = (pe = class {
|
|
2389
2389
|
constructor(e) {
|
|
2390
2390
|
Y(this, "options");
|
|
2391
2391
|
Y(this, "block");
|
|
@@ -2406,18 +2406,18 @@ ${e}</tr>
|
|
|
2406
2406
|
provideParser() {
|
|
2407
2407
|
return this.block ? w1.parse : w1.parseInline;
|
|
2408
2408
|
}
|
|
2409
|
-
}, Y(
|
|
2409
|
+
}, Y(pe, "passThroughHooks", /* @__PURE__ */ new Set(["preprocess", "postprocess", "processAllTokens"])), pe), M5 = class {
|
|
2410
2410
|
constructor(...e) {
|
|
2411
|
-
Y(this, "defaults",
|
|
2411
|
+
Y(this, "defaults", Ee());
|
|
2412
2412
|
Y(this, "options", this.setOptions);
|
|
2413
2413
|
Y(this, "parse", this.parseMarkdown(!0));
|
|
2414
2414
|
Y(this, "parseInline", this.parseMarkdown(!1));
|
|
2415
2415
|
Y(this, "Parser", w1);
|
|
2416
|
-
Y(this, "Renderer",
|
|
2417
|
-
Y(this, "TextRenderer",
|
|
2416
|
+
Y(this, "Renderer", ae);
|
|
2417
|
+
Y(this, "TextRenderer", Fe);
|
|
2418
2418
|
Y(this, "Lexer", v1);
|
|
2419
|
-
Y(this, "Tokenizer",
|
|
2420
|
-
Y(this, "Hooks",
|
|
2419
|
+
Y(this, "Tokenizer", te);
|
|
2420
|
+
Y(this, "Hooks", ee);
|
|
2421
2421
|
this.use(...e);
|
|
2422
2422
|
}
|
|
2423
2423
|
walkTokens(e, r) {
|
|
@@ -2465,7 +2465,7 @@ ${e}</tr>
|
|
|
2465
2465
|
}
|
|
2466
2466
|
"childTokens" in o && o.childTokens && (r.childTokens[o.name] = o.childTokens);
|
|
2467
2467
|
}), a.extensions = r), t.renderer) {
|
|
2468
|
-
let o = this.defaults.renderer || new
|
|
2468
|
+
let o = this.defaults.renderer || new ae(this.defaults);
|
|
2469
2469
|
for (let l in t.renderer) {
|
|
2470
2470
|
if (!(l in o)) throw new Error(`renderer '${l}' does not exist`);
|
|
2471
2471
|
if (["options", "parser"].includes(l)) continue;
|
|
@@ -2478,7 +2478,7 @@ ${e}</tr>
|
|
|
2478
2478
|
a.renderer = o;
|
|
2479
2479
|
}
|
|
2480
2480
|
if (t.tokenizer) {
|
|
2481
|
-
let o = this.defaults.tokenizer || new
|
|
2481
|
+
let o = this.defaults.tokenizer || new te(this.defaults);
|
|
2482
2482
|
for (let l in t.tokenizer) {
|
|
2483
2483
|
if (!(l in o)) throw new Error(`tokenizer '${l}' does not exist`);
|
|
2484
2484
|
if (["options", "rules", "lexer"].includes(l)) continue;
|
|
@@ -2491,12 +2491,12 @@ ${e}</tr>
|
|
|
2491
2491
|
a.tokenizer = o;
|
|
2492
2492
|
}
|
|
2493
2493
|
if (t.hooks) {
|
|
2494
|
-
let o = this.defaults.hooks || new
|
|
2494
|
+
let o = this.defaults.hooks || new ee();
|
|
2495
2495
|
for (let l in t.hooks) {
|
|
2496
2496
|
if (!(l in o)) throw new Error(`hook '${l}' does not exist`);
|
|
2497
2497
|
if (["options", "block"].includes(l)) continue;
|
|
2498
2498
|
let s = l, i = t.hooks[s], d = o[s];
|
|
2499
|
-
|
|
2499
|
+
ee.passThroughHooks.has(l) ? o[s] = (C) => {
|
|
2500
2500
|
if (this.defaults.async) return Promise.resolve(i.call(o, C)).then((g) => d.call(o, g));
|
|
2501
2501
|
let h = i.call(o, C);
|
|
2502
2502
|
return d.call(o, h);
|
|
@@ -2564,7 +2564,7 @@ function W(e, r) {
|
|
|
2564
2564
|
W.options = W.setOptions = function(e) {
|
|
2565
2565
|
return B1.setOptions(e), W.defaults = B1.defaults, m5(W.defaults), W;
|
|
2566
2566
|
};
|
|
2567
|
-
W.getDefaults =
|
|
2567
|
+
W.getDefaults = Ee;
|
|
2568
2568
|
W.defaults = M1;
|
|
2569
2569
|
W.use = function(...e) {
|
|
2570
2570
|
return B1.use(...e), W.defaults = B1.defaults, m5(W.defaults), W;
|
|
@@ -2575,12 +2575,12 @@ W.walkTokens = function(e, r) {
|
|
|
2575
2575
|
W.parseInline = B1.parseInline;
|
|
2576
2576
|
W.Parser = w1;
|
|
2577
2577
|
W.parser = w1.parse;
|
|
2578
|
-
W.Renderer =
|
|
2579
|
-
W.TextRenderer =
|
|
2578
|
+
W.Renderer = ae;
|
|
2579
|
+
W.TextRenderer = Fe;
|
|
2580
2580
|
W.Lexer = v1;
|
|
2581
2581
|
W.lexer = v1.lex;
|
|
2582
|
-
W.Tokenizer =
|
|
2583
|
-
W.Hooks =
|
|
2582
|
+
W.Tokenizer = te;
|
|
2583
|
+
W.Hooks = ee;
|
|
2584
2584
|
W.parse = W;
|
|
2585
2585
|
W.options;
|
|
2586
2586
|
W.setOptions;
|
|
@@ -2701,17 +2701,17 @@ var J4 = class {
|
|
|
2701
2701
|
});
|
|
2702
2702
|
return this.renderer.elIdList.pop(), r;
|
|
2703
2703
|
}
|
|
2704
|
-
}, z4 = J4, y1, J,
|
|
2704
|
+
}, z4 = J4, y1, J, t1, ve, u5, X4 = (u5 = class {
|
|
2705
2705
|
constructor(e = {}) {
|
|
2706
|
-
|
|
2706
|
+
Ce(this, J);
|
|
2707
2707
|
Y(this, "elIdList", []);
|
|
2708
|
-
|
|
2708
|
+
Ce(this, y1);
|
|
2709
2709
|
const { renderer: r } = e;
|
|
2710
2710
|
Ue(this, y1, e), r && typeof r == "object" && Object.entries(r).forEach(([t, a]) => {
|
|
2711
2711
|
const o = t, l = a;
|
|
2712
2712
|
!this[o] || o === "elementId" || o === "elIdList" || typeof l != "function" || Object.defineProperty(this, o, {
|
|
2713
2713
|
value(...s) {
|
|
2714
|
-
return U(this, J,
|
|
2714
|
+
return U(this, J, ve).call(this), l.apply(this, s);
|
|
2715
2715
|
},
|
|
2716
2716
|
writable: !0,
|
|
2717
2717
|
enumerable: !0,
|
|
@@ -2723,21 +2723,21 @@ var J4 = class {
|
|
|
2723
2723
|
return this.elIdList.join("-");
|
|
2724
2724
|
}
|
|
2725
2725
|
heading(e, r) {
|
|
2726
|
-
return U(this, J,
|
|
2726
|
+
return U(this, J, t1).call(this, `h${r}`, e);
|
|
2727
2727
|
}
|
|
2728
2728
|
paragraph(e) {
|
|
2729
|
-
return U(this, J,
|
|
2729
|
+
return U(this, J, t1).call(this, "p", e);
|
|
2730
2730
|
}
|
|
2731
2731
|
link(e, r) {
|
|
2732
2732
|
const t = o5(e, R1(this, y1).baseURL), a = R1(this, y1).openLinksInNewTab ? "_blank" : null;
|
|
2733
|
-
return U(this, J,
|
|
2733
|
+
return U(this, J, t1).call(this, "a", r, {
|
|
2734
2734
|
href: t,
|
|
2735
2735
|
target: a
|
|
2736
2736
|
});
|
|
2737
2737
|
}
|
|
2738
2738
|
image(e, r, t = null) {
|
|
2739
2739
|
const a = o5(e, R1(this, y1).baseURL);
|
|
2740
|
-
return U(this, J,
|
|
2740
|
+
return U(this, J, t1).call(this, "img", null, {
|
|
2741
2741
|
src: a,
|
|
2742
2742
|
alt: r,
|
|
2743
2743
|
title: t
|
|
@@ -2745,51 +2745,51 @@ var J4 = class {
|
|
|
2745
2745
|
}
|
|
2746
2746
|
codespan(e, r = null) {
|
|
2747
2747
|
const t = r ? `${R1(this, y1).langPrefix}${r}` : null;
|
|
2748
|
-
return U(this, J,
|
|
2748
|
+
return U(this, J, t1).call(this, "code", e, { className: t });
|
|
2749
2749
|
}
|
|
2750
2750
|
code(e, r) {
|
|
2751
|
-
return U(this, J,
|
|
2751
|
+
return U(this, J, t1).call(this, "pre", this.codespan(e, r));
|
|
2752
2752
|
}
|
|
2753
2753
|
blockquote(e) {
|
|
2754
|
-
return U(this, J,
|
|
2754
|
+
return U(this, J, t1).call(this, "blockquote", e);
|
|
2755
2755
|
}
|
|
2756
2756
|
list(e, r, t) {
|
|
2757
|
-
return U(this, J,
|
|
2757
|
+
return U(this, J, t1).call(this, r ? "ol" : "ul", e, r && t !== 1 ? { start: t } : {});
|
|
2758
2758
|
}
|
|
2759
2759
|
listItem(e) {
|
|
2760
|
-
return U(this, J,
|
|
2760
|
+
return U(this, J, t1).call(this, "li", e);
|
|
2761
2761
|
}
|
|
2762
2762
|
checkbox(e) {
|
|
2763
|
-
return U(this, J,
|
|
2763
|
+
return U(this, J, t1).call(this, "input", null, {
|
|
2764
2764
|
type: "checkbox",
|
|
2765
2765
|
disabled: !0,
|
|
2766
2766
|
checked: e
|
|
2767
2767
|
});
|
|
2768
2768
|
}
|
|
2769
2769
|
table(e) {
|
|
2770
|
-
return U(this, J,
|
|
2770
|
+
return U(this, J, t1).call(this, "table", e);
|
|
2771
2771
|
}
|
|
2772
2772
|
tableHeader(e) {
|
|
2773
|
-
return U(this, J,
|
|
2773
|
+
return U(this, J, t1).call(this, "thead", e);
|
|
2774
2774
|
}
|
|
2775
2775
|
tableBody(e) {
|
|
2776
|
-
return U(this, J,
|
|
2776
|
+
return U(this, J, t1).call(this, "tbody", e);
|
|
2777
2777
|
}
|
|
2778
2778
|
tableRow(e) {
|
|
2779
|
-
return U(this, J,
|
|
2779
|
+
return U(this, J, t1).call(this, "tr", e);
|
|
2780
2780
|
}
|
|
2781
2781
|
tableCell(e, r) {
|
|
2782
2782
|
const t = r.header ? "th" : "td";
|
|
2783
|
-
return U(this, J,
|
|
2783
|
+
return U(this, J, t1).call(this, t, e, { align: r.align });
|
|
2784
2784
|
}
|
|
2785
2785
|
strong(e) {
|
|
2786
|
-
return U(this, J,
|
|
2786
|
+
return U(this, J, t1).call(this, "strong", e);
|
|
2787
2787
|
}
|
|
2788
2788
|
em(e) {
|
|
2789
|
-
return U(this, J,
|
|
2789
|
+
return U(this, J, t1).call(this, "em", e);
|
|
2790
2790
|
}
|
|
2791
2791
|
del(e) {
|
|
2792
|
-
return U(this, J,
|
|
2792
|
+
return U(this, J, t1).call(this, "del", e);
|
|
2793
2793
|
}
|
|
2794
2794
|
text(e) {
|
|
2795
2795
|
return e;
|
|
@@ -2798,21 +2798,21 @@ var J4 = class {
|
|
|
2798
2798
|
return e;
|
|
2799
2799
|
}
|
|
2800
2800
|
hr() {
|
|
2801
|
-
return U(this, J,
|
|
2801
|
+
return U(this, J, t1).call(this, "hr");
|
|
2802
2802
|
}
|
|
2803
2803
|
br() {
|
|
2804
|
-
return U(this, J,
|
|
2804
|
+
return U(this, J, t1).call(this, "br");
|
|
2805
2805
|
}
|
|
2806
|
-
}, y1 = new WeakMap(), J = new WeakSet(),
|
|
2806
|
+
}, y1 = new WeakMap(), J = new WeakSet(), t1 = function(e, r = null, t = {}) {
|
|
2807
2807
|
const a = {
|
|
2808
2808
|
key: `marked-react-${this.elementId}`,
|
|
2809
2809
|
suppressHydrationWarning: !0
|
|
2810
2810
|
};
|
|
2811
|
-
return U(this, J,
|
|
2811
|
+
return U(this, J, ve).call(this), g5(e, {
|
|
2812
2812
|
...t,
|
|
2813
2813
|
...a
|
|
2814
2814
|
}, r);
|
|
2815
|
-
},
|
|
2815
|
+
}, ve = function() {
|
|
2816
2816
|
this.elIdList[this.elIdList.length - 1] += 1;
|
|
2817
2817
|
}, u5), q4 = X4;
|
|
2818
2818
|
const U4 = (e) => {
|
|
@@ -3064,13 +3064,13 @@ const V5 = ({
|
|
|
3064
3064
|
);
|
|
3065
3065
|
return r.map((o) => o.replace(new RegExp(`^[ \\t]{${t}}`, "gm"), "")).join(`
|
|
3066
3066
|
`);
|
|
3067
|
-
},
|
|
3067
|
+
}, Ie = ({ text: e, color: r, size: t, omitMargin: a }) => e ? /* @__PURE__ */ n(
|
|
3068
3068
|
t8,
|
|
3069
3069
|
{
|
|
3070
3070
|
value: o8(e),
|
|
3071
3071
|
renderer: a8({ color: r, size: t, omitMargin: a })
|
|
3072
3072
|
}
|
|
3073
|
-
) : null, n5 = ({ text: e, type: r }) => /* @__PURE__ */ n(
|
|
3073
|
+
) : null, n5 = ({ text: e, type: r }) => /* @__PURE__ */ n(Ie, { text: e, color: ((a) => {
|
|
3074
3074
|
switch (a) {
|
|
3075
3075
|
case "info":
|
|
3076
3076
|
return "primary";
|
|
@@ -3128,7 +3128,7 @@ const V5 = ({
|
|
|
3128
3128
|
/* @__PURE__ */ n("div", { className: "flex-1 flex items-center", children: /* @__PURE__ */ n("div", { className: "[&>div]:mb-0", children: /* @__PURE__ */ n(n5, { text: r, type: e }) }) })
|
|
3129
3129
|
] }),
|
|
3130
3130
|
/* @__PURE__ */ n("div", { className: "flex items-center gap-2", children: /* @__PURE__ */ n(
|
|
3131
|
-
|
|
3131
|
+
z1,
|
|
3132
3132
|
{
|
|
3133
3133
|
variant: "no-style",
|
|
3134
3134
|
size: "xsmall",
|
|
@@ -3222,7 +3222,7 @@ const V5 = ({
|
|
|
3222
3222
|
}, l8 = {
|
|
3223
3223
|
minWidth: 0,
|
|
3224
3224
|
overflow: "hidden"
|
|
3225
|
-
},
|
|
3225
|
+
}, ie = ({
|
|
3226
3226
|
text: e,
|
|
3227
3227
|
children: r,
|
|
3228
3228
|
delay: t = 1,
|
|
@@ -3230,7 +3230,7 @@ const V5 = ({
|
|
|
3230
3230
|
placement: o = "top",
|
|
3231
3231
|
isShrinkable: l = !1
|
|
3232
3232
|
}) => {
|
|
3233
|
-
const s = l ? l8 : void 0, [i, d] = O(!1), C =
|
|
3233
|
+
const s = l ? l8 : void 0, [i, d] = O(!1), C = e1(null), h = e1(null), g = e1(null), u = e != null && e !== "" && e !== !1, m = (w) => {
|
|
3234
3234
|
w.stopPropagation(), u && (C.current && clearTimeout(C.current), C.current = setTimeout(() => {
|
|
3235
3235
|
d(!0);
|
|
3236
3236
|
}, t * 1e3));
|
|
@@ -3349,7 +3349,7 @@ const V5 = ({
|
|
|
3349
3349
|
] }),
|
|
3350
3350
|
s ? d : h
|
|
3351
3351
|
] });
|
|
3352
|
-
}, i8 = ({ text: e }) => /* @__PURE__ */ n(b1, { size: "xsmall", color: "dimmed", className: "pr-2 relative top-[3px]", children: e }), c8 = ({ text: e }) => /* @__PURE__ */ n("div", { className: "pl-2 text-left", children: /* @__PURE__ */ n(
|
|
3352
|
+
}, i8 = ({ text: e }) => /* @__PURE__ */ n(b1, { size: "xsmall", color: "dimmed", className: "pr-2 relative top-[3px]", children: e }), c8 = ({ text: e }) => /* @__PURE__ */ n("div", { className: "pl-2 text-left", children: /* @__PURE__ */ n(Ie, { color: "dimmed", size: "small", text: e ?? "", omitMargin: !0 }) }), s8 = ({
|
|
3353
3353
|
text: e,
|
|
3354
3354
|
required: r,
|
|
3355
3355
|
tooltip: t
|
|
@@ -3358,7 +3358,7 @@ const V5 = ({
|
|
|
3358
3358
|
e,
|
|
3359
3359
|
!r && /* @__PURE__ */ n(b1, { size: "xsmall", color: "dimmed", className: "ml-1", children: "(Optional)" })
|
|
3360
3360
|
] }),
|
|
3361
|
-
t && /* @__PURE__ */ n(
|
|
3361
|
+
t && /* @__PURE__ */ n(ie, { text: t, placement: "right", children: /* @__PURE__ */ n(
|
|
3362
3362
|
$.InfoIcon,
|
|
3363
3363
|
{
|
|
3364
3364
|
size: 14,
|
|
@@ -3404,17 +3404,17 @@ const V5 = ({
|
|
|
3404
3404
|
style: y = {},
|
|
3405
3405
|
headerConfig: w = {}
|
|
3406
3406
|
}) => {
|
|
3407
|
-
const x =
|
|
3407
|
+
const x = e1(null), [D, S] = O(0);
|
|
3408
3408
|
a1(() => {
|
|
3409
3409
|
if (v && m && x.current) {
|
|
3410
|
-
const
|
|
3411
|
-
for (const
|
|
3412
|
-
N
|
|
3410
|
+
const I = new ResizeObserver((L) => {
|
|
3411
|
+
for (const N of L)
|
|
3412
|
+
S(N.contentRect.height);
|
|
3413
3413
|
});
|
|
3414
|
-
return
|
|
3414
|
+
return I.observe(x.current), S(x.current.offsetHeight), () => I.disconnect();
|
|
3415
3415
|
}
|
|
3416
3416
|
}, [v, m]);
|
|
3417
|
-
const
|
|
3417
|
+
const M = [
|
|
3418
3418
|
"card-base",
|
|
3419
3419
|
s ? "card-dimmed" : "",
|
|
3420
3420
|
h === "rounded" ? "card-rounded" : "",
|
|
@@ -3422,7 +3422,7 @@ const V5 = ({
|
|
|
3422
3422
|
u ? "flex flex-col" : "",
|
|
3423
3423
|
a === "small" ? "text-sm" : "",
|
|
3424
3424
|
f
|
|
3425
|
-
].filter(Boolean).join(" "), Z = parseInt(t) || 20,
|
|
3425
|
+
].filter(Boolean).join(" "), Z = parseInt(t) || 20, G = {
|
|
3426
3426
|
padding: t,
|
|
3427
3427
|
display: i ? "flex" : void 0,
|
|
3428
3428
|
flexDirection: i,
|
|
@@ -3431,7 +3431,7 @@ const V5 = ({
|
|
|
3431
3431
|
...v && m && D > 0 && {
|
|
3432
3432
|
paddingBottom: `${Z + D + 10}px`
|
|
3433
3433
|
}
|
|
3434
|
-
},
|
|
3434
|
+
}, E = {
|
|
3435
3435
|
width: o,
|
|
3436
3436
|
minWidth: l,
|
|
3437
3437
|
alignSelf: g,
|
|
@@ -3441,7 +3441,7 @@ const V5 = ({
|
|
|
3441
3441
|
overflow: "hidden",
|
|
3442
3442
|
...y
|
|
3443
3443
|
};
|
|
3444
|
-
return /* @__PURE__ */ k("div", { className:
|
|
3444
|
+
return /* @__PURE__ */ k("div", { className: M, style: E, children: [
|
|
3445
3445
|
e && /* @__PURE__ */ n(
|
|
3446
3446
|
"div",
|
|
3447
3447
|
{
|
|
@@ -3460,7 +3460,7 @@ const V5 = ({
|
|
|
3460
3460
|
{
|
|
3461
3461
|
className: "flex-1",
|
|
3462
3462
|
style: {
|
|
3463
|
-
...
|
|
3463
|
+
...G,
|
|
3464
3464
|
...v && m && { position: "relative" }
|
|
3465
3465
|
},
|
|
3466
3466
|
children: r
|
|
@@ -3496,7 +3496,7 @@ function b() {
|
|
|
3496
3496
|
return e;
|
|
3497
3497
|
}, b.apply(null, arguments);
|
|
3498
3498
|
}
|
|
3499
|
-
function
|
|
3499
|
+
function H(e, r) {
|
|
3500
3500
|
if (e == null) return {};
|
|
3501
3501
|
var t = {};
|
|
3502
3502
|
for (var a in e) if ({}.hasOwnProperty.call(e, a)) {
|
|
@@ -3529,7 +3529,7 @@ var Z5 = (e) => {
|
|
|
3529
3529
|
});
|
|
3530
3530
|
};
|
|
3531
3531
|
Z5.displayName = "JVR.ShowTools";
|
|
3532
|
-
var Q5 = {}, R5 = /* @__PURE__ */ C1(Q5), u8 = (e, r) => b({}, e, r),
|
|
3532
|
+
var Q5 = {}, R5 = /* @__PURE__ */ C1(Q5), u8 = (e, r) => b({}, e, r), ce = () => g1(R5), Qe = /* @__PURE__ */ C1(() => {
|
|
3533
3533
|
});
|
|
3534
3534
|
Qe.displayName = "JVR.DispatchExpands";
|
|
3535
3535
|
function g8() {
|
|
@@ -3701,7 +3701,7 @@ var v8 = ["style"];
|
|
|
3701
3701
|
function Y5(e) {
|
|
3702
3702
|
var {
|
|
3703
3703
|
style: r
|
|
3704
|
-
} = e, t =
|
|
3704
|
+
} = e, t = H(e, v8), a = b({
|
|
3705
3705
|
cursor: "pointer",
|
|
3706
3706
|
height: "1em",
|
|
3707
3707
|
width: "1em",
|
|
@@ -3929,7 +3929,7 @@ $5.displayName = "JVR.Provider";
|
|
|
3929
3929
|
function M8(e) {
|
|
3930
3930
|
if (e == null) throw new TypeError("Cannot destructure " + e);
|
|
3931
3931
|
}
|
|
3932
|
-
var L8 = ["isNumber", "value", "parentValue", "keyName", "keys"], V8 = ["as", "render"], S8 = ["as", "render"], D8 = ["as", "render"], N8 = ["as", "style", "render"], F8 = ["as", "render"], I8 = ["as", "render"], P8 = ["as", "render"], Z8 = ["as", "render"],
|
|
3932
|
+
var L8 = ["isNumber", "value", "parentValue", "keyName", "keys"], V8 = ["as", "render"], S8 = ["as", "render"], D8 = ["as", "render"], N8 = ["as", "style", "render"], F8 = ["as", "render"], I8 = ["as", "render"], P8 = ["as", "render"], Z8 = ["as", "render"], we = (e) => {
|
|
3933
3933
|
var {
|
|
3934
3934
|
Quote: r = {}
|
|
3935
3935
|
} = c1(), {
|
|
@@ -3938,12 +3938,12 @@ var L8 = ["isNumber", "value", "parentValue", "keyName", "keys"], V8 = ["as", "r
|
|
|
3938
3938
|
parentValue: o,
|
|
3939
3939
|
keyName: l,
|
|
3940
3940
|
keys: s
|
|
3941
|
-
} = e, i =
|
|
3941
|
+
} = e, i = H(e, L8);
|
|
3942
3942
|
if (t) return null;
|
|
3943
3943
|
var {
|
|
3944
3944
|
as: d,
|
|
3945
3945
|
render: C
|
|
3946
|
-
} = r, h =
|
|
3946
|
+
} = r, h = H(r, V8), g = d || "span", u = b({}, i, h), m = {
|
|
3947
3947
|
value: a,
|
|
3948
3948
|
parentValue: o,
|
|
3949
3949
|
keyName: l,
|
|
@@ -3951,14 +3951,14 @@ var L8 = ["isNumber", "value", "parentValue", "keyName", "keys"], V8 = ["as", "r
|
|
|
3951
3951
|
}, v = C && typeof C == "function" && C(u, m);
|
|
3952
3952
|
return v || /* @__PURE__ */ n(g, b({}, u));
|
|
3953
3953
|
};
|
|
3954
|
-
|
|
3954
|
+
we.displayName = "JVR.Quote";
|
|
3955
3955
|
var T1 = (e) => {
|
|
3956
3956
|
var {
|
|
3957
3957
|
ValueQuote: r = {}
|
|
3958
3958
|
} = c1(), t = b({}, (M8(e), e)), {
|
|
3959
3959
|
as: a,
|
|
3960
3960
|
render: o
|
|
3961
|
-
} = r, l =
|
|
3961
|
+
} = r, l = H(r, S8), s = a || "span", i = b({}, t, l), d = o && typeof o == "function" && o(i, {});
|
|
3962
3962
|
return d || /* @__PURE__ */ n(s, b({}, i));
|
|
3963
3963
|
};
|
|
3964
3964
|
T1.displayName = "JVR.ValueQuote";
|
|
@@ -3973,7 +3973,7 @@ var _5 = (e) => {
|
|
|
3973
3973
|
} = c1(), {
|
|
3974
3974
|
as: s,
|
|
3975
3975
|
render: i
|
|
3976
|
-
} = l, d =
|
|
3976
|
+
} = l, d = H(l, D8), C = s || "span", h = i && typeof i == "function" && i(d, {
|
|
3977
3977
|
value: r,
|
|
3978
3978
|
parentValue: t,
|
|
3979
3979
|
keyName: a,
|
|
@@ -3985,7 +3985,7 @@ _5.displayName = "JVR.Colon";
|
|
|
3985
3985
|
var e2 = (e) => {
|
|
3986
3986
|
var {
|
|
3987
3987
|
Arrow: r = {}
|
|
3988
|
-
} = c1(), t =
|
|
3988
|
+
} = c1(), t = ce(), {
|
|
3989
3989
|
expandKey: a,
|
|
3990
3990
|
style: o,
|
|
3991
3991
|
value: l,
|
|
@@ -3996,7 +3996,7 @@ var e2 = (e) => {
|
|
|
3996
3996
|
as: h,
|
|
3997
3997
|
style: g,
|
|
3998
3998
|
render: u
|
|
3999
|
-
} = r, m =
|
|
3999
|
+
} = r, m = H(r, N8), v = h || "span", f = u && typeof u == "function", y = b({}, m, {
|
|
4000
4000
|
"data-expanded": C,
|
|
4001
4001
|
style: b({}, g, o)
|
|
4002
4002
|
}), w = {
|
|
@@ -4030,13 +4030,13 @@ var r2 = (e) => {
|
|
|
4030
4030
|
var {
|
|
4031
4031
|
as: C,
|
|
4032
4032
|
render: h
|
|
4033
|
-
} = s, g =
|
|
4033
|
+
} = s, g = H(s, F8), u = C || "span", m = h && typeof h == "function" && h(g, d);
|
|
4034
4034
|
return m || /* @__PURE__ */ n(u, b({}, g));
|
|
4035
4035
|
}
|
|
4036
4036
|
var {
|
|
4037
4037
|
as: v,
|
|
4038
4038
|
render: f
|
|
4039
|
-
} = i, y =
|
|
4039
|
+
} = i, y = H(i, I8), w = v || "span", x = f && typeof f == "function" && f(y, d);
|
|
4040
4040
|
return x || /* @__PURE__ */ n(w, b({}, y));
|
|
4041
4041
|
};
|
|
4042
4042
|
r2.displayName = "JVR.BracketsOpen";
|
|
@@ -4063,13 +4063,13 @@ var Ke = (e) => {
|
|
|
4063
4063
|
var {
|
|
4064
4064
|
as: h,
|
|
4065
4065
|
render: g
|
|
4066
|
-
} = d, u =
|
|
4066
|
+
} = d, u = H(d, P8), m = h || "span", v = g && typeof g == "function" && g(u, i);
|
|
4067
4067
|
return v || /* @__PURE__ */ n(m, b({}, u));
|
|
4068
4068
|
}
|
|
4069
4069
|
var {
|
|
4070
4070
|
as: f,
|
|
4071
4071
|
render: y
|
|
4072
|
-
} = C, w =
|
|
4072
|
+
} = C, w = H(C, Z8), x = f || "span", D = y && typeof y == "function" && y(w, i);
|
|
4073
4073
|
return D || /* @__PURE__ */ n(x, b({}, w));
|
|
4074
4074
|
};
|
|
4075
4075
|
Ke.displayName = "JVR.BracketsClose";
|
|
@@ -4081,7 +4081,7 @@ var t2 = (e) => {
|
|
|
4081
4081
|
parentValue: l,
|
|
4082
4082
|
level: s,
|
|
4083
4083
|
keys: i = []
|
|
4084
|
-
} = e, d =
|
|
4084
|
+
} = e, d = ce(), {
|
|
4085
4085
|
collapsed: C,
|
|
4086
4086
|
shouldExpandNodeInitially: h
|
|
4087
4087
|
} = L1(), g = typeof C == "boolean" ? C : typeof C == "number" ? s > C : !1, u = (r = d[o]) != null ? r : g, m = h && h(u, {
|
|
@@ -4114,7 +4114,7 @@ var t2 = (e) => {
|
|
|
4114
4114
|
});
|
|
4115
4115
|
};
|
|
4116
4116
|
t2.displayName = "JVR.NestedClose";
|
|
4117
|
-
var Q8 = ["as", "render"], R8 = ["as", "render"], G8 = ["as", "render"], H8 = ["as", "render"], j8 = ["as", "render"], K8 = ["as", "render"], Y8 = ["as", "render"], T8 = ["as", "render"], W8 = ["as", "render"], O8 = ["as", "render"], J8 = ["as", "render"], z8 = ["as", "render"], X8 = ["as", "render"],
|
|
4117
|
+
var Q8 = ["as", "render"], R8 = ["as", "render"], G8 = ["as", "render"], H8 = ["as", "render"], j8 = ["as", "render"], K8 = ["as", "render"], Y8 = ["as", "render"], T8 = ["as", "render"], W8 = ["as", "render"], O8 = ["as", "render"], J8 = ["as", "render"], z8 = ["as", "render"], X8 = ["as", "render"], xe = (e) => {
|
|
4118
4118
|
if (e === void 0)
|
|
4119
4119
|
return "0n";
|
|
4120
4120
|
if (typeof e == "string")
|
|
@@ -4136,7 +4136,7 @@ var Q8 = ["as", "render"], R8 = ["as", "render"], G8 = ["as", "render"], H8 = ["
|
|
|
4136
4136
|
var {
|
|
4137
4137
|
as: s,
|
|
4138
4138
|
render: i
|
|
4139
|
-
} = a, d =
|
|
4139
|
+
} = a, d = H(a, Q8), C = i && typeof i == "function", h = C && i(d, {
|
|
4140
4140
|
type: "type",
|
|
4141
4141
|
value: r,
|
|
4142
4142
|
keyName: t
|
|
@@ -4158,7 +4158,7 @@ var o2 = (e) => {
|
|
|
4158
4158
|
var {
|
|
4159
4159
|
as: s,
|
|
4160
4160
|
render: i
|
|
4161
|
-
} = a, d =
|
|
4161
|
+
} = a, d = H(a, R8), C = i && typeof i == "function", h = C && i(d, {
|
|
4162
4162
|
type: "type",
|
|
4163
4163
|
value: r,
|
|
4164
4164
|
keyName: t
|
|
@@ -4185,7 +4185,7 @@ var p1 = {
|
|
|
4185
4185
|
} = L1(), {
|
|
4186
4186
|
as: d,
|
|
4187
4187
|
render: C
|
|
4188
|
-
} = o, h =
|
|
4188
|
+
} = o, h = H(o, G8), g = r, [u, m] = O(s && g.length > s);
|
|
4189
4189
|
a1(() => m(s && g.length > s), [s]);
|
|
4190
4190
|
var v = d || "span", f = b({}, p1, o.style || {});
|
|
4191
4191
|
s > 0 && (h.style = b({}, h.style, {
|
|
@@ -4200,7 +4200,7 @@ var p1 = {
|
|
|
4200
4200
|
value: r,
|
|
4201
4201
|
keyName: t,
|
|
4202
4202
|
keys: a
|
|
4203
|
-
}), D = u ? "w-rjv-value w-rjv-value-short" : "w-rjv-value",
|
|
4203
|
+
}), D = u ? "w-rjv-value w-rjv-value-short" : "w-rjv-value", S = w && C(b({}, h, {
|
|
4204
4204
|
children: y,
|
|
4205
4205
|
className: D
|
|
4206
4206
|
}), {
|
|
@@ -4212,7 +4212,7 @@ var p1 = {
|
|
|
4212
4212
|
return /* @__PURE__ */ k(i1, {
|
|
4213
4213
|
children: [l && (x || /* @__PURE__ */ n(v, b({}, h, {
|
|
4214
4214
|
style: f
|
|
4215
|
-
}))),
|
|
4215
|
+
}))), S || /* @__PURE__ */ k(i1, {
|
|
4216
4216
|
children: [/* @__PURE__ */ n(T1, {}), /* @__PURE__ */ n(v, b({}, h, {
|
|
4217
4217
|
className: D,
|
|
4218
4218
|
children: y
|
|
@@ -4232,7 +4232,7 @@ var l2 = (e) => {
|
|
|
4232
4232
|
} = z(), {
|
|
4233
4233
|
as: s,
|
|
4234
4234
|
render: i
|
|
4235
|
-
} = o, d =
|
|
4235
|
+
} = o, d = H(o, H8), C = s || "span", h = b({}, p1, o.style || {}), g = i && typeof i == "function", u = g && i(b({}, d, {
|
|
4236
4236
|
style: h
|
|
4237
4237
|
}), {
|
|
4238
4238
|
type: "type",
|
|
@@ -4269,7 +4269,7 @@ var i2 = (e) => {
|
|
|
4269
4269
|
} = z(), {
|
|
4270
4270
|
as: s,
|
|
4271
4271
|
render: i
|
|
4272
|
-
} = o, d =
|
|
4272
|
+
} = o, d = H(o, j8), C = s || "span", h = b({}, p1, o.style || {}), g = i && typeof i == "function", u = g && i(b({}, d, {
|
|
4273
4273
|
style: h
|
|
4274
4274
|
}), {
|
|
4275
4275
|
type: "type",
|
|
@@ -4306,7 +4306,7 @@ var c2 = (e) => {
|
|
|
4306
4306
|
} = z(), {
|
|
4307
4307
|
as: s,
|
|
4308
4308
|
render: i
|
|
4309
|
-
} = o, d =
|
|
4309
|
+
} = o, d = H(o, K8), C = s || "span", h = b({}, p1, o.style || {}), g = i && typeof i == "function", u = g && i(b({}, d, {
|
|
4310
4310
|
style: h
|
|
4311
4311
|
}), {
|
|
4312
4312
|
type: "type",
|
|
@@ -4343,7 +4343,7 @@ var s2 = (e) => {
|
|
|
4343
4343
|
} = z(), {
|
|
4344
4344
|
as: s,
|
|
4345
4345
|
render: i
|
|
4346
|
-
} = o, d =
|
|
4346
|
+
} = o, d = H(o, Y8), C = s || "span", h = b({}, p1, o.style || {}), g = i && typeof i == "function", u = g && i(b({}, d, {
|
|
4347
4347
|
style: h
|
|
4348
4348
|
}), {
|
|
4349
4349
|
type: "type",
|
|
@@ -4380,7 +4380,7 @@ var d2 = (e) => {
|
|
|
4380
4380
|
} = z(), {
|
|
4381
4381
|
as: s,
|
|
4382
4382
|
render: i
|
|
4383
|
-
} = o, d =
|
|
4383
|
+
} = o, d = H(o, T8), C = s || "span", h = b({}, p1, o.style || {}), g = i && typeof i == "function", u = g && i(b({}, d, {
|
|
4384
4384
|
style: h
|
|
4385
4385
|
}), {
|
|
4386
4386
|
type: "type",
|
|
@@ -4401,7 +4401,7 @@ var d2 = (e) => {
|
|
|
4401
4401
|
style: h
|
|
4402
4402
|
}))), m || /* @__PURE__ */ n(C, b({}, d, {
|
|
4403
4403
|
className: "w-rjv-value",
|
|
4404
|
-
children:
|
|
4404
|
+
children: xe(r == null ? void 0 : r.toString())
|
|
4405
4405
|
}))]
|
|
4406
4406
|
});
|
|
4407
4407
|
};
|
|
@@ -4417,7 +4417,7 @@ var C2 = (e) => {
|
|
|
4417
4417
|
} = z(), {
|
|
4418
4418
|
as: s,
|
|
4419
4419
|
render: i
|
|
4420
|
-
} = o, d =
|
|
4420
|
+
} = o, d = H(o, W8), C = s || "span", h = b({}, p1, o.style), g = i && typeof i == "function", u = g && i(b({}, d, {
|
|
4421
4421
|
style: h
|
|
4422
4422
|
}), {
|
|
4423
4423
|
type: "type",
|
|
@@ -4457,7 +4457,7 @@ var h2 = (e) => {
|
|
|
4457
4457
|
} = z(), {
|
|
4458
4458
|
as: s,
|
|
4459
4459
|
render: i
|
|
4460
|
-
} = o, d =
|
|
4460
|
+
} = o, d = H(o, O8), C = s || "span", h = b({}, p1, o.style || {}), g = i && typeof i == "function", u = g && i(b({}, d, {
|
|
4461
4461
|
style: h
|
|
4462
4462
|
}), {
|
|
4463
4463
|
type: "type",
|
|
@@ -4494,7 +4494,7 @@ var u2 = (e) => {
|
|
|
4494
4494
|
} = z(), {
|
|
4495
4495
|
as: s,
|
|
4496
4496
|
render: i
|
|
4497
|
-
} = o, d =
|
|
4497
|
+
} = o, d = H(o, J8), C = s || "span", h = b({}, p1, o.style || {}), g = i && typeof i == "function", u = g && i(b({}, d, {
|
|
4498
4498
|
style: h
|
|
4499
4499
|
}), {
|
|
4500
4500
|
type: "type",
|
|
@@ -4528,7 +4528,7 @@ var g2 = (e) => {
|
|
|
4528
4528
|
} = z(), {
|
|
4529
4529
|
as: s,
|
|
4530
4530
|
render: i
|
|
4531
|
-
} = o, d =
|
|
4531
|
+
} = o, d = H(o, z8), C = s || "span", h = b({}, p1, o.style || {}), g = i && typeof i == "function", u = g && i(b({}, d, {
|
|
4532
4532
|
style: h
|
|
4533
4533
|
}), {
|
|
4534
4534
|
type: "type",
|
|
@@ -4562,7 +4562,7 @@ var p2 = (e) => {
|
|
|
4562
4562
|
} = z(), {
|
|
4563
4563
|
as: s,
|
|
4564
4564
|
render: i
|
|
4565
|
-
} = o, d =
|
|
4565
|
+
} = o, d = H(o, X8), C = s || "span", h = b({}, p1, o.style || {}), g = i && typeof i == "function", u = g && i(b({}, d, {
|
|
4566
4566
|
style: h
|
|
4567
4567
|
}), {
|
|
4568
4568
|
type: "type",
|
|
@@ -4670,7 +4670,7 @@ var b2 = (e) => {
|
|
|
4670
4670
|
} = h1(), {
|
|
4671
4671
|
as: C,
|
|
4672
4672
|
render: h
|
|
4673
|
-
} = d, g =
|
|
4673
|
+
} = d, g = H(d, U8);
|
|
4674
4674
|
g.style = b({}, g.style, i);
|
|
4675
4675
|
var u = C || "span", m = h && typeof h == "function" && h(b({}, g, {
|
|
4676
4676
|
children: r
|
|
@@ -4699,12 +4699,12 @@ var w2 = (e) => {
|
|
|
4699
4699
|
parentValue: a,
|
|
4700
4700
|
keyName: o,
|
|
4701
4701
|
keys: l
|
|
4702
|
-
} = e, s =
|
|
4702
|
+
} = e, s = H(e, $8), {
|
|
4703
4703
|
Row: i = {}
|
|
4704
4704
|
} = h1(), {
|
|
4705
4705
|
as: d,
|
|
4706
4706
|
render: C
|
|
4707
|
-
} = i, h =
|
|
4707
|
+
} = i, h = H(i, _8), g = d || "div", u = C && typeof C == "function" && C(b({}, s, h, {
|
|
4708
4708
|
children: r
|
|
4709
4709
|
}), {
|
|
4710
4710
|
value: t,
|
|
@@ -4718,7 +4718,7 @@ var w2 = (e) => {
|
|
|
4718
4718
|
};
|
|
4719
4719
|
w2.displayName = "JVR.RowComp";
|
|
4720
4720
|
function e0(e) {
|
|
4721
|
-
var r =
|
|
4721
|
+
var r = e1();
|
|
4722
4722
|
return a1(() => {
|
|
4723
4723
|
r.current = e;
|
|
4724
4724
|
}), r.current;
|
|
@@ -4759,26 +4759,26 @@ var t0 = ["keyName", "value", "parentValue", "expandKey", "keys"], a0 = ["as", "
|
|
|
4759
4759
|
parentValue: a,
|
|
4760
4760
|
expandKey: o,
|
|
4761
4761
|
keys: l
|
|
4762
|
-
} = e, s =
|
|
4762
|
+
} = e, s = H(e, t0), {
|
|
4763
4763
|
onCopied: i,
|
|
4764
4764
|
enableClipboard: d
|
|
4765
4765
|
} = L1(), C = C8(), h = C[o], [g, u] = O(!1), {
|
|
4766
4766
|
Copied: m = {}
|
|
4767
4767
|
} = h1();
|
|
4768
4768
|
if (d === !1 || !h) return null;
|
|
4769
|
-
var v = (
|
|
4770
|
-
|
|
4771
|
-
var
|
|
4772
|
-
typeof t == "number" && t === 1 / 0 ?
|
|
4769
|
+
var v = (F) => {
|
|
4770
|
+
F.stopPropagation();
|
|
4771
|
+
var M = "";
|
|
4772
|
+
typeof t == "number" && t === 1 / 0 ? M = "Infinity" : typeof t == "number" && isNaN(t) ? M = "NaN" : typeof t == "bigint" ? M = xe(t) : t instanceof Date ? M = t.toLocaleString() : M = JSON.stringify(t, (Q, G) => typeof G == "bigint" ? xe(G) : G, 2), i && i(M, t), u(!0);
|
|
4773
4773
|
var Z = navigator.clipboard || {
|
|
4774
4774
|
writeText(Q) {
|
|
4775
|
-
return new Promise((
|
|
4776
|
-
var
|
|
4777
|
-
|
|
4775
|
+
return new Promise((G, E) => {
|
|
4776
|
+
var I = document.createElement("textarea");
|
|
4777
|
+
I.style.position = "absolute", I.style.opacity = "0", I.style.left = "-99999999px", I.value = Q, document.body.appendChild(I), I.select(), document.execCommand("copy") ? G() : E(), I.remove();
|
|
4778
4778
|
});
|
|
4779
4779
|
}
|
|
4780
4780
|
};
|
|
4781
|
-
Z.writeText(
|
|
4781
|
+
Z.writeText(M).then(() => {
|
|
4782
4782
|
var Q = setTimeout(() => {
|
|
4783
4783
|
u(!1), clearTimeout(Q);
|
|
4784
4784
|
}, 3e3);
|
|
@@ -4792,9 +4792,9 @@ var t0 = ["keyName", "value", "parentValue", "expandKey", "keys"], a0 = ["as", "
|
|
|
4792
4792
|
onClick: v
|
|
4793
4793
|
}, {
|
|
4794
4794
|
render: y
|
|
4795
|
-
} = m, w =
|
|
4795
|
+
} = m, w = H(m, a0), x = b({}, w, s, f, {
|
|
4796
4796
|
style: b({}, w.style, s.style, f.style)
|
|
4797
|
-
}), D = y && typeof y == "function",
|
|
4797
|
+
}), D = y && typeof y == "function", S = D && y(b({}, x, {
|
|
4798
4798
|
"data-copied": g
|
|
4799
4799
|
}), {
|
|
4800
4800
|
value: t,
|
|
@@ -4802,7 +4802,7 @@ var t0 = ["keyName", "value", "parentValue", "expandKey", "keys"], a0 = ["as", "
|
|
|
4802
4802
|
keys: l,
|
|
4803
4803
|
parentValue: a
|
|
4804
4804
|
});
|
|
4805
|
-
return
|
|
4805
|
+
return S || (g ? /* @__PURE__ */ n("svg", b({
|
|
4806
4806
|
viewBox: "0 0 32 36"
|
|
4807
4807
|
}, x, {
|
|
4808
4808
|
children: /* @__PURE__ */ n("path", {
|
|
@@ -4818,7 +4818,7 @@ var t0 = ["keyName", "value", "parentValue", "expandKey", "keys"], a0 = ["as", "
|
|
|
4818
4818
|
};
|
|
4819
4819
|
Ye.displayName = "JVR.Copied";
|
|
4820
4820
|
function x2() {
|
|
4821
|
-
var e =
|
|
4821
|
+
var e = e1(null);
|
|
4822
4822
|
return e.current === null && (e.current = "custom-id-" + Math.random().toString(36).substr(2, 9)), e.current;
|
|
4823
4823
|
}
|
|
4824
4824
|
var y2 = (e) => {
|
|
@@ -4829,7 +4829,7 @@ var y2 = (e) => {
|
|
|
4829
4829
|
level: l,
|
|
4830
4830
|
keys: s = [],
|
|
4831
4831
|
parentValue: i
|
|
4832
|
-
} = e, d =
|
|
4832
|
+
} = e, d = ce(), {
|
|
4833
4833
|
objectSortKeys: C,
|
|
4834
4834
|
indentWidth: h,
|
|
4835
4835
|
collapsed: g,
|
|
@@ -4844,12 +4844,12 @@ var y2 = (e) => {
|
|
|
4844
4844
|
if (d[o] === void 0 && f || v)
|
|
4845
4845
|
return null;
|
|
4846
4846
|
var y = Array.isArray(a), w = y ? Object.entries(a).map((D) => [Number(D[0]), D[1]]) : Object.entries(a);
|
|
4847
|
-
C && (w = C === !0 ? w.sort((D,
|
|
4848
|
-
var [
|
|
4849
|
-
return typeof
|
|
4850
|
-
}) : w.sort((D,
|
|
4851
|
-
var [
|
|
4852
|
-
return typeof
|
|
4847
|
+
C && (w = C === !0 ? w.sort((D, S) => {
|
|
4848
|
+
var [F] = D, [M] = S;
|
|
4849
|
+
return typeof F == "string" && typeof M == "string" ? F.localeCompare(M) : 0;
|
|
4850
|
+
}) : w.sort((D, S) => {
|
|
4851
|
+
var [F, M] = D, [Z, Q] = S;
|
|
4852
|
+
return typeof F == "string" && typeof Z == "string" ? C(F, Z, M, Q) : 0;
|
|
4853
4853
|
}));
|
|
4854
4854
|
var x = {
|
|
4855
4855
|
borderLeft: "var(--w-rjv-border-left-width, 1px) var(--w-rjv-line-style, solid) var(--w-rjv-line-color, #ebebeb)",
|
|
@@ -4859,15 +4859,15 @@ var y2 = (e) => {
|
|
|
4859
4859
|
return /* @__PURE__ */ n("div", {
|
|
4860
4860
|
className: "w-rjv-wrap",
|
|
4861
4861
|
style: x,
|
|
4862
|
-
children: w.map((D,
|
|
4863
|
-
var [
|
|
4862
|
+
children: w.map((D, S) => {
|
|
4863
|
+
var [F, M] = D;
|
|
4864
4864
|
return /* @__PURE__ */ n(k2, {
|
|
4865
4865
|
parentValue: a,
|
|
4866
|
-
keyName:
|
|
4867
|
-
keys: [...s,
|
|
4868
|
-
value:
|
|
4866
|
+
keyName: F,
|
|
4867
|
+
keys: [...s, F],
|
|
4868
|
+
value: M,
|
|
4869
4869
|
level: l
|
|
4870
|
-
},
|
|
4870
|
+
}, S);
|
|
4871
4871
|
})
|
|
4872
4872
|
});
|
|
4873
4873
|
};
|
|
@@ -4880,7 +4880,7 @@ var Te = (e) => {
|
|
|
4880
4880
|
value: o
|
|
4881
4881
|
} = e, {
|
|
4882
4882
|
highlightUpdates: l
|
|
4883
|
-
} = L1(), s = typeof r == "number", i =
|
|
4883
|
+
} = L1(), s = typeof r == "number", i = e1(null);
|
|
4884
4884
|
r0({
|
|
4885
4885
|
value: o,
|
|
4886
4886
|
highlightUpdates: l,
|
|
@@ -4895,12 +4895,12 @@ var Te = (e) => {
|
|
|
4895
4895
|
return /* @__PURE__ */ k(i1, {
|
|
4896
4896
|
children: [/* @__PURE__ */ k("span", {
|
|
4897
4897
|
ref: i,
|
|
4898
|
-
children: [/* @__PURE__ */ n(
|
|
4898
|
+
children: [/* @__PURE__ */ n(we, b({
|
|
4899
4899
|
isNumber: s,
|
|
4900
4900
|
"data-placement": "left"
|
|
4901
4901
|
}, d)), /* @__PURE__ */ n(b2, b({}, d, {
|
|
4902
4902
|
children: r
|
|
4903
|
-
})), /* @__PURE__ */ n(
|
|
4903
|
+
})), /* @__PURE__ */ n(we, b({
|
|
4904
4904
|
isNumber: s,
|
|
4905
4905
|
"data-placement": "right"
|
|
4906
4906
|
}, d))]
|
|
@@ -4972,12 +4972,12 @@ var E2 = (e) => {
|
|
|
4972
4972
|
var {
|
|
4973
4973
|
value: r = {},
|
|
4974
4974
|
keyName: t
|
|
4975
|
-
} = e, a =
|
|
4975
|
+
} = e, a = H(e, o0), {
|
|
4976
4976
|
CountInfoExtra: o = {}
|
|
4977
4977
|
} = h1(), {
|
|
4978
4978
|
as: l,
|
|
4979
4979
|
render: s
|
|
4980
|
-
} = o, i =
|
|
4980
|
+
} = o, i = H(o, n0);
|
|
4981
4981
|
if (!s && !i.children) return null;
|
|
4982
4982
|
var d = l || "span", C = s && typeof s == "function", h = b({}, i, a), g = C && s(h, {
|
|
4983
4983
|
value: r,
|
|
@@ -4997,7 +4997,7 @@ var M2 = (e) => {
|
|
|
4997
4997
|
var {
|
|
4998
4998
|
value: r = {},
|
|
4999
4999
|
keyName: t
|
|
5000
|
-
} = e, a =
|
|
5000
|
+
} = e, a = H(e, l0), {
|
|
5001
5001
|
displayObjectSize: o
|
|
5002
5002
|
} = L1(), {
|
|
5003
5003
|
CountInfo: l = {}
|
|
@@ -5006,7 +5006,7 @@ var M2 = (e) => {
|
|
|
5006
5006
|
var {
|
|
5007
5007
|
as: s,
|
|
5008
5008
|
render: i
|
|
5009
|
-
} = l, d =
|
|
5009
|
+
} = l, d = H(l, i0), C = s || "span";
|
|
5010
5010
|
d.style = b({}, d.style, e.style);
|
|
5011
5011
|
var h = Object.keys(r).length;
|
|
5012
5012
|
d.children || (d.children = h + " item" + (h === 1 ? "" : "s"));
|
|
@@ -5036,7 +5036,7 @@ var V2 = (e) => {
|
|
|
5036
5036
|
} = h1(), {
|
|
5037
5037
|
as: l,
|
|
5038
5038
|
render: s
|
|
5039
|
-
} = o, i =
|
|
5039
|
+
} = o, i = H(o, c0), d = l || "span", C = s && typeof s == "function" && s(b({}, i, {
|
|
5040
5040
|
"data-expanded": r
|
|
5041
5041
|
}), {
|
|
5042
5042
|
value: t,
|
|
@@ -5054,7 +5054,7 @@ var S2 = (e) => {
|
|
|
5054
5054
|
value: s,
|
|
5055
5055
|
parentValue: i,
|
|
5056
5056
|
level: d
|
|
5057
|
-
} = e, C =
|
|
5057
|
+
} = e, C = ce(), h = p8(), {
|
|
5058
5058
|
onExpand: g,
|
|
5059
5059
|
collapsed: u,
|
|
5060
5060
|
shouldExpandNodeInitially: m
|
|
@@ -5067,14 +5067,14 @@ var S2 = (e) => {
|
|
|
5067
5067
|
});
|
|
5068
5068
|
C[a] === void 0 && m && (f = !!y);
|
|
5069
5069
|
var w = () => {
|
|
5070
|
-
var
|
|
5070
|
+
var I = {
|
|
5071
5071
|
expand: !f,
|
|
5072
5072
|
value: s,
|
|
5073
5073
|
keyid: a,
|
|
5074
5074
|
keyName: t
|
|
5075
5075
|
};
|
|
5076
|
-
g && g(
|
|
5077
|
-
[a]:
|
|
5076
|
+
g && g(I), h({
|
|
5077
|
+
[a]: I.expand
|
|
5078
5078
|
});
|
|
5079
5079
|
}, x = {
|
|
5080
5080
|
display: "inline-flex",
|
|
@@ -5082,36 +5082,36 @@ var S2 = (e) => {
|
|
|
5082
5082
|
}, D = {
|
|
5083
5083
|
transform: "rotate(" + (f ? "-90" : "0") + "deg)",
|
|
5084
5084
|
transition: "all 0.3s"
|
|
5085
|
-
},
|
|
5085
|
+
}, S = Object.keys(s).length, F = typeof s == "object", M = Array.isArray(s), Z = s instanceof Set, Q = S !== 0 && (M || Z || F), G = {
|
|
5086
5086
|
style: x
|
|
5087
5087
|
};
|
|
5088
|
-
Q && (
|
|
5089
|
-
var
|
|
5088
|
+
Q && (G.onClick = w);
|
|
5089
|
+
var E = {
|
|
5090
5090
|
keyName: t,
|
|
5091
5091
|
value: s,
|
|
5092
5092
|
keys: o,
|
|
5093
5093
|
parentValue: i
|
|
5094
5094
|
};
|
|
5095
|
-
return /* @__PURE__ */ k("span", b({},
|
|
5095
|
+
return /* @__PURE__ */ k("span", b({}, G, {
|
|
5096
5096
|
children: [Q && /* @__PURE__ */ n(e2, b({
|
|
5097
5097
|
style: D,
|
|
5098
5098
|
expandKey: a
|
|
5099
|
-
},
|
|
5099
|
+
}, E)), (t || typeof t == "number") && /* @__PURE__ */ n(Te, b({}, E)), /* @__PURE__ */ n(a2, {
|
|
5100
5100
|
value: l,
|
|
5101
5101
|
keyName: t
|
|
5102
5102
|
}), /* @__PURE__ */ n(o2, {
|
|
5103
5103
|
value: l,
|
|
5104
5104
|
keyName: t
|
|
5105
5105
|
}), /* @__PURE__ */ n(r2, b({
|
|
5106
|
-
isBrackets:
|
|
5107
|
-
},
|
|
5106
|
+
isBrackets: M || Z
|
|
5107
|
+
}, E)), /* @__PURE__ */ n(V2, {
|
|
5108
5108
|
keyName: t,
|
|
5109
5109
|
value: s,
|
|
5110
5110
|
isExpanded: f
|
|
5111
5111
|
}), /* @__PURE__ */ n(Ke, b({
|
|
5112
5112
|
isVisiable: f || !Q,
|
|
5113
|
-
isBrackets:
|
|
5114
|
-
},
|
|
5113
|
+
isBrackets: M || Z
|
|
5114
|
+
}, E)), /* @__PURE__ */ n(M2, {
|
|
5115
5115
|
value: s,
|
|
5116
5116
|
keyName: t
|
|
5117
5117
|
}), /* @__PURE__ */ n(E2, {
|
|
@@ -5127,7 +5127,7 @@ var S2 = (e) => {
|
|
|
5127
5127
|
}));
|
|
5128
5128
|
};
|
|
5129
5129
|
S2.displayName = "JVR.NestedOpen";
|
|
5130
|
-
var s0 = ["className", "children", "parentValue", "keyid", "level", "value", "initialValue", "keys", "keyName"], We = /* @__PURE__ */
|
|
5130
|
+
var s0 = ["className", "children", "parentValue", "keyid", "level", "value", "initialValue", "keys", "keyName"], We = /* @__PURE__ */ ke((e, r) => {
|
|
5131
5131
|
var {
|
|
5132
5132
|
className: t = "",
|
|
5133
5133
|
parentValue: a,
|
|
@@ -5136,7 +5136,7 @@ var s0 = ["className", "children", "parentValue", "keyid", "level", "value", "in
|
|
|
5136
5136
|
initialValue: s,
|
|
5137
5137
|
keys: i,
|
|
5138
5138
|
keyName: d
|
|
5139
|
-
} = e, C =
|
|
5139
|
+
} = e, C = H(e, s0), h = P5(), g = x2(), u = [t, "w-rjv-inner"].filter(Boolean).join(" "), m = {
|
|
5140
5140
|
onMouseEnter: () => h({
|
|
5141
5141
|
[g]: !0
|
|
5142
5142
|
}),
|
|
@@ -5328,7 +5328,7 @@ var $2 = (e) => {
|
|
|
5328
5328
|
return Q1(r, e, "Copied"), null;
|
|
5329
5329
|
};
|
|
5330
5330
|
$2.displayName = "JVR.Copied";
|
|
5331
|
-
var d0 = ["className", "style", "value", "children", "collapsed", "shouldExpandNodeInitially", "indentWidth", "displayObjectSize", "shortenTextAfterLength", "stringEllipsis", "highlightUpdates", "enableClipboard", "displayDataTypes", "objectSortKeys", "onExpand", "onCopied"], T = /* @__PURE__ */
|
|
5331
|
+
var d0 = ["className", "style", "value", "children", "collapsed", "shouldExpandNodeInitially", "indentWidth", "displayObjectSize", "shortenTextAfterLength", "stringEllipsis", "highlightUpdates", "enableClipboard", "displayDataTypes", "objectSortKeys", "onExpand", "onCopied"], T = /* @__PURE__ */ ke((e, r) => {
|
|
5332
5332
|
var {
|
|
5333
5333
|
className: t = "",
|
|
5334
5334
|
style: a,
|
|
@@ -5346,13 +5346,13 @@ var d0 = ["className", "style", "value", "children", "collapsed", "shouldExpandN
|
|
|
5346
5346
|
objectSortKeys: f = !1,
|
|
5347
5347
|
onExpand: y,
|
|
5348
5348
|
onCopied: w
|
|
5349
|
-
} = e, x =
|
|
5349
|
+
} = e, x = H(e, d0), D = b({
|
|
5350
5350
|
lineHeight: 1.4,
|
|
5351
5351
|
fontFamily: "var(--w-rjv-font-family, Menlo, monospace)",
|
|
5352
5352
|
color: "var(--w-rjv-color, #002b36)",
|
|
5353
5353
|
backgroundColor: "var(--w-rjv-background-color, #00000000)",
|
|
5354
5354
|
fontSize: 13
|
|
5355
|
-
}, a),
|
|
5355
|
+
}, a), S = ["w-json-view-container", "w-rjv", t].filter(Boolean).join(" ");
|
|
5356
5356
|
return /* @__PURE__ */ k($5, {
|
|
5357
5357
|
initialState: {
|
|
5358
5358
|
value: o,
|
|
@@ -5375,7 +5375,7 @@ var d0 = ["className", "style", "value", "children", "collapsed", "shouldExpandN
|
|
|
5375
5375
|
value: o
|
|
5376
5376
|
}, x, {
|
|
5377
5377
|
ref: r,
|
|
5378
|
-
className:
|
|
5378
|
+
className: S,
|
|
5379
5379
|
style: D
|
|
5380
5380
|
})), l]
|
|
5381
5381
|
});
|
|
@@ -5923,51 +5923,51 @@ const z9 = ({
|
|
|
5923
5923
|
search: y = !1,
|
|
5924
5924
|
size: w = "medium"
|
|
5925
5925
|
}) => {
|
|
5926
|
-
const [x, D] = O(!1), [
|
|
5927
|
-
e.find((
|
|
5926
|
+
const [x, D] = O(!1), [S, F] = O(
|
|
5927
|
+
e.find((B) => B.id === t)
|
|
5928
5928
|
);
|
|
5929
5929
|
a1(() => {
|
|
5930
|
-
const
|
|
5931
|
-
|
|
5930
|
+
const B = e.find((A) => A.id === t);
|
|
5931
|
+
F((A) => (A == null ? void 0 : A.id) === (B == null ? void 0 : B.id) ? A : B);
|
|
5932
5932
|
}, [t, e]);
|
|
5933
|
-
const [
|
|
5933
|
+
const [M, Z] = O(""), Q = e1(null), G = e1(null), E = e1(null), [I, L] = O(null), N = O1(() => {
|
|
5934
5934
|
var A1, d1;
|
|
5935
|
-
const
|
|
5936
|
-
if (!
|
|
5937
|
-
const A =
|
|
5938
|
-
let q,
|
|
5935
|
+
const B = G.current;
|
|
5936
|
+
if (!B) return;
|
|
5937
|
+
const A = B.getBoundingClientRect(), P = ((A1 = E.current) == null ? void 0 : A1.offsetWidth) || 180, j = ((d1 = E.current) == null ? void 0 : d1.offsetHeight) ?? 0, V = window.innerWidth - E1 * 2;
|
|
5938
|
+
let q, r1;
|
|
5939
5939
|
if (w === "small") {
|
|
5940
|
-
const n1 = Math.min(
|
|
5941
|
-
q = Math.max(E1, Math.min(d6, C6)),
|
|
5940
|
+
const n1 = Math.min(P, V), d6 = A.right - n1, C6 = window.innerWidth - n1 - E1;
|
|
5941
|
+
q = Math.max(E1, Math.min(d6, C6)), r1 = n1;
|
|
5942
5942
|
} else {
|
|
5943
|
-
|
|
5944
|
-
const n1 = window.innerWidth -
|
|
5943
|
+
r1 = Math.min(A.width, V);
|
|
5944
|
+
const n1 = window.innerWidth - r1 - E1;
|
|
5945
5945
|
q = Math.max(E1, Math.min(A.left, n1));
|
|
5946
5946
|
}
|
|
5947
5947
|
const m1 = window.innerHeight - A.bottom, X = j > 0 && m1 < j + E1, x1 = X ? A.top - j - l5 : A.bottom + l5;
|
|
5948
|
-
|
|
5948
|
+
L({ top: x1, left: q, width: r1, openUp: X });
|
|
5949
5949
|
}, [w]);
|
|
5950
5950
|
a1(() => {
|
|
5951
5951
|
if (!x) {
|
|
5952
|
-
|
|
5952
|
+
L(null);
|
|
5953
5953
|
return;
|
|
5954
5954
|
}
|
|
5955
|
-
|
|
5956
|
-
const
|
|
5957
|
-
var
|
|
5958
|
-
const j =
|
|
5955
|
+
N();
|
|
5956
|
+
const B = (P) => {
|
|
5957
|
+
var r1, m1;
|
|
5958
|
+
const j = P.target, V = (r1 = Q.current) == null ? void 0 : r1.contains(j), q = (m1 = E.current) == null ? void 0 : m1.contains(j);
|
|
5959
5959
|
!V && !q && (D(!1), y && Z(""));
|
|
5960
|
-
}, A = () =>
|
|
5961
|
-
return document.addEventListener("mousedown",
|
|
5962
|
-
document.removeEventListener("mousedown",
|
|
5960
|
+
}, A = () => N();
|
|
5961
|
+
return document.addEventListener("mousedown", B), window.addEventListener("scroll", A, !0), window.addEventListener("resize", A), () => {
|
|
5962
|
+
document.removeEventListener("mousedown", B), window.removeEventListener("scroll", A, !0), window.removeEventListener("resize", A);
|
|
5963
5963
|
};
|
|
5964
|
-
}, [x, y,
|
|
5965
|
-
x &&
|
|
5966
|
-
}, [x,
|
|
5967
|
-
const _ = (
|
|
5968
|
-
|
|
5969
|
-
}, R = (
|
|
5970
|
-
const
|
|
5964
|
+
}, [x, y, N]), J1(() => {
|
|
5965
|
+
x && E.current && N();
|
|
5966
|
+
}, [x, N]);
|
|
5967
|
+
const _ = (B) => {
|
|
5968
|
+
F(B), D(!1), y && Z(""), r == null || r(B == null ? void 0 : B.id);
|
|
5969
|
+
}, R = (B, A) => {
|
|
5970
|
+
const P = A.toLowerCase(), j = B.label.toLowerCase().includes(P), V = B.subtitle ? B.subtitle.toLowerCase().includes(P) : !1, q = B.rightSideText ? B.rightSideText.toLowerCase().includes(P) : !1;
|
|
5971
5971
|
return j || V || q;
|
|
5972
5972
|
};
|
|
5973
5973
|
return /* @__PURE__ */ k(
|
|
@@ -5987,15 +5987,15 @@ const z9 = ({
|
|
|
5987
5987
|
/* @__PURE__ */ n(
|
|
5988
5988
|
e6,
|
|
5989
5989
|
{
|
|
5990
|
-
ref:
|
|
5990
|
+
ref: G,
|
|
5991
5991
|
isOpen: x,
|
|
5992
5992
|
onClick: () => !a && D(!x),
|
|
5993
|
-
selectedItem:
|
|
5993
|
+
selectedItem: S,
|
|
5994
5994
|
disabled: a,
|
|
5995
5995
|
error: o,
|
|
5996
5996
|
placeholder: f,
|
|
5997
5997
|
search: y,
|
|
5998
|
-
searchQuery:
|
|
5998
|
+
searchQuery: M,
|
|
5999
5999
|
onSearchChange: Z,
|
|
6000
6000
|
onFocusOpen: () => D(!0),
|
|
6001
6001
|
size: w
|
|
@@ -6005,21 +6005,21 @@ const z9 = ({
|
|
|
6005
6005
|
/* @__PURE__ */ n(
|
|
6006
6006
|
r6,
|
|
6007
6007
|
{
|
|
6008
|
-
ref:
|
|
6008
|
+
ref: E,
|
|
6009
6009
|
style: {
|
|
6010
6010
|
position: "fixed",
|
|
6011
|
-
top: (
|
|
6012
|
-
left: (
|
|
6013
|
-
width: w === "small" ? "auto" :
|
|
6011
|
+
top: (I == null ? void 0 : I.top) ?? 0,
|
|
6012
|
+
left: (I == null ? void 0 : I.left) ?? 0,
|
|
6013
|
+
width: w === "small" ? "auto" : I == null ? void 0 : I.width,
|
|
6014
6014
|
maxWidth: w === "small" ? `calc(100vw - ${E1 * 2}px)` : void 0,
|
|
6015
6015
|
// Hidden on first paint until measured (see the layout effect).
|
|
6016
|
-
visibility:
|
|
6017
|
-
opacity:
|
|
6016
|
+
visibility: I ? "visible" : "hidden",
|
|
6017
|
+
opacity: I ? 1 : 0,
|
|
6018
6018
|
zIndex: 2147483646
|
|
6019
6019
|
},
|
|
6020
|
-
items: y &&
|
|
6020
|
+
items: y && M ? e.filter((B) => R(B, M)) : e,
|
|
6021
6021
|
onItemSelected: _,
|
|
6022
|
-
selectedItem:
|
|
6022
|
+
selectedItem: S,
|
|
6023
6023
|
menuLoading: g
|
|
6024
6024
|
}
|
|
6025
6025
|
),
|
|
@@ -6051,7 +6051,7 @@ const z9 = ({
|
|
|
6051
6051
|
},
|
|
6052
6052
|
children: [
|
|
6053
6053
|
/* @__PURE__ */ n(
|
|
6054
|
-
|
|
6054
|
+
Ae,
|
|
6055
6055
|
{
|
|
6056
6056
|
size: g,
|
|
6057
6057
|
className: "text-[var(--malachite-text-placeholder)] shrink-0"
|
|
@@ -6075,7 +6075,7 @@ const z9 = ({
|
|
|
6075
6075
|
]
|
|
6076
6076
|
}
|
|
6077
6077
|
);
|
|
6078
|
-
},
|
|
6078
|
+
}, he = 8, g0 = 10, q9 = ({
|
|
6079
6079
|
options: e,
|
|
6080
6080
|
value: r,
|
|
6081
6081
|
onChange: t,
|
|
@@ -6092,19 +6092,19 @@ const z9 = ({
|
|
|
6092
6092
|
}) => {
|
|
6093
6093
|
const [m, v] = O(!1), [f, y] = O(
|
|
6094
6094
|
null
|
|
6095
|
-
), [w, x] = O(""), D =
|
|
6096
|
-
() => e.filter((
|
|
6095
|
+
), [w, x] = O(""), D = e1(null), S = e1(null), F = N1(
|
|
6096
|
+
() => e.filter((B) => r.includes(B.value)),
|
|
6097
6097
|
[e, r]
|
|
6098
|
-
),
|
|
6099
|
-
const
|
|
6100
|
-
return
|
|
6101
|
-
}, [e, w]), Z = l ?? e.length > g0, Q =
|
|
6098
|
+
), M = N1(() => {
|
|
6099
|
+
const B = w.trim().toLowerCase();
|
|
6100
|
+
return B ? e.filter((A) => (A.searchText ?? (typeof A.label == "string" ? A.label : "")).toLowerCase().includes(B)) : e;
|
|
6101
|
+
}, [e, w]), Z = l ?? e.length > g0, Q = O1(() => {
|
|
6102
6102
|
var x1, A1;
|
|
6103
|
-
const
|
|
6104
|
-
if (!
|
|
6103
|
+
const B = D.current;
|
|
6104
|
+
if (!B)
|
|
6105
6105
|
return;
|
|
6106
|
-
const A =
|
|
6107
|
-
y({ top: X, left:
|
|
6106
|
+
const A = B.getBoundingClientRect(), P = ((x1 = S.current) == null ? void 0 : x1.offsetHeight) ?? 0, j = ((A1 = S.current) == null ? void 0 : A1.offsetWidth) ?? A.width, V = A.left, q = window.innerWidth - j - he, r1 = Math.max(he, Math.min(V, q)), m1 = window.innerHeight - A.bottom, X = P > 0 && m1 < P + he ? A.top - P - 4 : A.bottom + 4;
|
|
6107
|
+
y({ top: X, left: r1, width: Math.max(A.width, d ?? 0) });
|
|
6108
6108
|
}, [d]);
|
|
6109
6109
|
a1(() => {
|
|
6110
6110
|
if (!m) {
|
|
@@ -6112,24 +6112,24 @@ const z9 = ({
|
|
|
6112
6112
|
return;
|
|
6113
6113
|
}
|
|
6114
6114
|
Q();
|
|
6115
|
-
const
|
|
6116
|
-
var q,
|
|
6115
|
+
const B = () => Q(), A = (j) => {
|
|
6116
|
+
var q, r1;
|
|
6117
6117
|
const V = j.target;
|
|
6118
|
-
!((q = D.current) != null && q.contains(V)) && !((
|
|
6119
|
-
},
|
|
6118
|
+
!((q = D.current) != null && q.contains(V)) && !((r1 = S.current) != null && r1.contains(V)) && v(!1);
|
|
6119
|
+
}, P = (j) => {
|
|
6120
6120
|
j.key === "Escape" && v(!1);
|
|
6121
6121
|
};
|
|
6122
|
-
return window.addEventListener("scroll",
|
|
6123
|
-
window.removeEventListener("scroll",
|
|
6122
|
+
return window.addEventListener("scroll", B, !0), window.addEventListener("resize", B), document.addEventListener("mousedown", A), document.addEventListener("keydown", P), () => {
|
|
6123
|
+
window.removeEventListener("scroll", B, !0), window.removeEventListener("resize", B), document.removeEventListener("mousedown", A), document.removeEventListener("keydown", P);
|
|
6124
6124
|
};
|
|
6125
|
-
}, [m, Q]),
|
|
6126
|
-
m &&
|
|
6125
|
+
}, [m, Q]), J1(() => {
|
|
6126
|
+
m && S.current && Q();
|
|
6127
6127
|
}, [m, Q]);
|
|
6128
|
-
const
|
|
6129
|
-
r.includes(
|
|
6130
|
-
},
|
|
6131
|
-
|
|
6132
|
-
},
|
|
6128
|
+
const G = (B) => {
|
|
6129
|
+
r.includes(B) ? t(r.filter((A) => A !== B)) : t([...r, B]);
|
|
6130
|
+
}, E = (B) => {
|
|
6131
|
+
B.stopPropagation(), t([]);
|
|
6132
|
+
}, I = s === "small" ? "h-8" : "h-10", L = typeof i == "number" ? `${i}px` : i, N = F.length > 0 && !C, _ = F.length === 0 ? /* @__PURE__ */ n("span", { className: "text-[var(--malachite-text-placeholder)]", children: a }) : o ? o(F) : F.length === 1 ? /* @__PURE__ */ n("span", { children: F[0].label }) : /* @__PURE__ */ n("span", { children: `${F.length} selected` }), R = {
|
|
6133
6133
|
position: "fixed",
|
|
6134
6134
|
top: (f == null ? void 0 : f.top) ?? 0,
|
|
6135
6135
|
left: (f == null ? void 0 : f.left) ?? 0,
|
|
@@ -6149,7 +6149,7 @@ const z9 = ({
|
|
|
6149
6149
|
opacity: f ? 1 : 0
|
|
6150
6150
|
};
|
|
6151
6151
|
return /* @__PURE__ */ k(l1, { children: [
|
|
6152
|
-
/* @__PURE__ */ k("div", { className: "relative", style: { width:
|
|
6152
|
+
/* @__PURE__ */ k("div", { className: "relative", style: { width: L }, children: [
|
|
6153
6153
|
/* @__PURE__ */ k(
|
|
6154
6154
|
"button",
|
|
6155
6155
|
{
|
|
@@ -6159,17 +6159,17 @@ const z9 = ({
|
|
|
6159
6159
|
"aria-expanded": m,
|
|
6160
6160
|
"aria-label": h,
|
|
6161
6161
|
disabled: C,
|
|
6162
|
-
onClick: () => v((
|
|
6162
|
+
onClick: () => v((B) => !B),
|
|
6163
6163
|
style: {
|
|
6164
6164
|
boxShadow: m ? "0px 1px 0px 0px rgba(0, 175, 102, 0.15)" : "0px 1px 0px 0px rgba(0, 0, 0, 0.15)",
|
|
6165
6165
|
...u
|
|
6166
6166
|
},
|
|
6167
|
-
className: `w-full ${
|
|
6167
|
+
className: `w-full ${I} bg-[var(--malachite-card-background)] border border-solid ${m ? "border-[var(--malachite-success-border-hover)]" : "border-[var(--malachite-card-border)]"} rounded-[12px] flex items-center gap-[8px] px-[12px] text-[13px] font-medium text-[var(--malachite-text-primary)] ${C || m ? "" : "hover:border-[var(--malachite-primary-border-hover)]"} ${C ? "opacity-60 cursor-not-allowed" : "cursor-pointer"} ${g}`,
|
|
6168
6168
|
children: [
|
|
6169
6169
|
/* @__PURE__ */ n(
|
|
6170
6170
|
"span",
|
|
6171
6171
|
{
|
|
6172
|
-
className: `flex-1 min-w-0 truncate text-left ${
|
|
6172
|
+
className: `flex-1 min-w-0 truncate text-left ${N ? "pr-[18px]" : ""}`,
|
|
6173
6173
|
children: _
|
|
6174
6174
|
}
|
|
6175
6175
|
),
|
|
@@ -6183,19 +6183,19 @@ const z9 = ({
|
|
|
6183
6183
|
]
|
|
6184
6184
|
}
|
|
6185
6185
|
),
|
|
6186
|
-
|
|
6186
|
+
N && /* @__PURE__ */ n(
|
|
6187
6187
|
"button",
|
|
6188
6188
|
{
|
|
6189
6189
|
type: "button",
|
|
6190
6190
|
"aria-label": "Clear selection",
|
|
6191
|
-
onClick:
|
|
6191
|
+
onClick: E,
|
|
6192
6192
|
className: "absolute top-0 bottom-0 right-[28px] flex items-center justify-center px-[2px] leading-none bg-transparent border-none text-[var(--malachite-text-placeholder)] hover:text-[var(--malachite-text-primary)] cursor-pointer",
|
|
6193
6193
|
children: "×"
|
|
6194
6194
|
}
|
|
6195
6195
|
)
|
|
6196
6196
|
] }),
|
|
6197
6197
|
m && Z1(
|
|
6198
|
-
/* @__PURE__ */ k("div", { ref:
|
|
6198
|
+
/* @__PURE__ */ k("div", { ref: S, role: "listbox", "aria-multiselectable": "true", style: R, children: [
|
|
6199
6199
|
Z && /* @__PURE__ */ k(
|
|
6200
6200
|
"div",
|
|
6201
6201
|
{
|
|
@@ -6211,7 +6211,7 @@ const z9 = ({
|
|
|
6211
6211
|
},
|
|
6212
6212
|
children: [
|
|
6213
6213
|
/* @__PURE__ */ n(
|
|
6214
|
-
|
|
6214
|
+
Ae,
|
|
6215
6215
|
{
|
|
6216
6216
|
size: 13,
|
|
6217
6217
|
style: {
|
|
@@ -6225,7 +6225,7 @@ const z9 = ({
|
|
|
6225
6225
|
{
|
|
6226
6226
|
type: "text",
|
|
6227
6227
|
value: w,
|
|
6228
|
-
onChange: (
|
|
6228
|
+
onChange: (B) => x(B.target.value),
|
|
6229
6229
|
placeholder: "Search",
|
|
6230
6230
|
"aria-label": "Search options",
|
|
6231
6231
|
autoFocus: !0,
|
|
@@ -6268,7 +6268,7 @@ const z9 = ({
|
|
|
6268
6268
|
scrollbarWidth: "thin",
|
|
6269
6269
|
scrollbarColor: "var(--malachite-text-placeholder, rgb(187, 187, 187)) transparent"
|
|
6270
6270
|
},
|
|
6271
|
-
children:
|
|
6271
|
+
children: M.length === 0 ? /* @__PURE__ */ n(
|
|
6272
6272
|
"div",
|
|
6273
6273
|
{
|
|
6274
6274
|
style: {
|
|
@@ -6278,15 +6278,15 @@ const z9 = ({
|
|
|
6278
6278
|
},
|
|
6279
6279
|
children: "No results"
|
|
6280
6280
|
}
|
|
6281
|
-
) :
|
|
6282
|
-
const A = r.includes(
|
|
6281
|
+
) : M.map((B) => {
|
|
6282
|
+
const A = r.includes(B.value);
|
|
6283
6283
|
return /* @__PURE__ */ n(
|
|
6284
6284
|
"button",
|
|
6285
6285
|
{
|
|
6286
6286
|
type: "button",
|
|
6287
6287
|
role: "option",
|
|
6288
6288
|
"aria-selected": A,
|
|
6289
|
-
onClick: () =>
|
|
6289
|
+
onClick: () => G(B.value),
|
|
6290
6290
|
style: {
|
|
6291
6291
|
display: "flex",
|
|
6292
6292
|
alignItems: "center",
|
|
@@ -6300,11 +6300,11 @@ const z9 = ({
|
|
|
6300
6300
|
cursor: "pointer",
|
|
6301
6301
|
width: "100%"
|
|
6302
6302
|
},
|
|
6303
|
-
onMouseEnter: (
|
|
6304
|
-
A || (
|
|
6303
|
+
onMouseEnter: (P) => {
|
|
6304
|
+
A || (P.currentTarget.style.background = "var(--malachite-card-dimmed-background, rgb(247, 247, 247))");
|
|
6305
6305
|
},
|
|
6306
|
-
onMouseLeave: (
|
|
6307
|
-
|
|
6306
|
+
onMouseLeave: (P) => {
|
|
6307
|
+
P.currentTarget.style.background = A ? "var(--malachite-success-background-glass, rgba(0, 175, 102, 0.08))" : "transparent";
|
|
6308
6308
|
},
|
|
6309
6309
|
children: /* @__PURE__ */ n(
|
|
6310
6310
|
"span",
|
|
@@ -6316,11 +6316,11 @@ const z9 = ({
|
|
|
6316
6316
|
textOverflow: "ellipsis",
|
|
6317
6317
|
whiteSpace: "nowrap"
|
|
6318
6318
|
},
|
|
6319
|
-
children:
|
|
6319
|
+
children: B.label
|
|
6320
6320
|
}
|
|
6321
6321
|
)
|
|
6322
6322
|
},
|
|
6323
|
-
|
|
6323
|
+
B.value
|
|
6324
6324
|
);
|
|
6325
6325
|
})
|
|
6326
6326
|
}
|
|
@@ -6674,7 +6674,7 @@ const k0 = `
|
|
|
6674
6674
|
}
|
|
6675
6675
|
}
|
|
6676
6676
|
`, rr = ({ children: e, className: r = "" }) => {
|
|
6677
|
-
const [t, a] = O(null), o =
|
|
6677
|
+
const [t, a] = O(null), o = e1(null);
|
|
6678
6678
|
return a1(() => {
|
|
6679
6679
|
if (console.log("[ShadowEscape] Component mounted, checking for Shadow DOM..."), !i5) {
|
|
6680
6680
|
console.log("[ShadowEscape] Injecting form styles...");
|
|
@@ -7328,7 +7328,7 @@ const k0 = `
|
|
|
7328
7328
|
// Light blue for types
|
|
7329
7329
|
}
|
|
7330
7330
|
}
|
|
7331
|
-
}, a6 = "malachite-theme-mode",
|
|
7331
|
+
}, a6 = "malachite-theme-mode", se = "malachite-custom-theme", I1 = /* @__PURE__ */ new Set();
|
|
7332
7332
|
function A0(e) {
|
|
7333
7333
|
try {
|
|
7334
7334
|
if (I1.has(e))
|
|
@@ -7502,25 +7502,25 @@ function u1(e, r) {
|
|
|
7502
7502
|
}
|
|
7503
7503
|
function B0(e) {
|
|
7504
7504
|
try {
|
|
7505
|
-
const r =
|
|
7505
|
+
const r = q1(), t = Oe(), a = r === "dark" ? F1 : p, o = t ? W1(a, t) : a;
|
|
7506
7506
|
u1(o, e);
|
|
7507
7507
|
} catch (r) {
|
|
7508
7508
|
console.error("Error applying theme to shadow root:", r);
|
|
7509
7509
|
}
|
|
7510
7510
|
}
|
|
7511
|
-
function
|
|
7511
|
+
function q1() {
|
|
7512
7512
|
return typeof window > "u" ? "light" : localStorage.getItem(a6) || "light";
|
|
7513
7513
|
}
|
|
7514
7514
|
function Oe() {
|
|
7515
7515
|
if (typeof window > "u") return null;
|
|
7516
|
-
const e = localStorage.getItem(
|
|
7516
|
+
const e = localStorage.getItem(se);
|
|
7517
7517
|
return e ? JSON.parse(e) : null;
|
|
7518
7518
|
}
|
|
7519
7519
|
function o6(e) {
|
|
7520
7520
|
typeof window < "u" && localStorage.setItem(a6, e);
|
|
7521
7521
|
}
|
|
7522
7522
|
function M0(e) {
|
|
7523
|
-
typeof window < "u" && localStorage.setItem(
|
|
7523
|
+
typeof window < "u" && localStorage.setItem(se, JSON.stringify(e));
|
|
7524
7524
|
}
|
|
7525
7525
|
function W1(e, r) {
|
|
7526
7526
|
const t = { ...e };
|
|
@@ -7531,13 +7531,13 @@ function W1(e, r) {
|
|
|
7531
7531
|
}
|
|
7532
7532
|
function L0(e) {
|
|
7533
7533
|
M0(e);
|
|
7534
|
-
const r =
|
|
7534
|
+
const r = q1(), a = W1(r === "dark" ? F1 : p, e);
|
|
7535
7535
|
u1(a, document.documentElement), I1.forEach((o) => {
|
|
7536
7536
|
u1(a, o);
|
|
7537
7537
|
}), r === "dark" ? document.documentElement.setAttribute("data-theme", "dark") : document.documentElement.removeAttribute("data-theme");
|
|
7538
7538
|
}
|
|
7539
7539
|
function n6() {
|
|
7540
|
-
o6("light"), document.documentElement.removeAttribute("data-theme"), localStorage.removeItem(
|
|
7540
|
+
o6("light"), document.documentElement.removeAttribute("data-theme"), localStorage.removeItem(se), u1(p, document.documentElement), I1.forEach((e) => {
|
|
7541
7541
|
u1(p, e);
|
|
7542
7542
|
});
|
|
7543
7543
|
}
|
|
@@ -7549,18 +7549,18 @@ function l6() {
|
|
|
7549
7549
|
});
|
|
7550
7550
|
}
|
|
7551
7551
|
function tr() {
|
|
7552
|
-
return
|
|
7552
|
+
return q1() === "dark" ? (n6(), "light") : (l6(), "dark");
|
|
7553
7553
|
}
|
|
7554
7554
|
function ar(e) {
|
|
7555
7555
|
L0(e);
|
|
7556
7556
|
}
|
|
7557
7557
|
function or() {
|
|
7558
|
-
const e =
|
|
7559
|
-
localStorage.removeItem(
|
|
7558
|
+
const e = q1();
|
|
7559
|
+
localStorage.removeItem(se), e === "dark" ? l6() : n6();
|
|
7560
7560
|
}
|
|
7561
7561
|
function V0() {
|
|
7562
7562
|
if (typeof window < "u") {
|
|
7563
|
-
const e =
|
|
7563
|
+
const e = q1(), r = Oe();
|
|
7564
7564
|
if (e === "dark") {
|
|
7565
7565
|
if (r) {
|
|
7566
7566
|
const t = W1(F1, r);
|
|
@@ -7831,19 +7831,19 @@ function nr() {
|
|
|
7831
7831
|
};
|
|
7832
7832
|
}
|
|
7833
7833
|
V0();
|
|
7834
|
-
let
|
|
7834
|
+
let $1 = null, s5 = !1;
|
|
7835
7835
|
const S0 = () => {
|
|
7836
|
-
if (
|
|
7837
|
-
return
|
|
7836
|
+
if ($1 || s5)
|
|
7837
|
+
return $1;
|
|
7838
7838
|
if (s5 = !0, typeof CSSStyleSheet > "u")
|
|
7839
7839
|
return null;
|
|
7840
7840
|
try {
|
|
7841
7841
|
const e = new CSSStyleSheet();
|
|
7842
|
-
e.replaceSync(t6),
|
|
7842
|
+
e.replaceSync(t6), $1 = e;
|
|
7843
7843
|
} catch (e) {
|
|
7844
7844
|
console.error("Failed to construct Tailwind stylesheet:", e);
|
|
7845
7845
|
}
|
|
7846
|
-
return
|
|
7846
|
+
return $1;
|
|
7847
7847
|
}, d5 = "malachite-tailwind-style", D0 = (e, r) => {
|
|
7848
7848
|
if (!("adoptedStyleSheets" in e))
|
|
7849
7849
|
return !1;
|
|
@@ -7858,7 +7858,7 @@ const S0 = () => {
|
|
|
7858
7858
|
const t = document.createElement("style");
|
|
7859
7859
|
t.id = d5, t.textContent = r, e.appendChild(t);
|
|
7860
7860
|
}, F0 = ({ children: e }) => {
|
|
7861
|
-
const r =
|
|
7861
|
+
const r = e1(null), [t, a] = O(null);
|
|
7862
7862
|
return a1(() => {
|
|
7863
7863
|
if (r.current && !t) {
|
|
7864
7864
|
const o = r.current.shadowRoot;
|
|
@@ -7975,19 +7975,19 @@ const S0 = () => {
|
|
|
7975
7975
|
prefixSecondaryValue: w,
|
|
7976
7976
|
ellipsis: x = !1,
|
|
7977
7977
|
formControl: D,
|
|
7978
|
-
buttons:
|
|
7979
|
-
onCopyClick:
|
|
7980
|
-
showCopyButton:
|
|
7978
|
+
buttons: S,
|
|
7979
|
+
onCopyClick: F,
|
|
7980
|
+
showCopyButton: M,
|
|
7981
7981
|
onChange: Z,
|
|
7982
7982
|
onBlur: Q,
|
|
7983
|
-
helperText:
|
|
7984
|
-
showPasswordToggle:
|
|
7983
|
+
helperText: G,
|
|
7984
|
+
showPasswordToggle: E = !0
|
|
7985
7985
|
}) => {
|
|
7986
|
-
const [
|
|
7986
|
+
const [I, L] = O(!1), [N, _] = O(v || ""), [R, B] = O(!1);
|
|
7987
7987
|
a1(() => {
|
|
7988
7988
|
if (R) {
|
|
7989
7989
|
const d1 = setTimeout(() => {
|
|
7990
|
-
|
|
7990
|
+
B(!1);
|
|
7991
7991
|
}, 1e3);
|
|
7992
7992
|
return () => clearTimeout(d1);
|
|
7993
7993
|
}
|
|
@@ -7995,8 +7995,8 @@ const S0 = () => {
|
|
|
7995
7995
|
const A = (d1) => {
|
|
7996
7996
|
const n1 = d1.target.value;
|
|
7997
7997
|
_(n1), Z == null || Z(n1);
|
|
7998
|
-
},
|
|
7999
|
-
|
|
7998
|
+
}, P = F ? () => {
|
|
7999
|
+
N && (navigator.clipboard.writeText(N), B(!0), F());
|
|
8000
8000
|
} : void 0, j = (d1) => {
|
|
8001
8001
|
switch (d1) {
|
|
8002
8002
|
case "small":
|
|
@@ -8031,7 +8031,7 @@ const S0 = () => {
|
|
|
8031
8031
|
borderRadius: "rounded-[12px]"
|
|
8032
8032
|
};
|
|
8033
8033
|
}
|
|
8034
|
-
}, q = g === "password" ?
|
|
8034
|
+
}, q = g === "password" ? I ? "text" : "password" : g, r1 = o || y || w, m1 = M ?? !!(P && f && N), X = i || m1 || (S == null ? void 0 : S.length) || g === "password" && E, x1 = V(m, i), A1 = [
|
|
8035
8035
|
"relative",
|
|
8036
8036
|
"flex items-center",
|
|
8037
8037
|
"w-full",
|
|
@@ -8056,7 +8056,7 @@ const S0 = () => {
|
|
|
8056
8056
|
loadingComponent: /* @__PURE__ */ n(_2, { size: u }),
|
|
8057
8057
|
children: [
|
|
8058
8058
|
/* @__PURE__ */ k("div", { className: A1, children: [
|
|
8059
|
-
|
|
8059
|
+
r1 && /* @__PURE__ */ n("div", { className: "flex items-center pl-3 pr-1 flex-shrink-0 pointer-events-none", children: /* @__PURE__ */ n(
|
|
8060
8060
|
I0,
|
|
8061
8061
|
{
|
|
8062
8062
|
prefixValue: y,
|
|
@@ -8069,7 +8069,7 @@ const S0 = () => {
|
|
|
8069
8069
|
{
|
|
8070
8070
|
type: q,
|
|
8071
8071
|
placeholder: a,
|
|
8072
|
-
value:
|
|
8072
|
+
value: N,
|
|
8073
8073
|
onChange: A,
|
|
8074
8074
|
onBlur: Q,
|
|
8075
8075
|
disabled: f || h,
|
|
@@ -8082,28 +8082,28 @@ const S0 = () => {
|
|
|
8082
8082
|
X && /* @__PURE__ */ k(
|
|
8083
8083
|
"div",
|
|
8084
8084
|
{
|
|
8085
|
-
className: `flex items-center pl-1 flex-shrink-0 ${g === "password" &&
|
|
8085
|
+
className: `flex items-center pl-1 flex-shrink-0 ${g === "password" && E ? "pr-0" : "pr-3"}`,
|
|
8086
8086
|
children: [
|
|
8087
8087
|
/* @__PURE__ */ n(
|
|
8088
8088
|
P0,
|
|
8089
8089
|
{
|
|
8090
8090
|
error: i,
|
|
8091
|
-
defaultValue:
|
|
8092
|
-
onCopyClick:
|
|
8091
|
+
defaultValue: N,
|
|
8092
|
+
onCopyClick: P,
|
|
8093
8093
|
showCopyButton: m1,
|
|
8094
8094
|
copied: R,
|
|
8095
8095
|
type: g,
|
|
8096
|
-
showPassword:
|
|
8097
|
-
showPasswordToggle:
|
|
8098
|
-
onTogglePassword: () =>
|
|
8096
|
+
showPassword: I,
|
|
8097
|
+
showPasswordToggle: E,
|
|
8098
|
+
onTogglePassword: () => L(!I)
|
|
8099
8099
|
}
|
|
8100
8100
|
),
|
|
8101
|
-
/* @__PURE__ */ n(Z0, { buttons:
|
|
8101
|
+
/* @__PURE__ */ n(Z0, { buttons: S })
|
|
8102
8102
|
]
|
|
8103
8103
|
}
|
|
8104
8104
|
)
|
|
8105
8105
|
] }),
|
|
8106
|
-
|
|
8106
|
+
G && /* @__PURE__ */ n("div", { className: "text-[13px] text-[var(--malachite-text-dimmed)] text-left pl-2", children: G })
|
|
8107
8107
|
]
|
|
8108
8108
|
}
|
|
8109
8109
|
);
|
|
@@ -8144,7 +8144,7 @@ const S0 = () => {
|
|
|
8144
8144
|
) : /* @__PURE__ */ n($.CopyIcon, { size: 16 })
|
|
8145
8145
|
}
|
|
8146
8146
|
),
|
|
8147
|
-
l === "password" && i && /* @__PURE__ */ n(
|
|
8147
|
+
l === "password" && i && /* @__PURE__ */ n(z1, { variant: "no-style", onClick: d, type: "button", size: "small", children: s ? /* @__PURE__ */ n(
|
|
8148
8148
|
$.EyeClosedIcon,
|
|
8149
8149
|
{
|
|
8150
8150
|
size: 16,
|
|
@@ -8158,7 +8158,7 @@ const S0 = () => {
|
|
|
8158
8158
|
}
|
|
8159
8159
|
) })
|
|
8160
8160
|
] }), Z0 = ({ buttons: e }) => e != null && e.length ? /* @__PURE__ */ n(l1, { children: e.map((r) => /* @__PURE__ */ n(
|
|
8161
|
-
|
|
8161
|
+
z1,
|
|
8162
8162
|
{
|
|
8163
8163
|
variant: r.variant || (r.danger ? "destructive" : "outline"),
|
|
8164
8164
|
size: r.size || "small",
|
|
@@ -8192,15 +8192,15 @@ const S0 = () => {
|
|
|
8192
8192
|
buttons: w,
|
|
8193
8193
|
onCopyClick: x,
|
|
8194
8194
|
onChange: D,
|
|
8195
|
-
value:
|
|
8196
|
-
onBlur:
|
|
8197
|
-
rows:
|
|
8195
|
+
value: S,
|
|
8196
|
+
onBlur: F,
|
|
8197
|
+
rows: M = 4,
|
|
8198
8198
|
maxLength: Z,
|
|
8199
8199
|
resize: Q = "vertical"
|
|
8200
8200
|
}) => {
|
|
8201
|
-
const [
|
|
8201
|
+
const [G, E] = O(u || ""), I = S !== void 0 ? S : G, L = S !== void 0, N = (j) => {
|
|
8202
8202
|
const V = j.target.value;
|
|
8203
|
-
|
|
8203
|
+
L || E(V), D == null || D(V);
|
|
8204
8204
|
}, _ = (j) => {
|
|
8205
8205
|
switch (j) {
|
|
8206
8206
|
case "small":
|
|
@@ -8217,13 +8217,13 @@ const S0 = () => {
|
|
|
8217
8217
|
small: 20,
|
|
8218
8218
|
medium: 22,
|
|
8219
8219
|
large: 24
|
|
8220
|
-
}[j],
|
|
8220
|
+
}[j], r1 = {
|
|
8221
8221
|
small: 16,
|
|
8222
8222
|
medium: 24,
|
|
8223
8223
|
large: 24
|
|
8224
8224
|
}[j];
|
|
8225
|
-
return `${q * V +
|
|
8226
|
-
},
|
|
8225
|
+
return `${q * V + r1}px`;
|
|
8226
|
+
}, B = o || v || f, A = i || x && m && I || (w == null ? void 0 : w.length);
|
|
8227
8227
|
return /* @__PURE__ */ n(
|
|
8228
8228
|
Pe,
|
|
8229
8229
|
{
|
|
@@ -8235,7 +8235,7 @@ const S0 = () => {
|
|
|
8235
8235
|
loading: C,
|
|
8236
8236
|
formControl: y,
|
|
8237
8237
|
description: d,
|
|
8238
|
-
loadingComponent: /* @__PURE__ */ n(Q0, { size: g, rows:
|
|
8238
|
+
loadingComponent: /* @__PURE__ */ n(Q0, { size: g, rows: M }),
|
|
8239
8239
|
children: (() => {
|
|
8240
8240
|
const j = [
|
|
8241
8241
|
"relative",
|
|
@@ -8267,20 +8267,20 @@ const S0 = () => {
|
|
|
8267
8267
|
"textarea",
|
|
8268
8268
|
{
|
|
8269
8269
|
placeholder: a,
|
|
8270
|
-
value: m ? u :
|
|
8271
|
-
onChange:
|
|
8272
|
-
onBlur:
|
|
8270
|
+
value: m ? u : I,
|
|
8271
|
+
onChange: N,
|
|
8272
|
+
onBlur: F,
|
|
8273
8273
|
disabled: m || !!v || !!f || h,
|
|
8274
8274
|
readOnly: h,
|
|
8275
|
-
rows:
|
|
8275
|
+
rows: M,
|
|
8276
8276
|
maxLength: Z,
|
|
8277
|
-
style: { minHeight: R(g,
|
|
8277
|
+
style: { minHeight: R(g, M) },
|
|
8278
8278
|
className: V,
|
|
8279
8279
|
name: l
|
|
8280
8280
|
}
|
|
8281
8281
|
);
|
|
8282
8282
|
return /* @__PURE__ */ k("div", { className: j, children: [
|
|
8283
|
-
|
|
8283
|
+
B && /* @__PURE__ */ n("div", { className: "flex pt-3 pl-3 pr-1 flex-shrink-0 pointer-events-none", children: /* @__PURE__ */ n(
|
|
8284
8284
|
R0,
|
|
8285
8285
|
{
|
|
8286
8286
|
prefixValue: v,
|
|
@@ -8295,7 +8295,7 @@ const S0 = () => {
|
|
|
8295
8295
|
{
|
|
8296
8296
|
error: i,
|
|
8297
8297
|
disabled: m,
|
|
8298
|
-
defaultValue:
|
|
8298
|
+
defaultValue: I,
|
|
8299
8299
|
onCopyClick: x
|
|
8300
8300
|
}
|
|
8301
8301
|
),
|
|
@@ -8349,7 +8349,7 @@ const S0 = () => {
|
|
|
8349
8349
|
}
|
|
8350
8350
|
)
|
|
8351
8351
|
] }), H0 = ({ buttons: e }) => e != null && e.length ? /* @__PURE__ */ n("div", { className: "flex flex-col gap-1 mt-1", children: e.map((r) => /* @__PURE__ */ n(
|
|
8352
|
-
|
|
8352
|
+
z1,
|
|
8353
8353
|
{
|
|
8354
8354
|
variant: r.danger ? "destructive" : "outline",
|
|
8355
8355
|
size: "small",
|
|
@@ -8426,28 +8426,40 @@ const S0 = () => {
|
|
|
8426
8426
|
pointerType: h = "default",
|
|
8427
8427
|
className: g = ""
|
|
8428
8428
|
}) => {
|
|
8429
|
-
const u = (f) => {
|
|
8430
|
-
|
|
8431
|
-
|
|
8429
|
+
const u = e1(null), [m, v] = O(!1), f = typeof e == "string" || typeof e == "number", y = O1((F) => {
|
|
8430
|
+
var Q;
|
|
8431
|
+
if ((Q = u.current) == null || Q.disconnect(), u.current = null, !F || typeof ResizeObserver > "u")
|
|
8432
|
+
return;
|
|
8433
|
+
const M = () => v((G) => {
|
|
8434
|
+
const E = F.scrollWidth > F.clientWidth;
|
|
8435
|
+
return G === E ? G : E;
|
|
8436
|
+
});
|
|
8437
|
+
M();
|
|
8438
|
+
const Z = new ResizeObserver(M);
|
|
8439
|
+
Z.observe(F), u.current = Z;
|
|
8440
|
+
}, []), w = (F) => {
|
|
8441
|
+
a && (F.stopPropagation(), F.preventDefault(), a());
|
|
8442
|
+
}, x = [
|
|
8432
8443
|
j0(s),
|
|
8433
8444
|
T0(r, i),
|
|
8434
8445
|
l === "uppercase" ? "uppercase" : "normal-case",
|
|
8435
8446
|
a ? "cursor-pointer" : `cursor-${h}`,
|
|
8447
|
+
f ? "min-w-0 max-w-full" : "",
|
|
8436
8448
|
g
|
|
8437
|
-
].filter(Boolean).join(" "),
|
|
8438
|
-
return /* @__PURE__ */ k(
|
|
8449
|
+
].filter(Boolean).join(" "), D = W0(r, t, o, i), S = /* @__PURE__ */ k(
|
|
8439
8450
|
"div",
|
|
8440
8451
|
{
|
|
8441
|
-
className:
|
|
8442
|
-
onClick:
|
|
8443
|
-
style:
|
|
8452
|
+
className: x,
|
|
8453
|
+
onClick: w,
|
|
8454
|
+
style: D,
|
|
8444
8455
|
children: [
|
|
8445
8456
|
d && C === "left" && /* @__PURE__ */ n("span", { className: "mr-1 flex items-center", children: d }),
|
|
8446
|
-
/* @__PURE__ */ n("span", { className: "flex items-center", children: e }),
|
|
8457
|
+
f ? /* @__PURE__ */ n("span", { className: "flex items-center min-w-0", children: /* @__PURE__ */ n("span", { ref: y, className: "block min-w-0 truncate", children: e }, String(e)) }) : /* @__PURE__ */ n("span", { className: "flex items-center", children: e }),
|
|
8447
8458
|
d && C === "right" && /* @__PURE__ */ n("span", { className: "ml-1 flex items-center", children: d })
|
|
8448
8459
|
]
|
|
8449
8460
|
}
|
|
8450
8461
|
);
|
|
8462
|
+
return m ? /* @__PURE__ */ n(ie, { text: e, placement: "top", wrapChildren: !1, isShrinkable: !0, children: S }) : S;
|
|
8451
8463
|
}, O0 = ({
|
|
8452
8464
|
text: e,
|
|
8453
8465
|
children: r,
|
|
@@ -8455,7 +8467,7 @@ const S0 = () => {
|
|
|
8455
8467
|
placement: a = "top",
|
|
8456
8468
|
className: o = ""
|
|
8457
8469
|
}) => {
|
|
8458
|
-
const l =
|
|
8470
|
+
const l = e1(null), [s, i] = O(!1), d = O1(() => {
|
|
8459
8471
|
const C = l.current;
|
|
8460
8472
|
if (!C)
|
|
8461
8473
|
return;
|
|
@@ -8471,7 +8483,7 @@ const S0 = () => {
|
|
|
8471
8483
|
}, [d]), a1(() => {
|
|
8472
8484
|
d();
|
|
8473
8485
|
}, [r, e, d]), /* @__PURE__ */ n(
|
|
8474
|
-
|
|
8486
|
+
ie,
|
|
8475
8487
|
{
|
|
8476
8488
|
text: s ? e : "",
|
|
8477
8489
|
delay: t,
|
|
@@ -8511,9 +8523,9 @@ const S0 = () => {
|
|
|
8511
8523
|
onChange: i,
|
|
8512
8524
|
onShowSizeChange: d
|
|
8513
8525
|
}) => {
|
|
8514
|
-
const C = r > 0 ? r : 10, h = Math.max(1, Math.ceil(t / C)), g = Math.min(Math.max(1, e), h), [u, m] = O(""), v = (
|
|
8515
|
-
const
|
|
8516
|
-
|
|
8526
|
+
const C = r > 0 ? r : 10, h = Math.max(1, Math.ceil(t / C)), g = Math.min(Math.max(1, e), h), [u, m] = O(""), v = (E) => {
|
|
8527
|
+
const I = Math.min(Math.max(1, E), h);
|
|
8528
|
+
I !== g && (i == null || i(I, C));
|
|
8517
8529
|
}, f = {
|
|
8518
8530
|
minWidth: 32,
|
|
8519
8531
|
height: 32,
|
|
@@ -8530,18 +8542,18 @@ const S0 = () => {
|
|
|
8530
8542
|
cursor: "pointer",
|
|
8531
8543
|
userSelect: "none",
|
|
8532
8544
|
transition: "background-color 120ms ease, border-color 120ms ease, color 120ms ease"
|
|
8533
|
-
}, y = (
|
|
8545
|
+
}, y = (E) => ({
|
|
8534
8546
|
...f,
|
|
8535
8547
|
width: 32,
|
|
8536
8548
|
minWidth: 32,
|
|
8537
|
-
color:
|
|
8538
|
-
opacity:
|
|
8539
|
-
cursor:
|
|
8540
|
-
}), w = (
|
|
8549
|
+
color: E ? "var(--malachite-text-placeholder, rgb(187, 187, 187))" : "var(--malachite-text-primary, rgb(10, 10, 10))",
|
|
8550
|
+
opacity: E ? 0.4 : 1,
|
|
8551
|
+
cursor: E ? "not-allowed" : "pointer"
|
|
8552
|
+
}), w = (E) => ({
|
|
8541
8553
|
...f,
|
|
8542
|
-
border:
|
|
8543
|
-
color:
|
|
8544
|
-
background:
|
|
8554
|
+
border: E ? "1px solid var(--malachite-success-border, rgba(0, 175, 102, 0.2))" : "1px solid transparent",
|
|
8555
|
+
color: E ? "var(--malachite-success-foreground, rgb(2, 122, 66))" : "var(--malachite-text-primary, rgb(10, 10, 10))",
|
|
8556
|
+
background: E ? "var(--malachite-card-background, rgb(255, 255, 255))" : "transparent"
|
|
8545
8557
|
}), x = {
|
|
8546
8558
|
...f,
|
|
8547
8559
|
color: "var(--malachite-text-secondary, rgb(123, 123, 123))",
|
|
@@ -8564,7 +8576,7 @@ const S0 = () => {
|
|
|
8564
8576
|
backgroundRepeat: "no-repeat",
|
|
8565
8577
|
backgroundPosition: "right 8px center",
|
|
8566
8578
|
paddingRight: 28
|
|
8567
|
-
},
|
|
8579
|
+
}, S = {
|
|
8568
8580
|
width: 56,
|
|
8569
8581
|
height: 32,
|
|
8570
8582
|
padding: "0 8px",
|
|
@@ -8575,10 +8587,10 @@ const S0 = () => {
|
|
|
8575
8587
|
fontSize: 13,
|
|
8576
8588
|
textAlign: "center",
|
|
8577
8589
|
outline: "none"
|
|
8578
|
-
},
|
|
8579
|
-
const
|
|
8580
|
-
Number.isNaN(
|
|
8581
|
-
},
|
|
8590
|
+
}, F = t === 0 ? 0 : (g - 1) * C + 1, M = Math.min(g * C, t), Z = l ? l(t, [F, M]) : `Total ${t.toLocaleString("en-US")} items`, Q = () => {
|
|
8591
|
+
const E = parseInt(u, 10);
|
|
8592
|
+
Number.isNaN(E) || (v(E), m(""));
|
|
8593
|
+
}, G = z0(g, h);
|
|
8582
8594
|
return /* @__PURE__ */ k(
|
|
8583
8595
|
"div",
|
|
8584
8596
|
{
|
|
@@ -8609,18 +8621,18 @@ const S0 = () => {
|
|
|
8609
8621
|
children: /* @__PURE__ */ n($.CaretLeftIcon, { size: 12 })
|
|
8610
8622
|
}
|
|
8611
8623
|
),
|
|
8612
|
-
|
|
8613
|
-
(
|
|
8624
|
+
G.map(
|
|
8625
|
+
(E, I) => E === "ellipsis" ? /* @__PURE__ */ n("span", { style: x, "aria-hidden": "true", children: "•••" }, `e-${I}`) : /* @__PURE__ */ n(
|
|
8614
8626
|
"button",
|
|
8615
8627
|
{
|
|
8616
8628
|
type: "button",
|
|
8617
|
-
"aria-label": `Page ${
|
|
8618
|
-
"aria-current":
|
|
8619
|
-
onClick: () => v(
|
|
8620
|
-
style: w(
|
|
8621
|
-
children:
|
|
8629
|
+
"aria-label": `Page ${E}`,
|
|
8630
|
+
"aria-current": E === g ? "page" : void 0,
|
|
8631
|
+
onClick: () => v(E),
|
|
8632
|
+
style: w(E === g),
|
|
8633
|
+
children: E.toLocaleString("en-US")
|
|
8622
8634
|
},
|
|
8623
|
-
|
|
8635
|
+
E
|
|
8624
8636
|
)
|
|
8625
8637
|
),
|
|
8626
8638
|
/* @__PURE__ */ n(
|
|
@@ -8640,15 +8652,15 @@ const S0 = () => {
|
|
|
8640
8652
|
{
|
|
8641
8653
|
"aria-label": "Page size",
|
|
8642
8654
|
value: String(r),
|
|
8643
|
-
onChange: (
|
|
8644
|
-
const
|
|
8645
|
-
Number.isNaN(
|
|
8655
|
+
onChange: (E) => {
|
|
8656
|
+
const I = parseInt(E.target.value, 10);
|
|
8657
|
+
Number.isNaN(I) || (d == null || d(g, I), i == null || i(g, I));
|
|
8646
8658
|
},
|
|
8647
8659
|
style: D,
|
|
8648
|
-
children: s.map((
|
|
8649
|
-
|
|
8660
|
+
children: s.map((E) => /* @__PURE__ */ k("option", { value: E, children: [
|
|
8661
|
+
E,
|
|
8650
8662
|
" / page"
|
|
8651
|
-
] },
|
|
8663
|
+
] }, E))
|
|
8652
8664
|
}
|
|
8653
8665
|
),
|
|
8654
8666
|
o && /* @__PURE__ */ k(
|
|
@@ -8669,12 +8681,12 @@ const S0 = () => {
|
|
|
8669
8681
|
min: 1,
|
|
8670
8682
|
max: h,
|
|
8671
8683
|
value: u,
|
|
8672
|
-
onChange: (
|
|
8673
|
-
onKeyDown: (
|
|
8674
|
-
|
|
8684
|
+
onChange: (E) => m(E.target.value),
|
|
8685
|
+
onKeyDown: (E) => {
|
|
8686
|
+
E.key === "Enter" && Q();
|
|
8675
8687
|
},
|
|
8676
8688
|
onBlur: Q,
|
|
8677
|
-
style:
|
|
8689
|
+
style: S
|
|
8678
8690
|
}
|
|
8679
8691
|
),
|
|
8680
8692
|
/* @__PURE__ */ n("span", { children: "Page" })
|
|
@@ -8691,7 +8703,7 @@ const S0 = () => {
|
|
|
8691
8703
|
})[e], X0 = 56, q0 = (e, r) => {
|
|
8692
8704
|
const t = r ? X0 : 0;
|
|
8693
8705
|
return typeof e == "number" ? `${Math.max(0, e - t)}px` : `calc(${e} - ${t}px)`;
|
|
8694
|
-
},
|
|
8706
|
+
}, oe = (e) => {
|
|
8695
8707
|
const r = e.width;
|
|
8696
8708
|
return r == null ? {} : { maxWidth: typeof r == "number" ? `${r}px` : r };
|
|
8697
8709
|
}, Je = (e) => {
|
|
@@ -8756,13 +8768,13 @@ const S0 = () => {
|
|
|
8756
8768
|
"div",
|
|
8757
8769
|
{
|
|
8758
8770
|
className: "flex flex-[1_0_0] h-full min-w-0",
|
|
8759
|
-
style:
|
|
8771
|
+
style: oe(e)
|
|
8760
8772
|
}
|
|
8761
8773
|
) : /* @__PURE__ */ k(
|
|
8762
8774
|
"div",
|
|
8763
8775
|
{
|
|
8764
8776
|
className: `flex flex-[1_0_0] items-center justify-between min-w-0 overflow-hidden px-4 py-3 ${a ? "cursor-pointer" : ""}`,
|
|
8765
|
-
style:
|
|
8777
|
+
style: oe(e),
|
|
8766
8778
|
onClick: a ? t : void 0,
|
|
8767
8779
|
children: [
|
|
8768
8780
|
/* @__PURE__ */ n("div", { className: "flex items-center gap-1 min-w-0", children: typeof e.title == "string" ? /* @__PURE__ */ n("p", { className: "font-medium text-[13px] text-[#0a0a0a] tracking-[0.13px] whitespace-nowrap truncate", children: e.title }) : e.title }),
|
|
@@ -8797,7 +8809,7 @@ const S0 = () => {
|
|
|
8797
8809
|
"div",
|
|
8798
8810
|
{
|
|
8799
8811
|
className: `flex flex-[1_0_0] items-center min-w-0 overflow-hidden px-4 py-3 ${Y1(a)} ${e.align === "center" ? "justify-center" : e.align === "right" ? "justify-end" : ""}`,
|
|
8800
|
-
style:
|
|
8812
|
+
style: oe(e),
|
|
8801
8813
|
children: C
|
|
8802
8814
|
}
|
|
8803
8815
|
);
|
|
@@ -8822,68 +8834,68 @@ const S0 = () => {
|
|
|
8822
8834
|
rowSelection: w,
|
|
8823
8835
|
pagination: x,
|
|
8824
8836
|
className: D = "",
|
|
8825
|
-
style:
|
|
8826
|
-
stickyHeaderTop:
|
|
8837
|
+
style: S,
|
|
8838
|
+
stickyHeaderTop: F
|
|
8827
8839
|
}) => {
|
|
8828
|
-
const [
|
|
8829
|
-
if (!L) return r;
|
|
8830
|
-
const M = e.find((_) => _.key === L.key);
|
|
8840
|
+
const [M, Z] = O(null), Q = N1(() => {
|
|
8831
8841
|
if (!M) return r;
|
|
8832
|
-
|
|
8833
|
-
|
|
8834
|
-
|
|
8842
|
+
const L = e.find((_) => _.key === M.key);
|
|
8843
|
+
if (!L) return r;
|
|
8844
|
+
if (typeof L.sorter == "function") {
|
|
8845
|
+
const _ = [...r].sort(L.sorter);
|
|
8846
|
+
return M.direction === "asc" ? _ : _.reverse();
|
|
8835
8847
|
}
|
|
8836
|
-
const
|
|
8848
|
+
const N = L.dataIndex ?? M.key;
|
|
8837
8849
|
return [...r].sort((_, R) => {
|
|
8838
|
-
const
|
|
8839
|
-
return
|
|
8850
|
+
const B = _[N], A = R[N];
|
|
8851
|
+
return B < A ? M.direction === "asc" ? -1 : 1 : B > A ? M.direction === "asc" ? 1 : -1 : 0;
|
|
8840
8852
|
});
|
|
8841
|
-
}, [r,
|
|
8842
|
-
Z((
|
|
8843
|
-
},
|
|
8853
|
+
}, [r, M, e]), G = (L) => {
|
|
8854
|
+
Z((N) => (N == null ? void 0 : N.key) === L ? N.direction === "asc" ? { key: L, direction: "desc" } : null : { key: L, direction: "asc" });
|
|
8855
|
+
}, E = (L, N) => typeof d == "function" ? d(L) : String(L[d] || N);
|
|
8844
8856
|
if (u === "detached") {
|
|
8845
|
-
const
|
|
8857
|
+
const L = {
|
|
8846
8858
|
borderBottom: "1px solid #e8e8e8"
|
|
8847
|
-
},
|
|
8848
|
-
const j =
|
|
8859
|
+
}, N = (A, P) => {
|
|
8860
|
+
const j = E(A, P), V = (f == null ? void 0 : f(A, P)) || {}, q = v == null ? void 0 : v(A, P), r1 = y || V.onClick ? () => {
|
|
8849
8861
|
var X;
|
|
8850
|
-
y == null || y(A,
|
|
8862
|
+
y == null || y(A, P), (X = V.onClick) == null || X.call(V, A, P);
|
|
8851
8863
|
} : void 0;
|
|
8852
8864
|
return /* @__PURE__ */ n(
|
|
8853
8865
|
"div",
|
|
8854
8866
|
{
|
|
8855
8867
|
className: `
|
|
8856
8868
|
group bg-white flex min-h-10 items-stretch relative w-full
|
|
8857
|
-
${!!
|
|
8858
|
-
${(m == null ? void 0 : m(A,
|
|
8869
|
+
${!!r1 ? "cursor-pointer hover:bg-[#fafafa]" : ""}
|
|
8870
|
+
${(m == null ? void 0 : m(A, P)) || ""}
|
|
8859
8871
|
`,
|
|
8860
8872
|
style: q ? {
|
|
8861
|
-
...
|
|
8873
|
+
...L,
|
|
8862
8874
|
backgroundColor: `var(--malachite-table-row-variant-${q}-background)`
|
|
8863
|
-
} :
|
|
8864
|
-
onClick:
|
|
8875
|
+
} : L,
|
|
8876
|
+
onClick: r1,
|
|
8865
8877
|
onDoubleClick: V.onDoubleClick ? () => {
|
|
8866
8878
|
var X;
|
|
8867
|
-
return (X = V.onDoubleClick) == null ? void 0 : X.call(V, A,
|
|
8879
|
+
return (X = V.onDoubleClick) == null ? void 0 : X.call(V, A, P);
|
|
8868
8880
|
} : void 0,
|
|
8869
8881
|
onContextMenu: V.onContextMenu ? () => {
|
|
8870
8882
|
var X;
|
|
8871
|
-
return (X = V.onContextMenu) == null ? void 0 : X.call(V, A,
|
|
8883
|
+
return (X = V.onContextMenu) == null ? void 0 : X.call(V, A, P);
|
|
8872
8884
|
} : void 0,
|
|
8873
8885
|
onMouseEnter: V.onMouseEnter ? () => {
|
|
8874
8886
|
var X;
|
|
8875
|
-
return (X = V.onMouseEnter) == null ? void 0 : X.call(V, A,
|
|
8887
|
+
return (X = V.onMouseEnter) == null ? void 0 : X.call(V, A, P);
|
|
8876
8888
|
} : void 0,
|
|
8877
8889
|
onMouseLeave: V.onMouseLeave ? () => {
|
|
8878
8890
|
var X;
|
|
8879
|
-
return (X = V.onMouseLeave) == null ? void 0 : X.call(V, A,
|
|
8891
|
+
return (X = V.onMouseLeave) == null ? void 0 : X.call(V, A, P);
|
|
8880
8892
|
} : void 0,
|
|
8881
8893
|
children: e.map((X) => /* @__PURE__ */ n(
|
|
8882
8894
|
_0,
|
|
8883
8895
|
{
|
|
8884
8896
|
column: X,
|
|
8885
8897
|
record: A,
|
|
8886
|
-
index:
|
|
8898
|
+
index: P,
|
|
8887
8899
|
size: h
|
|
8888
8900
|
},
|
|
8889
8901
|
X.key
|
|
@@ -8895,23 +8907,23 @@ const S0 = () => {
|
|
|
8895
8907
|
"div",
|
|
8896
8908
|
{
|
|
8897
8909
|
className: "bg-white flex min-h-10 items-stretch w-full",
|
|
8898
|
-
style:
|
|
8899
|
-
children: e.map((
|
|
8910
|
+
style: L,
|
|
8911
|
+
children: e.map((P) => (P.title === "" || P.title == null) && P.width !== void 0 ? /* @__PURE__ */ n(
|
|
8900
8912
|
"div",
|
|
8901
8913
|
{
|
|
8902
8914
|
className: "flex items-center justify-end shrink-0 overflow-clip px-4 py-3",
|
|
8903
|
-
style: Je(
|
|
8915
|
+
style: Je(P),
|
|
8904
8916
|
children: /* @__PURE__ */ n("div", { className: "h-3 bg-gray-200 rounded animate-pulse w-2/5" })
|
|
8905
8917
|
},
|
|
8906
|
-
|
|
8918
|
+
P.key
|
|
8907
8919
|
) : /* @__PURE__ */ n(
|
|
8908
8920
|
"div",
|
|
8909
8921
|
{
|
|
8910
8922
|
className: "flex flex-[1_0_0] items-center min-w-0 overflow-clip px-4 py-3",
|
|
8911
|
-
style:
|
|
8923
|
+
style: oe(P),
|
|
8912
8924
|
children: /* @__PURE__ */ n("div", { className: "h-3 bg-gray-200 rounded animate-pulse w-3/5" })
|
|
8913
8925
|
},
|
|
8914
|
-
|
|
8926
|
+
P.key
|
|
8915
8927
|
))
|
|
8916
8928
|
},
|
|
8917
8929
|
`skeleton-${A}`
|
|
@@ -8919,23 +8931,23 @@ const S0 = () => {
|
|
|
8919
8931
|
$0,
|
|
8920
8932
|
{
|
|
8921
8933
|
column: A,
|
|
8922
|
-
sortDirection: (
|
|
8923
|
-
onSort: A.sorter ? () =>
|
|
8934
|
+
sortDirection: (M == null ? void 0 : M.key) === A.key ? M.direction : null,
|
|
8935
|
+
onSort: A.sorter ? () => G(A.key) : void 0
|
|
8924
8936
|
},
|
|
8925
8937
|
A.key
|
|
8926
|
-
)) }) : null,
|
|
8927
|
-
return /* @__PURE__ */ k("div", { className: `w-full ${D}`, style:
|
|
8938
|
+
)) }) : null, B = F !== void 0 && i && !C;
|
|
8939
|
+
return /* @__PURE__ */ k("div", { className: `w-full ${D}`, style: S, children: [
|
|
8928
8940
|
/* @__PURE__ */ k(
|
|
8929
8941
|
"div",
|
|
8930
8942
|
{
|
|
8931
|
-
className: `bg-[#f7f7f7] flex flex-col items-start ${
|
|
8943
|
+
className: `bg-[#f7f7f7] flex flex-col items-start ${B ? "" : "overflow-clip"} p-[4px] relative rounded-[12px] w-full`,
|
|
8932
8944
|
children: [
|
|
8933
8945
|
i && /* @__PURE__ */ n(
|
|
8934
8946
|
"div",
|
|
8935
8947
|
{
|
|
8936
|
-
style:
|
|
8948
|
+
style: B ? {
|
|
8937
8949
|
position: "sticky",
|
|
8938
|
-
top:
|
|
8950
|
+
top: F,
|
|
8939
8951
|
zIndex: 8,
|
|
8940
8952
|
backgroundColor: "#f7f7f7",
|
|
8941
8953
|
width: "100%"
|
|
@@ -8964,7 +8976,7 @@ const S0 = () => {
|
|
|
8964
8976
|
/* @__PURE__ */ n("div", { className: "text-[var(--malachite-text-secondary)] text-[13px]", children: l })
|
|
8965
8977
|
] }) : t ? Array.from({
|
|
8966
8978
|
length: x != null && x.pageSize ? Math.min(x.pageSize, 10) : 5
|
|
8967
|
-
}).map((A,
|
|
8979
|
+
}).map((A, P) => _(P)) : Q.length === 0 ? /* @__PURE__ */ n("div", { className: "flex flex-col items-center justify-center bg-white w-full py-12", children: /* @__PURE__ */ n("div", { className: "text-[var(--malachite-text-secondary)] text-[13px]", children: "No data" }) }) : Q.map((A, P) => N(A, P))
|
|
8968
8980
|
}
|
|
8969
8981
|
)
|
|
8970
8982
|
]
|
|
@@ -8986,23 +8998,23 @@ const S0 = () => {
|
|
|
8986
8998
|
)
|
|
8987
8999
|
] });
|
|
8988
9000
|
}
|
|
8989
|
-
const
|
|
8990
|
-
const
|
|
9001
|
+
const I = (L) => {
|
|
9002
|
+
const N = L.sorter, R = (M == null ? void 0 : M.key) === L.key ? M == null ? void 0 : M.direction : null;
|
|
8991
9003
|
return /* @__PURE__ */ n(
|
|
8992
9004
|
"th",
|
|
8993
9005
|
{
|
|
8994
9006
|
className: `
|
|
8995
9007
|
table-header table-cell px-4 py-3 text-left font-semibold border-0 first:rounded-tl-lg last:rounded-tr-lg
|
|
8996
9008
|
${Y1(h)}
|
|
8997
|
-
${
|
|
8998
|
-
${
|
|
8999
|
-
${
|
|
9009
|
+
${N ? "cursor-pointer hover:opacity-80" : ""}
|
|
9010
|
+
${L.align === "center" ? "text-center" : "text-left"}
|
|
9011
|
+
${L.align === "right" ? "text-right" : ""}
|
|
9000
9012
|
`,
|
|
9001
|
-
style: { width:
|
|
9002
|
-
onClick:
|
|
9013
|
+
style: { width: L.width },
|
|
9014
|
+
onClick: N ? () => G(L.key) : void 0,
|
|
9003
9015
|
children: /* @__PURE__ */ k("div", { className: "flex items-center gap-2", children: [
|
|
9004
|
-
/* @__PURE__ */ n("span", { children:
|
|
9005
|
-
|
|
9016
|
+
/* @__PURE__ */ n("span", { children: L.title }),
|
|
9017
|
+
N && /* @__PURE__ */ k("div", { className: "flex flex-col", children: [
|
|
9006
9018
|
/* @__PURE__ */ n(
|
|
9007
9019
|
$.CaretUpIcon,
|
|
9008
9020
|
{
|
|
@@ -9020,10 +9032,10 @@ const S0 = () => {
|
|
|
9020
9032
|
] })
|
|
9021
9033
|
] })
|
|
9022
9034
|
},
|
|
9023
|
-
|
|
9035
|
+
L.key
|
|
9024
9036
|
);
|
|
9025
9037
|
};
|
|
9026
|
-
return a ? /* @__PURE__ */ n("div", { className: "w-full", style: { ...
|
|
9038
|
+
return a ? /* @__PURE__ */ n("div", { className: "w-full", style: { ...S }, children: /* @__PURE__ */ n(
|
|
9027
9039
|
"div",
|
|
9028
9040
|
{
|
|
9029
9041
|
className: "overflow-x-auto",
|
|
@@ -9031,22 +9043,22 @@ const S0 = () => {
|
|
|
9031
9043
|
...C ? { maxHeight: C } : {}
|
|
9032
9044
|
},
|
|
9033
9045
|
children: /* @__PURE__ */ k("table", { className: "w-full border-collapse rounded-lg overflow-hidden", children: [
|
|
9034
|
-
i && /* @__PURE__ */ n("thead", { children: /* @__PURE__ */ n("tr", { children: e.map((
|
|
9046
|
+
i && /* @__PURE__ */ n("thead", { children: /* @__PURE__ */ n("tr", { children: e.map((L) => /* @__PURE__ */ n(
|
|
9035
9047
|
"th",
|
|
9036
9048
|
{
|
|
9037
9049
|
className: `
|
|
9038
9050
|
table-header table-cell px-4 py-3 text-left font-semibold border-0 first:rounded-tl-lg last:rounded-tr-lg
|
|
9039
9051
|
${s ? "table-cell-bordered table-cell-bordered-top" : ""}
|
|
9040
|
-
${s &&
|
|
9041
|
-
${s &&
|
|
9052
|
+
${s && L === e[0] ? "table-cell-bordered-left" : ""}
|
|
9053
|
+
${s && L === e[e.length - 1] ? "table-cell-bordered-right" : ""}
|
|
9042
9054
|
${Y1(h)}
|
|
9043
|
-
${
|
|
9044
|
-
${
|
|
9055
|
+
${L.align === "center" ? "text-center" : "text-left"}
|
|
9056
|
+
${L.align === "right" ? "text-right" : ""}
|
|
9045
9057
|
`,
|
|
9046
|
-
style: { width:
|
|
9047
|
-
children: /* @__PURE__ */ n("div", { className: "flex items-center gap-2", children: /* @__PURE__ */ n("span", { children:
|
|
9058
|
+
style: { width: L.width },
|
|
9059
|
+
children: /* @__PURE__ */ n("div", { className: "flex items-center gap-2", children: /* @__PURE__ */ n("span", { children: L.title }) })
|
|
9048
9060
|
},
|
|
9049
|
-
|
|
9061
|
+
L.key
|
|
9050
9062
|
)) }) }),
|
|
9051
9063
|
/* @__PURE__ */ n("tbody", { children: /* @__PURE__ */ n("tr", { children: /* @__PURE__ */ n(
|
|
9052
9064
|
"td",
|
|
@@ -9062,7 +9074,7 @@ const S0 = () => {
|
|
|
9062
9074
|
) }) })
|
|
9063
9075
|
] })
|
|
9064
9076
|
}
|
|
9065
|
-
) }) : /* @__PURE__ */ k("div", { className: `w-full ${D}`, style: { ...
|
|
9077
|
+
) }) : /* @__PURE__ */ k("div", { className: `w-full ${D}`, style: { ...S }, children: [
|
|
9066
9078
|
/* @__PURE__ */ n(
|
|
9067
9079
|
"div",
|
|
9068
9080
|
{
|
|
@@ -9078,11 +9090,11 @@ const S0 = () => {
|
|
|
9078
9090
|
children: /* @__PURE__ */ k(
|
|
9079
9091
|
"table",
|
|
9080
9092
|
{
|
|
9081
|
-
className: `w-full ${g === "fixed" || e.some((
|
|
9093
|
+
className: `w-full ${g === "fixed" || e.some((L) => L.width) ? "table-fixed" : "table-auto"} ${s ? "border-separate table-bordered" : "border-collapse"} rounded-lg overflow-hidden`,
|
|
9082
9094
|
style: { borderSpacing: "0" },
|
|
9083
9095
|
children: [
|
|
9084
|
-
i && /* @__PURE__ */ n("thead", { children: /* @__PURE__ */ n("tr", { children: e.map((
|
|
9085
|
-
/* @__PURE__ */ n("tbody", { children: t ? Array.from({ length: 5 }).map((
|
|
9096
|
+
i && /* @__PURE__ */ n("thead", { children: /* @__PURE__ */ n("tr", { children: e.map((L) => I(L)) }) }),
|
|
9097
|
+
/* @__PURE__ */ n("tbody", { children: t ? Array.from({ length: 5 }).map((L, N) => /* @__PURE__ */ n(
|
|
9086
9098
|
"tr",
|
|
9087
9099
|
{
|
|
9088
9100
|
className: `table-row ${s ? "table-row-bordered" : ""}`,
|
|
@@ -9096,59 +9108,59 @@ const S0 = () => {
|
|
|
9096
9108
|
_.key
|
|
9097
9109
|
))
|
|
9098
9110
|
},
|
|
9099
|
-
|
|
9100
|
-
)) : Q.map((
|
|
9101
|
-
const _ =
|
|
9111
|
+
N
|
|
9112
|
+
)) : Q.map((L, N) => {
|
|
9113
|
+
const _ = E(L, N), R = (f == null ? void 0 : f(L, N)) || {}, B = v == null ? void 0 : v(L, N), A = N === 0, P = N === r.length - 1, j = B ? `var(--malachite-table-row-variant-${B}-background)` : void 0;
|
|
9102
9114
|
return /* @__PURE__ */ n(
|
|
9103
9115
|
"tr",
|
|
9104
9116
|
{
|
|
9105
9117
|
className: `
|
|
9106
9118
|
${s ? "table-row-bordered" : "table-row hover:opacity-80"}
|
|
9107
|
-
${(m == null ? void 0 : m(
|
|
9119
|
+
${(m == null ? void 0 : m(L, N)) || ""}
|
|
9108
9120
|
${y || R.onClick ? "cursor-pointer" : ""}
|
|
9109
9121
|
`,
|
|
9110
9122
|
onClick: y || R.onClick ? () => {
|
|
9111
9123
|
var V;
|
|
9112
|
-
y == null || y(
|
|
9124
|
+
y == null || y(L, N), (V = R.onClick) == null || V.call(R, L, N);
|
|
9113
9125
|
} : void 0,
|
|
9114
9126
|
onDoubleClick: R.onDoubleClick ? () => {
|
|
9115
9127
|
var V;
|
|
9116
9128
|
return (V = R.onDoubleClick) == null ? void 0 : V.call(
|
|
9117
9129
|
R,
|
|
9118
|
-
|
|
9119
|
-
|
|
9130
|
+
L,
|
|
9131
|
+
N
|
|
9120
9132
|
);
|
|
9121
9133
|
} : void 0,
|
|
9122
9134
|
onContextMenu: R.onContextMenu ? () => {
|
|
9123
9135
|
var V;
|
|
9124
9136
|
return (V = R.onContextMenu) == null ? void 0 : V.call(
|
|
9125
9137
|
R,
|
|
9126
|
-
|
|
9127
|
-
|
|
9138
|
+
L,
|
|
9139
|
+
N
|
|
9128
9140
|
);
|
|
9129
9141
|
} : void 0,
|
|
9130
9142
|
onMouseEnter: R.onMouseEnter ? () => {
|
|
9131
9143
|
var V;
|
|
9132
|
-
return (V = R.onMouseEnter) == null ? void 0 : V.call(R,
|
|
9144
|
+
return (V = R.onMouseEnter) == null ? void 0 : V.call(R, L, N);
|
|
9133
9145
|
} : void 0,
|
|
9134
9146
|
onMouseLeave: R.onMouseLeave ? () => {
|
|
9135
9147
|
var V;
|
|
9136
|
-
return (V = R.onMouseLeave) == null ? void 0 : V.call(R,
|
|
9148
|
+
return (V = R.onMouseLeave) == null ? void 0 : V.call(R, L, N);
|
|
9137
9149
|
} : void 0,
|
|
9138
9150
|
children: e.map((V) => {
|
|
9139
|
-
const q = V === e[0],
|
|
9151
|
+
const q = V === e[0], r1 = V === e[e.length - 1];
|
|
9140
9152
|
return /* @__PURE__ */ n(
|
|
9141
9153
|
U0,
|
|
9142
9154
|
{
|
|
9143
9155
|
column: V,
|
|
9144
|
-
record:
|
|
9145
|
-
index:
|
|
9156
|
+
record: L,
|
|
9157
|
+
index: N,
|
|
9146
9158
|
size: h,
|
|
9147
9159
|
bordered: s,
|
|
9148
9160
|
isFirstRow: A,
|
|
9149
|
-
isLastRow:
|
|
9161
|
+
isLastRow: P,
|
|
9150
9162
|
isFirstColumn: q,
|
|
9151
|
-
isLastColumn:
|
|
9163
|
+
isLastColumn: r1,
|
|
9152
9164
|
variantBackground: j
|
|
9153
9165
|
},
|
|
9154
9166
|
V.key
|
|
@@ -9214,29 +9226,29 @@ const S0 = () => {
|
|
|
9214
9226
|
triggerIcon: t,
|
|
9215
9227
|
minWidth: a = 180
|
|
9216
9228
|
}) => {
|
|
9217
|
-
const [o, l] = O(!1), [s, i] = O(null), d =
|
|
9218
|
-
var
|
|
9229
|
+
const [o, l] = O(!1), [s, i] = O(null), d = e1(null), C = e1(null), h = O1(() => {
|
|
9230
|
+
var G, E;
|
|
9219
9231
|
const f = d.current;
|
|
9220
9232
|
if (!f)
|
|
9221
9233
|
return;
|
|
9222
|
-
const y = f.getBoundingClientRect(), w = ((
|
|
9223
|
-
i({ top: Q, left:
|
|
9234
|
+
const y = f.getBoundingClientRect(), w = ((G = C.current) == null ? void 0 : G.offsetWidth) || a, x = ((E = C.current) == null ? void 0 : E.offsetHeight) || 0, D = 8, S = y.right - w, F = window.innerWidth - w - D, M = Math.max(D, Math.min(S, F)), Z = window.innerHeight - y.bottom, Q = x > 0 && Z < x + D ? y.top - x - 4 : y.bottom + 4;
|
|
9235
|
+
i({ top: Q, left: M });
|
|
9224
9236
|
}, [a]);
|
|
9225
9237
|
a1(() => {
|
|
9226
9238
|
if (!o)
|
|
9227
9239
|
return;
|
|
9228
9240
|
h();
|
|
9229
9241
|
const f = () => h(), y = (x) => {
|
|
9230
|
-
var
|
|
9242
|
+
var S, F;
|
|
9231
9243
|
const D = x.target;
|
|
9232
|
-
!((
|
|
9244
|
+
!((S = d.current) != null && S.contains(D)) && !((F = C.current) != null && F.contains(D)) && l(!1);
|
|
9233
9245
|
}, w = (x) => {
|
|
9234
9246
|
x.key === "Escape" && l(!1);
|
|
9235
9247
|
};
|
|
9236
9248
|
return window.addEventListener("scroll", f, !0), window.addEventListener("resize", f), document.addEventListener("mousedown", y), document.addEventListener("keydown", w), () => {
|
|
9237
9249
|
window.removeEventListener("scroll", f, !0), window.removeEventListener("resize", f), document.removeEventListener("mousedown", y), document.removeEventListener("keydown", w);
|
|
9238
9250
|
};
|
|
9239
|
-
}, [o, h]),
|
|
9251
|
+
}, [o, h]), J1(() => {
|
|
9240
9252
|
o && C.current && h();
|
|
9241
9253
|
}, [o, h]);
|
|
9242
9254
|
const g = (f) => {
|
|
@@ -9383,7 +9395,7 @@ const S0 = () => {
|
|
|
9383
9395
|
verticalAlign: "top",
|
|
9384
9396
|
...l
|
|
9385
9397
|
}, d = /* @__PURE__ */ n("span", { className: o, style: i, children: e });
|
|
9386
|
-
return r ? /* @__PURE__ */ n(
|
|
9398
|
+
return r ? /* @__PURE__ */ n(ie, { text: r, children: d }) : d;
|
|
9387
9399
|
}, r9 = ({
|
|
9388
9400
|
children: e,
|
|
9389
9401
|
className: r = "",
|
|
@@ -9535,7 +9547,7 @@ const S0 = () => {
|
|
|
9535
9547
|
EllipsisText: e9,
|
|
9536
9548
|
FormSectionTitle: r9,
|
|
9537
9549
|
LinkText: V1,
|
|
9538
|
-
MarkdownBlock:
|
|
9550
|
+
MarkdownBlock: Ie,
|
|
9539
9551
|
PageTitle: S5,
|
|
9540
9552
|
SecondaryText: t9,
|
|
9541
9553
|
SectionTitle: D5,
|
|
@@ -9587,21 +9599,21 @@ const S0 = () => {
|
|
|
9587
9599
|
x,
|
|
9588
9600
|
e
|
|
9589
9601
|
] });
|
|
9590
|
-
}, C9 = { small: 24, default: 32, large: 40 }, h9 = { small: 64, default: 96, large: 128 }, u9 = { small: 24, default: 32, large: 40 }, g9 = { small: 24, default: 32, large: 40 }, c6 = "malachite-skeleton-loading",
|
|
9591
|
-
let
|
|
9602
|
+
}, C9 = { small: 24, default: 32, large: 40 }, h9 = { small: 64, default: 96, large: 128 }, u9 = { small: 24, default: 32, large: 40 }, g9 = { small: 24, default: 32, large: 40 }, c6 = "malachite-skeleton-loading", ye = "rgba(190, 190, 190, 0.2)", p9 = "rgba(129, 129, 129, 0.24)", m9 = `linear-gradient(90deg, ${ye} 25%, ${p9} 37%, ${ye} 63%)`, s6 = `@keyframes ${c6} { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }`;
|
|
9603
|
+
let _1 = null, h5 = !1;
|
|
9592
9604
|
const f9 = () => {
|
|
9593
|
-
if (
|
|
9594
|
-
return
|
|
9605
|
+
if (_1 || h5)
|
|
9606
|
+
return _1;
|
|
9595
9607
|
if (h5 = !0, typeof CSSStyleSheet > "u")
|
|
9596
9608
|
return null;
|
|
9597
9609
|
try {
|
|
9598
9610
|
const e = new CSSStyleSheet();
|
|
9599
|
-
e.replaceSync(s6),
|
|
9611
|
+
e.replaceSync(s6), _1 = e;
|
|
9600
9612
|
} catch (e) {
|
|
9601
9613
|
console.error("Failed to construct Skeleton stylesheet:", e);
|
|
9602
9614
|
}
|
|
9603
|
-
return
|
|
9604
|
-
},
|
|
9615
|
+
return _1;
|
|
9616
|
+
}, ue = "malachite-skeleton-keyframes", b9 = (e, r) => {
|
|
9605
9617
|
if (!("adoptedStyleSheets" in e))
|
|
9606
9618
|
return !1;
|
|
9607
9619
|
try {
|
|
@@ -9610,12 +9622,12 @@ const f9 = () => {
|
|
|
9610
9622
|
return !1;
|
|
9611
9623
|
}
|
|
9612
9624
|
}, v9 = (e, r) => {
|
|
9613
|
-
if (e instanceof Document ? e.getElementById(
|
|
9625
|
+
if (e instanceof Document ? e.getElementById(ue) : e.querySelector(`#${ue}`))
|
|
9614
9626
|
return;
|
|
9615
9627
|
const a = document.createElement("style");
|
|
9616
|
-
a.id =
|
|
9628
|
+
a.id = ue, a.textContent = r, e instanceof Document ? e.head.appendChild(a) : e.appendChild(a);
|
|
9617
9629
|
}, ze = (e) => {
|
|
9618
|
-
|
|
9630
|
+
J1(() => {
|
|
9619
9631
|
const r = e.current;
|
|
9620
9632
|
if (!r)
|
|
9621
9633
|
return;
|
|
@@ -9638,7 +9650,7 @@ const f9 = () => {
|
|
|
9638
9650
|
}, Xe = (e) => ({
|
|
9639
9651
|
display: "inline-block",
|
|
9640
9652
|
verticalAlign: "middle",
|
|
9641
|
-
background: e ? m9 :
|
|
9653
|
+
background: e ? m9 : ye,
|
|
9642
9654
|
backgroundSize: e ? "400% 100%" : void 0,
|
|
9643
9655
|
animation: e ? `${c6} 1.4s ease infinite` : void 0,
|
|
9644
9656
|
flexShrink: 0
|
|
@@ -9652,7 +9664,7 @@ const f9 = () => {
|
|
|
9652
9664
|
height: s,
|
|
9653
9665
|
minWidth: i
|
|
9654
9666
|
}) => {
|
|
9655
|
-
const d =
|
|
9667
|
+
const d = e1(null);
|
|
9656
9668
|
return ze(d), /* @__PURE__ */ n(
|
|
9657
9669
|
"span",
|
|
9658
9670
|
{
|
|
@@ -9678,7 +9690,7 @@ const f9 = () => {
|
|
|
9678
9690
|
height: l,
|
|
9679
9691
|
minWidth: s
|
|
9680
9692
|
}) => {
|
|
9681
|
-
const i =
|
|
9693
|
+
const i = e1(null);
|
|
9682
9694
|
return ze(i), /* @__PURE__ */ n(
|
|
9683
9695
|
"span",
|
|
9684
9696
|
{
|
|
@@ -9701,7 +9713,7 @@ const f9 = () => {
|
|
|
9701
9713
|
active: t = !0,
|
|
9702
9714
|
className: a
|
|
9703
9715
|
}) => {
|
|
9704
|
-
const o =
|
|
9716
|
+
const o = e1(null);
|
|
9705
9717
|
ze(o);
|
|
9706
9718
|
const l = typeof e == "number" ? e : g9[e];
|
|
9707
9719
|
return /* @__PURE__ */ n(
|
|
@@ -9736,11 +9748,11 @@ const f9 = () => {
|
|
|
9736
9748
|
"space-between": "space-between",
|
|
9737
9749
|
"space-around": "space-around",
|
|
9738
9750
|
"space-evenly": "space-evenly"
|
|
9739
|
-
}, S1 = "data-overflow-row-hidden",
|
|
9740
|
-
if (e instanceof Document ? e.getElementById(
|
|
9751
|
+
}, S1 = "data-overflow-row-hidden", ge = "malachite-overflow-row-style", B9 = `[data-overflow-row] > * { flex-shrink: 0; min-width: 0; } [${S1}] { display: none !important; }`, M9 = (e) => {
|
|
9752
|
+
if (e instanceof Document ? e.getElementById(ge) : e.querySelector(`#${ge}`))
|
|
9741
9753
|
return;
|
|
9742
9754
|
const t = document.createElement("style");
|
|
9743
|
-
t.id =
|
|
9755
|
+
t.id = ge, t.textContent = B9, e instanceof Document ? e.head.appendChild(t) : e.appendChild(t);
|
|
9744
9756
|
}, br = ({
|
|
9745
9757
|
children: e,
|
|
9746
9758
|
gap: r = 0,
|
|
@@ -9749,9 +9761,9 @@ const f9 = () => {
|
|
|
9749
9761
|
className: o,
|
|
9750
9762
|
renderOverflow: l
|
|
9751
9763
|
}) => {
|
|
9752
|
-
const s =
|
|
9753
|
-
|
|
9754
|
-
var
|
|
9764
|
+
const s = e1(null), [i, d] = O(0);
|
|
9765
|
+
J1(() => {
|
|
9766
|
+
var M;
|
|
9755
9767
|
const h = s.current;
|
|
9756
9768
|
if (!h)
|
|
9757
9769
|
return;
|
|
@@ -9770,29 +9782,29 @@ const f9 = () => {
|
|
|
9770
9782
|
}, D = () => {
|
|
9771
9783
|
if (v = null, f || s.current !== h)
|
|
9772
9784
|
return;
|
|
9773
|
-
const Z = Array.from(h.children), Q = !!l,
|
|
9774
|
-
for (const
|
|
9775
|
-
|
|
9776
|
-
if (
|
|
9777
|
-
d((
|
|
9785
|
+
const Z = Array.from(h.children), Q = !!l, G = Q ? Z[Z.length - 1] ?? null : null, E = Q ? Z.slice(0, -1) : Z;
|
|
9786
|
+
for (const N of E)
|
|
9787
|
+
N.removeAttribute(S1);
|
|
9788
|
+
if (G && G.setAttribute(S1, ""), h.scrollWidth <= h.clientWidth) {
|
|
9789
|
+
d((N) => N === 0 ? N : 0), x();
|
|
9778
9790
|
return;
|
|
9779
9791
|
}
|
|
9780
|
-
|
|
9781
|
-
let
|
|
9782
|
-
for (;
|
|
9783
|
-
|
|
9784
|
-
const
|
|
9785
|
-
d((
|
|
9792
|
+
G && G.removeAttribute(S1);
|
|
9793
|
+
let I = E.length - 1;
|
|
9794
|
+
for (; I >= 0 && h.scrollWidth > h.clientWidth; )
|
|
9795
|
+
E[I].setAttribute(S1, ""), I -= 1;
|
|
9796
|
+
const L = E.length - 1 - I;
|
|
9797
|
+
d((N) => N === L ? N : L), x();
|
|
9786
9798
|
};
|
|
9787
9799
|
D();
|
|
9788
|
-
const
|
|
9789
|
-
|
|
9790
|
-
const
|
|
9800
|
+
const S = u ? new ResizeObserver(y) : null;
|
|
9801
|
+
S == null || S.observe(h);
|
|
9802
|
+
const F = m ? new MutationObserver(() => {
|
|
9791
9803
|
x(), y();
|
|
9792
9804
|
}) : null;
|
|
9793
|
-
return
|
|
9805
|
+
return F == null || F.observe(h, { childList: !0 }), typeof document < "u" && ((M = document.fonts) != null && M.ready) && document.fonts.ready.then(y).catch(() => {
|
|
9794
9806
|
}), () => {
|
|
9795
|
-
f = !0, v !== null && cancelAnimationFrame(v),
|
|
9807
|
+
f = !0, v !== null && cancelAnimationFrame(v), S == null || S.disconnect(), w == null || w.disconnect(), F == null || F.disconnect();
|
|
9796
9808
|
};
|
|
9797
9809
|
}, [r, t, a]);
|
|
9798
9810
|
const C = {
|
|
@@ -9938,7 +9950,7 @@ export {
|
|
|
9938
9950
|
gr as ActionMenu,
|
|
9939
9951
|
T9 as Alert,
|
|
9940
9952
|
Pe as BaseFormComponent,
|
|
9941
|
-
|
|
9953
|
+
z1 as Button,
|
|
9942
9954
|
W9 as ButtonList,
|
|
9943
9955
|
O9 as Card,
|
|
9944
9956
|
J9 as CodeBlock,
|
|
@@ -9975,7 +9987,7 @@ export {
|
|
|
9975
9987
|
ur as Tabs,
|
|
9976
9988
|
Cr as Tag,
|
|
9977
9989
|
dr as TextArea,
|
|
9978
|
-
|
|
9990
|
+
ie as Tooltip,
|
|
9979
9991
|
O0 as TruncatedTooltip,
|
|
9980
9992
|
pr as Typography,
|
|
9981
9993
|
ar as applyCustomTheme,
|
|
@@ -9985,7 +9997,7 @@ export {
|
|
|
9985
9997
|
F1 as darkTheme,
|
|
9986
9998
|
p as defaultTheme,
|
|
9987
9999
|
nr as getCurrentTheme,
|
|
9988
|
-
|
|
10000
|
+
q1 as getCurrentThemeMode,
|
|
9989
10001
|
V0 as initializeTheme,
|
|
9990
10002
|
or as resetTheme,
|
|
9991
10003
|
tr as toggleTheme
|